{"version":3,"sources":["webpack:///js/main.js","webpack:///../node_modules/core-js/fn/array/find.js","webpack:///../node_modules/core-js/fn/array/includes.js","webpack:///../node_modules/core-js/fn/object/assign.js","webpack:///../node_modules/core-js/fn/object/entries.js","webpack:///../node_modules/core-js/fn/object/values.js","webpack:///../node_modules/core-js/fn/string/includes.js","webpack:///../node_modules/core-js/modules/_a-function.js","webpack:///../node_modules/core-js/modules/_add-to-unscopables.js","webpack:///../node_modules/core-js/modules/_an-object.js","webpack:///../node_modules/core-js/modules/_array-includes.js","webpack:///../node_modules/core-js/modules/_array-methods.js","webpack:///../node_modules/core-js/modules/_array-species-constructor.js","webpack:///../node_modules/core-js/modules/_array-species-create.js","webpack:///../node_modules/core-js/modules/_cof.js","webpack:///../node_modules/core-js/modules/_core.js","webpack:///../node_modules/core-js/modules/_ctx.js","webpack:///../node_modules/core-js/modules/_defined.js","webpack:///../node_modules/core-js/modules/_descriptors.js","webpack:///../node_modules/core-js/modules/_dom-create.js","webpack:///../node_modules/core-js/modules/_enum-bug-keys.js","webpack:///../node_modules/core-js/modules/_export.js","webpack:///../node_modules/core-js/modules/_fails-is-regexp.js","webpack:///../node_modules/core-js/modules/_fails.js","webpack:///../node_modules/core-js/modules/_function-to-string.js","webpack:///../node_modules/core-js/modules/_global.js","webpack:///../node_modules/core-js/modules/_has.js","webpack:///../node_modules/core-js/modules/_hide.js","webpack:///../node_modules/core-js/modules/_ie8-dom-define.js","webpack:///../node_modules/core-js/modules/_iobject.js","webpack:///../node_modules/core-js/modules/_is-array.js","webpack:///../node_modules/core-js/modules/_is-object.js","webpack:///../node_modules/core-js/modules/_is-regexp.js","webpack:///../node_modules/core-js/modules/_library.js","webpack:///../node_modules/core-js/modules/_object-assign.js","webpack:///../node_modules/core-js/modules/_object-dp.js","webpack:///../node_modules/core-js/modules/_object-gops.js","webpack:///../node_modules/core-js/modules/_object-keys-internal.js","webpack:///../node_modules/core-js/modules/_object-keys.js","webpack:///../node_modules/core-js/modules/_object-pie.js","webpack:///../node_modules/core-js/modules/_object-to-array.js","webpack:///../node_modules/core-js/modules/_property-desc.js","webpack:///../node_modules/core-js/modules/_redefine.js","webpack:///../node_modules/core-js/modules/_shared-key.js","webpack:///../node_modules/core-js/modules/_shared.js","webpack:///../node_modules/core-js/modules/_string-context.js","webpack:///../node_modules/core-js/modules/_to-absolute-index.js","webpack:///../node_modules/core-js/modules/_to-integer.js","webpack:///../node_modules/core-js/modules/_to-iobject.js","webpack:///../node_modules/core-js/modules/_to-length.js","webpack:///../node_modules/core-js/modules/_to-object.js","webpack:///../node_modules/core-js/modules/_to-primitive.js","webpack:///../node_modules/core-js/modules/_uid.js","webpack:///../node_modules/core-js/modules/_wks.js","webpack:///../node_modules/core-js/modules/es6.array.find.js","webpack:///../node_modules/core-js/modules/es6.object.assign.js","webpack:///../node_modules/core-js/modules/es6.string.includes.js","webpack:///../node_modules/core-js/modules/es7.array.includes.js","webpack:///../node_modules/core-js/modules/es7.object.entries.js","webpack:///../node_modules/core-js/modules/es7.object.values.js","webpack:///../node_modules/node-uuid/uuid.js","webpack:///../node_modules/xo-guest-components/src/guest-upgrade/occupation/template.html","webpack:///../node_modules/xo-guest-components/src/login-button/template.html","webpack:///../node_modules/xo-guest-components/src/multistep-signup/addCard/template.html","webpack:///../node_modules/xo-guest-components/src/multistep-signup/addShipping/template.html","webpack:///../node_modules/xo-guest-components/src/multistep-signup/addressNormalization/template.html","webpack:///../node_modules/xo-guest-components/src/multistep-signup/createAccount/template.html","webpack:///../node_modules/xo-guest-components/src/multistep-signup/template.html","webpack:///../node_modules/xo-page-components/src/value-props/template.html","webpack:///../node_modules/xo-ui-components/src/escape-hatch/closeFrame/template.html","webpack:///../node_modules/xo-ui-components/src/escape-hatch/escapeHatch/template.html","webpack:///../node_modules/xo-ui-components/src/generic-message/template.html","webpack:///../node_modules/xo-ui-components/src/message/template.html","webpack:///../node_modules/xo-ui-components/src/spinner-button/template.html","webpack:///../node_modules/xo-ui-components/src/spinner/template.html","webpack:///../node_modules/xo-wallet-components/src/3ds/template.html","webpack:///../node_modules/xo-wallet-components/src/add-bank/bank-input/template.html","webpack:///../node_modules/xo-wallet-components/src/add-card/addCep/template.html","webpack:///../node_modules/xo-wallet-components/src/add-card/addbilling/template.html","webpack:///../node_modules/xo-wallet-components/src/add-card/addcard/template.html","webpack:///../node_modules/xo-wallet-components/src/add-card/creditcard-input/template.html","webpack:///../node_modules/xo-wallet-components/src/add-card/selectcard/template.html","webpack:///../node_modules/xo-wallet-components/src/add-card/template.html","webpack:///../node_modules/xo-wallet-components/src/installment-options/template.html","webpack:///./pages/xo-add-card/template.html","webpack:///./pages/xo-checkout/template.html","webpack:///./pages/xo-generic-message/template.html","webpack:///./pages/xo-guest/template.html","webpack:///./pages/xo-pay-upon-invoice/template.html","webpack:///./pages/xo-sidebar-installment-options/template.html","webpack:///./pages/xo-sidebar/template.html","webpack:///./pages/xo-signup/template.html","webpack:///../node_modules/paypal-sdk-constants/dist/paypal-sdk-constants.js","webpack:///../node_modules/paypal-sdk-constants/index.js","webpack:///../node_modules/squid/dist/core/api.js","webpack:///../node_modules/squid/dist/core/class.js","webpack:///../node_modules/squid/dist/core/config.js","webpack:///../node_modules/squid/dist/core/dom.js","webpack:///../node_modules/squid/dist/core/error.js","webpack:///../node_modules/squid/dist/core/event.js","webpack:///../node_modules/squid/dist/core/index.js","webpack:///../node_modules/squid/dist/core/integration.js","webpack:///../node_modules/squid/dist/core/loader.js","webpack:///../node_modules/squid/dist/core/model.js","webpack:///../node_modules/squid/dist/core/promise.js","webpack:///../node_modules/squid/dist/core/util.js","webpack:///../node_modules/squid/dist/index.js","webpack:///../node_modules/squid/dist/locale/currency.js","webpack:///../node_modules/squid/dist/locale/feature.js","webpack:///../node_modules/squid/dist/locale/index.js","webpack:///../node_modules/squid/dist/locale/locale.js","webpack:///../node_modules/squid/dist/locale/name.js","webpack:///../node_modules/squid/dist/locale/quantity.js","webpack:///../node_modules/squid/dist/module.js","webpack:///../node_modules/squid/dist/ng/component.js","webpack:///../node_modules/squid/dist/ng/core.js","webpack:///../node_modules/squid/dist/ng/directive.js","webpack:///../node_modules/squid/dist/ng/events.js","webpack:///../node_modules/squid/dist/ng/feature.js","webpack:///../node_modules/squid/dist/ng/index.js","webpack:///../node_modules/squid/dist/ng/lazyLoadRoutes.js","webpack:///../node_modules/squid/dist/ng/locale.js","webpack:///../node_modules/squid/dist/ng/module.js","webpack:///../node_modules/squid/dist/ng/ng.js","webpack:///../node_modules/squid/dist/ng/pxp.js","webpack:///../node_modules/squid/dist/ng/route.js","webpack:///../node_modules/squid/dist/paypal/config.js","webpack:///../node_modules/squid/dist/paypal/env.js","webpack:///../node_modules/squid/dist/paypal/index.js","webpack:///../node_modules/squid/dist/paypal/pxp.js","webpack:///../node_modules/ul-inline/dist/inject.js","webpack:///../node_modules/xo-address-components/src/add-address/directive.js","webpack:///../node_modules/xo-address-components/src/add-address/template.html","webpack:///../node_modules/xo-address-components/src/address-display/directive.js","webpack:///../node_modules/xo-address-components/src/address-display/template.html","webpack:///../node_modules/xo-address-components/src/address-normalization/directive.js","webpack:///../node_modules/xo-address-components/src/address-normalization/route.js","webpack:///../node_modules/xo-address-components/src/address-normalization/template.html","webpack:///../node_modules/xo-beaver/dist/level.js","webpack:///../node_modules/xo-beaver/dist/logger.js","webpack:///../node_modules/xo-device-info/dist/index.js","webpack:///../node_modules/xo-form-components/src/dob-input/directive.js","webpack:///../node_modules/xo-form-components/src/dob-input/template.html","webpack:///../node_modules/xo-form-components/src/gender-type/directive.js","webpack:///../node_modules/xo-form-components/src/gender-type/template.html","webpack:///../node_modules/xo-form-components/src/inventory-soldout/directive.js","webpack:///../node_modules/xo-form-components/src/inventory-soldout/route.js","webpack:///../node_modules/xo-form-components/src/inventory-soldout/template.html","webpack:///../node_modules/xo-form-components/src/language-options/directive.js","webpack:///../node_modules/xo-form-components/src/language-options/template.html","webpack:///../node_modules/xo-form-components/src/name-input/directive.js","webpack:///../node_modules/xo-form-components/src/name-input/template.html","webpack:///../node_modules/xo-form-components/src/national-id-input/directive.js","webpack:///../node_modules/xo-form-components/src/national-id-input/template.html","webpack:///../node_modules/xo-form-components/src/phone/directive.js","webpack:///../node_modules/xo-form-components/src/phone/lib/territoriesByCode.js","webpack:///../node_modules/xo-form-components/src/phone/phoneInput/directive.js","webpack:///../node_modules/xo-form-components/src/phone/phoneInput/template.html","webpack:///../node_modules/xo-form-components/src/phone/phoneInputA/directive.js","webpack:///../node_modules/xo-form-components/src/phone/phoneInputA/template.html","webpack:///../node_modules/xo-form-components/src/phone/phoneInputB/directive.js","webpack:///../node_modules/xo-form-components/src/phone/phoneInputB/template.html","webpack:///../node_modules/xo-form-components/src/phone/template.html","webpack:///../node_modules/xo-form-components/src/place-of-birth/directive.js","webpack:///../node_modules/xo-form-components/src/place-of-birth/template.html","webpack:///../node_modules/xo-form-components/src/select-shipping-country/directive.js","webpack:///../node_modules/xo-form-components/src/select-shipping-country/template.html","webpack:///../node_modules/xo-form-components/src/travel-rule/directive.js","webpack:///../node_modules/xo-form-components/src/travel-rule/template.html","webpack:///../node_modules/xo-form-components/src/travel-rule/utilFunctions.js","webpack:///../node_modules/xo-form-components/src/zipcode/directive.js","webpack:///../node_modules/xo-form-components/src/zipcode/template.html","webpack:///../node_modules/xo-guest-components/src/fraudnet/fn.js","webpack:///../node_modules/xo-guest-components/src/guest-upgrade-interstitial/constants/pxpExperimentConstants.js","webpack:///../node_modules/xo-guest-components/src/guest-upgrade-interstitial/directive.js","webpack:///../node_modules/xo-guest-components/src/guest-upgrade-interstitial/route.js","webpack:///../node_modules/xo-guest-components/src/guest-upgrade-interstitial/template.html","webpack:///../node_modules/xo-guest-components/src/guest-upgrade/directive.js","webpack:///../node_modules/xo-guest-components/src/guest-upgrade/lib/mapper.js","webpack:///../node_modules/xo-guest-components/src/guest-upgrade/occupation/directive.js","webpack:///../node_modules/xo-guest-components/src/guest-upgrade/template.html","webpack:///../node_modules/xo-guest-components/src/guest/cartChanged/directive.js","webpack:///../node_modules/xo-guest-components/src/guest/cartChanged/template.html","webpack:///../node_modules/xo-guest-components/src/guest/constants/constants.js","webpack:///../node_modules/xo-guest-components/src/guest/constants/errorHandlerConstants.js","webpack:///../node_modules/xo-guest-components/src/guest/constants/pxpExperimentConstants.js","webpack:///../node_modules/xo-guest-components/src/guest/countryList/directive.js","webpack:///../node_modules/xo-guest-components/src/guest/countryList/template.html","webpack:///../node_modules/xo-guest-components/src/guest/currencyConversion/currencyConversionInterstitial/directive.js","webpack:///../node_modules/xo-guest-components/src/guest/currencyConversion/currencyConversionInterstitial/template.html","webpack:///../node_modules/xo-guest-components/src/guest/currencyConversion/inlineCurrencyConversion/directive.js","webpack:///../node_modules/xo-guest-components/src/guest/currencyConversion/inlineCurrencyConversion/template.html","webpack:///../node_modules/xo-guest-components/src/guest/currencyConversion/postPlanInterstitialOptions/contentUtils.js","webpack:///../node_modules/xo-guest-components/src/guest/currencyConversion/postPlanInterstitialOptions/directive.js","webpack:///../node_modules/xo-guest-components/src/guest/currencyConversion/postPlanInterstitialOptions/template.html","webpack:///../node_modules/xo-guest-components/src/guest/currencyConversion/utils.js","webpack:///../node_modules/xo-guest-components/src/guest/directive.js","webpack:///../node_modules/xo-guest-components/src/guest/emailInput/directive.js","webpack:///../node_modules/xo-guest-components/src/guest/emailInput/template.html","webpack:///../node_modules/xo-guest-components/src/guest/lib/errorHandlerHelper.js","webpack:///../node_modules/xo-guest-components/src/guest/lib/pageProps.js","webpack:///../node_modules/xo-guest-components/src/guest/lib/shippingChangeFeature.js","webpack:///../node_modules/xo-guest-components/src/guest/lib/shippingOptionsFeature.js","webpack:///../node_modules/xo-guest-components/src/guest/lib/util.js","webpack:///../node_modules/xo-guest-components/src/guest/nationality/directive.js","webpack:///../node_modules/xo-guest-components/src/guest/nationality/template.html","webpack:///../node_modules/xo-guest-components/src/guest/onboardOptions/directive.js","webpack:///../node_modules/xo-guest-components/src/guest/onboardOptions/guest/directive.js","webpack:///../node_modules/xo-guest-components/src/guest/onboardOptions/guest/template.html","webpack:///../node_modules/xo-guest-components/src/guest/onboardOptions/lib/helper.js","webpack:///../node_modules/xo-guest-components/src/guest/onboardOptions/signup/directive.js","webpack:///../node_modules/xo-guest-components/src/guest/onboardOptions/signup/template.html","webpack:///../node_modules/xo-guest-components/src/guest/onboardOptions/template.html","webpack:///../node_modules/xo-guest-components/src/guest/passwordInput/directive.js","webpack:///../node_modules/xo-guest-components/src/guest/passwordInput/template.html","webpack:///../node_modules/xo-guest-components/src/guest/redirectingFromXoonWarning/directive.js","webpack:///../node_modules/xo-guest-components/src/guest/redirectingFromXoonWarning/template.html","webpack:///../node_modules/xo-guest-components/src/guest/select-shipping-method/directive.js","webpack:///../node_modules/xo-guest-components/src/guest/select-shipping-method/shipping-method-dropdown/directive.js","webpack:///../node_modules/xo-guest-components/src/guest/select-shipping-method/template.html","webpack:///../node_modules/xo-guest-components/src/guest/sepa/directive.js","webpack:///../node_modules/xo-guest-components/src/guest/sepa/template.html","webpack:///../node_modules/xo-guest-components/src/guest/sticky.js","webpack:///../node_modules/xo-guest-components/src/guest/template.html","webpack:///../node_modules/xo-guest-components/src/guest/tesla-add-bank/constants.js","webpack:///../node_modules/xo-guest-components/src/guest/tesla-add-bank/directive.js","webpack:///../node_modules/xo-guest-components/src/guest/tesla-add-bank/template.html","webpack:///../node_modules/xo-guest-components/src/guest/travelRuleLightbox/directive.js","webpack:///../node_modules/xo-guest-components/src/guest/travelRuleLightbox/template.html","webpack:///../node_modules/xo-guest-components/src/guest/xoonHeader/constants.js","webpack:///../node_modules/xo-guest-components/src/guest/xoonHeader/directive.js","webpack:///../node_modules/xo-guest-components/src/guest/xoonHeader/lib.js","webpack:///../node_modules/xo-guest-components/src/guest/xoonHeader/template.html","webpack:///../node_modules/xo-guest-components/src/lib/contentKeys.js","webpack:///../node_modules/xo-guest-components/src/lib/util.js","webpack:///../node_modules/xo-guest-components/src/login-button/directive.js","webpack:///../node_modules/xo-guest-components/src/multistep-signup/addCard/directive.js","webpack:///../node_modules/xo-guest-components/src/multistep-signup/addCard/route.js","webpack:///../node_modules/xo-guest-components/src/multistep-signup/addShipping/directive.js","webpack:///../node_modules/xo-guest-components/src/multistep-signup/addShipping/route.js","webpack:///../node_modules/xo-guest-components/src/multistep-signup/addressNormalization/directive.js","webpack:///../node_modules/xo-guest-components/src/multistep-signup/addressNormalization/route.js","webpack:///../node_modules/xo-guest-components/src/multistep-signup/apiCalls/factory.js","webpack:///../node_modules/xo-guest-components/src/multistep-signup/createAccount/directive.js","webpack:///../node_modules/xo-guest-components/src/multistep-signup/createAccount/route.js","webpack:///../node_modules/xo-guest-components/src/multistep-signup/directive.js","webpack:///../node_modules/xo-guest-components/src/multistep-signup/index.js","webpack:///../node_modules/xo-guest-components/src/multistep-signup/lib/util.js","webpack:///../node_modules/xo-guest-components/src/multistep-signup/route.js","webpack:///../node_modules/xo-jquery-mask-plugin/dist/jquery.mask.min.js","webpack:///../node_modules/xo-locale/dist/country.js","webpack:///../node_modules/xo-locale/dist/helper.js","webpack:///../node_modules/xo-locale/dist/index.js","webpack:///../node_modules/xo-locale/dist/language.js","webpack:///../node_modules/xo-locale/dist/resolvers.js","webpack:///../node_modules/xo-login-components/src/dolphin/directive.js","webpack:///../node_modules/xo-login-components/src/dolphin/template.html","webpack:///../node_modules/xo-login-components/src/dolphin/utils.js","webpack:///../node_modules/xo-login-components/src/unified-login/ul.js","webpack:///../node_modules/xo-models/src/address/index.js","webpack:///../node_modules/xo-models/src/app/index.js","webpack:///../node_modules/xo-models/src/auth/index.js","webpack:///../node_modules/xo-models/src/auth/lib/xoAPayUtils.js","webpack:///../node_modules/xo-models/src/checkout/index.js","webpack:///../node_modules/xo-models/src/checkout/lib/utils.js","webpack:///../node_modules/xo-models/src/eligibility/index.js","webpack:///../node_modules/xo-models/src/fi/index.js","webpack:///../node_modules/xo-models/src/fi/lib/fiApis.js","webpack:///../node_modules/xo-models/src/frs/index.js","webpack:///../node_modules/xo-models/src/gdprCookieBanner/index.js","webpack:///../node_modules/xo-models/src/inventory/index.js","webpack:///../node_modules/xo-models/src/marketingoffer/index.js","webpack:///../node_modules/xo-models/src/onboard/index.js","webpack:///../node_modules/xo-models/src/processorDecline/index.js","webpack:///../node_modules/xo-models/src/profilemanagement/index.js","webpack:///../node_modules/xo-models/src/prox/index.js","webpack:///../node_modules/xo-models/src/shippingMethod/index.js","webpack:///../node_modules/xo-models/src/shoppingcart/index.js","webpack:///../node_modules/xo-models/src/subscription/index.js","webpack:///../node_modules/xo-models/src/user/index.js","webpack:///../node_modules/xo-page-components/src/aside-header/directive.js","webpack:///../node_modules/xo-page-components/src/aside-header/template.html","webpack:///../node_modules/xo-page-components/src/ba-message-banner/directive.js","webpack:///../node_modules/xo-page-components/src/ba-message-banner/template.html","webpack:///../node_modules/xo-page-components/src/cart/cartWrapper/directive.js","webpack:///../node_modules/xo-page-components/src/cart/cartWrapper/template.html","webpack:///../node_modules/xo-page-components/src/cart/directive.js","webpack:///../node_modules/xo-page-components/src/cart/itemDetails/directive.js","webpack:///../node_modules/xo-page-components/src/cart/itemDetails/template.html","webpack:///../node_modules/xo-page-components/src/cart/lib/decode_entities.js","webpack:///../node_modules/xo-page-components/src/cart/lib/pxp.js","webpack:///../node_modules/xo-page-components/src/cart/lib/showCartDecision.js","webpack:///../node_modules/xo-page-components/src/cart/lib/ui.js","webpack:///../node_modules/xo-page-components/src/cart/subscription/directive.js","webpack:///../node_modules/xo-page-components/src/cart/subscription/template.html","webpack:///../node_modules/xo-page-components/src/cart/subscriptionsV1/directive.js","webpack:///../node_modules/xo-page-components/src/cart/subscriptionsV1/template.html","webpack:///../node_modules/xo-page-components/src/cart/template.html","webpack:///../node_modules/xo-page-components/src/constants/fbMessenger.js","webpack:///../node_modules/xo-page-components/src/done/directive.js","webpack:///../node_modules/xo-page-components/src/done/route.js","webpack:///../node_modules/xo-page-components/src/done/template.html","webpack:///../node_modules/xo-page-components/src/footer/directive.js","webpack:///../node_modules/xo-page-components/src/footer/footerMap.js","webpack:///../node_modules/xo-page-components/src/footer/opinionlab.js","webpack:///../node_modules/xo-page-components/src/footer/template.html","webpack:///../node_modules/xo-page-components/src/gdprCookieBanner/directive.js","webpack:///../node_modules/xo-page-components/src/gdprCookieBanner/template.html","webpack:///../node_modules/xo-page-components/src/header/directive.js","webpack:///../node_modules/xo-page-components/src/header/template.html","webpack:///../node_modules/xo-page-components/src/marketingOffers/directive.js","webpack:///../node_modules/xo-page-components/src/marketingOffers/template.html","webpack:///../node_modules/xo-page-components/src/merchant-header/directive.js","webpack:///../node_modules/xo-page-components/src/merchant-header/template.html","webpack:///../node_modules/xo-page-components/src/returnParams/index.js","webpack:///../node_modules/xo-page-components/src/route-to-complete/directive.js","webpack:///../node_modules/xo-page-components/src/route-to-complete/route.js","webpack:///../node_modules/xo-page-components/src/route-to-complete/template.html","webpack:///../node_modules/xo-page-components/src/subscription-terms/index.js","webpack:///../node_modules/xo-page-components/src/subscription-terms/subscriptionTerms.js","webpack:///../node_modules/xo-page-components/src/utils/index.js","webpack:///../node_modules/xo-page-components/src/value-props/directive.js","webpack:///../node_modules/xo-return-to-merchant/dist/formatReturnContent.js","webpack:///../node_modules/xo-return-to-merchant/dist/index.js","webpack:///../node_modules/xo-return-to-merchant/dist/util.js","webpack:///../node_modules/xo-shipping-change/src/factory.js","webpack:///../node_modules/xo-shipping-change/src/outputMapper.js","webpack:///../node_modules/xo-shipping-change/src/util.js","webpack:///../node_modules/xo-shipping-options/src/component/directive.js","webpack:///../node_modules/xo-shipping-options/src/component/template.html","webpack:///../node_modules/xo-shipping-options/src/index.js","webpack:///../node_modules/xo-shipping-options/src/lib/api.js","webpack:///../node_modules/xo-shipping-options/src/lib/cart.js","webpack:///../node_modules/xo-shipping-options/src/lib/index.js","webpack:///../node_modules/xo-third-party-components/src/thirdParty-info/index.js","webpack:///../node_modules/xo-third-party-components/src/thirdParty-info/sessionStorage.js","webpack:///../node_modules/xo-third-party-components/src/venmo-models/index.js","webpack:///../node_modules/xo-title/dist/directive.js","webpack:///../node_modules/xo-title/dist/template.html","webpack:///../node_modules/xo-tracking/dist/builder.js","webpack:///../node_modules/xo-tracking/dist/button.js","webpack:///../node_modules/xo-tracking/dist/directive.js","webpack:///../node_modules/xo-tracking/dist/fpti.js","webpack:///../node_modules/xo-tracking/dist/index.js","webpack:///../node_modules/xo-tracking/dist/listener.js","webpack:///../node_modules/xo-tracking/dist/model.js","webpack:///../node_modules/xo-tray-height/dist/directive.js","webpack:///../node_modules/xo-ui-components/src/accessibility/directive.js","webpack:///../node_modules/xo-ui-components/src/accessibility/ui.js","webpack:///../node_modules/xo-ui-components/src/banner/directive.js","webpack:///../node_modules/xo-ui-components/src/banner/template.html","webpack:///../node_modules/xo-ui-components/src/directionality/directive.js","webpack:///../node_modules/xo-ui-components/src/dropdown-multiline/directive.js","webpack:///../node_modules/xo-ui-components/src/dropdown/directive.js","webpack:///../node_modules/xo-ui-components/src/error-tooltip/directive.js","webpack:///../node_modules/xo-ui-components/src/escape-hatch/closeFrame/directive.js","webpack:///../node_modules/xo-ui-components/src/escape-hatch/escapeHatch/directive.js","webpack:///../node_modules/xo-ui-components/src/floating-label/directive.js","webpack:///../node_modules/xo-ui-components/src/generic-error/directive.js","webpack:///../node_modules/xo-ui-components/src/generic-error/template.html","webpack:///../node_modules/xo-ui-components/src/generic-message/directive.js","webpack:///../node_modules/xo-ui-components/src/message/directive.js","webpack:///../node_modules/xo-ui-components/src/modal/directive.js","webpack:///../node_modules/xo-ui-components/src/modal/template.html","webpack:///../node_modules/xo-ui-components/src/prefix-attrs-with/directive.js","webpack:///../node_modules/xo-ui-components/src/select-simple/directive.js","webpack:///../node_modules/xo-ui-components/src/select-simple/template.html","webpack:///../node_modules/xo-ui-components/src/spinner-button/directive.js","webpack:///../node_modules/xo-ui-components/src/spinner/directive.js","webpack:///../node_modules/xo-ui-components/src/tabs/directive.js","webpack:///../node_modules/xo-ui-components/src/tabs/template.html","webpack:///../node_modules/xo-ui-components/src/tooltip/directive.js","webpack:///../node_modules/xo-ui-components/src/tooltip/template.html","webpack:///../node_modules/xo-ui-components/src/ui-utils/directive.js","webpack:///../node_modules/xo-validation/dist/directive.js","webpack:///../node_modules/xo-wallet-components/src/3ds/directive.js","webpack:///../node_modules/xo-wallet-components/src/add-bank/bank-input/directive.js","webpack:///../node_modules/xo-wallet-components/src/add-card/addCep/directive.js","webpack:///../node_modules/xo-wallet-components/src/add-card/addCep/route.js","webpack:///../node_modules/xo-wallet-components/src/add-card/addbilling/directive.js","webpack:///../node_modules/xo-wallet-components/src/add-card/addbilling/route.js","webpack:///../node_modules/xo-wallet-components/src/add-card/addcard/directive.js","webpack:///../node_modules/xo-wallet-components/src/add-card/addcard/route.js","webpack:///../node_modules/xo-wallet-components/src/add-card/cardExpiry/directive.js","webpack:///../node_modules/xo-wallet-components/src/add-card/cardExpiry/template.html","webpack:///../node_modules/xo-wallet-components/src/add-card/cardMetaData/index.js","webpack:///../node_modules/xo-wallet-components/src/add-card/creditcard-input/directive.js","webpack:///../node_modules/xo-wallet-components/src/add-card/creditcard-input/utils.js","webpack:///../node_modules/xo-wallet-components/src/add-card/cvv/directive.js","webpack:///../node_modules/xo-wallet-components/src/add-card/cvv/template.html","webpack:///../node_modules/xo-wallet-components/src/add-card/directive.js","webpack:///../node_modules/xo-wallet-components/src/add-card/dob/directive.js","webpack:///../node_modules/xo-wallet-components/src/add-card/dob/template.html","webpack:///../node_modules/xo-wallet-components/src/add-card/index.js","webpack:///../node_modules/xo-wallet-components/src/add-card/route.js","webpack:///../node_modules/xo-wallet-components/src/add-card/selectcard/directive.js","webpack:///../node_modules/xo-wallet-components/src/add-card/selectcard/route.js","webpack:///../node_modules/xo-wallet-components/src/confirm-upop/confirm/directive.js","webpack:///../node_modules/xo-wallet-components/src/confirm-upop/confirm/template.html","webpack:///../node_modules/xo-wallet-components/src/confirm-upop/directive.js","webpack:///../node_modules/xo-wallet-components/src/confirm-upop/init/directive.js","webpack:///../node_modules/xo-wallet-components/src/confirm-upop/init/template.html","webpack:///../node_modules/xo-wallet-components/src/confirm-upop/route.js","webpack:///../node_modules/xo-wallet-components/src/confirm-upop/template.html","webpack:///../node_modules/xo-wallet-components/src/currency-conversion-options/directive.js","webpack:///../node_modules/xo-wallet-components/src/currency-conversion-options/template.html","webpack:///../node_modules/xo-wallet-components/src/fi-contingency-list/contingencies.js","webpack:///../node_modules/xo-wallet-components/src/fi-contingency-list/util.js","webpack:///../node_modules/xo-wallet-components/src/installment-options/directive.js","webpack:///../node_modules/xo-wallet-components/src/pay-upon-invoice/directive.js","webpack:///../node_modules/xo-wallet-components/src/pay-upon-invoice/template.html","webpack:///../node_modules/xo-webpack-config/polyfills.js","webpack:///./js/app.js","webpack:///./js/bootstrap.js","webpack:///./js/lib/contingency.js","webpack:///./js/lib/error.js","webpack:///./js/lib/fallback.js","webpack:///./js/lib/index.js","webpack:///./js/lib/integration.js","webpack:///./js/lib/metaBuilder.js","webpack:///./js/lib/middleware.js","webpack:///./js/lib/miniBrowser.js","webpack:///./pages/xo-add-card/directive.js","webpack:///./pages/xo-add-card/route.js","webpack:///./pages/xo-checkout/directive.js","webpack:///./pages/xo-checkout/route.js","webpack:///./pages/xo-end/directive.js","webpack:///./pages/xo-end/route.js","webpack:///./pages/xo-end/template.html","webpack:///./pages/xo-generic-error/directive.js","webpack:///./pages/xo-generic-error/route.js","webpack:///./pages/xo-generic-error/template.html","webpack:///./pages/xo-generic-message/directive.js","webpack:///./pages/xo-generic-message/route.js","webpack:///./pages/xo-guest-upgrade/route.js","webpack:///./pages/xo-guest/directive.js","webpack:///./pages/xo-guest/route.js","webpack:///./pages/xo-landing/helper.js","webpack:///./pages/xo-landing/route.js","webpack:///./pages/xo-pay-upon-invoice/directive.js","webpack:///./pages/xo-pay-upon-invoice/route.js","webpack:///./pages/xo-sidebar-installment-options/directive.js","webpack:///./pages/xo-sidebar-installment-options/route.js","webpack:///./pages/xo-sidebar/directive.js","webpack:///./pages/xo-sidebar/route.js","webpack:///./pages/xo-signup/directive.js","webpack:///./pages/xo-signup/route.js"],"names":["webpackJsonp","../node_modules/core-js/fn/array/find.js","module","exports","__webpack_require__","Array","find","../node_modules/core-js/fn/array/includes.js","includes","../node_modules/core-js/fn/object/assign.js","Object","assign","../node_modules/core-js/fn/object/entries.js","entries","../node_modules/core-js/fn/object/values.js","values","../node_modules/core-js/fn/string/includes.js","String","../node_modules/core-js/modules/_a-function.js","it","TypeError","../node_modules/core-js/modules/_add-to-unscopables.js","UNSCOPABLES","ArrayProto","prototype","undefined","key","../node_modules/core-js/modules/_an-object.js","isObject","../node_modules/core-js/modules/_array-includes.js","toIObject","toLength","toAbsoluteIndex","IS_INCLUDES","$this","el","fromIndex","O","length","index","value","../node_modules/core-js/modules/_array-methods.js","ctx","IObject","toObject","asc","TYPE","$create","IS_MAP","IS_FILTER","IS_SOME","IS_EVERY","IS_FIND_INDEX","NO_HOLES","create","callbackfn","that","self","f","result","val","res","push","../node_modules/core-js/modules/_array-species-constructor.js","isArray","SPECIES","original","C","constructor","../node_modules/core-js/modules/_array-species-create.js","speciesConstructor","../node_modules/core-js/modules/_cof.js","toString","call","slice","../node_modules/core-js/modules/_core.js","core","version","__e","../node_modules/core-js/modules/_ctx.js","aFunction","fn","a","b","c","apply","arguments","../node_modules/core-js/modules/_defined.js","../node_modules/core-js/modules/_descriptors.js","defineProperty","get","../node_modules/core-js/modules/_dom-create.js","document","is","createElement","../node_modules/core-js/modules/_enum-bug-keys.js","split","../node_modules/core-js/modules/_export.js","global","hide","redefine","PROTOTYPE","$export","type","name","source","IS_FORCED","F","IS_GLOBAL","G","IS_STATIC","S","IS_PROTO","P","IS_BIND","B","target","expProto","own","out","exp","Function","U","W","R","../node_modules/core-js/modules/_fails-is-regexp.js","MATCH","KEY","re","e","../node_modules/core-js/modules/_fails.js","exec","../node_modules/core-js/modules/_function-to-string.js","../node_modules/core-js/modules/_global.js","window","Math","__g","../node_modules/core-js/modules/_has.js","hasOwnProperty","../node_modules/core-js/modules/_hide.js","dP","createDesc","object","../node_modules/core-js/modules/_ie8-dom-define.js","../node_modules/core-js/modules/_iobject.js","cof","propertyIsEnumerable","../node_modules/core-js/modules/_is-array.js","arg","../node_modules/core-js/modules/_is-object.js","_typeof","Symbol","iterator","obj","../node_modules/core-js/modules/_is-regexp.js","isRegExp","../node_modules/core-js/modules/_library.js","../node_modules/core-js/modules/_object-assign.js","DESCRIPTORS","getKeys","gOPS","pIE","$assign","A","K","forEach","k","keys","join","T","aLen","getSymbols","isEnum","concat","j","../node_modules/core-js/modules/_object-dp.js","anObject","IE8_DOM_DEFINE","toPrimitive","Attributes","../node_modules/core-js/modules/_object-gops.js","getOwnPropertySymbols","../node_modules/core-js/modules/_object-keys-internal.js","has","arrayIndexOf","IE_PROTO","names","i","../node_modules/core-js/modules/_object-keys.js","$keys","enumBugKeys","../node_modules/core-js/modules/_object-pie.js","../node_modules/core-js/modules/_object-to-array.js","isEntries","../node_modules/core-js/modules/_property-desc.js","bitmap","enumerable","configurable","writable","../node_modules/core-js/modules/_redefine.js","SRC","$toString","TO_STRING","TPL","inspectSource","safe","isFunction","this","../node_modules/core-js/modules/_shared-key.js","shared","uid","../node_modules/core-js/modules/_shared.js","SHARED","store","mode","copyright","../node_modules/core-js/modules/_string-context.js","defined","searchString","NAME","../node_modules/core-js/modules/_to-absolute-index.js","toInteger","max","min","../node_modules/core-js/modules/_to-integer.js","ceil","floor","isNaN","../node_modules/core-js/modules/_to-iobject.js","../node_modules/core-js/modules/_to-length.js","../node_modules/core-js/modules/_to-object.js","../node_modules/core-js/modules/_to-primitive.js","valueOf","../node_modules/core-js/modules/_uid.js","id","px","random","../node_modules/core-js/modules/_wks.js","_Symbol","USE_SYMBOL","$exports","../node_modules/core-js/modules/es6.array.find.js","$find","forced","../node_modules/core-js/modules/es6.object.assign.js","../node_modules/core-js/modules/es6.string.includes.js","context","INCLUDES","indexOf","../node_modules/core-js/modules/es7.array.includes.js","$includes","../node_modules/core-js/modules/es7.object.entries.js","$entries","../node_modules/core-js/modules/es7.object.values.js","$values","../node_modules/node-uuid/uuid.js","console","__WEBPACK_AMD_DEFINE_RESULT__","_window","_rng","_mathRNG","_nodeRNG","_whatwgRNG","_previousRoot","setupBrowser","_crypto","crypto","msCrypto","getRandomValues","_rnds8","Uint8Array","whatwgRNG","_rnds","r","warn","setupNode","_rb","webpackMissingModule","Error","code","randomBytes","BufferClass","Buffer","_byteToHex","_hexToByte","substr","parse","s","buf","offset","ii","toLowerCase","replace","oct","unparse","bth","_seedBytes","_nodeId","_clockseq","_lastMSecs","_lastNSecs","v1","options","clockseq","msecs","Date","getTime","nsecs","dt","tl","tmh","node","n","v4","rnds","rng","uuid","noConflict","../node_modules/noop-loader/index.js!../node_modules/xo-guest-components/src/guest-upgrade/occupation/template.html","../node_modules/noop-loader/index.js!../node_modules/xo-guest-components/src/login-button/template.html","../node_modules/noop-loader/index.js!../node_modules/xo-guest-components/src/multistep-signup/addCard/template.html","../node_modules/noop-loader/index.js!../node_modules/xo-guest-components/src/multistep-signup/addShipping/template.html","../node_modules/noop-loader/index.js!../node_modules/xo-guest-components/src/multistep-signup/addressNormalization/template.html","../node_modules/noop-loader/index.js!../node_modules/xo-guest-components/src/multistep-signup/createAccount/template.html","../node_modules/noop-loader/index.js!../node_modules/xo-guest-components/src/multistep-signup/template.html","../node_modules/noop-loader/index.js!../node_modules/xo-page-components/src/value-props/template.html","../node_modules/noop-loader/index.js!../node_modules/xo-ui-components/src/escape-hatch/closeFrame/template.html","../node_modules/noop-loader/index.js!../node_modules/xo-ui-components/src/escape-hatch/escapeHatch/template.html","../node_modules/noop-loader/index.js!../node_modules/xo-ui-components/src/generic-message/template.html","../node_modules/noop-loader/index.js!../node_modules/xo-ui-components/src/message/template.html","../node_modules/noop-loader/index.js!../node_modules/xo-ui-components/src/spinner-button/template.html","../node_modules/noop-loader/index.js!../node_modules/xo-ui-components/src/spinner/template.html","../node_modules/noop-loader/index.js!../node_modules/xo-wallet-components/src/3ds/template.html","../node_modules/noop-loader/index.js!../node_modules/xo-wallet-components/src/add-bank/bank-input/template.html","../node_modules/noop-loader/index.js!../node_modules/xo-wallet-components/src/add-card/addCep/template.html","../node_modules/noop-loader/index.js!../node_modules/xo-wallet-components/src/add-card/addbilling/template.html","../node_modules/noop-loader/index.js!../node_modules/xo-wallet-components/src/add-card/addcard/template.html","../node_modules/noop-loader/index.js!../node_modules/xo-wallet-components/src/add-card/creditcard-input/template.html","../node_modules/noop-loader/index.js!../node_modules/xo-wallet-components/src/add-card/selectcard/template.html","../node_modules/noop-loader/index.js!../node_modules/xo-wallet-components/src/add-card/template.html","../node_modules/noop-loader/index.js!../node_modules/xo-wallet-components/src/installment-options/template.html","../node_modules/noop-loader/index.js!./pages/xo-add-card/template.html","../node_modules/noop-loader/index.js!./pages/xo-checkout/template.html","../node_modules/noop-loader/index.js!./pages/xo-generic-message/template.html","../node_modules/noop-loader/index.js!./pages/xo-guest/template.html","../node_modules/noop-loader/index.js!./pages/xo-pay-upon-invoice/template.html","../node_modules/noop-loader/index.js!./pages/xo-sidebar-installment-options/template.html","../node_modules/noop-loader/index.js!./pages/xo-sidebar/template.html","../node_modules/noop-loader/index.js!./pages/xo-signup/template.html","../node_modules/paypal-sdk-constants/dist/paypal-sdk-constants.js","__WEBPACK_AMD_DEFINE_FACTORY__","__WEBPACK_AMD_DEFINE_ARRAY__","root","factory","ppsdkconstants","modules","installedModules","moduleId","l","m","d","getter","o","__esModule","property","p","./src/index.js","srcIndexJs","__webpack_exports__","_COUNTRY_LANGS","COUNTRY","AD","AE","AG","AI","AL","AM","AN","AO","AR","AT","AU","AW","AZ","BA","BB","BE","BF","BG","BH","BI","BJ","BM","BN","BO","BR","BS","BT","BW","BY","BZ","CA","CD","CG","CH","CI","CK","CL","CM","CN","CO","CR","CV","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GI","GL","GM","GN","GP","GR","GT","GW","GY","HK","HN","HR","HU","ID","IE","IL","IN","IS","IT","JM","JO","JP","KE","KG","KH","KI","KM","KN","KR","KW","KY","KZ","LA","LC","LI","LK","LS","LT","LU","LV","MA","MC","MD","ME","MG","MH","MK","ML","MN","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PL","PM","PN","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","ST","SV","SZ","TC","TD","TG","TH","TJ","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","US","UY","VA","VC","VE","VG","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW","LANG","CS","DA","EL","EN","HE","JA","KO","ZH","COUNTRY_LANGS","SDK_SETTINGS","CLIENT_TOKEN","PARTNER_ATTRIBUTION_ID","STAGE_HOST","API_STAGE_HOST","SDK_QUERY_KEYS","COMPONENTS","ENV","DEBUG","CACHEBUST","CLIENT_ID","MERCHANT_ID","LOCALE","CURRENCY","INTENT","COMMIT","VAULT","BUYER_COUNTRY","DISABLE_FUNDING","DISABLE_CARD","LOCALE_COUNTRY","LOCALE_LANG","ORDER_CURRENCY","ORDER_INTENT","ORDER_COMMIT","ORDER_VAULT","BUTTONS","HOSTED_FIELDS","TRUE","FALSE","QUERY_BOOL","LOCAL","STAGE","SANDBOX","PRODUCTION","TEST","FPTI_KEY","FEED","STATE","TRANSITION","BUTTON_TYPE","SESSION_UID","BUTTON_SESSION_UID","TOKEN","CONTEXT_ID","CONTEXT_TYPE","REFERER","PAY_ID","SELLER_ID","DATA_SOURCE","BUTTON_SOURCE","ERROR_CODE","ERROR_DESC","PAGE_LOAD_TIME","EXPERIMENT_NAME","TREATMENT_NAME","TRANSITION_TIME","FUNDING_LIST","FUNDING_COUNT","CHOSEN_FUNDING","BUTTON_LAYOUT","VERSION","INTEGRATION_IDENTIFIER","SDK_NAME","SDK_VERSION","USER_AGENT","USER_ACTION","CONTEXT_CORRID","FPTI_USER_ACTION","CONTINUE","FPTI_DATA_SOURCE","PAYMENTS_SDK","FPTI_FEED","FPTI_SDK_NAME","CAPTURE","AUTHORIZE","ORDER","AUD","BRL","CAD","CZK","DKK","EUR","HKD","HUF","INR","ILS","JPY","MYR","MXN","TWD","NZD","NOK","PHP","PLN","GBP","RUB","SGD","SEK","CHF","THB","USD","PLATFORM","DESKTOP","MOBILE","FUNDING","PAYPAL","VENMO","CREDIT","CARD","IDEAL","SEPA","BANCONTACT","GIROPAY","SOFORT","EPS","MYBANK","P24","ZIMPLER","WECHATPAY","VISA","MASTERCARD","AMEX","DISCOVER","HIPER","ELO","JCB","CUP","DEFAULT_COUNTRY","DEFAULT_CURRENCY","DEFAULT_INTENT","DEFAULT_COMMIT","DEFAULT_VAULT","DEFAULT_COMPONENTS","DEFAULT_DEBUG","../node_modules/paypal-sdk-constants/index.js","../node_modules/squid/dist/core/api.js","$Api","$getLatestCorrelationID","_jquery","_jquery2","_interopRequireDefault","_logger","_event","_class","_util","_promise","_config","_error","_loader","default","$meta","headers","JSON","cookiesEnabled","$util","location","hostname","cache","standardHeaders","latestCorrelationID","correlationId","windowLoad","memoize","$promise","resolver","resolve","readyState","addEventListener","batchQueue","pre","transientCache","transientCacheResolvers","metaBuilder","preload","method","url","data","uri","resolvers","pop","preloadComplete","$logger","info","$Class","extend","timeout","getAttempts","postAttempts","action","_action","post","retrieve","api","getURI","model","params","buildAPIName","meta","buildMeta","transientError","cacheKey","buildURL","silent","$event","emit","first","providing","hasTransientCacheData","attemptRequest","batch","batchRequest","then","handleResponse","err","$BatchShortCircuit","reject","handleErrorResponse","assert","buildBatchRequest","results","debounce","batchIds","batchData","batchId","opts","dependencies","$batchApi","handleBatchResponse","promises","run","depsPresent","every","depName","dependency","available","ack","addTransientCacheData","attempts","attempt","remaining","getTransientCacheResponse","getHttpResponse","status","contingency","$ApiError","stack","transient","error","startTime","now","request","http","duration","saveResponseState","loggerPayload","server","time","corrid","performance","getEntries","resource","referenceId","setTransientCache","getTransientCacheData","$config","enablePreload","preMethod","preUri","Boolean","$loader","firstLoad","getHeaders","csrfJwt","X-Requested-With","x-csrf-jwt","stringify","httpJQuery","getRes","getResponseHeader","success","responseJSON","noop","statusText","ajax","loggerName","resultModel","populate","fetchChildren","children","failSilently","$Contingency","errorData","handler","contingencies","message","validation","properties","reason","$Forbidden","relative","substring","component","ext","baseURI","urls","baseUrl","apiName","charAt","reopenClass","clearCache","registerMetaBuilder","builder","addHeader","angular","../node_modules/squid/dist/core/class.js","EmptyConstructor","instance","_extend","isobject","transpose","recipient","args","ob","item","__name__","construct","init","reopen","__classmethods__","isChild","Cls","className","argsLength","startIndex","match","eval","_super","_get","path","def","_set","each","callback","_keys","set","setProperties","../node_modules/squid/dist/core/config.js","$cookies","cookies","config","../node_modules/squid/dist/core/dom.js","$dom","elementReady","getElementById","interval","setInterval","clearInterval","setTimeout","loadScript","src","attributes","script","loadTimeout","clearScriptLoadTimeout","clearTimeout","onload","onreadystatechange","onerror","event","setAttribute","_iterator","_isArray","_i","_ref","next","done","attribute","body","appendChild","cssReady","check","styleSheets","stylesheet","href","../node_modules/squid/dist/core/error.js","$ShortCircuit","$FallbackError","$Error","monkeyPatch","file","line","col","payload","handle","handlers","product","entryPoint","../node_modules/squid/dist/core/event.js","customEventEmitter","use","eventEmitter","eventName","_iterator2","_isArray2","_i2","_ref2","on","cancelled","cancel","splice","once","listener","_customEventEmitter","preventDefault","defaultPrevented","_iterator3","_isArray3","_i3","_ref3","broadcast","_customEventEmitter2","refCount","$scope","start","stop","count","cancelStartListener","$on","cancelStopListener","compose","end","startAll","endAll","active","getCount","isActive","reset","../node_modules/squid/dist/core/index.js","_api","_integration","_model","_dom","../node_modules/squid/dist/core/integration.js","$integration","$CONTEXT","$DEFAULT","FULLPAGE","POPUP","LIGHTBOX","WEBVIEW","NATIVE_CHECKOUT","flow","setFlow","setContext","getContext","isIFrame","isPopup","opener","top","isContext","isFlow","getConfig","../node_modules/squid/dist/core/loader.js","_firstLoad","loader","isLoading","../node_modules/squid/dist/core/model.js","$Model","onPopulate","_cache","_modelCache","populated","invalidated","onInvalidate","fetchMock","retriever","save","serialize","reload","log","invalidate","child","_child","parent","_children","map","modelCache","retrieveInstance","fetch","bulkInvalidate","invalidationKey","modelInstance","instanceId","../node_modules/squid/dist/core/promise.js","Promise","CustomPromise","sequential","methods","prom","sleep","items","all","hash","collection","condition","until","pollTime","alwaysResolve","handlerResult","shortCircuit","../node_modules/squid/dist/core/util.js","$unresolved","isUnsafeRedirect","$getRedirectUrl","$dispatch","$experiment","_angular","redirected","paramCache","blacklist","blacklistRegex","RegExp","sanitizeUrlForLogging","inputUrl","idleTimeout","redirect","frameBust","redir","onunload","onbeforeunload","flush","cookie","storageEnabled","setItem","removeItem","sessionStorageEnabled","localStorageEnabled","string","queryString","pair","decodeURIComponent","search","idx","rIdx","lastIndexOf","queryStringSplice","qs","insert","remove","paramToQueryString","filter","sort","encodeURIComponent","param","$param","hashParam","base64Decode","encodedString","atob","base64Encode","decodedString","btoa","decodeAndParse","$assert","$map","array","$filter","deploy","isLocal","isStage","$log","findIndex","range","pad","$pad","char","padding","some","$some","$every","reduce","$reduce","intial","_len","_key","paramKeys","paypalURL","stage","host","override","methodName","existing","memoized","_","enablePerformance","parseInt","bindObject","bind","hashStr","str","chr","len","charCodeAt","abs","popup","win","open","checkWindowClosed","closed","close","unique","mod","prop","_this","_arguments","called","camelToDasherize","g","camelToCapsUnderscore","toUpperCase","dasherizeToCamel","parentWindow","hasRTL","test","oAsString","_this2","_len2","_key2","functionCall","getProperty","_options$splitOn","splitOn","defaultValue","pathArray","shift","catch","urlParams","dispatch","fallbackUrl","cmd","stateChange","fromState","toState","sample","throttle","group","from","to","pxp_exp_id","pxp_trtmnt_id","../node_modules/squid/dist/index.js","_ng","_core","_locale","_paypal","../node_modules/squid/dist/locale/currency.js","getCurrencySymbol","truncateCurrencyConversionString","roundingAndSeparators","formatCurrency","ALL_NON_BREAKING_SPACE","CODE_IN_FRONT","ENDS_IN_WHITESPACE","THOUSANDS_SPLITTER","HUNDREDS_SPLITTER","STYLE_EXCEPTION","tr TR TRY","AmountOnlyStyle","HUNDREDS_SEPARATOR_EXCEPTION","maybeIgnoreSymbol","style","symbol","fuzzyMatch","codeParts","symbolParts","equivalency","equiv","codePart","symbolPos","weight","ignoreSymbol","amountString","lang","country","decimalPlaces","dot","comma","parseFloat","truncate","amountParts","round","exception","wholeString","decimalString","forceCodeToRight","parts","endsWithWhitespace","newStyle","getFinalStyle","styleString","_ref4","_ref4$symbol","currencyStyle","_currencyStyle$split","positiveStyle","negativeStyle","baseStyle","griffinStyle","applyCurrencyStyle","finalStyle","amountFormatted","_ref5","_ref5$wrapCodeInSpan","wrapCodeInSpan","absoluteAmountFormatted","amount","_ref6","$locale","metadata","_ref6$number","number","numberConfig","_ref6$currency","currency","currencyConfig","_currencyConfig$digit","digits","_currencyConfig$style","styles","_currencyConfig$suppo","supportedSymbols","currencySymbols","DECIMAL_SEP","GROUP_SEP","_ref7","fullString","amountForex","allArgsAreStrings","_ref8","_ref8$currency","../node_modules/squid/dist/locale/feature.js","$feature","$featureCountries","features","regions","region","DEFAULT","allCountries","countries","../node_modules/squid/dist/locale/index.js","_currency","_feature","_name","_quantity","../node_modules/squid/dist/locale/locale.js","$localeHelper","$LocaleModel","$MetadataModel","$ContentModel","sanitize","Content","$contentVersion","$renderContent","$flushContent","html","JSONStringify","props","cacheVal","render","toSafeString","safeString","contentCache","propStr","currentVersion","addContent","content","countryCache","metadataCache","addMetadata","metadataVersion","PP_SPECIAL_COUNTRIES_ISO_CODES","C2","staticUrl","countryCode","change","setVersion","versionPxpName","metadataVersionName","metadataPxpExperiments","pxp","$pxp","experimentName","ctx.COUNTRY","ctx.LANGUAGE","experimentTreatmentName","treatment","_this3","noBroadcast","choose","chosenCountry","chosenLang","supportedCountries","normalizeAddressFields","CONTENT_MAPPING","line1Label","line2Label","cityLabel","stateLabel","postcodeLabel","addressEntry","strings","mapLanguage","unselectableLanguages","corp","betaLanguages","unsupportedLanguages","loadedData","chooseCountry","chooseLang","getLocaleCode","getCountryCodeISO","normalizeLocale","locale","language","../node_modules/squid/dist/locale/name.js","formatNameInformal","SUBSTITUTED_FIELDS","givenName","surname","isLatin","layoutMetadata","nameInformal","layout","first_name","last_name","formattedName","namePart","../node_modules/squid/dist/locale/quantity.js","formatQuantity","quantity","_ref$number","../node_modules/squid/dist/module.js","../node_modules/squid/dist/ng/component.js","$Component","$populate","_directive","$registerDirective","restrict","link","$element","$attrs","stopPropagation","$form","closest","form","formID_element","formID_linked","isLinkedForm","element","scope","addClass","validated","$setSubmitted","$valid","$eval","validateSubmit","$injector","focus","assertModelsRetrievedOrEmpty","setUpComponentRoute","componentRoute","goto","route","parentRoute","parentScope","parentDirective","getDirective","childSpec","viewConfig","getDirectiveTag","validate","tag","wrapperType","template","rootEvents","actions","lifecycle","enter","reenter","exit","=","@","required","isRequired","optional","spec","var","originalController","controller","UNDEFINED","fields","display","componentScope","$parent","_enablePopulateEvents","invoke","cancelReEnterEvent","$emit","resolverPromises","resolvedData","populatedEvent","isLive","isTest","componentName","SubClass","directive","$rootScope","$new","attrs","cleanRootScope","$cleanRootScope","$compile","append","afterEach","$destroy","isolateScope","updateProps","$digest","autoConvertDirectiveToComponent","transclude","componentize","$compileProvider","instances","promise","../node_modules/squid/dist/ng/core.js","$broadcast","$q","../node_modules/squid/dist/ng/directive.js","_angular2","definition","directiveName","../node_modules/squid/dist/ng/events.js","_uiRouter","startLoadTime","currentState","currentStateName","$state","current","timing","connectEnd","navigationStart","newState","../node_modules/squid/dist/ng/feature.js","attr","enabled","feature","unlessFeature","../node_modules/squid/dist/ng/index.js","_route","_component","_module","_events","_pxp","_lazyLoadRoutes","../node_modules/squid/dist/ng/lazyLoadRoutes.js","lazyLoadRoute","findRelativeState","initRoute","getHash","getParentState","getRoute","slug","lazyLoadChildren","lazyRoute","routeObj","fullRoutePath","childRoute","childAttributes","register","findAndPromisifyRoutes","targetState","splittedTargetState","states","routes","state","isRelative","stateName","stateOrName","base","rel","targetParams","shouldChangeState","go","errorMessage","errorStack","codeSplitting","fromHash","oldURL","toHash","newURL","getHashQueryParams","splittedPath","hashParams","hashQueryParams","../node_modules/squid/dist/ng/locale.js","__dirname","__filename","htmlContent","$watch","bindHtmlCompile","contents","format","amount_formatted","$sce","trustAsHtml","newValue","oldValue","exportProviders","../node_modules/squid/dist/ng/module.js","../node_modules/squid/dist/ng/ng.js","$angularInvoke","$once","rootScope","autoCleanupEventHandlers","eventHandlers","eventCancelers","autoCleanedUpCancel","reference","canceler","eventHandler","../node_modules/squid/dist/ng/pxp.js","pxpRes","trackingData","pxpData","../node_modules/squid/dist/ng/route.js","$ComponentRoute","$Route","query","hasResolver","view","$location","routeName","isString","ChildRoute","childName","absolutePath","bootstrap","defaultState","middleware","injector","load","logStateNotFoundAndThrow","unfoundState","fromParams","_ref$logName","logName","toParams","$urlRouterProvider","otherwise","runMiddleware","loadDefaultState","logUnknownState","priority","constructTemplate","$stateProvider","paramString","auth","assertActive","isState","getPageTitle","titleContent","changePageTitle","documentElement","fullStateTitle","stateTitle","title","../node_modules/squid/dist/paypal/config.js","_env","$env","../node_modules/squid/dist/paypal/env.js","isSandbox","../node_modules/squid/dist/paypal/index.js","../node_modules/squid/dist/paypal/pxp.js","$PXPModel","$getPxpTreatments","$pxpMatch","$pxpFactors","$elmo","logPxp","logPayload","exp_name","xe","xt","isElmoExperiment","treatments","treatment_name","experiment","pagename","experiment_id","treatment_id","loc_country","loc_lang","exp_source","forceApiCall","forceTreatments","cached","pattern","experimentResponse","factors","patterns","pxpResponse","pxpFactors","../node_modules/ul-inline/dist/inject.js","unifiedLogin","height","frameborder","scrolling","sandbox","origin","protocol","h","q","heightInPx","x","w","v","targetElement","u","queryParams","iframePathname","xhrRequest","preLoadedSource","t","hasChildNodes","removeChild","lastChild","iframeType","onPostMessage","iframe","onPostMessageCallback","attachEvent","parentNode","contentWindow","outerHTML","write","XMLHttpRequest","ActiveXObject","responseText","send","inlineUlContents","inject","copyPasteIframe","removeTargetElement","messageDispatcher","nonPostMessageDispatcher","../node_modules/xo-address-components/src/add-address/directive.js","$xoAddAddressComponent","_squid","_index","_template","_template2","address","isShipping","hideButtonHandler","hideCep","hideAddPreferred","hideName","triggerZipCodeBlur","triggerZipCodeKeyPress","renderBillingAddCheckbox","sortStates","onCountryChange","getSortedStateList","attrPrefix","normalizeCountry","isAddPreferred","isAddressLookupEnabled","isShowLookupFields","statesList","sname","localeCompare","sortedStatesList","formatZip","unformatted","postal_code","formatted","getAddress","COMMA","SPACE","line1","line2","prefix","prefixStr","deliveryAddresses","displayLine1","displayLine2","city","displayLine3","dropDownAddress","populateAddressFormFields","neighborhood","populateErrorMessage","messages","lookupFailureMessage","msgs","isLookupFailure","processLookupResult","list","isLookupSuccess","isShowLookupDropDown","lookupAddressList","addr","singleAddress","lastPrefilledZip","prefill","cepPattern","prefillAddress","$PrefillAddressModel","token","findAddress","lookupAddress","house_number","building_name","querySelector","classList","add","isLookupProcessing","INTERNAL_ERROR","changeAddressDropDown","selectedAddress","showFullAddress","stateNamesInGroup","retrieveStateNamesInGroup","groups","groupName","common","zipCodeBlur","zipCodeKeyPress","../node_modules/xo-address-components/src/add-address/template.html","../node_modules/xo-address-components/src/address-display/directive.js","$xoAddressDisplayComponent","showPreferred","displayFormattedAddr","formatAddress","country_code","isPreferred","preferred_address","formattedAddr","$watchCollection","newVal","../node_modules/xo-address-components/src/address-display/styles.less","../node_modules/xo-address-components/src/address-display/template.html","../node_modules/xo-address-components/src/address-normalization/directive.js","$","doneFn","sidebar","hideBackButton","showNormalization","normalize","userEnteredAddress","addrFormat","addressSelected","transitionName","fromJson","toJson","streetNumber","servAddress","normalization_status","addressNormalization","$AddressNormalizationModel","centerLightBox","windowElement","lboxContainerElem","css","outerHeight","computedLeft","width","outerWidth","leftBound","left","elementLeft","trinityResponseCallback","$timeout","resize","VALIDATION_ERROR","normalizedAddress","streetName","isEqual","desensitizedAddress","trim","address1","address2","addressOne","addressTwo","isLine2First","onBack","selection","onContinue","addressNormalizationForm","$modelValue","isBack","../node_modules/xo-address-components/src/address-normalization/route.js","$AddressNormalizationRoute","fptiState","buzname","fullpage","pagename2","loginRequired","../node_modules/xo-address-components/src/address-normalization/styles.less","../node_modules/xo-address-components/src/address-normalization/template.html","../node_modules/xo-beaver/dist/level.js","INFO","ERROR","WARN","ALERT","debug","alert","../node_modules/xo-beaver/dist/logger.js","_level","logger","HERMES_DEV_COOKIE","$logLevel","level","settings","$window","uniqueEvents","autoLog","WARNING","flushInterval","heartbeatInterval","sizeLimit","debounceInterval","rootTxnUri","hearbeatMaxThreshold","buffer","previousBeforeUnloadHandler","isDone","previousUnloadHandler","_flush","heartbeat","daemon","timestamp","perf","howBusy","lastSampledTime","lastLag","maxLag","dampendedLag","$interval","toFixed","noConsole","addPerformanceData","clientStartTime","isUndefined","client_elapsed","req_elapsed","addLocaleData","buildContext","site_cntry","pageID","print","enqueue","getTimestamp","logOffset","shouldPrintLogsToConsole","warning","$consoleLogLevel","immediate","when","debouncer_timeout","debouncer_resolver","debouncer_promise","build","req","logURL","events","json","XRequest","logAppName","setRequestHeader","timer","createCalRootTxn","txnName","rootTxnData","transactionName","Logger","$Logger","beaconQueue","beacon","../node_modules/xo-device-info/dist/index.js","userAgent","navigator","standalone","DEVICE_PATTERN","TABLET_PATTERN","IOS_PATTERN","getIntegrationContext","integrationKey","integrationContext","integrationCTX","isWebView","logEnabled","ua","ios","android","ios_uiwebview","isSafariViewController","logWebView","allowedXRequestedWithRegexMap","baiduBrowser","operaMini","maxthon","litterPenguinBrowser","xRequestedWithHeaderVal","requestHeaders","device","isDevice","isTablet","isMobile","getDevicePlatform","matched","isApp","uaString","indexedDB","getCapabilities","capabilities","tablet","app","isWireless","isDesktop","getAppIntegrationType","app_int_type","isSafariiOSBrowserView","safari","isIOSApp","isChromeOnIOS","isFirefoxOnIOS","isSafariBrowserOnly","getiOSVersion","../node_modules/xo-form-components/src/dob-input/directive.js","require","ctrl","isValidDate","isValidAge","isValid","dobToolTip","year","month","day","date","fullYear","getFullYear","dateMonth","getMonth","dateDay","getDate","isOfLegalAge","birthDate","tempDate","setHours","parseDob","inputVal","sep","dateSeparator","partsArr","sec","third","dateFormat","dayLen","monLen","yrLen","validDay","validMon","validYr","requirement","user","dob_day","dob_month","dob_year","$setValidity","dobValidator","ngModelValue","input","dateMask","mask","translation","Z","0","onComplete","dobTester","$parsers","DateManager","griffinDateEntry","_init_","dateEntry","getDateSeparator","getDateFormat","dateRegex","getDateRegex","getDateMask","getDobNumericCheck","griffinDateFormat","dateFormatComponents","dIdx","mIdx","formatComponentMap","getFormatComponentIdxMappings","setDobTextPlaceHolder","dobTextPlaceholder","dobTextKeyupHandler","updateDobBindings","dobTextInputType","cleanedDob","dob","escapedRegexChars","assembledRegex","ret","getDateSeparators","ele","iter","updateDateInputForFormat","oldFormat","newFormat","oldSeparator","curDateVal","formatComponentIdxMappings","oldFormatIdxMapping","newFormatIdxMapping","oldDateComponents","newDateComponents","DMY","MDY","YMD","prefillFetchedDob","onDobTextKeyup","oldDateFormat","../node_modules/xo-form-components/src/dob-input/template.html","../node_modules/xo-form-components/src/gender-type/directive.js","../node_modules/xo-form-components/src/gender-type/styles.less","../node_modules/xo-form-components/src/gender-type/template.html","../node_modules/xo-form-components/src/inventory-soldout/directive.js","continueShoppingHandler","$ReturnToMerchant","goTo","soldOutUrl","landing_page","int_error_code","int_error_description","item_name","../node_modules/xo-form-components/src/inventory-soldout/route.js","$xoSoldOutPageRoute","_directive2","templateName","pageGoal","../node_modules/xo-form-components/src/inventory-soldout/template.html","../node_modules/xo-form-components/src/language-options/directive.js","VALID_DIRECTION","isValidDirection","direction","showLanguages","setLanguageVars","localeModel","currentLanguage","currentCountry","languageList","languageLabel","supportedLanguages","hasMultipleLanguages","selectLanguage","toggle","parents","$apply","../node_modules/xo-form-components/src/language-options/template.html","../node_modules/xo-form-components/src/name-input/directive.js","handleCountryChange","../node_modules/xo-form-components/src/name-input/template.html","../node_modules/xo-form-components/src/national-id-input/directive.js","cpfValidator","v2","dv1","dv2","nricFinValidator","idType","nationalIdModel","nationalId","validateSNILSChunk","sum","checksum","remainder","validateSNILS","Number","snilsNumber","multiplier","validateINNChecksum","factor","valueLength","sumn","validateINN","unshift","validateOMS","idValidator","secondaryType","secondaryIdType","passportMask","countryOfResidence","unmask","$NationalIdModel","checkoutCart","$CheckoutCartModel","formattedValues","showNationalIdFields","payer","tax_id","countryChanged","minLengthNatId","maxLengthNatId","cpfMasking","secondaryIdFormatting","$el","secondaryIdValue","secondaryIdChange","currentSecondaryId","secondaryIds","maxLength","minLength","minlength","maskCharLength","sgIdChange","setLocalizedNatIDLabels","nationalIds","PASSPORT","addTaxId","passport","NATID","natid","TNID","tnid","DL","dl","setLocalizedRUContent","territory","INN","SNILS","OMS","subType","nativeName","../node_modules/xo-form-components/src/national-id-input/template.html","../node_modules/xo-form-components/src/phone/directive.js","_auth","_index2","showPhoneDisclosure","phoneConsent","consentContentKey","msgKeys","userInfo","$UserInfoModel","phone","CONTENT_KEY","INVALID_PHONE_NUMBER","numberError","typeError","contentKey","msg","validationErrorHandler","$AuthModel","logout","showNotYou","is_auth_api_call","onSubmit","consent","agreed","contentId","$CheckoutSessionModel","NEED_CREDIT_CARD","EXPIRED_CREDIT_CARD","../node_modules/xo-form-components/src/phone/lib/territoriesByCode.js","AC","phoneCountryCode","showCountryCodeList","AF","AQ","AS","BD","BL","BQ","BV","CC","CF","CU","CW","CX","EH","GG","GH","GQ","GS","GU","HM","HT","IM","IO","IQ","IR","JE","KP","LB","LR","LY","MF","MM","MO","MP","PK","PR","PS","SD","SS","SX","SY","TF","TK","TL","UM","hideInOtherCountries","UZ","VI","../node_modules/xo-form-components/src/phone/phoneInput/directive.js","reqiured","showPhoneType","hideWork","exclude","hidePhoneType","getTreatment","../node_modules/xo-form-components/src/phone/phoneInput/template.html","../node_modules/xo-form-components/src/phone/phoneInputA/directive.js","_territoriesByCode","_territoriesByCode2","IntDialingCodes","defaultCountryPhoneCode","hideCountry","dropdownCountry","phoneType","IntDialingCountryCode","getPhoneMask","phoneEntry","defaultMask","masks","mobileMask","fixedLineMask","FIXED_LINE","getPhonePattern","defaultPattern","GENERAL","populatePhoneMetadata","copy","phoneTypeChanged","showWork","../node_modules/xo-form-components/src/phone/phoneInputA/styles.less","../node_modules/xo-form-components/src/phone/phoneInputA/template.html","../node_modules/xo-form-components/src/phone/phoneInputB/directive.js","KEYS","ENTER","UP","DOWN","TAB","ESC","queryTimer","DEFAULT_PATTERN","DEFAULT_MASK","updatePhoneMaskAndPattern","localization","phoneCountry","applyMaskOnPhoneInput","getPhoneDialingCode","overrides","regionalOverrides","internationalDialingCode","updateDialingCodeAndCountry","text","updatePhoneFieldMetadata","listVisible","collapseListAndFocusOnParent","getTerritoryDataFromMetadata","dialingCodeList","showDialingCodeContainer","_$locale$metadata","_$locale$metadata$ter","_$locale$metadata$add","additionalDialingCodes","_$config$dialingCodeB","dialingCodeBlacklist","territoryData","expandList","show","collapseList","toggleList","highlightListItem","listItem","removeClass","selectListItem","searchForCountry","startsWith","updateAngularModel","ispreFill","telephone","handleListMouseover","handleKeyboardInputForDropdown","which","handleKeyboardInputForList","$listItems","$selected","$current","fromCharCode","eq","last","prev","trigger","addressChangeEvent","../node_modules/xo-form-components/src/phone/phoneInputB/styles.less","../node_modules/xo-form-components/src/phone/phoneInputB/template.html","../node_modules/xo-form-components/src/phone/template.html","../node_modules/xo-form-components/src/place-of-birth/directive.js","populateCountryList","guestBlockedCountries","placeOfBirth","countriesList","selectedPlaceOfBirth","placeofbirth","updatePlaceOfBirth","../node_modules/xo-form-components/src/place-of-birth/template.html","../node_modules/xo-form-components/src/select-shipping-country/directive.js","shippingAddress","disableChangeShippingCountry","getList","defaultCountryCode","countryList","isDefaultCountry","defaultCountry","../node_modules/xo-form-components/src/select-shipping-country/template.html","../node_modules/xo-form-components/src/travel-rule/directive.js","_index3","_utilFunctions","finish","onUserInfoSuccess","models","checkoutSession","submit","needPayerGovtId","chosenIdDetails","idTypes","findChosenId","idData","newDocId","idSubtype","issuerCountry","issuer","idIssuer","collectionPoint","placeOfIssue","needPayerAddress","newAddress","zip","iso_country","baToken","billing","ba_token","validationData","$field","getIdTypes","getIdData","idTypeChanged","payerDetailsTypes","../node_modules/xo-form-components/src/travel-rule/styles.less","../node_modules/xo-form-components/src/travel-rule/template.html","../node_modules/xo-form-components/src/travel-rule/utilFunctions.js","../node_modules/xo-form-components/src/zipcode/directive.js","keyPressFn","postalCodeLabel","zipEntry","zipErrorKey","zipLabel","zipRequired","formatRegex","inputParams","formatPattern","formatZipWithDash","zipcode","changeZip","doneFunction","keyPressHandler","../node_modules/xo-form-components/src/zipcode/template.html","../node_modules/xo-guest-components/src/fraudnet/fn.js","fncls","fnSessionId","getFnCorrId","sourceId","allowsCustomEvent","CustomEvent","fnUrl","fraudnetUrl","passive","fnCorrId","fraudNetId","_injectScript","_injectConfig","configOptions","fnLoaded","fnCallback","../node_modules/xo-guest-components/src/guest-upgrade-interstitial/constants/pxpExperimentConstants.js","frs_wps_optional","frs_wps_optional_treatment1","subTitle","frs_wps_optional_treatment2","frs_wps_optional_treatment3","../node_modules/xo-guest-components/src/guest-upgrade-interstitial/directive.js","_pxpExperimentConstants","_pxpExperimentConstants2","parentModel","flags","wpsInterstitial","showMobileEmailSection","onboard","frsContentKeys","showNewSignupComplianceExp","freeReturnShippingOptInFlowApplicable","treatmentName","freeReturnShippingApplicableTreatment","treatmentContentKeys","interstitialOpen","handleFrsContingency","logFptiFrsError","handleFrsError","upgrade","$GuestUpgradeModel","billing_address","payerId","transaction","marketing_optin","marketingOptin","experienceChannel","isFrsOptInFlow","isFrsActiveFlow","freeReturnShippingOptInActiveFlow","frsOptInModel","$FreeReturnShippingOptInModel","frsOptInRequest","optInStatus","optInType","optInResponse","FRS_OPTIN_ERROR","errorResponse","DOB_INVALID","NATID_INVALID","../node_modules/xo-guest-components/src/guest-upgrade-interstitial/route.js","squid","trackStateExit","pageQualifier","guest","../node_modules/xo-guest-components/src/guest-upgrade-interstitial/template.html","../node_modules/xo-guest-components/src/guest-upgrade/directive.js","_index4","_mapper","_mapper2","_fpti","_gdprCookieBanner","_helper","preloadedData","upgradeFromEmail","singlePassword","returnToMerchantTimerMsg","valueTitle","valueText","footerStyle","isGdprValid","miniBrowser","cancelUrl","postToMerchant","secureWindowmsg","modelSchema","$OnboardUserModel","nationality","$OnboardPhoneModel","$BillingAddressModel","fpti","trackSuccess","track","trackError","suffix","guestupgrade","$fpti","setupDataString","currentYear","validMonths","num","isGDPRCountry","signupLib","getIsGDPRCountry","showMarketingOptin","getMarketingOptinShowHide","getMarketingOptinIsChecked","marketingOptinContentKey","getMarketingOptinContentKey","getContentIdentifier","getFiMode","fi_details","_ref$bank_accounts","bank_accounts","eConsentTermsContent","getSignupTermsContentKey","guestUpgradeNewAppRedirect","redirectUrl","transactionId","getFormattedAddress","specialFields","getSpecialFieldsFor","contentIdentifier","hasDialingCodeOverride","card","receiptId","experienceIdentifier","email","pxpMapper","special_fields","txn_id","uponNormalization","showAddressNormalizationLightbox","showSuccessPage","successUrl","timerExecutor","waitTime","updateMsg","stopTimerAndRedirect","isDefined","handleUIValidation","displayGenericMessage","errorMapper","$fields","pageErrorMsg","genericError","incontextGenericPageError","serializeEmailFlow","validDOB","PHONE_INVALID","validPhone","validNationalId","ADDRESS_LINEONE_INVALID","ADDRESS_CITY_INVALID","ADDRESS_STATE_INVALID","ADDRESS_POSTAL_CODE_INVALID","PASSWORD_INVALID","FI_INVALID","contingency_name","formatExpiry","keyCode","charCode","strokes","expiryDate","expDate","today","../node_modules/xo-guest-components/src/guest-upgrade/lib/mapper.js","FIELD_SETS","set1","set2","set3","set4","set5","set6","set7","FIELDS","arrayToObject","AUStateCodeMap","australiancapitalterritory","newsouthwales","northernterritory","queensland","southaustralia","tasmania","victoria","westernaustralia","errorMap","field","proxSignupTitleTreatment","proxSinglePasswordTreatment","pageTitle","signup","eBayTitle","../node_modules/xo-guest-components/src/guest-upgrade/occupation/directive.js","occupations","occupationList","../node_modules/xo-guest-components/src/guest-upgrade/template.html","../node_modules/xo-guest-components/src/guest/cartChanged/directive.js","_checkout","_errorHandlerHelper","errorHandlerHelper","_interopRequireWildcard","_xoShippingOptions","newObj","checkForShippingOptions","shippingOptions","selectedShippingOption","onShippingOptionSelect","onShippingChange","showForm","checkoutAppData","$CheckoutAppDataModel","callOnShippingChange","isCallbackInterstitial","xprops","initialMessage","changeMessage","computedMessage","wrappedOnShippingOptionSelect","option","userSelected","openForm","closeForm","overflow","cartOptions","showTotal","showContainer","updateShippingAddress","shipping","errorHandler","merchant","getMerchantDisplayName","fullName","fullAddress","full_address_multiline","formattedAddress","modalOpen","updateShippingOrContinue","returnToMerchant","cancel_url","$xoShippingOptions","../node_modules/xo-guest-components/src/guest/cartChanged/template.html","../node_modules/xo-guest-components/src/guest/constants/constants.js","submitButtonGuestTextKeyMap","commit","notCommit","commitInCurrency","notCommitInCurrency","submitButtonSignupTextKeyMap","SUBSCRIPTION_SUBMIT_BUTTON_KEY","SUBMIT_BUTTON_TEXT_KEY_MAP","ROW","pomaSignup","RTR_AMOUNT","SHIPPING_TYPE_LABEL_MAPPING","PICKUP","PICKUP_IN_STORE","STORE_PICKUP","PICKUP_OPTION","COLLECTION","EXPRESS_PICKUP","CLICK_COLLECT","SHIP_TO_STORE","COLLECT_PLUS","PICKUP_FROM_STORE","FREE_NEXT_DAY_STORE_DELIVERY","BUY_AND_COLLECT","SHIP_TO_LOCKER","SHIPPING","SHIP_TO_HOME","OVERNIGHT","TWO_THREE_DAYS","SHIPPING_TYPE_MAPPING","../node_modules/xo-guest-components/src/guest/constants/errorHandlerConstants.js","validationErrorMap","errorElementMap","loginRedirectUrl","hermesLoginRedirect","doubleEncodeUrl","loginPageUrl","landingPageUrl","authflowRedirectUrl","INVALID_FIRST_NAME","INVALID_LAST_NAME","INVALID_PHONE_TYPE","INVALID_CITY_STATE_ZIPCODE","INVALID_LINE1","INVALID_CITY","INVALID_STATE","INVALID_ZIPCODE","INVALID_NATIONAL_ID_TYPE","INVALID_NATIONAL_ID","INVALID_SECONDARY_ID_TYPE","INVALID_SECONDARY_ID","INVALID_BILLING_ADDRESS","INVALID_SHIPPING_ADDRESS","INVALID_EXPIRATION_DATE","pageError","PASSWORD_TOO_LONG","PASSWORD_CONTAINS_FORBIDDEN_WORDS","PASSWORD_HAS_ILLEGAL_CHARACTERS","ACCOUNT_ALREADY_EXISTS","guestcontentKey","compileMessageWith","scrollToTop","ACCOUNT_ALREADY_EXISTS_AUTHFLOW_REDIRECT","INVALID_EMAIL_ID","REJECT_REFUSED","INVALID_INSTRUMENT_ID","ADDRESS_MISMATCH","CHECK_DIGITS_REJECTED","OAS_GENERIC_ERROR","BIN_BLOCKED_OR_CARD_NOT_ALLOWED","INVALID_CARD_OR_TYPE","INVALID_SECURITY_CODE","COUNTRY_NOT_SUPPORTED","CARD_GENERIC_ERROR","BANK_GENERIC_ERROR","INVALID_ROUTING_NUMBER","INVALID_ACCOUNT","ISSUER_DENIED","ISSUER_REJECTED","../node_modules/xo-guest-components/src/guest/constants/pxpExperimentConstants.js","singlepassword","singlepassword_test","xoon_optional_signup_content_change","xoon_optional_signup_content_change_gb_test","yesCreateAccount","xoon_optional_signup_content_change_test1","xoon_optional_signup_content_change_test2","xoon_optional_signup_content_change_test3","xoon_optional_signup_content_change_test4","frsPageName","wps","guestonly","ec","xoon_forced_signup_buyer_protection_content","xoon_forced_signup_buyer_protection_content_treatment_a","titleLine1","titleLine2","xoon_forced_signup_buyer_protection_content_treatment_b","frs_ec_optional","frs_ec_optional_treatment1","frs_ec_optional_treatment2","frs_ec_optional_treatment3","frs_ec_forced","frs_ec_forced_treatment1","frs_ec_forced_treatment2","frs_ec_forced_treatment3","frs_wps_forced","frs_wps_forced_treatment1","frs_wps_forced_treatment2","frs_wps_forced_treatment3","frs_applicable_treatments","../node_modules/xo-guest-components/src/guest/countryList/directive.js","showMask","checkoutInputData","$CheckoutInputDataModel","payee","$CheckoutPayeeModel","proxSignUpFlow","isEbayTxn","merchantCountry","merchantComplianceRestricted","fallbackOnUnsupportedCountry","selectedCountry","isMerchantCountrySameAsSelectedCountry","countriesWithMultipleCodes","merchantCountryList","populateSupportedCountries","_metadata$territory","proxSupportedCountries","selectedCountryObj","inCountires","defaultOption","blockNonDomesticPayer","disableCountryList","isWalletTokenization","resolvedCountry","showMessage","ariaDescribedBy","resolveLang","merchantLocale","supportedLocales","defaultLanguageException","defaultExceptionLang","defaultCountryLang","selectedLang","resolvedLang","../node_modules/xo-guest-components/src/guest/countryList/template.html","../node_modules/xo-guest-components/src/guest/currencyConversion/currencyConversionInterstitial/directive.js","_constants","prePlanTreatment","openModal","isBuyerFx","updateConversionSelection","ppconversion","setSelectedCurrency","isBuyerFXTreatment2","isNotBuyerFXTreatment","currencySelection","fromCurrencyCode","toCurrencyCode","conversion","from_code","to_code","conversionSpread","spread","conversion_type","is_conversion_shown","currency_conversion_from_curr","currency_conversion_to_curr","currency_conversion_spread","continueButton","buyerFxHeader","isInvoicingFlow","isRTRAmount","isUSBuyer","showInvoicingRegEMsg","nonEmptyMerchantDisplayName","nonEmptyReturnValue","closeModal","containerEl","logFinalSelectionToFPTI","currency_conversion_selected","complete","conversionType","planId","setErrorMessage","fundingOptions","../node_modules/xo-guest-components/src/guest/currencyConversion/currencyConversionInterstitial/styles.less","../node_modules/xo-guest-components/src/guest/currencyConversion/currencyConversionInterstitial/template.html","../node_modules/xo-guest-components/src/guest/currencyConversion/inlineCurrencyConversion/directive.js","isRate","headerType","conversionTitle","../node_modules/xo-guest-components/src/guest/currencyConversion/inlineCurrencyConversion/template.html","../node_modules/xo-guest-components/src/guest/currencyConversion/postPlanInterstitialOptions/contentUtils.js","getCurrencyFrom","getCurrencyTo","getDccVendorExchange","getDccPPExchange","getDccPPTotal","getDccVendorTotal","getDccPPRate","getVendorRateLabel","getPPRateLabel","getDccTitle","isCountryUS","isEMEA3PLCountry","to_amount_forex","to_amount","from_amount","from_amount_forex","../node_modules/xo-guest-components/src/guest/currencyConversion/postPlanInterstitialOptions/directive.js","_contentUtils","isBuyerFxPxp","conversionOptions","currencyConversion","paypalConversionTotal","unformattedAmount","merchantCurrencyCode","merchantTotal","dccTitle","ppRateLabel","dccPPRate","vendorRateLabel","dccPPTotal","dccPPExchange","dccPPExchangeOptions","buyerCurrency","currencyFrom","currencyTo","sellerCurrency","dccVendorExchange","dccVendorTotal","onConversionOptionChange","../node_modules/xo-guest-components/src/guest/currencyConversion/postPlanInterstitialOptions/template.html","../node_modules/xo-guest-components/src/guest/currencyConversion/utils.js","logBuyerFxFpti","logBuyerFxFptiEvent7","logBuyerFxFptiEvent3","isConversionChangeableForCardType","getForcedVendorCards","getForcedPayPalCards","getFromCode","getToCode","purchase","getForcedCards","_ref$card","isConversionChangeable","isSignup","hasPrePlanData","_card$currencyConvDat","currencyConvData","_ref2$card","../node_modules/xo-guest-components/src/guest/directive.js","_ul","_index5","_index6","_index7","_index8","_fiApis","_index9","_index10","_index11","_sticky","_util2","_shippingChangeFeature","_pageProps","_util3","_index12","_utils","_shippingOptionsFeature","isUnbranded","paymentMethod","singleStepModel","buttonParams","shippingRule","is_snt_supported","profileRulesSummary","$ShippingRuleSummaryModel","merchant_id","currency_code","amounts","total","merchantPreferences","$MerchantPreferenceModel","sepaExperiment","isSepaOverlayRequired","fiMode","sepaOverlay","experiments","wpsFlow","accountExistsPXP","teslaAddBank","teslaAddBankEXP","indiaWhitelistPxp","eligible","is_wps_flow","isInvoiceFlow","is_wps_subscription_flow","_ref$merchant","whiteListedIndiaMerchant","ctx.MID","rampResult","bypassAddressVerificationExperience","bypassAddressVerificationExp","shipToBilling","allowEditShipping","showSingleAddress","showShippingLabel","cupDetected","hideShippingAddress","allowPayWithSnT","allowSnTCall","instantUpdateShippingRegionSupported","showRedirectWarningPrompt","titleSubtitlePxpTreatment","showCartChanged","upopDetected","sepa","sepaGuestAgree","sepaAgree","needOTPForAddCard","$DeviceInfo","page","currentRoute","transition","sectionElement","triggerPageDesignFPTILog","pageContext","design","getPresetPaymentMethod","getFundingSource","fundingSource","showFISwitchTab","getDefaultFIMode","presetPayMentMethod","teslaFIDefault","allowRevisedEpmCallJson","allowRevisedEpmCall","allowSpb","$OnboardModel","$CardModel","bank","$BankModel","shipping_address","$ShippingAddressModel","shipping_address_validation","billing_address_present","poma_flow","frs_optin_flow_applicable","getSelectedCurrencyCode","_onboard$card$currenc","selectedCurrency","setBuyerFxFlag","hasBuyerFxPrePlanData","buyerFxTreatment","_this4","determineTeslaFIMode","checkTeslaEligbility","_teslaAddBank$teslaAd","teslaAddBankTreatment","getToggleKeys","getFItoggleContentKeys","showTeslaAddBankFlow","shippingOptionsFeature","buildShippingOptionsFeature","hasShippingOptions","billingAgreementMerchantMsg","getBillingDescription","wps_SnT_flow","isSnTEnabled","setAllowShipToBilling","allow","disallowShipToBilling","checkProcessorDecline","processorDeclined","checkLatinumRedirect","latinumRedirect","topErrorMessage","alternativeFunding","setChangeShippingCountryAlertMsg","countryName","infoMessage","shippingCountry","changeShippingCountryAlert","updateShippingAndBillingAddress","billingAddress","sanitizeStateFields","showGenericError","handlePrefillShippingAndBillingAddress","allowPrefillShippingAddress","prefilledAddress","prefilledBillingAddress","supplementary_data","supplementary","buyer_set_in_session","testParams","oas","cardCandidate","setBackButtonForWebview","signupClickedStartTime","showContactInfo","allowChoice","displayEmailInContactInfo","showingEmailInSignup","locale.x","country.x","storePickUpSelected","addressType","showErrorFields","toggleAddressFieldsValidation","hideErrorFields","useraction","billing_page_button_text","showShippingAddress","hide_shipping_address","shipping_address_required","isInstantUpdateFlow","instantUpdateIntegration","trackSntReq","upopConfirmButtonTextKey","backButtonWebview","floatThrottle","landingAbTestCheck","abTestThrottle","getFormattedNationalNumber","formattedPhone","cleanPhoneNumber","dailingCode","prefilledNumber","useInternationalFormatting","telephone_country","formatted_phone_number_international","formatted_phone_number","block_non_domestic_shipping","allow_change_shipping","setec_shipping_country_code","handleCardTypeBasedInstallments","oldVal","cardModel","luhn","$name","valid","cardNetwork","installments","cardCheck","cardInfo","card_type","installment_options","selectedInstallmentData","installment_option_selected","preventChange","allowInstallments","$InstallmentOptionsModel","handleIssuerBasedInstallments","cardNumberChanged","unformattedCardNumber","prevCardNumber","cc","issuerBasedInstallmentsRetrieved","isInstallmentsVisible","hasConditionMet","isBilling","experienceInitiator","payment_experience_initiator","isApac","apacCountries","MORSDisplayed","handleCardContingencySignup","fieldError","avsRetry","redirectToHermes","addFIContingency","handleCardContingencyGuest","isGambling","handleCardContingency","show3DSLightbox","cc_id","plans","plan","instrument_id","resolve_3ds_data","flow_id","merchant_country_code","transaction_amount_currency","transaction_amount_value","launch3DSResolver","isDCCEligible","isGuest","hasCurrencyConversion","finalRoute","finishFlow","isWpsFlow","destination","wpsInterstitialEligible","buyerMode","logAndGoToDone","CC_LINKED","EXISTING_MEMBER","CC_LINKED_TO_FULL_ACCOUNT","authorize","doEcOnApprove","doec_on_approve","isSubscriptionsV1","isWpsSubscription","redirectToSubscriptionFinalRoute","checkInventoryAndPay","setStickyFIAndAuthorize","setStickyInstrument","shippingChangeFeature","createShippingChangeFeature","orderID","continueWith3DSOrAuthorize","resolve_3ds","postCheckoutSessionOperations","dccComplete","launchCurrencyConversionLightbox","hasCallbackAPI","interstitialResolver","handleOnShippingChange","showOrResolveInterstitial","callOnShippingChangeAndContinue","onCompleteDCC","makePayment","wpsParams","xclickParams","payer_id","intent","payment_action","wa_type","correlation_id","custom","invoice","paymentComplete","transactionDetails","enableShoppingCartWPS","is_shopping_cart_flow","markCartCheckedout","TRANSACTION_REFUSED","handlePaymentContingencies","INSTRUMENT_DECLINED","inventoryOperation","PAYEE_BLOCKED_TRANSACTION","DUPLICATE_TRANSACTION","CC_PROCESSOR_DECLINED","paymentStatus","cartHasInventory","inventoryModel","$InventoryModel","inventoryItems","getInventoryItems","purchaseItems","inventoryPatchInput","cartItems","item_list","merchantId","patchResponse","showSoldoutPage","soldoutpage","soldoutItems","soldoutUrl","patchCart","purchase_unit","patchCartPayload","patchEntities","shoppingCartModel","$ShoppingCartModel","mapValidationErrors","mapAddCardErrors","handleFIContingencies","fundingInstrument","ctx.country","contentBundle","$fiErrorUtil","addPageErrors","addFieldErrors","scrollToElement","handleAddFIContingencies","tcpaIdentifier","onBoardAccount","skipInitiateAuth","content_identifier","tcpa_identifier","prox_flow","frs_optin_active_flow","_merchantPreferences","merchant_preferences","flow_eligibility_data","is_unbranded","merchant_country","bypass_address_verification","errMsg","getPageError","onAuth","accessToken","access_token","locale_code","locale_country","$ul","optInToOneTouch","subject","placementId","$fireMORSBeacon","fireBeacon","clickURL","fundingId","launchUpopScreen","createXO","BANK_LINKED_TO_FULL_ACCOUNT","EXISTING_ACCOUNT_RESTRICTED","TOO_MANY_REQUESTS","VALIDATE_BANK_CONTINGENCY","ADD_CARD_CONTINGENCY","ADD_BANK_CONTINGENCY","RISK_DISALLOWED","_errorData$","errorCode","_experiments$accountE","accountExistsTreatment","isCheckAuthflowRedirect","authflowRedirect","isCheckAuthflowRedirectParam","isAuthFlow","errorMsgs","positionToErrorField","errorType","getErrorType","isPOMA","accountExistsOptionalCheck","addShippingAddress","recipient_name","fraudnet_id","cc_login_account_number","email_login_account_number","conversionPayPalAndChangeable","isSignupWithNoConversion","conversionIsVendor","$FundingOptionsModel","checkCVV","securityCode","instrumentId","security_code","$fiApis","patchCvv","NEED_SHIPPING_ADDRESS","NEED_CREDIT_CARD_OR_BANK_ACCOUNT","SENDING_LIMIT_EXCEEDED","NEED_AUTHENTICATED_CARD","TRAVEL_RULE_ID_REQUIRED","launchTravelRuleLightbox","onTravelRuleSuccess","onUpopSuccess","onUpopCancel","errorCodes","last4","newBilling","billingAddressValidated","shippingAddressValidated","updatePhoneOnSubmit","cleanVal","updateAddressOnSubmit","billingState","shippingState","billingCity","shippingCity","billingZip","shippingZip","billingLine1","billingLine2","addrDiffDetected","compareShippingBillingAddrs","addrDiff","is_ship_addr_diff","logNonDEIBAN","iban_value","shipping_addr","billing_addr","diffDetected","checkZip","zip1","zip2","longerZip","shorterZip","enableSnT","handleAllLoadedForSnT","routeToHermesOn3DSDeclineForSignUp","redirectToHermesOn3DSDecline","clear3DSContingency","ccId","get3dsPageWarning","onComplete3DSHandler","setSepaOverlayFlag","sepaOverlayPXP","is_sepaOverlay","show_sepa_overlay","sepa_overlay","unbrandedFlag","setSubmitButtonText","isSubscription","submitButtonText","submitButtonTextKey","openAndContinueSepaOverlay","handleInvoicingRegE","currConvData","payerCountry","_currConvData$payment","payment_amt","amountInPayerCurrency","hasCurrConversion","_currency_code","amount_formatted_currency","amountInInvCurrency","setInvoicingRegEDetails","cardType","setInvoicingRegEDetailsWithConversion","initPaymentRequest","PaymentRequest","networks","types","supportedInstruments","supportedMethods","supportedNetworks","supportedTypes","details","label","requestPayerName","requestPayerPhone","requestPayerEmail","logGPayMethods","canMakePayment","toggleFIMode","isTesla","goBack","editShippingAddress","logWebviewBackButtonClick","updatePageLevelErrorMessage","removeAttr","currentShippingAddress","hasAddressChanged","nationalIdFlag","password","merchantPassedShipping","shipping_cnty","is_billing_present","is_shipping_present","_this5","errorFields","firstErrorField","ignoreValidationTheFirstTime","../node_modules/xo-guest-components/src/guest/emailInput/directive.js","disabled","hideHelper","setEmailToolTip","emailToolTip","../node_modules/xo-guest-components/src/guest/emailInput/styles.less","../node_modules/xo-guest-components/src/guest/emailInput/template.html","../node_modules/xo-guest-components/src/guest/lib/errorHandlerHelper.js","addFieldError","_errorHandlerConstants","SECTION_ELEMENT","fieldName","notifications","logo","focusDiv","resolve3DS","cardLast4","modelPrefix","addFieldErrorsByName","errCode","validationPageError","errElMap","../node_modules/xo-guest-components/src/guest/lib/pageProps.js","_constants2","getCommitOrContinueText","showSignupCompliance","hasConversion","showCurrency","commitType","show_poma_ui","click","DEFAULT_TOGGLE_FI","TESLA_TOGGLE_FI_BANK","TESLA_TOGGLE_FI_CARD","../node_modules/xo-guest-components/src/guest/lib/shippingChangeFeature.js","_factory","promiseNoop","_ref$callback","cartHasChanged","rejected","loadingMsg","shippingChangeFactory","$ShippingChangeFactory","getPayload","../node_modules/xo-guest-components/src/guest/lib/shippingOptionsFeature.js","selectOption","selectShippingOption","checkForOptions","getShippingOptions","getSelectedShippingOption","selectedOption","shippingOption","../node_modules/xo-guest-components/src/guest/lib/util.js","../node_modules/xo-guest-components/src/guest/nationality/directive.js","bindLocalizedCountries","../node_modules/xo-guest-components/src/guest/nationality/styles.less","../node_modules/xo-guest-components/src/guest/nationality/template.html","../node_modules/xo-guest-components/src/guest/onboardOptions/directive.js","_contentKeys","singlePagePaymentForm","flowEligibility","$FlowEligibilityModel","subscriptionsV1Model","$SubscriptionsV1Model","getBaToken","pomaExperiment","poma","populateFlags","flowFLags","isEcFlow","tokenWalletization","flowName","optionalSignupContent","marketingOfferTitleContentExp","freeReturnShippingExperiments","ecSignupWalletTokenization","wpsAutoreturnPdtEnabled","autoReturn","pdtEnabled","pageName","contentKeys","showMarketingOffers","setUnbrandedContent","onboardTitleLine1","paypalSubTitle","guestSignup1","guestSignup2","contentOpts","cart","appData","subscriptionData","billingAgreementContent","getBillingAgreementContentInfo","checkWPSInterstitialEligibility","autoReturnEnabled","setEcPomaFlag","_pomaExperiment$poma","_pomaExperiment$poma$","is_poma","showPomaUi","POMAContentType","setOptionalSignupPromotionContent","optionSignupContentPXP","setINMarketingOfferContent","marketingOfferTitleContentExpContentKeys","checkMerchantApplicabilityForFRS","passedInVal","frsMerchantApplicabilityModel","$FreeReturnShippingApplicabilityModel","merchantApplicabilityRequest","frsApplicabilityResponse","eligibility_reason","applicable","FRS_APPLICABILITY_ERROR","checkFrsFlowApplicability","flowType","frsApplicableTreatments","isTreatmentApplicable","isFrsApplicable","isFlowApplicable","setFreeReturnShippingEligibilityFlags","frsExp","frsFlowApplicable","frsNonWpsInterstitalFlow","setFlagsPostFlowEligibility","trackingModes","track_submit_transition","signupEnabled","showDisabledPasswordField","setBuyerModeFlags","accountCreationSectionErrorMessage","triggerTimerForSignupClicked","onCheckedSavedMyInfo","checked","scrollTo","../node_modules/xo-guest-components/src/guest/onboardOptions/guest/directive.js","guestEconsentAMLD4Pxp","showGuestAMLD4Terms","_$config$AMLRuleCount","AMLRuleCountries","isAmlCountry","getAMLGuestTermsContentKey","_experiments$guestEco","_experiments$guestEco2","econsentKey","openSepa","../node_modules/xo-guest-components/src/guest/onboardOptions/guest/template.html","../node_modules/xo-guest-components/src/guest/onboardOptions/lib/helper.js","../node_modules/xo-guest-components/src/guest/onboardOptions/signup/directive.js","guestUpgrade","nationalityThrottle","nationalIdRequiredCountries","isGenderFieldEnabled","showNationalityField","pxpTreatments","../node_modules/xo-guest-components/src/guest/onboardOptions/signup/template.html","../node_modules/xo-guest-components/src/guest/onboardOptions/template.html","../node_modules/xo-guest-components/src/guest/passwordInput/directive.js","isDisabled","passwordToolTip","passwordMismatch","requirementLength","requirementNumberSymbol","setScopeProp","getScopeProp","enableSinglePassword","showRawPassword","showPasswordTextToggleLink","toggleShowRawPassword","$passwordEl","valLength","setSelectionRange","onPasswordFocusBlur","focused","passwordValLength","addRightSpaceToShowHideLink","hasClass","elem","ngModel","passwordInputScope","fourSequence","reverse","sequences","containsDoubleByte","returnVal","viewValue","lcViewVal","firstName","lastName","requirements","restrictions","isValidPassword","cPass","confirmPassword","passwordVal","../node_modules/xo-guest-components/src/guest/passwordInput/template.html","../node_modules/xo-guest-components/src/guest/redirectingFromXoonWarning/directive.js","$ccField","showPrompt","isRedirectConfirmationShown","redirectLogType","clearCookies","loginEmail","rmuc","triggerRedirect","closePopupModal","../node_modules/xo-guest-components/src/guest/redirectingFromXoonWarning/styles.less","../node_modules/xo-guest-components/src/guest/redirectingFromXoonWarning/template.html","../node_modules/xo-guest-components/src/guest/select-shipping-method/directive.js","isShippingSameAsBilling","showShipping","checkoutPayee","showShippingMethodSection","showMerchantOptions","showZipCode","zipCode","isShowShippingMethodsDropDown","noShippingMethodDropDown","isStorePickUp","currencyCode","selectedShippingCharge","charges","noShippingChargesList","hideSelectDropdown","appVersion","changeShippingMethod","selectedShippingMethodText","dropDownBackground","callbackShippingOptions","fallbackShippingOptions","selectedMethod","callbackInsuranceOffered","defaultFallbackOptionIndex","shippingMethodNotSelected","shipAndTaxError","noErrorOrOverride","triggerFetchShippingMethods","localeCountry","trackZipCode","trackState","populatePatchAmountDetails","patchableAmountEntities","constantAmountEntities","decimalDigits","newTotal","buttonCartAmounts","detail","difference","valueInCart","getExternalCallbackOptionsForPatch","externalCallbackOptions","getExternalCallbackOptions","response","shipping_options_source","callback_shipping_options","callback_insurance_option_offered","fallback_shipping_options","getPatchReqData","shippingAmt","taxAmt","shipMethod","insuranceAmt","currencyDigits","subtotal","subTotal","tax","insurance","handling_fee","handlingAmt","shipping_discount","shippingDiscountAmt","discount","shippingMethod","shippingMethods","getShippingMethodId","patchRequest","updatePreviousCosts","previousCosts","shippingAmount","taxAmount","updateShippingTaxCharge","decodeEntities","patchReq","isDomesticShippingMethodsSupported","setZipCode","caller","isZipCodeChange","isStateChange","isCountryChange","bc","lc","safeConvert","responseHasTaxCharges","responseHasShippingCharges","shipping_charge","isPatchCartRequired","applicableShippingAmt","applicableTaxAmt","getTaxFromResponse","charge","responseCharge","item_tax","total_tax","getTax","isBuyNow","buttonCartAmountsTaxAmt","isCartUpload","disableDropDown","span","enableDropDown","enableStorePickUp","disableStorePickUp","isFormZipCodeEmpty","zipCodeField","isFormAddressLine1Empty","isFormStateEmpty","stateField","getCurrentZipCode","baPostalCode","saPostalCode","getCurrentState","isValidPostalCodeElement","isValidBillingPostalCodeElement","isValidShippingPostalCodeElement","patchCartWithButtonParams","localeChange","fetchShippingMethods","changeInShippingAddress","setAllowPayWithSnT","handleZipCodeBlur","handleZipCodeKeyPress","zipCodeElement","getShippingCharge","DASH","shipping_method","_ref$shipping_amount","shipping_amount","shippingCurrency","formattedAmount","shippingDeliveryTime","delivery_time","displayShippingMethod","displayShippingDeliveryTime","insuranceCurrency","insurance_amount","insuranceAmount","insuranceCurrencyCode","formattedInsuranceAmount","shippingCharge","setDefaultShippingMethod","shippingChargesList","populateShippingCharges","isStorePickUpMethod","shipping_method_type","selectShippingMethod","insuranceCheckboxChecked","showInsuranceSelectCheckbox","taxAmtApplied","amountValue","methodType","patchWithInsurance","offer_insurance_option","updateExternalCallbackOptions","prevIndex","onInsuranceCheckboxChange","populateErrorFields","populateCallbackShippingOptions","taxCharge","is_default","default_method","is_selected","optionsSource","updateShippingTaxChargeWithDefaultOption","processShippingAndTaxResponse","shipping_region_supported","msgsArray","show_shipping_options","_ref2$shipping_amount","profile_override_allowed","clearFallbackOptionsSelectionFlags","cartWeight","cartHandling","currCode","unit","sntRequest","cart_weight","cart_handling","tax_on_shipping_required","external_callback_options","$ShippingMethodModel","INTERNAL_SERVICE_ERROR","appDataFlags","isSentenceBeginning","is_buy_now_flow","is_cart_upload_flow","cartDiscount","../node_modules/xo-guest-components/src/guest/select-shipping-method/shipping-method-dropdown/directive.js","$select","isListVisible","listCreated","$span","$container","$list","updateCover","boldText","bold","createList","$options","getModel","modelName","subParts","$option","hideList","positionList","setFocusOnSelected","$item","showList","processContainerKeypress","innerHTML","$target","nodeName","removeProp","$setViewValue","$innerContainer","keydown","contains","wrap","after","innerText","../node_modules/xo-guest-components/src/guest/select-shipping-method/styles.less","../node_modules/xo-guest-components/src/guest/select-shipping-method/template.html","../node_modules/xo-guest-components/src/guest/sepa/directive.js","formValid","firstFailedElementName","determineFirstFailedElement","noErrorShowSepa","sepaNotRequiredFields","addBankModel","$AddBankModel","getBankData","creditorDetails","fiDetails","pageLevelErrorObj","hideSepa","returnObj","setSepaOverlayContent","sepaTitle","sepaAgreement","sepaSubmit","closeSepa","acceptSepa","../node_modules/xo-guest-components/src/guest/sepa/template.html","../node_modules/xo-guest-components/src/guest/sticky.js","selectedFuturePaymentInstrument","stickyInstrument","getSelectedStickyInstrument","../node_modules/xo-guest-components/src/guest/template.html","../node_modules/xo-guest-components/src/guest/tesla-add-bank/constants.js","../node_modules/xo-guest-components/src/guest/tesla-add-bank/directive.js","teslaFlowIdData","$TeslaFlowIdModel","setupRedirectUrl","teslaFlowID","encodedParam","finalUrl","teslaAddBankUrl","onContinueClick","../node_modules/xo-guest-components/src/guest/tesla-add-bank/template.html","../node_modules/xo-guest-components/src/guest/travelRuleLightbox/directive.js","../node_modules/xo-guest-components/src/guest/travelRuleLightbox/template.html","../node_modules/xo-guest-components/src/guest/xoonHeader/constants.js","defaultSignupTitleContentKey","defaultGuestTitleContentKey","titleTreatmentKeyToContentKeyMapping","ebay","walletTokenization","xo_xoon_header_title_subtitle_global_control","xo_xoon_header_title_subtitle_global_throttle","xo_xoon_header_title_subtitle_global_test","xo_xoon_header_title_subtitle_IN_control","xo_xoon_header_title_subtitle_IN_treatment_a","xo_xoon_header_title_subtitle_IN_treatment_b","xo_xoon_header_title_subtitle_IN_treatment_c","indiaTitleBilling","xo_xoon_jp_add_bank_treatment","xo_xoon_jp_add_bank_treatment_card","defaultSignupTitlePropsContentKey","defaultGuestTitlePropsContentKey","titlePropsTreatmentKeyToContentKeyMapping","google","samsung","../node_modules/xo-guest-components/src/guest/xoonHeader/directive.js","_lib","tokenizedWalletInfoModel","$TokenizedWalletInfoModel","titleSubtitleContentExp","currentCountryName","teslaTreatmentFIType","setTitleSubtitleContentAndFlags","getSubject","titleSubtitleContentExpTreatment","pageTitleFlowContextKey","getPageTitleContextKey","pageTitlePropsFlowContextKey","getPageTitlePropsContextKey","pageTitleContentKey","pageTitlePropsContentKey","setInitialFlags","redirectWarningPromptInit","../node_modules/xo-guest-components/src/guest/xoonHeader/lib.js","WALLET_RESPONSE","../node_modules/xo-guest-components/src/guest/xoonHeader/styles.less","../node_modules/xo-guest-components/src/guest/xoonHeader/template.html","../node_modules/xo-guest-components/src/lib/contentKeys.js","getSusbcriptionsV1ContentKey","getRPContentKey","getBAContentKey","consentCode","isCIB","isIndiaDomestic","indiaDomestic","keySuffix","showBAContent","isRP","showBillingAgreementText","showRpAgreementText","showSubscriptionsV1AgreementText","merchantName","idSelector","planReview","new_plan","current_plan","maxAmt","initial_payment_info","maximum_payment_amount","subscriptionsMaxAmount","subscriptionAmtChangeNotice","billingAgreementCart","price_change_advance_notification_days","../node_modules/xo-guest-components/src/lib/util.js","areAddressFieldsEqual","address1Field","address2Field","addressFields","ENTITY_ELEM","converter","textContent","isSubscriptionV1","stageUrl","subscriptionReturnUri","subscriptionsV1ReturnUrl","wpsSubscriptionReturnUrl","sdkMeta","mfid","../node_modules/xo-guest-components/src/login-button/directive.js","opinionlab","../node_modules/xo-guest-components/src/multistep-signup/addCard/directive.js","util","multistepSignupModel","$invalid","parentCallbacks","backState","backendError","clearBackendError","normalizeAddress","prefillAddressCommon","cardNumberChangeHandler","cardTypeChangeHandler","eligibilityModel","backUri","componentsFlag","componentsMap","zipMasking","postalCode","maskingUtil","maskZip","checkShippingRulesExist","wps_flow","snt_supported_flow","shippingRulesSummary","merchant_has_snt_profile","ue_billing_address","_$scope$multistepSign","setSubmitButtonKey","_$scope$multistepSign2","hasData","_$scope$multistepSign3","inCurrency","submitButtonKey","installmentDisabled","merchantSuppliedAddress","merchantSuppliedNumber","normalized_phone_number","basl_hermes_xoon_redirect","hermesXoonRedirect","basl_abtest_throttle","showLogin","changeCountry","shippingCountryChanged","ue_shipping_address","shippingAddressPage","../node_modules/xo-guest-components/src/multistep-signup/addCard/route.js","back-uri","parent-model","../node_modules/xo-guest-components/src/multistep-signup/addShipping/directive.js","prefillDone","../node_modules/xo-guest-components/src/multistep-signup/addShipping/route.js","done-fn","../node_modules/xo-guest-components/src/multistep-signup/addressNormalization/directive.js","../node_modules/xo-guest-components/src/multistep-signup/addressNormalization/route.js","../node_modules/xo-guest-components/src/multistep-signup/apiCalls/factory.js","$MultistepSignupModel","processFieldMap","errorCategory","fieldMap","contingencyMap","redirectTohermesCC","port","hermes","authorizeSession","is3ds","createSession","risk_correlation_id","_multistepSignupModel","_multistepSignupModel2","multiStepFunctions","multistepsignupaddcard","multistepsignupaddshipping","multistepsignupcreateaccount","ADD_KYC_FAILED","ISSUER_DECLINE","errors","compileVars","objKey","actualValue","handleContingency","../node_modules/xo-guest-components/src/multistep-signup/createAccount/directive.js","_subscription","$MultistepApiCalls","formatFiLast4","ccNum","formatFiName","ccType","tmp","billingAgrementContentInfo","fiName","fiFormatLast4","isCommit","brPxp","pxpExperiments","xo_br_hermesnode_createaccount_design","pgName","createAccountDesignExp","isNameCyrillic","regexCyrillic","validInput","isLegalAge","validateLegalAge","legalAgreeToolTip","agree","showTooltip","addCard","addShipping","createAcc","../node_modules/xo-guest-components/src/multistep-signup/createAccount/route.js","../node_modules/xo-guest-components/src/multistep-signup/directive.js","normalizeCallback","lastPrefillCall","sanitizeZip","addrPrefilled","sortCountryList","scrollTop","history","back","modelErrors","pageErrors","toBeNormalizedAddress","flag","nameUtil","splitName","isInstallmentEligible","../node_modules/xo-guest-components/src/multistep-signup/index.js","../node_modules/xo-guest-components/src/multistep-signup/lib/util.js","masking","dobMonth","dobDay","dobYear","currentDate","currentMonth","currentDay","largestDOBYear","isLegal","billingAddressLabel","dobDropDown","dobText","nameInput","INVALID_MIDDLE_NAME","INVALID_NATIVE_FIRST_NAME","INVALID_NATIVE_LAST_NAME","INVALID_NATIVE_MIDDLE_NAME","INVALID_CARD_NUMBER","INVALID_EXPIRY","CC_NUMBER_BLOCKED","../node_modules/xo-guest-components/src/multistep-signup/route.js","multistep-signup-model","position-to-error-field","back-state","backend-error","clear-backend-error","normalize-address","prefill-address-common","button-params","../node_modules/xo-jquery-mask-plugin/dist/jquery.mask.min.js","__webpack_provided_window_dot_jQuery","jquery","$jscomp","findInternal","defineProperties","getGlobal","polyfill","invalid","getCaret","selectionStart","createRange","moveStart","setCaret","createTextRange","collapse","moveEnd","select","maskDigitPosMapOld","maskDigitPosMap","jMaskGlobals","useInput","behaviour","keyup","selectOnFocus","clearIfNotMatch","getRegexMask","recursive","digit","destroyEvents","off","calculateCaretPosition","getMasked","inArray","byPassKeys","callbacks","y","z","fallback","mapMaskdigitPositions","getCleanVal","getMaskedVal","placeholder","maskWatchers","selector","watchInterval","watchInputs","masked","removeData","applyDataMask","maskElements","dataMaskAttr","dataMask","watchDataMask","9","#","Zepto","../node_modules/xo-locale/dist/country.js","$AppDataModel","viaCountryPreference","viaLocaleTestUrlParam","desc","viaMerchantParam","viaUserProfile","viaCheckoutSession","merchant_locale","viaCheckoutBilling","viaCheckoutShipping","viaMerchantCountry","viaGuestAccountCountry","viaCountryCoBrand","viaLangCookie","viaBrowserPref","viaIP","ipcountry","viaDefault","../node_modules/xo-locale/dist/helper.js","../node_modules/xo-locale/dist/index.js","../node_modules/xo-locale/dist/language.js","browserPrefCountries","viaLanguagePreference","viaMerchantLocale","lang_cookie","../node_modules/xo-locale/dist/resolvers.js","service","$CountryResolvers","$LanguageResolvers","LocaleResolver","registerCountryResolver","registerLangResolver","resolvePromiseChain","validator","resolved","resolveCountry","resolveLanguage","setUserPreferredCountry","userPreferredCountry","setUserPreferredLanguage","userPreferredLanguage","preventContentLoad","../node_modules/xo-login-components/src/dolphin/directive.js","startTimer","isTimerRunning","hasOverlayLoaded","context_id","showSpinner","timerDuration","closeBanner","showBanner","openOverlay","onPostMessagesHandler","postMessage","isPhoneConfirmed","toastParams","autoTriggeredOverlay","closeOverlay","successContent","smsSentKey","variant","getInjectULBaseObject","showOverlay","ulToast","variantParams","bannerContent","messageKey","successKey","fixedBanner","banner_type","bannerType","../node_modules/xo-login-components/src/dolphin/styles.less","../node_modules/xo-login-components/src/dolphin/template.html","../node_modules/xo-login-components/src/dolphin/utils.js","getDolphinEligibility","_eligibility","getCreditInterstitialEligibility","creditInterstitialPXPResult","creditInterstitialControl","flowId","flowInfo","confirm","confirm1","confirm2","confirm3","add1","add2","add3","isReviewOrFi","$stickyCTA","getEligibility","isStickyEligible","eligibilityReason","isCreditInsterstialEligible","../node_modules/xo-login-components/src/unified-login/ul.js","fptiData","ulTimeOutValue","ulTimeoutPromise","logSubmit","fptiPayload","transInfix","error_type","error_source","failureHandler","stopTimer","ulEventHandlers","oneTouchInterstitialOptInLoaded","oneTouchInterstitialOptInAttempted","oneTouchInterstitialOptInSuccess","refresh_token","oneTouchInterstitialOptInFailed","oneTouchInterstitialOptInNotAuthorized","postMessageHandler","eventId","loadOneTouchUpsell","ulTargetAttribute","margin","$CalDataModel","getCalCorrId","onboarding","../node_modules/xo-models/src/address/index.js","$ValidateAddressModel","../node_modules/xo-models/src/app/index.js","$PXPBlacklist","$TokenizedWalletMsbOfferModel","$TokenizedWalletPinModel","$TokenizedFundingCapabilitiesModel","$TokenizedWalletEligibilityModel","$MessengerIntegrationDataModel","$LocaleConfigModel","_brandNames","_msbDisclaimerLinks","platform","invalidateOnLogout","isEligible","subjectTypes","SAMSUNG_PAY","ANDROID_PAY","brandNames","disclaimerLinks","msbDisclaimerLinks","isAndroidPay","isSamsungPay","brandName","getDisclaimerLink","getMsbDisclaimerLink","isDirectFundingEnabled","directFundingEnabled","isTopupEnabled","topupFundingEnabled","getProductName","getCurrency","issuingCurrency","getContingencies","getTopupAmountChoices","topUpAmountChoices","getPinOrigin","pinOrigin","getSuggestedPin","suggestedPin","getSuggestedKey","suggestedKey","getPinId","pinId","isPinIdPresent","isSetupEligible","isMerchantBlacklisted","pxpBlacklist","../node_modules/xo-models/src/auth/index.js","$ULoginModel","$AuthApi","_app","loggedIn","logged_in","visitorId","visitor_id","accessTokenPresent","access_token_present","refreshToken","rememberedOT","remembered","remembered_device_token","isSessionTimeout","isFBSkipLogin","isAuthApiCall","isConsumerApp","isUlReturnLoggedIn","auth_state","tokenizedWalletInfo","isNotVeniceTokenizedIntegration","is_venice_integration","disallow_login_switch","logoutAndRedirect","logoutFrom","redirectToLogin","ulClientRedirect","updatedQs","ulAsLandingUrl","pathname","../node_modules/xo-models/src/auth/lib/xoAPayUtils.js","$xoAPayUtils","_jwtToken","_authenticated","createPaymentRequest","minGooglePlayServicesVersion","paymentMethodTokenizationParameters","tokenizationType","parameters","gateway","updateCookie","$http","isPaymentRequestAPISupported","currentVersionMatch","vendor","isAPayAPISupported","canMakeAPayPayment","paymentRequest","appPaymentRequest","authenticateAPay","forceAuthenticate","param_type","paymentMethodToken","authJwt","getAPayAuthToken","setAPayCookie","tokenizedWalletCookieURL","op","clearAPayCookie","setOTAPayCookie","../node_modules/xo-models/src/checkout/index.js","$CardBackupModel","$CheckoutPlanModel","$CheckoutShippingAddressesModel","$CreditOptionsModel","$CheckoutShippingAddressModel","serializeInstallmentsOptionsData","$FundingSourceModel","_processorDecline","isPurchase","getCartCurrencyCode","getPurchaseAmount","purchaseAmount","purchaseAmountFloat","isBillingPurchase","isBillingNoPurchase","description","isMultiSellerPurchase","purchaseUnits","isShippingMethodStorePickUp","incontext_integration","xchild","rest_integration","user_action","is_wps_installmentplan_flow","getContent","brand_name","merchant_name","merchantAltName","is_invoice_flow","isSecondButton","is_second_button_txn","formatLast4","isAuthRequired","eachPlan","hasECheck","_instruments","instruments","instr","subtype","hasCredit","_instruments2","instrument","getBankPlanIdByInstrumentId","primaryFs","getPadAndIachCombinedPlans","planIds","isIACH","padPlanId","isPAD","iachPlanId","getPlanByPlanId","getPlanSubType","_plan$primaryFs","isMEFT","isIACHWithPad","getPadPlanHopDate","padPlan","hop_date","getPadOrIachPlanIdBySelectedPlan","isPadToggleSelected","_plan$primaryFs2","writeable","getBankPadPlanIdByInstrumentId","fsId","fsSubtype","bankPadPlan","_plan$primaryFs3","_bankPadPlan$primaryF","isPadToggleApplicable","padToggleApplicable","isPadToggleApplicableForFS","selectedPlan","getPreferred","iachPlan","_iachPlan$primaryFs","_iachPlan$primaryFs$i","_isPreferred","_plan$primaryFs4","_plan$primaryFs4$isPr","getMsbByPlanId","incentive","getDisplayPlans","rewards","getDisplayInstruments","_instruments3","isMemberCredit","_checkoutCart$purchas","getId","isOnBaNoStickyList","disableMerchantForStickyBA","creditOptionsModel","largeEligibleAmount","sacEligibleAmount","addresses","getPreferredShippingAddress","preferredAddress","getPrimaryShippingAddress","primaryAddress","primary_address","sources","eachSource","hasFundingMethodType","found","hasFundingMethodSubType","sub_type","isSplitBalance","isSplitPaymentWithBalanceAndIach","isMSB","isBalance","resetIfDoesNotApply","reevaluateEligibility","getPlan","isAllowed","setPlan","forPlan","getCheckoutSessionPlan","_forPlan","_forPlan$primaryFs","secondaryFIs","allowCardBackup","getProcessorDeclineRetryEligibility","eligibility","getKey","planKey","forKey","currentPlanKey","newPlan","smartDollarAuthFailed","cardBackup","futurePaymentInstruments","selectedInstrumentId","fi","getPlanList","isMultipleBalancePlan","matchingBalancePlans","getDisallowedInstruments","disallowedInstruments","filteredDisallowedInstruments","declineReason","filterCardWithinLastNMonths","getDisallowedPreferred","disallowedInstrument","isDisallowedInstrumentInPlanList","instrumentID","expiredInstruments","disallowedPreferred","preferredExpiredInstruments","getShippingAddressMinimalDetails","getPPCconversionInfo","ppcFi","currency_conversion","../node_modules/xo-models/src/checkout/lib/utils.js","monthDiff","d1","d2","months","expirePeriod","expire_year","expire_month","monthDifference","../node_modules/xo-models/src/eligibility/index.js","checkEligibility","checkoutCartModel","checkoutSessionModel","checkoutAppDataModel","$GDPRCookieBannerModel","hasBanner","isIE","isValidTraffic","isSmallScreen","innerWidth","upop","unconfirmed_upop","gpdr","shown","eligibleCountry","ineligibilityConditions","isNotSmallScreen","isNotValidTraffic","isNotEligibleCountry","decision","ineligibilityReasons","checkPxp","_$CheckoutAppDataMode","treatmentTest","mapper","treatmentA","treatmentB","control","../node_modules/xo-models/src/fi/index.js","$CardInfoModel","$WalletInstrumentNameMapping","$WalletPreferences","$ResolveOTP","$Resolve3DS","$CardTypeFromBinModel","$BillingAddressesModel","$CurrencyConversionModel","$AddBillingAddressModel","$DeleteCardModel","$SepaModel","$PreferredFi","$CardTypesModel","$UnavailableCardModel","$AddCardModel","BILLING_ADDRESS_FORMAT",","," ","he","expiry_month","expiry_year","issue_number","start_month","start_year","cardNumber","isExisting","sponsor_id","preference","clearId","disallowedCards","disallowed","cardTypes","supportedNames","allowed","unsupportedNames","bank_account_number","bank_routing_number","iban_number","candidate_id","getUiChannel","uiChannel","preferred","langConfig","space","topup","direct","_topup","_topup$fundingSource","autoload_minimum_threshold","_direct$fundingSource","_instrument_id","INSTRUMENT_MAP","AMSOUTH","BOFA","CAPITAL","CHASE","CITI","FIFTHTHIRD","HUNTINGTON","INGDIRECT","NATIONALCITY","PNC","REGIONS","SUNTRUST","TDWATERHOUSE","USAA","USBANK","WAMUTUAL","WELLSFARGO","INSTRUMENT_NAMES","getInstrumentNameNormalized","fsName","instName","../node_modules/xo-models/src/fi/lib/fiApis.js","cvvData","cvv","../node_modules/xo-models/src/frs/index.js","../node_modules/xo-models/src/gdprCookieBanner/index.js","testGdprBannerCookie","getBanner","lastResult","lastCountry","lastLang","js","../node_modules/xo-models/src/inventory/index.js","setInvetoryItems","../node_modules/xo-models/src/marketingoffer/index.js","$CreditOfferModel","$MemberSegmentModel","$MessageDiscoverModel","$MarketingOfferModel","_uuid","_uuid2","ads","targetPlacements","targetAd","ad","campaign","adunit_id","placement_code","nvpContent","nvp","tracking","impression_url","click_url","campaign_id","buy_item_id","getCacheKey","cacheParam","site","si","visit_id","epu","pu_type","puType","payment_context","total_transaction_amount","totalTransactionAmount","total_shipping_amount","totalShippingAmount","business_case","business_case_variation","validate_existing_offer","payment_units","transaction_amount","transaction_id","encrypted_transaction_id","activity_id","pu","target_placements","wallet_instruments","walletInstruments","addl_property_installments_not_allowed","installmentsNotAllowed","getTargetAd","isAdFound","img","getMemberSegment","memberSegment","getCreditOffer","creditOffer","isNewMember","isExistingMember","isEligibleForExperimentation","eligibleMemberSegments","memberSegments","bannerMessages","touchpoint_messages","touchpoint_code","touchpoint","storeMessages","viewName","view_name","presentmentType","PresentmentType","getBannerCount","hasBannerMessage","getTouchpointCode","getBannerMessage","application_context","identity_context","recommendation_context","view_names","touchpoint_details","message_count","../node_modules/xo-models/src/onboard/index.js","$SingleStepModel","bypass_authorization","onboardUserModel","occupation","gender_type","gendertype","place_of_birth","middle_name","country_prefix","../node_modules/xo-models/src/processorDecline/index.js","_thirdPartyInfo","INELIGIBLE","lastBuyerId","moreThanOneCard","hasRewards","isNotSale","isThirdParty","thirdPartyExperience","isThirdPartyExperience","isWpsOrInvoice","hasInstallments","involvedCurrencies","currencies","hasBuyerPromoEmail","ineligibilityCriteria","ineligibleReasons","reasons","featureEligible","buyerId","sameBuyer","pxpIneligible","eligibleWithPxp","../node_modules/xo-models/src/profilemanagement/index.js","rm","return_url","auto_return","pdt","returnUrl","returnMethod","returnMethodSupported","postPaymentData","charSet","charset","../node_modules/xo-models/src/prox/index.js","$ContextualLoginModel","../node_modules/xo-models/src/shippingMethod/index.js","shippingMethodType","shippingMethodsMap","AIR_SERVICE","ECONOMY","EXPEDITED_AIR_SERVICE","EXPEDITED_FLAT_RATE_SHIPPING","EXPRESS","EXPRESS_DOMESTIC","FREE_SHIPPING","GROUND","GLOBAL_PRIORITY","INTERNATIONAL_ECONOMY","INTERNATIONAL_EXPEDITED","INTERNATIONAL_EXPRESS","INTERNATIONAL_EXPRESS_AIR","INTERNATIONAL_PRIORITY_AIR","NEXT_DAY","NEXT_DAY_AIR","NEXT_DAY_AIR_ECONOMY","ONE_DAY_SHIPPING","OVERNIGHT_FLAT_RATE_SHIPPING","PRIORITY","RUSH_DELIVERY","STANDARD_DOMESTIC","STANDARD_EXPEDITED","STANDARD_FLAT_RATE_SHIPPING","STANDARD_INTERNATIONAL","STANDARD_SHIPPING","TWO_DAY_SHIPPING","WORLDWIDE_SHIPPING","TWO_DAY_AIR","../node_modules/xo-models/src/shoppingcart/index.js","../node_modules/xo-models/src/subscription/index.js","$SubscriptionModel","$CreateBAModel","../node_modules/xo-models/src/user/index.js","$UserProductSubscriptionModel","$AuthConsentModel","$UserPhotoModel","$EConsentModel","$WaxUserModel","$PatchPhoneModel","$AddKYCModel","$ValidatePhoneModel","$CheckoutClientDataModel","merchantIdentityData","display_name","logo_uri","identity_uri","validateClient","partner_id","validateRedirectUri","ACTION","login","addBank","changeCurrencyConv","mandate","addCredit","ulReturn","creditReturn","guestCurrencyConversion","guestAuthentication","compliance","client_id","redirect_uri","mandate_reference_number","funding_option_id","refresh_parent","escape_hatch","failedBecause","redirectReferrer","id_token","nonce","hide_rm","payloadEnc","xcancel","xsuccess","validAction","showRYP","requiresOAuth","requiresRedirectUri","validRedirectUri","errorUrl","errorDesc","rmEnabled","featureEnabled","hideRM","../node_modules/xo-page-components/src/aside-header/directive.js","hdrtype","heading","subHead","addLink","backUrl","closeUrl","hidex","headerLeftLink","headerLeft","headerLeftIcon","headerRightLink","headerRight","headerRightIcon","subHeaderLeftLink","subHeaderLeft","subHeaderLeftIcon","subHeaderRightLink","subHeaderRight","subHeaderRightIcon","showDualFi","onClickLink","showFiOptions","../node_modules/xo-page-components/src/aside-header/template.html","../node_modules/xo-page-components/src/ba-message-banner/directive.js","isMessengerIntegration","borderPosition","merchantMsg","_ref$experience","experience","facebook","isFacebookIntegration","../node_modules/xo-page-components/src/ba-message-banner/styles.less","../node_modules/xo-page-components/src/ba-message-banner/template.html","../node_modules/xo-page-components/src/cart/cartWrapper/directive.js","_subscriptionTerms","_subscriptionTerms2","showAmt","showArrow","subscriptionsV1Data","subscriptionAmount","getNumericValueNonZero","getAmount","../node_modules/xo-page-components/src/cart/cartWrapper/template.html","../node_modules/xo-page-components/src/cart/directive.js","_showCartDecision","showCartTotal","renderCartContainer","overrideShowDetails","detailsExpanded","loadCartData","emptyCart","cartDesc","note","hasItems","showCartDetails","hide_cart_details","notMultiSellerPurchase","wpsSubscription","addDetails","price","item_option_selections","hasSelections","sku","hasDetails","hasMore","amountHeaders","userAction","noLineItemDetails","isCartTextTotalOrSubTotal","showCartDecision","showCartSubTotal","showAmountInCartIcon","handleCartOpenClose","decideShowCart","falsePositive","openedAlready","notOpened","canShow","showCartItem","breakdown","field_name","showCart","openCartListener","toggleCart","closeCart","handleEllipsisIssues","toolongTracker","toolong","showMore","itemIsTooLong","isAppropriateType","hasExpandedState","isExpanded","expandedIndex","nameTooLong","expand","focusElementCssSelector","../node_modules/xo-page-components/src/cart/itemDetails/directive.js","onClickLess","../node_modules/xo-page-components/src/cart/itemDetails/template.html","../node_modules/xo-page-components/src/cart/lib/decode_entities.js","decodeEntitiesAngularFilter","../node_modules/xo-page-components/src/cart/lib/pxp.js","showAmtBlacklistTreatment","showAmtTreatment","ctx.merchantID","showAmtBlacklist","../node_modules/xo-page-components/src/cart/lib/showCartDecision.js","isSubscriptionFlow","$pxpCartAmt","showAmount","../node_modules/xo-page-components/src/cart/lib/ui.js","_decode_entities","_decode_entities2","$filterProvider","getVisibleWidth","elemRect","getBoundingClientRect","right","getNaturalWidth","old","getStyle","getComputedStyle","currentStyle","hasEllipsis","overflowHidden","textOverflowEllipsis","whiteSpaceNowrap","invokeSubscriber","$parse","onEllipsis","resizeContainer","parentHeight","siblings","pos","getOuterHeights","siblingsHeight","spaceAvailable","dynamicMaxheight","../node_modules/xo-page-components/src/cart/subscription/directive.js","itemName","getItemName","itemOptions","getItemOptions","getFirstAmount","getFormattedFirstAmount","getTermsText","../node_modules/xo-page-components/src/cart/subscription/styles.less","../node_modules/xo-page-components/src/cart/subscription/template.html","../node_modules/xo-page-components/src/cart/subscriptionsV1/directive.js","_models$subscriptionD","itemAmount","termsText","startDate","start_time_formatted","autoRenewIndicator","auto_renewal","taxPercentage","itemPrice","getFormattedAmount","setupFee","setupFeeAmount","totalAmount","../node_modules/xo-page-components/src/cart/subscriptionsV1/styles.less","../node_modules/xo-page-components/src/cart/subscriptionsV1/template.html","../node_modules/xo-page-components/src/cart/template.html","../node_modules/xo-page-components/src/constants/fbMessenger.js","OVERRIDE_FBPP_REPEAT_FLAG","OVERRIDE_FBPP_MOBILE_FLAG","FB_BA_SHOWN_FLAG","MOBILE_CHANNEL","WEB_CHANNEL","FB_USER_API_MOBILE_URL","FB_USER_API_URL","FB_PROD_APP_ID","FB_PROD_PAGE_ID","FB_TEST_PAGE_ID","PXP_MESSENGER_EXPT","PXP_SHOW_MESSENGER_PLUGIN_TREATMENT","PXP_MESSENGER_IN","PXP_MESSENGER_PLUGIN_TREATMENT_IN","../node_modules/xo-page-components/src/done/directive.js","_profilemanagement","_fbMessenger","_fbMessenger2","AUTORETURN_TIMEOUT","WHITELISTED_ROUTES","isGuestSignup","addPageMessage","CONTENT_KEY_MAPPING","NO_UPGRADE","isThirdPartyFlow","merchantDisplayName","merchantPreferenceModel","isAutoReturn","autoreturn_url","autoReturnContentKey","guestSignupKey","$stateParams","itemList","itemsList","pxpContext","getMessengerPXPContext","isDolphinEligibleOnWpsDone","_$scope$checkoutSessi","_results$","_results$2","in_treatment_name","buyer_country","buyer_id","pxpMessengerIntegrationEnabled","expansion","maxHeight","getElementsByClassName","scrollHeight","autoReturnStatementClick","onExitListeners","removeClassListener","newParams","oldState","preventBackListener","../node_modules/xo-page-components/src/done/route.js","$DoneRoute","../node_modules/xo-page-components/src/done/template.html","../node_modules/xo-page-components/src/footer/directive.js","_footerMap","_footerMap2","_opinionlab","_opinionlab2","escapeHatchIncontext","languageSwitch","showVenmoLegalLinks","showEscapeHatch","getRegion","isDESecondButtonFlow","footerLinks","APAC","showPolicyInfo","cancelRedirect","cancelUri","redirectUri","onCancel","opType","return_uri","isIndiaLegalEntity","legalEntity","hcl","hideCancelLinkForMerchant","shouldHide","hideCancel","cancelShowModal","popupUrl","trustAsResourceUrl","hideModal","showOL","opVars","rlogId","csci","calc","custId","languageCode","showFeedback","hideReturnCancelUrl","showVenmoLinks","showPaypalLinks","../node_modules/xo-page-components/src/footer/footerMap.js","EMEA","EM","LATAM","DESecondButton","venmoContent","../node_modules/xo-page-components/src/footer/opinionlab.js","_doc","_w","_tm","_sH","screen","_ht","escape","_hr","referrer","_sW","popUp","opinionlabURL","updateCustomVars","customVar","_fC","_u","_sp","_rp","_aT","_aA","custom_var","../node_modules/xo-page-components/src/footer/styles.less","../node_modules/xo-page-components/src/footer/template.html","../node_modules/xo-page-components/src/gdprCookieBanner/directive.js","$gdprCookieBannerComponent","refreshGDPR","gdprModel","banner","cleanup","div","bindGdprEvents","empty","../node_modules/xo-page-components/src/gdprCookieBanner/styles.less","../node_modules/xo-page-components/src/gdprCookieBanner/template.html","../node_modules/xo-page-components/src/header/directive.js","$SetHeaderText","unbrandedTitle","unbrandedSubTitle","redirectiframe","redirectLightbox","isVenmoFlow","enableCartBreakdown","isFacebookBAIntegration","isMessengerBAIntegration","subscribe","headerText","setText","getText","../node_modules/xo-page-components/src/header/styles.less","../node_modules/xo-page-components/src/header/template.html","../node_modules/xo-page-components/src/marketingOffers/directive.js","_marketingoffer","placementCode","titleTxtProperty","subtitleProperty","backgroundImage","xoTitleTag","xoTitleClass","morsOfferFlag","populateObj","setDefaultValues","Title","Body","imageUrl","propImg","isRetina","matchMedia","matches","background-image","margin-top","presentation_types","pxpInfo","marketingOfferData","ads_arr","adFound","impressionUrl","clickUrl","../node_modules/xo-page-components/src/marketingOffers/template.html","../node_modules/xo-page-components/src/merchant-header/directive.js","disableId","MAX_WIDTH","MAX_HEIGHT","ratio","../node_modules/xo-page-components/src/merchant-header/template.html","../node_modules/xo-page-components/src/returnParams/index.js","addValidParam","returnWPSParams","returnToMerchantMethod","customData","postbackData","transactionDetail","itemDetail","$returnParams","../node_modules/xo-page-components/src/route-to-complete/directive.js","urlType","enableSuccessReturnUrl","enableCancelReturnUrl","goToMerchant","../node_modules/xo-page-components/src/route-to-complete/route.js","$RouteToCompleteRoute","../node_modules/xo-page-components/src/route-to-complete/styles.less","../node_modules/xo-page-components/src/route-to-complete/template.html","../node_modules/xo-page-components/src/subscription-terms/index.js","getCurrencyCode","getEffectiveDate","../node_modules/xo-page-components/src/subscription-terms/subscriptionTerms.js","BILL_PERIOD_DAY","BILL_PERIOD_WEEK","BILL_PERIOD_MONTH","BILL_PERIOD_YEAR","TRIAL_SUBSCRIPTION","REGULAR_SUBSCRIPTION","INFINITE_CYCLES","pluralTimeUnit","hasPriorTerm","localizedContent","computeTimeUnit","billPeriod","timeUnit","computeAmount","computeFirstTrialKey","computeSecondTrialKey","computeRegularSubscriptionKey","totalCycles","Infinity","prepareIndividualTermText","subscriptionTerms","periodType","billFrequency","templatePlaceholderData","timePeriod","installmentCount","mapBaResponse","baResponseData","mappedSubscriptionDetails","allTerms","payment_definitions","mappedTerms","firstTrialAmount","regularAmount","eachTerm","cycles","eachMappedTerm","frequency","frequency_interval","firstAmount","subscriptionDetails","termTextList","itemDetails","_baResponseData$items","_baResponseData$items2","effective_date","../node_modules/xo-page-components/src/utils/index.js","overrideMobileUserFlag","channelVal","ctx.CHANNEL","../node_modules/xo-page-components/src/value-props/directive.js","$observe","background-size","../node_modules/xo-return-to-merchant/dist/formatReturnContent.js","formatReturnContent","MAX_MERCHANT_NAME_LENGTH","../node_modules/xo-return-to-merchant/dist/index.js","_formatReturnContent","../node_modules/xo-return-to-merchant/dist/util.js","postTo","forceRedirect","paymentToken","billingToken","paymentID","payment_id","isHTTPUrl","showPaymentSuccess","isVZeroIframe","partnerIntegration","redirectImmediateParent","operation","updateParent","userStatus","bridge","frames","PayPalBridge","returnToParent","../node_modules/xo-shipping-change/src/factory.js","getCartTotal","updateCart","allowChangeShipping","../node_modules/xo-shipping-change/src/outputMapper.js","payloadOutputMapper","amountOutputMapper","breakdownOutputMapper","item_total","handling","tax_total","newBreakdown","_$util$extend","fullAmount","shippingAddressMapper","shippingOptionMapper","selected","selected_shipping_option","../node_modules/xo-shipping-change/src/util.js","_outputMapper","acc","_ref$shippingAddress","shippingChangePayload","shippingOptionsChanged","shippingChangeActions","cartTotal","changedShippingOptions","oldOptions","newOptions","newCartTotal","../node_modules/xo-shipping-options/src/component/directive.js","_TYPE_CONTENT_MAPPING","_TAB_CONTENT_MAPPING","SHIPPING_TYPE","TYPE_CONTENT_MAPPING","TAB_CONTENT_MAPPING","onSelect","onClickEdit","gotoShipping","canChangeShipping","setTab","tab","setStateTo","getTabs","hasShipping","hasPickup","shippingTab","pickupTab","autoSelect","getSelectedTab","tabs","selectedTab","hasMultiShippingMethods","hasMultiPickupMethods","pickupMethods","selectedShippingMethod","selectedPickupMethod","callCallback","getShippingMethodByID","formatShippingMethod","mapShippingMethodsByType","equals","getFormattedLabel","isPickupDropdownActive","isShippingDropdownActive","isPickup","pickupLabel","shippingLabel","formatShippingMethods","renderTabs","../node_modules/xo-shipping-options/src/component/styles.less","../node_modules/xo-shipping-options/src/component/template.html","../node_modules/xo-shipping-options/src/index.js","../node_modules/xo-shipping-options/src/lib/api.js","_cart","newShippingOptions","newOption","shippingOptionsPatch","cartAmountPatch","retotalCart","../node_modules/xo-shipping-options/src/lib/cart.js","grossTotalAmount","formatAmount","sumAmounts","sumDetails","detailValue","oldTotal","oldDetails","newDetails","../node_modules/xo-shipping-options/src/lib/index.js","../node_modules/xo-third-party-components/src/thirdParty-info/index.js","venmoExperience","thirdPartyInfo","getUserAgent","_sessionStorage","_sessionStorage2","_venmoModels","PWV_COOKIE","cancelLogoutEventListener","$VenmoUserModel","$VenmoOnboardModel","resetThirdPartyExperience","readCookie","nameEQ","ca","isThirdPartyEligible","isBaiduEligible","baiduEligibility","isVenmoEligible","geolocation","baiduWallet","isProcessorDeclined","isInvoice","isBillingAgreement","isVenmoCookie","isVenmoCookiePresent","isSFAuthenticationSession","isMSPTransaction","eligibilityParams","isNotInvoice","isNotProcessorDeclined","isNotBillingAgreement","isUSMerchant","isNotSFAuthenticationSession","isNotMSPTransaction","venmoEligibility","is_venmo_cookie","cookieValue","buildVenmoURL","SCHEME","venmoAppSwitchURL","VENMO_ROUTE","LOGIN_ROUTE","cartModel","$httpParamSerializer","x-success","absUrl","x-failure","venmoExperienceKey","sessionStorage","getItem","allowedThirdPartyExperiences","BAIDU","THIRD_PARTY_NAMESPSACE","setAsVenmoExperience","_JSON$stringify","setAsBaiduExperience","_JSON$stringify2","availableExperiences","currentExperience","getExperience","tenant","../node_modules/xo-third-party-components/src/thirdParty-info/sessionStorage.js","getSessionStorage","../node_modules/xo-third-party-components/src/venmo-models/index.js","$VenmoTransactionEligibility","$VenmoSupplementaryInfo","../node_modules/xo-title/dist/directive.js","titleTxt","tagName","newEl","../node_modules/xo-title/dist/template.html","../node_modules/xo-tracking/dist/builder.js","resolvePageQualifier","_dataObj","$FptiDataModel","decorate","baseData","productOverride","getUUID","transition_time","cust","dc","az","comp","getDataObject","isInContext","dataAry","../node_modules/xo-tracking/dist/button.js","_beaconUrl","_beaconParams","_alreadyFired","_strToElements","elements","_fireButtonTrackingBeacon","xoData","buildParam","getGUIID","ts","vr","addToDocument","WWW_AKA_MVT_BUTTONS","WWW_AKA_MVT_ID","ipaddress","resetAlreadyFired","../node_modules/xo-tracking/dist/directive.js","trackSubmit","elementId","elementName","errorKey","errorText","elementModel","trackLink","trackClick","trackInput","../node_modules/xo-tracking/dist/fpti.js","_builder","fptiBeaconUrl","getPageTrackingData","routeParent","merge","analytics","$FptiBuilder","setup","pta","stringifyErrorMessage","cause","../node_modules/xo-tracking/dist/index.js","../node_modules/xo-tracking/dist/listener.js","_button","appName","addTrackingData","cplSettings","enableCPL","passesCplThrottle","cplEnabled","forceEnableCPL","logTransition","suppressTransitionLog","logStateExit","getBeaconUrl","fptiCustomRecordClick","analyticsInstance","fptiDataObj","Analytics","setRequestData","recordClick","route_name","fptiTransition","fptiFieldErrors","form_field_errors","$fptiError","$ButtonTrackingService","generateMetaIds","$FptiConstants","fpti_landing_page","oldHash","fptiserverurl","firstInvocation","trackPageStart","startCPLTracking","firstDone","trackDone","beaconData","endCPLTracking","pageData","inferStart","buildParams","fptiProductOverride","legacyFptiData","pgrp","flid","../node_modules/xo-tracking/dist/model.js","constant","buznameMap","flowgatename","placeHolder","fptiKey","flowname","hier1","inout","fptiKeys","businessType","merchantType","pageGroup","pageQualifer","pageStartTime","pageTechnologyFlag","paymentFlowId","rLogId","sessionId","siteHierarchy","sourceCi","tealeaf","ecToken","pxpExpSelected","pxpTreatementSelected","pxpQualifiedTreatment","pxpContextId","econsent","review","error_page","add_card","add_bank","done_page","shoppingCart","soldout","openButton","checkout_login","checkout_genericError","checkout_fastlogin","checkout_econsent","checkout_review","checkout_pageAddCard_addCardFlow_addCard","checkout_updateCard_addCardFlow_addCard","checkout_pageAddFi_bank_add","checkout_done","checkout_guest","checkout_signup","guestupgrade_genericError","checkout_multistepsignup_multistepsignupaddcard","checkout_shoppingCart","checkout_emptyCart","checkout_soldout","checkout_openButton","productConfig","_decoratorList","decorators","buznameDiff","dataObj","placeHolderConfig","buznameEntryPlaceHolder","buznameEntry","_placeHolder$split","main","_base","pxptrackingdata","qt","qc","trackInfo","tracking_tags","decorator","uuid_v4_mask","uuid_v1_mask","_generateCorrelationId","uidRandomArr","uidTime","_generateUUID","CalModel","_calCorrId","generateCalCorrId","generateUUID","../node_modules/xo-tray-height/dist/directive.js","topClass","topSelector","topElem","inScope","useNewFlow","calculate","curElem","position","deprecatedCalculate","headerHeight","mainHeight","trayMinheight","asideContentHeight","$aside","$asideContent","minHeight","../node_modules/xo-ui-components/src/accessibility/directive.js","_ui","ariaLabel","linkButton","altKey","ctrlKey","allowTabEscape","selectAllowTabEscape","escapeToggle","selectCancel","$allTabbable","findAll","tabbable","$origin","shiftKey","RIGHT","LEFT","modalCancel","getNextIndex","$elements","modalBox","cancelFn","registerModal","deregisterModal","locateAndFocus","$elementToFocus","directiveElementFocusable","focusable","focusElement","filterAll","focusRefreshOn","focusWhen","FOCUS_EVENT_NAME","startState","focusWhenState","endState","transitionsTo","transitionMessage","unregisterEventFn","focusSelector","$allFocusable","setFocusable","../node_modules/xo-ui-components/src/accessibility/ui.js","visible","expr","filters","addBack","isTabIndexNotNaN","mapName","tabIndex","isTabIndexNaN","filterFn","container","../node_modules/xo-ui-components/src/banner/directive.js","isNmj","userPhoto","photoData","min_size","avatarElement","showInitials","photo_url","initials","../node_modules/xo-ui-components/src/banner/styles.less","../node_modules/xo-ui-components/src/banner/template.html","../node_modules/xo-ui-components/src/directionality/directive.js","currentWatchDeregister","listenForInputRendered","checkDOMNodeInserted","unbind","setDirectionality","toggleClass","$document","getAttribute","jqueryOnKeyupHandler","resetDirectionalityListener","directionalityText","../node_modules/xo-ui-components/src/directionality/styles.less","../node_modules/xo-ui-components/src/dropdown-multiline/directive.js","blur","$newTarget","explicitOriginalTarget","activeElement","../node_modules/xo-ui-components/src/dropdown/directive.js","dropdown","isWinOS","dropdownTextBindVar","$parentScope","selectInitialValue","ngChange","executeSelectChange","ngOptions","selectTextElement","toggleOptionsLTROverride","../node_modules/xo-ui-components/src/error-tooltip/directive.js","_angularAria","$ariaProvider","bindRoleForClick","ariaInvalid","ariaRequired","ariaHidden","ctrls","formCtrl","modelCtrl","shouldBeRequired","showCheckboxRequired","$submitted","$error","shouldBeInvalid","formatSpaceSplitString","strArray","idIndex","generateId","requiredId","invalidId","requiredError","invalidError","ngRequired","setAriaAttributes","addTooltips","describedby","windowBot","requiredBot","invalidBot","../node_modules/xo-ui-components/src/escape-hatch/closeFrame/directive.js","closeFrame","iFrameFlow","findWindowAndRedirect","../node_modules/xo-ui-components/src/escape-hatch/escapeHatch/directive.js","../node_modules/xo-ui-components/src/floating-label/directive.js","treatmentType","newLocale","oldLocale","showFloatingLabels","flSpan","currentTarget","../node_modules/xo-ui-components/src/floating-label/styles.less","../node_modules/xo-ui-components/src/generic-error/directive.js","TITLE_KEY_MAPPING","BLOCK_NON_DOMESTIC_SHIPPING","BLOCK_PPC_INELIGIBLE_USER","COMPLIANCE_VIOLATION","DOMESTIC_TRANSACTION_REQUIRED","GAMER_LOGIN_OUT_OF_COUNTRY","GAMER_RESIDENCE_OUT_OF_COUNTRY","HERMES_PAYER_COUNTRY_NOT_ALLOWED_DCF","NEGATIVE_BALANCE_TRANSACTION_REFUSED","PAYEE_ACCOUNT_LOCKED_OR_CLOSED","PAYER_COUNTRY_NOT_ALLOWED","PAYER_COUNTRY_NOT_ENABLED","PAYER_LOGIN_COUNTRY_NOT_ALLOWED","PAYMENT_PROCESS_ERROR","RETRY","STUDENT_ACCOUNT","XOON_PAYER_COUNTRY_NOT_ALLOWED_DCF","CREDIT_CARD_AUTH_FAILED","ACCOUNT_CANNOT_BE_FETCHED","AGREEMENT_ALREADY_CREATED","ANDROID_PAY_ALREADY_PROVISIONED","ANDROID_PAY_ELIGIBILITY_ERROR","DEFAULT_TOKENIZED_WALLET_ERROR","DUPLICATE_INVOICE_ID","EINVALIDCSRF_JWT_EXPIRED","EXPIRED_SESSION","GAMER_ACCOUNT_UNVERIFIED","GAMER_INELIGIBLE","GAMER_FI_INELIGIBLE","GAMER_FI_UNCONFIRMED","GAMER_INVALID_ACCOUNT_TYPE","GAMER_NO_VALID_FUNDING_INSTRUMENT","GAMING_FUNDING_SOURCE_VALIDATION_FAILED","GUEST_UPGRADE_ERROR","GUEST_UPGRADE_SESSION_ERROR","INVALID_RESOURCE_ID","PAYER_CANNOT_PAY","PAYMENT_ALREADY_DONE","PAYMENT_DENIED","RESTRICTED_USER","TRANSACTION_LIMIT_EXCEEDED","UNSUPPORTED_COUNTRY","UNSUPPORTED_DUE_TO_RECEIVER_PREFERENCE","UNSUPPORTED_PAYEE_CURRENCY","renderContentWithMerchantName","merchantNameFromProps","merchantNameFromModels","renderContentWithWalletTokenizationName","TITLE_KEY_HANDLER","CONTENT_KEY_HANDLER","SHOW_LOGOUT_LINK_CODES","HIDE_CANCEL_LINK_CODES","RETRY_LINK","TRANSACTION_REFUSED_BA_TITLE_MSG","BA_NO_PURCHASE","BA_WITH_PURCHASE","base64regex","cancelPreventStateChange","hideCancelLink","retryLink","allowUnload","cancelLink","retryCheckout","loggingOut","getTitle","titleKey","getCancelLabel","personalizedBanner","_models","showLogoutLink","formattedNameInformal","../node_modules/xo-ui-components/src/generic-error/styles.less","../node_modules/xo-ui-components/src/generic-error/template.html","../node_modules/xo-ui-components/src/generic-message/directive.js","titleKeyMapping","PAYMENT_SUCCESS","contentKeyMapping","merchant_email","_$stateParams$returnU","enableSuccessReturnButton","contentWithButtonKeyMapping","contentWithButtonKey","returnButtonLabel","../node_modules/xo-ui-components/src/message/directive.js","isgreyheader","toggleAlert","$alert","detach","../node_modules/xo-ui-components/src/modal/directive.js","showCloseButton","enableCloseOnEscape","onClose","enableMobileInterstitial","overrideDefaultContainer","animate","escapeKeyHandler","../node_modules/xo-ui-components/src/modal/template.html","../node_modules/xo-ui-components/src/prefix-attrs-with/directive.js","prefixAttrsWith","attrName","../node_modules/xo-ui-components/src/select-simple/directive.js","defaultText","hasOnSelectedCallback","isNotSelected","checkSameOption","option1","option2","isValidSelected","inOptions","updateComputedOption","hasLabel","compSelectedOption","../node_modules/xo-ui-components/src/select-simple/styles.less","../node_modules/xo-ui-components/src/select-simple/template.html","../node_modules/xo-ui-components/src/spinner-button/directive.js","onClick","buttonText","isProcessing","../node_modules/xo-ui-components/src/spinner/directive.js","$body","getElementsByTagName","$priorActiveElement","$capturedElement","$header","$slidingArea","$footer","hidePageContentFromScreenReader","_event$target","targetId","captureFocus","setLoadingMessage","subHeading","loading","hideSpinner","cancelStartLoad","cancelAllLoaded","cancelSetLoadingMessage","../node_modules/xo-ui-components/src/tabs/directive.js","getTabIsActive","compSelectedTab","inTabs","updateComputedSelected","../node_modules/xo-ui-components/src/tabs/styles.less","../node_modules/xo-ui-components/src/tabs/template.html","../node_modules/xo-ui-components/src/tooltip/directive.js","getDefaultShowEvent","addDescribedById","describedByIds","removeDescribedById","existingId","isMouseTypeEvent","debounceOnMouseTrigger","isMouseType","showEvent","hideEvent","displayInline","align","$trigger","toolTip","toolTipID","isMouseOver","slideDown","progress","toolTipBot","slideUp","SHOW_EVENT","HIDE_EVENT","../node_modules/xo-ui-components/src/tooltip/template.html","../node_modules/xo-ui-components/src/ui-utils/directive.js","ACCEPT_DISABLED","toggleDisabled","disable","checkIfDisabled","../node_modules/xo-validation/dist/directive.js","validationUtil","rtrim","regex","alphabetic","numeric","NUMERIC_REGEX","validBankAccount","showIBAN","validRouting","validIBANCode","validIBAN","validIBANCountry","validIBANWithValidCountryCode","validLast4","LAST_4","validStreet","validDobYear","validDobDay","validDobMonth","validPoBox","boxRE","validAddressSansPoBox","cassRE","validEmailOrPhone","validEmail","trimmedValue","EMAIL_REGEX","highAscii","HIGH_ASCII_REGEX","validDate","dArr","validDateWithoutDay","validYear","validMonth","mmddyyyy","twoDigits","yyyymmdd","legalAge","dateParts","yr","validBD","validZip","postalCodeRegex","validationPattern","validExpiry","$monthEl","$yearEl","monthElName","yearElName","validExpires","formName","monthFieldName","yearFieldName","cardsDontNeedExpiry","valueOptions","setStartDateValidity","setExpiryValidity","expiryValidity","startDateValidity","startmonth","startyear","dobField","dobDayCC","dobMonthCC","dobYearCC","setDOBValidity","dobEnabledCards","dobValidity","$dayEl","validName","isChecked","validRUPassport","customValidator","ruleJson","$formatters","../node_modules/xo-wallet-components/src/3ds/directive.js","onComplete3dsHandler","termUrl","isIos","timeout3DSConfig","timeout3DS","lightBoxTimeout","threeDSIframe","show3DSLightBox","show3DS","lightbox","removeEventListener","handleInitFailure","payment_experience","3d_secure_authentication_supported","init3DSApi","acsUrl","acsMethod","acsPaReq","complete3DSApi","paRes","third_party_response","close3DSFrame","lightboxMask","complete3DS","complete3DSFrame","ev","../node_modules/xo-wallet-components/src/add-bank/bank-input/directive.js","IBANMask","BANK_CURRENCY","BANK_COUNTRY","showDCCTreatmentName","UTC","days","years","toggleIBAN","onibanKeyup","merchantID","sourceCurrency","sourceValue","targetCurrency","pricing","isCurrencyConversionValid","showTotalAmount","targetFormatStr","currencyFormatSymbolISOCurrency","sourceCurrencyCode","exchangeSpreadFormatStr","fxDate","issuedDate","dateTimeShort","../node_modules/xo-wallet-components/src/add-bank/bank-input/styles.less","../node_modules/xo-wallet-components/src/add-card/addCep/directive.js","../node_modules/xo-wallet-components/src/add-card/addCep/route.js","../node_modules/xo-wallet-components/src/add-card/addbilling/directive.js","showmeftsection","hideparenthead","billingaddressupdated","isUserInputtedAddress","handleValidation","prefilled","billingAddresses","updateAddress","showAddressFields","full_address","updateBillingAddressAndReturn","newBillingAddress","../node_modules/xo-wallet-components/src/add-card/addbilling/route.js","../node_modules/xo-wallet-components/src/add-card/addcard/directive.js","_cardMetaData","pagetitle","cardmodel","selectedPromotionCardType","promotion","pageLevel","manageCardFlow","onSuccess","plccOffer","showplcc","gotoBilling","showCep","isUPOP","isCUP","isUpop","$CardMetaData","getMetaData","contentString","cardTypeChanged","addErrorMessage","handleContingencies","defaultErrorKey","initiateOTP","resolveOTP","INIT_OTP_CONTINGENCY","isNewCard","cardAdded","numberAdded","cardTypeAdded","last4Added","last4ToUse","cardTypeToUse","updateCardSidebarMessage","updateCardPageMessage","addCardMessage","DISALLOWED_CUPSECURE_ADDITION","../node_modules/xo-wallet-components/src/add-card/addcard/route.js","_route2","on-success","../node_modules/xo-wallet-components/src/add-card/cardExpiry/directive.js","$xoCardExpiryDirective","expiryMonth","expiryYear","showNumericKeypad","focusAndBlurHandler","expiryFormat","maxlength","expiryMask","keyType","../node_modules/xo-wallet-components/src/add-card/cardExpiry/template.html","../node_modules/xo-wallet-components/src/add-card/cardMetaData/index.js","CARD_META_DATA","expiry","issue","spaces","PLCC","MAESTRO","SWITCH","DINERSCLUB","subTypes","QIWI","CBNATIONALE","CETELEM","COFIDIS","COFINOGA","HIPERCARD","CUPC2CREDIT","CUPC2AMEXCREDIT","CUPC2DEBIT","CUPC2AMEXDEBIT","VISACUPDEBIT","VISACUPCREDIT","CUPCREDIT","CUPDEBIT","getTypeByPattern","cardMetaData","metaData","cardDualType","dualType","cardCountry","productType","_productType","getCardType","../node_modules/xo-wallet-components/src/add-card/creditcard-input/directive.js","jsChangeHandler","jsOnchange","isUnsupportedCard","lastVerifiedBin","lastRequestedBin","updateBuyerFXCurrencyConversion","isControl","isBuyerFxApplicable","logConversionDataToFPTI","isChangeable","_$scope$card$currency","getDefaultCoversionSelection","setConversionData","hasConversionData","conversionErrorHandler","getCurrencyConversion","currencyConvCardTypeChangeHandler","checkCardForDccCall","_$scope$card","isConversionApplicable","removeNonNumericCharsAndTruncate","isCardLenValid","cardLengthValid","isCardLuhnValid","cardLuhnValid","_$scope$card2","unchangeableCardTypes","mxDebitCards","numdigits","parity","promotionType","isPlcc","showMXCardLogos","pxpMXCardLabels","showLabels","debitCardFlow","paymentCardProductClass","cardTypeServiceCall","cardProductValid","forceDropDown","scanCardExperimentEligibility","showScanCardExperiment","supportedCardNamesCommaSeparated","disallowedCardMessageFeature","showUnsupportedCardMessage","unsupportedCardNamesCommaSeparated","changeCardNumber","cvvShown","expiryShown","showDropDown","showAcceptedCardLogos","getCardTypeByNumber","formatCardNumber","selectCardTypeForDualBrands","dualCardTypes","selectCardType","clearCardType","getCardTypeByNumberServiceCall","bin","user_country","logObj","totalItems","brands","brandObj","disallowedCard","allowedCardsTooltip","ccNumber","GET_FI_ISSUER_DETAILS_ERR","getAllowedCardTypeByNumber","getDisallowedCardTypeByNumber","enableAddMode","changeType","isCardTypeChanged","is_fullwidth_character","formattedNumber","ccField","inputLength","cursorStart","selectionEnd","startYears","../node_modules/xo-wallet-components/src/add-card/creditcard-input/utils.js","cartCurrency","billingCurrency","hasDifferentCurrency","ineligibleDomesticCountriesList","isForcedDomesticConversion","maxLen","replacedStr","../node_modules/xo-wallet-components/src/add-card/cvv/directive.js","$xoCvvDirective","showLabel","maskCVV","cvvLength","cvvRequired","../node_modules/xo-wallet-components/src/add-card/cvv/template.html","../node_modules/xo-wallet-components/src/add-card/directive.js","fundingid","addCCDone","cardTypeSelected","cepDone","hide_type","resolution","funding","lastDigits","../node_modules/xo-wallet-components/src/add-card/dob/directive.js","../node_modules/xo-wallet-components/src/add-card/dob/template.html","../node_modules/xo-wallet-components/src/add-card/index.js","../node_modules/xo-wallet-components/src/add-card/route.js","isupdatecard","parent-callbacks","selected-promotion-card-type","page-level","prefill-address","../node_modules/xo-wallet-components/src/add-card/selectcard/directive.js","../node_modules/xo-wallet-components/src/add-card/selectcard/route.js","../node_modules/xo-wallet-components/src/confirm-upop/confirm/directive.js","VERIFICATION_CODE_COUNTDOWN_IN_SECS","RESEND_CODE_LINK_TIMEOUT_MILLI_SECS","ONE_MINUTE_IN_SECS","buttonTextKey","addMessage","stopConfirmCodeTimer","confirmCodeTimer","countdown","stopResendCodeTimer","resendCodeTimer","showResendLink","updateCountdown","isConfirmProcessing","startCountdown","resetTimer","processed","sendNewCode","otp_code","resendCode","confirmOTP","card_data","expiration_time","card_verification_code","COMPLETE_OTP_CONTINGENCY","phoneLast4","../node_modules/xo-wallet-components/src/confirm-upop/confirm/template.html","../node_modules/xo-wallet-components/src/confirm-upop/directive.js","_addCard","onInitError","initSuccess","showCollectOtpScreen","fromLoginOverlay","_success","confirmed","setMessage","setInitErrorData","../node_modules/xo-wallet-components/src/confirm-upop/init/directive.js","setErrorData","initOtp","showInitScreen","../node_modules/xo-wallet-components/src/confirm-upop/init/template.html","../node_modules/xo-wallet-components/src/confirm-upop/route.js","pageOnOverlay","../node_modules/xo-wallet-components/src/confirm-upop/styles.less","../node_modules/xo-wallet-components/src/confirm-upop/template.html","../node_modules/xo-wallet-components/src/currency-conversion-options/directive.js","isPrePlan","modelsObj","planType","conversionIsPayPal","_props$treatment","isTreatment1","modelWithConversion","conversionKey","_models$checkoutCart$","toValue","toCurrency","_conversion","fromCurrency","formattedToStr","paypalRate","paypalTotalPath","issuerConversionTotal","showRateDisclosure","showBRDisclosure","showAMLDisclosure","../node_modules/xo-wallet-components/src/currency-conversion-options/template.html","../node_modules/xo-wallet-components/src/fi-contingency-list/contingencies.js","contingencyList","ACCOUNT_RESTRICTED","ADD_REFUSED_DUE_TO_EXCEEDING_MAX_DUPLICATE_INSTRUMENT_LIMIT","BANK_ACCOUNT_NUMBER_IS_EMPTY","BANK_ADDRESS_IS_EMPTY","BANK_ROUTING_NUMBER_IS_EMPTY","BILL_ADDR_NOT_ALLOWED","BILL_ADDR_UNAVAILABLE","BILL_ADDR_UNAVAILABLE_GLOBAL","BILL_ADDR_UNAVAILABLE_INTL","BILL_ADDR_UNSUPPORTED","BILLING_ADDRESS1","BILLING_CITY","BILLING_COUNTRY","BILLING_DIFFERENT_COUNTRY","CARD_NOT_ACTIVATED_FOR_UPOP","CC_INVALID_CSC","CHECK_DIGITS_NOT_PRESENT","CHECK_DIGITS_NOT_PROC","CHECK_DIGITS_UNAVAILABLE","CHECK_DIGITS_UNSUPPORTED","CONFIRMATION_RESEND_COUNT_EXCEEDED","CONTACT_CARD_ISSUER_TO_VERIFY","DUPLICATED_TRANSACTION","EMPTY_DATA","EXCESSIVE_REJECTIONS","FREQUENT_REQUEST_VERIFICATION_CODE","INSTRUMENT_ALREADY_EXISTS","INSTRUMENT_BILLING_ADDRESS_NOT_ACCEPTED","INSTRUMENT_COUNT_EXCEEDED","INSTRUMENT_COUNT_EXCEEDED_VERIFIED","INSTRUMENT_COUNT_LIMIT_EXCEEDED","INSTRUMENT_COUNT_LIMIT_EXCEEDED_VERIFIED","INSTRUMENT_DISABLED","INSTRUMENT_DUPLICATE_LIMIT_REACHED","INSTRUMENT_INTERNATIONAL","INSTRUMENT_REFUSED","INSTRUMENT_REFUSED_DUE_TO_MAX_LIMIT","INSTRUMENT_REFUSED_DUE_TO_MAX_SHARED_INSTRUMENT_LIMIT","INSTRUMENT_UNAVAILABLE","INSTRUMENT_UPDATE_NO_CHANGE","INVALID_BANK_ACCOUNT_NUMBER","INVALID_BANK_ADDRESS","INVALID_BANK_BENEFICIARY_NUMBER","INVALID_BANK_BRANCH_NUMBER","INVALID_BANK_IBAN","INVALID_BANK_IBAN_CONVERSION_ERROR","INVALID_BANK_ROUTING_NUMBER","INVALID_BENEFICIARY_FIRST_NAME","INVALID_BENEFICIARY_NAME","INVALID_CARD_TYPE","INVALID_DATA","INVALID_IBAN_CODE","INVALID_ONE_TIME_PASSWORD","INVALID_PARAMETERS","INVALID_PHONE","ISSUER_ERROR","ISSUER_RESTRICTED","MAX_AMOUNT_EXCEEDED","MISSING_FIELD","NOT_CONFIRMED","NOT_ELIGIBLE_TO_EDIT_CARD","PAYPAL_CARD_REFUSED","PAYPAL_CREDIT_CARD_REFUSED","PAYPAL_DEBIT_CARD_REFUSED","PI_TYPE_NOT_SUPPORTED","REJECT_AMEX_ADULT","REJECT_UNKNOWN","RESTRICTED_CARD","RESTRICTED_CARD_GUEST","SETTLEMENT_DENIED","TRANSACTION_TIMEOUT","WRONG_CONFIRMATION_VALUES","../node_modules/xo-wallet-components/src/fi-contingency-list/util.js","defaultKey","../node_modules/xo-wallet-components/src/installment-options/directive.js","installmentsModel","term","payment_value","monthly_payment","payment_currency","total_cost","total_cost_value","total_cost_currency","discount_amount","discount_value","discount_currency","discount_percentage","../node_modules/xo-wallet-components/src/pay-upon-invoice/directive.js","dobDays","dobMonths","dobYears","validateAddress","getDefaultAddress","isValidBilling","isValidShipping","defaultAddress","isPrefilledAddress","recipientName","zipAndCity","getPayButtonText","payButtonText","changeShipping","loginDataGsid","pui_flow","isPayerRequired","PAYMENT_METHOD_UNUSABLE","successResult","loginData","account_number","../node_modules/xo-wallet-components/src/pay-upon-invoice/template.html","../node_modules/xo-webpack-config/polyfills.js","./css/app.less","./js/app.js","_middleware","guestUpgradeRoute","$GuestUpgradeRoute","$Middleware","baseRoute","$BaseRoute","./js/bootstrap.js","$locationProvider","hashPrefix","prefetch","./js/lib/contingency.js","$contingencyHandler","routeToAddCC","gamblingCauses","gaming","forbidden","NEED_CONFIRMED_CARD","CURRENCY_COMPLIANCE","PAYEE_ACCOUNT_RESTRICTED","PAYER_COUNTRY_NOT_ALLOWED_DCF","GUEST_CHECKOUT_NOT_ALLOWED","VERIFY_USER_IDENTITY","PAYER_INVALID_FOR_PAYMENT","PAYMENT_CANNOT_BE_INITIATED","PERMISSION_DENIED","INVALID_TOKEN","INVALID_FUNDING_OPTION","SHIPPING_ADDRESS_INVALID","RISK_DENIED","INVALID_ARGUMENT","CREDIT_PAYMENT_NOT_ALLOWED","CANNOT_PAY_SELF","BUYER_NOT_SET","logUnhandledContingency","./js/lib/error.js","$apiErrorHandler","$forbiddenHandler","$exceptionHandler","_fallback","_contingency","ERROR_STATE","ERROR_PREVENTED","$fallbackErrorHandler","handled","errType","errName","errObj","constructEventName","fromStateFormatted","toStateFormatted","stateChangeError","windowError","debounceFactor","./js/lib/fallback.js","goToUrl","xoAppData","determineUrlForUxFallback","ppp_msg","goToGenericError","payeeModel","_$config$fallbackWhit","fallbackWhitelist","_$config$fallbackWhit2","whitelist","_err$product","entry_point","resizeTo","availWidth","availHeight","paymentAction","fallbackEnabled","fallbackNotWhitelisted","RETRY_KEY","RETRY_PAGE_LIMIT","timesSeen","enable_refresh_prompt","landing","incontext","nolegacy","_checkoutAppData$flag","hosted_button_id","invoice_id","uxUrl","fallback_action","modelLoadErr","./js/lib/index.js","_metaBuilder","_miniBrowser","./js/lib/integration.js","$FLOWS","_$DEFAULT","_$CONTEXT$FULLPAGE","_$integration$init","CHECKOUT","PARTNER","REDIRECT_TOP","REDIRECT_QUERY_PARAM","./js/lib/metaBuilder.js","$metaBuilder","cartId","app_name","./js/lib/middleware.js","_xoAPayUtils","checkToken","urlToken","bodyToken","client","resolveLocale","ipCountry","localeTestUrlParam","checkoutBillingCountry","checkoutShippingCountry","checkoutSessionLocale","countryParam","localeParam","guestAccountData","MAYFLY_ERROR","checkFlowType","wpsPattern","isEbay","isWPS","clientSideLogout","checkAPayBASLRedirect","apayEnabled","xcomponent","updateMerchantData","clientData","identityData","logo_url","checkJavaScriptInjection","cart_id","verifyRedirectURI","isValidUri","proxFallbackManager","guestFallback","handleTagManager","dataLayer","contentCountry","contentLanguage","tagManagerUrl","scriptTag","createTagManagerScript","defer","insertScript","tagManagerObjec","scriptElement","firstScript","insertBefore","setupMiniBrowser","$MiniBrowser","initialize","logStart","is_directintegration","isDirectIntegration","is_incontext","isMiniBrowser","isFrame","checkForSDK","isSDKintegration","sdkLoaded","paypal","Checkout","./js/lib/miniBrowser.js","MiniBrowser","_isMiniBrowser","_isFrame","nativeIntegration","landingUrl","scripts","./pages/xo-add-card/directive.js","populateInfoMessage","fiType","txn_receipt_id","receipt_id","isNew","./pages/xo-add-card/route.js","./pages/xo-checkout/directive.js","_fn","$LocaleResolver","$fn","setLanguageToggleFlags","landingPage","hermesLoginRedirectParam","languageToggleFeature","languageSwitchHeader","languageSwitchFooter","isSntSupported","directionality","localizeHead","getPaymentMethod","paymentMethodViaUrl","paymentMethodViaCheckoutAppData","checkUnbranded","allowedUnbrandedPayments","contentChange","loadTime","_performance","timeOrigin","_performance$timing","page_load_time","./pages/xo-checkout/route.js","is-unbranded","payment-method","./pages/xo-end/directive.js","_returnParams","dependentModels","wpsURL","wpsData","isWPSCart","PayerID","billingData","legacy_billing_integration","paymentId","handleRedirection","isMobileDevice","finishProxFlow","proxStsClientId","response_type","skip_oauth","skip_consent","target_client_id","scope_consent_context","loginCodeResult","onAuthorize","xparams","payerID","lippParamList","metadata_id","lippUrl","lippRedirectUrl","clUrl","contextualLoginRedirectUrl","./pages/xo-end/route.js","./pages/xo-end/template.html","./pages/xo-generic-error/directive.js","$xoGenericErrorPageComponent","terminalKey","refreshKey","renderErrorPage","shouldRender","user_refresh","./pages/xo-generic-error/route.js","./pages/xo-generic-error/template.html","./pages/xo-generic-message/directive.js","stateChangeStart","./pages/xo-generic-message/route.js","./pages/xo-guest-upgrade/route.js","./pages/xo-guest/directive.js","./pages/xo-guest/route.js","./pages/xo-landing/helper.js","landingPageResolver","_paypalSdkConstants","landingFlow","checkoutPayeeModel","getProcessedRoute","appRoute","isForcedSignup","forced_signup_offered","callEPM","passedInExp","_ref$fundingSource","fundingSourceFromXprops","_ref$fundingOffered","fundingOffered","fundingOfferedFromXprops","isSPBSignEligible","spbSignupEligible","isUnbrandedAllowed","isPuiAllowed","./pages/xo-landing/route.js","$LandingRoute","enableInventoryWPS","inventoryInput","inventoryResponse","./pages/xo-pay-upon-invoice/directive.js","./pages/xo-pay-upon-invoice/route.js","pay-upon-invoice","./pages/xo-sidebar-installment-options/directive.js","./pages/xo-sidebar-installment-options/route.js","./pages/xo-sidebar/directive.js","payButton","onPageClick","./pages/xo-sidebar/route.js","./pages/xo-signup/directive.js","./pages/xo-signup/route.js"],"mappings":"AAAAA,eAAc;IAERC,4CACA,SAAUC,QAAQC,SAASC;QCDjCA,oBAAQ;QACRF,OAAAC,UAAiBC,oBAAQ,4CAAqBC,MAAAC;;IDSxCC,gDACA,SAAUL,QAAQC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AAA8P;;I7b6niDK8+M,8BACA,SAAU7uN,QAAQC,SAASC;SAEL,SAASF,QAAQojD,WAAWC;YAAa,IAAIxtC,8BAA8B9F;c8bzpiDvG8F,iCAAQ3V,oBAAA,2CAAWA,oBAAA,wCAAeA,oBAAA,mCAAeA,oBAAA,gCAA0BA,oBAAA;YAA2D6P,gCAAA,SAAEioB,SAAAymD;iBAExI,SAAAz6B,gBAAAhsB;oBACAA,mBAAAgsB,gBAAAhkD,QAAAC,SAAAmjD,WAAAC;mBACKj7C,OAAA4vB;gBAELA,QAAAh4B,OAAA,+GAAA+V,QAAA,yBAAAmvC;oBAEA,OAAAA,gBAAAn1B,OAAA;wBACAzpB,MAAA;wBACAo3C,WAAA;wBAOAqH;4BACA+Q,WAAA;4BACA4oB,gBAAA;4BACAnZ,cAAA;4BACAC,UAAA;4BACAmZ,eAAA;4BACA5oB;gCACA4wB;oCACA39B,UAAA;oCACAiN,WAAA;oCACAtxD,SAAA;;;;wBAIA4xB;4BACAjwB,MAAA;4BACAy0B;gCACAujG,YAAA;gCACAC,gBAAA;;;4BAGAj4H,MAAA;4BACAy0B;gCACA01B,OAAA;gCACA8tE,gBAAA;;;;;cAKCp5H,MAAAlF,SAAA4V,+BAAA9F,kCAAAxO,cAAAvB,OAAAC,UAAA8P;W9b6piD4BxL,KAAKtE,SAASC,oBAAoB,6CAA6CF,SAAS,mBAAmB;;IAIlIshE,GACA,SAAUthE,QAAQC,SAASC;QAEjCA,oBAAoB;QACpBF,OAAOC,UAAUC,oBAAoB;;KAKlC","file":"js/main.js","sourcesContent":["webpackJsonp([0],{\n\n/***/ \"../node_modules/core-js/fn/array/find.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\n__webpack_require__(\"../node_modules/core-js/modules/es6.array.find.js\");\nmodule.exports = __webpack_require__(\"../node_modules/core-js/modules/_core.js\").Array.find;\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/fn/array/includes.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\n__webpack_require__(\"../node_modules/core-js/modules/es7.array.includes.js\");\nmodule.exports = __webpack_require__(\"../node_modules/core-js/modules/_core.js\").Array.includes;\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/fn/object/assign.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\n__webpack_require__(\"../node_modules/core-js/modules/es6.object.assign.js\");\nmodule.exports = __webpack_require__(\"../node_modules/core-js/modules/_core.js\").Object.assign;\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/fn/object/entries.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\n__webpack_require__(\"../node_modules/core-js/modules/es7.object.entries.js\");\nmodule.exports = __webpack_require__(\"../node_modules/core-js/modules/_core.js\").Object.entries;\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/fn/object/values.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\n__webpack_require__(\"../node_modules/core-js/modules/es7.object.values.js\");\nmodule.exports = __webpack_require__(\"../node_modules/core-js/modules/_core.js\").Object.values;\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/fn/string/includes.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\n__webpack_require__(\"../node_modules/core-js/modules/es6.string.includes.js\");\nmodule.exports = __webpack_require__(\"../node_modules/core-js/modules/_core.js\").String.includes;\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_a-function.js\":\n/***/ (function(module, exports) {\n\n\n\nmodule.exports = function (it) {\n if (typeof it != 'function') throw TypeError(it + ' is not a function!');\n return it;\n};\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_add-to-unscopables.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\n// 22.1.3.31 Array.prototype[@@unscopables]\nvar UNSCOPABLES = __webpack_require__(\"../node_modules/core-js/modules/_wks.js\")('unscopables');\nvar ArrayProto = Array.prototype;\nif (ArrayProto[UNSCOPABLES] == undefined) __webpack_require__(\"../node_modules/core-js/modules/_hide.js\")(ArrayProto, UNSCOPABLES, {});\nmodule.exports = function (key) {\n ArrayProto[UNSCOPABLES][key] = true;\n};\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_an-object.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nvar isObject = __webpack_require__(\"../node_modules/core-js/modules/_is-object.js\");\nmodule.exports = function (it) {\n if (!isObject(it)) throw TypeError(it + ' is not an object!');\n return it;\n};\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_array-includes.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\n// false -> Array#indexOf\n// true -> Array#includes\nvar toIObject = __webpack_require__(\"../node_modules/core-js/modules/_to-iobject.js\");\nvar toLength = __webpack_require__(\"../node_modules/core-js/modules/_to-length.js\");\nvar toAbsoluteIndex = __webpack_require__(\"../node_modules/core-js/modules/_to-absolute-index.js\");\nmodule.exports = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (; length > index; index++) {\n if (IS_INCLUDES || index in O) {\n if (O[index] === el) return IS_INCLUDES || index || 0;\n }\n }return !IS_INCLUDES && -1;\n };\n};\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_array-methods.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\n// 0 -> Array#forEach\n// 1 -> Array#map\n// 2 -> Array#filter\n// 3 -> Array#some\n// 4 -> Array#every\n// 5 -> Array#find\n// 6 -> Array#findIndex\nvar ctx = __webpack_require__(\"../node_modules/core-js/modules/_ctx.js\");\nvar IObject = __webpack_require__(\"../node_modules/core-js/modules/_iobject.js\");\nvar toObject = __webpack_require__(\"../node_modules/core-js/modules/_to-object.js\");\nvar toLength = __webpack_require__(\"../node_modules/core-js/modules/_to-length.js\");\nvar asc = __webpack_require__(\"../node_modules/core-js/modules/_array-species-create.js\");\nmodule.exports = function (TYPE, $create) {\n var IS_MAP = TYPE == 1;\n var IS_FILTER = TYPE == 2;\n var IS_SOME = TYPE == 3;\n var IS_EVERY = TYPE == 4;\n var IS_FIND_INDEX = TYPE == 6;\n var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;\n var create = $create || asc;\n return function ($this, callbackfn, that) {\n var O = toObject($this);\n var self = IObject(O);\n var f = ctx(callbackfn, that, 3);\n var length = toLength(self.length);\n var index = 0;\n var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;\n var val, res;\n for (; length > index; index++) {\n if (NO_HOLES || index in self) {\n val = self[index];\n res = f(val, index, O);\n if (TYPE) {\n if (IS_MAP) result[index] = res; // map\n else if (res) switch (TYPE) {\n case 3:\n return true; // some\n case 5:\n return val; // find\n case 6:\n return index; // findIndex\n case 2:\n result.push(val); // filter\n } else if (IS_EVERY) return false; // every\n }\n }\n }return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;\n };\n};\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_array-species-constructor.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nvar isObject = __webpack_require__(\"../node_modules/core-js/modules/_is-object.js\");\nvar isArray = __webpack_require__(\"../node_modules/core-js/modules/_is-array.js\");\nvar SPECIES = __webpack_require__(\"../node_modules/core-js/modules/_wks.js\")('species');\n\nmodule.exports = function (original) {\n var C;\n if (isArray(original)) {\n C = original.constructor;\n // cross-realm fallback\n if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;\n if (isObject(C)) {\n C = C[SPECIES];\n if (C === null) C = undefined;\n }\n }return C === undefined ? Array : C;\n};\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_array-species-create.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\n// 9.4.2.3 ArraySpeciesCreate(originalArray, length)\nvar speciesConstructor = __webpack_require__(\"../node_modules/core-js/modules/_array-species-constructor.js\");\n\nmodule.exports = function (original, length) {\n return new (speciesConstructor(original))(length);\n};\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_cof.js\":\n/***/ (function(module, exports) {\n\n\n\nvar toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_core.js\":\n/***/ (function(module, exports) {\n\n\n\nvar core = module.exports = { version: '2.6.9' };\nif (typeof __e == 'number') __e = core; // eslint-disable-line no-undef\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_ctx.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\n// optional / simple context binding\nvar aFunction = __webpack_require__(\"../node_modules/core-js/modules/_a-function.js\");\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 1:\n return function (a) {\n return fn.call(that, a);\n };\n case 2:\n return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3:\n return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function () /* ...args */{\n return fn.apply(that, arguments);\n };\n};\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_defined.js\":\n/***/ (function(module, exports) {\n\n\n\n// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_descriptors.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\n// Thank's IE8 for his funny defineProperty\nmodule.exports = !__webpack_require__(\"../node_modules/core-js/modules/_fails.js\")(function () {\n return Object.defineProperty({}, 'a', { get: function get() {\n return 7;\n } }).a != 7;\n});\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_dom-create.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nvar isObject = __webpack_require__(\"../node_modules/core-js/modules/_is-object.js\");\nvar document = __webpack_require__(\"../node_modules/core-js/modules/_global.js\").document;\n// typeof document.createElement is 'object' in old IE\nvar is = isObject(document) && isObject(document.createElement);\nmodule.exports = function (it) {\n return is ? document.createElement(it) : {};\n};\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_enum-bug-keys.js\":\n/***/ (function(module, exports) {\n\n\n\n// IE 8- don't enum bug keys\nmodule.exports = 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'.split(',');\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_export.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nvar global = __webpack_require__(\"../node_modules/core-js/modules/_global.js\");\nvar core = __webpack_require__(\"../node_modules/core-js/modules/_core.js\");\nvar hide = __webpack_require__(\"../node_modules/core-js/modules/_hide.js\");\nvar redefine = __webpack_require__(\"../node_modules/core-js/modules/_redefine.js\");\nvar ctx = __webpack_require__(\"../node_modules/core-js/modules/_ctx.js\");\nvar PROTOTYPE = 'prototype';\n\nvar $export = function $export(type, name, source) {\n var IS_FORCED = type & $export.F;\n var IS_GLOBAL = type & $export.G;\n var IS_STATIC = type & $export.S;\n var IS_PROTO = type & $export.P;\n var IS_BIND = type & $export.B;\n var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];\n var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});\n var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});\n var key, own, out, exp;\n if (IS_GLOBAL) source = name;\n for (key in source) {\n // contains in native\n own = !IS_FORCED && target && target[key] !== undefined;\n // export native or passed\n out = (own ? target : source)[key];\n // bind timers to global for call from export context\n exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n // extend global\n if (target) redefine(target, key, out, type & $export.U);\n // export\n if (exports[key] != out) hide(exports, key, exp);\n if (IS_PROTO && expProto[key] != out) expProto[key] = out;\n }\n};\nglobal.core = core;\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\n$export.U = 64; // safe\n$export.R = 128; // real proto method for `library`\nmodule.exports = $export;\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_fails-is-regexp.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nvar MATCH = __webpack_require__(\"../node_modules/core-js/modules/_wks.js\")('match');\nmodule.exports = function (KEY) {\n var re = /./;\n try {\n '/./'[KEY](re);\n } catch (e) {\n try {\n re[MATCH] = false;\n return !'/./'[KEY](re);\n } catch (f) {/* empty */}\n }return true;\n};\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_fails.js\":\n/***/ (function(module, exports) {\n\n\n\nmodule.exports = function (exec) {\n try {\n return !!exec();\n } catch (e) {\n return true;\n }\n};\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_function-to-string.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nmodule.exports = __webpack_require__(\"../node_modules/core-js/modules/_shared.js\")('native-function-to-string', Function.toString);\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_global.js\":\n/***/ (function(module, exports) {\n\n\n\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math ? window : typeof self != 'undefined' && self.Math == Math ? self\n// eslint-disable-next-line no-new-func\n: Function('return this')();\nif (typeof __g == 'number') __g = global; // eslint-disable-line no-undef\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_has.js\":\n/***/ (function(module, exports) {\n\n\n\nvar hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_hide.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nvar dP = __webpack_require__(\"../node_modules/core-js/modules/_object-dp.js\");\nvar createDesc = __webpack_require__(\"../node_modules/core-js/modules/_property-desc.js\");\nmodule.exports = __webpack_require__(\"../node_modules/core-js/modules/_descriptors.js\") ? function (object, key, value) {\n return dP.f(object, key, createDesc(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_ie8-dom-define.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nmodule.exports = !__webpack_require__(\"../node_modules/core-js/modules/_descriptors.js\") && !__webpack_require__(\"../node_modules/core-js/modules/_fails.js\")(function () {\n return Object.defineProperty(__webpack_require__(\"../node_modules/core-js/modules/_dom-create.js\")('div'), 'a', { get: function get() {\n return 7;\n } }).a != 7;\n});\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_iobject.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = __webpack_require__(\"../node_modules/core-js/modules/_cof.js\");\n// eslint-disable-next-line no-prototype-builtins\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_is-array.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\n// 7.2.2 IsArray(argument)\nvar cof = __webpack_require__(\"../node_modules/core-js/modules/_cof.js\");\nmodule.exports = Array.isArray || function isArray(arg) {\n return cof(arg) == 'Array';\n};\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_is-object.js\":\n/***/ (function(module, exports) {\n\n\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nmodule.exports = function (it) {\n return (typeof it === 'undefined' ? 'undefined' : _typeof(it)) === 'object' ? it !== null : typeof it === 'function';\n};\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_is-regexp.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\n// 7.2.8 IsRegExp(argument)\nvar isObject = __webpack_require__(\"../node_modules/core-js/modules/_is-object.js\");\nvar cof = __webpack_require__(\"../node_modules/core-js/modules/_cof.js\");\nvar MATCH = __webpack_require__(\"../node_modules/core-js/modules/_wks.js\")('match');\nmodule.exports = function (it) {\n var isRegExp;\n return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : cof(it) == 'RegExp');\n};\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_library.js\":\n/***/ (function(module, exports) {\n\n\n\nmodule.exports = false;\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_object-assign.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n// 19.1.2.1 Object.assign(target, source, ...)\n\nvar DESCRIPTORS = __webpack_require__(\"../node_modules/core-js/modules/_descriptors.js\");\nvar getKeys = __webpack_require__(\"../node_modules/core-js/modules/_object-keys.js\");\nvar gOPS = __webpack_require__(\"../node_modules/core-js/modules/_object-gops.js\");\nvar pIE = __webpack_require__(\"../node_modules/core-js/modules/_object-pie.js\");\nvar toObject = __webpack_require__(\"../node_modules/core-js/modules/_to-object.js\");\nvar IObject = __webpack_require__(\"../node_modules/core-js/modules/_iobject.js\");\nvar $assign = Object.assign;\n\n// should work with symbols and should have deterministic property order (V8 bug)\nmodule.exports = !$assign || __webpack_require__(\"../node_modules/core-js/modules/_fails.js\")(function () {\n var A = {};\n var B = {};\n // eslint-disable-next-line no-undef\n var S = Symbol();\n var K = 'abcdefghijklmnopqrst';\n A[S] = 7;\n K.split('').forEach(function (k) {\n B[k] = k;\n });\n return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;\n}) ? function assign(target, source) {\n // eslint-disable-line no-unused-vars\n var T = toObject(target);\n var aLen = arguments.length;\n var index = 1;\n var getSymbols = gOPS.f;\n var isEnum = pIE.f;\n while (aLen > index) {\n var S = IObject(arguments[index++]);\n var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);\n var length = keys.length;\n var j = 0;\n var key;\n while (length > j) {\n key = keys[j++];\n if (!DESCRIPTORS || isEnum.call(S, key)) T[key] = S[key];\n }\n }return T;\n} : $assign;\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_object-dp.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nvar anObject = __webpack_require__(\"../node_modules/core-js/modules/_an-object.js\");\nvar IE8_DOM_DEFINE = __webpack_require__(\"../node_modules/core-js/modules/_ie8-dom-define.js\");\nvar toPrimitive = __webpack_require__(\"../node_modules/core-js/modules/_to-primitive.js\");\nvar dP = Object.defineProperty;\n\nexports.f = __webpack_require__(\"../node_modules/core-js/modules/_descriptors.js\") ? Object.defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return dP(O, P, Attributes);\n } catch (e) {/* empty */}\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_object-gops.js\":\n/***/ (function(module, exports) {\n\n\n\nexports.f = Object.getOwnPropertySymbols;\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_object-keys-internal.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nvar has = __webpack_require__(\"../node_modules/core-js/modules/_has.js\");\nvar toIObject = __webpack_require__(\"../node_modules/core-js/modules/_to-iobject.js\");\nvar arrayIndexOf = __webpack_require__(\"../node_modules/core-js/modules/_array-includes.js\")(false);\nvar IE_PROTO = __webpack_require__(\"../node_modules/core-js/modules/_shared-key.js\")('IE_PROTO');\n\nmodule.exports = function (object, names) {\n var O = toIObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) {\n if (key != IE_PROTO) has(O, key) && result.push(key);\n } // Don't enum bug & hidden keys\n while (names.length > i) {\n if (has(O, key = names[i++])) {\n ~arrayIndexOf(result, key) || result.push(key);\n }\n }return result;\n};\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_object-keys.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\n// 19.1.2.14 / 15.2.3.14 Object.keys(O)\nvar $keys = __webpack_require__(\"../node_modules/core-js/modules/_object-keys-internal.js\");\nvar enumBugKeys = __webpack_require__(\"../node_modules/core-js/modules/_enum-bug-keys.js\");\n\nmodule.exports = Object.keys || function keys(O) {\n return $keys(O, enumBugKeys);\n};\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_object-pie.js\":\n/***/ (function(module, exports) {\n\n\n\nexports.f = {}.propertyIsEnumerable;\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_object-to-array.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nvar DESCRIPTORS = __webpack_require__(\"../node_modules/core-js/modules/_descriptors.js\");\nvar getKeys = __webpack_require__(\"../node_modules/core-js/modules/_object-keys.js\");\nvar toIObject = __webpack_require__(\"../node_modules/core-js/modules/_to-iobject.js\");\nvar isEnum = __webpack_require__(\"../node_modules/core-js/modules/_object-pie.js\").f;\nmodule.exports = function (isEntries) {\n return function (it) {\n var O = toIObject(it);\n var keys = getKeys(O);\n var length = keys.length;\n var i = 0;\n var result = [];\n var key;\n while (length > i) {\n key = keys[i++];\n if (!DESCRIPTORS || isEnum.call(O, key)) {\n result.push(isEntries ? [key, O[key]] : O[key]);\n }\n }\n return result;\n };\n};\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_property-desc.js\":\n/***/ (function(module, exports) {\n\n\n\nmodule.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_redefine.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nvar global = __webpack_require__(\"../node_modules/core-js/modules/_global.js\");\nvar hide = __webpack_require__(\"../node_modules/core-js/modules/_hide.js\");\nvar has = __webpack_require__(\"../node_modules/core-js/modules/_has.js\");\nvar SRC = __webpack_require__(\"../node_modules/core-js/modules/_uid.js\")('src');\nvar $toString = __webpack_require__(\"../node_modules/core-js/modules/_function-to-string.js\");\nvar TO_STRING = 'toString';\nvar TPL = ('' + $toString).split(TO_STRING);\n\n__webpack_require__(\"../node_modules/core-js/modules/_core.js\").inspectSource = function (it) {\n return $toString.call(it);\n};\n\n(module.exports = function (O, key, val, safe) {\n var isFunction = typeof val == 'function';\n if (isFunction) has(val, 'name') || hide(val, 'name', key);\n if (O[key] === val) return;\n if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));\n if (O === global) {\n O[key] = val;\n } else if (!safe) {\n delete O[key];\n hide(O, key, val);\n } else if (O[key]) {\n O[key] = val;\n } else {\n hide(O, key, val);\n }\n // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n})(Function.prototype, TO_STRING, function toString() {\n return typeof this == 'function' && this[SRC] || $toString.call(this);\n});\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_shared-key.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nvar shared = __webpack_require__(\"../node_modules/core-js/modules/_shared.js\")('keys');\nvar uid = __webpack_require__(\"../node_modules/core-js/modules/_uid.js\");\nmodule.exports = function (key) {\n return shared[key] || (shared[key] = uid(key));\n};\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_shared.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nvar core = __webpack_require__(\"../node_modules/core-js/modules/_core.js\");\nvar global = __webpack_require__(\"../node_modules/core-js/modules/_global.js\");\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || (global[SHARED] = {});\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: core.version,\n mode: __webpack_require__(\"../node_modules/core-js/modules/_library.js\") ? 'pure' : 'global',\n copyright: '© 2019 Denis Pushkarev (zloirock.ru)'\n});\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_string-context.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\n// helper for String#{startsWith, endsWith, includes}\nvar isRegExp = __webpack_require__(\"../node_modules/core-js/modules/_is-regexp.js\");\nvar defined = __webpack_require__(\"../node_modules/core-js/modules/_defined.js\");\n\nmodule.exports = function (that, searchString, NAME) {\n if (isRegExp(searchString)) throw TypeError('String#' + NAME + \" doesn't accept regex!\");\n return String(defined(that));\n};\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_to-absolute-index.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nvar toInteger = __webpack_require__(\"../node_modules/core-js/modules/_to-integer.js\");\nvar max = Math.max;\nvar min = Math.min;\nmodule.exports = function (index, length) {\n index = toInteger(index);\n return index < 0 ? max(index + length, 0) : min(index, length);\n};\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_to-integer.js\":\n/***/ (function(module, exports) {\n\n\n\n// 7.1.4 ToInteger\nvar ceil = Math.ceil;\nvar floor = Math.floor;\nmodule.exports = function (it) {\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_to-iobject.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\n// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = __webpack_require__(\"../node_modules/core-js/modules/_iobject.js\");\nvar defined = __webpack_require__(\"../node_modules/core-js/modules/_defined.js\");\nmodule.exports = function (it) {\n return IObject(defined(it));\n};\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_to-length.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\n// 7.1.15 ToLength\nvar toInteger = __webpack_require__(\"../node_modules/core-js/modules/_to-integer.js\");\nvar min = Math.min;\nmodule.exports = function (it) {\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_to-object.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\n// 7.1.13 ToObject(argument)\nvar defined = __webpack_require__(\"../node_modules/core-js/modules/_defined.js\");\nmodule.exports = function (it) {\n return Object(defined(it));\n};\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_to-primitive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\n// 7.1.1 ToPrimitive(input [, PreferredType])\nvar isObject = __webpack_require__(\"../node_modules/core-js/modules/_is-object.js\");\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (it, S) {\n if (!isObject(it)) return it;\n var fn, val;\n if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;\n if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_uid.js\":\n/***/ (function(module, exports) {\n\n\n\nvar id = 0;\nvar px = Math.random();\nmodule.exports = function (key) {\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_wks.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nvar store = __webpack_require__(\"../node_modules/core-js/modules/_shared.js\")('wks');\nvar uid = __webpack_require__(\"../node_modules/core-js/modules/_uid.js\");\nvar _Symbol = __webpack_require__(\"../node_modules/core-js/modules/_global.js\").Symbol;\nvar USE_SYMBOL = typeof _Symbol == 'function';\n\nvar $exports = module.exports = function (name) {\n return store[name] || (store[name] = USE_SYMBOL && _Symbol[name] || (USE_SYMBOL ? _Symbol : uid)('Symbol.' + name));\n};\n\n$exports.store = store;\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/es6.array.find.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n// 22.1.3.8 Array.prototype.find(predicate, thisArg = undefined)\n\nvar $export = __webpack_require__(\"../node_modules/core-js/modules/_export.js\");\nvar $find = __webpack_require__(\"../node_modules/core-js/modules/_array-methods.js\")(5);\nvar KEY = 'find';\nvar forced = true;\n// Shouldn't skip holes\nif (KEY in []) Array(1)[KEY](function () {\n forced = false;\n});\n$export($export.P + $export.F * forced, 'Array', {\n find: function find(callbackfn /* , that = undefined */) {\n return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n__webpack_require__(\"../node_modules/core-js/modules/_add-to-unscopables.js\")(KEY);\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/es6.object.assign.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\n// 19.1.3.1 Object.assign(target, source)\nvar $export = __webpack_require__(\"../node_modules/core-js/modules/_export.js\");\n\n$export($export.S + $export.F, 'Object', { assign: __webpack_require__(\"../node_modules/core-js/modules/_object-assign.js\") });\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/es6.string.includes.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n// 21.1.3.7 String.prototype.includes(searchString, position = 0)\n\n\nvar $export = __webpack_require__(\"../node_modules/core-js/modules/_export.js\");\nvar context = __webpack_require__(\"../node_modules/core-js/modules/_string-context.js\");\nvar INCLUDES = 'includes';\n\n$export($export.P + $export.F * __webpack_require__(\"../node_modules/core-js/modules/_fails-is-regexp.js\")(INCLUDES), 'String', {\n includes: function includes(searchString /* , position = 0 */) {\n return !!~context(this, searchString, INCLUDES).indexOf(searchString, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/es7.array.includes.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n// https://github.com/tc39/Array.prototype.includes\n\nvar $export = __webpack_require__(\"../node_modules/core-js/modules/_export.js\");\nvar $includes = __webpack_require__(\"../node_modules/core-js/modules/_array-includes.js\")(true);\n\n$export($export.P, 'Array', {\n includes: function includes(el /* , fromIndex = 0 */) {\n return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n__webpack_require__(\"../node_modules/core-js/modules/_add-to-unscopables.js\")('includes');\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/es7.object.entries.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\n// https://github.com/tc39/proposal-object-values-entries\nvar $export = __webpack_require__(\"../node_modules/core-js/modules/_export.js\");\nvar $entries = __webpack_require__(\"../node_modules/core-js/modules/_object-to-array.js\")(true);\n\n$export($export.S, 'Object', {\n entries: function entries(it) {\n return $entries(it);\n }\n});\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/es7.object.values.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\n// https://github.com/tc39/proposal-object-values-entries\nvar $export = __webpack_require__(\"../node_modules/core-js/modules/_export.js\");\nvar $values = __webpack_require__(\"../node_modules/core-js/modules/_object-to-array.js\")(false);\n\n$export($export.S, 'Object', {\n values: function values(it) {\n return $values(it);\n }\n});\n\n/***/ }),\n\n/***/ \"../node_modules/node-uuid/uuid.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(console) {var __WEBPACK_AMD_DEFINE_RESULT__;// uuid.js\n//\n// Copyright (c) 2010-2012 Robert Kieffer\n// MIT License - http://opensource.org/licenses/mit-license.php\n\n/*global window, require, define */\n(function(_window) {\n \n\n // Unique ID creation requires a high quality random # generator. We feature\n // detect to determine the best RNG source, normalizing to a function that\n // returns 128-bits of randomness, since that's what's usually required\n var _rng, _mathRNG, _nodeRNG, _whatwgRNG, _previousRoot;\n\n function setupBrowser() {\n // Allow for MSIE11 msCrypto\n var _crypto = _window.crypto || _window.msCrypto;\n\n if (!_rng && _crypto && _crypto.getRandomValues) {\n // WHATWG crypto-based RNG - http://wiki.whatwg.org/wiki/Crypto\n //\n // Moderately fast, high quality\n try {\n var _rnds8 = new Uint8Array(16);\n _whatwgRNG = _rng = function whatwgRNG() {\n _crypto.getRandomValues(_rnds8);\n return _rnds8;\n };\n _rng();\n } catch(e) {}\n }\n\n if (!_rng) {\n // Math.random()-based (RNG)\n //\n // If all else fails, use Math.random(). It's fast, but is of unspecified\n // quality.\n var _rnds = new Array(16);\n _mathRNG = _rng = function() {\n for (var i = 0, r; i < 16; i++) {\n if ((i & 0x03) === 0) { r = Math.random() * 0x100000000; }\n _rnds[i] = r >>> ((i & 0x03) << 3) & 0xff;\n }\n\n return _rnds;\n };\n if ('undefined' !== typeof console && console.warn) {\n console.warn(\"[SECURITY] node-uuid: crypto not usable, falling back to insecure Math.random()\");\n }\n }\n }\n\n function setupNode() {\n // Node.js crypto-based RNG - http://nodejs.org/docs/v0.6.2/api/crypto.html\n //\n // Moderately fast, high quality\n if (true) {\n try {\n var _rb = __webpack_require__(!(function webpackMissingModule() { var e = new Error(\"Cannot find module \\\"crypto\\\"\"); e.code = 'MODULE_NOT_FOUND'; throw e; }())).randomBytes;\n _nodeRNG = _rng = _rb && function() {return _rb(16);};\n _rng();\n } catch(e) {}\n }\n }\n\n if (_window) {\n setupBrowser();\n } else {\n setupNode();\n }\n\n // Buffer class to use\n var BufferClass = ('function' === typeof Buffer) ? Buffer : Array;\n\n // Maps for number <-> hex string conversion\n var _byteToHex = [];\n var _hexToByte = {};\n for (var i = 0; i < 256; i++) {\n _byteToHex[i] = (i + 0x100).toString(16).substr(1);\n _hexToByte[_byteToHex[i]] = i;\n }\n\n // **`parse()` - Parse a UUID into it's component bytes**\n function parse(s, buf, offset) {\n var i = (buf && offset) || 0, ii = 0;\n\n buf = buf || [];\n s.toLowerCase().replace(/[0-9a-f]{2}/g, function(oct) {\n if (ii < 16) { // Don't overflow!\n buf[i + ii++] = _hexToByte[oct];\n }\n });\n\n // Zero out remaining bytes if string was short\n while (ii < 16) {\n buf[i + ii++] = 0;\n }\n\n return buf;\n }\n\n // **`unparse()` - Convert UUID byte array (ala parse()) into a string**\n function unparse(buf, offset) {\n var i = offset || 0, bth = _byteToHex;\n return bth[buf[i++]] + bth[buf[i++]] +\n bth[buf[i++]] + bth[buf[i++]] + '-' +\n bth[buf[i++]] + bth[buf[i++]] + '-' +\n bth[buf[i++]] + bth[buf[i++]] + '-' +\n bth[buf[i++]] + bth[buf[i++]] + '-' +\n bth[buf[i++]] + bth[buf[i++]] +\n bth[buf[i++]] + bth[buf[i++]] +\n bth[buf[i++]] + bth[buf[i++]];\n }\n\n // **`v1()` - Generate time-based UUID**\n //\n // Inspired by https://github.com/LiosK/UUID.js\n // and http://docs.python.org/library/uuid.html\n\n // random #'s we need to init node and clockseq\n var _seedBytes = _rng();\n\n // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)\n var _nodeId = [\n _seedBytes[0] | 0x01,\n _seedBytes[1], _seedBytes[2], _seedBytes[3], _seedBytes[4], _seedBytes[5]\n ];\n\n // Per 4.2.2, randomize (14 bit) clockseq\n var _clockseq = (_seedBytes[6] << 8 | _seedBytes[7]) & 0x3fff;\n\n // Previous uuid creation time\n var _lastMSecs = 0, _lastNSecs = 0;\n\n // See https://github.com/broofa/node-uuid for API details\n function v1(options, buf, offset) {\n var i = buf && offset || 0;\n var b = buf || [];\n\n options = options || {};\n\n var clockseq = (options.clockseq != null) ? options.clockseq : _clockseq;\n\n // UUID timestamps are 100 nano-second units since the Gregorian epoch,\n // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so\n // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'\n // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.\n var msecs = (options.msecs != null) ? options.msecs : new Date().getTime();\n\n // Per 4.2.1.2, use count of uuid's generated during the current clock\n // cycle to simulate higher resolution clock\n var nsecs = (options.nsecs != null) ? options.nsecs : _lastNSecs + 1;\n\n // Time since last uuid creation (in msecs)\n var dt = (msecs - _lastMSecs) + (nsecs - _lastNSecs)/10000;\n\n // Per 4.2.1.2, Bump clockseq on clock regression\n if (dt < 0 && options.clockseq == null) {\n clockseq = clockseq + 1 & 0x3fff;\n }\n\n // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new\n // time interval\n if ((dt < 0 || msecs > _lastMSecs) && options.nsecs == null) {\n nsecs = 0;\n }\n\n // Per 4.2.1.2 Throw error if too many uuids are requested\n if (nsecs >= 10000) {\n throw new Error('uuid.v1(): Can\\'t create more than 10M uuids/sec');\n }\n\n _lastMSecs = msecs;\n _lastNSecs = nsecs;\n _clockseq = clockseq;\n\n // Per 4.1.4 - Convert from unix epoch to Gregorian epoch\n msecs += 12219292800000;\n\n // `time_low`\n var tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;\n b[i++] = tl >>> 24 & 0xff;\n b[i++] = tl >>> 16 & 0xff;\n b[i++] = tl >>> 8 & 0xff;\n b[i++] = tl & 0xff;\n\n // `time_mid`\n var tmh = (msecs / 0x100000000 * 10000) & 0xfffffff;\n b[i++] = tmh >>> 8 & 0xff;\n b[i++] = tmh & 0xff;\n\n // `time_high_and_version`\n b[i++] = tmh >>> 24 & 0xf | 0x10; // include version\n b[i++] = tmh >>> 16 & 0xff;\n\n // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)\n b[i++] = clockseq >>> 8 | 0x80;\n\n // `clock_seq_low`\n b[i++] = clockseq & 0xff;\n\n // `node`\n var node = options.node || _nodeId;\n for (var n = 0; n < 6; n++) {\n b[i + n] = node[n];\n }\n\n return buf ? buf : unparse(b);\n }\n\n // **`v4()` - Generate random UUID**\n\n // See https://github.com/broofa/node-uuid for API details\n function v4(options, buf, offset) {\n // Deprecated - 'format' argument, as supported in v1.2\n var i = buf && offset || 0;\n\n if (typeof(options) === 'string') {\n buf = (options === 'binary') ? new BufferClass(16) : null;\n options = null;\n }\n options = options || {};\n\n var rnds = options.random || (options.rng || _rng)();\n\n // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n rnds[6] = (rnds[6] & 0x0f) | 0x40;\n rnds[8] = (rnds[8] & 0x3f) | 0x80;\n\n // Copy bytes to buffer, if provided\n if (buf) {\n for (var ii = 0; ii < 16; ii++) {\n buf[i + ii] = rnds[ii];\n }\n }\n\n return buf || unparse(rnds);\n }\n\n // Export public API\n var uuid = v4;\n uuid.v1 = v1;\n uuid.v4 = v4;\n uuid.parse = parse;\n uuid.unparse = unparse;\n uuid.BufferClass = BufferClass;\n uuid._rng = _rng;\n uuid._mathRNG = _mathRNG;\n uuid._nodeRNG = _nodeRNG;\n uuid._whatwgRNG = _whatwgRNG;\n\n if (('undefined' !== typeof module) && module.exports) {\n // Publish as node.js module\n module.exports = uuid;\n } else if (true) {\n // Publish as AMD module\n !(__WEBPACK_AMD_DEFINE_RESULT__ = (function() {return uuid;}).call(exports, __webpack_require__, exports, module),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n\n } else {\n // Publish as global (in browsers)\n _previousRoot = _window.uuid;\n\n // **`noConflict()` - (browser only) to reset global 'uuid' var**\n uuid.noConflict = function() {\n _window.uuid = _previousRoot;\n return uuid;\n };\n\n _window.uuid = uuid;\n }\n})('undefined' !== typeof window ? window : null);\n\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/console-browserify/index.js\")))\n\n/***/ }),\n\n/***/ \"../node_modules/noop-loader/index.js!../node_modules/xo-guest-components/src/guest-upgrade/occupation/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n \\n \\n
\"\n\n/***/ }),\n\n/***/ \"../node_modules/noop-loader/index.js!../node_modules/xo-guest-components/src/login-button/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n
\\n {{content('largeScreenPayment.guestSignUpDesc')}}\\n
\\n \\n
\\n
\\n\\n
\\n \\n  {{content('login.orLowercase')}} \\n \\n
\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/noop-loader/index.js!../node_modules/xo-guest-components/src/multistep-signup/addCard/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n
\\n\\n \\n \\n\\n \\n \\n \\n\\n
\\n\\n \\n
\\n \\n \\n\\n \\n\\n \\n\\n \\n\\n \\n \\n\\n
\\n
\\n\\n \\n \\n
\\n\\n\\n
\\n \\n
\\n\\n
\\n \\n
\\n
\\n\\n \\n\\n
\\n \\n \\n
\\n\\n
\\n
\\n \\n\\n \\n\\n \\n
\\n \\n \\n
\\n
\\n\\n \\n
\\n
\\n\\n
\\n \\n
\\n\\n
\\n \\n\\n \\n
\\n
\\n
\\n
\\n
\\n
\\n \\n
\\n\\n
\\n
\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/noop-loader/index.js!../node_modules/xo-guest-components/src/multistep-signup/addShipping/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n
\\n \\n

{{content('shipping.shippingTitle')}}

\\n\\n
\\n\\n
\\n \\n
\\n \\n \\n
\\n
\\n\\n \\n
\\n\\n \\n \\n
\\n\\n
\\n \\n
\\n
\\n\\n \\n
\\n\\n
\\n\\n
\\n
\\n \\n
\\n
\\n
\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/noop-loader/index.js!../node_modules/xo-guest-components/src/multistep-signup/addressNormalization/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n
\\n \\n
\\n
\\n \\n
\\n
\\n
\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/noop-loader/index.js!../node_modules/xo-guest-components/src/multistep-signup/createAccount/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n
\\n \\n

{{content('largeScreenAccountCreation.title')}}

\\n\\n
\\n\\n
\\n\\n
\\n\\n
\\n \\n\\n \\n\\n
\\n \\n
\\n\\n
\\n \\n
\\n\\n
\\n
\\n
{{content('largeScreenAccountCreation.agrementError')}}
\\n
\\n \\n \\n
\\n\\n

\\n \\n

\\n\\n
\\n\\n
\\n\\n
\\n\\n \\n
\\n
\\n
\\n \\n
\\n
\\n \\n
\\n
\\n
\\n\\n\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/noop-loader/index.js!../node_modules/xo-guest-components/src/multistep-signup/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\"\n\n/***/ }),\n\n/***/ \"../node_modules/noop-loader/index.js!../node_modules/xo-page-components/src/value-props/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n

{{ title }}

\\n

\\n

\\n
\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/noop-loader/index.js!../node_modules/xo-ui-components/src/escape-hatch/closeFrame/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"{{ content('base.closePayPalCheckoutLabel') }}\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/noop-loader/index.js!../node_modules/xo-ui-components/src/escape-hatch/escapeHatch/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/noop-loader/index.js!../node_modules/xo-ui-components/src/generic-message/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n
\\n
\\n {{content(titleKey)}}\\n
\\n
\\n {{content(contentKey)}}\\n
\\n
\\n
\\n \\n
\\n
\\n
\\n
\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/noop-loader/index.js!../node_modules/xo-ui-components/src/message/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n
\\n \\n
    \\n
  • \\n \\n
  • \\n
  • \\n
    \\n
  • \\n
\\n
\\n
\\n
\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/noop-loader/index.js!../node_modules/xo-ui-components/src/spinner-button/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n \\n
\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/noop-loader/index.js!../node_modules/xo-ui-components/src/spinner/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n

\\n

\\n

{{message}}

\\n
\\n
\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/noop-loader/index.js!../node_modules/xo-wallet-components/src/3ds/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n
\\n
\\n\\n
\\n
\\n  \\n

\\n {{ content('threeDS.iFrameTitle') }}\\n

\\n \\n
\\n\\n
\\n
\\n\\n
\\n
\\n
\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/noop-loader/index.js!../node_modules/xo-wallet-components/src/add-bank/bank-input/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n\\n
\\n

{{content('bank.enterBBAN')}}\\n {{content('bank.insteadIBAN')}}\\n

\\n\\n
\\n \\n \\n
\\n\\n
\\n \\n \\n
\\n
\\n
\\n

{{content('bank.enterIBAN')}}\\n {{content('bank.insteadBBAN')}}\\n

\\n
\\n \\n \\n
\\n
\\n\\n\\n
\\n
\\n {{content('currencyOptions.ppConversionRate')}}\\n {{exchangeSpreadFormatStr}}\\n
\\n
\\n {{content('currencyOptions.textConversionDate')}}\\n {{fxDate}}\\n
\\n
\\n \\n {{targetFormatStr}}\\n
\\n
\\n
\\n\\n\\n
\\n
\\n {{content('DEMemberGuest.dob')}}\\n\\n
\\n \\n
\\n\\n\\n
\\n \\n
\\n\\n
\\n \\n
\\n\\n
\\n
\\n
\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/noop-loader/index.js!../node_modules/xo-wallet-components/src/add-card/addCep/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"\\n\\n

{{ content('addBillingAddress.title') }}

\\n\\n
\\n
\\n \\n
\\n \\n
\\n
\\n
\\n\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/noop-loader/index.js!../node_modules/xo-wallet-components/src/add-card/addbilling/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n \\n\\n

{{ content('addBillingAddress.title') }}

\\n\\n
\\n
\\n
\\n \\n
\\n\\n \\n
\\n
\\n
\\n
\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/noop-loader/index.js!../node_modules/xo-wallet-components/src/add-card/addcard/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"\\n
\\n \\n
\\n

{{ content('asideHeader.updateCard', {type: cardmodel.card.name, number: cardmodel.card.lastDigits}) }}

\\n {{ content('common.back') }}\\n
\\n \\n \\n

\\n {{ content('memberReview.welcomeBack', {userName: auth.first_name ? auth.first_name : auth.email}) }}\\n \\n {{ content('memberReview.notYou')}}\\n \\n

\\n

{{ pagetitle }}

\\n\\n
\\n
\\n
\\n \\n \\n \\n\\n \\n\\n
\\n
\\n \\n \\n {{ content(\\\"addressBook.add\\\") }}\\n
\\n
\\n\\n
\\n
\\n \\n
\\n\\n \\n\\n
\\n
\\n \\n \\n
\\n
{{content('addCard.plccLegal', { merchant: promotion.name})}}
\\n
\\n\\n\\n \\n
\\n
\\n
\\n\\n
\\n
\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/noop-loader/index.js!../node_modules/xo-wallet-components/src/add-card/creditcard-input/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n \\n \\n \\n\\n
\\n
\\n
\\n
\\n\\n
\\n

{{content('creditcard.cardIconTitle')}}

\\n
\\n

{{content('creditcard.creditIconLabel')}}

\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n

{{content('creditcard.debitIconLabel')}}

\\n
\\n
\\n
\\n
\\n
\\n\\n
{{content('addCard.plccAddCard', { merchant: promotion.name})}}
\\n\\n
\\n \\n \\n
\\n\\n
\\n \\n\\n \\n
\\n {{ !debitCardFlow ? content('creditcard.acceptableCards') : content('creditcard.acceptDebitCardOnly') }}\\n \\n {{supportedCardNamesCommaSeparated}}\\n \\n
\\n
\\n {{ !debitCardFlow ? content('creditcard.supportedAndUnsupportedCardType', {supportedCardNames: supportedCardNamesCommaSeparated, unsupportedCardNames: unsupportedCardNamesCommaSeparated}) : content('creditcard.acceptDebitCardOnly') }}\\n
\\n
\\n\\n \\n \\n\\n \\n
\\n\\n \\n
\\n\\n
\\n \\n\\n
\\n \\n
\\n\\n
\\n \\n
\\n
\\n\\n
\\n \\n\\n \\n
\\n {{ content('creditcard.issueNoLabelToolTip') }}\\n
\\n
\\n
\\n
\\n\\n
\\n \\n \\n
\\n\\n \\n \\n
\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/noop-loader/index.js!../node_modules/xo-wallet-components/src/add-card/selectcard/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n\\t\\n\\n\\t
\\n\\t\\t\\n\\t
\\n
\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/noop-loader/index.js!../node_modules/xo-wallet-components/src/add-card/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\"\n\n/***/ }),\n\n/***/ \"../node_modules/noop-loader/index.js!../node_modules/xo-wallet-components/src/installment-options/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n {{cardInfo.name}} x-{{cardInfo.last4}} {{content('installments.upto')}} {{installments.length}}x\\n
\\n \\n
\"\n\n/***/ }),\n\n/***/ \"../node_modules/noop-loader/index.js!./pages/xo-add-card/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n
\\n \\n
\\n\\n
\\n \\n
\\n
\\n
\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/noop-loader/index.js!./pages/xo-checkout/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n \\n
\\n
\\n \\n
\\n
\\n
\\n
\\n \\n
\\n \\n \\n
\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/noop-loader/index.js!./pages/xo-generic-message/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/noop-loader/index.js!./pages/xo-guest/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n
\\n \\n
\\n
\\n \\n \\n
\\n
\\n
\\n
\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/noop-loader/index.js!./pages/xo-pay-upon-invoice/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n
\\n \\n
\\n\\n
\\n
\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/noop-loader/index.js!./pages/xo-sidebar-installment-options/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n \\n
\\n \\n
\\n
\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/noop-loader/index.js!./pages/xo-sidebar/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"\\n\\n\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/noop-loader/index.js!./pages/xo-signup/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n
\\n \\n
\\n
\\n \\n
\\n
\\n
\\n
\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/paypal-sdk-constants/dist/paypal-sdk-constants.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(module) {var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\n!function (root, factory) {\n \"object\" == ( false ? \"undefined\" : _typeof(exports)) && \"object\" == ( false ? \"undefined\" : _typeof(module)) ? module.exports = factory() : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?\n\t\t\t\t(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : \"object\" == (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) ? exports.ppsdkconstants = factory() : root.ppsdkconstants = factory();\n}(\"undefined\" != typeof self ? self : undefined, function () {\n return function (modules) {\n var installedModules = {};\n function __webpack_require__(moduleId) {\n if (installedModules[moduleId]) return installedModules[moduleId].exports;\n var module = installedModules[moduleId] = {\n i: moduleId,\n l: !1,\n exports: {}\n };\n modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n module.l = !0;\n return module.exports;\n }\n __webpack_require__.m = modules;\n __webpack_require__.c = installedModules;\n __webpack_require__.d = function (exports, name, getter) {\n __webpack_require__.o(exports, name) || Object.defineProperty(exports, name, {\n configurable: !1,\n enumerable: !0,\n get: getter\n });\n };\n __webpack_require__.n = function (module) {\n var getter = module && module.__esModule ? function () {\n return module[\"default\"];\n } : function () {\n return module;\n };\n __webpack_require__.d(getter, \"a\", getter);\n return getter;\n };\n __webpack_require__.o = function (object, property) {\n return Object.prototype.hasOwnProperty.call(object, property);\n };\n __webpack_require__.p = \"\";\n return __webpack_require__(__webpack_require__.s = \"./src/index.js\");\n }({\n \"./src/index.js\": function srcIndexJs(module, __webpack_exports__, __webpack_require__) {\n \n\n Object.defineProperty(__webpack_exports__, \"__esModule\", {\n value: !0\n });\n var _COUNTRY_LANGS,\n COUNTRY = {\n AD: \"AD\",\n AE: \"AE\",\n AG: \"AG\",\n AI: \"AI\",\n AL: \"AL\",\n AM: \"AM\",\n AN: \"AN\",\n AO: \"AO\",\n AR: \"AR\",\n AT: \"AT\",\n AU: \"AU\",\n AW: \"AW\",\n AZ: \"AZ\",\n BA: \"BA\",\n BB: \"BB\",\n BE: \"BE\",\n BF: \"BF\",\n BG: \"BG\",\n BH: \"BH\",\n BI: \"BI\",\n BJ: \"BJ\",\n BM: \"BM\",\n BN: \"BN\",\n BO: \"BO\",\n BR: \"BR\",\n BS: \"BS\",\n BT: \"BT\",\n BW: \"BW\",\n BY: \"BY\",\n BZ: \"BZ\",\n CA: \"CA\",\n CD: \"CD\",\n CG: \"CG\",\n CH: \"CH\",\n CI: \"CI\",\n CK: \"CK\",\n CL: \"CL\",\n CM: \"CM\",\n CN: \"CN\",\n CO: \"CO\",\n CR: \"CR\",\n CV: \"CV\",\n CY: \"CY\",\n CZ: \"CZ\",\n DE: \"DE\",\n DJ: \"DJ\",\n DK: \"DK\",\n DM: \"DM\",\n DO: \"DO\",\n DZ: \"DZ\",\n EC: \"EC\",\n EE: \"EE\",\n EG: \"EG\",\n ER: \"ER\",\n ES: \"ES\",\n ET: \"ET\",\n FI: \"FI\",\n FJ: \"FJ\",\n FK: \"FK\",\n FM: \"FM\",\n FO: \"FO\",\n FR: \"FR\",\n GA: \"GA\",\n GB: \"GB\",\n GD: \"GD\",\n GE: \"GE\",\n GF: \"GF\",\n GI: \"GI\",\n GL: \"GL\",\n GM: \"GM\",\n GN: \"GN\",\n GP: \"GP\",\n GR: \"GR\",\n GT: \"GT\",\n GW: \"GW\",\n GY: \"GY\",\n HK: \"HK\",\n HN: \"HN\",\n HR: \"HR\",\n HU: \"HU\",\n ID: \"ID\",\n IE: \"IE\",\n IL: \"IL\",\n IN: \"IN\",\n IS: \"IS\",\n IT: \"IT\",\n JM: \"JM\",\n JO: \"JO\",\n JP: \"JP\",\n KE: \"KE\",\n KG: \"KG\",\n KH: \"KH\",\n KI: \"KI\",\n KM: \"KM\",\n KN: \"KN\",\n KR: \"KR\",\n KW: \"KW\",\n KY: \"KY\",\n KZ: \"KZ\",\n LA: \"LA\",\n LC: \"LC\",\n LI: \"LI\",\n LK: \"LK\",\n LS: \"LS\",\n LT: \"LT\",\n LU: \"LU\",\n LV: \"LV\",\n MA: \"MA\",\n MC: \"MC\",\n MD: \"MD\",\n ME: \"ME\",\n MG: \"MG\",\n MH: \"MH\",\n MK: \"MK\",\n ML: \"ML\",\n MN: \"MN\",\n MQ: \"MQ\",\n MR: \"MR\",\n MS: \"MS\",\n MT: \"MT\",\n MU: \"MU\",\n MV: \"MV\",\n MW: \"MW\",\n MX: \"MX\",\n MY: \"MY\",\n MZ: \"MZ\",\n NA: \"NA\",\n NC: \"NC\",\n NE: \"NE\",\n NF: \"NF\",\n NG: \"NG\",\n NI: \"NI\",\n NL: \"NL\",\n NO: \"NO\",\n NP: \"NP\",\n NR: \"NR\",\n NU: \"NU\",\n NZ: \"NZ\",\n OM: \"OM\",\n PA: \"PA\",\n PE: \"PE\",\n PF: \"PF\",\n PG: \"PG\",\n PH: \"PH\",\n PL: \"PL\",\n PM: \"PM\",\n PN: \"PN\",\n PT: \"PT\",\n PW: \"PW\",\n PY: \"PY\",\n QA: \"QA\",\n RE: \"RE\",\n RO: \"RO\",\n RS: \"RS\",\n RU: \"RU\",\n RW: \"RW\",\n SA: \"SA\",\n SB: \"SB\",\n SC: \"SC\",\n SE: \"SE\",\n SG: \"SG\",\n SH: \"SH\",\n SI: \"SI\",\n SJ: \"SJ\",\n SK: \"SK\",\n SL: \"SL\",\n SM: \"SM\",\n SN: \"SN\",\n SO: \"SO\",\n SR: \"SR\",\n ST: \"ST\",\n SV: \"SV\",\n SZ: \"SZ\",\n TC: \"TC\",\n TD: \"TD\",\n TG: \"TG\",\n TH: \"TH\",\n TJ: \"TJ\",\n TM: \"TM\",\n TN: \"TN\",\n TO: \"TO\",\n TR: \"TR\",\n TT: \"TT\",\n TV: \"TV\",\n TW: \"TW\",\n TZ: \"TZ\",\n UA: \"UA\",\n UG: \"UG\",\n US: \"US\",\n UY: \"UY\",\n VA: \"VA\",\n VC: \"VC\",\n VE: \"VE\",\n VG: \"VG\",\n VN: \"VN\",\n VU: \"VU\",\n WF: \"WF\",\n WS: \"WS\",\n YE: \"YE\",\n YT: \"YT\",\n ZA: \"ZA\",\n ZM: \"ZM\",\n ZW: \"ZW\"\n },\n LANG = {\n AR: \"ar\",\n CS: \"cs\",\n DA: \"da\",\n DE: \"de\",\n EL: \"el\",\n EN: \"en\",\n ES: \"es\",\n FI: \"fi\",\n FR: \"fr\",\n HE: \"he\",\n HU: \"hu\",\n ID: \"id\",\n IT: \"it\",\n JA: \"ja\",\n KO: \"ko\",\n NL: \"nl\",\n NO: \"no\",\n PL: \"pl\",\n PT: \"pt\",\n RU: \"ru\",\n SK: \"sk\",\n SV: \"sv\",\n TH: \"th\",\n TR: \"tr\",\n ZH: \"zh\"\n },\n COUNTRY_LANGS = ((_COUNTRY_LANGS = {})[COUNTRY.AD] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.AE] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH, LANG.AR], _COUNTRY_LANGS[COUNTRY.AG] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.AI] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.AL] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.AM] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.AN] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.AO] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.AR] = [LANG.ES, LANG.EN], _COUNTRY_LANGS[COUNTRY.AT] = [LANG.DE, LANG.EN], _COUNTRY_LANGS[COUNTRY.AU] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.AW] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.AZ] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.BA] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.BB] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.BE] = [LANG.EN, LANG.NL, LANG.FR], _COUNTRY_LANGS[COUNTRY.BF] = [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.BG] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.BH] = [LANG.AR, LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.BI] = [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.BJ] = [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.BM] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.BN] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.BO] = [LANG.ES, LANG.EN, LANG.FR, LANG.ZH], _COUNTRY_LANGS[COUNTRY.BR] = [LANG.PT, LANG.EN], _COUNTRY_LANGS[COUNTRY.BS] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.BT] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.BW] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.BY] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.BZ] = [LANG.EN, LANG.ES, LANG.FR, LANG.ZH], _COUNTRY_LANGS[COUNTRY.CA] = [LANG.EN, LANG.FR], _COUNTRY_LANGS[COUNTRY.CD] = [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.CG] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.CH] = [LANG.DE, LANG.FR, LANG.EN], _COUNTRY_LANGS[COUNTRY.CI] = [LANG.FR, LANG.EN], _COUNTRY_LANGS[COUNTRY.CK] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.CL] = [LANG.ES, LANG.EN, LANG.FR, LANG.ZH], _COUNTRY_LANGS[COUNTRY.CM] = [LANG.FR, LANG.EN], _COUNTRY_LANGS[COUNTRY.CN] = [LANG.ZH], _COUNTRY_LANGS[COUNTRY.CO] = [LANG.ES, LANG.EN, LANG.FR, LANG.ZH], _COUNTRY_LANGS[COUNTRY.CR] = [LANG.ES, LANG.EN, LANG.FR, LANG.ZH], _COUNTRY_LANGS[COUNTRY.CV] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.CY] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.CZ] = [LANG.CS, LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.DE] = [LANG.DE, LANG.EN], _COUNTRY_LANGS[COUNTRY.DJ] = [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.DK] = [LANG.DA, LANG.EN], _COUNTRY_LANGS[COUNTRY.DM] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.DO] = [LANG.ES, LANG.EN, LANG.FR, LANG.ZH], _COUNTRY_LANGS[COUNTRY.DZ] = [LANG.AR, LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.EC] = [LANG.ES, LANG.EN, LANG.FR, LANG.ZH], _COUNTRY_LANGS[COUNTRY.EE] = [LANG.EN, LANG.RU, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.EG] = [LANG.AR, LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.ER] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.ES] = [LANG.ES, LANG.EN], _COUNTRY_LANGS[COUNTRY.ET] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.FI] = [LANG.FI, LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.FJ] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.FK] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.FM] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.FO] = [LANG.DA, LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.FR] = [LANG.FR, LANG.EN], _COUNTRY_LANGS[COUNTRY.GA] = [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.GB] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.GD] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.GE] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.GF] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.GI] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.GL] = [LANG.DA, LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.GM] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.GN] = [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.GP] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.GR] = [LANG.EL, LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.GT] = [LANG.ES, LANG.EN, LANG.FR, LANG.ZH], _COUNTRY_LANGS[COUNTRY.GW] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.GY] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.HK] = [LANG.EN, LANG.ZH], _COUNTRY_LANGS[COUNTRY.HN] = [LANG.ES, LANG.EN, LANG.FR, LANG.ZH], _COUNTRY_LANGS[COUNTRY.HR] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.HU] = [LANG.HU, LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.ID] = [LANG.ID, LANG.EN], _COUNTRY_LANGS[COUNTRY.IE] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.IL] = [LANG.HE, LANG.EN], _COUNTRY_LANGS[COUNTRY.IN] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.IS] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.IT] = [LANG.IT, LANG.EN], _COUNTRY_LANGS[COUNTRY.JM] = [LANG.EN, LANG.ES, LANG.FR, LANG.ZH], _COUNTRY_LANGS[COUNTRY.JO] = [LANG.AR, LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.JP] = [LANG.JA, LANG.EN], _COUNTRY_LANGS[COUNTRY.KE] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.KG] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.KH] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.KI] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.KM] = [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.KN] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.KR] = [LANG.KO, LANG.EN], _COUNTRY_LANGS[COUNTRY.KW] = [LANG.AR, LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.KY] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.KZ] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.LA] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.LC] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.LI] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.LK] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.LS] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.LT] = [LANG.EN, LANG.RU, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.LU] = [LANG.EN, LANG.DE, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.LV] = [LANG.EN, LANG.RU, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.MA] = [LANG.AR, LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.MC] = [LANG.FR, LANG.EN], _COUNTRY_LANGS[COUNTRY.MD] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.ME] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.MG] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.MH] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.MK] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.ML] = [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.MN] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.MQ] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.MR] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.MS] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.MT] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.MU] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.MV] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.MW] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.MX] = [LANG.ES, LANG.EN], _COUNTRY_LANGS[COUNTRY.MY] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.MZ] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.NA] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.NC] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.NE] = [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.NF] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.NG] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.NI] = [LANG.ES, LANG.EN, LANG.FR, LANG.ZH], _COUNTRY_LANGS[COUNTRY.NL] = [LANG.NL, LANG.EN], _COUNTRY_LANGS[COUNTRY.NO] = [LANG.NO, LANG.EN], _COUNTRY_LANGS[COUNTRY.NP] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.NR] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.NU] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.NZ] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.OM] = [LANG.AR, LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.PA] = [LANG.ES, LANG.EN, LANG.FR, LANG.ZH], _COUNTRY_LANGS[COUNTRY.PE] = [LANG.ES, LANG.EN, LANG.FR, LANG.ZH], _COUNTRY_LANGS[COUNTRY.PF] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.PG] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.PH] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.PL] = [LANG.PL, LANG.EN], _COUNTRY_LANGS[COUNTRY.PM] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.PN] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.PT] = [LANG.PT, LANG.EN], _COUNTRY_LANGS[COUNTRY.PW] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.PY] = [LANG.ES, LANG.EN], _COUNTRY_LANGS[COUNTRY.QA] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH, LANG.AR], _COUNTRY_LANGS[COUNTRY.RE] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.RO] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.RS] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.RU] = [LANG.RU, LANG.EN], _COUNTRY_LANGS[COUNTRY.RW] = [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.SA] = [LANG.AR, LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.SB] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.SC] = [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.SE] = [LANG.SV, LANG.EN], _COUNTRY_LANGS[COUNTRY.SG] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.SH] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.SI] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.SJ] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.SK] = [LANG.SK, LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.SL] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.SM] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.SN] = [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.SO] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.SR] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.ST] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.SV] = [LANG.ES, LANG.EN, LANG.FR, LANG.ZH], _COUNTRY_LANGS[COUNTRY.SZ] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.TC] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.TD] = [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.TG] = [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.TH] = [LANG.TH, LANG.EN], _COUNTRY_LANGS[COUNTRY.TJ] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.TM] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.TN] = [LANG.AR, LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.TO] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.TR] = [LANG.TR, LANG.EN], _COUNTRY_LANGS[COUNTRY.TT] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.TV] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.TW] = [LANG.ZH, LANG.EN], _COUNTRY_LANGS[COUNTRY.TZ] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.UA] = [LANG.EN, LANG.RU, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.UG] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.US] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.UY] = [LANG.ES, LANG.EN, LANG.FR, LANG.ZH], _COUNTRY_LANGS[COUNTRY.VA] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.VC] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.VE] = [LANG.ES, LANG.EN, LANG.FR, LANG.ZH], _COUNTRY_LANGS[COUNTRY.VG] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.VN] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.VU] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.WF] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.WS] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.YE] = [LANG.AR, LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.YT] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.ZA] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.ZM] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.ZW] = [LANG.EN], _COUNTRY_LANGS),\n SDK_SETTINGS = {\n CLIENT_TOKEN: \"data-client-token\",\n PARTNER_ATTRIBUTION_ID: \"data-partner-attribution-id\",\n STAGE_HOST: \"data-stage-host\",\n API_STAGE_HOST: \"data-api-stage-host\"\n },\n SDK_QUERY_KEYS = {\n COMPONENTS: \"components\",\n ENV: \"env\",\n DEBUG: \"debug\",\n CACHEBUST: \"cachebust\",\n CLIENT_ID: \"client-id\",\n MERCHANT_ID: \"merchant-id\",\n LOCALE: \"locale\",\n CURRENCY: \"currency\",\n INTENT: \"intent\",\n COMMIT: \"commit\",\n VAULT: \"vault\",\n BUYER_COUNTRY: \"buyer-country\",\n DISABLE_FUNDING: \"disable-funding\",\n DISABLE_CARD: \"disable-card\",\n LOCALE_COUNTRY: \"locale-country\",\n LOCALE_LANG: \"locale-lang\",\n ORDER_CURRENCY: \"order-currency\",\n ORDER_INTENT: \"order-intent\",\n ORDER_COMMIT: \"order-commit\",\n ORDER_VAULT: \"order-vault\"\n },\n COMPONENTS = {\n BUTTONS: \"buttons\",\n HOSTED_FIELDS: \"hosted-fields\"\n },\n DEBUG = {\n TRUE: !0,\n FALSE: !1\n },\n QUERY_BOOL = {\n TRUE: \"true\",\n FALSE: \"false\"\n },\n ENV = {\n LOCAL: \"local\",\n STAGE: \"stage\",\n SANDBOX: \"sandbox\",\n PRODUCTION: \"production\",\n TEST: \"test\"\n },\n FPTI_KEY = {\n FEED: \"feed_name\",\n STATE: \"state_name\",\n TRANSITION: \"transition_name\",\n BUTTON_TYPE: \"button_type\",\n SESSION_UID: \"page_session_id\",\n BUTTON_SESSION_UID: \"button_session_id\",\n TOKEN: \"token\",\n CONTEXT_ID: \"context_id\",\n CONTEXT_TYPE: \"context_type\",\n REFERER: \"referer_url\",\n PAY_ID: \"pay_id\",\n SELLER_ID: \"seller_id\",\n CLIENT_ID: \"client_id\",\n DATA_SOURCE: \"serverside_data_source\",\n BUTTON_SOURCE: \"button_source\",\n ERROR_CODE: \"ext_error_code\",\n ERROR_DESC: \"ext_error_desc\",\n PAGE_LOAD_TIME: \"page_load_time\",\n EXPERIMENT_NAME: \"pxp_exp_id\",\n TREATMENT_NAME: \"pxp_trtmnt_id\",\n TRANSITION_TIME: \"transition_time\",\n FUNDING_LIST: \"eligible_payment_methods\",\n FUNDING_COUNT: \"eligible_payment_count\",\n CHOSEN_FUNDING: \"selected_payment_method\",\n BUTTON_LAYOUT: \"button_layout\",\n VERSION: \"checkoutjs_version\",\n LOCALE: \"locale\",\n BUYER_COUNTRY: \"buyer_cntry\",\n INTEGRATION_IDENTIFIER: \"integration_identifier\",\n PARTNER_ATTRIBUTION_ID: \"bn_code\",\n SDK_NAME: \"sdk_name\",\n SDK_VERSION: \"sdk_version\",\n USER_AGENT: \"user_agent\",\n USER_ACTION: \"user_action\",\n CONTEXT_CORRID: \"context_correlation_id\"\n },\n FPTI_USER_ACTION = {\n COMMIT: \"commit\",\n CONTINUE: \"continue\"\n },\n FPTI_DATA_SOURCE = {\n PAYMENTS_SDK: \"checkout\"\n },\n FPTI_FEED = {\n PAYMENTS_SDK: \"payments_sdk\"\n },\n FPTI_SDK_NAME = {\n PAYMENTS_SDK: \"payments_sdk\"\n },\n INTENT = {\n CAPTURE: \"capture\",\n AUTHORIZE: \"authorize\",\n ORDER: \"order\"\n },\n COMMIT = {\n TRUE: !0,\n FALSE: !1\n },\n VAULT = {\n TRUE: !0,\n FALSE: !1\n },\n CURRENCY = {\n AUD: \"AUD\",\n BRL: \"BRL\",\n CAD: \"CAD\",\n CZK: \"CZK\",\n DKK: \"DKK\",\n EUR: \"EUR\",\n HKD: \"HKD\",\n HUF: \"HUF\",\n INR: \"INR\",\n ILS: \"ILS\",\n JPY: \"JPY\",\n MYR: \"MYR\",\n MXN: \"MXN\",\n TWD: \"TWD\",\n NZD: \"NZD\",\n NOK: \"NOK\",\n PHP: \"PHP\",\n PLN: \"PLN\",\n GBP: \"GBP\",\n RUB: \"RUB\",\n SGD: \"SGD\",\n SEK: \"SEK\",\n CHF: \"CHF\",\n THB: \"THB\",\n USD: \"USD\"\n },\n PLATFORM = {\n DESKTOP: \"desktop\",\n MOBILE: \"mobile\"\n },\n FUNDING = {\n PAYPAL: \"paypal\",\n VENMO: \"venmo\",\n CREDIT: \"credit\",\n CARD: \"card\",\n IDEAL: \"ideal\",\n SEPA: \"sepa\",\n BANCONTACT: \"bancontact\",\n GIROPAY: \"giropay\",\n SOFORT: \"sofort\",\n EPS: \"eps\",\n MYBANK: \"mybank\",\n P24: \"p24\",\n ZIMPLER: \"zimpler\",\n WECHATPAY: \"wechatpay\"\n },\n CARD = {\n VISA: \"visa\",\n MASTERCARD: \"mastercard\",\n AMEX: \"amex\",\n DISCOVER: \"discover\",\n HIPER: \"hiper\",\n ELO: \"elo\",\n JCB: \"jcb\",\n CUP: \"cup\"\n },\n DEFAULT_COUNTRY = COUNTRY.US,\n DEFAULT_CURRENCY = CURRENCY.USD,\n DEFAULT_INTENT = INTENT.CAPTURE,\n DEFAULT_COMMIT = COMMIT.TRUE,\n DEFAULT_VAULT = VAULT.FALSE,\n DEFAULT_COMPONENTS = COMPONENTS.BUTTONS,\n DEFAULT_DEBUG = DEBUG.FALSE;\n __webpack_require__.d(__webpack_exports__, \"COUNTRY\", function () {\n return COUNTRY;\n });\n __webpack_require__.d(__webpack_exports__, \"LANG\", function () {\n return LANG;\n });\n __webpack_require__.d(__webpack_exports__, \"COUNTRY_LANGS\", function () {\n return COUNTRY_LANGS;\n });\n __webpack_require__.d(__webpack_exports__, \"SDK_PATH\", function () {\n return \"/sdk/js\";\n });\n __webpack_require__.d(__webpack_exports__, \"SDK_SETTINGS\", function () {\n return SDK_SETTINGS;\n });\n __webpack_require__.d(__webpack_exports__, \"SDK_QUERY_KEYS\", function () {\n return SDK_QUERY_KEYS;\n });\n __webpack_require__.d(__webpack_exports__, \"COMPONENTS\", function () {\n return COMPONENTS;\n });\n __webpack_require__.d(__webpack_exports__, \"DEBUG\", function () {\n return DEBUG;\n });\n __webpack_require__.d(__webpack_exports__, \"QUERY_BOOL\", function () {\n return QUERY_BOOL;\n });\n __webpack_require__.d(__webpack_exports__, \"ENV\", function () {\n return ENV;\n });\n __webpack_require__.d(__webpack_exports__, \"FPTI_KEY\", function () {\n return FPTI_KEY;\n });\n __webpack_require__.d(__webpack_exports__, \"FPTI_USER_ACTION\", function () {\n return FPTI_USER_ACTION;\n });\n __webpack_require__.d(__webpack_exports__, \"FPTI_DATA_SOURCE\", function () {\n return FPTI_DATA_SOURCE;\n });\n __webpack_require__.d(__webpack_exports__, \"FPTI_FEED\", function () {\n return FPTI_FEED;\n });\n __webpack_require__.d(__webpack_exports__, \"FPTI_SDK_NAME\", function () {\n return FPTI_SDK_NAME;\n });\n __webpack_require__.d(__webpack_exports__, \"INTENT\", function () {\n return INTENT;\n });\n __webpack_require__.d(__webpack_exports__, \"COMMIT\", function () {\n return COMMIT;\n });\n __webpack_require__.d(__webpack_exports__, \"VAULT\", function () {\n return VAULT;\n });\n __webpack_require__.d(__webpack_exports__, \"CURRENCY\", function () {\n return CURRENCY;\n });\n __webpack_require__.d(__webpack_exports__, \"PLATFORM\", function () {\n return PLATFORM;\n });\n __webpack_require__.d(__webpack_exports__, \"FUNDING\", function () {\n return FUNDING;\n });\n __webpack_require__.d(__webpack_exports__, \"CARD\", function () {\n return CARD;\n });\n __webpack_require__.d(__webpack_exports__, \"DEFAULT_COUNTRY\", function () {\n return DEFAULT_COUNTRY;\n });\n __webpack_require__.d(__webpack_exports__, \"DEFAULT_CURRENCY\", function () {\n return DEFAULT_CURRENCY;\n });\n __webpack_require__.d(__webpack_exports__, \"DEFAULT_INTENT\", function () {\n return DEFAULT_INTENT;\n });\n __webpack_require__.d(__webpack_exports__, \"DEFAULT_COMMIT\", function () {\n return DEFAULT_COMMIT;\n });\n __webpack_require__.d(__webpack_exports__, \"DEFAULT_VAULT\", function () {\n return DEFAULT_VAULT;\n });\n __webpack_require__.d(__webpack_exports__, \"DEFAULT_COMPONENTS\", function () {\n return DEFAULT_COMPONENTS;\n });\n __webpack_require__.d(__webpack_exports__, \"DEFAULT_DEBUG\", function () {\n return DEFAULT_DEBUG;\n });\n }\n });\n});\n//# sourceMappingURL=paypal-sdk-constants.js.map\n//# sourceMappingURL=paypal-sdk-constants.js.map\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/webpack/buildin/module.js\")(module)))\n\n/***/ }),\n\n/***/ \"../node_modules/paypal-sdk-constants/index.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* @flow */\n\n// $FlowFixMe\nmodule.exports = __webpack_require__(\"../node_modules/paypal-sdk-constants/dist/paypal-sdk-constants.js\"); // eslint-disable-line import/no-commonjs\n\n\n\n/***/ }),\n\n/***/ \"../node_modules/squid/dist/core/api.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.$Api = undefined;\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nexports.$getLatestCorrelationID = $getLatestCorrelationID;\n\nvar _jquery = __webpack_require__(\"../node_modules/jquery/dist/jquery.min.js\");\n\nvar _jquery2 = _interopRequireDefault(_jquery);\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\nvar _event = __webpack_require__(\"../node_modules/squid/dist/core/event.js\");\n\nvar _class = __webpack_require__(\"../node_modules/squid/dist/core/class.js\");\n\nvar _util = __webpack_require__(\"../node_modules/squid/dist/core/util.js\");\n\nvar _promise = __webpack_require__(\"../node_modules/squid/dist/core/promise.js\");\n\nvar _config = __webpack_require__(\"../node_modules/squid/dist/core/config.js\");\n\nvar _error = __webpack_require__(\"../node_modules/squid/dist/core/error.js\");\n\nvar _loader = __webpack_require__(\"../node_modules/squid/dist/core/loader.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n/*\n API\n ---\n\n This layer is responsible for handling api requests. It has a number of responsibilities:\n\n - Caching responses\n - Transparently returning data that has been preloaded into the initial page response\n - Instrumentation\n - Batching multiple api calls into a single http request\n - Handling multiple types of responses and dispatching to the correct handlers\n - Emitting loading events for all http calls\n */\n\n_config.$meta.headers = _config.$meta.headers || {};\n_config.$meta.headers['x-cookies'] = _typeof(_config.$meta.headers['x-cookies']) !== 'object' ? JSON.parse(_config.$meta.headers['x-cookies'] || '{}') : _config.$meta.headers['x-cookies'];\n\n// Are we in 'cookies disabled' mode? (Do we need to keep a local store of cookies)\nfunction cookiesEnabled() {\n return _util.$util.cookiesEnabled() && window.location.hostname.indexOf('.paypal.com') > -1;\n}\n\n// Cache for api responses, when cache: true\nvar cache = {};\nvar standardHeaders = {};\n\nvar latestCorrelationID = _config.$meta.correlationId;\n\n// Window load promise\nvar windowLoad = _util.$util.memoize(function () {\n return _promise.$promise.resolver(function (resolve) {\n if (document.readyState === 'complete') {\n resolve();\n } else {\n window.addEventListener('load', resolve);\n }\n });\n});\n\n// Buffer for batch requests made within the same frame\nvar batchQueue = {};\n\n// Backwards compat\nwindow.pre = {};\n\n// Transient cache resolvers\nvar transientCache = {};\n\n// Transient cache resolvers\nvar transientCacheResolvers = {};\n\n// Metabuilder\nvar metaBuilder = void 0;\n\n// Add to transientCache\nwindow.preload = function (method, url, data, name) {\n\n if (name) {\n window.pre[name] = {\n method: method,\n uri: url,\n res: data\n };\n }\n\n var key = method + ':' + url;\n var resolvers = transientCacheResolvers[key] || [];\n\n transientCache[key] = data;\n\n while (resolvers.length) {\n resolvers.pop().call();\n }\n};\n\n// Preload complete\nvar preloadComplete = false;\n\nwindow.preloadComplete = function () {\n preloadComplete = true;\n Object.keys(transientCacheResolvers).forEach(function (key) {\n var resolvers = transientCacheResolvers[key] || [];\n\n while (resolvers.length) {\n resolvers.pop().call();\n }\n });\n};\n\n_logger.$logger.info(cookiesEnabled() ? 'cookies_enabled' : 'cookies_disabled');\n\nvar $Api = exports.$Api = _class.$Class.extend('$Api', {\n\n // Cache any GET responses indefinitely\n cache: false,\n\n // Http timeout for all requests\n timeout: 45000,\n\n // Default number of attempts on aborted requests and 500 server errors\n getAttempts: 3,\n postAttempts: 1,\n\n // POST on a resource with an action name myapi.action('foo') -> POST /my/api/foo\n action: function action(_action, options) {\n options.action = _action;\n return this.post(options);\n },\n\n // GET on a resource myapi.retrieve() -> GET /my/api\n retrieve: function retrieve(options) {\n options.method = 'get';\n return this.call(options);\n },\n\n // POST on a resource myapi.retrieve() -> POST /my/api\n post: function post(options) {\n options.method = 'post';\n return this.call(options);\n },\n\n // Generic handler for calling an api and dispatching requests to the right place\n call: function call(options) {\n var self = this;\n\n // Set up request options and params. `options` is an object which should contain everything\n // the request needs to run and handle the response\n\n options.api = this;\n options.uri = this.getURI(options.model, options.action);\n options.params = options.params || {};\n options.cache = options.cache || self.cache && options.method === 'get';\n options.name = this.buildAPIName(options);\n options.meta = this.buildMeta();\n options.transientError = options.transientError || false;\n options.cacheKey = _util.$util.buildURL(options.uri, options.params);\n\n _logger.$logger.info(options.name + '_call', {\n name: options.name,\n method: options.method,\n uri: options.uri\n });\n\n if (!options.silent) {\n _event.$event.emit('loading');\n }\n\n // Decide where to get the response\n return _promise.$promise.first([\n\n // If caching is enabled and we have the data in local cache, use the cache\n function () {\n if (options.cache && cache[options.cacheKey]) {\n return cache[options.cacheKey];\n }\n },\n\n // Otherwise if we have transient cache data for this api, we can use that\n function () {\n return _promise.$promise.providing(self.hasTransientCacheData(options), function () {\n\n // The reason we use self.attemptRequest here is so any errors in the cached response\n // can trigger the retry code path, as if it were a regular request\n return self.attemptRequest(options);\n });\n },\n\n // If we're in batch mode, queue up a batch request\n function () {\n if (options.batch) {\n return self.batchRequest(options);\n }\n },\n\n // Otherwise attempt a regular http request (at this point an http call is guaranteed)\n function () {\n return self.attemptRequest(options);\n }])['finally'](function () {\n\n if (!options.silent) {\n _event.$event.emit('loaded');\n }\n }).then(function (res) {\n\n // Cache the response if we need to\n if (options.cache) {\n cache[options.cacheKey] = res;\n }\n\n // Handle the response\n return self.handleResponse(res.data, options);\n }, function (err) {\n\n // $BatchShortCircuit will be thrown if:\n //\n // 1. batch api call B depends on api call A, but-\n // 2. api call A fails\n //\n // In which case we end up in a situation where had it been a regular chain of events,\n // api B would never have been called in the first place.\n //\n // One possibility here is to return $unresolved, which prevents the promise from ever\n // resolving, but this has the potential to cause a lot of difficulty debugging and strange\n // corner cases.\n //\n // Instead we opt to simply reject the promise, and not call any of the response handlers\n\n if (err instanceof _error.$BatchShortCircuit) {\n return _promise.$promise.reject(err);\n }\n\n // Otherwise, handle the error normally\n return self.handleErrorResponse(err, options);\n });\n },\n\n // Set up a batch request for processing in the next frame\n batchRequest: function batchRequest(options) {\n\n // Batch Requests are an optimization layer on top of regular api calls. The purpose of this\n // layer is to combine multiple atomic api calls into a single http request, without forcing\n // developers to create large orchestration layers on the client/server with cross-cutting concerns.\n //\n // This layer will queue up multiple requests made in the same frame whenever batch-mode is enabled,\n // attach them all to an http call to /api/batch/:name, then on the response it will dispatch each\n // individual api call to the correct handler.\n //\n // The way this is implemented is to place each response in the transient api cache, then to yield\n // control to the regular api request handler, which will handle instrumentation and retries\n\n // For quick dev-time feedback...\n _util.$util.assert(options.batch.name, 'Must define a \"name\" for batch request: ' + options.batch);\n _util.$util.assert(options.batch.id, 'Must define a \"id\" for batch request: ' + options.batch);\n\n var name = options.batch.name;\n var id = options.batch.id;\n\n // Add the batch request options to the batchQueue for processing on the next frame\n var batch = batchQueue[name] = batchQueue[name] || {};\n\n batch[id] = options;\n\n // Fire off a batch request. This will be debounced: calls in the same frame will be combined to one\n return this.buildBatchRequest(name).then(function (results) {\n\n // We get back a mapping of id->response, so we now extract the response for our api\n // call. If we have no response, we can assume the call was never made, and short circuit.\n return results[id].then(function (result) {\n return result || _promise.$promise.reject(new _error.$BatchShortCircuit());\n });\n });\n },\n\n // Process all of the accumulated batch api requests\n buildBatchRequest: _promise.$promise.debounce(function (name) {\n\n var self = this;\n var batch = batchQueue[name];\n var batchIds = _class.$Class.keys(batch);\n var batchData = {};\n var headers = {};\n\n delete batchQueue[name];\n\n // If we have just a single request, we can short-circuit and just hit that api\n\n if (batchIds.length === 1) {\n\n var batchId = batchIds[0];\n var opts = batch[batchId];\n\n var results = {};\n\n results[batchId] = opts.api.attemptRequest(opts);\n return results;\n }\n\n // Build the request to send to the server side. This is an mapping of id->request, each containing\n // the method, uri, data, and dependencies for each api.\n //\n // Specifying a dependency for an api essentially means the back-end will only\n // call api-B if api-A returns ack=success. Otherwise there will be no response for api B.\n\n _util.$util.forEach(batch, function (options, id) {\n\n batchData[id] = {\n method: options.method,\n uri: options.api.getURI(options.model, options.action, true),\n data: options.data,\n params: options.params,\n dependencies: options.batch.dependencies\n };\n\n _util.$util.extend(headers, options.headers);\n });\n\n // Unfortunate circular dependency... $Api depends on another api.\n //\n // $batchApi is subject to all of the same rules regarding retries, so if for some reason the server\n // does not respond the first time, our batch request can still get through.\n\n return $batchApi.action(name, { // eslint-disable-line no-use-before-define\n data: batchData,\n headers: headers\n }).then(function (res) {\n\n // The final response will be a mapping of id->response-promise.\n //\n // However, we do not treat this data as our final response. Instead, we simply use it to\n // prime our transient cache, then proceed to jump to our regular request handler. This will\n // take care of retries and instrumentation as if this were a regular request.\n //\n // Note that a retry for $batchApi is different to a retry for an individual api. If\n // an *individual* api call fails, we do not want to re-do the entire batch call; instead we\n // can just retry the individual api call.\n\n return self.handleBatchResponse(batch, res.data);\n });\n }),\n\n // Process the responses for all of the batch requests we sent to the server\n handleBatchResponse: function handleBatchResponse(batch, data) {\n\n var self = this;\n\n var promises = {};\n\n // Loop over each individual api response contained in the batch response, and process the result\n\n _util.$util.forEach(batch, function (options, id) {\n\n // Store each response promise so we can check and wait for api dependencies\n\n promises[id] = _promise.$promise.run(function () {\n\n // Check if all of the dependencies are present for our individual api call. To do this\n // we must wait until the dependent api call is entirely complete, including any retries.\n\n var depsPresent = _promise.$promise.every(options.batch.dependencies || [], function (depName) {\n\n if (!batch[depName]) {\n _logger.$logger.info('missing_batch_dependency', {\n dependency: depName,\n available: Object.keys(batch).join('|')\n });\n }\n\n return !batch[depName] || promises[depName].then(function (dependency) {\n return dependency && dependency.data && dependency.data.ack === 'success';\n });\n });\n\n // If our dependencies are present, we can continue, otherwise we are not interested in\n // the result of the individual api call - if its dependency is not present, it will not be.\n\n return _promise.$promise.providing(depsPresent, function () {\n\n // If there is data returned for the individual call, add it to the transient cache\n\n return _promise.$promise.providing(data[id], function (result) {\n var uri = options.api.getURI(options.model, options.action);\n\n uri = _util.$util.buildURL(uri, options.params);\n\n self.addTransientCacheData(options.method, uri, result);\n }).then(function () {\n\n // Regardless of whether or not there is data, we can now attempt the request.\n // This will either get the data from the transient cache, or make an http call,\n // and handle any retries that need to be made.\n\n return options.api.attemptRequest(options);\n });\n });\n });\n });\n\n return promises;\n },\n\n // Handle the request and any retries, using either the transient cache or http calls\n attemptRequest: function attemptRequest(options) {\n var self = this;\n\n var attempts = options.method === 'get' ? this.getAttempts : this.postAttempts;\n\n // We allow a certain number of attempts/retries for each api call\n return _promise.$promise.attempt(attempts, function (remaining) {\n\n // Query the transient cache\n return self.getTransientCacheResponse(options).then(function (res) {\n\n // If we can get a response from the transient cache, then use it\n if (res) {\n return res;\n }\n\n // Otherwise resort to making an http call\n return self.getHttpResponse(options);\n })['catch'](function (res) {\n\n // If our request was aborted without even a status code, force a single retry\n if ((!res || !res.status) && attempts === 1) {\n\n _logger.$logger.warn('api_retry_aborted', {\n method: options.method,\n uri: options.uri\n });\n\n return self.getHttpResponse(options);\n }\n\n return _promise.$promise.reject(res);\n })['catch'](function (res) {\n\n // If our request was 401 denied (probably due to a CSRF error), force a single retry\n if (res.status === 401) {\n\n _logger.$logger.warn('api_retry_401', {\n method: options.method,\n uri: options.uri\n });\n\n return self.getHttpResponse(options);\n }\n\n return _promise.$promise.reject(res);\n })['catch'](function (res) {\n\n // Set the correct response and ack for 401\n if (res.status === 401) {\n return {\n data: {\n ack: 'permission_denied'\n }\n };\n }\n\n // Setup to throw a TOO_MANY_REQUESTS contingency for 429 response from ratelimiter (velocityserv)\n if (res.status === 429) {\n return {\n data: {\n ack: 'contingency',\n contingency: 'TOO_MANY_REQUESTS'\n }\n };\n }\n\n // If we have any remaining retries, log and reject\n if (remaining) {\n\n _logger.$logger.warn('api_retry', {\n method: options.method,\n uri: options.uri\n });\n\n return _promise.$promise.reject(res);\n }\n\n // Otherwise reject the request with the appropriate error\n\n // We got ack=error in the response\n if (res && res.data && res.data.ack === 'error') {\n return _promise.$promise.reject(new _error.$ApiError('api_error', { // eslint-disable-line no-reserved-keys\n name: options.name,\n method: options.method,\n uri: options.uri,\n stack: res.data.stack,\n transient: options.transientError\n }));\n }\n\n // We got a response error status\n else if (res && res.status) {\n return _promise.$promise.reject(new _error.$ApiError('response_status_' + res.status, { // eslint-disable-line no-reserved-keys\n uri: options.uri,\n transient: options.transientError\n }));\n } else if (res && res.error) {\n return _promise.$promise.reject(new _error.$ApiError('request_' + res.error, { // eslint-disable-line no-reserved-keys\n uri: options.uri,\n transient: options.transientError\n }));\n }\n\n // The request was aborted\n else {\n return _promise.$promise.reject(new _error.$ApiError('request_aborted', { // eslint-disable-line no-reserved-keys\n uri: options.uri,\n transient: options.transientError\n }));\n }\n });\n });\n },\n\n // Get an api response via http\n getHttpResponse: function getHttpResponse(options) {\n var self = this;\n\n var startTime = _util.$util.now();\n\n var request = this.http(options);\n\n return request['finally'](function () {\n\n // Calculate the end-to-end duration of the request from the client's perspective\n options.duration = _util.$util.now() - startTime;\n })['catch'](function (res) {\n\n // Turn responses with an ack into a 'success' so it makes it to the standard handlers\n if (res && res.status && res.data && res.data.ack && res.data.ack !== 'error') {\n return res;\n }\n\n return _promise.$promise.reject(res);\n }).then(function (res) {\n self.saveResponseState(res);\n\n var loggerPayload = {\n name: options.name,\n method: options.method,\n uri: options.uri,\n server: res.data.server,\n time: options.duration,\n duration: options.duration,\n corrid: res && res.headers('Paypal-Debug-Id')\n };\n\n // In certain browsers we can match up this api call to the performance data from the browser\n if (window.performance && window.performance.getEntries) {\n _util.$util.forEach(window.performance.getEntries(), function (resource) {\n if (resource.name && resource.name.indexOf(options.uri) > -1) {\n _util.$util.extend(loggerPayload, resource);\n }\n });\n }\n\n _logger.$logger.info('api_response', loggerPayload);\n\n if (res && res.status) {\n _logger.$logger.info('http_response_' + res.status);\n }\n\n return res;\n }, function (res) {\n self.saveResponseState(res);\n\n if (res && res.status) {\n _logger.$logger.info('http_response_' + res.status, {\n corrid: res.headers('Paypal-Debug-Id'),\n referenceId: res.headers('X-Reference-Header') || undefined // To not serialize this data if not present\n });\n }\n\n return _promise.$promise.reject(res);\n });\n },\n\n setTransientCache: function setTransientCache(data) {\n throw new Error('NotImplemented');\n },\n\n // Get an individual api response from the transient cache, as an object\n getTransientCacheData: function getTransientCacheData(options, pop) {\n\n if (!_config.$config.enablePreload) {\n return _promise.$promise.resolve();\n }\n\n var preMethod = options.method.toLowerCase();\n var preUri = _util.$util.buildURL(options.uri, options.params);\n\n var key = preMethod + ':' + preUri;\n\n return _promise.$promise.resolver(function (resolve) {\n\n function res() {\n var data = transientCache[key];\n\n if (pop) {\n delete transientCache[key];\n }\n resolve(data);\n }\n\n if (transientCache[key] || document.readyState === 'complete' || preloadComplete) {\n return res();\n }\n\n transientCacheResolvers[key] = transientCacheResolvers[key] || [];\n transientCacheResolvers[key].push(res);\n\n windowLoad().then(res);\n });\n },\n\n // Check if the transient cache has the data for a particular api\n hasTransientCacheData: function hasTransientCacheData(options) {\n return this.getTransientCacheData(options, false).then(function (data) {\n return Boolean(data);\n });\n },\n\n // Add data to the transient cache\n addTransientCacheData: function addTransientCacheData(method, uri, data) {\n var key = method + ':' + uri;\n\n transientCache[key] = data;\n },\n\n // Get an individual api response from transient cache, as a res promise with the correct status code\n getTransientCacheResponse: function getTransientCacheResponse(options) {\n\n return this.getTransientCacheData(options, true).then(function (data) {\n\n // Preload data does not come with a response code, so massage it into a response promise\n if (data) {\n if (data.ack === 'error') {\n return _promise.$promise.reject({\n status: 500,\n data: data\n });\n } else if (data.ack === 'permission_denied') {\n return _promise.$promise.reject({\n status: 401,\n data: data\n });\n } else if (data.ack === 'contingency' || data.ack === 'validation_error') {\n return {\n status: 400,\n data: data\n };\n } else {\n return {\n status: 200,\n data: data\n };\n }\n }\n\n // Log a cache miss if we are currently in the first-page load\n else if (options.method === 'get' && !_loader.$loader.firstLoad() && !options.silent) {\n _logger.$logger.info('preload_cache_miss', {\n uri: options.uri\n });\n }\n });\n },\n\n getHeaders: function getHeaders(options) {\n\n if (!_config.$meta.headers['x-csrf-jwt'] && !_config.$meta.csrfJwt) {\n _logger.$logger.warn('missing_csrf_jwt');\n }\n\n var headers = {\n 'X-Requested-With': 'XMLHttpRequest',\n 'x-csrf-jwt': _config.$meta.headers['x-csrf-jwt'] || _config.$meta.csrfJwt\n };\n\n _util.$util.extend(headers, standardHeaders);\n\n if (!cookiesEnabled()) {\n headers['x-cookies'] = JSON.stringify(_config.$meta.headers['x-cookies']);\n }\n\n if (options.headers) {\n _util.$util.extend(headers, options.headers);\n }\n\n return headers;\n },\n http: function http(options) {\n return this.httpJQuery(options);\n },\n\n\n /*\n // Raw http call\n httpAngular: function(options) {\n let request = {\n method: options.method,\n url: options.uri,\n data: {\n data: options.data,\n meta: options.meta\n },\n headers: this.getHeaders(options),\n params: options.params,\n requestType: 'json',\n responseType: 'json',\n timeout: this.timeout\n };\n if (options.method === 'get' && options.meta && Object.keys(options.meta).length) {\n request.params.meta = JSON.stringify(options.meta);\n }\n return $http(request);\n },\n */\n\n httpJQuery: function httpJQuery(options) {\n\n var request = {\n method: options.method,\n data: options.method === 'get' ? options.params : JSON.stringify({\n data: options.data,\n meta: options.meta || {}\n }),\n headers: this.getHeaders(options),\n timeout: this.timeout\n };\n\n if (options.method === 'post') {\n request.headers['Content-Type'] = 'application/json;charset=UTF-8';\n } else if (options.method === 'get') {\n request.data.meta = JSON.stringify(options.meta);\n }\n\n return _promise.$promise.resolver(function (resolve, reject) {\n\n function getRes(res, data) {\n return {\n status: res.status,\n data: data,\n headers: function headers(name) {\n return res.getResponseHeader(name);\n }\n };\n }\n\n request.success = function (data, status, res) {\n return resolve(getRes(res, data));\n };\n\n request.error = function (res) {\n if (res && res.status) {\n if (res.status >= 400) {\n return reject(getRes(res, res.responseJSON));\n } else {\n return resolve(getRes(res, res.responseJSON));\n }\n }\n\n return reject({\n status: 0,\n headers: _util.$util.noop,\n error: res && res.statusText\n });\n };\n\n _jquery2['default'].ajax(options.uri, request);\n });\n },\n\n // Save cookies and jwt-csrf token from the response\n saveResponseState: function saveResponseState(res) {\n\n if (res.headers('x-csrf-jwt')) {\n _config.$meta.headers['x-csrf-jwt'] = res.headers('x-csrf-jwt');\n _config.$meta.csrfJwt = res.headers('x-csrf-jwt');\n _config.$meta.headers['x-csrf-jwt-hash'] = res.headers('x-csrf-jwt-hash');\n }\n\n if (res.headers('X-cookies')) {\n\n _config.$meta.headers['x-cookies-hash'] = res.headers('x-cookies-hash');\n\n // Extend local cookie jar of encrypted-cookie-name->encrypted-cookie-value with any new cookies\n _util.$util.extend(_config.$meta.headers['x-cookies'], JSON.parse(res.headers('X-cookies') || '{}'));\n }\n\n latestCorrelationID = res.headers('Paypal-Debug-Id') || latestCorrelationID;\n },\n\n // Dispatch the response to the correct handlers\n handleResponse: function handleResponse(res, options) {\n var loggerName = 'ui_' + options.name;\n\n var loggerPayload = {\n name: options.name,\n method: options.method,\n uri: options.uri,\n time: options.duration,\n duration: options.duration\n };\n\n // Here we dispatch the response to the correct handler based on the ack.\n //\n // ack=success -> options.success()\n // ack=error -> options.error()\n // ack=validation -> options.validation()\n // ack=contingency -> options.contingencies[contingency]()\n //\n // Why do this rather than just rejecting the promise with a custom error?\n //\n // a) Angular promises have no `.catchType()`, so this saves us a lot of `instanceof` checks\n // b) Angular promises have no `.done()`, so callers can not assert that they have handled\n // every error they want to. This is exacerbated by the fact that there is no single thread\n // of execution on the front-end a la node, so we can't just call `.done()` at the very end :(\n //\n // This way, if somebody passes a handler, it will be called. Otherwise, an error will be thrown\n // and the global error handler will be invoked. The api responses are also given as promises.\n\n var resultModel = options.resultModel || options.model;\n\n /* jshint maxcomplexity: 17 */\n return _promise.$promise.call(function () {\n\n // If we are given a `resultModel`, we always extend it with `res.data`, no matter the ack\n\n if (res.data && resultModel) {\n\n if (resultModel.populate) {\n resultModel.populate(res.data);\n } else {\n _util.$util.extend(resultModel, res.data);\n }\n }\n\n if (res && res.ack === 'success' && resultModel && resultModel.fetchChildren) {\n return _promise.$promise.resolve(resultModel.fetchChildren()).then(function (children) {\n return _util.$util.extend(resultModel, children);\n });\n }\n }).then(function () {\n // eslint-disable-line max-statements\n\n // Handle each ack type, throw errors accordingly\n\n if (res.ack === 'success') {\n _logger.$logger.info(loggerName + '_success', loggerPayload);\n\n if (options.success) {\n if (options.success instanceof Function) {\n return options.success(res.data);\n }\n return options.success;\n }\n\n return res;\n }\n\n if (options.failSilently) {\n return;\n }\n\n if (res.ack === 'contingency') {\n _logger.$logger.info(loggerName + '_contingency', _util.$util.extend(loggerPayload, {\n contingency: res.contingency\n }));\n\n if (!res.contingency) {\n throw new _error.$ApiError('expected_contingency_name', {\n api: options.name\n });\n }\n\n var contingency = new _error.$Contingency(res.contingency, { // eslint-disable-line no-reserved-keys\n transient: options.transientError\n });\n\n if (resultModel) {\n resultModel.errorData = res.errorData || {};\n }\n\n var handler = options.contingencies && (options.contingencies[contingency.message] || options.contingencies['DEFAULT']);\n\n _util.$util.extend(contingency, res.errorData);\n\n if (handler) {\n if (handler instanceof Function) {\n return handler(contingency.message, contingency);\n }\n return handler;\n }\n\n throw contingency;\n } else if (res.ack === 'validation') {\n _logger.$logger.info(loggerName + '_validation', _util.$util.extend(loggerPayload, {\n validation: res.validation\n }));\n\n if (options.validation) {\n return options.validation(res.validation);\n }\n\n throw new _error.$ApiError('validation', { // eslint-disable-line no-reserved-keys\n transient: options.transientError\n });\n } else if (res.ack === 'permission_denied') {\n _logger.$logger.info(loggerName + '_denied', loggerPayload);\n\n var properties = {\n transient: options.transientError\n };\n\n if (res.reason) {\n properties.reason = res.reason;\n }\n\n throw new _error.$Forbidden(options.uri + ': forbidden', properties);\n } else {\n _logger.$logger.info(loggerName + '_noack', loggerPayload);\n\n throw new _error.$ApiError('noack', { // eslint-disable-line no-reserved-keys\n transient: options.transientError\n });\n }\n });\n },\n\n // Handle http error responses (ack=error or unhandled errors)\n handleErrorResponse: function handleErrorResponse(err, options) {\n\n return _promise.$promise.run(function () {\n\n // If the caller provides an error handler, let them handle it\n if (options.error) {\n return options.error(err);\n }\n\n // Otherwise we throw the error. Please not that this is NOT just rejecting the promise,\n // this will always end up in the global error handler due to how angular promises work.\n throw err;\n });\n },\n\n // Build the uri for the api call\n getURI: function getURI(model, action, relative) {\n var self = this;\n\n // build the uri as a seriest of segments\n var uri = [];\n\n uri.push(this.uri.replace(/\\/:[\\w\\.]+\\?/g, function (key) {\n\n // Add any *optional* dynamic keys from the model (/foo/:bar? -> /foo/{{model.bar}})\n\n key = key.slice(2);\n key = key.substring(0, key.length - 1);\n\n var component = model.get ? model.get(key) : model[key];\n\n if (!component) {\n return '';\n }\n\n return '/' + component;\n }).replace(/:[\\w\\.]+/g, function (key) {\n\n // Add any dynamic keys from the model (/foo/:bar -> /foo/{{model.bar}})\n\n key = key.slice(1);\n\n var component = model.get ? model.get(key) : model[key];\n\n if (!component) {\n throw new Error('Property \"' + key + '\" not found in model for: ' + self.uri);\n }\n\n return component;\n }));\n\n // Add the action, if provided (`foo.action('bar', {...})` -> /api/foo/bar\n if (action) {\n uri.push(action);\n }\n\n // Add the extension (e.g. for doing a GET on a .json resource)\n if (this.ext) {\n uri[uri.length - 1] += '.' + this.ext;\n }\n\n // Join the uri segments and strip any extra slashes\n uri = '/' + uri.join('/').replace(/\\/{2,}/g, '/').replace(/^\\//, '');\n\n // Add on the base uri, e.g. /webapps/hermes\n if (!relative) {\n uri = (this.baseURI || _config.$config.urls.baseUrl) + uri;\n }\n\n return uri;\n },\n\n // Attach meta data provided by the parent app\n buildMeta: function buildMeta() {\n if (metaBuilder) {\n return metaBuilder();\n }\n },\n\n // Build the name of the api for logging. /api/foo/bar -> api_foo_bar\n buildAPIName: function buildAPIName(options) {\n var self = this;\n var apiName = self.uri.replace(/^\\/+/, ''). // Remove leading '/'\n replace(/\\//g, '_'). // Replace remaining '/' with '_'\n replace(/\\?(.*)/, ''). // Remove everything after '?'\n replace(/[^a-zA-Z0-9_]/g, '');\n\n apiName = options.action ? apiName + '_' + options.action : apiName;\n apiName = apiName.charAt(0) === '_' ? apiName.slice(1) : apiName;\n return apiName;\n }\n});\n\n$Api.reopenClass({\n clearCache: function clearCache() {\n cache = {};\n }\n});\n\n$Api.registerMetaBuilder = function (builder) {\n metaBuilder = builder;\n};\n\n$Api.addHeader = function (name, value) {\n standardHeaders[name] = value;\n};\n\nvar $batchApi = new $Api({\n uri: '/api/batch',\n postAttempts: 3\n});\n\nfunction $getLatestCorrelationID() {\n return latestCorrelationID;\n}\n\nangular.value(\"$Api\", $Api);\nangular.value(\"$getLatestCorrelationID\", $getLatestCorrelationID);\n_logger.$logger;\n\n_event.$event;\n\n_class.$Class;\n\n_util.$util;\n\n_promise.$promise;\n\n_config.$config;\n\n_config.$meta;\n\n_error.$Contingency;\n\n_error.$Forbidden;\n\n_error.$ApiError;\n\n_error.$BatchShortCircuit;\n\n_loader.$loader;\n\n/***/ }),\n\n/***/ \"../node_modules/squid/dist/core/class.js\":\n/***/ (function(module, exports) {\n\n\n\nexports.__esModule = true;\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\n/*\n Class\n -----\n\n A class pattern, adding sugar on top of javascript prototypes\n\n ### Basic Usage\n\n let MyClass = Class.extend({\n foo: 'bar';\n });\n\n myInstance = new MyClass({\n hello: 'world'\n });\n\n console.log(myInstance.foo, myInstance.hello)\n\n In this example, `foo` becomes a property on `MyClass`'s prototype,\n and `hello` becomes a property on `myInstance`.\n\n ### Default Object Methods\n\n - `init()`: Called after the object is first instantiated, with all properties available\n\n - `get(, )`: Get an object an arbitrary number of levels deep, or return a default\n\n e.g. `myInstance.get('foo.bar.baz', 'some_default');`\n\n Default return value is undefined\n\n - `set(, )`: Set an object an arbitrary number of levels deep\n\n e.g. `myInstance.set('foo.bar.baz', 'some_value');`\n\n Error is thrown if no object is found to set the value on\n\n - `setProperties()`: Set all the properties from an object onto your object\n\n e.g. `myInstance.setProperties({foo: 'bar', hello: 'world'})`\n\n Can not be used with nested properties\n\n - `forEach()`: Loop through the object and call callback(, ) for each key/val pair\n\n */\n\n// Object Create\n// -------------\n//\n// Shim for Object.create, if it is not supported by our browser\n//\n// let myPrototype = {foo: 'bar'}\n// let myObject = create(myPrototype)\n\n// Create an empty anonymous constructor with no side effects, for re-use later\nvar EmptyConstructor = function EmptyConstructor() {}; // eslint-disable-line no-empty-function\n\nvar create = Object.create || function create(obj) {\n\n // Set a temporary prototype\n EmptyConstructor.prototype = obj;\n\n // Create an object using our temporary constructor/prototype\n var instance = new EmptyConstructor();\n\n // Reset the prototype for next time\n EmptyConstructor.prototype = null;\n\n // Return our new object, created without side effects\n return instance;\n};\n\nfunction _extend(obj, source) {\n\n if (!source) {\n return obj;\n }\n\n for (var key in source) {\n if (source.hasOwnProperty(key)) {\n obj[key] = source[key];\n }\n }\n\n return obj;\n}\n\n// Is Object\n// ---------\n//\n// Check of a let is an object or not\n//\n// isobject({}) -> true\n// isobject('foo') -> false\n\nfunction isobject(obj) {\n return obj && (typeof obj === 'undefined' ? 'undefined' : _typeof(obj)) === 'object' && obj instanceof Object;\n}\n\n// Transpose properties\n// -------------------------------------------------------------------\n//\n// Transpose properties from a list of objects onto a recipient object\n//\n// let recipient = {};\n// transpose(recipient, [{a: 1, b: 2}, {c: 3}])\n// recipient -> {a: 1, b: 2, c:3}\n\nfunction transpose(recipient, args) {\n\n // Loop through all args\n for (var i = 0; i < args.length; i++) {\n var ob = args[i];\n\n // Ignore anything that is not an object\n if (!isobject(ob)) {\n continue;\n }\n\n // Loop through all keys in our object\n for (var key in ob) {\n\n // Ignore any prototypal properties\n if (!ob.hasOwnProperty(key)) {\n continue;\n }\n\n var item = ob[key];\n\n // Give the function a name\n if (item instanceof Function) {\n item.__name__ = key;\n }\n\n recipient[key] = item;\n }\n }\n}\n\n// Construct a Class\n// -----------------\n//\n// This is the primary constructor for all $Class objects\n\nfunction construct() {\n // eslint-disable-line no-unused-vars\n\n // Call any custom constructor;\n if (this.construct) {\n var ob = this.construct.apply(this, arguments);\n\n // If we get a new object back, return that to the user\n if (isobject(ob)) {\n return ob;\n }\n }\n\n // Load any provided properties directly onto the object\n transpose(this, arguments);\n\n // Initialize the object\n if (this.init) {\n this.init();\n }\n}\n\n// Reopen an object\n// ----------------\n//\n// Add properties to the constructor's prototype\n//\n// let Animal = $Class.extend();\n//\n// Animal.reopen({\n// type: 'animal',\n// });\n//\n// let cat = new Animal;\n// console.log(cat.type);\nfunction reopen() {\n\n // Add some more properies to our prototype\n transpose(this.prototype, arguments);\n\n return this;\n}\n\n// Reopen a class\n// --------------\n//\n// Add properties to the constructor. These will propogate through future extends\n//\n// let Animal = $Class.extend();\n//\n// Animal.reopenClass({\n// fromCache: function(id) {\n// return cache[id] || new this({id: id});\n// }\n// }\n//\n// let cat = Animal.fromCache('cat_54');\n\nfunction reopenClass() {\n\n // Add some more properies to our class\n transpose(this, arguments);\n\n // Add to __classmethods__\n transpose(this.__classmethods__, arguments);\n\n return this;\n}\n\nfunction isChild(Cls) {\n return Cls && Cls.prototype instanceof this;\n}\n\n// Generate a new class\n// --------------------\n//\n// Generate a new constructor, with the specified name, and attach all static and prototypal methods\n\nvar id = 0;\n\nfunction extend(name) {\n // eslint-disable-line max-statements\n var Cls = void 0;\n var className = void 0;\n var args = void 0;\n var argsLength = void 0;\n var startIndex = void 0;\n\n // Accept an optional class name\n if (typeof name === 'string') {\n\n // Guard against javascript injection\n if (!name.match(/^[\\w$][\\w\\d]*$/)) {\n throw new Error('Class name can not include special characters: ' + name);\n }\n\n // Use the provided name and slice out the first argument\n className = name;\n argsLength = arguments.length && arguments.length - 1;\n startIndex = 1;\n } else {\n\n // Otherwise default to the parent name, or 'Object' if generating our first class\n className = this.name || 'Object';\n argsLength = arguments.length;\n startIndex = 0;\n }\n\n args = new Array(argsLength);\n for (var i = startIndex; i < arguments.length; i++) {\n args[i - startIndex] = arguments[i];\n }\n\n // Dynamically create our constructor with a custom name\n eval('Cls = function ' + className + '() { return construct.apply(this, arguments) }'); // eslint-disable-line no-eval\n\n // Store the class name for future reference\n Cls.__name__ = className;\n\n // Set up a classmethods object. These will be inherited through subsequent extend() calls\n Cls.__classmethods__ = {\n extend: extend,\n reopen: reopen,\n reopenClass: reopenClass,\n isChild: isChild\n };\n\n id += 1;\n Cls.id = id;\n\n // If we're being called on an existing class, e.g. Class.extend(), we should inherit from that class\n if (this && this !== window) {\n\n // Inherit everything from superclass prototype\n Cls.prototype = create(this.prototype);\n\n // Re-set the constructor, which is overwritten by create\n Cls.prototype.constructor = Cls;\n\n // Add a reference to the superclass prototype for super method calls\n Cls.prototype._super = this.prototype;\n\n // Inherit any class methods from the superclass\n _extend(Cls.__classmethods__, this.__classmethods__);\n }\n\n // Add the class methods to our existing class\n _extend(Cls, Cls.__classmethods__);\n\n // Load any provided properties onto the constructor's prototype\n transpose(Cls.prototype, args);\n\n // Temporary: allow access from console/debugger\n if (className.indexOf('$') === 0) {\n window[className] = Cls;\n } else {\n window['$' + className] = Cls;\n }\n\n return Cls;\n}\n\n// Multi-layer get\n// ---------------\n//\n// Recursively gets a deep path from an object, returning a default value if any level is not found\n//\n// let obj = {bar: {baz: 1}}\n// get(obj, 'bar.baz', 'default') -> 1\n// get(obj, 'aaa.bbb', 'default') -> default\n\nfunction _get(item, path, def) {\n\n if (!path) {\n return def;\n }\n\n path = path.split('.');\n\n // Loop through each section of our key path\n for (var i = 0; i < path.length; i++) {\n\n // If we have an object, we can get the key\n if (isobject(item)) {\n item = item[path[i]];\n // Otherwise, we should return the default (undefined if not provided)\n } else {\n return def;\n }\n }\n\n // If our final result is undefined, we should return the default\n return item === undefined ? def : item;\n}\n\n// Multi-layer set\n// ---------------\n//\n// Recursively sets a deep path from an object\n//\n// let obj = {bar: {baz: 1}}\n// set(obj, 'bar.baz', 2)\n// obj.bar.baz -> 1\n\nfunction _set(item, path, value) {\n path = path.split('.');\n\n // Loop through each section of our key path except the last\n for (var i = 0; i < path.length - 1; i++) {\n\n // Get the next item down\n item = item[path[i]];\n\n // If we have an object, we're good\n if (isobject(item)) {\n continue;\n // Otherwise, there's nothing to set our key on\n } else {\n throw new Error(path[i - 1] + '.' + path[i] + ' is not an object');\n }\n }\n\n // Do the set on the retrieved object with our value\n item[path[path.length - 1]] = value;\n}\n\n// Loop through object\n// -------------------\n//\n// Loop an object and apply a function for each key/value\n//\n// let ob = {a: 1, b: 2, c: 3}\n// each(ob, console.log) -> a 1 b 2 c 3\n\nfunction each(ob, callback) {\n for (var key in ob) {\n if (ob.hasOwnProperty(key)) {\n callback.call(ob, key, ob[key]);\n }\n }\n}\n\n// Gey keys of object\n// ------------------\n//\n// Shim for Object.keys if it does not already exist\n//\n// let ob = {a: 1, b: 2, c: 3}\n// keys(ob) -> ['a', 'b', 'c']\n\nfunction _keys(ob) {\n\n if (Object.keys) {\n return Object.keys(ob);\n }\n\n var result = [];\n\n for (var key in ob) {\n if (ob.hasOwnProperty(key)) {\n result.push(key);\n }\n }\n\n return result;\n}\n\n// Create a base class that can be inherited from\n// ----------------------------------------------\n//\n// This is the public interface to the Class module.\n// All classes with extend from Class and be provided with a set of base convenience methods.\n\nvar $Class = exports.$Class = extend('Class', {\n\n init: function init() {\n // Empty init class, so calls to _super can be safely made\n },\n\n get: function get(path, def) {\n return _get(this, path, def);\n },\n\n set: function set(path, value) {\n _set(this, path, value);\n },\n\n setProperties: function setProperties() {\n transpose(this, arguments);\n },\n\n forEach: function forEach(callback) {\n each(this, callback);\n },\n\n keys: function keys() {\n return _keys(this);\n }\n});\n\n$Class.get = _get;\n$Class.set = _set;\n$Class.keys = _keys;\n\nangular.value(\"$Class\", $Class);\n\n/***/ }),\n\n/***/ \"../node_modules/squid/dist/core/config.js\":\n/***/ (function(module, exports) {\n\n\n\nexports.__esModule = true;\nvar $meta = exports.$meta = window.meta || {};\nvar $cookies = exports.$cookies = window.cookies || {};\nvar $config = exports.$config = window.config || {};\nangular.value(\"$meta\", $meta);\nangular.value(\"$cookies\", $cookies);\nangular.value(\"$config\", $config);\n\n/***/ }),\n\n/***/ \"../node_modules/squid/dist/core/dom.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.$dom = undefined;\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\nvar _promise = __webpack_require__(\"../node_modules/squid/dist/core/promise.js\");\n\nvar _util = __webpack_require__(\"../node_modules/squid/dist/core/util.js\");\n\nvar $dom = exports.$dom = {\n\n elementReady: function elementReady(id) {\n\n return _promise.$promise.resolver(function (resolve, reject) {\n\n if (document.getElementById(id)) {\n return resolve();\n }\n\n var interval = setInterval(function () {\n if (document.getElementById(id)) {\n clearInterval(interval);\n return resolve();\n }\n }, 10);\n\n setTimeout(60000, reject);\n });\n },\n\n loadScript: function loadScript(name, src, timeout) {\n var attributes = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};\n\n return _promise.$promise.resolver(function (resolve, reject) {\n var script = document.createElement('script');\n var loadTimeout = void 0;\n\n function clearScriptLoadTimeout() {\n if (loadTimeout) {\n clearTimeout(loadTimeout);\n loadTimeout = undefined;\n }\n }\n\n script.onload = function () {\n clearScriptLoadTimeout();\n setTimeout(resolve, 10);\n };\n\n // For Internet explorer 8 support\n script.onreadystatechange = function () {\n if (this.readyState === 'complete' || this.readyState === 'loaded') {\n clearScriptLoadTimeout();\n setTimeout(resolve, 10);\n }\n };\n\n script.onerror = function (event) {\n _logger.$logger.info('script_error', {\n script: src\n });\n return reject(new Error(name + '_loading_error'));\n };\n\n if (timeout) {\n loadTimeout = setTimeout(function () {\n _logger.$logger.info('script_load_timedout', {\n script: src\n });\n return reject(new Error(name + '_loading_timed_out'));\n }, timeout);\n }\n\n script.setAttribute('src', src);\n\n for (var _iterator = Object.keys(attributes), _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {\n var _ref;\n\n if (_isArray) {\n if (_i >= _iterator.length) break;\n _ref = _iterator[_i++];\n } else {\n _i = _iterator.next();\n if (_i.done) break;\n _ref = _i.value;\n }\n\n var attribute = _ref;\n\n script.setAttribute(attribute, attributes[attribute]);\n }\n\n document.body.appendChild(script);\n });\n },\n\n cssReady: function cssReady(id) {\n\n var el = document.getElementById(id);\n\n return _promise.$promise.resolver(function (resolve, reject) {\n\n var timeout = void 0;\n var interval = void 0;\n\n function check() {\n _util.$util.forEach(document.styleSheets, function (stylesheet) {\n if (stylesheet.href === el.href) {\n clearInterval(interval);\n clearTimeout(timeout);\n resolve();\n }\n });\n }\n\n timeout = setTimeout(function () {\n clearInterval(interval);\n reject();\n throw new Error('css_loading_timed_out');\n }, 30000);\n\n interval = setInterval(check, 20);\n check();\n });\n }\n};\n\nangular.value(\"$dom\", $dom);\n_logger.$logger;\n\n_promise.$promise;\n\n_util.$util;\n\n/***/ }),\n\n/***/ \"../node_modules/squid/dist/core/error.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.$BatchShortCircuit = exports.$ShortCircuit = exports.$FallbackError = exports.$ApiError = exports.$Forbidden = exports.$Contingency = exports.$Error = undefined;\n\nvar _event = __webpack_require__(\"../node_modules/squid/dist/core/event.js\");\n\nvar _class = __webpack_require__(\"../node_modules/squid/dist/core/class.js\");\n\nvar _util = __webpack_require__(\"../node_modules/squid/dist/core/util.js\");\n\n_util.$util.monkeyPatch(window, 'onerror', function (_ref, original) {\n var message = _ref[0],\n file = _ref[1],\n line = _ref[2],\n col = _ref[3],\n err = _ref[4];\n\n\n original();\n\n _event.$event.emit('$windowError', {\n message: message && (message.stack || message).toString(),\n file: file && file.toString(),\n line: line && line.toString(),\n col: col && col.toString(),\n stack: err && (err.stack || err).toString()\n });\n});\n\nvar $Error = exports.$Error = _class.$Class.extend.call(Error, '$Error', {\n\n construct: function construct(err, properties) {\n\n if (err instanceof Error) {\n err = err.message;\n }\n\n if (properties) {\n _util.$util.extend(this, properties);\n }\n\n this.payload = properties;\n\n this.message = err;\n }\n});\n\nvar $Contingency = exports.$Contingency = $Error.extend('$Contingency', {\n handle: function handle(handlers) {\n var handler = handlers[this.message] || handlers['DEFAULT'];\n\n if (handler) {\n var result = handler.call(this, this.message, this);\n\n if (typeof result !== 'undefined') {\n return result;\n }\n return true;\n }\n }\n});\n\nvar $Forbidden = exports.$Forbidden = $Error.extend('$Forbidden');\n\nvar $ApiError = exports.$ApiError = $Error.extend('$ApiError');\n\nvar $FallbackError = exports.$FallbackError = $Error.extend('$FallbackError', {\n init: function init() {\n this.reason = this.reason || '';\n this.product = this.product || '';\n this.entryPoint = this.entryPoint || '';\n }\n});\n\n/**\n * $ShortCircuit should be thrown if you want to bypass the remainder of a promise chain, and you've already\n * done error handling for the rejection. It should be handled with a no-op in app's $exceptionHandler\n */\nvar $ShortCircuit = exports.$ShortCircuit = $Error.extend('$ShortCircuit');\n\n// TO-BE-DEPRECATED: Use $ShortCircuit instead\nvar $BatchShortCircuit = exports.$BatchShortCircuit = $ShortCircuit;\n\nangular.value(\"$Error\", $Error);\nangular.value(\"$Contingency\", $Contingency);\nangular.value(\"$Forbidden\", $Forbidden);\nangular.value(\"$ApiError\", $ApiError);\nangular.value(\"$FallbackError\", $FallbackError);\nangular.value(\"$ShortCircuit\", $ShortCircuit);\nangular.value(\"$BatchShortCircuit\", $BatchShortCircuit);\n_event.$event;\n\n_class.$Class;\n\n_util.$util;\n\n/***/ }),\n\n/***/ \"../node_modules/squid/dist/core/event.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.$event = undefined;\n\nvar _promise = __webpack_require__(\"../node_modules/squid/dist/core/promise.js\");\n\nvar handlers = {};\n\nvar customEventEmitter = void 0;\n\nvar $event = exports.$event = {\n use: function use(eventEmitter) {\n customEventEmitter = eventEmitter;\n\n for (var _iterator = Object.keys(handlers), _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {\n var _ref;\n\n if (_isArray) {\n if (_i >= _iterator.length) break;\n _ref = _iterator[_i++];\n } else {\n _i = _iterator.next();\n if (_i.done) break;\n _ref = _i.value;\n }\n\n var eventName = _ref;\n\n if (handlers[eventName]) {\n for (var _iterator2 = handlers[eventName], _isArray2 = Array.isArray(_iterator2), _i2 = 0, _iterator2 = _isArray2 ? _iterator2 : _iterator2[Symbol.iterator]();;) {\n var _ref2;\n\n if (_isArray2) {\n if (_i2 >= _iterator2.length) break;\n _ref2 = _iterator2[_i2++];\n } else {\n _i2 = _iterator2.next();\n if (_i2.done) break;\n _ref2 = _i2.value;\n }\n\n var handler = _ref2;\n\n customEventEmitter.on(eventName, handler);\n }\n }\n }\n },\n on: function on(eventName, method) {\n\n if (customEventEmitter) {\n return customEventEmitter.on(eventName, method);\n }\n\n handlers[eventName] = handlers[eventName] || [];\n handlers[eventName].push(method);\n\n var cancelled = false;\n\n function cancel() {\n if (!cancelled) {\n handlers[eventName].splice(handlers[eventName].indexOf(method), 1);\n cancelled = true;\n }\n }\n\n cancel.cancel = cancel;\n return cancel;\n },\n once: function once(eventName, method) {\n\n if (customEventEmitter) {\n return customEventEmitter.once(eventName, method);\n }\n\n var listener = $event.on(eventName, function () {\n listener.cancel();\n return method.apply(this, arguments);\n });\n\n return listener;\n },\n emit: function emit(eventName) {\n if (customEventEmitter) {\n var _customEventEmitter;\n\n return (_customEventEmitter = customEventEmitter).emit.apply(_customEventEmitter, arguments);\n }\n\n var event = {\n preventDefault: function preventDefault() {\n event.defaultPrevented = true;\n }\n };\n\n if (handlers[eventName]) {\n for (var _iterator3 = Array.prototype.slice.apply(handlers[eventName]), _isArray3 = Array.isArray(_iterator3), _i3 = 0, _iterator3 = _isArray3 ? _iterator3 : _iterator3[Symbol.iterator]();;) {\n var _ref3;\n\n if (_isArray3) {\n if (_i3 >= _iterator3.length) break;\n _ref3 = _iterator3[_i3++];\n } else {\n _i3 = _iterator3.next();\n if (_i3.done) break;\n _ref3 = _i3.value;\n }\n\n var handler = _ref3;\n\n handler.apply(this, [event].concat(Array.prototype.slice.call(arguments)));\n }\n }\n\n return event;\n },\n broadcast: function broadcast(eventName) {\n\n if (customEventEmitter) {\n var _customEventEmitter2;\n\n return (_customEventEmitter2 = customEventEmitter).broadcast.apply(_customEventEmitter2, arguments);\n }\n\n return $event.emit.apply($event, arguments);\n },\n\n\n refCount: function refCount($scope, start, stop) {\n return _promise.$promise.resolver(function (resolve) {\n\n var count = 0;\n\n var cancelStartListener = $scope.$on(start, function (event, data) {\n count += 1;\n });\n\n var cancelStopListener = $scope.$on(stop, function (event, data) {\n setTimeout(function () {\n count -= 1;\n res(); // eslint-disable-line no-use-before-define\n }, 50);\n });\n\n function res() {\n if (!count) {\n\n if (cancelStartListener && cancelStopListener) {\n cancelStartListener();\n cancelStopListener();\n }\n\n return resolve();\n }\n }\n\n setTimeout(res, 50);\n });\n },\n\n compose: function compose(start, end, startAll, endAll) {\n var debounce = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;\n\n\n var count = 0;\n var active = false;\n\n $event.on(start, function () {\n if (!count) {\n setTimeout(function () {\n if (count && !active) {\n active = true;\n $event.emit(startAll);\n }\n }, debounce);\n }\n\n count += 1;\n });\n\n $event.on(end, function () {\n\n setTimeout(function () {\n count -= 1;\n\n if (!count && active) {\n active = false;\n $event.emit(endAll);\n }\n }, 0);\n });\n\n return {\n getCount: function getCount() {\n return count;\n },\n isActive: function isActive() {\n return Boolean(count);\n },\n reset: function reset() {\n count = 0;\n }\n };\n }\n};\n\nangular.value(\"$event\", $event);\n_promise.$promise;\n\n/***/ }),\n\n/***/ \"../node_modules/squid/dist/core/index.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _api = __webpack_require__(\"../node_modules/squid/dist/core/api.js\");\n\nObject.keys(_api).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _api[key];\n }\n });\n});\n\nvar _class = __webpack_require__(\"../node_modules/squid/dist/core/class.js\");\n\nObject.keys(_class).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _class[key];\n }\n });\n});\n\nvar _config = __webpack_require__(\"../node_modules/squid/dist/core/config.js\");\n\nObject.keys(_config).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _config[key];\n }\n });\n});\n\nvar _error = __webpack_require__(\"../node_modules/squid/dist/core/error.js\");\n\nObject.keys(_error).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _error[key];\n }\n });\n});\n\nvar _event = __webpack_require__(\"../node_modules/squid/dist/core/event.js\");\n\nObject.keys(_event).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _event[key];\n }\n });\n});\n\nvar _integration = __webpack_require__(\"../node_modules/squid/dist/core/integration.js\");\n\nObject.keys(_integration).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _integration[key];\n }\n });\n});\n\nvar _model = __webpack_require__(\"../node_modules/squid/dist/core/model.js\");\n\nObject.keys(_model).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _model[key];\n }\n });\n});\n\nvar _promise = __webpack_require__(\"../node_modules/squid/dist/core/promise.js\");\n\nObject.keys(_promise).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _promise[key];\n }\n });\n});\n\nvar _util = __webpack_require__(\"../node_modules/squid/dist/core/util.js\");\n\nObject.keys(_util).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _util[key];\n }\n });\n});\n\nvar _loader = __webpack_require__(\"../node_modules/squid/dist/core/loader.js\");\n\nObject.keys(_loader).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _loader[key];\n }\n });\n});\n\nvar _dom = __webpack_require__(\"../node_modules/squid/dist/core/dom.js\");\n\nObject.keys(_dom).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _dom[key];\n }\n });\n});\n\n/***/ }),\n\n/***/ \"../node_modules/squid/dist/core/integration.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.$integration = exports.$CONTEXT = exports.$DEFAULT = undefined;\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\nvar $DEFAULT = exports.$DEFAULT = 'DEFAULT';\n\nvar $CONTEXT = exports.$CONTEXT = {\n\n // Full page checkout\n FULLPAGE: 'FULLPAGE',\n\n // Checkout in popup\n POPUP: 'POPUP',\n\n // Checkout in lightbox (iframe)\n LIGHTBOX: 'LIGHTBOX',\n\n // Web view\n WEBVIEW: 'WEBVIEW',\n\n // Native checkout\n NATIVE_CHECKOUT: 'NATIVE_CHECKOUT'\n};\n\nvar $integration = exports.$integration = {\n\n flow: $DEFAULT,\n\n init: function init(flow, config) {\n this.config = config || {};\n\n if (flow) {\n this.setFlow(flow);\n }\n\n this.setContext(this.getContext());\n },\n getContext: function getContext() {\n\n if (this.isIFrame()) {\n return $CONTEXT.LIGHTBOX;\n } else if (this.isPopup()) {\n return $CONTEXT.POPUP;\n } else {\n return $CONTEXT.FULLPAGE;\n }\n },\n isPopup: function isPopup() {\n return Boolean(window.opener);\n },\n isIFrame: function isIFrame() {\n return window.top !== window.self;\n },\n setContext: function setContext(context) {\n _logger.$logger.info('integration_context_' + context);\n this.context = context;\n },\n setFlow: function setFlow(flow) {\n _logger.$logger.info('integration_flow_' + flow);\n this.flow = flow;\n },\n is: function is(context, flow) {\n return this.isContext(context) && this.isFlow(flow);\n },\n isContext: function isContext(context) {\n return this.context === context;\n },\n isFlow: function isFlow(flow) {\n return this.flow === flow;\n },\n getConfig: function getConfig(key) {\n\n this.context = this.getContext();\n\n if (!this.config) {\n return;\n }\n\n if (this.config.hasOwnProperty(this.context) && this.config[this.context].hasOwnProperty(this.flow) && this.config[this.context][this.flow].hasOwnProperty(key)) {\n\n return this.config[this.context][this.flow][key];\n }\n\n if (this.config.hasOwnProperty(this.context) && this.config[this.context].hasOwnProperty(key)) {\n\n return this.config[this.context][key];\n }\n\n if (this.config.hasOwnProperty($DEFAULT) && this.config[$DEFAULT].hasOwnProperty(this.flow) && this.config[$DEFAULT][this.flow].hasOwnProperty(key)) {\n\n return this.config[$DEFAULT][this.flow][key];\n }\n\n if (this.config.hasOwnProperty($DEFAULT) && this.config[$DEFAULT].hasOwnProperty(key)) {\n\n return this.config[$DEFAULT][key];\n }\n },\n error: function error(message) {\n return new Error('Integration error: ' + this.context + ' / ' + this.flow + ' :: ' + message);\n }\n};\n\nangular.value(\"$DEFAULT\", $DEFAULT);\nangular.value(\"$CONTEXT\", $CONTEXT);\nangular.value(\"$integration\", $integration);\n_logger.$logger;\n\n/***/ }),\n\n/***/ \"../node_modules/squid/dist/core/loader.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.$loader = undefined;\n\nvar _event = __webpack_require__(\"../node_modules/squid/dist/core/event.js\");\n\nvar _firstLoad = false;\n\nvar loader = _event.$event.compose('loading', 'loaded', 'startLoad', 'allLoaded', 100);\n\nvar $loader = exports.$loader = {\n\n isLoading: function isLoading() {\n return Boolean(loader.getCount());\n },\n firstLoad: function firstLoad() {\n return _firstLoad;\n },\n reset: function reset() {\n loader.reset();\n }\n};\n\n_event.$event.on('allLoaded', function () {\n _firstLoad = true;\n});\n\nangular.value(\"$loader\", $loader);\n_event.$event;\n\n/***/ }),\n\n/***/ \"../node_modules/squid/dist/core/model.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(console) {\n\nexports.__esModule = true;\nexports.$Model = undefined;\n\nvar _class = __webpack_require__(\"../node_modules/squid/dist/core/class.js\");\n\nvar _util = __webpack_require__(\"../node_modules/squid/dist/core/util.js\");\n\nvar _promise = __webpack_require__(\"../node_modules/squid/dist/core/promise.js\");\n\nvar $Model = exports.$Model = _class.$Class.extend('$Model', {\n\n init: function init() {\n\n if (this.keys().length) {\n this.onPopulate();\n }\n\n if (this.id) {\n var _cache = this.constructor._modelCache = this.constructor._modelCache || {};\n\n _cache[this.id] = this;\n }\n\n this.meta = {\n populated: false\n };\n },\n\n /**\n * Add the passed in properties to this Model.\n * Sets the meta.populated to true. This flag\n * can be used later to determine if the model is populated.\n * Calls onPopulate() in the end.\n */\n populate: function populate() {\n\n this.meta.populated = true;\n this.setProperties.apply(this, arguments);\n delete this.meta.invalidated;\n this.onPopulate();\n return this;\n },\n\n fetchChildren: function fetchChildren() {\n return _promise.$promise.resolve();\n },\n\n /**\n * Override this method, to execute any logic after model is populated.\n */\n onPopulate: function onPopulate() {// eslint-disable-line no-empty-function\n\n },\n\n /**\n * Override this method, to execute any logic after model is invalidated.\n */\n onInvalidate: function onInvalidate() {// eslint-disable-line no-empty-function\n\n },\n\n /**\n * Override this method to return a Mock instance. Must return a promise which resolves to model.\n */\n fetchMock: function fetchMock() {// eslint-disable-line no-empty-function\n\n },\n\n /**\n * Retrieves the model.\n *\n * If model is already populated just returns a promise which resolves to `this`\n * If there is a retriever for this model, then return the retreiver.\n * Else calls the api to retrieve the model.\n *\n * @param options\n * @returns {*}\n */\n retrieve: function retrieve(options) {\n var self = this;\n\n options = options || {};\n\n if (self.meta.populated) {\n\n if (options.success) {\n return _promise.$promise.resolve(options.success(self));\n }\n\n return _promise.$promise.resolve(this);\n }\n\n if (this.retriever) {\n return this.retriever;\n }\n\n if (!this.api) {\n throw new Error('Tried to populate a model with no api');\n }\n\n options.model = this;\n\n this.retriever = this.api.retrieve(options).then(function (res) {\n return self;\n })['finally'](function () {\n delete self.retriever;\n });\n\n return this.retriever;\n },\n\n /**\n * Calls a post on the api to save this model. Takes options as parameters.\n * options will passed down to api.post.\n *\n * @param options\n * @returns {*|HttpPromise}\n */\n save: function save(options) {\n options = options || {};\n options.model = this;\n\n options.data = options.data || this.serialize();\n\n return this.api.post(options);\n },\n\n /**\n * Calls Api.action to perform any action on the model.\n *\n * Takes action name and optional 'options' object as parameters.\n *\n * Ex: $CheckoutSession.actions('create', [options])\n *\n * @param action\n * @param options\n * @returns {*}\n */\n action: function action(_action, options) {\n options = options || {};\n options.model = this;\n\n return this.api.action(_action, options);\n },\n\n /**\n * Use this method to force a api call to get the data.\n *\n * @param options\n * @returns {*}\n */\n reload: function reload(options) {\n this.meta.populated = false;\n return this.retrieve(options);\n },\n\n stringify: function stringify() {\n return JSON.stringify(this, 2);\n },\n\n log: function log() {\n console.log(this.stringify());\n },\n\n serialize: function serialize() {// eslint-disable-line no-empty-function\n\n },\n\n /**\n * Invalidate the current model. Sets the meta.populated to false and sets meta.invalidated to true.\n */\n invalidate: function invalidate() {\n this.meta.populated = false;\n this.meta.invalidated = true;\n this.onInvalidate();\n },\n\n /**\n * Creates a new Class with properties from `child`. Then assigns `this` as parent to the new Class.\n *\n * @param Cls\n * @param child\n * @returns {*}\n */\n child: function child(Cls, _child) {\n\n if (!_child) {\n return;\n }\n\n return Cls.create(_child.id || this.id, { parent: this }).populate(_child);\n },\n\n /**\n *\n * @param Cls\n * @param children\n * @returns {*}\n */\n children: function children(Cls, _children) {\n var self = this;\n\n if (!_children) {\n return _children;\n }\n\n return _util.$util.map(_children, function (child) {\n return self.child(Cls, child);\n });\n }\n});\n\nvar cache = {};\n\n$Model.reopenClass({\n\n instance: function instance(id) {\n\n var modelCache = cache[this.id] = cache[this.id] || {};\n var instance = modelCache[id || 0] || this.create.apply(this, arguments);\n\n return instance;\n },\n\n retrieveInstance: function retrieveInstance() {\n return this.instance.apply(this, arguments).retrieve();\n },\n\n create: function create(id) {\n\n var modelCache = cache[this.id] = cache[this.id] || {};\n var instance = modelCache[id || 0] = new this({ // eslint-disable-line new-cap\n id: id || 0\n });\n\n instance.setProperties.apply(instance, Array.prototype.slice.call(arguments, 1));\n\n return instance;\n },\n\n fetch: function fetch() {\n console.warn('Model.fetch is deprecated, please use Model.instance');\n return this.instance.apply(this, arguments);\n },\n\n clearCache: function clearCache() {\n cache = {};\n },\n\n /**\n * should invalidate all models where the invalidationKey is found truthy\n *\n * invalidationKey: key of type string to look for in a model\n * example: $Model.bulkInvalidate('invalidateOnLogout');\n */\n bulkInvalidate: function bulkInvalidate(invalidationKey) {\n if (!invalidationKey) {\n return;\n }\n _util.$util.forEach(cache, function (modelCache, key) {\n _util.$util.forEach(modelCache, function (modelInstance, instanceId) {\n if (modelInstance[invalidationKey]) {\n modelInstance.invalidate();\n }\n });\n });\n }\n});\n\nangular.value(\"$Model\", $Model);\n_class.$Class;\n\n_util.$util;\n\n_promise.$promise;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/console-browserify/index.js\")))\n\n/***/ }),\n\n/***/ \"../node_modules/squid/dist/core/promise.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.$promise = $promise;\n\nvar _util = __webpack_require__(\"../node_modules/squid/dist/core/util.js\");\n\nvar _error = __webpack_require__(\"../node_modules/squid/dist/core/error.js\");\n\nvar Promise = window.Promise;\n\nfunction $promise(obj) {\n return Promise.resolve(obj);\n}\n\n_util.$util.extend($promise, {\n use: function use(CustomPromise) {\n Promise = CustomPromise;\n if (!window.Promise) {\n window.Promise = CustomPromise;\n }\n },\n resolver: function resolver(method) {\n return new Promise(method);\n },\n resolve: function resolve(value) {\n return Promise.resolve(value);\n },\n reject: function reject(value) {\n return Promise.reject(value);\n },\n\n\n run: function run(method) {\n return Promise.resolve().then(method);\n },\n\n call: function call(method) {\n return Promise.resolve().then(method);\n },\n\n sequential: function sequential(methods) {\n\n var prom = Promise.resolve();\n\n _util.$util.forEach(methods, function (method) {\n prom = prom.then(method);\n });\n\n return prom;\n },\n\n sleep: function sleep(time) {\n return new Promise(function (resolve) {\n setTimeout(resolve, time);\n });\n },\n\n map: function map(items, method) {\n\n var promises = void 0;\n\n if (items instanceof Array) {\n promises = [];\n } else if (items instanceof Object) {\n promises = {};\n } else {\n return Promise.resolve();\n }\n\n return this.all(_util.$util.map(items, function (item, key) {\n\n promises[key] = Promise.resolve(item).then(function (result) {\n return method(result, key, promises);\n });\n\n return promises[key];\n }));\n },\n\n all: function all(items) {\n\n if (items instanceof Array) {\n return Promise.all(items);\n } else if (items instanceof Object) {\n return this.hash(items);\n }\n\n return Promise.resolve([]);\n },\n\n hash: function hash(obj) {\n var results = {};\n\n return Promise.all(_util.$util.map(obj, function (item, key) {\n return Promise.resolve(item).then(function (result) {\n results[key] = result;\n });\n })).then(function () {\n return results;\n });\n },\n\n extend: function extend(obj, hash) {\n return this.hash(hash || {}).then(function (data) {\n _util.$util.extend(obj, data);\n });\n },\n\n attempt: function attempt(attempts, method) {\n\n attempts -= 1;\n\n return Promise.resolve().then(function () {\n return method(attempts);\n })['catch'](function (err) {\n\n if (attempts) {\n return $promise.attempt(attempts, method);\n }\n\n return Promise.reject(err);\n });\n },\n\n debounce: function debounce(method, time) {\n\n var timeout = void 0;\n var resolvers = {};\n\n return function () {\n\n var self = this;\n var args = arguments;\n var key = JSON.stringify(args);\n\n resolvers[key] = resolvers[key] || [];\n\n return new Promise(function (resolve) {\n resolvers[key].push(resolve);\n clearTimeout(timeout);\n\n timeout = setTimeout(function () {\n\n var result = method.apply(self, args);\n\n _util.$util.forEach(resolvers[key], function (resolver) {\n resolver(result);\n });\n\n delete resolvers[key];\n }, time);\n });\n };\n },\n\n every: function every(collection, handler) {\n return this.map(collection, function (item) {\n return handler(item);\n }).then(function (results) {\n return _util.$util.every(results);\n });\n },\n\n providing: function providing(condition, handler) {\n return Promise.resolve(condition).then(function (result) {\n if (result) {\n return handler(result);\n }\n });\n },\n\n until: function until(condition, pollTime, timeout, alwaysResolve) {\n\n return new Promise(function (resolve, reject) {\n if (condition()) {\n return resolve();\n }\n\n var interval = setInterval(function () {\n if (condition()) {\n clearInterval(interval);\n return resolve();\n }\n }, pollTime);\n\n if (timeout) {\n setTimeout(function () {\n clearInterval(interval);\n return alwaysResolve ? resolve() : reject();\n }, timeout);\n }\n });\n },\n\n first: function first(handlers) {\n\n var prom = $promise.resolve();\n var result = void 0;\n\n _util.$util.forEach(handlers, function (handler) {\n prom = prom.then(function () {\n return result || handler();\n }).then(function (handlerResult) {\n result = handlerResult;\n return result;\n });\n });\n\n return prom;\n },\n\n shortCircuit: function shortCircuit() {\n return $promise.reject(new _error.$ShortCircuit());\n }\n});\n\nangular.value(\"$promise\", $promise);\n_util.$util;\n\n_error.$ShortCircuit;\n\n/***/ }),\n\n/***/ \"../node_modules/squid/dist/core/util.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.$unresolved = exports.$util = exports.isUnsafeRedirect = undefined;\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nexports.$getRedirectUrl = $getRedirectUrl;\nexports.$dispatch = $dispatch;\nexports.$experiment = $experiment;\n\nvar _event = __webpack_require__(\"../node_modules/squid/dist/core/event.js\");\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\nvar _config = __webpack_require__(\"../node_modules/squid/dist/core/config.js\");\n\nvar _integration = __webpack_require__(\"../node_modules/squid/dist/core/integration.js\");\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar redirected = false;\nvar paramCache = {};\n\nvar blacklist = ['password', 'pr_password'];\nvar blacklistRegex = new RegExp('(' + blacklist.join('|') + ')=([^&]*)', 'g');\nvar sanitizeUrlForLogging = function sanitizeUrlForLogging(inputUrl) {\n return inputUrl.replace(blacklistRegex, function (match, key, value) {\n return key + '=**';\n });\n};\n\nvar isUnsafeRedirect = exports.isUnsafeRedirect = function isUnsafeRedirect(url) {\n return url.toLowerCase().replace(/\\s/g, '').indexOf('javascript:') !== -1;\n}; // eslint-disable-line no-script-url\n\nvar $util = exports.$util = {\n\n forEach: function forEach(collection, method) {\n if (collection instanceof Array) {\n for (var i = 0; i < collection.length; i++) {\n method(collection[i], i);\n }\n } else if (collection instanceof Object) {\n for (var key in collection) {\n if (collection.hasOwnProperty(key)) {\n method(collection[key], key);\n }\n }\n }\n },\n\n idleTimeout: function idleTimeout(time) {\n setTimeout(function () {\n _logger.$logger.info('page_idle');\n $util.reload();\n }, time);\n },\n\n\n reload: function reload() {\n _logger.$logger.info('reload');\n _event.$event.emit('loading');\n location.reload();\n },\n\n /**\n * replace:\n * Insert URL params provided and reload the window\n * This does not find the param if it already exists in the URL. It will add it again\n * @param params {Object} param - Params to add as URL params\n */\n replace: function replace(params) {\n if (params) {\n // Note: This won't replace the\n var url = $util.buildURL(location.href.split('#')[0], params);\n\n url = '' + url + window.location.hash;\n\n _logger.$logger.info('replace', { url: url });\n _event.$event.emit('loading');\n location.replace(url);\n } else {\n $util.reload();\n }\n },\n\n /**\n * redirect:\n * Redirects user to the given Url with options for different redirect behaviours\n * @param params {String} url - redirect url\n * @param params {Object} options - Optional param can have flags effecting behaviour of redirect\n */\n redirect: function redirect(url, options) {\n\n // optional flag to allow an iframe to Bust out of iframe mode by setting window.top.location = window.location.href\n var frameBust = options && options.frameBust;\n\n // Optional flag for url to not show up in browsing history. Handles back button scenario from CAPE to HERMES\n var replace = options && options.replace;\n\n if (isUnsafeRedirect(url)) {\n // eslint-disable-line\n _logger.$logger.error('unsafe_redirect_url', {\n url: url\n });\n throw new Error('Unsafe redirect url: ' + url);\n }\n\n _logger.$logger.info('redirect', {\n url: sanitizeUrlForLogging(url)\n });\n\n _event.$event.on('$stateChangeStart', function (event) {\n _logger.$logger.info('state_change_after_redirect');\n event.preventDefault();\n });\n\n function redir() {\n\n if (redirected) {\n return;\n }\n\n _logger.$logger.info('redirect', {\n url: sanitizeUrlForLogging(url)\n });\n\n window.onunload = window.onbeforeunload = function () {}; // eslint-disable-line no-empty-function\n\n if (_integration.$integration.getConfig('REDIRECT_TOP') !== false || frameBust) {\n if (replace) {\n window.top.location.replace(url);\n } else {\n window.top.location = url;\n }\n } else if (replace) {\n window.location.replace(url);\n } else {\n window.location = url;\n }\n\n redirected = true;\n }\n\n _event.$event.emit('loading');\n\n _logger.$logger.flush().then(redir);\n setTimeout(redir, 500);\n\n _logger.$logger.done();\n },\n\n cookiesEnabled: function cookiesEnabled() {\n var cookiesEnabled = void 0;\n\n document.cookie = '_cookiecheck=1';\n cookiesEnabled = Boolean(document.cookie.indexOf('_cookiecheck') > -1);\n document.cookie = '_cookiecheck=; expires=Thu, 01 Jan 1970 00:00:01 GMT;';\n document.cookie = '_cookiecheck; expires=Thu, 01 Jan 1970 00:00:01 GMT;';\n\n return cookiesEnabled;\n },\n\n storageEnabled: function storageEnabled(api) {\n try {\n window[api].setItem('__feature_test__', '0');\n window[api].removeItem('__feature_test__');\n return true;\n } catch (e) {\n return false;\n }\n },\n\n sessionStorageEnabled: function sessionStorageEnabled() {\n return this.storageEnabled('sessionStorage');\n },\n\n localStorageEnabled: function localStorageEnabled() {\n return this.storageEnabled('localStorage');\n },\n\n params: function params(string) {\n\n if (typeof string !== 'string') {\n string = this.queryString().slice(1);\n }\n\n var params = {};\n\n if (!string) {\n return params;\n }\n\n if (paramCache[string]) {\n return $util.extend({}, paramCache[string]);\n }\n\n $util.forEach(string.split('&'), function (pair) {\n pair = pair.split('=');\n\n if (pair[0]) {\n params[decodeURIComponent(pair[0])] = pair[1] && decodeURIComponent(pair[1]);\n }\n });\n\n paramCache[string] = params;\n\n return params;\n },\n\n queryString: function queryString() {\n if (window.location.search) {\n return window.location.search;\n } else {\n var string = window.location.href;\n var idx = string.indexOf('&');\n var rIdx = string.lastIndexOf('#');\n\n if (idx) {\n return '?' + string.substring(idx, rIdx >= 0 ? rIdx : string.length);\n }\n }\n return '';\n },\n\n queryStringSplice: function queryStringSplice(qs, insert, remove) {\n if (qs.indexOf('?') === 0) {\n qs = qs.slice(1);\n }\n\n var params = $util.extend(this.params(qs), insert);\n\n $util.forEach(remove, function (key) {\n delete params[key];\n });\n\n return '?' + this.paramToQueryString(params);\n },\n\n extend: function extend(obj, source) {\n\n if (!source) {\n return obj;\n }\n\n for (var key in source) {\n if (source.hasOwnProperty(key)) {\n obj[key] = source[key];\n }\n }\n\n return obj;\n },\n\n\n paramToQueryString: function paramToQueryString(params) {\n return this.filter(this.map(Object.keys(params).sort(), function (key) {\n if (!params[key]) {\n return;\n }\n\n return encodeURIComponent(key) + '=' + encodeURIComponent(params[key]);\n })).join('&');\n },\n\n param: function $param(name) {\n return this.params()[name];\n },\n\n hashParam: function hashParam(name) {\n return this.params(window.location.hash.slice(1))[name];\n },\n\n base64Decode: function base64Decode(encodedString) {\n return encodedString && window.atob(encodedString); // eslint-disable-line block-scoped-var,no-undef\n },\n\n base64Encode: function base64Encode(decodedString) {\n return decodedString && window.btoa(decodedString); // eslint-disable-line block-scoped-var,no-undef\n },\n\n /*\n * decodeAndParse :\n * 1 - Base64Decode\n * 2 - URI Decode\n * 3 - Split string into a nvp object\n * return obj\n */\n decodeAndParse: function decodeAndParse(encodedString) {\n if (encodedString) {\n return this.params(decodeURIComponent(this.base64Decode(encodedString)));\n }\n },\n\n assert: function $assert(value, message, payload) {\n if (!value) {\n throw new Error(message, payload || {});\n }\n },\n\n map: function $map(array, method) {\n\n array = array || [];\n\n var results = void 0;\n\n if (array instanceof Array) {\n results = [];\n\n $util.forEach(array, function () {\n results.push(method.apply(this, arguments));\n });\n\n return results;\n } else if (array instanceof Object) {\n\n results = {};\n\n $util.forEach(array, function (val, key) {\n results[key] = method.apply(this, arguments);\n });\n\n return results;\n } else {\n throw new Error('$util.map expects array or object');\n }\n },\n\n filter: function $filter(array, method) {\n method = method || Boolean;\n var results = [];\n\n $util.forEach(array, function (item) {\n if (method.apply(this, arguments)) {\n results.push(item);\n }\n });\n\n return results;\n },\n\n /**\n * Deprecated.\n *\n * If you have an array, use Array#find()\n * If you have an object, use the lodash or underscore .find() method\n *\n * @deprecated\n */\n find: function $find(array, method) {\n if (_config.$config.deploy.isLocal() || _config.$config.deploy.isStage()) {\n _angular.$log.warn('deprecated_method: squid.$util.find() is deprecated, use Array#find, which we have polyfilled, or _.find() for Objects instead.');\n }\n\n if (!array) {\n return;\n }\n\n for (var i = 0; i < array.length; i++) {\n if (method(array[i])) {\n return array[i];\n }\n }\n },\n\n findIndex: function $find(array, method) {\n\n if (!array) {\n return;\n }\n\n for (var i = 0; i < array.length; i++) {\n if (method(array[i])) {\n return i;\n }\n }\n },\n\n range: function range(start, end) {\n if (!end) {\n end = start;\n start = 0;\n }\n\n var result = [];\n\n for (var i = start; i < end; i++) {\n result.push(i);\n }\n\n return result;\n },\n\n pad: function $pad(string, n, char) {\n\n n = n || 0;\n char = char || '0';\n\n var padding = Array(n + 1).join(char.toString());\n\n return (padding + string).slice(-n);\n },\n\n /**\n * Deprecated.\n *\n * If you have an array, use Array#some() -- NOTE: Unlike Array#some(),\n * the return value of $util.some() isn't always a Boolean. It's return value\n * is whatever the passed callback returns. If you are using $util.some to\n * find an object in an array then you need to use $util.find instead of Array#some().\n * Ex:\n * 1. const preferredCard = $util.some(cardsArray, cards => card.isPreferred && card);\n * preferredCard will be the preferred card object or undefined if there isn't a\n * preferred card.\n * 2. const hasPreferred = cardsArray.some(cards => card.isPreferred && card);\n * Taking the code from #1 and simply swapping out $util.some for Array#some()\n * will result in a different return value, in this case the Boolean true if\n * there is a preferred card, otherwise false. In this case, instead of using\n * Array#some() you should use $util.find() (Array#find() isn't supported in IE9)\n * as seen below:\n * const preferredCard = $util.find(cardsArray, card => card.isPreferred);\n *\n * If you have an object, use the lodash or underscore .some() method\n *\n * @deprecated\n */\n some: function $some(array, method) {\n if (_config.$config.deploy.isLocal() || _config.$config.deploy.isStage()) {\n _angular.$log.warn('deprecated_method: squid.$util.some() is deprecated, use Array#some (use $util.find() if you are using\\n $util.some() to return someting other than a boolean) or lodash/underscore.some() instead.');\n }\n\n var result = void 0;\n\n $util.forEach(array, function (item, key) {\n if (!result) {\n result = method(item, key);\n }\n });\n\n return result;\n },\n\n /**\n * Deprecated.\n *\n * If you have an array, use Array#every()\n * If you have an object, use the lodash or underscore .every() method\n *\n * @deprecated\n */\n every: function $every(array, method) {\n if (_config.$config.deploy.isLocal() || _config.$config.deploy.isStage()) {\n _angular.$log.warn('deprecated_method: squid.$util.every() is deprecated, use Array#every, which we have polyfilled, or _.every() for Objects instead.');\n }\n\n method = method || Boolean;\n\n var result = true;\n\n $util.forEach(array, function (item) {\n if (!method(item)) {\n result = false;\n }\n });\n\n return result;\n },\n\n reduce: function $reduce(array, method, intial) {\n $util.forEach(array, function () {\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n intial = method.apply(undefined, [intial].concat(args));\n });\n\n return intial;\n },\n\n isPopup: function isPopup() {\n return _integration.$integration.isPopup();\n },\n\n isIFrame: function isIFrame() {\n return _integration.$integration.isIFrame();\n },\n\n buildURL: function buildURL(url, params) {\n /*\n * Do NOT add a check for anchor cause this function is also used for building XO success / cancel urls.\n * These urls are defined by the merchants and can also contain urls like \"abc.com#merchantanchor\" and merchants\n * expect (!) the following outcome: abc.com#merchantanchor?paypalparam=2\n */\n this.assert(url, 'buildURL :: expected url');\n\n var paramKeys = Object.keys(params || {});\n\n if (JSON.stringify(params) === '{}') {\n return url;\n }\n\n if (!paramKeys.length) {\n return url;\n }\n\n if (url.indexOf('?') === -1) {\n url += '?';\n } else {\n url += '&';\n }\n\n url += this.paramToQueryString(params);\n\n return url;\n },\n\n paypalURL: function paypalURL(url, params) {\n url = 'https://' + (_config.$meta.stage ? _config.$meta.stage : window.location.host) + url;\n\n return this.buildURL(url, params);\n },\n\n override: function override(obj, methodName, handler) {\n var existing = obj[methodName];\n\n obj[methodName] = function () {\n if (existing) {\n try {\n existing.apply(obj, arguments);\n } catch (err) {\n _logger.$logger.error(methodName + 'event_error', {\n error: err.toString\n });\n }\n }\n\n return handler.apply(obj, arguments);\n };\n },\n\n result: function result(method) {\n return method();\n },\n\n memoize: function memoize(method) {\n\n function memoized() {\n var key = JSON.stringify(arguments, function (_, value) {\n switch (typeof value === 'undefined' ? 'undefined' : _typeof(value)) {\n case 'function':\n throw new Error('Cannot memoize functional arguments');\n case 'undefined':\n return 'undefined';\n default:\n return value;\n }\n });\n\n if (!memoized.cache.hasOwnProperty(key)) {\n memoized.cache[key] = method.apply(this, arguments);\n }\n\n return memoized.cache[key];\n }\n\n memoized.cache = {};\n\n memoized.flush = function () {\n memoized.cache = {};\n };\n\n return memoized;\n },\n\n now: function now() {\n return window.enablePerformance ? parseInt(window.performance.now(), 10) : Date.now();\n },\n\n bindObject: function bindObject(obj, self) {\n return $util.map(obj, function (method) {\n return method.bind(self);\n });\n },\n\n hashStr: function hashStr(str) {\n var hash = 0;\n var i = void 0;\n var chr = void 0;\n var len = void 0;\n\n if (str.length === 0) {\n return hash;\n }\n for (i = 0, len = str.length; i < len; i++) {\n chr = str.charCodeAt(i);\n hash = (hash << 5) - hash + chr; // eslint-disable-line no-bitwise, no-extra-parens\n // Convert to 32bit integer\n hash |= 0; // eslint-disable-line no-bitwise\n }\n return Math.abs(hash);\n },\n\n hash: function hash() {\n return this.hashStr(Math.random());\n },\n\n popup: function popup(name, url, options, callback) {\n\n callback = $util.once(callback);\n\n var win = window.open(url, name, $util.map(Object.keys(options), function (key) {\n return key + '=' + options[key];\n }).join(', '));\n\n var interval = void 0;\n\n function checkWindowClosed() {\n if (win.closed) {\n clearInterval(interval);\n callback();\n }\n }\n\n interval = setInterval(checkWindowClosed, 50);\n setTimeout(checkWindowClosed);\n\n try {\n var close = win.close;\n\n win.close = function () {\n close.apply(this, arguments);\n checkWindowClosed();\n };\n } catch (err) {\n // pass\n }\n\n return win;\n },\n\n unique: function unique(collection) {\n return collection.filter(function (value, index, self) {\n return self.indexOf(value) === index;\n });\n },\n\n monkeyPatch: function monkeyPatch(mod, prop, method) {\n var original = mod[prop];\n\n mod[prop] = function () {\n var _this = this,\n _arguments = arguments;\n\n return method.call(this, arguments, function (self, args) {\n if (original) {\n return original.apply(self || _this, args || _arguments);\n }\n });\n };\n },\n once: function once(method) {\n var called = false;\n\n return function () {\n if (!called) {\n called = true;\n return method.apply(this, arguments);\n }\n };\n },\n camelToDasherize: function camelToDasherize(string) {\n return string.replace(/([A-Z])/g, function (g) {\n return '-' + g.toLowerCase();\n });\n },\n camelToCapsUnderscore: function camelToCapsUnderscore(string) {\n return string.replace(/([a-z][A-Z])/g, function (g) {\n return g[0] + '_' + g[1];\n }).toUpperCase();\n },\n dasherizeToCamel: function dasherizeToCamel(string) {\n return string.replace(/-([a-z])/g, function (g) {\n return g[1].toUpperCase();\n });\n },\n\n\n parentWindow: function parentWindow() {\n if (window.opener) {\n return window.opener;\n } else if (window.parent !== window) {\n return window.parent;\n }\n },\n\n hasRTL: function hasRTL(str) {\n return new RegExp('[\\u0590-\\u07BF]').test(str);\n },\n noop: function noop() {// eslint-disable-line no-empty-function\n\n },\n\n\n /**\n * @function isObject - tests to see if a passed argument is an Object. Returns `false`\n * for anything that is 'object-like' but not an actual Object (Array, Set, Map, ect)\n * as well as for `null` and `Object.create(null)`\n * @param {*} o\n * @returns {boolean}\n */\n isObject: function isObject(o) {\n var oAsString = Object.prototype.toString.call(o);\n\n return o instanceof Object && oAsString === '[object Object]';\n },\n\n\n /**\n * @function debounce\n * @param {function} callback\n * @param {number} time\n * @returns {function}\n */\n debounce: function debounce(callback, time) {\n var timeout = void 0;\n\n return function () {\n var _this2 = this;\n\n for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n var functionCall = function functionCall() {\n return callback.apply(_this2, args);\n };\n\n clearTimeout(timeout);\n timeout = setTimeout(functionCall, time);\n };\n },\n\n\n /**\n * @function getProperty\n * @param {object} obj\n * @param {string} propString\n * @param {string} splitOn\n * @returns {*}\n *\n * Ex:\n * const obj = {\n * a: {\n * b: {\n * c: 'property c'\n * },\n * 'key.with.periods': 10\n * }\n * };\n * const c = $util.getProperty(obj, 'a.b.c'); // c === 'property c'\n * const f = $util.getProperty(obj, 'a.b.c.d.e.f'); // f === undefined\n * const fDefault = $util.getProperty(\n * obj,\n * 'a.b.c.d.e.f',\n * { default: 'default value for f' }\n * ); // f === 'default value for f'\n * const n = $util.getProperty(obj, 'a,b,key.with.periods', { splitOn: ',' }); // n === 10\n */\n getProperty: function getProperty(obj) {\n var path = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n var _options$splitOn = options.splitOn,\n splitOn = _options$splitOn === undefined ? '.' : _options$splitOn,\n defaultValue = options['default'];\n\n\n if (!this.isObject(obj) || typeof path !== 'string' || typeof splitOn !== 'string') {\n return;\n }\n\n var pathArray = path.split(splitOn);\n var prop = obj[pathArray.shift()];\n\n while (prop && pathArray.length && this.isObject(prop)) {\n prop = prop[pathArray.shift()];\n }\n\n return pathArray.length || prop === undefined ? defaultValue : prop;\n }\n};\n\nvar $unresolved = exports.$unresolved = { then: $util.noop, 'catch': $util.noop };\n\nfunction $getRedirectUrl(product, params) {\n var url = '';\n var urlParams = $util.params();\n\n if (_config.$config.deploy.isLocal() || _config.$config.deploy.isStage()) {\n url = _config.$config.urls.dispatch && _config.$config.urls.dispatch[product] || '';\n }\n\n url += _config.$config.urls.fallbackUrl[product];\n\n $util.extend(urlParams, params || {});\n\n // cmd is a reserved slingshot param\n if (urlParams.cmd) {\n delete urlParams.cmd;\n }\n\n return $util.buildURL(url, urlParams);\n}\n\nfunction $dispatch(product, params, stateChange) {\n $util.assert(product, 'expected product');\n\n _logger.$logger.log('info', 'dispatch', {\n product: product\n });\n\n _event.$event.emit('loading');\n\n var url = '';\n\n url = $getRedirectUrl(product, params);\n\n // fire an event for xo-tracking to listen to and do fpti logging\n if (stateChange) {\n _event.$event.emit('page_loaded', stateChange.fromState, stateChange.toState);\n }\n\n return $util.redirect(url);\n}\n\nfunction $experiment(name, sample, id, loggerPayload) {\n\n var throttle = $util.hashStr(name + '_' + id) % 100;\n\n var group = void 0;\n\n if ($util.param(name) === 'true') {\n group = 'test_forced';\n } else if ($util.param(name) === 'false') {\n group = 'control_forced';\n } else if (throttle < sample) {\n group = 'test';\n } else if (sample >= 50 || sample <= throttle && throttle < sample * 2) {\n // eslint-disable-line no-extra-parens\n group = 'control';\n } else {\n group = 'throttle';\n }\n\n _logger.$logger.info('fpti_pxp_check', {\n from: 'PXP_CHECK',\n to: 'process_pxp_check',\n pxp_exp_id: name,\n pxp_trtmnt_id: group\n });\n\n _logger.$logger.info(name + '_' + group, loggerPayload || {});\n\n if (group === 'test' || group === 'test_forced') {\n return true;\n } else if (group === 'control') {\n return false;\n }\n}\n\nangular.value(\"isUnsafeRedirect\", isUnsafeRedirect);\nangular.value(\"$util\", $util);\nangular.value(\"$unresolved\", $unresolved);\nangular.value(\"$getRedirectUrl\", $getRedirectUrl);\nangular.value(\"$dispatch\", $dispatch);\nangular.value(\"$experiment\", $experiment);\n_event.$event;\n\n_logger.$logger;\n\n_config.$config;\n\n_config.$meta;\n\n_integration.$integration;\n\n_angular.$log;\n\n/***/ }),\n\n/***/ \"../node_modules/squid/dist/index.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _ng = __webpack_require__(\"../node_modules/squid/dist/ng/index.js\");\n\nObject.keys(_ng).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _ng[key];\n }\n });\n});\n\nvar _core = __webpack_require__(\"../node_modules/squid/dist/core/index.js\");\n\nObject.keys(_core).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _core[key];\n }\n });\n});\n\nvar _locale = __webpack_require__(\"../node_modules/squid/dist/locale/index.js\");\n\nObject.keys(_locale).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _locale[key];\n }\n });\n});\n\nvar _paypal = __webpack_require__(\"../node_modules/squid/dist/paypal/index.js\");\n\nObject.keys(_paypal).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _paypal[key];\n }\n });\n});\n\n/***/ }),\n\n/***/ \"../node_modules/squid/dist/locale/currency.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.getCurrencySymbol = exports.truncateCurrencyConversionString = undefined;\nexports.roundingAndSeparators = roundingAndSeparators;\nexports.formatCurrency = formatCurrency;\n\nvar _locale = __webpack_require__(\"../node_modules/squid/dist/locale/locale.js\");\n\nvar ALL_NON_BREAKING_SPACE = new RegExp('\\xa0+', 'g'); // everything to do with currency formatting\n\n// quick Griffin reference on currency format:\n// ¤ : Currency Symbol = $\n// # : Amount = 186432.431\n// C : Currency Code = USD\n\nvar CODE_IN_FRONT = new RegExp('^([^¤#]*)(C[\\\\s]*)(.*)$'); // matching groups: (any negative symbol)(code)(the rest)\nvar ENDS_IN_WHITESPACE = new RegExp('\\s$');\nvar THOUSANDS_SPLITTER = /\\B(?=(\\d{3})+(?!\\d))/g; // eslint-disable-line fasec/no-unsafe-regex\nvar HUNDREDS_SPLITTER = /(\\d)(?=(\\d\\d)+\\d$)/g; // eslint-disable-line fasec/no-unsafe-regex\n\n// This seems to be the only currency / locale specific exception in Griffin\nvar STYLE_EXCEPTION = {\n 'tr TR TRY': '# ¤;-# ¤'\n};\n\nvar AmountOnlyStyle = '#;-#'; // A currency style for number only. $9USD -> 9.00\n\n// Griffin exceptions for separators at hundreds- xx,xx,xxx format\nvar HUNDREDS_SEPARATOR_EXCEPTION = ['IN', 'BT', 'MV', 'NP'];\n\nvar isObject = function isObject(param) {\n return Object.prototype.toString.call(param) === '[object Object]';\n};\n\n// Griffin \"fuzzy logic\"\n// apparently if the symbol is at least \"66% similar\" to the code, ignore it\nfunction maybeIgnoreSymbol(style, symbol, code) {\n\n // THIS IS NOT COMMUTATIVE\n function fuzzyMatch(code, symbol) {\n // eslint-disable-line no-shadow\n if (code === symbol) {\n return 100;\n } else {\n var codeParts = code.split('');\n var symbolParts = symbol.split('');\n var equivalency = codeParts.reduce(function (equiv, codePart) {\n var symbolPos = symbolParts.indexOf(codePart);\n\n if (symbolPos !== -1) {\n symbolParts.splice(symbolPos, 1);\n return equiv + 1;\n }\n return equiv;\n }, 0);\n var weight = equivalency / codeParts.length;\n\n return weight * 100;\n }\n }\n\n var ignoreSymbol = symbol.length > 1 && fuzzyMatch(code, symbol) >= 66;\n\n return ignoreSymbol ? style.replace(/¤\\s*/g, '') : style;\n}\n\n// deal with rounding due to truncation (Griffin rounds up) as well as dot/comma symbols\n// and thousand separators\nfunction roundingAndSeparators(amountString, _ref, _ref2) {\n var lang = _ref.lang,\n country = _ref.country;\n var decimalPlaces = _ref2.decimalPlaces,\n dot = _ref2.dot,\n comma = _ref2.comma;\n\n var value = parseFloat(amountString);\n var truncate = decimalPlaces === 0;\n var amountParts = truncate && !isNaN(value) ? Math.round(value).toString().split('.') : amountString.split('.');\n var exception = HUNDREDS_SEPARATOR_EXCEPTION.indexOf(country) > -1; // special exceptions\n var wholeString = exception ? amountParts[0].replace(HUNDREDS_SPLITTER, '$1,') : amountParts[0].replace(THOUSANDS_SPLITTER, comma);\n var decimalString = amountParts[1] || '00';\n\n return truncate ? wholeString : '' + wholeString + dot + decimalString;\n}\n\n// this is an agreement with UED for visual consistency - the currency code, if displayed, is always on the right\nfunction forceCodeToRight(style) {\n var parts = CODE_IN_FRONT.exec(style) || [];\n var endsWithWhitespace = ENDS_IN_WHITESPACE.test(style);\n var newStyle = style;\n\n // if CODE_IN_FRONT regex matches, array indexes -\n // [1] negative symbol plus whitespace, if any,\n // [2] the \"C\" plus any whitespace,\n // [3] whatever is after \"C\"\n if (parts.length === 4) {\n newStyle = parts[1] + parts[3] + (endsWithWhitespace ? 'C' : ' C');\n }\n\n return newStyle;\n}\n\n// deal with\n// 1. exceptions for specific locales\n// 2. positive and negative styles\n// 3. griffin fuzzy logic\n// 4. UED consistency logic\nfunction getFinalStyle() {\n var styleString = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ';';\n var _ref3 = arguments[1];\n var lang = _ref3.lang,\n country = _ref3.country;\n var _ref4 = arguments[2];\n var value = _ref4.value,\n _ref4$symbol = _ref4.symbol,\n symbol = _ref4$symbol === undefined ? '' : _ref4$symbol,\n code = _ref4.code;\n\n var exception = STYLE_EXCEPTION[[lang, country, code].join(' ')]; // special exceptions\n var currencyStyle = exception || styleString;\n\n var _currencyStyle$split = currencyStyle.split(';'),\n positiveStyle = _currencyStyle$split[0],\n negativeStyle = _currencyStyle$split[1]; // the style is separated by postive and negative notation via a ;\n\n\n var baseStyle = value < 0 ? negativeStyle || '-¤# C' : positiveStyle || '¤# C';\n var griffinStyle = exception ? baseStyle : maybeIgnoreSymbol(baseStyle, symbol, code); // don't apply fuzzy logic on exceptions\n\n return forceCodeToRight(griffinStyle);\n}\n\n// take the style and the formatted amount (rounded / truncated / thousands separator / decimal separator)\n// and produce the final result.\n//\n// wrapCodeInSpan - wraps the currency code in a span.currencyCode for styling purposes\nfunction applyCurrencyStyle(finalStyle, amountFormatted, _ref5) {\n var symbol = _ref5.symbol,\n code = _ref5.code,\n _ref5$wrapCodeInSpan = _ref5.wrapCodeInSpan,\n wrapCodeInSpan = _ref5$wrapCodeInSpan === undefined ? false : _ref5$wrapCodeInSpan;\n\n // the style will take care of negative symbol (see getFinalStyle function above)\n var absoluteAmountFormatted = amountFormatted.replace('-', '');\n\n // parallel operation is safer than serial replace\n return finalStyle.split('').map(function (char) {\n switch (char) {\n case 'C':\n return wrapCodeInSpan ? '' + code + '' : code;\n case '¤':\n return symbol;\n case '#':\n return absoluteAmountFormatted;\n default:\n return char;\n }\n }).join('').replace(ALL_NON_BREAKING_SPACE, ' ');\n}\n\n/**\n * @function formatCurrency\n * @param {string|number} amount Amount can be a string or a number\n * @param {string} code\n * @param {boolean} wrapCodeInSpan\n * @param {string} [style=SymbolISOCurrency]\n * @returns {string} formatted currency string\n */\nfunction formatCurrency(amount, code, wrapCodeInSpan) {\n var style = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'SymbolISOCurrency';\n\n if (isObject(amount) || typeof amount === 'undefined' || amount === null) {\n return;\n }\n\n var _ref6 = _locale.$locale.metadata || {},\n _ref6$number = _ref6.number,\n numberConfig = _ref6$number === undefined ? {} : _ref6$number,\n _ref6$currency = _ref6.currency,\n currencyConfig = _ref6$currency === undefined ? {} : _ref6$currency;\n\n var _currencyConfig$digit = currencyConfig.digits,\n digits = _currencyConfig$digit === undefined ? {} : _currencyConfig$digit,\n _currencyConfig$style = currencyConfig.styles,\n styles = _currencyConfig$style === undefined ? {} : _currencyConfig$style,\n _currencyConfig$suppo = currencyConfig.supportedSymbols,\n currencySymbols = _currencyConfig$suppo === undefined ? {} : _currencyConfig$suppo;\n\n var value = parseFloat(amount);\n\n styles.AmountOnlyStyle = AmountOnlyStyle;\n var dot = numberConfig.DECIMAL_SEP === undefined ? '.' : numberConfig.DECIMAL_SEP;\n var comma = numberConfig.GROUP_SEP === undefined ? ',' : numberConfig.GROUP_SEP;\n\n var amountFormatted = roundingAndSeparators(amount.toString(), _locale.$locale, { decimalPlaces: digits[code], dot: dot, comma: comma });\n\n if (code) {\n var symbol = currencySymbols[code];\n var finalStyle = getFinalStyle(styles[style], _locale.$locale, { value: value, symbol: symbol, code: code });\n\n return applyCurrencyStyle(finalStyle, amountFormatted, { symbol: symbol, code: code, wrapCodeInSpan: wrapCodeInSpan });\n }\n\n return amountFormatted; // HTML?\n}\n\n/**\n * @function truncateCurrencyConversionString\n * @description Takes a fullString, amount, and amountForex and truncates\n * the number in the full string to number of digits in amountForex.\n * This function is used to format the PayPal currency conversion\n * rate that is displayed to the user (e.g. '1 CAD = $0.7459 USD')\n * e.g. inputs of:\n * fullString = '$0.745994235 USD'\n * amount = '0.745994235'\n * amountForex = '0.7459'\n * results in an output of '$0.7459 USD'\n * @param {object} Contains keys 'fullString', 'amount', and 'amountForex'\n * @returns {string}\n */\nvar truncateCurrencyConversionString = exports.truncateCurrencyConversionString = function truncateCurrencyConversionString() {\n var _ref7 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n fullString = _ref7.fullString,\n amount = _ref7.amount,\n amountForex = _ref7.amountForex;\n\n var allArgsAreStrings = [fullString, amount, amountForex].every(function (s) {\n return typeof s === 'string';\n });\n\n if (!allArgsAreStrings) {\n return fullString || '';\n }\n\n // Some countries, e.g. France, use commas instead of decimals\n var target = amountForex.includes(',') ? amount.replace('.', ',') : amount;\n\n return fullString.replace(target, amountForex);\n};\n\n/**\n * @description takes a currency code and\n * returns either a code or a symbol based\n * on our currency mapping.\n * eg: USD -> $ , RUB -> RUB\n *\n * @param {*} code\n * @returns {string}\n */\nvar getCurrencySymbol = exports.getCurrencySymbol = function getCurrencySymbol(code) {\n var _ref8 = _locale.$locale.metadata || {},\n _ref8$currency = _ref8.currency,\n currency = _ref8$currency === undefined ? {\n supportedSymbols: {}\n } : _ref8$currency;\n\n return currency.supportedSymbols[code];\n};\n\n_locale.$locale;\n\n/***/ }),\n\n/***/ \"../node_modules/squid/dist/locale/feature.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.$feature = $feature;\nexports.$featureCountries = $featureCountries;\n\nvar _core = __webpack_require__(\"../node_modules/squid/dist/core/index.js\");\n\nvar _locale = __webpack_require__(\"../node_modules/squid/dist/locale/locale.js\");\n\nfunction $feature(prop, def, country) {\n\n var features = _core.$config.features || {};\n\n country = country || _locale.$locale.country;\n // 1. Check the feature is present in country\n var result = _core.$Class.get(features[country], prop);\n\n if (result !== undefined) {\n return result;\n }\n // 2. Check the feature is present in feature group\n\n Object.keys(_core.$config.regions).some(function (region) {\n if (_core.$config.regions[region].indexOf(country) !== -1) {\n result = _core.$Class.get(features[region], prop);\n return result !== undefined;\n }\n\n return false;\n });\n\n if (result !== undefined) {\n return result;\n }\n // 3. Check the feature is present in default group\n result = _core.$Class.get(features.DEFAULT, prop);\n\n if (result !== undefined) {\n return result;\n }\n return def;\n}\n\n// Build a list of all countries in our feature list and regions\n// populate countries with out REGION names in the list\nvar allCountries = _core.$Class.keys(_core.$config.features || {}).filter(function (country) {\n return country !== 'DEFAULT' && !(_core.$config.regions && _core.$config.regions.hasOwnProperty(country));\n});\n\n// populate all the region countries in to allcountries\n_core.$util.forEach(_core.$config.regions, function (countries, region) {\n _core.$util.forEach(countries, function (country) {\n if (allCountries.indexOf(country) === -1) {\n allCountries.push(country);\n }\n });\n});\n\nfunction $featureCountries(prop) {\n // Find the countries with a certain feature enabled\n return allCountries.filter(function (country) {\n return $feature(prop, false, country);\n });\n}\n\nangular.value(\"$feature\", $feature);\nangular.value(\"$featureCountries\", $featureCountries);\n_core.$config;\n\n_core.$Class;\n\n_core.$util;\n\n_locale.$locale;\n\n/***/ }),\n\n/***/ \"../node_modules/squid/dist/locale/index.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _locale = __webpack_require__(\"../node_modules/squid/dist/locale/locale.js\");\n\nObject.keys(_locale).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _locale[key];\n }\n });\n});\n\nvar _currency = __webpack_require__(\"../node_modules/squid/dist/locale/currency.js\");\n\nObject.keys(_currency).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _currency[key];\n }\n });\n});\n\nvar _feature = __webpack_require__(\"../node_modules/squid/dist/locale/feature.js\");\n\nObject.keys(_feature).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _feature[key];\n }\n });\n});\n\nvar _name = __webpack_require__(\"../node_modules/squid/dist/locale/name.js\");\n\nObject.keys(_name).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _name[key];\n }\n });\n});\n\nvar _quantity = __webpack_require__(\"../node_modules/squid/dist/locale/quantity.js\");\n\nObject.keys(_quantity).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _quantity[key];\n }\n });\n});\n\n/***/ }),\n\n/***/ \"../node_modules/squid/dist/locale/locale.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.$localeHelper = exports.$locale = exports.$LocaleModel = exports.$MetadataModel = exports.$ContentModel = undefined;\nexports.sanitize = sanitize;\nexports.Content = Content;\nexports.$contentVersion = $contentVersion;\nexports.$renderContent = $renderContent;\nexports.$flushContent = $flushContent;\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\nvar _core = __webpack_require__(\"../node_modules/squid/dist/core/index.js\");\n\nvar _paypal = __webpack_require__(\"../node_modules/squid/dist/paypal/index.js\");\n\nfunction sanitize(html) {\n return html && html.toString().replace(/&/g, '&').replace(//g, '>').replace(/\"/g, '"').replace(/'/g, ''').replace(/\\//g, '/');\n} /* eslint-disable no-use-before-define */\n\n\nvar JSONStringify = JSON.stringify;\n\nJSON.stringify = function (item) {\n if (item instanceof Content) {\n return item.toString();\n }\n return JSONStringify.apply(this, arguments);\n};\n\nfunction Content(key, props) {\n this.key = key;\n this.props = props;\n}\n\nContent.cache = {};\n\nContent.get = function (key, props) {\n\n if (!key) {\n return '';\n }\n\n props = props || {};\n\n var cacheKey = $locale.country + '_' + $locale.lang + '_' + key + '_' + JSONStringify.call(JSON, props);\n var cacheVal = Content.cache[cacheKey];\n\n if (cacheVal !== undefined) {\n return cacheVal;\n }\n\n cacheVal = Content.cache[cacheKey] = new Content(key, props);\n\n return cacheVal;\n};\n\nContent.prototype.toString = Content.prototype.valueOf = function () {\n if (this.string) {\n return this.string;\n }\n\n this.string = this.render(false);\n\n return this.string;\n};\n\nContent.prototype.toSafeString = function () {\n if (this.safeString) {\n return this.safeString;\n }\n\n this.safeString = this.render(true);\n\n return this.safeString;\n};\n\nContent.prototype.render = function (safe) {\n var _this = this;\n\n if (!this.key) {\n return '';\n }\n\n var value = contentCache[$locale.country] && contentCache[$locale.country][$locale.lang];\n var keys = this.key.split('.');\n\n for (var i = 0; i < keys.length; i++) {\n if (value) {\n value = value[keys[i]];\n } else {\n break;\n }\n }\n\n if (!value) {\n return '';\n }\n\n return value.replace(/\\{\\w+\\}/g, function (prop) {\n prop = prop.slice(1, prop.length - 1);\n\n if (prop === 'country') {\n return $locale.country;\n }\n\n if (prop === 'lang') {\n return $locale.lang;\n }\n\n if (!_this.props[prop]) {\n if (!_core.$loader.isLoading()) {\n _logger.$logger.warn('missing_content_prop', {\n key: _this.key,\n prop: prop\n }, { unique: true });\n }\n\n return '';\n }\n\n var propStr = _this.props[prop].toString();\n\n if (safe) {\n return sanitize(propStr);\n }\n\n return propStr;\n });\n};\n\nvar contentCache = {};\nvar currentVersion = void 0;\n\nwindow.addContent = function (country, lang, content, version) {\n var countryCache = contentCache[country] = contentCache[country] || {};\n\n countryCache[lang] = content;\n currentVersion = version;\n};\n\nvar metadataCache = {};\n\nwindow.addMetadata = function (country, lang, metadata) {\n var metadataVersion = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'default';\n\n var countryCache = metadataCache[country] = metadataCache[country] || {};\n\n countryCache[lang] = countryCache[lang] || {};\n countryCache[lang][metadataVersion] = metadata;\n};\n\nfunction $contentVersion() {\n return currentVersion || '';\n}\n\nvar PP_SPECIAL_COUNTRIES_ISO_CODES = {\n C2: 'CN'\n};\n\nvar $ContentModel = exports.$ContentModel = _core.$Model.extend('$ContentModel', {\n api: new _core.$Api({\n\n baseURI: _core.$meta.staticUrl,\n uri: '/locales/:countryCode/:lang',\n ext: 'js',\n\n retrieve: function retrieve(options) {\n var self = this;\n var model = options.model;\n\n var uri = self.getURI(model);\n\n return _core.$promise.resolve().then(function () {\n\n if (contentCache[model.countryCode] && contentCache[model.countryCode][model.lang]) {\n _logger.$logger.info('cached_content');\n return contentCache[model.countryCode][model.lang];\n }\n\n _logger.$logger.info('retrieve_content', {\n uri: uri\n });\n\n _core.$event.emit('loading');\n\n return _core.$promise.attempt(3, function () {\n return _core.$dom.loadScript('content', uri, 10000).then(function () {\n if (contentCache[model.countryCode] && contentCache[model.countryCode][model.lang]) {\n _logger.$logger.info('content_retrieved');\n return contentCache[model.countryCode][model.lang];\n }\n\n throw new Error('content_not_available');\n });\n })['catch'](function (err) {\n throw err;\n })['finally'](function () {\n _core.$event.emit('loaded');\n });\n }).then(function (content) {\n model.setProperties(content);\n return content;\n });\n }\n }),\n\n change: function change(country, lang) {\n\n if (country === this.countryCode && lang === this.lang) {\n return _core.$promise.resolve(this);\n }\n\n this.countryCode = country;\n this.lang = lang;\n\n return this.reload().then(function () {\n _core.$event.broadcast('contentChange');\n });\n }\n});\n\nvar $MetadataModel = exports.$MetadataModel = _core.$Model.extend('$MetadataModel', {\n\n api: new _core.$Api({\n\n baseURI: _core.$meta.staticUrl,\n uri: '/metadata/:country/:lang/:version?/metadata',\n ext: 'js',\n\n retrieve: function retrieve(options) {\n var self = this;\n var model = options.model;\n\n var uri = self.getURI(model);\n\n return _core.$promise.resolve().then(function () {\n\n var metadataVersion = model.version || 'default';\n\n if (metadataCache[model.country] && metadataCache[model.country][model.lang] && metadataCache[model.country][model.lang][metadataVersion]) {\n _logger.$logger.info('cached_metadata');\n return metadataCache[model.country][model.lang][metadataVersion];\n }\n\n _logger.$logger.info('retrieve_metadata', {\n uri: uri\n });\n\n _core.$event.emit('loading');\n\n return _core.$promise.attempt(3, function () {\n return _core.$dom.loadScript('metadata', uri, 10000).then(function () {\n if (metadataCache[model.country] && metadataCache[model.country][model.lang] && metadataCache[model.country][model.lang][metadataVersion]) {\n _logger.$logger.info('metadata_retrieved', {\n uri: uri\n });\n return metadataCache[model.country][model.lang][metadataVersion];\n }\n\n // Retry if not found in cache\n _logger.$logger.info('metadata_not_available', {\n uri: uri\n });\n return _core.$promise.reject(new Error('metadata_not_available'));\n });\n })['catch'](function (err) {\n throw err;\n })['finally'](function () {\n _core.$event.emit('loaded');\n });\n }).then(function (metadata) {\n model.setProperties(metadata);\n return metadata;\n });\n }\n }),\n\n setVersion: function setVersion(country, lang) {\n var _this2 = this;\n\n var versionPxpName = _core.$config.features[country] && _core.$config.features[country].metadataVersionName;\n\n if (versionPxpName && _core.$config.metadataPxpExperiments[versionPxpName]) {\n var pxp = (0, _paypal.$pxp)(_core.$config.metadataPxpExperiments[versionPxpName].experimentName, {\n 'ctx.COUNTRY': country,\n 'ctx.LANGUAGE': lang\n }, _core.$config.metadataPxpExperiments[versionPxpName].experimentTreatmentName);\n\n return pxp.then(function (treatment) {\n if (treatment) {\n _this2.version = versionPxpName;\n _logger.$logger.info('metadata_version_set', {\n country: country,\n lang: lang,\n version: versionPxpName\n });\n } else {\n delete _this2.version;\n }\n })['catch'](function () {\n delete _this2.version;\n })['finally'](function () {\n return _core.$promise.resolve();\n });\n } else {\n delete this.version;\n return _core.$promise.resolve();\n }\n },\n\n change: function change(country, lang) {\n var _this3 = this;\n\n this.country = country;\n this.lang = lang;\n\n return this.setVersion(country, lang).then(function () {\n return _this3.reload().then(function () {\n if (!_this3.noBroadcast) {\n _core.$event.broadcast('metadataChange');\n }\n });\n });\n },\n\n choose: function choose(country, lang, override) {\n\n if (country && (!this.chosenCountry || override !== false)) {\n this.chosenCountry = country;\n }\n\n if (lang && (!this.chosenLang || override !== false)) {\n this.chosenLang = lang;\n }\n\n country = this.chosenCountry || this.country;\n lang = this.chosenLang;\n\n if (_core.$config.supportedCountries) {\n if (!_core.$config.supportedCountries[country]) {\n country = this.country;\n }\n\n if (_core.$config.supportedCountries[country].indexOf(lang) === -1) {\n lang = _core.$config.supportedCountries[country][0];\n }\n }\n\n if (!lang) {\n lang = this.lang;\n }\n\n return this.change(country, lang);\n },\n\n normalizeAddressFields: function normalizeAddressFields(content) {\n\n var CONTENT_MAPPING = {\n line1Label: 'streetAddress',\n line2Label: 'streetAddress2',\n cityLabel: 'city',\n stateLabel: 'state',\n postcodeLabel: 'postalCode'\n };\n\n // Loop over all layout props, if they don't exist in Griffin, get them from xo-content\n for (var prop in CONTENT_MAPPING) {\n if (this.addressEntry && this.addressEntry.strings[prop]) {\n this.addressEntry.strings[prop] = this.addressEntry.strings[prop] || content.get('common.' + CONTENT_MAPPING[prop]);\n }\n }\n }\n});\n\nfunction mapLanguage(lang) {\n var unselectableLanguages = _core.$config.unselectableLanguages || [];\n\n if (unselectableLanguages.indexOf(lang) !== -1) {\n if (!(_core.$meta.corp && _core.$config.betaLanguages && _core.$config.betaLanguages.indexOf(lang) !== -1)) {\n return 'en';\n }\n }\n\n var unsupportedLanguages = _core.$config.unsupportedLanguages || [];\n\n if (unsupportedLanguages.indexOf(lang) !== -1) {\n if (!(_core.$meta.corp && _core.$config.betaLanguages && _core.$config.betaLanguages.indexOf(lang) !== -1)) {\n var s = lang + '_locale_not_supported';\n\n throw new Error(s);\n }\n }\n\n return lang;\n}\n\nvar $LocaleModel = exports.$LocaleModel = _core.$Model.extend('LocaleModel', {\n api: new _core.$Api({\n uri: '/api/locale'\n }),\n\n init: function init() {\n this._super.init.apply(this);\n this.content = $ContentModel.instance();\n this.metadata = $MetadataModel.instance();\n },\n\n retrieve: function retrieve() {\n var self = this;\n\n return this._super.retrieve.apply(this, arguments).then(function (result) {\n self.lang = mapLanguage(self.lang);\n return _core.$promise.all([self.content.change(self.country, self.lang), self.metadata.change(self.country, self.lang)]).then(function () {\n\n // TODO: This at build time... or make sure griffin metadata is complete\n self.metadata.normalizeAddressFields(self.content);\n\n return result;\n });\n });\n },\n\n change: function change(country, lang) {\n\n var self = this;\n\n lang = mapLanguage(lang);\n\n if (country === this.country && lang === this.lang) {\n return _core.$promise.resolve(this);\n }\n\n _logger.$logger.info('locale_change', {\n country: country,\n lang: lang\n });\n\n this.country = country;\n this.lang = lang;\n\n return _core.$promise.all([this.content.change(country, lang), this.metadata.change(country, lang)]).then(function (loadedData) {\n\n // TODO: This at build time... or make sure griffin metadata is complete\n self.metadata.normalizeAddressFields(self.content);\n\n _core.$event.broadcast('localeChange'); // broadcast only when data has all been loaded\n return loadedData;\n });\n },\n\n choose: function choose(country, lang, override) {\n\n if (country && (!this.chosenCountry || override !== false)) {\n this.chosenCountry = country;\n }\n\n if (lang && (!this.chosenLang || override !== false)) {\n this.chosenLang = lang;\n }\n\n country = this.chosenCountry || this.country;\n lang = this.chosenLang;\n\n if (!_core.$config.supportedCountries[country]) {\n country = this.country;\n }\n\n if (_core.$config.supportedCountries[country].indexOf(lang) === -1) {\n lang = _core.$config.supportedCountries[country][0];\n }\n\n if (!lang) {\n lang = this.lang;\n }\n\n return this.change(country, lang);\n },\n\n chooseCountry: function chooseCountry(country) {\n return this.choose(country, null);\n },\n\n chooseLang: function chooseLang(lang) {\n return this.choose(null, lang);\n },\n\n getLocaleCode: function getLocaleCode() {\n return this.lang + '_' + this.country;\n },\n\n getCountryCodeISO: function getCountryCodeISO() {\n return PP_SPECIAL_COUNTRIES_ISO_CODES[this.country] || this.country;\n }\n});\n\nvar $locale = exports.$locale = $LocaleModel.instance();\n\nfunction $renderContent(key, props) {\n return Content.get(key, props);\n}\n\nfunction $flushContent() {\n contentCache = {};\n Content.cache = {};\n $locale.content = $ContentModel.create();\n $locale.metadata = $MetadataModel.create();\n metadataCache = {};\n}\n\nvar $localeHelper = exports.$localeHelper = {\n /**\n *\n * @param locale - Ex: en_US\n * @returns {{country: *, dialect}}\n */\n normalizeLocale: function normalizeLocale(locale) {\n if (!locale) {\n return {};\n }\n\n locale = locale.replace('-', '_');\n\n var country = void 0;\n var language = void 0;\n\n if (locale.match(/^\\w{2}_\\w{2}$/)) {\n locale = locale.split('_');\n\n language = locale[0];\n country = locale[1];\n } else {\n language = locale;\n }\n\n return {\n country: country,\n language: language\n };\n }\n};\n\nangular.value(\"sanitize\", sanitize);\nangular.value(\"Content\", Content);\nangular.value(\"$contentVersion\", $contentVersion);\nangular.value(\"$ContentModel\", $ContentModel);\nangular.value(\"$MetadataModel\", $MetadataModel);\nangular.value(\"$LocaleModel\", $LocaleModel);\nangular.value(\"$locale\", $locale);\nangular.value(\"$renderContent\", $renderContent);\nangular.value(\"$flushContent\", $flushContent);\nangular.value(\"$localeHelper\", $localeHelper);\n_logger.$logger;\n\n_core.$event;\n\n_core.$Model;\n\n_core.$Api;\n\n_core.$meta;\n\n_core.$promise;\n\n_core.$config;\n\n_core.$loader;\n\n_core.$dom;\n\n_paypal.$pxp;\n\n/***/ }),\n\n/***/ \"../node_modules/squid/dist/locale/name.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.formatNameInformal = formatNameInformal;\n\nvar _locale = __webpack_require__(\"../node_modules/squid/dist/locale/locale.js\");\n\n// Mapping of Griffin fields to name fields that should be used\nvar SUBSTITUTED_FIELDS = {\n givenName: 'first_name',\n surname: 'last_name'\n};\n\n// Taken from griffin-paypal: test if a string is Latin\nfunction isLatin(str) {\n if (!str) {\n return true;\n }\n\n for (var i = 0; i < str.length; i++) {\n if (str.charCodeAt(i) > 0x24F) {\n return false;\n }\n }\n\n return true;\n}\n\n/**\n * Formats name into informal format based on Griffin metadata\n * @param {Object} name The name to be formatted, containing first_name and last_name properties\n * @return {String} The formatted string, or null if data is missing\n */\nfunction formatNameInformal(name) {\n var layoutMetadata = _locale.$locale.metadata.nameInformal;\n var layout = null;\n\n if (!layoutMetadata) {\n return name.first_name || null; // Default to first name if metadata not loaded\n }\n\n // According to Griffin, if the name is all Latin and there is a Latin formatting variant, use that one\n if (layoutMetadata['latinLayout'] && isLatin(name.first_name) && isLatin(name.last_name)) {\n layout = layoutMetadata['latinLayout'];\n } else {\n layout = layoutMetadata['layout'];\n }\n\n // Map griffin layout parts to the name passed in. If it requires a value not passed in name, returns null early\n var formattedName = [];\n\n for (var i = 0; i < layout.length; i++) {\n var namePart = layout[i];\n\n if (name[SUBSTITUTED_FIELDS[namePart['$']]]) {\n formattedName.push(name[SUBSTITUTED_FIELDS[namePart['$']]]);\n } else if (namePart['$'] === 'separator') {\n formattedName.push(namePart._);\n }\n }\n\n return formattedName.join('');\n}\n\n_locale.$locale;\n\n/***/ }),\n\n/***/ \"../node_modules/squid/dist/locale/quantity.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.formatQuantity = formatQuantity;\n\nvar _locale = __webpack_require__(\"../node_modules/squid/dist/locale/locale.js\");\n\nvar _currency = __webpack_require__(\"../node_modules/squid/dist/locale/currency.js\");\n\n// format a quantity to add a thousand separator based on a locality\nfunction formatQuantity(quantity) {\n var _ref = _locale.$locale.metadata || {},\n _ref$number = _ref.number,\n numberConfig = _ref$number === undefined ? {} : _ref$number;\n\n var dot = '';\n var comma = numberConfig.GROUP_SEP === undefined ? ',' : numberConfig.GROUP_SEP;\n\n return (0, _currency.roundingAndSeparators)(quantity.toString(), _locale.$locale, { decimalPlaces: 0, dot: dot, comma: comma });\n}\n\n_locale.$locale;\n\n_currency.roundingAndSeparators;\n\n/***/ }),\n\n/***/ \"../node_modules/squid/dist/module.js\":\n/***/ (function(module, exports) {\n\n\n\nmodule.exports = angular.module;\n\n/***/ }),\n\n/***/ \"../node_modules/squid/dist/ng/component.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(console) {\n\nexports.__esModule = true;\nexports.$Component = undefined;\nexports.$populate = $populate;\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _core = __webpack_require__(\"../node_modules/squid/dist/core/index.js\");\n\nvar _ng = __webpack_require__(\"../node_modules/squid/dist/ng/ng.js\");\n\nvar _directive = __webpack_require__(\"../node_modules/squid/dist/ng/directive.js\");\n\n(0, _directive.$registerDirective)('prevent-default', function () {\n\n return {\n restrict: 'A',\n link: function link($scope, $element, $attrs) {\n $element.on('click', function (event) {\n event.preventDefault();\n });\n }\n };\n});\n\n(0, _directive.$registerDirective)('stop-propagation', function () {\n\n return {\n restrict: 'A',\n link: function link($scope, $element, $attrs) {\n $element.on('click keydown keypress keyup', function (event) {\n event.stopPropagation();\n });\n }\n };\n});\n\n(0, _directive.$registerDirective)('validate-submit', function () {\n\n return {\n link: function link($scope, $element, $attrs) {\n\n var $form = $element.closest('form');\n var form = $scope[$form.prop('name')];\n var formID_element = $attrs.form; // take the form attribute from submit button\n var formID_linked = $element[0] // take the id from the linked form element\n && $element[0].form && $element[0].form.id;\n var isLinkedForm = formID_element && formID_element === formID_linked; // Checking for confirmation. May not be required. Presence should be good enough.\n\n if (isLinkedForm) {\n $form = angular.element(document.getElementById(formID_linked));\n var scope = $form.scope(); // Linked forms should mantain form scope\n\n form = scope[$form.prop('name')];\n }\n\n $element.on('click', function (event) {\n event.preventDefault();\n\n $form.addClass('validated');\n $scope.validated = true;\n form.$setSubmitted();\n\n if (form.$valid) {\n try {\n $scope.$eval($attrs.validateSubmit);\n } catch (err) {\n _angular.$injector.get('$exceptionHandler')(err);\n }\n } else {\n $form.find('.ng-invalid:first').focus();\n }\n });\n }\n };\n});\n\nfunction assertModelsRetrievedOrEmpty(items) {\n if (_core.$config.deploy.isLocal() || _core.$config.deploy.isStage()) {\n angular.forEach(items, function (item, name) {\n if (item instanceof _core.$Model) {\n if (item.meta.populated) {\n throw new Error(name + ' is already populated. Please call .retrieve() to ensure your code is not relying on cache being present.');\n }\n }\n });\n }\n}\n\nfunction setUpComponentRoute($scope, $Component, angular) {\n var componentRoute = $scope.componentRoute;\n\n componentRoute.scope = $scope;\n\n componentRoute.scope.goto = function (route) {\n componentRoute.goto(route);\n };\n\n var parentRoute = componentRoute.parent;\n\n if (parentRoute) {\n var parentScope = parentRoute.scope;\n var parentDirective = parentRoute.getDirective();\n var childSpec = componentRoute.childSpec;\n\n if (childSpec.config) {\n if (parentDirective instanceof $Component) {\n parentScope.viewConfig = childSpec.config.call(parentScope);\n } else {\n throw new Error('In order to use config() for child routes,\\n ' + parentRoute.getDirectiveTag() + ' must be instance of new\\n style $Component');\n }\n }\n\n if (childSpec.props) {\n if (parentDirective instanceof $Component) {\n angular.extend($scope, childSpec.props.call(parentScope));\n } else {\n throw new Error('In order to use props() for child routes,\\n ' + parentRoute.getDirectiveTag() + ' must be instance of new\\n style $Component');\n }\n }\n }\n}\n\nvar $Component = exports.$Component = _core.$Class.extend('$Component', {\n\n onPopulate: angular.noop,\n\n init: function init() {\n var _this = this,\n _arguments = arguments;\n\n this.validate();\n\n this.name = _core.$util.dasherizeToCamel(this.tag);\n\n var wrapperType = this.wrapperType === 'span' ? 'span' : 'div';\n\n this.template = '<' + wrapperType + ' class=\"' + this.tag + '-wrapper\" ng-if=\"populated && display\">' + this.template + '';\n\n this.scope = this.scope || {};\n this.resolve = this.resolve || {};\n this.props = this.props || {};\n this.rootEvents = this.rootEvents || {};\n\n this.actions = this.actions || {};\n\n this.lifecycle = this.lifecycle || {};\n this.lifecycle.enter = this.lifecycle.enter || angular.noop;\n this.lifecycle.reenter = this.lifecycle.reenter || angular.noop;\n this.lifecycle.exit = this.lifecycle.exit || angular.noop;\n this.lifecycle.populate = this.lifecycle.populate || angular.noop;\n\n if (this.scope && Object.keys(this.scope).length) {\n\n if (this.props && Object.keys(this.props).length) {\n throw new Error('Can not defined scope and props on the same component');\n }\n\n this.scope.componentRoute = '=';\n this.scope['export'] = '@';\n\n this.props = _core.$util.map(this.scope, function (type, key) {\n return {\n type: {\n '=': 'var',\n '@': 'str'\n }[type],\n required: false\n };\n });\n } else {\n\n this.props.componentRoute = {\n type: 'var',\n required: false\n };\n\n this.props['export'] = {\n type: 'str',\n required: false\n };\n\n var isRequired = function isRequired() {\n var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n required = _ref.required,\n optional = _ref.optional;\n\n return [true, 'true'].indexOf(required) > -1 || [false, 'false'].indexOf(optional) > -1;\n };\n\n this.scope = _core.$util.map(this.props, function (spec, key) {\n return {\n 'var': isRequired(spec) ? '=' : '=?',\n str: isRequired(spec) ? '@' : '@?'\n }[spec.type || 'var'];\n });\n }\n\n var originalController = this.controller || angular.noop;\n\n this.controller = ['$scope', '$element', function ($scope, $element) {\n $scope.$element = $element;\n\n $scope.$on('$destroy', function () {\n if ($scope.componentRoute && $scope.componentRoute.parent && $scope.componentRoute.parent.scope) {\n delete $scope.componentRoute.parent.scope.viewConfig;\n }\n _this.lifecycle.exit.call($scope);\n });\n\n $scope.props = {};\n\n if ($scope.componentRoute) {\n setUpComponentRoute($scope, $Component, angular);\n }\n\n angular.forEach(_this.props, function (type, key) {\n\n var prop = _this.props[key];\n var required = prop.required !== false;\n var def = void 0;\n\n if (prop['default'] instanceof Function) {\n def = _core.$util.memoize(prop['default'].bind($scope));\n } else {\n def = function def() {\n return prop['default'];\n };\n }\n\n var UNDEFINED = {\n 'var': undefined,\n str: ''\n }[prop.type];\n\n Object.defineProperty($scope.props, key, {\n get: function get() {\n var val = $scope[key];\n\n if (val === UNDEFINED) {\n if (required) {\n throw new Error('Prop required for component :: ' + _this.tag + ' :: ' + key);\n }\n\n return def();\n }\n\n return val;\n },\n\n set: function set() {\n throw new Error('Prop is immutable :: ' + _this.tag + ' :: ' + key);\n }\n });\n });\n\n $scope.fields = {};\n\n $scope.actions = _core.$util.bindObject(_this.actions, $scope);\n\n Object.keys(_this.rootEvents).forEach(function (eventName) {\n var cancel = _core.$event.on(eventName, function (event) {\n _this.rootEvents[eventName].apply($scope, _arguments);\n });\n\n $scope.$on('$destroy', cancel);\n });\n\n $scope.display = true;\n\n $scope.reload = function () {\n\n if (!$scope.populated) {\n throw new Error('Can not reload unpopulated component');\n }\n\n $scope.display = false;\n setTimeout(function () {\n $scope.display = true;\n });\n };\n\n $scope.componentScope = $scope;\n\n if ($scope.props['export'] && $scope.$parent.componentScope) {\n\n $scope.exports = angular.extend({}, _this.exports || {}, {\n reload: $scope.reload\n });\n\n Object.defineProperty($scope.$parent.componentScope, $scope.props['export'], {\n get: function get() {\n return $scope.exports;\n },\n\n configurable: true\n });\n }\n\n $scope._enablePopulateEvents = true;\n\n _angular.$injector.invoke(originalController, _this, { $scope: $scope, $element: $element });\n _this.lifecycle.enter.call($scope);\n\n $scope._enablePopulateEvents = false;\n\n var cancelReEnterEvent = _core.$event.on('$stateChangeSuccess', function (event, toState) {\n if (toState === $scope.props.componentRoute) {\n _this.lifecycle.reenter.call($scope);\n }\n });\n\n $scope.$on('$destroy', cancelReEnterEvent);\n\n return _core.$promise.sequential([function () {\n $scope.$emit('_populating');\n }, function () {\n return _core.$promise.map(_this.resolve, function (resolver, name, resolverPromises) {\n\n if (angular.isObject(resolver)) {\n $scope[name] = resolver;\n return resolver;\n }\n\n return _core.$promise.resolve(resolver.call($scope, resolverPromises)).then(function (data) {\n assertModelsRetrievedOrEmpty(data);\n\n return _core.$promise.hash(data).then(function (resolvedData) {\n\n $scope[name] = resolvedData;\n return resolvedData;\n });\n });\n });\n }, function () {\n\n $scope.populated = true;\n\n $scope.$emit('_populated');\n\n _core.$event.refCount($scope, '_populating', '_populated').then(function () {\n\n $scope.$on('populated', function (populatedEvent) {\n populatedEvent.stopPropagation();\n });\n\n $scope.$emit('populated');\n _this.onPopulate.call($scope);\n _this.lifecycle.populate.call($scope);\n });\n }]);\n }];\n },\n\n validate: function validate() {\n\n if (_core.$config.deploy.isLive() && !_core.$config.deploy.isTest()) {\n return;\n }\n\n var componentName = this.constructor.name;\n\n if (!this.tag) {\n throw new Error(componentName + ' :: expected property \\'tag\\'');\n }\n\n if (!this.tag.match(/^[a-z0-9-]+$/)) {\n throw new Error(componentName + ' :: tag should contain only lowercase alphanumeric characters and dashes');\n }\n\n if (!this.template) {\n throw new Error(componentName + ' :: expected property \\'template\\'');\n }\n\n if (this.resolve) {\n angular.forEach(this.resolve, function (resolver, name) {\n if (!(resolver instanceof Function)) {\n throw new Error(componentName + ' :: expected \\'resolve.' + name + '\\' to be a function');\n }\n });\n }\n\n if (this.props) {\n angular.forEach(this.props, function (prop, name) {\n\n if (!(prop instanceof Object)) {\n throw new Error(componentName + ' :: expected \\'props.' + name + '\\' to be a function');\n }\n\n if (prop.type && ['var', 'str'].indexOf(prop.type) === -1) {\n throw new Error(componentName + ' :: expected \\'props.' + name + '.type\\' to be one of var, str');\n }\n\n if (prop['default'] && prop.required) {\n throw new Error(componentName + ' :: unnecessary \\'props.' + name + '.default\\', since prop is required');\n }\n\n if (prop['default'] && prop['default'] instanceof Object && !(prop['default'] instanceof Function)) {\n throw new Error(componentName + ' :: expected \\'props.' + name + '.default\\' to be a primitive or a function - please do not pass mutable objects');\n }\n });\n }\n\n if (this.actions) {\n angular.forEach(this.actions, function (action, name) {\n if (!(action instanceof Function)) {\n throw new Error(componentName + ' :: expected \\'actions.' + name + '\\' to be a function');\n }\n });\n }\n\n if (this.lifecycle) {\n Object.keys(this.lifecycle).forEach(function (name) {\n if (['enter', 'populate', 'exit', 'reenter'].indexOf(name) === -1) {\n throw new Error(componentName + ' :: unexpected \\'lifecycle.' + name + '\\'');\n }\n });\n }\n }\n});\n\n$Component.reopenClass({\n\n extend: function extend() {\n\n var SubClass = _core.$Class.extend.apply(this, arguments);\n var spec = new SubClass();\n\n angular.module().directive(spec.name, function () {\n return spec;\n });\n\n return SubClass;\n },\n\n render: function render(scope) {\n _core.$event.emit('$resetState');\n\n var $scope = _angular.$rootScope.$new();\n\n angular.extend($scope, scope);\n\n var attrs = Object.keys(scope).map(function (key) {\n return _core.$util.camelToDasherize(key) + '=\"' + (this.prototype.props[key].type === 'var' ? key : scope[key]) + '\"';\n }.bind(this)).join(' ');\n\n var cleanRootScope = (0, _ng.$cleanRootScope)(_angular.$rootScope);\n var html = '<' + this.prototype.tag + ' ' + attrs + '>';\n\n console.log('RENDER', html, scope);\n\n var element = (0, _angular.$compile)(html)($scope);\n\n // attaching to the document so DOM Api works in karma flow tests (e.g document.getElementById('myId'))\n angular.element(document.body).append(element);\n\n afterEach(_core.$util.once(function () {\n $scope.$destroy();\n cleanRootScope();\n element.remove();\n }));\n\n setTimeout.flush();\n\n element.isolateScope = function () {\n throw new Error('Please test this element by interfacing with its public api: define mock endpoints, and interact with html links, buttons and form fields');\n };\n\n element.updateProps = function (props) {\n angular.extend($scope, props);\n $scope.$digest();\n setTimeout.flush();\n };\n\n return element;\n }\n});\n\nfunction autoConvertDirectiveToComponent(_ref2, original) {\n var name = _ref2[0],\n factory = _ref2[1];\n\n\n if (!angular.isFunction(factory)) {\n return original();\n }\n\n var tag = _core.$util.camelToDasherize(name);\n var spec = _angular.$injector.invoke(factory);\n\n if (spec.controller) {\n var originalController = spec.controller;\n\n spec.controller = ['$scope', '$element', function ($scope, $element) {\n $scope._enablePopulateEvents = true;\n var result = _angular.$injector.invoke(originalController, this, { $scope: $scope, $element: $element });\n\n $scope._enablePopulateEvents = false;\n return result;\n }];\n }\n\n if (spec instanceof $Component || !spec.template || !spec.controller || name.indexOf('xo') !== 0 || spec.transclude) {\n return original(this, [name, function () {\n return spec;\n }]);\n }\n\n if (spec.componentize) {\n\n $Component.extend('$' + name + 'Component', spec, {\n tag: tag\n });\n\n return this;\n }\n\n return original(this, [name, function () {\n return spec;\n }]);\n}\n\n_core.$util.monkeyPatch(_angular.$compileProvider, 'directive', autoConvertDirectiveToComponent);\n_core.$util.monkeyPatch(angular.module(), 'directive', autoConvertDirectiveToComponent);\n\n// $populate needs to go away\n\nfunction $populate($scope, instances) {\n\n $scope.$on = $scope.$on || angular.noop;\n $scope.$emit = $scope.$emit || angular.noop;\n\n var _enablePopulateEvents = $scope._enablePopulateEvents;\n\n if (_enablePopulateEvents) {\n _core.$event.refCount($scope, '_populating', '_populated').then(function () {\n $scope.$emit('populated');\n });\n }\n\n $scope.$on('populated', function (populatedEvent) {\n populatedEvent.stopPropagation();\n });\n\n if (_enablePopulateEvents) {\n $scope.$emit('_populating');\n }\n\n return _core.$promise.all(_core.$util.map(instances, function (instance, name) {\n\n var promise = void 0;\n\n if (instance.then) {\n promise = instance;\n } else {\n promise = instance.retrieve();\n $scope[name] = instance;\n }\n\n return promise.then(function (result) {\n $scope[name] = result;\n return result;\n });\n })).then(function (result) {\n\n if (_enablePopulateEvents) {\n $scope.$emit('_populated');\n }\n\n return result;\n });\n}\n\nangular.value(\"$Component\", $Component);\nangular.value(\"$populate\", $populate);\n_angular.$rootScope;\n\n_angular.$compile;\n\n_angular.$injector;\n\n_angular.$compileProvider;\n\n_core.$Class;\n\n_core.$Model;\n\n_core.$util;\n\n_core.$promise;\n\n_core.$config;\n\n_core.$event;\n\n_ng.$cleanRootScope;\n\n_directive.$registerDirective;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/console-browserify/index.js\")))\n\n/***/ }),\n\n/***/ \"../node_modules/squid/dist/ng/core.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _core = __webpack_require__(\"../node_modules/squid/dist/core/index.js\");\n\n_core.$event.use({\n on: function on() {\n return _angular.$rootScope.$on.apply(_angular.$rootScope, arguments);\n },\n once: function once(name, handler) {\n var cancel = _core.$event.on(name, function () {\n cancel();\n handler.apply(this, arguments);\n }, true);\n\n return cancel;\n },\n emit: function emit() {\n return _angular.$rootScope.$emit.apply(_angular.$rootScope, arguments);\n },\n broadcast: function broadcast() {\n return _angular.$rootScope.$broadcast.apply(_angular.$rootScope, arguments);\n }\n});\n\n_core.$promise.use(_angular.$q);\n\n_angular.$q;\n\n_angular.$rootScope;\n\n_core.$event;\n\n_core.$promise;\n\n/***/ }),\n\n/***/ \"../node_modules/squid/dist/ng/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.$registerDirective = $registerDirective;\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _angular2 = _interopRequireDefault(_angular);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction $registerDirective(tag, definition) {\n\n var directiveName = tag.replace(/-([a-z])/g, function (g) {\n return g[1].toUpperCase();\n });\n\n return _angular2[\"default\"].module().directive(directiveName, definition);\n}\n\n_angular2[\"default\"].value(\"$registerDirective\", $registerDirective);\n\n/***/ }),\n\n/***/ \"../node_modules/squid/dist/ng/events.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nvar _uiRouter = __webpack_require__(\"../node_modules/angular-ui-router/release/angular-ui-router.min.js\");\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\nvar _core = __webpack_require__(\"../node_modules/squid/dist/core/index.js\");\n\nangular.module().run(function () {\n\n _core.$event.on('$stateChangeStart', function (event) {\n _core.$event.emit('loading');\n _core.$event.emit('loaded');\n });\n\n var startLoadTime = 0;\n var currentState = 'checkout_init';\n\n function currentStateName() {\n return _uiRouter.$state.current.name && _uiRouter.$state.current.name.replace(/\\./g, '_');\n }\n\n _core.$event.on('startLoad', function () {\n\n if (startLoadTime) {\n startLoadTime = _core.$util.now();\n } else if (window.enablePerformance && window.performance.timing.connectEnd && window.performance.timing.navigationStart) {\n\n var performance = window.performance;\n var timing = window.performance.timing || {};\n var now = performance.now();\n\n startLoadTime = parseInt(now - (timing.connectEnd - timing.navigationStart), 10);\n }\n });\n\n _core.$event.on('allLoaded', function () {\n\n var newState = currentStateName();\n\n if (!newState) {\n return;\n }\n\n if (currentState === newState) {\n _core.$event.emit('page_reloaded', currentState);\n } else {\n\n var duration = void 0;\n\n if (startLoadTime) {\n duration = _core.$util.now() - startLoadTime;\n }\n\n var payload = {\n start: currentState,\n end: newState,\n time: duration,\n duration: duration\n };\n\n _core.$event.emit('$transition', {\n from: currentState,\n toState: _uiRouter.$state.current,\n duration: duration\n });\n\n _logger.$logger.info('transition', payload);\n _logger.$logger.info('transition_' + currentState + '_to_' + newState, payload);\n\n _core.$event.emit('page_loaded', currentState, newState);\n _logger.$logger.flush();\n\n currentState = newState;\n }\n });\n\n _core.$event.emit('loading');\n\n var cancel = _core.$event.on('$stateChangeSuccess', function () {\n if (_uiRouter.$state.current.template) {\n cancel();\n setTimeout(function () {\n _core.$event.emit('loaded');\n }, 50);\n }\n });\n});\n\n_uiRouter.$state;\n\n_logger.$logger;\n\n_core.$event;\n\n_core.$util;\n\n/***/ }),\n\n/***/ \"../node_modules/squid/dist/ng/feature.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nvar _directive = __webpack_require__(\"../node_modules/squid/dist/ng/directive.js\");\n\nvar _locale = __webpack_require__(\"../node_modules/squid/dist/locale/index.js\");\n\nvar _core = __webpack_require__(\"../node_modules/squid/dist/core/index.js\");\n\n(0, _directive.$registerDirective)('feature', function () {\n return {\n restrict: 'A',\n transclude: true,\n scope: {},\n template: '',\n link: function link($scope, element, attr) {\n $scope.enabled = function () {\n return (0, _locale.$feature)(attr.feature) || _core.$integration.getConfig(attr.feature);\n };\n }\n };\n});\n\n(0, _directive.$registerDirective)('unless-feature', function () {\n return {\n restrict: 'A',\n transclude: true,\n scope: {},\n template: '',\n link: function link($scope, element, attr) {\n $scope.enabled = function () {\n return (0, _locale.$feature)(attr.unlessFeature) || _core.$integration.getConfig(attr.unlessFeature);\n };\n }\n };\n});\n_directive.$registerDirective;\n\n_locale.$feature;\n\n_core.$integration;\n\n/***/ }),\n\n/***/ \"../node_modules/squid/dist/ng/index.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _core = __webpack_require__(\"../node_modules/squid/dist/ng/core.js\");\n\nObject.keys(_core).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _core[key];\n }\n });\n});\n\nvar _route = __webpack_require__(\"../node_modules/squid/dist/ng/route.js\");\n\nObject.keys(_route).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _route[key];\n }\n });\n});\n\nvar _component = __webpack_require__(\"../node_modules/squid/dist/ng/component.js\");\n\nObject.keys(_component).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _component[key];\n }\n });\n});\n\nvar _feature = __webpack_require__(\"../node_modules/squid/dist/ng/feature.js\");\n\nObject.keys(_feature).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _feature[key];\n }\n });\n});\n\nvar _locale = __webpack_require__(\"../node_modules/squid/dist/ng/locale.js\");\n\nObject.keys(_locale).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _locale[key];\n }\n });\n});\n\nvar _module = __webpack_require__(\"../node_modules/squid/dist/ng/module.js\");\n\nObject.keys(_module).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _module[key];\n }\n });\n});\n\nvar _ng = __webpack_require__(\"../node_modules/squid/dist/ng/ng.js\");\n\nObject.keys(_ng).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _ng[key];\n }\n });\n});\n\nvar _directive = __webpack_require__(\"../node_modules/squid/dist/ng/directive.js\");\n\nObject.keys(_directive).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _directive[key];\n }\n });\n});\n\nvar _events = __webpack_require__(\"../node_modules/squid/dist/ng/events.js\");\n\nObject.keys(_events).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _events[key];\n }\n });\n});\n\nvar _pxp = __webpack_require__(\"../node_modules/squid/dist/ng/pxp.js\");\n\nObject.keys(_pxp).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _pxp[key];\n }\n });\n});\n\nvar _lazyLoadRoutes = __webpack_require__(\"../node_modules/squid/dist/ng/lazyLoadRoutes.js\");\n\nObject.keys(_lazyLoadRoutes).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _lazyLoadRoutes[key];\n }\n });\n});\n\n/***/ }),\n\n/***/ \"../node_modules/squid/dist/ng/lazyLoadRoutes.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.lazyLoadRoute = exports.findRelativeState = exports.initRoute = undefined;\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nvar _uiRouter = __webpack_require__(\"../node_modules/angular-ui-router/release/angular-ui-router.min.js\");\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\nvar _core = __webpack_require__(\"../node_modules/squid/dist/core/index.js\");\n\nvar _config = __webpack_require__(\"../node_modules/squid/dist/core/config.js\");\n\nvar getHash = function getHash(url) {\n if (!url || !~url.indexOf('#')) {\n // eslint-disable-line no-bitwise\n return;\n }\n\n url = url.split('#');\n return url[url.length - 1];\n};\n\n/**\n *\n * get parent state, e.g \"checkout.sidebar.addCard\" -> \"checkout.sidebar\"\n */\nvar getParentState = function getParentState(path) {\n return _uiRouter.$state.get(path.slice(0, path.lastIndexOf('.')));\n};\n\n/**\n * Find route by slug\n * path - full path of the current route, e.g \"checkout.payWithSelection\"\n * slug - path of the route that we want to search, e.g \"payWithSelection\"\n */\nvar getRoute = function getRoute(path, slug) {\n var route = getParentState(path);\n\n if (!route) {\n return;\n }\n var children = route.children;\n\n if (children) {\n return children.find(function (child) {\n return child.slug === slug;\n });\n }\n};\n\n/**\n * Lazy load children routes in the background\n */\nvar lazyLoadChildren = function lazyLoadChildren(children) {\n if (children) {\n _logger.$logger.info('lazy_loading_route_load_children');\n children.forEach(function (child) {\n if (child.lazyRoute) {\n // request to download js chunk (dynamic import)\n child.lazyRoute();\n }\n });\n }\n};\n\n/**\n * Dynamically load route and initialize / register it\n * @param {Object} routeObj - route object from Route definition, e.g\n * {\n * name: '$PayWithSelection',\n * slug: 'payWithSelection',\n * lazyRouter: () => import('pages/payWithSelection/route)\n * }\n *\n * @param {Route} parent - parent of the passed routeObj\n * @param {String} fullRoutePath - full path of the route, e.g \"checkout.payWithselection\"\n */\nvar initRoute = exports.initRoute = function initRoute(routeObj, parent, fullRoutePath) {\n if (!routeObj) {\n return;\n }\n\n var name = routeObj.name,\n slug = routeObj.slug,\n attributes = routeObj.attributes,\n lazyRoute = routeObj.lazyRoute;\n\n\n _logger.$logger.info('lazy_loading_route_init', {\n name: name,\n slug: slug,\n fullRoutePath: fullRoutePath\n });\n\n return lazyRoute().then(function (route) {\n if (!route) {\n return;\n }\n if ((typeof route === 'undefined' ? 'undefined' : _typeof(route)) === 'object') {\n route = route[name];\n }\n var childRoute = new route({ //eslint-disable-line\n parent: parent || getParentState(fullRoutePath),\n childSpec: _core.$util.extend(routeObj, { route: route }),\n childAttributes: attributes\n });\n childRoute.register();\n return childRoute;\n });\n};\n\n/**\n * Promisify all lazy routes\n * Example:\n * targetState = 'checkout.sidebar.addCardFlow.addCard'\n * Lets say 'addCard', 'addCardFlow' and 'addCard' are lazy routes\n * 1. Go through each possible route, e.g 'checkout', 'checkout.sidebar', 'checkout.sidebar.addCardFlow', 'checkout.sidebar.addCardFlow.addCard'\n * 2. Check if each exists / already registered\n * 3. if route is not registered -> find that route and return promise\n * @param {String} targetState full path of the target route\n * Returns an array of promisified functions\n */\nvar findAndPromisifyRoutes = function findAndPromisifyRoutes(targetState) {\n var splittedTargetState = targetState.split('.');\n var states = splittedTargetState.slice(1);\n var routes = [];\n var path = splittedTargetState[0];\n\n states.forEach(function (state) {\n path += '.' + state;\n var fullRoutePath = path;\n\n if (!_uiRouter.$state.get(path)) {\n routes.push(function (parent) {\n var route = getRoute(fullRoutePath, state);\n\n return initRoute(route, parent, fullRoutePath);\n });\n }\n });\n return routes;\n};\n\n/**\n * Checks if it's a relative path (having `.` or `^`)\n * @param {String} stateName - path of the state, e.g `.mychildRoute`\n */\nvar isRelative = function isRelative(stateName) {\n return stateName.indexOf('.') === 0 || stateName.indexOf('^') === 0;\n};\n\n/**\n * finds a full path of the relative state name\n * examples:\n * '^' - will go to a parent state\n * '^.sibling' - will go to a sibling state\n * '.child.grandchild' - will go to grandchild state\n * @param {String / Object} stateOrName - state to find, e.g `^.selectFi`\n * Returns full path name of the state, e.g `^.selectFi` -> `checkout.selectFi`\n */\nvar findRelativeState = exports.findRelativeState = function findRelativeState(stateOrName) {\n if (!stateOrName) {\n return;\n }\n var base = _uiRouter.$state.current;\n\n var rel = stateOrName.split('.');\n var current = base;\n var i = 0;\n\n for (; i < rel.length; i++) {\n if (rel[i] === '' && i === 0) {\n current = base;\n continue;\n }\n if (rel[i] === '^') {\n if (!current.parent) {\n throw new Error('lazy-loading: path \\'' + stateOrName + '\\' not valid for state \\'' + base.name + '\\'');\n }\n current = current.parent;\n continue;\n }\n break;\n }\n rel = rel.slice(i).join('.');\n return current.name + (current.name && rel ? '.' : '') + rel;\n};\n\n/**\n * Lazy load route and redirect if successfull or reject if route was not found\n * Note: routes will be loading sequentialy for now to load parent routes first if they are lazy as well.\n * Example:\n * targetState = 'checkout.sidebar.addCardFlow.addCard'\n * Lets say 'addCard', 'addCardFlow' and 'addCard' are lazy routes and represent separate js chunk\n * We have to load each js chunk in order one by one to be able to register them and attach to corresponding parents.\n * @param {String} targetState - route path, e.g 'checkout.payWithSelection'\n * @param {Object} targetParams - params which route may need\n * @param {Boolean} shouldChangeState - if state should be changed after route is loaded\n */\nvar lazyLoadRoute = exports.lazyLoadRoute = function lazyLoadRoute(targetState) {\n var targetParams = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var shouldChangeState = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n\n if (!targetState) {\n return _core.$promise.reject(new Error('lazy_loading_target_state_is_empty'));\n }\n _logger.$logger.info('lazy_loading_route', {\n targetState: targetState,\n targetParams: targetParams\n });\n if (isRelative(targetState)) {\n targetState = findRelativeState(targetState, _uiRouter.$state.current);\n }\n _core.$event.emit('loading');\n\n var routes = findAndPromisifyRoutes(targetState);\n\n return _core.$promise.sequential(routes).then(function (result) {\n if (_uiRouter.$state.get(targetState)) {\n if (result) {\n lazyLoadChildren(result.children);\n }\n _logger.$logger.info('lazy_loading_route_state_change', {\n targetState: targetState,\n targetParams: targetParams\n });\n if (!shouldChangeState) {\n return _core.$promise.resolve();\n }\n return _uiRouter.$state.go(targetState, targetParams)['catch'](function (err) {\n if (err.message === 'transition prevented' || err.message === 'transition superseded') {\n return _core.$promise.resolve();\n }\n return _core.$promise.reject(err);\n });\n } else {\n return _core.$promise.reject(new Error('lazy_loading_state_was_not_loaded'));\n }\n })['catch'](function (error) {\n // in case of exceptions, spinner must dissapear, because for each 'loading' event\n // that's sent in the beginning of the function must be corresponding 'loaded' event\n // otherwise, there will be infinite spinner\n\n _logger.$logger.info('lazy_loading_route_error', {\n targetState: targetState,\n targetParams: targetParams,\n errorMessage: error && error.message,\n errorStack: error && error.stack\n });\n\n return _core.$promise.reject(error);\n })['finally'](function () {\n _core.$event.emit('loaded');\n });\n};\n\n/**\n * mostly needed for use cases when user types route manually\n */\nwindow.addEventListener('hashchange', function (event) {\n if (_config.$meta.codeSplitting) {\n var fromHash = getHash(event.oldURL);\n var toHash = getHash(event.newURL || window.location.hash);\n\n // skip lazy loading in case hash is undefined or empty\n // example -> OpenModal\n // in that case `toHash` will be empty\n if (!toHash) {\n return;\n }\n\n var getHashQueryParams = function getHashQueryParams(path) {\n var splittedPath = path.split('?');\n // e.g #/checkout/genericError?code=ERROR_CODE -> code=ERROR_CODE\n var hashParams = splittedPath.length > 1 && splittedPath[1];\n\n if (hashParams) {\n // e.g code=ERROR_CODE -> { code: ERROR_CODE }\n return _core.$util.params(hashParams);\n }\n };\n // e.g #/checkout/review -> checkout.review\n var path = toHash.slice(1).replace(/\\//g, '.');\n var hashQueryParams = getHashQueryParams(path);\n\n if (hashQueryParams) {\n // e.g checkout.genericError?code=ERROR_CODE -> checkout.genericError\n path = path.split('?')[0];\n }\n\n if (_uiRouter.$state.get(path)) {\n return;\n }\n\n _logger.$logger.info('hashchange_lazy_loading', {\n from: fromHash,\n to: toHash\n });\n\n lazyLoadRoute(path, hashQueryParams)['catch'](function () {\n _logger.$logger.info('hashchange_lazy_loading_error', {\n from: fromHash,\n to: toHash,\n params: hashQueryParams\n });\n });\n }\n});\n\n_uiRouter.$state;\n\n_logger.$logger;\n\n_core.$util;\n\n_core.$promise;\n\n_core.$event;\n\n_config.$meta;\n\n/***/ }),\n\n/***/ \"../node_modules/squid/dist/ng/locale.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(module, __dirname, __filename) {\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _core = __webpack_require__(\"../node_modules/squid/dist/core/index.js\");\n\nvar _locale = __webpack_require__(\"../node_modules/squid/dist/locale/index.js\");\n\n(0, _angular.$registerDirective)('content', function () {\n return {\n restrict: 'A',\n\n link: function link($scope, element, attributes) {\n $scope.content = $scope.htmlContent = function (key, props) {\n if (attributes.content) {\n key = attributes.content + '.' + key;\n }\n var content = _locale.Content.get(key, props);\n\n if (content.toString()) {\n return content;\n } else {\n return;\n }\n };\n }\n };\n});\n\n(0, _angular.$registerDirective)('bind-html-compile', function () {\n\n return {\n restrict: 'A',\n link: function link($scope, $element, $attrs) {\n $scope.$watch(function () {\n return $scope.$eval($attrs.bindHtmlCompile);\n }, function (value) {\n $element.html(value && value.toString());\n (0, _angular.$compile)($element.contents())($scope);\n });\n }\n };\n});\n\n(0, _angular.$registerDirective)('format-currency', function () {\n\n return {\n restrict: 'E',\n template: '',\n scope: {\n amount: '=?',\n symbol: '=?',\n code: '=?',\n currencyStyle: '@?'\n },\n controller: ['$scope', function ($scope) {\n\n function format() {\n $scope.amount_formatted = _angular.$sce.trustAsHtml((0, _locale.formatCurrency)($scope.amount, $scope.code, true, $scope.currencyStyle));\n }\n\n $scope.$on('$destroy', _core.$event.on('localeChange', format));\n\n $scope.$watch('amount', function (newValue, oldValue) {\n if (newValue !== oldValue && _locale.$locale.country) {\n format();\n }\n });\n\n if (_locale.$locale.country) {\n format();\n }\n }] // controller\n }; // return\n}); // registerDirective\n\n\n(function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n})(window.angular);\n\nangular.module().value('$sanitize', function (val) {\n if (val instanceof _locale.Content) {\n return val.toSafeString();\n }\n return (0, _locale.sanitize)(val);\n});\n\n_angular.$sce;\n\n_angular.$registerDirective;\n\n_angular.$compile;\n\n_core.$event;\n\n_locale.formatCurrency;\n\n_locale.sanitize;\n\n_locale.Content;\n\n_locale.$locale;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/webpack/buildin/module.js\")(module), \"../node_modules/squid/dist/ng\", \"../node_modules/squid/dist/ng/locale.js\"))\n\n/***/ }),\n\n/***/ \"../node_modules/squid/dist/ng/module.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.module = undefined;\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _angular2 = _interopRequireDefault(_angular);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar _module = _angular2['default'].module;\nexports.module = _module;\n\n/***/ }),\n\n/***/ \"../node_modules/squid/dist/ng/ng.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.$angularInvoke = $angularInvoke;\nexports.$once = $once;\nexports.$cleanRootScope = $cleanRootScope;\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _core = __webpack_require__(\"../node_modules/squid/dist/core/index.js\");\n\nfunction $angularInvoke(method) {\n try {\n return method();\n } catch (err) {\n _angular.$injector.get('$exceptionHandler')(err);\n }\n}\n\nfunction $once(name, handler) {\n var cancel = _core.$event.on(name, function () {\n cancel();\n handler.apply(this, arguments);\n }, true);\n}\n\nfunction $cleanRootScope(rootScope) {\n\n var keys = Object.keys(rootScope);\n\n var autoCleanupEventHandlers = [];\n var eventHandlers = [];\n var eventCancelers = [];\n\n _core.$util.monkeyPatch(rootScope, '$on', function (_ref, original) {\n var name = _ref[0],\n handler = _ref[1],\n once = _ref[2];\n\n\n var cancel = original();\n\n var $state = void 0;\n\n try {\n $state = _angular.$injector.get('$state');\n } catch (err) {\n // pass\n }\n\n if (name === '$destroy' || !$state || !$state.current || !$state.current.name || $state.current.name === 'default') {\n autoCleanupEventHandlers.push(cancel);\n return function autoCleanedUpCancel() {}; // eslint-disable-line no-empty-function\n }\n\n if (once) {\n eventCancelers.push(cancel);\n return cancel;\n }\n\n // Let ng-router do its thing\n if (handler.toString().indexOf('updateView') !== -1) {\n return cancel;\n }\n\n var stack = void 0;\n\n try {\n throw new Error('$rootScope.$on');\n } catch (err) {\n stack = err.stack;\n }\n\n var reference = {\n name: name,\n handler: handler.toString(),\n stack: stack\n };\n\n eventHandlers.push(reference);\n\n return function () {\n cancel();\n eventHandlers.splice(eventHandlers.indexOf(reference), 1);\n };\n });\n\n return function () {\n\n _core.$event.emit('$destroy');\n\n autoCleanupEventHandlers.forEach(function (canceler) {\n return canceler();\n });\n autoCleanupEventHandlers = [];\n\n Object.keys(rootScope).forEach(function (key) {\n if (keys.indexOf(key) === -1) {\n delete rootScope[key];\n }\n });\n\n if (eventHandlers.length) {\n throw new Error('$rootScope event handlers not cleaned up:\\n\\n' + eventHandlers.map(function (eventHandler) {\n return eventHandler.name + '\\n\\n' + eventHandler.handler + '\\n\\n' + eventHandler.stack;\n }).join('\\n\\n'));\n }\n\n eventCancelers.forEach(function (cancel) {\n return cancel();\n });\n };\n}\n\nangular.value(\"$angularInvoke\", $angularInvoke);\nangular.value(\"$once\", $once);\nangular.value(\"$cleanRootScope\", $cleanRootScope);\n_angular.$injector;\n\n_core.$util;\n\n_core.$event;\n\n/***/ }),\n\n/***/ \"../node_modules/squid/dist/ng/pxp.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nvar _uiRouter = __webpack_require__(\"../node_modules/angular-ui-router/release/angular-ui-router.min.js\");\n\nvar _core = __webpack_require__(\"../node_modules/squid/dist/core/index.js\");\n\n_core.$event.on('pxp_res', function (event, pxpRes) {\n _uiRouter.$state.current.trackingData = _uiRouter.$state.current.trackingData || {};\n _uiRouter.$state.current.trackingData.pxpData = _uiRouter.$state.current.trackingData.pxpData || [];\n _uiRouter.$state.current.trackingData.pxpData.push(pxpRes);\n});\n\n_uiRouter.$state;\n\n_core.$event;\n\n/***/ }),\n\n/***/ \"../node_modules/squid/dist/ng/route.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.$ComponentRoute = exports.$Route = undefined;\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _uiRouter = __webpack_require__(\"../node_modules/angular-ui-router/release/angular-ui-router.min.js\");\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\nvar _core = __webpack_require__(\"../node_modules/squid/dist/core/index.js\");\n\nvar _locale = __webpack_require__(\"../node_modules/squid/dist/locale/index.js\");\n\nvar _component = __webpack_require__(\"../node_modules/squid/dist/ng/component.js\");\n\nvar _ng = __webpack_require__(\"../node_modules/squid/dist/ng/ng.js\");\n\nvar _config = __webpack_require__(\"../node_modules/squid/dist/core/config.js\");\n\nvar _lazyLoadRoutes = __webpack_require__(\"../node_modules/squid/dist/ng/lazyLoadRoutes.js\");\n\nvar $Route = exports.$Route = _core.$Class.extend('$ComponentRoute', {\n\n childSpec: {},\n\n init: function init() {\n var _this = this;\n\n this.validate();\n\n this.url = '/' + (this.path || this.name);\n\n if (this.query) {\n this.url += '?' + this.query.join('&');\n }\n\n this.hasResolver = Boolean(this.resolve);\n\n var controller = this.controller = ['$scope', function ($scope) {\n $scope.route = _this;\n if ($scope.componentScope) {\n delete $scope.componentScope.view;\n }\n }];\n\n if (this.get('resolve.action')) {\n this.controller = ['$scope', 'action', function ($scope, action) {\n _angular.$injector.invoke(controller, this, { $scope: $scope });\n if (action) {\n if (!action.newState) {\n _angular.$location.replace();\n }\n\n if (angular.isObject(action) && action.to) {\n _uiRouter.$state.go(action.to, action.params);\n } else {\n _uiRouter.$state.go(action);\n }\n }\n }];\n }\n },\n\n validate: function validate() {\n\n if (_core.$config.deploy.isLive() && !_core.$config.deploy.isTest()) {\n return;\n }\n\n var routeName = this.constructor.name;\n\n if (!this.name && !this.path) {\n throw new Error(routeName + ' :: expected property \\'path\\'');\n }\n\n if (this.url) {\n _logger.$logger.warn(routeName + ' :: unexpected property \\'url\\' :: ' + this.url);\n }\n\n if (this.query && !(this.query instanceof Array)) {\n throw new Error(routeName + ' :: expected property \\'query\\' to be array of query params');\n }\n\n if (this.controller) {\n // throw new Error(`${routeName} :: unexpected property 'controller'`);\n }\n\n if (this.resolve) {\n if (this.resolve.action && !(this.resolve.action instanceof Function)) {\n throw new Error(routeName + ' :: expected property \\'resolve.action\\' to be a function');\n }\n\n Object.keys(this.resolve).forEach(function (name) {\n if (name === 'data') {\n _logger.$logger.warn(routeName + ' :: unexpected resolver :: ' + name);\n } else if (name !== 'action') {\n throw new Error(routeName + ' :: unexpected resolver :: ' + name);\n }\n });\n }\n\n if (this.template) {\n throw new Error(routeName + ' :: unexpected property \\'template\\'');\n }\n\n if (!this.directive && !this.resolve && !this.resolve.action) {\n throw new Error(routeName + ' :: expected property \\'directive\\'');\n }\n\n if (this.directive && angular.isString(this.directive) && !this.getDirective()) {\n throw new Error(routeName + ' :: unknown directive \\'' + this.directive + '\\'');\n }\n\n if (this.directive && !angular.isString(this.directive) && !_component.$Component.isChild(this.directive)) {\n throw new Error(routeName + ' :: expected directive to be subclass of $Component');\n }\n\n if (this.children) {\n this.children.forEach(function (childSpec) {\n\n if (!childSpec.route && !childSpec.name) {\n throw new Error(routeName + ' :: child expected property \\'route\\'');\n }\n\n var ChildRoute = childSpec.route;\n var childName = childSpec.name || ChildRoute.name;\n\n // skip loading route as it won't be available to validate\n if (_config.$meta.codeSplitting && childSpec.lazyRoute) {\n return;\n }\n\n if (!ChildRoute && childSpec.name) {\n try {\n ChildRoute = _angular.$injector.get(childSpec.name);\n } catch (err) {\n throw new Error(routeName + ' :: could not find child route \\'' + childName + '\\'');\n }\n }\n\n if (!$Route.isChild(ChildRoute)) {\n throw new Error(routeName + ' :: ' + childName + ' :: expected child to be instance of $Route');\n }\n });\n }\n },\n goto: function goto(route) {\n return _uiRouter.$state.go(route.replace('this.', this.absolutePath + '.'));\n },\n getDirective: function getDirective() {\n return _angular.$injector.get(_core.$util.dasherizeToCamel(this.getDirectiveTag() + 'Directive'))[0];\n },\n getDirectiveTag: function getDirectiveTag() {\n return angular.isString(this.directive) ? this.directive : this.directive.prototype.tag;\n },\n\n\n bootstrap: function bootstrap(defaultState, middleware) {\n var _this2 = this;\n\n return (0, _ng.$angularInvoke)(function () {\n // only bootstrap if not bootstrapped already\n var element = angular.element(document.body);\n\n if (!element.injector()) {\n angular.bootstrap(element, ['app']);\n }\n\n return _this2.load(defaultState, middleware);\n });\n },\n\n load: function load(defaultState, middleware) {\n\n defaultState = defaultState || this.defaultState;\n middleware = middleware || this.middleware;\n\n _logger.$logger.info('bootstrap_route', {\n route: this.path || this.name\n });\n\n var logStateNotFoundAndThrow = function logStateNotFoundAndThrow(_ref) {\n var unfoundState = _ref.unfoundState,\n fromState = _ref.fromState,\n fromParams = _ref.fromParams,\n _ref$logName = _ref.logName,\n logName = _ref$logName === undefined ? '' : _ref$logName;\n\n _logger.$logger.error('state_not_found' + logName, {\n name: unfoundState.to,\n from: fromState.name,\n fromParams: fromParams,\n hash: window.location.hash\n });\n throw new Error('state_not_found' + logName + ': ' + unfoundState.to);\n };\n\n (0, _ng.$once)('$stateNotFound', function (event, unfoundState, fromState, fromParams) {\n if (!_config.$meta.codeSplitting) {\n event.preventDefault();\n logStateNotFoundAndThrow({ unfoundState: unfoundState, fromState: fromState, fromParams: fromParams });\n }\n });\n\n // for code splitting this event handler will be triggered every single time user tries to load lazy route\n // so we need to have it being listening more than once\n _core.$event.on('$stateNotFound', function (event, unfoundState, fromState, fromParams) {\n if (_config.$meta.codeSplitting) {\n event.preventDefault();\n // if route was not found - lazy load it or throw state_not_found if it was not found\n (0, _lazyLoadRoutes.lazyLoadRoute)(unfoundState.to, unfoundState.toParams)['catch'](function () {\n logStateNotFoundAndThrow({ unfoundState: unfoundState, fromState: fromState, fromParams: fromParams, logName: '_lazy_loading' });\n });\n }\n });\n\n this.register();\n\n _uiRouter.$urlRouterProvider.otherwise(function () {\n return _logger.$logger.info('otherwise_after_bootstrap', {\n hash: window.location.hash\n });\n });\n\n this.runMiddleware(middleware).then(function () {\n var targetState = void 0;\n var targetParams = void 0;\n\n if (window.location.hash && window.location.hash.indexOf('#/') === 0) {\n\n targetState = window.location.hash.slice(2).split('?')[0].replace(/^\\/+/, '').replace(/\\/+$/, '').replace(/\\//g, '.');\n\n targetParams = _core.$util.params(window.location.hash.slice(2).split('?')[1] || '');\n }\n\n _logger.$logger.info('initializing_route', {\n target: targetState,\n defaultState: defaultState,\n hash: window.location.hash\n });\n\n _angular.$location.replace();\n\n /**\n * load default state in case target state was not found\n * e.g checkout.landing - is the default state in Hermes\n */\n var loadDefaultState = function loadDefaultState() {\n if (_uiRouter.$state.get(defaultState)) {\n _logger.$logger.info('default_state', {\n stateName: defaultState\n });\n return _uiRouter.$state.go(defaultState)['catch'](function (err) {\n if (err.message === 'transition prevented') {\n _logger.$logger.warn('transition_prevented', {\n targetState: defaultState\n });\n return _core.$promise.resolve();\n }\n return _core.$promise.reject(err);\n });\n }\n\n throw new Error('Default state not found: ' + defaultState);\n };\n\n if (targetState) {\n var logUnknownState = function logUnknownState() {\n var logName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n\n _logger.$logger.info('unknown_state' + logName, {\n stateName: targetState\n });\n };\n\n if (_uiRouter.$state.get(targetState)) {\n _logger.$logger.info('existing_state', {\n stateName: targetState\n });\n return _uiRouter.$state.go(targetState, targetParams)['catch'](function (err) {\n // lib/js/security.js event listener handles auth required state changes\n // and cancels transitions if user not authenticated\n if (err.message === 'transition prevented') {\n _logger.$logger.warn('transition_prevented', {\n targetState: targetState\n });\n return _core.$promise.resolve();\n }\n return _core.$promise.reject(err);\n });\n } else if (_config.$meta.codeSplitting) {\n // try to lazy load route and catch / handle redirect errors\n // 1. If route was not found -> log and try to load default state\n // 2. If route was found but redirect throws an error -> reject\n return (0, _lazyLoadRoutes.lazyLoadRoute)(targetState, targetParams)['catch'](function (err) {\n if (err.message === 'lazy_loading_state_was_not_loaded') {\n logUnknownState('_lazy_loading');\n return loadDefaultState();\n } else {\n return _core.$promise.reject(err);\n }\n });\n } else {\n logUnknownState();\n }\n }\n return loadDefaultState();\n })['catch'](function (err) {\n return _angular.$injector.get('$exceptionHandler')(err);\n });\n },\n\n runMiddleware: function runMiddleware(middleware) {\n\n _logger.$logger.info('middleware', {\n priority: _core.$util.map(middleware, function (method) {\n return method.name;\n }).join('|')\n });\n\n var promise = _core.$promise.resolve();\n\n angular.forEach(middleware, function (method) {\n promise = promise.then(function () {\n\n if (method.name) {\n _logger.$logger.info('middleware_' + method.name);\n }\n\n return method();\n });\n });\n\n return promise;\n },\n\n register: function register() {\n var _this3 = this;\n\n this.template = this.constructTemplate(this.childAttributes || {});\n\n this.absolutePath = this.path || this.name;\n\n if (this.parent) {\n this.absolutePath = this.parent.absolutePath + '.' + this.absolutePath;\n }\n\n if (!_uiRouter.$state.get(this.absolutePath)) {\n _uiRouter.$stateProvider.state(this.absolutePath, this);\n }\n\n angular.forEach(this.children, function (childSpec) {\n // skip registering child if it's supposed to be lazy loaded\n if (_config.$meta.codeSplitting && childSpec.lazyRoute) {\n return;\n }\n var ChildRoute = childSpec.route || _angular.$injector.get(childSpec.name);\n\n var childRoute = new ChildRoute({\n parent: _this3,\n childSpec: childSpec,\n childAttributes: childSpec.attributes\n });\n\n childRoute.register();\n });\n },\n\n /**\n * Constructs the template string for this route. If route.directive = 'xo-add-bank', then the template will be\n * ''.\n * If attributes are specified, they will be passed to directive. Ex: \n *\n * @param attributes - A map of name value pairs - {name: value}.\n * @returns {string}\n */\n constructTemplate: function constructTemplate(attributes) {\n var self = this;\n\n if (!self.directive) {\n return;\n }\n\n attributes['component-route'] = 'route';\n\n if (this.parent) {\n attributes['export'] = 'view';\n }\n\n var tag = this.getDirectiveTag();\n\n var paramString = '';\n\n angular.forEach(attributes, function (value, key) {\n paramString += ' ' + key + '=\"' + value + '\"';\n });\n\n return '
';\n }\n});\n\nif (!_uiRouter.$state.get('default')) {\n _uiRouter.$stateProvider.state('default', {\n auth: false\n });\n}\n\n$Route.reopenClass({\n render: function render(props) {\n\n _core.$event.emit('$resetState');\n _core.$loader.reset();\n _uiRouter.$state.go('default');\n setTimeout.flush();\n\n var $scope = angular.extend(_angular.$rootScope.$new(), props);\n\n var cleanRootScope = (0, _ng.$cleanRootScope)(_angular.$rootScope);\n var element = (0, _angular.$compile)('
')($scope);\n\n afterEach(_core.$util.once(function () {\n $scope.$destroy();\n cleanRootScope();\n _core.$loader.reset();\n angular.element(document.getElementById('app')).remove();\n }));\n\n var route = new this({\n // Pass child attributes to simulate a route receiving scope variables from the parent\n childAttributes: _core.$util.reduce(props, function (result, val, key) {\n result[_core.$util.camelToDasherize(key)] = key;\n return result;\n }, {})\n });\n\n route.bootstrap(route.defaultState || route.path || route.name);\n setTimeout.flush();\n\n element.isolateScope = function () {\n throw new Error('Please test this element by interfacing with its public api: define mock endpoints, and interact with html links, buttons and form fields');\n };\n\n // attaching to the document so DOM Api works in karma flow tests (e.g document.getElementById('myId'))\n angular.element(document.body).append(element);\n\n return element;\n },\n\n\n assertActive: function assertActive() {\n var isState = _uiRouter.$state.current instanceof this;\n\n if (!isState) {\n throw new Error('Current state should be \"' + (this.prototype.path || this.prototype.name) + '\", found \"' + _uiRouter.$state.current.name + '\"');\n }\n }\n});\n\nfunction getPageTitle(stateName) {\n\n var state = _uiRouter.$state.get(stateName);\n\n if (!state) {\n return;\n }\n\n if (state.titleContent) {\n return _locale.$locale.content.get(state.titleContent);\n }\n}\n\nfunction changePageTitle() {\n\n document.documentElement.setAttribute('lang', _locale.$locale.lang);\n\n if (!_uiRouter.$state.current || !_uiRouter.$state.current.name) {\n return;\n }\n\n var fullStateTitle = [];\n\n _uiRouter.$state.current.name.split('.').reduce(function (a, b) {\n\n var stateName = [a, b].filter(Boolean).join('.');\n var stateTitle = getPageTitle(stateName);\n\n if (stateTitle) {\n fullStateTitle.push(stateTitle);\n }\n\n return stateName;\n }, null);\n\n document.title = _core.$util.unique(fullStateTitle).join(' - ');\n}\n\n_core.$event.on('$stateChangeSuccess', changePageTitle);\n_core.$event.on('contentChange', changePageTitle);\n\nvar $ComponentRoute = exports.$ComponentRoute = $Route;\n\nangular.value(\"$Route\", $Route);\nangular.value(\"$ComponentRoute\", $ComponentRoute);\n_angular.$rootScope;\n\n_angular.$location;\n\n_angular.$injector;\n\n_angular.$compile;\n\n_uiRouter.$state;\n\n_uiRouter.$stateProvider;\n\n_uiRouter.$urlRouterProvider;\n\n_logger.$logger;\n\n_core.$config;\n\n_core.$Class;\n\n_core.$util;\n\n_core.$promise;\n\n_core.$event;\n\n_core.$loader;\n\n_locale.$locale;\n\n_component.$Component;\n\n_ng.$cleanRootScope;\n\n_ng.$angularInvoke;\n\n_ng.$once;\n\n_config.$meta;\n\n_lazyLoadRoutes.lazyLoadRoute;\n\n/***/ }),\n\n/***/ \"../node_modules/squid/dist/paypal/config.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nvar _core = __webpack_require__(\"../node_modules/squid/dist/core/index.js\");\n\nvar _env = __webpack_require__(\"../node_modules/squid/dist/paypal/env.js\");\n\n_core.$config.deploy = _core.$config.deploy || _env.$env;\n\n_core.$config;\n\n_env.$env;\n\n/***/ }),\n\n/***/ \"../node_modules/squid/dist/paypal/env.js\":\n/***/ (function(module, exports) {\n\n\n\nexports.__esModule = true;\nvar $env = exports.$env = {\n\n isLocal: function isLocal() {\n return window.location.hostname === 'localhost' || window.location.hostname === 'localhost.paypal.com';\n },\n\n isStage: function isStage() {\n return Boolean(window.location.hostname.match(/^.*\\.qa\\.paypal\\.com$/));\n },\n\n isSandbox: function isSandbox() {\n return Boolean(window.location.hostname.match(/^.*\\.sandbox\\.paypal\\.com$/));\n },\n\n isLive: function isLive() {\n return window.location.hostname === 'www.paypal.com';\n },\n\n isTest: function isTest() {\n return false;\n }\n};\n\nangular.value(\"$env\", $env);\n\n/***/ }),\n\n/***/ \"../node_modules/squid/dist/paypal/index.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _env = __webpack_require__(\"../node_modules/squid/dist/paypal/env.js\");\n\nObject.keys(_env).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _env[key];\n }\n });\n});\n\nvar _config = __webpack_require__(\"../node_modules/squid/dist/paypal/config.js\");\n\nObject.keys(_config).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _config[key];\n }\n });\n});\n\nvar _pxp = __webpack_require__(\"../node_modules/squid/dist/paypal/pxp.js\");\n\nObject.keys(_pxp).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _pxp[key];\n }\n });\n});\n\n/***/ }),\n\n/***/ \"../node_modules/squid/dist/paypal/pxp.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.$PXPModel = undefined;\nexports.$getPxpTreatments = $getPxpTreatments;\nexports.$pxp = $pxp;\nexports.$pxpMatch = $pxpMatch;\nexports.$pxpFactors = $pxpFactors;\nexports.$elmo = $elmo;\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\nvar _core = __webpack_require__(\"../node_modules/squid/dist/core/index.js\");\n\nvar _locale = __webpack_require__(\"../node_modules/squid/dist/locale/index.js\");\n\nvar $PXPModel = exports.$PXPModel = _core.$Model.extend({\n api: new _core.$Api({\n uri: '/api/pxp/:pagename'\n })\n});\n\nfunction logPxp(pxpRes, params, logPayload) {\n var exp_name = [];\n var xe = [];\n var xt = [];\n var isElmoExperiment = params.isElmoExperiment;\n\n angular.forEach(pxpRes.treatments, function (treatment) {\n\n _logger.$logger.info('treatment_' + treatment.treatment_name, angular.extend({\n experiment: pxpRes.pagename,\n treatment: treatment.treatment_name,\n experiment_id: treatment.experiment_id,\n treatment_id: treatment.treatment_id,\n loc_country: _locale.$locale.country,\n loc_lang: _locale.$locale.lang,\n exp_source: isElmoExperiment ? 'elmo' : 'pxp'\n }, params, logPayload));\n\n exp_name.push(treatment.treatment_name);\n xe.push(treatment.experiment_id);\n xt.push(treatment.treatment_id);\n });\n\n _logger.$logger.info('pxp_' + pxpRes.pagename, angular.extend({\n pxp_exp_id: xe.join('|'),\n pxp_trtmnt_id: xt.join('|'),\n treatments: exp_name.join('|'),\n loc_country: _locale.$locale.country,\n loc_lang: _locale.$locale.lang,\n exp_source: isElmoExperiment ? 'elmo' : 'pxp'\n }, params, logPayload));\n\n _logger.$logger.info('fpti_pxp_check', {\n from: 'PXP_CHECK',\n to: 'process_pxp_check',\n pxp_exp_id: xe.join(','),\n pxp_trtmnt_id: xt.join(','),\n exp_source: isElmoExperiment ? 'elmo' : 'pxp'\n });\n\n _core.$event.emit('pxp_res', pxpRes);\n}\n\nfunction $getPxpTreatments(id, params, logPayload) {\n var forceApiCall = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n var silent = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;\n var isElmoExperiment = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : false;\n\n\n return _core.$promise.run(function () {\n if (isElmoExperiment) {\n Object.assign(params, { isElmoExperiment: isElmoExperiment });\n }\n\n var pxp = $PXPModel.instance(_core.$util.buildURL(id, params), { pagename: id });\n var forceTreatments = _core.$util.param('pxp_' + id) || _core.$util.param('elmo_' + id);\n\n if (forceTreatments) {\n var treatments = forceTreatments.split(',').filter(Boolean);\n\n pxp.treatments = treatments.map(function (treatment_name) {\n return {\n treatment_name: treatment_name\n };\n });\n\n return pxp;\n }\n\n if (forceApiCall) {\n pxp.cached = false;\n\n return pxp.reload({\n params: params,\n silent: silent\n });\n }\n\n return pxp.retrieve({\n params: params,\n silent: silent,\n // Ignore all errors from this api, by passing transientError as true\n // Pxps are not critical calls, so they should fail silently without fallbacks (page reload / showing error page)\n transientError: true\n });\n }).then(function (pxp) {\n if (!pxp.cached) {\n logPxp(pxp, params, logPayload);\n }\n\n pxp.cached = true;\n\n return pxp;\n });\n}\n\nfunction $pxp(id, params, pattern) {\n var forceApiCall = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n var silent = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;\n var isElmoExperiment = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : false;\n\n if (!pattern) {\n pattern = params;\n params = {};\n }\n\n pattern = new RegExp('^' + pattern + '$');\n\n return exports.$getPxpTreatments(id, params, null, forceApiCall, silent, isElmoExperiment).then(function (experimentResponse) {\n var result = void 0;\n\n (experimentResponse.treatments || []).some(function (treatment) {\n if (!pattern.test(treatment.treatment_name)) {\n return false;\n }\n\n result = {\n treatment_name: treatment.treatment_name,\n factors: treatment.factors\n };\n\n return true;\n });\n\n return result;\n });\n}\n\nfunction $pxpMatch(id, params, patterns, logPayload) {\n if (!patterns) {\n patterns = params;\n params = {};\n }\n\n return exports.$getPxpTreatments(id, params, logPayload).then(function (pxpResponse) {\n var result = {};\n\n angular.forEach(patterns, function (pattern, name) {\n pattern = new RegExp('^' + pattern + '$');\n result[name] = false;\n\n (pxpResponse.treatments || []).some(function (treatment) {\n if (!pattern.test(treatment.treatment_name)) {\n return false;\n }\n\n result[name] = true;\n return true;\n });\n });\n\n return result;\n });\n}\n\nfunction $pxpFactors(id, params, pattern) {\n params.factors = 'true';\n return $pxp(id, params, pattern).then(function (pxpResponse) {\n var result = void 0;\n\n if (pxpResponse && pxpResponse.factors) {\n result = { treatment_name: pxpResponse.treatment_name };\n var pxpFactors = pxpResponse.factors;\n var length = pxpFactors.length;\n\n for (var i = 0; i < length; i++) {\n result[pxpFactors[i].name] = pxpFactors[i].value;\n }\n }\n\n return result;\n });\n}\n\nfunction $elmo(id, params, pattern) {\n var forceApiCall = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n var silent = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true;\n\n var isElmoExperiment = true;\n\n return $pxp(id, params, pattern, forceApiCall, silent, isElmoExperiment);\n}\n\nwindow.$pxp = $pxp;\nwindow.$elmo = $elmo;\n\nangular.value(\"$PXPModel\", $PXPModel);\nangular.value(\"$getPxpTreatments\", $getPxpTreatments);\nangular.value(\"$pxp\", $pxp);\nangular.value(\"$pxpMatch\", $pxpMatch);\nangular.value(\"$pxpFactors\", $pxpFactors);\nangular.value(\"$elmo\", $elmo);\n_logger.$logger;\n\n_core.$Model;\n\n_core.$Api;\n\n_core.$util;\n\n_core.$promise;\n\n_core.$event;\n\n_locale.$locale;\n\n/***/ }),\n\n/***/ \"../node_modules/ul-inline/dist/inject.js\":\n/***/ (function(module, exports) {\n\n/*** IMPORTS FROM imports-loader ***/\n(function() {\n\n!function(a,b){a.PAYPAL=a.PAYPAL||{},a.PAYPAL.unifiedLogin=b()}(this,function(){function a(a,b){var c,d={src:a,height:b.height||239,style:\"width: 100%;\",name:b.name||\"injectedUl\",frameborder:0,scrolling:b.scrolling||\"no\",title:b.title||\"PayPal\",sandbox:\"allow-same-origin allow-scripts allow-popups allow-forms allow-top-navigation\"},e=document.createElement(\"iframe\");b.hide&&(d.style=d.style+\"display: none;\");for(c in d)e.setAttribute(c,d[c]);return e}function b(a,b,c){var d,e=a||window.location.origin||window.location.protocol+\"//\"+window.location.host,f=e+(c||\"/signin/inject/\"),g=b?\"?\":\"\",h=0;if(!b)return f;for(d in b)h>0&&(g+=\"&\"),g=g+d+\"=\"+encodeURIComponent(b[d]),h+=1;return f+g}function c(a){var b,c=\"\";try{if(a.source.name!==q.name)return}catch(d){return}if(b=g(a.origin),!f(b))throw new Error(\"PostMessage iframe domain (\"+b+\"), must be a *.paypal.com domain\");if(c=a&&a.data,\"string\"==typeof c)try{c=JSON.parse(c)}catch(h){throw new Error(\"Invalid JSON string sent to onPostMessage handler: \"+c)}c.data&&\"resize\"===c.data.event?e(q,c.data.heightInPx):c.data&&\"htmlRendered\"===c.data.event?x=!0:!w&&p?p(c):w&&v.push(c)}function d(a){a&&\"resize\"===a.event?e(s,a.heightInPx):r(a)}function e(a,b){a.setAttribute(\"height\",b)}function f(a){var b=/\\.paypal\\.com$/gi;return b.test(a)}function g(a){if(a){var b=/^https?:\\/\\/(.*\\.paypal\\.com)(:[0-9]+)?$/gi,c=b.exec(a);return c&&c[1]}}function h(){var a;if(p){for(a=0;a 1) {\n // populate line2 from the last element\n line2 = array.pop();\n }\n line1 = array.join(COMMA);\n\n var displayLine1 = line1 + prefix(line2, COMMA);\n var displayLine2 = prefix(address.city) + prefix(address.state, COMMA) + prefix(address.postal_code, SPACE);\n var displayLine3 = prefix(address.country);\n\n return {\n line1: line1,\n line2: line2,\n city: address.city,\n state: address.state,\n postal_code: address.postal_code,\n country: address.country,\n displayLine1: displayLine1,\n displayLine2: displayLine2,\n displayLine3: displayLine3,\n dropDownAddress: displayLine1 + prefix(displayLine2, ' \\\\n ') + prefix(displayLine3, ' \\\\n ')\n };\n }\n\n function populateAddressFormFields(address) {\n $scope.address.line1 = address.line1;\n $scope.address.line2 = address.line2;\n $scope.address.city = address.city;\n $scope.address.state = address.state;\n $scope.address.postal_code = address.postal_code;\n $scope.address.neighborhood = address.neighborhood;\n }\n\n /**\n * Show error message and display the full-address fields\n */\n function populateErrorMessage() {\n var messages = [];\n\n messages.push($scope.locale.content.get('addressBook.lookupError'));\n $scope.lookupFailureMessage = {\n msgs: messages,\n type: 'warning'\n };\n $scope.isShowLookupFields = false;\n $scope.isLookupFailure = true;\n }\n\n function processLookupResult(list) {\n if (list.length > 1) {\n // Show drop-down list of all addresses\n $scope.isLookupSuccess = true;\n $scope.isShowLookupDropDown = true;\n $scope.lookupAddressList = list.map(function (addr) {\n return getAddress(addr);\n });\n } else if (list.length === 1) {\n // Show single address component\n $scope.isLookupSuccess = true;\n $scope.isShowLookupDropDown = false;\n\n var address = getAddress(list[0]);\n\n $scope.singleAddress = address;\n populateAddressFormFields(address);\n } else {\n populateErrorMessage();\n }\n }\n\n if ($scope.address) {\n $scope.lastPrefilledZip = $scope.address.postal_code;\n }\n\n $scope.prefill = function () {\n var cepPattern = /^(\\d{5}-\\d{3}|\\d{5}|\\d{8})$/;\n var first_name = void 0;\n var last_name = void 0;\n\n if ($scope.lastPrefilledZip === $scope.address.postal_code || !cepPattern.test($scope.address.postal_code)) {\n return;\n }\n\n if ($scope.isShipping) {\n first_name = $scope.address.first_name;\n last_name = $scope.address.last_name;\n }\n\n $scope.prefillAddress = new _index.$PrefillAddressModel({\n id: $scope.token,\n address: {\n country: $scope.address.country,\n postal_code: $scope.address.postal_code\n }\n });\n\n return $scope.prefillAddress.save({\n data: $scope.prefillAddress,\n success: function success(result) {\n if (result) {\n populateAddressFormFields(result);\n $scope.lastPrefilledZip = $scope.address.postal_code;\n if ($scope.isShipping) {\n $scope.address.first_name = first_name;\n $scope.address.last_name = last_name;\n }\n }\n }\n });\n };\n\n $scope.findAddress = function () {\n $scope.lookupAddress = _index.$PrefillAddressModel.create($scope.token, {\n address: {\n country: $scope.address.country,\n postal_code: $scope.address.postal_code,\n house_number: $scope.address.house_number,\n building_name: $scope.address.building_name\n }\n });\n\n if (document.querySelector('#lookupZip.ng-invalid')) {\n document.querySelector('#addressLookupFields').classList.add('validated');\n } else {\n $scope.isLookupProcessing = true;\n $scope.lookupAddress.save({\n data: $scope.lookupAddress,\n silent: true,\n success: function success(result) {\n processLookupResult(result);\n $scope.hideButtonHandler(false);\n },\n contingencies: {\n INTERNAL_ERROR: populateErrorMessage\n }\n });\n }\n };\n\n $scope.changeAddressDropDown = function () {\n populateAddressFormFields($scope.address.selectedAddress);\n };\n\n $scope.showFullAddress = function () {\n $scope.isShowLookupFields = false;\n $scope.hideButtonHandler(false);\n };\n\n /**\n * Pass an array of group names to retrieve the list of states\n * e.g. ['england', 'northernIreland', 'scotland', 'wales', 'ukOffshoreDependencies']\n */\n var stateNamesInGroup = [];\n\n $scope.retrieveStateNamesInGroup = function (groups) {\n if (stateNamesInGroup.length) {\n // Angular keeps watching for this method as its used in ng-model, hence return cached data.\n return stateNamesInGroup;\n }\n var content = _squid.$locale.content;\n\n angular.forEach(groups, function (group) {\n var groupName = content.common[group];\n var statesList = content[group];\n\n angular.forEach(statesList, function (value, key) {\n stateNamesInGroup.push({\n key: key,\n value: value,\n group: groupName\n });\n });\n });\n return stateNamesInGroup;\n };\n\n $scope.zipCodeBlur = function () {\n if ($scope.triggerZipCodeBlur) {\n _angular.$rootScope.$emit('zip_code_blur');\n }\n };\n\n $scope.zipCodeKeyPress = function (event) {\n if ($scope.triggerZipCodeKeyPress) {\n _angular.$rootScope.$emit('zip_code_keypress', { event: event });\n }\n };\n }]\n});\n\nangular.value(\"$xoAddAddressComponent\", $xoAddAddressComponent);\n_angular.$rootScope;\n\n_squid.$Component;\n\n_squid.$feature;\n\n_squid.$locale;\n\n_squid.$MetadataModel;\n\n_index.$PrefillAddressModel;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-address-components/src/add-address/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n \\n
\\n
\\n \\n\\n
\\n
\\n
\\n \\n \\n
\\n
\\n \\n \\n
\\n
\\n
\\n \\n \\n
\\n
\\n \\n \\n
\\n
\\n
\\n \\n \\n
\\n
\\n \\n \\n
\\n
\\n
\\n
\\n\\n
\\n \\n
\\n
\\n
\\n {{ content('addressBook.address') }}\\n
\\n
\\n \\n
\\n
\\n
\\n \\n \\n
\\n
\\n \\n \\n
\\n
\\n \\n \\n
\\n
\\n
\\n \\n \\n
\\n
\\n \\n \\n
\\n
\\n
\\n \\n \\n
\\n
\\n
\\n {{ content('addBillingAddress.lookupTitle') }}\\n {{ content('addressBook.enterFullAddress') }}\\n
\\n
\\n
\\n \\n \\n
\\n
\\n
\\n \\n \\n
\\n
\\n \\n \\n
\\n \\n
\\n
\\n
\\n {{ content('addressBook.address') }}\\n \\n {{ content('common.change') }}\\n \\n
\\n
\\n\\n \\n
\\n
\\n {{ singleAddress.displayLine1 }}
\\n {{ singleAddress.displayLine2 }}
\\n {{ singleAddress.displayLine3 }}\\n
\\n
\\n
\\n \\n
\\n \\n \\n
\\n
\\n
\\n
\\n \\n \\n
\\n
\\n
\\n
\\n \\n \\n
\\n
\\n
\\n
\\n \\n \\n
\\n
\\n
\\n
\\n \\n \\n
\\n
\\n \\n \\n
\\n
\\n
\\n
\\n \\n \\n
\\n
\\n
\\n
\\n \\n\\n
\\n \\n
\\n
\\n
\\n \\n \\n
\\n
\\n
\\n
\\n \\n \\n
\\n
\\n
\\n
\\n \\n \\n
\\n
\\n
\\n
\\n \\n \\n
\\n
\\n \\n \\n
\\n
\\n
\\n \\n
\\n
\\n \\n
\\n
\\n \\n \\n
\\n\\n
\\n \\n \\n
\\n\\n
\\n \\n \\n
\\n\\n
\\n \\n \\n
\\n
\\n
\\n
\\n\\n
\\n \\n \\n
\\n\\n
\\n \\n \\n
\\n
\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-address-components/src/address-display/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.$xoAddressDisplayComponent = undefined;\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-address-components/src/address-display/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\n__webpack_require__(\"../node_modules/xo-address-components/src/address-display/styles.less\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar $xoAddressDisplayComponent = exports.$xoAddressDisplayComponent = _squid.$Component.extend('$xoAddressDisplayComponent', {\n tag: 'xo-address-display',\n template: _template2['default'],\n props: {\n address: {\n type: 'var',\n required: false\n },\n showPreferred: {\n type: 'str',\n required: false\n },\n countryCode: {\n type: 'var',\n required: false\n },\n displayFormattedAddr: {\n type: 'var',\n required: false\n }\n },\n actions: {\n formatAddress: function formatAddress(address) {\n var COMMA = ', ';\n var SPACE = ' ';\n\n function prefix(str, prefixStr) {\n if (str) {\n return (prefixStr ? prefixStr : '') + str;\n }\n return '';\n }\n\n var displayLine1 = (address.line1 ? address.line1 : '') + (address.line2 ? prefix(address.line2, COMMA) : '');\n var displayLine2 = (address.city ? prefix(address.city) : '') + (address.state ? prefix(address.state, COMMA) : '') + (address.postal_code ? prefix(address.postal_code, SPACE) : '');\n var displayLine3 = address.country ? prefix(address.country) : '';\n\n return {\n displayLine1: displayLine1,\n displayLine2: displayLine2,\n displayLine3: displayLine3\n };\n }\n },\n lifecycle: {\n populate: function populate() {\n var _this = this;\n\n var address = this.props.address || {};\n var countryCode = typeof this.props.countryCode === 'undefined' ? address.country || address.country_code : this.props.countryCode;\n\n this.isPreferred = this.props.showPreferred && address.preferred_address && (0, _squid.$feature)('preferredShipping', false, countryCode);\n if (this.props.displayFormattedAddr) {\n this.formattedAddr = this.actions.formatAddress(address);\n this.$watchCollection('props.address', function (newVal) {\n _this.formattedAddr = _this.actions.formatAddress(newVal);\n });\n }\n }\n }\n});\n\nangular.value(\"$xoAddressDisplayComponent\", $xoAddressDisplayComponent);\n_squid.$Component;\n\n_squid.$feature;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-address-components/src/address-display/styles.less\":\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ \"../node_modules/xo-address-components/src/address-display/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n {{props.address.full_address}}\\n {{content('countryList.'+props.address.country)}}\\n
\\n\\n
\\n {{formattedAddr.displayLine1}}
\\n {{formattedAddr.displayLine2}}
\\n {{formattedAddr.displayLine3}}\\n
\\n\\n
\\n \\n {{content('shippingAddress.preferred')}}\\n \\n
\\n
\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-address-components/src/address-normalization/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function($) {\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _index = __webpack_require__(\"../node_modules/xo-models/src/address/index.js\");\n\n__webpack_require__(\"../node_modules/xo-page-components/src/aside-header/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-tray-height/dist/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-address-components/src/address-normalization/styles.less\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-address-components/src/address-normalization/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nangular.module().directive('xoAddressNormalization', function () {\n return {\n template: _template2['default'],\n scope: {\n id: '=?',\n address: '=?',\n doneFn: '=?',\n sidebar: '=?',\n hideBackButton: '=?'\n },\n\n controller: ['$scope', function ($scope) {\n _squid.$util.assert($scope.address, 'Original Address cannot be empty');\n\n $scope.showNormalization = false;\n\n var normalize = (0, _squid.$feature)('addressNormalization', false, $scope.address.country);\n if (!normalize) {\n $scope.doneFn($scope.address, false);\n return;\n }\n\n var userEnteredAddress;\n var addrFormat = (0, _squid.$feature)('FormatAddressForNormalization', $scope.address.country, $scope.address.country);\n\n $scope.addressSelected = 'normalizedAddress';\n $scope.transitionName = 'address_normalization_normalizedAddress';\n\n // Brazil specific format\n if (addrFormat === 'AddressBR') {\n userEnteredAddress = angular.fromJson(angular.toJson($scope.address));\n userEnteredAddress.line1 = $scope.address.line1 + ' ' + $scope.address.streetNumber;\n userEnteredAddress.line2 = $scope.address.neighborhood;\n }\n\n $scope.servAddress = userEnteredAddress ? userEnteredAddress : $scope.address;\n $scope.servAddress.normalization_status = 'UNNORMALIZED_USER_PREFERRED';\n\n $scope.addressNormalization = new _index.$AddressNormalizationModel({\n id: $scope.id,\n address: $scope.servAddress\n });\n\n function centerLightBox() {\n var element = $('#lbox');\n if (!element.length) {\n return;\n }\n\n var windowElement = $(window);\n var lboxContainerElem = $('#lboxContainer');\n element.css('top', Math.max(0, (windowElement.height() - element.outerHeight()) / 2) + 'px');\n element.css('width', '65%');\n var computedLeft = (windowElement.width() - element.outerWidth()) / 2;\n var leftBound = lboxContainerElem.offset().left + lboxContainerElem.width() * 0.1;\n var elementLeft = computedLeft < leftBound ? leftBound : computedLeft;\n if (computedLeft < leftBound) {\n element.css('width', lboxContainerElem.width() * 0.8);\n }\n element.css('left', Math.max(0, elementLeft) + 'px');\n return element;\n }\n\n function trinityResponseCallback() {\n $scope.showNormalization = true;\n\n // default behavior of $timeout with no 2nd param is to wait for dom to finish rendering before executing callback\n (0, _angular.$timeout)(function () {\n centerLightBox();\n $(window).resize(centerLightBox);\n });\n }\n\n $scope.addressNormalization.save({\n data: $scope.addressNormalization,\n\n contingencies: {\n VALIDATION_ERROR: function VALIDATION_ERROR() {\n trinityResponseCallback();\n $scope.transitionName = 'address_normalization_enteredAddress';\n return;\n }\n },\n\n success: function success(result) {\n trinityResponseCallback();\n if (result === false) {\n // trinity doesn't find any match\n $scope.transitionName = 'address_normalization_enteredAddress';\n return;\n }\n $scope.normalizedAddress = result;\n $scope.normalizedAddress.normalization_status = 'NORMALIZED';\n\n if (addrFormat === 'AddressBR') {\n $scope.normalizedAddress.line1 = $scope.normalizedAddress.streetName + ' ' + $scope.normalizedAddress.streetNumber;\n $scope.normalizedAddress.line2 = $scope.normalizedAddress.neighborhood;\n }\n\n // if the two addresses equal, no need to show the panel\n if ($scope.isEqual($scope.normalizedAddress, $scope.servAddress)) {\n if ($scope.servAddress.preferred_address) {\n $scope.normalizedAddress.preferred_address = true;\n }\n\n if (addrFormat === 'AddressBR' && $scope.address.line2) {\n $scope.normalizedAddress.line1 = $scope.normalizedAddress.line1 + ' ' + $scope.address.line2;\n }\n $scope.callback($scope.normalizedAddress, false);\n } else if (addrFormat === 'AddressBR' && $scope.address.line2) {\n $scope.normalizedAddress.line1 = $scope.normalizedAddress.line1 + ' ' + $scope.address.line2;\n }\n },\n\n error: trinityResponseCallback\n });\n\n // make space and case insensitive. sub empty vals for undefined.\n function desensitizedAddress(addr) {\n for (var key in addr) {\n var val = addr[key];\n if (addr.hasOwnProperty(key)) {\n if (val && val.length) {\n addr[key] = val.trim().toLowerCase();\n } else {\n addr[key] = undefined;\n }\n }\n }\n return addr;\n }\n\n // check if the two address are the same\n $scope.isEqual = function (address1, address2) {\n var addressOne = desensitizedAddress(JSON.parse(JSON.stringify(address1)));\n var addressTwo = desensitizedAddress(JSON.parse(JSON.stringify(address2)));\n\n if (!addressOne || !addressTwo) {\n return false;\n }\n\n return addressOne.line1 === addressTwo.line1 && addressOne.line2 === addressTwo.line2 && addressOne.city === addressTwo.city && addressOne.state === addressTwo.state && addressOne.postal_code === addressTwo.postal_code && addressOne.country === addressTwo.country;\n };\n\n // Australia displays address line2 first\n $scope.isLine2First = function () {\n return $scope.address.country === 'AU';\n };\n\n $scope.onBack = function () {\n $scope.callback($scope.address, true);\n };\n\n $scope.selection = function (value) {\n $scope.transitionName = 'address_normalization_' + value;\n };\n\n $scope.onContinue = function () {\n $scope.addressSelected = this.addressNormalizationForm.addressSelected;\n\n if ($scope.addressSelected && $scope.addressSelected.$modelValue === 'normalizedAddress') {\n if ($scope.servAddress.preferred_address) {\n $scope.normalizedAddress.preferred_address = true;\n }\n $scope.callback($scope.normalizedAddress, false);\n } else {\n $scope.servAddress.normalization_status = 'UNNORMALIZED_USER_PREFERRED';\n if (addrFormat === 'AddressBR' && $scope.address.line2) {\n $scope.servAddress.line1 = $scope.servAddress.line1 + ' ' + $scope.address.line2;\n }\n $scope.callback($scope.servAddress, false);\n }\n };\n\n $scope.callback = function (address, isBack) {\n $scope.doneFn(address, isBack);\n };\n }]\n };\n});\n\n_angular.$timeout;\n\n_squid.$feature;\n\n_squid.$util;\n\n_index.$AddressNormalizationModel;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/jquery/dist/jquery.min.js\")))\n\n/***/ }),\n\n/***/ \"../node_modules/xo-address-components/src/address-normalization/route.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.$AddressNormalizationRoute = undefined;\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\n__webpack_require__(\"../node_modules/xo-address-components/src/address-normalization/directive.js\");\n\nvar $AddressNormalizationRoute = exports.$AddressNormalizationRoute = _squid.$ComponentRoute.extend('AddressNormalizationRoute', {\n name: 'addressNormalization',\n titleContent: 'addressNormalization.addressmatch',\n directive: 'xo-address-normalization',\n trackingData: {\n fptiState: 'address_normalization',\n buzname: {\n 'fullpage': {\n 'pagename': '%::address_normalization',\n 'pagename2': '%::address_normalization:member:hermes:',\n 'version': 'member:%:'\n }\n }\n },\n loginRequired: true,\n\n children: []\n});\n\nangular.value(\"$AddressNormalizationRoute\", $AddressNormalizationRoute);\n_squid.$ComponentRoute;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-address-components/src/address-normalization/styles.less\":\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ \"../node_modules/xo-address-components/src/address-normalization/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n \\n
\\n
\\n
\\n

{{ content('addressNormalization.title') }}

\\n

{{ content('addressNormalization.intro') }}

\\n
\\n

\\n \\n
\\n
\\n

\\n\\n \\n
\\n
\\n
\\n

{{ content('addressNormalization.noaddressmatchTitle') }}

\\n

{{ content('addressNormalization.noaddressmatchMsg') }}

\\n \\n
\\n

{{ content('addressNormalization.addressyouenter') }}

\\n
\\n
\\n {{servAddress.line2}} {{servAddress.line1}},\\n
\\n
\\n
{{servAddress.line1}}, {{address.line2}}, {{servAddress.line2}}
\\n
{{servAddress.line1}}, {{servAddress.line2}}
\\n
\\n
\\n {{servAddress.city}}, {{servAddress.state}}\\n {{servAddress.postal_code}}, {{content('countryList.'+servAddress.country)}}\\n
\\n
\\n
\\n
\\n
\\n \\n \\n
\\n
\\n \\n
\\n
\\n
\\n
\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-beaver/dist/level.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(module, __dirname, __filename) {\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _angular2 = _interopRequireDefault(_angular);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n(function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n})(window.angular);\n\n_angular2['default'].module('beaver.level', []).factory('$logLevel', function () {\n return {\n INFO: 'info',\n DEBUG: 'debug',\n ERROR: 'error',\n WARN: 'warn',\n ALERT: 'alert'\n };\n}).factory('$consoleLogLevel', function () {\n return {\n info: 'info',\n debug: 'debug',\n error: 'error',\n warn: 'warn',\n alert: 'info'\n };\n});\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/webpack/buildin/module.js\")(module), \"../node_modules/xo-beaver/dist\", \"../node_modules/xo-beaver/dist/level.js\"))\n\n/***/ }),\n\n/***/ \"../node_modules/xo-beaver/dist/logger.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(module, __dirname, __filename) {\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _angular2 = _interopRequireDefault(_angular);\n\nvar _level = __webpack_require__(\"../node_modules/xo-beaver/dist/level.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n/* eslint-disable angular/di */\n\n(function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n})(window.angular);\n\n_angular2['default'].module().factory('$Logger', function () {\n var logger = {};\n var HERMES_DEV_COOKIE = 'hermesdev';\n\n _angular2['default'].forEach(_level.$logLevel, function (level) {\n logger[level] = function (event, payload, settings) {\n return this.log(level, event, payload, settings);\n };\n });\n\n var hostname = _angular.$window.location && _angular.$window.location.hostname || '';\n var uniqueEvents = [];\n\n _angular2['default'].extend(logger, {\n autoLog: [_level.$logLevel.WARNING, _level.$logLevel.ERROR],\n flushInterval: 10 * 60 * 1000,\n heartbeatInterval: 5000,\n sizeLimit: 500,\n debounceInterval: 10,\n uri: '/api/log',\n rootTxnUri: '/api/log/crt',\n hearbeatMaxThreshold: 50,\n deploy: {\n isLocal: function isLocal() {\n return hostname === 'localhost' || hostname === 'localhost.paypal.com';\n },\n\n isStage: function isStage() {\n return Boolean(hostname.match(/^.*\\.qa\\.paypal\\.com$/));\n },\n\n isLive: function isLive() {\n return hostname === 'www.paypal.com';\n }\n },\n\n init: function init() {\n var self = this;\n\n this.buffer = [];\n\n var previousBeforeUnloadHandler = _angular.$window.onbeforeunload;\n\n _angular.$window.onbeforeunload = function (event) {\n if (self.isDone) {\n return;\n }\n\n self.info('window_beforeunload');\n\n if (previousBeforeUnloadHandler) {\n return previousBeforeUnloadHandler.apply(this, arguments);\n }\n };\n\n var previousUnloadHandler = _angular.$window.onunload;\n\n _angular.$window.onunload = function (event) {\n\n if (self.isDone) {\n return;\n }\n\n self.info('window_unload');\n self._flush();\n\n self.done();\n\n if (previousUnloadHandler) {\n return previousUnloadHandler.apply(this, arguments);\n }\n };\n\n this.heartbeat();\n this.daemon();\n },\n\n heartbeat: function heartbeat() {\n var self = this;\n\n if (!window.enablePerformance) {\n return;\n }\n\n function timestamp() {\n var perf = window.performance;\n\n return parseInt(perf.now() - (perf.timing.connectEnd - perf.timing.navigationStart), 10);\n }\n\n var howBusy = {\n lastSampledTime: timestamp(),\n lastLag: 0,\n maxLag: 0,\n dampendedLag: 0\n };\n\n var count = 0;\n\n (0, _angular.$interval)(function () {\n\n if (!self.buffer.length || self.buffer[self.buffer.length - 1].event !== 'heartbeat') {\n count = 0;\n }\n\n if (!self.buffer.length || count > self.hearbeatMaxThreshold) {\n return;\n }\n\n count += 1;\n\n var payload = {\n count: count\n };\n\n var now = timestamp();\n\n howBusy.lastLag = now - howBusy.lastSampledTime - self.heartbeatInterval;\n howBusy.maxLag = howBusy.lastLag > howBusy.maxLag ? howBusy.lastLag : howBusy.maxLag;\n howBusy.dampendedLag = (howBusy.lastLag + howBusy.dampendedLag * 2) / 3;\n howBusy.lastSampledTime = now;\n\n payload.lastLag = howBusy.lastLag.toFixed(4);\n payload.maxLag = howBusy.maxLag.toFixed(4);\n payload.dampendedLag = howBusy.dampendedLag.toFixed(4);\n payload.lastSampledTime = howBusy.lastSampledTime.toFixed(4);\n\n if (howBusy.lastLag > 10000) {\n self.info('toobusy', {}, {\n noConsole: true,\n unique: true\n });\n }\n\n self.info('heartbeat', payload, {\n noConsole: true\n });\n }, this.heartbeatInterval);\n },\n\n done: function done() {\n this.flush(true);\n this.isDone = true;\n },\n\n addPerformanceData: function addPerformanceData(payload) {\n\n if (window.enablePerformance) {\n var performance = window.performance;\n var timing = window.performance.timing || {};\n var now = performance.now();\n\n if (window.clientStartTime && _angular2['default'].isUndefined(payload.client_elapsed)) {\n payload.client_elapsed = parseInt(now - window.clientStartTime, 10);\n }\n\n if (timing.connectEnd && timing.navigationStart && _angular2['default'].isUndefined(payload.req_elapsed)) {\n payload.req_elapsed = parseInt(now - (timing.connectEnd - timing.navigationStart), 10);\n }\n }\n },\n\n addLocaleData: function addLocaleData(payload) {\n\n var context = {};\n\n try {\n context = _angular.$injector.get('$metaBuilder').buildContext();\n } catch (err) {\n return; // Continue without adding locale data\n }\n if (context.locale && context.locale.country) {\n payload.site_cntry = context.locale.country;\n }\n },\n\n /* jslint maxcomplexity: false */\n log: function log(level, event, payload, settings) {\n var self = this;\n\n payload = payload || {};\n\n if (_angular2['default'].isArray(payload) || !_angular2['default'].isObject(payload)) {\n payload = {\n payload: payload\n };\n }\n settings = settings || {};\n\n if (settings.unique) {\n var hash = event + ':' + _angular2['default'].toJson(payload);\n\n if (uniqueEvents.indexOf(hash) > -1) {\n return self;\n }\n uniqueEvents.push(hash);\n }\n\n payload.pageID = window.meta && window.meta.pageID;\n\n this.addPerformanceData(payload);\n this.addLocaleData(payload);\n\n self.print(level, event, payload, settings);\n\n if (this.buffer.length >= this.sizeLimit) {\n if (this.buffer.length === this.sizeLimit) {\n return self.enqueue('warn', 'logger_max_buffer_length');\n }\n return self;\n }\n\n return self.enqueue(level, event, payload, settings);\n },\n\n getTimestamp: function getTimestamp() {\n var now = Date.now();\n\n return window.logOffset ? window.logOffset + now : now;\n },\n\n enqueue: function enqueue(level, event, payload, settings) {\n payload = payload || {};\n settings = settings || {};\n\n var data = {\n level: level,\n event: event,\n timestamp: this.getTimestamp(),\n payload: payload\n };\n\n this.buffer.push(data);\n\n // If the log level is classified as autolog, then flush the data\n if (this.autoLog.indexOf(level) > -1) {\n this.flush();\n }\n\n return this;\n },\n\n shouldPrintLogsToConsole: function shouldPrintLogsToConsole(settings) {\n\n if (settings.noConsole) {\n return false;\n }\n\n if (window.meta && window.meta.corp) {\n return true;\n }\n\n if (this.deploy.isLocal() || this.deploy.isStage()) {\n return true;\n }\n\n var cookies = window.cookies || {};\n\n if (cookies[HERMES_DEV_COOKIE] && cookies[HERMES_DEV_COOKIE] === '1') {\n return true;\n }\n\n return false;\n },\n\n print: function print(level, event, payload, settings) {\n\n if (!this.shouldPrintLogsToConsole(settings)) {\n return;\n }\n\n var args = [event];\n\n if (payload) {\n args.push(payload);\n\n if (payload.stack || payload.error || payload.warning) {\n args.push('\\n\\n', payload.stack || payload.error || payload.warning);\n }\n }\n\n _angular.$log[_level.$consoleLogLevel[level] || 'info'].apply(_angular.$log, args);\n },\n\n flush: function flush(immediate) {\n var self = this;\n\n if (!this.buffer.length) {\n return _angular.$q.when();\n }\n\n if (immediate) {\n return _angular.$q.when(this._flush());\n }\n\n if (self.debouncer_timeout) {\n _angular.$timeout.cancel(self.debouncer_timeout);\n }\n\n self.debouncer_timeout = (0, _angular.$timeout)(function () {\n\n var resolver = self.debouncer_resolver;\n\n delete self.debouncer_promise;\n delete self.debouncer_resolver;\n delete self.debouncer_timeout;\n\n self._flush().then(function () {\n resolver();\n });\n }, this.debounceInterval);\n\n self.debouncer_promise = self.debouncer_promise || (0, _angular.$q)(function (resolver) {\n self.debouncer_resolver = resolver;\n });\n\n return self.debouncer_promise;\n },\n\n _flush: function _flush() {\n var self = this;\n\n if (!self.buffer.length) {\n return _angular.$q.when();\n }\n\n var meta = {};\n\n try {\n meta = _angular.$injector.get('$metaBuilder').build();\n } catch (err) {\n // @TODO - Log error\n }\n\n var req = this.ajax('post', _angular.$window.meta.logURL || _angular.$window.config.urls.baseUrl + this.uri, {\n data: {\n events: self.buffer\n },\n meta: meta\n });\n\n self.buffer = [];\n\n return req;\n },\n\n ajax: function ajax(method, url, json) {\n return (0, _angular.$q)(function (resolve) {\n var XRequest = window.XMLHttpRequest || ActiveXObject; // eslint-disable-line no-undef, block-scoped-var\n var req = new XRequest('MSXML2.XMLHTTP.3.0');\n var logAppName = _angular.$window.meta.logAppName;\n\n req.open(method.toUpperCase(), url);\n\n req.setRequestHeader('X-Requested-With', 'XMLHttpRequest');\n req.setRequestHeader('Content-type', 'application/json');\n\n if (logAppName) {\n req.setRequestHeader('x-app-name', logAppName);\n }\n\n req.onreadystatechange = function () {\n if (req.readyState > 3) {\n resolve();\n }\n };\n req.send(_angular2['default'].toJson(json).replace(/&/g, '%26')); // eslint-disable-line angular/ng_json_functions\n });\n },\n\n daemon: function daemon() {\n this.stop();\n\n var self = this;\n\n this.timer = (0, _angular.$interval)(function () {\n self.flush();\n }, this.flushInterval);\n },\n\n stop: function stop() {\n if (this.timer) {\n _angular.$interval.cancel(this.timer);\n }\n },\n\n createCalRootTxn: function createCalRootTxn(data, txnName) {\n if (data !== null && _angular2['default'].isObject(data)) {\n var rootTxnData = { 'data': {}, 'transactionName': '' };\n var url = '' + _angular.$window.config.urls.baseUrl + this.rootTxnUri;\n if (_angular2['default'].isString(txnName)) {\n rootTxnData.transactionName = txnName;\n }\n Object.assign(rootTxnData.data, data);\n this.ajax('post', url, rootTxnData);\n }\n }\n });\n\n function Logger(val) {\n _angular2['default'].extend(this, val);\n this.init();\n }\n\n Logger.prototype = logger;\n Logger.prototype.constructor = Logger;\n\n return Logger;\n}).factory('$logger', ['$Logger', function ($Logger) {\n return new $Logger();\n}]).run(['$logger', function ($logger) {\n _angular2['default'].forEach(window.beaconQueue, function (payload) {\n $logger.log(payload.level, payload.event, payload);\n });\n\n window.beacon = function (level, events, payload) {\n _angular2['default'].forEach(events, function (event) {\n $logger.log(level, event, payload);\n });\n };\n}]);\n\n_level.$logLevel;\n\n_level.$consoleLogLevel;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/webpack/buildin/module.js\")(module), \"../node_modules/xo-beaver/dist\", \"../node_modules/xo-beaver/dist/logger.js\"))\n\n/***/ }),\n\n/***/ \"../node_modules/xo-device-info/dist/index.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(module, __dirname, __filename) {\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _angular2 = _interopRequireDefault(_angular);\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n(function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n})(window.angular);\n\n_angular2['default'].module().factory('$DeviceInfo', function () {\n var userAgent = _angular.$window.navigator.userAgent;\n var standalone = _angular.$window.navigator.standalone;\n var DEVICE_PATTERN = /iPod|iPhone|iPad|Android|BlackBerry|BB10|Palm|CriOS|IEMobile|Windows Phone OS|webOS|Symbian|silk|Kindle|Opera Mini|mobile/i;\n var TABLET_PATTERN = /ip(a|ro)d|silk|xoom|playbook|tablet|kindle|Nexus 7|GT-P10|SC-01C|SHW-M180S|SM-T320|SGH-T849|SCH-I800|SHW-M180L|SPH-P100|SGH-I987|zt180|HTC( Flyer|_Flyer)|Sprint ATP51|ViewPad7|pandigital(sprnova|nova)|Ideos S7|Dell Streak 7|Advent Vega|A101IT|A70BHT|MID7015|Next2|nook|FOLIO|MB511.*RUTEM|Mac OS.*Silk/i;\n var IOS_PATTERN = /iP(hone|od|ad)/i;\n\n function getIntegrationContext(integrationKey) {\n // additonal context sent via partners in regards to integration\n var integrationContext = _squid.$meta.integrationCTX || {};\n\n return integrationContext[integrationKey];\n }\n\n // Supports iOS and Android. Updated / more accurate method of detecting webviews\n function isWebView() {\n var logEnabled = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n var ua = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : userAgent;\n\n var ios = /iphone|ipod|ipad/i.test(ua);\n var android = /Android/i.test(ua);\n\n if (ios) {\n // Unfortunately no perfectly reliable way, this will detect some 3rd party browsers as ui webview\n // Major browsers: chrome, safari, firefox, uc browser, puffin, are detected reliably.\n var ios_uiwebview = /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(ua);\n\n if (!standalone && ios_uiwebview && !isSafariViewController()) {\n // uiwebview\n logWebView('iOS');\n return true;\n }\n } else if (android) {\n // not iOS, Android platform handling\n // Whitelist for x-requested-with header values for web view detection\n var allowedXRequestedWithRegexMap = {\n ajax: /XMLHttpRequest/i,\n baiduBrowser: /com.baidu.browser.inter/i,\n operaMini: /com.opera.mini.native/i,\n maxthon: /com.mx.browser/i,\n litterPenguinBrowser: /com.explore.web.browser/i\n };\n var xRequestedWithHeaderVal = _squid.$meta.requestHeaders['x-requested-with'];\n\n if (xRequestedWithHeaderVal) {\n // check if x-requested-with header val is in whitelist\n for (var key in allowedXRequestedWithRegexMap) {\n if (allowedXRequestedWithRegexMap.hasOwnProperty(key)) {\n if (allowedXRequestedWithRegexMap[key].test(xRequestedWithHeaderVal)) {\n return false;\n }\n }\n }\n logWebView('Android');\n return true;\n }\n }\n\n return false;\n\n function logWebView(device) {\n if (!logEnabled) {\n return;\n }\n // cal log\n _logger.$logger.info('WebView :: ' + device);\n }\n }\n\n /**\n * Check if the given the user-agent string is belongs to a device.\n */\n function isDevice() {\n if (_angular2['default'].isString(userAgent)) {\n return DEVICE_PATTERN.test(userAgent) || TABLET_PATTERN.test(userAgent);\n }\n\n return false;\n }\n\n /**\n * Check if the given the user-agent string is belongs to a tablet.\n */\n function isTablet() {\n if (_angular2['default'].isString(userAgent)) {\n return TABLET_PATTERN.test(userAgent);\n }\n\n return false;\n }\n\n /**\n * Check if the given the user-agent string is belongs to a mobile\n */\n function isMobile() {\n return isDevice(userAgent) && !isTablet(userAgent);\n }\n\n /**\n * Get the mobile platform value given the user-agent string.\n */\n function getDevicePlatform() {\n if (_angular2['default'].isString(userAgent)) {\n var matched = userAgent.match(/iPod|iPhone|iPad|Android|BlackBerry|Windows Phone OS|webOS|Symbian|mobile/g);\n\n if (matched && matched.length > 0) {\n return matched[0];\n }\n }\n }\n\n /**\n * Check if the give user agent is from an app.\n */\n function isApp(uaString) {\n userAgent = uaString || userAgent;\n\n if (DEVICE_PATTERN.test(userAgent) || TABLET_PATTERN.test(userAgent)) {\n if (getDevicePlatform(userAgent) === 'Android') {\n return (/Version\\/\\d.\\d/i.test(userAgent)\n );\n }\n\n return (/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)|PLAYSTATION|iPadApp/i.test(userAgent)\n );\n }\n\n return false;\n }\n\n function isSafariViewController() {\n if (getIntegrationContext('brainTreeIntegration') === 'SFVC') {\n return true;\n }\n if (_angular2['default'].isString(userAgent)) {\n var ios = /iphone|ipod|ipad/i.test(userAgent);\n\n return ios && _angular.$window.indexedDB && isApp();\n } else {\n return false;\n }\n }\n\n /**\n * Get the device capabilities\n */\n function getCapabilities() {\n var capabilities = {};\n var device = DEVICE_PATTERN.test(userAgent);\n var tablet = TABLET_PATTERN.test(userAgent);\n var app = isApp(userAgent);\n\n if (_angular2['default'].isString(userAgent)) {\n capabilities.isWireless = device || tablet;\n capabilities.isTablet = tablet;\n capabilities.isMobile = device && !tablet;\n capabilities.isDesktop = !device;\n capabilities.isApp = app;\n }\n return capabilities;\n }\n\n /**\n * Get various AppIntegrationType\n */\n function getAppIntegrationType() {\n var app_int_type = void 0;\n\n if (isDevice()) {\n if (isApp()) {\n if (isSafariViewController()) {\n app_int_type = 'SFVC';\n } else {\n app_int_type = 'WebView';\n }\n } else {\n app_int_type = 'Browser';\n }\n }\n return app_int_type;\n }\n\n function isSafariiOSBrowserView() {\n var ua = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : userAgent;\n\n var ios = IOS_PATTERN.test(ua);\n var safari = /safari/i.test(ua);\n var isIOSApp = /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(ua);\n var isChromeOnIOS = /(.*?CriOS)/i.test(ua);\n var isFirefoxOnIOS = /(.*?FxiOS)/i.test(ua);\n var isSafariBrowserOnly = safari && !isChromeOnIOS && !isFirefoxOnIOS;\n\n return ios && !standalone && isSafariBrowserOnly && !isIOSApp;\n }\n\n function getiOSVersion() {\n var ua = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : userAgent;\n\n var ios = IOS_PATTERN.test(ua);\n\n if (ios) {\n var version = ua.match(/OS (\\d+)_(\\d+)/);\n return [parseInt(version[1], 10), parseInt(version[2], 10)];\n }\n return false;\n }\n\n return {\n isDevice: isDevice,\n isTablet: isTablet,\n isMobile: isMobile,\n isApp: isApp,\n isSafariViewController: isSafariViewController,\n getCapabilities: getCapabilities,\n getAppIntegrationType: getAppIntegrationType,\n isWebView: isWebView,\n isSafariiOSBrowserView: isSafariiOSBrowserView,\n getiOSVersion: getiOSVersion\n };\n});\n\n_squid.$meta;\n\n_logger.$logger;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/webpack/buildin/module.js\")(module), \"../node_modules/xo-device-info/dist\", \"../node_modules/xo-device-info/dist/index.js\"))\n\n/***/ }),\n\n/***/ \"../node_modules/xo-form-components/src/dob-input/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function($) {\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/directionality/directive.js\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-form-components/src/dob-input/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nangular.module().directive('dobValidation', function () {\n return {\n require: 'ngModel',\n link: function link(scope, element, attr, ctrl) {\n\n // init scope vars\n // age - above 18 yrs\n // validDate - months <= 12 and day <= 31 or based on month\n scope.isValidDate = true;\n scope.isValidAge = true;\n scope.isValid = false;\n scope.dobToolTip = 'hide';\n\n function isValidDate(year, month, day) {\n // dates like 02/31 33/33 should return false\n var date = new Date(year, month, day);\n\n var fullYear = date.getFullYear();\n var dateMonth = date.getMonth();\n var dateDay = date.getDate();\n\n // If birth year is in the future or before 1900, dob is invalid\n var now = new Date();\n if (fullYear > now.getFullYear() || fullYear < 1900) {\n return false;\n }\n\n if (fullYear === parseInt(year, 10) && dateMonth === parseInt(month, 10) && dateDay === parseInt(day, 10)) {\n return true;\n }\n return false;\n }\n\n function isOfLegalAge(birthDate) {\n // user should be of exact 18 years of age or older\n var tempDate = new Date(birthDate.getFullYear() + 18, birthDate.getMonth(), birthDate.getDate());\n return tempDate <= new Date().setHours(0, 0, 0, 0);\n }\n\n /**\n * Parses input value to set corresponding day, month, year values for scope\n * @param {String} inputVal - the value to be parsed\n */\n function parseDob(inputVal) {\n var day;\n var month;\n var year;\n\n var sep = scope.dateSeparator();\n var partsArr = inputVal.split(sep);\n var first = partsArr[0];\n var sec = partsArr[1];\n var third = partsArr[2];\n\n if (scope.dateFormat() === 'DMY') {\n day = first;\n month = sec;\n year = third;\n } else if (scope.dateFormat() === 'YMD') {\n year = first;\n month = sec;\n day = third;\n } else {\n month = first;\n day = sec;\n year = third;\n }\n\n // Validate only on entering the last digit of the dob\n var dayLen = ('' + day).length;\n var monLen = ('' + month).length;\n var yrLen = ('' + year).length;\n var validDay = dayLen === 1 || dayLen === 2;\n var validMon = monLen === 1 || monLen === 2;\n var validYr = yrLen === 4;\n var requirement = validDay && validMon && validYr;\n\n if (requirement) {\n scope.isValidDate = isValidDate(year, month - 1, day);\n\n scope.isValidAge = isOfLegalAge(new Date(year, month - 1, day));\n scope.isValid = scope.isValidDate && scope.isValidAge;\n scope.dobToolTip = scope.isValid ? 'hide' : 'show';\n\n scope.user.dob_day = day;\n scope.user.dob_month = month;\n scope.user.dob_year = year;\n } else {\n scope.isValid = false;\n }\n\n ctrl.$setValidity('dobText', scope.isValid);\n\n return inputVal;\n }\n\n /**\n * Validates the inputted DOB value\n * @param {string} ngModelValue - the to-be mutated input value\n * onComplete for mask listener - called when user copy/pastes DOB into the field\n */\n scope.dobValidator = function dobValidator(ngModelValue) {\n var input = element;\n var dateMask = scope.dateMask();\n input.mask(dateMask, {\n translation: {\n 'Z': {\n pattern: /[0-9]/, optional: true\n },\n '0': {\n pattern: /[0-9]/, optional: false\n }\n },\n onComplete: function onComplete(val) {\n ngModelValue = val;\n return parseDob(ngModelValue);\n }\n });\n\n return parseDob(ngModelValue);\n };\n\n scope.dobTester = function dobTester(val) {\n return parseDob(val);\n };\n\n ctrl.$parsers.push(scope.dobValidator);\n }\n };\n}).directive('xoDobInput', function () {\n return {\n template: _template2['default'],\n restrict: 'E',\n scope: {\n user: '=?'\n },\n controller: ['$scope', function ($scope) {\n\n // To support additional date separators, simply add separator to getDateSeparators function\n var DateManager = {\n dateSeparator: undefined,\n dateFormat: undefined,\n griffinDateEntry: undefined,\n\n _init_: function _init_() {\n this.griffinDateEntry = _squid.$locale.metadata.dateEntry;\n this.dateSeparator = this.getDateSeparator(this.griffinDateEntry);\n this.dateFormat = undefined;\n this.dateFormat = this.getDateFormat();\n this.dateRegex = this.getDateRegex();\n // dob validator depends on dateFormat function in $scope, so context is bound.\n $scope.dateFormat = this.getDateFormat.bind(this);\n $scope.dateSeparator = this.getDateSeparator.bind(this, this.griffinDateEntry);\n $scope.dateMask = this.getDateMask.bind(this, this.dateSeparator);\n this.getDobNumericCheck();\n },\n getDateFormat: function getDateFormat() {\n // cache date format value, must be unset on init\n if (this.dateFormat) {\n return this.dateFormat;\n }\n\n var griffinDateFormat = _squid.$locale.metadata.dateFormat.toUpperCase();\n var dateFormatComponents = griffinDateFormat.split(this.dateSeparator);\n\n // Trim the white space in griffin dateFormat\n // Eg: SK dateFormat is MM. DD. YYYY - here we need to strip spaces\n dateFormatComponents = dateFormatComponents.map(function (str) {\n return str.trim();\n });\n\n var dIdx = dateFormatComponents.indexOf('DD'),\n mIdx = dateFormatComponents.indexOf('MM');\n\n var formatComponentMap = this.getFormatComponentIdxMappings();\n if (formatComponentMap['DMY'].day === dIdx && formatComponentMap['DMY'].month === mIdx) {\n return 'DMY';\n } else if (formatComponentMap['MDY'].day === dIdx && formatComponentMap['MDY'].month === mIdx) {\n return 'MDY';\n }\n return 'YMD';\n },\n setDobTextPlaceHolder: function setDobTextPlaceHolder() {\n $scope.dobTextPlaceholder = this.griffinDateEntry.toUpperCase();\n },\n dobTextKeyupHandler: function dobTextKeyupHandler(event) {\n this.updateDobBindings(true);\n },\n getDobNumericCheck: function getDobNumericCheck() {\n return (0, _squid.$pxp)('xo_xoon_numeric_keypad_expirydob', { 'ctx.COUNTRY': _squid.$locale.country }, 'xo_xoon_numeric_keypad_expirydob_test').then(function (result) {\n if (result) {\n $scope.dobTextInputType = 'tel';\n }\n });\n },\n /**\n * Absolutely makes sure that dob input doesn't contain bad characters.\n * Called on any chatacter input AND on locale change.\n */\n updateDobBindings: function updateDobBindings(change) {\n var cleanedDob = ($scope.dob.value || '').replace(this.dateRegex, '');\n $scope.dob.value = cleanedDob;\n\n // This way, our dob value is always formatted correctly.\n if (change) {\n $scope.dob.value = $('#dobText').val();\n }\n },\n // Dynamically construct regex to only include date separator supported by country and nondigits\n getDateRegex: function getDateRegex() {\n var escapedRegexChars = ['.', '$', '^', '{', '[', '(', '|', ')', '*', '+', '?', '\\\\'];\n var sep = this.dateSeparator;\n var assembledRegex = '[^0-9' + (escapedRegexChars.indexOf(sep) !== -1 ? '\\\\' + sep : sep) + ']';\n return new RegExp(assembledRegex, 'gi');\n },\n getDateMask: function getDateMask(dateSeparator) {\n var dateFormat = this.dateFormat;\n if (dateFormat === 'DMY' || dateFormat === 'MDY') {\n return '0Z' + dateSeparator + '0Z' + dateSeparator + '0000';\n }\n\n return '0000' + dateSeparator + '0Z' + dateSeparator + '0Z';\n },\n getDateSeparator: function getDateSeparator(dateEntry) {\n var ret = '';\n this.getDateSeparators().forEach(function (ele, iter) {\n // eslint-disable-line\n if (dateEntry.indexOf(ele) !== -1) {\n ret = ele;\n }\n });\n return ret;\n },\n // To add any additional date separators, simply add them to the returned array.\n getDateSeparators: function getDateSeparators() {\n return ['-', '.', '/'];\n },\n // Handles changes in date component order or date separator change.\n updateDateInputForFormat: function updateDateInputForFormat(oldFormat, newFormat, oldSeparator) {\n var curDateVal = $scope.dob.value || '';\n\n // Clear dob input if date is incomplete so user can see updated placeholder\n if (curDateVal.length < 8) {\n $scope.dob.value = '';\n return;\n }\n\n var formatComponentIdxMappings = this.getFormatComponentIdxMappings(),\n oldFormatIdxMapping = formatComponentIdxMappings[oldFormat],\n newFormatIdxMapping = formatComponentIdxMappings[newFormat];\n var oldDateComponents = curDateVal.split(oldSeparator),\n newDateComponents = ['', '', ''];\n\n newDateComponents[newFormatIdxMapping.day] = oldDateComponents[oldFormatIdxMapping.day];\n newDateComponents[newFormatIdxMapping.month] = oldDateComponents[oldFormatIdxMapping.month];\n newDateComponents[newFormatIdxMapping.year] = oldDateComponents[oldFormatIdxMapping.year];\n $scope.dob.value = newDateComponents.join(this.dateSeparator);\n },\n getFormatComponentIdxMappings: function getFormatComponentIdxMappings() {\n return {\n 'DMY': {\n 'day': 0,\n 'month': 1,\n 'year': 2\n },\n 'MDY': {\n 'day': 1,\n 'month': 0,\n 'year': 2\n },\n 'YMD': {\n 'day': 2,\n 'month': 1,\n 'year': 0\n }\n };\n },\n prefillFetchedDob: function prefillFetchedDob() {\n if ($scope.user && $scope.user.dob_day && $scope.user.dob_month && $scope.user.dob_year) {\n if (!$scope.dob) {\n $scope.dob = {};\n }\n\n if (this.dateFormat === 'DMY') {\n $scope.dob.value = $scope.user.dob_day + this.dateSeparator + $scope.user.dob_month + this.dateSeparator + $scope.user.dob_year;\n } else if (this.dateFormat === 'YMD') {\n $scope.dob.value = $scope.user.dob_year + this.dateSeparator + $scope.user.dob_month + this.dateSeparator + $scope.user.dob_day;\n } else {\n $scope.dob.value = $scope.user.dob_month + this.dateSeparator + $scope.user.dob_day + this.dateSeparator + $scope.user.dob_year;\n }\n } else {\n $scope.dob = {\n value: ''\n };\n }\n }\n };\n\n DateManager._init_();\n DateManager.setDobTextPlaceHolder();\n DateManager.prefillFetchedDob();\n\n $scope.onDobTextKeyup = function (event) {\n DateManager.dobTextKeyupHandler(event);\n };\n\n $scope.$on('localeChange', function () {\n var oldDateFormat = DateManager.dateFormat;\n var oldSeparator = DateManager.dateSeparator;\n DateManager._init_();\n DateManager.updateDateInputForFormat(oldDateFormat, DateManager.dateFormat, oldSeparator);\n DateManager.updateDobBindings(false);\n DateManager.setDobTextPlaceHolder();\n });\n }]\n };\n});\n\n_squid.$locale;\n\n_squid.$pxp;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/jquery/dist/jquery.min.js\")))\n\n/***/ }),\n\n/***/ \"../node_modules/xo-form-components/src/dob-input/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n \\n
\\n \\n
\\n

{{ content('scripts.validDate') }}

\\n

{{ content('scripts.legalAge') }}

\\n
\\n
\\n
\\n {{ dobTextPlaceholder }}\\n \\n
\\n
\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-form-components/src/gender-type/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _index = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/floating-label/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-form-components/src/gender-type/styles.less\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-form-components/src/gender-type/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _index.$Component.extend('$xoGenderType', {\n tag: 'xo-gender-type',\n template: _template2['default'],\n props: {\n user: {\n type: 'var',\n required: false\n }\n }\n});\n\n\n_index.$Component;\nmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ \"../node_modules/xo-form-components/src/gender-type/styles.less\":\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ \"../node_modules/xo-form-components/src/gender-type/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n \\n \\n
\\n
\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-form-components/src/inventory-soldout/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _util = __webpack_require__(\"../node_modules/xo-return-to-merchant/dist/util.js\");\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/modal/directive.js\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-form-components/src/inventory-soldout/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\nvar _uiRouter = __webpack_require__(\"../node_modules/angular-ui-router/release/angular-ui-router.min.js\");\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _squid.$Component.extend('$xoSoldoutPageDirective', {\n tag: 'xo-soldout-page',\n template: _template2['default'],\n auth: false,\n actions: {\n continueShoppingHandler: function continueShoppingHandler() {\n _util.$ReturnToMerchant.goTo(decodeURIComponent(_uiRouter.$state.params.soldOutUrl), true);\n }\n },\n lifecycle: {\n enter: function enter() {\n this.locale = _squid.$locale;\n angular.element('.paypalHeader').css('display', 'none');\n angular.element('#defaultCancelLink').css('display', 'none');\n\n _logger.$logger.info('checkout_fpti', {\n landing_page: 'sold_out',\n int_error_code: '0',\n int_error_description: 'cart item sold out'\n });\n },\n populate: function populate() {\n this.item_name = decodeURIComponent(_uiRouter.$state.params.items);\n }\n }\n});\n\n\n_squid.$Component;\n\n_squid.$locale;\n\n_util.$ReturnToMerchant;\n\n_uiRouter.$state;\n\n_logger.$logger;\nmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ \"../node_modules/xo-form-components/src/inventory-soldout/route.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.$xoSoldOutPageRoute = undefined;\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _directive = __webpack_require__(\"../node_modules/xo-form-components/src/inventory-soldout/directive.js\");\n\nvar _directive2 = _interopRequireDefault(_directive);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar $xoSoldOutPageRoute = exports.$xoSoldOutPageRoute = _squid.$ComponentRoute.extend('$xoSoldOutPageRoute', {\n path: 'soldout',\n directive: _directive2['default'],\n titleContent: 'soldout.title',\n query: ['items', 'soldOutUrl'],\n auth: false,\n trackingData: {\n fptiState: 'soldout',\n templateName: 'soldout.dust',\n pageGoal: 'soldout page',\n buzname: {\n 'fullpage': {\n 'pagename': '%::fullpage-soldout',\n 'pagename2': '%::fullpage-soldout:member:hermes:',\n 'version': 'member:%:'\n // More page qualifiers come here...\n } }\n },\n children: []\n});\n\nangular.value(\"$xoSoldOutPageRoute\", $xoSoldOutPageRoute);\n_squid.$ComponentRoute;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-form-components/src/inventory-soldout/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n
\\n\\n
\\n {{content ('soldout.icon')}}\\n
\\n\\n
\\n \\n
\\n
\\n\\n
\\n
\\n
\\n \\n\\n
\\n\\n
\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-form-components/src/language-options/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function($) {\n\nexports.__esModule = true;\nexports.VALID_DIRECTION = undefined;\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/accessibility/directive.js\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-form-components/src/language-options/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar VALID_DIRECTION = exports.VALID_DIRECTION = ['top', 'bottom'];\nvar isValidDirection = function isValidDirection(n) {\n return VALID_DIRECTION.includes(n);\n};\n\n\nangular.module().directive('xoLanguageOptions', function () {\n return {\n template: _template2['default'],\n\n scope: {\n direction: '@?'\n },\n\n controller: ['$scope', function ($scope) {\n $scope.direction = isValidDirection($scope.direction) ? $scope.direction : 'bottom';\n $scope.showLanguages = false;\n\n function setLanguageVars() {\n $scope.localeModel = _squid.$locale;\n $scope.currentLanguage = $scope.localeModel.lang;\n $scope.currentCountry = $scope.localeModel.country;\n $scope.languageList = $scope.localeModel.metadata.languageLabel;\n $scope.supportedLanguages = _squid.$config.supportedCountries[$scope.currentCountry];\n $scope.hasMultipleLanguages = $scope.supportedLanguages && $scope.supportedLanguages.length > 1 ? true : false;\n }\n\n $scope.selectLanguage = function (language) {\n $scope.currentLanguage = language;\n _squid.$locale.chooseLang(language);\n };\n\n $scope.toggle = function ($event) {\n if ($event) {\n $event.preventDefault();\n }\n\n $scope.showLanguages = !$scope.showLanguages;\n };\n\n setLanguageVars();\n\n // Reset locale properties for languageToggle\n $scope.$on('localeChange', function () {\n setLanguageVars();\n });\n\n // \"clickBody\" is an artifical event broadcast by the xo-checkout component (essentially document.click)\n $scope.$on('clickBody', function ($event, target) {\n if ($(target).parents('.languageToggleDisplay div').length === 0) {\n $scope.showLanguages = false;\n $scope.$apply();\n }\n });\n }]\n };\n});\n\n_squid.$config;\n\n_squid.$locale;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/jquery/dist/jquery.min.js\")))\n\n/***/ }),\n\n/***/ \"../node_modules/xo-form-components/src/language-options/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n \\n
\\n
\\n
\\n \\n
\\n
\\n
\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-form-components/src/name-input/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/error-tooltip/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/floating-label/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/prefix-attrs-with/directive.js\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-form-components/src/name-input/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _squid.$Component.extend('$xoNameInput', {\n tag: 'xo-name-input',\n\n template: _template2['default'],\n\n props: {\n attrPrefix: {\n required: false,\n type: 'var'\n },\n country: {\n required: false,\n type: 'str'\n },\n user: {\n required: false,\n type: 'var'\n }\n },\n\n lifecycle: {\n enter: function enter() {\n var _this = this;\n\n this.locale = _squid.$locale;\n this.metadata = _squid.$MetadataModel.create();\n\n var handleCountryChange = function handleCountryChange() {\n _this.metadata.choose(_this.country || _squid.$locale.country, _squid.$locale.lang);\n };\n\n this.$watch('country', handleCountryChange);\n }\n }\n});\n\n\n_squid.$Component;\n\n_squid.$locale;\n\n_squid.$MetadataModel;\nmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ \"../node_modules/xo-form-components/src/name-input/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n \\n
\\n
\\n \\n \\n
\\n
\\n\\n \\n
\\n
\\n \\n \\n
\\n
\\n
\\n\\n
\\n \\n
\\n \\n \\n
\\n\\n \\n
\\n \\n \\n
\\n
\\n
\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-form-components/src/national-id-input/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(module, __dirname, __filename, $) {\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _index = __webpack_require__(\"../node_modules/xo-models/src/checkout/index.js\");\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/directionality/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/tooltip/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-form-components/src/dob-input/directive.js\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-form-components/src/national-id-input/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n(function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n})(window.angular);\n\nangular.module().directive('brIdValidations', function () {\n return {\n require: 'ngModel',\n\n link: function link(scope, element, attr, ctrl) {\n scope.cpfValidator = function cpfValidator(ngModelValue) {\n var value = ngModelValue.replace(/[^0-9]/gi, '');\n var len = value.length;\n\n if (len !== 11) {\n ctrl.$setValidity('nationalId', false);\n return ngModelValue;\n }\n\n var x = value.match(/\\b(\\d)\\1+\\b/);\n\n if (x) {\n ctrl.$setValidity('nationalId', false);\n return ngModelValue;\n }\n\n var v1 = 0;\n var v2 = 0;\n var dv1;\n var dv2;\n var i;\n var j;\n\n for (i = 0, j = 10; i < 9, j > 1; i++, j--) {\n // eslint-disable-line no-sequences\n v1 += j * +value[i];\n }\n\n v1 = v1 % 11;\n dv1 = 11 - v1 < 10 ? 11 - v1 : 0;\n\n for (i = 0, j = 11; i < 9, j > 2; i++, j--) {\n // eslint-disable-line no-sequences\n v2 += j * +value[i];\n }\n\n v2 += dv1 * 2;\n v2 = v2 % 11;\n dv2 = 11 - v2 < 10 ? 11 - v2 : 0;\n\n scope.isValid = dv1 === parseInt(value[9], 10) && dv2 === parseInt(value[10], 10);\n\n ctrl.$setValidity('nationalId', scope.isValid);\n\n return ngModelValue;\n };\n\n ctrl.$parsers.push(scope.cpfValidator);\n }\n };\n}).directive('sgIdValidations', function () {\n return {\n require: 'ngModel',\n\n link: function link(scope, element, attr, ctrl) {\n scope.nricFinValidator = function nricFinValidator(ngModelValue) {\n var idType = scope.$parent.nationalIdModel.nationalId.type;\n if (idType === 'NATIONAL_ID') {\n scope.isValid = false;\n\n // Valid if first char is \"S\", \"T\", \"F\" or \"G\" and the rest 7 are digits followed by a letter.\n if (ngModelValue.match(/^[SFTG]\\d{7}[A-Z]$/)) {\n scope.isValid = true;\n }\n } else {\n scope.isValid = true;\n }\n ctrl.$setValidity('nationalId', scope.isValid);\n return ngModelValue;\n };\n ctrl.$parsers.push(scope.nricFinValidator);\n }\n };\n}).directive('ruIdValidations', function () {\n return {\n require: 'ngModel',\n\n link: function link(scope, element, attr, ctrl) {\n\n function validateSNILSChunk(sum, checksum) {\n if (sum < 100 && sum === checksum) {\n return true;\n } else if ((sum === 100 || sum === 101) && checksum === 0) {\n return true;\n } else if (sum > 101) {\n var remainder = sum % 101;\n return validateSNILSChunk(remainder, checksum);\n }\n\n return false;\n }\n\n function validateSNILS(value) {\n if (value.length === 11) {\n if (Number(value) > 1001998) {\n var snilsNumber = value.substring(0, 9);\n var checksum = Number(value.substring(9));\n var sum = 0;\n var multiplier = 1;\n\n for (var i = snilsNumber.length - 1; i >= 0; i--) {\n sum = sum + Number(snilsNumber.charAt(i)) * multiplier;\n multiplier++;\n }\n\n return validateSNILSChunk(sum, checksum);\n }\n\n return true;\n }\n\n return false;\n }\n\n function validateINNChecksum(value, factor, valueLength, match) {\n var n;\n var sumn = 0;\n for (var i = 0; i < valueLength; i++) {\n sumn = sumn + Number(value[i]) * Number(factor[i]);\n }\n n = sumn % 11;\n n = n === 10 ? 0 : n;\n\n if (n !== Number(match)) {\n return false;\n }\n\n return true;\n }\n\n function validateINN(value) {\n if (value.length === 12) {\n var factor = [7, 2, 4, 10, 3, 5, 9, 4, 6, 8];\n\n if (!validateINNChecksum(value, factor, value.length - 2, value[10])) {\n return false;\n }\n\n factor.unshift(3);\n\n if (!validateINNChecksum(value, factor, value.length - 1, value[11])) {\n return false;\n }\n\n return true;\n }\n\n return false;\n }\n\n function validateOMS(value) {\n if (value.length >= 11 && value.length <= 16) {\n return true;\n }\n\n return false;\n }\n\n scope.idValidator = function idValidator(ngModelValue) {\n var value = ngModelValue.replace(/[^0-9]/gi, '');\n var secondaryType = scope.nationalIdModel.secondaryIdType;\n\n if (secondaryType === 'SNILS') {\n scope.isValid = validateSNILS(value);\n } else if (secondaryType === 'INN') {\n scope.isValid = validateINN(value);\n } else if (secondaryType === 'OMS') {\n scope.isValid = validateOMS(value);\n }\n\n ctrl.$setValidity('secondaryId', scope.isValid);\n\n return ngModelValue;\n };\n\n ctrl.$parsers.push(scope.idValidator);\n }\n };\n}).directive('xoNationalIdInput', function () {\n return {\n template: _template2['default'],\n scope: {\n user: '=?',\n country: '@?'\n },\n\n link: function link(scope, element, attr) {\n var passportMask = '0000000000';\n\n element.on('keyup', function (event) {\n if (scope.user.countryOfResidence === 'RU') {\n $('#nationalId').mask(passportMask, {\n 'translation': {\n 0: { pattern: /[0-9]/ }\n }\n });\n } else {\n $('#nationalId').unmask(passportMask);\n }\n });\n },\n\n controller: ['$scope', '$NationalIdModel', function ($scope, $NationalIdModel) {\n\n $scope.nationalIdModel = $NationalIdModel.instance(_angular.$rootScope.token);\n $scope.checkoutCart = _index.$CheckoutCartModel.instance(_angular.$rootScope.token);\n $scope.user = $scope.user || {};\n $scope.user.countryOfResidence = $scope.user.countryOfResidence || $scope.country;\n $scope.formattedValues = {};\n $scope.showNationalIdFields = false;\n\n if ($scope.checkoutCart.payer && $scope.checkoutCart.payer.tax_id) {\n $scope.nationalIdModel.nationalId.value = $scope.checkoutCart.payer.tax_id;\n }\n\n $scope.countryChanged = function () {\n if ($scope.user.countryOfResidence === 'RU') {\n $scope.showNationalIdFields = true;\n $scope.minLengthNatId = 10;\n $scope.maxLengthNatId = 10;\n } else {\n $scope.showNationalIdFields = false;\n $scope.minLengthNatId = 6;\n $scope.maxLengthNatId = 15;\n }\n };\n\n $scope.cpfMasking = function (newValue) {\n if (newValue) {\n var unformatted = newValue.replace(/[^0-9]/gi, '');\n var formatted = [['', unformatted.slice(0, 3)], ['.', unformatted.slice(3, 6)], ['.', unformatted.slice(6, 9)], ['-', unformatted.slice(9)]].map(function (x) {\n return x[1] && x[0] + x[1] || '';\n }).join('');\n\n $scope.formattedValues.nationalId = formatted;\n $scope.nationalIdModel.nationalId.value = unformatted;\n } else {\n $scope.nationalIdModel.nationalId.value = '';\n }\n };\n\n $scope.secondaryIdFormatting = function () {\n var $el = $('#idValue');\n\n if ($scope.nationalIdModel.secondaryIdType === 'SNILS' && $el.length > 0) {\n var unformatted = $el.val().replace(/[^0-9]/gi, '');\n var formatted = [['', unformatted.slice(0, 3)], ['-', unformatted.slice(3, 6)], ['-', unformatted.slice(6, 9)], [' ', unformatted.slice(9)]].map(function (x) {\n return x[1] && x[0] + x[1] || '';\n }).join('');\n\n $scope.nationalIdModel.secondaryIdValue = formatted;\n }\n };\n\n $scope.secondaryIdChange = function () {\n var currentSecondaryId = $scope.secondaryIds[$scope.nationalIdModel.secondaryIdType];\n\n $scope.nationalIdModel.secondaryIdValue = '';\n $scope.maxLength = currentSecondaryId.length;\n $scope.minLength = currentSecondaryId.minlength ? currentSecondaryId.minlength : currentSecondaryId.length;\n\n $scope.maskCharLength = currentSecondaryId.maskCharLength ? currentSecondaryId.maskCharLength : 0;\n };\n\n $scope.sgIdChange = function () {\n $scope.nationalIdModel.nationalId.value = '';\n };\n\n function setLocalizedNatIDLabels() {\n $scope.nationalIds = {\n 'PASSPORT': { name: 'PASSPORT_NUMBER', value: _squid.$locale.content.addTaxId.passport }\n };\n\n // National ID is not shown for South Korea\n if (_squid.$locale.country !== 'KR') {\n $scope.nationalIds.NATID = { name: 'NATIONAL_ID', value: _squid.$locale.content.addTaxId.natid };\n }\n\n // ID type change from “Driver’s License” to “TEMPORARY_NATIONAL_ID” for HK only,\n // other countries show \"Driver’s License\" in th national ID drop down\n if (_squid.$locale.country === 'HK' && (0, _squid.$feature)('driverLicenseToTempNationalID', false, _squid.$locale.country)) {\n $scope.nationalIds.TNID = { name: 'TEMPORARY_NATIONAL_ID', value: _squid.$locale.content.addTaxId.tnid };\n } else {\n $scope.nationalIds.DL = { name: 'DRIVERS_LICENSE', value: _squid.$locale.content.addTaxId.dl };\n }\n }\n\n function setLocalizedRUContent() {\n $scope.countries = _squid.$locale.metadata.territory;\n $scope.secondaryIds = {\n 'INN': { name: 'INN', value: _squid.$locale.content.addTaxId.INN, length: 12 },\n 'SNILS': { name: 'SNILS', value: _squid.$locale.content.addTaxId.SNILS, length: 14, maskCharLength: 3 },\n 'OMS': { name: 'OMS', value: _squid.$locale.content.addTaxId.OMS, length: 16, minlength: 11 }\n };\n }\n\n if (_squid.$locale.country === 'BR') {\n $scope.nationalIdModel.nationalId.type = 'TAX_ID';\n $scope.nationalIdModel.nationalId.subType = 'CPF';\n\n $scope.cpfMasking($scope.nationalIdModel.nationalId.value);\n } else if ($scope.country === 'RU') {\n setLocalizedRUContent();\n $scope.nationalIdModel.nationalId.type = 'PASSPORT';\n $scope.nationalIdModel.nationalId.subType = '';\n $scope.user.nativeName = $scope.user.nativeName || {};\n\n if (!$scope.nationalIdModel.secondaryIdType) {\n $scope.nationalIdModel.secondaryIdType = $scope.secondaryIds.INN.name;\n }\n\n $scope.secondaryIdChange();\n\n $scope.countryChanged();\n } else if ($scope.country === 'KR') {\n $scope.nationalIds = {\n 'PASSPORT': { name: 'PASSPORT_NUMBER', value: _squid.$locale.content.addTaxId.passport },\n 'DL': { name: 'DRIVERS_LICENSE', value: _squid.$locale.content.addTaxId.dl }\n };\n $scope.nationalIdModel.nationalId.type = 'PASSPORT_NUMBER';\n $scope.nationalIdModel.nationalId.subType = '';\n } else {\n // Default behaviour - set to 3pl countries\n setLocalizedNatIDLabels();\n $scope.nationalIdModel.nationalId.type = 'NATIONAL_ID';\n $scope.nationalIdModel.nationalId.subType = '';\n }\n\n $scope.$on('contentChange', function () {\n setLocalizedNatIDLabels();\n\n if ($scope.country === 'RU') {\n setLocalizedRUContent();\n }\n });\n }]\n };\n}).factory('$NationalIdModel', function () {\n\n return _squid.$Model.extend('NationalIdModel', {\n\n init: function init() {\n this._super.init.apply(this);\n this.nationalId = this.nationalId || {};\n },\n\n serialize: function serialize() {\n return this.nationalId;\n }\n });\n});\n\n_angular.$rootScope;\n\n_squid.$feature;\n\n_squid.$locale;\n\n_squid.$Model;\n\n_index.$CheckoutCartModel;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/webpack/buildin/module.js\")(module), \"../node_modules/xo-form-components/src/national-id-input\", \"../node_modules/xo-form-components/src/national-id-input/directive.js\", __webpack_require__(\"../node_modules/jquery/dist/jquery.min.js\")))\n\n/***/ }),\n\n/***/ \"../node_modules/xo-form-components/src/national-id-input/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n
\\n
\\n
\\n \\n \\n
\\n\\n
\\n \\n \\n
\\n
\\n\\n
\\n\\n
\\n \\n \\n
\\n\\n
\\n\\n
\\n\\n
\\n \\n \\n
\\n\\n
\\n \\n \\n
\\n\\n
\\n\\n
\\n\\n
\\n
\\n \\n \\n
\\n\\n
\\n \\n\\n
\\n \\n \\n
\\n
\\n\\n
\\n \\n\\n \\n
\\n\\n \\n\\n
\\n {{content('addTaxId.additionalInfo')}}\\n
\\n \\n
\\n
\\n \\n
\\n {{content('addTaxId.additionalInfoNote')}}\\n
\\n
\\n
\\n
\\n\\n
\\n
\\n \\n \\n
\\n\\n
\\n \\n \\n
\\n
\\n
\\n
\\n
\\n\\n
\\n
\\n \\n \\n
\\n\\n
\\n \\n \\n
\\n
\\n
\\n
\\n
\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-form-components/src/phone/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _uiRouter = __webpack_require__(\"../node_modules/angular-ui-router/release/angular-ui-router.min.js\");\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\nvar _auth = __webpack_require__(\"../node_modules/xo-models/src/auth/index.js\");\n\n__webpack_require__(\"../node_modules/xo-models/src/auth/index.js\");\n\nvar _index = __webpack_require__(\"../node_modules/xo-models/src/checkout/index.js\");\n\nvar _index2 = __webpack_require__(\"../node_modules/xo-models/src/user/index.js\");\n\n__webpack_require__(\"../node_modules/xo-page-components/src/value-props/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-title/dist/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/message/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-form-components/src/phone/phoneInput/directive.js\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-form-components/src/phone/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nangular.module().directive('xoAddPhone', function () {\n return {\n template: _template2['default'],\n scope: {},\n controller: ['$scope', function ($scope) {\n\n $scope.showPhoneDisclosure = (0, _squid.$featureCountries)('showPhoneDisclosure').indexOf(_squid.$locale.country) > -1;\n $scope.phoneConsent = (0, _squid.$feature)('phoneConsent');\n $scope.consentContentKey = $scope.phoneConsent ? 'addPhone.phoneConsent' : 'addPhone.phoneDisclosure';\n $scope.errorMessage = {\n msgKeys: ['addPhone.addPhoneNumberConsent'],\n type: 'info'\n };\n\n $scope.userInfo = _index2.$UserInfoModel.instance(_angular.$rootScope.token);\n $scope.phone = {};\n\n var CONTENT_KEY = {\n INVALID_PHONE_NUMBER: 'validPhone'\n };\n\n var CONTENT_MAPPING = {\n numberError: CONTENT_KEY.INVALID_PHONE_NUMBER,\n typeError: CONTENT_KEY.INVALID_PHONE_NUMBER\n };\n\n var populateErrorMessage = function populateErrorMessage(name) {\n var contentKey = CONTENT_MAPPING[name];\n var msg = contentKey ? _squid.$locale.content.get('scripts.' + contentKey) : 'unresolved content for login error ' + name;\n\n $scope.errorMessage = {\n msgs: [msg],\n type: 'error'\n };\n };\n\n var validationErrorHandler = {\n numberError: populateErrorMessage,\n typeError: populateErrorMessage\n };\n\n (0, _squid.$populate)($scope, {\n auth: _auth.$AuthModel.instance()\n }).then(function () {\n\n $scope.logout = function () {\n _logger.$logger.info('not_you_logout');\n $scope.auth.action('logout').then(function () {\n _uiRouter.$state.go('checkout.login');\n });\n };\n\n $scope.showNotYou = $scope.auth.is_auth_api_call && _squid.$util.param('source') !== 'consumerApp' && $scope.logout;\n\n $scope.onSubmit = function () {\n if ($scope.phoneConsent) {\n $scope.phone.consent = {\n agreed: true,\n contentId: _squid.$locale.country + ':' + _squid.$locale.lang + ':' + $scope.consentContentKey + ':' + (0, _squid.$contentVersion)()\n };\n }\n $scope.userInfo.action('addPhone', {\n\n data: $scope.phone,\n\n success: function success(data) {\n return _index.$CheckoutSessionModel.instance(_angular.$rootScope.token).action('create', {\n success: function success() {\n _uiRouter.$state.go('checkout.review');\n }\n });\n },\n\n contingencies: {\n NEED_CREDIT_CARD: function NEED_CREDIT_CARD() {\n _angular.$location.path('/checkout/addCard');\n },\n\n EXPIRED_CREDIT_CARD: function EXPIRED_CREDIT_CARD() {\n _angular.$location.path('/checkout/updateCard');\n }\n },\n\n validation: function validation(data) {\n angular.forEach(data, function (value, key) {\n validationErrorHandler[key](key);\n });\n }\n });\n };\n });\n }]\n };\n});\n\n_angular.$rootScope;\n\n_angular.$location;\n\n_squid.$feature;\n\n_squid.$locale;\n\n_squid.$populate;\n\n_squid.$util;\n\n_squid.$featureCountries;\n\n_squid.$contentVersion;\n\n_uiRouter.$state;\n\n_logger.$logger;\n\n_auth.$AuthModel;\n\n_index.$CheckoutSessionModel;\n\n_index2.$UserInfoModel;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-form-components/src/phone/lib/territoriesByCode.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {\n return {\n 'AC': {\n 'status': 'reserved',\n 'phoneCountryCode': '247',\n 'showCountryCodeList': false\n },\n 'AD': {\n 'status': 'assigned',\n 'phoneCountryCode': '376',\n 'showCountryCodeList': false\n },\n 'AE': {\n 'status': 'assigned',\n 'phoneCountryCode': '971',\n 'showCountryCodeList': false\n },\n 'AF': {\n 'status': 'assigned',\n 'phoneCountryCode': '93',\n 'showCountryCodeList': false\n },\n 'AG': {\n 'status': 'assigned',\n 'phoneCountryCode': '1',\n 'showCountryCodeList': false\n },\n 'AI': {\n 'status': 'assigned',\n 'phoneCountryCode': '1',\n 'showCountryCodeList': false\n },\n 'AL': {\n 'status': 'assigned',\n 'phoneCountryCode': '355',\n 'showCountryCodeList': false\n },\n 'AM': {\n 'status': 'assigned',\n 'phoneCountryCode': '374',\n 'showCountryCodeList': false\n },\n 'AN': {\n 'status': 'assigned',\n 'phoneCountryCode': '599',\n 'showCountryCodeList': false\n },\n 'AO': {\n 'status': 'assigned',\n 'phoneCountryCode': '244',\n 'showCountryCodeList': false\n },\n 'AQ': {\n 'status': 'assigned',\n 'phoneCountryCode': '672',\n 'showCountryCodeList': false\n },\n 'AR': {\n 'status': 'assigned',\n 'phoneCountryCode': '54',\n 'showCountryCodeList': false\n },\n 'AS': {\n 'status': 'assigned',\n 'phoneCountryCode': '1',\n 'showCountryCodeList': false\n },\n 'AT': {\n 'status': 'assigned',\n 'phoneCountryCode': '43',\n 'showCountryCodeList': true\n },\n 'AU': {\n 'status': 'assigned',\n 'phoneCountryCode': '61',\n 'showCountryCodeList': true\n },\n 'AW': {\n 'status': 'assigned',\n 'phoneCountryCode': '297',\n 'showCountryCodeList': false\n },\n 'AZ': {\n 'status': 'assigned',\n 'phoneCountryCode': '994',\n 'showCountryCodeList': false\n },\n 'BA': {\n 'status': 'assigned',\n 'phoneCountryCode': '387',\n 'showCountryCodeList': false\n },\n 'BB': {\n 'status': 'assigned',\n 'phoneCountryCode': '1',\n 'showCountryCodeList': false\n },\n 'BD': {\n 'status': 'assigned',\n 'phoneCountryCode': '880',\n 'showCountryCodeList': false\n },\n 'BE': {\n 'status': 'assigned',\n 'phoneCountryCode': '32',\n 'showCountryCodeList': true\n },\n 'BF': {\n 'status': 'assigned',\n 'phoneCountryCode': '226',\n 'showCountryCodeList': false\n },\n 'BG': {\n 'status': 'assigned',\n 'phoneCountryCode': '359',\n 'showCountryCodeList': false\n },\n 'BH': {\n 'status': 'assigned',\n 'phoneCountryCode': '973',\n 'showCountryCodeList': false\n },\n 'BI': {\n 'status': 'assigned',\n 'phoneCountryCode': '257',\n 'showCountryCodeList': false\n },\n 'BJ': {\n 'status': 'assigned',\n 'phoneCountryCode': '229',\n 'showCountryCodeList': false\n },\n 'BL': {\n 'status': 'assigned',\n 'phoneCountryCode': '590',\n 'showCountryCodeList': false\n },\n 'BM': {\n 'status': 'assigned',\n 'phoneCountryCode': '1',\n 'showCountryCodeList': false\n },\n 'BN': {\n 'status': 'assigned',\n 'phoneCountryCode': '673',\n 'showCountryCodeList': false\n },\n 'BO': {\n 'status': 'assigned',\n 'phoneCountryCode': '591',\n 'showCountryCodeList': false\n },\n 'BQ': {\n 'status': 'assigned',\n 'phoneCountryCode': '599',\n 'showCountryCodeList': false\n },\n 'BR': {\n 'status': 'assigned',\n 'phoneCountryCode': '55',\n 'showCountryCodeList': false\n },\n 'BS': {\n 'status': 'assigned',\n 'phoneCountryCode': '1',\n 'showCountryCodeList': false\n },\n 'BT': {\n 'status': 'assigned',\n 'phoneCountryCode': '975',\n 'showCountryCodeList': false\n },\n 'BV': {\n 'status': 'assigned'\n },\n 'BW': {\n 'status': 'assigned',\n 'phoneCountryCode': '267',\n 'showCountryCodeList': false\n },\n 'BY': {\n 'status': 'assigned',\n 'phoneCountryCode': '375',\n 'showCountryCodeList': false\n },\n 'BZ': {\n 'status': 'assigned',\n 'phoneCountryCode': '501',\n 'showCountryCodeList': false\n },\n 'C2': {\n 'status': 'assigned',\n 'phoneCountryCode': '86',\n 'showCountryCodeList': false\n },\n 'CA': {\n 'status': 'assigned',\n 'phoneCountryCode': '1',\n 'showCountryCodeList': false\n },\n 'CC': {\n 'status': 'assigned',\n 'phoneCountryCode': '61',\n 'showCountryCodeList': false\n },\n 'CD': {\n 'status': 'assigned',\n 'phoneCountryCode': '243',\n 'showCountryCodeList': false\n },\n 'CF': {\n 'status': 'assigned',\n 'phoneCountryCode': '236',\n 'showCountryCodeList': false\n },\n 'CG': {\n 'status': 'assigned',\n 'phoneCountryCode': '242',\n 'showCountryCodeList': false\n },\n 'CH': {\n 'status': 'assigned',\n 'phoneCountryCode': '41',\n 'showCountryCodeList': true\n },\n 'CI': {\n 'status': 'assigned',\n 'phoneCountryCode': '225',\n 'showCountryCodeList': false\n },\n 'CK': {\n 'status': 'assigned',\n 'phoneCountryCode': '682',\n 'showCountryCodeList': false\n },\n 'CL': {\n 'status': 'assigned',\n 'phoneCountryCode': '56',\n 'showCountryCodeList': false\n },\n 'CM': {\n 'status': 'assigned',\n 'phoneCountryCode': '237',\n 'showCountryCodeList': false\n },\n 'CN': {\n 'status': 'assigned',\n 'phoneCountryCode': '86',\n 'showCountryCodeList': false\n },\n 'CO': {\n 'status': 'assigned',\n 'phoneCountryCode': '57',\n 'showCountryCodeList': false\n },\n 'CR': {\n 'status': 'assigned',\n 'phoneCountryCode': '506',\n 'showCountryCodeList': false\n },\n 'CU': {\n 'status': 'assigned',\n 'phoneCountryCode': '53',\n 'showCountryCodeList': false\n },\n 'CV': {\n 'status': 'assigned',\n 'phoneCountryCode': '238',\n 'showCountryCodeList': false\n },\n 'CW': {\n 'status': 'assigned',\n 'phoneCountryCode': '599',\n 'showCountryCodeList': false\n },\n 'CX': {\n 'status': 'assigned',\n 'phoneCountryCode': '61',\n 'showCountryCodeList': false\n },\n 'CY': {\n 'status': 'assigned',\n 'phoneCountryCode': '357',\n 'showCountryCodeList': false\n },\n 'CZ': {\n 'status': 'assigned',\n 'phoneCountryCode': '420',\n 'showCountryCodeList': false\n },\n 'DE': {\n 'status': 'assigned',\n 'phoneCountryCode': '49',\n 'showCountryCodeList': false\n },\n 'DJ': {\n 'status': 'assigned',\n 'phoneCountryCode': '253',\n 'showCountryCodeList': false\n },\n 'DK': {\n 'status': 'assigned',\n 'phoneCountryCode': '45',\n 'showCountryCodeList': true\n },\n 'DM': {\n 'status': 'assigned',\n 'phoneCountryCode': '1',\n 'showCountryCodeList': false\n },\n 'DO': {\n 'status': 'assigned',\n 'phoneCountryCode': '1',\n 'showCountryCodeList': false\n },\n 'DZ': {\n 'status': 'assigned',\n 'phoneCountryCode': '213',\n 'showCountryCodeList': false\n },\n 'EC': {\n 'status': 'assigned',\n 'phoneCountryCode': '593',\n 'showCountryCodeList': false\n },\n 'EE': {\n 'status': 'assigned',\n 'phoneCountryCode': '372',\n 'showCountryCodeList': false\n },\n 'EG': {\n 'status': 'assigned',\n 'phoneCountryCode': '20',\n 'showCountryCodeList': false\n },\n 'EH': {\n 'status': 'assigned',\n 'phoneCountryCode': '212',\n 'showCountryCodeList': false\n },\n 'ER': {\n 'status': 'assigned',\n 'phoneCountryCode': '291',\n 'showCountryCodeList': false\n },\n 'ES': {\n 'status': 'assigned',\n 'phoneCountryCode': '34',\n 'showCountryCodeList': false\n },\n 'ET': {\n 'status': 'assigned',\n 'phoneCountryCode': '251',\n 'showCountryCodeList': false\n },\n 'FI': {\n 'status': 'assigned',\n 'phoneCountryCode': '358',\n 'showCountryCodeList': false\n },\n 'FJ': {\n 'status': 'assigned',\n 'phoneCountryCode': '679',\n 'showCountryCodeList': false\n },\n 'FK': {\n 'status': 'assigned',\n 'phoneCountryCode': '500',\n 'showCountryCodeList': false\n },\n 'FM': {\n 'status': 'assigned',\n 'phoneCountryCode': '691',\n 'showCountryCodeList': false\n },\n 'FO': {\n 'status': 'assigned',\n 'phoneCountryCode': '298',\n 'showCountryCodeList': false\n },\n 'FR': {\n 'status': 'assigned',\n 'phoneCountryCode': '33',\n 'showCountryCodeList': false\n },\n 'GA': {\n 'status': 'assigned',\n 'phoneCountryCode': '241',\n 'showCountryCodeList': false\n },\n 'GB': {\n 'status': 'assigned',\n 'phoneCountryCode': '44',\n 'showCountryCodeList': false\n },\n 'GD': {\n 'status': 'assigned',\n 'phoneCountryCode': '1',\n 'showCountryCodeList': false\n },\n 'GE': {\n 'status': 'assigned',\n 'phoneCountryCode': '995',\n 'showCountryCodeList': false\n },\n 'GF': {\n 'status': 'assigned',\n 'phoneCountryCode': '594',\n 'showCountryCodeList': false\n },\n 'GG': {\n 'status': 'assigned',\n 'phoneCountryCode': '44',\n 'showCountryCodeList': false\n },\n 'GH': {\n 'status': 'assigned',\n 'phoneCountryCode': '233',\n 'showCountryCodeList': false\n },\n 'GI': {\n 'status': 'assigned',\n 'phoneCountryCode': '350',\n 'showCountryCodeList': false\n },\n 'GL': {\n 'status': 'assigned',\n 'phoneCountryCode': '299',\n 'showCountryCodeList': false\n },\n 'GM': {\n 'status': 'assigned',\n 'phoneCountryCode': '220',\n 'showCountryCodeList': false\n },\n 'GN': {\n 'status': 'assigned',\n 'phoneCountryCode': '224',\n 'showCountryCodeList': false\n },\n 'GP': {\n 'status': 'assigned',\n 'phoneCountryCode': '590',\n 'showCountryCodeList': false\n },\n 'GQ': {\n 'status': 'assigned',\n 'phoneCountryCode': '240',\n 'showCountryCodeList': false\n },\n 'GR': {\n 'status': 'assigned',\n 'phoneCountryCode': '30',\n 'showCountryCodeList': false\n },\n 'GS': {\n 'status': 'assigned',\n 'phoneCountryCode': '500',\n 'showCountryCodeList': false\n },\n 'GT': {\n 'status': 'assigned',\n 'phoneCountryCode': '502',\n 'showCountryCodeList': false\n },\n 'GU': {\n 'status': 'assigned',\n 'phoneCountryCode': '1',\n 'showCountryCodeList': false\n },\n 'GW': {\n 'status': 'assigned',\n 'phoneCountryCode': '245',\n 'showCountryCodeList': false\n },\n 'GY': {\n 'status': 'assigned',\n 'phoneCountryCode': '592',\n 'showCountryCodeList': false\n },\n 'HK': {\n 'status': 'assigned',\n 'phoneCountryCode': '852',\n 'showCountryCodeList': true\n },\n 'HM': {\n 'status': 'assigned'\n },\n 'HN': {\n 'status': 'assigned',\n 'phoneCountryCode': '504',\n 'showCountryCodeList': false\n },\n 'HR': {\n 'status': 'assigned',\n 'phoneCountryCode': '385',\n 'showCountryCodeList': false\n },\n 'HT': {\n 'status': 'assigned',\n 'phoneCountryCode': '509',\n 'showCountryCodeList': false\n },\n 'HU': {\n 'status': 'assigned',\n 'phoneCountryCode': '36',\n 'showCountryCodeList': false\n },\n 'ID': {\n 'status': 'assigned',\n 'phoneCountryCode': '62',\n 'showCountryCodeList': false\n },\n 'IE': {\n 'status': 'assigned',\n 'phoneCountryCode': '353',\n 'showCountryCodeList': false\n },\n 'IL': {\n 'status': 'assigned',\n 'phoneCountryCode': '972',\n 'showCountryCodeList': false\n },\n 'IM': {\n 'status': 'assigned',\n 'phoneCountryCode': '44',\n 'showCountryCodeList': false\n },\n 'IN': {\n 'status': 'assigned',\n 'phoneCountryCode': '91',\n 'showCountryCodeList': false\n },\n 'IO': {\n 'status': 'assigned',\n 'phoneCountryCode': '246',\n 'showCountryCodeList': false\n },\n 'IQ': {\n 'status': 'assigned',\n 'phoneCountryCode': '964',\n 'showCountryCodeList': false\n },\n 'IR': {\n 'status': 'assigned',\n 'phoneCountryCode': '98',\n 'showCountryCodeList': false\n },\n 'IS': {\n 'status': 'assigned',\n 'phoneCountryCode': '354',\n 'showCountryCodeList': false\n },\n 'IT': {\n 'status': 'assigned',\n 'phoneCountryCode': '39',\n 'showCountryCodeList': false\n },\n 'JE': {\n 'status': 'assigned',\n 'phoneCountryCode': '44',\n 'showCountryCodeList': false\n },\n 'JM': {\n 'status': 'assigned',\n 'phoneCountryCode': '1',\n 'showCountryCodeList': false\n },\n 'JO': {\n 'status': 'assigned',\n 'phoneCountryCode': '962',\n 'showCountryCodeList': false\n },\n 'JP': {\n 'status': 'assigned',\n 'phoneCountryCode': '81',\n 'showCountryCodeList': false\n },\n 'KE': {\n 'status': 'assigned',\n 'phoneCountryCode': '254',\n 'showCountryCodeList': false\n },\n 'KG': {\n 'status': 'assigned',\n 'phoneCountryCode': '996',\n 'showCountryCodeList': false\n },\n 'KH': {\n 'status': 'assigned',\n 'phoneCountryCode': '855',\n 'showCountryCodeList': false\n },\n 'KI': {\n 'status': 'assigned',\n 'phoneCountryCode': '686',\n 'showCountryCodeList': false\n },\n 'KM': {\n 'status': 'assigned',\n 'phoneCountryCode': '269',\n 'showCountryCodeList': false\n },\n 'KN': {\n 'status': 'assigned',\n 'phoneCountryCode': '1',\n 'showCountryCodeList': false\n },\n 'KP': {\n 'status': 'assigned',\n 'phoneCountryCode': '850',\n 'showCountryCodeList': false\n },\n 'KR': {\n 'status': 'assigned',\n 'phoneCountryCode': '82',\n 'showCountryCodeList': false\n },\n 'KW': {\n 'status': 'assigned',\n 'phoneCountryCode': '965',\n 'showCountryCodeList': false\n },\n 'KY': {\n 'status': 'assigned',\n 'phoneCountryCode': '1',\n 'showCountryCodeList': false\n },\n 'KZ': {\n 'status': 'assigned',\n 'phoneCountryCode': '7',\n 'showCountryCodeList': false\n },\n 'LA': {\n 'status': 'assigned',\n 'phoneCountryCode': '856',\n 'showCountryCodeList': true\n },\n 'LB': {\n 'status': 'assigned',\n 'phoneCountryCode': '961',\n 'showCountryCodeList': false\n },\n 'LC': {\n 'status': 'assigned',\n 'phoneCountryCode': '1',\n 'showCountryCodeList': false\n },\n 'LI': {\n 'status': 'assigned',\n 'phoneCountryCode': '423',\n 'showCountryCodeList': false\n },\n 'LK': {\n 'status': 'assigned',\n 'phoneCountryCode': '94',\n 'showCountryCodeList': false\n },\n 'LR': {\n 'status': 'assigned',\n 'phoneCountryCode': '231',\n 'showCountryCodeList': false\n },\n 'LS': {\n 'status': 'assigned',\n 'phoneCountryCode': '266',\n 'showCountryCodeList': false\n },\n 'LT': {\n 'status': 'assigned',\n 'phoneCountryCode': '370',\n 'showCountryCodeList': false\n },\n 'LU': {\n 'status': 'assigned',\n 'phoneCountryCode': '352',\n 'showCountryCodeList': false\n },\n 'LV': {\n 'status': 'assigned',\n 'phoneCountryCode': '371',\n 'showCountryCodeList': false\n },\n 'LY': {\n 'status': 'assigned',\n 'phoneCountryCode': '218',\n 'showCountryCodeList': false\n },\n 'MA': {\n 'status': 'assigned',\n 'phoneCountryCode': '212',\n 'showCountryCodeList': false\n },\n 'MC': {\n 'status': 'assigned',\n 'phoneCountryCode': '377',\n 'showCountryCodeList': false\n },\n 'MD': {\n 'status': 'assigned',\n 'phoneCountryCode': '373',\n 'showCountryCodeList': false\n },\n 'ME': {\n 'status': 'assigned',\n 'phoneCountryCode': '382',\n 'showCountryCodeList': false\n },\n 'MF': {\n 'status': 'assigned',\n 'phoneCountryCode': '590',\n 'showCountryCodeList': false\n },\n 'MG': {\n 'status': 'assigned',\n 'phoneCountryCode': '261',\n 'showCountryCodeList': false\n },\n 'MH': {\n 'status': 'assigned',\n 'phoneCountryCode': '692',\n 'showCountryCodeList': false\n },\n 'MK': {\n 'status': 'assigned',\n 'phoneCountryCode': '389',\n 'showCountryCodeList': false\n },\n 'ML': {\n 'status': 'assigned',\n 'phoneCountryCode': '223',\n 'showCountryCodeList': false\n },\n 'MM': {\n 'status': 'assigned',\n 'phoneCountryCode': '95',\n 'showCountryCodeList': false\n },\n 'MN': {\n 'status': 'assigned',\n 'phoneCountryCode': '976',\n 'showCountryCodeList': false\n },\n 'MO': {\n 'status': 'assigned',\n 'phoneCountryCode': '853',\n 'showCountryCodeList': false\n },\n 'MP': {\n 'status': 'assigned',\n 'phoneCountryCode': '1',\n 'showCountryCodeList': false\n },\n 'MQ': {\n 'status': 'assigned',\n 'phoneCountryCode': '596',\n 'showCountryCodeList': false\n },\n 'MR': {\n 'status': 'assigned',\n 'phoneCountryCode': '222',\n 'showCountryCodeList': false\n },\n 'MS': {\n 'status': 'assigned',\n 'phoneCountryCode': '1',\n 'showCountryCodeList': false\n },\n 'MT': {\n 'status': 'assigned',\n 'phoneCountryCode': '356',\n 'showCountryCodeList': false\n },\n 'MU': {\n 'status': 'assigned',\n 'phoneCountryCode': '230',\n 'showCountryCodeList': false\n },\n 'MV': {\n 'status': 'assigned',\n 'phoneCountryCode': '960',\n 'showCountryCodeList': false\n },\n 'MW': {\n 'status': 'assigned',\n 'phoneCountryCode': '265',\n 'showCountryCodeList': false\n },\n 'MX': {\n 'status': 'assigned',\n 'phoneCountryCode': '52',\n 'showCountryCodeList': false\n },\n 'MY': {\n 'status': 'assigned',\n 'phoneCountryCode': '60',\n 'showCountryCodeList': false\n },\n 'MZ': {\n 'status': 'assigned',\n 'phoneCountryCode': '258',\n 'showCountryCodeList': false\n },\n 'NA': {\n 'status': 'assigned',\n 'phoneCountryCode': '264',\n 'showCountryCodeList': false\n },\n 'NC': {\n 'status': 'assigned',\n 'phoneCountryCode': '687',\n 'showCountryCodeList': false\n },\n 'NE': {\n 'status': 'assigned',\n 'phoneCountryCode': '227',\n 'showCountryCodeList': false\n },\n 'NF': {\n 'status': 'assigned',\n 'phoneCountryCode': '672',\n 'showCountryCodeList': false\n },\n 'NG': {\n 'status': 'assigned',\n 'phoneCountryCode': '234',\n 'showCountryCodeList': false\n },\n 'NI': {\n 'status': 'assigned',\n 'phoneCountryCode': '505',\n 'showCountryCodeList': false\n },\n 'NL': {\n 'status': 'assigned',\n 'phoneCountryCode': '31',\n 'showCountryCodeList': true\n },\n 'NO': {\n 'status': 'assigned',\n 'phoneCountryCode': '47',\n 'showCountryCodeList': true\n },\n 'NP': {\n 'status': 'assigned',\n 'phoneCountryCode': '977',\n 'showCountryCodeList': false\n },\n 'NR': {\n 'status': 'assigned',\n 'phoneCountryCode': '674',\n 'showCountryCodeList': false\n },\n 'NU': {\n 'status': 'assigned',\n 'phoneCountryCode': '683',\n 'showCountryCodeList': false\n },\n 'NZ': {\n 'status': 'assigned',\n 'phoneCountryCode': '64',\n 'showCountryCodeList': false\n },\n 'OM': {\n 'status': 'assigned',\n 'phoneCountryCode': '968',\n 'showCountryCodeList': false\n },\n 'PA': {\n 'status': 'assigned',\n 'phoneCountryCode': '507',\n 'showCountryCodeList': false\n },\n 'PE': {\n 'status': 'assigned',\n 'phoneCountryCode': '51',\n 'showCountryCodeList': false\n },\n 'PF': {\n 'status': 'assigned',\n 'phoneCountryCode': '689',\n 'showCountryCodeList': false\n },\n 'PG': {\n 'status': 'assigned',\n 'phoneCountryCode': '675',\n 'showCountryCodeList': false\n },\n 'PH': {\n 'status': 'assigned',\n 'phoneCountryCode': '63',\n 'showCountryCodeList': false\n },\n 'PK': {\n 'status': 'assigned',\n 'phoneCountryCode': '92',\n 'showCountryCodeList': false\n },\n 'PL': {\n 'status': 'assigned',\n 'phoneCountryCode': '48',\n 'showCountryCodeList': true\n },\n 'PM': {\n 'status': 'assigned',\n 'phoneCountryCode': '508',\n 'showCountryCodeList': false\n },\n 'PN': {\n 'status': 'assigned',\n 'phoneCountryCode': '870',\n 'showCountryCodeList': false\n },\n 'PR': {\n 'status': 'assigned',\n 'phoneCountryCode': '1',\n 'showCountryCodeList': false\n },\n 'PS': {\n 'status': 'assigned',\n 'phoneCountryCode': '970',\n 'showCountryCodeList': false\n },\n 'PT': {\n 'status': 'assigned',\n 'phoneCountryCode': '351',\n 'showCountryCodeList': false\n },\n 'PW': {\n 'status': 'assigned',\n 'phoneCountryCode': '680',\n 'showCountryCodeList': false\n },\n 'PY': {\n 'status': 'assigned',\n 'phoneCountryCode': '595',\n 'showCountryCodeList': false\n },\n 'QA': {\n 'status': 'assigned',\n 'phoneCountryCode': '974',\n 'showCountryCodeList': false\n },\n 'RE': {\n 'status': 'assigned',\n 'phoneCountryCode': '262',\n 'showCountryCodeList': false\n },\n 'RO': {\n 'status': 'assigned',\n 'phoneCountryCode': '40',\n 'showCountryCodeList': false\n },\n 'RS': {\n 'status': 'assigned',\n 'phoneCountryCode': '381',\n 'showCountryCodeList': false\n },\n 'RU': {\n 'status': 'assigned',\n 'phoneCountryCode': '7',\n 'showCountryCodeList': false\n },\n 'RW': {\n 'status': 'assigned',\n 'phoneCountryCode': '250',\n 'showCountryCodeList': false\n },\n 'SA': {\n 'status': 'assigned',\n 'phoneCountryCode': '966',\n 'showCountryCodeList': false\n },\n 'SB': {\n 'status': 'assigned',\n 'phoneCountryCode': '677',\n 'showCountryCodeList': false\n },\n 'SC': {\n 'status': 'assigned',\n 'phoneCountryCode': '248',\n 'showCountryCodeList': false\n },\n 'SD': {\n 'status': 'assigned',\n 'phoneCountryCode': '249',\n 'showCountryCodeList': false\n },\n 'SE': {\n 'status': 'assigned',\n 'phoneCountryCode': '46',\n 'showCountryCodeList': true\n },\n 'SG': {\n 'status': 'assigned',\n 'phoneCountryCode': '65',\n 'showCountryCodeList': true\n },\n 'SH': {\n 'status': 'assigned',\n 'phoneCountryCode': '290',\n 'showCountryCodeList': false\n },\n 'SI': {\n 'status': 'assigned',\n 'phoneCountryCode': '386',\n 'showCountryCodeList': false\n },\n 'SJ': {\n 'status': 'assigned',\n 'phoneCountryCode': '47',\n 'showCountryCodeList': false\n },\n 'SK': {\n 'status': 'assigned',\n 'phoneCountryCode': '421',\n 'showCountryCodeList': false\n },\n 'SL': {\n 'status': 'assigned',\n 'phoneCountryCode': '232',\n 'showCountryCodeList': false\n },\n 'SM': {\n 'status': 'assigned',\n 'phoneCountryCode': '378',\n 'showCountryCodeList': false\n },\n 'SN': {\n 'status': 'assigned',\n 'phoneCountryCode': '221',\n 'showCountryCodeList': false\n },\n 'SO': {\n 'status': 'assigned',\n 'phoneCountryCode': '252',\n 'showCountryCodeList': false\n },\n 'SR': {\n 'status': 'assigned',\n 'phoneCountryCode': '597',\n 'showCountryCodeList': false\n },\n 'SS': {\n 'status': 'assigned',\n 'phoneCountryCode': '211',\n 'showCountryCodeList': false\n },\n 'ST': {\n 'status': 'assigned',\n 'phoneCountryCode': '239',\n 'showCountryCodeList': false\n },\n 'SV': {\n 'status': 'assigned',\n 'phoneCountryCode': '503',\n 'showCountryCodeList': false\n },\n 'SX': {\n 'status': 'assigned',\n 'phoneCountryCode': '1',\n 'showCountryCodeList': false\n },\n 'SY': {\n 'status': 'assigned',\n 'phoneCountryCode': '963',\n 'showCountryCodeList': false\n },\n 'SZ': {\n 'status': 'assigned',\n 'phoneCountryCode': '268',\n 'showCountryCodeList': false\n },\n 'TC': {\n 'status': 'assigned',\n 'phoneCountryCode': '1',\n 'showCountryCodeList': false\n },\n 'TD': {\n 'status': 'assigned',\n 'phoneCountryCode': '235',\n 'showCountryCodeList': false\n },\n 'TF': {\n 'status': 'assigned',\n 'phoneCountryCode': '262',\n 'showCountryCodeList': false\n },\n 'TG': {\n 'status': 'assigned',\n 'phoneCountryCode': '228',\n 'showCountryCodeList': false\n },\n 'TH': {\n 'status': 'assigned',\n 'phoneCountryCode': '66',\n 'showCountryCodeList': false\n },\n 'TJ': {\n 'status': 'assigned',\n 'phoneCountryCode': '992',\n 'showCountryCodeList': false\n },\n 'TK': {\n 'status': 'assigned',\n 'phoneCountryCode': '690',\n 'showCountryCodeList': false\n },\n 'TL': {\n 'status': 'assigned',\n 'phoneCountryCode': '670',\n 'showCountryCodeList': false\n },\n 'TM': {\n 'status': 'assigned',\n 'phoneCountryCode': '993',\n 'showCountryCodeList': false\n },\n 'TN': {\n 'status': 'assigned',\n 'phoneCountryCode': '216',\n 'showCountryCodeList': false\n },\n 'TO': {\n 'status': 'assigned',\n 'phoneCountryCode': '676',\n 'showCountryCodeList': false\n },\n 'TR': {\n 'status': 'assigned',\n 'phoneCountryCode': '90',\n 'showCountryCodeList': true\n },\n 'TT': {\n 'status': 'assigned',\n 'phoneCountryCode': '1',\n 'showCountryCodeList': false\n },\n 'TV': {\n 'status': 'assigned',\n 'phoneCountryCode': '688',\n 'showCountryCodeList': false\n },\n 'TW': {\n 'status': 'assigned',\n 'phoneCountryCode': '886',\n 'showCountryCodeList': true\n },\n 'TZ': {\n 'status': 'assigned',\n 'phoneCountryCode': '255',\n 'showCountryCodeList': false\n },\n 'UA': {\n 'status': 'assigned',\n 'phoneCountryCode': '380',\n 'showCountryCodeList': false\n },\n 'UG': {\n 'status': 'assigned',\n 'phoneCountryCode': '256',\n 'showCountryCodeList': false\n },\n 'UM': {\n 'status': 'assigned',\n 'phoneCountryCode': '1',\n 'showCountryCodeList': false\n },\n 'US': {\n 'status': 'assigned',\n 'phoneCountryCode': '1',\n 'showCountryCodeList': false,\n 'hideInOtherCountries': true\n },\n 'UY': {\n 'status': 'assigned',\n 'phoneCountryCode': '598',\n 'showCountryCodeList': false\n },\n 'UZ': {\n 'status': 'assigned',\n 'phoneCountryCode': '998',\n 'showCountryCodeList': false\n },\n 'VA': {\n 'status': 'assigned',\n 'phoneCountryCode': '39',\n 'showCountryCodeList': false\n },\n 'VC': {\n 'status': 'assigned',\n 'phoneCountryCode': '1',\n 'showCountryCodeList': false\n },\n 'VE': {\n 'status': 'assigned',\n 'phoneCountryCode': '58',\n 'showCountryCodeList': false\n },\n 'VG': {\n 'status': 'assigned',\n 'phoneCountryCode': '1',\n 'showCountryCodeList': false\n },\n 'VI': {\n 'status': 'assigned',\n 'phoneCountryCode': '1',\n 'showCountryCodeList': false\n },\n 'VN': {\n 'status': 'assigned',\n 'phoneCountryCode': '84',\n 'showCountryCodeList': false\n },\n 'VU': {\n 'status': 'assigned',\n 'phoneCountryCode': '678',\n 'showCountryCodeList': false\n },\n 'WF': {\n 'status': 'assigned',\n 'phoneCountryCode': '681',\n 'showCountryCodeList': false\n },\n 'WS': {\n 'status': 'assigned',\n 'phoneCountryCode': '685',\n 'showCountryCodeList': false\n },\n 'YE': {\n 'status': 'assigned',\n 'phoneCountryCode': '967',\n 'showCountryCodeList': false\n },\n 'YT': {\n 'status': 'assigned',\n 'phoneCountryCode': '262',\n 'showCountryCodeList': false\n },\n 'ZA': {\n 'status': 'assigned',\n 'phoneCountryCode': '27',\n 'showCountryCodeList': false\n },\n 'ZM': {\n 'status': 'assigned',\n 'phoneCountryCode': '260',\n 'showCountryCodeList': false\n },\n 'ZW': {\n 'status': 'assigned',\n 'phoneCountryCode': '263',\n 'showCountryCodeList': false\n }\n };\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n/***/ }),\n\n/***/ \"../node_modules/xo-form-components/src/phone/phoneInput/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-form-components/src/phone/phoneInput/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\n__webpack_require__(\"../node_modules/xo-form-components/src/phone/phoneInputB/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-form-components/src/phone/phoneInputA/directive.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _squid.$Component.extend('$xoPhoneInput', {\n tag: 'xo-phone-input',\n template: _template2['default'],\n\n props: {\n phone: {\n type: 'var',\n reqiured: false\n },\n\n showPhoneType: {\n type: 'var',\n optional: true,\n 'default': true\n },\n\n hideWork: {\n type: 'var',\n optional: true,\n 'default': false\n },\n\n token: {\n type: 'var',\n optional: true\n },\n\n exclude: {\n type: 'var',\n optional: true\n },\n\n hidePhoneType: {\n type: 'var',\n optional: true,\n 'default': false\n },\n\n country: {\n type: 'var',\n optional: true\n }\n },\n\n lifecycle: {\n enter: function enter() {\n var _this = this;\n\n var getTreatment = function getTreatment() {\n\n if ((0, _squid.$feature)('showNewPhoneDesign', false, _squid.$locale.country)) {\n return true;\n }\n\n var throttle = void 0;\n\n if (_squid.$config['newPhoneDesignThrottle']) {\n\n throttle = _squid.$config['newPhoneDesignThrottle']['DEFAULT'];\n\n if (_squid.$config['newPhoneDesignThrottle'][_squid.$locale.country] >= 0) {\n throttle = _squid.$config['newPhoneDesignThrottle'][_squid.$locale.country];\n }\n }\n\n var id = _squid.$locale.country + _angular.$rootScope.token;\n return throttle !== undefined && (0, _squid.$experiment)('new_phone_design_exp', throttle, id, {}) ? true : false;\n };\n\n this.treatment = getTreatment();\n\n this.$watch('showPhoneType', function () {\n _this.hidePhoneType = _this.showPhoneType === false;\n }, true);\n }\n }\n\n});\n\n\n_angular.$rootScope;\n\n_squid.$Component;\n\n_squid.$locale;\n\n_squid.$experiment;\n\n_squid.$config;\n\n_squid.$feature;\nmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ \"../node_modules/xo-form-components/src/phone/phoneInput/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"\\n\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-form-components/src/phone/phoneInputA/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function($) {\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/directionality/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/dropdown/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/error-tooltip/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/floating-label/directive.js\");\n\nvar _territoriesByCode = __webpack_require__(\"../node_modules/xo-form-components/src/phone/lib/territoriesByCode.js\");\n\nvar _territoriesByCode2 = _interopRequireDefault(_territoriesByCode);\n\n__webpack_require__(\"../node_modules/xo-form-components/src/phone/phoneInputA/styles.less\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-form-components/src/phone/phoneInputA/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nangular.module().directive('xoPhoneInputA', function () {\n return {\n template: _template2['default'],\n scope: {\n phone: '=?',\n showPhoneType: '=?',\n exclude: '@?',\n country: '=?'\n },\n\n link: function link(scope, element, attr, controller) {\n element.on('keyup', function (event) {\n element.find('.telephone').mask(scope.mask, {\n 'translation': {\n 0: { pattern: /[0-9]/ }\n }\n });\n });\n },\n\n controller: ['$scope', function ($scope) {\n $scope.locale = _squid.$locale;\n $scope.IntDialingCodes = _territoriesByCode2['default'];\n $scope.defaultCountryPhoneCode = _territoriesByCode2['default'][_squid.$locale.country];\n $scope.showPhoneType = (0, _squid.$feature)('phoneType', true, $scope.country) && $scope.showPhoneType !== false;\n\n // dont display countries that are tagged with hideInOtherCountries flag in territoriesByCode.js.\n // if localeCountry and dropdown country are same ignore hideInOtherCountries and display the countrycode.\n $scope.hideCountry = function (dropdownCountry, hideInOtherCountries) {\n return _squid.$locale.country !== dropdownCountry && hideInOtherCountries;\n };\n\n $scope.phone = $scope.phone || {};\n $scope.phone.phoneType = $scope.phone.phoneType || 'Mobile';\n $scope.phone.IntDialingCountryCode = $scope.defaultCountryPhoneCode.phoneCountryCode;\n\n angular.extend($scope.phone, {\n phoneCountryCode: _squid.$locale.country\n });\n\n function getPhoneMask(phoneType, phoneEntry) {\n var defaultMask = '0000000000000000';\n var masks = phoneEntry && phoneEntry.masks;\n var mobileMask = masks && masks.MOBILE ? masks.MOBILE : defaultMask;\n var fixedLineMask = masks && masks.FIXED_LINE ? masks.FIXED_LINE : defaultMask;\n return phoneType === 'Mobile' ? mobileMask : fixedLineMask;\n }\n\n function getPhonePattern(phoneEntry) {\n var defaultPattern = '^[0-9]+$';\n var patterns = phoneEntry && phoneEntry.patterns;\n // less stric regex validation in place for now, just use general regex to match mobile AND fixed-line formats\n // for now we use less strict regex validation because we are not ready for this more strict validation\n if (patterns) {\n return patterns.GENERAL ? patterns.GENERAL : defaultPattern;\n }\n return defaultPattern;\n\n // more strict regex validaiton based on phone type is found commented below\n // var ret;\n // switch ($scope.phone.phoneType) {\n // case 'Mobile':\n // ret = patterns.MOBILE;\n // break;\n // case 'Home':\n // case 'Work':\n // ret = patterns.FIXED_LINE;\n // break;\n // default:\n // ret = patterns.GENERAL;\n // break;\n // }\n // return ret ? ret : defaultPattern;\n }\n\n function populatePhoneMetadata() {\n if (!$scope.metadata || $scope.metadata.country !== _squid.$locale.metadata.country) {\n $scope.metadata = angular.copy(_squid.$locale.metadata);\n }\n var phoneEntry = $scope.metadata.phoneEntry;\n $scope.mask = getPhoneMask($scope.phone.phoneType, phoneEntry);\n $scope.pattern = getPhonePattern(phoneEntry);\n }\n\n populatePhoneMetadata();\n\n // Reset the phone number mask from according to the phone type\n $scope.phoneTypeChanged = function () {\n $scope.mask = getPhoneMask($scope.phone.phoneType, $scope.metadata.phoneEntry);\n $scope.pattern = getPhonePattern($scope.metadata.phoneEntry);\n $('.telephone').mask($scope.mask);\n };\n\n $scope.$watch('phone.phoneCountryCode', function (newValue) {\n $scope.phone.IntDialingCountryCode = _territoriesByCode2['default'][newValue].phoneCountryCode;\n });\n\n $scope.$on('localeChange', function () {\n $scope.defaultCountryPhoneCode = _territoriesByCode2['default'][_squid.$locale.country];\n $scope.phone.phoneCountryCode = _squid.$locale.country;\n if (!$scope.metadata || $scope.metadata.country !== _squid.$locale.metadata.country) {\n populatePhoneMetadata();\n $('.telephone').mask($scope.mask);\n }\n });\n\n $scope.$watch('country', function (newVal) {\n if (newVal) {\n $scope.defaultCountryPhoneCode = _territoriesByCode2['default'][$scope.country];\n $scope.phone.phoneCountryCode = $scope.country;\n\n if (!$scope.metadata || $scope.metadata.country !== $scope.country) {\n\n $scope.metadata = _squid.$MetadataModel.create();\n $scope.metadata.choose($scope.country, _squid.$locale.lang).then(function () {\n\n var phoneEntry = $scope.metadata.phoneEntry;\n $scope.mask = getPhoneMask($scope.phone.phoneType, phoneEntry);\n $scope.pattern = getPhonePattern(phoneEntry);\n\n $('.telephone').mask($scope.mask);\n });\n }\n }\n });\n\n $scope.showWork = $scope.exclude === 'WORK';\n }]\n };\n});\n\n_squid.$feature;\n\n_squid.$locale;\n\n_squid.$MetadataModel;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/jquery/dist/jquery.min.js\")))\n\n/***/ }),\n\n/***/ \"../node_modules/xo-form-components/src/phone/phoneInputA/styles.less\":\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ \"../node_modules/xo-form-components/src/phone/phoneInputA/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n \\n \\n
\\n\\n
\\n \\n \\n
\\n\\n
\\n\\n \\n \\n
\\n
\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-form-components/src/phone/phoneInputB/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _jquery = __webpack_require__(\"../node_modules/jquery/dist/jquery.min.js\");\n\nvar _jquery2 = _interopRequireDefault(_jquery);\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-form-components/src/phone/phoneInputB/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\n__webpack_require__(\"../node_modules/xo-form-components/src/phone/phoneInputB/styles.less\");\n\n__webpack_require__(\"../node_modules/xo-jquery-mask-plugin/dist/jquery.mask.min.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar MOBILE = 'Mobile';\nvar KEYS = {\n ENTER: 13,\n UP: 38,\n DOWN: 40,\n TAB: 9,\n ESC: 27,\n A: 65,\n Z: 90,\n SPACE: 32\n};\n\nvar query = '';\nvar queryTimer = null;\n\nexports['default'] = _squid.$Component.extend('$xoPhoneInputB', {\n tag: 'xo-phone-input-b',\n template: _template2['default'],\n\n props: {\n phone: {\n type: 'var',\n required: false\n },\n\n hidePhoneType: {\n type: 'var',\n required: false\n },\n\n hideWork: {\n type: 'var',\n required: false,\n 'default': false\n }\n },\n\n actions: {\n\n // return the phonePattern\n getPhonePattern: function getPhonePattern(phoneEntry) {\n var DEFAULT_PATTERN = '^[0-9]+$';\n var patterns = phoneEntry && phoneEntry.patterns;\n // less strict regex validation in place for now, just use general regex to match mobile AND fixed-line\n // formats\n // for now we use less strict regex validation because we are not ready for this more strict validation\n return patterns && patterns.GENERAL ? patterns.GENERAL : DEFAULT_PATTERN;\n },\n\n\n // return phoneMask based on phone Type\n getPhoneMask: function getPhoneMask(phoneType, phoneEntry) {\n var DEFAULT_MASK = '0000000000000000';\n var masks = phoneEntry && phoneEntry.masks;\n\n if (phoneType === MOBILE) {\n return masks && masks.MOBILE ? masks.MOBILE : DEFAULT_MASK;\n } else {\n return masks && masks.FIXED_LINE ? masks.FIXED_LINE : DEFAULT_MASK;\n }\n },\n\n\n // set the phone number mask and pattern\n updatePhoneMaskAndPattern: function updatePhoneMaskAndPattern() {\n var country = this.metadata.localization.country;\n // If phoneCountry does not match the country the metadata is from then\n // we set phoneEntry to a falsey value so the default pattern and mask are\n // used for the phone input.\n\n var phoneEntry = this.phoneCountry === country && this.metadata.phoneEntry;\n\n this.mask = this.actions.getPhoneMask(this.phone.phoneType, phoneEntry);\n this.pattern = this.actions.getPhonePattern(phoneEntry);\n this.actions.applyMaskOnPhoneInput();\n },\n getPhoneDialingCode: function getPhoneDialingCode(territory, state) {\n var overrides = this.metadata.regionalOverrides;\n\n if (state && overrides && overrides.hasOwnProperty(state) && overrides[state].props.internationalDialingCode) {\n return overrides[state].props.internationalDialingCode;\n }\n\n return territory.internationalDialingCode;\n },\n\n\n // fetch the passed country's international dialing code\n updateDialingCodeAndCountry: function updateDialingCodeAndCountry() {\n var territory = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var state = arguments[1];\n\n this.phoneCountry = territory.code;\n this.phone.IntDialingCountryCode = this.actions.getPhoneDialingCode(territory, state);\n (0, _jquery2['default'])('.fixedCode').text('+' + this.phone.IntDialingCountryCode);\n },\n\n\n /* if user chooses a different dialing code -\n -. fetch the new country's metadata\n -. update phone Country and dialing code\n -. update the phone number mask and pattern (no explicit call as it happens when metadata updates)\n -. close the dropdown if open\n */\n updatePhoneFieldMetadata: function updatePhoneFieldMetadata() {\n var territory = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var state = arguments[1];\n\n // create a local copy of metadata (only happens on initial load)\n if (!this.metadata) {\n this.metadata = _squid.$MetadataModel.instance(0, {\n 'noBroadcast': true\n });\n }\n\n this.metadata.choose(territory.code);\n\n this.actions.updateDialingCodeAndCountry(territory, state);\n // Whenever metadata is updated that is promise returns then the metadata listener will update the mask\n // and pattern so not calling it here. Moving on...\n\n // close the dropdown if open\n if (this.listVisible) {\n this.actions.collapseListAndFocusOnParent();\n }\n\n _logger.$logger.info('phone_country_code_updated', {\n territory: territory.code\n });\n },\n getTerritoryDataFromMetadata: function getTerritoryDataFromMetadata(country) {\n return _squid.$util.find(this.dialingCodeList, function (_ref) {\n var code = _ref.code;\n return code === country;\n });\n },\n\n\n // set the stage on first load or on locale change\n init: function init(country) {\n this.hidePhoneType = this.hidePhoneType || (0, _squid.$feature)('hidePhoneType', false, country);\n\n this.showDialingCodeContainer = (0, _squid.$feature)('showDialingCodeContainer', false, country);\n\n this.listVisible = false;\n\n // default the phone type to Mobile if not specified\n // Note: this.phone is not optional\n this.phone = this.phone || {};\n\n this.phone.phoneType = this.phone.phoneType || 'Mobile';\n\n // populate the dialing code list/options\n var _$locale$metadata = _squid.$locale.metadata,\n _$locale$metadata$ter = _$locale$metadata.territory,\n territory = _$locale$metadata$ter === undefined ? [] : _$locale$metadata$ter,\n _$locale$metadata$add = _$locale$metadata.additionalDialingCodes,\n additionalDialingCodes = _$locale$metadata$add === undefined ? [] : _$locale$metadata$add;\n var _$config$dialingCodeB = _squid.$config.dialingCodeBlacklist,\n dialingCodeBlacklist = _$config$dialingCodeB === undefined ? [] : _$config$dialingCodeB;\n\n // Merge dialing codes from supported countries with dialing codes from\n // assigned countries and then filtering countries that are blacklisted\n\n this.dialingCodeList = territory.concat(additionalDialingCodes).filter(function (_ref2) {\n var code = _ref2.code;\n return !dialingCodeBlacklist.includes(code);\n }).sort(function (a, b) {\n return a.name.localeCompare(b.name);\n });\n var territoryData = this.actions.getTerritoryDataFromMetadata(this.phone.phoneCountry || country);\n\n this.actions.updatePhoneFieldMetadata(territoryData);\n },\n\n\n // helper to show the options list and focus on the selected phone country option\n expandList: function expandList() {\n (0, _jquery2['default'])('.country-list').show();\n this.listVisible = true;\n (0, _jquery2['default'])('.country-list .country.selected').focus();\n },\n\n\n // helper to collapse the options\n collapseList: function collapseList() {\n this.listVisible = false;\n (0, _jquery2['default'])('.country-list').hide();\n },\n\n\n // helper to collapse the options and xfer focus back to the parent dropdown\n collapseListAndFocusOnParent: function collapseListAndFocusOnParent() {\n this.actions.collapseList();\n (0, _jquery2['default'])('#dialingCodeContainer div.selected-flag').focus();\n },\n\n\n // helper to toggle the dropdown list\n toggleList: function toggleList() {\n if (this.listVisible) {\n this.actions.collapseListAndFocusOnParent();\n } else {\n this.actions.expandList();\n }\n },\n\n\n // remove highlighting from other list items and highlight the given item\n highlightListItem: function highlightListItem(listItem) {\n (0, _jquery2['default'])('li.country').removeClass('highlight');\n listItem.addClass('highlight');\n listItem.focus();\n },\n\n // select the given item and update the phone field metadata\n selectListItem: function selectListItem(listItem) {\n var country = listItem.attr('data-country-code');\n var territory = this.actions.getTerritoryDataFromMetadata(country);\n\n this.actions.updatePhoneFieldMetadata(territory);\n },\n\n // find the first list item whose name starts with the query string\n searchForCountry: function searchForCountry(queryString) {\n for (var i = 0; i < this.dialingCodeList.length; i++) {\n if (this.actions.startsWith(this.dialingCodeList[i].name, queryString)) {\n\n var listItem = (0, _jquery2['default'])('.country-list').find('[data-country-code=\"' + this.dialingCodeList[i].code + '\"]');\n // update highlighting and scroll\n this.actions.highlightListItem(listItem);\n break;\n }\n }\n },\n\n // check if (uppercase) string a starts with string b\n startsWith: function startsWith(a, b) {\n return a.substr(0, b.length).toUpperCase() === b;\n },\n\n // When Switching between double Byte -> Single Byte character\n // angular model is not properly updated by jquery-mask (PPPLMER-52127)\n // re-update the model with entered value.\n updateAngularModel: function updateAngularModel() {\n if (this.phone.ispreFill) {\n // We set the flag to false once the prefill is completed.\n // This helps to update angular model properly upon next keyUp()\n this.phone.ispreFill = false;\n } else {\n this.phone.telephone = this.$element.find('.telephone').val();\n }\n },\n\n // format the phone number\n applyMaskOnPhoneInput: function applyMaskOnPhoneInput() {\n // If `this.mask` is `undefined` and we try to mask this field\n // jQuery mask will throw a type error when it tries to access\n // `mask.length` during a for loop.\n if (!this.mask) {\n return;\n }\n\n this.actions.updateAngularModel();\n\n this.$element.find('.telephone').mask(this.mask, {\n 'translation': {\n 0: { pattern: /[0-9]/ }\n }\n });\n },\n\n // highlight the event target\n handleListMouseover: function handleListMouseover($event) {\n this.actions.highlightListItem((0, _jquery2['default'])($event.target));\n },\n\n // expand the list when down arrow is pressed\n handleKeyboardInputForDropdown: function handleKeyboardInputForDropdown($event) {\n\n var key = $event.which;\n if (key === KEYS.DOWN || key === KEYS.UP || key === KEYS.SPACE) {\n $event.stopPropagation();\n $event.preventDefault();\n this.actions.expandList();\n } else {\n this.actions.collapseList();\n }\n },\n\n /*\n navigating list using the keyboard\n up, down, esc, enter and letter keys\n */\n handleKeyboardInputForList: function handleKeyboardInputForList($event) {\n var $listItems = (0, _jquery2['default'])('li.country');\n var key = $event.which;\n var $selected = (0, _jquery2['default'])($event.target);\n var $current = void 0;\n\n $event.stopPropagation();\n $event.preventDefault();\n\n // if user types in an input, focus on the first country starting with that query\n // upper case letters (since keyup/keydown only return upper case letters)\n if (key >= KEYS.A && key <= KEYS.Z) {\n if (queryTimer) {\n _angular.$timeout.cancel(queryTimer);\n }\n\n query += String.fromCharCode(key);\n this.actions.searchForCountry(query);\n\n queryTimer = (0, _angular.$timeout)(function () {\n query = '';\n }, 1e3);\n\n return;\n }\n\n // ignore other keys\n if (key !== KEYS.DOWN && key !== KEYS.UP && key !== KEYS.ENTER && key !== KEYS.ESC) {\n return;\n }\n\n // select the the new phone country when user hits enter\n if (key === KEYS.ENTER) {\n this.actions.selectListItem($selected);\n return;\n }\n\n // close the list if escape is pressed\n if (key === KEYS.ESC) {\n this.actions.collapseListAndFocusOnParent();\n return;\n }\n\n // highlight the next/prev element when arrow key is pressed\n if (key === KEYS.DOWN) // Down key\n {\n if (!$selected.length || $selected.is(':last-child')) {\n $current = $listItems.eq(0);\n } else {\n $current = $selected.next();\n }\n }\n\n // Up key\n if (key === KEYS.UP) {\n if (!$selected.length || $selected.is(':first-child')) {\n $current = $listItems.last();\n } else {\n $current = $selected.prev();\n }\n }\n\n this.actions.highlightListItem($current);\n }\n },\n\n lifecycle: {\n enter: function enter() {\n this.actions.init(_squid.$locale.country);\n },\n populate: function populate() {\n var _this = this;\n\n this.$on('localeChange', function () {\n _this.actions.init(_squid.$locale.country);\n });\n\n // update the phone mask and pattern when metadata is changed\n this.$watch('metadata', function () {\n _this.actions.updatePhoneMaskAndPattern();\n }, true);\n\n // update the mask when .telephone val changes either programatically or via user action\n this.$watch('this.phone.telephone', function (newVal) {\n if (newVal) {\n _this.$element.find('.telephone').val(newVal).trigger('input');\n }\n }, true);\n\n var addressChangeEvent = _angular.$rootScope.$on('billingAddressStateChange', function (e, address) {\n var territory = _this.actions.getTerritoryDataFromMetadata(_this.metadata.country);\n _this.actions.updatePhoneFieldMetadata(territory, address.state);\n });\n\n this.$on('$destroy', addressChangeEvent);\n\n // hide the dropdown list if a click occurs anywhere else on the page\n (0, _jquery2['default'])('*').on('click', function (event) {\n if (!(0, _jquery2['default'])('#dialingCodeContainer div.selected-flag').is((0, _jquery2['default'])(event.target))) {\n _this.actions.collapseList();\n }\n });\n }\n }\n});\n\n\n_angular.$rootScope;\n\n_angular.$timeout;\n\n_squid.$Component;\n\n_squid.$locale;\n\n_squid.$feature;\n\n_squid.$util;\n\n_squid.$MetadataModel;\n\n_squid.$config;\n\n_logger.$logger;\nmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ \"../node_modules/xo-form-components/src/phone/phoneInputB/styles.less\":\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ \"../node_modules/xo-form-components/src/phone/phoneInputB/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n\\n \\n\\n \\n
\\n\\n\\n
\\n\\n
\\n
\\n
\\n
\\n
\\n\\n
    \\n
  • \\n\\n
    \\n
    \\n
    \\n\\n {{ value.name }}\\n\\n +{{ value.internationalDialingCode }}\\n
  • \\n
\\n
\\n\\n \\n
\\n\\n\\n
\\n\\n +{{ phone.IntDialingCountryCode }}\\n \\n \\n
\\n\\n\\n
\\n\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-form-components/src/phone/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n
\\n \\n

\\n {{ content('creditcard.hi', {userName: auth.first_name ? auth.first_name : auth.email}) }}\\n \\n {{ content('memberReview.notYou')}}\\n \\n

\\n \\n
\\n\\n \\n

\\n \\n

\\n \\n
\\n
\\n
\\n \\n
\\n
\\n
\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-form-components/src/place-of-birth/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _angular2 = _interopRequireDefault(_angular);\n\nvar _index = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/floating-label/directive.js\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-form-components/src/place-of-birth/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _index.$Component.extend('$xoPlaceOfBirth', {\n tag: 'xo-place-of-birth',\n template: _template2['default'],\n\n props: {\n user: {\n type: 'var',\n required: false\n }\n },\n\n lifecycle: {\n populate: function populate() {\n var _this = this;\n\n this.populateCountryList = function () {\n var guestBlockedCountries = _index.$config.guestBlockedCountries || [];\n _this.metadata = _angular2['default'].copy(_index.$locale.metadata);\n var placeOfBirth = {};\n\n _this.countriesList = _this.metadata.territory.filter(function (c) {\n\n if (c.code === _index.$locale.country) {\n placeOfBirth = c;\n }\n return !(guestBlockedCountries.indexOf(c.code) > -1);\n });\n // set the default select option in the place of birth dropdown\n _this.selectedPlaceOfBirth = placeOfBirth;\n _this.user.placeofbirth = placeOfBirth.code;\n };\n this.populateCountryList();\n this.$on('metadataChange', this.populateCountryList);\n }\n },\n\n actions: {\n updatePlaceOfBirth: function updatePlaceOfBirth(country_code) {\n this.user.placeofbirth = country_code;\n }\n }\n});\n\n\n_index.$Component;\n\n_index.$locale;\n\n_index.$config;\nmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ \"../node_modules/xo-form-components/src/place-of-birth/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n \\n \\n
\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-form-components/src/select-shipping-country/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/dropdown/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/error-tooltip/directive.js\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-form-components/src/select-shipping-country/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _squid.$Component.extend('$xoSelectShippingCountry', {\n tag: 'xo-select-shipping-country',\n template: _template2['default'],\n props: {\n shippingAddress: {\n type: 'var',\n required: false\n },\n disableChangeShippingCountry: {\n type: 'var',\n required: false\n }\n },\n actions: {\n // Return the country list, with the selected address country at the top\n getList: function getList(address) {\n var defaultCountryCode = address && address.country || _squid.$locale.country;\n var countryList = _squid.$locale.metadata.territory;\n var isDefaultCountry = function isDefaultCountry(country) {\n return country.code === defaultCountryCode;\n };\n var defaultCountry = _squid.$util.find(countryList, isDefaultCountry);\n var res = countryList.filter(function (country) {\n return !isDefaultCountry(country);\n });\n\n res.unshift(defaultCountry);\n\n return res;\n }\n },\n lifecycle: {\n enter: function enter() {\n var _this = this;\n\n this.countryList = this.actions.getList(this.props.shippingAddress);\n\n this.$on('metadataChange', function () {\n _this.countryList = _this.actions.getList(_this.props.shippingAddress);\n });\n }\n }\n});\n\n\n_squid.$Component;\n\n_squid.$locale;\n\n_squid.$util;\nmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ \"../node_modules/xo-form-components/src/select-shipping-country/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"\\n
\\n \\n \\n
\\n
\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-form-components/src/travel-rule/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _index = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _index2 = __webpack_require__(\"../node_modules/xo-models/src/checkout/index.js\");\n\nvar _index3 = __webpack_require__(\"../node_modules/xo-models/src/user/index.js\");\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/dropdown/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/error-tooltip/directive.js\");\n\nvar _utilFunctions = __webpack_require__(\"../node_modules/xo-form-components/src/travel-rule/utilFunctions.js\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-form-components/src/travel-rule/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\n__webpack_require__(\"../node_modules/xo-form-components/src/travel-rule/styles.less\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _index.$Component.extend('xoTravelRule', {\n tag: 'xo-travel-rule',\n template: _template2['default'],\n\n props: {\n token: {\n type: 'var',\n required: false\n },\n finish: {\n type: 'var',\n required: false\n },\n onUserInfoSuccess: {\n type: 'var',\n required: false\n }\n },\n\n resolve: {\n models: function models() {\n return {\n checkoutSession: _index2.$CheckoutSessionModel.instance(this.token).retrieve()\n };\n }\n },\n\n actions: {\n submit: function submit() {\n var _this = this;\n\n var data = {};\n\n if (this.needPayerGovtId) {\n var chosenIdDetails = this.idTypes.find((0, _utilFunctions.findChosenId)(this.idData.type));\n\n // Scrub the formatting when invoking the backend services.\n var unformatted = (this.idData.value || '').replace(/[^0-9a-zA-Z]+/g, '');\n\n data.newDocId = {\n type: chosenIdDetails.idType,\n subType: chosenIdDetails.idSubtype,\n issuerCountry: this.idData.country,\n issuer: chosenIdDetails.idIssuer,\n value: unformatted,\n collectionPoint: 'UNKNOWN',\n placeOfIssue: this.idData.country\n };\n }\n\n if (this.needPayerAddress) {\n var address = this.address;\n\n\n data.newAddress = {\n address1: address.line1,\n address2: address.line2,\n city: address.city,\n state: address.state,\n zip: address.postal_code,\n iso_country: 'US'\n };\n }\n\n var onUserInfoSuccess = this.onUserInfoSuccess || function () {\n var checkoutCart = _index2.$CheckoutCartModel.instance(_this.token);\n\n return _this.models.checkoutSession.action('create', {\n data: {\n baToken: checkoutCart.billing && checkoutCart.billing.ba_token\n },\n success: function success() {\n // Clear the errors if create checkout session was successful\n _this.models.checkoutSession.errorData = undefined;\n _this.finish();\n }\n });\n };\n\n this.userInfo.action('governmentId-address', {\n data: data,\n\n success: onUserInfoSuccess,\n\n validation: function validation(validationData) {\n var $field = _this.$element.find('#data');\n\n $field.addClass('backendError');\n $field.attr('aria-invalid', true);\n $field.focus();\n }\n });\n }\n },\n\n lifecycle: {\n populate: function populate() {\n var _this2 = this;\n\n var country = _index.$locale.getCountryCodeISO();\n\n this.country = country;\n this.address = { country: country };\n this.countryList = _index.$locale.metadata.territory;\n this.idTypes = (0, _utilFunctions.getIdTypes)(_index.$locale.content);\n this.idData = (0, _utilFunctions.getIdData)();\n\n this.idTypeChanged = function () {\n _this2.idData.country = 'US';\n };\n\n var checkoutSession = _index2.$CheckoutSessionModel.instance(this.token);\n var payerDetailsTypes = checkoutSession.get('errorData.resolution.data', []);\n\n if (payerDetailsTypes.includes('GOVERNMENT_ID')) {\n this.needPayerGovtId = true;\n }\n\n if (payerDetailsTypes.includes('STREET_ADDRESS')) {\n this.needPayerAddress = true;\n }\n\n this.userInfo = _index3.$UserInfoModel.instance(this.token);\n }\n }\n});\n// This component probably shouldn't be in xo-form-components, as xo-address-components depends on xo-form-components\n// If below is included, the tests will error due to duplicate xo-form-components being loaded.\n// import 'xo-address-components/src/add-address/directive';\n\n_index.$Component;\n\n_index.$locale;\n\n_index2.$CheckoutSessionModel;\n\n_index2.$CheckoutCartModel;\n\n_index3.$UserInfoModel;\n\n_utilFunctions.findChosenId;\n\n_utilFunctions.getIdData;\n\n_utilFunctions.getIdTypes;\nmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ \"../node_modules/xo-form-components/src/travel-rule/styles.less\":\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ \"../node_modules/xo-form-components/src/travel-rule/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n

{{ content('travelRule.travelRule') }}

\\n

{{ content('travelRule.note') }}

\\n\\n
\\n
\\n \\n \\n
\\n
\\n
\\n
\\n \\n
\\n
\\n \\n \\n
\\n
\\n \\n \\n
\\n
\\n \\n \\n
\\n \\n
\\n
\\n
\\n \\n \\n
\\n
\\n
\\n\\n
\\n

{{ content('travelRule.pleaseEnterStreetAddress') }}

\\n \\n
\\n\\n
\\n \\n
\\n
\\n
\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-form-components/src/travel-rule/utilFunctions.js\":\n/***/ (function(module, exports) {\n\n\n\nexports.__esModule = true;\nvar findChosenId = exports.findChosenId = function findChosenId(id) {\n return function () {\n var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n name = _ref.name;\n\n return name === id;\n };\n};\n\nvar getIdTypes = exports.getIdTypes = function getIdTypes(content) {\n return [{\n name: 'SSN',\n value: content.get('travelRule.ssnDropdownLabel'),\n idType: 'TAX_ID',\n idSubtype: 'SSN',\n idIssuer: 'US_SSN'\n }, {\n name: 'TaxID',\n value: content.get('travelRule.taxIdDropdownLabel'),\n idType: 'TAX_ID',\n idSubtype: 'ITIN',\n idIssuer: 'US_ITIN'\n }, {\n name: 'EmployerID',\n value: content.get('travelRule.employerIdDropdownLabel'),\n idType: 'TAX_ID',\n idSubtype: 'TIN',\n idIssuer: 'US_TIN'\n }, {\n name: 'Passport',\n value: content.get('travelRule.passportDropdownLabel'),\n idType: 'PASSPORT',\n idIssuer: 'PASSPORT'\n }, {\n name: 'AlienNumber',\n value: content.get('travelRule.aNumberDropdownLabel'),\n idType: 'IMMGT_ID',\n idIssuer: 'IMMIGRATION'\n }];\n};\n\nvar getIdData = exports.getIdData = function getIdData() {\n return {\n type: 'SSN',\n value: '',\n country: 'US'\n };\n};\n\n/***/ }),\n\n/***/ \"../node_modules/xo-form-components/src/zipcode/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/error-tooltip/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/prefix-attrs-with/directive.js\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-form-components/src/zipcode/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _squid.$Component.extend('$xoZipcode', {\n tag: 'xo-zipcode',\n\n template: _template2['default'],\n\n props: {\n address: {\n reqiured: false,\n type: 'var'\n },\n attrPrefix: {\n required: false,\n type: 'var'\n },\n country: {\n required: false,\n type: 'str'\n },\n doneFn: {\n required: false,\n type: 'var'\n },\n keyPressFn: {\n required: false,\n type: 'var'\n },\n maxLength: {\n required: false,\n type: 'var'\n },\n postalCodeLabel: {\n required: false,\n type: 'var'\n },\n zipEntry: {\n required: false,\n type: 'var'\n },\n zipErrorKey: {\n required: false,\n type: 'str'\n },\n zipLabel: {\n required: false,\n type: 'str'\n },\n zipRequired: {\n reqiured: false,\n type: 'var'\n }\n },\n\n lifecycle: {\n enter: function enter() {\n this.formatRegex = undefined;\n this.inputParams = (0, _squid.$feature)('zipcodeInputParams', undefined, this.country);\n\n if (this.inputParams) {\n this.minLength = this.inputParams.minLength;\n this.maxLength = this.inputParams.maxLength;\n\n if (this.inputParams.formatPattern) {\n this.formatRegex = new RegExp(this.inputParams.formatPattern, 'g');\n }\n }\n\n this.formatZipWithDash = function (zipcode, index) {\n if (zipcode.length > index) {\n zipcode = zipcode.slice(0, index) + '-' + zipcode.slice(index);\n }\n\n return zipcode;\n };\n }\n },\n\n actions: {\n changeZip: function changeZip(zipcode) {\n if (zipcode) {\n\n if (this.formatRegex) {\n zipcode = zipcode.replace(this.formatRegex, '');\n }\n\n if (this.inputParams && this.inputParams.formatZip) {\n zipcode = this.formatZipWithDash(zipcode, this.inputParams.minLength);\n }\n\n this.address.postal_code = zipcode;\n }\n },\n doneFunction: function doneFunction() {\n if (this.doneFn) {\n this.doneFn();\n }\n },\n keyPressHandler: function keyPressHandler(event) {\n if (this.keyPressFn) {\n this.keyPressFn(event);\n }\n }\n }\n});\n\n\n_squid.$Component;\n\n_squid.$feature;\nmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ \"../node_modules/xo-form-components/src/zipcode/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n \\n \\n
\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/fraudnet/fn.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(module, __dirname, __filename) {\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _angular2 = _interopRequireDefault(_angular);\n\n__webpack_require__(\"../node_modules/squid/dist/index.js\");\n\n__webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n(function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n})(window.angular);\n\n_angular2['default'].module().factory('$fn', ['$populate', '$rootScope', '$window', '$logger', '$config', '$util', '$meta', '$q', function ($populate, $rootScope, $window, $logger, $config, $util, $meta, $q) {\n\n var fncls = 'fnparams-dede7cc5-15fd-4c75-a9f4-36c430ee3a99';\n var options = {\n fnSessionId: getFnCorrId(),\n sourceId: 'XOONBOARDINGNODEWEB',\n allowsCustomEvent: typeof CustomEvent !== 'undefined' && _angular2['default'].isFunction(CustomEvent),\n fnUrl: $config.urls.fraudnetUrl,\n passive: true\n };\n\n // Fraudnet initialization logging\n $logger.info('FN_Initialised', {\n 'allowsCustomEvent': options.allowsCustomEvent\n });\n\n // Get the unique id to pass to fraudnet - EC/WPS/BA token\n function getFnCorrId() {\n\n var fnCorrId = $rootScope.token || $meta.token;\n\n if ($meta.baToken) {\n $logger.info('BEAM_In_Hermes_Checkout');\n fnCorrId = $meta.baToken;\n } else if ($rootScope.fraudNetId) {\n fnCorrId = $rootScope.fraudNetId;\n }\n\n return fnCorrId;\n }\n\n // Call injectConfig before calling injectScript function\n function _injectScript(fnUrl) {\n var script = document.createElement('script');\n\n script.id = 'js-sync';\n script.src = fnUrl;\n document.body.appendChild(script);\n }\n\n function _injectConfig(configOptions) {\n var script = document.getElementById('fconfig');\n\n if (script) {\n if (script.parentNode) {\n script.parentNode.removeChild(script);\n }\n }\n\n script = document.createElement('script');\n script.id = 'fconfig';\n script.type = 'application/json';\n script.setAttribute('fncls', fncls);\n\n script.text = '{ \"f\": \"' + configOptions.fnSessionId + '\", \"s\": \"' + configOptions.sourceId + '\", \"cb\": \"fnCallback\" }';\n document.body.appendChild(script);\n }\n\n /*\n * trigger - this function will call injectConfig and injectScript\n * functions which actually load fraudnet required scripts\n */\n function trigger(scope) {\n var fnLoaded = !!$rootScope.fnLoaded;\n\n if (fnLoaded || !(0, _squid.$feature)('enableFraudnet')) {\n return false;\n }\n\n if (options.fnUrl) {\n\n $window.fnCallback = function () {\n if (scope) {\n scope.$emit('fnCallback');\n }\n };\n\n _injectConfig(options);\n _injectScript(options.fnUrl);\n\n $rootScope.fnLoaded = true;\n\n return true;\n }\n return false;\n }\n\n return {\n trigger: trigger\n };\n}]);\n\n_squid.$feature;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/webpack/buildin/module.js\")(module), \"../node_modules/xo-guest-components/src/fraudnet\", \"../node_modules/xo-guest-components/src/fraudnet/fn.js\"))\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest-upgrade-interstitial/constants/pxpExperimentConstants.js\":\n/***/ (function(module, exports) {\n\n\n\nexports.__esModule = true;\nvar frs_wps_optional = {\n frs_wps_optional_treatment1: {\n title: 'signup.createPayPalAccountFRSLine1Variant1',\n subTitle: 'signup.createPayPalAccountFRSLine2Variant1'\n },\n frs_wps_optional_treatment2: {\n title: 'signup.createPayPalAccountFRSLine1Variant2',\n subTitle: 'signup.createPayPalAccountFRSLine2Variant2'\n },\n frs_wps_optional_treatment3: {\n title: 'signup.createPayPalAccountFRSLine1Variant3',\n subTitle: 'signup.createPayPalAccountFRSLine2Variant1'\n }\n};\n\nexports['default'] = {\n test: {\n frs_wps_optional: frs_wps_optional\n }\n};\nmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest-upgrade-interstitial/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _index = __webpack_require__(\"../node_modules/xo-models/src/onboard/index.js\");\n\nvar _directive = __webpack_require__(\"../node_modules/xo-form-components/src/national-id-input/directive.js\");\n\nvar _index2 = __webpack_require__(\"../node_modules/xo-models/src/frs/index.js\");\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\nvar _uiRouter = __webpack_require__(\"../node_modules/angular-ui-router/release/angular-ui-router.min.js\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-guest-components/src/guest-upgrade-interstitial/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\nvar _pxpExperimentConstants = __webpack_require__(\"../node_modules/xo-guest-components/src/guest-upgrade-interstitial/constants/pxpExperimentConstants.js\");\n\nvar _pxpExperimentConstants2 = _interopRequireDefault(_pxpExperimentConstants);\n\n__webpack_require__(\"../node_modules/xo-guest-components/src/guest/onboardOptions/signup/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/tooltip/directive.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _squid.$Component.extend('xoGuestUpgradeInterstitial', {\n tag: 'xo-guest-upgrade-interstitial',\n template: _template2['default'],\n\n props: {\n token: {\n type: 'var',\n required: false\n },\n parentModel: {\n type: 'var',\n required: false\n }\n },\n\n lifecycle: {\n enter: function enter() {\n var _this = this;\n\n this.locale = _squid.$locale;\n this.flags = this.props.parentModel.flags;\n if (!this.flags) {\n _logger.$logger.info('WPS_interstitial_render_error');\n return _uiRouter.$state.go('checkout.genericError', { code: 'PAYMENT_ALREADY_DONE' });\n }\n this.flags.wpsInterstitial = true;\n this.flags.showMobileEmailSection = true;\n this.onboard = this.props.parentModel.onboard;\n this.frsContentKeys = {};\n\n // If US, then show new e-sign compliance experience\n // Submit button text changes and return to merchant msg above button\n // with user action 'continue'\n if (this.locale.country === 'US') {\n this.showNewSignupComplianceExp = true;\n }\n\n if (this.flags.freeReturnShippingOptInFlowApplicable) {\n var treatmentName = this.flags.freeReturnShippingApplicableTreatment;\n var treatmentContentKeys = _pxpExperimentConstants2['default'].test['frs_wps_optional'][treatmentName];\n\n this.frsContentKeys = treatmentContentKeys ? treatmentContentKeys : {};\n }\n\n // Wait for the component to be populated and the template to be rendered\n // and then set `interstitialOpen` to `true`, which will add the class 'upsellOpen'\n // to the interstitial and trigger the transition to slide it onto the screen\n this.$on('populated', function () {\n _this.interstitialOpen = true;\n });\n },\n populate: function populate() {\n var _this2 = this;\n\n this.handleFrsContingency = function (message) {\n _logger.$logger.info('WPS_guest_upgrade_free_return_shipping_optin_' + message);\n _this2.logFptiFrsError();\n return _uiRouter.$state.go('checkout.done');\n };\n\n this.handleFrsError = function (message, error) {\n _logger.$logger.info('WPS_guest_upgrade_free_return_shipping_optin_' + message, error);\n _this2.logFptiFrsError();\n return _uiRouter.$state.go('checkout.done');\n };\n\n this.logFptiFrsError = function () {\n _logger.$logger.info('checkout_fpti', {\n from: 'guest_upgrade_interstitial_frs_optin_flow',\n to: 'process_frs_optin_user_failure'\n });\n };\n }\n },\n\n actions: {\n onSubmit: function onSubmit() {\n var _this3 = this;\n\n this.upgrade = new _index.$GuestUpgradeModel();\n\n this.upgrade.billing_address = this.onboard.billing_address;\n this.upgrade.user = this.onboard.user;\n this.upgrade.payerId = this.onboard.payerId;\n this.upgrade.transaction = this.onboard.transaction;\n this.upgrade.phone = this.onboard.phone;\n this.upgrade.marketing_optin = this.onboard.marketingOptin;\n this.upgrade.nationalIdModel = _directive.$NationalIdModel.instance(this.props.token);\n this.upgrade.experienceChannel = 'HERMES';\n\n var isFrsOptInFlow = this.flags.freeReturnShippingOptInFlowApplicable;\n var isFrsActiveFlow = this.flags.freeReturnShippingOptInActiveFlow;\n\n // Close the interstitial after submit so it is not shown underneath the spinner mask.\n this.interstitialOpen = false;\n\n return this.upgrade.save({\n\n data: this.upgrade.serialize(),\n\n success: function success() {\n _angular.$rootScope.mode = 'signup';\n _logger.$logger.info('WPS_guest_upgrade_success');\n if (isFrsOptInFlow) {\n _logger.$logger.info('checkout_fpti', {\n from: 'guest_upgrade_interstitial_frs_optin_flow',\n to: 'prepare_frs_optin_user'\n });\n\n // Opt in upgraded user for Free Return Shipping benefit\n // Set whether FRS opt-in flow type is Active or Silent\n var frsOptInModel = new _index2.$FreeReturnShippingOptInModel();\n\n var frsOptInRequest = {\n optInStatus: 'Y',\n optInType: isFrsActiveFlow ? 'ACTIVE' : 'SILENT'\n };\n\n return frsOptInModel.save({\n data: frsOptInRequest,\n success: function success(optInResponse) {\n // User is opted into FRS benefit and can request return shipping refund for eligible transactions.\n _logger.$logger.info('WPS_guest_upgrade_free_return_shipping_optin_success');\n _logger.$logger.info('checkout_fpti', {\n from: 'guest_upgrade_interstitial_frs_optin_flow',\n to: 'process_frs_optin_user_success'\n });\n return _uiRouter.$state.go('checkout.done');\n },\n contingencies: {\n // In-context FRS opt-in failed. User needs to opt-in to FRS explicitly.\n FRS_OPTIN_ERROR: function FRS_OPTIN_ERROR() {\n return _this3.handleFrsContingency('FRS_OPTIN_ERROR');\n },\n VALIDATION_ERROR: function VALIDATION_ERROR() {\n return _this3.handleFrsContingency('VALIDATION_ERROR');\n },\n DEFAULT: function DEFAULT() {\n return _this3.handleFrsContingency('UNHANDLED_CONTINGENCY');\n }\n },\n validation: function validation(errorResponse) {\n return _this3.handleFrsError('SERVICE_VALIDATION_ERROR', errorResponse);\n },\n error: function error(errorResponse) {\n return _this3.handleFrsError('SERVICE_ERROR', errorResponse);\n }\n });\n }\n return _uiRouter.$state.go('checkout.done');\n },\n error: function error() {\n _logger.$logger.info('WPS_guest_upgrade_failed_SERVICE_ERROR');\n return _uiRouter.$state.go('checkout.done', { code: 'NO_UPGRADE' });\n },\n contingencies: {\n DOB_INVALID: function DOB_INVALID() {\n _logger.$logger.info('WPS_guest_upgrade_failed_DOB_INVALID');\n return _uiRouter.$state.go('checkout.done', { code: 'NO_UPGRADE' });\n },\n NATID_INVALID: function NATID_INVALID() {\n _logger.$logger.info('WPS_guest_upgrade_failed_NATID_INVALID');\n return _uiRouter.$state.go('checkout.done', { code: 'NO_UPGRADE' });\n },\n DEFAULT: function DEFAULT() {\n _logger.$logger.info('WPS_guest_upgrade_failed_Unknown_contingency');\n return _uiRouter.$state.go('checkout.done', { code: 'NO_UPGRADE' });\n }\n },\n validation: function validation() {\n _logger.$logger.info('WPS_guest_upgrade_failed_SERVICE_VALIDATION_ERROR');\n return _uiRouter.$state.go('checkout.done', { code: 'NO_UPGRADE' });\n }\n });\n }\n }\n});\n\n\n_angular.$rootScope;\n\n_squid.$Component;\n\n_squid.$locale;\n\n_index.$GuestUpgradeModel;\n\n_directive.$NationalIdModel;\n\n_index2.$FreeReturnShippingOptInModel;\n\n_logger.$logger;\n\n_uiRouter.$state;\nmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest-upgrade-interstitial/route.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(module, __dirname, __filename) {var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/angular/angular.min.js\"), __webpack_require__(\"../node_modules/squid/dist/index.js\"), __webpack_require__(\"../node_modules/xo-guest-components/src/guest-upgrade-interstitial/directive.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (angular, squid) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n angular.module('xo-guest-upgrade-interstitial.route', ['squid', 'xo-guest-upgrade-interstitial.directive']).factory('$GuestUpgradeInterstitialRoute', ['$ComponentRoute', function ($ComponentRoute) {\n\n return $ComponentRoute.extend('GuestUpgradeInterstitialRoute', {\n\n name: 'guestUpgradeInterstitial',\n directive: 'xo-guest-upgrade-interstitial',\n trackingData: {\n fptiState: 'guest_xo_upgrade_interstitial',\n trackStateExit: false,\n pageQualifier: 'guest',\n buzname: {\n 'guest': {\n 'pagename': '%::fullpage-guest-upgrade-interstitial',\n 'pagename2': '%::fullpage-guest:member:hermes:',\n 'version': 'guest:%:'\n // More page qualifiers come here...\n } }\n },\n children: []\n });\n }]);\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/webpack/buildin/module.js\")(module), \"../node_modules/xo-guest-components/src/guest-upgrade-interstitial\", \"../node_modules/xo-guest-components/src/guest-upgrade-interstitial/route.js\"))\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest-upgrade-interstitial/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n
\\n
 
\\n
\\n
\\n
{{ content('base.payPal') }}
\\n\\n
\\n
\\n
{{content('signup.paymentSuccessTitle')}}
\\n
{{content(frsContentKeys.title)}}
\\n
{{content('signup.createAccountToday')}}
\\n
\\n\\n
\\n
{{ content('signup.createAccountDetails') }}
\\n
\\n
\\n
\\n
{{content('signup.paymentSuccessTitle')}}
\\n
{{content('signup.createAccountToday')}}
\\n
\\n\\n
{{ content('signup.createAccountDetails') }}
\\n
\\n\\n
\\n {{onboard.user.email}}\\n \\n \\n \\n \\n\\n \\n
\\n {{ content('signup.emailHelper') }}\\n
\\n
\\n
\\n\\n
\\n\\n \\n\\n \\n\\n \\n
\\n
\\n
\\n
\\n
\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest-upgrade/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function($) {\n\nexports.__esModule = true;\n\nvar _index = __webpack_require__(\"../node_modules/xo-return-to-merchant/dist/index.js\");\n\nvar _index2 = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _util = __webpack_require__(\"../node_modules/xo-guest-components/src/lib/util.js\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-guest-components/src/guest-upgrade/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\nvar _index3 = __webpack_require__(\"../node_modules/xo-models/src/fi/index.js\");\n\nvar _uiRouter = __webpack_require__(\"../node_modules/angular-ui-router/release/angular-ui-router.min.js\");\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\nvar _directive = __webpack_require__(\"../node_modules/xo-form-components/src/national-id-input/directive.js\");\n\nvar _index4 = __webpack_require__(\"../node_modules/xo-models/src/onboard/index.js\");\n\nvar _mapper = __webpack_require__(\"../node_modules/xo-guest-components/src/guest-upgrade/lib/mapper.js\");\n\nvar _mapper2 = _interopRequireDefault(_mapper);\n\n__webpack_require__(\"../node_modules/xo-form-components/src/place-of-birth/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-form-components/src/gender-type/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-form-components/src/phone/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-form-components/src/dob-input/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-guest-components/src/guest-upgrade/occupation/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-guest-components/src/guest/nationality/directive.js\");\n\nvar _fpti = __webpack_require__(\"../node_modules/xo-tracking/dist/fpti.js\");\n\n__webpack_require__(\"../node_modules/xo-page-components/src/footer/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/tooltip/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/message/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/spinner/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-address-components/src/add-address/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-page-components/src/value-props/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-return-to-merchant/dist/util.js\");\n\n__webpack_require__(\"../node_modules/xo-guest-components/src/guest/emailInput/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-guest-components/src/guest/passwordInput/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-address-components/src/address-normalization/directive.js\");\n\nvar _gdprCookieBanner = __webpack_require__(\"../node_modules/xo-models/src/gdprCookieBanner/index.js\");\n\nvar _helper = __webpack_require__(\"../node_modules/xo-guest-components/src/guest/onboardOptions/lib/helper.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _index2.$Component.extend('xoGuestUpgrade', {\n tag: 'xo-guest-upgrade',\n template: _template2['default'],\n\n props: {\n token: {\n type: 'var',\n required: false\n }\n },\n\n resolve: {\n models: function models() {\n var options = {\n params: {\n data: _index2.$util.param('data')\n }\n };\n\n return {\n preloadedData: _index4.$GuestUpgradeModel.instance().retrieve(options)\n };\n }\n },\n\n lifecycle: {\n enter: function enter() {\n this.upgradeFromEmail = _index2.$util.param('data').length === 15 || _index2.$util.param('data').length === 16;\n this.flags = { singlePassword: false };\n this.locale = _index2.$locale;\n this.returnToMerchantTimerMsg = '';\n this.valueTitle = (0, _index2.$renderContent)('guestVerify.propHead');\n this.valueText = (0, _index2.$renderContent)('guestVerify.propVal');\n this.footerStyle = 'fullFooter';\n this.isGdprValid = _gdprCookieBanner.isGdprValid;\n\n // Do not show cancel URL if experience is set to minibrowser\n if (!_angular.$rootScope.miniBrowser) {\n this.cancelUrl = _index2.$util.param('cancel_url');\n } else {\n // Change the message of the overlay on the site that launched this flow.\n _index.$ReturnToMerchant.postToMerchant({\n secureWindowmsg: _index2.$locale.content.get('signup.overlayMsg')\n });\n }\n\n var modelSchema = {\n user: new _index4.$OnboardUserModel({\n country: _index2.$locale.country,\n nationality: _index2.$locale.country\n }),\n\n phone: new _index4.$OnboardPhoneModel(),\n\n billing_address: _index3.$BillingAddressModel.create(null, {\n country: _index2.$locale.country\n })\n };\n\n this.onboard = new _index4.$GuestUpgradeModel(modelSchema);\n\n this.fpti = {\n trackSuccess: function trackSuccess() {\n this.track(':success');\n },\n trackError: function trackError(err) {\n this.track(':error', err);\n },\n track: function track(suffix, err) {\n var error = void 0;\n\n if (err) {\n error = {\n type: 'pageError',\n msg: err.message\n };\n }\n _uiRouter.$state.current.trackingData.buzname.guestupgrade.pagename2 += suffix;\n _fpti.$fpti.setupDataString(_uiRouter.$state.current, error);\n }\n };\n\n this.currentYear = new Date().getFullYear().toString();\n this.validMonths = _index2.$util.map(_index2.$util.range(1, 13), function (num) {\n return ('0' + num).substr(-2);\n });\n },\n populate: function populate() {\n var _this = this;\n\n var isGDPRCountry = _helper.signupLib.getIsGDPRCountry(this.locale.country);\n\n // Market Opt-in display and checked by default is based on config settings\n this.showMarketingOptin = _helper.signupLib.getMarketingOptinShowHide(this.locale.country, isGDPRCountry);\n\n // If not showing a checkbox for marketing opt-in, set the flag to null as per GDPR team requirement\n if (!this.showMarketingOptin) {\n this.onboard.marketing_optin = null;\n } else {\n // DO THIS ONLY IF the marketing opt-in checkbox is displayed to users\n // Is marketing opt-in checkbox checked by default\n this.onboard.marketing_optin = _helper.signupLib.getMarketingOptinIsChecked(this.locale.country, isGDPRCountry);\n // Marketing opt-in text next to checkbox\n this.marketingOptinContentKey = _helper.signupLib.getMarketingOptinContentKey(this.locale.country, isGDPRCountry);\n }\n\n var getContentIdentifier = function getContentIdentifier() {\n return [_index2.$locale.country, _index2.$locale.lang, (0, _index2.$contentVersion)(), 'signupTerms.easySignupTCPA'].join(':');\n };\n\n var preloadedData = this.models.preloadedData;\n\n var getFiMode = function getFiMode() {\n var _ref = preloadedData && preloadedData.fi_details || {},\n _ref$bank_accounts = _ref.bank_accounts,\n bank_accounts = _ref$bank_accounts === undefined ? [] : _ref$bank_accounts;\n\n return bank_accounts.length > 0 ? 'bank' : '';\n };\n\n this.onboard.eConsentTermsContent = _helper.signupLib.getSignupTermsContentKey(this.locale.country, isGDPRCountry, getFiMode());\n\n if (preloadedData.guestUpgradeNewAppRedirect === true) {\n var redirectUrl = window.location.href.replace('xoonboarding', 'prox');\n\n _logger.$logger.info('guest_upgrade_new_app_redirect', {\n redirectUrl: redirectUrl,\n transactionId: preloadedData.transaction\n });\n return _index2.$util.redirect(redirectUrl);\n }\n this.onboard.payerId = preloadedData.payerId;\n this.onboard.billing_address.populate(_mapper2['default'].getFormattedAddress(preloadedData.billing_address));\n this.onboard.user.populate(preloadedData.user);\n this.specialFields = _mapper2['default'].getSpecialFieldsFor(preloadedData.user.country);\n this.onboard.contentIdentifier = getContentIdentifier();\n this.hasDialingCodeOverride = _util.hasDialingCodeOverride;\n\n if (this.upgradeFromEmail) {\n // Email based gxo flow\n\n this.onboard.card = preloadedData.card;\n this.onboard.receiptId = preloadedData.receiptId;\n this.onboard.transaction = preloadedData.transaction;\n this.onboard.experienceIdentifier = 'proxemailupgrade';\n } else {\n // Ad based gxo flow\n\n // Check if return_url and cancel_url are present and if the session has timed out\n if (!_index2.$util.param('cancel_url') || !_index2.$util.param('return_url') || !preloadedData.email || !preloadedData.payerId || !preloadedData.transaction) {\n this.fpti.trackError(new Error('malformed payload'));\n _uiRouter.$state.go('guestupgrade.genericError', {\n code: 'GUEST_UPGRADE_SESSION_ERROR'\n });\n return;\n }\n _mapper2['default'].pxpMapper(this, _index2.$pxpMatch, preloadedData);\n this.onboard.transaction = preloadedData.transaction;\n this.onboard.experienceIdentifier = 'proxupgrade';\n\n _logger.$logger.info('guest_upgrade_ui_fields', {\n special_fields: this.specialFields,\n txn_id: preloadedData.transaction\n });\n if (this.specialFields.address) {\n this.uponNormalization = function (normalizedAddress) {\n _this.showAddressNormalizationLightbox = false;\n\n // Update the new address\n _this.onboard.billing_address = _index3.$BillingAddressModel.create(null, normalizedAddress, {\n id: '0',\n normalization_status: normalizedAddress.normalization_status\n });\n\n _this.upgrade();\n };\n }\n }\n\n var showSuccessPage = function showSuccessPage() {\n // This changes the footer wapper ID and appropriate css classes gets applied\n _this.footerStyle = 'confirmationFooter';\n\n if (!_this.upgradeFromEmail) {\n var timer = void 0;\n\n _this.successUrl = _index2.$util.buildURL(_index2.$util.param('return_url'), {\n status: 'success'\n });\n\n _this.fpti.trackSuccess();\n _index.$ReturnToMerchant.postToMerchant(_this.successUrl);\n\n var timerExecutor = function timerExecutor() {\n // eslint-disable-line no-inner-declarations\n // We wait for 5 secs on live and 10 secs on stage/local(helpful for automation)\n var waitTime = _index2.$config.deploy.isLive() ? 20 : 10;\n\n var updateMsg = function updateMsg() {\n _this.returnToMerchantTimerMsg = (0, _index2.$renderContent)('signup.returnTimerMsg', {\n waitTime: waitTime\n });\n };\n\n _this.stopTimerAndRedirect = function () {\n if (angular.isDefined(timer)) {\n _angular.$interval.cancel(timer);\n timer = undefined;\n }\n _index.$ReturnToMerchant.goTo(_this.successUrl);\n };\n\n updateMsg();\n // When this.onboard becomes null, the success page is shown.\n _this.onboard = null;\n\n return function () {\n waitTime -= 1;\n updateMsg();\n if (waitTime === 0) {\n return _this.stopTimerAndRedirect();\n }\n };\n };\n\n timer = (0, _angular.$interval)(timerExecutor(), 1000);\n } else {\n // When this.onboard becomes null, the success page is shown.\n _this.onboard = null;\n }\n };\n\n var handleUIValidation = function handleUIValidation(errorData, displayGenericMessage) {\n var element = _mapper2['default'].errorMapper(errorData);\n\n if (element) {\n var $fields = $(element);\n\n $fields.addClass('backendError');\n }\n if (displayGenericMessage) {\n _this.pageErrorMsg = { msgs: [_this.locale.content.genericError.incontextGenericPageError], type: 'error' };\n }\n };\n\n this.upgrade = function () {\n var data = _this.upgradeFromEmail ? _this.onboard.serializeEmailFlow() : _this.onboard.serialize();\n\n _this.onboard.save({\n data: data,\n success: showSuccessPage,\n contingencies: {\n DOB_INVALID: function DOB_INVALID(err, message) {\n handleUIValidation(err);\n _this.pageErrorMsg = { msgs: [_this.locale.content.validation.validDOB], type: 'error' };\n },\n PHONE_INVALID: function PHONE_INVALID(err, message) {\n handleUIValidation(err);\n _this.pageErrorMsg = { msgs: [_this.locale.content.validation.validPhone], type: 'error' };\n },\n NATID_INVALID: function NATID_INVALID(err, message) {\n handleUIValidation(err);\n _this.pageErrorMsg = { msgs: [_this.locale.content.validation.validNationalId], type: 'error' };\n },\n ADDRESS_LINEONE_INVALID: function ADDRESS_LINEONE_INVALID(err, message) {\n handleUIValidation(err, true);\n },\n ADDRESS_CITY_INVALID: function ADDRESS_CITY_INVALID(err, message) {\n handleUIValidation(err, true);\n },\n ADDRESS_STATE_INVALID: function ADDRESS_STATE_INVALID(err, message) {\n handleUIValidation(err, true);\n },\n ADDRESS_POSTAL_CODE_INVALID: function ADDRESS_POSTAL_CODE_INVALID(err, message) {\n handleUIValidation(err, true);\n },\n PASSWORD_INVALID: function PASSWORD_INVALID(err, message) {\n handleUIValidation(err, true);\n },\n FI_INVALID: function FI_INVALID(err, message) {\n handleUIValidation(err);\n },\n DEFAULT: function DEFAULT(name, contingency) {\n _logger.$logger.info('guest_upgrade_contingency', {\n 'int_error_description': contingency && contingency.message,\n 'contingency_name': name\n });\n }\n }\n })['catch'](function (err) {\n _this.fpti.trackError(err);\n\n _logger.$logger.error('guest_upgrade_error', { error: err });\n\n if (_index2.$util.param('return_url')) {\n var url = _index2.$util.buildURL(_index2.$util.param('return_url'), {\n status: 'fail'\n });\n\n _this.cancelUrl = url;\n\n _index.$ReturnToMerchant.postToMerchant({\n cancelUrl: url\n });\n }\n });\n };\n }\n },\n\n actions: {\n onSubmit: function onSubmit() {\n if (this.specialFields.nationalId) {\n this.onboard.nationalIdModel = _directive.$NationalIdModel.instance(_angular.$rootScope.token);\n }\n\n if (this.specialFields.address) {\n this.showAddressNormalizationLightbox = true;\n return;\n }\n\n this.upgrade();\n },\n formatExpiry: function formatExpiry(event) {\n var key = event.keyCode || event.charCode;\n var $el = $(event.target);\n var val = $el.val().replace(/[^0-9\\/]/gi, '');\n var strokes = val.length;\n\n // Ignore delete keys\n if (key === 8 || key === 46) {\n return;\n }\n\n // after two characters add a slash char\n if (strokes === 2) {\n val += '/';\n }\n\n this.expiryDate = val;\n $el.mask('99/99');\n },\n\n\n validate: function validate(expiryDate) {\n if (!expiryDate) {\n return;\n }\n\n var month = void 0,\n year = void 0,\n unformatted = void 0;\n var isValid = false;\n\n unformatted = expiryDate.replace(/[^0-9]/gi, '');\n if (unformatted.length > 3) {\n month = unformatted.substring(0, 2);\n year = this.currentYear.substring(0, 2) + unformatted.substring(2, 4);\n\n isValid = this.validMonths.indexOf(month) > -1 && year >= this.currentYear;\n\n if (isValid) {\n var expDate = new Date(year, parseInt(month, 10) - 1);\n var today = new Date();\n\n isValid = expDate > today;\n }\n }\n\n return isValid;\n }\n\n }\n\n});\n\n\n_index.$ReturnToMerchant;\n\n_index2.$Component;\n\n_index2.$contentVersion;\n\n_index2.$locale;\n\n_index2.$util;\n\n_index2.$config;\n\n_index2.$pxpMatch;\n\n_index2.$renderContent;\n\n_angular.$rootScope;\n\n_angular.$interval;\n\n_util.hasDialingCodeOverride;\n\n_index3.$BillingAddressModel;\n\n_uiRouter.$state;\n\n_logger.$logger;\n\n_directive.$NationalIdModel;\n\n_index4.$OnboardUserModel;\n\n_index4.$OnboardPhoneModel;\n\n_index4.$GuestUpgradeModel;\n\n_fpti.$fpti;\n\n_gdprCookieBanner.isGdprValid;\n\n_helper.signupLib;\nmodule.exports = exports['default'];\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/jquery/dist/jquery.min.js\")))\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest-upgrade/lib/mapper.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_RESULT__ = (function () {\n\n var FIELD_SETS = { // eslint-disable-line no-reserved-keys\n 'default': [],\n set1: ['dob', 'nationality'],\n set2: ['dob', 'nationality', 'marketing'],\n set3: ['address', 'dob', 'marketing'],\n set4: ['dob', 'nationality', 'occupation', 'marketing'],\n set5: ['dob', 'nationality', 'nationalId'],\n set6: ['dob', 'gender', 'placeOfBirth', 'nationality', 'nationalId'],\n set7: ['dob', 'nationality', 'nationalId', 'marketing']\n };\n\n var FIELDS = {\n US: FIELD_SETS['default'],\n IN: FIELD_SETS.set2,\n IL: FIELD_SETS.set7,\n AT: FIELD_SETS.set2,\n BE: FIELD_SETS.set2,\n DK: FIELD_SETS.set2,\n NO: FIELD_SETS.set2,\n PL: FIELD_SETS.set2,\n SE: FIELD_SETS.set2,\n AU: FIELD_SETS.set3,\n CA: FIELD_SETS.set4,\n SG: FIELD_SETS.set5,\n MY: FIELD_SETS.set2,\n KR: FIELD_SETS.set5,\n NZ: FIELD_SETS.set5,\n ID: FIELD_SETS.set5,\n TH: FIELD_SETS.set5,\n FR: FIELD_SETS.set2,\n DE: FIELD_SETS.set2,\n IT: FIELD_SETS.set2,\n ES: FIELD_SETS.set2,\n GB: FIELD_SETS.set2,\n NL: FIELD_SETS.set2,\n CH: FIELD_SETS.set7,\n TR: FIELD_SETS.set1,\n CZ: FIELD_SETS.set2,\n FI: FIELD_SETS.set2,\n EE: FIELD_SETS.set2,\n LV: FIELD_SETS.set2,\n HR: FIELD_SETS.set7,\n UA: FIELD_SETS.set1,\n PT: FIELD_SETS.set2,\n IE: FIELD_SETS.set2,\n HU: FIELD_SETS.set2,\n GR: FIELD_SETS.set2,\n SK: FIELD_SETS.set2,\n BA: FIELD_SETS.set1,\n BG: FIELD_SETS.set2,\n CY: FIELD_SETS.set2,\n HK: FIELD_SETS.set6,\n LT: FIELD_SETS.set2,\n LU: FIELD_SETS.set2,\n MT: FIELD_SETS.set2,\n PH: FIELD_SETS.set5,\n RO: FIELD_SETS.set2,\n SI: FIELD_SETS.set2,\n TW: FIELD_SETS.set1,\n AE: FIELD_SETS.set5,\n AL: FIELD_SETS.set1,\n AM: FIELD_SETS.set1,\n AZ: FIELD_SETS.set1,\n BH: FIELD_SETS.set5,\n BN: FIELD_SETS.set1,\n BY: FIELD_SETS.set1,\n EG: FIELD_SETS.set1,\n FO: FIELD_SETS.set5,\n GE: FIELD_SETS.set5,\n NG: FIELD_SETS.set1,\n OM: FIELD_SETS.set5,\n QA: FIELD_SETS.set5,\n RE: FIELD_SETS.set1,\n RS: FIELD_SETS.set5,\n SA: FIELD_SETS.set5,\n VA: FIELD_SETS.set1,\n ZA: FIELD_SETS.set5,\n ZM: FIELD_SETS.set1,\n LK: FIELD_SETS.set1,\n FM: FIELD_SETS.set1,\n MN: FIELD_SETS.set1,\n MV: FIELD_SETS.set1,\n VN: FIELD_SETS.set5,\n MK: FIELD_SETS.set1,\n GI: FIELD_SETS.set1,\n MQ: FIELD_SETS.set1,\n GP: FIELD_SETS.set1,\n MU: FIELD_SETS.set5,\n MD: FIELD_SETS.set5,\n IS: FIELD_SETS.set7,\n GL: FIELD_SETS.set5,\n KZ: FIELD_SETS.set5,\n KW: FIELD_SETS.set5,\n BT: FIELD_SETS.set1,\n KH: FIELD_SETS.set1,\n LA: FIELD_SETS.set1,\n NP: FIELD_SETS.set1,\n TO: FIELD_SETS.set1,\n WS: FIELD_SETS.set1,\n AO: FIELD_SETS.set1,\n BF: FIELD_SETS.set1,\n BI: FIELD_SETS.set1,\n BJ: FIELD_SETS.set1,\n CD: FIELD_SETS.set1,\n CG: FIELD_SETS.set1,\n CI: FIELD_SETS.set1,\n CK: FIELD_SETS.set1,\n CM: FIELD_SETS.set1,\n CV: FIELD_SETS.set1,\n DJ: FIELD_SETS.set1,\n ER: FIELD_SETS.set1,\n ET: FIELD_SETS.set1,\n FJ: FIELD_SETS.set1,\n GA: FIELD_SETS.set1,\n GF: FIELD_SETS.set1,\n GM: FIELD_SETS.set1,\n GN: FIELD_SETS.set1,\n GW: FIELD_SETS.set1,\n KG: FIELD_SETS.set1,\n KI: FIELD_SETS.set1,\n KM: FIELD_SETS.set1,\n LI: FIELD_SETS.set2,\n ME: FIELD_SETS.set1,\n MG: FIELD_SETS.set1,\n MH: FIELD_SETS.set1,\n ML: FIELD_SETS.set1,\n MR: FIELD_SETS.set1,\n MS: FIELD_SETS.set1,\n MW: FIELD_SETS.set1,\n NA: FIELD_SETS.set1,\n NC: FIELD_SETS.set1,\n NE: FIELD_SETS.set1,\n NF: FIELD_SETS.set1,\n NR: FIELD_SETS.set1,\n NU: FIELD_SETS.set1,\n PF: FIELD_SETS.set1,\n SZ: FIELD_SETS.set1,\n TD: FIELD_SETS.set1,\n TG: FIELD_SETS.set1,\n TJ: FIELD_SETS.set1,\n TM: FIELD_SETS.set1,\n TV: FIELD_SETS.set1,\n TZ: FIELD_SETS.set1,\n UG: FIELD_SETS.set5,\n VU: FIELD_SETS.set1,\n WF: FIELD_SETS.set1,\n YT: FIELD_SETS.set1,\n ZW: FIELD_SETS.set1,\n DZ: FIELD_SETS.set1,\n JO: FIELD_SETS.set5,\n MA: FIELD_SETS.set5,\n TN: FIELD_SETS.set1,\n YE: FIELD_SETS.set1,\n AD: FIELD_SETS.set5,\n BW: FIELD_SETS.set5,\n KE: FIELD_SETS.set5,\n LS: FIELD_SETS.set5,\n MC: FIELD_SETS.set5,\n MZ: FIELD_SETS.set5,\n SN: FIELD_SETS.set5,\n PG: FIELD_SETS.set1,\n PM: FIELD_SETS.set1,\n PN: FIELD_SETS.set1,\n PY: FIELD_SETS.set1,\n RW: FIELD_SETS.set1,\n SB: FIELD_SETS.set1,\n SC: FIELD_SETS.set1,\n SH: FIELD_SETS.set1,\n SJ: FIELD_SETS.set1,\n SL: FIELD_SETS.set1,\n SM: FIELD_SETS.set1,\n SO: FIELD_SETS.set1,\n ST: FIELD_SETS.set1,\n PW: FIELD_SETS.set1,\n AG: FIELD_SETS.set1,\n AN: FIELD_SETS.set1,\n AW: FIELD_SETS.set1,\n BB: FIELD_SETS.set1,\n BO: FIELD_SETS.set1,\n BZ: FIELD_SETS.set1,\n DM: FIELD_SETS.set1,\n FK: FIELD_SETS.set1,\n GD: FIELD_SETS.set1,\n GY: FIELD_SETS.set1,\n KN: FIELD_SETS.set1,\n LC: FIELD_SETS.set1,\n SR: FIELD_SETS.set1,\n TC: FIELD_SETS.set1,\n TT: FIELD_SETS.set1,\n VC: FIELD_SETS.set1,\n VG: FIELD_SETS.set1,\n AI: FIELD_SETS.set1,\n MX: FIELD_SETS.set1,\n AR: FIELD_SETS.set5,\n BM: FIELD_SETS.set5,\n BS: FIELD_SETS.set5,\n CL: FIELD_SETS.set5,\n CO: FIELD_SETS.set5,\n CR: FIELD_SETS.set5,\n DO: FIELD_SETS.set5,\n EC: FIELD_SETS.set5,\n GT: FIELD_SETS.set5,\n HN: FIELD_SETS.set5,\n JM: FIELD_SETS.set5,\n JP: FIELD_SETS.set1,\n KY: FIELD_SETS.set5,\n NI: FIELD_SETS.set5,\n PA: FIELD_SETS.set5,\n PE: FIELD_SETS.set5,\n SV: FIELD_SETS.set5,\n UY: FIELD_SETS.set5,\n VE: FIELD_SETS.set5,\n C2: FIELD_SETS.set1\n };\n\n // converts ['a', 'b'] to {a:true, b:true}\n function arrayToObject(array) {\n var obj = {};\n\n array.forEach(function (key) {\n obj[key] = true;\n });\n\n return obj;\n }\n\n return {\n getSpecialFieldsFor: function getSpecialFieldsFor(country) {\n return arrayToObject(FIELDS[country] || FIELDS.US);\n },\n\n getFormattedAddress: function getFormattedAddress(address) {\n if (address.country === 'AU') {\n var AUStateCodeMap = {\n australiancapitalterritory: 'ACT',\n newsouthwales: 'NSW',\n northernterritory: 'NT',\n queensland: 'QLD',\n southaustralia: 'SA',\n tasmania: 'TAS',\n victoria: 'VIC',\n westernaustralia: 'WA'\n };\n\n address.state = AUStateCodeMap[address.state.replace(/\\s/g, '').toLowerCase()] || address.state;\n }\n\n return address;\n },\n\n errorMapper: function errorMapper(errorData) {\n var errorMap = {\n DOB_INVALID: { field: '#dobText' },\n PHONE_INVALID: { field: '#telephone' },\n NATID_INVALID: { field: '#idValue' },\n FI_INVALID: { field: '#expiry_value, #cvv' },\n ADDRESS_LINEONE_INVALID: { field: '#billingLine1' },\n ADDRESS_CITY_INVALID: { field: '#billingCity' },\n ADDRESS_STATE_INVALID: { field: '#billingState' },\n ADDRESS_POSTAL_CODE_INVALID: { field: '#billingPostalCode' },\n PASSWORD_INVALID: { field: '#password, #confirmPassword' }\n };\n\n return errorMap[errorData].field;\n },\n\n pxpMapper: function pxpMapper($scope, $pxpMatch, preloadedData) {\n var patterns = {\n proxSignupTitleTreatment: 'prox_signup_title_treatment',\n proxSinglePasswordTreatment: 'prox_single_password_treatment'\n };\n var logPayload = {\n txn_id: preloadedData.transaction\n };\n\n if ($scope.locale.metadata.country === 'US') {\n $pxpMatch('prox_single_password', {}, patterns, logPayload).then(function (result) {\n if (result && result.proxSinglePasswordTreatment) {\n $scope.flags.singlePassword = true;\n }\n });\n }\n if ($scope.locale.metadata.country === 'US' && $scope.locale.metadata.lang === 'en') {\n $pxpMatch('prox_signup_title', {}, patterns, logPayload).then(function (result) {\n if (result && result.proxSignupTitleTreatment) {\n $scope.pageTitle = $scope.locale.content.signup.eBayTitle;\n } else {\n $scope.pageTitle = $scope.locale.content.signup.title;\n }\n });\n }\n }\n };\n}).call(exports, __webpack_require__, exports, module),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest-upgrade/occupation/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/angular/angular.min.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!../node_modules/xo-guest-components/src/guest-upgrade/occupation/template.html\"), __webpack_require__(\"../node_modules/xo-ui-components/src/error-tooltip/directive.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (angular, template) {\n\n return angular.module('xo-guest-upgrade.occupation', ['squid', 'xo-error-tooltip.directive']).directive('xoOccupation', [function () {\n return {\n template: template,\n\n scope: {\n user: '=?'\n },\n\n controller: ['$scope', '$locale', function ($scope, $locale) {\n\n $scope.locale = $locale;\n\n $scope.occupations = function () {\n return $locale.content.signup.occupationList;\n };\n }]\n };\n }]);\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest-upgrade/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n {{content('signup.paypal')}}\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n

{{content('signup.successTitle')}}

\\n
\\n\\n

{{content('signup.successText1')}} {{content('signup.successText2')}}

\\n

\\n

{{content('signup.returnToEbayMsg')}}

\\n\\n \\n {{content('signup.backToEbay')}}\\n \\n
\\n
\\n
\\n \\n\\n
\\n\\n
\\n

{{ content(upgradeFromEmail ? 'guestUpgrade.emailFlowTitle' : 'signup.title') }}

\\n

{{pageSubTitle}}

\\n
\\n\\n
\\n
\\n
\\n

{{content('guestUpgrade.contactInfo')}}

\\n

{{onboard.user.first_name}} {{onboard.user.last_name}}

\\n

{{onboard.user.email}}

\\n

{{onboard.user.phone}}

\\n
\\n
\\n

{{content('guestUpgrade.billingAddress')}}

\\n

{{onboard.billing_address.line1}}

\\n

{{onboard.billing_address.city}}, {{onboard.billing_address.state}} {{onboard.billing_address.postal_code}}

\\n
\\n
\\n\\n

\\n\\n
\\n

{{content('guestUpgrade.confirmCard')}} {{onboard.card.brand}} x-{{onboard.card.lastFour}}

\\n\\n
\\n \\n\\n \\n
\\n\\n
\\n \\n\\n \\n\\n \\n
\\n
\\n
\\n\\n \\n \\n\\n \\n
\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n \\n \\n\\n \\n \\n \\n\\n \\n\\n
\\n \\n
\\n\\n \\n\\n
\\n
{{ content('signup.agrementError') }}
\\n\\n \\n \\n
\\n \\n
\\n

\\n
\\n\\n
\\n \\n \\n
\\n\\n
\\n \\n
\\n
\\n
\\n
\\n\\n
\\n \\n
\\n
\\n
\\n \\n \\n \\n
\\n
\\n \\n
\\n
\\n \\n
\\n \\n
\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest/cartChanged/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _checkout = __webpack_require__(\"../node_modules/xo-models/src/checkout/index.js\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-guest-components/src/guest/cartChanged/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\nvar _errorHandlerHelper = __webpack_require__(\"../node_modules/xo-guest-components/src/guest/lib/errorHandlerHelper.js\");\n\nvar errorHandlerHelper = _interopRequireWildcard(_errorHandlerHelper);\n\n__webpack_require__(\"../node_modules/xo-address-components/src/add-address/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-form-components/src/select-shipping-country/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-page-components/src/header/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-page-components/src/cart/directive.js\");\n\nvar _util = __webpack_require__(\"../node_modules/xo-return-to-merchant/dist/util.js\");\n\nvar _xoShippingOptions = __webpack_require__(\"../node_modules/xo-shipping-options/src/index.js\");\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } }\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _squid.$Component.extend('$xoCartChanged', {\n tag: 'xo-cart-changed',\n\n template: _template2['default'],\n\n props: {\n token: {\n type: 'var',\n required: false\n },\n\n shippingAddress: {\n type: 'var',\n required: true\n },\n\n disableChangeShippingCountry: {\n type: 'var',\n required: false\n },\n\n checkForShippingOptions: {\n type: 'var',\n required: true\n },\n\n shippingOptions: {\n type: 'var',\n required: true\n },\n\n selectedShippingOption: {\n type: 'var',\n required: true\n },\n\n onShippingOptionSelect: {\n type: 'var',\n required: true\n },\n\n onShippingChange: {\n type: 'var',\n required: true\n },\n\n onContinue: {\n type: 'var',\n required: true\n },\n\n message: {\n type: 'var',\n required: false\n },\n\n showForm: {\n type: 'var',\n required: false\n }\n },\n\n resolve: {\n models: function models() {\n return {\n checkoutAppData: _checkout.$CheckoutAppDataModel.instance(this.props.token).retrieve(),\n checkoutSession: _checkout.$CheckoutSessionModel.instance(this.props.token).retrieve()\n };\n }\n },\n\n lifecycle: {\n enter: function enter() {\n var _this = this;\n\n this.callOnShippingChange = this.showForm;\n\n var isCallbackInterstitial = window.xprops && window.xprops.onShippingChange;\n\n var initialMessage = !isCallbackInterstitial && this.shippingOptions && this.shippingOptions.length ? (0, _squid.$renderContent)('shipping.orderChoiceLabel') : this.message;\n\n var changeMessage = function changeMessage(message) {\n _this.computedMessage = message;\n };\n\n changeMessage(initialMessage);\n\n // Turn on the call-callback flag if a new option is selected\n this.wrappedOnShippingOptionSelect = function () {\n var option = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var userSelected = arguments[1];\n\n return _this.onShippingOptionSelect(option, userSelected).then(function () {\n if (userSelected && window.xprops && window.xprops.onShippingChange) {\n return _this.onShippingChange();\n }\n });\n };\n\n this.errorMessage = '';\n\n // If the interstitial is submitted with the form open, call the callback\n this.openForm = function () {\n changeMessage((0, _squid.$renderContent)('shippingAddress.label'));\n _this.callOnShippingChange = true;\n _this.showForm = true;\n };\n\n this.closeForm = function () {\n changeMessage(initialMessage);\n _this.showForm = false;\n };\n\n document.querySelector('body').style.overflow = 'hidden';\n },\n exit: function exit() {\n document.querySelector('body').style.overflow = '';\n },\n populate: function populate() {\n var _this2 = this;\n\n this.checkForShippingOptions();\n\n this.cartOptions = {\n showTotal: true,\n showContainer: false\n };\n\n this.updateShippingAddress = function () {\n return _this2.models.checkoutSession.shipping.action('update', {\n data: _this2.shippingAddress.serialize(),\n resultModel: _this2.models.checkoutSession,\n validation: function validation(errorData, message) {\n errorHandlerHelper.errorHandler(message, errorData.fields, function () {}, null, '#cartChangedForm');\n _this2.errorMessage = {\n msgs: [(0, _squid.$renderContent)('shippingAddress.errorInfo')],\n type: 'error'\n };\n\n return _squid.$promise.reject();\n }\n });\n };\n\n this.merchant = this.models.checkoutAppData.getMerchantDisplayName();\n\n var getFormattedAddress = function getFormattedAddress() {\n var fullName = _this2.models.checkoutSession.shipping.name;\n var fullAddress = _this2.models.checkoutSession.shipping.full_address_multiline;\n\n return [fullName].concat(fullAddress).join('
');\n };\n\n this.formattedAddress = _angular.$sce.trustAsHtml(getFormattedAddress());\n\n (0, _angular.$timeout)(function () {\n _this2.modalOpen = true;\n });\n }\n },\n\n actions: {\n updateShippingOrContinue: function updateShippingOrContinue(event) {\n if (event) {\n event.preventDefault();\n }\n\n if (this.callOnShippingChange) {\n this.callOnShippingChange = false;\n return this.updateShippingAddress().then(this.onShippingChange);\n }\n\n return this.onContinue();\n },\n returnToMerchant: function returnToMerchant() {\n return (0, _util.goTo)(this.models.checkoutAppData.urls.cancel_url);\n }\n }\n});\n\n\n_squid.$Component;\n\n_squid.$renderContent;\n\n_angular.$timeout;\n\n_angular.$sce;\n\n_checkout.$CheckoutAppDataModel;\n\n_checkout.$CheckoutSessionModel;\n\n_squid.$promise;\n\n_util.goTo;\n\n_xoShippingOptions.$xoShippingOptions; // eslint-disable-line no-unused-vars;\n\nmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest/cartChanged/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n
\\n
\\n\\n
\\n\\t\\t\\t\\t
\\n \\n
\\n
\\n
\\n

{{computedMessage}}

\\n
\\n
\\n \\n \\n
\\n
\\n
\\n \\n \\n \\n \\n {{content('shipping.orderChoiceLabel')}}\\n \\n
\\n
\\n
\\n \\n \\n
\\n
\\n
\\n
\\n
\\n
\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest/constants/constants.js\":\n/***/ (function(module, exports) {\n\n\n\nexports.__esModule = true;\nvar submitButtonGuestTextKeyMap = {\n commit: 'common.payLabel',\n notCommit: 'common.continueLabel',\n commitInCurrency: 'common.payInCurrencyLabel',\n notCommitInCurrency: 'common.continueInCurrencyLabel'\n};\n\nvar submitButtonSignupTextKeyMap = {\n commit: 'common.createAccountAndPayNow',\n notCommit: 'common.agreeAndCreateAccount'\n};\n\nvar SUBSCRIPTION_SUBMIT_BUTTON_KEY = exports.SUBSCRIPTION_SUBMIT_BUTTON_KEY = 'wpsSubscription.guest.createAccountAndSubscribe.button.text';\n\nvar SUBMIT_BUTTON_TEXT_KEY_MAP = exports.SUBMIT_BUTTON_TEXT_KEY_MAP = {\n signup: {\n US: submitButtonSignupTextKeyMap,\n ROW: {\n commit: 'common.agreeAndPay',\n notCommit: 'common.agreeAndContinue'\n }\n },\n pomaSignup: {\n US: submitButtonSignupTextKeyMap,\n ROW: {\n commit: 'common.agreeAndPayNowPoma',\n notCommit: 'common.agreeAndContinue'\n }\n },\n guest: {\n US: submitButtonGuestTextKeyMap,\n ROW: submitButtonGuestTextKeyMap\n }\n};\n\n// This is remittance transfer rule max amount for invoicing transactions\nvar RTR_AMOUNT = exports.RTR_AMOUNT = 15;\n\n// Shipping Options Label mapping for content\nvar SHIPPING_TYPE_LABEL_MAPPING = exports.SHIPPING_TYPE_LABEL_MAPPING = {\n PICKUP: {\n PICKUP_IN_STORE: 'shipping.pickupInStore',\n STORE_PICKUP: 'shipping.storePickup',\n PICKUP_OPTION: 'shipping.pickupOption',\n COLLECTION: 'shipping.collection',\n EXPRESS_PICKUP: 'shipping.expressPickup',\n CLICK_COLLECT: 'shipping.clickCollect',\n SHIP_TO_STORE: 'shipping.shipToStore',\n COLLECT_PLUS: 'shipping.collectPlus',\n PICKUP_FROM_STORE: 'shipping.pickupFromStore',\n FREE_NEXT_DAY_STORE_DELIVERY: 'shipping.freeNextDayStoreDelivery',\n BUY_AND_COLLECT: 'shipping.buyAndCollect',\n SHIP_TO_LOCKER: 'shipping.shipToLocker'\n },\n SHIPPING: {\n SHIP_TO_HOME: 'shipping.shipToHome',\n OVERNIGHT: 'shipping.overnightShipping', // testing multiple methods ....\n TWO_THREE_DAYS: 'shipping.twoThreeDaysShipping' // testing multiple methods ....\n }\n};\n\n// Shipping Type content mapping\nvar SHIPPING_TYPE_MAPPING = exports.SHIPPING_TYPE_MAPPING = {\n SHIPPING: 'shipping.shipHome',\n PICKUP: 'shipping.shipStore'\n};\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest/constants/errorHandlerConstants.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.validationErrorMap = exports.errorElementMap = undefined;\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _index = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar loginRedirectUrl = (0, _squid.$getRedirectUrl)('hermes', {\n hermesLoginRedirect: 'xoon'\n});\n\n/* Please do not remove the double encoding component 'encodeURIComponent' */\nvar doubleEncodeUrl = function doubleEncodeUrl(url) {\n return encodeURIComponent(encodeURIComponent(url));\n};\nvar loginPageUrl = doubleEncodeUrl((0, _squid.$getRedirectUrl)('hermes', {}));\nvar landingPageUrl = doubleEncodeUrl(_index.$util.buildURL(_index.$config.urls.fallbackUrl && _index.$config.urls.fallbackUrl['hermes'] || '/webapps/hermes', _index.$util.params()));\n\nvar authflowRedirectUrl = (0, _squid.$getRedirectUrl)('authflow', {});\nauthflowRedirectUrl = authflowRedirectUrl + '&loginUrl=' + loginPageUrl + '&redirectUri=' + landingPageUrl;\n\n// TODO: should we have fields in a different constant\nvar errorElementMap = {\n INVALID_FIRST_NAME: {\n fields: [{ field: 'user.first_name' }]\n },\n INVALID_LAST_NAME: {\n fields: [{ field: 'user.last_name' }]\n },\n INVALID_PHONE_TYPE: {\n fields: [{ field: 'phone.phoneType' }]\n },\n INVALID_PHONE_NUMBER: {\n fields: [{ field: 'phone.telephone' }]\n },\n INVALID_CITY_STATE_ZIPCODE: {\n fields: [{ field: 'address.city' }, { field: 'address.state' }, { field: 'zipCode' }]\n },\n INVALID_LINE1: {\n fields: [{ field: 'address.line1' }]\n },\n INVALID_CITY: {\n fields: [{ field: 'address.city' }]\n },\n INVALID_STATE: {\n fields: [{ field: 'address.state' }]\n },\n INVALID_ZIPCODE: {\n fields: [{ field: 'PostalCode' }, { field: 'address.postal_code' }],\n name: 'billing'\n },\n INVALID_NATIONAL_ID_TYPE: {\n element: '#nationalIdFields',\n fields: [{ field: 'type' }],\n model: 'nationalIdModel.nationalId.'\n },\n INVALID_NATIONAL_ID: {\n element: '#nationalIdFields',\n fields: [{ field: 'Value' }],\n name: 'id'\n },\n INVALID_SECONDARY_ID_TYPE: {\n element: '#nationalIdFields',\n fields: [{ field: 'secondaryIdType' }],\n model: 'nationalIdModel.'\n },\n INVALID_SECONDARY_ID: {\n element: '#nationalIdFields',\n fields: [{ field: 'secondaryIdValue' }],\n model: 'nationalIdModel.'\n },\n\n INVALID_BILLING_ADDRESS: {\n element: '#billingAddress',\n name: 'billing'\n },\n INVALID_SHIPPING_ADDRESS: {\n element: '#shippingAddress',\n name: 'shipping'\n },\n INVALID_EXPIRATION_DATE: {\n pageError: {\n contentKey: 'creditcard.errorExpiredCard'\n }\n },\n PASSWORD_TOO_LONG: {\n element: '#signupContainer',\n model: 'user.',\n fields: [{ field: 'password' }, { field: 'confirmPassword' }]\n },\n PASSWORD_CONTAINS_FORBIDDEN_WORDS: {\n element: '#signupContainer',\n model: 'user.',\n fields: [{ field: 'password' }, { field: 'confirmPassword' }]\n },\n PASSWORD_HAS_ILLEGAL_CHARACTERS: {\n element: '#signupContainer',\n model: 'user.',\n fields: [{ field: 'password' }, { field: 'confirmPassword' }]\n },\n ACCOUNT_ALREADY_EXISTS: {\n fields: [{ field: 'user.email' }],\n pageError: {\n contentKey: 'login.userMayHaveAccount',\n guestcontentKey: 'login.userMayHaveAccountGuest'\n },\n compileMessageWith: {\n href: loginRedirectUrl\n },\n scrollToTop: true\n },\n ACCOUNT_ALREADY_EXISTS_AUTHFLOW_REDIRECT: {\n fields: [{ field: 'user.email' }],\n pageError: {\n contentKey: 'login.userMayHaveAccountRecovery'\n },\n compileMessageWith: {\n href: authflowRedirectUrl\n },\n scrollToTop: true\n },\n INVALID_EMAIL_ID: {\n fields: [{ field: 'user.email' }]\n },\n DOB_INVALID: {\n element: '#dob, #dobBank',\n name: 'dob',\n fields: [{ field: 'Day' }, { field: 'Month' }, { field: 'Year' }, { field: 'Text' }]\n },\n REJECT_REFUSED: {\n pageError: {\n contentKey: 'creditcard.errorInstrumentRefused'\n }\n },\n INVALID_INSTRUMENT_ID: {\n pageError: {\n contentKey: 'creditcard.errorInvalidData'\n }\n },\n ADDRESS_MISMATCH: {\n pageError: {\n contentKey: 'creditcard.errorInstrumentBillingAddressNotMatch'\n }\n },\n CHECK_DIGITS_REJECTED: {\n pageError: {\n contentKey: 'creditcard.errorCheckDigits'\n }\n },\n OAS_GENERIC_ERROR: {\n pageError: {\n contentKey: 'genericError.genericError'\n },\n scrollToTop: true\n },\n BIN_BLOCKED_OR_CARD_NOT_ALLOWED: {\n pageError: {\n contentKey: 'creditcard.complianceDecline'\n }\n },\n INVALID_CARD_OR_TYPE: {\n pageError: {\n contentKey: 'creditcard.errorInvalidCCNumberOrType_global'\n }\n },\n INVALID_SECURITY_CODE: {\n fields: [{ field: 'card.security_code' }],\n pageError: {\n contentKey: 'creditcard.errorCheckDigitsNotPresent'\n }\n },\n COUNTRY_NOT_SUPPORTED: {\n pageError: {\n contentKey: 'creditcard.complianceDecline'\n }\n },\n CARD_GENERIC_ERROR: {\n pageError: {\n contentKey: 'creditcard.errorGeneral'\n }\n },\n BANK_GENERIC_ERROR: {\n pageError: {\n contentKey: 'bank.errorGeneral'\n }\n }\n};\n\n// TODO: this block needs to be depricated. looks like this is valid for a\n// old service call which is killed already\nvar validationErrorMap = {\n INVALID_ROUTING_NUMBER: {\n contentKey: 'bank.invalidRoutingNumber'\n },\n INVALID_ACCOUNT: {\n contentKey: 'creditcard.errorInvalidData'\n },\n ISSUER_DENIED: {\n contentKey: 'creditcard.errorIssuerDenied'\n },\n ISSUER_REJECTED: {\n contentKey: 'creditcard.errorIssuerReject'\n },\n REJECT_REFUSED: {\n contentKey: 'creditcard.errorInstrumentRefused'\n },\n INVALID_INSTRUMENT_ID: {\n contentKey: 'creditcard.errorInvalidData'\n }\n};\n\nexports.errorElementMap = errorElementMap;\nexports.validationErrorMap = validationErrorMap;\n\n\n_squid.$getRedirectUrl;\n\n_index.$config;\n\n_index.$util;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest/constants/pxpExperimentConstants.js\":\n/***/ (function(module, exports) {\n\n\n\nexports.__esModule = true;\n\nvar singlepassword = {\n singlepassword_test: 'xoon_single_password_test'\n};\n\nvar xoon_optional_signup_content_change = {\n xoon_optional_signup_content_change_gb_test: {\n subTitle: 'common.createPayPalPropTest1',\n yesCreateAccount: 'common.yesCreateAccountTest1'\n },\n xoon_optional_signup_content_change_test1: {\n title: 'common.getBenefitsLine1Test1',\n subTitle: 'common.createPayPalPropTest1'\n },\n xoon_optional_signup_content_change_test2: {\n title: 'common.getBenefitsLine1Test1',\n subTitle: 'common.createPayPalPropTest2'\n },\n xoon_optional_signup_content_change_test3: {\n title: 'common.getBenefitsLine1Test2',\n subTitle: 'common.createPayPalPropTest3'\n },\n xoon_optional_signup_content_change_test4: {\n title: 'common.getBenefitsLine1Test2',\n subTitle: 'common.createPayPalPropTest4'\n }\n};\n\nvar frsPageName = {\n wps: {\n signup: 'frs_wps_forced',\n guest: 'frs_wps_optional',\n guestonly: 'frs_wps_optional'\n },\n ec: {\n signup: 'frs_ec_forced',\n guest: 'frs_ec_optional'\n }\n};\n\nvar xoon_forced_signup_buyer_protection_content = {\n xoon_forced_signup_buyer_protection_content_treatment_a: {\n titleLine1: 'common.getSecurityAndProtectionLine1',\n titleLine2: 'common.getSecurityAndProtectionLine2',\n subTitle: 'common.getSecurityAndProtectionLineSubTitle'\n },\n xoon_forced_signup_buyer_protection_content_treatment_b: {\n titleLine1: 'common.getCashbackLine1',\n titleLine2: '',\n subTitle: 'common.getCashbackLineSubTitle'\n }\n};\n\nvar frs_wps_optional = {\n frs_wps_optional_treatment1: {\n title: 'signup.createPayPalAccountFRSLine1Variant1',\n subTitle: 'signup.createPayPalAccountFRSLine2Variant1'\n },\n frs_wps_optional_treatment2: {\n title: 'signup.createPayPalAccountFRSLine1Variant2',\n subTitle: 'signup.createPayPalAccountFRSLine2Variant2'\n },\n frs_wps_optional_treatment3: {\n title: 'signup.createPayPalAccountFRSLine1Variant3',\n subTitle: 'signup.createPayPalAccountFRSLine2Variant1'\n }\n};\n\nvar frs_ec_optional = {\n frs_ec_optional_treatment1: {\n title: 'signup.createPayPalAccountFRSLine1Variant4',\n subTitle: 'signup.createPayPalAccountFRSLine2Variant1'\n },\n frs_ec_optional_treatment2: {\n title: 'signup.createPayPalAccountFRSLine1Variant5',\n subTitle: 'signup.createPayPalAccountFRSLine2Variant2'\n },\n frs_ec_optional_treatment3: {\n title: 'signup.createPayPalAccountFRSLine1Variant6',\n subTitle: 'signup.createPayPalAccountFRSLine2Variant1'\n }\n};\n\nvar frs_ec_forced = {\n frs_ec_forced_treatment1: {\n title: 'signup.createPayPalAccountFRSLine1Variant7',\n subTitle: 'signup.createPayPalAccountFRSLine2Variant1'\n },\n frs_ec_forced_treatment2: {\n title: 'signup.createPayPalAccountFRSLine1Variant8',\n subTitle: 'signup.createPayPalAccountFRSLine2Variant2'\n },\n frs_ec_forced_treatment3: {\n title: 'signup.createPayPalAccountFRSLine1Variant9',\n subTitle: 'signup.createPayPalAccountFRSLine2Variant1'\n }\n};\n\nvar frs_wps_forced = {\n frs_wps_forced_treatment1: {\n title: 'signup.createPayPalAccountFRSLine1Variant7',\n subTitle: 'signup.createPayPalAccountFRSLine2Variant1'\n },\n frs_wps_forced_treatment2: {\n title: 'signup.createPayPalAccountFRSLine1Variant8',\n subTitle: 'signup.createPayPalAccountFRSLine2Variant2'\n },\n frs_wps_forced_treatment3: {\n title: 'signup.createPayPalAccountFRSLine1Variant9',\n subTitle: 'signup.createPayPalAccountFRSLine2Variant1'\n }\n};\n\nvar frs_applicable_treatments = {\n frs_wps_optional: ['frs_wps_optional_treatment1', 'frs_wps_optional_treatment2', 'frs_wps_optional_treatment3'],\n frs_ec_optional: ['frs_ec_optional_treatment1', 'frs_ec_optional_treatment2', 'frs_ec_optional_treatment3'],\n frs_ec_forced: ['frs_ec_forced_treatment1', 'frs_ec_forced_treatment2', 'frs_ec_forced_treatment3'],\n frs_wps_forced: ['frs_wps_forced_treatment1', 'frs_wps_forced_treatment2', 'frs_wps_forced_treatment3']\n};\n\nexports['default'] = {\n test: {\n singlepassword: singlepassword,\n xoon_optional_signup_content_change: xoon_optional_signup_content_change,\n frs_wps_optional: frs_wps_optional,\n frs_ec_optional: frs_ec_optional,\n frs_ec_forced: frs_ec_forced,\n frs_applicable_treatments: frs_applicable_treatments,\n frsPageName: frsPageName,\n frs_wps_forced: frs_wps_forced,\n xoon_forced_signup_buyer_protection_content: xoon_forced_signup_buyer_protection_content\n }\n};\nmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest/countryList/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _angular2 = _interopRequireDefault(_angular);\n\nvar _index = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _index2 = __webpack_require__(\"../node_modules/xo-models/src/checkout/index.js\");\n\nvar _index3 = __webpack_require__(\"../node_modules/xo-models/src/user/index.js\");\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\nvar _uiRouter = __webpack_require__(\"../node_modules/angular-ui-router/release/angular-ui-router.min.js\");\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/error-tooltip/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/floating-label/directive.js\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-guest-components/src/guest/countryList/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _index.$Component.extend('xoCountryList', {\n tag: 'xo-country-list',\n template: _template2['default'],\n\n props: {\n token: {\n type: 'var',\n required: false\n },\n showMask: {\n type: 'var',\n required: false\n },\n // mode is not present in multistep, so it is set as not required\n mode: {\n type: 'var',\n required: false\n }\n },\n\n resolve: {\n models: function models() {\n return {\n checkoutInputData: _index3.$CheckoutInputDataModel.instance(this.token).retrieve(),\n payee: _index2.$CheckoutPayeeModel.instance(this.token).retrieve(),\n checkoutAppData: _index2.$CheckoutAppDataModel.instance(this.token).retrieve(),\n checkoutCart: _index2.$CheckoutCartModel.instance(this.token).retrieve()\n };\n }\n },\n\n lifecycle: {\n enter: function enter() {\n // Default to 'signup' as multistep will not pass mode prop\n this.mode = this.mode || 'signup';\n },\n populate: function populate() {\n var _this = this;\n\n var proxSignUpFlow = this.models.checkoutInputData.isEbayTxn();\n\n this.merchantCountry = this.models.checkoutAppData.get('merchant.merchant_country');\n this.merchantComplianceRestricted = (0, _index.$feature)('merchantComplianceRestricted', false, this.merchantCountry);\n\n this.fallbackOnUnsupportedCountry = function (selectedCountry) {\n if (!(0, _index.$feature)('guest', false, selectedCountry) || (0, _index.$feature)('guestFallback', false, selectedCountry)) {\n throw new _index.$FallbackError({\n reason: 'other_country_selected_for_guest',\n product: 'ux'\n });\n }\n };\n\n this.fallbackOnUnsupportedCountry(_index.$locale.country);\n\n this.isMerchantCountrySameAsSelectedCountry = function (merchantCountry, selectedCountry) {\n var countriesWithMultipleCodes = {\n CN: ['CN', 'C2'],\n C2: ['CN', 'C2']\n };\n var merchantCountryList = countriesWithMultipleCodes[merchantCountry] || [merchantCountry];\n\n return merchantCountryList.indexOf(selectedCountry) > -1;\n };\n\n /**\n * This function will determine the country list will be shown to user:\n * 1. Get supported country list from griffin\n * 2. Filter out blocked countries configured in our app's config file\n * 3. Add default 'Country' option to the list if needed: ie. for merchant compliance restricted case\n */\n this.populateSupportedCountries = function () {\n _this.metadata = _angular2['default'].copy(_index.$locale.metadata) || {};\n var _metadata$territory = _this.metadata.territory,\n territory = _metadata$territory === undefined ? [] : _metadata$territory;\n\n var countries = proxSignUpFlow ? _index.$config.proxSupportedCountries : _index.$config.guestBlockedCountries || [];\n\n _this.supportedCountries = territory.filter(function (c) {\n if (c.code === _index.$locale.country) {\n _this.selectedCountryObj = c;\n }\n\n var inCountires = countries.includes(c.code);\n\n // When not in the prox signup flow we need to return the negated\n // inCountires since it is checking blocked countries, not allowed countries\n return proxSignUpFlow ? inCountires : !inCountires;\n });\n\n if (!proxSignUpFlow) {\n if (_this.merchantComplianceRestricted && _this.isMerchantCountrySameAsSelectedCountry(_this.merchantCountry, _this.selectedCountryObj.code)) {\n var defaultOption = {\n code: '',\n name: _index.$locale.content.common.country\n };\n\n _this.supportedCountries.push(defaultOption);\n _this.selectedCountryObj = defaultOption;\n }\n\n if (_this.merchantComplianceRestricted && _this.isMerchantCountrySameAsSelectedCountry(_this.merchantCountry, _index.$locale.country)) {\n _this.showMask = true;\n }\n }\n };\n\n this.populateSupportedCountries();\n\n // TODO: to be removed - currently locale change and metadata change is not in sync which need to be fixed.\n this.$on('metadataChange', function () {\n _this.populateSupportedCountries();\n });\n\n /*\n * merchants can block international PayPal accounts using the merchant setting Block payments from users\n * who have non-merchant country PayPal accounts, if resolved country is not merchant country, default to merchant country\n * and disable the country list\n */\n this.blockNonDomesticPayer = this.models.checkoutAppData.get('flags.block_non_domestic_payer') && (0, _index.$feature)('blockNonDomesticPayer', false, this.merchantCountry);\n this.disableCountryList = this.blockNonDomesticPayer || this.models.checkoutCart.isWalletTokenization();\n if (this.disableCountryList && this.merchantCountry !== _index.$locale.country) {\n _logger.$logger.info('merchant block_non_domestic_payer', {\n merchantCountry: this.merchantCountry,\n resolvedCountry: _index.$locale.country\n });\n this.actions.countryChanged(this.merchantCountry);\n }\n }\n },\n\n actions: {\n countryChanged: function countryChanged(selectedCountry) {\n var _this2 = this;\n\n var stateName = this.mode === 'signup' ? 'signup' : 'guest_xo';\n\n _logger.$logger.info('country_updated', { 'to': selectedCountry, 'from': _index.$locale.country });\n\n _logger.$logger.info('checkout_fpti', {\n from: stateName,\n to: 'prep_change_cntry'\n });\n\n this.selectedCountry = selectedCountry;\n this.fallbackOnUnsupportedCountry(selectedCountry);\n\n if (this.merchantComplianceRestricted) {\n this.showMask = false;\n this.showMessage = false;\n this.ariaDescribedBy = '';\n\n if (!selectedCountry) {\n this.showMask = true;\n return;\n } else if (this.isMerchantCountrySameAsSelectedCountry(this.merchantCountry, selectedCountry)) {\n this.showMask = true;\n this.showMessage = true;\n this.ariaDescribedBy = 'errorSignupAgree';\n return;\n }\n }\n\n var resolveLang = function resolveLang() {\n\n var merchantLocale = _this2.models.checkoutAppData.get('merchant.merchant_locale');\n\n merchantLocale = merchantLocale && _index.$localeHelper.normalizeLocale(merchantLocale).language;\n merchantLocale = merchantLocale && merchantLocale.toLowerCase();\n\n var supportedLocales = _index.$config.supportedCountries;\n\n var defaultLanguageException = _index.$config.defaultLanguageException;\n var defaultExceptionLang = defaultLanguageException[selectedCountry];\n var defaultCountryLang = supportedLocales[selectedCountry] && supportedLocales[selectedCountry][0];\n\n var selectedLang = defaultExceptionLang || defaultCountryLang;\n\n var resolvedLang = merchantLocale && supportedLocales[selectedCountry] && supportedLocales[selectedCountry].indexOf(merchantLocale) !== -1 ? merchantLocale : selectedLang;\n\n return resolvedLang;\n };\n\n if (_index.$locale.country !== this.selectedCountry) {\n // Make known the country has changed\n // Used in xoon to re-issue EPM call\n _index.$event.broadcast('countryChange');\n\n // Perform Language Resolution only when the country is changed, as below code does not consider locale.x merchant parameter\n _index.$locale.choose(this.selectedCountry, resolveLang(selectedCountry)).then(function () {\n _uiRouter.$state.go('checkout.landing');\n });\n }\n }\n }\n\n});\n\n\n_index.$Component;\n\n_index.$FallbackError;\n\n_index.$config;\n\n_index.$event;\n\n_index.$feature;\n\n_index.$locale;\n\n_index.$localeHelper;\n\n_index2.$CheckoutAppDataModel;\n\n_index2.$CheckoutPayeeModel;\n\n_index2.$CheckoutCartModel;\n\n_index3.$CheckoutInputDataModel;\n\n_logger.$logger;\n\n_uiRouter.$state;\nmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest/countryList/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n \\n {{content('billing.blockNonDomesticPayer', {countryCode: selectedCountryObj.code})}}\\n
\\n
\\n \\n \\n
\\n\\n
\\n {{content('common.complianceRestricted', {merchantCountry: selectedCountryObj.name})}}\\n
\\n
\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest/currencyConversion/currencyConversionInterstitial/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _index = __webpack_require__(\"../node_modules/xo-models/src/checkout/index.js\");\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\n__webpack_require__(\"../node_modules/xo-guest-components/src/guest/currencyConversion/postPlanInterstitialOptions/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-wallet-components/src/currency-conversion-options/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-guest-components/src/guest/currencyConversion/currencyConversionInterstitial/styles.less\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-guest-components/src/guest/currencyConversion/currencyConversionInterstitial/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\nvar _constants = __webpack_require__(\"../node_modules/xo-guest-components/src/guest/constants/constants.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _squid.$Component.extend('$xoCurrencyConversionLightbox', {\n tag: 'xo-currency-conversion-lightbox',\n\n template: _template2['default'],\n\n props: {\n token: {\n type: 'var',\n required: false\n },\n doneFn: {\n type: 'var',\n required: false\n },\n prePlanTreatment: {\n type: 'var',\n required: false\n }\n },\n\n resolve: {\n models: function models() {\n return {\n checkoutSession: _index.$CheckoutSessionModel.instance(this.props.token).retrieve(),\n checkoutAppData: _index.$CheckoutAppDataModel.instance(this.props.token).retrieve()\n };\n }\n },\n\n lifecycle: {\n enter: function enter() {\n var _this = this;\n\n this.openModal = function () {\n _logger.$logger.info('OPENING_CURRENCY_CONVERSION_LIGHTBOX', { isBuyerFx: Boolean(_this.prePlanTreatment) });\n _this.modalOpen = true;\n };\n\n this.updateConversionSelection = function (selection) {\n _this.models.ppconversion = selection;\n _this.setSelectedCurrency(selection);\n };\n\n this.isBuyerFXTreatment2 = (this.prePlanTreatment || '').includes('treatment_2');\n this.isNotBuyerFXTreatment = !(this.prePlanTreatment || '').includes('treatment');\n\n // This function is used to set the this.currency property which\n // is used for the `Pay in {currency}` label for the Buyer FX flow\n this.setSelectedCurrency = function (currencySelection) {\n if (_this.isBuyerFXTreatment2) {\n _this.currency = currencySelection === 'PAYPAL' ? _this.fromCurrencyCode : _this.toCurrencyCode;\n }\n };\n },\n populate: function populate() {\n var _this2 = this;\n\n // Set default conversion choice to 'PAYPAL'\n this.models.ppconversion = 'PAYPAL';\n\n // Get conversion currency codes\n var conversion = this.models.checkoutSession.get('plan.conversion', {});\n\n this.fromCurrencyCode = conversion.from_code;\n this.toCurrencyCode = conversion.to_code;\n this.conversionSpread = conversion.spread;\n\n // We don't want to log Buyer FX information to FPTI\n // for countries not included in the PXP\n if (this.prePlanTreatment) {\n /**\n * FPTI event #5 for Buyer FX guest experience\n * https://engineering.paypalcorp.com/confluence/display/EDS/Buyer+FX+Instrumentation+Specs\n * Buyer FX logging requires some extra information beyond what\n * we log for the PILOT/ROW/EMEA DCC experience\n */\n _logger.$logger.info('checkout_fpti', {\n from: 'CURRENCY_CONVERSION',\n to: 'prepare_currency_conversion_post_plan',\n conversion_type: 'PAYPAL', // Default selection\n is_conversion_shown: 1,\n currency_conversion_from_curr: this.fromCurrencyCode,\n currency_conversion_to_curr: this.toCurrencyCode,\n currency_conversion_spread: this.conversionSpread\n });\n }\n\n // Set content for Buyer FX (prePlanTreatment)\n this.setSelectedCurrency('PAYPAL');\n this.continueButton = 'common.pay' + (this.isBuyerFXTreatment2 ? 'InCurrency' : '') + 'Label';\n this.buyerFxHeader = this.prePlanTreatment === 'xo_xoon_dcc_popup_content_treatment_1' ? 'currencyOptions.bfxConversionHeaderRateInterstitial' : 'currencyOptions.bfxConversionHeaderCurrency';\n\n /**\n * Invoicing RegE compliance message has to be shown if Remittance Transfer Rule (RTR) applies.\n * It applies for US payers paying non US merchants an amount greater than $15 USD or the\n * equivalent in a foreign currency.\n */\n var isInvoicingFlow = this.models.checkoutAppData.get('flags.is_invoice_flow') === true;\n var amount = this.models.checkoutSession.get('plan.sources.0.amount.amount');\n var isRTRAmount = Number(amount) > _constants.RTR_AMOUNT;\n\n if (isInvoicingFlow) {\n var isUSBuyer = _squid.$locale.country === 'US';\n\n this.merchant = this.models.checkoutAppData.get('merchant');\n this.showInvoicingRegEMsg = isUSBuyer && isRTRAmount && _squid.$util.getProperty(this.merchant, 'merchant_country') !== 'US';\n\n // We need merchantDisplayName to be non empty and if merchant_name or brand_name is undefined\n // then we need the value of merchantDisplayName to be 'the merchant' as it is the middle of sentence\n // in currencyOptions.invoicingRegEMsg displayed in template\n this.nonEmptyMerchantDisplayName = this.models.checkoutAppData.getMerchantDisplayName({\n nonEmptyReturnValue: true\n });\n }\n /**\n * End Reg-E logic\n */\n\n this.closeModal = function (event) {\n if (event && event.preventDefault) {\n event.preventDefault();\n }\n\n _this2.modalOpen = false;\n\n // Hook css transition completion event 'transitionend'\n // to call onComplete function, guarentees best timing\n var containerEl = document.getElementById('conversionContainer');\n var onComplete = _squid.$util.once(function () {\n _logger.$logger.info('close_currency_conversion_lightbox');\n return _this2.props.doneFn();\n });\n\n containerEl.addEventListener('transitionend', onComplete);\n\n // If the browser doesn't support `transitionend` event callback\n // then we call onComplete after 350ms as fallback\n (0, _angular.$timeout)(onComplete, 350);\n };\n\n /**\n * FPTI event 7 for Buyer FX DCC - POST-PLAN\n * https://engineering.paypalcorp.com/confluence/display/EDS/Buyer+FX+Instrumentation+Specs\n */\n this.logFinalSelectionToFPTI = function () {\n _logger.$logger.info('checkout_fpti', {\n from: 'CURRENCY_CONVERSION',\n to: 'finalize_currency_conversion',\n currency_conversion_selected: _this2.models.ppconversion,\n currency_conversion_from_curr: _this2.fromCurrencyCode,\n currency_conversion_to_curr: _this2.toCurrencyCode,\n currency_conversion_spread: _this2.conversionSpread\n });\n };\n }\n },\n\n actions: {\n onSubmit: function onSubmit() {\n var _this3 = this;\n\n if (!this.models.ppconversion) {\n _logger.$logger.info('CURRENCY_CONVERSION_SUBMITTED_WITHOUT_SELECTION');\n\n this.message = {\n msgKeys: ['currencyOptions.noneSelected'],\n type: 'error'\n };\n\n return;\n }\n\n /*\n * This check cuts off flow to the 'updateConversion' service call\n * when the user has selected 'PAYPAL' for conversion. This is done\n * because the conversion is already set to 'PAYPAL' on the plan so\n * we do not need to make a patch call to update the conversion selection.\n */\n if (this.models.ppconversion === 'PAYPAL') {\n // We don't want to log Buyer FX information to FPTI\n // for countries not incldued in the PXP\n if (this.prePlanTreatment) {\n this.logFinalSelectionToFPTI();\n }\n\n this.closeModal({ complete: true });\n\n return;\n }\n\n /**\n * If conversion is not 'PAYPAL' then we need to patch the cart to set the\n * conversion type to vendor.\n */\n var data = {\n conversionType: this.models.ppconversion,\n planId: this.models.checkoutSession.get('plan.id')\n };\n\n if (data.planId) {\n var setErrorMessage = function setErrorMessage() {\n _logger.$logger.info('POST_PLAN_CONVERSION_ERROR');\n\n _this3.message = {\n msgKeys: ['genericError.genericError'],\n type: 'error'\n };\n };\n\n this.models.checkoutSession.fundingOptions.action('updateConversion', {\n data: data,\n success: function success() {\n // We don't want to log Buyer FX information to FPTI\n // for countries not incldued in the PXP\n if (_this3.prePlanTreatment) {\n _this3.logFinalSelectionToFPTI();\n }\n\n _this3.closeModal({ complete: true });\n },\n error: setErrorMessage,\n contingency: setErrorMessage\n });\n }\n }\n }\n});\n\n\n_index.$CheckoutSessionModel;\n\n_index.$CheckoutAppDataModel;\n\n_squid.$Component;\n\n_squid.$locale;\n\n_squid.$util;\n\n_logger.$logger;\n\n_angular.$timeout;\n\n_constants.RTR_AMOUNT;\nmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest/currencyConversion/currencyConversionInterstitial/styles.less\":\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest/currencyConversion/currencyConversionInterstitial/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n\\n
\\n
\\n\\n
\\n \\n\\n
\\n\\n \\n \\n\\n
\\n

{{ content(buyerFxHeader) }}

\\n \\n \\n
\\n\\n
\\n {{\\n content(\\n 'currencyOptions.invoicingRegEMsg',\\n {\\n merchantName: nonEmptyMerchantDisplayName,\\n amountInInvoiceCurrency: merchantTotal\\n }\\n )\\n }}\\n
\\n\\n
\\n \\n
\\n\\n \\n
\\n
\\n
\\n
\\n
\\n
\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest/currencyConversion/inlineCurrencyConversion/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-guest-components/src/guest/currencyConversion/inlineCurrencyConversion/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\n__webpack_require__(\"../node_modules/xo-wallet-components/src/currency-conversion-options/directive.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _squid.$Component.extend('$xoInlineCurrencyConversion', {\n tag: 'xo-inline-currency-conversion',\n\n template: _template2['default'],\n\n props: {\n card: {\n type: 'var',\n required: false\n },\n token: {\n type: 'var',\n required: false\n },\n treatment: {\n type: 'var',\n required: false\n }\n },\n\n lifecycle: {\n populate: function populate() {\n var isRate = (this.treatment || '').includes('treatment_1');\n var headerType = isRate ? 'RateInline' : 'Currency';\n\n this.conversionTitle = 'currencyOptions.bfxConversionHeader' + headerType;\n }\n }\n});\n\n\n_squid.$Component;\nmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest/currencyConversion/inlineCurrencyConversion/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n

\\n {{ content(conversionTitle) }}\\n

\\n\\n \\n \\n
\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest/currencyConversion/postPlanInterstitialOptions/contentUtils.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.getCurrencyFrom = exports.getCurrencyTo = exports.getDccVendorExchange = exports.getDccPPExchange = exports.getDccPPTotal = exports.getDccVendorTotal = exports.getDccPPRate = exports.getVendorRateLabel = exports.getPPRateLabel = exports.getDccTitle = undefined;\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar getDccTitle = function getDccTitle(isCountryUS) {\n return isCountryUS ? 'currencyOptions.dccTitleTreatment2' : 'currencyOptions.dccTitle';\n}; /* eslint-disable no-arrow-condition, no-confusing-arrow */\n\n\nvar getPPRateLabel = function getPPRateLabel(isCountryUS) {\n return isCountryUS ? 'currencyOptions.dccPPDescTreatment1' : 'currencyOptions.dccPPDesc';\n};\n\nvar getVendorRateLabel = function getVendorRateLabel(isCountryUS) {\n return isCountryUS ? 'currencyOptions.dccVendorDescTreatment1' : 'currencyOptions.dccVendorDesc';\n};\n\nvar getDccPPRate = function getDccPPRate(isCountryUS, isEMEA3PLCountry) {\n return isCountryUS ? 'currencyOptions.dccPPRateTreatment1' : 'currencyOptions.dccPPRate' + (isEMEA3PLCountry ? '3PL' : '');\n};\n\nvar getDccVendorTotal = function getDccVendorTotal(isCountryUS) {\n return isCountryUS ? 'currencyOptions.dccVendorTotalTreatment1' : 'currencyOptions.dccVendorTotal';\n};\n\nvar getDccPPTotal = function getDccPPTotal(isCountryUS) {\n return isCountryUS ? 'currencyOptions.dccPPTotalTreatment1' : 'currencyOptions.dccPPTotal';\n};\n\nvar getDccPPExchange = function getDccPPExchange(isCountryUS) {\n return isCountryUS ? 'currencyOptions.dccPPExchangeTreatment1' : 'currencyOptions.dccPPExchange';\n};\n\nvar getDccVendorExchange = function getDccVendorExchange(isCountryUS) {\n return isCountryUS ? 'currencyOptions.dccVendorExchangeTreatment1' : 'currencyOptions.dccVendorExchange';\n};\n\nvar getCurrencyTo = function getCurrencyTo(isCountryUS, conversion) {\n if (isCountryUS) {\n return conversion.to_amount_forex;\n }\n\n return (0, _squid.truncateCurrencyConversionString)({\n fullString: conversion.to,\n amount: conversion.to_amount,\n amountForex: conversion.to_amount_forex\n });\n};\n\nvar getCurrencyFrom = function getCurrencyFrom(isCountryUS, conversion) {\n if (isCountryUS) {\n return '1';\n }\n\n return (0, _squid.truncateCurrencyConversionString)({\n fullString: conversion.from,\n amount: conversion.from_amount,\n amountForex: conversion.from_amount_forex\n });\n};\n\nexports.getDccTitle = getDccTitle;\nexports.getPPRateLabel = getPPRateLabel;\nexports.getVendorRateLabel = getVendorRateLabel;\nexports.getDccPPRate = getDccPPRate;\nexports.getDccVendorTotal = getDccVendorTotal;\nexports.getDccPPTotal = getDccPPTotal;\nexports.getDccPPExchange = getDccPPExchange;\nexports.getDccVendorExchange = getDccVendorExchange;\nexports.getCurrencyTo = getCurrencyTo;\nexports.getCurrencyFrom = getCurrencyFrom;\n\n\n_squid.truncateCurrencyConversionString;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest/currencyConversion/postPlanInterstitialOptions/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _index = __webpack_require__(\"../node_modules/xo-models/src/checkout/index.js\");\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\nvar _contentUtils = __webpack_require__(\"../node_modules/xo-guest-components/src/guest/currencyConversion/postPlanInterstitialOptions/contentUtils.js\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-guest-components/src/guest/currencyConversion/postPlanInterstitialOptions/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _squid.$Component.extend('$xoCurrencyConversionLightboxOptions', {\n tag: 'xo-currency-conversion-lightbox-options',\n\n template: _template2['default'],\n\n props: {\n token: {\n type: 'var',\n required: false\n },\n openModal: {\n type: 'var',\n required: false\n },\n updateConversionSelection: {\n type: 'var',\n required: false\n },\n isBuyerFxPxp: {\n type: 'var',\n required: false\n }\n },\n\n resolve: {\n models: function models() {\n return {\n checkoutSession: _index.$CheckoutSessionModel.instance(this.props.token).retrieve(),\n checkoutCart: _index.$CheckoutCartModel.instance(this.props.token).retrieve()\n };\n }\n },\n\n lifecycle: {\n populate: function populate() {\n // Set conversion information\n this.conversionOptions = _squid.$config.currencyConversion.options;\n this.models.ppconversion = this.conversionOptions.PAYPAL;\n\n this.conversion = this.models.checkoutSession.get('plan.conversion');\n this.paypalConversionTotal = this.models.checkoutSession.get('plan.sources.0.amount.amount_formatted_currency');\n\n var unformattedAmount = this.models.checkoutCart.get('purchase.amounts.total.amount');\n var merchantCurrencyCode = this.models.checkoutCart.get('purchase.amounts.total.currency_code');\n\n this.merchantTotal = (0, _squid.formatCurrency)(unformattedAmount, merchantCurrencyCode, false);\n\n var isEMEA3PLCountry = _squid.$util.getProperty(_squid.$locale.metadata, 'localization.isEMEA3PLCountry', { 'default': false });\n\n // Content for non Buyer FX phase 2 is different for the US.\n // The US uses content from Buyer FX phase 1 as the control.\n var isCountryUS = _squid.$locale.country === 'US';\n\n // Get content keys\n this.dccTitle = (0, _contentUtils.getDccTitle)(isCountryUS);\n this.ppRateLabel = (0, _contentUtils.getPPRateLabel)(isCountryUS);\n this.dccPPRate = (0, _contentUtils.getDccPPRate)(isCountryUS, isEMEA3PLCountry);\n this.vendorRateLabel = (0, _contentUtils.getVendorRateLabel)(isCountryUS);\n this.dccPPTotal = (0, _contentUtils.getDccPPTotal)(isCountryUS);\n this.dccPPExchange = (0, _contentUtils.getDccPPExchange)(isCountryUS);\n this.dccPPExchangeOptions = {\n buyerCurrency: this.conversion.from_code,\n currencyFrom: (0, _contentUtils.getCurrencyFrom)(isCountryUS, this.conversion),\n currencyTo: (0, _contentUtils.getCurrencyTo)(isCountryUS, this.conversion),\n sellerCurrency: this.conversion.to_code\n };\n this.dccVendorExchange = (0, _contentUtils.getDccVendorExchange)(isCountryUS);\n\n // LATAM countries have unique disclosure requirements for vendor option\n this.dccVendorTotal = (0, _contentUtils.getDccVendorTotal)(isCountryUS);\n\n // Open the interstitial\n this.openModal();\n }\n },\n\n actions: {\n onConversionOptionChange: function onConversionOptionChange() {\n // For post-plan conversion we need to update the chosen conversion\n // selection in the guest currency conversion interstitial component\n this.updateConversionSelection(this.models.ppconversion);\n\n // We don't want to log Buyer FX information to FPTI\n // for countries not incldued in the PXP\n if (this.isBuyerFxPxp) {\n /**\n * FPTI event #4 & #6 for Buyer FX guest experience\n * https://engineering.paypalcorp.com/confluence/display/EDS/Buyer+FX+Instrumentation+Specs\n */\n _logger.$logger.info('checkout_fpti', {\n from: 'CURRENCY_CONVERSION',\n to: 'changed_currency_conversion_post_plan',\n currency_conversion_selected: this.models.ppconversion,\n currency_conversion_from_curr: this.conversion.from_code,\n currency_conversion_to_curr: this.conversion.to_code,\n currency_conversion_spread: this.conversion.spread\n });\n }\n }\n }\n});\n\n\n_squid.$Component;\n\n_squid.$locale;\n\n_squid.formatCurrency;\n\n_squid.$util;\n\n_squid.$config;\n\n_index.$CheckoutSessionModel;\n\n_index.$CheckoutCartModel;\n\n_logger.$logger;\n\n_contentUtils.getDccTitle;\n\n_contentUtils.getPPRateLabel;\n\n_contentUtils.getVendorRateLabel;\n\n_contentUtils.getDccPPRate;\n\n_contentUtils.getDccVendorTotal;\n\n_contentUtils.getDccPPTotal;\n\n_contentUtils.getDccPPExchange;\n\n_contentUtils.getDccVendorExchange;\n\n_contentUtils.getCurrencyTo;\n\n_contentUtils.getCurrencyFrom;\nmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest/currencyConversion/postPlanInterstitialOptions/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n

{{ content(dccTitle) }}

\\n\\n
    \\n

    \\n

    \\n
  • \\n
    \\n \\n \\n {{ content(ppRateLabel, { buyerCurrency: conversion.from_code }) }}\\n \\n
    \\n
      \\n
    • \\n
    • \\n
    • \\n {{ content('currencyOptions.conversionDate', {date: conversion.date}) }}\\n
    • \\n
    • \\n
    • \\n
    • \\n
    • \\n
    \\n
  • \\n
  • \\n
    \\n \\n \\n {{ content(vendorRateLabel, { sellerCurrency: conversion.to_code }) }}\\n \\n
    \\n
      \\n
    • \\n
    • \\n
    • \\n {{ content('currencyOptions.exchangeRate') }} {{ content('currencyOptions.dccVendorRateNonVisa') }}\\n
    • \\n
    • \\n
    \\n
  • \\n
  • \\n {{ content('currencyOptions.dccCommonRateNonVisa') }}\\n
  • \\n
\\n
\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest/currencyConversion/utils.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.logBuyerFxFpti = exports.logBuyerFxFptiEvent7 = exports.logBuyerFxFptiEvent3 = exports.isConversionChangeableForCardType = exports.getForcedVendorCards = exports.getForcedPayPalCards = undefined;\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar getFromCode = function getFromCode() {\n return _squid.$util.getProperty(_squid.$locale, 'metadata.currency.code');\n};\nvar getToCode = function getToCode(purchase) {\n return _squid.$util.getProperty(purchase, 'amounts.total.currency_code');\n};\nvar getForcedCards = function getForcedCards(type) {\n return _squid.$util.getProperty(_squid.$config, 'currencyConversion.cards.forced' + type, { 'default': [] });\n};\n\nvar getForcedPayPalCards = exports.getForcedPayPalCards = function getForcedPayPalCards() {\n return getForcedCards('PayPal');\n};\n\nvar getForcedVendorCards = exports.getForcedVendorCards = function getForcedVendorCards() {\n return getForcedCards('Vendor');\n};\n\nvar isConversionChangeableForCardType = exports.isConversionChangeableForCardType = function isConversionChangeableForCardType(type) {\n return ![].concat(getForcedPayPalCards(), getForcedVendorCards()).includes(type);\n};\n\n/**\n * FPTI event #3 for Buyer FX guest experience\n * https://engineering.paypalcorp.com/confluence/display/EDS/Buyer+FX+Instrumentation+Specs\n */\nvar logBuyerFxFptiEvent3 = exports.logBuyerFxFptiEvent3 = function logBuyerFxFptiEvent3(purchase) {\n _logger.$logger.info('checkout_fpti', {\n from: 'CURRENCY_CONVERSION',\n to: 'prepare_currency_conversion_post_plan',\n conversion_type: 'VENDOR',\n is_conversion_shown: 0, // 0 b/c we won't be showing conversion options\n currency_conversion_from_curr: getFromCode(),\n currency_conversion_to_curr: getToCode(purchase),\n currency_conversion_spread: 'N/A',\n locale: _squid.$locale.country\n });\n};\n\n/**\n * FPTI event 7 for Buyer FX DCC - PRE-PLAN MULTISTEP\n * https://engineering.paypalcorp.com/confluence/display/EDS/Buyer+FX+Instrumentation+Specs\n */\nvar logBuyerFxFptiEvent7 = exports.logBuyerFxFptiEvent7 = function logBuyerFxFptiEvent7() {\n var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n _ref$card = _ref.card,\n card = _ref$card === undefined ? {} : _ref$card,\n isConversionChangeable = _ref.isConversionChangeable,\n isSignup = _ref.isSignup,\n hasPrePlanData = _ref.hasPrePlanData,\n purchase = _ref.purchase;\n\n var _card$currencyConvDat = card.currencyConvData;\n _card$currencyConvDat = _card$currencyConvDat === undefined ? {} : _card$currencyConvDat;\n var from_code = _card$currencyConvDat.from_code,\n to_code = _card$currencyConvDat.to_code,\n spread = _card$currencyConvDat.spread,\n type = card.type;\n\n /**\n * We initially set the selection to `card.ppconversion`, which is the choice\n * the user selected when they were shown the conversion options. There are\n * two scenarios we need to adjust for, which are handled by the conditional\n * statement below.\n */\n\n var selection = card.ppconversion;\n\n /**\n * Adjustment scenario 1\n * Conversion is changeable, mode is `signup` and we don't have pre-plan data\n * In this case we force the vendor rate and forgo the conversion fee so that\n * there is as little friction as possible for a user that is in the process of\n * signing up.\n */\n if (isConversionChangeable && isSignup && !hasPrePlanData) {\n selection = 'VENDOR';\n\n /**\n * Adjustment scenario 2\n * If conversion is not changeable we need to check if the card type should be\n * forced to the PayPal conversion rate. If not, use vendor\n */\n } else if (!isConversionChangeable) {\n selection = getForcedPayPalCards().includes(type) ? 'PAYPAL' : 'VENDOR';\n }\n\n _logger.$logger.info('checkout_fpti', {\n from: 'CURRENCY_CONVERSION',\n to: 'finalize_currency_conversion',\n currency_conversion_selected: selection,\n currency_conversion_from_curr: from_code || getFromCode(),\n currency_conversion_to_curr: to_code || getToCode(purchase),\n currency_conversion_spread: spread || 'N/A'\n });\n};\n\nvar logBuyerFxFpti = exports.logBuyerFxFpti = function logBuyerFxFpti() {\n var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n hasPrePlanData = _ref2.hasPrePlanData,\n isSignup = _ref2.isSignup,\n _ref2$card = _ref2.card,\n card = _ref2$card === undefined ? {} : _ref2$card,\n purchase = _ref2.purchase;\n\n var type = card.type;\n\n var isConversionChangeable = isConversionChangeableForCardType(type);\n\n /**\n * If we don't have pre-plan data because the pre-plan API failed or becuse\n * the user is seeing the control and not one of the treatments and\n * the mode is signup and the card the chageable then we need to log event\n * 3 here. This is because for signup use cases the user won't see the\n * post-plan interstitial which is where event 3 is logged when the pre-plan\n * API fails or when the user is seeing the control experience for the guest\n * use case.\n */\n if (!hasPrePlanData && isSignup && isConversionChangeable) {\n logBuyerFxFptiEvent3(purchase);\n }\n\n if (isSignup || hasPrePlanData || !isConversionChangeable) {\n logBuyerFxFptiEvent7({\n card: card,\n isConversionChangeable: isConversionChangeable,\n isSignup: isSignup,\n hasPrePlanData: hasPrePlanData,\n purchase: purchase\n });\n }\n};\n\n_logger.$logger;\n\n_squid.$config;\n\n_squid.$locale;\n\n_squid.$util;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function($) {\n\nexports.__esModule = true;\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _ul = __webpack_require__(\"../node_modules/xo-login-components/src/unified-login/ul.js\");\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _index = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _index2 = __webpack_require__(\"../node_modules/xo-models/src/checkout/index.js\");\n\nvar _index3 = __webpack_require__(\"../node_modules/xo-models/src/user/index.js\");\n\nvar _index4 = __webpack_require__(\"../node_modules/xo-models/src/shoppingcart/index.js\");\n\nvar _index5 = __webpack_require__(\"../node_modules/xo-models/src/shippingMethod/index.js\");\n\nvar _index6 = __webpack_require__(\"../node_modules/xo-models/src/inventory/index.js\");\n\nvar _index7 = __webpack_require__(\"../node_modules/xo-models/src/onboard/index.js\");\n\nvar _index8 = __webpack_require__(\"../node_modules/xo-models/src/fi/index.js\");\n\nvar _fiApis = __webpack_require__(\"../node_modules/xo-models/src/fi/lib/fiApis.js\");\n\nvar _index9 = __webpack_require__(\"../node_modules/xo-models/src/auth/index.js\");\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\nvar _uiRouter = __webpack_require__(\"../node_modules/angular-ui-router/release/angular-ui-router.min.js\");\n\nvar _index10 = __webpack_require__(\"../node_modules/xo-device-info/dist/index.js\");\n\nvar _index11 = __webpack_require__(\"../node_modules/xo-models/src/marketingoffer/index.js\");\n\nvar _directive = __webpack_require__(\"../node_modules/xo-form-components/src/national-id-input/directive.js\");\n\nvar _util = __webpack_require__(\"../node_modules/xo-wallet-components/src/fi-contingency-list/util.js\");\n\nvar _sticky = __webpack_require__(\"../node_modules/xo-guest-components/src/guest/sticky.js\");\n\nvar _util2 = __webpack_require__(\"../node_modules/xo-guest-components/src/lib/util.js\");\n\nvar _errorHandlerHelper = __webpack_require__(\"../node_modules/xo-guest-components/src/guest/lib/errorHandlerHelper.js\");\n\nvar errorHandlerHelper = _interopRequireWildcard(_errorHandlerHelper);\n\nvar _shippingChangeFeature = __webpack_require__(\"../node_modules/xo-guest-components/src/guest/lib/shippingChangeFeature.js\");\n\nvar _pageProps = __webpack_require__(\"../node_modules/xo-guest-components/src/guest/lib/pageProps.js\");\n\nvar _util3 = __webpack_require__(\"../node_modules/xo-guest-components/src/guest/lib/util.js\");\n\nvar _constants = __webpack_require__(\"../node_modules/xo-guest-components/src/guest/constants/constants.js\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-guest-components/src/guest/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\nvar _index12 = __webpack_require__(\"../node_modules/xo-models/src/profilemanagement/index.js\");\n\nvar _utils = __webpack_require__(\"../node_modules/xo-guest-components/src/guest/currencyConversion/utils.js\");\n\nvar _xoShippingOptions = __webpack_require__(\"../node_modules/xo-shipping-options/src/index.js\");\n\nvar _shippingOptionsFeature = __webpack_require__(\"../node_modules/xo-guest-components/src/guest/lib/shippingOptionsFeature.js\");\n\n__webpack_require__(\"../node_modules/xo-guest-components/src/guest/currencyConversion/currencyConversionInterstitial/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-guest-components/src/guest/currencyConversion/inlineCurrencyConversion/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-guest-components/src/guest/countryList/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-guest-components/src/guest/emailInput/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-guest-components/src/guest/onboardOptions/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-guest-components/src/guest/passwordInput/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-guest-components/src/guest/redirectingFromXoonWarning/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-guest-components/src/guest/select-shipping-method/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-guest-components/src/guest/sepa/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-guest-components/src/guest/cartChanged/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-guest-components/src/guest/travelRuleLightbox/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-guest-components/src/guest/xoonHeader/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-guest-components/src/guest/tesla-add-bank/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-address-components/src/add-address/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-address-components/src/address-normalization/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-form-components/src/name-input/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-form-components/src/phone/phoneInput/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-form-components/src/select-shipping-country/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-wallet-components/src/3ds/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-wallet-components/src/add-bank/bank-input/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-wallet-components/src/add-card/creditcard-input/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-page-components/src/ba-message-banner/directive.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } }\n\nexports['default'] = _index.$Component.extend('xoOnboardPayment', {\n tag: 'xo-onboard-payment',\n template: _template2['default'],\n\n props: {\n token: {\n type: 'var',\n required: false\n },\n mode: {\n type: 'var',\n required: false\n },\n isUnbranded: {\n type: 'var',\n required: false\n },\n paymentMethod: {\n type: 'var',\n required: false\n },\n singleStepModel: {\n type: 'var',\n required: false\n },\n buttonParams: {\n type: 'var',\n required: false\n }\n },\n\n resolve: {\n models: function models() {\n return {\n auth: _index9.$AuthModel.instance(this.token).retrieve(),\n payee: _index2.$CheckoutPayeeModel.instance(this.props.token).retrieve(),\n checkoutAppData: _index2.$CheckoutAppDataModel.instance(this.props.token).retrieve(),\n checkoutCart: _index2.$CheckoutCartModel.instance(this.token).retrieve(),\n checkoutInputData: _index3.$CheckoutInputDataModel.instance(this.token).retrieve()\n };\n },\n shippingRule: function shippingRule(resolvers) {\n var _this = this;\n\n return resolvers.models.then(function (models) {\n if (models.checkoutAppData.is_snt_supported()) {\n return {\n profileRulesSummary: _index5.$ShippingRuleSummaryModel.instance(_this.token).retrieve({\n params: {\n merchant_id: models.payee.merchant.id,\n currency_code: models.checkoutCart.purchase.amounts.total.currency_code\n }\n })\n };\n }\n });\n },\n merchantPreferences: function merchantPreferences(resolvers) {\n return resolvers.models.then(function (models) {\n return {\n model: _index12.$MerchantPreferenceModel.instance(models.payee.merchant.id).retrieve()\n };\n });\n },\n sepaExperiment: function sepaExperiment() {\n var isSepaOverlayRequired = this.isUnbranded && this.onboard.fiMode === 'bank';\n\n if (isSepaOverlayRequired) {\n return {\n sepaOverlay: (0, _squid.$pxp)('XO_XOONBOARDING_SEPA_OVERLAY', { 'ctx.COUNTRY': _index.$locale.country }, 'XO_XOONBOARDING_SEPA_OVERLAY_TEST')\n };\n }\n },\n experiments: function experiments() {\n var flow = this.flags.wpsFlow ? 'wps' : 'ec';\n\n return {\n accountExistsPXP: (0, _squid.$pxp)('xo_xoon_account_exists_toggle_' + flow, { 'ctx.COUNTRY': _index.$locale.country }, 'xo_xoon_account_exists_toggle_' + flow + '_treatment')\n };\n },\n teslaAddBank: function teslaAddBank() {\n return {\n teslaAddBankEXP: (0, _squid.$elmo)('xo_xoon_tesla_add_bank', { 'ctx.COUNTRY': _index.$locale.country }, '(xo_xoon_jp_add_bank_treatment)(.*)')\n };\n },\n indiaWhitelistPxp: function indiaWhitelistPxp(resolvers) {\n var _this2 = this;\n\n return resolvers.models.then(function (models) {\n // show address less on-boarding experience only for EC IN whitelisted merchants.\n var eligible = !models.checkoutAppData.is_wps_flow() && !models.checkoutInputData.isEbayTxn() && !models.checkoutAppData.isInvoiceFlow() && !models.checkoutAppData.is_wps_subscription_flow() && !models.checkoutCart.isWalletTokenization();\n\n if (_index.$locale.country === 'IN' && eligible) {\n var _ref = models.payee || {},\n _ref$merchant = _ref.merchant;\n\n _ref$merchant = _ref$merchant === undefined ? {} : _ref$merchant;\n var id = _ref$merchant.id;\n\n return (0, _squid.$pxp)('xo_xoon_addressless_in_whitelist', { 'uid': id }, '(xo_xoon_addressless_in_whitelist_)(.*)').then(function (result) {\n if (result && result.treatment_name.includes('xo_xoon_addressless_in_whitelist_test')) {\n // Hide Billing Address and DOB fields when merchant is whitelisted\n _this2.flags.whiteListedIndiaMerchant = true;\n _logger.$logger.info('test_whitelisted_india_merchant');\n } else {\n return (0, _squid.$pxp)('xo_xoon_addressless_in_ramp', { 'ctx.MID': id }, '(xo_xoon_addressless_in_ramp_)(.*)').then(function (rampResult) {\n if (rampResult && rampResult.treatment_name.includes('xo_xoon_addressless_in_ramp_test')) {\n // Hide Billing Address and DOB fields when merchant is whitelisted\n _this2.flags.whiteListedIndiaMerchant = true;\n _logger.$logger.info('test_ramped_india_merchant');\n }\n });\n }\n });\n }\n });\n },\n bypassAddressVerificationExperience: function bypassAddressVerificationExperience() {\n // will only have treatment when the mode is guestonly\n return {\n bypassAddressVerificationExp: (0, _squid.$elmo)('xo_xoon_skip_avs', { 'ctx.COUNTRY': _index.$locale.country }, 'Trmt_xo_xoon_skip_avs')\n };\n }\n },\n\n lifecycle: {\n enter: function enter() {\n var _this3 = this;\n\n this.locale = _index.$locale;\n this.currentState = _uiRouter.$state.current.name;\n this.flags = {\n shipToBilling: true,\n allowEditShipping: true,\n showSingleAddress: false,\n showShippingLabel: true,\n cupDetected: false,\n hideShippingAddress: false,\n allowPayWithSnT: false,\n allowSnTCall: true,\n instantUpdateShippingRegionSupported: true,\n freeReturnShippingOptInFlowApplicable: false,\n freeReturnShippingOptInActiveFlow: false,\n showRedirectWarningPrompt: false,\n titleSubtitlePxpTreatment: false,\n showCartChanged: false,\n whiteListedIndiaMerchant: false,\n upopDetected: false\n };\n\n this.sepa = {\n sepaGuestAgree: false,\n sepaAgree: false,\n show: false\n };\n\n // set the OTP for addCard based on country feature\n this.needOTPForAddCard = (0, _index.$feature)('needOTPForAddCard');\n\n // If US, then show new e-sign compliance experience\n // Submit button text changes and show return to merchant msg above button\n // with user action 'continue'\n if (this.locale.country === 'US') {\n this.showNewSignupComplianceExp = true;\n }\n\n var app_int_type = _index10.$DeviceInfo.isWebView() ? 'WebView' : _index10.$DeviceInfo.getAppIntegrationType();\n\n // fpti log for app integration type\n _logger.$logger.info('checkout_fpti', {\n app_int_type: app_int_type\n });\n\n _logger.$logger.info('checkout_fpti', {\n page: 'main:ec:hermes::fullpage-billing:guest:hermes:'\n });\n\n // set the china upop flag on event heard\n // based on upop detected\n this.$watch('onboard.card.isUpop', function (newVal) {\n _this3.flags.upopDetected = newVal;\n });\n\n // set the cup flag on event heard\n // based on card type selected\n this.$watch('onboard.card.type', function (newVal) {\n _this3.flags.cupDetected = newVal === 'CUP';\n });\n\n $(document).on('click', '#pomaLegalterms a', function () {\n _angular.$rootScope.$broadcast('trackInput', {\n currentRoute: _uiRouter.$state.current,\n page: 'main:ec:hermes::fullpage-billing:guest:aries:',\n transition: $(_this3).text().replace(/\\s/g, '_')\n });\n });\n\n // This is needed in Sepa directive\n this.sectionElement = '#singlePagePayment';\n\n this.countries = function () {\n return _index.$locale.content.countryList;\n };\n\n var triggerPageDesignFPTILog = function triggerPageDesignFPTILog() {\n var pageContext = 'Full-context';\n\n if (_angular.$rootScope.miniBrowser) {\n pageContext = 'In-context';\n }\n\n _logger.$logger.info('checkout_fpti', {\n 'design': pageContext\n });\n };\n // Log Initial Page Design\n\n triggerPageDesignFPTILog();\n // Trigger Design FPTI Log on Page Design Change\n _angular.$rootScope.$watch('miniBrowser', triggerPageDesignFPTILog);\n\n var getPresetPaymentMethod = function getPresetPaymentMethod() {\n var paymentMethod = _this3.paymentMethod && _this3.paymentMethod.toLowerCase();\n\n if (!paymentMethod || paymentMethod !== 'bank' && paymentMethod !== 'card') {\n return;\n }\n\n return paymentMethod === 'bank' ? 'bank' : 'card';\n };\n\n var getFundingSource = function getFundingSource() {\n var fundingSource = void 0;\n\n if (_index.$config.deploy.isLocal() || _index.$config.deploy.isStage()) {\n // Both query param (fundingSource) and post message(window.xprops.fundingSource) are present\n // in SPB(Smart Payment Button) integration. but post message(window.xprops.fundingSource)\n // will not be availabe in local testing, so passing query param in the url mimics\n // the same.\n fundingSource = _index.$util.param('fundingSource');\n }\n\n if (window.xprops && window.xprops.fundingSource) {\n fundingSource = window.xprops.fundingSource;\n }\n\n return fundingSource;\n };\n\n this.showFISwitchTab = function () {\n\n // If the experience is tesla-add-bank, then show the FI toggle.\n if (_this3.teslaAddBankEXP) {\n return true;\n }\n\n var fundingSource = getFundingSource();\n\n if (getPresetPaymentMethod() || fundingSource === 'elv') {\n return false;\n }\n\n return (0, _index.$feature)('fiSwitchTab', false, _index.$locale.country);\n };\n\n this.getDefaultFIMode = function () {\n var presetPayMentMethod = getPresetPaymentMethod();\n\n if (presetPayMentMethod) {\n return presetPayMentMethod;\n }\n\n // Check to see if it's Tesla Add Bank experience. If so,\n // The default FI will depend on the treatments A,B or control\n\n if (_this3.teslaAddBankEXP) {\n return _this3.teslaFIDefault;\n }\n\n if (_index.$locale.country === 'DE') {\n var fundingSource = getFundingSource();\n var allowRevisedEpmCallJson = _index.$config.allowRevisedEpmCall;\n var allowSpb = allowRevisedEpmCallJson[_index.$locale.country] || allowRevisedEpmCallJson['DEFAULT'];\n\n // defaulting to card tab for SPB(Smart Payment Button) integration whenever post message\n // passing 'card' for DE.\n if (allowSpb && fundingSource === 'card') {\n return 'card';\n }\n // Default tab for branded DE transaction is Bank\n return 'bank';\n }\n return 'card';\n };\n\n this.onboard = new _index7.$OnboardModel({\n user: _index7.$OnboardUserModel.instance(this.token, {\n country: _index.$locale.country,\n countryOfResidence: _index.$locale.country,\n nationality: _index.$locale.country\n }),\n\n card: new _index8.$CardModel(),\n\n bank: new _index8.$BankModel(),\n\n fiMode: this.getDefaultFIMode(),\n\n billing_address: _index8.$BillingAddressModel.create(this.token, {\n country: _index.$locale.country\n }),\n shipping_address: _index2.$ShippingAddressModel.create(this.token, {\n country: _index.$locale.country\n }),\n\n phone: new _index7.$OnboardPhoneModel(),\n\n shipping_address_validation: false,\n billing_address_present: false,\n poma_flow: false,\n frs_optin_flow_applicable: false\n });\n\n this.onboard.card.ppconversion = 'PAYPAL';\n this.getSelectedCurrencyCode = function (selection) {\n var _onboard$card$currenc = _this3.onboard.card.currencyConvData;\n _onboard$card$currenc = _onboard$card$currenc === undefined ? {} : _onboard$card$currenc;\n var from_code = _onboard$card$currenc.from_code,\n to_code = _onboard$card$currenc.to_code;\n\n\n _this3.selectedCurrency = selection === 'PAYPAL' ? from_code : to_code;\n };\n this.$watch('onboard.card.ppconversion', function (newVal) {\n _logger.$logger.info('conversion_selection_changed_to_' + newVal);\n _this3.getSelectedCurrencyCode(newVal);\n });\n this.setBuyerFxFlag = function (_ref2) {\n var treatment = _ref2.treatment,\n hasBuyerFxPrePlanData = _ref2.hasBuyerFxPrePlanData;\n\n if (treatment) {\n _this3.flags.buyerFxTreatment = treatment;\n }\n\n _this3.flags.hasBuyerFxPrePlanData = hasBuyerFxPrePlanData;\n };\n },\n populate: function populate() {\n var _this4 = this;\n\n var determineTeslaFIMode = function determineTeslaFIMode(type) {\n if (type === 'xo_xoon_jp_add_bank_treatment') {\n return 'bank';\n } else {\n return 'card';\n }\n };\n\n var checkTeslaEligbility = function checkTeslaEligbility() {\n var _teslaAddBank$teslaAd = _this4.teslaAddBank.teslaAddBankEXP,\n teslaAddBankEXP = _teslaAddBank$teslaAd === undefined ? {} : _teslaAddBank$teslaAd;\n var teslaAddBankTreatment = teslaAddBankEXP.treatment_name;\n\n _this4.teslaAddBankEXP = teslaAddBankTreatment && teslaAddBankTreatment.includes('xo_xoon_jp_add_bank_treatment');\n\n // If it's teslaAddBankEXP treatment is successful, then change the default FI based on treatment returned.\n if (_this4.teslaAddBankEXP) {\n _this4.teslaFIDefault = determineTeslaFIMode(teslaAddBankTreatment);\n _this4.onboard.fiMode = _this4.teslaFIDefault;\n }\n };\n\n checkTeslaEligbility();\n\n this.getToggleKeys = (0, _pageProps.getFItoggleContentKeys)(this.teslaAddBankEXP, this.teslaFIDefault);\n\n // We show JP-add bank experience only when the following conditions meet:\n // A) If ELMO passes. If ELMO fails, we don't even show the toggle.\n // B) If the flow is a bank flow.\n\n this.showTeslaAddBankFlow = function () {\n return _this4.teslaAddBankEXP && _this4.onboard.fiMode === 'bank';\n };\n\n // Shipping Options/BOPIS\n this.shippingOptionsFeature = (0, _shippingOptionsFeature.buildShippingOptionsFeature)(this.token);\n if (this.shippingOptionsFeature.hasShippingOptions()) {\n this.flags.showCartChanged();\n }\n\n // Needed to show custom description sent by merchant in Billing Agreement flow\n this.billingAgreementMerchantMsg = this.models.checkoutCart.getBillingDescription();\n\n // Log to FPTI to indicate the page has been rendered\n _logger.$logger.info('checkout_fpti', {\n from: this.mode === 'guest' ? 'GUEST_XO' : 'SIGNUP',\n to: 'prepare_' + (this.mode === 'guest' ? 'guest_xo' : 'signup')\n });\n\n if (this.shippingRule && this.shippingRule.profileRulesSummary) {\n this.flags.wps_SnT_flow = this.shippingRule.profileRulesSummary.isSnTEnabled;\n }\n\n // pre-fill user first name and last name.\n // override happens at handlePrefillShippingAndBillingAddress if merchant passing\n // shipping address during cart creation.\n this.onboard.user.first_name = this.models.checkoutCart.get('payer.first_name');\n this.onboard.user.last_name = this.models.checkoutCart.get('payer.last_name');\n\n var setAllowShipToBilling = function setAllowShipToBilling(allow) {\n // Toggle checkbox\n _this4.flags.disallowShipToBilling = !allow;\n // Show/Hide shipping address section\n _this4.flags.shipToBilling = allow;\n };\n\n var checkProcessorDecline = function checkProcessorDecline() {\n var processorDeclined = _this4.models.checkoutAppData.get('flags.processor_declined');\n\n if (processorDeclined) {\n _this4.errorMessage = {\n msgs: [(0, _squid.$renderContent)('payment.processorDeclineMemberNoFIGeneric')],\n type: 'warning'\n };\n }\n };\n var checkLatinumRedirect = function checkLatinumRedirect() {\n if (_squid.$meta.query && _squid.$meta.query.latinumRedirect) {\n _this4.topErrorMessage = {\n msgs: [(0, _squid.$renderContent)('login.latinumNotUsed', { alternativeFunding: _squid.$meta.query.latinumRedirect })],\n type: 'info'\n };\n }\n };\n\n var setChangeShippingCountryAlertMsg = function setChangeShippingCountryAlertMsg() {\n var countryName = (0, _squid.$renderContent)('shippingCountry.' + _this4.merchantCountry);\n var infoMessage = (0, _squid.$renderContent)('largeScreenPayment.blockNonDomesticShippingAlert', {\n shippingCountry: countryName\n });\n\n _this4.changeShippingCountryAlert = {\n msgs: [infoMessage],\n type: 'info'\n };\n };\n\n // pre-populate shipping and billing address\n var updateShippingAndBillingAddress = function updateShippingAndBillingAddress(shippingAddress, billingAddress) {\n // Detect invalid length country codes in which case we invalidate the country code.\n // A default value of $locale.country will subsequently be picked up for invalidated country codes in the model creation.\n if (shippingAddress && shippingAddress.country_code && shippingAddress.country_code.length !== 2) {\n shippingAddress.country_code = undefined;\n }\n\n if (billingAddress && billingAddress.country_code && billingAddress.country_code.length !== 2) {\n billingAddress.country_code = undefined;\n }\n\n // NOTE: this function modifies params.state value to uppercase\n (0, _util3.sanitizeStateFields)(shippingAddress, billingAddress);\n\n // pre-fill billing address with shipping address\n _this4.onboard.shipping_address = _index2.$ShippingAddressModel.create(_this4.token, {\n country: shippingAddress.country_code || _index.$locale.country\n }, shippingAddress);\n\n // pre-fill provided billing address\n _this4.onboard.billing_address = _index8.$BillingAddressModel.create(_this4.token, {\n country: billingAddress.country_code || _index.$locale.country\n }, billingAddress);\n };\n\n var showGenericError = function showGenericError(code) {\n return function () {\n _uiRouter.$state.go('checkout.genericError', { code: code });\n };\n };\n // handle billing and shipping address prefill scenarios\n var handlePrefillShippingAndBillingAddress = function handlePrefillShippingAndBillingAddress(allowPrefillShippingAddress, prefilledAddress, prefilledBillingAddress) {\n // if users already had performed planning/post on xo session. Don't prefill the address\n // due to security concerns.\n // buyer_set_in_session attribute indicates that post on xo session/planning has been invoked\n var supplementary_data = _this4.models.checkoutCart.supplementary;\n\n if (supplementary_data && supplementary_data.buyer_set_in_session) {\n return;\n }\n // if both shipping and billing addresses are provided\n if (allowPrefillShippingAddress && prefilledAddress && prefilledBillingAddress) {\n updateShippingAndBillingAddress(prefilledAddress, prefilledBillingAddress);\n\n // uncheck ship to billing checkbox\n _this4.flags.shipToBilling = false;\n } else if (allowPrefillShippingAddress && prefilledAddress) {\n // if only shipping address is provided\n\n // pre-fill user first name and last name\n _this4.onboard.user.first_name = prefilledAddress.first_name;\n _this4.onboard.user.last_name = prefilledAddress.last_name;\n\n updateShippingAndBillingAddress(prefilledAddress, prefilledAddress);\n if (!_this4.flags.allowEditShipping) {\n _this4.flags.shipToBilling = false;\n }\n } else if (prefilledBillingAddress) {\n // if only billing address is provided\n updateShippingAndBillingAddress(prefilledBillingAddress, prefilledBillingAddress);\n }\n };\n\n // remove this upon oas ramp completion\n this.onboard.testParams = {\n oas: _index.$util.param('oas'),\n cardCandidate: _index.$util.param('cardCandidate')\n };\n\n this.$on('localeChange', function () {\n _this4.onboard.fiMode = _this4.getDefaultFIMode();\n _this4.onboard.billing_address.country = _index.$locale.country;\n _this4.onboard.user.country = _index.$locale.country;\n _this4.onboard.user.nationality = _index.$locale.country;\n _this4.onboard.user.countryOfResidence = _index.$locale.country;\n _this4.setBackButtonForWebview();\n\n if (_this4.flags.disableChangeShippingCountry) {\n if (_this4.flags.allowEditShipping) {\n setAllowShipToBilling(_index.$locale.country === _this4.merchantCountry);\n }\n } else {\n _this4.onboard.shipping_address.country = _index.$locale.country;\n }\n });\n\n this.$on('contentChange', function () {\n if (_this4.flags.disableChangeShippingCountry) {\n setChangeShippingCountryAlertMsg();\n }\n });\n\n this.$on('signupClickedTimerStarted', function (event, time) {\n _this4.signupClickedStartTime = time;\n });\n\n this.hasDialingCodeOverride = _util2.hasDialingCodeOverride;\n this.showContactInfo = function () {\n return _this4.hasDialingCodeOverride() || _this4.flags.allowChoice;\n };\n\n this.displayEmailInContactInfo = function () {\n if (!(0, _util2.hasDialingCodeOverride)()) {\n return true;\n }\n\n var showingEmailInSignup = !_this4.flags.allowChoice;\n\n if (!showingEmailInSignup) {\n return true;\n }\n\n return false;\n };\n\n this.redirect = function () {\n _logger.$logger.info('basl_throttle_test_login');\n (0, _squid.$dispatch)('hermes', {\n hermesLoginRedirect: 'xoon',\n token: _this4.token,\n 'locale.x': _index.$locale.lang + '_' + _index.$locale.country,\n 'country.x': _index.$locale.country\n });\n };\n\n this.$watch('flags.shipToBilling', function (shipToBilling) {\n if (!shipToBilling && _this4.flags.allowEditShipping) {\n $.each(_this4.onboard.billing_address, function (key, val) {\n if (angular.isString(_this4.onboard.billing_address[key]) && !_this4.onboard.shipping_address[key]) {\n _this4.onboard.shipping_address[key] = val;\n }\n });\n\n _this4.onboard.shipping_address.first_name = _this4.onboard.shipping_address.first_name || _this4.onboard.user.first_name;\n _this4.onboard.shipping_address.last_name = _this4.onboard.shipping_address.last_name || _this4.onboard.user.last_name;\n }\n });\n\n // Format address to display when store pick is selected\n var formatAddress = function formatAddress(address) {\n var COMMA = ', ';\n var SPACE = ' ';\n\n function prefix(str, prefixStr) {\n if (str) {\n return (prefixStr ? prefixStr : '') + str;\n }\n return '';\n }\n\n var displayLine1 = (address.line1 ? address.line1 : '') + (address.line2 ? prefix(address.line2, COMMA) : '');\n var displayLine2 = (address.city ? prefix(address.city) : '') + (address.state ? prefix(address.state, COMMA) : '') + (address.postal_code ? prefix(address.postal_code, SPACE) : '');\n var displayLine3 = address.country ? prefix(address.country) : '';\n\n return {\n displayLine1: displayLine1,\n displayLine2: displayLine2,\n displayLine3: displayLine3\n };\n };\n\n var storePickUpSelected = _angular.$rootScope.$on('store_pick_up_selected', function (event) {\n var addressType = _this4.flags.shipToBilling ? 'billing_address' : 'shipping_address';\n\n _this4.shippingAddress = formatAddress(_this4.onboard[addressType]);\n });\n\n this.$on('$destroy', storePickUpSelected);\n\n var showErrorFields = _angular.$rootScope.$on('showErrorFields', function (event) {\n _this4.toggleAddressFieldsValidation(true);\n });\n\n this.$on('$destroy', showErrorFields);\n\n var hideErrorFields = _angular.$rootScope.$on('hideErrorFields', function (event) {\n _this4.toggleAddressFieldsValidation(false);\n });\n\n this.$on('$destroy', hideErrorFields);\n\n // useraction flag\n var useraction = this.models.checkoutAppData.useraction();\n\n this.flags.commit = useraction && useraction.toLowerCase() === 'commit';\n _logger.$logger.info('checkout_fpti', {\n billing_page_button_text: this.flags.commit ? 'paynow_y' : 'paynow_n'\n });\n\n this.flags.wpsFlow = this.models.checkoutAppData.is_wps_flow();\n\n // show shipping address based on merchant passed in parameter\n this.showShippingAddress = Boolean(!this.models.checkoutAppData.flags.hide_shipping_address && this.models.checkoutAppData.flags.shipping_address_required);\n\n this.isInstantUpdateFlow = this.models.checkoutCart.instantUpdateIntegration;\n if (this.isInstantUpdateFlow) {\n this.trackSntReq = {};\n }\n\n // flags.allowEditShipping = false, skip saving shipping address validation otherwise don't skip.\n this.flags.allowEditShipping = this.models.checkoutAppData.get('flags.allow_change_shipping', false);\n\n // Prefill email from cart\n this.onboard.user.email = this.models.checkoutCart.get('payer.email');\n\n this.upopConfirmButtonTextKey = (0, _pageProps.upopConfirmButtonTextKey)(this.flags);\n\n // *** NOTE:\n // PXP was initially intended to be used with login button, but we've opted to use back button\n // page name and treatments still have login in the name though.\n this.flags.backButtonWebview = false;\n this.setBackButtonForWebview = function () {\n if (_index10.$DeviceInfo.isWebView(false)) {\n var floatThrottle = parseFloat((0, _index.$feature)('webviewBackButtonThrottle', 0, _index.$locale.country));\n\n if (isNaN(floatThrottle)) {\n return;\n }\n\n _this4.flags.backButtonWebview = floatThrottle && (0, _squid.$experiment)('webview_backbutton_throttle', floatThrottle, _angular.$rootScope.token, {}) ? true : false;\n if (_this4.flags.backButtonWebview) {\n _logger.$logger.info('BACK_BUTTON_SHOWN_FOR_WEBVIEW');\n }\n }\n };\n this.setBackButtonForWebview();\n\n this.landingAbTestCheck = function () {\n /**\n * Show the login button on xoon when:\n * - hermes redirects to xoon in xo-landing-router\n **/\n return _squid.$meta.query && _squid.$meta.query.abTestThrottle === 'xoon' ? true : false;\n };\n\n /**\n * This function takes in an International number: e.g +491721232312 and returns national number (1721232312)\n * @param {string} formattedPhone\n * @param {string} IntDialingCountryCode\n * @return {string}\n */\n this.getFormattedNationalNumber = function (formattedPhone, IntDialingCountryCode) {\n if (!formattedPhone || !IntDialingCountryCode) {\n return;\n }\n\n // Generate clean number by removing empty spaces.\n var cleanPhoneNumber = formattedPhone.replace(/\\s/g, '');\n\n var dailingCode = IntDialingCountryCode[0] === '+' ? IntDialingCountryCode : '+' + IntDialingCountryCode;\n\n return cleanPhoneNumber.split(dailingCode)[1];\n };\n\n // Get merchant passed shipping address from either purchase plan or billing agreement plan\n var prefilledAddress = this.models.checkoutCart.get('purchase.shipping_address') || this.models.checkoutCart.get('billing.shipping_address');\n\n var prefilledNumber = this.models.checkoutCart.get('purchase.phone_fields') || this.models.checkoutCart.get('billing.phone_fields');\n\n var useInternationalFormatting = (0, _index.$feature)('useInternationalFormatting', false, _index.$locale.country);\n\n if (prefilledNumber && prefilledNumber.telephone_country === _index.$locale.country) {\n // If UseInternationalFormatting is enabled, we use griffin's international Number\n // Formatting instead of national formatting. This can be found in feature in config.json\n if (useInternationalFormatting) {\n this.onboard.phone.telephone = this.getFormattedNationalNumber(prefilledNumber.formatted_phone_number_international, this.onboard.phone.IntDialingCountryCode);\n } else {\n this.onboard.phone.telephone = prefilledNumber.formatted_phone_number;\n }\n this.onboard.phone.ispreFill = true;\n }\n\n var allowPrefillShippingAddress = !!prefilledAddress;\n\n var prefilledBillingAddress = this.models.checkoutCart.get('billing_address');\n\n this.merchantCountry = this.models.checkoutAppData.get('merchant.merchant_country', 'US');\n\n // We need merchantDisplayName to be non empty and if merchant_name or brand_name is undefined\n // then we need the value of merchantDisplayName to be 'the merchant' as it is the middle of sentence\n // in content keys used in template\n this.nonEmptyMerchantDisplayName = this.models.checkoutAppData.getMerchantDisplayName({\n nonEmptyReturnValue: true\n });\n\n if ((0, _index.$feature)('supportBlockNonDomesticShipping', false, this.merchantCountry)) {\n this.flags.disableChangeShippingCountry = this.models.checkoutAppData.get('flags.block_non_domestic_shipping', false);\n\n if (this.flags.disableChangeShippingCountry) {\n _logger.$logger.info('onboard_block_non_domestic_shipping', {\n block_non_domestic_shipping: this.flags.disableChangeShippingCountry,\n allow_change_shipping: this.flags.allowEditShipping,\n setec_shipping_country_code: prefilledAddress && prefilledAddress.country_code\n });\n\n if (!this.flags.allowEditShipping && prefilledAddress && prefilledAddress.country_code !== this.merchantCountry && prefilledAddress.country_code !== '') {\n _uiRouter.$state.go('checkout.genericError', {\n code: 'BLOCK_NON_DOMESTIC_SHIPPING'\n });\n }\n\n if (prefilledAddress && prefilledAddress.country_code !== this.merchantCountry) {\n allowPrefillShippingAddress = false;\n }\n\n setChangeShippingCountryAlertMsg();\n this.onboard.shipping_address.country = this.merchantCountry;\n\n // Show shipping address section if user locale is different from merchant country\n if (this.flags.allowEditShipping && _index.$locale.country !== this.merchantCountry) {\n setAllowShipToBilling(false);\n }\n }\n }\n\n /**\n * Handle Card-Type based Installments e.g. Brazil is card_type based installments,\n * so fetch the installments during page load.\n */\n var handleCardTypeBasedInstallments = function handleCardTypeBasedInstallments() {\n _this4.$watch('singlePagePaymentForm.$valid', function (newVal, oldVal) {\n var cardModel = _this4.onboard.card;\n\n if (newVal && newVal.luhn && newVal.luhn[0].$name === 'cardNumber') {\n cardModel.valid = false;\n } else {\n cardModel.valid = true;\n }\n });\n\n _this4.$watch(_this4.onboard.card.type, function (newValue, oldValue) {\n // Sanitize the values\n newValue = newValue ? newValue.replace(/ /g, '').toLowerCase() : null;\n\n var cardNetwork = void 0;\n\n if (newValue && _this4.installments && _this4.installments.length > 0) {\n _this4.installments.some(function cardCheck(card, index, array) {\n if (card.cardInfo && card.cardInfo.card_type && card.cardInfo.card_type.toLowerCase() === newValue) {\n // Card Network Found\n cardNetwork = card;\n return true;\n }\n return false;\n });\n\n if (cardNetwork && cardNetwork.installment_options && cardNetwork.installment_options.length > 0) {\n // Card network && installments found\n if (cardNetwork.installment_options.length === 1) {\n _this4.singleStepModel.selectedInstallmentData = {\n installment_option_selected: cardNetwork.installment_options[0],\n preventChange: true\n };\n }\n\n _this4.singleStepModel.allowInstallments = true;\n } else {\n // Card network does not exists Or No installment found\n _this4.singleStepModel.allowInstallments = false;\n }\n } else {\n _this4.singleStepModel.allowInstallments = false;\n }\n });\n var installments = _index2.$InstallmentOptionsModel.instance(_this4.token);\n\n installments.save({\n data: {\n payee: _this4.models.payee,\n checkoutCart: _this4.models.checkoutCart,\n checkoutAppData: _this4.models.checkoutAppData\n },\n success: function success(result) {\n _this4.installments = result.installments;\n }\n });\n };\n\n /**\n * Handle Issuer based Installments e.g. Mexico is issuer_based (bank) installments, so fetch the\n * installments after user enters card number\n */\n var handleIssuerBasedInstallments = function handleIssuerBasedInstallments() {\n _this4.cardNumberChanged = function (unformattedCardNumber) {\n if (unformattedCardNumber && unformattedCardNumber !== _this4.prevCardNumber) {\n // Make sure the Installments server is hit only once for a cardNumber\n _this4.prevCardNumber = unformattedCardNumber;\n var installments = _index2.$InstallmentOptionsModel.instance(_this4.token);\n\n installments.save({\n silent: true,\n data: {\n payee: _this4.models.payee,\n checkoutCart: _this4.models.checkoutCart,\n checkoutAppData: _this4.models.checkoutAppData,\n cc: unformattedCardNumber\n },\n success: function success(result) {\n _this4.installments = result;\n\n if (result.installment_options && result.installment_options.length > 0) {\n _this4.issuerBasedInstallmentsRetrieved = true;\n\n // reset the previously selected installment\n _this4.singleStepModel.selectedInstallmentData = undefined;\n if (result.installment_options.length === 1) {\n _this4.singleStepModel.selectedInstallmentData = {\n installment_option_selected: result.installment_options[0],\n preventChange: true\n };\n }\n\n _this4.singleStepModel.allowInstallments = true;\n } else {\n _this4.singleStepModel.allowInstallments = false;\n }\n }\n });\n }\n };\n };\n\n // Lookup installments only when amount is greater than zero.\n // for ex: Billing Agreements can create with amount=zero.\n if ((0, _index.$feature)('installments', false, _index.$locale.country) && this.models.checkoutCart.get('purchase.amounts.total.amount', 0) > 0) {\n if ((0, _index.$feature)('issuerBasedInstallments', false, _index.$locale.country)) {\n // e.g. Mexico is issuer_based (bank) installments, so fetch the installments after user enters card number\n handleIssuerBasedInstallments();\n } else {\n // e.g. Brazil is card_type based installments, so fetch the installments during page load.\n handleCardTypeBasedInstallments();\n }\n }\n\n this.isInstallmentsVisible = function () {\n if (!_this4.singleStepModel) {\n return false;\n }\n _this4.singleStepModel.onboard = _this4.onboard;\n\n var model = _this4.onboard;\n var hasConditionMet = _this4.singleStepModel.allowInstallments && model.card.number && (model.card.valid || _this4.issuerBasedInstallmentsRetrieved);\n var isBilling = _this4.models.checkoutCart.isBilling();\n\n return !isBilling && hasConditionMet;\n };\n\n checkProcessorDecline();\n\n checkLatinumRedirect();\n\n handlePrefillShippingAndBillingAddress(allowPrefillShippingAddress, prefilledAddress, prefilledBillingAddress);\n\n var experienceInitiator = this.models.checkoutAppData.get('flags.payment_experience_initiator');\n\n this.onboard.payment_experience_initiator = experienceInitiator;\n\n this.isApac = function () {\n return _index.$config.apacCountries && _index.$config.apacCountries.indexOf(_this4.locale.country) > -1;\n };\n\n this.$on('MORSDisplayed', function (event, args) {\n _this4.MORSDisplayed = args;\n });\n\n this.$on('MORSNotDisplayed', function (event, args) {\n _this4.MORSDisplayed = {};\n });\n\n var handleCardContingencySignup = function handleCardContingencySignup(errorData) {\n if (_this4.models.checkoutInputData.isEbayTxn()) {\n (0, _squid.$dispatch)('prox', {\n action: 'login'\n });\n } else {\n // redirect to hermes and we will see add card page\n var fieldError = errorData && errorData[0] && errorData[0].field;\n var avsRetry = fieldError === 'billing_address' ? true : false;\n\n (0, _squid.$dispatch)('hermes', {\n redirectToHermes: true,\n addFIContingency: fieldError ? 'retry' : 'noretry',\n avsRetry: avsRetry,\n token: _this4.token,\n 'locale.x': _index.$locale.lang + '_' + _index.$locale.country,\n 'country.x': _index.$locale.country\n });\n }\n };\n\n var handleCardContingencyGuest = function handleCardContingencyGuest() {\n var msg = void 0;\n\n if (_this4.models.payee.isGambling()) {\n msg = _index.$locale.content.get('creditcard.noEligibleFI');\n } else if (_this4.onboard.billing_address.country === 'DE') {\n if (_this4.onboard.fiMode === 'bank') {\n delete _this4.onboard.bank;\n msg = _index.$locale.content.get('creditcard.cannotUseBank');\n _this4.onboard.fiMode = 'card';\n } else {\n msg = _index.$locale.content.get('creditcard.cannotUseCard');\n }\n } else {\n msg = _index.$locale.content.get('creditcard.errorInstrumentRefused');\n }\n\n _this4.errorMessage = {\n msgs: [msg],\n type: 'error'\n };\n return _angular.$q.reject()['catch'](angular.noop);\n };\n\n var handleCardContingency = function handleCardContingency(action) {\n return _this4.flags.mode === 'signup' ? handleCardContingencySignup() : handleCardContingencyGuest();\n };\n\n var show3DSLightbox = function show3DSLightbox(checkoutSession) {\n var cc_id = checkoutSession.get('resolve_3ds.ccId');\n var plans = checkoutSession.get('plan.sources', null);\n var plan = plans && plans.filter(function (e) {\n return e.instrument_id === cc_id;\n })[0].amount || null;\n\n _this4.resolve_3ds_data = {\n cc_id: cc_id,\n flow_id: 'HERMES',\n merchant_id: _this4.models.payee.get('merchant.id'),\n merchant_country_code: _this4.models.checkoutAppData.get('merchant.merchant_country'),\n transaction_amount_currency: plan && plan.currency_code,\n transaction_amount_value: plan && plan.amount\n\n };\n _this4.launch3DSResolver = true;\n };\n\n var isDCCEligible = function isDCCEligible(checkoutSession) {\n var isGuest = _this4.flags.mode !== 'signup';\n var hasCurrencyConversion = checkoutSession.get('plan.conversion.paypal') && checkoutSession.get('plan.conversion.changeable');\n\n // Decides dcc currency conversion popup show/hide\n return isGuest && hasCurrencyConversion;\n };\n\n /*\n * This function will determine final route of the transaction:\n * 1. return to merchant for all none WPS traffic\n * 2. go to checkout done page for WPS with not eligible interstitial traffic\n * 3. got to WPS interstitial for eligible(passes upgrade eligibility) WPS traffic\n */\n var finalRoute = function finalRoute() {\n var finishFlow = function finishFlow() {\n var isWpsFlow = _this4.flags.wpsFlow;\n var destination = isWpsFlow ? 'done' : 'end';\n\n if (_this4.flags.poma_flow) {\n _logger.$logger.info('LOGGING_OUT' + (isWpsFlow ? '_WPS' : '') + '_POMA_FLOW_FOR_CLEARING_COOKIES');\n\n // Logging out the user only for POMA before going to END state.\n // why are we logging out?\n // ACCESS_TOKEN dropped during passive login is 8hr expiration, due to which\n // user is not authenticated in subsequent transaction in hermes review page\n // while adding FI or Shipping Address.\n // so by logging out the user, removes all the cookies except RT from the\n // browser in which hermes does RT to AT exchange in the absence of AT and gets\n // the limited AccessToken.\n return _this4.models.auth.action('logout').then(function () {\n return _uiRouter.$state.go('checkout.' + destination);\n });\n }\n\n return _uiRouter.$state.go('checkout.' + destination);\n };\n\n if (_this4.flags.wpsFlow) {\n _this4.singleStepModel.onboard = _this4.onboard;\n _this4.singleStepModel.flags = _this4.flags;\n // set signup/guest flag so done page\n // renders the proper content\n _angular.$rootScope.mode = _this4.flags && _this4.flags.mode;\n\n if (_this4.flags.wpsInterstitialEligible) {\n if (_this4.flags.buyerMode === 'signup') {\n return _uiRouter.$state.go('checkout.done');\n }\n\n var logAndGoToDone = function logAndGoToDone(error) {\n return function () {\n _logger.$logger.info('wps_interstitial_ineligible_' + error);\n return _uiRouter.$state.go('checkout.done');\n };\n };\n\n return _this4.onboard.action('upgradeValidate', {\n data: _this4.onboard.serialize(),\n success: function success() {\n return _uiRouter.$state.go('checkout.guest.guestUpgradeInterstitial');\n },\n contingencies: {\n CC_LINKED: logAndGoToDone('CC_LINKED'),\n EXISTING_MEMBER: logAndGoToDone('EXISTING_MEMBER'),\n CC_LINKED_TO_FULL_ACCOUNT: logAndGoToDone('CC_LINKED_TO_FULL_ACCOUNT'),\n VALIDATION_ERROR: logAndGoToDone('VALIDATION_ERROR'),\n DEFAULT: logAndGoToDone('UHANDLED_CONTINGENCY')\n },\n validation: logAndGoToDone('SERVICE_VALIDATION_ERROR'),\n error: logAndGoToDone('SERVICE_ERROR')\n });\n }\n }\n\n finishFlow();\n };\n\n var authorize = function authorize() {\n var checkoutSession = _index2.$CheckoutSessionModel.instance(_this4.token);\n var checkoutAppData = _this4.models.checkoutAppData;\n var checkoutCart = _this4.models.checkoutCart;\n var doEcOnApprove = checkoutAppData.doec_on_approve();\n\n return checkoutSession.action('authorize', {\n success: function success() {\n var isSubscriptionsV1 = checkoutCart.isSubscriptionsV1();\n var isWpsSubscription = checkoutAppData.is_wps_subscription_flow();\n\n if (isWpsSubscription || isSubscriptionsV1) {\n return (0, _util2.redirectToSubscriptionFinalRoute)(_this4.flags.mode, isSubscriptionsV1);\n } else if (doEcOnApprove) {\n return checkInventoryAndPay(checkoutSession);\n }\n\n return finalRoute();\n }\n });\n };\n\n var setStickyFIAndAuthorize = function setStickyFIAndAuthorize() {\n var checkoutSession = _index2.$CheckoutSessionModel.instance(_this4.token);\n\n return _angular.$q.when((0, _sticky.setStickyInstrument)(checkoutSession))['catch'](function (err) {\n _logger.$logger.info('setStickyFI_Failed', err);\n })['finally'](authorize);\n };\n\n this.shippingChangeFeature = (0, _shippingChangeFeature.createShippingChangeFeature)({\n orderID: this.token,\n checkoutAppData: this.models.checkoutAppData,\n checkoutCart: this.models.checkoutCart,\n flags: this.flags,\n callback: function callback() {\n return _this4.shippingOptionsFeature.checkForShippingOptions();\n }\n });\n\n var continueWith3DSOrAuthorize = function continueWith3DSOrAuthorize() {\n var checkoutSession = _index2.$CheckoutSessionModel.instance(_this4.token);\n\n if (checkoutSession.resolve_3ds) {\n return show3DSLightbox(checkoutSession);\n }\n\n _logger.$logger.info('Initiate_setStickyFI_call_and_authorize_call');\n return setStickyFIAndAuthorize();\n };\n\n var postCheckoutSessionOperations = function postCheckoutSessionOperations(dccComplete) {\n var checkoutSession = _index2.$CheckoutSessionModel.instance(_this4.token);\n\n /**\n * 1. Transaction is eligible for DCC - guest flow, plan has PayPal conversion,\n * and conversion is changeable\n * 2. Function wasn't called by post plan interstitial form submission\n * 3. DCC has not been successfully called (this.onboard.cart.currencyConvData will be `undefined`)\n * - Beacuse it hasn't been called yet or because the prePlan API was called but it\n * returned an error. In that case we want to try again with the postPlan API instead\n * of forcing the user to abandon their cart.\n */\n if (isDCCEligible(checkoutSession) && !dccComplete && !_this4.onboard.get('card.currencyConvData')) {\n _logger.$logger.info('render_currency_conversion_lightbox');\n if (_this4.flags.wpsInterstitialEligible) {\n _logger.$logger.info('wps_interstitial_render_dcc');\n }\n _this4.launchCurrencyConversionLightbox = true;\n return;\n }\n\n var hasCallbackAPI = window.xprops && window.xprops.onShippingChange;\n if (_this4.shippingOptionsFeature.hasShippingOptions() && !hasCallbackAPI) {\n _this4.shippingChangeFeature.interstitialResolver = continueWith3DSOrAuthorize;\n _this4.shippingChangeFeature.handleOnShippingChange = function () {\n return _this4.shippingChangeFeature.showOrResolveInterstitial();\n };\n\n return _this4.shippingChangeFeature.showOrResolveInterstitial(true);\n }\n\n return callOnShippingChangeAndContinue();\n };\n\n var callOnShippingChangeAndContinue = function callOnShippingChangeAndContinue() {\n // We don't have a shipping address... just continue\n if (!_this4.flags.allowEditShipping) {\n return _angular.$q.when().then(continueWith3DSOrAuthorize);\n }\n\n return _this4.shippingChangeFeature.handleOnShippingChange().then(continueWith3DSOrAuthorize);\n };\n\n this.onCompleteDCC = function (result) {\n _this4.launchCurrencyConversionLightbox = false;\n return postCheckoutSessionOperations(true);\n };\n\n var makePayment = function makePayment(checkoutSession) {\n var wpsParams = _index.$util.decodeAndParse(_squid.$meta.xclickParams);\n\n return checkoutSession.action('createPayment', {\n data: {\n payer_id: checkoutSession.get('payer.id'),\n intent: _this4.models.checkoutCart.payment_action,\n wa_type: wpsParams && wpsParams.wa_type,\n correlation_id: _squid.$meta.correlationId,\n merchant_id: _this4.models.payee.get('merchant.id'),\n custom: _this4.models.checkoutCart.get('purchase.custom'),\n invoice: _this4.models.checkoutCart.get('purchase.invoice')\n },\n success: function success(result) {\n _angular.$rootScope.paymentComplete = true;\n _this4.onboard.payerId = checkoutSession.payer && checkoutSession.payer.id;\n _this4.onboard.transaction = result.transactionDetails && result.transactionDetails.id;\n if (_index.$config.enableShoppingCartWPS && _this4.models.checkoutAppData.flags.is_shopping_cart_flow) {\n markCartCheckedout();\n }\n return finalRoute();\n },\n contingencies: {\n TRANSACTION_REFUSED: handlePaymentContingencies('TRANSACTION_REFUSED'),\n INSTRUMENT_DECLINED: function INSTRUMENT_DECLINED() {\n inventoryOperation('failed');\n var param = {\n mode: _this4.flags.mode\n };\n\n _uiRouter.$state.go('checkout.pageAddCard.addCardFlow.addCard', param);\n },\n PAYEE_BLOCKED_TRANSACTION: handlePaymentContingencies('PAYMENT_DENIED'),\n DUPLICATE_TRANSACTION: handlePaymentContingencies('PAYMENT_ALREADY_DONE'),\n // This error needs the same handling as card decline in add card API call\n CC_PROCESSOR_DECLINED: handleCardContingency,\n DEFAULT: handlePaymentContingencies('DEFAULT')\n },\n error: function error(err) {\n _logger.$logger.info('createPayment Failed due to service error', err);\n inventoryOperation('failed');\n return _uiRouter.$state.go('checkout.genericError', { code: 'DEFAULT' });\n }\n });\n };\n\n var inventoryOperation = function inventoryOperation(paymentStatus) {\n var cartHasInventory = _this4.models.checkoutCart.get('cartHasInventory');\n\n if (cartHasInventory) {\n var inventoryModel = _index6.$InventoryModel.instance(_angular.$rootScope.token);\n var inventoryItems = inventoryModel.getInventoryItems();\n var purchaseItems = _this4.models.checkoutCart.get('purchaseUnits');\n var inventoryPatchInput = {};\n var cartItems = void 0;\n\n if (purchaseItems && purchaseItems[0] && purchaseItems[0].item_list) {\n cartItems = purchaseItems[0].item_list.items;\n }\n paymentStatus = paymentStatus ? paymentStatus : 'success';\n if (cartItems && inventoryItems) {\n inventoryPatchInput = {\n inventoryItems: inventoryItems,\n cartItems: cartItems,\n merchantId: _this4.models.payee.get('merchant.id', ''),\n paymentStatus: paymentStatus\n };\n } else {\n return _angular.$q.when(); // don't need to call patchInventory if items not present\n }\n\n return inventoryModel.action('patchInventory', {\n data: inventoryPatchInput,\n success: function success(patchResponse) {\n if (patchResponse) {\n if (patchResponse.showSoldoutPage) {\n // show soldout page\n return {\n soldoutpage: true,\n items: patchResponse.soldoutItems,\n soldOutUrl: patchResponse.soldoutUrl\n };\n } else if (patchResponse.patchCart) {\n var purchase_unit = _this4.models.checkoutCart.get('purchaseUnits')[0];\n\n purchase_unit.item_list.items = patchResponse.cartItems;\n var patchCartPayload = {\n id: _this4.token,\n patchEntities: [{\n field: 'inventoryItems',\n value: purchase_unit.item_list.items\n }]\n };\n\n return _this4.models.checkoutCart.action('patchCartData', {\n data: patchCartPayload\n });\n }\n } else {\n return;\n }\n }\n });\n } else {\n return _angular.$q.when(); // not an inventory request proceed with existing flow\n }\n };\n\n var checkInventoryAndPay = function checkInventoryAndPay(checkoutSession) {\n return inventoryOperation().then(function (result) {\n if (result && result.soldoutpage) {\n return _uiRouter.$state.go('checkout.soldout', {\n items: encodeURIComponent(result.items),\n soldOutUrl: encodeURIComponent(result.soldOutUrl)\n });\n }\n return makePayment(checkoutSession);\n });\n };\n\n var handlePaymentContingencies = function handlePaymentContingencies(code) {\n return function () {\n inventoryOperation('failed');\n return _uiRouter.$state.go('checkout.genericError', { code: code });\n };\n };\n\n var markCartCheckedout = function markCartCheckedout() {\n var shoppingCartModel = _index4.$ShoppingCartModel.instance(_angular.$rootScope.token);\n\n return shoppingCartModel.action('cartCheckedOut', {\n success: function success(result) {\n _logger.$logger.info('cart checked out successfully');\n }\n });\n };\n\n var mapValidationErrors = function mapValidationErrors(err) {\n var fields = err && err.fields || [];\n\n fields.forEach(function (fieldError) {\n if (fieldError && fieldError.property) {\n fieldError.field = fieldError.property;\n }\n });\n return {\n fields: fields\n };\n };\n\n var mapAddCardErrors = function mapAddCardErrors(field) {\n switch (field) {\n case 'cvv':\n return { fields: [{ field: 'security_code' }] };\n case 'billing_address':\n if (_this4.$element.find('[ng-model=\"address.line2\"]').val().length) {\n return { fields: [{ field: 'address.line1' }, { field: 'address.line2' }, { field: 'address.postal_code' }] };\n }\n return { fields: [{ field: 'address.line1' }, { field: 'address.postal_code' }] };\n default:\n return;\n }\n };\n\n // TODO: clean up this code as most of filifecycleserv error handler is in\n // lib/errorHandlerHelper, and we should get rid of $fiErrorUtil\n // From my understanding following function is related to older service call\n this.handleFIContingencies = function (data, fundingInstrument) {\n return (0, _squid.$pxp)('xo_xoon_validation_error', { 'ctx.country': _index.$locale.country }, 'xo_xoon_validation_error_treatment', false, true).then(function (result) {\n // data is an object which has error with key 0\n // standardize data's data structure to group invalid fields together and handle all cases\n if (result && data && data[0]) {\n var contentBundle = 'addCardFIErrors';\n var errorData = mapAddCardErrors(data[0].field);\n\n switch (data[0].field) {\n case 'billing_address':\n _this4.errorMessage = _util.$fiErrorUtil.addPageErrors(data, contentBundle, _this4.props, 'VALIDATION_ERROR_BILLING_ADDRESS');\n _util.$fiErrorUtil.addFieldErrors(errorData, _this4.$element);\n break;\n case 'cvv':\n _this4.errorMessage = _util.$fiErrorUtil.addPageErrors(data, contentBundle, _this4.props, 'VALIDATION_ERROR_CVV');\n _util.$fiErrorUtil.addFieldErrors(errorData, _this4.$element, 'card.');\n break;\n default:\n _this4.errorMessage = _util.$fiErrorUtil.addPageErrors(data, fundingInstrument);\n break;\n }\n }\n\n if (!_this4.errorMessage) {\n _this4.errorMessage = {\n msgs: [_index.$locale.content.get(fundingInstrument + '.errorGeneral')],\n type: 'error'\n };\n }\n\n errorHandlerHelper.scrollToElement();\n });\n };\n\n this.handleAddFIContingencies = function (data, fundingInstrument, action) {\n if (action === 'signup') {\n handleCardContingencySignup(data);\n } else {\n _this4.handleFIContingencies(data, fundingInstrument);\n }\n };\n\n var getContentIdentifier = function getContentIdentifier(tcpaIdentifier) {\n return _index.$locale.country + ':' + _index.$locale.lang + ':' + (0, _squid.$contentVersion)() + ':' + tcpaIdentifier;\n };\n\n /*\n * onBoardAccount and functions calling onBoardAccount\n */\n this.onBoardAccount = function () {\n // remove the page level errors\n _this4.errorMessage = '';\n\n // creating this variable shipping_address_validation for back-end whether to validate\n // the shipping address or not.\n // shipping address validation required only when shipping address is different than Billing Address\n // shipToBilling flag will be false when user tries to expand the shipping address in Billing Page\n // By default shipToBilling is true, so when shipping address is shown and Billing Address\n // is not present for whitelisted india merchants, shipping address needs to be validated.\n _this4.onboard.shipping_address_validation = _this4.flags.allowEditShipping && (!_this4.flags.shipToBilling || _this4.flags.whiteListedIndiaMerchant);\n // billing_address_present passed to the back end to skip / perform billing address validation\n // billing_address_present will be false only for whitelisted merchant from INs.\n _this4.onboard.billing_address_present = !_this4.flags.whiteListedIndiaMerchant;\n _this4.onboard.billing_address.country = _index.$locale.country;\n\n _this4.onboard.skipInitiateAuth = true;\n\n _this4.onboard.poma_flow = _this4.flags.poma_flow;\n _this4.onboard.content_identifier = getContentIdentifier(_this4.flags.tcpa_identifier);\n _this4.onboard.prox_flow = _this4.models.checkoutInputData.isEbayTxn();\n\n // Set Free Return Shipping Opt-in flow applicability flag\n _this4.onboard.frs_optin_flow_applicable = _this4.flags.freeReturnShippingOptInFlowApplicable;\n _this4.onboard.frs_optin_active_flow = _this4.flags.freeReturnShippingOptInActiveFlow;\n\n // merchantCountry, merchantPreferences, and isUnbranded are needed to check for guest eligibility\n var _merchantPreferences = _this4.merchantPreferences;\n _merchantPreferences = _merchantPreferences === undefined ? {} : _merchantPreferences;\n var merchant_preferences = _merchantPreferences.model;\n\n\n _this4.onboard.flow_eligibility_data = {\n is_unbranded: _this4.isUnbranded,\n merchant_preferences: merchant_preferences,\n merchant_country: _this4.merchantCountry\n };\n\n _this4.onboard.bypass_address_verification = _this4.bypassAddressVerificationExperience.bypassAddressVerificationExp && _this4.flags.mode === 'guest';\n\n // POMA should go in Singup rails, because poma usecase is passwordless member\n var action = _this4.flags.poma_flow || _this4.flags.mode === 'signup' ? 'signup' : 'guest';\n\n var setErrorMessage = function setErrorMessage(errMsg) {\n _this4.errorMessage = {\n msgs: errorHandlerHelper.getPageError(errMsg),\n type: 'error'\n };\n };\n\n return _this4.onboard.action(action, {\n data: _this4.onboard.serialize(),\n\n success: function success(result) {\n return _angular.$q.when().then(function () {\n /*\n If we're in an in-context flow, the parent button\n iframe may need the access token to continue running\n and execute the payment (e.g. in 3rd party cookies\n disabled mode)\n We reload the auth model, since after the user is\n onboarded this model is not updated, then pass the\n access token up. The token will only be passed if\n we're on the same-domain as the parent button.\n */\n\n if (window.xprops && window.xprops.onAuth) {\n if (result && result.accessToken) {\n _logger.$logger.info('spb_onauth_from_onboard_call');\n return window.xprops.onAuth({ accessToken: result.accessToken });\n } else {\n // TODO: this can be removed once we're sure `result.accessToken`\n // is always populated\n _logger.$logger.info('spb_onauth_from_auth_reload');\n var auth = _index9.$AuthModel.instance();\n return auth.reload().then(function () {\n window.xprops.onAuth({ accessToken: auth.access_token });\n });\n }\n }\n }).then(function () {\n if (_this4.flags.poma_flow) {\n var locale_code = _index.$locale.lang + '_' + _index.$locale.country;\n var locale_country = _index.$locale.country;\n\n return _ul.$ul.optInToOneTouch(_this4.token, locale_country, locale_code).then(function (success) {\n _logger.$logger.info('UL_SUCCESSFULLY_DROPPED_RT_IN_COOKIE');\n }, function (err) {\n // eslint-disable-line handle-callback-err\n _logger.$logger.info('UL_FAILED_DROPPED_RT_IN_COOKIE');\n });\n }\n }).then(function () {\n if (_this4.models.checkoutCart.isWalletTokenization()) {\n _logger.$logger.info('REDIRECT_' + _this4.subject + '_WALLET_TOKENIZATION');\n (0, _squid.$dispatch)('hermes', {\n token: _this4.token,\n 'locale.x': _index.$locale.lang + '_' + _index.$locale.country,\n 'country.x': _index.$locale.country\n });\n } else {\n // fire conversion url for MORS offer in the sign up section, ad_id = 202002\n if (_this4.MORSDisplayed && _this4.MORSDisplayed.placementId === '202002') {\n _index11.$fireMORSBeacon.fireBeacon(_this4.MORSDisplayed.clickURL);\n }\n\n if (_this4.onboard.card && _this4.onboard.fundingId && _this4.needOTPForAddCard && _this4.flags.cupDetected && _this4.flags.upopDetected) {\n _this4.onboard.card.id = _this4.onboard.fundingId;\n _this4.launchUpopScreen = true;\n } else {\n // Create Checkout-Session\n return createXO();\n }\n }\n });\n },\n\n contingencies: {\n TRANSACTION_REFUSED: showGenericError('TRANSACTION_REFUSED'),\n CC_LINKED_TO_FULL_ACCOUNT: function CC_LINKED_TO_FULL_ACCOUNT() {\n setErrorMessage('creditcard.linkedCardToAddNewCard');\n },\n BANK_LINKED_TO_FULL_ACCOUNT: function BANK_LINKED_TO_FULL_ACCOUNT() {\n setErrorMessage('bank.linkedBankError');\n },\n EXISTING_ACCOUNT_RESTRICTED: function EXISTING_ACCOUNT_RESTRICTED() {\n setErrorMessage('creditcard.riskDisallowed');\n },\n TOO_MANY_REQUESTS: function TOO_MANY_REQUESTS() {\n setErrorMessage('genericError.genericError');\n },\n\n VALIDATE_BANK_CONTINGENCY: function VALIDATE_BANK_CONTINGENCY(name, data) {\n _this4.errorMessage = _util.$fiErrorUtil.addPageErrors(data, _this4.locale, 'bank');\n _util.$fiErrorUtil.addFieldErrors(data, _this4.sectionElement);\n },\n ADD_CARD_CONTINGENCY: function ADD_CARD_CONTINGENCY(result, err) {\n _this4.handleAddFIContingencies(err, 'creditcard', action);\n },\n ADD_BANK_CONTINGENCY: function ADD_BANK_CONTINGENCY(result, err) {\n _this4.handleAddFIContingencies(err, 'bank', action);\n },\n RISK_DISALLOWED: function RISK_DISALLOWED() {\n setErrorMessage('creditcard.riskDisallowed');\n },\n COUNTRY_NOT_SUPPORTED: function COUNTRY_NOT_SUPPORTED() {\n setErrorMessage('creditcard.complianceDecline');\n },\n\n VALIDATION_ERROR: function VALIDATION_ERROR(message) {\n var errorData = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var _errorData$ = errorData[0];\n _errorData$ = _errorData$ === undefined ? {} : _errorData$;\n var errorCode = _errorData$.code;\n var _experiments$accountE = _this4.experiments.accountExistsPXP,\n accountExistsPXP = _experiments$accountE === undefined ? {} : _experiments$accountE;\n var accountExistsTreatment = accountExistsPXP.treatment_name;\n\n var isCheckAuthflowRedirect = errorCode === 'ACCOUNT_ALREADY_EXISTS' && !_this4.models.checkoutInputData.isEbayTxn() && _this4.mode === 'signup';\n\n return (0, _util3.authflowRedirect)({ isCheckAuthflowRedirectParam: isCheckAuthflowRedirect, country: _index.$locale.country }).then(function (isAuthFlow) {\n\n // following errorCode is added for US1174965 - forced signup\n if (isAuthFlow) {\n errorData[0].errorCode = 'ACCOUNT_ALREADY_EXISTS_AUTHFLOW_REDIRECT';\n }\n\n var errorMsgs = errorHandlerHelper.errorHandler(message, errorData, _this4.actions.positionToErrorField, accountExistsTreatment ? _this4.mode : '');\n var errorType = errorHandlerHelper.getErrorType(errorCode, _this4.mode, accountExistsTreatment);\n\n if (errorMsgs && errorMsgs.length > 0) {\n _this4.errorMessage = {\n msgs: errorMsgs,\n type: errorType\n };\n }\n\n if (accountExistsTreatment && errorCode === 'ACCOUNT_ALREADY_EXISTS' && _this4.mode !== 'signup') {\n var isPOMA = _this4.flags.poma_flow;\n\n (0, _pageProps.accountExistsOptionalCheck)(_this4.mode, isPOMA);\n }\n });\n }\n },\n\n validation: function validation(res) {\n // should catch any primary check failures like schema validations etc\n _util.$fiErrorUtil.addFieldErrors(mapValidationErrors(res), _this4.sectionElement);\n }\n });\n };\n\n var addShippingAddress = function addShippingAddress() {\n return _squid.$promise.call(function () {\n // Add shipping address if edit shipping is allowed. this.flags.allowEditShipping flag used\n // to show \"ship to Billing\" checkbox\n if (_this4.flags.allowEditShipping) {\n var shippingAddress = _this4.onboard.shipping_address;\n\n shippingAddress.recipient_name = shippingAddress.first_name + ' ' + shippingAddress.last_name;\n return shippingAddress.save({\n data: _this4.onboard.shipping_address.serialize(),\n validation: function validation(message, errorData) {\n var errorMsgs = errorHandlerHelper.errorHandler(message, errorData, _this4.actions.positionToErrorField);\n\n if (errorMsgs && errorMsgs.length > 0) {\n _this4.errorMessage = {\n msgs: errorMsgs,\n type: 'error'\n };\n }\n }\n });\n }\n });\n };\n\n var createXO = function createXO() {\n var checkoutSession = _index2.$CheckoutSessionModel.instance(_this4.token);\n\n return checkoutSession.action('create', {\n data: {\n fraudnet_id: _this4.models.checkoutCart.get('supplementary.risk_correlation_id'),\n baToken: _this4.models.checkoutCart.get('billing.ba_token'),\n cc_login_account_number: _this4.onboard.cc_login_account_number,\n email_login_account_number: _this4.onboard.email_login_account_number\n },\n\n success: function success() {\n return _angular.$q.when().then(addShippingAddress).then(function () {\n if (_this4.flags.buyerFxTreatment) {\n /**\n * Here we will log the following events to FPTI\n * Event 3 - During signup when the the pre-plan API failed and\n * the card allows for the conversion seleciton to be changed\n * Event 7 - All cases expect for guest checkout when the pre-plan\n * API fails and the card allows for conversion selection. We\n * don't log event 7 here in that case because those users will\n * see the post-plan interstitial which will log event 7 upon submission\n */\n (0, _utils.logBuyerFxFpti)({\n card: _this4.onboard.card,\n hasPrePlanData: _this4.flags.hasBuyerFxPrePlanData,\n isSignup: _this4.flags.mode === 'signup',\n purchase: _this4.models.checkoutCart.purchase\n });\n }\n\n /**\n * If checkoutSession has DCC enabled, then we do the 'updateConversion' call and upate to 'VENDOR' if:\n * 1. Pre-Plan (Buyer FX): if 'VENDOR' was selected as the option from the inline radio buttons.\n * 2. The user is going through the forced signup flow we need currency conversion and they didn't see the Buyer FX\n * experience or the API for that experience failed. For signup we don't show the post-plan\n * DCC interstitial since we want to minimize the number of fields the user has to fill\n * out. Therefore we forgo the chance at earning the conversion fee and forece 'VENDOR'.\n */\n var conversionPayPalAndChangeable = checkoutSession.get('plan.conversion.paypal') && checkoutSession.get('plan.conversion.changeable');\n var isSignupWithNoConversion = _this4.flags.mode === 'signup' && !_this4.onboard.card.currencyConvData;\n var conversionIsVendor = _this4.onboard.card.ppconversion === 'VENDOR';\n\n if (conversionPayPalAndChangeable && (isSignupWithNoConversion || conversionIsVendor)) {\n return _index2.$FundingOptionsModel.instance(_this4.token).action('updateConversion', {\n data: {\n conversionType: 'VENDOR',\n planId: checkoutSession.plan.id\n },\n resultModel: checkoutSession\n })['catch'](function (err) {\n return err;\n });\n }\n }).then(function () {\n // Performing a check if the card and CVV exists to determine whether or not we do a patchCVV\n var checkCVV = checkoutSession.get('cvvData');\n var securityCode = _this4.onboard.get('card.security_code');\n var fundingOptions = checkoutSession.get('fundingOptions.instruments');\n var instrumentId = fundingOptions && fundingOptions.length > 0 ? fundingOptions[0].id : null;\n\n if (checkCVV) {\n _logger.$logger.info('paps_threw_cvv_contigency_patchCvv');\n checkoutSession.set('cvvData.security_code', securityCode);\n } else if (securityCode && instrumentId && _this4.onboard.bypass_address_verification) {\n _logger.$logger.info('bypass_skip_avs_patchCvv');\n checkoutSession.set('cvvData', {\n security_code: securityCode,\n id: instrumentId\n });\n }\n\n // Verify if there's a funding option, if there is we than make a patchCVV call\n if (instrumentId) {\n _logger.$logger.info('funding_options_exist');\n return _fiApis.$fiApis.patchCvv(checkoutSession).then(postCheckoutSessionOperations, function (err) {\n _logger.$logger.error('patchCvv error', err);\n });\n } else {\n _logger.$logger.info('funding_options_do_not_exist');\n }\n });\n },\n\n contingencies: {\n TRANSACTION_REFUSED: showGenericError('TRANSACTION_REFUSED'),\n NEED_SHIPPING_ADDRESS: function NEED_SHIPPING_ADDRESS() {\n return _this4.onboard.shipping_address.save({\n data: _this4.onboard.shipping_address.serialize(),\n validation: function validation(message, errorData) {\n var errorMsgs = errorHandlerHelper.errorHandler(message, errorData, _this4.actions.positionToErrorField);\n\n if (errorMsgs && errorMsgs.length > 0) {\n _this4.errorMessage = {\n msgs: errorMsgs,\n type: 'error'\n };\n }\n }\n });\n },\n NEED_CREDIT_CARD_OR_BANK_ACCOUNT: function NEED_CREDIT_CARD_OR_BANK_ACCOUNT() {\n return handleCardContingency();\n },\n NEED_CREDIT_CARD: function NEED_CREDIT_CARD() {\n return handleCardContingency();\n },\n SENDING_LIMIT_EXCEEDED: function SENDING_LIMIT_EXCEEDED() {\n /* 1. Introducing config attribute sendingLimitNoFallback for certain countries right now\n only Japan, to go to generic error page in case of sending limit exceeded. this config\n will be removed once all countries have proper content available.\n 2. Currently only guest mode will go to generic error page as signup mode need to handle\n SENDING_LIMIT_EXCEEDED AND TRANSACTION_LIMIT_EXCEEDED separately but we are not getting expected\n contingency from Symphony yet. Will remove scope.flags.mode === 'guest' condition once we are getting\n expected contingency back.\n */\n if ((0, _index.$feature)('sendingLimitNoFallback') && _this4.flags.mode === 'guest') {\n _uiRouter.$state.go('checkout.genericError', { code: 'TRANSACTION_LIMIT_EXCEEDED' });\n } else {\n throw new _index.$FallbackError({\n reason: 'sending_limit_exceeded',\n product: 'ux'\n });\n }\n },\n NEED_AUTHENTICATED_CARD: function NEED_AUTHENTICATED_CARD() {\n // Contingency purpose - Show OTP confirmation popup\n // As we have already presented user with OTP popup with\n // init call after add card (flag - launchUpopScreen),\n // we need to redirect user to hermes at this point\n (0, _squid.$dispatch)('hermes', {\n token: _this4.token,\n 'locale.x': _index.$locale.lang + '_' + _index.$locale.country,\n 'country.x': _index.$locale.country\n });\n },\n TRAVEL_RULE_ID_REQUIRED: function TRAVEL_RULE_ID_REQUIRED() {\n _logger.$logger.info('invoice_travel_rule_id_required');\n _this4.launchTravelRuleLightbox = true;\n }\n }\n });\n };\n\n this.onTravelRuleSuccess = function () {\n // Close travel rule lightbox if it is open\n _this4.launchTravelRuleLightbox = false;\n return createXO();\n };\n\n this.onUpopSuccess = function () {\n _this4.launchUpopScreen = false;\n return createXO();\n };\n\n this.onUpopCancel = function (errorData) {\n _this4.launchUpopScreen = false;\n\n if (_this4.flags.mode === 'signup') {\n // If signup user closes the OTP popup window(or some error in flow)\n // then call create checkout session, and this will intern redirect\n // to hermes with NEED_AUTHENTICATED_CARD contingency\n return createXO();\n } else if (errorData) {\n // If guest user closes the OTP popup window(or some error in flow)\n // then show a page level error to the user\n // There is no redirect to hermes in guest case\n if (errorData && errorData.errorCodes && errorData.errorCodes[0] === 'RESTRICTED_CARD') {\n // Custom error messaging for RESTRICTED_CARD errorCode.\n // RESTRICTED_CARD_GUEST content key is applicable for both Guest & Signup flows.\n errorData.errorCodes[0] = 'RESTRICTED_CARD_GUEST';\n }\n\n // prop for last 4 digits of card in error message\n var prop = {\n number: _this4.onboard.card.last4()\n };\n\n _this4.errorMessage = _util.$fiErrorUtil.addPageErrors(errorData, 'confirmUpop', prop, 'error');\n }\n };\n\n this.uponNormalization = function (normalizedAddress, isBack) {\n _this4.showAddressNormalizationLightbox = false;\n\n var newBilling = _index8.$BillingAddressModel.create(_this4.token, normalizedAddress, {\n id: '0'\n });\n\n _this4.onboard.billing_address = newBilling;\n\n if (_this4.flags.shipToBilling) {\n _this4.onboard.shipping_address.first_name = _this4.onboard.user.first_name;\n _this4.onboard.shipping_address.last_name = _this4.onboard.user.last_name;\n }\n\n return _this4.onBoardAccount();\n };\n\n this.toggleAddressFieldsValidation = function (toggle) {\n if (_this4.flags.shipToBilling) {\n _this4.billingAddressValidated = toggle;\n } else {\n _this4.shippingAddressValidated = toggle;\n }\n };\n\n /*\n * Update Phone Number to remove '-' from actual Number.\n * Input: 123-4567-890 Output: 1234567890.\n */\n this.updatePhoneOnSubmit = function () {\n if (_this4.onboard.phone.telephone) {\n _this4.onboard.phone.telephone = _this4.$element.find('.telephone').cleanVal();\n }\n };\n\n /*\n * Before submit the transaction, need to update shipping address if this.flags.shipToBilling is set\n * Also update city/state/zip value if the city/state/zip element is not present for the selected country\n * TODO: should enhance this function to compare the address entry from metadata based on country,\n * the tricky part is need to consider to load metadata separately for billing and shipping\n * if their country is different\n */\n this.updateAddressOnSubmit = function () {\n var billingState = $('#billingAddress #state')[0] || $('#billingAddress #billingState')[0];\n var shippingState = $('#shippingAddress #state')[0] || $('#shippingAddress #shippingState')[0];\n var billingCity = $('#billingAddress #city')[0] || $('#billingAddress #billingCity')[0];\n var shippingCity = $('#shippingAddress #city')[0] || $('#shippingAddress #shippingCity')[0];\n var billingZip = $('#billingAddress #postalCode')[0] || $('#billingAddress #billingPostalCode')[0];\n var shippingZip = $('#shippingAddress #postalCode')[0] || $('#shippingAddress #shippingPostalCode')[0];\n var billingLine1 = $('#billingAddress #line1')[0] || $('#billingAddress #billingLine1')[0];\n var billingLine2 = $('#billingAddress #line2')[0] || $('#billingAddress #billingLine2')[0];\n\n // Before submit the onboarding request, we need to make sure billing address country code is user selected country\n _this4.onboard.billing_address.country = _index.$locale.country;\n\n if (!billingCity) {\n delete _this4.onboard.billing_address.city;\n }\n\n if (!billingState) {\n delete _this4.onboard.billing_address.state;\n }\n\n if (!billingZip) {\n delete _this4.onboard.billing_address.postal_code;\n }\n\n if (!billingLine1) {\n delete _this4.onboard.billing_address.line1;\n }\n\n if (!billingLine2) {\n delete _this4.onboard.billing_address.line2;\n }\n\n // skip populating shipping address fields for india whitelisted Merchants.\n if (_this4.flags.shipToBilling && !_this4.flags.whiteListedIndiaMerchant) {\n _this4.onboard.shipping_address = _index2.$ShippingAddressModel.create(_this4.token, _this4.onboard.billing_address, {\n first_name: _this4.onboard.user.first_name,\n last_name: _this4.onboard.user.last_name\n });\n } else {\n _this4.onboard.shipping_address.first_name = _this4.onboard.shipping_address.first_name || _this4.onboard.user.first_name;\n _this4.onboard.shipping_address.last_name = _this4.onboard.shipping_address.last_name || _this4.onboard.user.last_name;\n\n if (!shippingState) {\n delete _this4.onboard.shipping_address.state;\n }\n\n if (!shippingCity) {\n delete _this4.onboard.shipping_address.city;\n }\n\n if (!shippingZip) {\n delete _this4.onboard.shipping_address.postal_code;\n }\n\n // Shipping / Billing Address Difference Detection\n _this4.addrDiffDetected = compareShippingBillingAddrs(_this4.onboard.shipping_address, _this4.onboard.billing_address);\n if (_this4.addrDiffDetected) {\n var addrDiff = {\n is_ship_addr_diff: 1,\n page: 'main:ec:hermes::fullpage-billing:guest:hermes:'\n };\n\n _angular.$rootScope.$broadcast('addrDiff', addrDiff);\n }\n }\n };\n\n // This function just logs 'Non-DE' IBAN when user submits the form.\n this.logNonDEIBAN = function (iban_value) {\n if (iban_value && iban_value.slice(0, 2) !== 'DE') {\n _logger.$logger.info('non_DE_IBAN_number_submitted_' + iban_value);\n }\n };\n\n // Case insensitively compare all string properties of shipping and billing address to detect difference.\n // This method is designed to work with any country with any set of address input fields.\n var compareShippingBillingAddrs = function compareShippingBillingAddrs(shipping_addr, billing_addr) {\n var diffDetected = false;\n\n for (var prop in shipping_addr) {\n if (shipping_addr.hasOwnProperty(prop) && billing_addr.hasOwnProperty(prop)) {\n if (angular.isString(shipping_addr[prop]) && angular.isString(billing_addr[prop])) {\n if (shipping_addr[prop].toUpperCase() !== billing_addr[prop].toUpperCase()) {\n // Special handling for postal code\n if (prop === 'postal_code') {\n diffDetected = checkZip(shipping_addr[prop], billing_addr[prop]);\n } else {\n diffDetected = true;\n }\n }\n }\n }\n }\n\n // Special case zip check to ignore differences in zipcode format\n function checkZip(zip1, zip2) {\n var longerZip = zip1.length > zip2.length ? zip1 : zip2;\n var shorterZip = longerZip === zip1 ? zip2 : zip1;\n\n if (longerZip.indexOf(shorterZip) > -1) {\n return false;\n }\n return true;\n }\n\n return diffDetected;\n };\n\n var enableSnT = function enableSnT() {\n if (_this4.flags.wps_SnT_flow && !_this4.flags.allowSnTCall) {\n // SnT should be allowed if there is an contingency during OnBoard.\n _this4.flags.allowSnTCall = true;\n }\n };\n\n var handleAllLoadedForSnT = _angular.$rootScope.$on('allLoaded', enableSnT);\n\n this.$on('$destroy', handleAllLoadedForSnT);\n\n var routeToHermesOn3DSDeclineForSignUp = function routeToHermesOn3DSDeclineForSignUp() {\n // dispatch to hermesnodeweb up on 3DS authenticate decline.\n _logger.$logger.info('xoon_to_hermes_redirect_on_signup_3DS_Authentication_decline');\n (0, _squid.$dispatch)('hermes', {\n redirectToHermesOn3DSDecline: 'xoon',\n token: _this4.token,\n 'locale.x': _index.$locale.lang + '_' + _index.$locale.country,\n 'country.x': _index.$locale.country\n });\n };\n\n /**\n * call patchXO API to clear the 3DS contingency and then call authorize API.\n */\n var clear3DSContingency = function clear3DSContingency() {\n var checkoutSession = _index2.$CheckoutSessionModel.instance(_this4.token);\n\n return checkoutSession.action('clear3DSContingency', {\n data: {\n ccId: checkoutSession.resolve_3ds.ccId\n },\n success: function success() {\n // don't call authorize if the contingency is not cleared\n if (!checkoutSession.resolve_3ds) {\n _logger.$logger.info('Initiate_setStickyFI_call_and_authorize_call_after_resolve_3ds');\n return setStickyFIAndAuthorize();\n } else {\n _this4.errorMessage = {\n msgs: errorHandlerHelper.get3dsPageWarning(checkoutSession.resolve_3ds, 'threeDS.guestDeclineAfter3DSAccept'),\n type: 'warning'\n };\n }\n },\n contingencies: {\n // contingency may be \"no cc\" or any thing from clear3DSContingency(patch on xosession)\n // for \"no cc\" symphony throws NEED_CREDIT_CARD or NEED_CREDIT_CARD_OR_BANK_ACCOUNT\n DEFAULT: function DEFAULT(name, contingency) {\n _logger.$logger.info('clear3DSContingency_contingency', {\n int_error_description: contingency && contingency.message,\n contingency_name: name\n });\n\n if (_this4.flags.mode === 'signup') {\n // route to member review page upon patch xo throws contingency for signup\n routeToHermesOn3DSDeclineForSignUp();\n } else {\n _this4.errorMessage = {\n msgs: errorHandlerHelper.get3dsPageWarning(checkoutSession.resolve_3ds, 'threeDS.guestDeclineAfter3DSAccept'),\n type: 'warning'\n };\n }\n }\n }\n });\n };\n\n this.onComplete3DSHandler = function (status) {\n _this4.launch3DSResolver = false;\n var checkoutSession = _index2.$CheckoutSessionModel.instance(_this4.token);\n\n if (status === 'decline') {\n // Flow should route to member review page for sign up case\n // up on receiving \"decline\" response from 3DS authenticate call\n if (_this4.flags.mode === 'signup') {\n routeToHermesOn3DSDeclineForSignUp();\n } else {\n // guest case\n _this4.errorMessage = {\n msgs: errorHandlerHelper.get3dsPageWarning(checkoutSession.resolve_3ds, 'threeDS.guestDecline'),\n type: 'warning'\n };\n }\n } else if (status === 'close') {\n // Closing the 3DS page should route the flow to member review for sign up case\n // because the member account is created already.\n // Guest remains in the Billing page, no re-direction.\n if (_this4.flags.mode === 'signup') {\n routeToHermesOn3DSDeclineForSignUp();\n }\n } else if (status === 'success') {\n // Up on Successful authenticate, perform Patch on XO session and authorise.\n clear3DSContingency();\n }\n };\n\n // Added a function to set SepaOverlay flag based on pxp call\n var setSepaOverlayFlag = function setSepaOverlayFlag() {\n var sepaOverlayPXP = _this4.sepaExperiment.sepaOverlay && _this4.sepaExperiment.sepaOverlay.treatment_name === 'XO_XOONBOARDING_SEPA_OVERLAY_TEST';\n\n if (sepaOverlayPXP) {\n _logger.$logger.info('checkout_fpti', { is_sepaOverlay: 1 });\n\n _this4.flags.show_sepa_overlay = true;\n } else {\n _logger.$logger.info('checkout_fpti', { is_sepaOverlay: 0 });\n _this4.flags.show_sepa_overlay = false;\n }\n };\n\n setSepaOverlayFlag();\n\n _logger.$logger.info('sepa_overlay', {\n type: this.onboard.fiMode,\n sepa_overlay: this.flags.show_sepa_overlay,\n lang: _index.$locale.lang,\n unbrandedFlag: this.isUnbranded\n });\n\n // will be called upon change in flags.mode and flags.poma_flow - opt-in or opt-out\n // and when pre-plan currency conversion API returns conversion data\n var setSubmitButtonText = function setSubmitButtonText() {\n var isSubscription = _this4.models.checkoutAppData.is_wps_subscription_flow() || _this4.models.checkoutCart.isSubscriptionsV1();\n\n _this4.submitButtonText = (0, _pageProps.submitButtonTextKey)(_this4.flags, _this4.showNewSignupComplianceExp, _this4.flags.hasBuyerFxPrePlanData, isSubscription);\n };\n\n this.$watch('flags.mode', setSubmitButtonText);\n this.$watch('flags.poma_flow', setSubmitButtonText);\n this.$watch('onboard.card.currencyConvData', function () {\n _this4.getSelectedCurrencyCode(_this4.onboard.card.ppconversion);\n setSubmitButtonText();\n });\n\n this.openAndContinueSepaOverlay = function () {\n if (_this4.flags.show_sepa_overlay && !_this4.sepa.sepaGuestAgree) {\n _this4.sepa.show = true;\n return true;\n } else {\n return false;\n }\n };\n\n // If its invoicing flow with Remittance transfer rule (RTR), then a dislaimer content has to be shown to the payer.\n // It applies for US payers paying non US merchants of greater than $15 USD or equivalent.\n var handleInvoicingRegE = function handleInvoicingRegE(currConvData) {\n var isInvoicingFlow = _this4.models.checkoutAppData.get('flags.is_invoice_flow') === true;\n\n if (isInvoicingFlow) {\n var merchantCountry = _this4.models.checkoutAppData.get('merchant.merchant_country');\n var payerCountry = _this4.locale.country;\n\n var isRTRAmount = void 0;\n\n if (currConvData) {\n var _currConvData$payment = currConvData.payment_amt;\n _currConvData$payment = _currConvData$payment === undefined ? {} : _currConvData$payment;\n var value = _currConvData$payment.value,\n currency_code = _currConvData$payment.currency_code;\n\n\n if (value && currency_code) {\n isRTRAmount = Number(value) > _constants.RTR_AMOUNT;\n _this4.amountInPayerCurrency = (0, _squid.formatCurrency)(value, currency_code);\n _this4.hasCurrConversion = true;\n }\n } else {\n _this4.hasCurrConversion = false;\n\n var _ref3 = _this4.models.checkoutCart.get('purchase.amounts.total') || {},\n amount = _ref3.amount,\n _currency_code = _ref3.currency_code;\n\n isRTRAmount = Number(amount) > _constants.RTR_AMOUNT && _currency_code === 'USD';\n }\n\n _this4.showInvoicingRegEMsg = isRTRAmount && merchantCountry !== 'US' && payerCountry === 'US';\n\n var _ref4 = _this4.models.checkoutCart.get('purchase.amounts.total') || {},\n amount_formatted_currency = _ref4.amount_formatted_currency;\n\n _this4.amountInInvCurrency = amount_formatted_currency;\n\n // We need merchantDisplayName to be non empty and if merchant_name or brand_name is undefined\n // then we need the value of merchantDisplayName to be 'the merchant' as it is the middle of sentence\n // in content keys used in template\n _this4.nonEmptyMerchantDisplayName = _this4.models.checkoutAppData.getMerchantDisplayName({\n nonEmptyReturnValue: true\n });\n }\n };\n\n var setInvoicingRegEDetails = function setInvoicingRegEDetails(cardType) {\n if (cardType !== undefined && cardType !== 'VISA') {\n handleInvoicingRegE();\n } else {\n _this4.showInvoicingRegEMsg = false;\n }\n };\n\n this.$watch('onboard.card.type', setInvoicingRegEDetails);\n\n var setInvoicingRegEDetailsWithConversion = function setInvoicingRegEDetailsWithConversion(currConvData) {\n if (currConvData !== undefined) {\n handleInvoicingRegE(currConvData);\n } else {\n _this4.showInvoicingRegEMsg = false;\n }\n };\n\n this.$watch('onboard.card.currencyConvData', setInvoicingRegEDetailsWithConversion);\n\n var initPaymentRequest = function initPaymentRequest(PaymentRequest) {\n var networks = ['amex', 'diners', 'discover', 'jcb', 'mastercard', 'unionpay', 'visa', 'mir'];\n var types = ['debit', 'credit', 'prepaid'];\n // supportedInstruments includes Android Pay and credit cards.\n var supportedInstruments = [{\n supportedMethods: 'basic-card',\n data: {\n supportedNetworks: networks,\n supportedTypes: types\n }\n }];\n var details = {\n total: {\n label: 'Pay with PayPal',\n amount: {\n currency: 'USD',\n value: '10.00'\n }\n }\n };\n var options = {\n requestPayerName: true,\n requestPayerPhone: true,\n requestPayerEmail: true\n };\n\n return new PaymentRequest(supportedInstruments, details, options);\n };\n\n // GPayment Request API to measure impact.\n var logGPayMethods = function logGPayMethods() {\n if (angular.isFunction(window.PaymentRequest)) {\n try {\n var request = initPaymentRequest(window.PaymentRequest);\n if (request.canMakePayment) {\n request.canMakePayment().then(function (result) {\n if (result) {\n _logger.$logger.info('gpayment_api_can_make_payment');\n } else {\n _logger.$logger.info('gpayment_api_cannot_make_payment');\n }\n })['catch'](function (err) {\n _logger.$logger.info('gpayment_api_unhandled_error', err);\n });\n } else {\n _logger.$logger.info('gpayment_api_browser_cannot_make_payment');\n }\n } catch (e) {\n // Could happening due to support for modifiers not being present (< chrome v62)\n _logger.$logger.info('gpayment_api_exception_init_gpay', e);\n }\n } else {\n _logger.$logger.info('gpayment_api_browser_not_supported');\n }\n };\n\n logGPayMethods();\n } // populate\n\n },\n\n actions: {\n toggleFIMode: function toggleFIMode(event, mode) {\n\n var isTesla = this.teslaAddBankEXP ? 'tesla_' : '';\n\n // Log to FPTI with event name and mode.\n\n _logger.$logger.info('checkout_fpti', {\n from: this.mode === 'guest' ? 'GUEST_XO' : 'SIGNUP',\n to: 'prepare_' + isTesla + mode\n });\n\n _logger.$logger.info('FI_TOGGLE_CHANGED_TO', mode);\n\n event.preventDefault();\n this.onboard.fiMode = mode;\n },\n goBack: function goBack(event) {\n (0, _squid.$dispatch)('hermes', {\n redirectToHermes: true,\n token: this.token\n });\n },\n\n\n // Enable user to edit shipping address\n editShippingAddress: function editShippingAddress() {\n this.flags.showSingleAddress = false;\n this.flags.allowEditShipping = true;\n this.flags.disallowShipToBilling = true;\n this.flags.shipToBilling = false;\n this.flags.hideShippingAddress = false;\n _angular.$rootScope.$emit('change_in_shipping_address');\n },\n logWebviewBackButtonClick: function logWebviewBackButtonClick() {\n if (this.flags.backButtonWebview) {\n _logger.$logger.info('BACK_BUTTON_FOR_WEBVIEW_CLICKED');\n }\n },\n updatePageLevelErrorMessage: function updatePageLevelErrorMessage() {\n var msgs = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'error';\n\n this.errorMessage = { msgs: msgs, type: type };\n },\n onSubmit: function onSubmit() {\n // Remove backendError class upon submit on all fields\n // This is necessary to clear backend error on fields like first name\n // and last name, that is not having frontend validation\n $(this.sectionElement + ' .backendError').removeAttr('aria-invalid').removeClass('backendError');\n\n // Added logging for non-DE IBAN numbers: US1022248\n this.logNonDEIBAN($(this.sectionElement + ' #ibanNumber').val());\n\n // Added a condition check for pxp experimentation for Sepa Overlay US755520\n if (this.openAndContinueSepaOverlay()) {\n return;\n }\n\n if (this.isInstantUpdateFlow) {\n var currentShippingAddress = this.flags.shipToBilling ? this.onboard.billing_address : this.onboard.shipping_address;\n\n if ((0, _util2.hasAddressChanged)(this.trackSntReq.address, currentShippingAddress)) {\n _logger.$logger.info('address_changed_trigger_snt');\n _angular.$rootScope.$emit('submission_triggered');\n return;\n }\n if (!this.flags.instantUpdateShippingRegionSupported) {\n _logger.$logger.info(this.flags.mode + '_submit_not_allowed_instant_update_shipping_region_unsupported');\n return;\n }\n }\n\n if (this.flags.wps_SnT_flow || this.isInstantUpdateFlow) {\n /**\n * During submit , if SnT is triggered , do not allow Pay .\n */\n if (!this.flags.allowPayWithSnT) {\n _logger.$logger.info(this.flags.mode + '_submit_not_allowed_without_SnT_completion');\n return;\n }\n // Any SnT Call triggered when xoon updates the address for checkout should not be allowed.\n this.flags.allowSnTCall = false;\n }\n\n _logger.$logger.info(this.flags.mode + '_submit', {\n type: this.onboard.fiMode === 'bank' ? 'BANK' : this.onboard.card.type,\n country: _index.$locale.country,\n lang: _index.$locale.lang\n }).flush();\n\n if (this.flags.nationalIdFlag) {\n this.onboard.nationalIdModel = _directive.$NationalIdModel.instance(_angular.$rootScope.token);\n }\n\n if (this.flags.mode !== 'signup') {\n delete this.onboard.user.password;\n }\n\n this.updateAddressOnSubmit();\n this.updatePhoneOnSubmit();\n\n if (this.needOTPForAddCard && this.flags.cupDetected && !this.flags.upopDetected) {\n this.flags.allowSnTCall = true;\n // CUP Secure card is not supported in our flow\n return this.handleFIContingencies({}, 'creditcard');\n }\n\n var merchantPassedShipping = this.models.checkoutCart.get('purchase.shipping_address') || this.models.checkoutCart.get('billing.shipping_address');\n\n _logger.$logger.info('address_normalization', {\n from: 'checkout_guest',\n to: 'prepare_address_normalization',\n shipping_cnty: this.onboard.shipping_address.country,\n is_ship_addr_diff: this.addrDiffDetected,\n is_billing_present: this.models.checkoutCart.billing_address ? true : false,\n is_shipping_present: merchantPassedShipping ? true : false\n });\n\n if ((0, _index.$feature)('addressNormalization')) {\n this.showAddressNormalizationLightbox = true;\n } else {\n // Making sure incontext shipping methods are populated\n if (this.shippingOptionsFeature.hasShippingOptions() && !this.shippingOptionsFeature.selectedShippingOption) {\n this.errorMessage = {\n type: 'error',\n msgKeys: ['shipping.bopisErrorMessage']\n };\n\n return;\n }\n\n return this.onBoardAccount();\n }\n },\n positionToErrorField: function positionToErrorField() {\n var _this5 = this;\n\n var errorFields = $('.backendError:visible, input:visible.ng-invalid, select:visible.ng-invalid');\n var firstErrorField = errorFields && errorFields.length && errorFields[0];\n\n // Sets the styling for validation on singlePagePaymentForm\n this.validated = true;\n\n // AB testing - fixes the revious bug of marking the email and password\n // as required when the user selects the 'yes' button for the first time\n this.flags.ignoreValidationTheFirstTime = false;\n\n if (firstErrorField) {\n firstErrorField.focus();\n } else {\n errorHandlerHelper.scrollToElement();\n }\n\n $('.backendError:visible').on('blur', function (event) {\n $(_this5).removeClass('backendError');\n });\n\n if ($('#installments').length) {\n $('#paymentMethod').addClass('ng-invalid');\n } else {\n $('#paymentMethod').removeClass('ng-invalid');\n }\n\n return true;\n }\n }\n});\n\n\n_angular.$q;\n\n_angular.$rootScope;\n\n_ul.$ul;\n\n_squid.$contentVersion;\n\n_squid.$experiment;\n\n_squid.$promise;\n\n_squid.$renderContent;\n\n_squid.$pxp;\n\n_squid.$dispatch;\n\n_squid.$meta;\n\n_squid.formatCurrency;\n\n_squid.$elmo;\n\n_index.$Component;\n\n_index.$FallbackError;\n\n_index.$config;\n\n_index.$feature;\n\n_index.$locale;\n\n_index.$util;\n\n_index2.$CheckoutSessionModel;\n\n_index2.$FundingOptionsModel;\n\n_index2.$CheckoutAppDataModel;\n\n_index2.$CheckoutPayeeModel;\n\n_index2.$CheckoutCartModel;\n\n_index2.$ShippingAddressModel;\n\n_index2.$InstallmentOptionsModel;\n\n_index3.$CheckoutInputDataModel;\n\n_index4.$ShoppingCartModel;\n\n_index5.$ShippingRuleSummaryModel;\n\n_index6.$InventoryModel;\n\n_index7.$OnboardModel;\n\n_index7.$OnboardUserModel;\n\n_index7.$OnboardPhoneModel;\n\n_index8.$BankModel;\n\n_index8.$CardModel;\n\n_index8.$BillingAddressModel;\n\n_fiApis.$fiApis;\n\n_index9.$AuthModel;\n\n_logger.$logger;\n\n_uiRouter.$state;\n\n_index10.$DeviceInfo;\n\n_index11.$fireMORSBeacon;\n\n_directive.$NationalIdModel;\n\n_util.$fiErrorUtil;\n\n_sticky.setStickyInstrument;\n\n_util2.hasAddressChanged;\n\n_util2.hasDialingCodeOverride;\n\n_util2.redirectToSubscriptionFinalRoute;\n\n_shippingChangeFeature.createShippingChangeFeature;\n\n_pageProps.upopConfirmButtonTextKey;\n\n_pageProps.submitButtonTextKey;\n\n_pageProps.accountExistsOptionalCheck;\n\n_pageProps.getFItoggleContentKeys;\n\n_util3.authflowRedirect;\n\n_util3.sanitizeStateFields;\n\n_constants.RTR_AMOUNT;\n\n_index12.$MerchantPreferenceModel;\n\n_utils.logBuyerFxFpti;\n\n_xoShippingOptions.$xoShippingOptions; // eslint-disable-line no-unused-vars;\n\n_shippingOptionsFeature.buildShippingOptionsFeature;\nmodule.exports = exports['default'];\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/jquery/dist/jquery.min.js\")))\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest/emailInput/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/directionality/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/error-tooltip/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-validation/dist/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-guest-components/src/guest/emailInput/styles.less\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-guest-components/src/guest/emailInput/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _squid.$Component.extend('xoEmailInput', {\n tag: 'xo-email-input',\n template: _template2['default'],\n props: {\n user: {\n type: 'var',\n required: false\n },\n disabled: {\n type: 'var',\n required: false\n },\n hideHelper: {\n type: 'var', // flow: Optional string, if \"signup\" then use the Signup tooltip\n required: false\n },\n flags: {\n type: 'var',\n required: false\n }\n },\n lifecycle: {\n enter: function enter() {\n var _this = this;\n\n this.flags = this.flags ? this.flags : {};\n var setEmailToolTip = function setEmailToolTip() {\n _this.emailToolTip = _this.flags.mode === 'signup' ? 'common.emailHelper' : 'common.emailTooltipGuest';\n };\n\n this.$watch('flags.mode', setEmailToolTip);\n }\n }\n});\n\n\n_squid.$Component;\nmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest/emailInput/styles.less\":\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest/emailInput/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n \\n
\\n \\n
\\n \\n \\n
\\n \\n \\n
\\n
\\n
\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest/lib/errorHandlerHelper.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function($) {\n\nexports.__esModule = true;\nexports.getErrorType = exports.errorHandler = exports.addFieldError = exports.get3dsPageWarning = exports.getPageError = exports.scrollToElement = undefined;\n\nvar _errorHandlerConstants = __webpack_require__(\"../node_modules/xo-guest-components/src/guest/constants/errorHandlerConstants.js\");\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\nvar SECTION_ELEMENT = '#singlePagePayment';\n\nvar scrollToElement = function scrollToElement(fieldName) {\n var element = $('[name=' + fieldName + ']');\n var notifications = $('#notifications');\n var logo = $('#paypalLogo');\n\n if (element.length) {\n element.focus();\n } else {\n var focusDiv = notifications.length ? notifications : logo;\n\n // Focus notifications div or logo div\n // This triggers scroll to notifications or logo from\n // hideSpinner() function\n focusDiv.attr('tabindex', '-1').focus();\n }\n};\n\nvar getPageError = function getPageError(contentKey, compileMessageWith) {\n var messages = [];\n var msg = void 0;\n\n if (compileMessageWith) {\n msg = (0, _squid.$renderContent)(contentKey, compileMessageWith);\n } else {\n msg = _squid.$locale.content.get(contentKey);\n }\n\n messages.push(msg);\n\n scrollToElement();\n\n return messages;\n};\n\nvar get3dsPageWarning = function get3dsPageWarning(resolve3DS, contentKey) {\n var messages = [];\n var cardType = resolve3DS.type;\n var cardLast4 = resolve3DS.number;\n\n messages.push((0, _squid.$renderContent)(contentKey, { cardType: cardType, last4: cardLast4 }));\n scrollToElement();\n return messages;\n};\n\nvar addFieldError = function addFieldError(errorData) {\n var sectionElement = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : SECTION_ELEMENT;\n\n (errorData.fields || []).forEach(function (field) {\n var $field = $(sectionElement).find('[ng-model=\"' + field + '\"]');\n\n $field.addClass('backendError');\n });\n};\n\nvar getErrorType = function getErrorType(errorCode, mode, treatment) {\n if (errorCode === 'ACCOUNT_ALREADY_EXISTS' && mode !== 'signup' && treatment) {\n return 'info';\n }\n\n return 'error';\n};\n\n/**\n * Highlight the Error Fields by ng-model\n * @param errorData\n * @param element\n * @param modelPrefix\n */\nvar addFieldErrors = function addFieldErrors(errorData, element, modelPrefix) {\n\n if (errorData.fields && errorData.fields.length) {\n errorData.fields.forEach(function (field) {\n var $field = $(element).find('[ng-model=\"' + (modelPrefix ? modelPrefix : '') + field.field + '\"]');\n\n $field.addClass('backendError');\n $field.attr('aria-invalid', true);\n });\n }\n\n $(element).find('.backendError:first').focus();\n};\n\n/**\n * Highlight the Error Fields by element name\n * @param errorData\n * @param element\n * @param modelPrefix\n */\nvar addFieldErrorsByName = function addFieldErrorsByName(errorData, element, modelPrefix) {\n\n if (errorData.fields && errorData.fields.length) {\n errorData.fields.forEach(function (field) {\n var fieldName = void 0;\n\n if (modelPrefix && field.field && field.field.length > 0) {\n // Add prefix with CamelCase of field name\n fieldName = modelPrefix + field.field[0].toUpperCase() + field.field.substring(1);\n } else {\n fieldName = field.field;\n }\n var $field = $(element).find('[name=\"' + fieldName + '\"]');\n\n $field.addClass('backendError');\n $field.attr('aria-invalid', true);\n });\n }\n\n $(element).find('.backendError:first').focus();\n};\n\nvar errorHandler = function errorHandler(message, errorData, positionToErrorField, mode) {\n var sectionElement = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : SECTION_ELEMENT;\n\n var messages = [];\n var prefix = mode === 'guest' ? 'guest' : '';\n\n // TODO: this block does same thing as next block, need to depricate this\n // Next block has better features and stable on live\n if (errorData && errorData.message === 'VALIDATION_ERROR') {\n angular.forEach(errorData.errorCodes, function (errCode) {\n\n var validationPageError = _errorHandlerConstants.validationErrorMap[errCode];\n\n if (validationPageError) {\n messages = getPageError(validationPageError.contentKey);\n _logger.$logger.info('HANDLED_VALIDATION_ERROR', errCode);\n } else {\n // There are multiple services that can throw generic VALIDATION_ERROR.\n // We have chosen to use genericError for the time being since we can't pinpoint the error class.\n messages = getPageError('genericError.genericError');\n _logger.$logger.info('UNHANDLED_VALIDATION_ERROR', errCode);\n }\n });\n }\n\n var scrollToTop = false;\n\n angular.forEach(errorData, function (err) {\n\n // TODO: need to break if case nesting\n if (err) {\n var errElMap = _errorHandlerConstants.errorElementMap[err] || _errorHandlerConstants.errorElementMap[err.errorCode] || _errorHandlerConstants.errorElementMap[err.code];\n\n if (errElMap) {\n var element = sectionElement + (errElMap.element ? ' ' + errElMap.element : '');\n\n if (errElMap.name) {\n // Highlight the Error Fields by name\n addFieldErrorsByName(errElMap.fields && errElMap || err.details || err, element, errElMap.name);\n } else {\n // Highlight the Error Fields by ng-model\n addFieldErrors(errElMap.fields && errElMap || err.details || err, element, errElMap.model);\n }\n\n if (errElMap.pageError) {\n // If guest specific content key (guestcontentKey) is not found, then pickup generic content key\n var contentKey = errElMap.pageError[prefix + 'contentKey'] || errElMap.pageError.contentKey;\n\n messages = getPageError(contentKey, errElMap.compileMessageWith);\n scrollToTop = errElMap.scrollToTop ? true : false;\n }\n } else {\n addFieldError(err);\n }\n }\n });\n\n if (!scrollToTop) {\n positionToErrorField();\n }\n\n return messages;\n};\n\nexports.scrollToElement = scrollToElement;\nexports.getPageError = getPageError;\nexports.get3dsPageWarning = get3dsPageWarning;\nexports.addFieldError = addFieldError;\nexports.errorHandler = errorHandler;\nexports.getErrorType = getErrorType;\n\n\n_errorHandlerConstants.errorElementMap;\n\n_errorHandlerConstants.validationErrorMap;\n\n_squid.$renderContent;\n\n_squid.$locale;\n\n_logger.$logger;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/jquery/dist/jquery.min.js\")))\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest/lib/pageProps.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.getFItoggleContentKeys = exports.accountExistsOptionalCheck = exports.submitButtonTextKey = exports.upopConfirmButtonTextKey = undefined;\n\nvar _constants = __webpack_require__(\"../node_modules/xo-guest-components/src/guest/constants/constants.js\");\n\nvar _constants2 = __webpack_require__(\"../node_modules/xo-guest-components/src/guest/tesla-add-bank/constants.js\");\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar upopConfirmButtonTextKey = function upopConfirmButtonTextKey(flags) {\n if (flags.wpsFlow) {\n return 'confirmUpop.confirmAndContinue';\n } else if (flags.commit) {\n return 'confirmUpop.confirmAndPay';\n }\n\n return 'confirmUpop.confirmAndContinueToMerch';\n};\n\nvar getCommitOrContinueText = function getCommitOrContinueText(flags, mode, showSignupCompliance, hasConversion) {\n var showCurrency = mode === 'guest' && (flags.buyerFxTreatment || '').includes('treatment_2') && hasConversion;\n var commitType = flags.commit ? 'commit' + (showCurrency ? 'InCurrency' : '') : 'notCommit' + (showCurrency ? 'InCurrency' : '');\n var group = showSignupCompliance ? 'US' : 'ROW';\n\n return _constants.SUBMIT_BUTTON_TEXT_KEY_MAP[mode][group][commitType];\n};\n\nvar submitButtonTextKey = function submitButtonTextKey(flags, showSignupCompliance, hasConversion, isSubscription) {\n var mode = flags.mode === 'signup' ? 'signup' : 'guest';\n\n if (flags.show_poma_ui) {\n mode = flags.poma_flow ? 'pomaSignup' : 'guest';\n }\n\n return mode === 'signup' && flags.commit && isSubscription ? _constants.SUBSCRIPTION_SUBMIT_BUTTON_KEY : getCommitOrContinueText(flags, mode, showSignupCompliance, hasConversion);\n};\n\nvar accountExistsOptionalCheck = function accountExistsOptionalCheck() {\n var mode = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'guest';\n var isPOMA = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n\n angular.element('#email').removeClass('backendError');\n\n if (mode === 'guest' && !isPOMA) {\n // Optional signup only!\n (0, _angular.$timeout)(function () {\n // Angular.element causes digest cycle error. Hence switching to document.querySelector.\n document.querySelector('#guestSignup2').click();\n }, 0);\n } else if (isPOMA) {\n // POMA flow\n (0, _angular.$timeout)(function () {\n angular.element('#saveMyInfo').click();\n }, 0);\n }\n};\n\n// Returns keys depending on the specific flow. (e.g, Tesla add bank)\nvar getFItoggleContentKeys = function getFItoggleContentKeys(teslaAddBank, teslaFIDefault) {\n\n if (!teslaAddBank) {\n return _constants2.DEFAULT_TOGGLE_FI;\n }\n\n // Treatment A - 'bank' selected as default.\n if (teslaAddBank && teslaFIDefault === 'bank') {\n return _constants2.TESLA_TOGGLE_FI_BANK;\n }\n\n // Treatment B - 'card' selected as default.\n return _constants2.TESLA_TOGGLE_FI_CARD;\n};\n\nexports.upopConfirmButtonTextKey = upopConfirmButtonTextKey;\nexports.submitButtonTextKey = submitButtonTextKey;\nexports.accountExistsOptionalCheck = accountExistsOptionalCheck;\nexports.getFItoggleContentKeys = getFItoggleContentKeys;\n\n\n_constants.SUBMIT_BUTTON_TEXT_KEY_MAP;\n\n_constants.SUBSCRIPTION_SUBMIT_BUTTON_KEY;\n\n_constants2.DEFAULT_TOGGLE_FI;\n\n_constants2.TESLA_TOGGLE_FI_BANK;\n\n_constants2.TESLA_TOGGLE_FI_CARD;\n\n_angular.$timeout;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest/lib/shippingChangeFeature.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.createShippingChangeFeature = undefined;\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _uiRouter = __webpack_require__(\"../node_modules/angular-ui-router/release/angular-ui-router.min.js\");\n\nvar _index = __webpack_require__(\"../node_modules/xo-models/src/checkout/index.js\");\n\nvar _factory = __webpack_require__(\"../node_modules/xo-shipping-change/src/factory.js\");\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\nvar promiseNoop = function promiseNoop() {\n return (0, _squid.$promise)();\n};\n\nvar createShippingChangeFeature = exports.createShippingChangeFeature = function createShippingChangeFeature(_ref) {\n var orderID = _ref.orderID,\n checkoutCart = _ref.checkoutCart,\n checkoutAppData = _ref.checkoutAppData,\n flags = _ref.flags,\n _ref$callback = _ref.callback,\n callback = _ref$callback === undefined ? promiseNoop : _ref$callback;\n\n var feature = {\n message: '',\n showForm: false,\n interstitialResolver: null,\n\n showCartChanged: function showCartChanged() {},\n showOrResolveInterstitial: function showOrResolveInterstitial() {},\n handleOnShippingChange: function handleOnShippingChange() {}\n };\n\n feature.showCartChanged = function () {\n flags.showCartChanged = true;\n };\n\n feature.showOrResolveInterstitial = function (cartHasChanged, rejected) {\n\n if (rejected) {\n feature.message = (0, _squid.$renderContent)('shippingMethod.shippingRegionUnsupported', {\n merchant: checkoutAppData.getMerchantDisplayName()\n });\n feature.showForm = true;\n\n return callback().then(function () {\n return feature.showCartChanged();\n });\n }\n\n if (cartHasChanged) {\n feature.message = (0, _squid.$renderContent)('shippingCallback.updated', {\n amount: checkoutCart.get('purchase.amounts.total.amount_formatted_currency')\n });\n feature.showForm = false;\n\n return callback().then(function () {\n return feature.showCartChanged();\n });\n }\n\n feature.interstitialResolver();\n };\n\n feature.handleOnShippingChange = function () {\n\n if (!window.xprops || !window.xprops.onShippingChange) {\n return (0, _squid.$promise)();\n }\n\n var loadingMsg = _squid.$locale.content.get('shippingCallback.loading');\n\n _squid.$event.emit('loading');\n _squid.$event.emit('loadingMessage', loadingMsg);\n\n flags.showCartChanged = false;\n\n var checkoutSession = _index.$CheckoutSessionModel.instance(orderID);\n var shippingChangeFactory = (0, _factory.$ShippingChangeFactory)({\n orderID: orderID,\n checkoutAppData: checkoutAppData,\n checkoutCart: checkoutCart\n });\n\n return shippingChangeFactory.getPayload(checkoutSession.get('shipping')).then(function (payload) {\n _logger.$logger.info('shipping_change_payload_recieved', payload);\n return shippingChangeFactory.callOnShippingChange(payload);\n }).then(function (_ref2) {\n var cartHasChanged = _ref2.cartHasChanged,\n rejected = _ref2.rejected;\n\n _logger.$logger.info('shipping_change_called', { cartHasChanged: cartHasChanged, rejected: rejected });\n\n _squid.$event.emit('loaded');\n\n /**\n * There's currently a pending promise that's\n * waiting on a successful response from the interstitial\n * in order to continue.\n */\n if (feature.interstitialResolver) {\n return feature.showOrResolveInterstitial(cartHasChanged, rejected);\n }\n\n return _squid.$promise.resolver(function (resolve) {\n feature.interstitialResolver = resolve;\n return feature.showOrResolveInterstitial(cartHasChanged, rejected);\n });\n })['catch'](function (err) {\n _squid.$event.emit('loaded');\n _logger.$logger.error('shipping_change_error', err);\n\n return _uiRouter.$state.go('checkout.genericError', { code: 'DEFAULT' });\n });\n };\n\n return feature;\n};\n\n_squid.$promise;\n\n_squid.$renderContent;\n\n_squid.$locale;\n\n_squid.$event;\n\n_uiRouter.$state;\n\n_index.$CheckoutSessionModel;\n\n_factory.$ShippingChangeFactory;\n\n_logger.$logger;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest/lib/shippingOptionsFeature.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.buildShippingOptionsFeature = undefined;\n\nvar _index = __webpack_require__(\"../node_modules/xo-models/src/checkout/index.js\");\n\nvar _xoShippingOptions = __webpack_require__(\"../node_modules/xo-shipping-options/src/index.js\");\n\nvar buildShippingOptionsFeature = exports.buildShippingOptionsFeature = function buildShippingOptionsFeature(token) {\n var checkoutCart = _index.$CheckoutCartModel.instance(token);\n\n var selectOption = function selectOption(option) {\n if (!option) {\n return;\n }\n\n return (0, _xoShippingOptions.selectShippingOption)(token, option).then(function () {\n checkoutCart.invalidate();\n\n checkoutCart.api.cache = false;\n return checkoutCart.reload().then(function () {\n return option;\n });\n });\n };\n\n var checkForOptions = function checkForOptions() {\n var shippingOptions = [];\n var selectedShippingOption = null;\n\n return (0, _xoShippingOptions.getShippingOptions)(token).then(function (options) {\n shippingOptions = options;\n }).then(function () {\n return (0, _xoShippingOptions.getSelectedShippingOption)(token);\n }).then(function (selectedOption) {\n selectedShippingOption = selectedOption;\n }).then(function () {\n return { options: shippingOptions, selectedOption: selectedShippingOption };\n });\n };\n\n var feature = {\n shippingOptions: [],\n selectedShippingOption: null,\n\n hasShippingOptions: function hasShippingOptions() {\n return Boolean(feature.shippingOptions && feature.shippingOptions.length);\n },\n\n selectShippingOption: function selectShippingOption(option, userSelected) {\n return selectOption(option, userSelected).then(function (shippingOption) {\n feature.selectedShippingOption = shippingOption;\n });\n },\n\n checkForShippingOptions: function checkForShippingOptions() {\n return checkForOptions().then(function (_ref) {\n var options = _ref.options,\n selectedOption = _ref.selectedOption;\n\n feature.shippingOptions = options;\n feature.selectedShippingOption = selectedOption;\n });\n }\n };\n\n feature.checkForShippingOptions();\n\n return feature;\n};\n\n_index.$CheckoutCartModel;\n\n_xoShippingOptions.getShippingOptions;\n\n_xoShippingOptions.selectShippingOption;\n\n_xoShippingOptions.getSelectedShippingOption;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest/lib/util.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.sanitizeStateFields = exports.authflowRedirect = undefined;\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar authflowRedirect = function authflowRedirect(_ref) {\n var isCheckAuthflowRedirectParam = _ref.isCheckAuthflowRedirectParam,\n country = _ref.country;\n\n if (isCheckAuthflowRedirectParam) {\n return (0, _squid.$elmo)('xo_xoon_account_already_exists', { 'ctx.COUNTRY': country }, 'xo_xoon_account_already_exists_treatment').then(function (result) {\n return Boolean(result);\n });\n }\n return _squid.$promise.resolve(false);\n};\n\n// There are two ways to prefill state related info.\n// NVP and REST integration. For NVP the shippingAddress.state || billingAddress.state is capitalized before landing here\n// REST does not do any capitalization.\n// In order to make prefilling consistent across all integrations, we convert them to uppercase!\nvar sanitizeStateFields = function sanitizeStateFields(shippingAddress, billingAddress) {\n if (shippingAddress && shippingAddress.state) {\n shippingAddress.state = shippingAddress.state.toUpperCase();\n }\n\n if (billingAddress && billingAddress.state) {\n billingAddress.state = billingAddress.state.toUpperCase();\n }\n};\n\nexports.authflowRedirect = authflowRedirect;\nexports.sanitizeStateFields = sanitizeStateFields;\n\n\n_squid.$promise;\n\n_squid.$elmo;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest/nationality/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/error-tooltip/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-guest-components/src/guest/nationality/styles.less\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-guest-components/src/guest/nationality/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _squid.$Component.extend('xoNationality', {\n tag: 'xo-nationality',\n template: _template2['default'],\n props: {\n user: {\n type: 'var',\n required: true\n }\n },\n lifecycle: {\n enter: function enter() {\n var _this = this;\n\n var bindLocalizedCountries = function bindLocalizedCountries() {\n\n var guestBlockedCountries = _squid.$config.guestBlockedCountries || [];\n\n _this.metadata = angular.copy(_squid.$locale.metadata);\n\n _this.countries = _this.metadata.territory.filter(function (c) {\n // don't show the blocked countries in the dropdown\n return !(guestBlockedCountries.indexOf(c.code) > -1);\n });\n };\n\n bindLocalizedCountries();\n this.$on('metadataChange', bindLocalizedCountries);\n }\n }\n});\n\n\n_squid.$Component;\n\n_squid.$locale;\n\n_squid.$config;\nmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest/nationality/styles.less\":\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest/nationality/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n \\n \\n
\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest/onboardOptions/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function($) {\n\nexports.__esModule = true;\n\nvar _index = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _index2 = __webpack_require__(\"../node_modules/xo-models/src/user/index.js\");\n\nvar _index3 = __webpack_require__(\"../node_modules/xo-models/src/subscription/index.js\");\n\nvar _index4 = __webpack_require__(\"../node_modules/xo-models/src/checkout/index.js\");\n\nvar _index5 = __webpack_require__(\"../node_modules/xo-models/src/profilemanagement/index.js\");\n\nvar _index6 = __webpack_require__(\"../node_modules/xo-models/src/frs/index.js\");\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\nvar _uiRouter = __webpack_require__(\"../node_modules/angular-ui-router/release/angular-ui-router.min.js\");\n\nvar _index7 = __webpack_require__(\"../node_modules/xo-device-info/dist/index.js\");\n\nvar _contentKeys = __webpack_require__(\"../node_modules/xo-guest-components/src/lib/contentKeys.js\");\n\nvar _pxpExperimentConstants = __webpack_require__(\"../node_modules/xo-guest-components/src/guest/constants/pxpExperimentConstants.js\");\n\nvar _pxpExperimentConstants2 = _interopRequireDefault(_pxpExperimentConstants);\n\n__webpack_require__(\"../node_modules/xo-guest-components/src/guest/onboardOptions/guest/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-guest-components/src/guest/onboardOptions/signup/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-page-components/src/marketingOffers/directive.js\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-guest-components/src/guest/onboardOptions/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _index.$Component.extend('xoOnboardOptions', {\n tag: 'xo-onboard-options',\n template: _template2['default'],\n\n props: {\n token: {\n type: 'var',\n required: false\n },\n flags: {\n type: 'var',\n required: false\n },\n mode: {\n type: 'var',\n required: false\n },\n onboard: {\n type: 'var',\n required: false\n },\n singlePagePaymentForm: {\n type: 'var',\n required: false\n },\n validated: {\n type: 'var',\n required: false\n },\n sepa: {\n type: 'var',\n required: false\n },\n merchant: {\n type: 'var',\n required: false\n },\n isUnbranded: {\n type: 'var',\n required: false\n }\n },\n\n resolve: {\n models: function models() {\n return {\n checkoutInputData: _index2.$CheckoutInputDataModel.instance(this.token).retrieve(),\n payee: _index4.$CheckoutPayeeModel.instance(this.token).retrieve(),\n checkoutAppData: _index4.$CheckoutAppDataModel.instance(this.token).retrieve(),\n checkoutCart: _index4.$CheckoutCartModel.instance(this.token).retrieve(),\n flowEligibility: _index4.$FlowEligibilityModel.instance(this.token).retrieve()\n };\n },\n subscriptionsV1Model: function subscriptionsV1Model(resolvers) {\n return resolvers.models.then(function (models) {\n if (models.checkoutCart.isSubscriptionsV1()) {\n return _index3.$SubscriptionsV1Model.instance(models.checkoutCart.getBaToken()).retrieve();\n }\n });\n },\n pomaExperiment: function pomaExperiment() {\n if (this.mode === 'guest') {\n return {\n poma: (0, _index.$pxp)('XO_XOONBOARDING_POMA_GLOBAL', { 'ctx.COUNTRY': _index.$locale.country }, '(XO_XOONBOARDING_POMA_GLOBAL_)(.*)')\n };\n }\n },\n populateFlags: function populateFlags(resolvers) {\n var _this = this;\n\n return resolvers.models.then(function (models) {\n // Saving various flow indicators in to flags for future use.\n // These flags can be reused in this file instead of referring it from models always\n var _ref = models.payee || {},\n _ref$merchant = _ref.merchant;\n\n _ref$merchant = _ref$merchant === undefined ? {} : _ref$merchant;\n var id = _ref$merchant.id;\n\n // is_wps_flow indicator in checkoutAppData will be undefined for ebay flows\n // isEbaytxn() will be true only for prox flows.\n\n var flowFLags = {\n isWpsFlow: models.checkoutAppData.is_wps_flow(),\n isEcFlow: !models.checkoutAppData.is_wps_flow() && !models.checkoutInputData.isEbayTxn(),\n isInvoiceFlow: models.checkoutAppData.isInvoiceFlow(),\n isWpsSubscription: models.checkoutAppData.is_wps_subscription_flow(),\n tokenWalletization: models.checkoutCart.isWalletTokenization()\n };\n\n Object.assign(_this.flags, flowFLags);\n _this.flags.flowName = flowFLags.isEcFlow ? 'ec' : 'wps';\n\n return _index5.$MerchantPreferenceModel.instance(id).retrieve().then(function (merchantPreferences) {\n _this.flags.merchantPreferences = merchantPreferences;\n });\n });\n },\n experiments: function experiments() {\n return {\n optionalSignupContent: (0, _index.$pxp)('xoon_optional_signup_content_change', { 'ctx.COUNTRY': _index.$locale.country }, '(xoon_optional_signup_content_change_)(.*)'),\n marketingOfferTitleContentExp: (0, _index.$pxp)('xoon_forced_signup_buyer_protection_content', { 'ctx.COUNTRY': _index.$locale.country }, '(xoon_forced_signup_buyer_protection_content_)(.*)')\n };\n },\n freeReturnShippingExperiments: function freeReturnShippingExperiments(resolvers) {\n var _this2 = this;\n\n return resolvers.populateFlags.then(function () {\n var ecSignupWalletTokenization = _this2.flags.isEcFlow && _this2.mode === 'signup' && _this2.flags.tokenWalletization;\n\n var wpsAutoreturnPdtEnabled = _this2.flags.isWpsFlow && (_this2.flags.merchantPreferences.autoReturn() || _this2.flags.merchantPreferences.pdtEnabled());\n\n // frs content not applicable for prox flows.\n // frs content not applicable for when cart has TOKENIZED_WALLET and mode is signup\n // frs content not applicable for when autoreturns/pdt present in merchant preferences\n // frs content not applicable for split screen experience\n if (!wpsAutoreturnPdtEnabled && !ecSignupWalletTokenization && (_this2.flags.isWpsFlow || _this2.flags.isEcFlow)) {\n var pageName = _pxpExperimentConstants2['default'].test['frsPageName'][_this2.flags.flowName][_this2.mode];\n\n return (0, _index.$pxp)(pageName, { 'ctx.COUNTRY': _index.$locale.country }, pageName + '_(.*)');\n }\n });\n }\n },\n\n lifecycle: {\n enter: function enter() {\n this.locale = _index.$locale;\n },\n populate: function populate() {\n var _this3 = this;\n\n this.contentKeys = {};\n this.frsContentKeys = {};\n\n this.showMarketingOffers = function () {\n return !_this3.flags.allowChoice && !_this3.models.checkoutCart.isWalletTokenization() && !_this3.flags.freeReturnShippingOptInFlowApplicable && !_this3.flags.titleSubtitlePxpTreatment;\n };\n\n var setUnbrandedContent = function setUnbrandedContent() {\n _this3.onboardTitleLine1 = _this3.isUnbranded ? 'common.getBenefitsUnBrandedLine1' : 'common.getBenefitsLine1';\n _this3.subTitle = _this3.isUnbranded ? 'common.createPayPalUnBrandedProp' : 'common.createPayPalProp';\n _this3.paypalSubTitle = _this3.isUnbranded ? 'common.createPayPalUnBrandedSubTitle' : 'common.createPayPalSubTitle';\n _this3.guestSignup1 = _this3.isUnbranded ? 'common.yesCreateUnBrandedAccount' : 'common.yesCreateAccount';\n _this3.guestSignup2 = _this3.isUnbranded ? 'common.nothanksUnBranded' : 'common.nothanks';\n };\n\n setUnbrandedContent();\n\n var contentOpts = {\n $config: _index.$config,\n cart: this.models.checkoutCart,\n appData: this.models.checkoutAppData,\n locale: this.locale,\n subscriptionData: this.subscriptionsV1Model\n };\n\n this.billingAgreementContent = (0, _contentKeys.getBillingAgreementContentInfo)(contentOpts);\n\n /**\n * show WPS interstitial page, if\n * 1. its optional sign up flow and\n * 2. not multistep flow and not DE\n * 3. merchant pref not have pdt or auto return and\n * 4. one touch throttle is not control\n * 5. wps interstitial throttle return treatment experiment\n **/\n var checkWPSInterstitialEligibility = function checkWPSInterstitialEligibility() {\n if (!_this3.flags.isWpsFlow) {\n return;\n }\n\n if (_this3.flags.isWpsSubscription) {\n _logger.$logger.info('wps_interstitial_not_eligible_for_wps_subscription_flow');\n return;\n }\n\n if (_this3.mode === 'signup') {\n _logger.$logger.info('wps_interstitial_not_eligible_force_signup');\n return;\n }\n\n if (_this3.flags.merchantPreferences) {\n var autoReturnEnabled = (0, _index.$feature)('wpsMerchantAutoReturn', false) && _this3.flags.merchantPreferences.autoReturn();\n\n if (autoReturnEnabled) {\n _logger.$logger.info('wps_interstitial_not_eligible_merchant_prefer_auto_return');\n return;\n }\n\n var pdtEnabled = (0, _index.$feature)('wpsMerchantPdt', false) && _this3.flags.merchantPreferences.pdtEnabled();\n\n if (pdtEnabled) {\n _logger.$logger.info('wps_interstitial_not_eligible_merchant_prefer_pdt_enabled');\n return;\n }\n }\n\n _logger.$logger.info('wps_interstitial_pxp_eligible_show_guestonly_and_wps_interstitial');\n _this3.flags.wpsInterstitialEligible = true;\n _this3.mode = 'guestonly';\n };\n\n var setEcPomaFlag = function setEcPomaFlag() {\n var _pomaExperiment$poma = _this3.pomaExperiment.poma;\n _pomaExperiment$poma = _pomaExperiment$poma === undefined ? {} : _pomaExperiment$poma;\n var _pomaExperiment$poma$ = _pomaExperiment$poma.treatment_name,\n treatment_name = _pomaExperiment$poma$ === undefined ? [] : _pomaExperiment$poma$;\n\n\n if (treatment_name.includes('XO_XOONBOARDING_POMA_GLOBAL_TREATMENT')) {\n _logger.$logger.info('checkout_fpti', { is_poma: 1 });\n _this3.flags.wpsInterstitialEligible = false;\n _this3.flags.showPomaUi = true;\n _this3.POMAContentType = treatment_name.includes('TREATMENT_A') ? 'TREATMENT_A' : 'TREATMENT_B';\n }\n };\n\n var setOptionalSignupPromotionContent = function setOptionalSignupPromotionContent() {\n if (_this3.mode !== 'guest') {\n return;\n }\n\n var optionSignupContentPXP = _this3.experiments.optionalSignupContent;\n\n if (optionSignupContentPXP && optionSignupContentPXP.treatment_name) {\n var treatmentContentKeys = _pxpExperimentConstants2['default'].test['xoon_optional_signup_content_change'][optionSignupContentPXP.treatment_name];\n\n _this3.contentKeys = treatmentContentKeys ? treatmentContentKeys : {};\n }\n };\n\n // This Marketing Header is set for IN guest experience users where the header title and subtitle are updated based on the PXP value.\n var setINMarketingOfferContent = function setINMarketingOfferContent() {\n if (_this3.mode !== 'signup' || _index.$locale.country !== 'IN') {\n return;\n }\n\n _this3.flags.marketingOfferTitleContentExp = false;\n _this3.marketingOfferTitleContentExpContentKeys = {};\n\n var marketingOfferTitleContentExp = _this3.experiments.marketingOfferTitleContentExp;\n\n if (marketingOfferTitleContentExp && marketingOfferTitleContentExp.treatment_name) {\n var treatmentContentKeys = _pxpExperimentConstants2['default'].test['xoon_forced_signup_buyer_protection_content'][marketingOfferTitleContentExp.treatment_name];\n // Check whether the treatment key exists or is it a control. This will set the marketingOfferTitleContentExp variable as false so that the control text is rendered.\n\n if (treatmentContentKeys) {\n _this3.flags.marketingOfferTitleContentExp = true;\n _this3.marketingOfferTitleContentExpContentKeys = treatmentContentKeys ? treatmentContentKeys : {};\n\n _logger.$logger.info('xoon_forced_signup_buyer_protection_content', {\n message: marketingOfferTitleContentExp.treatment_name\n });\n }\n }\n };\n\n var handleFrsContingency = function handleFrsContingency(message) {\n _logger.$logger.info('free_return_shipping_applicability_check_merchant_' + message);\n return false;\n };\n\n var handleFrsError = function handleFrsError(message, error) {\n _logger.$logger.info('free_return_shipping_applicability_check_merchant_' + message, error);\n return false;\n };\n\n var checkMerchantApplicabilityForFRS = function checkMerchantApplicabilityForFRS() {\n if (_index.$config.deploy.isLocal() || _index.$config.deploy.isStage()) {\n // URL param used in Dev and Staging environment for testing purpose\n var passedInVal = _index.$util.param('frsMerchantCheck');\n\n if ('off'.includes(passedInVal)) {\n _logger.$logger.info('skipping_frs_merchant_applicability_check');\n return _angular.$q.when(true);\n }\n }\n\n var frsMerchantApplicabilityModel = new _index6.$FreeReturnShippingApplicabilityModel();\n\n var merchantApplicabilityRequest = {\n context: 'MERCHANT',\n merchantId: _this3.models.payee.get('merchant.id')\n };\n\n _logger.$logger.info('checkout_fpti', {\n from: 'frs_flow_applicability',\n to: 'prepare_frs_merchant_applicability'\n });\n\n // Once throttling of FRS experience is complete, we need to perform FRS applicability check in resolvers\n return frsMerchantApplicabilityModel.save({\n data: merchantApplicabilityRequest,\n success: function success(frsApplicabilityResponse) {\n _logger.$logger.info('checkout_fpti', {\n from: 'frs_flow_applicability',\n to: 'process_frs_merchant_applicability',\n eligibility_reason: frsApplicabilityResponse && frsApplicabilityResponse.applicable\n });\n\n return frsApplicabilityResponse && frsApplicabilityResponse.applicable;\n },\n contingencies: {\n FRS_APPLICABILITY_ERROR: function FRS_APPLICABILITY_ERROR() {\n return handleFrsContingency('FRS_APPLICABILITY_ERROR');\n },\n VALIDATION_ERROR: function VALIDATION_ERROR() {\n return handleFrsContingency('VALIDATION_ERROR');\n },\n DEFAULT: function DEFAULT() {\n return handleFrsContingency('UNHANDLED_CONTINGENCY');\n }\n },\n validation: function validation(err) {\n return handleFrsError('SERVICE_VALIDATION_ERROR', err);\n },\n error: function error(err) {\n return handleFrsError('SERVICE_ERROR', err);\n }\n });\n };\n\n var checkFrsFlowApplicability = function checkFrsFlowApplicability() {\n var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n treatment_name = _ref2.treatment_name;\n\n var flowType = arguments[1];\n\n var frsApplicableTreatments = _pxpExperimentConstants2['default'].test['frs_applicable_treatments'];\n var isTreatmentApplicable = (frsApplicableTreatments[flowType] || []).includes(treatment_name);\n\n _logger.$logger.info('checkout_fpti', {\n from: 'frs_flow_applicability',\n to: 'prepare_frs_optin_flow_applicability'\n });\n\n /**\n * Invoke FRS check applicability API to determine eligible vs ineligible traffic for both test and control group\n * When FRS treatment flow is applicable and FRS merchant applicability is true, FRS experience will be shown to user\n * When FRS control flow is applicable, FRS experience will not be shown to user. Hence, return frs as not applicable\n */\n return checkMerchantApplicabilityForFRS().then(function (isFrsApplicable) {\n var isFlowApplicable = isTreatmentApplicable ? isFrsApplicable : false;\n\n _logger.$logger.info('checkout_fpti', {\n from: 'frs_flow_applicability',\n to: 'process_frs_optin_flow_applicability',\n eligibility_reason: isFlowApplicable\n });\n\n return isFlowApplicable;\n });\n };\n\n var setFreeReturnShippingEligibilityFlags = function setFreeReturnShippingEligibilityFlags() {\n if (_this3.flags.showPomaUi) {\n _logger.$logger.info('POMA_UI_enabled_free_return_shipping_feature_not_applicable');\n return false;\n }\n\n // pxp treatments for FRS present only for wps optional/signup or EC optional/signup\n var frsExp = _this3.freeReturnShippingExperiments;\n\n if (frsExp) {\n var flowType = _pxpExperimentConstants2['default'].test['frsPageName'][_this3.flags.flowName][_this3.mode];\n\n checkFrsFlowApplicability(frsExp, flowType).then(function (frsFlowApplicable) {\n if (frsFlowApplicable) {\n _logger.$logger.info('free_return_shipping_optin_flow_applicable');\n\n _this3.flags.freeReturnShippingOptInFlowApplicable = true;\n /**\n * Set whether FRS opt-in flow is Active (true) or Silent (false)\n * Active flow - When opt-in involves explicit user action like activate button, checkbox.\n * Silent flow - When opt-in doesn't have user action and performed automatically with account signup flow.\n */\n _this3.flags.freeReturnShippingOptInActiveFlow = false;\n\n _this3.onboard.frs_optin_flow_applicable = true;\n _this3.onboard.frs_optin_active_flow = false;\n\n if (_this3.flags.wpsInterstitialEligible) {\n _this3.flags.freeReturnShippingApplicableTreatment = frsExp.treatment_name;\n } else {\n _this3.frsNonWpsInterstitalFlow = true;\n var treatmentContentKeys = _pxpExperimentConstants2['default'].test[flowType][frsExp.treatment_name];\n\n _this3.frsContentKeys = treatmentContentKeys ? treatmentContentKeys : {};\n }\n }\n });\n }\n };\n\n var setFlagsPostFlowEligibility = function setFlagsPostFlowEligibility() {\n var trackingModes = ['guest', 'guestonly'];\n\n _this3.flags.track_submit_transition = trackingModes.includes(_this3.mode) ? 'guest_xo' : 'signup';\n\n checkWPSInterstitialEligibility();\n setOptionalSignupPromotionContent();\n setINMarketingOfferContent();\n\n // POMA - Passwordless Onboarding of Member Accounts\n if (_this3.mode === 'guest' && _index.$locale.country === 'US' && !_index7.$DeviceInfo.isWebView()) {\n if (!_this3.flags.isWpsFlow && !_this3.flags.isInvoiceFlow) {\n setEcPomaFlag();\n }\n }\n\n _this3.flags.mode = _this3.mode;\n _this3.flags.signupEnabled = _this3.mode !== 'guestonly';\n _this3.flags.allowChoice = _this3.mode !== 'signup';\n\n // Initialize showDisabledPasswordField to true.\n // NOTE: We use the if condition to check for undefined so the variable is assigned only once.\n // This method is called on every locale change, so we don't want it to be true on every change.\n // In future cases, signupSelected and guestSelected will set it accordingly.\n if (_this3.flags.showDisabledPasswordField === undefined) {\n _this3.flags.showDisabledPasswordField = true;\n }\n\n // Set Free Return Shipping Opt-in eligibility flags\n setFreeReturnShippingEligibilityFlags();\n };\n\n setFlagsPostFlowEligibility();\n }\n },\n actions: {\n setBuyerModeFlags: function setBuyerModeFlags(newValue) {\n switch (newValue) {\n case 'guest':\n case 'guestonly':\n // show disabled password field for variant2\n this.flags.showDisabledPasswordField = true;\n _logger.$logger.info('Guest_Signup_No');\n this.flags.mode = newValue;\n this.flags.track_submit_transition = 'guest_xo';\n break;\n case 'signup':\n // hide disabled password field\n this.flags.showDisabledPasswordField = false;\n this.flags.ignoreValidationTheFirstTime = true;\n _logger.$logger.info('Guest_Signup_Yes');\n this.flags.mode = newValue;\n this.flags.track_submit_transition = 'guest_optional_signup';\n break;\n default:\n // Do Nothing\n }\n this.accountCreationSectionErrorMessage = '';\n $('.signupFieldsContainer .radioButton').removeClass('warning');\n _uiRouter.$state.current.trackingData.pageQualifier = newValue;\n return true;\n },\n triggerTimerForSignupClicked: function triggerTimerForSignupClicked() {\n if (window.performance) {\n _logger.$logger.info('sign up option clicked, start timer...', window.performance.now());\n this.$emit('signupClickedTimerStarted', window.performance.now());\n }\n },\n onCheckedSavedMyInfo: function onCheckedSavedMyInfo($event) {\n if ($event.target.checked) {\n // populating the legal terms key to send the TCPA details to OAS later during onboarding\n this.flags.tcpa_identifier = 'poma.legalTerms';\n this.flags.poma_flow = true;\n this.flags.track_submit_transition = 'poma_signup';\n $('.pomaFieldsContainer').addClass('focusBorder');\n $('.pomaFieldsContainer').addClass('active');\n _logger.$logger.info('POMA_CHECKBOX_SELECTED');\n if ($('#pomaSubmit').offset()) {\n window.scrollTo(0, this.$element.parent().find('#pomaSubmit').offset().top);\n }\n } else {\n this.flags.tcpa_identifier = undefined;\n this.flags.poma_flow = false;\n this.flags.track_submit_transition = 'guest_xo';\n $('.pomaFieldsContainer').removeClass('focusBorder');\n $('.pomaFieldsContainer').removeClass('active');\n _logger.$logger.info('POMA_CHECKBOX_DESELECTED');\n }\n }\n }\n});\n\n\n_index.$Component;\n\n_index.$locale;\n\n_index.$pxp;\n\n_index.$config;\n\n_index.$util;\n\n_index.$feature;\n\n_angular.$q;\n\n_index2.$CheckoutInputDataModel;\n\n_index3.$SubscriptionsV1Model;\n\n_index4.$CheckoutAppDataModel;\n\n_index4.$CheckoutPayeeModel;\n\n_index4.$CheckoutCartModel;\n\n_index4.$FlowEligibilityModel;\n\n_index5.$MerchantPreferenceModel;\n\n_index6.$FreeReturnShippingApplicabilityModel;\n\n_logger.$logger;\n\n_uiRouter.$state;\n\n_index7.$DeviceInfo;\n\n_contentKeys.getBillingAgreementContentInfo;\nmodule.exports = exports['default'];\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/jquery/dist/jquery.min.js\")))\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest/onboardOptions/guest/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-guest-components/src/guest/onboardOptions/guest/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _squid.$Component.extend('xoGuestOptions', {\n tag: 'xo-guest-options',\n template: _template2['default'],\n\n props: {\n flags: {\n type: 'var',\n required: false\n },\n onboard: {\n type: 'var',\n required: false\n },\n singlePagePaymentForm: {\n type: 'var',\n required: false\n },\n validated: {\n type: 'var',\n required: false\n },\n sepa: {\n type: 'var',\n required: false\n }\n },\n\n resolve: {\n experiments: function experiments() {\n return {\n guestEconsentAMLD4Pxp: (0, _squid.$pxp)('xo_xoonboarding_guest_econsent_amld4', { 'ctx.COUNTRY': _squid.$locale.country }, '(xo_xoonboarding_guest_econsent_amld4)(.*)')\n };\n }\n },\n\n lifecycle: {\n enter: function enter() {\n this.locale = _squid.$locale;\n this.showGuestAMLD4Terms = false;\n var _$config$AMLRuleCount = _squid.$config.AMLRuleCountries,\n AMLRuleCountries = _$config$AMLRuleCount === undefined ? [] : _$config$AMLRuleCount;\n\n\n this.isAmlCountry = AMLRuleCountries.includes(_squid.$locale.country);\n },\n populate: function populate() {\n var _this = this;\n\n var getAMLGuestTermsContentKey = function getAMLGuestTermsContentKey() {\n var _experiments$guestEco = _this.experiments.guestEconsentAMLD4Pxp;\n _experiments$guestEco = _experiments$guestEco === undefined ? {} : _experiments$guestEco;\n var _experiments$guestEco2 = _experiments$guestEco.treatment_name,\n treatment_name = _experiments$guestEco2 === undefined ? [] : _experiments$guestEco2;\n\n\n if (treatment_name.includes('xo_xoonboarding_guest_econsent_amld4_test')) {\n _this.showGuestAMLD4Terms = true;\n return _this.onboard.fiMode === 'bank' ? 'signupTerms.guestEconsentBankTermsAMLD4' : 'signupTerms.guestEconsentTermsAMLD4';\n }\n // either its control or PXP error, default to existing guest AML rules\n return 'signupTerms.guestAML4Rule';\n };\n\n this.$watch('onboard.fiMode', function (newVal) {\n _this.econsentKey = _this.isAmlCountry ? getAMLGuestTermsContentKey() : 'signupTerms.guest';\n });\n }\n },\n actions: {\n openSepa: function openSepa() {\n this.props.sepa.show = true;\n }\n }\n});\n\n\n_squid.$Component;\n\n_squid.$locale;\n\n_squid.$config;\n\n_squid.$pxp;\nmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest/onboardOptions/guest/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n
\\n
{{ content('largeScreenAccountCreation.agrementError') }}
\\n \\n \\n
\\n
\\n

\\n
\\n
\\n
{{ content('largeScreenAccountCreation.agrementError') }}
\\n \\n \\n
\\n
\\n
{{ content('largeScreenAccountCreation.agrementError') }}
\\n \\n \\n
\\n
\\n
\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest/onboardOptions/lib/helper.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.signupLib = undefined;\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar getIsGDPRCountry = function getIsGDPRCountry() {\n var country = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _squid.$locale.country;\n\n // Refer to config.GDPR for countries list\n return _squid.$util.getProperty(_squid.$config, 'GDPR.countries', { 'default': [] }).indexOf(country) > -1;\n};\n\nvar getMarketingOptinShowHide = function getMarketingOptinShowHide() {\n var country = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _squid.$locale.country;\n var isGDPRCountry = arguments[1];\n\n if (isGDPRCountry) {\n return true;\n }\n\n // GDPR config overrides all country specific config\n return (0, _squid.$feature)('marketingOptinMember', false, country);\n};\n\nvar getMarketingOptinIsChecked = function getMarketingOptinIsChecked() {\n var country = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _squid.$locale.country;\n var isGDPRCountry = arguments[1];\n\n // If GDPR country, then check for marketing opt-in\n // unchecked countries list in GDPR config object\n if (isGDPRCountry) {\n return _squid.$util.getProperty(_squid.$config, 'GDPR.marketingOptinUncheckedCountries', { 'default': [] }).indexOf(country) < 0;\n }\n\n // GDPR config overrides all country specific config\n return (0, _squid.$feature)('checkMarketingOptIn', false, country);\n};\n\nvar getMarketingOptinContentKey = function getMarketingOptinContentKey() {\n var country = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _squid.$locale.country;\n var isGDPRCountry = arguments[1];\n\n if (isGDPRCountry) {\n return 'signupTerms.GDPRAgreeMarketing';\n }\n\n // GDPR config overrides all country specific config\n return 'signupTerms.agreeMarketing';\n};\n\nvar getSignupTermsContentKey = function getSignupTermsContentKey() {\n var country = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _squid.$locale.country;\n var isGDPRCountry = arguments[1];\n var fiMode = arguments[2];\n\n\n if (country === 'US') {\n return 'signupTerms.signupTCPA3';\n }\n\n // GDPR pxp treatment check\n if (isGDPRCountry) {\n return fiMode === 'bank' ? 'signupTerms.GDPRAgreeTermsBank' : 'signupTerms.GDPRAgreeTerms';\n }\n\n // We dont need to check for Bank here as DE (Bank payment enabled) is a GDPR country\n return 'signupTerms.signupC';\n};\n\nvar signupLib = {\n getIsGDPRCountry: getIsGDPRCountry,\n getMarketingOptinIsChecked: getMarketingOptinIsChecked,\n getMarketingOptinShowHide: getMarketingOptinShowHide,\n getMarketingOptinContentKey: getMarketingOptinContentKey,\n getSignupTermsContentKey: getSignupTermsContentKey\n};\n\nexports.signupLib = signupLib;\n\n\n_squid.$util;\n\n_squid.$locale;\n\n_squid.$feature;\n\n_squid.$config;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest/onboardOptions/signup/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _index = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-guest-components/src/guest/onboardOptions/signup/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\n__webpack_require__(\"../node_modules/xo-form-components/src/place-of-birth/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-form-components/src/gender-type/directive.js\");\n\nvar _helper = __webpack_require__(\"../node_modules/xo-guest-components/src/guest/onboardOptions/lib/helper.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _index.$Component.extend('xoSignupOptions', {\n tag: 'xo-signup-options',\n template: _template2['default'],\n\n props: {\n flags: {\n type: 'var',\n required: false\n },\n onboard: {\n type: 'var',\n required: false\n },\n singlePagePaymentForm: {\n type: 'var',\n required: false\n },\n validated: {\n type: 'var',\n required: false\n },\n sepa: {\n type: 'var',\n required: false\n },\n guestUpgrade: {\n type: 'var',\n required: false\n },\n isUnbranded: {\n type: 'var',\n required: false\n }\n },\n\n resolve: {\n experiments: function experiments() {\n return {\n // countries in the contextual rules\n // \"GB,\"FR\",\"ES\",\"IE\",\"PL\",\"CY\",\"BG\",\"BE\",\"CZ\",\"DK\",\"EE\",\"FI\",\n // \"GF\",\"GI\",\"GP\",\"GR\",\"HU\",\"LV\",\"LI\",\"LT\",\"LU\",\"MT\",\"MQ\",\"PT\",\n // \"RE\",\"RO\",\"SM\",\"SK\",\"SI\",\"SE\",\"NO\",\"AT\",\"NL\",\"IT\",\"DE\"\n nationalityThrottle: (0, _index.$pxp)('xo_xoonboarding_eu_nationality_throttle', { 'ctx.COUNTRY': _index.$locale.country }, '(xo_xoonboarding_eu_nationality_throttle_)(.*)')\n };\n }\n },\n\n lifecycle: {\n enter: function enter() {\n this.locale = _index.$locale;\n this.flags.nationalIdFlag = _index.$config.nationalIdRequiredCountries && _index.$config.nationalIdRequiredCountries.indexOf(this.locale.country) > -1;\n this.isGenderFieldEnabled = (0, _index.$feature)('gender', false, this.locale.country);\n this.showNationalityField = (0, _index.$feature)('nationalityRequired', false, this.locale.country);\n },\n populate: function populate() {\n var _this = this;\n\n var isGDPRCountry = _helper.signupLib.getIsGDPRCountry(this.locale.country);\n\n // Market Opt-in display and checked by default is based on config settings\n this.showMarketingOptin = _helper.signupLib.getMarketingOptinShowHide(this.locale.country, isGDPRCountry);\n\n // By default, if we are not showing a checkbox for marketing opt-in\n // then, get all signup/POMA users opted-in for marketing emails\n // Setting the flag to null as per GDPR team requirement\n if (!this.showMarketingOptin) {\n this.onboard.marketingOptin = null;\n } else {\n // DO THIS ONLY IF the marketing opt-in checkbox is displayed to users\n // Is marketing opt-in checkbox checked by default\n this.onboard.marketingOptin = _helper.signupLib.getMarketingOptinIsChecked(this.locale.country, isGDPRCountry);\n // Marketing opt-in text next to checkbox\n this.marketingOptinContentKey = _helper.signupLib.getMarketingOptinContentKey(this.locale.country, isGDPRCountry);\n }\n\n // Get Signup agree terms content and update the this.onboard object with they key\n var getSignupTermsContentKey = function getSignupTermsContentKey() {\n return _helper.signupLib.getSignupTermsContentKey(_this.locale.country, isGDPRCountry, _this.onboard.fiMode);\n };\n\n this.onboard.eConsentTermsContent = getSignupTermsContentKey();\n\n // control treatment will be returned for the countries which are in the contextual rules and falls in to control,\n // for those don't show the national ID field.\n // Test treatment / undefined (In-case of the countries not in the contextual rules),\n // read \"nationalityRequired\" from config.json which by default determined in enter()\n var pxpTreatments = this.experiments.nationalityThrottle;\n\n if (pxpTreatments && pxpTreatments.treatment_name.indexOf('xo_xoonboarding_eu_nationality_throttle_control') > -1 && this.showNationalityField) {\n this.showNationalityField = false;\n }\n\n // TODO: Remove watch after GDPR ramp (may 25th, 2018), we will have\n // one signup terms text for both bank and card fi types\n // DE - based on FI mode, we need to change signup agree terms\n this.$watch('onboard.fiMode', function (newVal) {\n _this.onboard.eConsentTermsContent = getSignupTermsContentKey();\n });\n }\n },\n\n actions: {\n openSepa: function openSepa() {\n this.sepa.show = true;\n }\n }\n});\n\n\n_index.$Component;\n\n_index.$locale;\n\n_index.$pxp;\n\n_index.$config;\n\n_index.$feature;\n\n_helper.signupLib;\nmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest/onboardOptions/signup/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n \\n
\\n
\\n \\n \\n\\n \\n
\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n \\n \\n \\n \\n\\n \\n \\n \\n\\n \\n \\n \\n\\n \\n \\n \\n\\n \\n\\n
\\n
{{ content('largeScreenAccountCreation.agrementError') }}
\\n \\n \\n
\\n
\\n

\\n

\\n
\\n
\\n
{{ content('largeScreenAccountCreation.agrementError') }}
\\n \\n \\n
\\n
\\n \\n \\n
\\n
\\n
\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest/onboardOptions/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n\\n \\n
\\n\\n
\\n\\n
\\n\\n \\n

\\n

{{content(frsContentKeys.title)}}

\\n

\\n
\\n\\n

\\n\\n \\n
\\n\\n \\n

\\n
\\n\\n
\\n\\n \\n

\\n

{{content(onboardTitleLine1)}}

\\n

{{content('common.getBenefitsLine2')}}

\\n

\\n
\\n\\n \\n

\\n

{{content(contentKeys.title)}}

\\n

\\n
\\n\\n

\\n

\\n\\n \\n\\n

\\n
\\n\\n \\n \\n
\\n \\n \\n \\n \\n
\\n\\n
\\n \\n

\\n

{{content(marketingOfferTitleContentExpContentKeys.titleLine1)}}

\\n

{{content(marketingOfferTitleContentExpContentKeys.titleLine2)}}

\\n

\\n
\\n

\\n
\\n\\n
\\n

{{content('signup.loginDetails')}}

\\n
\\n
\\n\\n
\\n \\n\\n \\n \\n
\\n\\n \\n\\n
\\n\\n
\\n \\n \\n
\\n\\n \\n\\n
\\n\\n
\\n \\n\\n
\\n \\n
\\n\\n
\\n
 
\\n\\n
\\n
\\n

{{content('poma.headingB')}}

\\n
\\n

{{content('poma.para1B')}}

\\n

{{content('poma.para2B')}}

\\n
\\n
\\n \\n \\n
\\n
\\n

\\n
\\n
\\n
\\n

{{content('poma.heading')}}

\\n
\\n

{{content('poma.para1')}}

\\n

{{content('poma.para2')}}

\\n
    \\n
  • {{content('poma.para2Bullet1')}}
  • \\n
  • {{content('poma.para2Bullet2')}}
  • \\n
\\n

{{content('poma.para3')}}

\\n

{{content('poma.para4')}}

\\n
\\n
\\n \\n \\n
\\n
\\n

\\n
\\n
\\n
\\n\\n
\\n\\n

\\n \\n

\\n
\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest/passwordInput/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _jquery = __webpack_require__(\"../node_modules/jquery/dist/jquery.min.js\");\n\nvar _jquery2 = _interopRequireDefault(_jquery);\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/directionality/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/error-tooltip/directive.js\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-guest-components/src/guest/passwordInput/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _squid.$Component.extend('xoPasswordInput', {\n tag: 'xo-password-input',\n template: _template2['default'],\n props: {\n user: {\n type: 'var',\n required: false\n },\n singlePassword: {\n type: 'var',\n required: false\n },\n isDisabled: {\n type: 'var',\n required: false\n }\n },\n lifecycle: {\n enter: function enter() {\n var _this = this;\n\n this.locale = _squid.$locale;\n this.passwordToolTip = 'show';\n this.passwordMismatch = 'hide';\n this.requirementLength = 'active';\n this.requirementNumberSymbol = 'active';\n\n // Set singlePassword as true by default\n // NOTE: PROX flow is still using two password fields\n this.singlePassword = this.singlePassword !== false;\n\n /*\n The next 2 methods serve to allow passwordValidate & confirmPasswordValidate directives\n to access + change the scope variables inside here as the scopes\n in these directives are different and do not inherit from here.\n */\n this.setScopeProp = function (prop, newVal) {\n _this[prop] = newVal;\n };\n\n this.getScopeProp = function (prop) {\n return _this[prop];\n };\n\n /*\n * single password case\n * flags and functions to enable single password hide and\n * show password feature\n */\n var enableSinglePassword = function enableSinglePassword() {\n _this.showRawPassword = false;\n _this.showPasswordTextToggleLink = false;\n\n _this.toggleShowRawPassword = function ($event) {\n var $passwordEl = (0, _jquery2['default'])('#password');\n var valLength = $passwordEl.val().length;\n\n $event.preventDefault();\n _this.showRawPassword = !_this.showRawPassword;\n\n if (_this.showRawPassword) {\n $passwordEl.prop('type', 'text');\n } else {\n $passwordEl.prop('type', 'password');\n }\n\n // timeout is need to get this function running after\n // the onPasswordBlur function\n (0, _angular.$timeout)(function () {\n $passwordEl.focus();\n // firefox set the cursor to the end of the value text\n $passwordEl.get(0).setSelectionRange(valLength, valLength);\n });\n };\n };\n\n if (this.singlePassword) {\n enableSinglePassword();\n }\n }\n },\n actions: {\n // 'singlePassword' case - show the 'hide/show' password link\n onPasswordFocusBlur: function onPasswordFocusBlur($event, focused) {\n var passwordValLength = this.user.password && this.user.password.length;\n\n if (this.singlePassword) {\n if (focused) {\n this.showPasswordTextToggleLink = true;\n this.addRightSpaceToShowHideLink = (0, _jquery2['default'])($event.target).hasClass('ng-invalid');\n } else {\n // if password value length is zero then it is false\n this.showPasswordTextToggleLink = passwordValLength ? true : false;\n }\n }\n }\n }\n});\n\n\n(0, _angular.$registerDirective)('password-validate', function () {\n return {\n require: 'ngModel',\n restrict: 'A',\n link: function link(scope, elem, attrs, controller) {\n var ngModel = controller;\n var passwordInputScope = scope.componentScope;\n\n ngModel.$setValidity('password', false);\n\n var fourSequence = function fourSequence(value) {\n value += ' ' + value.split('').reverse().join('');\n var sequences = '`1231234234534564567567867897890890-90-= ' + // row 1\n 'qwerwertertyrtyutyuiyuiouiopiop[op[]p[]\\\\ ' + // row 2\n 'asdfsdfgdfghfghjghjkhjkljkl;kl;\\' ' + // row 3\n 'zxcvxcvbcvbnvbnmbnm,nm,.m,./ ' + // row 4\n '~!@#!@#$@#$%#$%^$%^&%^&*^&*(&*()*()_()_+ ' + // shift + row 1\n 'QWERWERTERTYRTYUTYUIYUIOUIOPIOP{OP{}P{}| ' + // shift + row 2\n 'ASDFSDFGDFGHFGHJGHJKHJKLJKL:KL:\" ' + // shift + row 3\n 'ZXCVXCVBCVBNVBNMBNMM<>?'; // shift + row 4\n\n var len = value.length;\n\n for (var i = 0; i < len - 3; i++) {\n if (sequences.indexOf(value.substr(i, 4)) > -1) {\n // if return value is false, then add the class\n passwordInputScope.setScopeProp('addRightSpaceToShowHideLink', true);\n return false;\n }\n }\n return true;\n };\n\n var containsDoubleByte = function containsDoubleByte(s) {\n var returnVal = /[^\\u0000-\\u00ff]/.test(s); // eslint-disable-line no-control-regex\n\n // if return value is false, then add the class\n passwordInputScope.setScopeProp('addRightSpaceToShowHideLink', !returnVal);\n return returnVal;\n };\n\n ngModel.$parsers.unshift(function (viewValue) {\n passwordInputScope.setScopeProp('requirementLength', viewValue.length >= 8 && viewValue.length <= 20 ? false : 'active');\n passwordInputScope.setScopeProp('requirementNumberSymbol', /\\d/.test(viewValue) || /[\\-!@#$%\\^&*()_+|~=`{}\\[\\]:';'<>?,.\\/\\\\]/.test(viewValue) ? false : 'active');\n\n passwordInputScope.setScopeProp('requirementInfoSec', false);\n if (scope.user.country === 'AU') {\n var lcViewVal = viewValue.toLowerCase();\n var firstName = scope.user && scope.user.first_name && scope.user.first_name.toLowerCase();\n var lastName = scope.user && scope.user.last_name && scope.user.last_name.toLowerCase();\n var dob = scope.user && scope.user.dob_day + '/' + scope.user.dob_month + '/' + scope.user.dob_year;\n\n if (lcViewVal.indexOf(firstName) > -1 || lcViewVal.indexOf(lastName) > -1 || lcViewVal.indexOf(dob) > -1) {\n passwordInputScope.setScopeProp('requirementInfoSec', 'active');\n }\n }\n\n passwordInputScope.setScopeProp('restrictionEmail', false);\n passwordInputScope.setScopeProp('restrictionFourRepeated', viewValue.length > 3 && /(.)\\1{3}/.test(viewValue) ? 'active' : false);\n passwordInputScope.setScopeProp('restrictionNonValidCharacters', /[\\x00-\\x08\\x0E-\\x1F\\x80-\\xFF ]/.test(viewValue) ? 'active' : false); // eslint-disable-line no-control-regex\n passwordInputScope.setScopeProp('restrictionFourSequence', viewValue.length > 3 && !fourSequence(viewValue) ? 'active' : false);\n passwordInputScope.setScopeProp('restrictionDoubleByte', containsDoubleByte(viewValue) ? 'active' : false);\n\n var requirements = !(passwordInputScope.getScopeProp('requirementLength') || passwordInputScope.getScopeProp('requirementNumberSymbol') || passwordInputScope.getScopeProp('requirementInfoSec'));\n var restrictions = !(passwordInputScope.getScopeProp('restrictionEmail') || passwordInputScope.getScopeProp('restrictionFourRepeated') || passwordInputScope.getScopeProp('restrictionNonValidCharacters') || passwordInputScope.getScopeProp('restrictionFourSequence') || passwordInputScope.getScopeProp('restrictionDoubleByte'));\n var isValidPassword = requirements && restrictions;\n\n ngModel.$setValidity('password', isValidPassword);\n passwordInputScope.setScopeProp('passwordToolTip', isValidPassword ? 'hide' : 'show');\n\n // for singlePassword field with hide/show link, add hide/show link\n // right side spacing based on validity of field input\n passwordInputScope.setScopeProp('addRightSpaceToShowHideLink', !isValidPassword);\n\n return viewValue;\n });\n }\n };\n});\n\n(0, _angular.$registerDirective)('confirm-password-validate', function () {\n return {\n require: 'ngModel',\n restrict: 'A',\n link: function link(scope, elem, attrs, controller) {\n var ngModel = controller;\n var passwordInputScope = scope.componentScope;\n\n ngModel.$setValidity('confirmPassword', false);\n\n passwordInputScope.$watch('user.password', function (newValue) {\n var cPass = passwordInputScope.user.confirmPassword;\n\n if (cPass && cPass.length && cPass !== newValue) {\n ngModel.$setValidity('confirmPassword', false);\n passwordInputScope.setScopeProp('passwordMismatch', 'show');\n }\n });\n\n ngModel.$parsers.unshift(function (viewValue) {\n var passwordVal = passwordInputScope.user.password;\n\n passwordInputScope.setScopeProp('restrictionMatch', passwordVal && viewValue.length > 0 && passwordVal.indexOf(viewValue) === 0 && passwordVal === viewValue);\n\n ngModel.$setValidity('confirmPassword', passwordVal === viewValue);\n\n passwordInputScope.setScopeProp('passwordMismatch', passwordInputScope.getScopeProp('restrictionMatch') ? 'hide' : 'show');\n return viewValue;\n });\n }\n };\n});\n\n_squid.$Component;\n\n_squid.$locale;\n\n_angular.$timeout;\n\n_angular.$registerDirective;\nmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest/passwordInput/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n\\n
\\n \\n \\n
\\n\\n
\\n \\n \\n
\\n\\n \\n\\n
\\n \\n
\\n
    \\n
  • {{ content('scripts.requirementLength') }}
  • \\n
  • {{ content('scripts.requirementNumberSymbol') }}
  • \\n
  • {{ content('scripts.informationSecurity') }}
  • \\n
  • {{ content('scripts.restrictionEmail') }}
  • \\n
  • {{ content('scripts.restrictionFourRepeated') }}
  • \\n
  • {{ content('scripts.restrictionNonValidCharacters') }}
  • \\n
  • {{ content('scripts.restrictionFourSequence') }}
  • \\n
  • {{ content('scripts.restrictionDoubleByte') }}
  • \\n
\\n
\\n
\\n
\\n
\\n
\\n\\n
\\n \\n \\n
\\n\\n
\\n \\n \\n
\\n\\n
\\n \\n
\\n
    \\n
  • {{ content('scripts.restrictionMatch') }}
  • \\n
\\n
\\n
\\n
\\n
\\n
\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest/redirectingFromXoonWarning/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function($) {\n\nexports.__esModule = true;\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\nvar _index = __webpack_require__(\"../node_modules/xo-models/src/auth/index.js\");\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/modal/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-guest-components/src/guest/redirectingFromXoonWarning/styles.less\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-guest-components/src/guest/redirectingFromXoonWarning/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _squid.$Component.extend('xoRedirectingFromXoonWarning', {\n tag: 'xo-redirecting-from-xoon-warning',\n template: _template2['default'],\n\n props: {\n token: {\n type: 'var',\n required: true\n },\n flags: {\n type: 'var',\n required: true\n },\n // mode is not present in multistep, so it is set as not required\n mode: {\n type: 'var',\n required: false\n }\n },\n\n resolve: {\n models: function models() {\n return {\n auth: _index.$AuthModel.instance().retrieve()\n };\n }\n },\n\n lifecycle: {\n enter: function enter() {\n // Default to 'signup' as multistep will not pass mode prop\n this.mode = this.mode || 'signup';\n },\n populate: function populate() {\n var $ccField = $('#cc');\n\n // Check the validity of fields read from config\n if (($ccField.val() || '').length > 0 && $ccField.hasClass('ng-valid')) {\n _logger.$logger.info('checkout_fpti', {\n from: this.mode === 'signup' ? 'signup' : 'guest_xo',\n to: 'prep_change_email'\n });\n this.showPrompt = true;\n } else {\n this.actions.redirectToHermes();\n }\n }\n },\n\n actions: {\n redirectToHermes: function redirectToHermes(isRedirectConfirmationShown) {\n\n var redirectLogType = isRedirectConfirmationShown ? 'with' : 'without';\n var transitionName = isRedirectConfirmationShown ? 'process_yes_change_email' : 'process_change_email';\n\n _logger.$logger.info('splitscreen_email_change_redirect_' + redirectLogType + '_modal_confirmation');\n\n _logger.$logger.info('checkout_fpti', {\n from: this.mode === 'signup' ? 'signup' : 'guest_xo',\n to: transitionName\n });\n\n // need this to get token in \".then\" function of clearCookies call\n var that = this;\n\n // We need to clear loginEmail and rmuc cookies\n // to make sure UL treats this user as splitscreen eligible\n this.models.auth.clearCookies({ loginEmail: true, rmuc: true }).then(function () {\n // Make sure to send locale and country as we need to carry this back\n // to hermes, if user changed these params in xoon\n (0, _squid.$dispatch)('hermes', {\n token: that.token,\n 'locale.x': _squid.$locale.lang + '_' + _squid.$locale.country,\n 'country.x': _squid.$locale.country\n });\n });\n },\n triggerRedirect: function triggerRedirect($event) {\n if ($event) {\n $event.preventDefault();\n }\n\n this.actions.redirectToHermes(true);\n },\n closePopupModal: function closePopupModal($event) {\n // We need this as this function is called from xo-modal\n // as a callback function\n if ($event) {\n $event.preventDefault();\n }\n\n _logger.$logger.info('checkout_fpti', {\n from: this.mode === 'signup' ? 'signup' : 'guest_xo',\n to: 'process_no_change_email'\n });\n\n this.showPrompt = false;\n this.flags.showRedirectWarningPrompt = false;\n }\n }\n\n});\n\n\n_squid.$Component;\n\n_squid.$locale;\n\n_squid.$dispatch;\n\n_logger.$logger;\n\n_index.$AuthModel;\nmodule.exports = exports['default'];\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/jquery/dist/jquery.min.js\")))\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest/redirectingFromXoonWarning/styles.less\":\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest/redirectingFromXoonWarning/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"\\n
\\n
\\n

\\n

\\n
\\n\\n
\\n \\n \\n
\\n
\\n
\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest/select-shipping-method/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function($) {\n\nexports.__esModule = true;\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _index = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\nvar _errorHandlerHelper = __webpack_require__(\"../node_modules/xo-guest-components/src/guest/lib/errorHandlerHelper.js\");\n\nvar errorHandlerHelper = _interopRequireWildcard(_errorHandlerHelper);\n\nvar _index2 = __webpack_require__(\"../node_modules/xo-models/src/shippingMethod/index.js\");\n\nvar _index3 = __webpack_require__(\"../node_modules/xo-models/src/checkout/index.js\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-guest-components/src/guest/select-shipping-method/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/error-tooltip/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-guest-components/src/guest/select-shipping-method/shipping-method-dropdown/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-guest-components/src/guest/select-shipping-method/styles.less\");\n\nvar _util = __webpack_require__(\"../node_modules/xo-guest-components/src/lib/util.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } }\n\nexports['default'] = _index.$Component.extend('$xoGuestSelectShippingMethodDirective', {\n tag: 'xo-guest-select-shipping-method',\n template: _template2['default'],\n\n props: {\n token: {\n type: 'var',\n required: false\n },\n billingAddress: {\n type: 'var',\n required: false\n },\n shippingAddress: {\n type: 'var',\n required: false\n },\n isShippingSameAsBilling: {\n type: 'var',\n required: false\n },\n showShipping: {\n type: 'var',\n required: false\n },\n buttonParams: {\n type: 'var',\n required: false\n },\n updatePageLevelErrorMessage: {\n type: 'var',\n required: false\n },\n flags: {\n type: 'var',\n required: false\n },\n trackSntReq: {\n type: 'var',\n required: false\n }\n },\n\n resolve: {\n models: function models() {\n return {\n checkoutAppData: _index3.$CheckoutAppDataModel.instance(this.props.token).retrieve(),\n checkoutCart: _index3.$CheckoutCartModel.instance(this.props.token).retrieve(),\n checkoutPayee: _index3.$CheckoutPayeeModel.instance(this.props.token).retrieve()\n };\n }\n },\n\n lifecycle: {\n enter: function enter() {\n var _this = this;\n\n // Decides whether to show whole section\n this.showShippingMethodSection = true;\n\n // Decides whether to show merchant options\n this.showMerchantOptions = true;\n this.showZipCode = false;\n this.zipCode = '';\n\n // Decides whether to show different DropDown\n this.isShowShippingMethodsDropDown = false;\n this.noShippingMethodDropDown = true;\n\n // Decides whether to show pick up store Text\n this.isStorePickUp = false;\n\n // Models\n this.currencyCode = '';\n\n this.selectedShippingCharge = '';\n\n // Initial charges\n this.charges = [{}];\n\n // No shipping charges\n this.noShippingChargesList = this.charges;\n\n // Hide the additional drop down that is rendered in iOS\n this.hideSelectDropdown = navigator.appVersion.indexOf('iPhone') !== -1;\n\n // Models mapped to guest scope component\n this.billingAddress = this.props.billingAddress;\n this.shippingAddress = this.props.shippingAddress;\n this.flags = this.props.flags;\n this.isShippingSameAsBilling = this.props.isShippingSameAsBilling;\n this.showShipping = this.props.showShipping;\n this.trackSntReq = this.props.trackSntReq;\n\n // Decides on disable/enable of dropdown\n this.changeShippingMethod = 'changeShippingMethodDisabled';\n this.selectedShippingMethodText = 'disableShippingMethod';\n this.dropDownBackground = 'normalBackground';\n\n // Used for instant update feature\n this.callbackShippingOptions = [];\n this.fallbackShippingOptions = [];\n this.selectedMethod = {};\n this.callbackInsuranceOffered = false;\n this.defaultFallbackOptionIndex = 0;\n\n this.shippingMethodNotSelected = true;\n\n this.shipAndTaxError = false;\n this.override = false;\n this.noErrorOrOverride = true;\n\n this.triggerFetchShippingMethods = false;\n this.localeCountry = _index.$locale.country;\n\n this.trackZipCode = {\n prev: '',\n current: ''\n };\n\n this.trackState = {\n prev: '',\n current: ''\n };\n\n var populatePatchAmountDetails = function populatePatchAmountDetails(patchableAmountEntities, constantAmountEntities, decimalDigits, amounts) {\n var newTotal = _this.buttonCartAmounts.total;\n\n Object.keys(patchableAmountEntities).forEach(function (key) {\n var detail = patchableAmountEntities[key];\n\n if (!isNaN(detail.value)) {\n detail.value = Number(detail.value);\n amounts.details[key] = detail.value.toFixed(decimalDigits);\n } else {\n detail.value = 0;\n }\n var difference = detail.valueInCart ? detail.value - detail.valueInCart : detail.value;\n\n newTotal += difference;\n });\n amounts.total = newTotal.toFixed(decimalDigits);\n Object.keys(constantAmountEntities).forEach(function (key) {\n var detail = constantAmountEntities[key];\n\n if (detail.valueInCart !== undefined) {\n amounts.details[key] = detail.valueInCart.toFixed(decimalDigits);\n }\n });\n\n _logger.$logger.info('snt_populate_patch_amount_details', {\n patchableAmountEntities: patchableAmountEntities,\n constantAmountEntities: constantAmountEntities,\n amounts: amounts,\n decimalDigits: decimalDigits\n });\n };\n\n // Todo: Understand: Why are we modifying API response?\n var getExternalCallbackOptionsForPatch = function getExternalCallbackOptionsForPatch() {\n var externalCallbackOptions = _this.models.checkoutCart.getExternalCallbackOptions();\n\n if (_this.response.shipping_options_source === 'CALLBACK') {\n externalCallbackOptions.callback_shipping_options = _this.callbackShippingOptions;\n externalCallbackOptions.callback_insurance_option_offered = _this.callbackInsuranceOffered;\n } else if (_this.response.shipping_options_source === 'FALLBACK') {\n externalCallbackOptions.fallback_shipping_options = _this.fallbackShippingOptions;\n }\n _logger.$logger.info('snt_external_callback_options_for_patch', {\n externalCallbackOptions: externalCallbackOptions\n });\n return externalCallbackOptions;\n };\n\n // Generates the request body to be used for patch Cart\n var getPatchReqData = function getPatchReqData(shippingAmt, taxAmt, shipMethod, insuranceAmt) {\n // What will get patched?\n // 1. amount values in the cart,\n // 2. shipping method (only in case of non instant update flows)\n // 3. external_callback_options (only in case of instant update flows)\n\n var currencyDigits = _index.$locale.metadata && _index.$locale.metadata.currency && _index.$locale.metadata.currency.digits;\n var decimalDigits = currencyDigits && currencyDigits[_this.currencyCode];\n\n if (isNaN(decimalDigits)) {\n decimalDigits = 2;\n }\n var patchEntities = [];\n var amounts = {\n 'currency': _this.currencyCode,\n 'details': {\n 'subtotal': _this.buttonCartAmounts.subTotal.toFixed(decimalDigits)\n }\n };\n var patchableAmountEntities = {\n shipping: {\n value: shippingAmt,\n valueInCart: _this.buttonCartAmounts.shippingAmt\n },\n tax: {\n value: taxAmt,\n valueInCart: _this.buttonCartAmounts.taxAmt\n },\n insurance: {\n value: insuranceAmt,\n valueInCart: _this.buttonCartAmounts.insuranceAmt\n }\n };\n // amount details which are not affected by SnT response,\n // but still need to get included in the patch request if initially present\n var constantAmountEntities = {\n handling_fee: {\n valueInCart: _this.buttonCartAmounts.handlingAmt\n },\n shipping_discount: {\n valueInCart: _this.buttonCartAmounts.shippingDiscountAmt\n },\n discount: {\n valueInCart: _this.buttonCartAmounts.discount\n }\n };\n\n populatePatchAmountDetails(patchableAmountEntities, constantAmountEntities, decimalDigits, amounts);\n patchEntities.push({\n field: 'purchaseAmount',\n value: amounts\n });\n\n if (_this.isInstantUpdateFlow) {\n patchEntities.push({\n field: 'externalCallbackOptions',\n value: getExternalCallbackOptionsForPatch()\n });\n } else {\n var shippingMethod = '';\n\n if (shipMethod && _this.shippingMethods) {\n shippingMethod = _this.shippingMethods.getShippingMethodId(shipMethod);\n }\n patchEntities.push({\n field: 'shippingMethod',\n value: shippingMethod\n });\n }\n\n var patchRequest = {\n id: _this.token,\n patchEntities: patchEntities\n };\n\n _logger.$logger.info('snt_patch_request', { patchRequest: patchRequest });\n return patchRequest;\n };\n\n // Function which will update costs which were patched\n var updatePreviousCosts = function updatePreviousCosts() {\n _this.previousCosts = {};\n if (_this.models.checkoutCart.purchase.amounts.shipping) {\n _this.previousCosts.shippingAmount = Number(_this.models.checkoutCart.purchase.amounts.shipping.amount);\n }\n if (_this.models.checkoutCart.purchase.amounts.tax) {\n _this.previousCosts.taxAmount = Number(_this.models.checkoutCart.purchase.amounts.tax.amount);\n }\n _logger.$logger.info('snt_update_previous_costs', { previousCosts: _this.previousCosts });\n };\n\n // Responsible to patch the cart with shipping, tax (and insurance in case of instant update)\n var updateShippingTaxCharge = function updateShippingTaxCharge(shippingAmt, taxAmt, shipMethod, insurance) {\n _logger.$logger.info('snt_update_shipping_tax_charge', {\n shippingAmt: shippingAmt,\n taxAmt: taxAmt,\n shipMethod: shipMethod,\n decodeEntities: (0, _util.decodeEntities)(shipMethod),\n insurance: insurance\n });\n var patchReq = getPatchReqData(shippingAmt, taxAmt, (0, _util.decodeEntities)(shipMethod), insurance);\n\n _this.models.checkoutCart.action('patchCartData', {\n data: patchReq,\n batch: {\n name: 'patchCartData',\n id: 'checkoutCart'\n },\n success: function success(result) {\n _logger.$logger.info('snt_patch_cart_data_success');\n _this.checkoutSession = _index3.$CheckoutSessionModel.instance(_this.token);\n updatePreviousCosts();\n },\n contingencies: {\n DEFAULT: function DEFAULT(name, err) {\n _logger.$logger.info('snt_patch_cart_failure', { error: err });\n throw err;\n }\n }\n });\n };\n\n // Checks whether domestic shipping methods are supported for the country or not\n this.isDomesticShippingMethodsSupported = function () {\n var country = _this.isShippingSameAsBilling ? _this.billingAddress.country : _this.shippingAddress.country;\n var result = void 0;\n\n if (_this.isInstantUpdateFlow) {\n // for countries which have no state or zip code in their address templates, SnT must be called based on country change\n // which implies isDomesticShippingMethodsSupported would be false\n result = !(0, _index.$feature)('noZipCodeOrState', false, country);\n } else {\n result = (0, _index.$feature)('allowWPSDomesticShippingMethods', false, country);\n }\n\n _logger.$logger.info('snt_is_domestic_shipping_methods_supported', {\n result: result,\n isInstantUpdateFlow: _this.isInstantUpdateFlow\n });\n return result;\n };\n\n // Sets the zip code whenever user enters the postal code field.\n this.setZipCode = function (caller) {\n if (_this.isDomesticShippingMethodsSupported()) {\n _this.showZipCode = true;\n if (_this.isShippingSameAsBilling) {\n _this.zipCode = _this.billingAddress.postal_code;\n } else {\n _this.zipCode = _this.shippingAddress.postal_code;\n }\n } else {\n _this.showZipCode = false;\n }\n\n _logger.$logger.info('snt_set_zip_code', {\n isShippingSameAsBilling: _this.isShippingSameAsBilling,\n zipCode: _this.zipCode,\n showZipCode: _this.showZipCode,\n caller: caller\n });\n };\n\n // Checks whether there was a change in zip code\n var isZipCodeChange = function isZipCodeChange() {\n var result = _this.trackZipCode.prev !== _this.trackZipCode.current;\n\n _logger.$logger.info('snt_zip_code_changed', {\n trackZipCode: _this.trackZipCode,\n result: result\n });\n return result;\n };\n\n // Checks whether there was a change in state\n var isStateChange = function isStateChange() {\n var result = _this.trackState.prev !== _this.trackState.current;\n\n _logger.$logger.info('snt_state_changed', {\n trackState: _this.trackState,\n result: result\n });\n return result;\n };\n\n // Checks whether there was a change in country\n // Todo: Understand: Won't billing address country will always be the same as locale country\n var isCountryChange = function isCountryChange() {\n _logger.$logger.info('snt_country_changed', {\n bc: _this.billingAddress && _this.billingAddress.country,\n lc: _this.localeCountry\n });\n\n if (_this.billingAddress.country && _this.localeCountry) {\n return _this.billingAddress.country !== _this.localeCountry;\n }\n // Todo: Understand: Why are we returning true by default\n return true;\n };\n\n // Util function to help safe convert a value to decimal\n var safeConvert = function safeConvert(value) {\n value = Number(value);\n _logger.$logger.info('snt_safe_convert', {\n value: value\n });\n if (isNaN(value)) {\n throw new Error(value + ' cannot be divided');\n }\n return value / 100;\n };\n\n // Checks whether shipping and tax response has tax in it\n // Todo: instead of returning a boolean why not returntax amount if there is any\n var responseHasTaxCharges = function responseHasTaxCharges() {\n _logger.$logger.info('snt_response_has_tax_charges', {\n charges: _this.response.charges\n });\n if (_this.response.charges.length === 0) {\n return false;\n }\n return !!_this.response.charges[0].tax;\n };\n\n // Checks whether shipping and tax response has shipping charges\n var responseHasShippingCharges = function responseHasShippingCharges() {\n _logger.$logger.info('snt_response_has_shipping_charges', {\n charges: _this.response.charges\n });\n if (_this.response.charges.length === 0) {\n return false;\n }\n return !!_this.response.charges[0].shipping_charge;\n };\n\n /*\n Checks whether patch cart is required or not .\n Use cases where this is called\n ------------------------------\n 1. When user selects a shipping method from dropdown.\n 2. User selects store pick Up , wants to change shipping address but shipping address fields are empty ,\n applicationShippingAmt will be passed as undefined to this function .\n */\n var isPatchCartRequired = function isPatchCartRequired(applicableShippingAmt, applicableTaxAmt) {\n var result = applicableShippingAmt !== _this.previousCosts.shippingAmount || applicableTaxAmt !== _this.previousCosts.taxAmount;\n\n _logger.$logger.info('snt_is_patch_card_required', {\n applicableShippingAmt: applicableShippingAmt,\n applicableTaxAmt: applicableTaxAmt,\n previousCosts: _this.previousCosts,\n result: result\n });\n\n return result;\n };\n\n var getTaxFromResponse = function getTaxFromResponse(charge) {\n // todo: Understand: is charge different from towhat is there in response since we want to get tax from\n // response!\n var responseCharge = charge || responseHasTaxCharges() && _this.response.charges[0];\n var result = void 0;\n\n if (responseCharge && responseCharge.tax) {\n // todo: Understand: Why the below condition\n if (!_this.buttonCartAmounts.shippingAmt && !_this.showShipping) {\n result = safeConvert(responseCharge.tax.item_tax.value);\n } else {\n result = safeConvert(responseCharge.tax.total_tax.value);\n }\n }\n _logger.$logger.info('snt_tax_from_response', {\n result: result,\n responseCharge: responseCharge\n });\n return result;\n };\n\n // Returns tax amount\n var getTax = function getTax(charge) {\n _logger.$logger.info('snt_get_tax', {\n isInstantUpdateFlow: _this.isInstantUpdateFlow,\n isBuyNow: _this.isBuyNow,\n buttonCartAmountsTaxAmt: _this.buttonCartAmounts.taxAmt\n\n });\n\n // todo: Understand: Why do we need isInstantUpdateFlow condition when getTaxFromResponse(charge); is\n // the default!?\n if (_this.isInstantUpdateFlow) {\n return getTaxFromResponse(charge);\n }\n if ((_this.isBuyNow || _this.isCartUpload) && _this.buttonCartAmounts.taxAmt >= 0) {\n return _this.buttonCartAmounts.taxAmt;\n }\n return getTaxFromResponse(charge);\n };\n\n // Disables the shipping method dropdown\n var disableDropDown = function disableDropDown() {\n _logger.$logger.info('snt_disable_dropdown');\n _this.isShowShippingMethodsDropDown = false;\n _this.noShippingMethodDropDown = true;\n\n _this.changeShippingMethod = 'changeShippingMethodDisabled';\n _this.dropDownBackground = 'normalBackground';\n _this.selectedShippingMethodText = 'disableShippingMethod';\n\n var span = $('#noShippingMethod > div > span > span > span');\n\n span.html(_index.$locale.content.get('shippingMethod.selectMethod'));\n };\n\n // Enable the shipping method dropdown\n var enableDropDown = function enableDropDown() {\n _logger.$logger.info('snt_enable_dropdown');\n _this.isShowShippingMethodsDropDown = true;\n _this.noShippingMethodDropDown = false;\n _this.shippingMethodNotSelected = true;\n\n _this.changeShippingMethod = 'changeShippingMethodEnabled';\n _this.dropDownBackground = 'normalBackground';\n _this.selectedShippingMethodText = 'enableShippingMethod';\n };\n\n // Enable store pick up to show shipping address\n var enableStorePickUp = function enableStorePickUp() {\n _logger.$logger.info('snt_enable_store_pickup');\n _this.flags.hideShippingAddress = true;\n _this.flags.showSingleAddress = true;\n _angular.$rootScope.$emit('store_pick_up_selected');\n };\n\n // Disable store pick Up\n var disableStorePickUp = function disableStorePickUp() {\n _logger.$logger.info('snt_disable_store_pickup');\n _this.flags.hideShippingAddress = false;\n _this.flags.showSingleAddress = false;\n };\n\n // Checks whether zip code is empty or not\n var isFormZipCodeEmpty = function isFormZipCodeEmpty() {\n // Todo: Understand: Is zipCodeField always present for non instant update flow?\n // Basically understand instant update flow\n var result = void 0;\n\n if (_this.isInstantUpdateFlow) {\n var zipCodeField = _this.isShippingSameAsBilling ? $('#billingAddress #postalCode')[0] || $('#billingAddress #billingPostalCode')[0] : $('#shippingAddress #postalCode')[0] || $('#shippingAddress #shippingPostalCode')[0];\n // The zip code field is not present for some countries.\n // isFormZipCodeEmpty() in that case returns false\n\n if (!zipCodeField) {\n _logger.$logger.info('snt_is_form_zip_code_empty_no_zip_field');\n return false;\n }\n }\n if (_this.isShippingSameAsBilling) {\n result = _this.billingAddress && !_this.billingAddress.postal_code;\n } else {\n result = _this.shippingAddress && !_this.shippingAddress.postal_code;\n }\n _logger.$logger.info('snt_is_form_zip_code_empty', {\n result: result,\n isShippingSameAsBilling: _this.isShippingSameAsBilling\n });\n return result;\n };\n\n // Checks whether line1 is emoty or not\n var isFormAddressLine1Empty = function isFormAddressLine1Empty() {\n var result = void 0;\n\n if (_this.isShippingSameAsBilling) {\n result = _this.billingAddress && !_this.billingAddress.line1;\n } else {\n result = _this.shippingAddress && !_this.shippingAddress.line1;\n }\n _logger.$logger.info('snt_is_form_address_line1_empty', { result: result });\n\n return result;\n };\n\n // Checks whether state is empty or not\n var isFormStateEmpty = function isFormStateEmpty() {\n var result = void 0;\n\n if (_this.isInstantUpdateFlow) {\n var stateField = _this.isShippingSameAsBilling ? $('#billingAddress #state')[0] || $('#billingAddress #billingState')[0] : $('#shippingAddress #state')[0] || $('#shippingAddress #shippingState')[0];\n // The state field is not present for some countries.\n // isFormStateEmpty() in that case returns false\n\n if (!stateField) {\n _logger.$logger.info('snt_is_form_state_empty_no_state');\n return false;\n }\n }\n if (_this.isShippingSameAsBilling) {\n result = _this.billingAddress && !_this.billingAddress.state;\n } else {\n result = _this.shippingAddress && !_this.shippingAddress.state;\n }\n _logger.$logger.info('snt_is_form_state_empty', {\n result: result,\n isShippingSameAsBilling: _this.isShippingSameAsBilling\n });\n\n return result;\n };\n\n // Returns the current zip code entered by the user\n var getCurrentZipCode = function getCurrentZipCode() {\n _logger.$logger.info('snt_get_current_zip_code', {\n isShippingSameAsBilling: _this.isShippingSameAsBilling,\n baPostalCode: _this.billingAddress.postal_code,\n saPostalCode: _this.shippingAddress.postal_code\n });\n\n if (_this.isShippingSameAsBilling) {\n if (_this.billingAddress.postal_code) {\n return _this.billingAddress.postal_code;\n }\n }\n\n // Todo: Understand should it be else if?\n if (_this.shippingAddress.postal_code) {\n return _this.shippingAddress.postal_code;\n }\n };\n\n // Returns current state selected by the user\n var getCurrentState = function getCurrentState() {\n _logger.$logger.info('snt_get_current_state', {\n isShippingSameAsBilling: _this.isShippingSameAsBilling,\n baPostalCode: _this.billingAddress.state,\n saPostalCode: _this.shippingAddress.state\n });\n\n if (_this.isShippingSameAsBilling) {\n if (_this.billingAddress.state) {\n return _this.billingAddress.state;\n }\n }\n if (_this.shippingAddress.state) {\n return _this.shippingAddress.state;\n }\n };\n\n var isValidPostalCodeElement = function isValidPostalCodeElement(element) {\n var isValidBillingPostalCodeElement = (element === 'billingPostalCode' || element === 'postalCode') && _this.isShippingSameAsBilling;\n var isValidShippingPostalCodeElement = (element === 'shippingPostalCode' || element === 'postalCode') && !_this.isShippingSameAsBilling;\n\n _logger.$logger.info('snt_is_valid_postal_code_element', { result: isValidBillingPostalCodeElement || isValidShippingPostalCodeElement });\n return isValidBillingPostalCodeElement || isValidShippingPostalCodeElement;\n };\n\n // Function which patches the cart with button parameters\n var patchCartWithButtonParams = function patchCartWithButtonParams() {\n _logger.$logger.info('snt_patch_cart_with_button_params', {\n buttonCartAmounts: _this.buttonCartAmounts\n });\n if (!_this.buttonCartAmounts) {\n // todo: Understand: No error?\n return;\n }\n var shippingAmt = _this.buttonCartAmounts.shippingAmt;\n var taxAmt = _this.buttonCartAmounts.taxAmt;\n\n if (isPatchCartRequired(shippingAmt, taxAmt)) {\n updateShippingTaxCharge(shippingAmt, taxAmt, 'DEFAULT');\n }\n };\n\n // Listener to fetch adapted shipping methods when locale changes\n // Todo: Cleanup: localeChange not required\n var localeChange = _angular.$rootScope.$on('localeChange', function (event) {\n _this.localeCountry = _index.$locale.country;\n if (!isCountryChange()) {\n disableDropDown();\n _this.fetchShippingMethods();\n }\n });\n\n // Todo: cleanup: not needed\n _angular.$rootScope.$on('$destroy', localeChange);\n\n // Listener which is responsible to patch Cart with button params if shipping address fields are empty\n var changeInShippingAddress = _angular.$rootScope.$on('change_in_shipping_address', function (event) {\n _logger.$logger.info('snt_change_in_shipping_address');\n if (isFormZipCodeEmpty() || isFormStateEmpty()) {\n disableDropDown();\n _this.isStorePickUp = false;\n patchCartWithButtonParams();\n }\n });\n\n _angular.$rootScope.$on('$destroy', changeInShippingAddress);\n\n this.setAllowPayWithSnT = function (value) {\n _logger.$logger.info('snt_set_allow_pay_with_snt', { value: value });\n _this.flags.allowPayWithSnT = value;\n };\n\n this.handleZipCodeBlur = function (event) {\n _logger.$logger.info('snt_handle_zip_code_blur', {\n allowSnTCall: _this.flags.allowSnTCall\n });\n\n if (_this.flags.allowSnTCall) {\n if (!_this.showShipping) {\n disableDropDown();\n _this.fetchShippingMethods();\n } else if (!isFormZipCodeEmpty() && !isFormStateEmpty()) {\n _this.trackZipCode.current = getCurrentZipCode();\n _this.trackState.current = getCurrentState();\n if (isZipCodeChange() || isStateChange()) {\n if (_this.isDomesticShippingMethodsSupported()) {\n disableDropDown();\n _this.fetchShippingMethods();\n } else {\n _this.setAllowPayWithSnT(true);\n }\n } else {\n _this.setAllowPayWithSnT(true);\n }\n } else if (!isFormAddressLine1Empty() && (isFormZipCodeEmpty() || isFormStateEmpty())) {\n if (isFormZipCodeEmpty()) {\n _this.trackZipCode.prev = '';\n }\n if (isFormStateEmpty()) {\n _this.trackState.prev = '';\n }\n if (_this.isDomesticShippingMethodsSupported()) {\n _angular.$rootScope.$emit('showErrorFields');\n disableDropDown();\n _this.isStorePickUp = false;\n disableStorePickUp();\n patchCartWithButtonParams();\n }\n } else {\n _logger.$logger.info('snt_handle_zip_code_blur_default', {\n showZipCode: false\n });\n _this.showZipCode = false;\n }\n }\n };\n\n // Listener which is responsible to call shipping tax API to fetch shipping methods for the given address\n var zipCodeBlur = _angular.$rootScope.$on('zip_code_blur', this.handleZipCodeBlur);\n\n _angular.$rootScope.$on('$destroy', zipCodeBlur);\n\n var handleZipCodeKeyPress = function handleZipCodeKeyPress(event, args) {\n var zipCodeElement = args && args.event && args.event.target && args.event.target.id;\n\n _logger.$logger.info('snt_handle_zip_code_key_press', {\n zipCodeElement: zipCodeElement\n });\n\n _this.setAllowPayWithSnT(true);\n /* On keypress of zip code element in US / CA , SnT should be applied before Pay.\n For other countries , flag will be set when SnT Call is made during Page load .\n */\n if (zipCodeElement && isValidPostalCodeElement(zipCodeElement) && _this.isDomesticShippingMethodsSupported() && isZipCodeChange()) {\n _this.setAllowPayWithSnT(false);\n }\n };\n\n var zipCodeKeyPress = _angular.$rootScope.$on('zip_code_keypress', handleZipCodeKeyPress);\n\n _angular.$rootScope.$on('$destroy', zipCodeKeyPress);\n\n /*\n Watcher on the ship to Billing checkbox\n Use cases\n ---------\n 1. User has selected a shipping method , unchecks the ship to my billing checkbox , if shipping address is empty\n we disable dropdown and patch cart with button params.\n 2. User has selected a shipping method , unchecks the ship to my billing checkbox , if shipping address is not empty,\n we fetch shipping methods based on shipping address.\n 3. User has selected a shipping method based on shipping address , checks the ship to my billing checkbox ,\n we fetch shipping methods based on billing address.\n */\n this.$watch('isShippingSameAsBilling', function (newVal, oldVal) {\n if (newVal !== oldVal) {\n _logger.$logger.info('snt_shipping_same_as_billing_watch');\n disableDropDown();\n _this.trackZipCode = {\n prev: '',\n current: ''\n };\n\n _this.trackState = {\n prev: '',\n current: ''\n };\n _this.fetchShippingMethods();\n _this.isStorePickUp = false;\n _this.setZipCode('snt_shipping_same_as_billing_watch');\n }\n });\n\n /*\n For instant update flows, the SnT service call is triggered when there is a change in\n i. State\n ii. Zip code\n Changes to any other address fields will not trigger the SnT call.\n The address fields are again compared during submit. If they are found to be different, SnT is again called.\n */\n\n // Watcher for billing address postal code\n this.$watch('billingAddress.postal_code', function (newVal, oldVal) {\n if (newVal !== oldVal) {\n _logger.$logger.info('snt_billing_address_postal_code_watch', {\n newVal: newVal,\n oldVal: oldVal\n });\n _this.shipAndTaxError = false;\n _this.setZipCode('snt_billing_address_postal_code_watch');\n }\n });\n\n // Watcher for shipping address postal code\n this.$watch('shippingAddress.postal_code', function (newVal, oldVal) {\n if (newVal !== oldVal) {\n _logger.$logger.info('snt_billing_address_postal_code_watch', {\n newVal: newVal,\n oldVal: oldVal\n });\n _this.shipAndTaxError = false;\n _this.setZipCode('snt_billing_address_postal_code_watch');\n }\n });\n\n // Watchers for billing address state change\n this.$watch('billingAddress.state', function (newVal, oldVal) {\n if (newVal !== oldVal) {\n _logger.$logger.info('snt_billing_address_state_watch', {\n newVal: newVal,\n oldVal: oldVal\n });\n if (_this.isShippingSameAsBilling && !isFormZipCodeEmpty() && _this.flags.allowSnTCall) {\n if (!isFormStateEmpty()) {\n if (_this.isDomesticShippingMethodsSupported()) {\n disableDropDown();\n _this.fetchShippingMethods();\n }\n }\n }\n }\n });\n\n // Watchers for billing address country change\n this.$watch('billingAddress.country', function (newVal, oldVal) {\n if (newVal !== oldVal) {\n _logger.$logger.info('snt_billing_address_country_watch', {\n newVal: newVal,\n oldVal: oldVal\n });\n if (_this.isShippingSameAsBilling && _this.flags.allowSnTCall) {\n if (!_this.isInstantUpdateFlow || !_this.isDomesticShippingMethodsSupported()) {\n _angular.$rootScope.$emit('hideErrorFields');\n _this.triggerFetchShippingMethods = true;\n }\n }\n }\n });\n\n // Todo: Undertand: Why watch? just call a function when set true\n this.$watch('triggerFetchShippingMethods', function (newVal, oldVal) {\n if (newVal !== oldVal) {\n _logger.$logger.info('snt_trigger_fetch_shipping_methods_watch', {\n newVal: newVal,\n oldVal: oldVal\n });\n if (newVal) {\n disableDropDown();\n _this.fetchShippingMethods();\n }\n }\n });\n\n // Watchers for shipping address country change\n this.$watch('shippingAddress.country', function (newVal, oldVal) {\n if (newVal !== oldVal) {\n _logger.$logger.info('snt_shipping_address_country_watch', {\n newVal: newVal,\n oldVal: oldVal,\n isShippingSameAsBilling: _this.isShippingSameAsBilling,\n allowSnTCall: _this.flags.allowSnTCall\n });\n if (!_this.isShippingSameAsBilling && _this.flags.allowSnTCall) {\n if (!_this.isInstantUpdateFlow || !_this.isDomesticShippingMethodsSupported()) {\n disableDropDown();\n _this.fetchShippingMethods();\n }\n }\n }\n });\n\n // Watchers for shipping address state change\n this.$watch('shippingAddress.state', function (newVal, oldVal) {\n if (newVal !== oldVal) {\n _logger.$logger.info('snt_shipping_address_state_watch', {\n newVal: newVal,\n oldVal: oldVal,\n isShippingSameAsBilling: _this.isShippingSameAsBilling,\n allowSnTCall: _this.flags.allowSnTCall\n });\n if (!_this.isShippingSameAsBilling && !isFormZipCodeEmpty() && _this.flags.allowSnTCall) {\n if (_this.isDomesticShippingMethodsSupported()) {\n disableDropDown();\n _this.fetchShippingMethods();\n }\n }\n }\n });\n\n // Function responsible to format each item to be shown in the dropdown\n var getShippingCharge = function getShippingCharge(charge, index) {\n\n var DASH = '--';\n var SPACE = ' ';\n\n function prefix(str, prefixStr) {\n if (str) {\n return (prefixStr ? prefixStr : '') + str;\n }\n return '';\n }\n\n var shippingMethod = charge.shipping_charge.shipping_method;\n\n var _ref = charge.shipping_charge || {},\n _ref$shipping_amount = _ref.shipping_amount,\n shipping_amount = _ref$shipping_amount === undefined ? {} : _ref$shipping_amount;\n // TODO: shipping amount and insurance amount formatting code can be refactored\n // Format shipping amount if available\n\n\n var shippingCurrency = '';\n\n if (shipping_amount) {\n var amount = (parseInt(charge.shipping_charge.shipping_amount.value, 10) / 100).toFixed(2);\n var currencyCode = charge.shipping_charge.shipping_amount.currency_code;\n var formattedAmount = (0, _index.formatCurrency)(amount, currencyCode);\n\n shippingCurrency = prefix(SPACE + formattedAmount, SPACE + DASH);\n }\n var shippingDeliveryTime = charge.shipping_charge.delivery_time;\n\n var displayShippingMethod = (0, _util.decodeEntities)(shippingMethod);\n\n var displayShippingDeliveryTime = prefix(shippingDeliveryTime, ' \\\\n ');\n\n // Format insurance if available\n var insuranceCurrency = '';\n\n if (charge.shipping_charge.insurance_amount) {\n var insuranceAmount = (parseInt(charge.shipping_charge.insurance_amount.value, 10) / 100).toFixed(2);\n var insuranceCurrencyCode = charge.shipping_charge.insurance_amount.currency_code;\n var formattedInsuranceAmount = (0, _index.formatCurrency)(insuranceAmount, insuranceCurrencyCode);\n\n insuranceCurrency = '' + SPACE + formattedInsuranceAmount;\n }\n\n var result = {\n\n shippingCharge: charge,\n shippingMethod: displayShippingMethod,\n shippingCurrency: shippingCurrency,\n shippingDeliveryTime: displayShippingDeliveryTime,\n insuranceCurrency: insuranceCurrency,\n index: index\n };\n\n _logger.$logger.info('snt_get_shipping_charge', {\n result: result\n });\n\n return result;\n };\n\n // Function responsible to set default shipping method\n var setDefaultShippingMethod = function setDefaultShippingMethod() {\n _logger.$logger.info('snt_set_default_shipping_method');\n\n var span = $('#shippingMethodsDropDown > div > span > span > span');\n\n span.html(_index.$locale.content.get('shippingMethod.selectMethod'));\n\n _this.isStorePickUp = false;\n\n disableStorePickUp();\n\n _this.shippingChargesList = [{}];\n };\n\n // Populates the shipping method dropdown with shipping charges .\n var populateShippingCharges = function populateShippingCharges() {\n _logger.$logger.info('snt_populate_shipping_charges');\n setDefaultShippingMethod();\n if (_this.charges.length >= 1) {\n enableDropDown();\n _this.shippingChargesList = _this.charges.map(getShippingCharge);\n _logger.$logger.info('snt_populate_shipping_charges_list', {\n shippingChargesList: _this.shippingChargesList\n });\n } else {\n disableDropDown();\n }\n };\n\n // Checks whether selected shipping method is store pick up or not\n var isStorePickUpMethod = function isStorePickUpMethod(shipping_method_type) {\n var result = shipping_method_type === 'STORE_PICKUP' || shipping_method_type === 'PICKUP';\n\n _logger.$logger.info('snt_is_store_pickup', {\n result: result\n });\n return result;\n };\n\n // Function called when user selects a shipping method from the dropdown\n this.selectShippingMethod = function (selectedShippingCharge) {\n _logger.$logger.info('snt_selected_shipping_method');\n _this.selectedMethod.index = selectedShippingCharge.index;\n _this.selectedShippingCharge = selectedShippingCharge;\n\n // deselect insurance checkbox\n _this.selectedShippingCharge.insuranceCheckboxChecked = false;\n _this.selectedShippingCharge.showInsuranceSelectCheckbox = false;\n\n var taxAmtApplied = void 0;\n var amountValue = void 0;\n var methodType = void 0;\n var insurance = void 0;\n var patchWithInsurance = false;\n\n if (_this.selectedShippingCharge && _this.selectedShippingCharge.shippingCharge && _this.selectedShippingCharge.shippingCharge.shipping_charge) {\n _logger.$logger.info('snt_selected_shipping_charge');\n\n var shippingCharge = _this.selectedShippingCharge.shippingCharge.shipping_charge;\n\n _this.flags.allowEditShipping = true;\n _this.flags.showSingleAddress = false;\n _this.isStorePickUp = false;\n if (isStorePickUpMethod(shippingCharge.shipping_method_type)) {\n _this.isStorePickUp = true;\n enableStorePickUp();\n }\n _this.shippingMethodNotSelected = false;\n methodType = shippingCharge.shipping_method_type;\n amountValue = safeConvert(shippingCharge.shipping_amount.value);\n taxAmtApplied = getTax(_this.selectedShippingCharge.shippingCharge);\n insurance = shippingCharge.insurance_amount && shippingCharge.insurance_amount.value;\n\n _logger.$logger.info('snt_selected_shipping_charge_insurance', {\n insurance: insurance\n });\n\n if (insurance) {\n insurance = safeConvert(insurance);\n /**\n * Patch Insurance if\n * 1. offer_insurance_option=false and there is insurance amount in response;\n * 2. offer_insurance_option=true and there is an insurance amount in response,\n * then user needs to select the apply insurance checkbox first\n */\n if (!shippingCharge.offer_insurance_option) {\n _logger.$logger.info('snt_selected_shipping_charge_dont_offer_insurance_option');\n patchWithInsurance = true;\n } else {\n _logger.$logger.info('snt_selected_shipping_charge_show_insurance_checkbox');\n\n _this.selectedShippingCharge.showInsuranceSelectCheckbox = true;\n }\n }\n } else {\n _logger.$logger.info('snt_no_selected_shipping_charge');\n _this.isStorePickUp = false;\n amountValue = _this.buttonCartAmounts.shippingAmt;\n taxAmtApplied = getTax();\n methodType = 'DEFAULT';\n }\n\n if (_this.isInstantUpdateFlow) {\n updateExternalCallbackOptions(_this.response.shipping_options_source, _this.selectedMethod.prevIndex, _this.selectedMethod.index);\n if (patchWithInsurance) {\n updateShippingTaxCharge(amountValue, taxAmtApplied, methodType, insurance);\n } else {\n updateShippingTaxCharge(amountValue, taxAmtApplied, methodType);\n }\n } else if (isPatchCartRequired(amountValue, taxAmtApplied)) {\n updateShippingTaxCharge(amountValue, taxAmtApplied, methodType);\n }\n\n _logger.$logger.info('snt_selected_shipping_method_final', {\n prevIndex: _this.selectedMethod.index,\n isInstantUpdateFlow: _this.isInstantUpdateFlow\n });\n _this.selectedMethod.prevIndex = _this.selectedMethod.index;\n };\n // Function called when user selects a optional insurance field in checkbox\n this.onInsuranceCheckboxChange = function (insuranceCheckboxChecked) {\n _this.selectedShippingCharge.insuranceCheckboxChecked = insuranceCheckboxChecked;\n var shippingCharge = _this.selectedShippingCharge.shippingCharge.shipping_charge;\n var insurance = safeConvert(shippingCharge.insurance_amount.value);\n var taxAmtApplied = getTax(_this.selectedShippingCharge.shippingCharge);\n var amountValue = safeConvert(shippingCharge.shipping_amount.value);\n var methodType = shippingCharge.shipping_method_type;\n\n _logger.$logger.info('snt_on_insurance_checkbox_change', {\n insuranceCheckboxChecked: insuranceCheckboxChecked,\n amountValue: amountValue,\n taxAmtApplied: taxAmtApplied,\n methodType: methodType,\n insurance: insurance\n });\n\n if (_this.selectedShippingCharge.insuranceCheckboxChecked === true) {\n // Patch the cart with insurance\n updateShippingTaxCharge(amountValue, taxAmtApplied, methodType, insurance);\n } else {\n // Patch the cart without insurance\n updateShippingTaxCharge(amountValue, taxAmtApplied, methodType);\n }\n };\n\n // Function responsible to populate Error fields\n var populateErrorFields = function populateErrorFields() {\n _logger.$logger.info('snt_populate_error_fields', {\n isShippingSameAsBilling: _this.isShippingSameAsBilling\n });\n disableDropDown();\n _this.showZipCode = false;\n if (_this.isShippingSameAsBilling) {\n _this.city = _this.billingAddress.city;\n _this.state = _this.billingAddress.state;\n } else {\n _this.city = _this.shippingAddress.city;\n _this.state = _this.shippingAddress.state;\n }\n };\n\n var populateCallbackShippingOptions = function populateCallbackShippingOptions() {\n _logger.$logger.info('snt_populate_callback_shipping_options', {\n charges: _this.charges\n });\n\n if (!_this.charges) {\n return;\n }\n _this.callbackShippingOptions = _this.charges.map(function (charge, index) {\n var shippingCharge = charge.shipping_charge;\n var taxCharge = charge.tax;\n var insurance = shippingCharge && shippingCharge.insurance_amount;\n var option = {};\n\n if (shippingCharge) {\n option.method = shippingCharge.shipping_method;\n option.amount = {\n value: safeConvert(shippingCharge.shipping_amount && shippingCharge.shipping_amount.value),\n currency: shippingCharge.shipping_amount && shippingCharge.shipping_amount.currency_code\n };\n option.is_default = shippingCharge.default_method;\n option.is_selected = false;\n if (insurance) {\n option.insurance = {\n value: safeConvert(insurance.value),\n currency: insurance.currency_code\n };\n _this.callbackInsuranceOffered = true;\n }\n if (taxCharge) {\n option.tax = {\n value: safeConvert(taxCharge.total_tax.value),\n currency: taxCharge.total_tax.currency_code\n };\n }\n }\n return option;\n });\n _logger.$logger.info('snt_populate_callback_shipping_options', {\n callbackShippingOptions: _this.callbackShippingOptions\n });\n };\n\n var updateExternalCallbackOptions = function updateExternalCallbackOptions(optionsSource, prevIndex, index) {\n if (optionsSource === 'CALLBACK' && _this.callbackShippingOptions) {\n if (!isNaN(prevIndex)) {\n _this.callbackShippingOptions[prevIndex].is_selected = false;\n }\n _this.callbackShippingOptions[index].is_selected = true;\n } else if (optionsSource === 'FALLBACK' && _this.fallbackShippingOptions) {\n if (!isNaN(prevIndex)) {\n _this.fallbackShippingOptions[prevIndex].is_selected = false;\n }\n _this.fallbackShippingOptions[index].is_selected = true;\n }\n _logger.$logger.info('snt_update_external_extcallback_options', {\n optionsSource: optionsSource,\n prevIndex: prevIndex,\n index: index,\n callbackShippingOptions: _this.callbackShippingOptions,\n fallbackShippingOptions: _this.fallbackShippingOptions\n });\n };\n\n // Find the charges of the default option and patch cart with corresponding values.\n var updateShippingTaxChargeWithDefaultOption = function updateShippingTaxChargeWithDefaultOption() {\n var shippingAmt = void 0;\n var taxAmt = void 0;\n var insuranceAmt = void 0;\n var methodType = void 0;\n // SnT service always returns FALLBACK response when no_shipping = 1\n\n if (_this.response.shipping_options_source === 'FALLBACK' && !isNaN(_this.defaultFallbackOptionIndex)) {\n var defaultOption = _this.fallbackShippingOptions[_this.defaultFallbackOptionIndex];\n\n if (defaultOption) {\n shippingAmt = defaultOption.amount && defaultOption.amount.value;\n taxAmt = defaultOption.tax && defaultOption.tax.value;\n insuranceAmt = defaultOption.insurance && defaultOption.insurance.value;\n }\n }\n _logger.$logger.info('snt_updateShippingTaxChargeWithDefaultOption', {\n shippingAmt: shippingAmt,\n taxAmt: taxAmt,\n methodType: methodType,\n insuranceAmt: insuranceAmt\n });\n // Todo: Understand: shouldnt this call be inside if\n updateShippingTaxCharge(shippingAmt, taxAmt, methodType, insuranceAmt);\n };\n\n /* Function which is responsible to process shipping tax response\n Use cases\n ---------\n 1. If shipping tax API returns error, show Error fields.\n 2. (i) WPS: If response has shipping charges and shipping options are to be shown, populate the dropdown with charges else patch cart\n with shipping amount returned.\n (ii)Instant Update: If the shipping region is unsupported, display error message. Otherwise the above behavior applies.\n 3. If no_shipping = 1\n (i) WPS: If profile_override = true , apply shipping from button if it is not empty.\n (ii) Instant Update: Do not display the shipping options. Apply the default fallback(or callback) shipping option charges.\n 4. Apply tax if applicable.\n */\n var processShippingAndTaxResponse = function processShippingAndTaxResponse() {\n _logger.$logger.info('snt_processShippingAndTaxResponse');\n var applicableShippingAmt = _this.buttonCartAmounts && _this.buttonCartAmounts.shippingAmt;\n\n // Set selected shipping charge as null to disallow form submit without selecting a shipping method.\n _this.selectedShippingCharge = null;\n\n // Handle error from service\n if (_this.shipAndTaxError) {\n populateErrorFields();\n }\n if (_this.isInstantUpdateFlow) {\n _logger.$logger.info('snt_is_instant_update_flow');\n if (!_this.response.shipping_region_supported) {\n _logger.$logger.info('snt_shipping_region_not_supported');\n\n _this.flags.instantUpdateShippingRegionSupported = false;\n\n var msgsArray = errorHandlerHelper.getPageError('shippingMethod.shippingRegionUnsupported', { merchant: _this.nonEmptyMerchantDisplayName });\n\n // As updatePageLevelErrorMessage is an optional parameter we are\n // checking for the parameter before calling the function\n if (_this.updatePageLevelErrorMessage) {\n _this.updatePageLevelErrorMessage(msgsArray);\n }\n\n return;\n }\n if (_this.response.shipping_options_source === 'CALLBACK') {\n _logger.$logger.info('snt_shipping_options_source_is_callback');\n populateCallbackShippingOptions();\n }\n if (_this.showShipping) {\n _logger.$logger.info('snt_instant_update_show_shipping_is_true');\n // this.showShipping is true when merchant passes no_shipping parameter with value 0 or 2.\n // In this case, the shipping values from the SnT response is considered.\n if (responseHasShippingCharges()) {\n populateShippingCharges();\n patchCartWithButtonParams();\n }\n } else {\n // this.showShipping is false when merchant passes no_shipping parameter with value 1\n // In this case, shipping options aren't shown. The default fallback shipping option is considered.\n _logger.$logger.info('snt_show_shipping_is_not_true');\n _this.showShippingMethodSection = false;\n _this.flags.showShippingLabel = false;\n updateShippingTaxChargeWithDefaultOption();\n }\n return;\n }\n // non instant update flow, no_shipping = 0\n else if (_this.showShipping) {\n _logger.$logger.info('snt_show_shipping_is_true');\n if (responseHasShippingCharges()) {\n if (_this.response.show_shipping_options) {\n _logger.$logger.info('snt_show_shipping_options_is_true');\n populateShippingCharges();\n } else {\n _logger.$logger.info('snt_show_shipping_options_is_not_true');\n // shippingCharges with out amount is returned in the charges array even shipping is not\n // configured in the profile for the merchant. so safe to check for null values before\n // accessing shipping_amount.\n\n var _ref2 = _this.response.charges[0].shipping_charge || {},\n _ref2$shipping_amount = _ref2.shipping_amount;\n\n _ref2$shipping_amount = _ref2$shipping_amount === undefined ? {} : _ref2$shipping_amount;\n var value = _ref2$shipping_amount.value;\n // call safeConvert only when value is present\n\n if (value) {\n applicableShippingAmt = safeConvert(value);\n }\n _this.showShippingMethodSection = false;\n _this.flags.showShippingLabel = false;\n }\n }\n }\n // not instant update flow, no_shipping = 1 , profile_override = true , shipping passed in button.\n else if (_this.response.profile_override_allowed) {\n _logger.$logger.info('snt_profile_override_allowed');\n // If shipping Amt is not empty , set applicable shipping amt for patch cart\n if (_this.buttonCartAmounts && _this.buttonCartAmounts.shippingAmt) {\n applicableShippingAmt = _this.buttonCartAmounts.shippingAmt;\n _this.showShippingMethodSection = false;\n _this.flags.showShippingLabel = false;\n }\n }\n\n var applicableTaxAmt = getTax();\n\n // Patch if shipping amt or tax amount has changed\n if (isPatchCartRequired(applicableShippingAmt, applicableTaxAmt)) {\n updateShippingTaxCharge(applicableShippingAmt, applicableTaxAmt, 'DEFAULT');\n }\n };\n\n var clearFallbackOptionsSelectionFlags = function clearFallbackOptionsSelectionFlags() {\n _logger.$logger.info('snt_clearFallbackOptionsSelectionFlags', {\n fallbackShippingOptions: _this.fallbackShippingOptions\n });\n if (!_this.fallbackShippingOptions) {\n return;\n }\n for (var i = 0; i < _this.fallbackShippingOptions.length; i++) {\n _this.fallbackShippingOptions[i].is_selected = false;\n }\n };\n\n // Function which gets shipping and tax charges from the merchant profile.\n this.fetchShippingMethods = function () {\n\n _this.flags.showShippingLabel = true;\n _this.flags.instantUpdateShippingRegionSupported = true;\n _this.selectedMethod = {};\n _this.response = {};\n _this.callbackShippingOptions = [];\n _this.callbackInsuranceOffered = false;\n _this.showShippingMethodSection = true;\n _this.shippingChargesList = [{}];\n\n // Todo: Understand: What?\n _this.setAllowPayWithSnT(false);\n\n clearFallbackOptionsSelectionFlags();\n\n var shippingAddress = _this.billingAddress;\n\n if (!_this.isShippingSameAsBilling) {\n shippingAddress = _this.shippingAddress;\n }\n\n _this.trackZipCode.prev = shippingAddress.postal_code;\n _this.trackState.prev = shippingAddress.state;\n\n _this.dropDownBackground = 'processingBackground';\n\n _this.selectedShippingMethodText = 'disableShippingMethod';\n\n _this.changeShippingMethod = 'changeShippingMethodDisabled';\n\n var cartWeight = void 0,\n discount = void 0,\n cartHandling = void 0,\n currCode = void 0;\n\n if (_this.models.checkoutCart.cartWeight && _this.models.checkoutCart.cartWeight.value) {\n cartWeight = {\n value: Number(_this.models.checkoutCart.cartWeight.value).toFixed(2),\n unit: _this.models.checkoutCart.cartWeight.unit\n };\n }\n\n if (_this.models.checkoutCart.purchase.amounts.discount && _this.models.checkoutCart.purchase.amounts.discount.amount) {\n discount = Number(_this.models.checkoutCart.purchase.amounts.discount.amount).toFixed(2);\n }\n\n if (_this.models.checkoutCart.purchase.amounts.handling_fee && _this.models.checkoutCart.purchase.amounts.handling_fee.amount) {\n cartHandling = Number(_this.models.checkoutCart.purchase.amounts.handling_fee.amount).toFixed(2);\n }\n\n currCode = _this.models.checkoutCart.purchase.amounts.total.currency_code;\n\n var sntRequest = {\n 'currency_code': _this.currencyCode,\n 'cart_weight': cartWeight,\n 'cart_handling': { value: cartHandling, currency_code: currCode },\n 'discount': { value: discount, currency_code: currCode },\n 'item_list': _this.models.checkoutCart.purchase.items,\n 'tax_on_shipping_required': _this.showShipping, // tax on shipping is not applicable when no_shipping is 1\n 'merchant_id': _this.models.checkoutPayee.merchant.id,\n 'locale': _index.$locale.lang + '_' + _index.$locale.country\n };\n\n _logger.$logger.info('snt_fetch_shipping_methods', {\n sntRequest: sntRequest,\n state: shippingAddress.state,\n postal_code: shippingAddress.postal_code\n });\n\n sntRequest.address = {\n 'line1': shippingAddress.line1,\n 'line2': shippingAddress.line2,\n 'city': shippingAddress.city,\n 'state': shippingAddress.state,\n 'postal_code': shippingAddress.postal_code,\n 'country_code': shippingAddress.country,\n 'id': _this.token\n };\n\n if (_this.isInstantUpdateFlow) {\n _this.trackSntReq.address = sntRequest.address;\n sntRequest.external_callback_options = _this.models.checkoutCart.getExternalCallbackOptions();\n // TODO: For EC flows, populate sntRequest.token as well.\n }\n _this.shippingMethods = new _index2.$ShippingMethodModel(sntRequest);\n\n _this.shippingMethods.save({\n data: _this.shippingMethods,\n\n contingencies: {\n VALIDATION_ERROR: function VALIDATION_ERROR(name, err) {\n _logger.$logger.info('snt_get_shipping_methods_VALIDATION_ERROR');\n _this.shipAndTaxError = true;\n if (!isFormZipCodeEmpty() || !isFormStateEmpty()) {\n _angular.$rootScope.$emit('showErrorFields');\n }\n populateErrorFields();\n patchCartWithButtonParams();\n },\n INTERNAL_SERVICE_ERROR: function INTERNAL_SERVICE_ERROR(name, err) {\n _logger.$logger.info('snt_get_shipping_methods_INTERNAL_SERVICE_ERROR');\n _this.shipAndTaxError = true;\n if (!isFormZipCodeEmpty() || !isFormStateEmpty()) {\n _angular.$rootScope.$emit('showErrorFields');\n }\n populateErrorFields();\n patchCartWithButtonParams();\n }\n },\n success: function success(result) {\n _logger.$logger.info('snt_get_shipping_methods_success');\n _this.response = result;\n _this.charges = result.charges;\n _this.triggerFetchShippingMethods = false;\n _this.setAllowPayWithSnT(true);\n processShippingAndTaxResponse();\n }\n });\n };\n _angular.$rootScope.$on('submission_triggered', function () {\n _logger.$logger.info('snt_submission_triggered');\n disableDropDown();\n _this.fetchShippingMethods();\n });\n },\n\n populate: function populate() {\n\n this.currencyCode = this.models.checkoutCart.purchase.amounts.total.currency_code;\n this.isInstantUpdateFlow = this.models.checkoutCart.instantUpdateIntegration;\n if (this.isInstantUpdateFlow) {\n this.fallbackShippingOptions = this.models.checkoutCart.getExternalCallbackOptions().fallback_shipping_options;\n if (this.fallbackShippingOptions) {\n this.defaultFallbackOptionIndex = _index.$util.findIndex(this.fallbackShippingOptions, function (option) {\n return option.is_default;\n });\n }\n }\n\n this.buttonCartAmounts = {\n shippingAmt: this.buttonParams.shipping ? Number(this.buttonParams.shipping.amount) : undefined,\n taxAmt: this.buttonParams.tax ? Number(this.buttonParams.tax.amount) : undefined,\n discount: this.models.checkoutCart.purchase.amounts.discount ? Number(this.models.checkoutCart.purchase.amounts.discount.amount) : undefined,\n subTotal: Number(this.models.checkoutCart.purchase.amounts.subtotal.amount),\n total: Number(this.buttonParams.total.amount)\n };\n\n var appDataFlags = this.models.checkoutAppData && this.models.checkoutAppData.flags;\n\n // We need merchantDisplayName to be non empty and if merchant_name or brand_name is undefined\n // then we need the value of merchantDisplayName to be 'the merchant' as it is the first word\n // in shippingMethod.shippingRegionUnsupported content key used below\n this.nonEmptyMerchantDisplayName = this.models.checkoutAppData.getMerchantDisplayName({\n nonEmptyReturnValue: true,\n isSentenceBeginning: true\n });\n\n this.isBuyNow = appDataFlags && appDataFlags.is_buy_now_flow;\n\n this.isCartUpload = appDataFlags && appDataFlags.is_cart_upload_flow;\n\n if (this.models.checkoutCart.cartWeight) {\n if (this.models.checkoutCart.cartWeight.value) {\n this.cartWeight = {\n value: Number(this.models.checkoutCart.cartWeight.value).toFixed(2),\n unit: this.models.checkoutCart.cartWeight.unit\n };\n }\n }\n\n if (this.models.checkoutCart.purchase.amounts.discount) {\n if (this.models.checkoutCart.purchase.amounts.discount.amount) {\n this.cartDiscount = {\n value: Number(this.models.checkoutCart.purchase.amounts.discount.amount).toFixed(2),\n currency_code: this.currencyCode\n };\n }\n }\n\n if (this.models.checkoutCart.purchase.amounts.handling_fee) {\n this.buttonCartAmounts.handlingAmt = Number(this.models.checkoutCart.purchase.amounts.handling_fee.amount);\n }\n\n if (this.models.checkoutCart.purchase.amounts.insurance) {\n this.buttonCartAmounts.insuranceAmt = Number(this.models.checkoutCart.purchase.amounts.insurance.amount);\n }\n\n if (this.models.checkoutCart.purchase.amounts.shipping_discount) {\n this.buttonCartAmounts.shippingDiscountAmt = Number(this.models.checkoutCart.purchase.amounts.shipping_discount.amount);\n }\n\n this.previousCosts = {\n shippingAmount: this.models.checkoutCart.purchase.amounts.shipping ? Number(this.models.checkoutCart.purchase.amounts.shipping.amount) : undefined,\n taxAmount: this.models.checkoutCart.purchase.amounts.tax ? Number(this.models.checkoutCart.purchase.amounts.tax.amount) : undefined\n };\n\n if (!this.isDomesticShippingMethodsSupported()) {\n this.triggerFetchShippingMethods = true;\n }\n\n _logger.$logger.info('snt_populate', {\n buttonCartAmounts: this.buttonCartAmounts,\n previousCosts: this.previousCosts\n });\n\n // trigger zipCodeBlur handler to fetch shipping methods in case of pre-filled address\n this.handleZipCodeBlur();\n }\n }\n}); /**\n * Created by aaramamurthy on 2/29/16.\n *\n * Component responsible to show shipping methods set by merchant to a buyer during guest checkout flow.\n */\n\n_angular.$rootScope;\n\n_index.$Component;\n\n_index.$locale;\n\n_index.formatCurrency;\n\n_index.$feature;\n\n_index.$util;\n\n_logger.$logger;\n\n_index2.$ShippingMethodModel;\n\n_index3.$CheckoutAppDataModel;\n\n_index3.$CheckoutCartModel;\n\n_index3.$CheckoutSessionModel;\n\n_index3.$CheckoutPayeeModel;\n\n_util.decodeEntities;\nmodule.exports = exports['default'];\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/jquery/dist/jquery.min.js\")))\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest/select-shipping-method/shipping-method-dropdown/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**\n * Created by aaramamurthy on 3/22/16.\n *\n * This is a dropdown multiline directive customised for shipping charges dropdown .\n * Existing multiline dropdown does not provide the functionality to have element based styling inside an dropdown item.\n * Existing multiline dropdown also shows an empty object in the dropdown if passed.\n * This directive populates the dropdown by making shipping amount as bold .\n * This directive populates the dropdown with items which is a valid object and has a value.\n */\n\n\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/squid/dist/index.js\"), __webpack_require__(\"../node_modules/jquery/dist/jquery.min.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (squid, $) {\n\n squid.module('xo-shipping-method-dropdown.directive', ['squid']).directive('xoShippingMethodDropDown', ['$timeout', function ($timeout) {\n return {\n restrict: 'A',\n\n require: '?ngModel',\n\n link: function link($scope, $select, attrs, ngModel) {\n\n var isListVisible = false;\n var listCreated = false;\n\n $select = $($select);\n\n var $span = $('
');\n var $container = $('
');\n var $list;\n\n function updateCover() {\n $timeout(function () {\n var span = $span.find('span span');\n\n var text = $select.find('[selected]').text().replace(/\\\\n/gi, '
').trim();\n\n var shippingAmount = text.substring(text.search('--'), text.search('
'));\n\n var boldText = text.replace(shippingAmount, shippingAmount.bold());\n\n boldText = boldText.replace('--', '-');\n\n span.html(boldText);\n }, 10);\n }\n\n function createList($options) {\n if ($options.length < 2) {\n return;\n }\n\n function getModel() {\n var modelName;\n var model;\n var subParts;\n\n if ($select.attr('ng-options')) {\n modelName = $select.attr('ng-options').substring($select.attr('ng-options').indexOf('in ') + 3, $select.attr('ng-options').length);\n } else {\n var $option = $($select.find('[ng-repeat]')[0]);\n\n modelName = $option.attr('ng-repeat').substring($option.attr('ng-repeat').indexOf('in ') + 3, $option.attr('ng-repeat').length);\n }\n\n // This is to handle cases like card.billingAddress\n if (modelName.indexOf('.') !== -1) {\n subParts = modelName.split('.');\n model = $scope;\n\n for (var i = 0; i < subParts.length; i++) {\n model = model[subParts[i]];\n }\n } else {\n // And this is to handle straightforward model names\n model = $scope[modelName];\n }\n\n return model;\n }\n\n function hideList(event) {\n $list.hide();\n $container.append($list);\n isListVisible = false;\n $container.removeClass('open');\n }\n\n function positionList() {\n $list.css('left', $container.offset().left + 'px');\n $list.css('top', $container.offset().top + $container.height() + 'px');\n $list.css('width', $container.width() + 'px');\n }\n\n function setFocusOnSelected() {\n var $selected = $select.find('[selected]');\n\n if ($selected.length) {\n var $item = $list.find('[data-value=\"' + $selected.attr('value') + '\"]');\n\n $item.focus();\n } else {\n $list.find('li')[0].focus();\n }\n }\n\n function showList() {\n $('body').append($list);\n $container.addClass('open');\n $list.show();\n positionList();\n isListVisible = true;\n setFocusOnSelected();\n }\n\n function processContainerKeypress(event) {\n var keyCode = event.keyCode;\n\n if (keyCode === 13 || keyCode === 40) {\n // enter or down arrow\n if (!isListVisible) {\n showList();\n } else {\n hideList();\n $container.focus();\n }\n } else if (keyCode === 27) {\n // escape\n if (isListVisible) {\n hideList();\n $container.focus();\n }\n }\n }\n\n if ($list) {\n $list.remove();\n }\n\n $list = $('
    ');\n\n Array.prototype.forEach.call($options, function (option) {\n var $option = $(option);\n var value = $option.attr('value');\n\n var text = option.innerHTML.replace(/\\\\n/gi, '
    ');\n\n var shippingAmount = text.substring(text.search('--'), text.search('
    '));\n\n var boldText = text.replace(shippingAmount, shippingAmount.bold());\n\n boldText = boldText.replace('--', '- ');\n\n if (boldText.indexOf('content(') !== -1) {\n boldText = $scope.content(boldText.substring(boldText.indexOf('(\\'') + 2, boldText.indexOf('\\')')));\n }\n\n var html = '
  • ' + boldText + '
  • ';\n if (value !== '') {\n $list.append($(html));\n }\n });\n\n $container.append($list);\n $list.hide();\n\n $($list.find('li')).click(function (event) {\n var $target = $(event.target);\n var value = $target.data('value');\n\n if ($target[0].nodeName.toLowerCase() !== 'li') {\n value = $target.parent().data('value');\n }\n\n if (typeof value !== 'undefined') {\n $select.find('option').removeAttr('selected');\n $select.find('option[value=\"' + value + '\"]').attr('selected', 'selected');\n $select.find('option').removeProp('selected');\n $select.find('option[value=\"' + value + '\"]').prop('selected', 'selected');\n } else {\n value = $target.html().replace(/\\//gi, '\\\\n');\n $select.val(value);\n }\n\n if ($select.attr('ng-model')) {\n if ($select.attr('ng-options') || $select.find('[ng-repeat]').length) {\n /* This parses the 'ng-options' directive and returns the options model.\n For example: If you have: ng-options='opt as opt.label for opt in options'\n Here it will parse this attribute and return 'options */\n var model = getModel();\n\n ngModel.$setViewValue(model[value]);\n } else {\n ngModel.$setViewValue(value);\n }\n }\n\n updateCover();\n hideList();\n });\n\n var $innerContainer = $container.find('.innerContainer');\n\n $container.click(function (event) {\n if (isListVisible) {\n hideList();\n $container.focus();\n } else {\n showList();\n }\n });\n\n $container.keydown(function (event) {\n processContainerKeypress(event);\n });\n\n $innerContainer.keydown(function (event) {\n processContainerKeypress(event);\n });\n\n $list.find('li').keydown(function (event) {\n var keyCode = event.keyCode;\n var $target = $(event.target);\n\n if (keyCode === 13) {\n // enter\n $target.click();\n event.stopPropagation();\n } else if (keyCode === 27) {\n // escape\n if (isListVisible) {\n hideList();\n $container.focus();\n event.stopPropagation();\n }\n } else if (keyCode === 40) {\n // down arrow\n if (!$target.is(':last-of-type')) {\n $target.next().focus();\n event.preventDefault();\n event.stopPropagation();\n }\n } else if (keyCode === 38) {\n // up arrow\n if (!$target.is(':first-of-type')) {\n $target.prev().focus();\n }\n event.preventDefault();\n event.stopPropagation();\n }\n });\n\n $(window).resize(function () {\n if (isListVisible) {\n positionList();\n }\n });\n\n $(window).bind('hashchange', function () {\n if (isListVisible) {\n hideList();\n }\n });\n\n $(document).click(function (event) {\n var $target = $(event.target);\n\n if (!($target.is($container) || $.contains($container.get()[0], $target.get()[0])) && isListVisible) {\n hideList();\n }\n });\n\n listCreated = true;\n updateCover();\n }\n\n function render() {\n var options = $select.find('option');\n\n if (!listCreated) {\n createList(options);\n }\n }\n\n $select.wrap($container);\n $container = $select.parent();\n\n // Change class names to enable styling of hover/focus states\n $select.bind('mouseenter focus', function () {\n $span.addClass('active');\n });\n\n // Change class names to enable styling of hover/focus states\n $select.bind('mouseleave blur', function () {\n $span.removeClass('active');\n });\n\n $select.after($span);\n\n $select.addClass('replaced');\n\n $select.attr('tabindex', '-1');\n\n if (attrs['default']) {\n var defaultOption = document.createElement('option');\n\n defaultOption.innerText = attrs['default'];\n $select.append(defaultOption);\n }\n\n if ($select.attr('ng-options') || $select.find('[ng-repeat]').length) {\n $scope.$watch(attrs.ngModel, function () {\n render();\n });\n } else {\n $timeout(function () {\n $scope.$broadcast('pageRendered');\n }, 0);\n }\n\n $scope.$on('pageRendered', function () {\n render();\n });\n }\n };\n }]);\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest/select-shipping-method/styles.less\":\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest/select-shipping-method/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
    \\n \\n\\n
    \\n

    \\n {{content('shippingMethod.guestMerchantOptions')}}\\n

    \\n\\n

    \\n {{content('shippingMethod.zipCode')}}:\\n

    \\n\\n

    \\n {{zipCode}}\\n

    \\n\\n

    \\n [{{city}},{{state}} {{zipCode}}]\\n

    \\n\\n
    \\n\\n
    \\n\\n \\n\\n
    \\n\\n
    \\n\\n \\n \\n\\n
    \\n\\n
    \\n\\n \\n\\n
    \\n\\n
    \\n
    \\n

    \\n
    \\n
    \\n\\n
    \\n {{content('shippingMethod.storeLocationInfo')}}\\n
    \\n\\n\\n
    \\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest/sepa/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _errorHandlerHelper = __webpack_require__(\"../node_modules/xo-guest-components/src/guest/lib/errorHandlerHelper.js\");\n\nvar errorHandlerHelper = _interopRequireWildcard(_errorHandlerHelper);\n\nvar _util = __webpack_require__(\"../node_modules/xo-wallet-components/src/fi-contingency-list/util.js\");\n\nvar _index = __webpack_require__(\"../node_modules/xo-models/src/fi/index.js\");\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-guest-components/src/guest/sepa/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } }\n\nexports['default'] = _squid.$Component.extend('xoGuestSepaLightbox', {\n tag: 'xo-guest-sepa-lightbox',\n template: _template2['default'],\n\n props: {\n token: {\n type: 'var',\n required: false\n },\n address: {\n type: 'var',\n required: false\n },\n singlePagePaymentForm: {\n type: 'var',\n required: false\n },\n updatePageLevelErrorMessage: {\n type: 'var',\n required: false\n },\n validated: {\n type: 'var',\n required: false\n },\n sepa: {\n type: 'var',\n required: false\n },\n onboard: {\n type: 'var',\n required: false\n },\n sectionElement: {\n type: 'var',\n required: false\n },\n flags: {\n type: 'var',\n required: false\n },\n isUnbranded: {\n type: 'var',\n required: false\n },\n doneFn: {\n type: 'var',\n required: false\n }\n },\n\n lifecycle: {\n enter: function enter() {},\n populate: function populate() {\n var _this = this;\n\n var openSepa = function openSepa() {\n var form = _this.singlePagePaymentForm;\n var formValid = true;\n var firstFailedElementName = determineFirstFailedElement();\n\n // Clear existing error messages\n _this.validated = true;\n\n _this.noErrorShowSepa = false;\n\n function determineFirstFailedElement() {\n var result = void 0;\n var sepaNotRequiredFields = ['sepaAgree', 'sepaGuestAgree', 'guestagree', 'agree'];\n\n for (var i in form) {\n if (form[i] && form[i].hasOwnProperty && form[i].hasOwnProperty('$valid') && sepaNotRequiredFields.indexOf(form[i].$name) === -1 && // Dont check validity for fields we don't need for SEPA\n !form[i].$valid) {\n formValid = false;\n result = form[i].$name;\n break;\n }\n }\n\n return result;\n }\n // If form is valid then call validateBank Api and then open sepa\n\n if (formValid) {\n _this.addBankModel = new _index.$AddBankModel({\n user: _this.onboard.user,\n bank: _this.onboard.bank\n });\n\n _this.addBankModel.action('validate', {\n\n data: _this.addBankModel.getBankData(),\n\n resultModel: {},\n\n success: function success(data) {\n _this.addBankModel.creditorDetails = data.creditorDetails;\n _this.addBankModel.fiDetails = data.fiDetails;\n _this.noErrorShowSepa = true;\n (0, _angular.$timeout)(function () {\n window.scrollTo(0, 0);\n }, 100);\n },\n\n contingencies: {\n VALIDATE_BANK_CONTINGENCY: function VALIDATE_BANK_CONTINGENCY(name, data) {\n var pageLevelErrorObj = _util.$fiErrorUtil.addPageErrors(data, 'bank');\n\n _this.hideSepa();\n _this.updatePageLevelErrorMessage(pageLevelErrorObj.msgs, pageLevelErrorObj.type);\n _util.$fiErrorUtil.addFieldErrors(data, _this.sectionElement);\n firstFailedElementName = determineFirstFailedElement();\n errorHandlerHelper.scrollToElement(firstFailedElementName);\n }\n },\n validation: function validation(data) {\n\n var returnObj = { fields: [] };\n\n _this.hideSepa();\n\n angular.forEach(data.fields || [], function (field) {\n returnObj.fields.push(field.property);\n });\n\n errorHandlerHelper.addFieldError(returnObj);\n\n firstFailedElementName = determineFirstFailedElement();\n errorHandlerHelper.scrollToElement(firstFailedElementName);\n }\n });\n } else {\n _this.hideSepa();\n errorHandlerHelper.scrollToElement(firstFailedElementName);\n }\n };\n\n this.hideSepa = function () {\n _this.noErrorShowSepa = false;\n _this.sepa.show = false;\n };\n\n // Added the sepa content change based on US755520\n var setSepaOverlayContent = function setSepaOverlayContent() {\n _this.sepaTitle = _this.isUnbranded && _this.flags.show_sepa_overlay ? 'DEMemberGuest.sepaTitleUnbranded' : 'DEMemberGuest.sepaTitle';\n _this.sepaAgreement = _this.isUnbranded && _this.flags.show_sepa_overlay ? 'DEMemberGuest.ddAgreementUnbrandedPara1' : 'DEMemberGuest.ddAgreementPara1';\n if (_this.flags.show_sepa_overlay) {\n if (_this.flags.isUnbranded && _this.flags.commit) {\n _this.sepaSubmit = 'common.acceptAndComplete';\n } else {\n _this.sepaSubmit = 'common.acceptAndContinue';\n }\n } else {\n _this.sepaSubmit = 'header.close';\n }\n };\n\n this.$watch('sepa.show', function (newVal, oldVal) {\n if (newVal) {\n openSepa();\n }\n });\n\n this.$watch('flags.show_sepa_overlay', function (newVal, oldVal) {\n if (newVal) {\n setSepaOverlayContent();\n }\n });\n\n setSepaOverlayContent();\n }\n },\n actions: {\n closeSepa: function closeSepa($event) {\n $event.preventDefault();\n this.hideSepa();\n },\n acceptSepa: function acceptSepa($event) {\n $event.preventDefault();\n\n this.hideSepa();\n this.sepa.sepaGuestAgree = true;\n this.sepa.sepaAgree = true;\n if (this.flags.show_sepa_overlay) {\n this.doneFn();\n }\n }\n }\n});\n\n\n_squid.$Component;\n\n_util.$fiErrorUtil;\n\n_index.$AddBankModel;\n\n_angular.$timeout;\nmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest/sepa/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"\\n
    \\n
    \\n\\n
    \\n
    \\n\\n\\n close\\n\\n

    {{ content(sepaTitle) }}

    \\n\\n

    {{ content(sepaAgreement) }}

    \\n\\n
    \\n {{ content('DEMemberGuest.accountCarrier') }}\\n
    {{addBankModel.user.first_name}} {{addBankModel.user.last_name}}
    \\n
    {{address.line1}}
    \\n
    {{address.line2}}
    \\n
    {{address.postal_code}} {{address.city}}
    \\n
    \\n\\n
    \\n

    \\n {{content('DEMemberGuest.IBAN')}}
    \\n {{addBankModel.fiDetails.piDetails.piAccountNumber}}\\n

    \\n\\n

    \\n {{content('DEMemberGuest.bankName')}}
    \\n {{addBankModel.fiDetails.piDetails.isssuerDetails.name}}\\n

    \\n\\n

    \\n {{content('DEMemberGuest.bic')}}
    \\n {{addBankModel.fiDetails.piDetails.bic}}\\n

    \\n
    \\n\\n \\n\\n
    {{ content('base.payPal') }}
    \\n
    \\n
    \\n
    \\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest/sticky.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.setStickyInstrument = undefined;\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\n/**\n * Makes billing agreement financial instrument sticky if necessary\n *\n * @param {CheckoutSession} checkoutSession\n * @return {Promise}\n */\nvar setStickyInstrument = exports.setStickyInstrument = function setStickyInstrument(checkoutSession) {\n if (!checkoutSession) {\n throw new TypeError('missing checkoutSession');\n }\n\n if (checkoutSession.selectedFuturePaymentInstrument) {\n // session already has a sticky instrument\n _logger.$logger.info('no_setStickyFI_call_checkoutsession_already_has_sticky_fi');\n return _squid.$promise.resolve();\n }\n\n var stickyInstrument = checkoutSession.getSelectedStickyInstrument();\n\n // billing agreement is not supported for WPS and guest transactions\n // we dont do setStickyFI call in both WPS and guest transactions\n if (stickyInstrument) {\n _logger.$logger.info('calling_checkoutsession_setStickyFI_API');\n return checkoutSession.action('setStickyFI', {\n data: {\n instrument_id: stickyInstrument.instrument_id\n }\n });\n }\n\n _logger.$logger.info('no_setStickyFI_call_checkoutsession_has_no_selected_sticky_fi');\n return _squid.$promise.resolve();\n};\n\n_squid.$promise;\n\n_logger.$logger;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
    \\n\\n \\n \\n\\n \\n \\n \\n\\n \\n\\n
    \\n\\n \\n\\n
    \\n \\n \\n \\n\\n
    \\n \\n
    \\n\\n
    \\n \\n\\n
    \\n \\n \\n
    \\n\\n \\n\\n\\n

    {{content('addressBook.billingAddress')}}

    \\n
    \\n \\n
    \\n\\n\\n
    \\n \\n \\n
    \\n\\n

    {{content('shipping.shippingLabel')}}

    \\n\\n
    \\n
    \\n {{content('shipping.shippingTitle')}}\\n {{content('common.change')}}\\n
    \\n
    \\n {{shippingAddress.displayLine1}}
    \\n {{shippingAddress.displayLine2}}
    \\n {{shippingAddress.displayLine3}}\\n
    \\n
    \\n\\n
    \\n\\n

    {{content('shipping.shippingTitle')}}

    \\n\\n \\n\\n \\n\\n \\n\\n
    \\n\\n
    \\n \\n \\n \\n
    \\n\\n
    \\n

    {{content('addPhone.contactInformation')}}

    \\n

    \\n \\n \\n
    \\n\\n \\n\\n
    \\n
    \\n {{ content('billingAgreement.invoicingRegEMsg', {merchantName: nonEmptyMerchantDisplayName, amountInInvCurrency: amountInInvCurrency}) }}\\n
    \\n
    \\n {{ content('billingAgreement.invoicingRegEMsgWithCurrConversion', {amountInPayerCurrency: amountInPayerCurrency, merchantName: nonEmptyMerchantDisplayName, amountInInvCurrency: amountInInvCurrency}) }}\\n
    \\n
    \\n\\n
    \\n
    \\n

    {{content('common.textAboveAgreeButton')}}

    \\n
    \\n\\n \\n {{content('common.back')}}\\n \\n\\n \\n \\n\\n
    \\n
    \\n
    \\n
    \\n
    \\n\\n\\n \\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest/tesla-add-bank/constants.js\":\n/***/ (function(module, exports) {\n\n\n\nexports.__esModule = true;\n// Default experience keys - For \"DE\" and other flows.\nvar DEFAULT_TOGGLE_FI = exports.DEFAULT_TOGGLE_FI = [{\n type: 'bank',\n label: 'bank.bank'\n}, {\n type: 'card',\n label: 'bank.card'\n}];\n\n// Keys when \"Bank\" is selected as default.\nvar TESLA_TOGGLE_FI_BANK = exports.TESLA_TOGGLE_FI_BANK = [{\n type: 'bank',\n label: 'bank.bank'\n}, {\n type: 'card',\n label: 'bank.cardWithoutCredit'\n}];\n\n// Keys when \"Card\" is selected as default.\nvar TESLA_TOGGLE_FI_CARD = exports.TESLA_TOGGLE_FI_CARD = [{\n type: 'card',\n label: 'bank.cardWithoutCredit'\n}, {\n type: 'bank',\n label: 'bank.bank'\n}];\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest/tesla-add-bank/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _index = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _index2 = __webpack_require__(\"../node_modules/xo-models/src/app/index.js\");\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-guest-components/src/guest/tesla-add-bank/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _index.$Component.extend('xoTeslaAddBank', {\n tag: 'xo-tesla-add-bank',\n template: _template2['default'],\n\n props: {\n token: {\n type: 'var',\n required: false\n },\n mode: {\n type: 'var',\n required: false\n }\n },\n\n resolve: {\n models: function models() {\n return {\n teslaFlowIdData: _index2.$TeslaFlowIdModel.instance(this.token).retrieve()\n };\n }\n },\n\n lifecycle: {\n enter: function enter() {\n this.mode = this.mode || 'signup';\n },\n populate: function populate() {\n var _this = this;\n\n var setupRedirectUrl = function setupRedirectUrl() {\n var _ref = _this.models.teslaFlowIdData || {},\n teslaFlowID = _ref.encodedParam;\n\n _this.finalUrl = '' + window.location.origin + _index.$config.urls.teslaAddBankUrl + teslaFlowID + '&country.x=' + _index.$locale.country + '&locale.x=' + _index.$locale.lang + '_' + _index.$locale.country + '&tsrce=xoonboardingnodeweb';\n\n _logger.$logger.info('tesla_add_bank_final_url', _this.finalUrl);\n };\n\n setupRedirectUrl();\n\n this.$on('localeChange', function () {\n setupRedirectUrl();\n });\n }\n },\n\n actions: {\n onContinueClick: function onContinueClick($event) {\n\n // FPTI logging when clicked on continue.\n _logger.$logger.info('checkout_fpti', {\n from: 'SIGNUP',\n to: 'process_tesla_continue'\n });\n\n $event.preventDefault();\n _logger.$logger.info('tesla_add_bank_redirection_button_clicked');\n window.location.href = this.finalUrl;\n }\n }\n\n});\n\n\n_index.$Component;\n\n_index.$locale;\n\n_index.$config;\n\n_index2.$TeslaFlowIdModel;\n\n_logger.$logger;\nmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest/tesla-add-bank/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
    \\n

    \\n {{content('bank.bankDescription')}}\\n

    \\n\\n \\n
    \"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest/travelRuleLightbox/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-guest-components/src/guest/travelRuleLightbox/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\n__webpack_require__(\"../node_modules/xo-form-components/src/travel-rule/directive.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _squid.$Component.extend('$xoTravelRuleLightbox', {\n tag: 'xo-travel-rule-lightbox',\n\n template: _template2['default'],\n\n props: {\n token: {\n type: 'var',\n required: false\n },\n doneFn: {\n type: 'var',\n required: false\n }\n },\n\n lifecycle: {\n enter: function enter() {\n var _this = this;\n\n // Open interstitial after element is rendered\n (0, _angular.$timeout)(function () {\n _this.modalOpen = true;\n });\n }\n }\n});\n\n\n_squid.$Component;\n\n_angular.$timeout;\nmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest/travelRuleLightbox/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
    \\n
    \\n
    \\n
    \\n
    \\n \\n \\n
    \\n
    \\n
    \\n
    \\n
    \\n
    \\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest/xoonHeader/constants.js\":\n/***/ (function(module, exports) {\n\n\n\nexports.__esModule = true;\nvar defaultSignupTitleContentKey = 'largeScreenPayment.signupTitle';\nvar defaultGuestTitleContentKey = 'largeScreenPayment.title';\n\nvar titleTreatmentKeyToContentKeyMapping = {\n signup: defaultSignupTitleContentKey,\n guest: defaultGuestTitleContentKey,\n ebay: 'signupAccountCreation.heading',\n bank: 'largeScreenPayment.bankTitle',\n walletTokenization: 'common.createPayPalSubTitleSignup',\n xo_xoon_header_title_subtitle_global_control: defaultSignupTitleContentKey,\n xo_xoon_header_title_subtitle_global_throttle: defaultSignupTitleContentKey,\n xo_xoon_header_title_subtitle_global_test: 'splitScreenExp.signupOnboardTitle',\n xo_xoon_header_title_subtitle_IN_control: defaultSignupTitleContentKey,\n xo_xoon_header_title_subtitle_IN_treatment_a: 'header.titleSaferCheckout',\n xo_xoon_header_title_subtitle_IN_treatment_b: 'header.titleAddYourCard',\n xo_xoon_header_title_subtitle_IN_treatment_c: 'header.titleFreeAccount',\n indiaTitleBilling: 'header.titleBilling',\n xo_xoon_jp_add_bank_treatment: 'header.titleTeslaBankOrCard',\n xo_xoon_jp_add_bank_treatment_card: 'header.titleTeslaCardOrBank'\n};\n\nvar defaultSignupTitlePropsContentKey = 'largeScreenPayment.titleProp';\nvar defaultGuestTitlePropsContentKey = defaultSignupTitlePropsContentKey;\n\nvar titlePropsTreatmentKeyToContentKeyMapping = {\n signup: defaultSignupTitlePropsContentKey,\n guest: defaultGuestTitlePropsContentKey,\n google: 'signup.androidPayTitleProp',\n samsung: 'signup.tokenizedWalletInfoTitleProp',\n walletTokenization: 'signup.androidPayTitleProp',\n xo_xoon_header_title_subtitle_global_control: defaultSignupTitlePropsContentKey,\n xo_xoon_header_title_subtitle_global_throttle: defaultSignupTitlePropsContentKey,\n xo_xoon_header_title_subtitle_global_test: 'common.buyerProtectionSignup',\n xo_xoon_header_title_subtitle_IN_control: defaultSignupTitlePropsContentKey,\n xo_xoon_header_title_subtitle_IN_treatment_a: 'header.subTitleCreateYourAccount',\n xo_xoon_header_title_subtitle_IN_treatment_b: 'header.subTitleSaveYourCard',\n xo_xoon_header_title_subtitle_IN_treatment_c: 'header.subTitleSaveYourCard',\n indiaTitleBilling: 'header.subTitleBilling'\n};\n\nexports.titleTreatmentKeyToContentKeyMapping = titleTreatmentKeyToContentKeyMapping;\nexports.titlePropsTreatmentKeyToContentKeyMapping = titlePropsTreatmentKeyToContentKeyMapping;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest/xoonHeader/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\n__webpack_require__(\"../node_modules/xo-guest-components/src/guest/xoonHeader/styles.less\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-guest-components/src/guest/xoonHeader/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _lib = __webpack_require__(\"../node_modules/xo-guest-components/src/guest/xoonHeader/lib.js\");\n\nvar _constants = __webpack_require__(\"../node_modules/xo-guest-components/src/guest/xoonHeader/constants.js\");\n\nvar _index = __webpack_require__(\"../node_modules/xo-models/src/app/index.js\");\n\nvar _index2 = __webpack_require__(\"../node_modules/xo-models/src/checkout/index.js\");\n\nvar _index3 = __webpack_require__(\"../node_modules/xo-models/src/user/index.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _squid.$Component.extend('xoXoonHeader', {\n tag: 'xo-xoon-header',\n template: _template2['default'],\n\n props: {\n token: {\n type: 'var',\n required: true\n },\n flags: {\n type: 'var',\n required: true\n },\n user: {\n type: 'var',\n required: true\n },\n // This mode is carried from pages 'mode' setting\n // It is not flags.mode that changes upon radio button clicks\n // in optional signup flow\n mode: {\n type: 'var',\n required: true\n },\n fiMode: {\n type: 'var',\n required: true\n }\n },\n\n resolve: {\n models: function models() {\n return {\n checkoutCart: _index2.$CheckoutCartModel.instance(this.token).retrieve(),\n checkoutInputData: _index3.$CheckoutInputDataModel.instance(this.token).retrieve(),\n tokenizedWalletInfoModel: _index.$TokenizedWalletInfoModel.instance(this.token).retrieve(),\n checkoutAppData: _index2.$CheckoutAppDataModel.instance(this.token).retrieve()\n };\n },\n experiments: function experiments() {\n return {\n // we are running title and subTitle pxp only for signup flows\n titleSubtitleContentExp: this.props.mode === 'signup' ? (0, _squid.$pxp)('xo_xoon_header_title_subtitle', { 'ctx.COUNTRY': _squid.$locale.country }, '(xo_xoon_header_title_subtitle_)(.*)') : null\n };\n },\n teslaAddBank: function teslaAddBank() {\n return {\n teslaAddBankEXP: (0, _squid.$elmo)('xo_xoon_tesla_add_bank', { 'ctx.COUNTRY': _squid.$locale.country }, '(xo_xoon_jp_add_bank_treatment)(.*)')\n };\n }\n },\n\n lifecycle: {\n enter: function enter() {\n this.locale = _squid.$locale;\n this.currentCountryName = _squid.$util.getProperty(this.locale, 'metadata.localization.countryName', {\n 'default': this.locale.country\n });\n },\n populate: function populate() {\n var _this = this;\n\n var checkTeslaEligbility = function checkTeslaEligbility() {\n var _teslaAddBank$teslaAd = _this.teslaAddBank.teslaAddBankEXP,\n teslaAddBankEXP = _teslaAddBank$teslaAd === undefined ? {} : _teslaAddBank$teslaAd;\n var teslaAddBankTreatment = teslaAddBankEXP.treatment_name;\n\n _this.teslaTreatmentFIType = teslaAddBankTreatment;\n _this.teslaAddBankEXP = teslaAddBankTreatment && teslaAddBankTreatment.includes('xo_xoon_jp_add_bank_treatment');\n };\n\n checkTeslaEligbility();\n\n var setTitleSubtitleContentAndFlags = function setTitleSubtitleContentAndFlags() {\n _this.subject = _this.models.tokenizedWalletInfoModel.getSubject(); // Samsung or Android\n\n var _ref = _this.experiments.titleSubtitleContentExp || {},\n titleSubtitleContentExpTreatment = _ref.treatment_name;\n\n // Add experiment check and default values (props.mode) on FLow Context keys\n\n\n var pageTitleFlowContextKey = (0, _lib.getPageTitleContextKey)(_this.models, _this.props.mode, _this.props.fiMode, _this.currentCountryName) || _this.teslaAddBankEXP && _this.teslaTreatmentFIType || titleSubtitleContentExpTreatment || _this.props.mode;\n var pageTitlePropsFlowContextKey = (0, _lib.getPageTitlePropsContextKey)(_this.models, _this.subject, _this.currentCountryName) || titleSubtitleContentExpTreatment || _this.props.mode;\n\n // get the actual content key from constants file mapping\n _this.pageTitleContentKey = _constants.titleTreatmentKeyToContentKeyMapping[pageTitleFlowContextKey];\n _this.pageTitlePropsContentKey = _constants.titlePropsTreatmentKeyToContentKeyMapping[pageTitlePropsFlowContextKey];\n\n // if the treatment returned by pxp does not have words like 'control' and 'throttle'\n // then it is a test treatment, so lets set flags.titleSubtitleContentExpTreatment = true\n // This flag is used in onboardOptions template to decide display components\n if (titleSubtitleContentExpTreatment && !(titleSubtitleContentExpTreatment.indexOf('control') > -1 || titleSubtitleContentExpTreatment.indexOf('throttle') > -1)) {\n // Set flag to use in oboardingOptions template\n _this.props.flags.titleSubtitlePxpTreatment = true;\n }\n };\n\n var setInitialFlags = function setInitialFlags() {\n setTitleSubtitleContentAndFlags();\n };\n\n setInitialFlags();\n }\n },\n\n actions: {\n redirectWarningPromptInit: function redirectWarningPromptInit($event) {\n if ($event) {\n $event.preventDefault();\n }\n\n // Redirection will be triggered in redirectWarningPrompt directive\n // based on few conditions check\n this.flags.showRedirectWarningPrompt = true;\n }\n }\n});\n\n\n_squid.$Component;\n\n_squid.$locale;\n\n_squid.$pxp;\n\n_squid.$util;\n\n_squid.$elmo;\n\n_lib.getPageTitleContextKey;\n\n_lib.getPageTitlePropsContextKey;\n\n_constants.titleTreatmentKeyToContentKeyMapping;\n\n_constants.titlePropsTreatmentKeyToContentKeyMapping;\n\n_index.$TokenizedWalletInfoModel;\n\n_index2.$CheckoutCartModel;\n\n_index2.$CheckoutAppDataModel;\n\n_index3.$CheckoutInputDataModel;\nmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest/xoonHeader/lib.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.getPageTitlePropsContextKey = exports.getPageTitleContextKey = undefined;\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\n// Return keys for few specific flows that needs title override\n// Please refer to ./constants.js file for default keys used in the flow\nvar getPageTitleContextKey = function getPageTitleContextKey(models, mode, fiMode, currentCountryName) {\n if (models.checkoutInputData.isEbayTxn()) {\n // prox signup flow title\n return 'ebay';\n } else if (fiMode === 'bank') {\n return 'bank';\n } else if (models.checkoutCart.isWalletTokenization()) {\n return 'walletTokenization';\n } else if (currentCountryName === 'India' && models.checkoutCart.isBilling() && models.checkoutAppData.get('merchant.merchant_country', 'US') === 'IN') {\n return 'indiaTitleBilling';\n }\n // We have an experiment that decides key for mode === 'signup'\n};\n\n// Return keys for few specific flows that needs title props or sub title override\n// Please refer to ./constants.js file for default keys used in the flow\nvar getPageTitlePropsContextKey = function getPageTitlePropsContextKey(models, subject, currentCountryName) {\n\n var WALLET_RESPONSE = ['google', 'Samsung'];\n\n if (models.checkoutCart.isWalletTokenization()) {\n\n _logger.$logger.info(subject + '_WALLET_TOKENIZATION');\n\n if (WALLET_RESPONSE.indexOf(subject) > -1) {\n return subject.toLowerCase();\n } else {\n // Oops something terrible happened! API response does't have our key. return default instead\n return 'walletTokenization';\n }\n }\n\n if (currentCountryName === 'India' && models.checkoutCart.isBilling() && models.checkoutAppData.get('merchant.merchant_country', 'US') === 'IN') {\n return 'indiaTitleBilling';\n }\n};\n\nexports.getPageTitleContextKey = getPageTitleContextKey;\nexports.getPageTitlePropsContextKey = getPageTitlePropsContextKey;\n\n\n_logger.$logger;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest/xoonHeader/styles.less\":\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/guest/xoonHeader/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
    \\n

    \\n

    \\n\\n \\n
    \\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/lib/contentKeys.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.getBillingAgreementContentInfo = exports.getSusbcriptionsV1ContentKey = exports.getRPContentKey = exports.getBAContentKey = undefined;\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\n/**\n * Returns the appropriate billing agreement xo-content key.\n * (Usage: MIB, CIB, MISB, CISB and all merchant having a consent_code in their settings.)\n * enterpriseAgreement.{CODE}NoFiStickyConsentSignup\n * billingAgreement.signupAgreementCibStickyPay\n * billingAgreement.signupAgreementCibStickyContinue\n * billingAgreement.signupAgreementFiStickyPay\n * billingAgreement.signupAgreementFiStickyContinue\n *\n * @param {cart} a CheckoutCartModel instance\n * @param {appData} a CheckoutAppDataModel instance\n * @return {String}\n */\n\nvar getBAContentKey = exports.getBAContentKey = function getBAContentKey() {\n var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n cart = _ref.cart,\n appData = _ref.appData,\n locale = _ref.locale;\n\n var consentCode = cart.get('billing.consent_code');\n\n if (consentCode) {\n return 'enterpriseAgreement.' + consentCode + 'NoFiStickyConsentSignup';\n }\n\n var isCIB = cart.get('billing.type') === 'CHANNEL_INITIATED_BILLING';\n var type = isCIB ? 'Cib' : 'Fi';\n var useraction = appData.useraction();\n var action = useraction === 'commit' ? 'Pay' : 'Continue';\n var isIndiaDomestic = locale.country === 'IN' && locale.country === appData.get('merchant.merchant_country', 'US');\n var indiaDomestic = isIndiaDomestic ? 'Domestic' : '';\n var keySuffix = type + 'Sticky' + indiaDomestic + action;\n\n return 'billingAgreement.signupAgreement' + keySuffix;\n};\n\n/**\n * Returns the appropriate RP xo-content key.\n *\n * billingAgreement.signupRpAgreementFiStickyPay\n * billingAgreement.signupRpAgreementFiStickyContinue\n *\n * @param {appData} a CheckoutAppDataModel instance\n * @return {String}\n */\nvar getRPContentKey = exports.getRPContentKey = function getRPContentKey() {\n var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n appData = _ref2.appData;\n\n var useraction = appData.useraction();\n var action = useraction === 'commit' ? 'Pay' : 'Continue';\n\n return 'billingAgreement.signupRpAgreementFiSticky' + action;\n};\n\nvar getSusbcriptionsV1ContentKey = exports.getSusbcriptionsV1ContentKey = function getSusbcriptionsV1ContentKey() {\n return 'billingAgreement.signupAgreementSubscriptionsV1';\n};\n\n/**\n * Determines and returns content key for billing agreement flow.\n * Takes care of MIB, CIB, RP, WPS Subscriptions, Subscriptions V1 (API integration).\n * WPS Susbcription and RP BA Text is same.\n *\n * @param cart\n * @param appData\n * @param locale\n * @return {object} containing contentKey and idSelector to be applied to span element displaying BA text\n */\nvar getBillingAgreementContentInfo = exports.getBillingAgreementContentInfo = function getBillingAgreementContentInfo() {\n var _ref3 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n cart = _ref3.cart,\n appData = _ref3.appData,\n locale = _ref3.locale,\n subscriptionData = _ref3.subscriptionData;\n\n var showBAContent = cart.isBilling() && !cart.isWalletTokenization();\n var isWpsSubscription = appData.is_wps_subscription_flow();\n var isSubscriptionsV1 = cart.isSubscriptionsV1();\n var isRP = cart.get('billing.type') === 'RECURRING_PAYMENTS';\n var showBillingAgreementText = showBAContent && !isRP && !isWpsSubscription && !isSubscriptionsV1;\n var showRpAgreementText = showBAContent && (isRP || isWpsSubscription);\n var showSubscriptionsV1AgreementText = showBAContent && isSubscriptionsV1;\n var country = locale.country,\n lang = locale.lang;\n\n var merchantName = appData.getMerchantDisplayName({\n nonEmptyReturnValue: true\n });\n\n if (showBillingAgreementText) {\n return {\n contentKey: getBAContentKey({ cart: cart, appData: appData, locale: locale }),\n idSelector: 'billingAgreement',\n data: { merchantName: merchantName, country: country, lang: lang }\n };\n } else if (showRpAgreementText) {\n return {\n contentKey: getRPContentKey({ appData: appData }),\n idSelector: 'rpAgreement',\n data: { merchantName: merchantName, country: country, lang: lang }\n };\n } else if (showSubscriptionsV1AgreementText) {\n var plan = subscriptionData.planReview.new_plan || subscriptionData.planReview.current_plan;\n var maxAmt = plan && plan.initial_payment_info && plan.initial_payment_info.maximum_payment_amount;\n var subscriptionsMaxAmount = maxAmt && (0, _squid.formatCurrency)(maxAmt.value / 100, maxAmt.currency_code);\n var subscriptionAmtChangeNotice = subscriptionData.billingAgreementCart.price_change_advance_notification_days;\n\n return {\n contentKey: getSusbcriptionsV1ContentKey(),\n idSelector: 'subscriptionsV1Agreement',\n data: { subscriptionsMaxAmount: subscriptionsMaxAmount, subscriptionAmtChangeNotice: subscriptionAmtChangeNotice, merchantName: merchantName, country: country, lang: lang }\n };\n }\n return {};\n};\n\n_squid.formatCurrency;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/lib/util.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.hasDialingCodeOverride = exports.redirectToSubscriptionFinalRoute = exports.decodeEntities = exports.hasAddressChanged = undefined;\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar isString = function isString(value) {\n return typeof value === 'string';\n}; // eslint-disable-line angular/typecheck-string\n\nvar areAddressFieldsEqual = function areAddressFieldsEqual(address1Field, address2Field) {\n if (address1Field === address2Field) {\n return true;\n }\n\n var fields = [address1Field, address2Field];\n\n if (fields.includes(undefined) && fields.includes('')) {\n return true;\n }\n\n if (isString(address1Field) && isString(address2Field)) {\n return address1Field.toUpperCase() === address2Field.toUpperCase();\n }\n\n return false;\n};\n\nvar hasAddressChanged = exports.hasAddressChanged = function hasAddressChanged(address1, address2) {\n var addressFields = ['line1', 'line2', 'city', 'state', 'postal_code', 'country_code'];\n\n return addressFields.some(function (field) {\n return !areAddressFieldsEqual(address1[field], address2[field === 'country_code' ? 'country' : field]);\n });\n};\n\nvar decodeEntities = exports.decodeEntities = function decodeEntities(input) {\n // A constant key that can be used to find the element\n var ENTITY_ELEM = '__xpc_entitydecoder__';\n\n // Create the element if this is the first time this is called\n if (!window[ENTITY_ELEM]) {\n window[ENTITY_ELEM] = document.createElement('p');\n }\n\n var converter = window[ENTITY_ELEM];\n\n converter.innerHTML = input;\n return converter.innerText || converter.text || converter.textContent;\n};\n\nvar redirectToSubscriptionFinalRoute = exports.redirectToSubscriptionFinalRoute = function redirectToSubscriptionFinalRoute() {\n var mode = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'guest';\n var isSubscriptionV1 = arguments[1];\n\n var protocol = _angular.$window.location.protocol + '//';\n var stageUrl = _squid.$meta.stage || _angular.$window.location.hostname;\n var subscriptionReturnUri = isSubscriptionV1 ? _squid.$config.urls.subscriptionsV1ReturnUrl : _squid.$config.urls.wpsSubscriptionReturnUrl;\n var params = {\n token: _squid.$meta.token,\n sdkMeta: _squid.$meta.sdkMeta,\n mode: mode,\n // Read mfid from params in case buyer landed with 302 URL redirection,\n // and meta for internal redirects.\n mfid: _squid.$util.param('mfid') || _squid.$meta.mfid,\n 'country.x': _squid.$locale.country,\n 'locale.x': _squid.$locale.lang + '_' + _squid.$locale.country\n };\n var redirectUrl = _squid.$util.buildURL(protocol + stageUrl + subscriptionReturnUri, params);\n\n _squid.$util.redirect(redirectUrl);\n};\n\n/**\n * Certain regions (ie: Macau) live within territories\n * but have their own dialing codes. We need to shift the UX\n * to have the phone number after the province selection\n * https://engineering.paypalcorp.com/jira/browse/PPPLMER-48433\n */\nvar hasDialingCodeOverride = exports.hasDialingCodeOverride = function hasDialingCodeOverride() {\n var overrides = _squid.$locale.metadata.regionalOverrides;\n\n if (!overrides) {\n return false;\n }\n\n return Object.keys(overrides).map(function (key) {\n return overrides[key].props;\n }).some(function (override) {\n return override.hasOwnProperty('internationalDialingCode');\n });\n};\n\n_angular.$window;\n\n_squid.$meta;\n\n_squid.$util;\n\n_squid.$locale;\n\n_squid.$config;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/login-button/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/squid/dist/index.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!../node_modules/xo-guest-components/src/login-button/template.html\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (squid, template, opinionlab) {\n\n squid.module('xo-login-button.directive', ['squid']).directive('xoLoginButton', [function () {\n\n return {\n template: template,\n\n scope: {\n redirect: '=?'\n },\n\n controller: ['$scope', function ($scope) {}]\n };\n }]);\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/multistep-signup/addCard/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/angular/angular.min.js\"), __webpack_require__(\"../node_modules/squid/dist/index.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!../node_modules/xo-guest-components/src/multistep-signup/addCard/template.html\"), __webpack_require__(\"../node_modules/xo-guest-components/src/multistep-signup/lib/util.js\"), __webpack_require__(\"../node_modules/xo-page-components/src/value-props/directive.js\"), __webpack_require__(\"../node_modules/xo-form-components/src/phone/phoneInput/directive.js\"), __webpack_require__(\"../node_modules/xo-form-components/src/name-input/directive.js\"), __webpack_require__(\"../node_modules/xo-guest-components/src/guest/emailInput/directive.js\"), __webpack_require__(\"../node_modules/xo-guest-components/src/guest/passwordInput/directive.js\"), __webpack_require__(\"../node_modules/xo-guest-components/src/guest/countryList/directive.js\"), __webpack_require__(\"../node_modules/xo-guest-components/src/guest/sepa/directive.js\"), // TODO: Check if its used\n__webpack_require__(\"../node_modules/xo-guest-components/src/guest/select-shipping-method/directive.js\"), __webpack_require__(\"../node_modules/xo-guest-components/src/guest/xoonHeader/directive.js\"), __webpack_require__(\"../node_modules/xo-models/src/onboard/index.js\"), __webpack_require__(\"../node_modules/xo-guest-components/src/login-button/directive.js\"), __webpack_require__(\"../node_modules/xo-locale/dist/index.js\"), __webpack_require__(\"../node_modules/xo-locale/dist/helper.js\"), __webpack_require__(\"../node_modules/xo-models/src/address/index.js\"), __webpack_require__(\"../node_modules/xo-models/src/checkout/index.js\"), __webpack_require__(\"../node_modules/xo-models/src/shippingMethod/index.js\"), __webpack_require__(\"../node_modules/xo-ui-components/src/ui-utils/directive.js\"), __webpack_require__(\"../node_modules/xo-ui-components/src/accessibility/directive.js\"), __webpack_require__(\"../node_modules/xo-page-components/src/ba-message-banner/directive.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (angular, module, template, util) {\n return angular.module('xo-multistep-signup-add-card.directive', ['squid', 'xo-value-props.directive', 'xo-phone.phoneInput', 'xo-name-input.directive', 'xo-guest.emailInput', 'xo-guest.passwordInput', 'xo-guest.countryList', 'xo-onboard.sepa.directive', // TODO: Check if its used\n 'xo-guest-select-shipping-method.directive', 'xo-xoon-header.directive', 'xomodel.onboard', 'xo-login-button.directive', 'locale.helper', 'xomodel.address', 'xomodel.checkout', 'xo-ui-utils.directive', 'xo-accessibility.directive', 'xo-ba-message-banner.directive']).directive('formErrorDetect', [function () {\n return function ($scope, el, attrs) {\n $scope.$watch(attrs.name + '.$error', function (newVal, oldVal) {\n var cardModel = $scope.multistepSignupModel.onboard.card;\n\n /*\n * Here we are making sure that both luhn and len validation\n * together marks the cardModel validity which in-tern handles\n * form submit and validity in front-end\n * Background:\n * card input element has luhn and len validation as part of\n * ui-validate util\n */\n if (newVal.luhn && newVal.luhn[0].$invalid || newVal.len && newVal.len[0].$invalid) {\n cardModel.valid = false;\n } else {\n cardModel.valid = true;\n }\n }, true);\n };\n }]).directive('xoMultistepSignupAddCard', [function () {\n return {\n template: template,\n\n scope: {\n token: '=?',\n parentCallbacks: '=?',\n multistepSignupModel: '=?',\n positionToErrorField: '=?',\n backState: '=?',\n backendError: '=?',\n clearBackendError: '=?',\n normalizeAddress: '=?',\n prefillAddressCommon: '=?',\n buttonParams: '=?'\n },\n\n link: function link($scope) {\n $scope.$watch(function () {\n return $scope.multistepSignupModel.onboard.card.number;\n }, function cardNumberChangeHandler(newValue, oldValue) {\n // Sanitize the values\n newValue = newValue ? newValue.replace(/ /g, '').toLowerCase() : null;\n oldValue = oldValue ? oldValue.replace(/ /g, '').toLowerCase() : null;\n\n if (newValue) {\n if (newValue !== oldValue) {\n if ($scope.multistepSignupModel.selectedInstallmentData && !$scope.multistepSignupModel.selectedInstallmentData.preventChange) {\n // Resetting selected installment data, if installment change is not explicitly prohibited.\n $scope.multistepSignupModel.selectedInstallmentData = undefined;\n }\n }\n }\n });\n\n $scope.$watch(function () {\n return $scope.multistepSignupModel.onboard.card.type;\n }, function cardTypeChangeHandler(newValue, oldValue) {\n // Sanitize the values\n newValue = newValue ? newValue.replace(/ /g, '').toLowerCase() : null;\n\n var eligibilityModel = $scope.multistepSignupModel.eligibilityModel;\n var cardNetwork;\n\n if (newValue && eligibilityModel && eligibilityModel.installments && eligibilityModel.installments.length > 0) {\n eligibilityModel.installments.some(function cardCheck(card, index, array) {\n if (card.cardInfo && card.cardInfo.card_type && card.cardInfo.card_type.toLowerCase() === newValue) {\n // Card Network Found\n cardNetwork = card;\n return true;\n }\n return false;\n });\n\n if (cardNetwork && cardNetwork.installment_options && cardNetwork.installment_options.length > 0) {\n // Card network && installments found\n if (cardNetwork.installment_options.length === 1) {\n $scope.multistepSignupModel.selectedInstallmentData = {\n installment_option_selected: cardNetwork.installment_options[0],\n preventChange: true\n };\n }\n\n $scope.multistepSignupModel.allowInstallments = true;\n } else {\n // Card network does not exists Or No installment found\n $scope.multistepSignupModel.allowInstallments = false;\n }\n } else {\n $scope.multistepSignupModel.allowInstallments = false;\n }\n });\n\n $scope.$on('$destroy', function () {\n $scope.clearBackendError('multistepsignupaddcard');\n });\n\n if ($scope.backendError) {\n $scope.backendError('multistepsignupaddcard');\n }\n },\n\n controller: ['$scope', '$rootScope', '$populate', '$state', '$util', '$locale', '$feature', '$q', '$CheckoutAppDataModel', '$ShippingRuleSummaryModel', '$CheckoutPayeeModel', '$CheckoutCartModel', '$BillingAddressModel', '$ShippingAddressModel', '$PrefillAddressModel', '$pxpFactors', '$config', '$dispatch', '$localeHelper', '$location', '$meta', function ($scope, $rootScope, $populate, $state, $util, $locale, $feature, $q, $CheckoutAppDataModel, $ShippingRuleSummaryModel, $CheckoutPayeeModel, $CheckoutCartModel, $BillingAddressModel, $ShippingAddressModel, $PrefillAddressModel, $pxpFactors, $config, $dispatch, $localeHelper, $location, $meta) {\n $scope.locale = $locale;\n $scope.formattedValues = {};\n $scope.mode = 'signup';\n $scope.fiMode = 'card';\n $scope.backUri = 'checkout.multistepsignup.multistepsignupaddcard';\n $scope.normalize = $feature('addressNormalization', false, $locale.country);\n $scope.componentsFlag = util.componentsMap($locale.country);\n\n $scope.$on('localeChange', function () {\n $scope.componentsFlag = util.componentsMap($locale.country);\n $scope.multistepSignupModel.onboard.billing_address.country = $locale.country;\n $scope.multistepSignupModel.onboard.shipping_address.country = $locale.country;\n });\n\n $scope.zipMasking = function () {\n var newValue = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n\n $scope.formattedValues.postalCode = $locale.country === 'RU' ? newValue : util.maskingUtil.maskZip(newValue);\n $scope.multistepSignupModel.onboard.billing_address.postal_code = $scope.formattedValues.postalCode && $scope.formattedValues.postalCode.replace(/[^0-9]/gi, '');\n };\n\n function checkShippingRulesExist() {\n if ($scope.multistepSignupModel.wps_flow && $scope.multistepSignupModel.snt_supported_flow) {\n return $populate($scope, {\n shippingRulesSummary: $ShippingRuleSummaryModel.instance($rootScope.token).retrieve({\n params: {\n merchant_id: $scope.payee.merchant.id,\n currency_code: $scope.checkoutCart.purchase.amounts.total.currency_code\n }\n })\n }).then(function () {\n if ($scope.shippingRulesSummary.isSnTEnabled) {\n $scope.multistepSignupModel.merchant_has_snt_profile = true;\n }\n });\n } else {\n return $q.when();\n }\n }\n\n $scope.isInstallmentsVisible = function isInstallmentsVisible() {\n var model = $scope.multistepSignupModel;\n var hasConditionMet = model.allowInstallments && model.onboard.card.number && model.onboard.card.valid;\n var isBilling = $scope.checkoutCart.isBilling();\n\n return !isBilling && hasConditionMet;\n };\n\n if ($scope.multistepSignupModel.onboard.ue_billing_address) {\n $scope.multistepSignupModel.onboard.billing_address = $scope.multistepSignupModel.onboard.ue_billing_address;\n $scope.zipMasking($scope.multistepSignupModel.onboard.ue_billing_address.postal_code);\n }\n\n if ($locale.country === 'BR' && $scope.multistepSignupModel.onboard.billing_address) {\n $scope.multistepSignupModel.onboard.billing_address.postal_code = util.maskingUtil.maskZip($scope.multistepSignupModel.onboard.billing_address.postal_code);\n }\n\n $scope.setSelectedCurrency = function (selection) {\n var _$scope$multistepSign = $scope.multistepSignupModel.onboard.card.currencyConvData;\n _$scope$multistepSign = _$scope$multistepSign === undefined ? {} : _$scope$multistepSign;\n var from_code = _$scope$multistepSign.from_code,\n to_code = _$scope$multistepSign.to_code;\n\n\n $scope.selectedCurrency = selection === 'PAYPAL' ? from_code : to_code;\n _logger.$logger.info('CONVERSION_SELECTION_CHANGED_TO_' + selection);\n };\n\n $scope.setSubmitButtonKey = function () {\n var _$scope$multistepSign2 = $scope.multistepSignupModel.flags,\n hasData = _$scope$multistepSign2.hasBuyerFxPrePlanData,\n _$scope$multistepSign3 = _$scope$multistepSign2.buyerFxTreatment,\n treatment = _$scope$multistepSign3 === undefined ? '' : _$scope$multistepSign3;\n\n var inCurrency = treatment.includes('treatment_2') && hasData;\n\n $scope.submitButtonKey = 'common.continue' + (inCurrency ? 'InCurrency' : '') + 'Label';\n };\n\n $scope.$watch('multistepSignupModel.onboard.card.ppconversion', function (selection) {\n $scope.setSelectedCurrency(selection);\n $scope.setSubmitButtonKey();\n });\n\n $scope.setBuyerFxFlag = function (_ref) {\n var treatment = _ref.treatment,\n hasBuyerFxPrePlanData = _ref.hasBuyerFxPrePlanData;\n\n if (treatment) {\n $scope.multistepSignupModel.flags.buyerFxTreatment = treatment;\n }\n\n if (hasBuyerFxPrePlanData) {\n $scope.setSelectedCurrency($scope.multistepSignupModel.onboard.card.ppconversion);\n }\n\n $scope.multistepSignupModel.flags.hasBuyerFxPrePlanData = hasBuyerFxPrePlanData;\n $scope.setSubmitButtonKey();\n\n _logger.$logger.info('SETTING_BUYER_FX_FLAG_IN_MULTISTEP_DIR', {\n treatment: treatment,\n hasBuyerFxPrePlanData: hasBuyerFxPrePlanData\n });\n };\n\n $scope.submitButtonKey = 'common.continueLabel';\n\n $populate($scope, {\n checkoutAppData: $CheckoutAppDataModel.instance($scope.token),\n payee: $CheckoutPayeeModel.instance($scope.token),\n checkoutCart: $CheckoutCartModel.instance($scope.token)\n }).then(function () {\n // Needed to show custom description sent by merchant in Billing Agreement flow\n $scope.billingAgreementMerchantMsg = $scope.checkoutCart.getBillingDescription();\n\n // Log to FPTI to indicate the page has been rendered\n _logger.$logger.info('checkout_fpti', {\n from: 'CHECKOUT_MULTISTEPSIGNUP',\n to: 'prepare_checkout_multistepsignup'\n });\n\n $scope.multistepSignupModel.flags.allowEditShipping = $scope.checkoutAppData.get('flags.allow_change_shipping', false);\n\n $scope.multistepSignupModel.installmentDisabled = $scope.checkoutCart.isBilling();\n\n $scope.multistepSignupModel.wps_flow = $scope.checkoutAppData.is_wps_flow();\n $scope.multistepSignupModel.snt_supported_flow = $scope.checkoutAppData.is_snt_supported();\n\n $scope.showShippingAddress = Boolean(!$scope.checkoutAppData.flags.hide_shipping_address && $scope.checkoutAppData.flags.shipping_address_required);\n\n checkShippingRulesExist();\n\n $scope.prefill = function () {\n var postal_code = $scope.multistepSignupModel.onboard.billing_address.postal_code;\n\n $scope.prefillAddressCommon(postal_code, $scope.multistepSignupModel.onboard.billing_address, $scope.multistepSignupModel.onboard.user, $scope.multistepSignupModel.flags.billingAddress, false);\n };\n\n // Get merchant passed shipping address from either purchase plan or billing agreement plan\n var merchantSuppliedAddress = $scope.checkoutCart.get('purchase.shipping_address') || $scope.checkoutCart.get('billing.shipping_address');\n var merchantSuppliedNumber = $scope.checkoutCart.get('purchase.phone_fields') || $scope.checkoutCart.get('billing.phone_fields');\n\n if (merchantSuppliedAddress && !$scope.multistepSignupModel.onboard.ue_billing_address) {\n $scope.multistepSignupModel.onboard.billing_address = $BillingAddressModel.create($scope.token, {\n country: $locale.country\n }, merchantSuppliedAddress);\n\n $scope.prefill();\n\n $scope.zipMasking($scope.multistepSignupModel.onboard.billing_address.postal_code);\n\n $scope.multistepSignupModel.onboard.billing_address.postal_code = $scope.formattedValues.postalCode;\n $scope.multistepSignupModel.onboard.user.first_name = merchantSuppliedAddress.first_name;\n $scope.multistepSignupModel.onboard.user.last_name = merchantSuppliedAddress.last_name;\n }\n\n if (merchantSuppliedNumber && merchantSuppliedNumber.telephone_country === $locale.country) {\n $scope.multistepSignupModel.onboard.phone.telephone = merchantSuppliedNumber.normalized_phone_number;\n }\n });\n\n var basl_hermes_xoon_redirect = $util.param('hermesXoonRedirect') || $meta.query && $meta.query.hermesXoonRedirect;\n var basl_abtest_throttle = $util.param('abTestThrottle') || $meta.query && $meta.query.abTestThrottle;\n\n $scope.showLogin = basl_hermes_xoon_redirect || basl_abtest_throttle;\n\n $scope.redirect = function () {\n $dispatch('hermes', {\n hermesLoginRedirect: 'xoon',\n token: $scope.token,\n 'locale.x': $locale.lang + '_' + $locale.country,\n 'country.x': $locale.country\n });\n };\n\n $scope.uponNormalization = function (normalizedAddress, isBack) {\n if (isBack) {\n $location.path('/checkout/multistepsignup/multistepsignupaddcard').replace();\n } else {\n $scope.normalize = false;\n $scope.multistepSignupModel.onboard.billing_address.setProperties(normalizedAddress);\n\n if ($scope.multistepSignupModel.flags.shipToBilling) {\n $location.path('/checkout/multistepsignup/multistepsignupcreateaccount').replace();\n } else {\n $location.path('/checkout/multistepsignup/multistepsignupaddshipping').replace();\n }\n }\n };\n\n $scope.changeCountry = function changeCountry() {\n if ($scope.multistepSignupModel.onboard.shipping_address.country && $scope.multistepSignupModel.onboard.shipping_address.country !== $locale.country) {\n $scope.multistepSignupModel.onboard.shippingCountryChanged = true;\n $rootScope.$broadcast('countryChange', $scope.multistepSignupModel.onboard.shipping_address.country);\n } else {\n $scope.multistepSignupModel.onboard.shippingCountryChanged = false;\n }\n };\n\n $scope.onSubmit = function onSubmit() {\n // Backup user entered address\n $scope.multistepSignupModel.onboard.ue_billing_address = $BillingAddressModel.create($scope.token, {\n country: $locale.country\n }, $scope.multistepSignupModel.onboard.billing_address);\n\n if ($scope.componentsFlag.shippingAddress) {\n $scope.multistepSignupModel.onboard.ue_shipping_address = $ShippingAddressModel.create($scope.token, {\n country: $locale.country\n }, $scope.multistepSignupModel.onboard.shipping_address);\n }\n\n // Remove phone formatting\n $scope.multistepSignupModel.onboard.phone.telephone = $scope.multistepSignupModel.onboard.phone.telephone.replace(/[^0-9]/gi, '');\n\n if ($scope.normalize) {\n $scope.clearBackendError('multistepsignupaddcard');\n $scope.normalizeAddress($scope.multistepSignupModel.onboard.billing_address, $scope.uponNormalization);\n } else if ($scope.componentsFlag.shippingAddressPage) {\n if (!$scope.multistepSignupModel.flags.shipToBilling) {\n $state.go('checkout.multistepsignup.multistepsignupaddshipping');\n }\n } else {\n $state.go('checkout.multistepsignup.multistepsignupcreateaccount');\n }\n };\n }]\n };\n }]);\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n_logger.$logger;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/multistep-signup/addCard/route.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(module, __dirname, __filename) {var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/angular/angular.min.js\"), __webpack_require__(\"../node_modules/squid/dist/index.js\"), __webpack_require__(\"../node_modules/xo-guest-components/src/multistep-signup/addCard/directive.js\"), __webpack_require__(\"./pages/xo-sidebar/route.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (angular, squid) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n angular.module('xo-multistep-signup-add-card.route', ['squid', 'xo-multistep-signup-add-card.directive', 'hermes.page.xo-sidebar.route']).factory('$MultistepSignupAddCardRoute', ['$ComponentRoute', function ($ComponentRoute) {\n\n return $ComponentRoute.extend('MultistepSignupAddCardRoute', {\n name: 'multistepsignupaddcard',\n\n directive: 'xo-multistep-signup-add-card',\n\n children: [{\n name: '$SidebarRoute',\n attributes: {\n 'back-uri': 'backUri',\n 'parent-model': 'multistepSignupModel'\n }\n }]\n });\n }]);\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/webpack/buildin/module.js\")(module), \"../node_modules/xo-guest-components/src/multistep-signup/addCard\", \"../node_modules/xo-guest-components/src/multistep-signup/addCard/route.js\"))\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/multistep-signup/addShipping/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/angular/angular.min.js\"), __webpack_require__(\"../node_modules/squid/dist/index.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!../node_modules/xo-guest-components/src/multistep-signup/addShipping/template.html\"), __webpack_require__(\"../node_modules/xo-guest-components/src/multistep-signup/lib/util.js\"), __webpack_require__(\"../node_modules/xo-page-components/src/value-props/directive.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (angular, module, template, util) {\n\n return angular.module('xo-multistep-signup-add-shipping.directive', ['squid', 'xo-value-props.directive']).directive('xoMultistepSignupAddShipping', [function () {\n\n return {\n template: template,\n\n scope: {\n token: '=?',\n parentCallbacks: '=?',\n multistepSignupModel: '=?',\n positionToErrorField: '=?',\n backState: '=?',\n backendError: '=?',\n clearBackendError: '=?',\n normalizeAddress: '=?',\n prefillAddressCommon: '=?'\n },\n\n link: function link($scope) {\n if ($scope.backendError) {\n $scope.backendError('multistepsignupaddshipping');\n }\n\n $scope.$on('$destroy', function () {\n $scope.clearBackendError('multistepsignupaddshipping');\n });\n },\n\n controller: ['$scope', '$rootScope', '$populate', '$state', '$util', '$locale', '$feature', '$ShippingAddressModel', '$CheckoutAppDataModel', '$CheckoutCartModel', '$pxpFactors', '$config', '$location', function ($scope, $rootScope, $populate, $state, $util, $locale, $feature, $ShippingAddressModel, $CheckoutAppDataModel, $CheckoutCartModel, $pxpFactors, $config, $location) {\n\n $scope.locale = $locale;\n $scope.validated = false;\n $scope.formattedValues = {};\n $scope.normalize = $feature('addressNormalization', false, $locale.country);\n $scope.prefillDone = false;\n\n if (!$scope.multistepSignupModel.onboard.shippingCountryChanged) {\n $scope.multistepSignupModel.onboard.shippingCountryChanged = false;\n }\n\n $scope.zipMasking = function (newValue) {\n $scope.formattedValues.postalCode = util.maskingUtil.maskZip(newValue);\n $scope.multistepSignupModel.onboard.shipping_address.postal_code = $scope.formattedValues.postalCode.replace(/[^0-9]/gi, '');\n };\n\n if ($scope.multistepSignupModel.onboard.ue_shipping_address) {\n $scope.multistepSignupModel.onboard.shipping_address = $scope.multistepSignupModel.onboard.ue_shipping_address;\n $scope.zipMasking($scope.multistepSignupModel.onboard.ue_shipping_address.postal_code);\n }\n\n $scope.changeCountry = function changeCountry() {\n if ($scope.multistepSignupModel.onboard.shipping_address.country && $scope.multistepSignupModel.onboard.shipping_address.country !== $locale.country) {\n $scope.multistepSignupModel.onboard.shippingCountryChanged = true;\n $rootScope.$broadcast('countryChange', $scope.multistepSignupModel.onboard.shipping_address.country);\n } else {\n $scope.multistepSignupModel.onboard.shippingCountryChanged = false;\n }\n };\n\n $populate($scope, {\n checkoutAppData: $CheckoutAppDataModel.instance($scope.token),\n checkoutCart: $CheckoutCartModel.instance($scope.token)\n }).then(function () {\n // To fix the back case where the '-' is not added to zip code\n if ($scope.multistepSignupModel.onboard.shipping_address) {\n $scope.multistepSignupModel.onboard.shipping_address.postal_code = util.maskingUtil.maskZip($scope.multistepSignupModel.onboard.shipping_address.postal_code);\n }\n\n $scope.prefill = function (override) {\n var postal_code = $scope.multistepSignupModel.onboard.shipping_address.postal_code;\n\n $scope.prefillAddressCommon(postal_code, $scope.multistepSignupModel.onboard.shipping_address, $scope.multistepSignupModel.onboard.shipping_address, $scope.multistepSignupModel.flags.shippingAddress, override);\n\n if (!$scope.prefillDone) {\n $scope.prefillDone = true;\n }\n };\n\n // Get merchant passed shipping address from either purchase plan or billing agreement plan\n var merchantSuppliedAddress = $scope.checkoutCart.get('purchase.shipping_address') || $scope.checkoutCart.get('billing.shipping_address');\n\n if (merchantSuppliedAddress && !$scope.multistepSignupModel.onboard.ue_shipping_address) {\n $scope.multistepSignupModel.onboard.shipping_address = $ShippingAddressModel.create($scope.token, {\n country: $locale.country\n }, merchantSuppliedAddress);\n $scope.prefill(true);\n $scope.zipMasking($scope.multistepSignupModel.onboard.shipping_address.postal_code);\n $scope.multistepSignupModel.onboard.shipping_address.postal_code = $scope.formattedValues.postalCode;\n }\n });\n\n $scope.uponNormalization = function (normalizedAddress, isBack) {\n if (isBack) {\n $location.path('/checkout/multistepsignup/multistepsignupaddshipping').replace();\n } else {\n $scope.normalize = false;\n $scope.multistepSignupModel.onboard.shipping_address.setProperties(normalizedAddress);\n $location.path('/checkout/multistepsignup/multistepsignupcreateaccount').replace();\n }\n };\n\n $scope.validate = function () {\n $scope.validated = true;\n return true;\n };\n\n $scope.onSubmit = function onSubmit() {\n // set recipient_name property\n var shippingAddress = $scope.multistepSignupModel.onboard.shipping_address;\n // TODO: in some locale, last_name can be displayed first, and space ' ' can be unnecessary.\n\n shippingAddress.recipient_name = shippingAddress.first_name + ' ' + shippingAddress.last_name;\n\n // backup user entered address\n $scope.multistepSignupModel.onboard.ue_shipping_address = $ShippingAddressModel.create($scope.token, {\n country: $locale.country\n }, shippingAddress);\n\n if ($scope.normalize) {\n $scope.clearBackendError('multistepsignupaddshipping');\n $scope.normalizeAddress(shippingAddress, $scope.uponNormalization);\n } else {\n $state.go('checkout.multistepsignup.multistepsignupcreateaccount');\n }\n };\n }]\n };\n }]);\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/multistep-signup/addShipping/route.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(module, __dirname, __filename) {var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/angular/angular.min.js\"), __webpack_require__(\"../node_modules/squid/dist/index.js\"), __webpack_require__(\"../node_modules/xo-guest-components/src/multistep-signup/addShipping/directive.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (angular, squid) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n angular.module('xo-multistep-signup-add-shipping.route', ['squid', 'xo-multistep-signup-add-shipping.directive']).factory('$MultistepSignupAddShippingRoute', ['$ComponentRoute', function ($ComponentRoute) {\n\n return $ComponentRoute.extend('MultistepSignupAddShippingRoute', {\n name: 'multistepsignupaddshipping',\n\n directive: 'xo-multistep-signup-add-shipping',\n\n children: [{\n name: '$AddressNormalizationRoute',\n attributes: {\n id: 'token',\n address: 'multistepSignupModel.onboard.shipping_address',\n 'done-fn': 'uponNormalization'\n }\n }]\n });\n }]);\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/webpack/buildin/module.js\")(module), \"../node_modules/xo-guest-components/src/multistep-signup/addShipping\", \"../node_modules/xo-guest-components/src/multistep-signup/addShipping/route.js\"))\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/multistep-signup/addressNormalization/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/angular/angular.min.js\"), __webpack_require__(\"../node_modules/squid/dist/index.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!../node_modules/xo-guest-components/src/multistep-signup/addressNormalization/template.html\"), __webpack_require__(\"./js/lib/index.js\"), __webpack_require__(\"../node_modules/xo-page-components/src/value-props/directive.js\"), __webpack_require__(\"../node_modules/xo-guest-components/src/multistep-signup/lib/util.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (angular, module, template) {\n\n return angular.module('xo-multistep-signup-address-normalization.directive', ['squid', 'xo-value-props.directive']).directive('xoMultistepSignupAddressNormalization', ['$rootScope', function ($rootScope) {\n\n return {\n template: template,\n\n scope: {\n id: '=?',\n address: '=?',\n doneFn: '=?'\n },\n\n controller: ['$scope', '$locale', '$config', function ($scope, $locale, $config) {}]\n };\n }]);\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/multistep-signup/addressNormalization/route.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(module, __dirname, __filename) {var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/angular/angular.min.js\"), __webpack_require__(\"../node_modules/squid/dist/index.js\"), __webpack_require__(\"../node_modules/xo-guest-components/src/multistep-signup/addressNormalization/directive.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (angular, squid) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n angular.module('xo-multistep-signup-address-normalization.route', ['squid', 'xo-multistep-signup-address-normalization.directive']).factory('$MultistepSignupAddressNormalizationRoute', ['$ComponentRoute', function ($ComponentRoute) {\n\n return $ComponentRoute.extend('MultistepSignupAddressNormalizationRoute', {\n name: 'multistepsignupaddressnormalization',\n\n directive: 'xo-multistep-signup-address-normalization',\n\n children: []\n });\n }]);\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/webpack/buildin/module.js\")(module), \"../node_modules/xo-guest-components/src/multistep-signup/addressNormalization\", \"../node_modules/xo-guest-components/src/multistep-signup/addressNormalization/route.js\"))\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/multistep-signup/apiCalls/factory.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(module, __dirname, __filename, $) {var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\nvar _util = __webpack_require__(\"../node_modules/xo-guest-components/src/lib/util.js\");\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\nvar _utils = __webpack_require__(\"../node_modules/xo-guest-components/src/guest/currencyConversion/utils.js\");\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/angular/angular.min.js\"), __webpack_require__(\"../node_modules/squid/dist/index.js\"), __webpack_require__(\"../node_modules/xo-guest-components/src/multistep-signup/lib/util.js\"), __webpack_require__(\"../node_modules/xo-guest-components/src/lib/util.js\"), __webpack_require__(\"../node_modules/xo-models/src/inventory/index.js\"), __webpack_require__(\"../node_modules/xo-models/src/shoppingcart/index.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (angular, squid, util) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n squid.module('xomultistepsignupapi', ['squid']).factory('$MultistepApiCalls', ['$MultistepSignupModel', '$CheckoutSessionModel', '$CheckoutAppDataModel', '$CheckoutPayeeModel', '$InventoryModel', '$ShoppingCartModel', '$CheckoutCartModel', '$rootScope', '$state', '$config', '$locale', '$NationalIdModel', '$location', '$dispatch', '$getRedirectUrl', '$renderContent', '$q', '$FundingOptionsModel', function ($MultistepSignupModel, $CheckoutSessionModel, $CheckoutAppDataModel, $CheckoutPayeeModel, $InventoryModel, $ShoppingCartModel, $CheckoutCartModel, $rootScope, $state, $config, $locale, $NationalIdModel, $location, $dispatch, $getRedirectUrl, $renderContent, $q, $FundingOptionsModel) {\n\n function processFieldMap(errorCategory) {\n var fieldMap = util.contingencyMap(errorCategory.errorCode || errorCategory.code);\n\n if (fieldMap) {\n if (!fieldMap.fields && (errorCategory.fields || errorCategory.details && errorCategory.details.fields)) {\n // eslint-disable-line no-extra-parens\n errorCategory.fields = errorCategory.fields || errorCategory.details && errorCategory.details.fields;\n\n var fields = errorCategory.fields.map(function (value, index, array) {\n if (angular.isString(value)) {\n return {\n field: value\n };\n }\n\n return value;\n });\n\n fieldMap.fields = fields;\n }\n } else {\n _logger.$logger.info('signup_validation_error', {\n message: errorCategory.errorCode || errorCategory.code + ' not mapped'\n });\n }\n\n return fieldMap;\n }\n\n function redirectTohermesCC(path, $location, token) {\n // eslint-disable-line no-shadow\n var url;\n var protocol;\n var host;\n var port;\n\n protocol = $location.protocol() + '://';\n\n if ($location.host()) {\n host = $location.host();\n }\n\n if ($location.port()) {\n port = ':' + $location.port();\n }\n\n url = protocol + host + port + config.urls.fallbackUrl.hermes + '?token=' + token + path; // eslint-disable-line no-undef,block-scoped-var\n\n window.location = url;\n }\n\n function setStickyInstrument(checkoutSession) {\n // make billing agreement FI sticky for sign up\n\n var stickyInstrument = checkoutSession.selectedFuturePaymentInstrument ? undefined : checkoutSession.getSelectedStickyInstrument();\n\n if (stickyInstrument) {\n return checkoutSession.action('setStickyFI', {\n data: {\n instrument_id: stickyInstrument.instrument_id\n }\n });\n }\n }\n\n function showGenericError(code) {\n return function () {\n $state.go('checkout.genericError', { code: code });\n };\n }\n\n function markCartCheckedout(checkoutAppData) {\n var shoppingCartModel = $ShoppingCartModel.instance($rootScope.token);\n\n return shoppingCartModel.action('cartCheckedOut', {\n success: function success(result) {\n _logger.$logger.info('cart checked out successfully');\n }\n });\n }\n\n function handlePaymentContingencies(checkoutCart, payee, code) {\n return function () {\n inventoryOperation(checkoutCart, payee, 'failed');\n return $state.go('checkout.genericError', { code: code });\n };\n }\n\n function makePayment(checkoutSession, checkoutCart, checkoutAppData, payee) {\n return checkoutSession.action('createPayment', {\n 'data': {\n payer_id: checkoutSession.payer && checkoutSession.payer.id,\n intent: checkoutCart.payment_action\n },\n success: function success(result) {\n $rootScope.paymentComplete = true;\n if ($config.enableShoppingCartWPS && checkoutAppData.flags.is_shopping_cart_flow) {\n markCartCheckedout(checkoutAppData);\n }\n return $state.go('checkout.done');\n },\n contingencies: {\n TRANSACTION_REFUSED: handlePaymentContingencies(checkoutCart, payee, 'TRANSACTION_REFUSED'),\n INSTRUMENT_DECLINED: function INSTRUMENT_DECLINED(err, message) {\n inventoryOperation(checkoutCart, payee, 'failed');\n _logger.$logger.info('INSTRUMENT_DECLINED_contingency', {\n name: err,\n message: message\n });\n redirectTohermesCC('#checkout/pageAddCard/addCardFlow/addCard', $location, $rootScope.token);\n },\n PAYEE_BLOCKED_TRANSACTION: handlePaymentContingencies(checkoutCart, payee, 'PAYMENT_DENIED'),\n DUPLICATE_TRANSACTION: handlePaymentContingencies(checkoutCart, payee, 'PAYMENT_ALREADY_DONE'),\n CC_PROCESSOR_DECLINED: function CC_PROCESSOR_DECLINED(err, message) {\n inventoryOperation(checkoutCart, payee, 'failed');\n // Log the error and redirect to hermes add card page\n _logger.$logger.info('CC_PROCESSOR_DECLINED_CONTINGENCY', {\n name: err,\n message: message\n });\n redirectTohermesCC('#checkout/pageAddCard/addCardFlow/addCard', $location, $rootScope.token);\n },\n DEFAULT: handlePaymentContingencies(checkoutCart, payee, 'DEFAULT')\n },\n error: function error(err) {\n _logger.$logger.info('createPayment Failed due to service error', err);\n inventoryOperation(checkoutCart, payee, 'failed');\n return $state.go('checkout.genericError', { code: 'DEFAULT' });\n }\n\n });\n }\n\n function authorizeSession(checkoutSession) {\n var multistepSignupModel = $MultistepSignupModel.instance();\n var checkoutAppData = $CheckoutAppDataModel.instance($rootScope.token);\n var payee = $CheckoutPayeeModel.instance($rootScope.token);\n var checkoutCart = $CheckoutCartModel.instance($rootScope.token);\n\n if (checkoutSession.resolve_3ds) {\n var cc_id = checkoutSession.get('resolve_3ds.ccId');\n var plans = checkoutSession.get('plan.sources', null);\n var plan = plans && plans.filter(function (e) {\n return e.instrument_id === cc_id;\n })[0].amount || null;\n\n multistepSignupModel.resolve_3ds_data = {\n cc_id: cc_id,\n flow_id: 'HERMES',\n merchant_id: payee.get('merchant.id'),\n merchant_country_code: checkoutAppData.get('merchant.merchant_country'),\n transaction_amount_currency: plan && plan.currency_code,\n transaction_amount_value: plan && plan.amount\n };\n\n multistepSignupModel.is3ds = true;\n $state.go('checkout.multistepsignup.multistepsignupcreateaccount');\n } else {\n return $q.when(setStickyInstrument(checkoutSession))['catch'](function (err) {\n _logger.$logger.info('setStickyFI Failed', err);\n })['finally'](function () {\n return checkoutSession.action('authorize', {\n success: function success() {\n var isSubscriptionsV1 = checkoutCart.isSubscriptionsV1();\n var isWpsSubscription = checkoutAppData.is_wps_subscription_flow();\n\n if (isWpsSubscription || isSubscriptionsV1) {\n return (0, _util.redirectToSubscriptionFinalRoute)(multistepSignupModel.flags.mode, isSubscriptionsV1);\n } else if (checkoutAppData.doec_on_approve()) {\n return checkInventoryAndPay(checkoutSession, checkoutCart, payee, checkoutAppData);\n } else {\n $state.go('checkout.end');\n }\n }\n });\n });\n }\n }\n\n function inventoryOperation(checkoutCart, payee, paymentStatus) {\n var cartHasInventory = checkoutCart.get('cartHasInventory');\n\n if (cartHasInventory) {\n var inventoryModel = $InventoryModel.instance($rootScope.token);\n var inventoryItems = inventoryModel.getInventoryItems();\n var purchaseItems = checkoutCart.get('purchaseUnits');\n var cartItems,\n inventoryPatchInput = {};\n\n if (purchaseItems && purchaseItems[0] && purchaseItems[0].item_list) {\n cartItems = purchaseItems[0].item_list.items;\n }\n paymentStatus = paymentStatus ? paymentStatus : 'success';\n if (cartItems && inventoryItems) {\n inventoryPatchInput = {\n inventoryItems: inventoryItems,\n cartItems: cartItems,\n merchantId: payee.get('merchant.id', ''),\n paymentStatus: paymentStatus\n };\n } else {\n return $q.when(); // don't need to call patchInventory if items not present\n }\n\n return inventoryModel.action('patchInventory', {\n data: inventoryPatchInput,\n success: function success(patchResponse) {\n if (patchResponse) {\n if (patchResponse.showSoldoutPage) {\n // show soldout page\n return {\n soldoutpage: true,\n items: patchResponse.soldoutItems,\n soldOutUrl: patchResponse.soldoutUrl\n };\n } else if (patchResponse.patchCart) {\n var purchase_unit = checkoutCart.get('purchaseUnits')[0];\n\n purchase_unit.item_list.items = patchResponse.cartItems;\n var patchCartPayload = {\n id: $rootScope.token,\n patchEntities: [{\n field: 'inventoryItems',\n value: purchase_unit.item_list.items\n }]\n };\n\n return checkoutCart.action('patchCartData', {\n data: patchCartPayload\n });\n }\n } else {\n return;\n }\n }\n });\n } else {\n return $q.when(); // not an inventory request proceed with existing flow\n }\n }\n\n function checkInventoryAndPay(checkoutSession, checkoutCart, payee, checkoutAppData) {\n return inventoryOperation(checkoutCart, payee).then(function (result) {\n if (result && result.soldoutpage) {\n return $state.go('checkout.soldout', {\n items: encodeURIComponent(result.items),\n soldOutUrl: encodeURIComponent(result.soldOutUrl)\n });\n }\n return makePayment(checkoutSession, checkoutCart, checkoutAppData, payee);\n });\n }\n\n function createSession() {\n\n var multistepSignupModel = $MultistepSignupModel.instance();\n var checkoutSession = $CheckoutSessionModel.instance($rootScope.token);\n var checkoutCart = $CheckoutCartModel.instance($rootScope.token);\n\n return checkoutSession.action('create', {\n data: {\n fraudnet_id: checkoutCart.supplementary && checkoutCart.supplementary.risk_correlation_id,\n baToken: checkoutCart.billing && checkoutCart.billing.ba_token\n },\n success: function success() {\n return $q.when().then(function () {\n if (!multistepSignupModel.flags.shipToBilling) {\n return multistepSignupModel.onboard.shipping_address.save({\n\n data: multistepSignupModel.onboard.shipping_address.serialize(),\n\n validation: function validation(message, err) {\n // TODO need to handle\n }\n });\n }\n }).then(function () {\n var _ref = multistepSignupModel.flags || {},\n hasBuyerFxPrePlanData = _ref.hasBuyerFxPrePlanData,\n buyerFxTreatment = _ref.buyerFxTreatment;\n\n // If this purchase is a cross-border transaction that requires\n // currency conversion then `buyerFxTreatment` will be truthy\n\n\n if (buyerFxTreatment) {\n var _multistepSignupModel = multistepSignupModel.onboard,\n card = _multistepSignupModel.card,\n _multistepSignupModel2 = _multistepSignupModel.card;\n _multistepSignupModel2 = _multistepSignupModel2 === undefined ? {} : _multistepSignupModel2;\n var type = _multistepSignupModel2.type;\n var purchase = checkoutSession.purchase;\n\n var isConversionChangeable = (0, _utils.isConversionChangeableForCardType)(type);\n\n /**\n * If buyer fx pre-plan call failed and the card is changeable\n * then we haven't logged event 3 yet. Event 3 for changeable\n * cards is usually logged in xo-wallet-components creditcard-input\n * directive after a successful call to the pre-plan API.\n */\n if (!hasBuyerFxPrePlanData && isConversionChangeable) {\n /**\n * FPTI event #3 for Buyer FX\n * https://engineering.paypalcorp.com/confluence/display/EDS/Buyer+FX+Instrumentation+Specs\n */\n (0, _utils.logBuyerFxFptiEvent3)(purchase);\n }\n\n /**\n * FPTI event 7 for Buyer FX\n * https://engineering.paypalcorp.com/confluence/display/EDS/Buyer+FX+Instrumentation+Specs\n */\n (0, _utils.logBuyerFxFptiEvent7)({\n card: card,\n hasPrePlanData: hasBuyerFxPrePlanData,\n isConversionChangeable: isConversionChangeable,\n isSignup: true,\n purchase: purchase\n });\n }\n\n if (checkoutSession.get('plan.conversion.paypal') && checkoutSession.get('plan.conversion.changeable') && multistepSignupModel.onboard.card.ppconversion === 'VENDOR') {\n return $FundingOptionsModel.instance($rootScope.token).action('updateConversion', {\n data: {\n conversionType: 'VENDOR',\n planId: checkoutSession.plan.id\n }\n })['catch'](function (err) {\n _logger.$logger.warn('ERROR_updateConversion to VENDOR failed', err);\n });\n }\n }).then(function () {\n return authorizeSession(checkoutSession);\n });\n },\n contingencies: {\n TRANSACTION_REFUSED: showGenericError('TRANSACTION_REFUSED'),\n NEED_CREDIT_CARD: function NEED_CREDIT_CARD(err, message) {\n _logger.$logger.info('NEED_CREDIT_CARD_contingency', {\n name: err,\n message: message\n });\n redirectTohermesCC('#checkout/pageAddCard/addCardFlow/addCard', $location, $rootScope.token);\n }\n }\n });\n }\n\n var multiStepFunctions = {\n\n onboard: function onboard() {\n\n var pageError = { // eslint-disable-line no-reserved-keys\n multistepsignupaddcard: [],\n multistepsignupaddshipping: [],\n multistepsignupcreateaccount: [],\n transient: true\n };\n\n var multistepSignupModel = $MultistepSignupModel.instance();\n\n multistepSignupModel.onboard.billing_address.country = $locale.country;\n multistepSignupModel.onboard.nationalIdModel = $NationalIdModel.instance($rootScope.token);\n\n return multistepSignupModel.onboard.action(multistepSignupModel.flags.mode, {\n\n data: multistepSignupModel.onboard.serialize(),\n\n success: createSession,\n\n contingencies: {\n TRANSACTION_REFUSED: showGenericError('TRANSACTION_REFUSED'),\n TOO_MANY_REQUESTS: function TOO_MANY_REQUESTS() {\n var messages = [];\n\n messages.push($locale.content.get('genericError.genericError'));\n\n multistepSignupModel.pageError = pageError;\n pageError.multistepsignupaddcard.errorMessage = {\n msgs: messages,\n type: 'error'\n };\n\n $state.go('checkout.multistepsignup.multistepsignupaddcard');\n },\n ADD_KYC_FAILED: function ADD_KYC_FAILED() {\n redirectTohermesCC('#/checkout/addNationalId', $location, $rootScope.token);\n },\n CC_LINKED_TO_FULL_ACCOUNT: function CC_LINKED_TO_FULL_ACCOUNT() {\n var messages = [];\n\n messages.push($locale.content.get('creditcard.linkedCardToAddNewCard'));\n\n multistepSignupModel.pageError = pageError;\n pageError.multistepsignupaddcard.errorMessage = {\n msgs: messages,\n type: 'error'\n };\n\n $state.go('checkout.multistepsignup.multistepsignupaddcard');\n },\n ADD_CARD_CONTINGENCY: function ADD_CARD_CONTINGENCY(message, errorData) {\n // @TODO send to correct page in hermes\n // $dispatch('hermes');\n // auth model-> check if user logged in\n var addFIContingency = errorData && errorData[0] === 'VALIDATION_ERROR' ? 'retry' : 'noretry';\n\n $dispatch('hermes', {\n redirectToHermes: true,\n addFIContingency: addFIContingency,\n token: $rootScope.token,\n 'locale.x': $locale.lang + '_' + $locale.country,\n 'country.x': $locale.country\n });\n },\n ISSUER_DECLINE: function ISSUER_DECLINE(message, result) {\n // @TODO send to correct page in hermes\n // $dispatch('hermes');\n redirectTohermesCC('#checkout/pageAddCard/addCardFlow/addCard', $location, $rootScope.token);\n },\n VALIDATION_ERROR: function VALIDATION_ERROR(message, errors) {\n\n var messages = [];\n var compileVars = {\n loginRedirectUrl: $getRedirectUrl('hermes', {\n hermesLoginRedirect: 'xoon'\n })\n };\n // Iterate over the errorData to support multiple error support\n\n Object.keys(errors).forEach(function (key, index, array) {\n\n var errorCategory = errors[key];\n // errorCategory sanity checks\n\n if (!errorCategory || angular.isString(errorCategory) || key === 'transient' || key === 'payload') {\n return;\n }\n\n var fieldMap = processFieldMap(errorCategory);\n var msg;\n var compileMessageWith;\n\n if (fieldMap) {\n\n if (fieldMap.pageError) {\n compileMessageWith = fieldMap.compileMessageWith;\n\n if (compileMessageWith) {\n // substitute the actual value\n // this is required as it is not good to have custom\n // code inside library - lib/utils.js\n $.each(compileMessageWith, function (objKey, val) {\n var actualValue = compileVars[val];\n\n if (actualValue) {\n compileMessageWith[objKey] = actualValue;\n }\n });\n\n msg = $renderContent(fieldMap.pageError.contentKey, compileMessageWith);\n } else {\n msg = $locale.content.get(fieldMap.pageError.contentKey);\n }\n messages.push(msg);\n }\n\n pageError[fieldMap.path].push(fieldMap);\n\n if (messages.length > 0) {\n pageError[fieldMap.path].errorMessage = {\n msgs: messages,\n type: 'error'\n };\n }\n }\n });\n\n multistepSignupModel.pageError = pageError;\n throw pageError;\n }\n },\n validation: function validation(res) {\n if (res && (res.field === 'secondaryId' || res.field === 'passport')) {\n // The validation error cannot be corrected at this point in onboarding\n redirectTohermesCC('#/checkout/addNationalId', $location, $rootScope.token);\n } else {\n _logger.$logger.info('signup_validation', {\n message: res\n });\n }\n }\n });\n },\n\n routeToHermesOn3DSDeclineForSignUp: function routeToHermesOn3DSDeclineForSignUp() {\n // dispatch to hermesnodeweb up on 3DS authenticate decline.\n _logger.$logger.info('xoon_to_hermes_redirect_on_signup_3DS_Authentication_decline');\n $dispatch('hermes', {\n token: $rootScope.token,\n redirectToHermesOn3DSDecline: 'xoon'\n });\n },\n\n clear3DSContingency: function clear3DSContingency() {\n var checkoutSession = $CheckoutSessionModel.instance($rootScope.token);\n\n return checkoutSession.action('clear3DSContingency', {\n data: {\n ccId: checkoutSession.resolve_3ds.ccId\n },\n success: function success() {\n // don't call authorize if the contingency is not cleared\n if (!checkoutSession.resolve_3ds) {\n return authorizeSession(checkoutSession);\n } else {\n multiStepFunctions.routeToHermesOn3DSDeclineForSignUp();\n }\n },\n contingencies: {\n // contingency may be \"no cc\" or any thing from clear3DSContingency(patch on xosession)\n // for \"no cc\" symphony throws NEED_CREDIT_CARD or NEED_CREDIT_CARD_OR_BANK_ACCOUNT\n DEFAULT: function handleContingency(name, contingency) {\n _logger.$logger.info('clear3DSContingency_contingency', {\n 'int_error_description': contingency && contingency.message,\n 'contingency_name': name\n });\n // route to member review page upon patch xo throws contingency for signup\n multiStepFunctions.routeToHermesOn3DSDeclineForSignUp();\n }\n }\n\n });\n }\n\n };\n\n return multiStepFunctions;\n }]);\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n_util.redirectToSubscriptionFinalRoute;\n\n_logger.$logger;\n\n_utils.isConversionChangeableForCardType;\n\n_utils.logBuyerFxFptiEvent3;\n\n_utils.logBuyerFxFptiEvent7;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/webpack/buildin/module.js\")(module), \"../node_modules/xo-guest-components/src/multistep-signup/apiCalls\", \"../node_modules/xo-guest-components/src/multistep-signup/apiCalls/factory.js\", __webpack_require__(\"../node_modules/jquery/dist/jquery.min.js\")))\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/multistep-signup/createAccount/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\nvar _contentKeys = __webpack_require__(\"../node_modules/xo-guest-components/src/lib/contentKeys.js\");\n\nvar _subscription = __webpack_require__(\"../node_modules/xo-models/src/subscription/index.js\");\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/jquery/dist/jquery.min.js\"), __webpack_require__(\"../node_modules/angular/angular.min.js\"), __webpack_require__(\"../node_modules/squid/dist/index.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!../node_modules/xo-guest-components/src/multistep-signup/createAccount/template.html\"), __webpack_require__(\"../node_modules/xo-guest-components/src/multistep-signup/lib/util.js\"), __webpack_require__(\"../node_modules/xo-page-components/src/value-props/directive.js\"), __webpack_require__(\"../node_modules/xo-models/src/onboard/index.js\"), __webpack_require__(\"../node_modules/xo-models/src/fi/index.js\"), __webpack_require__(\"../node_modules/xo-form-components/src/dob-input/directive.js\"), __webpack_require__(\"../node_modules/xo-form-components/src/national-id-input/directive.js\"), __webpack_require__(\"../node_modules/xo-models/src/user/index.js\"), __webpack_require__(\"../node_modules/xo-guest-components/src/multistep-signup/apiCalls/factory.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function ($, angular, module, template, util) {\n\n return angular.module('xo-multistep-signup-create-account.directive', ['squid', 'xomodel.onboard', 'xo-value-props.directive', 'xo-dob-input.directive', 'xo-national-id-input.directive', 'xomodel.user', 'xomultistepsignupapi']).directive('xoMultistepSignupCreateAccount', [function () {\n\n return {\n template: template,\n\n scope: {\n token: '=?',\n parentCallbacks: '=?',\n multistepSignupModel: '=?',\n positionToErrorField: '=?',\n backState: '=?',\n backendError: '=?',\n clearBackendError: '=?'\n },\n\n controller: ['$scope', '$rootScope', '$populate', '$state', '$util', '$locale', '$ShippingAddressModel', '$logger', '$CheckoutSessionModel', '$CheckoutAppDataModel', '$CheckoutCartModel', '$UserInfoModel', '$dispatch', '$pxpFactors', '$config', '$MultistepApiCalls', '$pxp', function ($scope, $rootScope, $populate, $state, $util, $locale, $ShippingAddressModel, $logger, $CheckoutSessionModel, $CheckoutAppDataModel, $CheckoutCartModel, $UserInfoModel, $dispatch, $pxpFactors, $config, $MultistepApiCalls, $pxp) {\n\n // Log to FPTI to indicate the page has been rendered\n $logger.info('checkout_fpti', {\n from: 'CHECKOUT_MULTISTEPSIGNUP_MULTISTEPSIGNUPCREATEACCOUNT',\n to: 'prepare_checkout_multistepsignup_multistepsignupcreateaccount'\n });\n\n $scope.locale = $locale;\n $scope.componentsFlag = util.componentsMap($locale.country);\n $scope.metadata = angular.copy($locale.metadata);\n $scope.countries = $scope.metadata.territory;\n\n $scope.checkoutCart = $CheckoutCartModel.instance($scope.token);\n $scope.checkoutAppData = $CheckoutAppDataModel.instance($scope.token);\n if ($scope.checkoutCart && $scope.checkoutCart.isSubscriptionsV1()) {\n $scope.subscriptionsV1Model = _subscription.$SubscriptionsV1Model.instance($scope.checkoutCart.getBaToken());\n }\n\n if ($scope.checkoutAppData && $scope.checkoutAppData.merchant) {\n $scope.nonEmptyMerchantDisplayName = $scope.checkoutAppData.getMerchantDisplayName({\n nonEmptyReturnValue: true\n });\n }\n\n function formatFiLast4() {\n var ccNum = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n\n return 'x-' + ccNum.replace(/\\s+/g, '').slice(-4);\n }\n\n function formatFiName() {\n var ccType = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n\n var tmp = ccType.toLowerCase();\n\n return tmp.charAt(0).toUpperCase() + tmp.slice(1);\n }\n\n var contentOpts = {\n cart: $scope.checkoutCart,\n appData: $scope.checkoutAppData,\n locale: $scope.locale,\n subscriptionData: $scope.subscriptionsV1Model\n };\n\n $scope.isWpsSubscription = $scope.checkoutAppData.is_wps_subscription_flow();\n $scope.isSubscriptionsV1 = $scope.checkoutCart.isSubscriptionsV1();\n $scope.isSubscription = $scope.isWpsSubscription || $scope.isSubscriptionsV1;\n $scope.billingAgrementContentInfo = (0, _contentKeys.getBillingAgreementContentInfo)(contentOpts);\n\n $scope.fiName = formatFiName($scope.multistepSignupModel.onboard.card.type);\n $scope.fiFormatLast4 = formatFiLast4($scope.multistepSignupModel.onboard.card.number);\n\n if ($scope.billingAgrementContentInfo && $scope.billingAgrementContentInfo.data) {\n $scope.billingAgrementContentInfo.data.fiName = $scope.fiName;\n $scope.billingAgrementContentInfo.data.fiFormatLast4 = $scope.fiFormatLast4;\n }\n // Reset password fields\n delete $scope.multistepSignupModel.onboard.user.password;\n delete $scope.multistepSignupModel.onboard.user.confirmPassword;\n\n var useraction = $scope.checkoutAppData.useraction();\n\n $scope.isCommit = useraction && useraction.toLowerCase() === 'commit';\n $logger.info('checkout_fpti', {\n 'billing_page_button_text': $scope.isCommit ? 'paynow_y' : 'paynow_n'\n });\n\n if ($scope.isCommit) {\n if ($scope.isSubscription) {\n $scope.submitButtonKey = 'wpsSubscription.guest.createAccountAndSubscribe.button.text';\n } else {\n $scope.submitButtonKey = 'common.agreeAndPay';\n }\n } else {\n $scope.submitButtonKey = 'common.agreeAndContinue';\n }\n\n if (!$rootScope.miniBrowser && $locale.country === 'BR') {\n var brPxp = $config.pxpExperiments.BR.xo_br_hermesnode_createaccount_design;\n\n $pxpFactors(brPxp.pgName, brPxp.params, brPxp.pattern).then(function (result) {\n $scope.createAccountDesignExp = result;\n });\n }\n\n function handleUIValidation(fields) {\n var $fields = $(fields);\n\n $fields.addClass('backendError');\n\n if (window.scrollTo) {\n window.scrollTo(0, 0);\n }\n }\n\n function isNameCyrillic() {\n var result = true;\n var regexCyrillic = /[а-яА-ЯЁё]/;\n\n if (!regexCyrillic.test($('#firstName').val())) {\n result = false;\n handleUIValidation('#firstName');\n }\n if (!regexCyrillic.test($('#lastName').val())) {\n result = false;\n handleUIValidation('#lastName');\n }\n if (!regexCyrillic.test($('#middleName').val())) {\n result = false;\n handleUIValidation('#middleName');\n }\n\n if (!result) {\n var messages = [];\n\n messages.push($locale.content.get('addTaxId.cyrillicNameError'));\n $scope.multistepSignupModel.pageError = $scope.multistepSignupModel.pageError || {};\n $scope.multistepSignupModel.pageError.multistepsignupcreateaccount = {\n errorMessage: {\n msgs: messages,\n type: 'error'\n }\n };\n }\n\n return result;\n }\n\n $scope.onContinue = function () {\n var validInput = true;\n\n if ($scope.multistepSignupModel.onboard.user.countryOfResidence === 'RU') {\n validInput = isNameCyrillic();\n }\n\n var isLegalAge = util.validateLegalAge($scope.multistepSignupModel.onboard.user.dob_month, $scope.multistepSignupModel.onboard.user.dob_day, $scope.multistepSignupModel.onboard.user.dob_year);\n\n if (!isLegalAge) {\n validInput = false;\n handleUIValidation('#dobText');\n }\n\n if (validInput) {\n $scope.onSubmit();\n }\n };\n\n $scope.legalAgreeToolTip = function () {\n if ($scope.multistepSignupModel.onboard.agree) {\n $scope.showTooltip = false;\n } else {\n $scope.showTooltip = true;\n }\n };\n\n $scope.validate = function () {\n $scope.legalAgreeToolTip();\n $scope.validated = true;\n return true;\n };\n\n $scope.onComplete3DSHandler = function (status) {\n $scope.multistepSignupModel.is3ds = false;\n if (status === 'decline' || status === 'close') {\n // Flow should route to member review page for sign up case\n // up on receiving \"decline\" or \"close\" response from 3DS authenticate call\n $MultistepApiCalls.routeToHermesOn3DSDeclineForSignUp();\n } else if (status === 'success') {\n // Up on Successful authenticate, perform Patch on XO session and authorise.\n $MultistepApiCalls.clear3DSContingency();\n }\n };\n\n $scope.onSubmit = function () {\n\n $logger.info($scope.multistepSignupModel.flags.mode + '_submit', {\n type: $scope.multistepSignupModel.onboard.card.type,\n country: $locale.country,\n lang: $locale.lang\n }).flush();\n\n if ($scope.multistepSignupModel.flags.shipToBilling) {\n $scope.multistepSignupModel.onboard.shipping_address = $ShippingAddressModel.create($scope.token, $scope.multistepSignupModel.onboard.billing_address, {\n first_name: $scope.multistepSignupModel.onboard.user.first_name,\n last_name: $scope.multistepSignupModel.onboard.user.last_name\n });\n }\n\n $MultistepApiCalls.onboard()['catch'](function (pageError) {\n var addCard = pageError.multistepsignupaddcard;\n var addShipping = pageError.multistepsignupaddshipping;\n var createAcc = pageError.multistepsignupcreateaccount;\n\n // Globally handled contingencies also trigger the catch block.\n if (addCard && addCard.length > 0) {\n $state.go('checkout.multistepsignup.multistepsignupaddcard');\n } else if (addShipping && addShipping.length > 0) {\n $state.go('checkout.multistepsignup.multistepsignupaddshipping');\n } else if (createAcc && createAcc.length > 0) {\n $scope.backendError('multistepsignupcreateaccount');\n }\n });\n };\n }]\n };\n }]);\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n_contentKeys.getBillingAgreementContentInfo;\n\n_subscription.$SubscriptionsV1Model;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/multistep-signup/createAccount/route.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(module, __dirname, __filename) {var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/angular/angular.min.js\"), __webpack_require__(\"../node_modules/squid/dist/index.js\"), __webpack_require__(\"../node_modules/xo-guest-components/src/multistep-signup/createAccount/directive.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (angular, squid) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n angular.module('xo-multistep-signup-create-account.route', ['squid', 'xo-multistep-signup-create-account.directive']).factory('$MultistepSignupCreateAccountRoute', ['$ComponentRoute', function ($ComponentRoute) {\n\n return $ComponentRoute.extend('MultistepSignupCreateAccountRoute', {\n name: 'multistepsignupcreateaccount',\n\n directive: 'xo-multistep-signup-create-account',\n\n children: []\n });\n }]);\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/webpack/buildin/module.js\")(module), \"../node_modules/xo-guest-components/src/multistep-signup/createAccount\", \"../node_modules/xo-guest-components/src/multistep-signup/createAccount/route.js\"))\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/multistep-signup/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/jquery/dist/jquery.min.js\"), __webpack_require__(\"../node_modules/angular/angular.min.js\"), __webpack_require__(\"../node_modules/squid/dist/module.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!../node_modules/xo-guest-components/src/multistep-signup/template.html\"), __webpack_require__(\"../node_modules/xo-guest-components/src/multistep-signup/index.js\"), __webpack_require__(\"../node_modules/xo-models/src/onboard/index.js\"), __webpack_require__(\"../node_modules/xo-models/src/checkout/index.js\"), __webpack_require__(\"../node_modules/xo-models/src/address/index.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function ($, angular, module, template) {\n\n return angular.module('xo-multistep-signup.directive', ['squid', 'xomultistepsignupmodel', 'xomodel.onboard', 'xomodel.checkout', 'xomodel.address', 'xo-fi-contingency-list.util']).directive('xoMultistepSignup', ['$rootScope', function ($rootScope) {\n\n return {\n template: template,\n\n scope: {\n token: '=?',\n parentCallbacks: '=?',\n buttonParams: '=?'\n },\n\n controller: ['$populate', '$scope', '$state', '$locale', '$MultistepSignupModel', '$OnboardModel', '$logger', '$PrefillAddressModel', '$OnboardUserModel', '$OnboardPhoneModel', '$ShippingAddressModel', '$BillingAddressModel', '$InstallmentOptionsModel', '$location', '$feature', '$timeout', '$CheckoutPayeeModel', '$CheckoutCartModel', '$CheckoutAppDataModel', '$fiErrorUtil', '$util', function ($populate, $scope, $state, $locale, $MultistepSignupModel, $OnboardModel, $logger, $PrefillAddressModel, $OnboardUserModel, $OnboardPhoneModel, $ShippingAddressModel, $BillingAddressModel, $InstallmentOptionsModel, $location, $feature, $timeout, $CheckoutPayeeModel, $CheckoutCartModel, $CheckoutAppDataModel, $fiErrorUtil, $util) {\n\n $scope.locale = $locale;\n\n $scope.multistepSignupModel = $MultistepSignupModel.instance();\n\n function triggerPageDesignFPTILog() {\n var pageContext = 'Full-context';\n\n if ($rootScope.miniBrowser) {\n pageContext = 'In-context';\n }\n\n $logger.info('checkout_fpti', {\n 'design': pageContext\n });\n }\n // Log Initial Page Design\n triggerPageDesignFPTILog();\n // Trigger Design FPTI Log on Page Design Change\n $rootScope.$watch('miniBrowser', triggerPageDesignFPTILog);\n\n var normalizeCallback;\n var lastPrefillCall = {};\n\n function sanitizeZip(value) {\n return (value || '').replace(/[^0-9]+/g, '');\n }\n\n $scope.multistepSignupModel.onboard = new $OnboardModel({\n\n user: $OnboardUserModel.instance($scope.token, {\n country: $locale.country\n }),\n\n billing_address: $BillingAddressModel.create($scope.token, {\n country: $locale.country\n }),\n\n shipping_address: $ShippingAddressModel.create($scope.token, {\n country: $locale.country\n }),\n\n phone: new $OnboardPhoneModel()\n });\n\n $scope.multistepSignupModel.onboard.card.ppconversion = 'PAYPAL';\n\n // remove this upon oas ramp completion\n $scope.multistepSignupModel.onboard.testParams = {\n oas: $util.param('oas'),\n cardCandidate: $util.param('cardCandidate')\n };\n\n $populate($scope, {\n checkoutCart: $CheckoutCartModel.instance($scope.token)\n }).then(function () {\n $scope.multistepSignupModel.onboard.user.email = $scope.checkoutCart.payer && $scope.checkoutCart.payer.email;\n });\n\n $scope.multistepSignupModel.onboard.shipping_address.setProperties({\n first_name: '',\n last_name: ''\n });\n\n $scope.multistepSignupModel.onboard.billing_address.setProperties({\n first_name: '',\n last_name: ''\n });\n\n $scope.multistepSignupModel.flags = {\n mode: 'signup',\n shipToBilling: true,\n allowEditShipping: true,\n\n billingAddress: {\n addrPrefilled: false\n },\n shippingAddress: {\n addrPrefilled: false\n }\n };\n\n function sortCountryList() {\n $scope.metadata = angular.copy($locale.metadata);\n return $scope.metadata.territory;\n }\n\n $scope.multistepSignupModel.countries = sortCountryList();\n\n $scope.positionToErrorField = function positionToErrorField() {\n var errorFields = $('.backendError:visible, input:visible.ng-invalid, select:visible.ng-invalid');\n\n var firstErrorField = errorFields && errorFields.length && errorFields[0];\n\n if (firstErrorField) {\n firstErrorField.focus();\n window.document.body.scrollTop = $(firstErrorField).offset().top;\n } else {\n // If there are no field errors and only page level errors.\n window.document.body.scrollTop = 0;\n }\n\n $('.backendError:visible').on('blur', function (event) {\n $(this).removeClass('backendError');\n });\n\n if ($('#installments').length) {\n $('#paymentMethod').addClass('ng-invalid');\n } else {\n $('#paymentMethod').removeClass('ng-invalid');\n }\n\n return true;\n };\n\n $scope.backState = function backState() {\n history.back();\n // $scope.$apply();\n };\n\n $scope.backendError = function backendError(pageName) {\n $timeout(function () {\n var modelErrors = $scope.multistepSignupModel.pageError;\n\n if (modelErrors && modelErrors[pageName]) {\n var pageErrors = modelErrors[pageName];\n\n pageErrors.forEach(function (err) {\n if (err.name) {\n // Highlight the Error Fields by name\n $fiErrorUtil.addFieldErrorsByName(err, 'form', err.name);\n } else {\n // Highlight the Error Fields by ng-model\n $fiErrorUtil.addFieldErrors(err, 'form', err.model);\n }\n });\n }\n }, 10);\n };\n\n $scope.clearBackendError = function clearBackendError(pageName) {\n if ($scope.multistepSignupModel.pageError) {\n $scope.multistepSignupModel.pageError[pageName] = [];\n }\n };\n\n $scope.normalizeAddress = function normalizeAddress(address, callback) {\n $scope.multistepSignupModel.onboard.toBeNormalizedAddress = address;\n $state.go('checkout.multistepsignup.multistepsignupaddressnormalization');\n normalizeCallback = callback;\n };\n\n $scope.prefillAddressCommon = function (postal_code, address, user, flag, override) {\n\n if (!postal_code) {\n return;\n }\n\n var addressType = address instanceof $ShippingAddressModel ? 'shipping' : 'billing';\n\n if (!override && lastPrefillCall[addressType] === sanitizeZip(postal_code)) {\n return;\n }\n\n $scope.prefillAddress = new $PrefillAddressModel({\n id: $scope.token,\n address: {\n country: $locale.country,\n postal_code: postal_code\n }\n });\n\n $scope.prefillAddress.save({\n data: $scope.prefillAddress,\n\n success: function success(result) {\n\n if (result) {\n lastPrefillCall[addressType] = sanitizeZip(result.postal_code);\n address.setProperties(result);\n }\n\n if (address.name) {\n var names = util.nameUtil.splitName(address.name); // eslint-disable-line block-scoped-var,no-undef\n\n user.setProperties(names);\n }\n\n flag.addrPrefilled = true;\n\n $timeout(function () {\n flag.addrPrefilled = true;\n }, 1000);\n },\n\n contingencies: {\n DEFAULT: function DEFAULT() {\n flag.addrPrefilled = true;\n }\n }\n });\n };\n\n $scope.uponNormalization = function uponNormalization(normalizedAddress, isBack) {\n if (normalizeCallback) {\n normalizeCallback(normalizedAddress, isBack);\n }\n };\n\n /* Eligibility Check call is done only after first load. Hence is done in the parent directive\n * and not in addCard directive. Addcard directive will be called after each back button\n * rendering\n */\n function isInstallmentEligible() {\n\n $populate($scope, {\n payee: $CheckoutPayeeModel.instance($scope.token),\n checkoutCart: $CheckoutCartModel.instance($scope.token),\n checkoutAppData: $CheckoutAppDataModel.instance($scope.token)\n }).then(function () {\n\n if ($scope.checkoutCart.isBilling()) {\n // Reference transaction detected\n $location.path('/checkout/multistepsignup/multistepsignupaddcard').replace();\n } else {\n $scope.multistepSignupModel.eligibilityModel = {};\n\n var installments = $InstallmentOptionsModel.instance($scope.token);\n\n /* Updating the eligibilityModel with the installment response.\n * Show Or hide of installment depends upon the card type.\n * Card model changes for type is checked in addCard directive to determine installment display.\n */\n installments.save({\n data: {\n payee: $scope.payee,\n checkoutCart: $scope.checkoutCart,\n checkoutAppData: $scope.checkoutAppData\n },\n\n resultModel: $scope.multistepSignupModel.eligibilityModel\n\n }).then(function () {\n $location.path('/checkout/multistepsignup/multistepsignupaddcard').replace();\n });\n }\n });\n }\n\n if ($feature('installments', false, $locale.country)) {\n isInstallmentEligible();\n } else {\n // BUG - switching from BR to RU country needs this timeout\n // Without timeout the route change is so fast that it just loads an empty cached page\n // without the form elements\n $timeout(function () {\n $location.path('/checkout/multistepsignup/multistepsignupaddcard').replace();\n });\n }\n }]\n };\n }]);\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/multistep-signup/index.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(module, __dirname, __filename) {var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/squid/dist/index.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (squid) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n squid.module('xomultistepsignupmodel', ['squid']).factory('$MultistepSignupModel', ['$Model', function ($Model) {\n return $Model.extend('MultistepSignupModel', {});\n }]);\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/webpack/buildin/module.js\")(module), \"../node_modules/xo-guest-components/src/multistep-signup\", \"../node_modules/xo-guest-components/src/multistep-signup/index.js\"))\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/multistep-signup/lib/util.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {\n var name = {\n splitName: function splitName(fullName) {\n var index = fullName.indexOf(' ');\n\n return {\n first_name: index > 0 ? fullName.substr(0, index) : fullName,\n last_name: index > 0 ? fullName.substr(index + 1) : ''\n };\n }\n };\n\n var masking = {\n maskZip: function maskZip(value) {\n if (value) {\n var unformatted = value.replace(/[^0-9]/gi, '');\n\n return unformatted.length > 5 ? [unformatted.slice(0, 5), '-', unformatted.slice(5)].join('') : unformatted;\n }\n\n return '';\n }\n };\n\n var validateLegalAge = function validateLegalAge(dobMonth, dobDay, dobYear) {\n var currentDate = new Date();\n var currentMonth = currentDate.getMonth() + 1;\n var currentDay = currentDate.getDate();\n var currentYear = currentDate.getFullYear();\n var largestDOBYear = currentYear - 18; // Legal age is 18\n\n var isLegal = dobYear < largestDOBYear || dobYear === largestDOBYear && dobMonth < currentMonth || dobYear === largestDOBYear && dobMonth === currentMonth && dobDay <= currentDay;\n\n return isLegal;\n };\n\n var componentsMap = function componentsMap(locale) {\n var flags = {};\n\n switch (locale) {\n case 'BR':\n flags = {\n zipCode: true,\n billingAddressLabel: false,\n shippingAddress: false,\n shippingAddressPage: true,\n dobDropDown: true,\n addTaxId: true\n };\n break;\n case 'RU':\n flags = {\n zipCode: false,\n billingAddressLabel: true,\n shippingAddress: true,\n shippingAddressPage: false,\n dobDropDown: false,\n dobText: true\n };\n break;\n default:\n flags = {\n nameInput: true,\n zipCode: true,\n billingAddressLabel: true,\n shippingAddress: true,\n dobDropDown: true\n };\n break;\n }\n\n return flags;\n };\n\n var contingencyMap = function contingencyMap(code) {\n var errorElementMap = {\n INVALID_FIRST_NAME: {\n fields: [{ field: 'first_name' }],\n model: 'user.',\n path: 'multistepsignupaddcard'\n },\n INVALID_LAST_NAME: {\n fields: [{ field: 'last_name' }],\n model: 'user.',\n path: 'multistepsignupaddcard'\n },\n INVALID_MIDDLE_NAME: {\n fields: [{ field: 'middle_name' }],\n model: 'user.',\n path: 'multistepsignupaddcard'\n },\n INVALID_NATIVE_FIRST_NAME: {\n fields: [{ field: 'first_name' }],\n model: 'user.',\n path: 'multistepsignupcreateaccount'\n },\n INVALID_NATIVE_LAST_NAME: {\n fields: [{ field: 'last_name' }],\n model: 'user.',\n path: 'multistepsignupcreateaccount'\n },\n INVALID_NATIVE_MIDDLE_NAME: {\n fields: [{ field: 'middle_name' }],\n model: 'user.nativeName.',\n path: 'multistepsignupcreateaccount'\n },\n INVALID_PHONE_TYPE: {\n fields: [{ field: 'phoneType' }],\n model: 'phone.',\n path: 'multistepsignupaddcard'\n },\n INVALID_PHONE_NUMBER: {\n fields: [{ field: 'telephone' }],\n model: 'phone.',\n path: 'multistepsignupaddcard'\n },\n INVALID_CITY_STATE_ZIPCODE: {\n fields: [{ field: 'city' }, { field: 'state' }, { field: 'zipCode' }],\n model: 'address.',\n path: 'multistepsignupaddcard'\n },\n INVALID_LINE1: {\n fields: [{ field: 'line1' }],\n model: 'address.',\n path: 'multistepsignupaddcard'\n },\n INVALID_CITY: {\n fields: [{ field: 'city' }],\n model: 'address.',\n path: 'multistepsignupaddcard'\n },\n INVALID_STATE: {\n fields: [{ field: 'state' }],\n model: 'address.',\n path: 'multistepsignupaddcard'\n },\n INVALID_ZIPCODE: {\n fields: [{ field: 'zipCode' }],\n model: 'address.',\n path: 'multistepsignupaddcard'\n },\n\n INVALID_NATIONAL_ID_TYPE: {\n fields: [{ field: 'type' }],\n model: 'nationalIdModel.nationalId.',\n path: 'multistepsignupcreateaccount'\n },\n INVALID_NATIONAL_ID: {\n fields: [{ field: 'Id' }],\n name: 'national',\n path: 'multistepsignupcreateaccount'\n },\n INVALID_SECONDARY_ID_TYPE: {\n fields: [{ field: 'secondaryIdType' }],\n model: 'nationalIdModel.',\n path: 'multistepsignupcreateaccount'\n },\n INVALID_SECONDARY_ID: {\n fields: [{ field: 'secondaryIdValue' }],\n model: 'nationalIdModel.',\n path: 'multistepsignupcreateaccount'\n },\n\n INVALID_CARD_NUMBER: {\n path: 'multistepsignupaddcard'\n },\n INVALID_BILLING_ADDRESS: {\n model: 'address.',\n path: 'multistepsignupaddcard'\n },\n INVALID_SHIPPING_ADDRESS: {\n model: 'address.',\n path: 'multistepsignupaddshipping'\n },\n INVALID_EXPIRY: {\n path: 'multistepsignupaddcard'\n },\n PASSWORD_CONTAINS_FORBIDDEN_WORDS: {\n fields: [{\n field: 'password'\n }, {\n field: 'confirmPassword'\n }],\n model: 'user.',\n path: 'multistepsignupcreateaccount'\n },\n PASSWORD_HAS_ILLEGAL_CHARACTERS: {\n fields: [{\n field: 'password'\n }, {\n field: 'confirmPassword'\n }],\n model: 'user.',\n path: 'multistepsignupcreateaccount'\n },\n ACCOUNT_ALREADY_EXISTS: {\n fields: [{\n field: 'user.email'\n }],\n pageError: {\n contentKey: 'login.userMayHaveAccount'\n },\n compileMessageWith: {\n href: 'loginRedirectUrl'\n },\n path: 'multistepsignupcreateaccount'\n },\n DOB_INVALID: {\n fields: [{\n field: 'user.dob_day'\n }, {\n field: 'user.dob_month'\n }, {\n field: 'user.dob_year'\n }],\n path: 'multistepsignupcreateaccount'\n },\n CC_NUMBER_BLOCKED: {\n model: 'card.',\n pageError: {\n contentKey: 'creditcard.errorGeneral'\n },\n path: 'multistepsignupaddcard'\n },\n COUNTRY_NOT_SUPPORTED: {\n model: 'card.',\n pageError: {\n contentKey: 'creditcard.complianceDecline'\n },\n path: 'multistepsignupaddcard'\n },\n CARD_GENERIC_ERROR: {\n model: 'card.',\n pageError: {\n contentKey: 'creditcard.errorGeneral'\n },\n path: 'multistepsignupaddcard'\n }\n };\n\n return errorElementMap[code];\n };\n\n var util = {};\n\n util.nameUtil = name;\n util.maskingUtil = masking;\n util.componentsMap = componentsMap;\n util.contingencyMap = contingencyMap;\n util.validateLegalAge = validateLegalAge;\n\n return util;\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n/***/ }),\n\n/***/ \"../node_modules/xo-guest-components/src/multistep-signup/route.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(module, __dirname, __filename) {var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/angular/angular.min.js\"), __webpack_require__(\"../node_modules/squid/dist/index.js\"), __webpack_require__(\"../node_modules/xo-guest-components/src/multistep-signup/directive.js\"), __webpack_require__(\"../node_modules/xo-guest-components/src/multistep-signup/addCard/route.js\"), __webpack_require__(\"../node_modules/xo-guest-components/src/multistep-signup/addShipping/route.js\"), __webpack_require__(\"../node_modules/xo-guest-components/src/multistep-signup/createAccount/route.js\"), __webpack_require__(\"../node_modules/xo-guest-components/src/multistep-signup/addressNormalization/route.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (angular, squid) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n angular.module('xo-multistep-signup.route', ['squid', 'xo-multistep-signup.directive', 'xo-multistep-signup-add-card.route', 'xo-multistep-signup-add-shipping.route', 'xo-multistep-signup-create-account.route', 'xo-multistep-signup-address-normalization.route']).factory('$MultistepSignupRoute', ['$ComponentRoute', function ($ComponentRoute) {\n\n return $ComponentRoute.extend('MultistepSignupRoute', {\n name: 'multistepsignup',\n\n directive: 'xo-multistep-signup',\n\n children: [{\n name: '$MultistepSignupAddCardRoute',\n attributes: {\n token: 'token',\n 'multistep-signup-model': 'multistepSignupModel',\n 'position-to-error-field': 'positionToErrorField',\n 'back-state': 'backState',\n 'backend-error': 'backendError',\n 'clear-backend-error': 'clearBackendError',\n 'normalize-address': 'normalizeAddress',\n 'prefill-address-common': 'prefillAddressCommon',\n 'button-params': 'buttonParams'\n }\n }, {\n name: '$MultistepSignupAddShippingRoute',\n attributes: {\n token: 'token',\n 'multistep-signup-model': 'multistepSignupModel',\n 'position-to-error-field': 'positionToErrorField',\n 'back-state': 'backState',\n 'backend-error': 'backendError',\n 'clear-backend-error': 'clearBackendError',\n 'normalize-address': 'normalizeAddress',\n 'prefill-address-common': 'prefillAddressCommon'\n }\n }, {\n name: '$MultistepSignupCreateAccountRoute',\n attributes: {\n token: 'token',\n 'multistep-signup-model': 'multistepSignupModel',\n 'position-to-error-field': 'positionToErrorField',\n 'back-state': 'backState',\n 'backend-error': 'backendError',\n 'clear-backend-error': 'clearBackendError'\n }\n }, {\n name: '$MultistepSignupAddressNormalizationRoute',\n attributes: {\n token: 'token',\n address: 'multistepSignupModel.onboard.toBeNormalizedAddress',\n 'done-fn': 'uponNormalization'\n }\n }]\n });\n }]);\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/webpack/buildin/module.js\")(module), \"../node_modules/xo-guest-components/src/multistep-signup\", \"../node_modules/xo-guest-components/src/multistep-signup/route.js\"))\n\n/***/ }),\n\n/***/ \"../node_modules/xo-jquery-mask-plugin/dist/jquery.mask.min.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(__webpack_provided_window_dot_jQuery, global) {var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*** IMPORTS FROM imports-loader ***/\nvar jquery = __webpack_provided_window_dot_jQuery;\n\n// jQuery Mask Plugin v1.14.11\n// github.com/igorescobar/jQuery-Mask-Plugin\nvar $jscomp={scope:{},findInternal:function(a,l,d){a instanceof String&&(a=String(a));for(var p=a.length,h=0;hd?g=e:f>=g&&f!==d?c.maskDigitPosMapOld[g]||(f=g,g=g-(l-h)-a,c.maskDigitPosMap[g]&&(g=f)):g>f&&(g=\ng+(h-l)+m)}return g},behaviour:function(f){f=f||window.event;c.invalid=[];var e=b.data(\"mask-keycode\");if(-1===a.inArray(e,m.byPassKeys)){var e=c.getMasked();setTimeout(function(){c.setCaret(c.calculateCaretPosition())},10);c.val(e);c.setCaret(e.length);return c.callbacks(f)}},getMasked:function(a,b){var g=[],d=void 0===b?c.val():b+\"\",n=0,h=e.length,q=0,l=d.length,k=1,r=\"push\",p=-1,t=0,y=[],v,z;f.reverse?(r=\"unshift\",k=-1,v=0,n=h-1,q=l-1,z=function(){return-1 -1);\n };\n\n var resolvers = $util.map($config.locale.lang.resolvers, function (name) {\n $LanguageResolvers[name].name = name;\n return $LanguageResolvers[name];\n });\n\n return this.resolvePromiseChain(resolvers, validator, [country]).then(function (resolved) {\n $logger.debug('resolve_lang', {\n lang: resolved.resolved,\n resolver: resolved.resolver\n });\n return resolved.resolved;\n });\n },\n\n setUserPreferredCountry: function setUserPreferredCountry(country) {\n $util.assert(country, 'No country provided');\n this.userPreferredCountry = country;\n },\n\n setUserPreferredLanguage: function setUserPreferredLanguage(language) {\n $util.assert(language, 'No language provided');\n this.userPreferredLanguage = language;\n },\n\n resolve: function resolve(preventContentLoad) {\n\n var self = this;\n\n function resolveCountry() {\n if (self.userPreferredCountry) {\n return $q.when(self.userPreferredCountry);\n }\n\n return self.resolveCountry();\n }\n\n function resolveLanguage(country) {\n if (self.userPreferredLanguage) {\n return $q.when(self.userPreferredLanguage);\n }\n\n return self.resolveLanguage(country);\n }\n\n return resolveCountry().then(function (country) {\n return resolveLanguage(country).then(function (language) {\n return {\n language: language,\n country: country\n };\n });\n }).then(function (result) {\n return $locale.change(result.country, result.language, preventContentLoad);\n });\n }\n\n });\n\n return new LocaleResolver();\n });\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/webpack/buildin/module.js\")(module), \"../node_modules/xo-locale/dist\", \"../node_modules/xo-locale/dist/resolvers.js\"))\n\n/***/ }),\n\n/***/ \"../node_modules/xo-login-components/src/dolphin/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\nvar _index = __webpack_require__(\"../node_modules/xo-device-info/dist/index.js\");\n\nvar _utils = __webpack_require__(\"../node_modules/xo-login-components/src/dolphin/utils.js\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-login-components/src/dolphin/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\n__webpack_require__(\"../node_modules/xo-login-components/src/dolphin/styles.less\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _squid.$Component.extend({\n tag: 'xo-dolphin',\n template: _template2['default'],\n actions: {\n startTimer: function startTimer() {\n var _this = this;\n\n _logger.$logger.info('xoDolphin_startTimer');\n // Set a 10 second timer to check if UL has loaded or not\n this.isTimerRunning = true;\n (0, _angular.$timeout)(function () {\n if (!_this.hasOverlayLoaded && _this.isTimerRunning) {\n _logger.$logger.info(_utils.flowName, {\n 'from': 'show_banner',\n 'to': 'overlay_timeout',\n 'context_id': _angular.$rootScope.token\n });\n _this.isTimerRunning = false;\n _this.showSpinner = false;\n }\n }, this.timerDuration);\n },\n closeBanner: function closeBanner() {\n this.showBanner = false;\n _logger.$logger.info(_utils.flowName, {\n 'from': 'show_banner',\n 'to': 'close_banner',\n 'context_id': _angular.$rootScope.token\n });\n },\n openOverlay: function openOverlay() {\n var _this2 = this;\n\n var onPostMessagesHandler = function onPostMessagesHandler(postMessage) {\n if (!angular.isObject(postMessage)) {\n try {\n postMessage = JSON.parse(postMessage);\n } catch (e) {\n _logger.$logger.info('xoDolphin_jsonParseFailed');\n }\n }\n\n if (!postMessage || !postMessage.data || !postMessage.data.event) {\n _logger.$logger.info('xoDolphin_invalidPostMessage');\n return;\n }\n\n _this2.showSpinner = false;\n\n if (postMessage.data.event === 'phoneConfirmationLoaded') {\n _this2.hasOverlayLoaded = true;\n _angular.$rootScope.$emit('loaded');\n _logger.$logger.info(_utils.flowName, {\n 'from': 'show_banner',\n 'to': 'overlay_loaded',\n 'context_id': _angular.$rootScope.token\n });\n }\n\n if (postMessage.data.event === 'phoneConfirmationCompleted') {\n _this2.isPhoneConfirmed = true;\n // For auto triggered overlays (confirm3 & add3), the banner is hidden by default\n // Unhide it once phone confirmation completes or SMS to complete it is sent out\n if (_this2.toastParams.autoTriggeredOverlay) {\n _logger.$logger.info('xoDolphin_showBannerOnAutoTriggeredOverlay');\n _this2.showBanner = true;\n }\n _logger.$logger.info(_utils.flowName, {\n 'from': 'show_banner',\n 'to': 'successfully_confirmed',\n 'context_id': _angular.$rootScope.token\n });\n _this2.actions.closeOverlay();\n }\n\n if (postMessage.data.event === 'smsSent') {\n // Set isPhoneConfirmed to true as user will complete the phone confirmation from sms\n // hence from app point of view it s completed for the 'current' request\n // Also, the experience is exactly the same (show success message)\n _this2.isPhoneConfirmed = true;\n _this2.successContent = _this2.toastParams.smsSentKey;\n _this2.showBanner = true;\n _logger.$logger.info(_utils.flowName, {\n 'from': 'show_banner',\n 'to': 'sms_sent',\n 'context_id': _angular.$rootScope.token\n });\n _this2.actions.closeOverlay();\n }\n\n if (postMessage.data.event === 'phoneConfirmationError') {\n _this2.hasOverlayLoaded = true;\n _logger.$logger.info(_utils.flowName, {\n 'from': 'show_banner',\n 'to': 'generic_error',\n 'context_id': _angular.$rootScope.token\n });\n _this2.actions.closeOverlay();\n }\n\n if (postMessage.data.event === 'close') {\n _this2.hasOverlayLoaded = true;\n _this2.actions.closeOverlay();\n }\n };\n (0, _angular.$timeout)(function () {\n _logger.$logger.info(_utils.flowName, {\n 'from': 'show_banner',\n 'to': 'show_overlay',\n 'context_id': _angular.$rootScope.token\n });\n\n _this2.$element.addClass('overlayOpen').promise().then(function () {\n // Note: A second timeout is added here to avoid a race condition where the DOM is not yet available\n // for the inject script to pick a targetElement for injecting the iframe.\n (0, _angular.$timeout)(function () {\n var variant = _this2.toastParams && _this2.toastParams.variant;\n var options = (0, _utils.getInjectULBaseObject)(variant);\n options.onPostMessage = onPostMessagesHandler;\n if (!options.targetElement) {\n _logger.$logger.info('xoDolphin_missingTargetElement');\n }\n _this2.showSpinner = true;\n if (window.PAYPAL && window.PAYPAL.unifiedLogin && options.targetElement) {\n _logger.$logger.info('xoDolphin_injectIframe');\n window.PAYPAL.unifiedLogin.inject(options);\n _this2.actions.startTimer();\n }\n });\n });\n });\n },\n closeOverlay: function closeOverlay() {\n var _this3 = this;\n\n this.$element.removeClass('overlayOpen');\n this.isTimerRunning = false;\n this.showSpinner = false;\n _logger.$logger.info(_utils.flowName, {\n 'from': 'show_banner',\n 'to': 'overlay_closed',\n 'context_id': _angular.$rootScope.token\n });\n (0, _angular.$timeout)(function () {\n _logger.$logger.info('xoDolphin_hideOverlay');\n _this3.showOverlay = false;\n _this3.hasOverlayLoaded = false;\n }, 300);\n }\n },\n lifecycle: {\n enter: function enter() {\n var ulToast = _squid.$util.param('ulToast') || _squid.$util.param('ulToastWpsDone');\n this.toastParams = ulToast && _utils.variantParams[ulToast];\n this.isPhoneConfirmed = false;\n this.hasOverlayLoaded = false;\n this.isTimerRunning = false;\n this.timerDuration = 10000;\n },\n populate: function populate() {\n var _this4 = this;\n\n if (!this.toastParams) {\n _logger.$logger.info('Missing or invalid toast param!');\n return;\n }\n\n this.showBanner = !this.toastParams.autoTriggeredOverlay;\n this.showOverlay = this.toastParams.autoTriggeredOverlay;\n this.bannerContent = this.toastParams.messageKey;\n this.successContent = this.toastParams.successKey;\n this.autoTriggeredOverlay = this.toastParams.autoTriggeredOverlay;\n this.variant = this.toastParams.variant;\n // DeviceInfo doesnt seem to have isDesktop, hence just avoiding the mobile use case\n this.fixedBanner = _index.$DeviceInfo.isMobile() ? '' : 'dolphinBannerFixed';\n\n _logger.$logger.info(_utils.flowName, {\n 'from': 'show_banner',\n 'to': this.toastParams.transitionName,\n 'banner_type': this.toastParams.bannerType,\n 'context_id': _angular.$rootScope.token\n });\n\n // Cannot use `$apply` as we need to wait for the entire digest cycle to complete\n (0, _angular.$timeout)(function () {\n if (_this4.autoTriggeredOverlay) {\n _this4.actions.openOverlay();\n return;\n }\n angular.element('#confirmPhoneBtn').on('click', function () {\n _logger.$logger.info(_utils.flowName, {\n 'from': 'show_banner',\n 'to': 'click_link',\n 'context_id': _angular.$rootScope.token\n });\n _this4.showOverlay = true;\n // Allow overlay DOM to be added before animating it in\n (0, _angular.$timeout)(_this4.actions.openOverlay, 150);\n });\n // Add a delay to open the overlay when it's A) auto trigger and B) Not WPS\n // `ulToastWpsDone` will be added by UL only if it is indeed a WPS flow\n }, this.autoTriggeredOverlay && !_squid.$util.param('ulToastWpsDone') ? 1800 : 0);\n }\n }\n});\n\n\n_angular.$rootScope;\n\n_angular.$timeout;\n\n_squid.$Component;\n\n_squid.$util;\n\n_logger.$logger;\n\n_index.$DeviceInfo;\n\n_utils.getInjectULBaseObject;\n\n_utils.flowName;\n\n_utils.variantParams;\nmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ \"../node_modules/xo-login-components/src/dolphin/styles.less\":\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ \"../node_modules/xo-login-components/src/dolphin/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
    \\n
    \\n
    \\n
    \\n \\n {{ content(successContent) }}

    \\n
    \\n
    \\n
    \\n
    \\n
    \\n
    \\n
    \\n
    \\n
    \\n
    \\n \\n
    \\n
    \\n
    \\n
    \\n
    \\n
    \\n
    \\n
    \\n

    \\n
    \\n
    \\n
    \\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-login-components/src/dolphin/utils.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.getDolphinEligibility = exports.variantParams = exports.flowName = exports.getInjectULBaseObject = undefined;\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _uiRouter = __webpack_require__(\"../node_modules/angular-ui-router/release/angular-ui-router.min.js\");\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\nvar _eligibility = __webpack_require__(\"../node_modules/xo-models/src/eligibility/index.js\");\n\nvar getCreditInterstitialEligibility = function getCreditInterstitialEligibility() {\n // TODO: Refactor the usage of PXP result stored in rootScope once Credit team make a change to this\n var creditInterstitialPXPResult = _angular.$rootScope['creditInterstitialPXPResult'];\n var creditInterstitialControl = 'xo_hermesnodeweb_us_ryi_ppc_ppcacquisition_interstitial_control';\n // If there is a value && it is not Control, then it's any of the treatments\n return creditInterstitialPXPResult && creditInterstitialPXPResult !== creditInterstitialControl;\n};\n\nvar getInjectULBaseObject = exports.getInjectULBaseObject = function getInjectULBaseObject(variant) {\n var options = {\n config: {\n name: 'PPFrameRedirect',\n height: 577\n },\n queryParams: {\n intent: variant === 'add3' || variant === 'confirm3' ? 'xoAutoTrigger' : 'xoToast',\n flowId: _angular.$rootScope.token,\n flowInfo: _uiRouter.$state.current && _uiRouter.$state.current.name,\n 'country.x': _squid.$locale.country,\n 'locale.x': _squid.$locale.getLocaleCode()\n },\n iframePathname: '/signin/phone-confirmation',\n targetElement: document.getElementById('injectedULPhoneConfirmation')\n };\n\n return options;\n};\n\nvar flowName = exports.flowName = 'ul_dolphin';\n\n// A simple object to map all the properties specific to a particular variant\n// Not creating a function & abstracting common things for the sake of simplicity\n// Once the performance is measured, only 1 of the 4 variants will be left behind\n// and this object will have only 2 props again.\n// A variant prop is added to define the class name in the template\n// The query param's value is not used directly to avoid XSS\nvar variantParams = exports.variantParams = {\n confirm: {\n messageKey: 'login.confirmPhone',\n successKey: 'login.confirmPhoneSuccess',\n transitionName: 'confirm_phone',\n bannerType: 'short_text_link',\n // `variant` uses a hardcoded value for th ulToast query param\n // it is used later in the flow from here instead of the query param\n variant: 'confirm'\n },\n confirm1: {\n messageKey: 'login.confirmPhoneWithButton',\n successKey: 'login.confirmPhoneSuccess',\n transitionName: 'confirm_phone',\n bannerType: 'short_text_button',\n variant: 'confirm1'\n },\n confirm2: {\n messageKey: 'login.confirmPhoneLongWithButton',\n successKey: 'login.confirmPhoneSuccess',\n transitionName: 'confirm_phone',\n bannerType: 'long_text_button',\n variant: 'confirm2'\n },\n confirm3: {\n // There is no messageKey in this variant\n successKey: 'login.confirmPhoneSuccess',\n smsSentKey: 'login.smsSent',\n transitionName: 'confirm_phone',\n bannerType: 'auto_trigger',\n variant: 'confirm3',\n autoTriggeredOverlay: true\n },\n add: {\n messageKey: 'login.addPhone',\n successKey: 'login.addPhoneSuccess',\n transitionName: 'add_phone',\n bannerType: 'short_text_link',\n variant: 'add'\n },\n add1: {\n messageKey: 'login.addPhoneWithButton',\n successKey: 'login.addPhoneSuccess',\n transitionName: 'add_phone',\n bannerType: 'short_text_button',\n variant: 'add1'\n },\n add2: {\n messageKey: 'login.addPhoneLongWithButton',\n successKey: 'login.addPhoneSuccess',\n transitionName: 'add_phone',\n bannerType: 'long_text_button',\n variant: 'add2'\n },\n add3: {\n // There is no messageKey in this variant\n successKey: 'login.addPhoneSuccess',\n smsSentKey: 'login.smsSent',\n transitionName: 'add_phone',\n bannerType: 'auto_trigger',\n variant: 'add3',\n autoTriggeredOverlay: true\n }\n};\n\nvar getDolphinEligibility = exports.getDolphinEligibility = function getDolphinEligibility(stateName) {\n var isReviewOrFi = /checkout\\.review|checkout\\.selectFi/.test(stateName) && _squid.$util.param('ulToast');\n\n if (!isReviewOrFi) {\n _logger.$logger.info(flowName, {\n 'from': 'dolphin_elg_chk',\n 'to': 'process_dolphin_elg_chk',\n 'eligibility_reason': 'not_ryp',\n 'context_id': _angular.$rootScope.token\n });\n return _squid.$promise.resolve();\n }\n\n return _eligibility.$stickyCTA.instance().getEligibility()\n // Dolphin can be enabled only in case sticky & credit interstitial are not eligibile\n .then(function (isStickyEligible) {\n var eligibilityReason = 'no_sticky_or_credit';\n var isCreditInsterstialEligible = getCreditInterstitialEligibility();\n\n if (isCreditInsterstialEligible) {\n eligibilityReason = 'has_credit_interstitial';\n }\n\n if (isStickyEligible) {\n eligibilityReason = 'has_sticky';\n }\n\n _logger.$logger.info(flowName, {\n 'from': 'dolphin_elg_chk',\n 'to': 'process_dolphin_elg_chk',\n 'eligibility_reason': eligibilityReason,\n 'context_id': _angular.$rootScope.token\n });\n\n return !isStickyEligible && !isCreditInsterstialEligible;\n });\n};\n\n_angular.$rootScope;\n\n_uiRouter.$state;\n\n_squid.$locale;\n\n_squid.$promise;\n\n_squid.$util;\n\n_logger.$logger;\n\n_eligibility.$stickyCTA;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-login-components/src/unified-login/ul.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.$ul = undefined;\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\nvar _config = __webpack_require__(\"../node_modules/squid/dist/core/config.js\");\n\nvar _model = __webpack_require__(\"../node_modules/xo-tracking/dist/model.js\");\n\nvar _auth = __webpack_require__(\"../node_modules/xo-models/src/auth/index.js\");\n\n__webpack_require__(\"../node_modules/ul-inline/dist/inject.js\");\n\n/**\n * Created by upigilam on 4/8/16.\n * UL handler is to exchange ST to RT exchanges.\n */\n\nvar $ul = exports.$ul = {\n\n optInToOneTouch: function optInToOneTouch(token, locale_country, locale_code, silent, fptiData, flowName) {\n\n return (0, _angular.$q)(function (resolve, reject) {\n\n var PAYPAL = window.PAYPAL || {};\n var ulTimeOutValue = 10000;\n var ulTimeoutPromise = null;\n\n function logSubmit(data) {\n var fptiPayload = {\n 'from': fptiData && fptiData.stateName ? fptiData.stateName : 'poma_page',\n 'to': fptiData && fptiData.transInfix ? fptiData.transInfix : 'process_kmli_optin'\n };\n if (data && data.errorCode) {\n angular.extend(fptiPayload, {\n 'int_error_code': data.errorCode,\n 'error_type': 'hard_decline',\n 'error_source': 'unifiedloginnodeweb'\n });\n }\n _logger.$logger.info('checkout_fpti', fptiPayload);\n }\n\n function failureHandler(reason) {\n logSubmit({ errorCode: reason });\n _logger.$logger.info('UL_Loading_error_' + reason);\n return reject(new Error('UL_Loading_error_' + reason));\n }\n\n function startTimer(tag) {\n _logger.$logger.info('UL_START_TIMER_' + tag);\n ulTimeoutPromise = (0, _angular.$timeout)(function () {\n failureHandler('timed_out');\n if (!silent) {\n _angular.$rootScope.$emit('loaded');\n }\n }, ulTimeOutValue);\n }\n\n function stopTimer(tag) {\n if (!silent) {\n _angular.$rootScope.$emit('loaded');\n }\n _logger.$logger.info('UL_STOP_TIMER_' + tag);\n\n if (ulTimeoutPromise) {\n _angular.$timeout.cancel(ulTimeoutPromise);\n ulTimeoutPromise = null;\n }\n }\n\n var ulEventHandlers = {\n 'oneTouchInterstitialOptInLoaded': function oneTouchInterstitialOptInLoaded(data) {\n // Don't start or stop timer. Flow should not get block even the post messages is not returned from UL\n },\n 'oneTouchInterstitialOptInAttempted': function oneTouchInterstitialOptInAttempted(data) {\n // Don't start or stop timer. Flow should not get block even the post messages is not returned from UL\n },\n 'oneTouchInterstitialOptInSuccess': function oneTouchInterstitialOptInSuccess(data) {\n stopTimer(data.event);\n logSubmit();\n // UL will drop RT cookie and respond oneTouchInterstitialOptInSuccess postmessage.\n _auth.$AuthModel.instance().retrieve().then(function (auth) {\n auth.refresh_token = true;\n });\n return resolve();\n },\n 'oneTouchInterstitialOptInFailed': function oneTouchInterstitialOptInFailed(data) {\n stopTimer(data.event);\n failureHandler(data.event);\n },\n 'oneTouchInterstitialOptInNotAuthorized': function oneTouchInterstitialOptInNotAuthorized(data) {\n // removing the element - ulTargetAttribute from DOM, to avoid any other accidental\n // actions on the element which is causing excess spinners later.\n var child = document.getElementById('ulTargetAttribute');\n child.parentNode.removeChild(child);\n stopTimer(data.event);\n failureHandler(data.event);\n }\n };\n\n function postMessageHandler(response) {\n (0, _angular.$timeout)(function () {\n _logger.$logger.info('ul_postmessaged_received', response);\n var data = response.data || response.error;\n var eventId = data && data.event;\n if (eventId) {\n _logger.$logger.debug('UL' + eventId, response);\n var handler = ulEventHandlers[eventId];\n if (handler) {\n handler(data);\n }\n }\n });\n }\n\n function loadOneTouchUpsell() {\n if (!silent) {\n _angular.$rootScope.$emit('loading');\n }\n\n var ulTargetAttribute = document.createElement('div');\n ulTargetAttribute.setAttribute('id', 'ulTargetAttribute');\n\n // setting display to None leading FireFox hiding all the ul elements due to which body click doesn't work\n // ulTargetAttribute.style.display = \"None\";\n\n // Making 0px, it works for FF, Chrome, Safari\n ulTargetAttribute.style.width = '0px';\n ulTargetAttribute.style.margin = '0px';\n ulTargetAttribute.style.height = '0px';\n ulTargetAttribute.style.padding = '0px';\n\n document.body.appendChild(ulTargetAttribute);\n\n var options = {\n targetElement: document.getElementById('ulTargetAttribute'),\n queryParams: {\n 'country.x': locale_country,\n 'locale.x': locale_code,\n 'flowId': token,\n 'correlationId': _model.$CalDataModel.getCalCorrId(),\n 'flowName': flowName ? flowName : 'checkoutOnlyMember' // default is poma flow\n },\n iframePathname: '/signin/activate-one-touch',\n onPostMessage: postMessageHandler\n };\n\n if (_config.$config.deploy.isLocal()) {\n if (_config.$meta.stage) {\n options.origin = 'https://' + _config.$meta.stage;\n } else {\n // if no stage url shows up then use any backup url for origin\n options.origin = _config.$config.urls.onboarding.split('/webapps/')[0];\n }\n }\n\n if (PAYPAL && PAYPAL.unifiedLogin) {\n startTimer('initializeUl');\n PAYPAL.unifiedLogin.inject(options);\n } else {\n failureHandler('PAYPAL.unifiedLogin_undefined');\n }\n }\n\n loadOneTouchUpsell();\n });\n }\n};\n\n// Loads unifiedLogin key on to PAYPAL window object\n\n\nangular.value(\"$ul\", $ul);\n_angular.$rootScope;\n\n_angular.$q;\n\n_angular.$timeout;\n\n_logger.$logger;\n\n_config.$config;\n\n_config.$meta;\n\n_model.$CalDataModel;\n\n_auth.$AuthModel;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-models/src/address/index.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.$ValidateAddressModel = exports.$PrefillAddressModel = exports.$AddressNormalizationModel = undefined;\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar $AddressNormalizationModel = exports.$AddressNormalizationModel = _squid.$Model.extend('$AddressNormalizationModel', {\n api: new _squid.$Api({\n uri: '/api/address/normalize'\n })\n});\n\nvar $PrefillAddressModel = exports.$PrefillAddressModel = _squid.$Model.extend('$PrefillAddressModel', {\n api: new _squid.$Api({\n uri: '/api/address/prefill'\n })\n});\n\nvar $ValidateAddressModel = exports.$ValidateAddressModel = _squid.$Model.extend('$ValidateAddressModel', {\n api: new _squid.$Api({\n uri: '/api/address/validate'\n })\n});\n\nangular.value(\"$AddressNormalizationModel\", $AddressNormalizationModel);\nangular.value(\"$PrefillAddressModel\", $PrefillAddressModel);\nangular.value(\"$ValidateAddressModel\", $ValidateAddressModel);\n_squid.$Model;\n\n_squid.$Api;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-models/src/app/index.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.$PXPBlacklist = exports.$TokenizedWalletMsbOfferModel = exports.$TokenizedWalletPinModel = exports.$TokenizedFundingCapabilitiesModel = exports.$TokenizedWalletInfoModel = exports.$TokenizedWalletEligibilityModel = exports.$MessengerIntegrationDataModel = exports.$AppDataModel = exports.$LocaleConfigModel = exports.$PXPModel = exports.$TeslaFlowIdModel = undefined;\n\nvar _brandNames, _msbDisclaimerLinks;\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar $TeslaFlowIdModel = exports.$TeslaFlowIdModel = _squid.$Model.extend('$TeslaFlowIdModel', {\n api: new _squid.$Api({\n uri: '/api/teslaFlowId/:id'\n })\n});\n\nvar $PXPModel = exports.$PXPModel = _squid.$Model.extend('$PXPModel', {\n api: new _squid.$Api({\n uri: '/api/pxp/:id'\n })\n});\n\nvar $LocaleConfigModel = exports.$LocaleConfigModel = _squid.$Model.extend('$LocaleConfigModel', {\n api: new _squid.$Api({\n uri: '/api/localeConfig'\n })\n});\n\nvar $AppDataModel = exports.$AppDataModel = _squid.$Model.extend('$AppDataModel', {\n api: new _squid.$Api({\n uri: '/api/app'\n }),\n\n isMobile: function isMobile() {\n return this.platform === 'mobile';\n }\n});\n\nvar $MessengerIntegrationDataModel = exports.$MessengerIntegrationDataModel = _squid.$Model.extend('$MessengerIntegrationDataModel', {\n api: new _squid.$Api({\n uri: '/api/messenger'\n })\n});\n\nvar $TokenizedWalletEligibilityModel = exports.$TokenizedWalletEligibilityModel = _squid.$Model.extend('$TokenizedWalletEligibilityModel', {\n api: new _squid.$Api({\n uri: '/api/eligibility/tokenizedWallet/:id'\n }),\n\n invalidateOnLogout: true, // invalidate this model when auth.logout() gets called\n\n isEligible: function isEligible() {\n return this.eligible;\n }\n});\n\nvar subjectTypes = {\n SAMSUNG_PAY: 'Samsung',\n ANDROID_PAY: 'google'\n};\n\nvar brandNames = (_brandNames = {}, _brandNames[subjectTypes.SAMSUNG_PAY] = 'Samsung Pay', _brandNames[subjectTypes.ANDROID_PAY] = 'Google Pay', _brandNames);\n\n/**\n * disclaimer links used on the *pay review page\n */\nvar disclaimerLinks = function disclaimerLinks(country) {\n var _ref;\n\n return _ref = {}, _ref[subjectTypes.SAMSUNG_PAY] = 'https://www.paypal.com/' + country + '/webapps/mpp/ua/ppsamsungpay-tnc', _ref[subjectTypes.ANDROID_PAY] = 'https://www.paypal.com/' + country + '/webapps/mpp/ua/ppandroidpay-tnc', _ref;\n};\n\n// disclaimer links used on Msb offer popup\nvar msbDisclaimerLinks = (_msbDisclaimerLinks = {}, _msbDisclaimerLinks[subjectTypes.SAMSUNG_PAY] = 'https://www.paypal.com/us/smarthelp/article/samsung-pay-terms-and-conditions-faq3863', _msbDisclaimerLinks[subjectTypes.ANDROID_PAY] = 'https://www.paypal.com/us/smarthelp/article/google-pay-terms-and-conditions-faq3862', _msbDisclaimerLinks);\n\n/**\n * this model populates data from tokenized wallet mayfly object\n * (see xo-hermes-app/apis/tokenizedWalletInfo) which contains:\n *\n * - wallet_id (used for both Samsung Pay and Android Pay)\n * - external_device_id (used for Samsung Pay only)\n * - subject (used for both Samsung Pay and Android Pay)\n *\n * Note: model is being populated in xo-preload on the server (see config.json)\n */\n\nvar $TokenizedWalletInfoModel = exports.$TokenizedWalletInfoModel = _squid.$Model.extend('$TokenizedWalletInfoModel', {\n\n api: new _squid.$Api({\n uri: '/api/info/tokenizedWallet/:id'\n }),\n\n isAndroidPay: function isAndroidPay() {\n return this.subject === subjectTypes.ANDROID_PAY;\n },\n\n isSamsungPay: function isSamsungPay() {\n return this.subject === subjectTypes.SAMSUNG_PAY;\n },\n\n getSubject: function getSubject() {\n return this.subject || subjectTypes.ANDROID_PAY;\n },\n\n // until we use mayfly for android pay - fallback to Android Pay\n brandName: function brandName() {\n return brandNames[this.subject] || brandNames[subjectTypes.ANDROID_PAY];\n },\n\n // until we use mayfly for android pay - fallback to Android Pay\n getDisclaimerLink: function getDisclaimerLink() {\n var country = _squid.$locale.country.toLowerCase();\n\n return disclaimerLinks(country)[this.subject] || disclaimerLinks(country)[subjectTypes.ANDROID_PAY];\n },\n\n // get Msb terms and conditions link based on the subject\n getMsbDisclaimerLink: function getMsbDisclaimerLink() {\n return msbDisclaimerLinks[this.subject] || msbDisclaimerLinks[subjectTypes.ANDROID_PAY];\n }\n});\n\nvar $TokenizedFundingCapabilitiesModel = exports.$TokenizedFundingCapabilitiesModel = _squid.$Model.extend('$TokenizedFundingCapabilitiesModel', {\n api: new _squid.$Api({\n uri: '/api/capabilities/tokenizedWallet/:id'\n }),\n invalidateOnLogout: true,\n\n isDirectFundingEnabled: function isDirectFundingEnabled() {\n return this.directFundingEnabled;\n },\n\n isTopupEnabled: function isTopupEnabled() {\n return this.topupFundingEnabled;\n },\n getProductName: function getProductName() {\n return this.name;\n },\n\n getCurrency: function getCurrency() {\n return this.issuingCurrency;\n },\n\n getContingencies: function getContingencies() {\n return this.contingencies;\n },\n\n getTopupAmountChoices: function getTopupAmountChoices() {\n return this.topUpAmountChoices;\n }\n});\n\nvar $TokenizedWalletPinModel = exports.$TokenizedWalletPinModel = _squid.$Model.extend('$TokenizedWalletPinModel', {\n api: new _squid.$Api({\n uri: '/api/pin/tokenizedWallet/:id'\n }),\n\n invalidateOnLogout: true, // invalidate this model when auth.logout() gets called\n\n getPinOrigin: function getPinOrigin() {\n return this.pinOrigin;\n },\n getSuggestedPin: function getSuggestedPin() {\n return this.suggestedPin;\n },\n getSuggestedKey: function getSuggestedKey() {\n return this.suggestedKey;\n },\n getPinId: function getPinId() {\n return this.pinId;\n },\n isPinIdPresent: function isPinIdPresent() {\n return !!this.pinId;\n },\n isSetupEligible: function isSetupEligible() {\n return this.pinOrigin === 'UNSET' || this.pinOrigin === 'SYSTEM';\n }\n});\n\nvar $TokenizedWalletMsbOfferModel = exports.$TokenizedWalletMsbOfferModel = _squid.$Model.extend('$TokenizedWalletMsbOfferModel', {\n api: new _squid.$Api({\n uri: '/api/msb/tokenizedWallet/:id'\n }),\n invalidateOnLogout: true\n});\n\nvar $PXPBlacklist = exports.$PXPBlacklist = {\n isMerchantBlacklisted: function isMerchantBlacklisted(merchantId) {\n return _squid.$config.pxpBlacklist && _squid.$config.pxpBlacklist.merchant && _squid.$config.pxpBlacklist.merchant.indexOf(merchantId) !== -1;\n }\n};\n\nangular.value(\"$TeslaFlowIdModel\", $TeslaFlowIdModel);\nangular.value(\"$PXPModel\", $PXPModel);\nangular.value(\"$LocaleConfigModel\", $LocaleConfigModel);\nangular.value(\"$AppDataModel\", $AppDataModel);\nangular.value(\"$MessengerIntegrationDataModel\", $MessengerIntegrationDataModel);\nangular.value(\"$TokenizedWalletEligibilityModel\", $TokenizedWalletEligibilityModel);\nangular.value(\"$TokenizedWalletInfoModel\", $TokenizedWalletInfoModel);\nangular.value(\"$TokenizedFundingCapabilitiesModel\", $TokenizedFundingCapabilitiesModel);\nangular.value(\"$TokenizedWalletPinModel\", $TokenizedWalletPinModel);\nangular.value(\"$TokenizedWalletMsbOfferModel\", $TokenizedWalletMsbOfferModel);\nangular.value(\"$PXPBlacklist\", $PXPBlacklist);\n_squid.$config;\n\n_squid.$locale;\n\n_squid.$Model;\n\n_squid.$Api;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-models/src/auth/index.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.$ULoginModel = exports.$AuthModel = exports.$AuthApi = undefined;\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\nvar _app = __webpack_require__(\"../node_modules/xo-models/src/app/index.js\");\n\nvar $AuthApi = exports.$AuthApi = _squid.$Model.extend('$AuthApi', {\n api: new _squid.$Api({\n uri: '/api/auth',\n postAttempts: 3\n })\n});\n\nvar $AuthModel = exports.$AuthModel = _squid.$Model.extend('$AuthModel', {\n api: new _squid.$Api({\n uri: '/api/auth',\n postAttempts: 3\n }),\n\n invalidateOnLogout: true, // invalidate this model when auth.logout() gets called\n\n loggedIn: function loggedIn() {\n return this.logged_in;\n },\n\n visitorId: function visitorId() {\n return this.visitor_id;\n },\n\n accessToken: function accessToken() {\n return this.access_token;\n },\n\n accessTokenPresent: function accessTokenPresent() {\n return this.access_token_present;\n },\n\n refreshToken: function refreshToken() {\n return this.refresh_token;\n },\n\n rememberedOT: function rememberedOT() {\n return this.remembered && this.remembered_device_token;\n },\n\n isSessionTimeout: function isSessionTimeout() {\n return this.meta && this.meta.invalidated;\n },\n\n clearCookies: function clearCookies() {\n var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n return this.action('clearCookies', { data: data });\n },\n\n isFBSkipLogin: function isFBSkipLogin() {\n /* Facebook pass the code generated in checkout URL , check for to determine it as FB Skip Login\n * if both OneTouch cookie present and if code passed by FB, login usually happens using OneTouch\n * as both are having auth state as remembered, we may look for rememberedOT as it is having remembered_device_token\n * for OneTouch identifier to differentiate both logins\n * auth_claims for OneTouch is DEVICE_TOKEN\n */\n return this.remembered && _squid.$util.param('code') && !this.rememberedOT();\n },\n\n showNotYou: function showNotYou() {\n var isAuthApiCall = this.is_auth_api_call;\n var isConsumerApp = _squid.$util.param('source') === 'consumerApp';\n var redirectToHermesOn3DSDecline = _squid.$util.param('redirectToHermesOn3DSDecline');\n var isUlReturnLoggedIn = _squid.$util.param('ulReturn') && this.auth_state === 'LOGGEDIN';\n\n // for Tokenized Venice integraion (Google Pay Venice / Samsung Pay Venice) - `not you` link should be hidden.\n // `TokenizedWalletInfoModel` is always populated in xo-preload (even for error cases - it will be just empty)\n // so we don't need to retrieve the model\n var tokenizedWalletInfo = _app.$TokenizedWalletInfoModel.instance(_angular.$rootScope.token);\n var isNotVeniceTokenizedIntegration = function isNotVeniceTokenizedIntegration() {\n return !tokenizedWalletInfo || tokenizedWalletInfo && !tokenizedWalletInfo.is_venice_integration;\n };\n\n // disallow_login_switch is used for Google Pay - acount linking to hide \"not you\" button (see xo-hercules/auth/outputMapper)\n return (isAuthApiCall || this.isFBSkipLogin()) && !isConsumerApp && !redirectToHermesOn3DSDecline && !isUlReturnLoggedIn && !this.disallow_login_switch && isNotVeniceTokenizedIntegration();\n },\n\n logout: function logout() {\n _squid.$Model.bulkInvalidate('invalidateOnLogout');\n _angular.$rootScope.$broadcast('logout');\n return this.action('logout');\n },\n\n /**\n * Perform a logout and then redirect.\n * @param reason - used to log reason why a redirect was trigged.\n */\n logoutAndRedirect: function logoutAndRedirect() {\n var _this = this;\n\n var reason = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'logout';\n\n var logoutFrom = this.get('tenant', 'PAYPAL');\n return this.logout().then(function () {\n return _this.redirectToLogin(reason, { logoutFrom: logoutFrom });\n });\n },\n\n // redirect to UL as landing through xo-landing-router\n // so first it hits hermes app and then redirects to UL\n redirectToLogin: function redirectToLogin(reason, ctx) {\n if (!reason) {\n return false;\n }\n // current query parameters\n var qs = _squid.$util.queryString() || '';\n var params = { 'ulClientRedirect': reason };\n\n params = _squid.$util.extend(params, ctx); // update params with context that may be sent\n\n // insert \"ulClientRedirect\" param and remove \"ul\", \"ulReturn\"\n var updatedQs = _squid.$util.queryStringSplice(qs, params, ['ul', 'ulReturn']);\n\n // base url should not be hardcoded to \"/webapps/hermes\" due to other use cases such as\n // 1. * Pay (Android Pay / Samsung Pay) -- uses /agreements/setup to exchange BA token to EC token\n var ulAsLandingUrl = _squid.$util.paypalURL('' + window.location.pathname + updatedQs);\n\n _logger.$logger.info('redirecting_to_ulAsLanding');\n return _squid.$util.redirect(ulAsLandingUrl);\n }\n\n});\n\nvar $ULoginModel = exports.$ULoginModel = _squid.$Model.extend('$ULoginModel', {\n api: new _squid.$Api({\n uri: '/api/auth/ulogin',\n postAttempts: 1,\n cache: false\n })\n});\n\nangular.value(\"$AuthApi\", $AuthApi);\nangular.value(\"$AuthModel\", $AuthModel);\nangular.value(\"$ULoginModel\", $ULoginModel);\n_angular.$rootScope;\n\n_squid.$Model;\n\n_squid.$Api;\n\n_squid.$util;\n\n_logger.$logger;\n\n_app.$TokenizedWalletInfoModel;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-models/src/auth/lib/xoAPayUtils.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.$xoAPayUtils = undefined;\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _index = __webpack_require__(\"../node_modules/xo-device-info/dist/index.js\");\n\nvar _jwtToken = '';\nvar _authenticated;\n\n// Call browser PaymentRequest API that returns a promise\nfunction createPaymentRequest() {\n var supportedInstruments = [{\n supportedMethods: ['https://android.com/pay'],\n data: {\n minGooglePlayServicesVersion: '10400000',\n paymentMethodTokenizationParameters: {\n tokenizationType: 'GATEWAY_TOKEN',\n parameters: {\n gateway: 'paypal'\n }\n }\n }\n }];\n var details = {\n // Payment request requires an amount. Hardcode the value for now.\n total: { label: 'Checkout', amount: { currency: 'USD', value: '5.00' } }\n };\n\n var options = {};\n\n try {\n return new PaymentRequest(supportedInstruments, details, options); // eslint-disable-line no-undef\n } catch (e) {\n _logger.$logger.info('PAYMENT_REQUEST_NOT_SUPPORTED');\n }\n}\n\nfunction updateCookie(url, params) {\n (0, _angular.$http)({\n method: 'GET',\n url: url,\n params: params\n })['catch'](function (err) {\n _logger.$logger.info('tokenized_wallet_update_cookie_error', { err: err });\n });\n}\n\nfunction isPaymentRequestAPISupported() {\n var currentVersionMatch = navigator.userAgent.match(/Chrome\\/([0-9]+)\\./i);\n\n return _index.$DeviceInfo.isMobile() && window.navigator.vendor === 'Google Inc.' && 'PaymentRequest' in window && navigator.userAgent.match(/Android/i) && currentVersionMatch && Number(currentVersionMatch[1]) >= 58;\n}\n\nvar $xoAPayUtils = exports.$xoAPayUtils = {\n isAPayAPISupported: function isAPayAPISupported() {\n return isPaymentRequestAPISupported();\n },\n\n canMakeAPayPayment: function canMakeAPayPayment() {\n if (!isPaymentRequestAPISupported()) {\n return _angular.$q.resolve(false);\n }\n\n var paymentRequest = window.appPaymentRequest || createPaymentRequest();\n\n if (paymentRequest && paymentRequest.canMakePayment) {\n _logger.$logger.info('APAY_CHECK_CAN_MAKE_PAYMENT');\n _logger.$logger.info('checkout_fpti', {\n from: 'payment_request_check_payment',\n to: 'prepare_payment_request_check_payment'\n });\n\n return paymentRequest.canMakePayment().then(function (result) {\n if (result) {\n\n _logger.$logger.info('APAY_CAN_MAKE_PAYMENT');\n _logger.$logger.info('checkout_fpti', {\n from: 'payment_request_check_payment',\n to: 'process_payment_request_can_make_payment'\n });\n return true;\n } else {\n _logger.$logger.info('APAY_CAN_NOT_MAKE_PAYMENT_NO_PAYMENT');\n _logger.$logger.info('checkout_fpti', {\n from: 'payment_request_can_make_payment',\n to: 'process_payment_request_can_not_make_payment',\n error_source: 'PaymentRequestAPI',\n error_type: 'no_payment'\n\n });\n return false;\n }\n })['catch'](function (err) {\n _logger.$logger.info('APAY_CAN_NOT_MAKE_PAYMENT_SOFT_DECLINE', {\n msg: err && err.message,\n name: err && err.name\n });\n\n _logger.$logger.info('checkout_fpti', {\n from: 'payment_request_can_make_payment',\n to: 'prepare_payment_request_can_make_payment_soft_decline',\n int_error_code: err && err.name,\n int_error_description: err && err.message,\n error_source: 'PaymentRequestAPI',\n error_type: 'soft_decline'\n });\n\n return false;\n });\n } else {\n return _angular.$q.resolve(false);\n }\n },\n\n authenticateAPay: function authenticateAPay() {\n var forceAuthenticate = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n\n if (!forceAuthenticate && _authenticated !== undefined) {\n return _angular.$q.resolve(_authenticated);\n }\n\n _authenticated = false;\n _jwtToken = '';\n\n // Do not proceed if PaymentRequest is not supported.\n if (!isPaymentRequestAPISupported()) {\n return _angular.$q.resolve(false);\n }\n\n var paymentRequest = window.appPaymentRequest || createPaymentRequest();\n\n if (paymentRequest) {\n _logger.$logger.info('APAY_AUTHENTICATION_BEGIN');\n _logger.$logger.info('checkout_fpti', {\n from: 'payment_request_auth',\n to: 'prepare_payment_request_auth'\n });\n\n return paymentRequest.show().then(function (result) {\n result.complete('success');\n\n _logger.$logger.info('APAY_AUTHENTICATION_SUCCEEDED');\n _logger.$logger.info('checkout_fpti', {\n from: 'payment_request_auth',\n to: 'process_payment_request_auth',\n param_type: 'JWT'\n });\n\n var paymentMethodToken = result.details && result.details.paymentMethodToken && JSON.parse(result.details.paymentMethodToken);\n\n _jwtToken = paymentMethodToken.authJwt;\n _authenticated = true;\n return true;\n })['catch'](function (err) {\n _logger.$logger.info('APAY_AUTHENTICATION_FAILED', {\n msg: err && err.message,\n name: err && err.name\n });\n\n _logger.$logger.info('checkout_fpti', {\n from: 'payment_request_auth',\n to: 'process_payment_request_auth',\n int_error_code: err && err.name,\n int_error_description: err && err.message,\n error_source: 'PaymentRequestAPI',\n error_type: 'soft_decline'\n\n });\n\n return false;\n });\n } else {\n return _angular.$q.resolve(false);\n }\n },\n\n getAPayAuthToken: function getAPayAuthToken() {\n return _jwtToken;\n },\n\n setAPayCookie: function setAPayCookie(token) {\n if (_squid.$config.tokenizedWalletCookieURL) {\n updateCookie(_squid.$config.tokenizedWalletCookieURL, {\n op: 'set',\n token: token\n });\n }\n },\n\n clearAPayCookie: function clearAPayCookie(token) {\n if (_squid.$config.tokenizedWalletCookieURL) {\n updateCookie(_squid.$config.tokenizedWalletCookieURL, {\n op: 'clear',\n token: token\n });\n }\n },\n\n setOTAPayCookie: function setOTAPayCookie(token) {\n if (_squid.$config.tokenizedWalletCookieURL) {\n updateCookie(_squid.$config.tokenizedWalletCookieURL, {\n op: 'setot',\n token: token\n });\n }\n }\n};\n\nangular.value(\"$xoAPayUtils\", $xoAPayUtils);\n_angular.$http;\n\n_angular.$q;\n\n_logger.$logger;\n\n_squid.$config;\n\n_index.$DeviceInfo;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-models/src/checkout/index.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.$CheckoutSessionModel = exports.$CardBackupModel = exports.$CheckoutPlanModel = exports.$CheckoutShippingAddressesModel = exports.$CreditOptionsModel = exports.$CheckoutPayeeModel = exports.$ShippingAddressModel = exports.$CheckoutShippingAddressModel = exports.$FlowEligibilityModel = exports.$InstallmentOptionsModel = exports.serializeInstallmentsOptionsData = exports.$FundingOptionsModel = exports.$FundingSourceModel = exports.$CheckoutAppDataModel = exports.$CheckoutCartModel = undefined;\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _processorDecline = __webpack_require__(\"../node_modules/xo-models/src/processorDecline/index.js\");\n\nvar _utils = __webpack_require__(\"../node_modules/xo-models/src/checkout/lib/utils.js\");\n\nvar $CheckoutCartModel = exports.$CheckoutCartModel = _squid.$Model.extend('$CheckoutCartModel', {\n api: new _squid.$Api({\n uri: '/api/checkout/:id/cart',\n cache: true\n }),\n\n isPurchase: function isPurchase() {\n return Boolean(this.purchase);\n },\n\n getCartCurrencyCode: function getCartCurrencyCode() {\n return _squid.$util.getProperty(this, 'purchase.amounts.total.currency_code');\n },\n\n // NOTE returns undefined if this is not a purchase or there is some other error\n getPurchaseAmount: function getPurchaseAmount() {\n if (!this.isPurchase()) {\n return;\n }\n var purchaseAmount = _squid.$util.getProperty(this, 'purchase.amounts.total.amount');\n var purchaseAmountFloat = parseFloat(purchaseAmount);\n\n return purchaseAmountFloat || undefined;\n },\n\n isBilling: function isBilling() {\n return Boolean(this.billing);\n },\n\n isSubscriptionsV1: function isSubscriptionsV1() {\n return this.isBilling() && this.billing.type === 'SUBSCRIPTIONS_V1';\n },\n\n getBaToken: function getBaToken() {\n return this.isBilling() && this.billing.ba_token;\n },\n\n isBillingPurchase: function isBillingPurchase() {\n return this.isPurchase() && this.isBilling();\n },\n\n isBillingNoPurchase: function isBillingNoPurchase() {\n return this.isBilling() && !this.isPurchase();\n },\n\n getBillingDescription: function getBillingDescription() {\n return this.billing && this.billing.description;\n },\n\n isMultiSellerPurchase: function isMultiSellerPurchase() {\n return this.purchaseUnits && this.purchaseUnits.length > 1;\n },\n\n isShippingMethodStorePickUp: function isShippingMethodStorePickUp() {\n return this.isPurchase() && (this.purchase.shipping_method === '29' || this.purchase.shipping_method === '21');\n },\n\n isWalletTokenization: function isWalletTokenization() {\n return this.isBilling() && this.billing.intent === 'TOKENIZED_WALLET';\n },\n\n getExternalCallbackOptions: function getExternalCallbackOptions() {\n return this.purchaseUnits && this.purchaseUnits[0] && this.purchaseUnits[0].external_callback_options;\n }\n});\n\nvar $CheckoutAppDataModel = exports.$CheckoutAppDataModel = _squid.$Model.extend('$CheckoutAppDataModel', {\n api: new _squid.$Api({\n uri: '/api/checkout/:id/appData'\n }),\n\n useraction: function useraction() {\n // user_action from session takes precedence over CGI param.\n var incontext_integration = window.xchild && window.xchild.props.commit ? 'commit' : false;\n var rest_integration = this.flags && this.flags.user_action === 'PAY' ? 'commit' : false;\n\n return rest_integration || incontext_integration || _squid.$util.param('useraction');\n },\n\n is_wps_flow: function is_wps_flow() {\n return this.flags && this.flags.is_wps_flow;\n },\n\n is_snt_supported: function is_snt_supported() {\n return this.flags && this.flags.is_snt_supported;\n },\n\n doec_on_approve: function doec_on_approve() {\n return this.flags && this.flags.doec_on_approve;\n },\n\n is_wps_subscription_flow: function is_wps_subscription_flow() {\n return this.flags && this.flags.is_wps_subscription_flow;\n },\n\n is_wps_installmentplan_flow: function is_wps_installmentplan_flow() {\n return this.flags && this.flags.is_wps_installmentplan_flow;\n },\n\n /*\n * Returns a string or undefined value\n * nonEmptyReturnValue - if true, then always return non empty string\n * isSentenceBeginning - if true, and merchant brand_name and merchant_name is undefined\n * then returns 'The merchant'. If false, returns 'the merchant'\n * NOTE: We should not return merchant_email for any reason as it is a PII\n */\n getMerchantDisplayName: function getMerchantDisplayName() {\n var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n nonEmptyReturnValue = _ref.nonEmptyReturnValue,\n isSentenceBeginning = _ref.isSentenceBeginning,\n getContent = _ref.getContent;\n\n var merchantName = this.merchant.brand_name || this.merchant.merchant_name;\n\n if (nonEmptyReturnValue) {\n var contentKey = isSentenceBeginning ? 'common.Themerchant' : 'common.themerchant';\n var merchantAltName = getContent ? getContent(contentKey) : _squid.$locale.content.get(contentKey);\n\n return merchantName || merchantAltName;\n }\n\n return merchantName;\n },\n\n isInvoiceFlow: function isInvoiceFlow() {\n return Boolean(this.flags && this.flags.is_invoice_flow);\n },\n\n\n // Returns true if flow should be treated as a second button (PP Credit) transaction\n isSecondButton: function isSecondButton() {\n return this.is_second_button_txn || _squid.$Class.get(window, 'xprops.fundingSource') === 'credit';\n }\n});\n\nvar $FundingSourceModel = exports.$FundingSourceModel = _squid.$Model.extend('$FundingSourceModel', {\n\n formatLast4: function formatLast4() {\n var last4;\n\n if (this.last4) {\n last4 = this.last4;\n\n if (!this.parent.isAuthRequired) {\n last4 = 'x-' + last4;\n }\n }\n\n return last4;\n }\n});\n\nvar $FundingOptionsModel = exports.$FundingOptionsModel = _squid.$Model.extend('$FundingOptionsModel', {\n api: new _squid.$Api({\n uri: '/api/checkout/:id/fundingOptions',\n postAttempts: 2\n }),\n\n eachPlan: function eachPlan(method, context) {\n angular.forEach(this.plans, method, this);\n },\n\n hasECheck: function hasECheck() {\n var _instruments = this.instruments,\n instruments = _instruments === undefined ? [] : _instruments;\n\n\n return instruments.some(function (instr) {\n return instr.type === 'ECHECK' || instr.subtype === 'ECHECK';\n });\n },\n\n hasCredit: function hasCredit() {\n var _instruments2 = this.instruments,\n instruments = _instruments2 === undefined ? [] : _instruments2;\n\n\n return instruments.some(function (instrument) {\n return instrument.type === 'CREDIT';\n });\n },\n\n getBankPlanIdByInstrumentId: function getBankPlanIdByInstrumentId(id, subType) {\n var fundingInstrument = _squid.$util.find(this.plans, function (plan) {\n return plan.primaryFs && plan.primaryFs.type === 'BANK' && plan.primaryFs.id === id && plan.primaryFs.subtype === subType;\n });\n\n return fundingInstrument && fundingInstrument.planId;\n },\n\n // get IACH and PAD banks combined by plan.primaryFs.id\n // order matters, so if IACH comes first then PAD is filtered and vise versa\n getPadAndIachCombinedPlans: function getPadAndIachCombinedPlans() {\n var _this = this;\n\n var plans = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.plans;\n\n if (!plans) {\n return [];\n }\n var planIds = {};\n\n plans.forEach(function (plan) {\n var planId = plan.planId,\n primaryFs = plan.primaryFs;\n\n\n if (_this.isIACH(plan) && !planIds[planId]) {\n planIds[primaryFs.padPlanId] = true;\n }\n if (_this.isPAD(plan) && !planIds[planId]) {\n planIds[primaryFs.iachPlanId] = true;\n }\n });\n\n return plans.filter(function (plan) {\n return !planIds[plan.planId];\n });\n },\n\n // get plan by planId\n getPlanByPlanId: function getPlanByPlanId(id) {\n var plan = _squid.$util.find(this.plans, function (p) {\n return p.primaryFs && p.planId === id;\n });\n\n return plan;\n },\n\n getPlanSubType: function getPlanSubType() {\n var plan = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var _plan$primaryFs = plan.primaryFs;\n _plan$primaryFs = _plan$primaryFs === undefined ? {} : _plan$primaryFs;\n var subtype = _plan$primaryFs.subtype;\n\n\n return subtype;\n },\n\n\n // is plan PAD bank (bank is charged after some delay)\n isPAD: function isPAD(plan) {\n return this.getPlanSubType(plan) === 'PAD';\n },\n\n\n // is plan IACH bank (instant transfer)\n isIACH: function isIACH(plan) {\n return this.getPlanSubType(plan) === 'IACH';\n },\n\n\n // is plan MEFT bank\n isMEFT: function isMEFT(plan) {\n return this.getPlanSubType(plan) === 'MEFT';\n },\n\n\n // is plan IACH bank (instant transfer)\n isIACHWithPad: function isIACHWithPad(plan) {\n return this.isIACH(plan) && plan.primaryFs.padPlanId;\n },\n\n // get PAD hop date (when bank will be charged) based on selected plan and PAD toggle state\n getPadPlanHopDate: function getPadPlanHopDate(plan) {\n if (this.isIACH(plan)) {\n var padPlan = this.getPlanByPlanId(plan.primaryFs.padPlanId);\n\n if (padPlan) {\n return padPlan.primaryFs.hop_date;\n }\n } else {\n return plan.primaryFs.hop_date;\n }\n },\n\n // get PAD or IACH plan id based on selected plan and PAD toggle state\n getPadOrIachPlanIdBySelectedPlan: function getPadOrIachPlanIdBySelectedPlan(_ref2) {\n var plan = _ref2.plan,\n isPadToggleSelected = _ref2.isPadToggleSelected;\n\n if (!plan || !plan.primaryFs) {\n return;\n }\n\n var _plan$primaryFs2 = plan.primaryFs,\n padPlanId = _plan$primaryFs2.padPlanId,\n iachPlanId = _plan$primaryFs2.iachPlanId,\n planId = plan.planId;\n\n\n if (isPadToggleSelected) {\n return this.isPAD(plan) ? planId : padPlanId;\n } else {\n return this.isIACH(plan) ? planId : iachPlanId;\n }\n },\n\n onPopulate: function onPopulate() {\n var self = this;\n\n angular.forEach(this.plans, function (plan) {\n if (plan.primaryFs && plan.primaryFs.type === 'BANK' && (plan.primaryFs.subtype === 'IACH' || plan.primaryFs.subtype === 'PAD')) {\n Object.defineProperty(plan.primaryFs, plan.primaryFs.subtype === 'IACH' ? 'padPlanId' : 'iachPlanId', {\n enumerable: true,\n configurable: false,\n writeable: false,\n value: self.getBankPlanIdByInstrumentId(plan.primaryFs.id, plan.primaryFs.subtype === 'IACH' ? 'PAD' : 'IACH')\n });\n }\n });\n },\n\n getBankPadPlanIdByInstrumentId: function getBankPadPlanIdByInstrumentId(fsId, fsSubtype) {\n var bankPadPlan = _squid.$util.find(this.plans, function () {\n var plan = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var _plan$primaryFs3 = plan.primaryFs;\n _plan$primaryFs3 = _plan$primaryFs3 === undefined ? {} : _plan$primaryFs3;\n var id = _plan$primaryFs3.id,\n type = _plan$primaryFs3.type,\n subtype = _plan$primaryFs3.subtype;\n\n\n return id === fsId && type === 'BANK' && subtype === fsSubtype;\n });\n\n if (!bankPadPlan) {\n return;\n }\n\n var _bankPadPlan$primaryF = bankPadPlan.primaryFs;\n _bankPadPlan$primaryF = _bankPadPlan$primaryF === undefined ? {} : _bankPadPlan$primaryF;\n var subtype = _bankPadPlan$primaryF.subtype,\n padPlanId = _bankPadPlan$primaryF.padPlanId,\n iachPlanId = _bankPadPlan$primaryF.iachPlanId;\n\n\n return subtype === 'IACH' ? padPlanId : iachPlanId;\n },\n\n\n isPadToggleApplicable: function isPadToggleApplicable() {\n var padToggleApplicable = false;\n\n this.eachPlan(function (plan) {\n if (!padToggleApplicable && plan.primaryFs && plan.primaryFs.type === 'BANK') {\n if (plan.primaryFs.subtype === 'IACH' && plan.primaryFs.hasOwnProperty('padPlanId')) {\n padToggleApplicable = plan.primaryFs.padPlanId ? true : false;\n } else if (plan.primaryFs.subtype === 'PAD' && plan.primaryFs.hasOwnProperty('iachPlanId')) {\n padToggleApplicable = plan.primaryFs.iachPlanId ? true : false;\n }\n }\n }, this);\n\n return padToggleApplicable;\n },\n\n isPadToggleApplicableForFS: function isPadToggleApplicableForFS(planId) {\n var padToggleApplicable = false;\n var selectedPlan = _squid.$util.find(this.plans, function (plan) {\n return plan.planId === planId;\n });\n\n if (selectedPlan && selectedPlan.primaryFs && selectedPlan.primaryFs.type === 'BANK' && (selectedPlan.primaryFs.subtype === 'IACH' && selectedPlan.primaryFs.padPlanId || selectedPlan.primaryFs.subtype === 'PAD' && selectedPlan.primaryFs.iachPlanId)) {\n padToggleApplicable = true;\n }\n\n return padToggleApplicable;\n },\n\n getPreferred: function getPreferred() {\n var _this2 = this;\n\n return _squid.$util.find(this.plans, function (plan) {\n return _this2.isPreferred(plan);\n });\n },\n\n isPreferred: function isPreferred() {\n var plan = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n if (this.isPAD(plan)) {\n // if the current plan is PAD -> find corresponding IACH plan to see if it's preferred\n var iachPlan = this.getPlanByPlanId(plan.primaryFs.iachPlanId) || {};\n var _iachPlan$primaryFs = iachPlan.primaryFs;\n _iachPlan$primaryFs = _iachPlan$primaryFs === undefined ? {} : _iachPlan$primaryFs;\n\n var _iachPlan$primaryFs$i = _iachPlan$primaryFs.isPreferred,\n _isPreferred = _iachPlan$primaryFs$i === undefined ? false : _iachPlan$primaryFs$i;\n\n return _isPreferred;\n }\n\n var _plan$primaryFs4 = plan.primaryFs;\n _plan$primaryFs4 = _plan$primaryFs4 === undefined ? {} : _plan$primaryFs4;\n var _plan$primaryFs4$isPr = _plan$primaryFs4.isPreferred,\n isPreferred = _plan$primaryFs4$isPr === undefined ? false : _plan$primaryFs4$isPr;\n\n\n return isPreferred;\n },\n\n // get Merchant specific balance by plan id\n getMsbByPlanId: function getMsbByPlanId(planId) {\n var plan = this.getPlanByPlanId(planId);\n\n return plan && plan.incentive;\n },\n\n /**\n * Avoid plans that are not meant for display on the UI.\n * - Hide Rewards\n */\n getDisplayPlans: function getDisplayPlans() {\n // return type should be undefined in no plans\n // for billing agreement use case\n return this.plans ? this.plans.filter(function (plan) {\n return !plan.rewards;\n }) : this.plans;\n },\n /**\n * Avoid instruments that are not meant for display on the UI.\n * - Hide Rewards\n */\n getDisplayInstruments: function getDisplayInstruments() {\n var _instruments3 = this.instruments,\n instruments = _instruments3 === undefined ? [] : _instruments3;\n\n\n return instruments.filter(function (instrument) {\n return instrument.type !== 'REWARDS';\n });\n }\n});\n\n// Map the data needed for the installmentsOptions endpoint\nvar serializeInstallmentsOptionsData = exports.serializeInstallmentsOptionsData = function serializeInstallmentsOptionsData(_ref3) {\n var merchant_country = _ref3.checkoutAppData.merchant.merchant_country,\n checkoutCart = _ref3.checkoutCart,\n country = _ref3.country,\n id = _ref3.payee.merchant.id,\n isMemberCredit = _ref3.isMemberCredit,\n cc = _ref3.cc;\n\n var payload = {\n checkoutAppData: {\n merchant: {\n merchant_country: merchant_country\n }\n },\n checkoutCart: {},\n country: country,\n payee: {\n merchant: {\n id: id\n }\n },\n isMemberCredit: isMemberCredit,\n cc: cc\n };\n\n if (checkoutCart.purchase && checkoutCart.purchase.amounts) {\n var _checkoutCart$purchas = checkoutCart.purchase.amounts.total,\n amount = _checkoutCart$purchas.amount,\n currency_code = _checkoutCart$purchas.currency_code;\n\n\n payload.checkoutCart.purchase = {\n amounts: {\n total: {\n amount: amount,\n currency_code: currency_code\n }\n }\n };\n }\n\n return payload;\n};\n\nvar $InstallmentOptionsModel = exports.$InstallmentOptionsModel = _squid.$Model.extend('$InstallmentOptionsModel', {\n\n api: new _squid.$Api({\n uri: '/api/checkout/:id/installmentOptions/',\n postAttempts: 2\n }),\n\n save: function save(options) {\n options.data = serializeInstallmentsOptionsData(options.data);\n\n return this._super.save.call(this, options);\n }\n});\n\nvar $FlowEligibilityModel = exports.$FlowEligibilityModel = _squid.$Model.extend('$FlowEligibilityModel', {\n api: new _squid.$Api({\n uri: '/api/checkout/:id/flowEligibility'\n })\n});\n\nvar $CheckoutShippingAddressModel = exports.$CheckoutShippingAddressModel = _squid.$Model.extend('$CheckoutShippingAddressModel', {\n api: new _squid.$Api({\n uri: '/api/checkout/:parent.id/shipping/:id'\n })\n});\n\nvar $ShippingAddressModel = exports.$ShippingAddressModel = _squid.$Model.extend('$ShippingAddressModel', {\n api: new _squid.$Api({\n uri: '/api/checkout/:id/shipping/add'\n }),\n\n serialize: function serialize() {\n return {\n first_name: this.first_name,\n last_name: this.last_name,\n recipient_name: this.recipient_name,\n line1: this.line1,\n line2: this.line2,\n city: this.city,\n state: this.state,\n postal_code: this.postal_code,\n country: this.country\n };\n }\n});\n\nvar $CheckoutPayeeModel = exports.$CheckoutPayeeModel = _squid.$Model.extend('$CheckoutPayeeModel', {\n api: new _squid.$Api({\n uri: '/api/checkout/:id/payee'\n }),\n\n getId: function getId() {\n return this.merchant && this.merchant.id;\n },\n\n isGambling: function isGambling() {\n return this.merchant && this.merchant.isGambling;\n },\n\n isOnBaNoStickyList: function isOnBaNoStickyList() {\n var merchantId = this.getId();\n\n return merchantId && _squid.$config.disableMerchantForStickyBA && _squid.$config.disableMerchantForStickyBA.indexOf(merchantId) > -1;\n }\n});\n\nvar creditOptionsModel = {\n largeEligibleAmount: {\n US: 99,\n GB: 150\n }\n};\n\n// keeping sacEligibleAmount available for backwards compat, largeEligibleAmount preferred\ncreditOptionsModel.sacEligibleAmount = creditOptionsModel.largeEligibleAmount;\n\nvar $CreditOptionsModel = exports.$CreditOptionsModel = creditOptionsModel;\n\nvar $CheckoutShippingAddressesModel = exports.$CheckoutShippingAddressesModel = _squid.$Model.extend('$CheckoutShippingAddressesModel', {\n api: new _squid.$Api({\n uri: '/api/checkout/:id/shipping'\n }),\n\n onPopulate: function onPopulate() {\n this.addresses = this.children($CheckoutShippingAddressModel, this.addresses);\n },\n\n getPreferredShippingAddress: function getPreferredShippingAddress() {\n var preferredAddress = {};\n\n if (this.addresses) {\n var i = void 0;\n var address = void 0;\n\n for (i = 0; i < this.addresses.length; i++) {\n address = this.addresses[i];\n\n if (address && address.preferred_address) {\n preferredAddress = {\n 'line1': address.line1,\n 'line2': address.line2,\n 'city': address.city,\n 'state': address.state,\n 'postal_code': address.postal_code,\n 'country_code': address.country_code\n };\n\n break;\n }\n }\n }\n return preferredAddress;\n },\n\n getPrimaryShippingAddress: function getPrimaryShippingAddress() {\n var primaryAddress = {};\n\n if (this.addresses) {\n var i = void 0;\n var address = void 0;\n\n for (i = 0; i < this.addresses.length; i++) {\n address = this.addresses[i];\n\n if (address && address.primary_address) {\n primaryAddress = {\n 'line1': address.line1,\n 'line2': address.line2,\n 'city': address.city,\n 'state': address.state,\n 'postal_code': address.postal_code,\n 'country_code': address.country_code\n };\n\n break;\n }\n }\n }\n return primaryAddress;\n }\n});\n\nvar $CheckoutPlanModel = exports.$CheckoutPlanModel = _squid.$Model.extend('$CheckoutPlanModel', {\n\n onPopulate: function onPopulate() {\n this.sources = this.children($FundingSourceModel, this.sources);\n },\n\n eachSource: function eachSource(method, context) {\n angular.forEach(this.sources, method, this);\n },\n\n hasFundingMethodType: function hasFundingMethodType(name) {\n var found = false;\n\n this.eachSource(function (source) {\n if (source.type === name) {\n found = true;\n }\n }, this);\n\n return found;\n },\n\n hasFundingMethodSubType: function hasFundingMethodSubType(name) {\n var found = false;\n\n this.eachSource(function (source) {\n if (source.sub_type === name) {\n found = true;\n }\n }, this);\n\n return found;\n },\n\n isPAD: function isPAD() {\n return this.hasFundingMethodSubType('DELAYED_TRANSFER');\n },\n\n isIACH: function isIACH() {\n var found = false;\n\n this.eachSource(function (source) {\n if (source.type === 'BANK_ACCOUNT' && source.sub_type === 'INSTANT_TRANSFER') {\n found = true;\n }\n }, this);\n\n return found;\n },\n\n isSplitBalance: function isSplitBalance() {\n return this.sources && this.sources.length > 1 && this.hasFundingMethodType('BALANCE');\n },\n\n isSplitPaymentWithBalanceAndIach: function isSplitPaymentWithBalanceAndIach() {\n return this.isSplitBalance() && this.isIACH();\n },\n\n isMSB: function isMSB() {\n return this.sources && this.sources.length === 1 && this.sources[0].type === 'INCENTIVE';\n },\n\n isBalance: function isBalance() {\n return this.sources && this.sources.length === 1 && this.sources[0].type === 'BALANCE';\n },\n\n hasConversion: function hasConversion() {\n return this.conversion !== null && _typeof(this.conversion) === 'object';\n }\n});\n\nvar $CardBackupModel = exports.$CardBackupModel = _squid.$Model.extend('$CardBackupModel', {\n onPopulate: function onPopulate() {\n if (!this.get('parent.meta.populated')) {\n return;\n }\n\n // If plan IDs change, we need to reevaluate the correct backup plan id\n this.resetIfDoesNotApply();\n this.reevaluateEligibility();\n },\n\n\n /**\n * getCardBackupInstrument\n * Get the user's last selection for card backup, if still eligible\n * @returns {Object|undefined} the plan of the user's last selection, or undefined otherwise\n */\n getPlan: function getPlan() {\n if (!this.isAllowed()) {\n return;\n }\n\n return this.plan;\n },\n\n\n /**\n * setCardBackupInstrument\n * Save the user's selection for backup. Tied to the currently selected plan\n * @param {Object} plan - the plan to use as the backup\n * @param {Object} [forPlan] - if needed, the plan to compare against. prefer not to pass it in\n */\n setPlan: function setPlan(plan, forPlan) {\n this.plan = plan;\n this.forPlan = forPlan || this.getCheckoutSessionPlan();\n },\n isAllowed: function isAllowed() {\n var _forPlan = this.forPlan;\n _forPlan = _forPlan === undefined ? {} : _forPlan;\n var _forPlan$primaryFs = _forPlan.primaryFs;\n _forPlan$primaryFs = _forPlan$primaryFs === undefined ? {} : _forPlan$primaryFs;\n var type = _forPlan$primaryFs.type,\n secondaryFIs = _forPlan.secondaryFIs;\n\n\n if (type !== 'CARD' || secondaryFIs !== false) {\n return false;\n }\n return this.allowCardBackup;\n },\n getCheckoutSessionPlan: function getCheckoutSessionPlan() {\n return this.get('parent.fundingOptions.plans.0');\n },\n reevaluateEligibility: function reevaluateEligibility() {\n var _this3 = this;\n\n (0, _processorDecline.getProcessorDeclineRetryEligibility)(this.id, this.parent).then(function (eligibility) {\n _this3.allowCardBackup = eligibility;\n\n return eligibility;\n });\n },\n reset: function reset(forPlan) {\n this.setPlan(undefined, forPlan);\n },\n\n /**\n * resetIfDoesNotApply\n * resets the selected backup for card if no longer valid based on user's choice\n * matches the plan ID if still valid but plan IDs change\n * @param {String} [plan] - current checkout session funding options plan user has selected\n */\n resetIfDoesNotApply: function resetIfDoesNotApply(plan) {\n if (!plan) {\n plan = this.getCheckoutSessionPlan();\n }\n\n var getKey = function getKey(p) {\n return p && p.primaryFs && p.primaryFs.id;\n };\n var planKey = getKey(plan);\n var forKey = getKey(this.forPlan);\n\n if (!planKey || planKey !== forKey) {\n return this.reset(plan);\n }\n\n // Since planIds may change, if backup is still valid then find the new plan\n var plans = this.get('parent.fundingOptions.plans') || [];\n var currentPlanKey = getKey(this.plan);\n var newPlan = currentPlanKey && plans.find(function (p) {\n return getKey(p) === currentPlanKey;\n });\n\n // If, for whatever reason, the old instrument isn't in the new plans, we'll reset\n if (currentPlanKey && !newPlan) {\n return this.reset(plan);\n }\n\n this.forPlan = plan;\n this.plan = newPlan;\n }\n});\n\nvar $CheckoutSessionModel = exports.$CheckoutSessionModel = _squid.$Model.extend('$CheckoutSessionModel', {\n\n api: new _squid.$Api({\n uri: '/api/checkout/:id/session',\n postAttempts: 2\n }),\n\n invalidateOnLogout: true, // invalidate this model when auth.logout() gets called\n smartDollarAuthFailed: false, // initial value for smartDollar authorization check\n\n onPopulate: function onPopulate() {\n this.plan = new $CheckoutPlanModel(this.plan);\n this.shipping = this.child($CheckoutShippingAddressModel, this.shipping);\n this.fundingOptions = this.child($FundingOptionsModel, this.fundingOptions);\n\n // Reevaluate the eligibility for allowing backup with cards. This can\n // change when the checkout session is updated\n this.cardBackup = this.child($CardBackupModel, this.cardBackup || {});\n _squid.$event.emit('checkoutSessionChange'); // emit a session change event for apps to react accordingly\n },\n\n /**\n * Finds the plan in billing cases that the user is intending to use as the sticky FI.\n * @return {Object} the instrument representation from futurePaymentInstruments\n */\n getSelectedStickyInstrument: function getSelectedStickyInstrument() {\n // This method doesn't apply for non-billing cases\n if (!this.futurePaymentInstruments) {\n return;\n }\n\n // For BA no purchase cases (no plan), use either\n // 1. selectedFuturePaymentInstrument (we've made and persisted a selection)\n // 2. first of futurePaymentInstruments (we haven't made a selection and need to save it later)\n if (!(this.plan && this.plan.sources)) {\n return this.selectedFuturePaymentInstrument || this.futurePaymentInstruments[0];\n }\n\n // Otherwise, if we have a plan list (ie. this is a purchase case),\n // we'll always want to take the currently selected plan,\n // as selectedFuturePaymentInstrument may not be updated to the user's current plan\n var selectedInstrumentId = _squid.$util.some(this.plan.sources, function (fi) {\n return fi.instrument_id ? fi.instrument_id : undefined;\n });\n\n var stickyInstrument = _squid.$util.find(this.futurePaymentInstruments, function (fi) {\n return fi.instrument_id === selectedInstrumentId;\n });\n\n return stickyInstrument;\n },\n\n getPlanList: function getPlanList() {\n // Only show plans that need to be shown.\n return this.fundingOptions && this.fundingOptions.getDisplayPlans();\n },\n\n // returns true if more than one plan uses BALANCE as the primary FI\n isMultipleBalancePlan: function isMultipleBalancePlan() {\n var matchingBalancePlans = 0;\n\n return this.fundingOptions && this.fundingOptions.plans && this.fundingOptions.plans.some(function (plan) {\n // if BALANCE is the primary FI...\n if (plan.primaryFs.name === 'BALANCE') {\n // increment number of balance plans found\n matchingBalancePlans++;\n }\n // exit once we have more than one balance plan\n return matchingBalancePlans > 1;\n });\n },\n\n getDisallowedInstruments: function getDisallowedInstruments() {\n if (this.fundingOptions && this.fundingOptions.disallowedInstruments && angular.isArray(this.fundingOptions.disallowedInstruments)) {\n var filteredDisallowedInstruments = this.fundingOptions.disallowedInstruments.filter(function (instrument) {\n if (instrument.type === 'CARD' && instrument.declineReason === 'unsupportedDueToExpiration') {\n return (0, _utils.filterCardWithinLastNMonths)(instrument, (0, _squid.$feature)('expirePeriod'));\n }\n return true;\n });\n this.fundingOptions.disallowedInstruments = filteredDisallowedInstruments;\n }\n return this.fundingOptions && this.fundingOptions.disallowedInstruments;\n },\n\n getDisallowedPreferred: function getDisallowedPreferred() {\n var disallowedInstrument = this.getDisallowedInstruments();\n\n // find only the disallowed instrument that has been marked as preferred.\n disallowedInstrument = disallowedInstrument && _squid.$util.find(disallowedInstrument, function (fi) {\n return fi.isPreferred;\n });\n\n // if the disallowed instrument is in the plan list (in the case that the instrument has a BUF)\n // we do not show it in the disallowed section.\n var isDisallowedInstrumentInPlanList = disallowedInstrument && _squid.$util.some(this.getPlanList(), function (plan) {\n var instrumentID = plan.primaryFs && plan.primaryFs.id;\n\n if (instrumentID && disallowedInstrument.id) {\n return instrumentID === disallowedInstrument.id;\n } else {\n return false;\n }\n });\n\n return !isDisallowedInstrumentInPlanList && disallowedInstrument;\n },\n\n expiredInstruments: function expiredInstruments() {\n var expiredInstruments = [];\n var disallowedPreferred = this.getDisallowedPreferred();\n var disallowedInstruments = this.getDisallowedInstruments();\n\n if (disallowedPreferred) {\n expiredInstruments.push(disallowedPreferred);\n }\n\n _squid.$util.forEach(disallowedInstruments, function (instrument) {\n if (instrument.type === 'CARD' && !instrument.isPreferred && instrument.declineReason === 'unsupportedDueToExpiration') {\n expiredInstruments.push(instrument);\n }\n });\n\n return expiredInstruments;\n },\n\n preferredExpiredInstruments: function preferredExpiredInstruments() {\n var disallowedPreferred = this.getDisallowedPreferred();\n\n if (disallowedPreferred && disallowedPreferred.type === 'CARD' && disallowedPreferred.isPreferred && disallowedPreferred.declineReason === 'unsupportedDueToExpiration') {\n return true;\n }\n\n return false;\n },\n\n getShippingAddressMinimalDetails: function getShippingAddressMinimalDetails() {\n return {\n 'line1': this.shipping.line1,\n 'line2': this.shipping.line2,\n 'city': this.shipping.city,\n 'state': this.shipping.state,\n 'postal_code': this.shipping.postal_code,\n 'country_code': this.shipping.country\n };\n },\n\n getPPCconversionInfo: function getPPCconversionInfo() {\n var ppcFi = void 0;\n if (this.fundingOptions && this.fundingOptions.instruments) {\n ppcFi = this.fundingOptions.instruments.find(function (fi) {\n return fi.type === 'CREDIT' && fi.name === 'BILL_ME_LATER';\n });\n }\n if (ppcFi && ppcFi.currency_conversion) {\n return Object.assign({}, ppcFi.currency_conversion);\n }\n return null;\n }\n\n});\n\nangular.value(\"$CheckoutCartModel\", $CheckoutCartModel);\nangular.value(\"$CheckoutAppDataModel\", $CheckoutAppDataModel);\nangular.value(\"$FundingSourceModel\", $FundingSourceModel);\nangular.value(\"$FundingOptionsModel\", $FundingOptionsModel);\nangular.value(\"serializeInstallmentsOptionsData\", serializeInstallmentsOptionsData);\nangular.value(\"$InstallmentOptionsModel\", $InstallmentOptionsModel);\nangular.value(\"$FlowEligibilityModel\", $FlowEligibilityModel);\nangular.value(\"$CheckoutShippingAddressModel\", $CheckoutShippingAddressModel);\nangular.value(\"$ShippingAddressModel\", $ShippingAddressModel);\nangular.value(\"$CheckoutPayeeModel\", $CheckoutPayeeModel);\nangular.value(\"$CreditOptionsModel\", $CreditOptionsModel);\nangular.value(\"$CheckoutShippingAddressesModel\", $CheckoutShippingAddressesModel);\nangular.value(\"$CheckoutPlanModel\", $CheckoutPlanModel);\nangular.value(\"$CardBackupModel\", $CardBackupModel);\nangular.value(\"$CheckoutSessionModel\", $CheckoutSessionModel);\n_squid.$Class;\n\n_squid.$Model;\n\n_squid.$Api;\n\n_squid.$util;\n\n_squid.$config;\n\n_squid.$locale;\n\n_squid.$event;\n\n_squid.$feature;\n\n_processorDecline.getProcessorDeclineRetryEligibility;\n\n_utils.filterCardWithinLastNMonths;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-models/src/checkout/lib/utils.js\":\n/***/ (function(module, exports) {\n\n\n\nexports.__esModule = true;\n/**\n* @param {Date} d1\n* @param {Date} d2\n* @returns {number}\n*/\nvar monthDiff = function monthDiff(d1, d2) {\n var months = void 0;\n months = (d2.getFullYear() - d1.getFullYear()) * 12;\n months -= d1.getMonth() + 1;\n months += d2.getMonth() + 1;\n return months <= 0 ? 0 : months;\n};\n\n/**\n* @param {Object} fi - A funding instrument\n* @param {boolean} expiredPeriod - feature boolean flag from config.json\n* @returns {boolean}\n*/\nvar filterCardWithinLastNMonths = function filterCardWithinLastNMonths(fi, expirePeriod) {\n var expire_year = fi.expire_year,\n expire_month = fi.expire_month;\n\n\n var expiryDate = new Date(expire_year + '-' + expire_month + '-01');\n\n var monthDifference = monthDiff(expiryDate, new Date());\n\n return monthDifference !== 0 && monthDifference <= expirePeriod;\n};\n\nexports.filterCardWithinLastNMonths = filterCardWithinLastNMonths;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-models/src/eligibility/index.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.$stickyCTA = undefined;\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _index = __webpack_require__(\"../node_modules/xo-device-info/dist/index.js\");\n\nvar _checkout = __webpack_require__(\"../node_modules/xo-models/src/checkout/index.js\");\n\nvar _gdprCookieBanner = __webpack_require__(\"../node_modules/xo-models/src/gdprCookieBanner/index.js\");\n\nvar checkEligibility = function checkEligibility() {\n var token = _angular.$rootScope.token;\n var models = {};\n\n return _squid.$promise.all([(0, _squid.$populate)(models, {\n checkoutCartModel: _checkout.$CheckoutCartModel.instance(token),\n checkoutSessionModel: _checkout.$CheckoutSessionModel.instance(token),\n checkoutAppDataModel: _checkout.$CheckoutAppDataModel.instance(token)\n }), _gdprCookieBanner.$GDPRCookieBannerModel.instance().hasBanner()]).then(function () {\n // Device Checks\n var userAgent = _angular.$window.navigator.userAgent;\n var isIE = !!userAgent.match(/MSIE|trident|edge/i);\n var isMobile = _index.$DeviceInfo.isMobile();\n var miniBrowser = _angular.$rootScope.miniBrowser;\n var isValidTraffic = isMobile || miniBrowser;\n var isSmallScreen = _angular.$window.innerWidth <= 600;\n\n // Flow Checks\n var billing = models.checkoutCartModel.isBilling();\n var invoice = models.checkoutAppDataModel.get('flags.is_invoice_flow');\n var upop = models.checkoutSessionModel.unconfirmed_upop;\n var gpdr = _gdprCookieBanner.$GDPRCookieBannerModel.instance().shown();\n\n // Feature checks\n var eligibleCountry = (0, _squid.$feature)('stickyCTA');\n var ineligibilityConditions = {\n isIE: isIE,\n upop: upop,\n invoice: invoice,\n gpdr: gpdr,\n billing: billing,\n isNotSmallScreen: !isSmallScreen,\n isNotValidTraffic: !isValidTraffic,\n isNotEligibleCountry: !eligibleCountry\n };\n\n var decision = isValidTraffic && eligibleCountry && isSmallScreen && !billing && !invoice && !upop && !isIE && !gpdr;\n\n var ineligibilityReasons = Object.keys(ineligibilityConditions).filter(function (key) {\n return ineligibilityConditions[key];\n });\n var eligibility_reason = 'eligible';\n\n if (ineligibilityReasons.length > 0 || !decision) {\n eligibility_reason = 'ineligible-' + ineligibilityReasons.join(',');\n }\n _logger.$logger.info('checkout_fpti', {\n from: 'sticky_cta',\n to: 'process_eligibility_check',\n eligibility_reason: eligibility_reason\n });\n\n return decision;\n });\n};\n\nvar checkPxp = function checkPxp() {\n var _$CheckoutAppDataMode = _checkout.$CheckoutAppDataModel.instance(_angular.$rootScope.token),\n merchant = _$CheckoutAppDataMode.merchant;\n\n var country = merchant && merchant.merchant_country;\n\n return (0, _squid.$pxp)('xo_hermesnode_config', { 'ctx.COUNTRY': country }, 'xo_hermesnode_sticky_cta_(.*)', false, true).then(function (treatment) {\n if (treatment) {\n var test = /xo_hermesnode_sticky_cta_(.*)/g;\n var name = treatment && treatment.treatment_name;\n var treatmentTest = test.exec(name);\n var treatmentName = treatmentTest.length > 1 && treatmentTest[1];\n\n _logger.$logger.info('checkout_fpti', {\n from: 'sticky_cta',\n to: 'process_pxp_check',\n eligibility_reason: treatmentName\n });\n return treatmentName;\n }\n return '';\n });\n};\n\nvar mapper = function mapper(eligibility, treatment) {\n var variant = {\n 'treatmentA': 'bottom',\n 'treatmentB': 'top',\n 'control': '',\n 'DEFAULT': ''\n };\n var result = variant[treatment] || variant.DEFAULT;\n\n _logger.$logger.info('checkout_fpti', {\n from: 'sticky_cta',\n to: 'process_variant_check',\n eligibility_reason: result || 'ineligible'\n });\n return result;\n};\n\n/**\n * To be replaced by $EligibilityClass.\n * Following new EligibilityClass pattern.\n*/\nvar $stickyCTA = exports.$stickyCTA = _squid.$Model.extend('$stickyCTA', {\n getEligibility: function getEligibility() {\n return checkEligibility().then(function (eligibility) {\n if (eligibility) {\n return checkPxp().then(function (treatment) {\n return mapper(eligibility, treatment);\n });\n } else {\n return '';\n }\n });\n }\n});\n\nangular.value(\"$stickyCTA\", $stickyCTA);\n_angular.$rootScope;\n\n_angular.$window;\n\n_logger.$logger;\n\n_squid.$Model;\n\n_squid.$populate;\n\n_squid.$pxp;\n\n_squid.$feature;\n\n_squid.$promise;\n\n_index.$DeviceInfo;\n\n_checkout.$CheckoutCartModel;\n\n_checkout.$CheckoutSessionModel;\n\n_checkout.$CheckoutAppDataModel;\n\n_gdprCookieBanner.$GDPRCookieBannerModel;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-models/src/fi/index.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.$CardInfoModel = exports.$WalletInstrumentNameMapping = exports.$WalletPreferences = exports.$ResolveOTP = exports.$Resolve3DS = exports.$CardTypeFromBinModel = exports.$BillingAddressesModel = exports.$CurrencyConversionModel = exports.$BillingAddressModel = exports.$AddBillingAddressModel = exports.$DeleteCardModel = exports.$SepaModel = exports.$PreferredFi = exports.$AddBankModel = exports.$BankModel = exports.$CardTypesModel = exports.$UnavailableCardModel = exports.$AddCardModel = exports.$CardModel = undefined;\n\nvar _index = __webpack_require__(\"../node_modules/xo-device-info/dist/index.js\");\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar BILLING_ADDRESS_FORMAT = {\n DEFAULT: {\n ',': ', ',\n ' ': ' '\n },\n IL: {\n he: {\n ',': '‏, ‏',\n ' ': '‏ ‏'\n }\n }\n};\n\nvar $CardModel = exports.$CardModel = _squid.$Model.extend('$CardModel', {\n serialize: function serialize() {\n return {\n type: this.type,\n number: this.number.replace(/[^\\d]+/g, ''),\n security_code: this.security_code,\n expiry_month: this.expiry_month && _squid.$util.pad(this.expiry_month, 2),\n expiry_year: this.expiry_year,\n issue_number: this.issue_number ? this.issue_number : undefined,\n start_month: this.start_month ? _squid.$util.pad(this.start_month, 2) : undefined,\n start_year: this.start_year ? this.start_year : undefined\n };\n },\n\n last4: function last4() {\n var cardNumber = this.number;\n\n return cardNumber.substr(cardNumber.length - 4);\n },\n\n isExisting: function isExisting() {\n return this.number && Boolean(this.number.match(/^xxxx-xxxx-xxxx-[\\d]{4}$/));\n }\n});\n\nvar $AddCardModel = exports.$AddCardModel = _squid.$Model.extend('$AddCardModel', {\n api: new _squid.$Api({\n uri: '/api/fi/card/:id?'\n }),\n\n init: function init() {\n this._super.init.apply(this);\n this.card = new $CardModel();\n },\n\n serialize: function serialize() {\n var id = this.address.id && this.address.id !== '0' ? this.address.id : undefined;\n\n return {\n cardType: this.cardType ? this.cardType : 'creditCard',\n sponsor_id: this.sponsor_id,\n preference: this.preference,\n user: this.user,\n card: this.card.serialize(),\n address: id ? {\n id: id\n } : this.address.serialize()\n };\n },\n\n clearId: function clearId() {\n delete this.id;\n }\n});\n\nvar $UnavailableCardModel = exports.$UnavailableCardModel = _squid.$Model.extend('$UnavailableCardModel', {\n api: new _squid.$Api({\n uri: '/api/fi/unavailable/card?addFIContingency'\n })\n});\n\nvar $CardTypesModel = exports.$CardTypesModel = _squid.$Model.extend('$CardTypesModel', {\n api: new _squid.$Api({\n uri: '/api/fi/card/types?country=:country&token=:token'\n }),\n\n retrieve: function retrieve() {\n return this._super.retrieve.apply(this, arguments).then(function (result) {\n this.disallowedCards = (0, _squid.$feature)('disallowedCards', undefined, this.country);\n // override disallowed cards with card types config list based on country\n if (this.disallowedCards) {\n result.disallowed = this.disallowedCards.cardTypes;\n }\n return result;\n });\n },\n\n supportedNames: function supportedNames() {\n if (typeof this.allowed === 'undefined') {\n return;\n }\n\n return this.allowed.map(function (type) {\n return _squid.$locale.content.cardTypes[type];\n });\n },\n\n unsupportedNames: function unsupportedNames() {\n if (typeof this.disallowed === 'undefined') {\n return;\n }\n\n return this.disallowed.map(function (type) {\n return _squid.$locale.content.cardTypes[type];\n });\n }\n});\n\nvar $BankModel = exports.$BankModel = _squid.$Model.extend('$BankModel', {\n init: function init() {\n this._super.init.apply(this);\n this.bank_account_number = '';\n this.bank_routing_number = '';\n this.iban_number = '';\n },\n\n serialize: function serialize() {\n var data = {};\n\n if (this.bank_account_number) {\n data.bank_account_number = this.bank_account_number;\n }\n if (this.bank_routing_number) {\n data.bank_routing_number = this.bank_routing_number;\n }\n if (this.iban_number) {\n data.iban_number = this.iban_number.replace(/\\s/g, '').toUpperCase();\n }\n return data;\n }\n});\n\nvar $AddBankModel = exports.$AddBankModel = _squid.$Model.extend('$AddBankModel', {\n api: new _squid.$Api({\n uri: '/api/fi/bank'\n }),\n\n init: function init() {\n this._super.init.apply(this);\n this.user = this.user || {\n first_name: '',\n dob_day: '',\n dob_month: '',\n dob_year: '',\n currency_code: '',\n country: ''\n };\n this.bank = this.bank || new $BankModel();\n this.address = this.address || {};\n this.creditorDetails = this.creditorDetails || {};\n this.fiDetails = this.fiDetails || {};\n },\n\n getBankData: function getBankData() {\n var data = {};\n\n // Set user info\n data.user = this.user;\n\n // Set bank info\n var bank = {};\n\n this.bank = this.bank || {};\n\n if (this.candidate_id) {\n data.candidate_id = this.candidate_id;\n }\n\n if (this.bank.bank_account_number) {\n bank.bank_account_number = this.bank.bank_account_number;\n }\n\n if (this.bank.bank_routing_number) {\n bank.bank_routing_number = this.bank.bank_routing_number;\n }\n\n if (this.bank.iban_number) {\n bank.iban_number = this.bank.iban_number.replace(/\\s/g, '');\n }\n data.bank = bank;\n\n // Set address info\n if (this.address) {\n data.address = {\n line1: this.address.line1,\n line2: this.address.line2,\n city: this.address.city,\n country: this.address.country,\n postal_code: this.address.postal_code\n };\n }\n\n return data;\n }\n});\n\nvar $PreferredFi = exports.$PreferredFi = _squid.$Model.extend('$PreferredFi', {\n api: new _squid.$Api({\n uri: '/api/fi/preferred'\n }),\n\n init: function init() {\n this._super.init.apply(this);\n\n // Get the type of device to send to FI for logging\n function getUiChannel() {\n var capabilities = _index.$DeviceInfo.getCapabilities();\n\n if (capabilities.isTablet) {\n return 'Tablet';\n } else if (capabilities.isMobile) {\n return 'Mobile';\n } else if (capabilities.isDesktop) {\n return 'Desktop';\n } else if (capabilities.isApp) {\n return 'App';\n } else {\n return null;\n }\n }\n\n this.uiChannel = getUiChannel();\n },\n\n serialize: function serialize() {\n return {\n preferred: this.preferred,\n uiChannel: this.uiChannel\n };\n }\n});\n\nvar $SepaModel = exports.$SepaModel = _squid.$Model.extend('$SepaModel', {\n api: new _squid.$Api({\n uri: '/api/fi/bank'\n })\n});\n\nvar $DeleteCardModel = exports.$DeleteCardModel = _squid.$Model.extend('$DeleteCardModel', {\n api: new _squid.$Api({\n uri: '/api/fi/card/:id/delete'\n })\n});\n\nvar $AddBillingAddressModel = exports.$AddBillingAddressModel = _squid.$Model.extend('$AddBillingAddressModel', {\n api: new _squid.$Api({\n uri: '/api/fi/:instrumentid/addbillingaddress'\n })\n});\n\nvar $BillingAddressModel = exports.$BillingAddressModel = _squid.$Model.extend('$BillingAddressModel', {\n api: new _squid.$Api({\n uri: '/api/fi/billingaddress/validate'\n }),\n\n format: function format() {\n\n var langConfig = (BILLING_ADDRESS_FORMAT[_squid.$locale.country] || {})[_squid.$locale.lang] || {};\n\n var comma = angular.isUndefined(langConfig[',']) ? BILLING_ADDRESS_FORMAT['DEFAULT'][','] : langConfig[','];\n var space = angular.isUndefined(langConfig[' ']) ? BILLING_ADDRESS_FORMAT['DEFAULT'][' '] : langConfig[' '];\n\n return _squid.$util.filter([this.line1, this.line2, this.city, this.state, this.country]).join(comma) + space + _squid.$util.filter([this.postal_code]);\n },\n\n serialize: function serialize() {\n return {\n line1: this.line1 && this.line1.trim(),\n line2: this.line2 && this.line2.trim(),\n city: this.city && this.city.trim(),\n state: this.state && this.state.trim(),\n postal_code: this.postal_code && this.postal_code.trim(),\n normalization_status: this.normalization_status,\n country: this.country\n };\n }\n});\n\nvar $CurrencyConversionModel = exports.$CurrencyConversionModel = _squid.$Model.extend('$CurrencyConversionModel', {\n api: new _squid.$Api({\n uri: '/api/fi/currencyConversion'\n })\n});\n\nvar $BillingAddressesModel = exports.$BillingAddressesModel = _squid.$Model.extend('$BillingAddressesModel', {\n api: new _squid.$Api({\n uri: '/api/fi/billingaddress'\n }),\n\n onPopulate: function onPopulate() {\n this.addresses = this.children($BillingAddressModel, this.addresses);\n }\n});\n\nvar $CardTypeFromBinModel = exports.$CardTypeFromBinModel = _squid.$Model.extend('$CardTypeFromBinModel', {\n api: new _squid.$Api({\n uri: '/api/fi/cardTypeFromBin'\n })\n});\n\nvar $Resolve3DS = exports.$Resolve3DS = _squid.$Model.extend('$Resolve3DS', {\n api: new _squid.$Api({\n uri: '/api/fi/3ds/:id'\n })\n});\n\nvar $ResolveOTP = exports.$ResolveOTP = _squid.$Model.extend('$ResolveOTP', {\n api: new _squid.$Api({\n uri: '/api/fi/otp/:id'\n })\n});\n\nvar $WalletPreferences = exports.$WalletPreferences = _squid.$Model.extend('$WalletPreferences', {\n api: new _squid.$Api({\n uri: '/api/fi/wallet/preferences'\n }),\n\n invalidateOnLogout: true, // invalidate this model when auth.logout() gets called\n\n init: function init() {\n this._super.init.apply(this);\n this.topup = {};\n this.direct = {};\n },\n\n serialize: function serialize() {\n var data = {};\n\n if (this.topup.amount) {\n var _topup = this.topup,\n amount = _topup.amount,\n _topup$fundingSource = _topup.fundingSource;\n _topup$fundingSource = _topup$fundingSource === undefined ? {} : _topup$fundingSource;\n var instrument_id = _topup$fundingSource.instrument_id;\n\n // Set the Topup funding instrument in the wallet preference api, which will be used by future Topup transactions\n\n data.topup = {\n amount: amount,\n instrument_id: instrument_id,\n autoload_minimum_threshold: _squid.$config.topup.autoload_minimum_threshold\n };\n } else {\n var _direct$fundingSource = this.direct.fundingSource;\n _direct$fundingSource = _direct$fundingSource === undefined ? {} : _direct$fundingSource;\n var _instrument_id = _direct$fundingSource.instrument_id;\n\n // Set the Direct funding instrument in the wallet preference api, which will be used by future Direct funding transactions\n\n data.direct = {\n instrument_id: _instrument_id,\n currency_code: this.currency\n };\n }\n return data;\n },\n\n /**\n * Return the preferred topup/direct fundingsource.\n * Originally values of topup & direct are from the FI wallet preferences api, which gets assigned during the init() call.\n * Values can be changed in the Review and the Wallet pages.\n */\n getPreferred: function getPreferred() {\n if (this.topup.fundingSource && this.topup.fundingSource.instrument_id) {\n // xo-hermes-fi will always return topup.fundingSource even when there is no preferred topup instrument, hence making the additional check here.\n return this.topup.fundingSource;\n } else {\n return this.direct.fundingSource || {};\n }\n }\n});\n\nvar $WalletInstrumentNameMapping = exports.$WalletInstrumentNameMapping = _squid.$Model.extend('$WalletInstrumentNameMapping', {\n init: function init() {\n this._super.init.apply(this);\n this.INSTRUMENT_MAP = {\n AMSOUTH: /AMSOUTH,/,\n BOFA: /BANK OF AMERICA/,\n CAPITAL: /CAPITAL/,\n CHASE: /CHASE/,\n CITI: /CITIBANK/,\n FIFTHTHIRD: /FIFTH THIRD BANK/,\n HUNTINGTON: /HUNTINGTON/,\n INGDIRECT: /ING DIRECT/,\n NATIONALCITY: /NATIONAL CITY/,\n PNC: /PNC/,\n REGIONS: /REGIONS/,\n SUNTRUST: /SUNTRUST/,\n TDWATERHOUSE: /TD WATERHOUSE/,\n USAA: /USAA/,\n USBANK: /US BANK/,\n VISA: /VISA/,\n WAMUTUAL: /WASHINGTON MUTUAL/,\n WELLSFARGO: /WELLS FARGO/\n };\n this.INSTRUMENT_NAMES = Object.keys(this.INSTRUMENT_MAP);\n },\n\n getInstrumentNameNormalized: function getInstrumentNameNormalized(fsName) {\n var _this = this;\n\n if (!fsName) {\n return;\n }\n\n fsName = fsName.toUpperCase();\n\n return _squid.$util.find(this.INSTRUMENT_NAMES, function (instName) {\n if (_this.INSTRUMENT_MAP[instName].test(fsName)) {\n return true;\n }\n return false;\n });\n }\n});\n\nvar $CardInfoModel = exports.$CardInfoModel = _squid.$Model.extend('$CardInfoModel', {\n api: new _squid.$Api({\n uri: '/api/fi/card/:id'\n })\n});\n\nangular.value(\"$CardModel\", $CardModel);\nangular.value(\"$AddCardModel\", $AddCardModel);\nangular.value(\"$UnavailableCardModel\", $UnavailableCardModel);\nangular.value(\"$CardTypesModel\", $CardTypesModel);\nangular.value(\"$BankModel\", $BankModel);\nangular.value(\"$AddBankModel\", $AddBankModel);\nangular.value(\"$PreferredFi\", $PreferredFi);\nangular.value(\"$SepaModel\", $SepaModel);\nangular.value(\"$DeleteCardModel\", $DeleteCardModel);\nangular.value(\"$AddBillingAddressModel\", $AddBillingAddressModel);\nangular.value(\"$BillingAddressModel\", $BillingAddressModel);\nangular.value(\"$CurrencyConversionModel\", $CurrencyConversionModel);\nangular.value(\"$BillingAddressesModel\", $BillingAddressesModel);\nangular.value(\"$CardTypeFromBinModel\", $CardTypeFromBinModel);\nangular.value(\"$Resolve3DS\", $Resolve3DS);\nangular.value(\"$ResolveOTP\", $ResolveOTP);\nangular.value(\"$WalletPreferences\", $WalletPreferences);\nangular.value(\"$WalletInstrumentNameMapping\", $WalletInstrumentNameMapping);\nangular.value(\"$CardInfoModel\", $CardInfoModel);\n_index.$DeviceInfo;\n\n_squid.$Model;\n\n_squid.$Api;\n\n_squid.$util;\n\n_squid.$config;\n\n_squid.$feature;\n\n_squid.$locale;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-models/src/fi/lib/fiApis.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.$fiApis = undefined;\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar $fiApis = exports.$fiApis = {\n patchCvv: function patchCvv(checkoutSession) {\n var cvvData = checkoutSession.get('cvvData');\n\n if (cvvData) {\n return checkoutSession.action('patchCvv', {\n data: {\n id: cvvData.id,\n cvv: cvvData.security_code,\n type: cvvData.type,\n number: cvvData.number\n }\n });\n }\n\n return _angular.$q.when();\n }\n};\n\nangular.value(\"$fiApis\", $fiApis);\n_angular.$q;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-models/src/frs/index.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.$FreeReturnShippingOptInModel = exports.$FreeReturnShippingApplicabilityModel = undefined;\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar $FreeReturnShippingApplicabilityModel = exports.$FreeReturnShippingApplicabilityModel = _squid.$Model.extend('$FreeReturnShippingApplicabilityModel', {\n api: new _squid.$Api({\n uri: '/api/offers/freeReturnShipping/checkApplicability'\n })\n});\n\nvar $FreeReturnShippingOptInModel = exports.$FreeReturnShippingOptInModel = _squid.$Model.extend('$FreeReturnShippingOptInModel', {\n api: new _squid.$Api({\n uri: '/api/offers/freeReturnShipping/optInUser'\n })\n});\n\nangular.value(\"$FreeReturnShippingApplicabilityModel\", $FreeReturnShippingApplicabilityModel);\nangular.value(\"$FreeReturnShippingOptInModel\", $FreeReturnShippingOptInModel);\n_squid.$Model;\n\n_squid.$Api;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-models/src/gdprCookieBanner/index.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.$GDPRCookieBannerModel = exports.isGdprValid = exports.testGdprBannerCookie = undefined;\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\nvar testGdprBannerCookie = exports.testGdprBannerCookie = function testGdprBannerCookie(cookies) {\n return (/(^|;\\s*)cookie_prefs=/.test(cookies)\n );\n};\n\nvar isGdprValid = exports.isGdprValid = function isGdprValid() {\n if (_squid.$util.param('forceGDPR')) {\n return true;\n }\n\n var country = _squid.$locale.country;\n\n return _squid.$util.getProperty(_squid.$config, 'GDPR.cookieBanner', { 'default': false }) && _squid.$util.getProperty(_squid.$config, 'GDPR.countries', { 'default': [] }).indexOf(country) > -1;\n};\n\nvar $GDPRCookieBannerModel = exports.$GDPRCookieBannerModel = _squid.$Model.extend('$GDPRCookieBannerModel', {\n api: new _squid.$Api({\n uri: '/api/cookieBanner'\n }),\n\n /**\n * Handles the logic for when to fetch the banner and when to return\n * Don't repeat the call for same country\n * Don't return the banner if not PXP check\n * @returns {Promise} resolves an object\n */\n getBanner: function getBanner() {\n var _this = this;\n\n // API is cached on country. Return current result if already present\n if (this.lastResult && this.lastCountry === _squid.$locale.country && this.lastLang === _squid.$locale.lang) {\n return this.lastResult;\n }\n\n // Invalidate the model to make a fresh call\n this.invalidate();\n\n // Log if the user has cookie indicating a previous interaction with the cookie banner\n if (testGdprBannerCookie(document.cookie)) {\n _logger.$logger.info('checkout_fpti', {\n from: 'GDPR_banner',\n to: 'GDPR_banner_has_cookie'\n });\n }\n\n // Cache the result promise and params\n this.lastCountry = _squid.$locale.country;\n this.lastLang = _squid.$locale.lang;\n this.lastResult = this.retrieve().then(function (res) {\n var html = res.html,\n css = res.css,\n js = res.js;\n\n\n if (!html || !js || !css) {\n _logger.$logger.info('gdpr_response_missing_props', {\n html: !!html,\n js: !!js,\n css: !!css\n });\n _this.reset();\n return;\n }\n\n _logger.$logger.info('checkout_fpti', {\n from: 'GDPR_banner',\n to: 'GDPR_banner_shown'\n });\n\n return { html: html, css: css, js: js };\n });\n\n return this.lastResult;\n },\n reset: function reset() {\n this.html = '';\n this.css = '';\n this.js = '';\n },\n shown: function shown() {\n return !!this.html;\n },\n\n // Check if a banner was shown in the flow.\n // SOME EDGE CASES:\n // Will not update when the user clicks to accept the banner, and it closes\n // Will update if retrieve is called with a new country and blank data is returned\n hasBanner: function hasBanner() {\n var _this2 = this;\n\n // check config flag\n // check if already populated\n // make call again and let regular logic populate html\n // return boolean\n\n if (!isGdprValid()) {\n return _squid.$promise.resolve(false);\n }\n if (this.html) {\n return _squid.$promise.resolve(this.shown());\n }\n return this.getBanner().then(function () {\n return _this2.shown();\n });\n }\n});\n\nangular.value(\"testGdprBannerCookie\", testGdprBannerCookie);\nangular.value(\"isGdprValid\", isGdprValid);\nangular.value(\"$GDPRCookieBannerModel\", $GDPRCookieBannerModel);\n_squid.$Model;\n\n_squid.$Api;\n\n_squid.$locale;\n\n_squid.$config;\n\n_squid.$util;\n\n_squid.$promise;\n\n_logger.$logger;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-models/src/inventory/index.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.$InventoryModel = undefined;\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar $InventoryModel = exports.$InventoryModel = _squid.$Model.extend('$InventoryModel', {\n api: new _squid.$Api({\n uri: '/api/catalog/:id/item/',\n postAttempts: 2,\n cache: true\n }),\n\n setInvetoryItems: function setInvetoryItems(inventoryItems) {\n this.inventoryItems = inventoryItems;\n },\n\n getInventoryItems: function getInventoryItems() {\n return this.inventoryItems;\n }\n});\n\nangular.value(\"$InventoryModel\", $InventoryModel);\n_squid.$Model;\n\n_squid.$Api;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-models/src/marketingoffer/index.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.$CreditOfferModel = exports.$MemberSegmentModel = exports.$fireMORSBeacon = exports.$MessageDiscoverModel = exports.$MarketingOfferModel = undefined;\n\nvar _uuid = __webpack_require__(\"../node_modules/node-uuid/uuid.js\");\n\nvar _uuid2 = _interopRequireDefault(_uuid);\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar $MarketingOfferModel = exports.$MarketingOfferModel = _squid.$Model.extend('$MarketingOfferModel', {\n api: new _squid.$Api({\n uri: '/api/checkout/offer/search-ads',\n postAttempts: 1,\n cache: true\n }),\n init: function init() {\n this.setProperties({ ads: [] });\n this.meta = { populated: false };\n },\n onPopulate: function onPopulate() {\n var _this = this;\n\n if (this.targetPlacements && this.targetPlacements[0]) {\n var targetAd = this.ads.find(function (ad) {\n return ad.valid && ad.campaign.adunit_id === _this.targetPlacements[0].placement_code;\n });\n\n this.ad = undefined;\n if (targetAd) {\n var ad = {};\n var nvpContent = targetAd && targetAd.content && targetAd.content.nvp;\n\n nvpContent.forEach(function (obj) {\n ad[obj.name] = obj.value;\n });\n ad['impressionUrl'] = targetAd && targetAd.tracking && targetAd.tracking.impression_url;\n ad['clickUrl'] = targetAd && targetAd.tracking && targetAd.tracking.click_url;\n ad['campaignId'] = targetAd && targetAd.campaign && targetAd.campaign.campaign_id;\n ad['buyItemId'] = targetAd && targetAd.campaign && targetAd.campaign.buy_item_id;\n ad['placementCode'] = targetAd && targetAd.campaign && targetAd.campaign.adunit_id;\n this.ad = ad;\n }\n }\n },\n getCacheKey: function getCacheKey() {\n var cacheKey = {};\n\n if (this.cacheParam) {\n this.cacheParam.forEach(function (element) {\n if (typeof element.value !== 'undefined') {\n cacheKey[element.name] = element.value.toString();\n }\n });\n }\n return cacheKey;\n },\n serialize: function serialize() {\n return {\n 'site': this.site,\n 'locale': this.locale,\n 'si': this.si,\n 'visit_id': _uuid2['default'].v4(),\n 'page': this.page,\n 'epu': this.payer,\n 'pu_type': this.puType || 'ANONYMOUS',\n 'country_code': this.countryCode,\n 'payment_context': {\n 'total_transaction_amount': this.totalTransactionAmount,\n 'total_shipping_amount': this.totalShippingAmount,\n 'business_case': 'NONE',\n 'business_case_variation': '',\n 'validate_existing_offer': 'false',\n 'payment_units': [{\n 'transaction_amount': this.totalTransactionAmount,\n 'transaction_id': '',\n 'encrypted_transaction_id': '',\n 'activity_id': '',\n 'payee': {\n 'pu_type': 'BUSINESS',\n 'country_code': this.countryCode,\n 'epu': this.payee,\n 'pu': ''\n }\n }]\n },\n 'target_placements': this.targetPlacements,\n 'wallet_instruments': this.walletInstruments,\n 'addl_property_installments_not_allowed': this.installmentsNotAllowed\n };\n },\n getTargetAd: function getTargetAd() {\n return this.ad;\n },\n isAdFound: function isAdFound() {\n if (this.ad) {\n for (var property in this.ad) {\n if (this.ad.hasOwnProperty(property)) {\n return true;\n }\n }\n }\n return false;\n }\n});\n\nvar $MessageDiscoverModel = exports.$MessageDiscoverModel = _squid.$Model.extend('$MessageDiscoverModel', {\n api: new _squid.$Api({\n uri: '/api/checkout/offer/discover-messages',\n postAttempts: 1\n })\n});\n\nvar $fireMORSBeacon = exports.$fireMORSBeacon = {\n fireBeacon: function fireBeacon(uri) {\n var img = document.createElement('img');\n\n img.setAttribute('src', uri);\n document.body.appendChild(img);\n return;\n }\n};\n\nvar $MemberSegmentModel = exports.$MemberSegmentModel = _squid.$Model.extend('$MemberSegmentModel', {\n api: new _squid.$Api({\n uri: '/api/segment/memberSegment',\n postAttempts: 1\n }),\n invalidateOnLogout: true, // invalidate this model when auth.logout() gets called\n getMemberSegment: function getMemberSegment() {\n return this.memberSegment;\n },\n getCreditOffer: function getCreditOffer() {\n return this.creditOffer;\n },\n isNewMember: function isNewMember() {\n return this.memberSegment === 'NEW_MEMBER' || this.memberSegment === 'YOUNG_MEMBER';\n },\n isExistingMember: function isExistingMember() {\n return this.memberSegment === 'EXISTING_MEMBER';\n },\n // Member Segments that are eligble for the New Experience\n isEligibleForExperimentation: function isEligibleForExperimentation() {\n var eligibleMemberSegments = _squid.$config.memberSegments;\n\n return eligibleMemberSegments.indexOf(this.memberSegment) > -1;\n }\n});\n\nvar $CreditOfferModel = exports.$CreditOfferModel = $MessageDiscoverModel.extend('$CreditOfferModel', {\n init: function init() {\n this.setProperties({\n bannerMessages: []\n });\n },\n populate: function populate(result) {\n var _this2 = this;\n\n if (result && result.touchpoint_messages) {\n var touchpoint_messages = result.touchpoint_messages.find(function (element) {\n return element.touchpoint_code === _this2.touchpoint;\n });\n\n this.storeMessages(touchpoint_messages);\n }\n },\n storeMessages: function storeMessages(touchpoint_messages) {\n if (touchpoint_messages) {\n this.viewName = touchpoint_messages.view_name;\n\n if (touchpoint_messages.messages) {\n var messages = touchpoint_messages.messages;\n\n for (var i = 0; i < touchpoint_messages.messages.length; i++) {\n var presentmentType = messages[i].content.json.PresentmentType;\n\n if (presentmentType === 'Banner') {\n this.bannerMessages.push(messages[i]);\n }\n }\n }\n }\n },\n getBannerCount: function getBannerCount() {\n return this.bannerMessages.length;\n },\n hasBannerMessage: function hasBannerMessage() {\n return this.getBannerCount() > 0;\n },\n getTouchpointCode: function getTouchpointCode() {\n return this.touchpoint;\n },\n getBannerMessage: function getBannerMessage(i) {\n i = !i ? 0 : i;\n\n if (this.getBannerCount() > i) {\n return this.bannerMessages[i];\n }\n return null;\n },\n getCacheKey: function getCacheKey() {\n var cacheKey = {};\n\n if (this.application_context) {\n this.application_context.forEach(function (element) {\n if (typeof element.value !== 'undefined') {\n cacheKey[element.name] = element.value.toString();\n }\n });\n }\n return cacheKey;\n },\n serialize: function serialize() {\n return {\n 'country_code': this.locale.country,\n 'language': this.locale.lang + '_' + this.locale.country,\n 'identity_context': [{\n 'type': 'PAYER_ID',\n 'value': this.payer\n }, {\n 'type': 'MERCHANT_PAYER_ID',\n 'value': this.payee\n }],\n 'recommendation_context': {\n 'view_names': this.view_names ? this.view_names : [],\n 'touchpoint_details': [{\n 'code': this.touchpoint,\n 'message_count': this.message_count ? this.message_count : 1\n }]\n },\n 'application_context': this.application_context\n };\n }\n});\n\nangular.value(\"$MarketingOfferModel\", $MarketingOfferModel);\nangular.value(\"$MessageDiscoverModel\", $MessageDiscoverModel);\nangular.value(\"$fireMORSBeacon\", $fireMORSBeacon);\nangular.value(\"$MemberSegmentModel\", $MemberSegmentModel);\nangular.value(\"$CreditOfferModel\", $CreditOfferModel);\n_squid.$Model;\n\n_squid.$Api;\n\n_squid.$config;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-models/src/onboard/index.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.$SingleStepModel = exports.$GuestUpgradeModel = exports.$OnboardPhoneModel = exports.$OnboardUserModel = exports.$OnboardModel = undefined;\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _index = __webpack_require__(\"../node_modules/xo-models/src/fi/index.js\");\n\nvar _directive = __webpack_require__(\"../node_modules/xo-form-components/src/national-id-input/directive.js\");\n\nvar $OnboardModel = exports.$OnboardModel = _squid.$Model.extend('$OnboardModel', {\n api: new _squid.$Api({\n uri: '/api/onboard'\n }),\n\n init: function init() {\n this._super.init.apply(this);\n this.fiMode = this.fiMode || 'card'; // Supports card or bank\n this.bank = this.bank || new _index.$BankModel();\n this.card = this.card || new _index.$CardModel();\n },\n\n serialize: function serialize() {\n var data = {\n user: this.user.serialize(),\n billing_address: this.billing_address.serialize(),\n shipping_address: this.shipping_address.serialize(),\n phone: this.phone.serialize(),\n marketing_optin: this.marketingOptin,\n shipping_address_validation: this.shipping_address_validation,\n billing_address_present: this.billing_address_present,\n payment_experience_initiator: this.payment_experience_initiator,\n poma_flow: this.poma_flow,\n prox_flow: this.prox_flow,\n testParams: this.testParams,\n content_identifier: this.content_identifier,\n frs_optin_flow_applicable: this.frs_optin_flow_applicable, // Free Return Shipping Opt-in flow applicability flag\n frs_optin_active_flow: this.frs_optin_active_flow, // Denotes FRS opt in flow type - Active (true) or Silent (false)\n flow_eligibility_data: this.flow_eligibility_data,\n bypass_address_verification: this.bypass_address_verification,\n bypass_authorization: this.bypass_authorization\n };\n\n if (this.nationalIdModel) {\n data.nationalIdModel = {\n 'secondaryIdType': this.nationalIdModel.secondaryIdType,\n 'secondaryIdValue': this.nationalIdModel.secondaryIdValue\n };\n\n if (this.nationalIdModel.nationalId) {\n data.nationalIdModel.nationalId = {\n type: this.nationalIdModel.nationalId.type,\n subType: this.nationalIdModel.nationalId.subType,\n value: this.nationalIdModel.nationalId.value\n };\n }\n }\n\n if (this.fiMode === 'card') {\n data.card = this.card.serialize();\n } else {\n data.bank = this.bank.serialize();\n }\n\n data.skipInitiateAuth = this.skipInitiateAuth;\n\n return data;\n }\n});\n\nvar $OnboardUserModel = exports.$OnboardUserModel = _squid.$Model.extend('$OnboardUserModel', {\n serialize: function serialize() {\n var onboardUserModel = {\n first_name: this.first_name,\n last_name: this.last_name,\n email: this.email,\n password: this.password,\n countryOfResidence: this.countryOfResidence,\n country: this.country,\n dob_day: this.dob_day,\n dob_month: this.dob_month,\n dob_year: this.dob_year,\n occupation: this.occupation,\n nationality: this.nationality,\n gender_type: this.gendertype,\n place_of_birth: this.placeofbirth\n };\n\n if (this.nativeName) {\n onboardUserModel.nativeName = {\n first_name: this.nativeName.first_name,\n last_name: this.nativeName.last_name,\n middle_name: this.nativeName.middle_name\n };\n }\n\n return onboardUserModel;\n }\n});\n\nvar $OnboardPhoneModel = exports.$OnboardPhoneModel = _squid.$Model.extend('$OnboardPhoneModel', {\n serialize: function serialize() {\n return {\n type: this.phoneType,\n number: this.telephone,\n countryCode: this.IntDialingCountryCode\n };\n }\n});\n\n/**\n * A model for handling onboarding guest accounts\n * into PayPal accounts (happens post transaction)\n */\n\nvar $GuestUpgradeModel = exports.$GuestUpgradeModel = _squid.$Model.extend('$GuestUpgradeModel', {\n api: new _squid.$Api({\n uri: '/api/onboard/guest-upgrade'\n }),\n\n serialize: function serialize() {\n var data = {\n user: this.user.serialize(),\n phone: this.phone.serialize(),\n billing_address: this.billing_address.serialize(),\n payerId: this.payerId,\n transaction: this.transaction,\n marketing_optin: this.marketing_optin,\n contentIdentifier: this.contentIdentifier,\n experienceIdentifier: this.experienceIdentifier,\n experienceChannel: this.experienceChannel,\n nationalId: this.nationalIdModel ? this.nationalIdModel.serialize() : _directive.$NationalIdModel.instance().serialize()\n };\n\n // append additional phone data\n data.phone.country_prefix = this.phone && this.phone.IntDialingCountryCode;\n\n // append additional billing_address data\n data.billing_address.normalization_status = this.billing_address && this.billing_address.normalization_status;\n\n return data;\n },\n\n serializeEmailFlow: function serializeEmailFlow() {\n var data = {\n user: this.user.serialize(),\n phone: this.phone.serialize(),\n billing_address: this.billing_address.serialize(),\n payerId: this.payerId,\n transaction: this.transaction,\n receiptId: this.receiptId,\n marketing_optin: this.marketing_optin,\n card: this.card\n };\n\n return data;\n }\n});\n\nvar $SingleStepModel = exports.$SingleStepModel = _squid.$Model.extend('$SingleStepModel', {});\n\nangular.value(\"$OnboardModel\", $OnboardModel);\nangular.value(\"$OnboardUserModel\", $OnboardUserModel);\nangular.value(\"$OnboardPhoneModel\", $OnboardPhoneModel);\nangular.value(\"$GuestUpgradeModel\", $GuestUpgradeModel);\nangular.value(\"$SingleStepModel\", $SingleStepModel);\n_squid.$Model;\n\n_squid.$Api;\n\n_index.$CardModel;\n\n_index.$BankModel;\n\n_directive.$NationalIdModel;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-models/src/processorDecline/index.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.getProcessorDeclineRetryEligibility = getProcessorDeclineRetryEligibility;\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\nvar _thirdPartyInfo = __webpack_require__(\"../node_modules/xo-third-party-components/src/thirdParty-info/index.js\");\n\nvar _checkout = __webpack_require__(\"../node_modules/xo-models/src/checkout/index.js\");\n\nvar _auth = __webpack_require__(\"../node_modules/xo-models/src/auth/index.js\");\n\nvar INELIGIBLE = _squid.$promise.resolve(false);\nvar lastBuyerId = null;\n\n// Check eligibility for processor decline retry feature\n// First checks if feature eligibility is met, then PXP eligibility is met\nfunction getProcessorDeclineRetryEligibility(token, checkoutSession) {\n if (!(0, _squid.$feature)('cardBackup')) {\n return INELIGIBLE;\n }\n\n // TODO: Refactor the eligibility rules to a set of common rules\n var models = {};\n\n return (0, _squid.$populate)(models, {\n auth: _auth.$AuthModel.instance(),\n checkoutCart: _checkout.$CheckoutCartModel.instance(token),\n checkoutPayee: _checkout.$CheckoutPayeeModel.instance(token),\n checkoutAppData: _checkout.$CheckoutAppDataModel.instance(token)\n }).then(function () {\n var checkoutCart = models.checkoutCart,\n checkoutPayee = models.checkoutPayee,\n checkoutAppData = models.checkoutAppData;\n\n var plans = checkoutSession.get('fundingOptions.plans', []);\n var moreThanOneCard = plans.filter(function (fi) {\n return fi.primaryFs.type === 'CARD';\n }).length < 2;\n\n // exclude rewards from the eligibility list\n var hasRewards = plans.filter(function (fi) {\n return fi && fi.rewards !== undefined;\n }).length > 0;\n\n // See https://engineering.paypalcorp.com/confluence/display/HellsKitchen/Hermes+Processor+Decline+Retry for eligibility reasons\n var isGambling = checkoutPayee.isGambling();\n var isBilling = checkoutCart.isBilling();\n // We're only sure that Sale transactions will go onto the new payments stack, for now\n var isNotSale = checkoutCart.get('payment_action') !== 'sale';\n var isThirdParty = _thirdPartyInfo.thirdPartyExperience.isThirdPartyExperience(token);\n // Exclude all WPS products\n var isWpsOrInvoice = checkoutAppData.get('flags.is_wps_flow') || checkoutAppData.get('flags.is_invoice_flow');\n // We will need to confirm functionality for this before we can enable for this feature\n var isMultiSellerPurchase = checkoutCart.isMultiSellerPurchase();\n var hasInstallments = checkoutSession.installments && checkoutSession.installments.length > 1;\n var involvedCurrencies = plans.reduce(function (currencies, plan) {\n currencies[plan.primaryFs.amount.currency_code] = 1;\n return currencies;\n }, {});\n // Buyer promo email routing through checkoutserv, downstream does not support\n var hasBuyerPromoEmail = checkoutAppData.get('flags.display_buyer_email_promotional_opt_in');\n\n if (checkoutCart.get('purchase.amounts.total.currency_code')) {\n involvedCurrencies[checkoutCart.purchase.amounts.total.currency_code] = 1;\n }\n\n var ineligibilityCriteria = {\n isGambling: isGambling,\n moreThanOneCard: moreThanOneCard,\n hasRewards: hasRewards,\n isBilling: isBilling,\n isNotSale: isNotSale,\n isThirdParty: isThirdParty,\n isWpsOrInvoice: isWpsOrInvoice,\n isMultiSellerPurchase: isMultiSellerPurchase,\n hasInstallments: hasInstallments,\n currencyConversion: Object.keys(involvedCurrencies).length > 1,\n hasBuyerPromoEmail: hasBuyerPromoEmail\n };\n var ineligibleReasons = Object.keys(ineligibilityCriteria).filter(function (key) {\n return ineligibilityCriteria[key];\n });\n var eligible = ineligibleReasons.length === 0;\n\n // Logging for FPTI\n _logger.$logger.info('checkout_fpti', {\n from: 'processor_decline_retry',\n // This logs whether user is eligible by Hermes criteria\n to: 'processor_decline_retry_' + (eligible ? 'eligible' : 'ineligible')\n });\n\n if (!eligible) {\n // This logs the overall result of the eligibility check\n _logger.$logger.info('processor_decline_retry_ineligible', {\n reasons: ineligibleReasons.join()\n });\n }\n\n return eligible;\n }).then(function (featureEligible) {\n // BuyerId is needed to make sure pxp is reloaded if a new user logs in.\n // Refactor: Make this a common pxp model that is invalidated on logout\n var buyerId = models.auth.buyerId;\n\n var sameBuyer = buyerId === lastBuyerId;\n\n lastBuyerId = buyerId;\n\n if (!featureEligible) {\n return false;\n }\n\n // Only run the PXP if the feature is eligible, as requested from analytics\n return (0, _squid.$pxp)('xo_hermes_processor_decline_retry', {}, 'xo_hermes_processor_decline_retry_treatment', sameBuyer ? false : true, true).then(function (pxpRes) {\n if (!pxpRes) {\n _logger.$logger.info('processor_decline_retry_ineligible', {\n pxpIneligible: true\n });\n }\n\n return !!pxpRes;\n });\n }).then(function (eligibleWithPxp) {\n if (eligibleWithPxp) {\n _logger.$logger.info('processor_decline_retry_eligible');\n }\n return eligibleWithPxp;\n });\n}\n\n_squid.$feature;\n\n_squid.$populate;\n\n_squid.$promise;\n\n_squid.$pxp;\n\n_logger.$logger;\n\n_thirdPartyInfo.thirdPartyExperience;\n\n_checkout.$CheckoutCartModel;\n\n_checkout.$CheckoutPayeeModel;\n\n_checkout.$CheckoutAppDataModel;\n\n_auth.$AuthModel;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-models/src/profilemanagement/index.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.$MerchantPreferenceModel = undefined;\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar $MerchantPreferenceModel = exports.$MerchantPreferenceModel = _squid.$Model.extend('$MerchantPreferenceModel', {\n init: function init() {\n this._super.init.apply(this);\n\n this.setProperties({\n rm: _squid.$util.param('rm'), // Return Method\n return_url: _squid.$util.param('return'),\n auto_return: {\n enabled: false\n },\n pdt: {\n enabled: false\n }\n });\n },\n\n\n api: new _squid.$Api({\n baseURI: _squid.$config.urls.baseUrl,\n uri: '/api/profilemanagement/:id/getMerchantPreferences'\n }),\n\n autoReturn: function autoReturn() {\n return this.auto_return.enabled;\n },\n pdtEnabled: function pdtEnabled() {\n return this.pdt && this.pdt.enabled;\n },\n returnUrl: function returnUrl() {\n return this.return_url || this.auto_return.url;\n },\n\n\n /**\n * 0 – redirect using GET method ( default behavior )\n * 1 – redirect using the GET method, but no payment variables are included\n * 2 – redirect using the POST method, and include all payment variables\n */\n returnMethod: function returnMethod() {\n if (this.rm === '2') {\n return this.pdtEnabled() ? 'GET' : 'POST';\n }\n\n return 'GET';\n },\n returnMethodSupported: function returnMethodSupported() {\n return this.returnMethod() === 'GET';\n },\n\n\n /**\n * Determines if payment details need to be sent back to the merchant.\n * @returns {boolean}\n */\n postPaymentData: function postPaymentData() {\n return this.rm === '2' && !this.pdtEnabled() && this.returnUrl();\n },\n\n\n // charset of merchant having in profile\n charSet: function charSet() {\n return this.charset;\n }\n});\n\nangular.value(\"$MerchantPreferenceModel\", $MerchantPreferenceModel);\n_squid.$Model;\n\n_squid.$Api;\n\n_squid.$config;\n\n_squid.$util;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-models/src/prox/index.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.$ContextualLoginModel = undefined;\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar $ContextualLoginModel = exports.$ContextualLoginModel = _squid.$Model.extend('$ContextualLoginModel', {\n init: function init() {\n this._super.init.apply(this);\n this.setProperties({\n key: _squid.$util.param('ctxId')\n });\n },\n api: new _squid.$Api({\n uri: '/api/contextualLogin/:key'\n })\n});\n\nangular.value(\"$ContextualLoginModel\", $ContextualLoginModel);\n_squid.$Model;\n\n_squid.$Api;\n\n_squid.$util;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-models/src/shippingMethod/index.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.$ShippingRuleSummaryModel = exports.$ShippingMethodModel = undefined;\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar $ShippingMethodModel = exports.$ShippingMethodModel = _squid.$Model.extend('$ShippingMethodModel', {\n api: new _squid.$Api({\n uri: '/api/shippingtax/charges'\n }),\n\n getShippingMethodId: function getShippingMethodId(shippingMethodType) {\n var shippingMethodsMap = {\n DEFAULT: '0',\n AIR_SERVICE: '1',\n ECONOMY: '2',\n EXPEDITED_AIR_SERVICE: '3',\n EXPEDITED_FLAT_RATE_SHIPPING: '4',\n EXPRESS: '5',\n EXPRESS_DOMESTIC: '6',\n FREE_SHIPPING: '7',\n GROUND: '8',\n GLOBAL_PRIORITY: '9',\n INTERNATIONAL_ECONOMY: '10',\n INTERNATIONAL_EXPEDITED: '11',\n INTERNATIONAL_EXPRESS: '12',\n INTERNATIONAL_EXPRESS_AIR: '13',\n INTERNATIONAL_PRIORITY_AIR: '14',\n NEXT_DAY: '15',\n NEXT_DAY_AIR: '16',\n NEXT_DAY_AIR_ECONOMY: '17',\n ONE_DAY_SHIPPING: '18',\n OVERNIGHT: '19',\n OVERNIGHT_FLAT_RATE_SHIPPING: '20',\n PICKUP: '21',\n PRIORITY: '22',\n RUSH_DELIVERY: '23',\n STANDARD_DOMESTIC: '24',\n STANDARD_EXPEDITED: '25',\n STANDARD_FLAT_RATE_SHIPPING: '26',\n STANDARD_INTERNATIONAL: '27',\n STANDARD_SHIPPING: '28',\n STORE_PICKUP: '29',\n TWO_DAY_SHIPPING: '30',\n WORLDWIDE_SHIPPING: '31',\n TWO_DAY_AIR: '32'\n };\n\n return shippingMethodsMap[shippingMethodType];\n },\n\n isStorePickUp: function isStorePickUp(shipping_method_type) {\n return shipping_method_type === 'STORE_PICKUP' || shipping_method_type === 'PICKUP';\n }\n});\n\nvar $ShippingRuleSummaryModel = exports.$ShippingRuleSummaryModel = _squid.$Model.extend('$ShippingRuleSummaryModel', {\n api: new _squid.$Api({\n uri: '/api/shippingtax/:id/rulesSummary'\n })\n});\n\nangular.value(\"$ShippingMethodModel\", $ShippingMethodModel);\nangular.value(\"$ShippingRuleSummaryModel\", $ShippingRuleSummaryModel);\n_squid.$Model;\n\n_squid.$Api;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-models/src/shoppingcart/index.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.$ShoppingCartModel = undefined;\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar $ShoppingCartModel = exports.$ShoppingCartModel = _squid.$Model.extend('$ShoppingCartModel', {\n api: new _squid.$Api({\n uri: '/api/shoppingcart/:id',\n postAttempts: 2,\n cache: false\n })\n});\n\nangular.value(\"$ShoppingCartModel\", $ShoppingCartModel);\n_squid.$Model;\n\n_squid.$Api;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-models/src/subscription/index.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.$SubscriptionsV1Model = exports.$SubscriptionModel = exports.$CreateBAModel = undefined;\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar $CreateBAModel = exports.$CreateBAModel = _squid.$Model.extend('$CreateBAModel', {\n api: new _squid.$Api({\n uri: '/api/billagmt',\n postAttempts: 3\n })\n});\n\nvar $SubscriptionModel = exports.$SubscriptionModel = _squid.$Model.extend('$SubscriptionModel', {\n api: new _squid.$Api({\n uri: '/api/billagmt/:id',\n postAttempts: 3,\n cache: true\n })\n});\n\nvar $SubscriptionsV1Model = exports.$SubscriptionsV1Model = _squid.$Model.extend('$SubscriptionsV1Model', {\n api: new _squid.$Api({\n uri: '/api/billagmt/subscriptions/v1/:id',\n cache: true\n })\n});\n\nangular.value(\"$CreateBAModel\", $CreateBAModel);\nangular.value(\"$SubscriptionModel\", $SubscriptionModel);\nangular.value(\"$SubscriptionsV1Model\", $SubscriptionsV1Model);\n_squid.$Model;\n\n_squid.$Api;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-models/src/user/index.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.$UserProductSubscriptionModel = exports.$AuthConsentModel = exports.$UserPhotoModel = exports.$EConsentModel = exports.$WaxUserModel = exports.$PatchPhoneModel = exports.$AddKYCModel = exports.$ValidatePhoneModel = exports.$UserInfoModel = exports.$CheckoutInputDataModel = exports.$CheckoutClientDataModel = undefined;\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar $CheckoutClientDataModel = exports.$CheckoutClientDataModel = _squid.$Model.extend('$CheckoutClientDataModel', {\n api: new _squid.$Api({\n uri: '/api/user/:id/clientData'\n }),\n\n merchantIdentityData: function merchantIdentityData() {\n return {\n email: this.email,\n brand_name: this.display_name,\n logo_uri: this.logo_uri,\n identity_uri: this.identity_uri\n };\n },\n\n validateClient: function validateClient() {\n if (this.partner_id && this.identity_uri) {\n return {\n success: true\n };\n } else {\n return {\n success: false,\n error: 'invalid_client'\n };\n }\n },\n validateRedirectUri: function validateRedirectUri(redirectUrl) {\n if (this.identity_uri && this.identity_uri.indexOf(redirectUrl) > -1) {\n return {\n success: true\n };\n } else {\n return {\n success: false,\n error: 'invalid_redirect_url'\n };\n }\n }\n});\n\nvar ACTION = {\n login: 'login',\n resolve: 'resolve',\n addCard: 'addCard',\n addBank: 'addBank',\n changeCurrencyConv: 'changeCurrencyConv',\n signup: 'signup',\n mandate: 'mandate',\n addCredit: 'addCredit',\n ulReturn: 'ulReturn',\n creditReturn: 'creditReturn',\n guestCurrencyConversion: 'guestCurrencyConversion',\n guestAuthentication: 'guestAuthentication',\n compliance: 'compliance'\n};\n\nvar $CheckoutInputDataModel = exports.$CheckoutInputDataModel = _squid.$Model.extend('$CheckoutInputDataModel', {\n init: function init() {\n this._super.init.apply(this);\n this.setProperties({\n client_id: _squid.$util.param('client_id'),\n action: _squid.$util.param('action'),\n redirect_uri: _squid.$util.param('redirect_uri'),\n scope: _squid.$util.param('scope'),\n state: _squid.$util.param('state'),\n flow: _squid.$util.param('flow'),\n payer_id: _squid.$util.param('payer_id'),\n mandate_reference_number: _squid.$util.param('mandate_reference_number'),\n funding_option_id: _squid.$util.param('funding_option_id'),\n locale: _squid.$util.param('locale'),\n logout: _squid.$util.param('logout'),\n refresh_parent: _squid.$util.param('refresh_parent'),\n escape_hatch: _squid.$util.param('escape_hatch'),\n failedBecause: _squid.$util.param('failedBecause'),\n redirectReferrer: _squid.$util.param('redirectReferrer'),\n id_token: _squid.$util.param('prox_id'),\n nonce: _squid.$util.param('nonce'),\n hide_rm: _squid.$util.param('hideRM'),\n payloadEnc: _squid.$util.param('payloadEnc'),\n xcancel: _squid.$util.param('x-cancel'),\n xsuccess: _squid.$util.param('x-success')\n });\n },\n\n api: new _squid.$Api({\n baseURI: _squid.$config.urls.baseUrl,\n uri: '/api/user/:id/payerId'\n }),\n\n isEbayTxn: function isEbayTxn() {\n return Boolean(this.client_id);\n },\n\n validAction: function validAction() {\n var actions = {\n login: 'login',\n resolve: 'resolve',\n addCard: 'addCard',\n addBank: 'addBank',\n changeCurrencyConv: 'changeCurrencyConv',\n signup: 'signup',\n mandate: 'mandate',\n addCredit: 'addCredit',\n ulReturn: 'ulReturn',\n creditReturn: 'creditReturn',\n guestCurrencyConversion: 'guestCurrencyConversion',\n guestAuthentication: 'guestAuthentication',\n compliance: 'compliance'\n };\n\n return actions.hasOwnProperty(this.action);\n },\n\n showRYP: function showRYP() {\n return !this.isEbayTxn();\n },\n\n requiresOAuth: function requiresOAuth() {\n return this.action === ACTION.login || this.action === ACTION.signup;\n },\n\n requiresRedirectUri: function requiresRedirectUri() {\n return this.action === ACTION.mandate || !this.requiresOAuth();\n },\n\n validRedirectUri: function validRedirectUri() {\n if (this.requiresRedirectUri()) {\n return Boolean(this.redirect_uri);\n }\n return true;\n },\n\n validate: function validate() {\n var error;\n var success = true;\n\n if (this.isEbayTxn()) {\n if (!this.validAction()) {\n success = false;\n error = 'invalid_action';\n } else if (!this.validRedirectUri()) {\n success = false;\n error = 'invalid_redirect_uri';\n }\n }\n\n return {\n success: success,\n error: error\n };\n },\n\n errorUrl: function errorUrl(err, errorDesc) {\n var url = this.redirect_uri;\n\n url += url && url.indexOf('?') < 0 ? '?' : '&';\n url += 'state=' + encodeURIComponent(this.state);\n\n if (err) {\n url += '&error=' + err;\n }\n if (errorDesc) {\n url += '&error_description=' + errorDesc;\n }\n\n return url;\n },\n\n successUrl: function successUrl(code) {\n var url = this.redirect_uri;\n\n url += url && url.indexOf('?') < 0 ? '?' : '&';\n url += 'state=' + encodeURIComponent(this.state);\n\n url += '&code=' + code;\n\n return url;\n },\n\n rmEnabled: function rmEnabled(featureEnabled) {\n return featureEnabled && this.action === ACTION.login;\n },\n\n hideRM: function hideRM() {\n return angular.isDefined(this.hide_rm) ? this.hide_rm.toLowerCase() === 'true' : false;\n }\n});\n\nvar $UserInfoModel = exports.$UserInfoModel = _squid.$Model.extend('$UserInfoModel', {\n api: new _squid.$Api({\n uri: '/api/user/:id/session'\n })\n});\n\nvar $ValidatePhoneModel = exports.$ValidatePhoneModel = _squid.$Model.extend('$ValidatePhoneModel', {\n api: new _squid.$Api({\n uri: '/api/user/:token/session/validatePhone',\n cache: false\n })\n});\n\nvar $AddKYCModel = exports.$AddKYCModel = _squid.$Model.extend('$AddKYCModel', {\n api: new _squid.$Api({\n uri: '/api/user/:token/session/addKYC'\n })\n});\n\nvar $PatchPhoneModel = exports.$PatchPhoneModel = _squid.$Model.extend('$PatchPhoneModel', {\n api: new _squid.$Api({\n uri: '/api/checkout/:token/session/patch',\n cache: false\n })\n});\n\nvar $WaxUserModel = exports.$WaxUserModel = _squid.$Model.extend('$WaxUserModel', {\n api: new _squid.$Api({\n uri: '/api/user/:id/waxUser'\n })\n});\n\nvar $EConsentModel = exports.$EConsentModel = _squid.$Model.extend('$EConsentModel', {\n api: new _squid.$Api({\n uri: '/api/user/eConsent'\n }),\n\n invalidateOnLogout: true // invalidate this model when auth.logout() gets called\n});\n\nvar $UserPhotoModel = exports.$UserPhotoModel = _squid.$Model.extend('$UserPhotoModel', {\n api: new _squid.$Api({\n baseURI: _squid.$config.urls.baseUrl,\n uri: 'api/user/photo'\n }),\n\n invalidateOnLogout: true // invalidate this model when auth.logout() gets called\n});\n\nvar $AuthConsentModel = exports.$AuthConsentModel = _squid.$Model.extend('$AuthConsentModel', {\n api: new _squid.$Api({\n uri: '/api/user/authConsent'\n })\n});\n\nvar $UserProductSubscriptionModel = exports.$UserProductSubscriptionModel = _squid.$Model.extend('$UserProductSubscriptionModel', {\n api: new _squid.$Api({\n uri: '/api/user/productSubscription'\n })\n});\n\nangular.value(\"$CheckoutClientDataModel\", $CheckoutClientDataModel);\nangular.value(\"$CheckoutInputDataModel\", $CheckoutInputDataModel);\nangular.value(\"$UserInfoModel\", $UserInfoModel);\nangular.value(\"$ValidatePhoneModel\", $ValidatePhoneModel);\nangular.value(\"$AddKYCModel\", $AddKYCModel);\nangular.value(\"$PatchPhoneModel\", $PatchPhoneModel);\nangular.value(\"$WaxUserModel\", $WaxUserModel);\nangular.value(\"$EConsentModel\", $EConsentModel);\nangular.value(\"$UserPhotoModel\", $UserPhotoModel);\nangular.value(\"$AuthConsentModel\", $AuthConsentModel);\nangular.value(\"$UserProductSubscriptionModel\", $UserProductSubscriptionModel);\n_squid.$Model;\n\n_squid.$Api;\n\n_squid.$util;\n\n_squid.$config;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-page-components/src/aside-header/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nvar _uiRouter = __webpack_require__(\"../node_modules/angular-ui-router/release/angular-ui-router.min.js\");\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _angular2 = _interopRequireDefault(_angular);\n\nvar _template = __webpack_require__(\"../node_modules/xo-page-components/src/aside-header/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n_angular2['default'].module().directive('xoAsideHeader', function () {\n return {\n template: _template2['default'],\n restrict: 'E',\n scope: {\n hdrtype: '@?',\n heading: '@?',\n subHead: '@?',\n addLink: '@?',\n backUrl: '@?',\n closeUrl: '@?',\n hidex: '@?',\n headerLeftLink: '=?',\n headerLeft: '@?',\n headerLeftIcon: '@?',\n headerRightLink: '=?',\n headerRight: '@?',\n headerRightIcon: '@?',\n subHeaderLeftLink: '@?',\n subHeaderLeft: '@?',\n subHeaderLeftIcon: '@?',\n subHeaderRightLink: '@?',\n subHeaderRight: '@?',\n subHeaderRightIcon: '@?',\n showDualFi: '=?'\n },\n controller: ['$scope', '$element', function ($scope, $element) {\n (0, _angular.$timeout)(function () {\n // Explicitly select `x` button and `<` buttons from manage wallet\n // and add card pages\n // See: https://engineering.paypalcorp.com/jira/browse/PPPLMER-64007\n // See: https://engineering.paypalcorp.com/jira/browse/PPPLMER-64008\n $element.find('a.focusableIcon').focus();\n });\n\n if (_angular2['default'].isUndefined($scope.closeUrl)) {\n $scope.closeUrl = 'checkout.review';\n }\n\n if ($scope.addLink) {\n $scope.subHeaderRight = 'asideHeader.add';\n $scope.subHeaderRightLink = $scope.addLink;\n }\n\n $scope.onClickLink = function (event, target, showDualFi) {\n event.preventDefault();\n if (showDualFi) {\n $scope.showFiOptions = true;\n } else if (_angular2['default'].isFunction(target)) {\n target();\n } else {\n _uiRouter.$state.go(target);\n }\n };\n }]\n };\n});\n\n_uiRouter.$state;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-page-components/src/aside-header/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"\\n\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-page-components/src/ba-message-banner/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _index = __webpack_require__(\"../node_modules/xo-models/src/checkout/index.js\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-page-components/src/ba-message-banner/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\n__webpack_require__(\"../node_modules/xo-page-components/src/ba-message-banner/styles.less\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _squid.$Component.extend('$xoBaMessageBanner', {\n tag: 'xo-ba-message-banner',\n template: _template2['default'],\n props: {\n token: {\n type: 'var',\n required: false\n },\n isMessengerIntegration: {\n type: 'var',\n required: false\n },\n borderPosition: {\n type: 'var',\n required: false\n }\n },\n resolve: {\n models: function models() {\n if (this.props.token) {\n return {\n checkoutAppData: _index.$CheckoutAppDataModel.instance(this.props.token).retrieve(),\n checkoutCart: _index.$CheckoutCartModel.instance(this.props.token).retrieve()\n };\n }\n }\n },\n lifecycle: {\n enter: function enter() {\n this.borderPosition = this.borderPosition || 'bottom';\n },\n populate: function populate() {\n this.merchantMsg = this.models.checkoutCart.getBillingDescription();\n\n // We need other variables only if this.merchantMsg exists\n if (this.merchantMsg) {\n // We need merchantDisplayName to be non empty and if merchant_name or brand_name is undefined\n // then we need the value of merchantDisplayName to be 'the merchant' as it is the middle of sentence\n // in content keys used in template\n this.nonEmptyMerchantDisplayName = this.models.checkoutAppData.getMerchantDisplayName({\n nonEmptyReturnValue: true\n });\n\n var _ref = window.xprops || {},\n _ref$experience = _ref.experience,\n experience = _ref$experience === undefined ? { facebook: false } : _ref$experience;\n\n this.isFacebookIntegration = experience.facebook;\n }\n }\n }\n});\n\n\n_squid.$Component;\n\n_index.$CheckoutAppDataModel;\n\n_index.$CheckoutCartModel;\nmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ \"../node_modules/xo-page-components/src/ba-message-banner/styles.less\":\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ \"../node_modules/xo-page-components/src/ba-message-banner/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
    \\n

    \\n {{ content('billingAgreement.merchantMsgHeader', { merchantName: nonEmptyMerchantDisplayName }) }}\\n

    \\n

    \\n {{ content('messenger.fbHeader') }}\\n

    \\n

    \\n {{ content('messenger.baHeader') }}\\n

    \\n
    \\n \\n {{ merchantMsg }}\\n \\n
    \\n
    \\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-page-components/src/cart/cartWrapper/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _index = __webpack_require__(\"../node_modules/xo-models/src/checkout/index.js\");\n\nvar _index2 = __webpack_require__(\"../node_modules/xo-models/src/subscription/index.js\");\n\nvar _subscriptionTerms = __webpack_require__(\"../node_modules/xo-page-components/src/subscription-terms/index.js\");\n\nvar _subscriptionTerms2 = _interopRequireDefault(_subscriptionTerms);\n\nvar _template = __webpack_require__(\"../node_modules/xo-page-components/src/cart/cartWrapper/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nangular.module().directive('cartWrapper', function () {\n return {\n template: _template2['default'],\n restrict: 'E',\n scope: {\n showAmt: '=?',\n showArrow: '=?',\n token: '=?',\n baToken: '=?'\n },\n controller: ['$scope', function ($scope) {\n _squid.$util.assert($scope.token, 'Expected token');\n\n (0, _squid.$populate)($scope, {\n checkoutCart: _index.$CheckoutCartModel.instance($scope.token)\n }).then(function () {\n if ($scope.checkoutCart.isSubscriptionsV1()) {\n $scope.showAmt = true;\n\n (0, _squid.$populate)($scope, {\n subscriptionsV1Data: _index2.$SubscriptionsV1Model.instance($scope.baToken)\n }).then(function () {\n var planReview = $scope.subscriptionsV1Data.planReview;\n\n var plan = planReview.new_plan || planReview.current_plan;\n\n $scope.subscriptionAmount = _subscriptionTerms2['default'].getNumericValueNonZero(plan, 'initial_payment_info.total_amount.value') / 100;\n $scope.currencyCode = _squid.$util.getProperty(plan, 'initial_payment_info.total_amount.currency_code');\n })['catch'](_angular.noop);\n }\n\n if ($scope.checkoutCart.purchase) {\n $scope.currencyCode = $scope.checkoutCart.purchase.amounts.total.currency_code;\n }\n\n $scope.getAmount = function () {\n if ($scope.checkoutCart.isSubscriptionsV1()) {\n return $scope.subscriptionAmount;\n } else if ($scope.checkoutCart.purchase) {\n return $scope.checkoutCart.purchase.amounts.total.amount;\n }\n };\n });\n }]\n };\n});\n\n_angular.noop;\n\n_squid.$populate;\n\n_squid.$util;\n\n_index.$CheckoutCartModel;\n\n_index2.$SubscriptionsV1Model;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-page-components/src/cart/cartWrapper/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"\\n \\n \\n \\n \\n \\n \\n \\n\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-page-components/src/cart/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function($) {\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _uiRouter = __webpack_require__(\"../node_modules/angular-ui-router/release/angular-ui-router.min.js\");\n\nvar _index = __webpack_require__(\"../node_modules/xo-models/src/checkout/index.js\");\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/accessibility/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-page-components/src/cart/cartWrapper/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-page-components/src/cart/itemDetails/directive.js\");\n\nvar _showCartDecision = __webpack_require__(\"../node_modules/xo-page-components/src/cart/lib/showCartDecision.js\");\n\n__webpack_require__(\"../node_modules/xo-page-components/src/cart/lib/ui.js\");\n\n__webpack_require__(\"../node_modules/xo-page-components/src/cart/subscription/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-page-components/src/cart/subscriptionsV1/directive.js\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-page-components/src/cart/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nangular.module().directive('xoCart', function () {\n return {\n template: _template2['default'],\n restrict: 'E',\n\n scope: {\n showCartTotal: '=?',\n renderCartContainer: '=?',\n overrideShowDetails: '=?',\n detailsExpanded: '=?',\n token: '=?'\n },\n\n controller: ['$scope', function ($scope) {\n\n _squid.$util.assert($scope.token, 'Expected token');\n\n (0, _squid.$populate)($scope, {\n checkoutAppData: _index.$CheckoutAppDataModel.instance($scope.token),\n checkoutCart: _index.$CheckoutCartModel.instance($scope.token),\n payee: _index.$CheckoutPayeeModel.instance($scope.token)\n }).then(function loadCartData() {\n\n var emptyCart = $scope.checkoutCart.get('purchase.items.length', 0) <= 0;\n var cartDesc = $scope.checkoutCart.get('purchase.description');\n\n $scope.note = $scope.checkoutCart.get('note');\n\n // resolve string in descriptions array since the only element may be `null`\n // TODO: fix backend to return a string, to avoid this conditional\n if (cartDesc && angular.isString(cartDesc[0])) {\n cartDesc = cartDesc[0];\n } else {\n cartDesc = '';\n }\n\n $scope.desc = cartDesc;\n $scope.hasItems = !$scope.renderCartContainer && !emptyCart;\n var showCartDetails = !$scope.checkoutAppData.flags.hide_cart_details;\n var notMultiSellerPurchase = !$scope.checkoutCart.isMultiSellerPurchase();\n // Always Render minicart for wps subscription .\n var wpsSubscription = $scope.checkoutAppData.is_wps_subscription_flow();\n var isSubscriptionsV1 = $scope.checkoutCart.isSubscriptionsV1();\n\n $scope.showArrow = wpsSubscription || isSubscriptionsV1 || showCartDetails && (cartDesc || $scope.overrideShowDetails || $scope.hasItems || $scope.note) && notMultiSellerPurchase;\n\n // add details to render to the checkoutCart items\n $scope.checkoutCart.get('purchase.items', []).forEach(function addDetails(item) {\n item.details = {};\n\n if (item.quantity > 1) {\n item.details.price = item.price.amount;\n item.details.quantity = (0, _squid.formatQuantity)(item.quantity);\n }\n\n if (item.description) {\n if (!item.name) {\n item.name = item.description;\n } else {\n item.details.description = item.description;\n }\n }\n\n // move options to detail section\n if (item.item_option_selections) {\n item.details.hasSelections = true;\n item.details.item_option_selections = item.item_option_selections;\n }\n\n if (item.sku) {\n item.details.sku = item.sku;\n }\n\n item.hasDetails = Object.keys(item.details).length > 0;\n item.details.hasMore = item.hasDetails || item.details.hasSelections;\n });\n\n // Mapping of field name as recieved by API to corresponding property key\n $scope.amountHeaders = {\n 'total': 'header.total',\n 'subtotal': 'header.itemTotal',\n 'tax': 'header.tax',\n 'shipping': 'header.shipping',\n 'insurance': 'header.insurance',\n 'handling_fee': 'header.handling',\n 'shipping_discount': 'header.shippingDiscount',\n 'description': 'header.description',\n 'discount': 'header.discount'\n };\n\n // Non-AU merchants are subjected to PXP test when user action is not commit and line item details\n // are not available and purchase amount is not zero.\n var userAction = $scope.userAction = $scope.checkoutAppData.useraction();\n var noLineItemDetails = !(userAction && userAction.toLowerCase() === 'commit') && emptyCart;\n\n var purchase = $scope.checkoutCart.purchase;\n var total = purchase && purchase.amounts && purchase.amounts.total;\n\n $scope.isCartTextTotalOrSubTotal = userAction === 'commit' || $scope.showCartTotal === true ? 'header.total' : 'header.subTotal';\n\n return (0, _showCartDecision.showCartDecision)($scope.checkoutAppData.is_wps_subscription_flow() || $scope.checkoutCart.isSubscriptionsV1(), total, $scope.checkoutAppData.get('merchant.merchant_country'), $scope.payee.get('merchant.id', ''), noLineItemDetails, $scope.checkoutCart.isPurchase()).then(function (result) {\n $scope.showAmt = result.showAmt;\n $scope.showCartSubTotal = result.showCartSubTotal;\n $scope.showAmountInCartIcon = result.showAmountInCartIcon;\n });\n }).then(function handleCartOpenClose() {\n // the cart is only automatically open under the following criteria:\n // 1. the cart has a 'note to buyer' ($scope.note is defined)\n // 2. the cart was not previously automatically opened before\n // 3. the state has transitioned to checkout.review or checkout.guest\n // OR `detailsExpanded` is passed as true to the component\n function decideShowCart(currentState) {\n var falsePositive = /^checkout\\.(selectFi)$/.test(currentState) && /^checkout\\.(review|guest)$/.test($scope.openedAlready);\n var notOpened = !$scope.openedAlready && /^checkout\\.(review|guest)$/.test(currentState);\n var canShow = notOpened || falsePositive;\n\n if ($scope.note && canShow || $scope.detailsExpanded) {\n $scope.openedAlready = currentState; // may have been undefined before\n return true;\n }\n\n return false;\n }\n\n $scope.showCartItem = function (breakdown) {\n return breakdown.field_name !== 'total' && Number(breakdown.amount) !== 0;\n };\n\n $scope.showCart = decideShowCart(_uiRouter.$state.current.name);\n\n // TODO: Must we really couple this so tightly with the state transition names?\n var openCartListener = _angular.$rootScope.$on('$stateChangeSuccess', function (event, toState) {\n $scope.showCart = decideShowCart(toState.name);\n });\n\n $scope.$on('$destroy', openCartListener); // see http://stackoverflow.com/a/27016855 on why $destroy\n\n $scope.toggleCart = function ($event) {\n $scope.showCart = !$scope.showCart;\n $event.preventDefault();\n };\n\n $scope.closeCart = function ($event) {\n $scope.showCart = false;\n // for accessible autofocus on cart toggle link button\n $scope.$broadcast('cart-closed');\n if ($event) {\n $event.preventDefault();\n }\n };\n\n $scope.$on('clickBody', function ($event, target) {\n if ($scope.showCart && $(target).parents('.cartContainer').length === 0) {\n $scope.closeCart($event);\n $scope.$apply();\n }\n });\n\n // this listener / broadcast allows accessibility components to scan and focus inside the cart\n // when the cart is displayed\n $scope.$watch('showCart', function (showCart) {\n if (showCart) {\n $scope.$broadcast('cart-updated');\n }\n });\n }).then(function handleEllipsisIssues() {\n // NOTE: the scattered broadcasts of \"cart-updated\" events are mostly\n // to allow the accessibility directives modal-box and focus-when to\n // know when to recalculate keyboard behavior / focus\n $scope.toolongTracker = {};\n\n // this function is invoked by the onEllipsis directive that tracks\n // if the item name won't fit within the restricted space.\n $scope.toolong = function (idx) {\n $scope.toolongTracker[idx] = true;\n $scope.$broadcast('cart-updated');\n };\n\n $scope.showMore = function (idx, type) {\n // there are 2 types of more, \"floating\" when the name is too long\n // and \"inline\" when the name can fit, but there are additional details.\n //\n // Show a more if the item\n // 1. has an expanded state\n // 2. is not already expanded\n // 3. if it is appropriate to show that type.\n var itemIsTooLong = $scope.toolongTracker[idx];\n var isAppropriateType = itemIsTooLong && type === 'floating' || !itemIsTooLong && type === 'inline';\n\n return $scope.hasExpandedState(idx) && !$scope.isExpanded(idx) && isAppropriateType;\n };\n\n $scope.expandedIndex = -1; // initially, none of the line items are expanded\n $scope.isExpanded = function isExpanded(idx) {\n return idx === $scope.expandedIndex;\n };\n $scope.hasExpandedState = function hasExpandedState(idx) {\n // A line item is exandable if\n // 1. the name cannot fit in one line ($scope.toolongTracker) and/or\n // 2. there are details (attached to purchase.items in the cart)\n // 3. there is item number (sku) in the item\n var item = $scope.checkoutCart.get('purchase.items', [])[idx] || {};\n var nameTooLong = $scope.toolongTracker[idx];\n\n return nameTooLong || item.hasDetails || item.sku;\n };\n $scope.expand = function expand(idx) {\n $scope.expandedIndex = idx;\n $scope.$broadcast('cart-updated');\n };\n $scope.collapse = function collapse() {\n $scope.expandedIndex = -1;\n $scope.$broadcast('cart-updated');\n };\n\n // Set default focus on cart first element \"more\" link\n $scope.focusElementCssSelector = 'a.more';\n\n // Change the focus element as user clicks on elements\n $scope.$watch('expandedIndex', function (expandedIndex) {\n if (expandedIndex === -1) {\n $scope.focusElementCssSelector = 'a.more';\n } else {\n // If any \"more\" link or item is clicked in cart, then\n // set focus to itemNameContainer\n $scope.focusElementCssSelector = '.itemNameContainer.expanded';\n }\n });\n\n $scope.$emit('dataLoaded');\n });\n }]\n };\n});\n\n_angular.$rootScope;\n\n_squid.$populate;\n\n_squid.$util;\n\n_squid.formatQuantity;\n\n_uiRouter.$state;\n\n_index.$CheckoutAppDataModel;\n\n_index.$CheckoutCartModel;\n\n_index.$CheckoutPayeeModel;\n\n_showCartDecision.showCartDecision;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/jquery/dist/jquery.min.js\")))\n\n/***/ }),\n\n/***/ \"../node_modules/xo-page-components/src/cart/itemDetails/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/accessibility/directive.js\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-page-components/src/cart/itemDetails/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nangular.module().directive('itemDetails', function () {\n return {\n template: _template2['default'],\n restrict: 'E',\n scope: {\n details: '=?',\n sku: '=?',\n currencyCode: '=?',\n onClickLess: '&?'\n },\n controller: function controller() {/* dumb component */}\n };\n});\n\n/***/ }),\n\n/***/ \"../node_modules/xo-page-components/src/cart/itemDetails/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"\\n
      \\n
    • \\n \\n {{ content('header.itemNumber') }} {{ details.sku }}\\n \\n
    • \\n
    • {{ content('header.price') }}\\n \\n
    • \\n
    • {{ content('header.quantity') }} {{ details.quantity }}
    • \\n
    • \\n
      \\n \\n {{ selection.name }}:\\n {{ selection.select }}\\n \\n
      \\n\\n
      \\n {{ content('header.description') }} {{ details.description }}\\n
      \\n
    • \\n
    \\n{{ content('header.less') }}\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-page-components/src/cart/lib/decode_entities.js\":\n/***/ (function(module, exports) {\n\n\n\n/**\n * Takes a string with HTML entities within and renders it as the unicode\n * characters they represent. This is done by leveraging the browser to\n * perform this transformation internally. InnerText is chosen as the output\n * so as to kill any HTML itself that was supplied.\n *\n * @param {Element} element any HTML element supporting innerText and\n * innerHTML. Preferably one not connected to the DOM or visible in any way.\n * @param {String} input a String containing HTML entities that need to be\n * decoded and HTML stripped.\n * @return {String} the same string with HTML tags removed and entities\n * decoded.\n */\n\nexports.__esModule = true;\nexports.decodeEntities = decodeEntities;\nexports['default'] = decodeEntitiesAngularFilter;\nfunction decodeEntities(element, input) {\n // Escape opening tags on vulnerable tags\n input = input.replace(/<(\\/?)(html|script|body|meta|style|img|iframe|svg|link)/ig, '<$1$2');\n element.innerHTML = input;\n return element.textContent || element.innerText;\n}\n\nfunction decodeEntitiesAngularFilter() {\n // A constant key that can be used to find the element\n var ENTITY_ELEM = '__xpc_entitydecoder__';\n\n // Create the element if this is the first time this is called\n if (!window[ENTITY_ELEM]) {\n window[ENTITY_ELEM] = document.createElement('p');\n }\n\n // Retrieve the converter element rather than create one every\n // time. Angular may call this filter many times repeatedly and\n // we should make a small effort to optimize the process\n var converter = window[ENTITY_ELEM];\n\n /**\n * Takes a string with HTML entities within and renders it as the unicode\n * characters they represent. This is done by leveraging the browser to\n * perform this transformation internally. InnerText is chosen as the output\n * so as to kill any HTML itself that was supplied.\n *\n * @param {String} input a String containing HTML entities that need to be\n * decoded and HTML stripped.\n * @return {String} the same string with HTML tags removed and entities\n * decoded.\n */\n return decodeEntities.bind(null, converter);\n}\n\n/***/ }),\n\n/***/ \"../node_modules/xo-page-components/src/cart/lib/pxp.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(module, __dirname, __filename) {\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\n(function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n})(window.angular);\n\nangular.module().factory('$pxpCartAmt', function () {\n return function (merchantCountry, merchantId, noLineItemDetails, isPurchase) {\n if (merchantCountry !== 'AU' && noLineItemDetails && isPurchase) {\n var pageName = 'xo_hermes_no_line_item_details';\n var showAmtBlacklistTreatment = 'xo_hermes_no_line_items_show_amount_blacklist_test_group';\n var showAmtTreatment = 'xo_hermes_no_line_items_show_amount_test_group';\n\n return _angular.$q.all([(0, _squid.$pxp)(pageName, {\n 'ctx.merchantID': merchantId,\n uid: merchantId\n }, showAmtBlacklistTreatment, false, true), (0, _squid.$pxp)(pageName, {\n 'ctx.merchantID': merchantId,\n uid: merchantId\n }, showAmtTreatment, false, true)]).then(function (results) {\n var showAmtBlacklist = results[0];\n var showAmt = results[1];\n\n if (showAmtBlacklist && showAmtBlacklist.treatment_name === showAmtBlacklistTreatment) {\n return true;\n }\n\n if (showAmt && showAmt.treatment_name === showAmtTreatment) {\n return true;\n }\n\n return false; // default to hide\n });\n }\n\n return _angular.$q.when(!noLineItemDetails && isPurchase);\n };\n});\n\n_squid.$pxp;\n\n_angular.$q;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/webpack/buildin/module.js\")(module), \"../node_modules/xo-page-components/src/cart/lib\", \"../node_modules/xo-page-components/src/cart/lib/pxp.js\"))\n\n/***/ }),\n\n/***/ \"../node_modules/xo-page-components/src/cart/lib/showCartDecision.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.showCartDecision = showCartDecision;\n\nvar _pxp = __webpack_require__(\"../node_modules/xo-page-components/src/cart/lib/pxp.js\");\n\nfunction showCartDecision(isSubscriptionFlow, total, merchantCountry, merchantId, noLineItemDetails, isPurchase) {\n return (0, _pxp.$pxpCartAmt)(merchantCountry, merchantId, noLineItemDetails, isPurchase).then(function (showAmount) {\n // Show cart subtotal if there is a total amount\n // Do not show subtotal for wps subscription flow.\n // Show amount in cart icon only if showAmount is truthy and total amount is not zero\n return {\n showAmt: showAmount,\n showCartSubTotal: showAmount && total && !isSubscriptionFlow,\n showAmountInCartIcon: showAmount && +total.amount !== 0\n };\n });\n}\n\n_pxp.$pxpCartAmt;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-page-components/src/cart/lib/ui.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nvar _jquery = __webpack_require__(\"../node_modules/jquery/dist/jquery.min.js\");\n\nvar _jquery2 = _interopRequireDefault(_jquery);\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _decode_entities = __webpack_require__(\"../node_modules/xo-page-components/src/cart/lib/decode_entities.js\");\n\nvar _decode_entities2 = _interopRequireDefault(_decode_entities);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n// Register entity decoding filter in Angular\n_angular.$filterProvider.register('decodeEntities', _decode_entities2['default']);\n\n// if an element has an ellipsis text-overflow in effect (it must already have\n// the appropriate css styling) then invoke the function that is passed to the directive\nfunction getVisibleWidth(elem) {\n var elemRect = elem.getBoundingClientRect();\n\n // cross browser, returns decimals for ultra-precision\n return elemRect.right - elemRect.left;\n}\n\nfunction getNaturalWidth(elem) {\n var old = {\n overflow: elem.style.overflow,\n width: elem.style.width,\n display: elem.style.display\n };\n var result = void 0;\n\n elem.style.overflow = 'visible';\n elem.style.width = 'auto';\n elem.style.display = 'inline-block';\n result = getVisibleWidth(elem);\n elem.style.overflow = old.overflow;\n elem.style.width = old.width;\n elem.style.display = old.display;\n\n return result;\n}\n\n// pre-determine approach to reading styles\nvar getStyle = _angular.$window.getComputedStyle ? function (elem, style) {\n return _angular.$window.getComputedStyle(elem)[style];\n} // modern browsers\n: function (elem, style) {\n return elem.currentStyle[style];\n}; // IE\n\nfunction hasEllipsis(elem) {\n var overflowHidden = getStyle(elem, 'overflow') === 'hidden';\n var textOverflowEllipsis = getStyle(elem, 'text-overflow') === 'ellipsis';\n var whiteSpaceNowrap = getStyle(elem, 'white-space') === 'nowrap';\n\n if (overflowHidden && textOverflowEllipsis && whiteSpaceNowrap) {\n return getVisibleWidth(elem) < getNaturalWidth(elem);\n }\n\n return false;\n}\n\n(0, _squid.$registerDirective)('onEllipsis', function () {\n return {\n restrict: 'A',\n link: function link(scope, element, attrs) {\n function invokeSubscriber() {\n (0, _angular.$parse)(attrs.onEllipsis)(scope);\n scope.$apply();\n }\n\n (0, _angular.$timeout)(function () {\n if (hasEllipsis(element[0])) {\n invokeSubscriber();\n }\n });\n }\n };\n});\n\n// Makes an element examine the outerHeight of its siblings\n// and the max-height of its parent, then sets a max-height for itself\n// so that everything fits within the limits of the parent. Note that it assumes\n// no other sibling also has dynamic-maxheight.\n(0, _squid.$registerDirective)('dynamicMaxheight', function () {\n return {\n restrict: 'A',\n link: function link(scope, element, attrs) {\n function resizeContainer() {\n var $element = (0, _jquery2['default'])(element);\n var parentHeight = parseFloat(getStyle($element.parent()[0], 'max-height'));\n var siblings = $element.siblings().filter(function () {\n var pos = getStyle((0, _jquery2['default'])(this)[0], 'position');\n\n return pos !== 'fixed' && pos !== 'absolute';\n }).map(function getOuterHeights() {\n return (0, _jquery2['default'])(this).outerHeight();\n });\n var siblingsHeight = 0;\n var i = void 0;\n\n for (i = 0; i < siblings.length; i += 1) {\n siblingsHeight += siblings[i];\n }\n\n var spaceAvailable = parentHeight - siblingsHeight;\n\n if (!isNaN(spaceAvailable)) {\n $element.css('max-height', spaceAvailable + 'px');\n }\n }\n\n // if an expression is provided, it is used as an event to listen for and recalculate the height\n if (attrs.dynamicMaxheight) {\n scope.$on((0, _angular.$parse)(attrs.dynamicMaxheight)(scope), resizeContainer);\n }\n\n (0, _angular.$timeout)(resizeContainer);\n }\n };\n});\n\n_squid.$registerDirective;\n\n_angular.$parse;\n\n_angular.$timeout;\n\n_angular.$filterProvider;\n\n_angular.$window;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-page-components/src/cart/subscription/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _index = __webpack_require__(\"../node_modules/xo-models/src/subscription/index.js\");\n\nvar _subscriptionTerms = __webpack_require__(\"../node_modules/xo-page-components/src/subscription-terms/index.js\");\n\nvar _subscriptionTerms2 = _interopRequireDefault(_subscriptionTerms);\n\nvar _template = __webpack_require__(\"../node_modules/xo-page-components/src/cart/subscription/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\n__webpack_require__(\"../node_modules/xo-page-components/src/cart/subscription/styles.less\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _squid.$Component.extend('$subscription', {\n tag: 'subscription',\n template: _template2['default'],\n props: {\n baToken: {\n type: 'var',\n optional: false\n },\n merchantId: {\n type: 'var',\n optional: false\n }\n },\n resolve: {\n models: function models() {\n return {\n subscriptionData: _index.$SubscriptionModel.instance(this.baToken).retrieve({\n params: {\n merchant_id: this.merchantId\n }\n })['catch'](_angular.noop)\n };\n }\n },\n lifecycle: {\n populate: function populate() {\n var _this = this;\n\n this.itemName = _subscriptionTerms2['default'].getItemName(this.models.subscriptionData);\n this.itemOptions = _subscriptionTerms2['default'].getItemOptions(this.models.subscriptionData);\n\n this.getFirstAmount = function () {\n return _subscriptionTerms2['default'].getFormattedFirstAmount(_this.models.subscriptionData);\n };\n\n this.getTermsText = function () {\n return _subscriptionTerms2['default'].getTermsText(_this.models.subscriptionData);\n };\n }\n }\n});\n\n\n_angular.noop;\n\n_squid.$Component;\n\n_index.$SubscriptionModel;\nmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ \"../node_modules/xo-page-components/src/cart/subscription/styles.less\":\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ \"../node_modules/xo-page-components/src/cart/subscription/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
    \\n
    \\n
    \\n\\n

    {{content('wpsSubscription.message.subscriptionDetails')}}:

    \\n
    \\n\\n {{itemName}}\\n
    \\n
    {{option.name}}:\\n {{option.selection}}\\n
    \\n
    \\n
    \\n
    \\n\\n
    \\n

    {{content('wpsSubscription.message.terms')}}:\\n

    \\n
    \\n {{term}}\\n
    \\n
    \\n
    \\n

    {{content('wpsSubscription.message.firstAmount')}}

    \\n
    \\n
    \\n
    \\n
    \\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-page-components/src/cart/subscriptionsV1/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _index = __webpack_require__(\"../node_modules/xo-models/src/subscription/index.js\");\n\nvar _subscriptionTerms = __webpack_require__(\"../node_modules/xo-page-components/src/subscription-terms/index.js\");\n\nvar _subscriptionTerms2 = _interopRequireDefault(_subscriptionTerms);\n\nvar _template = __webpack_require__(\"../node_modules/xo-page-components/src/cart/subscriptionsV1/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\n__webpack_require__(\"../node_modules/xo-page-components/src/cart/subscriptionsV1/styles.less\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _squid.$Component.extend('$SubscriptionsV1', {\n tag: 'subscriptions-v1',\n template: _template2['default'],\n props: {\n baToken: {\n type: 'var',\n optional: false\n },\n merchantId: {\n type: 'var',\n optional: false\n }\n },\n resolve: {\n models: function models() {\n return {\n subscriptionData: _index.$SubscriptionsV1Model.instance(this.baToken).retrieve({\n params: {\n merchant_id: this.merchantId\n }\n })['catch'](_angular.noop)\n };\n }\n },\n lifecycle: {\n populate: function populate() {\n var _models$subscriptionD = this.models.subscriptionData,\n planReview = _models$subscriptionD.planReview,\n billingAgreementCart = _models$subscriptionD.billingAgreementCart;\n\n var plan = planReview.new_plan || planReview.current_plan;\n\n var itemAmount = _subscriptionTerms2['default'].getNumericValueNonZero(plan, 'initial_payment_info.first_payment.value');\n var currencyCode = _squid.$util.getProperty(plan, 'initial_payment_info.total_amount.currency_code');\n\n this.termsText = _subscriptionTerms2['default'].getTermsText({ plan: plan });\n this.startDate = billingAgreementCart.start_time_formatted;\n this.autoRenewIndicator = billingAgreementCart.auto_renewal === 'true';\n\n this.itemName = _squid.$util.getProperty(plan, 'plan.name');\n this.taxPercentage = _subscriptionTerms2['default'].getNumericValueNonZero(plan, 'initial_payment_info.taxPercentage');\n this.itemPrice = _subscriptionTerms2['default'].getFormattedAmount(itemAmount, currencyCode);\n\n this.quantity = !isNaN(billingAgreementCart.quantity) && billingAgreementCart.quantity;\n this.shipping = _subscriptionTerms2['default'].getNumericValueNonZero(plan, 'initial_payment_info.shipping_amount.value');\n this.shippingAmount = _subscriptionTerms2['default'].getFormattedAmount(this.shipping, currencyCode);\n this.setupFee = _subscriptionTerms2['default'].getNumericValueNonZero(plan, 'initial_payment_info.setup_fee.value');\n this.setupFeeAmount = _subscriptionTerms2['default'].getFormattedAmount(this.setupFee, currencyCode);\n\n var totalAmount = _subscriptionTerms2['default'].getNumericValueNonZero(plan, 'initial_payment_info.total_amount.value');\n this.totalAmount = _subscriptionTerms2['default'].getFormattedAmount(totalAmount, currencyCode);\n }\n }\n});\n\n\n_angular.noop;\n\n_squid.$Component;\n\n_squid.$util;\n\n_index.$SubscriptionsV1Model;\nmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ \"../node_modules/xo-page-components/src/cart/subscriptionsV1/styles.less\":\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ \"../node_modules/xo-page-components/src/cart/subscriptionsV1/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
    \\n
    \\n
    \\n\\n

    {{content('wpsSubscription.message.subscriptionDetails')}}:

    \\n
    \\n\\n
    \\n
    \\n {{terms}}\\n
    \\n
    {{content('subscriptions.message.renewsUntilCancelled')}}
    \\n
    {{content('subscriptions.message.startDate')}} {{ startDate }}
    \\n
    \\n
    \\n
    \\n\\n
    \\n
    \\n
    {{ itemName }}
    \\n
    {{ itemPrice }}
    \\n
    \\n
    \\n
    {{ content('header.quantity') }} {{ quantity }}
    \\n
    \\n
    \\n
    \\n
    {{ content('header.shipping') }}
    \\n
    {{ shippingAmount }}
    \\n
    \\n\\n
    \\n
    {{ content('subscriptions.message.setupFee') }}
    \\n
    {{ setupFeeAmount }}
    \\n
    \\n\\n
    \\n
    {{ content('subscriptions.message.includesTax', {tax: taxPercentage}) }}
    \\n
    \\n
    \\n
    \\n
    \\n

    {{content('header.total')}}

    \\n
    {{ totalAmount }}
    \\n
    \\n
    \\n
    \\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-page-components/src/cart/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
    \\n
    \\n\\n \\n \\n \\n\\n \\n\\n
    \\n
    \\n\\n \\n\\n
    \\n

    \\n {{ content('header.noteFromMerchant', {merchant: checkoutAppData.merchant.brand_name}) }}\\n {{ checkoutAppData.merchant.brand_name }}\\n

    \\n

    \\n {{ note | decodeEntities }}\\n {{ desc | decodeEntities }}\\n

    \\n
    \\n\\n \\n \\n\\n \\n \\n\\n
    \\n \\n\\n
      \\n
    • \\n
    • \\n {{ content(amountHeaders[breakdown.field_name]) }}\\n \\n \\n \\n
    • \\n \\n
    \\n
    \\n\\n
    \\n {{ content(isCartTextTotalOrSubTotal) }}\\n \\n \\n \\n
    \\n\\n
    \\n
    \\n
    \\n
    \\n
    \\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-page-components/src/constants/fbMessenger.js\":\n/***/ (function(module, exports) {\n\n\n\n/* Constants for FB messenger related components */\nmodule.exports = {\n OVERRIDE_FBPP_REPEAT_FLAG: 'override_fbpp_repeat',\n OVERRIDE_FBPP_MOBILE_FLAG: 'override_fbpp_mobile',\n FB_BA_SHOWN_FLAG: 'is_xo_wps_fb_messenger_plugin_match_withba_shown',\n MOBILE_CHANNEL: 'MOBILE',\n WEB_CHANNEL: 'WEB',\n FB_USER_API_MOBILE_URL: 'https://m.facebook.com/paypal/user_identifier',\n FB_USER_API_URL: 'https://www.facebook.com/paypal/user_identifier',\n FB_PROD_APP_ID: '1084613224964631',\n FB_PROD_PAGE_ID: {\n US: '55982004572',\n AU: '171522459698178',\n CA: '164660263560926',\n GB: '167465479930420',\n HK: '575224445931086',\n JP: '252040838174046',\n NZ: '171522459698178',\n PH: '1895483750701842',\n SG: '1405303076421245',\n IL: '369238992488',\n CZ: '199396843578121',\n DE: '109838022384872',\n AT: '109838022384872',\n CH: '109838022384872',\n FR: '124143236317',\n IT: '198366693576785',\n BR: '170288122998781',\n ES: '244240615638886',\n MX: '42433532610',\n ZA: '388473619362',\n NL: '105370782861413',\n DK: '133211860117553',\n SE: '121404111292725',\n RU: '275216545856555',\n PL: '244706038980513',\n NO: '304581546592510',\n GR: '704200349634422',\n IN: '347199669139259',\n AE: '402374783229274',\n BH: '402374783229274',\n DZ: '402374783229274',\n EG: '402374783229274',\n JO: '402374783229274',\n KW: '402374783229274',\n MA: '402374783229274',\n OM: '402374783229274',\n QA: '402374783229274',\n SA: '402374783229274',\n TN: '402374783229274',\n YE: '402374783229274',\n AR: '474276366001351',\n CL: '474276366001351',\n CO: '474276366001351',\n CR: '474276366001351',\n DO: '474276366001351',\n EC: '474276366001351',\n PE: '474276366001351',\n UY: '474276366001351',\n VE: '474276366001351'\n },\n FB_TEST_PAGE_ID: '676472402496128',\n PXP_MESSENGER_EXPT: 'xo_wps_fb_messenger_plugin',\n PXP_SHOW_MESSENGER_PLUGIN_TREATMENT: 'xo_wps_fb_messenger_plugin_1_treatment',\n PXP_MESSENGER_IN: 'xo_wps_fb_messenger_plugin_IN',\n PXP_MESSENGER_PLUGIN_TREATMENT_IN: 'xo_wps_fb_messenger_plugin_IN_treatment'\n};\n\n/***/ }),\n\n/***/ \"../node_modules/xo-page-components/src/done/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nvar _jquery = __webpack_require__(\"../node_modules/jquery/dist/jquery.min.js\");\n\nvar _jquery2 = _interopRequireDefault(_jquery);\n\nvar _uiRouter = __webpack_require__(\"../node_modules/angular-ui-router/release/angular-ui-router.min.js\");\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\nvar _index = __webpack_require__(\"../node_modules/xo-device-info/dist/index.js\");\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _auth = __webpack_require__(\"../node_modules/xo-models/src/auth/index.js\");\n\nvar _index2 = __webpack_require__(\"../node_modules/xo-models/src/checkout/index.js\");\n\nvar _profilemanagement = __webpack_require__(\"../node_modules/xo-models/src/profilemanagement/index.js\");\n\nvar _thirdPartyInfo = __webpack_require__(\"../node_modules/xo-third-party-components/src/thirdParty-info/index.js\");\n\nvar _fbMessenger = __webpack_require__(\"../node_modules/xo-page-components/src/constants/fbMessenger.js\");\n\nvar _fbMessenger2 = _interopRequireDefault(_fbMessenger);\n\nvar _index3 = __webpack_require__(\"../node_modules/xo-page-components/src/utils/index.js\");\n\nvar _index4 = _interopRequireDefault(_index3);\n\nvar _template = __webpack_require__(\"../node_modules/xo-page-components/src/done/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\n__webpack_require__(\"../node_modules/xo-login-components/src/dolphin/directive.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar AUTORETURN_TIMEOUT = 5000;\n// If the user returns into checkout, it causes errors since the checkout\n// session is not what we'd expect it to look like. Rather than proofing our\n// code against this, we will attempt to prevent navigation instead.\n// Any valid routes should be added here\nvar WHITELISTED_ROUTES = ['checkout.end'];\n\n(0, _angular.$registerDirective)('xo-done', function () {\n return {\n template: _template2['default'],\n controller: ['$scope', function ($scope) {\n $scope.isGuestSignup = _angular.$rootScope.mode && _angular.$rootScope.mode === 'signup';\n $scope.locale = _squid.$locale;\n\n function addPageMessage(code) {\n var CONTENT_KEY_MAPPING = {\n NO_UPGRADE: 'accountUpgradeFailed'\n };\n\n if (code && CONTENT_KEY_MAPPING[code]) {\n $scope.errorMessage = {\n msgs: [_squid.$locale.content.get('done.' + CONTENT_KEY_MAPPING[code])],\n type: 'warning'\n };\n }\n }\n\n function isThirdPartyFlow() {\n return _thirdPartyInfo.thirdPartyExperience.isThirdPartyExperience(_angular.$rootScope.token);\n }\n\n (0, _squid.$populate)($scope, {\n checkoutAppData: _index2.$CheckoutAppDataModel.instance($scope.token),\n checkoutSession: _index2.$CheckoutSessionModel.instance($scope.token),\n checkoutCart: _index2.$CheckoutCartModel.instance($scope.token),\n payee: _index2.$CheckoutPayeeModel.instance($scope.token),\n auth: _auth.$AuthModel.instance($scope.token)\n }).then(function () {\n\n // populate fpti payload about facebook skip login\n if ($scope.auth.isFBSkipLogin()) {\n _logger.$logger.info('checkout_fpti', {\n 'design': 'facebook_onetouch'\n });\n }\n\n // We need merchant display name (which can be undefined) to display in\n // merchant details section of the page\n $scope.merchantDisplayName = $scope.checkoutAppData.getMerchantDisplayName();\n // We need non empty value for merchantDisplayName in #merchant-text tag\n $scope.nonEmptyMerchantDisplayName = $scope.checkoutAppData.getMerchantDisplayName({\n nonEmptyReturnValue: true\n });\n\n return (0, _squid.$populate)($scope, {\n merchantPreferenceModel: _profilemanagement.$MerchantPreferenceModel.instance($scope.payee.merchant.id)\n }).then(function () {\n // Show auto return page when feature is enabled by merchant and txn\n $scope.isAutoReturn = $scope.merchantPreferenceModel.autoReturn();\n _logger.$logger.info('wps_autoreturn_' + ($scope.isAutoReturn ? 'enabled' : 'disabled'), {\n return_url: $scope.checkoutAppData.urls.return_url || 'not_available',\n autoreturn_url: $scope.merchantPreferenceModel.returnUrl() || 'not_available'\n });\n\n // Set content key based on device\n $scope.autoReturnContentKey = _index.$DeviceInfo.isMobile() || _index.$DeviceInfo.isTablet() ? 'done.autoReturnStatement' : 'done.autoReturnStatementWeb';\n $scope.guestSignupKey = $scope.isGuestSignup ? 'done.paymentGuest' : 'done.payment';\n\n if (_uiRouter.$stateParams.code) {\n addPageMessage(_uiRouter.$stateParams.code);\n }\n var amount = $scope.checkoutSession.transactionDetails.amount.total;\n var code = $scope.checkoutSession.transactionDetails.amount.currency;\n\n $scope.formattedAmount = (0, _squid.formatCurrency)(amount, code);\n var itemList = $scope.checkoutSession.itemsList;\n\n itemList.forEach(function (item) {\n item.quantity = (0, _squid.formatQuantity)(item.quantity);\n });\n });\n }).then(function () {\n var pxpContext = _index4['default'].getMessengerPXPContext();\n\n _logger.$logger.info('pxp_xo_wps_fb_messenger_plugin ', pxpContext);\n\n // Skipping FB messenger experience if Venmo flow detected as this is only for PayPal users\n // Also not loading if merchant auto return is enabled\n\n if (!$scope.isAutoReturn && !isThirdPartyFlow()) {\n if (_index4['default'].isDolphinEligibleOnWpsDone(_uiRouter.$state.current && _uiRouter.$state.current.name)) {\n _logger.$logger.info('ul_dolphin', {\n 'from': 'dolphin_elg_chk',\n 'to': 'process_dolphin_elg_chk',\n 'eligibility_reason': 'wps_done_flow',\n 'context_id': _angular.$rootScope.token\n });\n $scope.isDolphinEligibleOnWpsDone = true;\n } else {\n _squid.$promise.all([(0, _squid.$pxp)(_fbMessenger2['default'].PXP_MESSENGER_EXPT, pxpContext, _fbMessenger2['default'].PXP_SHOW_MESSENGER_PLUGIN_TREATMENT, false, true), (0, _squid.$pxp)(_fbMessenger2['default'].PXP_MESSENGER_IN, pxpContext, _fbMessenger2['default'].PXP_MESSENGER_PLUGIN_TREATMENT_IN, false, true)]).then(function () {\n var results = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var country = _squid.$locale.country;\n var _$scope$checkoutSessi = $scope.checkoutSession.payer;\n _$scope$checkoutSessi = _$scope$checkoutSessi === undefined ? {} : _$scope$checkoutSessi;\n var payerId = _$scope$checkoutSessi.id;\n\n\n _logger.$logger.info('Messenger_done_page_PXP_RESULT', results);\n\n var _results$ = results[0];\n _results$ = _results$ === undefined ? {} : _results$;\n var treatment_name = _results$.treatment_name,\n _results$2 = results[1];\n _results$2 = _results$2 === undefined ? {} : _results$2;\n var in_treatment_name = _results$2.treatment_name;\n\n\n if (treatment_name === _fbMessenger2['default'].PXP_SHOW_MESSENGER_PLUGIN_TREATMENT || in_treatment_name === _fbMessenger2['default'].PXP_MESSENGER_PLUGIN_TREATMENT_IN) {\n _logger.$logger.info('messenger_done_page_test_traffic');\n _logger.$logger.info('checkout_fpti', {\n buyer_country: country,\n buyer_id: payerId,\n design: 'fbmessenger',\n from: 'XO_SUCCESS',\n eligibility_reason: 'messenger_treatment'\n });\n $scope.pxpMessengerIntegrationEnabled = true;\n } else {\n _logger.$logger.info('messenger_done_page_control_traffic');\n _logger.$logger.info('checkout_fpti', {\n buyer_country: country,\n buyer_id: payerId,\n design: 'fbmessenger',\n from: 'XO_SUCCESS',\n eligibility_reason: 'messenger_control'\n });\n $scope.pxpMessengerIntegrationEnabled = false;\n }\n });\n }\n }\n\n (0, _jquery2['default'])('#outerWrapper').addClass('xo-done');\n\n $scope.expansion = false;\n $scope.toggle = function () {\n if ($scope.expansion === false) {\n $scope.maxHeight = document.getElementsByClassName('details-expand')[0].scrollHeight + 'px';\n $scope.expansion = true;\n } else {\n $scope.expansion = false;\n }\n return $scope.expansion;\n };\n\n $scope.autoReturnStatementClick = function (event) {\n event.preventDefault();\n if (event.target && event.target.nodeName === 'A') {\n _logger.$logger.info('autoreturn_statement_clicked');\n $scope.returnToMerchant();\n }\n };\n\n if ($scope.isAutoReturn) {\n _logger.$logger.info('autoreturn_to_merchant');\n (0, _angular.$timeout)($scope.returnToMerchant, AUTORETURN_TIMEOUT);\n }\n });\n\n $scope.$on('localeChange', function () {\n if (_uiRouter.$stateParams.code) {\n addPageMessage(_uiRouter.$stateParams.code);\n }\n });\n\n $scope.returnToMerchant = function () {\n _logger.$logger.info('return_to_merchant_clicked');\n return _uiRouter.$state.go('checkout.end');\n };\n\n var onExitListeners = function onExitListeners() {\n var removeClassListener = _angular.$rootScope.$on('$stateChangeSuccess', function (event, newState, newParams, oldState) {\n if (oldState.name === 'checkout.done') {\n (0, _jquery2['default'])('#outerWrapper').removeClass('xo-done');\n }\n });\n var preventBackListener = _angular.$rootScope.$on('$stateChangeStart', function (event, newState) {\n if (!~WHITELISTED_ROUTES.indexOf(newState.name)) {\n _logger.$logger.info('done_page_prevent_routing', {\n to: newState.name\n });\n event.preventDefault();\n preventBackListener();\n\n return _uiRouter.$state.go('checkout.genericError', {\n code: 'PAYMENT_ALREADY_DONE'\n });\n }\n });\n\n return function () {\n removeClassListener();\n preventBackListener();\n };\n };\n\n $scope.$on('$destroy', onExitListeners());\n }]\n };\n});\n\n_uiRouter.$state;\n\n_uiRouter.$stateParams;\n\n_logger.$logger;\n\n_index.$DeviceInfo;\n\n_angular.$registerDirective;\n\n_angular.$rootScope;\n\n_angular.$timeout;\n\n_squid.$locale;\n\n_squid.$populate;\n\n_squid.$promise;\n\n_squid.$pxp;\n\n_squid.formatCurrency;\n\n_squid.formatQuantity;\n\n_auth.$AuthModel;\n\n_index2.$CheckoutAppDataModel;\n\n_index2.$CheckoutCartModel;\n\n_index2.$CheckoutPayeeModel;\n\n_index2.$CheckoutSessionModel;\n\n_profilemanagement.$MerchantPreferenceModel;\n\n_thirdPartyInfo.thirdPartyExperience;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-page-components/src/done/route.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.$DoneRoute = undefined;\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\n__webpack_require__(\"../node_modules/xo-page-components/src/done/directive.js\");\n\nvar $DoneRoute = exports.$DoneRoute = _squid.$ComponentRoute.extend('DoneRoute', {\n name: 'done',\n directive: 'xo-done',\n titleContent: 'done.paymentCompleted',\n query: ['code'],\n trackingData: {\n fptiState: 'done_page',\n templateName: 'memberDone.dust',\n pageGoal: 'Payment Done Receipt',\n trackStateExit: true,\n buzname: {\n 'fullpage': {\n 'pagename': '%::fullpage-done',\n 'pagename2': '%::fullpage-done:member:hermes:',\n 'version': 'member:%:'\n }\n }\n },\n children: []\n});\n\nangular.value(\"$DoneRoute\", $DoneRoute);\n_squid.$ComponentRoute;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-page-components/src/done/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
    \\n \\n
    \\n
    \\n
    \\n
    \\n
    {{ content('done.payment_target', { merchantName: nonEmptyMerchantDisplayName }) }}
    \\n {{content('paymentMethod.msbDetails')}}\\n
    \\n
    \\n
    \\n
    \\n {{item.quantity}} x {{item.name}}\\n \\n \\n \\n \\n
    \\n
    \\n \\n {{ content('header.itemNumber') }} {{ item.sku }}\\n \\n
    \\n
    \\n \\n {{ selection.name }}:\\n {{ selection.select }}\\n \\n
    \\n
    \\n
    \\n
    \\n {{content('header.subTotal')}}\\n \\n \\n \\n \\n
    \\n
    \\n {{content('header.tax')}}\\n \\n \\n \\n \\n
    \\n
    \\n {{content('header.shipping')}}\\n \\n \\n \\n \\n
    \\n
    \\n {{content('header.insurance')}}\\n \\n \\n \\n \\n
    \\n
    \\n {{content('header.handling')}}\\n \\n \\n \\n \\n
    \\n
    \\n {{content('header.discount')}}\\n \\n \\n \\n \\n
    \\n
    \\n
    \\n \\n {{content('base.totalLabel')}}\\n \\n \\n \\n \\n \\n
    \\n
    \\n
    \\n \\n \\n
    \\n
    \\n
    \\n
    \\n {{content('done.temporarily_pending')}}\\n
    \\n
    \\n
    \\n \\n\\n
    \\n
    \\n
    {{ content('messenger.integration') }}
    \\n
    \\n
    \\n
    {{ content('messenger.linkedTitle') }}
    \\n
    {{ content('messenger.linkedSubtitle') }}
    \\n
    \\n
    {{ content('messenger.upsell') }}
    \\n \\n
    \\n\\n

    0\\\" class=\\\"receipt title\\\">{{content('done.paidWith')}}

    \\n
    \\n
    \\n {{content('fsMappings.'+item.type) || item.name}} x-{{item.last4}}\\n \\n \\n \\n \\n
    \\n
    \\n
    {{content('done.transactionInformation', {merchantName: checkoutSession.transactionDetails.soft_descriptor})}}\\n
    \\n

    {{content('done.shippedTo')}}

    \\n
    \\n
    {{checkoutSession.shipping.name}}
    \\n
      \\n
    • {{item}}
    • \\n
    \\n
    {{content('countryList.'+checkoutSession.shipping.country)}}
    \\n
    \\n
    \\n
    {{ content('shippingMethod.storeLocation') }}
    \\n

    {{ content('shippingMethod.storeLocationInfo') }}

    \\n
    \\n

    {{content('done.purchaseDetails')}}

    \\n
    {{content('done.receiptNumber')}} {{checkoutSession.transactionDetails.receipt_id}}
    \\n
    \\n
    {{content('done.confirmation')}}
    \\n
    {{checkoutSession.payer.email}}
    \\n
    \\n\\n
    \\n

    {{content('done.merchantDetails')}}

    \\n
    \\n
    {{ merchantDisplayName }}
    \\n
    {{checkoutAppData.merchant.phone}}
    \\n
    \\n
    \\n\\n
    \\n \\n
    \\n
    \\n
    \\n
    {{content('done.paymentCompleted')}}
    \\n
    \\n
    \\n
    \\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-page-components/src/footer/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nvar _uiRouter = __webpack_require__(\"../node_modules/angular-ui-router/release/angular-ui-router.min.js\");\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _index = __webpack_require__(\"../node_modules/xo-device-info/dist/index.js\");\n\n__webpack_require__(\"../node_modules/xo-form-components/src/language-options/directive.js\");\n\nvar _index2 = __webpack_require__(\"../node_modules/xo-models/src/auth/index.js\");\n\nvar _index3 = __webpack_require__(\"../node_modules/xo-models/src/checkout/index.js\");\n\nvar _index4 = __webpack_require__(\"../node_modules/xo-models/src/user/index.js\");\n\nvar _index5 = __webpack_require__(\"../node_modules/xo-return-to-merchant/dist/index.js\");\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/escape-hatch/escapeHatch/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/modal/directive.js\");\n\nvar _footerMap = __webpack_require__(\"../node_modules/xo-page-components/src/footer/footerMap.js\");\n\nvar _footerMap2 = _interopRequireDefault(_footerMap);\n\nvar _opinionlab = __webpack_require__(\"../node_modules/xo-page-components/src/footer/opinionlab.js\");\n\nvar _opinionlab2 = _interopRequireDefault(_opinionlab);\n\nvar _template = __webpack_require__(\"../node_modules/xo-page-components/src/footer/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\n__webpack_require__(\"../node_modules/xo-page-components/src/footer/styles.less\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nangular.module().directive('xoFooter', function () {\n return {\n template: _template2['default'],\n restrict: 'EA',\n scope: {\n token: '=?',\n escapeHatchIncontext: '=?',\n cancel: '@?',\n merchant: '@?',\n languageSwitch: '=?',\n showVenmoLegalLinks: '=?'\n },\n controller: ['$scope', function ($scope) {\n $scope.isIFrame = _squid.$util.isIFrame();\n if ($scope.escapeHatchIncontext) {\n $scope.showEscapeHatch = $scope.isIFrame;\n }\n $scope.locale = _squid.$locale;\n $scope.proxSignUpFlow = _index4.$CheckoutInputDataModel.instance($scope.token).isEbayTxn();\n $scope.year = new Date().getFullYear();\n\n $scope.isApac = function () {\n return _squid.$config.apacCountries && _squid.$config.apacCountries.indexOf($scope.locale.country) > -1;\n };\n\n // Determine if country belongs to a region to serve correct footer links\n var getRegion = function getRegion(country) {\n var regions = _squid.$config.regions;\n for (var region in regions) {\n if (regions[region].indexOf(country) > -1) {\n return region;\n }\n }\n return false;\n };\n\n function isDESecondButtonFlow() {\n return $scope.locale.country === 'DE' && $scope.checkoutAppData && $scope.checkoutAppData.is_second_button_txn;\n }\n\n $scope.footerLinks = function () {\n if ($scope.isApac()) {\n return _footerMap2['default'].APAC;\n }\n\n // It is a product requirement that for the DE CYCO page, Hermes only show the footer links\n // that were available in Aries\n if (isDESecondButtonFlow()) {\n return _footerMap2['default']['DESecondButton'];\n }\n\n return _footerMap2['default'][$scope.locale.country] || _footerMap2['default'][getRegion($scope.locale.country)] || _footerMap2['default'].DEFAULT;\n };\n\n $scope.showPolicyInfo = function () {\n return $scope.isApac() || $scope.locale.country === 'AU';\n };\n\n $scope.cancelRedirect = function ($event) {\n $event.preventDefault();\n\n var cancelUri = $scope.cancel;\n var redirectUri = _squid.$util.param('redirect_uri');\n\n if (window.xprops && window.xprops.onCancel && !cancelUri) {\n return window.xprops.onCancel({\n orderID: $scope.token\n });\n }\n\n // \"redirect_uri\" as a query param overrides the cancel url in the checkout session\n if (_squid.$integration.getConfig('REDIRECT_QUERY_PARAM') && redirectUri) {\n\n cancelUri = _squid.$util.buildURL(redirectUri, {\n opType: 'cancel',\n return_uri: $scope.cancel,\n token: $scope.token\n });\n }\n\n _index5.$ReturnToMerchant.goTo(cancelUri);\n };\n\n $scope.isIndiaLegalEntity = function () {\n // for PayPal India domestic launch legal entity should be 84\n // update footer with indian policy for this case\n return $scope.auth && $scope.auth.logged_in && $scope.auth.legalEntity === 84 || $scope.locale.country === 'IN';\n };\n\n if ($scope.token) {\n (0, _squid.$populate)($scope, {\n checkoutAppData: _index3.$CheckoutAppDataModel.instance($scope.token),\n checkoutPayee: _index3.$CheckoutPayeeModel.instance($scope.token),\n auth: _index2.$AuthModel.instance()\n }).then(function () {\n var payee = $scope.checkoutPayee;\n\n if (payee && payee.merchant && payee.merchant.id) {\n var hcl = _squid.$config.hideCancelLinkForMerchant;\n\n var shouldHide = hcl && hcl.indexOf(payee.merchant.id) !== -1;\n if (shouldHide) {\n $scope.hideCancel = true;\n }\n }\n $scope.cancel = $scope.checkoutAppData.urls.cancel_url;\n $scope.merchant = $scope.checkoutAppData.getMerchantDisplayName();\n });\n }\n\n var cancelShowModal = _angular.$rootScope.$on('showModal', function (event, ctx) {\n var url = ctx && ctx.popupUrl;\n _logger.$logger.info('show_popup_modal', { url: url, ua: _angular.$window.navigator.userAgent });\n $scope.popupUrl = _angular.$sce.trustAsResourceUrl(url);\n $scope.show = true;\n $scope.$digest(); // eslint-disable-line angular/ng_no_digest\n });\n\n $scope.hideModal = function () {\n _logger.$logger.info('hide_popup_modal');\n $scope.show = false;\n };\n\n $scope.$on('$destroy', cancelShowModal);\n\n $scope.showOL = function showOL(event) {\n event.preventDefault();\n\n var placeholder = 'main:ec:hermes';\n var page = _uiRouter.$state.current.get('trackingData.buzname.fullpage.pagename2', 'unknown').replace('%', placeholder);\n var data = {\n opVars: {\n rlogId: _angular.$window.meta.rlogId || '',\n page: page || window.location.hash,\n csci: 'Unknown',\n calc: _angular.$window.meta.correlationId,\n custId: 'Unknown',\n merchantId: 'Unknown',\n token: $scope.token || 'Unknown'\n },\n locale: {\n country: _squid.$locale.country,\n languageCode: _squid.$locale.lang + '_' + _squid.$locale.country\n }\n };\n\n (0, _opinionlab2['default'])(data);\n };\n\n $scope.showFeedback = function () {\n return !_index.$DeviceInfo.isDevice() && !isDESecondButtonFlow();\n };\n\n $scope.hideReturnCancelUrl = function () {\n if (window.xprops && window.xprops.onCancel) {\n return false;\n }\n\n if (!$scope.cancel) {\n return true;\n }\n\n if (_uiRouter.$state.current && _uiRouter.$state.current.name === 'checkout.done') {\n return true;\n }\n\n return false;\n };\n\n $scope.showVenmoLinks = function () {\n // if on payWithSelection State, always show it, else we choose whatever 'checkout' directive says.\n if (_uiRouter.$state.current && _uiRouter.$state.current.name === 'checkout.payWithSelection') {\n return true;\n }\n return !!$scope.showVenmoLegalLinks;\n };\n\n $scope.showPaypalLinks = function () {\n // will force Paypal Links if on payWithSelection state. Hide paypal links if we explicitly request venmo Links\n if (_uiRouter.$state.current && _uiRouter.$state.current.name === 'checkout.payWithSelection') {\n return true;\n }\n return !$scope.showVenmoLegalLinks;\n };\n }]\n };\n});\n\n_uiRouter.$state;\n\n_angular.$window;\n\n_angular.$rootScope;\n\n_angular.$sce;\n\n_squid.$config;\n\n_squid.$util;\n\n_squid.$locale;\n\n_squid.$populate;\n\n_squid.$integration;\n\n_index.$DeviceInfo;\n\n_index2.$AuthModel;\n\n_index3.$CheckoutAppDataModel;\n\n_index3.$CheckoutPayeeModel;\n\n_index4.$CheckoutInputDataModel;\n\n_index5.$ReturnToMerchant;\n\n_logger.$logger;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-page-components/src/footer/footerMap.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\n!(module.exports = {\n CA: [{\n id: 'policy',\n content: 'footer.policiesCA'\n }, {\n id: 'terms',\n content: 'footer.termsCA'\n }, {\n id: 'privacy',\n content: 'footer.privacyCA'\n }],\n\n BE: [{\n id: 'legal',\n content: 'footer.legal'\n }, {\n id: 'privacy',\n content: 'footer.privacy'\n }],\n\n DE: [{\n id: 'imprint',\n content: 'footer.DEImprint'\n }, {\n id: 'legal',\n content: 'footer.DELegal'\n }, {\n id: 'privacy',\n content: 'footer.DEPrivacy'\n }, {\n id: 'paymentdesc',\n content: 'footer.DEKeyPaymentDesc'\n }],\n\n ES: [{\n id: 'legal',\n content: 'footer.legal'\n }, {\n id: 'privacy',\n content: 'footer.privacy'\n }],\n\n FR: [{\n id: 'legal',\n content: 'footer.FRLegal'\n }, {\n id: 'useragreement',\n content: 'footer.FRUserAgreement'\n }, {\n id: 'privacy',\n content: 'footer.FRPrivacy'\n }],\n\n IT: [{\n id: 'legal',\n content: 'footer.legal'\n }, {\n id: 'privacy',\n content: 'footer.privacy'\n }],\n\n NL: [{\n id: 'legal',\n content: 'footer.legal'\n }, {\n id: 'privacy',\n content: 'footer.privacy'\n }],\n\n IE: [{\n id: 'terms',\n content: 'footer.terms'\n }, {\n id: 'useragreement',\n content: 'footer.userAgreement'\n }, {\n id: 'privacy',\n content: 'footer.privacy'\n }],\n\n APAC: [{\n id: 'terms',\n content: 'footer.terms'\n }, {\n id: 'useragreement',\n content: 'footer.userAgreement'\n }, {\n id: 'privacy',\n content: 'footer.privacy'\n }],\n EMEA: [{\n id: 'terms',\n content: 'footer.terms'\n }, {\n id: 'useragreement',\n content: 'footer.userAgreement'\n }, {\n id: 'privacy',\n content: 'footer.privacy'\n }],\n EM: [{\n id: 'terms',\n content: 'footer.terms'\n }, {\n id: 'useragreement',\n content: 'footer.userAgreement'\n }, {\n id: 'privacy',\n content: 'footer.privacy'\n }],\n LATAM: [{\n id: 'help',\n content: 'footer.help'\n }, {\n id: 'terms',\n content: 'footer.terms'\n }, {\n id: 'privacy',\n content: 'footer.privacy'\n }],\n\n AU: [{\n id: 'terms',\n content: 'footer.terms'\n }, {\n id: 'privacy',\n content: 'footer.privacy'\n }],\n AT: [{\n id: 'imprint',\n content: 'footer.ATImprint'\n }, {\n id: 'terms',\n content: 'footer.terms'\n }, {\n id: 'privacy',\n content: 'footer.privacy'\n }],\n CH: [{\n id: 'imprint',\n content: 'footer.CHImprint'\n }, {\n id: 'terms',\n content: 'footer.terms'\n }, {\n id: 'privacy',\n content: 'footer.privacy'\n }],\n DK: [{\n id: 'useragreement',\n content: 'footer.DKUserAgreement'\n }, {\n id: 'privacy',\n content: 'footer.privacy'\n }],\n SE: [{\n id: 'useragreement',\n content: 'footer.SEUserAgreement'\n }, {\n id: 'privacy',\n content: 'footer.privacy'\n }],\n PL: [{\n id: 'useragreement',\n content: 'footer.PLUserAgreement'\n }, {\n id: 'privacy',\n content: 'footer.privacy'\n }],\n NO: [{\n id: 'useragreement',\n content: 'footer.NOUserAgreement'\n }, {\n id: 'privacy',\n content: 'footer.privacy'\n }],\n TR: [{\n id: 'useragreement',\n content: 'footer.TRUserAgreement'\n }, {\n id: 'privacy',\n content: 'footer.privacy'\n }],\n BR: [{\n id: 'help',\n content: 'footer.help'\n }, {\n id: 'terms',\n content: 'footer.terms'\n }, {\n id: 'privacy',\n content: 'footer.privacy'\n }],\n MX: [{\n id: 'help',\n content: 'footer.help'\n }, {\n id: 'terms',\n content: 'footer.terms'\n }, {\n id: 'privacy',\n content: 'footer.privacy'\n }],\n RU: [{\n id: 'terms',\n content: 'footer.terms'\n }, {\n id: 'privacy',\n content: 'footer.privacy'\n }],\n\n DESecondButton: [{\n id: 'imprint',\n content: 'footer.DEImprint'\n }, {\n id: 'privacy',\n content: 'footer.DEPrivacy'\n }],\n\n DEFAULT: [{\n id: 'policy',\n content: 'footer.policies',\n venmoContent: 'footer.venmo_policies'\n }, {\n id: 'terms',\n content: 'footer.terms',\n venmoContent: 'footer.venmo_terms'\n }, {\n id: 'privacy',\n content: 'footer.privacy',\n venmoContent: 'footer.venmo_privacy'\n }]\n});\n\n/***/ }),\n\n/***/ \"../node_modules/xo-page-components/src/footer/opinionlab.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {\n\n var _doc = document;\n var _w = window;\n var _tm = new Date().getTime();\n var _sH = screen.height;\n var _ht = escape(_w.location.href); // eslint-disable-line block-scoped-var,no-undef\n var _hr = escape(_doc.referrer); // eslint-disable-line block-scoped-var,no-undef\n var _sW = screen.width;\n\n function popUp(opinionlabURL) {\n _w.open(opinionlabURL, 'comments', 'width=535,height=192' + ',screenX=' + (_sW - 535) / 2 + ',screenY=' + (_sH - 192) / 2 + ',top=' + (_sH - 192) / 2 + ',left=' + (_sW - 535) / 2 + ',resizable=yes' + ',copyhistory=yes' + ',scrollbars=no');\n }\n\n function updateCustomVars(data) {\n\n var opVars = data.opVars;\n var locale = data.locale;\n\n _ht = 'https://' + locale.country + '.paypal.com/' + locale.languageCode + '/00/' + escape(opVars.page.replace(/\\s|\\//g, '_')) + '.page'; // eslint-disable-line block-scoped-var,no-undef\n\n var customVar = (opVars.rlogId || opVars.calc) + '|' + opVars.csci + '|' + opVars.page + '|' + locale.country + '|' + locale.languageCode + '|' + opVars.custId + '|' + opVars.merchantId + '|' + opVars.token + '|' + 'Unknown';\n return customVar;\n }\n\n function _fC(_u) {\n var _sp = '%3A\\\\/\\\\/';\n var _rp = '%3A//';\n var _aT = _sp + ',\\\\/,\\\\.,-,_,' + _rp + ',%2F,%2E,%2D,%5F';\n var _aA = _aT.split(',');\n\n for (var i = 0; i < 5; i++) {\n eval('_u=_u.replace(/' + _aA[i] + '/g,_aA[i+5])'); // eslint-disable-line no-eval\n }\n return _u;\n }\n\n return function (locale) {\n\n var custom_var = updateCustomVars(locale);\n\n var opinionlabURL = 'https://secure.opinionlab.com/ccc01/comment_card.asp?' + 'time1=' + _tm + '&time2=' + new Date().getTime() + '&prev=' + _fC(_hr) + '&referer=' + _fC(_ht) + '&height=' + _sH + '&width=' + _sW + '&custom_var=' + custom_var;\n popUp(opinionlabURL);\n };\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n/***/ }),\n\n/***/ \"../node_modules/xo-page-components/src/footer/styles.less\":\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ \"../node_modules/xo-page-components/src/footer/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
    \\n
    \\n

    \\n \\n \\n \\n

    \\n\\n
    \\n \\n
      \\n
    • \\n
    • \\n
    \\n

    \\n {{ content('footer.copyright', {year: year}) }}\\n \\n {{ content('memberReview.propHead') }}\\n

    \\n\\n \\n
    \\n\\n
    \\n

    \\n

    \\n

    {{ content('footer.moreCopyright', {year: year}) }}

    \\n
    \\n\\n
    \\n \\n
    \\n \\n
    \\n
    \\n
    \\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-page-components/src/gdprCookieBanner/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.$gdprCookieBannerComponent = undefined;\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _gdprCookieBanner = __webpack_require__(\"../node_modules/xo-models/src/gdprCookieBanner/index.js\");\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-page-components/src/gdprCookieBanner/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\n__webpack_require__(\"../node_modules/xo-page-components/src/gdprCookieBanner/styles.less\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n/**\n * General Data Protection Regulation (GDPR) defines standards on how personal data is collected, processed, transferred and disposed.\n * Affected Countries: All \"GDPR\" countries: Please check config.json for country list.\n * Wiki: https://github.paypal.com/Checkout-R/xoonboardingnodeweb/wiki/GDPR:-Feature,-Integration-documentation\n */\nvar $gdprCookieBannerComponent = exports.$gdprCookieBannerComponent = _squid.$Component.extend('$gdprCookieBanner', {\n tag: 'xo-gdpr-cookie-banner',\n template: _template2['default'],\n actions: {\n // Fetch the GDPR banner, append to DOM if available\n refreshGDPR: function refreshGDPR() {\n var _this = this;\n\n var gdprModel = _gdprCookieBanner.$GDPRCookieBannerModel.instance();\n\n return gdprModel.getBanner().then(function () {\n var banner = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n // Run cleanup once we know the result, to prevent screen flash\n _this.actions.cleanup();\n\n var html = banner.html,\n css = banner.css,\n js = banner.js;\n\n\n if (!html || !css || !js) {\n return;\n }\n\n var div = angular.element(html);\n var style = angular.element(css);\n var script = angular.element(js);\n\n var el = _this.$element.find('#gdpr-cookie-banner-outerwrap');\n\n el.append(style);\n el.append(div);\n el.append(script);\n\n if (!(0, _angular.isFunction)(window.bindGdprEvents)) {\n _logger.$logger.error('gdpr_banner_bindGdprEvents_not_defined');\n return;\n }\n\n // TODO: Remove this class add when cookie banner script is fixed to add this class properly\n angular.element(document.body).addClass('gdprCookieBanner-acceptedAll');\n\n window.bindGdprEvents();\n });\n },\n\n // Clear out the banner container to remove the old elements\n cleanup: function cleanup() {\n var el = this.$element.find('#gdpr-cookie-banner-outerwrap');\n\n el.empty();\n }\n },\n\n lifecycle: {\n populate: function populate() {\n var _this2 = this;\n\n this.actions.refreshGDPR();\n\n // On \"localeChange\" we are re-fetching data.\n this.$on('localeChange', function () {\n _this2.actions.refreshGDPR();\n });\n }\n }\n});\n\nangular.value(\"$gdprCookieBannerComponent\", $gdprCookieBannerComponent);\n_squid.$Component;\n\n_angular.isFunction;\n\n_gdprCookieBanner.$GDPRCookieBannerModel;\n\n_logger.$logger;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-page-components/src/gdprCookieBanner/styles.less\":\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ \"../node_modules/xo-page-components/src/gdprCookieBanner/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-page-components/src/header/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.$SetHeaderText = undefined;\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _index = __webpack_require__(\"../node_modules/xo-device-info/dist/index.js\");\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/escape-hatch/closeFrame/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-form-components/src/language-options/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-page-components/src/cart/directive.js\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-page-components/src/header/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\n__webpack_require__(\"../node_modules/xo-page-components/src/header/styles.less\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nangular.module().directive('xoHeader', function () {\n return {\n template: _template2['default'],\n scope: {\n showCartTotal: '=?',\n renderCartContainer: '=?',\n token: '=?',\n isUnbranded: '=?',\n unbrandedTitle: '=?',\n unbrandedSubTitle: '=?',\n languageSwitch: '=?',\n redirectiframe: '=?',\n redirectLightbox: '=?',\n isVenmoFlow: '=?'\n },\n controller: ['$scope', function ($scope) {\n var _ref = window.xprops || {},\n _ref$experience = _ref.experience,\n experience = _ref$experience === undefined ? { facebook: false } : _ref$experience;\n\n // Callback-integrated merchants should have a breakdown available in their flow\n\n\n $scope.enableCartBreakdown = Boolean(window.xprops && window.xprops.onShippingChange);\n\n $scope.isFacebookBAIntegration = experience.facebook;\n $scope.isMessengerBAIntegration = _squid.$integration.getConfig('IS_MESSENGER_BA_INTEGRATION');\n $scope.isMobile = _index.$DeviceInfo.isMobile() || _index.$DeviceInfo.isTablet();\n $scope.title = (0, _squid.$renderContent)($scope.unbrandedTitle);\n $scope.subTitle = (0, _squid.$renderContent)($scope.unbrandedSubTitle);\n $SetHeaderText.subscribe($scope, function (event, text) {\n $scope.unbrandedTitle = text;\n $scope.title = (0, _squid.$renderContent)($scope.unbrandedTitle);\n });\n }]\n };\n});\n\nvar headerText = '';\nvar $SetHeaderText = exports.$SetHeaderText = {\n setText: function setText(text) {\n headerText = text;\n _angular.$rootScope.$emit('update_header_text', text);\n },\n getText: function getText() {\n return headerText;\n },\n subscribe: function subscribe($scope, callback) {\n var handler = _angular.$rootScope.$on('update_header_text', callback);\n $scope.$on('$destroy', handler);\n }\n};\n\nangular.value(\"$SetHeaderText\", $SetHeaderText);\n_angular.$rootScope;\n\n_squid.$integration;\n\n_squid.$renderContent;\n\n_index.$DeviceInfo;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-page-components/src/header/styles.less\":\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ \"../node_modules/xo-page-components/src/header/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
    \\n
    \\n
    \\n \\n
    \\n {{title}}\\n
    {{ content('base.payPal') }}
    \\n
    Venmo Checkout
    \\n
    \\n \\\"PayPal\\\"\\n \\n \\\"Facebook\\\"\\n
    \\n
    \\n
    \\n \\\"PayPal\\n
    \\n
    \\n \\\"PayPal\\n
    \\n
    \\n\\n \\n\\n \\n\\n
    {{subTitle}}
    \\n \\n
    \\n
    \\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-page-components/src/marketingOffers/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\nvar _auth = __webpack_require__(\"../node_modules/xo-models/src/auth/index.js\");\n\nvar _index = __webpack_require__(\"../node_modules/xo-models/src/checkout/index.js\");\n\n__webpack_require__(\"../node_modules/xo-title/dist/directive.js\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-page-components/src/marketingOffers/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\nvar _marketingoffer = __webpack_require__(\"../node_modules/xo-models/src/marketingoffer/index.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nangular.module().directive('xoMarketingOffers', function () {\n return {\n template: _template2['default'],\n scope: {\n placementCode: '=?',\n titleTxtProperty: '=?',\n subtitleProperty: '=?',\n token: '=?',\n pageName: '=?',\n backgroundImage: '=?',\n xoTitleTag: '@?',\n xoTitleClass: '@?'\n },\n controller: ['$scope', '$element', '$sce', function ($scope, $element, $sce) {\n var morsOfferFlag = $scope.placementCode === '202003' && (0, _squid.$feature)('morsValuePropOffers');\n var populateObj = void 0;\n\n if (morsOfferFlag) {\n populateObj = {\n checkoutCart: _index.$CheckoutCartModel.instance($scope.token),\n checkoutSession: _index.$CheckoutSessionModel.instance($scope.token),\n payee: _index.$CheckoutPayeeModel.instance($scope.token),\n auth: _auth.$AuthModel.instance()\n };\n } else {\n populateObj = {\n checkoutCart: _index.$CheckoutCartModel.instance($scope.token)\n };\n }\n (0, _squid.$populate)($scope, populateObj).then(function () {\n $scope.locale = _squid.$locale;\n $scope.token = _angular.$rootScope.token;\n function setDefaultValues() {\n $scope.ad = {\n Title: (0, _squid.$renderContent)($scope.titleTxtProperty),\n Body: (0, _squid.$renderContent)($scope.subtitleProperty),\n backgroundImage: $scope.backgroundImage\n };\n }\n\n $scope.$watch('ad.backgroundImage', function (imageUrl) {\n if (imageUrl) {\n var url = imageUrl;\n var propImg = angular.element($element[0].querySelector('div.prop-img'));\n var isRetina = window && window.matchMedia && window.matchMedia('(-webkit-min-device-pixel-ratio: 2), ' + '(min--moz-device-pixel-ratio: 2), ' + '(-o-min-device-pixel-ratio: 2/1),' + '(min-device-pixel-ratio: 2),' + '(min-resolution: 192dpi), ' + '(min-resolution: 2dppx)').matches;\n\n if (isRetina && url) {\n var index = url.lastIndexOf('.'); // index at which file extension start\n url = url.substring(0, index) + '_2x' + url.substring(index, url.length);\n propImg.css({\n 'background-image': 'url(' + url + ')',\n 'height': '150px',\n 'margin-top': '0px'\n });\n } else {\n propImg.css({\n 'background-image': 'url(' + url + ')',\n 'height': '150px',\n 'margin-top': '0px'\n });\n }\n }\n });\n\n if ($scope.placementCode === '202002') {\n $scope.pu_type = 'ANONYMOUS';\n $scope.presentation_types = ['CompositeText'];\n $scope.pxpInfo = {\n name: 'xo_xoon_hermes_mors',\n pattern: '(xo_xoon_hermes_mors_)(.*)',\n treatment: 'xo_xoon_hermes_mors_treatment'\n };\n } else if ($scope.placementCode === '202003') {\n $scope.className = 'props';\n $scope.pu_type = 'PERSONAL';\n $scope.presentation_types = ['GenericComposite'];\n $scope.pxpInfo = {\n name: 'xo_mors_hermes_placements_ryi',\n pattern: '(xo_mors_hermes_placements_ryi_)(.*)',\n treatment: 'xo_mors_hermes_placements_ryi_treatment'\n };\n } else {\n setDefaultValues();\n }\n\n // serve ads only if pxp is true, country is US and lang is en\n if (_squid.$locale.country === 'US' && _squid.$locale.lang === 'en' && $scope.placementCode && (0, _squid.$feature)('morsValuePropOffers')) {\n $scope.marketingOfferData = new _marketingoffer.$MarketingOfferModel({\n countryCode: $scope.locale.country,\n page: $scope.pageName,\n puType: $scope.pu_type,\n locale: _squid.$locale.lang + '_' + _squid.$locale.country,\n totalTransactionAmount: {\n 'currency_code': $scope.checkoutCart.get('purchase.amounts.total.currency_code', ''),\n // Round the calculation to eliminate Floating point Rounding Error (69.99 * 100 === 6998.999999999999)\n // http://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html\n 'value': Math.round($scope.checkoutCart.get('purchase.amounts.total.amount', 0) * 100)\n },\n totalShippingAmount: {\n 'currency_code': $scope.checkoutCart.get('purchase.amounts.total.currency_code', ''),\n // Round the calculation to eliminate Floating point Rounding Error (69.99 * 100 === 6998.999999999999)\n // http://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html\n 'value': Math.round($scope.checkoutCart.get('purchase.amounts.shipping.amount', 0) * 100)\n },\n payee: morsOfferFlag ? $scope.payee.merchant.id : '',\n payer: morsOfferFlag ? $scope.checkoutSession.payer.id : '',\n si: morsOfferFlag ? $scope.checkoutSession.id : '',\n visitor_id: morsOfferFlag ? $scope.auth.visitor_id : '',\n targetPlacements: [{\n 'placement_code': $scope.placementCode,\n 'presentation_types': $scope.presentation_types\n }]\n });\n (0, _squid.$pxp)($scope.pxpInfo.name, { 'ctx.COUNTRY': _squid.$locale.country }, $scope.pxpInfo.pattern, false, true).then(function (res) {\n\n _logger.$logger.info('MO treatment: ' + (res ? res.treatment_name : '[no pxp response!]'));\n if (res && res.treatment_name === $scope.pxpInfo.treatment) {\n\n return _marketingoffer.$MarketingOfferModel.instance($scope.token).save({\n silent: true,\n data: $scope.marketingOfferData.serialize(),\n // Ignore all errors from this api, by passing transientError as true\n transientError: true,\n success: function success(result) {\n var ads_arr = result && result.ads || [];\n var adFound = false;\n\n // MORS could serve multiple ads for a given page. Iterate to get the\n // correct one based on the ad placement_id\n ads_arr.forEach(function (ad) {\n var adunit_id = ad.campaign.adunit_id;\n\n if (adunit_id.toString() === $scope.placementCode.toString() && ad.valid) {\n adFound = true;\n $scope.ad = {};\n var content = ad.content.nvp;\n content.forEach(function (obj) {\n $scope.ad[obj.name] = obj.value;\n });\n $scope.ad['impressionUrl'] = ad.tracking.impression_url;\n $scope.ad['clickUrl'] = ad.tracking.click_url;\n }\n });\n\n if (adFound) {\n $scope.ad.Body = $sce.trustAsHtml($scope.ad.Body);\n // $scope.ad.Title does not need to be assigned. for 202001, 202002,\n // and 202003 placement_ids as this will already be assigned.\n\n // notify MORS of successful rendering by firing the impressionurl\n // beacon and by setting the click url to be fired for future\n // conversion.\n // setting the placement_id helps to differentiate between multiple ads\n // displayed on the same page\n\n _logger.$logger.info('MORS_ad_displayed');\n _marketingoffer.$fireMORSBeacon.fireBeacon($scope.ad.impressionUrl);\n\n _angular.$rootScope.$broadcast('MORSDisplayed', {\n clickUrl: $scope.ad.clickUrl,\n placementId: $scope.placementCode\n });\n } else {\n _logger.$logger.info('MORS_ad_not_found');\n setDefaultValues();\n _angular.$rootScope.$broadcast('MORSNotDisplayed');\n }\n },\n\n error: function error(err) {\n setDefaultValues();\n _logger.$logger.error('MORS_api_failure', { error: err });\n }\n });\n } else {\n setDefaultValues();\n _angular.$rootScope.$broadcast('MORSNotDisplayed');\n }\n });\n } else {\n setDefaultValues();\n _angular.$rootScope.$broadcast('MORSNotDisplayed');\n }\n $scope.$on('localeChange', function () {\n setDefaultValues();\n });\n });\n }]\n };\n});\n\n_angular.$rootScope;\n\n_squid.$feature;\n\n_squid.$locale;\n\n_squid.$populate;\n\n_squid.$pxp;\n\n_squid.$renderContent;\n\n_logger.$logger;\n\n_auth.$AuthModel;\n\n_index.$CheckoutCartModel;\n\n_index.$CheckoutPayeeModel;\n\n_index.$CheckoutSessionModel;\n\n_marketingoffer.$MarketingOfferModel;\n\n_marketingoffer.$fireMORSBeacon;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-page-components/src/marketingOffers/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
    \\n
    \\n \\n

    \\n
    \\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-page-components/src/merchant-header/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _index = __webpack_require__(\"../node_modules/xo-models/src/checkout/index.js\");\n\nvar _index2 = __webpack_require__(\"../node_modules/xo-models/src/user/index.js\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-page-components/src/merchant-header/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _squid.$Component.extend('$xoMerchantHeaderDirective', {\n tag: 'xo-merchant-header',\n template: _template2['default'],\n props: {\n token: {\n type: 'var',\n required: false\n },\n merchant: {\n type: 'var',\n required: false\n },\n disableId: {\n type: 'str',\n required: false\n }\n },\n resolve: {\n models: function models() {\n if (this.props.token) {\n return {\n checkoutAppData: _index.$CheckoutAppDataModel.instance(this.props.token).retrieve()['catch'](_angular.noop)\n };\n }\n }\n },\n lifecycle: {\n populate: function populate() {\n var _ref = this.models || {},\n checkoutAppData = _ref.checkoutAppData;\n\n if (checkoutAppData) {\n // get Merchant display name - can be undefined in which case we have an empty header\n this.merchantDisplayName = checkoutAppData.getMerchantDisplayName();\n\n if (this.props.token && !_index2.$CheckoutInputDataModel.instance(this.props.token).isEbayTxn()) {\n this.merchant = checkoutAppData.merchant;\n }\n }\n }\n }\n});\n\n\n(0, _squid.$registerDirective)('xoMerchantImageResize', function () {\n return {\n restrict: 'A',\n link: function link(scope, element) {\n element.bind('load', function () {\n var MAX_WIDTH = 780;\n var MAX_HEIGHT = 90;\n\n if (this.width > MAX_WIDTH) {\n var ratio = MAX_WIDTH / this.width;\n var height = this.height * ratio;\n\n this.width = MAX_WIDTH;\n this.height = height > MAX_HEIGHT ? MAX_HEIGHT : height;\n }\n });\n }\n };\n});\n\n_angular.noop;\n\n_squid.$Component;\n\n_squid.$registerDirective;\n\n_index.$CheckoutAppDataModel;\n\n_index2.$CheckoutInputDataModel;\nmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ \"../node_modules/xo-page-components/src/merchant-header/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
    \\n
    \\n
    \\n \\n {{ merchantDisplayName || merchant.brand_name }}\\n \\t\\n \\\"{{\\n
    \\n
    \\n
    \\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-page-components/src/returnParams/index.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nvar addValidParam = __webpack_require__(\"../node_modules/xo-page-components/src/utils/index.js\").addValidParam;\n\nfunction returnWPSParams(checkoutCart, checkoutSession, returnToMerchantMethod, is_cart_upload_flow) {\n var params = {};\n var customData = checkoutCart.get('purchase.custom');\n\n if (returnToMerchantMethod === 'POST') {\n // TODO: find out why we get postbackData as undefined\n // UPDATE: couldn't reproduce an issue on the stage for now\n if (checkoutSession.postbackData) {\n params = checkoutSession.postbackData;\n }\n } else {\n var transactionDetail = checkoutSession.transactionDetails;\n\n if (transactionDetail) {\n addValidParam(params, 'tx', transactionDetail.id);\n addValidParam(params, 'st', transactionDetail.state);\n\n if (transactionDetail.amount) {\n addValidParam(params, 'amt', transactionDetail.amount.total);\n addValidParam(params, 'cc', transactionDetail.amount.currency);\n }\n }\n\n // Cart uploads can have more than one item so we don't add any in return URL\n if (!is_cart_upload_flow) {\n var itemDetail = checkoutSession.get('itemsList.0');\n if (itemDetail) {\n addValidParam(params, 'item_name', itemDetail.name);\n addValidParam(params, 'item_number', itemDetail.sku);\n }\n }\n\n addValidParam(params, 'cm', customData);\n }\n return params;\n}\n\n/**\n * this API function is used by hermesnodeweb/public/pages/xo-end and xoonboardingnodeweb/public/pages/xo-end\n * Create params to return back to the merchant after clicking on \"Return to merchant\" on the Done page.\n * buy-now and cart-upload params are slightly different: given cart-upload might have multiple items,\n * please refer https://github.paypal.com/NodeXOShared/xo-hermes-checkout/blob/master/apis/session/postBackDataMapper.js\n * to know more details about post back data\n\n * @param {Object (angular model)} cart model\n * @param {Object (angular model)} session model\n * @param {String} http method, either \"POST\" or \"GET\"\n * @param {String} feature type (WPS only for now)\n * @param {Boolean} flag that indicates if it's a cart upload or not\n * @returns {object} params to pass back to the merchant\n*/\nmodule.exports = {\n $returnParams: function $returnParams(checkoutCart, checkoutSession, returnToMerchantMethod, feature, is_cart_upload_flow) {\n if (feature === 'WPS') {\n return returnWPSParams(checkoutCart, checkoutSession, returnToMerchantMethod, is_cart_upload_flow);\n }\n return {};\n }\n};\n\n/***/ }),\n\n/***/ \"../node_modules/xo-page-components/src/route-to-complete/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function($) {\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _uiRouter = __webpack_require__(\"../node_modules/angular-ui-router/release/angular-ui-router.min.js\");\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _index = __webpack_require__(\"../node_modules/xo-models/src/checkout/index.js\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-page-components/src/route-to-complete/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\n__webpack_require__(\"../node_modules/xo-page-components/src/route-to-complete/styles.less\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nangular.module().directive('xoRouteToComplete', function () {\n return {\n template: _template2['default'],\n scope: {\n token: '=?'\n },\n controller: ['$scope', function ($scope) {\n /* hide the footer cancel link */\n angular.element('#defaultCancelLink').hide();\n\n _angular.$rootScope.$on('$stateChangeStart', function (event) {\n event.preventDefault();\n });\n\n /* hide header paypal logo*/\n $('.paypalHeaderWrapper').hide();\n\n $('.footerWrapper').addClass('routecss');\n\n /* urlType is passed from xo-end or from xo-page-components/footer/directive.\n * urltype can be either success(incase of successfull flow completion ) or cancel\n * */\n var urlType = _uiRouter.$stateParams.urlType;\n\n // show the return to merchant url only in case of success.\n if (urlType === 'success') {\n $scope.enableSuccessReturnUrl = true;\n }\n\n if (urlType === 'cancel') {\n // defaulting to False. Once the cancel content is available, turn it to true.\n $scope.enableCancelReturnUrl = true;\n }\n\n $scope.goToMerchant = function () {\n _angular.$window.onunload = _angular.$window.onbeforeunload = function () {};\n _angular.$window.location = _uiRouter.$stateParams.url;\n };\n\n (0, _squid.$populate)($scope, {\n checkoutAppData: _index.$CheckoutAppDataModel.instance($scope.token)\n }).then(function () {\n $scope.merchant = $scope.checkoutAppData.getMerchantDisplayName();\n });\n\n $scope.$on('$destroy', function (event) {\n $('.paypalHeaderWrapper').show();\n $('.footerWrapper').removeClass('routecss');\n });\n }]\n };\n});\n\n_squid.$populate;\n\n_uiRouter.$stateParams;\n\n_angular.$rootScope;\n\n_angular.$window;\n\n_index.$CheckoutAppDataModel;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/jquery/dist/jquery.min.js\")))\n\n/***/ }),\n\n/***/ \"../node_modules/xo-page-components/src/route-to-complete/route.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.$RouteToCompleteRoute = undefined;\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\n__webpack_require__(\"../node_modules/xo-page-components/src/route-to-complete/directive.js\");\n\nvar $RouteToCompleteRoute = exports.$RouteToCompleteRoute = _squid.$ComponentRoute.extend('$RouteToCompleteRoute', {\n name: 'routeToComplete',\n directive: 'xo-route-to-complete',\n titleContent: 'genericError.pleaseTryAgain',\n query: ['url', 'urlType'],\n trackingData: {\n fptiState: 'route-to-complete',\n buzname: {\n 'fullpage': {\n 'pagename': '%::route-to-complete',\n 'pagename2': '%::route-to-complete:member:hermes:',\n 'version': 'member:%:'\n }\n }\n },\n children: []\n});\n\nangular.value(\"$RouteToCompleteRoute\", $RouteToCompleteRoute);\n_squid.$ComponentRoute;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-page-components/src/route-to-complete/styles.less\":\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ \"../node_modules/xo-page-components/src/route-to-complete/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
    \\n
    \\n
    \\n
    {{content('genericMessage.paymentSuccessTitle')}}
    \\n
    {{content('genericMessage.successMessage')}}
    \\n
    \\n
    \\n \\n
    \\n
    \\n
    \\n
    \\n \\n
    \\n
    \\n
    \\n
    \\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-page-components/src/subscription-terms/index.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nvar _subscriptionTerms = __webpack_require__(\"../node_modules/xo-page-components/src/subscription-terms/subscriptionTerms.js\");\n\nvar _subscriptionTerms2 = _interopRequireDefault(_subscriptionTerms);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nmodule.exports = {\n getFirstAmount: _subscriptionTerms2['default'].getFirstAmount,\n getFormattedFirstAmount: _subscriptionTerms2['default'].getFormattedFirstAmount,\n getFormattedAmount: _subscriptionTerms2['default'].getFormattedAmount,\n getItemOptions: _subscriptionTerms2['default'].getItemOptions,\n getItemName: _subscriptionTerms2['default'].getItemName,\n getCurrencyCode: _subscriptionTerms2['default'].getCurrencyCode,\n getTermsText: _subscriptionTerms2['default'].getTermsText,\n getEffectiveDate: _subscriptionTerms2['default'].getEffectiveDate,\n getNumericValueNonZero: _subscriptionTerms2['default'].getNumericValueNonZero\n};\n\n/***/ }),\n\n/***/ \"../node_modules/xo-page-components/src/subscription-terms/subscriptionTerms.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar BILL_PERIOD_DAY = 'DAY';\nvar BILL_PERIOD_WEEK = 'WEEK';\nvar BILL_PERIOD_MONTH = 'MONTH';\nvar BILL_PERIOD_YEAR = 'YEAR';\nvar TRIAL_SUBSCRIPTION = 'TRIAL';\nvar REGULAR_SUBSCRIPTION = 'REGULAR';\nvar INFINITE_CYCLES = 'INFINITE';\n\n/**\n * Plural time unit\n * True: time unit will be one of: days, weeks, months, years\n * False: time unit will be one of: day, week, month, year\n * @type {boolean}\n */\nvar pluralTimeUnit = false;\n\n/**\n * If a statement has hasPriorTerm=true , then the statement will begin with \"Then\"\n * e.g. Then 2$ for next 4 months\n * otherwise statement will be\n * 2$ for next 4 months\n * @type {boolean}\n */\nvar hasPriorTerm = false;\n\n/**\n * Returns a localized text from given key and props\n * @param key\n * @param props\n */\nfunction localizedContent(key, props) {\n return _squid.Content.get(key, props) && _squid.Content.get(key, props).toString();\n}\n\n/**\n * Computes the singular or plural form for time unit\n * @param billPeriod\n * @returns {string}\n */\nfunction computeTimeUnit(billPeriod) {\n var timeUnit = void 0;\n\n switch (billPeriod) {\n case BILL_PERIOD_DAY:\n timeUnit = pluralTimeUnit ? 'days' : 'day';\n break;\n case BILL_PERIOD_WEEK:\n timeUnit = pluralTimeUnit ? 'weeks' : 'week';\n break;\n case BILL_PERIOD_MONTH:\n timeUnit = pluralTimeUnit ? 'months' : 'month';\n break;\n case BILL_PERIOD_YEAR:\n timeUnit = pluralTimeUnit ? 'years' : 'year';\n break;\n default:\n timeUnit = '';\n }\n\n return localizedContent('wpsSubscription.label.' + timeUnit);\n}\n\n/**\n * Format amount\n * @param amount\n * @param currencyCode\n * @returns {string} A formatted amount string with currency code or free if 0\n */\nfunction computeAmount(amount, currencyCode) {\n if (amount === 0) {\n return localizedContent('wpsSubscription.label.free');\n } else {\n return (0, _squid.formatCurrency)(amount, currencyCode, false);\n }\n}\n\n/**\n * This method computes first trial key\n * @returns {string} Content Key for 1st trial, which must be prepended by wpsSubscription.message\n */\nfunction computeFirstTrialKey() {\n if (pluralTimeUnit) {\n // {amount} for the first {timePeriod} {timeUnit}\n return 'firstTrialPeriod.plural';\n } else {\n // {amount} for the first {timeUnit}\n return 'firstTrialPeriod.singular';\n }\n}\n\n/**\n * This method computes content key for 2nd trial\n * @returns {string} Content Key for 2nd trial, which must be prepended by wpsSubscription.message\n */\nfunction computeSecondTrialKey() {\n if (pluralTimeUnit) {\n // Then {amount} for the next {timePeriod} {timeUnit}\n return 'secondTrialPeriod.plural';\n } else {\n // Then {amount} for the next {timeUnit}\n return 'secondTrialPeriod.singular';\n }\n}\n\n/**\n * Computes and returns content key for regular subscription\n * There can be 12 variations of regular subscription content\n * @param totalCycles\n * @returns {string} Content Key for 2nd trial, which must be prepended by wpsSubscription.message\n */\nfunction computeRegularSubscriptionKey(totalCycles) {\n var key = 'regularSubscriptionPeriod';\n\n if (hasPriorTerm) {\n // Content starts with Then {amount} for ......\n key += '.withPriorTerms';\n } else {\n // Content does NOT starts with Then\n key += '.noPriorTerms';\n }\n\n if (pluralTimeUnit) {\n // Content has: {amount} for each 2 days/weeks/months/years\n key += '.plural';\n } else {\n // Content has: {amount} for each day/week/month/year\n key += '.singular';\n }\n\n switch (+totalCycles) {\n case 0:\n case 1:\n // Text will look like $20.00 USD for the next 2 months\n // Content does NOT end with: for 3 installments\n key += '.nonRecurring';\n break;\n case Infinity:\n // Content ends with: for each 2 months OR for each month\n // Content will look like $30.00 USD for each week\n key += '.recurringInfinite';\n break;\n default:\n // Content ends with: for 3 installments\n // Content will look like $100.00 USD for each 2 months, for 3 installments\n key += '.recurring';\n }\n return key;\n}\n\n/**\n * Prepares and returns an individual term text string\n * @param subscriptionTerms\n * @param index\n * @param currencyCode\n * @returns {string}\n */\nfunction prepareIndividualTermText(subscriptionTerms, index, currencyCode) {\n var amount = +subscriptionTerms[index].amount,\n billPeriod = subscriptionTerms[index].billPeriod,\n periodType = subscriptionTerms[index].periodType,\n billFrequency = +subscriptionTerms[index].billFrequency,\n totalCycles = +subscriptionTerms[index].totalCycles;\n var contentKey = void 0;\n hasPriorTerm = index > 0;\n pluralTimeUnit = billFrequency > 1;\n\n if (periodType === TRIAL_SUBSCRIPTION) {\n if (index === 0) {\n // First Trial\n contentKey = computeFirstTrialKey();\n } else if (index === 1) {\n // Second Trial\n contentKey = computeSecondTrialKey();\n }\n } else if (periodType === REGULAR_SUBSCRIPTION) {\n contentKey = computeRegularSubscriptionKey(totalCycles);\n }\n contentKey = 'wpsSubscription.message.' + contentKey;\n var templatePlaceholderData = {\n amount: computeAmount(amount, currencyCode),\n timePeriod: billFrequency,\n timeUnit: computeTimeUnit(billPeriod),\n installmentCount: totalCycles\n };\n\n return localizedContent(contentKey, templatePlaceholderData);\n}\n\nfunction mapBaResponse(baResponseData) {\n var mappedSubscriptionDetails = {};\n var plan = baResponseData && baResponseData.plan;\n var allTerms = plan && plan.payment_definitions;\n var mappedTerms = [];\n var firstTrialAmount = null;\n var regularAmount = void 0;\n mappedSubscriptionDetails.currencyCode = plan && plan.currency_code;\n\n if (allTerms) {\n allTerms.forEach(function (eachTerm) {\n var totalCycles = eachTerm.duration === INFINITE_CYCLES ? Infinity : eachTerm.cycles;\n var eachMappedTerm = {\n amount: eachTerm.amount && eachTerm.amount.value / 100,\n billPeriod: eachTerm.frequency,\n periodType: eachTerm.type,\n billFrequency: eachTerm.frequency_interval,\n totalCycles: totalCycles\n };\n\n if (!mappedSubscriptionDetails.currencyCode) {\n // V1 Subscriptions: Pick currency code from any of the amounts.\n mappedSubscriptionDetails.currencyCode = eachTerm.amount && eachTerm.amount.currency_code;\n }\n\n if (eachTerm.type === TRIAL_SUBSCRIPTION && eachTerm.index === '1') {\n firstTrialAmount = eachMappedTerm.amount;\n } else if (eachTerm.type === REGULAR_SUBSCRIPTION) {\n regularAmount = eachMappedTerm.amount;\n }\n mappedTerms.push(eachMappedTerm);\n });\n\n // firstTrialAmount can be zero for free trial, null for no trial\n // and valid value if there is trial amount\n mappedSubscriptionDetails.firstAmount = firstTrialAmount !== null ? firstTrialAmount : regularAmount;\n mappedSubscriptionDetails.subscriptionTerms = mappedTerms;\n }\n\n return mappedSubscriptionDetails;\n}\n\n/**\n * Prepare and return a subscription terms\n * @param baResponseData\n * @returns {Object} Containing Subscription Terms Text\n */\nfunction getTermsText(baResponseData) {\n var subscriptionDetails = mapBaResponse(baResponseData);\n var subscriptionTerms = subscriptionDetails.subscriptionTerms;\n var currencyCode = subscriptionDetails.currencyCode;\n var termTextList = [];\n\n for (var i = 0, len = subscriptionTerms.length; i < len; i++) {\n termTextList.push(prepareIndividualTermText(subscriptionTerms, i, currencyCode));\n }\n return termTextList;\n}\n\n/**\n * Returns a un formatted first amount from ba response\n */\nfunction getFirstAmount(baResponseData) {\n var subscriptionDetails = mapBaResponse(baResponseData);\n\n return subscriptionDetails.firstAmount;\n}\n\n/**\n * Returns the currency code\n */\nfunction getCurrencyCode(baResponseData) {\n var plan = baResponseData && baResponseData.plan;\n\n return plan && plan.currency_code;\n}\n\n/**\n * Returns a formatted first amount from ba response data\n */\nfunction getFormattedFirstAmount(baResponseData) {\n var amount = getFirstAmount(baResponseData);\n var currencyCode = getCurrencyCode(baResponseData);\n\n return (0, _squid.formatCurrency)(amount, currencyCode, false);\n}\n\n/**\n * Retrieve item details\n */\nfunction getItemOptions(baResponseData) {\n var itemDetails = baResponseData && baResponseData.items && baResponseData.items[0];\n\n return itemDetails.options;\n}\n\n/**\n * Retrieve item name\n */\nfunction getItemName(baResponseData) {\n if (!baResponseData) {\n return;\n }\n var _baResponseData$items = baResponseData.items;\n _baResponseData$items = _baResponseData$items === undefined ? [] : _baResponseData$items;\n var _baResponseData$items2 = _baResponseData$items[0];\n _baResponseData$items2 = _baResponseData$items2 === undefined ? {} : _baResponseData$items2;\n var name = _baResponseData$items2.name;\n\n return name;\n}\n\nfunction getEffectiveDate(baResponseData) {\n return baResponseData && baResponseData.effective_date;\n}\n\nfunction getFormattedAmount(amount, currencyCode) {\n return (0, _squid.formatCurrency)(amount / 100, currencyCode, false);\n}\n\nfunction getNumericValueNonZero(obj, path) {\n var data = parseInt(_squid.$util.getProperty(obj, path), 10);\n return !isNaN(data) && data > 0 && data;\n}\n\nmodule.exports = {\n getFirstAmount: getFirstAmount,\n getFormattedFirstAmount: getFormattedFirstAmount,\n getFormattedAmount: getFormattedAmount,\n getItemOptions: getItemOptions,\n getItemName: getItemName,\n getCurrencyCode: getCurrencyCode,\n getTermsText: getTermsText,\n getEffectiveDate: getEffectiveDate,\n getNumericValueNonZero: getNumericValueNonZero\n};\n\n_squid.formatCurrency;\n\n_squid.Content;\n\n_squid.$util;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-page-components/src/utils/index.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nvar _fbMessenger = __webpack_require__(\"../node_modules/xo-page-components/src/constants/fbMessenger.js\");\n\nvar _fbMessenger2 = _interopRequireDefault(_fbMessenger);\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _index = __webpack_require__(\"../node_modules/xo-device-info/dist/index.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nmodule.exports = {\n /**\n * add non empty key, value to the object\n * @param {Object} object where to add new key, value\n * @param {String} key\n * @param {Any type} value, can not be empty\n * @returns {void}\n */\n addValidParam: function addValidParam(obj, key, val) {\n if (!obj) {\n return;\n }\n if (typeof key === 'string' && key && val !== undefined && val !== null) {\n obj[key] = val;\n }\n },\n\n // Get PXP context for Messenger feature\n getMessengerPXPContext: function getMessengerPXPContext() {\n var isMobile = _index.$DeviceInfo.isMobile() || _index.$DeviceInfo.isTablet();\n var overrideMobileUserFlag = _squid.$util.param(_fbMessenger2['default'].OVERRIDE_FBPP_MOBILE_FLAG);\n var channelVal = isMobile ? _fbMessenger2['default'].MOBILE_CHANNEL : _fbMessenger2['default'].WEB_CHANNEL;\n var pxpContext = {\n 'ctx.COUNTRY': _squid.$locale.country,\n 'ctx.CHANNEL': overrideMobileUserFlag ? _fbMessenger2['default'].WEB_CHANNEL : channelVal,\n 'ctx.LANGUAGE': _squid.$locale.lang + '_' + _squid.$locale.country\n };\n\n return pxpContext;\n },\n\n isDolphinEligibleOnWpsDone: function isDolphinEligibleOnWpsDone(stateName) {\n return (/checkout\\.done/.test(stateName) && !!_squid.$util.param('ulToastWpsDone')\n );\n }\n}; /* eslint-disable angular/typecheck-string */\n\n\n_squid.$util;\n\n_squid.$locale;\n\n_index.$DeviceInfo;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-page-components/src/value-props/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/squid/dist/index.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!../node_modules/xo-page-components/src/value-props/template.html\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (squid, template) {\n squid.module('xo-value-props.directive', ['squid']).directive('xoValueProps', function () {\n return {\n template: template,\n restrict: 'E',\n scope: {\n type: '@?',\n title: '@?',\n text: '@?',\n textContent: '@?',\n imageUrl: '@?'\n },\n link: function link(scope, element, attrs) {\n if (angular.isString(attrs.imageUrl)) {\n // Only do this when image-url is defined so that we do not affect default behavior. These image-url\n // are configured through pxp tool for factor based experiments, hence they should all should adhere\n // to standard size i.e. 150X150 pixels.\n attrs.$observe('imageUrl', function (imageUrl) {\n var url = imageUrl;\n var propImg = angular.element(element[0].querySelector('div.prop-img'));\n var isRetina = window && window.matchMedia && window.matchMedia('(-webkit-min-device-pixel-ratio: 2), ' + '(min--moz-device-pixel-ratio: 2), ' + '(-o-min-device-pixel-ratio: 2/1),' + '(min-device-pixel-ratio: 2),' + '(min-resolution: 192dpi), ' + '(min-resolution: 2dppx)').matches;\n\n if (isRetina) {\n var index = url.lastIndexOf('.'); // index at which file extension start\n url = url.substring(0, index) + '_2x' + url.substring(index, url.length);\n propImg.css({\n 'background-image': 'url(' + url + ')',\n 'height': '150px',\n 'background-size': '150px 150px',\n 'margin-top': '0px'\n });\n } else {\n propImg.css({\n 'background-image': 'url(' + url + ')',\n 'height': '150px',\n 'margin-top': '0px'\n });\n }\n });\n }\n }\n };\n });\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n/***/ }),\n\n/***/ \"../node_modules/xo-return-to-merchant/dist/formatReturnContent.js\":\n/***/ (function(module, exports) {\n\n\n\nexports.__esModule = true;\nexports.formatReturnContent = formatReturnContent;\nvar MAX_MERCHANT_NAME_LENGTH = exports.MAX_MERCHANT_NAME_LENGTH = 15;\n\nfunction formatReturnContent($renderContent, merchantName) {\n if (merchantName && merchantName.length < MAX_MERCHANT_NAME_LENGTH) {\n return $renderContent('common.returnToMerchant', { merchantName: merchantName });\n }\n\n return $renderContent('common.returnToDefaultMerchant');\n}\n\n/***/ }),\n\n/***/ \"../node_modules/xo-return-to-merchant/dist/index.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _util = __webpack_require__(\"../node_modules/xo-return-to-merchant/dist/util.js\");\n\nObject.defineProperty(exports, '$ReturnToMerchant', {\n enumerable: true,\n get: function get() {\n return _util.$ReturnToMerchant;\n }\n});\n\nvar _formatReturnContent = __webpack_require__(\"../node_modules/xo-return-to-merchant/dist/formatReturnContent.js\");\n\nObject.defineProperty(exports, 'formatReturnContent', {\n enumerable: true,\n get: function get() {\n return _formatReturnContent.formatReturnContent;\n }\n});\nObject.defineProperty(exports, 'MAX_MERCHANT_NAME_LENGTH', {\n enumerable: true,\n get: function get() {\n return _formatReturnContent.MAX_MERCHANT_NAME_LENGTH;\n }\n});\n\n/***/ }),\n\n/***/ \"../node_modules/xo-return-to-merchant/dist/util.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.$ReturnToMerchant = undefined;\nexports.goTo = goTo;\nexports.postToMerchant = postToMerchant;\nexports.postTo = postTo;\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _angular2 = _interopRequireDefault(_angular);\n\nvar _index = __webpack_require__(\"../node_modules/xo-device-info/dist/index.js\");\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\nvar _uiRouter = __webpack_require__(\"../node_modules/angular-ui-router/release/angular-ui-router.min.js\");\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _index2 = __webpack_require__(\"../node_modules/xo-models/src/checkout/index.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nfunction goTo(url, forceRedirect) {\n if (!url) {\n return;\n }\n\n _logger.$logger.info(url.indexOf('PayerID') > -1 ? 'return_to_merchant' : 'cancel_to_merchant', {\n url: url\n });\n\n // if V4 in-context integration, we'll terminate and call the close handler.\n if (window.xchild) {\n _logger.$logger.done();\n _angular.$rootScope.$emit('loading');\n\n var paymentToken = _angular.$rootScope.token;\n var cart = _index2.$CheckoutCartModel.instance(paymentToken);\n var appData = _index2.$CheckoutAppDataModel.instance(paymentToken);\n var orderID = paymentToken;\n var intent = cart.payment_action;\n var billingToken = cart.billing && cart.billing.ba_token;\n var paymentID = appData.payment_id;\n var cancelUrl = url;\n\n return window.xprops.onCancel({\n paymentToken: paymentToken,\n billingToken: billingToken,\n orderID: orderID,\n paymentID: paymentID,\n intent: intent,\n cancelUrl: cancelUrl\n });\n }\n\n var isHTTPUrl = Boolean(url.indexOf('http') === 0 || url.indexOf('www') === 0);\n var showPaymentSuccess = Boolean(_index.$DeviceInfo.isDevice() && !isHTTPUrl);\n\n if (showPaymentSuccess) {\n _logger.$logger.info('redirect', {\n url: url\n });\n _angular.$window.onunload = _angular.$window.onbeforeunload = function () {// eslint-disable no-empty-function\n };\n\n // wait until state change is done and then redirect\n // for some reason, in case of webview (invoice flow) and code split\n // when user is redirecting to the return url - dynamic chunk fails to load\n // which triggers reload of the previous page\n return _uiRouter.$state.go('checkout.genericMessage', {\n code: 'PAYMENT_SUCCESS',\n returnUrl: url\n })['catch'](function (err) {\n _logger.$logger.info('app_redirect_to_merchant_generic_message_error', {\n error: err && err.message\n });\n })['finally'](function () {\n _angular.$window.location = url;\n });\n }\n\n if (forceRedirect) {\n _squid.$util.redirect(url);\n } else {\n var isVZeroIframe = Boolean(_angular.$rootScope.partnerIntegration) && _squid.$util.isIFrame();\n\n if (isVZeroIframe) {\n _squid.$util.redirect(url, { redirectImmediateParent: true });\n }\n\n // If we are not in minibrowser, do a hard redirect\n else if (_angular.$rootScope.partnerIntegration || !_angular.$rootScope.miniBrowser && !_squid.$util.isIFrame()) {\n _squid.$util.redirect(url);\n } else {\n\n // Construct a message to send to the parent\n var result = this.postToMerchant({\n operation: 'return_to_merchant',\n returnUrl: url,\n updateParent: true\n });\n\n // Otherwise we have no choice but to return to the merchant\n if (!result) {\n _squid.$util.redirect(url);\n }\n }\n }\n\n var userStatus = function userStatus() {\n _logger.$logger.info('redirected_user_still_on_page_second_checkpoint');\n };\n\n (0, _angular.$timeout)(function () {\n _logger.$logger.info('redirected_user_still_on_page_first_checkpoint');\n (0, _angular.$timeout)(userStatus, 10000);\n }, 10000);\n}\n\nfunction postToMerchant(msg) {\n\n try {\n msg = _angular2['default'].toJson(msg, 0);\n\n // If we are not in IE, attempt to send a postMessage\n if (_angular.$window.opener && (_angular.$window.navigator.userAgent.match(/edge/i) || _angular.$window.opener.postMessage && !_angular.$window.navigator.userAgent.match(/msie|trident/i))) {\n _angular.$window.opener.postMessage(msg, '*');\n _logger.$logger.info('minibrowser_postmessage');\n return true;\n }\n // Otherwise, attempt to send a message through the iframe bridge\n var bridge = _angular.$window.opener && _angular.$window.opener.frames && _angular.$window.opener.frames.length && _angular.$window.opener.frames.PayPalBridge;\n\n if (bridge && bridge.returnToParent) {\n bridge.returnToParent(msg);\n _logger.$logger.info('minibrowser_bridgemessage');\n return true;\n }\n\n _logger.$logger.warn('minibrowser_nopostback');\n } catch (err) {\n _logger.$logger.error('minibrowser_postback_error', {\n error: err.stack || err.toString()\n });\n }\n\n return false;\n}\n\nfunction postTo(url, msg) {\n var form = document.createElement('form');\n\n form.method = 'POST';\n form.action = url;\n form.className = 'hide';\n\n for (var key in msg) {\n var input = document.createElement('input');\n\n input.name = key;\n input.value = msg[key];\n form.appendChild(input);\n }\n\n _angular.$window.document.body.appendChild(form);\n form.submit();\n _logger.$logger.info('web_postmessage');\n return true;\n}\n\nvar $ReturnToMerchant = exports.$ReturnToMerchant = {\n goTo: goTo,\n postToMerchant: postToMerchant,\n postTo: postTo\n};\n\n_angular2['default'].value(\"goTo\", goTo);\n_angular2['default'].value(\"postToMerchant\", postToMerchant);\n_angular2['default'].value(\"postTo\", postTo);\n_angular2['default'].value(\"$ReturnToMerchant\", $ReturnToMerchant);\n_index.$DeviceInfo;\n\n_logger.$logger;\n\n_uiRouter.$state;\n\n_squid.$util;\n\n_index2.$CheckoutCartModel;\n\n_index2.$CheckoutAppDataModel;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-shipping-change/src/factory.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.$ShippingChangeFactory = $ShippingChangeFactory;\n\nvar _util = __webpack_require__(\"../node_modules/xo-shipping-change/src/util.js\");\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nfunction $ShippingChangeFactory(_ref) {\n var checkoutAppData = _ref.checkoutAppData,\n checkoutCart = _ref.checkoutCart;\n\n return {\n getCartTotal: function getCartTotal() {\n return (0, _util.getCartTotal)(checkoutCart);\n },\n getPayload: function getPayload(shippingAddress) {\n var paymentID = checkoutAppData.get('payment_id');\n var orderID = checkoutAppData.get('id');\n\n return (0, _util.getPayload)({ orderID: orderID, paymentID: paymentID, shippingAddress: shippingAddress, checkoutCart: checkoutCart });\n },\n updateCart: function updateCart() {\n return (0, _util.updateCart)(checkoutCart);\n },\n callOnShippingChange: function callOnShippingChange(payload) {\n var allowChangeShipping = checkoutAppData.get('flags.allow_change_shipping', false);\n\n if (!allowChangeShipping) {\n return (0, _squid.$promise)({\n cartHasChanged: false,\n rejected: false\n });\n }\n\n return (0, _util.callOnShippingChange)({ payload: payload, checkoutCart: checkoutCart });\n }\n };\n}\n\nangular.value(\"$ShippingChangeFactory\", $ShippingChangeFactory);\n_util.getCartTotal;\n\n_util.getPayload;\n\n_util.updateCart;\n\n_util.callOnShippingChange;\n\n_squid.$promise;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-shipping-change/src/outputMapper.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.payloadOutputMapper = exports.amountOutputMapper = exports.breakdownOutputMapper = undefined;\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar breakdownOutputMapper = exports.breakdownOutputMapper = function breakdownOutputMapper() {\n var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n subtotal = _ref.subtotal,\n item_total = _ref.item_total,\n shipping = _ref.shipping,\n handling = _ref.handling,\n tax = _ref.tax,\n tax_total = _ref.tax_total,\n insurance = _ref.insurance,\n shipping_discount = _ref.shipping_discount,\n discount = _ref.discount;\n\n var breakdown = {\n item_total: subtotal || item_total,\n tax_total: tax || tax_total,\n handling: handling,\n shipping: shipping,\n insurance: insurance,\n discount: discount,\n shipping_discount: shipping_discount\n };\n\n return Object.keys(breakdown).reduce(function (newBreakdown, item) {\n var _$util$extend;\n\n if (!breakdown[item]) {\n return newBreakdown;\n }\n\n return _squid.$util.extend(newBreakdown, (_$util$extend = {}, _$util$extend[item] = amountOutputMapper(breakdown[item]), _$util$extend));\n }, {});\n};\n\nvar amountOutputMapper = exports.amountOutputMapper = function amountOutputMapper() {\n var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n amount = _ref2.amount,\n value = _ref2.value,\n currency = _ref2.currency,\n currency_code = _ref2.currency_code,\n breakdown = _ref2.breakdown;\n\n var fullAmount = {\n value: amount || value,\n currency_code: currency || currency_code\n };\n\n return breakdown ? _squid.$util.extend(fullAmount, {\n breakdown: breakdownOutputMapper(breakdown)\n }) : fullAmount;\n};\n\nvar shippingAddressMapper = function shippingAddressMapper() {\n var _ref3 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n city = _ref3.city,\n state = _ref3.state,\n country_code = _ref3.country_code,\n postal_code = _ref3.postal_code;\n\n return {\n city: city,\n state: state,\n country_code: country_code,\n postal_code: postal_code\n };\n};\n\nvar shippingOptionMapper = function shippingOptionMapper() {\n var _ref4 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n id = _ref4.id,\n label = _ref4.label,\n type = _ref4.type,\n amount = _ref4.amount,\n selected = _ref4.selected;\n\n if (!id) {\n return undefined;\n }\n return {\n id: id,\n type: type,\n label: label,\n amount: amountOutputMapper(amount),\n selected: selected\n };\n};\n\nvar payloadOutputMapper = exports.payloadOutputMapper = function payloadOutputMapper(_ref5) {\n var orderID = _ref5.orderID,\n paymentID = _ref5.paymentID,\n shipping_address = _ref5.shipping_address,\n amount = _ref5.amount,\n selected_shipping_option = _ref5.selected_shipping_option;\n return {\n orderID: orderID,\n paymentID: paymentID,\n paymentToken: orderID,\n selected_shipping_option: shippingOptionMapper(selected_shipping_option),\n shipping_address: shippingAddressMapper(shipping_address),\n amount: amountOutputMapper(amount)\n };\n};\n\n_squid.$util;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-shipping-change/src/util.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.getCartTotal = getCartTotal;\nexports.getPayload = getPayload;\nexports.updateCart = updateCart;\nexports.callOnShippingChange = callOnShippingChange;\n\nvar _xoShippingOptions = __webpack_require__(\"../node_modules/xo-shipping-options/src/index.js\");\n\nvar _outputMapper = __webpack_require__(\"../node_modules/xo-shipping-change/src/outputMapper.js\");\n\nfunction getCartTotal(cart) {\n var breakdown = Object.keys(cart.get('purchase.amounts')).reduce(function (acc, value) {\n if (value !== 'total') {\n acc[value] = (0, _outputMapper.amountOutputMapper)(cart.get('purchase.amounts.' + value));\n }\n\n return acc;\n }, {});\n\n return {\n currency_code: cart.get('purchase.amounts.total.currency_code'),\n value: cart.get('purchase.amounts.total.amount'),\n breakdown: breakdown\n };\n}\n\nfunction getPayload() {\n var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n orderID = _ref.orderID,\n paymentID = _ref.paymentID,\n _ref$shippingAddress = _ref.shippingAddress,\n shippingAddress = _ref$shippingAddress === undefined ? {} : _ref$shippingAddress,\n checkoutCart = _ref.checkoutCart;\n\n var city = shippingAddress.city,\n state = shippingAddress.state,\n country = shippingAddress.country,\n postal_code = shippingAddress.postal_code;\n\n var amount = checkoutCart ? getCartTotal(checkoutCart) : {};\n\n var shippingChangePayload = {\n orderID: orderID,\n paymentID: paymentID,\n shipping_address: {\n city: city,\n state: state,\n country_code: country,\n postal_code: postal_code\n },\n selected_shipping_option: undefined,\n amount: amount\n };\n\n return (0, _xoShippingOptions.getSelectedShippingOption)(orderID).then(function (option) {\n shippingChangePayload.selected_shipping_option = option;\n }).then(function () {\n return (0, _outputMapper.payloadOutputMapper)(shippingChangePayload);\n });\n}\n\nfunction updateCart(cart) {\n cart.invalidate();\n cart.api.cache = false;\n\n return cart.reload().then(function () {\n return getCartTotal(cart);\n });\n}\n\nfunction callOnShippingChange() {\n var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n payload = _ref2.payload,\n checkoutCart = _ref2.checkoutCart;\n\n var rejected = false;\n var shippingOptionsChanged = false;\n var shippingOptions = void 0;\n\n var shippingChangeActions = {\n reject: function reject() {\n rejected = true;\n }\n };\n\n var cartTotal = getCartTotal(checkoutCart);\n\n var changedShippingOptions = function changedShippingOptions() {\n var oldOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var newOptions = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n\n if (oldOptions.length !== newOptions.length) {\n return true;\n }\n\n return Boolean(newOptions.filter(function (key) {\n return JSON.stringify(newOptions[key]) !== JSON.stringify(oldOptions[key]);\n }).length);\n };\n\n return (0, _xoShippingOptions.getShippingOptions)(payload.orderID).then(function (options) {\n return shippingOptions = options;\n }).then(function () {\n return window.xprops.onShippingChange((0, _outputMapper.payloadOutputMapper)(payload), shippingChangeActions);\n }).then(function () {\n return (0, _xoShippingOptions.getShippingOptions)(payload.orderID);\n }).then(function (options) {\n shippingOptionsChanged = changedShippingOptions(shippingOptions, options);\n }).then(function () {\n return updateCart(checkoutCart);\n }).then(function (total) {\n var newCartTotal = getCartTotal(checkoutCart);\n var cartHasChanged = cartTotal.currency_code !== newCartTotal.currency_code || cartTotal.value !== newCartTotal.value;\n\n return {\n cartHasChanged: cartHasChanged || shippingOptionsChanged,\n rejected: rejected\n };\n });\n}\n\n_xoShippingOptions.getSelectedShippingOption;\n\n_xoShippingOptions.getShippingOptions;\n\n_outputMapper.amountOutputMapper;\n\n_outputMapper.payloadOutputMapper;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-shipping-options/src/component/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _TYPE_CONTENT_MAPPING, _TAB_CONTENT_MAPPING;\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _uiRouter = __webpack_require__(\"../node_modules/angular-ui-router/release/angular-ui-router.min.js\");\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _index = __webpack_require__(\"../node_modules/xo-models/src/checkout/index.js\");\n\n__webpack_require__(\"../node_modules/xo-address-components/src/address-display/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/accessibility/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/tabs/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/select-simple/directive.js\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-shipping-options/src/component/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\n__webpack_require__(\"../node_modules/xo-shipping-options/src/component/styles.less\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar SHIPPING_TYPE = {\n SHIPPING: 'SHIPPING',\n PICKUP: 'PICKUP'\n};\n\nvar TYPE_CONTENT_MAPPING = (_TYPE_CONTENT_MAPPING = {}, _TYPE_CONTENT_MAPPING[SHIPPING_TYPE.SHIPPING] = 'shipping.shipHome', _TYPE_CONTENT_MAPPING[SHIPPING_TYPE.PICKUP] = 'shipping.shipStore', _TYPE_CONTENT_MAPPING);\n\nvar TAB_CONTENT_MAPPING = (_TAB_CONTENT_MAPPING = {}, _TAB_CONTENT_MAPPING[SHIPPING_TYPE.SHIPPING] = 'shipping.shipItTab', _TAB_CONTENT_MAPPING[SHIPPING_TYPE.PICKUP] = 'shipping.pickItUp', _TAB_CONTENT_MAPPING);\n\nexports['default'] = _squid.$Component.extend('$xoShippingOptionsComponent', {\n tag: 'xo-shipping-options',\n template: _template2['default'],\n props: {\n token: {\n type: 'var',\n required: false\n },\n methods: {\n type: 'var',\n required: true\n },\n selectedMethod: {\n type: 'var',\n required: false\n },\n onSelect: {\n type: 'var',\n required: false\n },\n onClickEdit: {\n type: 'var',\n required: false\n }\n },\n resolve: {\n models: function models() {\n return {\n checkoutAppData: _index.$CheckoutAppDataModel.instance(this.props.token).retrieve()['catch'](_angular.noop),\n checkoutSession: _index.$CheckoutSessionModel.instance(this.props.token).retrieve()['catch'](_angular.noop)\n };\n }\n },\n\n actions: {\n // Takes the buyer to the change-shipping page\n gotoShipping: function gotoShipping() {\n if (!this.canChangeShipping) {\n return;\n }\n\n if (typeof this.onClickEdit === 'function') {\n return this.onClickEdit();\n }\n\n _uiRouter.$state.go('checkout.review.sidebar.shipping');\n },\n setTab: function setTab(tab) {\n this.actions.setStateTo(tab.id);\n },\n getTabs: function getTabs() {\n if (!this.methods || !this.methods.length) {\n return [];\n }\n\n var hasShipping = Boolean(this.methods.filter(function (method) {\n return method.type === SHIPPING_TYPE.SHIPPING;\n }).length);\n var hasPickup = Boolean(this.methods.filter(function (method) {\n return method.type === SHIPPING_TYPE.PICKUP;\n }).length);\n\n var shippingTab = {\n id: SHIPPING_TYPE.SHIPPING,\n label: (0, _squid.$renderContent)(TAB_CONTENT_MAPPING[SHIPPING_TYPE.SHIPPING]).toString()\n };\n\n var pickupTab = {\n id: SHIPPING_TYPE.PICKUP,\n label: (0, _squid.$renderContent)(TAB_CONTENT_MAPPING[SHIPPING_TYPE.PICKUP]).toString()\n };\n\n return [hasShipping && shippingTab, hasPickup && pickupTab].filter(function (tab) {\n return tab;\n });\n },\n\n\n // Switches the active tab (pickup or shipping)\n // Auto-selects method if it's the only item, or auto-selects if it was pre-selected\n // Will not auto-select if second param is false\n setStateTo: function setStateTo(state) {\n var _this = this;\n\n var autoSelect = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n\n\n this.state = state;\n\n var getSelectedTab = function getSelectedTab() {\n return _this.tabs.filter(function (tab) {\n return tab.id === _this.state;\n }).pop();\n };\n\n this.selectedTab = getSelectedTab();\n\n if (!this.methods || !this.methods.length || !this.selectedTab || !autoSelect) {\n return;\n }\n\n var hasMultiShippingMethods = this.shippingMethods && this.shippingMethods.length > 1;\n var hasMultiPickupMethods = this.pickupMethods && this.pickupMethods.length > 1;\n\n if (state === SHIPPING_TYPE.SHIPPING) {\n if (this.selectedShippingMethod) {\n return this.actions.selectShippingMethod(this.selectedShippingMethod);\n }\n\n if (!hasMultiShippingMethods) {\n return this.actions.selectShippingMethod(this.shippingMethods[0], Boolean(this.pickupMethods.length));\n }\n }\n\n if (state === SHIPPING_TYPE.PICKUP) {\n if (this.selectedPickupMethod) {\n return this.actions.selectShippingMethod(this.selectedPickupMethod);\n }\n\n if (!hasMultiPickupMethods) {\n return this.actions.selectShippingMethod(this.pickupMethods[0], Boolean(this.shippingMethods.length));\n }\n }\n },\n\n\n // Set the local selected pickup/shipping method, then call the\n // callback passed via props with the method\n selectShippingMethod: function selectShippingMethod(selected) {\n var _this2 = this;\n\n var userSelected = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n var callCallback = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n\n\n var getShippingMethodByID = function getShippingMethodByID(id) {\n if (!id) {\n return false;\n }\n\n return _this2.methods.filter(function (method) {\n return method.id === id;\n }).pop();\n };\n\n var shippingMethod = getShippingMethodByID(selected && selected.id);\n\n if (shippingMethod === undefined) {\n this.selectedPickupMethod = false;\n this.selectedShippingMethod = false;\n\n return this.onSelect(undefined, userSelected);\n }\n\n if (!this.state !== selected.type) {\n this.actions.setStateTo(SHIPPING_TYPE[selected.type], false);\n }\n\n if (this.state === SHIPPING_TYPE.SHIPPING) {\n this.selectedShippingMethod = this.formatShippingMethod(shippingMethod);\n } else if (this.state === SHIPPING_TYPE.PICKUP) {\n this.selectedPickupMethod = this.formatShippingMethod(shippingMethod);\n } else {\n this.state = SHIPPING_TYPE.SHIPPING;\n }\n\n if (callCallback) {\n this.onSelect((0, _angular.extend)({}, shippingMethod), userSelected);\n }\n },\n\n\n // Helper to map shipping methods passed by the props and\n // select only the ones that fit the 'type'.\n mapShippingMethodsByType: function mapShippingMethodsByType() {\n var _this3 = this;\n\n var shippingMethods = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var type = arguments[1];\n\n return shippingMethods.filter(function (shippingMethod) {\n return SHIPPING_TYPE[shippingMethod.type] === type;\n }).map(function (shippingMethod) {\n return _this3.formatShippingMethod(shippingMethod);\n });\n }\n },\n lifecycle: {\n enter: function enter() {\n var _this4 = this;\n\n this.formatShippingMethod = function (method) {\n if (!method || (0, _angular.equals)(method, {})) {\n return false;\n }\n\n var getFormattedLabel = function getFormattedLabel() {\n if (!method.amount || parseFloat(method.amount.value) <= 0) {\n return method.label;\n }\n\n var amountFormatted = (0, _squid.formatCurrency)(method.amount.value, method.amount.currency_code || method.amount.currency);\n\n return (0, _squid.$renderContent)('shipping.customLabelAndAmount', {\n amount: amountFormatted,\n label: method.label\n }).toString();\n };\n\n return (0, _angular.extend)({}, method, {\n label: getFormattedLabel()\n });\n };\n\n // Dropdown active flag\n this.isPickupDropdownActive = false;\n this.isShippingDropdownActive = false;\n\n this.isPickup = function () {\n return _this4.state === SHIPPING_TYPE.PICKUP;\n };\n this.isShipping = function () {\n return _this4.state === SHIPPING_TYPE.SHIPPING;\n };\n\n this.pickupLabel = (0, _squid.$renderContent)(TYPE_CONTENT_MAPPING[SHIPPING_TYPE.PICKUP]).toString();\n this.shippingLabel = (0, _squid.$renderContent)(TYPE_CONTENT_MAPPING[SHIPPING_TYPE.SHIPPING]).toString();\n\n this.selectedPickupMethod = false; // eslint-disable-line no-unused-expressions\n this.selectedShippingMethod = false; // eslint-disable-line no-unused-expressions\n\n this.formatShippingMethods = function () {\n _this4.pickupMethods = _this4.actions.mapShippingMethodsByType(_this4.methods, SHIPPING_TYPE.PICKUP);\n _this4.shippingMethods = _this4.actions.mapShippingMethodsByType(_this4.methods, SHIPPING_TYPE.SHIPPING);\n\n if (_this4.selectedMethod) {\n _this4.actions.selectShippingMethod(_this4.selectedMethod, false, false);\n } else if (_this4.methods && _this4.methods.length) {\n _this4.actions.setStateTo((_this4.shippingMethods.length ? _this4.shippingMethods : _this4.pickupMethods)[0].type);\n } else {\n _this4.state = SHIPPING_TYPE.SHIPPING;\n }\n };\n\n this.$watch('methods', function () {\n _this4.formatShippingMethods();\n });\n\n this.tabs = this.actions.getTabs();\n\n // We'll render dual tabs ONLY when there are TWO Shipping types sent by the merchant\n this.renderTabs = Boolean(this.tabs.length > 1);\n\n // when clicking outside the dropdown\n this.$on('clickBody', function () {\n _this4.isPickupDropdownActive = false;\n _this4.isShippingDropdownActive = false;\n });\n },\n populate: function populate() {\n var allowChangeShipping = this.models.checkoutAppData.get('flags.allow_change_shipping');\n\n // Only allow buyer to change shipping address if allowed\n this.canChangeShipping = typeof this.onClickEdit === 'function' || allowChangeShipping;\n this.showShippingAddress = Boolean(!this.models.checkoutAppData.flags.hide_shipping_address && this.models.checkoutSession && this.models.checkoutSession.shipping);\n }\n }\n});\n\n\n_angular.noop;\n\n_angular.extend;\n\n_angular.equals;\n\n_uiRouter.$state;\n\n_squid.$Component;\n\n_squid.$renderContent;\n\n_squid.formatCurrency;\n\n_index.$CheckoutAppDataModel;\n\n_index.$CheckoutSessionModel;\nmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ \"../node_modules/xo-shipping-options/src/component/styles.less\":\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ \"../node_modules/xo-shipping-options/src/component/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
    \\n \\n\\n \\n
    \\n\\n \\n \\n {{models.checkoutSession.shipping.name}}\\n \\n \\n {{ content('common.change') }}\\n \\n \\n
    \\n\\n
    \\n

    \\n

    \\n\\n 1\\\"\\n default-text=\\\"content('shipping.selectShippingMethod').toString()\\\"\\n label=\\\"shippingLabel\\\"\\n options=\\\"shippingMethods\\\"\\n selected-option=\\\"selectedShippingMethod\\\"\\n on-select=\\\"actions.selectShippingMethod\\\"\\n >\\n\\n
    \\n

    \\n

    \\n
    \\n\\n \\n
    \\n\\n
    \\n

    \\n

    \\n\\n 1\\\"\\n default-text=\\\"content('shipping.selectPickUpLocation').toString()\\\"\\n label=\\\"pickupLabel\\\"\\n options=\\\"pickupMethods\\\"\\n selected-option=\\\"selectedPickupMethod\\\"\\n on-select=\\\"actions.selectShippingMethod\\\">\\n \\n\\n
    \\n

    \\n

    \\n
    \\n
    \\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-shipping-options/src/index.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _directive = __webpack_require__(\"../node_modules/xo-shipping-options/src/component/directive.js\");\n\nObject.defineProperty(exports, '$xoShippingOptions', {\n enumerable: true,\n get: function get() {\n return _directive.$xoShippingOptions;\n }\n});\n\nvar _lib = __webpack_require__(\"../node_modules/xo-shipping-options/src/lib/index.js\");\n\nObject.keys(_lib).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _lib[key];\n }\n });\n});\n\n/***/ }),\n\n/***/ \"../node_modules/xo-shipping-options/src/lib/api.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.selectShippingOption = exports.getSelectedShippingOption = exports.getShippingOptions = undefined;\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\nvar _cart = __webpack_require__(\"../node_modules/xo-shipping-options/src/lib/cart.js\");\n\nvar _checkout = __webpack_require__(\"../node_modules/xo-models/src/checkout/index.js\");\n\n/*\n Shipping Option API\n\n For now, this is strictly client-side and comes from the\n incontext flow.\n*/\n\nvar getShippingOptions = exports.getShippingOptions = function getShippingOptions(token) {\n var checkoutCart = _checkout.$CheckoutCartModel.instance(token);\n\n return checkoutCart.retrieve().then(function () {\n var shippingOptions = checkoutCart.get('purchaseUnits.0.item_list.shipping_options');\n\n if (shippingOptions && shippingOptions.length) {\n _logger.$logger.info('shipping_options_from_cart', shippingOptions);\n } else {\n _logger.$logger.info('no_shipping_options_from_cart');\n return;\n }\n\n return shippingOptions.map(function (options) {\n return {\n id: options.id,\n type: options.type,\n amount: options.amount,\n label: options.label,\n selected: options.selected\n };\n });\n });\n};\n\nvar getSelectedShippingOption = exports.getSelectedShippingOption = function getSelectedShippingOption(token) {\n return getShippingOptions(token).then(function (shippingOptions) {\n if (!shippingOptions || !shippingOptions.length) {\n return undefined;\n }\n\n var selectedShippingOption = shippingOptions.filter(function (option) {\n return option.selected;\n }).pop();\n\n if (selectedShippingOption) {\n _logger.$logger.info('selected_shipping_option_from_cart', selectedShippingOption);\n return selectedShippingOption;\n } else {\n _logger.$logger.info('no_shipping_option_from_cart');\n }\n });\n};\n\nvar selectShippingOption = exports.selectShippingOption = function selectShippingOption(token, option) {\n var checkoutCart = _checkout.$CheckoutCartModel.instance(token);\n\n return checkoutCart.retrieve().then(function () {\n return getShippingOptions(token);\n }).then(function (shippingOptions) {\n\n var newShippingOptions = shippingOptions.map(function (newOption) {\n return _squid.$util.extend(newOption, {\n selected: option.id === newOption.id\n });\n });\n\n var shippingOptionsPatch = {\n field: 'shippingOptions',\n value: newShippingOptions\n };\n\n var cartAmountPatch = {\n field: 'purchaseAmount',\n value: (0, _cart.retotalCart)(token, option.amount.value)\n };\n\n return _squid.$promise.resolver(function (resolve, reject) {\n checkoutCart.action('patchCartData', {\n data: {\n id: token,\n patchEntities: [shippingOptionsPatch, cartAmountPatch]\n },\n success: function success(result) {\n return resolve(result);\n }\n });\n });\n });\n};\n\n_squid.$promise;\n\n_squid.$util;\n\n_logger.$logger;\n\n_cart.retotalCart;\n\n_checkout.$CheckoutCartModel;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-shipping-options/src/lib/cart.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.retotalCart = undefined;\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _checkout = __webpack_require__(\"../node_modules/xo-models/src/checkout/index.js\");\n\n// Re-totals the cart with new shipping costs.\n//\n// @param token: PAY token/Cart ID\n// @param shippingAmount: String float amount (Ex: '15.00')\n// @returns amount: Amount object with new total and breakdown\n\nvar retotalCart = exports.retotalCart = function retotalCart(token, shippingAmount) {\n var checkoutCart = _checkout.$CheckoutCartModel.instance(token);\n var currencyCode = checkoutCart.grossTotalAmount.currency;\n var currencyDigits = _squid.$locale.metadata && _squid.$locale.metadata.currency && _squid.$locale.metadata.currency.digits;\n var decimalDigits = isNaN(currencyDigits && currencyDigits[currencyCode]) ? 2 : currencyDigits && currencyDigits[currencyCode];\n\n // Takes an integer/string and formats as a float\n var formatAmount = function formatAmount(amount) {\n return parseFloat(amount).toFixed(decimalDigits);\n };\n\n // Sums all of the arguments\n var sumAmounts = function sumAmounts() {\n for (var _len = arguments.length, amounts = Array(_len), _key = 0; _key < _len; _key++) {\n amounts[_key] = arguments[_key];\n }\n\n return amounts.reduce(function (total, amount) {\n return formatAmount(parseFloat(total) + parseFloat(amount));\n }, '0');\n };\n\n // Sums up all of the amount details (except the total)\n var sumDetails = function sumDetails(details) {\n var blacklist = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n\n return Object.keys(details).reduce(function (value, detail) {\n var detailValue = details[detail];\n if (blacklist.indexOf(detail) !== -1) {\n return value;\n }\n switch (detail) {\n case 'shipping_discount':\n case 'discount':\n return sumAmounts(formatAmount(parseFloat(detailValue) * -1), value);\n default:\n return sumAmounts(details[detail], value);\n }\n }, '0');\n };\n\n // Simplifies the checkout cart amounts with just a simple key-value { detail: cost } format\n var oldTotal = checkoutCart.get('purchase.amounts.total.amount', formatAmount(0));\n var oldDetails = Object.keys(checkoutCart.get('purchase.amounts', {})).reduce(function (details, name) {\n var _extend;\n\n var amount = checkoutCart.get('purchase.amounts.' + name + '.amount', formatAmount(0));\n return name === 'total' ? details : (0, _angular.extend)({}, details, (_extend = {}, _extend[name] = amount, _extend));\n }, {});\n\n // Create a new amount details object with new shipping cost, and subtotal (if it was left out)\n var newDetails = (0, _angular.extend)({}, oldDetails, {\n shipping: formatAmount(shippingAmount),\n subtotal: formatAmount(parseFloat(oldTotal) - parseFloat(sumDetails(oldDetails, ['subtotal', 'total'])))\n });\n\n // Sum up all of the new amount details for the new total\n var newTotal = sumDetails(newDetails, ['total']);\n\n return {\n currency: currencyCode,\n total: newTotal,\n details: newDetails\n };\n};\n\n_squid.$locale;\n\n_angular.extend;\n\n_checkout.$CheckoutCartModel;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-shipping-options/src/lib/index.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _api = __webpack_require__(\"../node_modules/xo-shipping-options/src/lib/api.js\");\n\nObject.keys(_api).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _api[key];\n }\n });\n});\n\nvar _cart = __webpack_require__(\"../node_modules/xo-shipping-options/src/lib/cart.js\");\n\nObject.keys(_cart).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _cart[key];\n }\n });\n});\n\n/***/ }),\n\n/***/ \"../node_modules/xo-third-party-components/src/thirdParty-info/index.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.thirdPartyExperience = exports.venmoExperience = exports.thirdPartyInfo = undefined;\nexports.redirect = redirect;\nexports.getUserAgent = getUserAgent;\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\nvar _auth = __webpack_require__(\"../node_modules/xo-models/src/auth/index.js\");\n\nvar _index = __webpack_require__(\"../node_modules/xo-device-info/dist/index.js\");\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _checkout = __webpack_require__(\"../node_modules/xo-models/src/checkout/index.js\");\n\nvar _sessionStorage = __webpack_require__(\"../node_modules/xo-third-party-components/src/thirdParty-info/sessionStorage.js\");\n\nvar _sessionStorage2 = _interopRequireDefault(_sessionStorage);\n\nvar _venmoModels = __webpack_require__(\"../node_modules/xo-third-party-components/src/venmo-models/index.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n// TODO: Check how the cookie should be read/set (through meta? if read on server side)\nvar PWV_COOKIE = 'pwv';\nvar BA = 'BILLING_AGREEMENT';\n\nvar cancelLogoutEventListener = _angular.$rootScope.$on('logout', function (event, args) {\n\n // disable venmo models when ready\n var token = _angular.$rootScope.token;\n\n _venmoModels.$VenmoUserModel.instance(token).invalidate();\n _venmoModels.$VenmoOnboardModel.instance(token).invalidate();\n thirdPartyExperience.resetThirdPartyExperience();\n});\n\n_angular.$rootScope.$on('$destroy', cancelLogoutEventListener);\n\nvar readCookie = function readCookie(name) {\n var nameEQ = name + '=';\n var ca = document.cookie.split(';');\n\n for (var i = 0, len = ca.length; i < len; i++) {\n var c = ca[i];\n\n while (c.charAt(0) === ' ') {\n c = c.substring(1, c.length);\n }\n if (c.indexOf(nameEQ) === 0) {\n return c.substring(nameEQ.length, c.length);\n }\n }\n return null;\n};\n\nvar thirdPartyInfo = exports.thirdPartyInfo = {\n /**\n * @name isThirdPartyEligible\n * @returns {Promise}\n */\n isThirdPartyEligible: function isThirdPartyEligible() {\n var _this = this;\n\n return this.isBaiduEligible().then(function (baiduEligibility) {\n return _this.isVenmoEligible() || baiduEligibility;\n });\n },\n\n\n /**\n * @name isBaiduEligible\n * @returns {Promise}\n */\n isBaiduEligible: function isBaiduEligible() {\n return _checkout.$FlowEligibilityModel.instance(_angular.$rootScope.token, {\n params: {\n geolocation: _squid.$meta.geolocation\n }\n }).retrieve().then(function (eligibility) {\n _logger.$logger.info('baidu_eligibility', eligibility);\n return eligibility.baiduWallet;\n });\n },\n\n\n /**\n * @name isVenmoEligible\n * @description Handler to call to determine if user can use Venmo\n * @returns {Boolean}\n */\n isVenmoEligible: function isVenmoEligible() {\n var appData = _checkout.$CheckoutAppDataModel.instance(_angular.$rootScope.token);\n var cart = _checkout.$CheckoutCartModel.instance(_angular.$rootScope.token);\n var merchantCountry = appData.get('merchant.merchant_country');\n var isProcessorDeclined = appData.get('flags.processor_declined');\n var isInvoice = appData.get('flags.is_invoice_flow');\n var isBillingAgreement = cart.isBilling();\n var isMobile = _index.$DeviceInfo.isDevice();\n var isVenmoCookie = this.isVenmoCookiePresent();\n var isSFAuthenticationSession = _squid.$util.param('bt_int_type') === '2';\n var isMSPTransaction = cart.isMultiSellerPurchase();\n var eligibilityParams = {\n isMobile: isMobile,\n isVenmoCookie: isVenmoCookie,\n isNotInvoice: !isInvoice,\n isNotProcessorDeclined: !isProcessorDeclined,\n isNotBillingAgreement: !isBillingAgreement,\n isUSMerchant: merchantCountry === 'US',\n isNotSFAuthenticationSession: !isSFAuthenticationSession,\n isNotMSPTransaction: !isMSPTransaction\n };\n\n var venmoEligibility = Object.keys(eligibilityParams).filter(function (param) {\n return !eligibilityParams[param];\n });\n venmoEligibility = venmoEligibility && venmoEligibility.length > 0 ? 'ineligible:' + venmoEligibility.join() : 'eligible';\n\n _logger.$logger.info('venmo_eligibility', venmoEligibility);\n\n _logger.$logger.info('checkout_fpti', {\n 'is_venmo_cookie': isVenmoCookie ? '1' : '0',\n 'eligibility_reason': venmoEligibility\n });\n\n return Boolean(venmoEligibility === 'eligible');\n },\n\n\n /**\n * @name isVenmoCookiePresent\n * @returns {Boolean}\n */\n isVenmoCookiePresent: function isVenmoCookiePresent() {\n var cookieValue = readCookie(PWV_COOKIE);\n\n return Boolean(cookieValue);\n },\n\n\n /**\n * @name buildVenmoURL\n * @description Build the venmo URL scheme\n * @returns {String}\n */\n buildVenmoURL: function buildVenmoURL() {\n // SCHEME needs to change according to old or new experience\n // const linkType = venmoUrlSchemeType();\n var SCHEME = _squid.$config.urls && _squid.$config.urls.venmoAppSwitchURL['universal'];\n var VENMO_ROUTE = '#/checkout/venmo';\n var LOGIN_ROUTE = '#/checkout/login?venmoError=true';\n var cartModel = _checkout.$CheckoutCartModel.instance(_angular.$rootScope.token);\n\n var token = void 0;\n var total = void 0;\n var currency = void 0;\n var intent = void 0;\n\n // Send BA token when it's BA without Purchase\n if (cartModel.get('billing.ba_token') && cartModel.get('purchase.amounts.total.amount', '0') === '0') {\n token = cartModel.get('billing.ba_token');\n } else {\n // Send EC token when it's BA without purchase.\n token = _angular.$rootScope.token;\n }\n\n // For BA: setting billing agreement as payment_action explicitly, not relying on payment action returned in cart\n intent = cartModel.billing ? BA : cartModel.payment_action;\n\n // total cannot be undefined, outdated venmo app clients will crash otherwise\n total = cartModel.get('purchase.amounts.total.amount', '0');\n currency = cartModel.get('purchase.amounts.total.currency_code', 'none');\n\n var params = (0, _angular.$httpParamSerializer)({\n 'x-success': _angular.$location.absUrl().replace(/#.*$/, VENMO_ROUTE),\n 'x-failure': _angular.$location.absUrl().replace(/#.*$/, LOGIN_ROUTE),\n 'ua': _angular.$window.navigator.userAgent,\n 'merchant_id': _checkout.$CheckoutPayeeModel.instance(_angular.$rootScope.token).getId(),\n 'token': token,\n total: total,\n currency: currency, // can be undefined for BA w/o purchase\n intent: intent\n });\n\n return SCHEME + '?' + params;\n }\n};\n\nvar venmoExperienceKey = 'VENMO_EXPERIENCE';\n\n// Get whether a token is marked as Venmo experience.\nvar venmoExperience = exports.venmoExperience = {\n set: function set(token) {\n var sessionStorage = (0, _sessionStorage2['default'])();\n\n sessionStorage.setItem(venmoExperienceKey, token);\n },\n get: function get(token) {\n var auth = _auth.$AuthModel.instance();\n var sessionStorage = (0, _sessionStorage2['default'])();\n\n if (auth.logged_in && auth.guest && // Check if Venmo guest account logged in\n sessionStorage.getItem(venmoExperienceKey) === token) {\n return true;\n } else {\n this.set(null);\n return false;\n }\n }\n};\n\nvar allowedThirdPartyExperiences = {\n VENMO: 'VENMO_EXPERIENCE',\n BAIDU: 'BAIDU_EXPERIENCE'\n};\n\nvar THIRD_PARTY_NAMESPSACE = 'THIRD_PARTY_EXPERIENCE';\n\nvar thirdPartyExperience = exports.thirdPartyExperience = {\n setAsVenmoExperience: function setAsVenmoExperience(token) {\n var _JSON$stringify;\n\n var sessionStorage = (0, _sessionStorage2['default'])();\n var payload = JSON.stringify((_JSON$stringify = {}, _JSON$stringify[token] = allowedThirdPartyExperiences['VENMO'], _JSON$stringify));\n\n sessionStorage.setItem(THIRD_PARTY_NAMESPSACE, payload);\n },\n setAsBaiduExperience: function setAsBaiduExperience(token) {\n var _JSON$stringify2;\n\n var sessionStorage = (0, _sessionStorage2['default'])();\n var payload = JSON.stringify((_JSON$stringify2 = {}, _JSON$stringify2[token] = allowedThirdPartyExperiences['BAIDU'], _JSON$stringify2));\n\n sessionStorage.setItem(THIRD_PARTY_NAMESPSACE, payload);\n },\n isThirdPartyExperience: function isThirdPartyExperience(token) {\n var availableExperiences = [];\n\n for (var key in allowedThirdPartyExperiences) {\n availableExperiences.push(allowedThirdPartyExperiences[key]);\n }\n\n var currentExperience = this.getExperience(token);\n\n return Boolean(availableExperiences.indexOf(currentExperience) > -1);\n },\n getExperience: function getExperience(token) {\n var auth = _auth.$AuthModel.instance();\n var sessionStorage = (0, _sessionStorage2['default'])();\n\n // if logged in, and guest, we return the experience if any\n if (auth.logged_in && auth.guest && sessionStorage.getItem(THIRD_PARTY_NAMESPSACE)) {\n var payload = JSON.parse(sessionStorage.getItem(THIRD_PARTY_NAMESPSACE) || '');\n\n return payload && payload[token] || 'MEMBER_EXPERIENCE';\n } else if (auth.logged_in && auth.tenant === 'VENMO') {\n return allowedThirdPartyExperiences['VENMO'];\n } else {\n // If not logged in, we reset the third party experience\n this.resetThirdPartyExperience();\n return 'MEMBER_EXPERIENCE';\n }\n },\n resetThirdPartyExperience: function resetThirdPartyExperience() {\n var sessionStorage = (0, _sessionStorage2['default'])();\n\n sessionStorage.removeItem(THIRD_PARTY_NAMESPSACE);\n }\n};\n\n// used to trigger app switches and flush the logs before doing so\nfunction redirect(url) {\n return _logger.$logger.flush().then(function () {\n _angular.$window.location.replace(url);\n });\n}\n\n// fetching browser's user agent.\nfunction getUserAgent() {\n return _angular.$window.navigator.userAgent;\n}\n\n_squid.$config;\n\n_squid.$util;\n\n_squid.$meta;\n\n_logger.$logger;\n\n_auth.$AuthModel;\n\n_index.$DeviceInfo;\n\n_angular.$rootScope;\n\n_angular.$window;\n\n_angular.$location;\n\n_angular.$httpParamSerializer;\n\n_checkout.$CheckoutPayeeModel;\n\n_checkout.$CheckoutCartModel;\n\n_checkout.$CheckoutAppDataModel;\n\n_checkout.$FlowEligibilityModel;\n\n_venmoModels.$VenmoOnboardModel;\n\n_venmoModels.$VenmoUserModel;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-third-party-components/src/thirdParty-info/sessionStorage.js\":\n/***/ (function(module, exports) {\n\n\n\nexports.__esModule = true;\nexports['default'] = getSessionStorage;\nvar store = {};\n\n// Polyfill for sessionStorage if not available. Simple variable store\n\nfunction getSessionStorage() {\n try {\n\n window['sessionStorage'].setItem('__feature_test__', '0');\n window['sessionStorage'].removeItem('__feature_test__');\n return window.sessionStorage;\n } catch (err) {\n return {\n getItem: function getItem(key) {\n if (arguments < 1) {\n throw new Error('1 argument required');\n }\n return store[key];\n },\n setItem: function setItem(key, val) {\n if (arguments < 2) {\n throw new Error('2 arguments required');\n }\n store[key] = val;\n },\n removeItem: function removeItem(key) {\n\n delete store[key];\n }\n };\n }\n}\nmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ \"../node_modules/xo-third-party-components/src/venmo-models/index.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.$VenmoTransactionEligibility = exports.$VenmoSupplementaryInfo = exports.$VenmoUserModel = exports.$VenmoOnboardModel = undefined;\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar $VenmoOnboardModel = exports.$VenmoOnboardModel = _squid.$Model.extend('$VenmoOnboardModel', {\n api: new _squid.$Api({\n uri: '/api/venmo/onboard'\n })\n});\n\nvar $VenmoUserModel = exports.$VenmoUserModel = _squid.$Model.extend('$VenmoUserModel', {\n api: new _squid.$Api({\n uri: '/api/venmo/user'\n })\n});\n\nvar $VenmoSupplementaryInfo = exports.$VenmoSupplementaryInfo = _squid.$Model.extend('$VenmoSupplementaryInfo', {\n api: new _squid.$Api({\n uri: '/api/venmo/address'\n }),\n\n serialize: function serialize() {\n\n return {\n user: {\n first_name: this.user && this.user.first_name && this.user.first_name.trim(),\n last_name: this.user && this.user.last_name && this.user.last_name.trim()\n },\n billing: {\n line1: this.billing && this.billing.line1 && this.billing.line1.trim(),\n line2: this.billing && this.billing.line2 && this.billing.line2.trim(),\n city: this.billing && this.billing.city && this.billing.city.trim(),\n state: this.billing && this.billing.state && this.billing.state.trim(),\n postal_code: this.billing && this.billing.postal_code && this.billing.postal_code.trim(),\n normalization_status: this.billing && this.billing.normalization_status && this.billing.normalization_status.trim(),\n country: this.billing && this.billing.country && this.billing.country.trim()\n },\n shipping: {\n line1: this.shipping && this.shipping.line1 && this.shipping.line1.trim(),\n line2: this.shipping && this.shipping.line2 && this.shipping.line2.trim(),\n city: this.shipping && this.shipping.city && this.shipping.city.trim(),\n state: this.shipping && this.shipping.state && this.shipping.state.trim(),\n postal_code: this.shipping && this.shipping.postal_code && this.shipping.postal_code.trim(),\n normalization_status: this.shipping && this.shipping.normalization_status && this.shipping.normalization_status.trim(),\n country: this.shipping && this.shipping.country && this.shipping.country.trim()\n },\n shipToBilling: this.shipToBilling\n };\n }\n});\n\nvar $VenmoTransactionEligibility = exports.$VenmoTransactionEligibility = _squid.$Model.extend('$VenmoTransactionEligibility', {\n api: new _squid.$Api({\n uri: '/api/venmo/:id/eligibility'\n })\n});\n\nangular.value(\"$VenmoOnboardModel\", $VenmoOnboardModel);\nangular.value(\"$VenmoUserModel\", $VenmoUserModel);\nangular.value(\"$VenmoSupplementaryInfo\", $VenmoSupplementaryInfo);\nangular.value(\"$VenmoTransactionEligibility\", $VenmoTransactionEligibility);\n_squid.$Model;\n\n_squid.$Api;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-title/dist/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _angular2 = _interopRequireDefault(_angular);\n\nvar _template = __webpack_require__(\"../node_modules/xo-title/dist/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n_angular2['default'].module().directive('xoTitle', [function () {\n return {\n template: _template2['default'],\n restrict: 'E',\n scope: {\n titleTxt: '@?',\n className: '@?',\n tagName: '@?'\n },\n link: function link($scope, $element) {\n if ($scope.tagName) {\n var newEl = document.createElement($scope.tagName || 'h1');\n\n newEl.className = $scope.className || 'alpha';\n newEl.textContent = '{{ titleTxt }}';\n (0, _angular.$compile)(newEl)($scope);\n $element.empty().append(newEl);\n }\n }\n };\n}]);\n\n/***/ }),\n\n/***/ \"../node_modules/xo-title/dist/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"

    \\n {{ titleTxt }}\\n

    \\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-tracking/dist/builder.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(module, __dirname, __filename) {\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _angular2 = _interopRequireDefault(_angular);\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _model = __webpack_require__(\"../node_modules/xo-tracking/dist/model.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n(function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n})(window.angular);\n\n_angular2['default'].module().factory('$FptiBuilder', function () {\n /**\n * Build the front-end FPTI event from three data sources\n * 1. the per-product configuration\n * 2. the buzname defined per-route\n * 3. the additional attributes that only available at a specific checkpoint\n *\n */\n\n return _squid.$Class.extend('FptiBuilder', {\n\n resolvePageQualifier: function resolvePageQualifier(trackingData) {\n // The pages can populated pageQualifier to override the default one\n this.pageQualifier = trackingData && trackingData.pageQualifier ? trackingData.pageQualifier\n // because 'fullpage' has been widely embedded into routes\n // we had better to keep it as a place holder\n : 'fullpage'; // update later if it's in-context\n },\n\n build: function build() {\n\n if (!this.trackingData && !this.error) {\n // do nothing if neither page nor error tracking\n return this;\n }\n\n this.resolvePageQualifier(this.trackingData);\n\n this._dataObj = new _model.$FptiDataModel().decorate('base', this.baseData).decorate('buzname', this.trackingData, this.pageQualifier, undefined, this.productOverride).decorate('templateName', this.trackingData, this.pageQualifier).decorate('pageGoal', this.trackingData.pageGoal).decorate('ecToken', this.trackingData.token).decorate('correlationId', (0, _squid.$getLatestCorrelationID)()).decorate('uuid', _model.$CalDataModel.getUUID()).decorate('fieldError', this.error).decorate('pageError', this.error).decorate('pageStartTime', new Date().getTime()).decorate('pxptrackingdata', this.trackingData.pxpData).decorate('transition_time', this.transition_time).decorate('cust', this.cust).decorate('dc', this.dc).decorate('az', this.az).decorate('comp', this.comp).getDataObject(this.isInContext);\n\n return this;\n },\n\n toString: function toString() {\n var dataAry = [];\n\n _angular2['default'].forEach(this._dataObj, function (v, k) {\n dataAry.push(k + '=' + v);\n });\n\n return dataAry.join('&');\n }\n });\n});\n\n_squid.$getLatestCorrelationID;\n\n_squid.$Class;\n\n_model.$FptiDataModel;\n\n_model.$CalDataModel;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/webpack/buildin/module.js\")(module), \"../node_modules/xo-tracking/dist\", \"../node_modules/xo-tracking/dist/builder.js\"))\n\n/***/ }),\n\n/***/ \"../node_modules/xo-tracking/dist/button.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(module, __dirname, __filename) {\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _angular2 = _interopRequireDefault(_angular);\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _index = __webpack_require__(\"../node_modules/xo-models/src/checkout/index.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n(function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n})(window.angular);\n\n_angular2['default'].module().factory('$ButtonTrackingService', function () {\n var _beaconUrl = 'https://www.paypalobjects.com/en_US/i/scr/btn_tracking_pixel.gif?teal=null&Id=null&ru=null';\n var _beaconParams = ['fltk', 'calc', 'page', 'xe', 'xt'];\n var _alreadyFired = false;\n\n function _strToElements(str) {\n var elements = {};\n\n if (str && str.length) {\n str.split('&').forEach(function (param) {\n var nvp = param.split('=');\n\n elements[nvp[0]] = nvp[1];\n });\n }\n return elements;\n }\n\n function _fireButtonTrackingBeacon(elements) {\n var url = _beaconUrl;\n var xoData = {};\n\n function buildParam(param, value) {\n var p = '&' + param + '=' + (value ? value : 'null');\n\n return p;\n }\n\n function getGUIID(ts) {\n return _strToElements(ts).vr;\n }\n\n function addToDocument(uri) {\n var img = document.createElement('img');\n\n img.setAttribute('src', uri);\n document.body.appendChild(img);\n }\n\n // Get some params from FPTI data.\n _beaconParams.forEach(function (param) {\n url += buildParam(param, elements[param]);\n });\n\n // Build the rest of the params.\n url += buildParam('fpti', getGUIID(_squid.$cookies && _squid.$cookies.ts));\n url += buildParam('WWW_AKA_MVT_BUTTONS', _squid.$cookies && _squid.$cookies.WWW_AKA_MVT_BUTTONS);\n url += buildParam('WWW_AKA_MVT_ID', _squid.$cookies && _squid.$cookies.WWW_AKA_MVT_ID);\n url += buildParam('ip', _squid.$meta && _squid.$meta.ipaddress);\n\n if (_angular.$rootScope.token) {\n (0, _squid.$populate)(xoData, {\n payee: _index.$CheckoutPayeeModel.instance(_angular.$rootScope.token),\n appData: _index.$CheckoutAppDataModel.instance(_angular.$rootScope.token)\n }).then(function () {\n url += buildParam('mrid', xoData.payee && xoData.payee.getId());\n url += buildParam('calf', xoData.appData && xoData.appData.flow_id);\n addToDocument(url);\n });\n } else {\n url += buildParam('mrid', null);\n url += buildParam('calf', null);\n addToDocument(url);\n }\n }\n\n return {\n fireBeacon: function fireBeacon(fptiData) {\n if (!_alreadyFired && fptiData) {\n var elements = _strToElements(fptiData);\n\n // Fire the beacon if this is a page render.\n if (elements.page) {\n _alreadyFired = true;\n return _fireButtonTrackingBeacon(elements);\n }\n }\n },\n resetAlreadyFired: function resetAlreadyFired() {\n _alreadyFired = false;\n }\n };\n});\n\n_angular.$rootScope;\n\n_squid.$meta;\n\n_squid.$cookies;\n\n_squid.$populate;\n\n_index.$CheckoutAppDataModel;\n\n_index.$CheckoutPayeeModel;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/webpack/buildin/module.js\")(module), \"../node_modules/xo-tracking/dist\", \"../node_modules/xo-tracking/dist/button.js\"))\n\n/***/ }),\n\n/***/ \"../node_modules/xo-tracking/dist/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function($) {\n\nvar _uiRouter = __webpack_require__(\"../node_modules/angular-ui-router/release/angular-ui-router.min.js\");\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _angular2 = _interopRequireDefault(_angular);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n_angular2['default'].module('tracking.directive', ['ui.router']).directive('trackSubmit', function () {\n return {\n restrict: 'AE',\n link: function link($scope, element, attr) {\n element.on('mousedown', function (event) {\n var transition = attr && attr.trackSubmit;\n var trackSubmit = {\n currentRoute: _uiRouter.$state.current,\n transition: transition,\n errors: []\n };\n\n _angular2['default'].forEach($('input.ng-invalid, select.ng-invalid'), function (el) {\n var elem = $(el);\n var elementId = elem.attr('id');\n var elementName = elem.attr('name');\n var errorKey = elem.attr('data-error-key');\n var errorText = elem.has('required') ? 'required' : 'no error key';\n var fieldName = elementId ? elementId : elementName;\n\n if (!fieldName) {\n var elementModel = elem.attr('ng-model');\n\n fieldName = elementModel ? elementModel : 'unnamed-field';\n }\n\n trackSubmit.errors.push({\n fieldName: fieldName,\n errorMessage: errorKey ? errorKey : errorText\n });\n });\n\n _angular.$rootScope.$broadcast('trackSubmit', trackSubmit);\n });\n }\n };\n}).directive('trackLink', function () {\n return {\n restrict: 'AE',\n link: function link($scope, element, attr) {\n element.on('mousedown', function (event) {\n var state = attr && attr.trackLink;\n\n if (state) {\n var trackLink = {\n currentRoute: _uiRouter.$state.current,\n transition: state\n };\n\n _angular.$rootScope.$broadcast('trackLink', trackLink);\n }\n });\n }\n };\n}).directive('trackClick', function () {\n return {\n restrict: 'AE',\n link: function link($scope, element, attr) {\n element.on('click', function (event) {\n var state = attr && attr.trackClick;\n\n if (state) {\n var trackClick = {\n currentRoute: _uiRouter.$state.current,\n transition: state\n };\n _angular.$rootScope.$broadcast('trackClick', trackClick);\n }\n });\n }\n };\n}).directive('trackInput', function () {\n /*\n * Track an input tag with track-input attribute\n * you can use the value of track-input attribute as\n * a tracking attr Eg.: track-input=\"xo_guest_yes\"\n */\n return {\n restrict: 'AE',\n link: function link($scope, element, attr) {\n element.on('click', function (event) {\n var state = void 0;\n\n if (event.target.type === 'checkbox') {\n if (event.target.checked) {\n state = attr && attr.trackInput + '_CHECKED';\n } else {\n state = attr && attr.trackInput + '_UNCHECKED';\n }\n } else {\n state = attr && attr.trackInput;\n }\n\n var trackInput = {\n currentRoute: _uiRouter.$state.current,\n page: 'main:ec:hermes::fullpage-billing:guest:aries:'\n };\n\n if (state) {\n trackInput.transition = state;\n }\n\n _angular.$rootScope.$broadcast('trackInput', trackInput);\n });\n }\n };\n});\n\n_uiRouter.$state;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/jquery/dist/jquery.min.js\")))\n\n/***/ }),\n\n/***/ \"../node_modules/xo-tracking/dist/fpti.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(module, __dirname, __filename) {\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _angular2 = _interopRequireDefault(_angular);\n\nvar _builder = __webpack_require__(\"../node_modules/xo-tracking/dist/builder.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n(function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n})(window.angular);\n\n_angular2['default'].module().factory('$fpti', function () {\n var _beaconUrl = void 0;\n\n // Logic to switch between production/staging urls. This way we don't pollute live logs,\n // and we are able to test on stage using the fpti log viewing tool.\n if (_squid.$config.deploy.isLocal() || _squid.$config.deploy.isStage()) {\n _beaconUrl = 'https://tracking.qa.paypal.com/webapps/tracking/ts'; // stage url\n } else {\n _beaconUrl = _squid.$config.urls && _squid.$config.urls.fptiBeaconUrl;\n }\n\n return {\n // Get all the tracking data defined at the page level\n getPageTrackingData: function getPageTrackingData(route) {\n route = route || {};\n\n var trackingData = route.trackingData || {};\n var routeParent = route.parent;\n\n trackingData.token = _angular.$rootScope.token;\n\n while (routeParent) {\n trackingData = _angular2['default'].merge({}, routeParent.trackingData || {}, trackingData);\n routeParent = routeParent.parent;\n }\n return trackingData;\n },\n\n setupDataString: function setupDataString(route, err, data) {\n var trackingData = this.getPageTrackingData(route);\n var PAYPAL = window && window.PAYPAL;\n\n var fptiData = void 0;\n\n if (PAYPAL && typeof PAYPAL.analytics !== 'undefined') {\n PAYPAL.core = PAYPAL.core || {};\n\n var payload = {\n baseData: window.meta.fpti,\n trackingData: trackingData,\n error: err,\n isInContext: _angular.$rootScope.miniBrowser\n };\n\n _angular2['default'].extend(payload, data || {});\n fptiData = new _builder.$FptiBuilder(payload).build().toString();\n\n // FPTI client side tracking only if we have template\n if (route && route.template && _angular2['default'].isFunction(PAYPAL.analytics.setup)) {\n PAYPAL.core.pta = PAYPAL.analytics.setup({\n data: fptiData,\n url: _beaconUrl\n });\n }\n }\n return fptiData;\n }\n };\n}).factory('$fptiError', function () {\n function stringifyErrorMessage(msg) {\n return encodeURIComponent(_angular2['default'].isString(msg) ? msg.split('\\n').slice(0, 2).join('@') // Get the first two lines of stack\n : (_angular2['default'].toJson(msg) || 'undefined').substring(0, 128));\n }\n\n return _squid.$Error.extend({\n construct: function construct(err) {\n if (!err) {\n return;\n }\n this.type = err.type;\n this.field = err.field;\n this.msg = stringifyErrorMessage(err.message || err.error);\n this.code = err.code || err.cause;\n }\n });\n});\n\n_squid.$config;\n\n_squid.$Error;\n\n_builder.$FptiBuilder;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/webpack/buildin/module.js\")(module), \"../node_modules/xo-tracking/dist\", \"../node_modules/xo-tracking/dist/fpti.js\"))\n\n/***/ }),\n\n/***/ \"../node_modules/xo-tracking/dist/index.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\n/**\n * xo-tracking encapsulates all the details about instrumentation\n * and only register event listeners during bootstrap\n */\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/angular/angular.min.js\"), __webpack_require__(\"../node_modules/xo-tracking/dist/listener.js\"), __webpack_require__(\"../node_modules/xo-tracking/dist/directive.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (angular) {\n\n // Declare the dependency to register the listeners\n return angular.module('tracking', ['tracking.listener', 'tracking.directive']);\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n/***/ }),\n\n/***/ \"../node_modules/xo-tracking/dist/listener.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function($, console) {\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _angular2 = _interopRequireDefault(_angular);\n\nvar _index = __webpack_require__(\"../node_modules/xo-models/src/auth/index.js\");\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\nvar _model = __webpack_require__(\"../node_modules/xo-tracking/dist/model.js\");\n\nvar _builder = __webpack_require__(\"../node_modules/xo-tracking/dist/builder.js\");\n\nvar _button = __webpack_require__(\"../node_modules/xo-tracking/dist/button.js\");\n\nvar _fpti = __webpack_require__(\"../node_modules/xo-tracking/dist/fpti.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n_angular2['default'].module().run(function () {\n // eslint-disable-line max-statements\n var token = window.meta.token;\n // logAppName is the appname from meta.js. if the logAppName is not defined, default it to 'appNameNotDefined'.\n var appName = _squid.$meta.logAppName || 'appNameNotDefined';\n var addTrackingData = function addTrackingData(object) {\n return _squid.$util.extend(object, {\n dc: _squid.$meta.dc,\n az: _squid.$meta.az,\n cust: _index.$AuthModel.instance().buyer_id || '',\n comp: appName\n });\n };\n var cplSettings = _squid.$config.enableCPL;\n var passesCplThrottle = cplSettings && (typeof cplSettings.throttle === 'undefined' || (0, _squid.$experiment)('cpl_tracking', cplSettings.throttle, token));\n var cplEnabled = passesCplThrottle || _squid.$util.params().forceEnableCPL;\n\n function logTransition(state) {\n return !(state.trackingData && state.trackingData.suppressTransitionLog);\n }\n\n function logStateExit(state) {\n return state.trackingData && state.trackingData.trackStateExit;\n }\n\n function getBeaconUrl() {\n // Logic to switch between production/staging urls. This way we don't pollute live logs,\n // and we are able to test on stage using the fpti log viewing tool.\n return _squid.$config.deploy.isLocal() || _squid.$config.deploy.isStage() ? 'https://tracking.qa.paypal.com/webapps/tracking/ts' // stage url\n : _squid.$config.urls && _squid.$config.urls.fptiBeaconUrl;\n }\n\n /*\n * Triggers pa.js recordClick with custom parameters\n */\n function fptiCustomRecordClick(route, customData) {\n var analyticsInstance, fptiData, fptiDataObj;\n var PAYPAL = window.PAYPAL;\n\n if (PAYPAL && typeof PAYPAL.analytics !== 'undefined') {\n PAYPAL.core = PAYPAL.core || {};\n\n analyticsInstance = new PAYPAL.analytics.Analytics();\n\n fptiData = new _builder.$FptiBuilder({\n trackingData: route.trackingData,\n isInContext: _angular.$rootScope.miniBrowser,\n comp: appName\n // ... Other flow data pass-in here to resolve page qualifier\n }).build();\n\n // Grab the fpti data object and extend with custom params\n // The fpti data obj should include pxp params as well\n fptiDataObj = fptiData._dataObj;\n $.extend(fptiDataObj, customData);\n\n analyticsInstance.setRequestData(fptiDataObj);\n analyticsInstance.recordClick({\n url: getBeaconUrl()\n });\n }\n }\n\n _angular.$rootScope.$on('trackInput', function (event, trackInput) {\n if (!trackInput) {\n return;\n }\n var customData = {\n link: trackInput && trackInput.transition,\n page: trackInput && trackInput.page\n };\n\n fptiCustomRecordClick(trackInput.currentRoute, customData);\n });\n\n _angular.$rootScope.$on('trackClick', function (event, trackClick) {\n if (!trackClick) {\n return;\n }\n var customData = {\n link: trackClick && trackClick.transition\n };\n\n fptiCustomRecordClick(trackClick.currentRoute, customData);\n });\n\n _angular.$rootScope.$on('trackSubmit', function (event, trackSubmit) {\n if (!trackSubmit) {\n return;\n }\n var currentRoute = trackSubmit && trackSubmit.currentRoute;\n var routeName = currentRoute ? currentRoute.name : 'noRoute';\n\n _logger.$logger.info('track_submit', {\n route_name: routeName\n // ID stuff here later\n });\n\n if (logTransition(currentRoute)) {\n routeName = routeName.replace(/\\./g, '_');\n var state = currentRoute.trackingData && currentRoute.trackingData.fptiState || routeName;\n var transition = trackSubmit.transition || state;\n\n _logger.$logger.info(routeName + '_exit', {\n fptiState: state,\n fptiTransition: transition\n });\n }\n\n if (trackSubmit.errors && trackSubmit.errors.length) {\n var fptiFieldErrors = JSON.stringify(trackSubmit.errors);\n\n _logger.$logger.info('checkout_fpti', {\n form_field_errors: fptiFieldErrors\n });\n }\n\n var errors = trackSubmit.errors;\n\n if (_angular2['default'].isArray(errors)) {\n errors.forEach(function (err) {\n _logger.$logger.debug('track_submit_error', err);\n if (_fpti.$fpti) {\n _fpti.$fpti.setupDataString(currentRoute, new _fpti.$fptiError({\n type: 'fieldError',\n field: err.fieldName,\n code: err.errorMessage\n }));\n }\n });\n\n if (errors.length) {\n _logger.$logger.flush(true);\n }\n }\n });\n\n _angular.$rootScope.$on('unhandled_error', function (event, exception) {\n if (_fpti.$fpti) {\n _fpti.$fpti.setupDataString(exception.currentRoute, new _fpti.$fptiError({\n type: 'pageError',\n message: exception.message,\n code: exception.cause\n }));\n }\n });\n\n _angular.$rootScope.$on('trackLink', function (event, trackLink) {\n if (!trackLink) {\n return;\n }\n\n var currentRoute = trackLink.currentRoute;\n var routeName = (currentRoute ? currentRoute.name : 'noRoute').replace(/\\./g, '_');\n var state = currentRoute.trackingData && currentRoute.trackingData.fptiState || routeName;\n\n _logger.$logger.info(routeName + '_exit', {\n fptiState: state,\n fptiTransition: trackLink.transition\n });\n });\n\n _angular.$rootScope.$on('$transition', function (event, data) {\n (0, _angular.$timeout)(function () {\n if (_fpti.$fpti) {\n var fptiData = _fpti.$fpti.setupDataString(data.toState, null, addTrackingData({\n transition_time: data.duration\n }));\n\n // This seems to conflict with CPL data, so don't fire if CPL\n if (!cplEnabled) {\n // Fire and forget button tracking beacon.\n _button.$ButtonTrackingService.fireBeacon(fptiData);\n }\n }\n });\n });\n\n _angular.$rootScope.$on('$stateChangeStart', function (event, toState, toParams, fromState) {\n var from = fromState && fromState.name.replace(/\\./g, '_');\n var to = toState && toState.name.replace(/\\./g, '_');\n\n if (from && logTransition(fromState) && logStateExit(fromState)) {\n var trackingData = fromState.trackingData && fromState.trackingData || {};\n\n _logger.$logger.info(from + '_exit', { fptiState: trackingData.fptiState || from, fptiTransition: trackingData.fptiState || from });\n }\n\n _logger.$logger.info('state_change', {\n from: from || 'start',\n to: to || 'end'\n });\n\n // Generate a new CAL correlation_id to be shared until next flow transition (only for view states)\n if (toState.template) {\n _model.$CalDataModel.generateMetaIds();\n }\n\n _angular.$rootScope.currentState = to;\n\n if (to && logTransition(toState)) {\n _logger.$logger.info(to + '_enter', { fptiState: toState.trackingData && toState.trackingData.fptiState || to });\n }\n });\n\n _angular.$rootScope.$on('page_loaded', function (event, from, to) {\n if (from !== 'checkout_init') {\n return;\n }\n var key = _model.$FptiConstants.stateName[to] || 'review';\n var landing_page = _model.$FptiConstants.landing_page[key];\n\n _logger.$logger.info('landing_page', {\n 'from': landing_page,\n 'to': 'process_page_loaded',\n fpti_landing_page: landing_page\n });\n });\n\n _angular.$rootScope.$on('page_reloaded', function () {\n _logger.$logger.flush(true);\n _model.$CalDataModel.generateMetaIds();\n });\n\n _angular.$rootScope.$on('$stateChangeSuccess', function (event, toState) {\n var to = toState.name.replace(/\\./g, '_');\n\n if (toState.hasResolver && to) {\n _logger.$logger.info(to + '_load');\n } else if (to) {\n _logger.$logger.info(to + '_rendering');\n }\n });\n\n _angular.$rootScope.$on('addrDiff', function (event, addrDiff) {\n if (!addrDiff) {\n return;\n }\n _logger.$logger.info('checkout_fpti' + addrDiff);\n });\n\n function getHash(url) {\n if (!url || !~url.indexOf('#')) {\n // eslint-disable-line no-bitwise\n return;\n }\n\n url = url.split('#');\n return url[url.length - 1];\n }\n\n var oldHash = window.location.hash;\n\n window.addEventListener('hashchange', function (event) {\n _logger.$logger.info('hashchange', {\n from: getHash(event.oldURL || oldHash),\n to: getHash(event.newURL || window.location.hash)\n });\n\n if (!_squid.$loader.isLoading()) {\n _logger.$logger.flush();\n }\n\n oldHash = window.location.hash;\n });\n\n $(document).on('click', function (event) {\n if (event && event.target && event.target.tagName) {\n var name = event.target.tagName.toLowerCase();\n\n if (event.target.id) {\n name += '#' + event.target.id;\n } else if (event.target.attributes && event.target.attributes['ng-model']) {\n name += ':' + event.target.attributes['ng-model'].value;\n } else if (event.target.className) {\n name += '.' + event.target.className.split(' ').join('.');\n }\n\n _logger.$logger.info('click', { el: name });\n }\n });\n\n if (cplEnabled) {\n window.fptiserverurl = getBeaconUrl();\n\n var firstInvocation = true;\n var trackPageStart = function trackPageStart() {\n if (firstInvocation) {\n firstInvocation = false;\n return;\n }\n try {\n window.PAYPAL.analytics.startCPLTracking();\n } catch (e) {\n console.log('error starting cpl tracking ' + e);\n }\n };\n\n var firstDone = true;\n var trackDone = function trackDone(beaconData) {\n window.PAYPAL.analytics.endCPLTracking({\n pageData: addTrackingData(beaconData),\n inferStart: firstDone\n });\n firstDone = false;\n };\n\n var currentRoute = null;\n\n _angular.$rootScope.$on('startLoad', function () {\n return trackPageStart();\n });\n _angular.$rootScope.$on('$stateChangeSuccess', function (e, route) {\n currentRoute = route;\n });\n\n _angular.$rootScope.$on('allLoaded', function () {\n try {\n var buildParams = {\n productOverride: window.fptiProductOverride,\n trackingData: _fpti.$fpti.getPageTrackingData(currentRoute)\n };\n var legacyFptiData = new _builder.$FptiBuilder(buildParams).build()._dataObj;\n var product = window.fptiProductOverride || 'ec';\n\n legacyFptiData.pgrp = 'main:' + product + ':hermes';\n legacyFptiData.flid = token;\n trackDone(legacyFptiData);\n } catch (e) {\n console.log('error tracking CPL data ' + e);\n }\n });\n }\n});\n\n_index.$AuthModel;\n\n_squid.$util;\n\n_squid.$meta;\n\n_squid.$config;\n\n_squid.$experiment;\n\n_squid.$loader;\n\n_logger.$logger;\n\n_model.$CalDataModel;\n\n_model.$FptiConstants;\n\n_builder.$FptiBuilder;\n\n_button.$ButtonTrackingService;\n\n_fpti.$fpti;\n\n_fpti.$fptiError;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/jquery/dist/jquery.min.js\"), __webpack_require__(\"../node_modules/console-browserify/index.js\")))\n\n/***/ }),\n\n/***/ \"../node_modules/xo-tracking/dist/model.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(module, __dirname, __filename) {\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _angular2 = _interopRequireDefault(_angular);\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _uuid = __webpack_require__(\"../node_modules/node-uuid/uuid.js\");\n\nvar _uuid2 = _interopRequireDefault(_uuid);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n(function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n})(window.angular); /* eslint-disable angular/di */\n\n\n_angular2['default'].module().constant('$FptiConstants', {\n // The prototype of buzname data object\n buznameMap: {\n flowgatename: {\n placeHolder: '',\n fptiKey: 'fltp'\n },\n 'flowname': {\n placeHolder: 'ec:hermes:',\n fptiKey: 'flnm'\n },\n 'hier1': {\n placeHolder: 'main_ec_hermes_',\n fptiKey: 'shir'\n },\n 'inout': {\n placeHolder: 'inout',\n fptiKey: 'lgin'\n },\n 'pagename': {\n placeHolder: 'main:ec:hermes',\n fptiKey: 'pgrp'\n },\n 'pagename2': {\n placeHolder: 'main:ec:hermes',\n fptiKey: 'page'\n },\n 'version': {\n placeHolder: 'hermes',\n fptiKey: 'vers'\n }\n },\n // Full list of FPTI keys indexed by readable names\n // This mapping can also be served as default decorator\n fptiKeys: {\n 'businessType': 'bztp',\n 'correlationId': 'calc', // CalDataModel\n 'cust': 'cust',\n 'errorCode': 'eccd',\n 'fieldError': 'erfd',\n 'flowgatename': 'fltp', // buzname\n 'flowname': 'flnm', // buzname\n 'loggedIn': 'lgin', // buzname\n 'merchantId': 'mrid',\n 'merchantType': 'mbtp',\n 'pageError': 'erpg',\n 'pageGoal': 'goal', // route\n 'pageGroup': 'pgrp', // buzname\n 'pageName': 'page', // buzname\n 'pageQualifer': 'qual', // buzname\n 'pageStartTime': 'pgst', // FptiBuilder\n 'pageTechnologyFlag': 'pgtf', // productConfig\n 'paymentFlowId': 'pfid',\n 'rLogId': 'teal',\n 'sessionId': 'fpti',\n 'siteHierarchy': 'shir', // buzname\n 'sourceCi': 's', // productConfig\n 'tealeaf': 'teal',\n 'templateName': 'tmpl', // route\n 'transition_time': 'transition_time',\n 'uuid': 'csci', // CalDataModel\n 'version': 'vers', // buzname\n 'visitorId': 'vid',\n 'ecToken': 'fltk', // metadata\n 'pxpExpSelected': 'xe',\n 'pxpTreatementSelected': 'xt',\n 'pxpQualifiedTreatment': 'qt',\n 'pxpContextId': 'qc',\n 'dc': 'dc',\n 'az': 'az',\n 'comp': 'comp'\n },\n landing_page: {\n login: 'LOGIN',\n econsent: 'eConsent',\n review: 'Review',\n error_page: 'error_page',\n add_card: 'add_card',\n add_bank: 'add_bank',\n billing: 'billing',\n done_page: 'done_page',\n shoppingCart: 'shoppingCart',\n emptyCart: 'emptyCart',\n soldout: 'soldout',\n openButton: 'openButton'\n },\n stateName: {\n checkout_login: 'login',\n checkout_genericError: 'error_page',\n checkout_fastlogin: 'login',\n checkout_econsent: 'econsent',\n checkout_review: 'review',\n checkout_pageAddCard_addCardFlow_addCard: 'add_card',\n checkout_updateCard_addCardFlow_addCard: 'add_card',\n checkout_pageAddFi_bank_add: 'add_bank',\n guest: 'billing',\n checkout_done: 'done_page',\n checkout_guest: 'billing',\n checkout_signup: 'billing',\n guestupgrade_genericError: 'error_page',\n checkout_multistepsignup_multistepsignupaddcard: 'billing',\n checkout_shoppingCart: 'shoppingCart',\n checkout_emptyCart: 'emptyCart',\n checkout_soldout: 'soldout',\n checkout_openButton: 'openButton'\n }\n}).factory('$FptiDataModel', ['$FptiConstants', function ($FptiConstants) {\n var productConfig = {};\n\n // TODO to read from config.json\n productConfig[$FptiConstants.fptiKeys.sourceCi] = 'ci';\n productConfig[$FptiConstants.fptiKeys.pageTechnologyFlag] = 'NodeJS';\n\n /**\n * Utilizing Decorator pattern to allow defining additional logic for specific keys\n */\n return _squid.$Class.extend('FptiDataModel', {\n init: function init() {\n this._dataObj = _angular2['default'].extend({}, productConfig);\n this._decoratorList = [];\n },\n decorators: {\n buzname: function buzname(trackingData, pageQualifier, isInContext, productOverride) {\n if (!trackingData) {\n return;\n }\n\n var buzname = trackingData.buzname;\n\n if (!buzname) {\n return;\n }\n\n var buznameDiff = buzname[pageQualifier];\n\n if (!buznameDiff) {\n return;\n }\n\n var dataObj = this._dataObj;\n var buznameMap = $FptiConstants.buznameMap;\n // read app specific place holder from config\n var placeHolderConfig = _squid.$config && _squid.$config.fpti && _squid.$config.fpti.buznameEntryPlaceHolder;\n\n Object.keys(buznameMap).forEach(function (key) {\n var buznameEntry = buznameMap[key];\n var fptiKey = buznameEntry.fptiKey;\n var placeHolder = buznameEntry.placeHolder;\n\n if (buznameDiff[key]) {\n if (placeHolderConfig && placeHolderConfig[key]) {\n placeHolder = placeHolderConfig[key];\n }\n\n if (productOverride) {\n var _placeHolder$split = placeHolder.split(':'),\n main = _placeHolder$split[0],\n hermes = _placeHolder$split[2];\n\n placeHolder = main + ':' + productOverride + ':' + hermes;\n }\n\n dataObj[fptiKey] = buznameDiff[key].replace('%', placeHolder);\n } else {\n dataObj[fptiKey] = placeHolder;\n }\n });\n dataObj[$FptiConstants.fptiKeys.pageQualifer] = pageQualifier;\n },\n\n base: function base(_base) {\n if (_base) {\n for (var key in _base) {\n if (!this._dataObj[key]) {\n this._dataObj[key] = _base[key];\n }\n }\n }\n },\n\n locale: function locale(_locale) {\n if (_locale && _locale.country) {\n this._dataObj[$FptiConstants.fptiKeys.locale] = _locale.country;\n }\n },\n\n pxptrackingdata: function pxptrackingdata(pxpData) {\n var qt = [];\n var qc = [];\n var xe = [];\n var xt = [];\n\n _squid.$util.some(pxpData, function (trackInfo) {\n var match = trackInfo && trackInfo.tracking_tags && trackInfo.tracking_tags.match('\\\\bqt=([^;]+);');\n\n if (match) {\n qt.push(match[1]);\n }\n\n match = trackInfo && trackInfo.tracking_tags && trackInfo.tracking_tags.match('\\\\bqc=([^;]+);');\n if (match) {\n qc.push(match[1]);\n }\n\n _squid.$util.some(trackInfo.treatments, function (treatment) {\n xe.push(treatment.experiment_id);\n xt.push(treatment.treatment_id);\n });\n });\n\n this._dataObj[$FptiConstants.fptiKeys.pxpQualifiedTreatment] = qt.join(',');\n this._dataObj[$FptiConstants.fptiKeys.pxpContextId] = qc.join(',');\n this._dataObj[$FptiConstants.fptiKeys.pxpExpSelected] = xe.join(',');\n this._dataObj[$FptiConstants.fptiKeys.pxpTreatementSelected] = xt.join(',');\n },\n\n templateName: function templateName(trackingData, pageQualifier, isInContext) {\n if (trackingData && trackingData.templateName) {\n var templateName = (trackingData.templateName || '') + (pageQualifier ? ':' + pageQualifier : '');\n\n this._dataObj[$FptiConstants.fptiKeys.templateName] = templateName;\n }\n },\n\n fieldError: function fieldError(err) {\n if (err && err.type === 'fieldError') {\n this._dataObj[$FptiConstants.fptiKeys.fieldError] = err.field;\n this._dataObj[$FptiConstants.fptiKeys.errorCode] = err.code;\n }\n },\n\n pageError: function pageError(err) {\n if (err && err.type === 'pageError') {\n\n this._dataObj[$FptiConstants.fptiKeys.pageError] = err.msg;\n this._dataObj[$FptiConstants.fptiKeys.errorCode] = err.code;\n }\n }\n\n },\n decorate: function decorate(name) {\n this._decoratorList.push({\n name: name,\n params: Array.prototype.slice.call(arguments, 1)\n });\n return this;\n },\n getDataObject: function getDataObject(isInContext) {\n var i;\n var decorator;\n\n for (i = 0; i < this._decoratorList.length; i++) {\n decorator = this._decoratorList[i];\n if (!decorator) {\n continue;\n }\n var name = decorator.name;\n var params = decorator.params;\n\n if (_angular2['default'].isFunction(this.decorators[name])) {\n // Invoke the decorator and pass in the parameter list\n this.decorators[name].apply(this, params);\n } else {\n var fptiKey = $FptiConstants.fptiKeys[name];\n\n // If the fptiKey is defined and value is present, add the k-v pair\n if (fptiKey && params && params.length > 0) {\n this._dataObj[fptiKey] = params[0];\n }\n }\n }\n\n // 'fullpage' was widely used as default key in page routs definition\n // finally replace it here if it's incontext\n var dataObj = this._dataObj;\n\n if (isInContext) {\n Object.keys(dataObj).forEach(function (k) {\n if (_angular2['default'].isString(dataObj[k])) {\n // some values can be number\n dataObj[k] = dataObj[k].replace('fullpage', 'incontext');\n }\n });\n }\n\n return this._dataObj;\n }\n });\n}]).factory('$CalDataModel', function () {\n var uuid_v4_mask = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx';\n var uuid_v1_mask = 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX';\n\n function _generateCorrelationId() {\n var uidRandomArr = (_uuid2['default'].v4() || uuid_v4_mask).split('-');\n var uidTime = (_uuid2['default'].v1() || uuid_v1_mask).split('-');\n\n return uidTime[0] + uidRandomArr[0].substr(0, 5);\n }\n\n function _generateUUID() {\n return (_uuid2['default'].v4() || uuid_v4_mask).replace(/-/g, '');\n }\n\n var CalModel = _squid.$Model.extend({\n _calCorrId: _generateCorrelationId(),\n _uuid: _generateUUID(),\n\n generateCalCorrId: function generateCalCorrId() {\n this._calCorrId = _generateCorrelationId();\n },\n generateUUID: function generateUUID() {\n this._uuid = _generateUUID();\n },\n generateMetaIds: function generateMetaIds() {\n this.generateCalCorrId();\n this.generateUUID();\n },\n\n getCalCorrId: function getCalCorrId() {\n return this._calCorrId;\n },\n\n getUUID: function getUUID() {\n return this._uuid;\n }\n });\n\n return new CalModel();\n});\n\n_squid.$Model;\n\n_squid.$Class;\n\n_squid.$util;\n\n_squid.$config;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/webpack/buildin/module.js\")(module), \"../node_modules/xo-tracking/dist\", \"../node_modules/xo-tracking/dist/model.js\"))\n\n/***/ }),\n\n/***/ \"../node_modules/xo-tray-height/dist/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function($) {\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\n/** Name: Tray height helper */\nangular.module().directive('xoTrayHeight', function () {\n return {\n restrict: 'A',\n link: function link($scope, element, attrs) {\n // Check to see if we can use the safer full height approach\n // or if we need to fallback to calculating the height using\n // math and relying on the \"right\" timing.\n var topClass = 'xo-sidebar-wrapper';\n var topSelector = '.' + topClass;\n var topElem = document.querySelector(topSelector);\n var inScope = topElem && topElem.querySelector('[xo-tray-height]');\n var useNewFlow = topElem && inScope;\n\n /**\n * NOTE:\n * The following code, despite being the \"new\" flow, is still\n * a stopgap solution until such time as the markup and or\n * CSS undergo an overhaul. It relies on the more stable\n * cascading relative/absolute positioning and 100% height\n * *and* the fact that the code is an instance of xo-tray-height\n * within the xo-sidebar-wrapper.\n */\n function calculate() {\n var curElem = element[0];\n\n while (!~curElem.className.indexOf(topClass)) {\n var style = getComputedStyle(curElem, null);\n\n if (style.position !== 'absolute') {\n curElem.style.position = 'relative';\n }\n curElem.style.height = '100%';\n curElem = curElem.parentNode;\n }\n }\n\n /**\n * NOTE:\n * The following DEPRECATED version of the calculate method\n * relies on calculating the heights using math. This heavy\n * handed approach is fine if it is called at the right times\n * and often enough; however, this criteria is hard to achieve.\n *\n * A markup and styles overhaul is recommended to do away with\n * both of these methods.\n */\n function deprecatedCalculate() {\n // DEPRECATED\n _logger.$logger.warn('xo-tray-height-fallback', {\n message: 'Using the fallback sidebar height calculation. ' + 'height may not be 100%. You should not be here!'\n });\n var height;\n var headerHeight;\n var mainHeight;\n var trayMinheight = 400;\n var asideContentHeight;\n var $aside = $(element).parents('aside:visible');\n var $asideContent = $aside.find('.asideContent');\n\n if (!$aside || !$asideContent) {\n return;\n }\n\n // Updates the tray height to the section height\n headerHeight = $aside.find('.header').outerHeight(true);\n mainHeight = $('#main').outerHeight(true);\n\n height = mainHeight - headerHeight;\n asideContentHeight = $asideContent.outerHeight(true);\n if ($scope.miniBrowser) {\n $aside.find('.aside').css('height', '534px');\n var minHeight = 534 - headerHeight;\n\n $asideContent.css('height', minHeight);\n } else if (asideContentHeight > height) {\n $asideContent.css('height', height);\n $aside.find('aside:visible').addClass('hasScroll');\n } else {\n height = height > trayMinheight ? height : trayMinheight;\n $asideContent.css('height', height);\n $aside.removeClass('hasScroll');\n }\n }\n\n if (useNewFlow) {\n calculate();\n } else {\n (0, _angular.$timeout)(deprecatedCalculate, 1);\n\n $scope.$on('SidebarError', function () {\n deprecatedCalculate();\n });\n }\n }\n };\n});\n\n/* grab the logger so we can warn about being in the fallback mode */\n\n\n_angular.$timeout;\n\n_logger.$logger;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/jquery/dist/jquery.min.js\")))\n\n/***/ }),\n\n/***/ \"../node_modules/xo-ui-components/src/accessibility/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _ui = __webpack_require__(\"../node_modules/xo-ui-components/src/accessibility/ui.js\");\n\nvar _jquery = __webpack_require__(\"../node_modules/jquery/dist/jquery.min.js\");\n\nvar _jquery2 = _interopRequireDefault(_jquery);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n// Adds role='button' and tabindex='0' to anchor elements\n// so that it is keyboard navigable and recognized by screen\n// readers as a button.\n//\n// As anchors without href do not fire their click event\n// automatically on a Space or ENTER key, this directive forces\n// that functionality.\n//\n// If something is assigned to the link-button attribute, then\n// it is used as an aria-label.\n(0, _squid.$registerDirective)('link-button', function () {\n return {\n restrict: 'A',\n link: function link(scope, element, attrs) {\n var ariaLabel = (0, _angular.$parse)(attrs.linkButton)(scope);\n var $element = (0, _jquery2['default'])(element);\n\n $element.attr('role', 'button');\n $element.attr('tabindex', '0');\n if (ariaLabel) {\n $element.attr('aria-label', ariaLabel);\n }\n $element.on('keydown', function (event) {\n // do nothing if there is an alt or ctrl key as well\n if (!(event.altKey || event.ctrlKey)) {\n switch (event.keyCode) {\n case _ui.KEYS.SPACE:\n case _ui.KEYS.ENTER:\n element[0].click();\n return false;\n default:\n break;\n }\n }\n return true;\n });\n }\n };\n});\n\n// this directive gives an element characteristics of a native\n// select element in terms of keyboard navigation. It becomes reachable\n// via the tab key, reflects screenreader characteristics and\n// can be activated by any of the DOWN, SPACE or ENTER KEYS.\n(0, _squid.$registerDirective)('select-button', function () {\n return {\n restrict: 'A',\n link: function link(scope, element, attrs) {\n var $element = (0, _jquery2['default'])(element);\n if (!attrs.hasOwnProperty('disableRole')) {\n $element.attr('role', 'button');\n }\n\n $element.attr('aria-haspopup', 'true').attr('tabindex', '0').on('keydown', function (event) {\n // do nothing if there is an alt or ctrl key as well\n if (!(event.altKey || event.ctrlKey)) {\n switch (event.keyCode) {\n case _ui.KEYS.DOWN:\n case _ui.KEYS.SPACE:\n case _ui.KEYS.ENTER:\n element[0].click();\n return false;\n default:\n break;\n }\n }\n return true;\n });\n }\n };\n});\n\n// this directive makes a container with links act as if it were a select dropdown\n// in terms of keyboard accessibility. The following characteristics are implemented:\n//\n// * UP/RIGHT and DOWN/lEFT KEYS navigate through the options.\n// * ESC cancels and closes the dropdown\n// * SPACE or ENTER select an option\n// * You cannot TAB out of a dropdown until you select or cancel\n//\n// in addition, the following extra characteristics are implemented\n//\n// * The TAB (and SHIFT-TAB) key will also function to move between options\n// * Upon reaching the end of the list, the focus will shift back to the first item, and vice versa\n//\n// How to use:\n// 1. The select-cancel attribute is an agnostic expression to implement the cancel / back mechanic.\n// The expression is run whenever the ESC key is pressed.\n// 2. The select-allow-tab-escape attribute can be added alongside the select-box attribute to allow\n// tabs to escape the select-box element.\n(0, _squid.$registerDirective)('select-box', function () {\n return {\n restrict: 'A',\n link: function link(scope, element, attrs) {\n var allowTabEscape = (0, _angular.isDefined)(attrs.selectAllowTabEscape);\n\n function escapeToggle() {\n if (attrs.selectCancel) {\n (0, _angular.$parse)(attrs.selectCancel)(scope);\n scope.$apply();\n }\n }\n\n element.attr('role', 'menu');\n\n element.on('keydown.selectBox', function (event) {\n var $allTabbable = (0, _ui.findAll)(element, _ui.tabbable);\n var $origin = (0, _jquery2['default'])(event.target);\n\n if (!(event.altKey || event.ctrlKey)) {\n var index = $allTabbable.index($origin);\n\n switch (event.keyCode) {\n case _ui.KEYS.TAB:\n if (allowTabEscape && (index === 0 && event.shiftKey || index === $allTabbable.length && !event.shiftKey)) {\n // Enable default behavior to escape select-box\n escapeToggle();\n break;\n } else if (event.shiftKey) {\n index = (index - 1 + $allTabbable.length) % $allTabbable.length;\n } else {\n index = (index + 1) % $allTabbable.length;\n }\n $allTabbable.eq(index).focus();\n event.preventDefault();\n break;\n case _ui.KEYS.DOWN:\n case _ui.KEYS.RIGHT:\n index = (index + 1) % $allTabbable.length;\n $allTabbable.eq(index).focus();\n event.preventDefault();\n break;\n case _ui.KEYS.UP:\n case _ui.KEYS.LEFT:\n index = (index - 1 + $allTabbable.length) % $allTabbable.length;\n $allTabbable.eq(index).focus();\n event.preventDefault();\n break;\n case _ui.KEYS.SPACE:\n case _ui.KEYS.ENTER:\n $origin.click();\n event.preventDefault();\n break;\n case _ui.KEYS.ESC:\n escapeToggle();\n break;\n default:\n break;\n }\n }\n });\n }\n };\n});\n\n// similar to select-box, this directive restrains tabbing within a container\n// to the container itself.\n//\n// 1. modal-cancel is the equivalent of select-cancel from select-box, and\n// should define a cancellation / ESC function.\n(0, _squid.$registerDirective)('modal-box', function () {\n return {\n restrict: 'A',\n link: function link(scope, element, attrs) {\n function escapeToggle() {\n (0, _angular.$parse)(attrs.modalCancel)(scope);\n scope.$apply();\n }\n\n // Gets the index of the element that should be focused after pressing Tab\n function getNextIndex($element, $elements, shift) {\n if (shift) {\n return ($elements.index($element) - 1 + $elements.length) % $elements.length;\n } else {\n return ($elements.index($element) + 1) % $elements.length;\n }\n }\n\n if ((0, _angular.$parse)(attrs.modalBox)(scope) !== false) {\n element.on('keydown.modalBox', function (event) {\n var $allTabbable = (0, _ui.findAll)(element, _ui.tabbable);\n var $origin = (0, _jquery2['default'])(event.target);\n\n if (!(event.altKey || event.ctrlKey)) {\n switch (event.keyCode) {\n case _ui.KEYS.TAB:\n var index = getNextIndex($origin, $allTabbable, event.shiftKey);\n $allTabbable.eq(index).focus();\n event.preventDefault();\n event.stopPropagation();\n break;\n case _ui.KEYS.ESC:\n escapeToggle();\n event.preventDefault();\n event.stopPropagation();\n break;\n default:\n break;\n }\n }\n });\n }\n }\n };\n});\n\n// A simple version of modal that doesn't rely on controlling keyboard behavior\n// as strictly. Should be used in cases where tab items are not as easily accessible\n// via JS (ie. iframes)\n// Redirects focus to container when focusin event fired on element not in container\n(0, _squid.$registerDirective)('simple-modal', function () {\n return {\n restrict: 'A',\n link: function link(scope, element, attrs) {\n element.attr('tabindex', '-1');\n\n var cancelFn;\n if (attrs.modalCancel) {\n cancelFn = function cancelFn() {\n (0, _angular.$parse)(attrs.modalCancel)(scope);\n scope.$apply();\n };\n }\n\n function registerModal() {\n (0, _jquery2['default'])(document).on('focusin.simple-modal', function (event) {\n if (!element[0].contains(event.target)) {\n event.stopPropagation();\n element.focus();\n }\n });\n if (cancelFn) {\n (0, _jquery2['default'])(document).on('click.simple-modal', function (event) {\n if (!element[0].contains(event.target)) {\n deregisterModal();\n cancelFn();\n }\n });\n }\n }\n\n function deregisterModal() {\n (0, _jquery2['default'])(document).off('focusin.simple-modal');\n (0, _jquery2['default'])(document).off('click.simple-modal');\n }\n\n // Watch the expression provided to simpleModal and add modal behavior when\n // expression result changes to truthy\n if ((0, _angular.isDefined)(element.attr('simpleModal'))) {\n scope.$watch(attrs['simpleModal'], function (newVal) {\n if (newVal) {\n registerModal();\n } else {\n deregisterModal();\n }\n });\n } else {\n registerModal();\n }\n\n scope.$on('$destroy', deregisterModal);\n }\n };\n});\n\n// this directive gives an element characteristics of a native\n// option element in terms of aria attributes. It must be used\n// as a child of a selectBox for proper keyboard behavior as it\n// disables default tabbing behavior.\n//\n// The expression provided to the directive is used to set the\n// aria-selected attribute when the expression evaluates to true.\n(0, _squid.$registerDirective)('select-option', function () {\n return {\n restrict: 'A',\n link: function link(scope, element, attrs) {\n (0, _jquery2['default'])(element).attr('role', 'menuitem');\n if ((0, _angular.$parse)(attrs.selectOption)(scope)) {\n (0, _jquery2['default'])(element).attr('aria-selected', 'true');\n }\n }\n };\n});\n\n// adapted from http://stackoverflow.com/a/24416690\n// This directive makes the element focused when the expression\n// provided _changes_ to true.\n//\n// In order to avoid conflicts with autofocus when a page first loads,\n// adding the focused-once-before attribute will enable the expression\n// only if it has been focused on before.\n//\n// * if the element itself is not focusable, then it will locate the first focusable\n// element within it.\n// * if the additional attribute focus-element is provided, it is wrapped\n// as a jQuery element (could be selector string or actual element) and focused on\n// it will be parsed when the focus-when attribute is true\n// * if the attribute focus-on is provided, then the focus-when attribute is ignored and\n// the directive listens to the event specified by focus-on\n(0, _squid.$registerDirective)('focus-when', function () {\n return {\n restrict: 'A',\n link: function link(scope, element, attrs) {\n\n function locateAndFocus(active) {\n (0, _angular.$timeout)(function () {\n if (active) {\n // deal with figuring out which element to focus on\n var $elementToFocus = (0, _jquery2['default'])(); // start with \"monad\" to make life easier\n var directiveElementFocusable = (0, _ui.focusable)(element[0]);\n\n // this works by fallthrough. it will try each one\n // in succession until an element is found\n if (attrs.focusElement) {\n // scenario 1 - specific element provided\n $elementToFocus = (0, _ui.filterAll)((0, _angular.$parse)(attrs.focusElement)(scope), _ui.focusable);\n }\n\n if ($elementToFocus.length === 0 && !directiveElementFocusable) {\n // scenario 2 - element with directive is not focusable\n $elementToFocus = (0, _ui.findAll)(element, _ui.focusable);\n }\n\n // default / scenario 3 - no valid targets specified or found\n if ($elementToFocus.length === 0) {\n $elementToFocus = (0, _jquery2['default'])(element);\n }\n\n $elementToFocus.first().focus();\n }\n });\n }\n\n var active = true;\n\n if ('focusedOnceBefore' in attrs) {\n active = false;\n (0, _jquery2['default'])(element).on('focus', function () {\n active = true;\n });\n }\n\n if (attrs.focusRefreshOn) {\n scope.$on((0, _angular.$parse)(attrs.focusRefreshOn)(scope), function () {\n locateAndFocus(active);\n });\n } else {\n scope.$watch(attrs.focusWhen, function (val) {\n locateAndFocus(active && val);\n });\n }\n }\n };\n});\n\n// angularUI router specific - listens to a specific transition\n// defined in two attributes, focusWhenState (this directive) and TransitionsTo\nvar FOCUS_EVENT_NAME = 'accessible-focus';\n(0, _squid.$registerDirective)('focus-when-state', function () {\n return {\n restrict: 'A',\n link: function link(scope, element, attrs) {\n var startState = attrs.focusWhenState;\n var endState = attrs.transitionsTo;\n var transitionMessage = startState + ' > ' + endState;\n var unregisterEventFn = _angular.$rootScope.$on('$stateChangeSuccess', function (event, toState, toParams, fromState, fromParams) {\n if (fromState.name === startState && toState.name === endState) {\n scope.$broadcast(FOCUS_EVENT_NAME, transitionMessage);\n }\n });\n\n scope.$on(FOCUS_EVENT_NAME, function (event, message) {\n if (message === transitionMessage) {\n (0, _angular.$timeout)(function () {\n return element[0].focus();\n });\n }\n });\n\n // see http://stackoverflow.com/a/27016855\n scope.$on('$destroy', unregisterEventFn);\n }\n };\n});\n\n// Listens for the next state transition and focuses an element provided by selector\n// Use with links where focus is needed to return to a specific element after the transition\n(0, _squid.$registerDirective)('focus-after-transition', function () {\n return {\n restrict: 'A',\n link: function link(scope, element, attrs) {\n element.on('click', function () {\n var focusSelector = attrs['focusAfterTransition'];\n var cancel = _angular.$rootScope.$on('$stateChangeSuccess', function (event, toState, toParams, fromState, fromParams) {\n cancel();\n (0, _angular.$timeout)(function () {\n (0, _jquery2['default'])(focusSelector).focus();\n });\n });\n });\n }\n };\n});\n\n// focuses on the first focusable element on a container containing form elements\n(0, _squid.$registerDirective)('form-autofocus', function () {\n return {\n restrict: 'A',\n link: function link(scope, element, attrs) {\n // wait for the entire DOM to settle down first\n (0, _angular.$timeout)(function () {\n var $allFocusable = (0, _ui.findAll)(element, _ui.focusable);\n if ($allFocusable.length > 0) {\n $allFocusable.first().focus();\n }\n });\n }\n };\n});\n\n// Change element to be focusable and tabbable or unfocusable if it is\n// not typically a focusable element by removing the tabindex attribute.\n(0, _squid.$registerDirective)('focusable', function () {\n return {\n restrict: 'A',\n link: function link(scope, element, attrs) {\n function setFocusable(value) {\n if (value) {\n element.attr('tabindex', 0);\n } else {\n element.removeAttr('tabindex');\n }\n }\n\n if (attrs.focusable) {\n scope.$watch(attrs.focusable, function (newVal) {\n if (newVal) {\n setFocusable(true);\n } else {\n setFocusable(false);\n }\n });\n } else {\n setFocusable(true);\n }\n }\n };\n});\n\n_squid.$registerDirective;\n\n_angular.$parse;\n\n_angular.$timeout;\n\n_angular.$rootScope;\n\n_angular.isDefined;\n\n_ui.KEYS;\n\n_ui.focusable;\n\n_ui.tabbable;\n\n_ui.findAll;\n\n_ui.filterAll;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-ui-components/src/accessibility/ui.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.filterAll = exports.findAll = exports.tabbable = exports.focusable = exports.visible = exports.KEYS = undefined;\n\nvar _jquery = __webpack_require__(\"../node_modules/jquery/dist/jquery.min.js\");\n\nvar _jquery2 = _interopRequireDefault(_jquery);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar KEYS = {\n TAB: 0x09,\n ENTER: 0x0D,\n ESC: 0x1B,\n SPACE: 0x20,\n LEFT: 0x25,\n UP: 0x26,\n RIGHT: 0x27,\n DOWN: 0x28\n};\n\nfunction visible(element) {\n return _jquery2['default'].expr.filters.visible(element) && !(0, _jquery2['default'])(element).parents().addBack().filter(function () {\n return _jquery2['default'].css(this, 'visibility') === 'hidden';\n }).length;\n}\n\n// ripped from http://stackoverflow.com/a/7668761\n/* istanbul ignore next */\nfunction focusable(element) {\n var nodeName = element.nodeName.toLowerCase();\n var isTabIndexNotNaN = !isNaN(_jquery2['default'].attr(element, 'tabindex'));\n var map;\n var mapName;\n var img;\n\n if (nodeName === 'area') {\n map = element.parentNode;\n mapName = map.name;\n if (!element.href || !mapName || map.nodeName.toLowerCase() !== 'map') {\n return false;\n }\n img = (0, _jquery2['default'])('img[usemap=#' + mapName + ']')[0];\n return !!img && visible(img);\n }\n return (/^(input|select|textarea|button|object)$/.test(nodeName) ? // eslint-disable-line no-nested-ternary\n !element.disabled : nodeName === 'a' ? element.href || isTabIndexNotNaN : isTabIndexNotNaN) &&\n // the element and all of its ancestors must be visible\n visible(element);\n}\n\n/* istanbul ignore next */\nfunction tabbable(element) {\n var tabIndex = _jquery2['default'].attr(element, 'tabindex');\n var isTabIndexNaN = isNaN(tabIndex);\n\n return (isTabIndexNaN || tabIndex >= 0) && focusable(element);\n}\n\nfunction filterAll(elements, filterFn) {\n return (0, _jquery2['default'])(elements).filter(function () {\n return filterFn(this);\n });\n}\n\nfunction findAll(container, filterFn) {\n return filterAll((0, _jquery2['default'])(container).find('*'), filterFn);\n}\n\nexports.KEYS = KEYS;\nexports.visible = visible;\nexports.focusable = focusable;\nexports.tabbable = tabbable;\nexports.findAll = findAll;\nexports.filterAll = filterAll;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-ui-components/src/banner/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _auth = __webpack_require__(\"../node_modules/xo-models/src/auth/index.js\");\n\nvar _index = __webpack_require__(\"../node_modules/xo-models/src/user/index.js\");\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-ui-components/src/banner/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/banner/styles.less\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _squid.$Component.extend('$xoBanner', {\n tag: 'xo-banner',\n template: _template2['default'],\n transclude: true,\n props: {\n isNmj: {\n type: 'var',\n required: false\n }\n },\n resolve: {\n // Need buyer_id from $AuthModel first to get the URL for the user profile photo\n models: function models() {\n return {\n auth: _auth.$AuthModel.instance().retrieve()\n };\n },\n userPhoto: function userPhoto(resolvers) {\n return resolvers.models.then(function (models) {\n return {\n photoData: _index.$UserPhotoModel.instance(models.auth.buyer_id).retrieve({\n params: {\n 'min_size': 45\n }\n })['catch'](function (error) {\n _logger.$logger.info('error_retrieve_user_photo');\n return {};\n })\n };\n });\n }\n },\n lifecycle: {\n populate: function populate() {\n var avatarElement = this.$element.find('#banner-picture');\n var auth = this.models.auth;\n var photoData = this.userPhoto.photoData;\n\n // Currently only showing initials for New Member Journey\n var showInitials = auth.first_name && auth.last_name && this.props.isNmj;\n\n if (avatarElement && auth.buyer_id) {\n // The \"phantom\" avatar image is displayed by default via CSS\n // background-image property. If the request for a user's\n // profile photo returns a URL, the background-image property\n // is replaced with that URL.\n\n // Show user photo for avatar\n if (photoData && photoData.photo_url) {\n avatarElement.css('background-image', 'url(\"' + photoData.photo_url + '\")');\n _logger.$logger.info('xoBanner_user');\n }\n\n // No user photo: show user initials instead of phantom image\n if (!photoData.photo_url && showInitials) {\n avatarElement.addClass('initials');\n this.initials = '' + auth.first_name[0] + auth.last_name[0];\n _logger.$logger.info('xoBanner_initials');\n }\n } else {\n // Leave the phantom avatar as the background image\n _logger.$logger.info('xoBanner_default');\n }\n }\n }\n});\n\n\n_squid.$Component;\n\n_auth.$AuthModel;\n\n_index.$UserPhotoModel;\n\n_logger.$logger;\nmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ \"../node_modules/xo-ui-components/src/banner/styles.less\":\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ \"../node_modules/xo-ui-components/src/banner/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
    \\n
    {{ initials }}
    \\n
    \\n
    \"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-ui-components/src/directionality/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function($) {\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/directionality/styles.less\");\n\n/**\n * This directive watches the model and listens to user input to look for arabic/hebrew/right-to-left language\n * unicode chars, then adds dir=\"rtl\" or dir=\"ltr\" attribute to input field\n *\n * Add directionality to the container html div element of a input field.\n *
    \n */\n(0, _squid.$registerDirective)('directionality', function () {\n return {\n restrict: 'A',\n link: function link(scope, element) {\n var currentWatchDeregister = void 0;\n var input = element.find('input');\n\n if (!input.length) {\n listenForInputRendered();\n return;\n }\n\n // If the input has not yet been rendered inside the container, listen for dom node inserted\n // then, if the node inserted is an input, we will use that element and init the directionality\n // listeners. The first input rendered is the one that will be captured by this directive.\n function listenForInputRendered() {\n element.bind('DOMNodeInserted', checkDOMNodeInserted);\n\n function checkDOMNodeInserted(event) {\n if (event && event.target && event.target.tagName === 'INPUT') {\n element.unbind('DOMNodeInserted', checkDOMNodeInserted);\n input = angular.element(event.target);\n init();\n }\n }\n }\n\n function setDirectionality(value) {\n if (value) {\n // set directionality to 'rtl' if the value has hebrew/arabic unicode chars.\n element.toggleClass('ltrOverride', !_squid.$util.hasRTL(value));\n } else {\n element.toggleClass('ltrOverride', _angular.$document.prop('documentElement').getAttribute('dir') !== 'rtl');\n }\n }\n\n function jqueryOnKeyupHandler(event) {\n setDirectionality(event.target.value);\n }\n\n // Reset directionality listeners when we transition from ltr -> rtl locale or vice versa\n function resetDirectionalityListener() {\n // remove directionality listeners that were set on prior locale\n input.unbind('keyup', jqueryOnKeyupHandler);\n if (currentWatchDeregister) {\n currentWatchDeregister();\n }\n\n // set new directionality listeners for the current locale if 'rtl'\n if (document.documentElement.getAttribute('dir') === 'rtl') {\n (0, _angular.$timeout)(function () {\n // Watch ng-model on input to set directionality if it contains RTL char\n currentWatchDeregister = scope.$watch(input.attr('ng-model'), function (value) {\n setDirectionality(value);\n });\n // jQuery listener for cases where ng-model is not populated until post validation\n input.on('keyup', jqueryOnKeyupHandler);\n });\n }\n }\n\n function init() {\n resetDirectionalityListener();\n scope.$on('localeChange', function () {\n resetDirectionalityListener();\n });\n }\n\n init();\n }\n };\n});\n\n/**\n * This directive watches the model for arabic/hebrew/right-to-left language unicode chars, then adds dir=\"rtl\"\n * or dir=\"ltr\" attribute to the html element.\n *\n * Add directionality-text=\"<>\" to the div or span or any element containing text.\n * <{{user.name}}\n */\n(0, _squid.$registerDirective)('directionality-text', function () {\n return {\n restrict: 'A',\n link: function link(scope, element, attrs) {\n if (document.documentElement.getAttribute('dir') === 'rtl') {\n var $element = $(element);\n\n (0, _angular.$timeout)(function () {\n if (attrs.directionalityText) {\n scope.$watch(attrs.directionalityText, function () {\n $element.toggleClass('ltrOverride', !_squid.$util.hasRTL((0, _angular.$parse)(attrs.directionalityText)(scope)));\n });\n } else {\n $element.toggleClass('ltrOverride', !_squid.$util.hasRTL(element.text()));\n }\n });\n }\n }\n };\n});\n\n_squid.$util;\n\n_squid.$registerDirective;\n\n_angular.$document;\n\n_angular.$parse;\n\n_angular.$timeout;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/jquery/dist/jquery.min.js\")))\n\n/***/ }),\n\n/***/ \"../node_modules/xo-ui-components/src/directionality/styles.less\":\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ \"../node_modules/xo-ui-components/src/dropdown-multiline/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/squid/dist/index.js\"), __webpack_require__(\"../node_modules/jquery/dist/jquery.min.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (squid, $) {\n squid.module('xo-dropdown-multiline.directive', ['squid']).directive('xoDropdownMultiline', ['$timeout', function ($timeout) {\n return {\n restrict: 'A',\n require: '?ngModel',\n link: function link($scope, $select, attrs, ngModel) {\n var isListVisible = false;\n var listCreated = false;\n\n $select = $($select);\n\n var $span = $('
    ');\n var $container = $('
    ');\n var $list = void 0;\n\n function updateCover() {\n $timeout(function () {\n $span.find('span span').html($select.find('[selected]').text().replace(/\\\\n/gi, '
    ').trim());\n }, 10);\n }\n\n function createList($options) {\n if ($options.length < 2) {\n return;\n }\n\n function getModel() {\n var modelName = void 0;\n var model = void 0;\n var subParts = void 0;\n\n if ($select.attr('ng-options')) {\n modelName = $select.attr('ng-options').substring($select.attr('ng-options').indexOf('in ') + 3, $select.attr('ng-options').length);\n } else {\n var $option = $($select.find('[ng-repeat]')[0]);\n\n modelName = $option.attr('ng-repeat').substring($option.attr('ng-repeat').indexOf('in ') + 3, $option.attr('ng-repeat').length);\n }\n\n // This is to handle cases like card.billingAddress\n if (modelName.indexOf('.') !== -1) {\n subParts = modelName.split('.');\n model = $scope;\n\n for (var i = 0; i < subParts.length; i++) {\n model = model[subParts[i]];\n }\n } else {\n // And this is to handle straightforward model names\n model = $scope[modelName];\n }\n\n return model;\n }\n\n function hideList(event) {\n $list.hide();\n $container.append($list);\n isListVisible = false;\n $container.removeClass('open');\n }\n\n function positionList() {\n $list.css('left', $container.offset().left + 'px');\n $list.css('top', $container.offset().top + $container.height() + 'px');\n $list.css('width', $container.width() + 'px');\n }\n\n function setFocusOnSelected() {\n var $selected = $select.find('[selected]');\n\n if ($selected.length) {\n var $item = $list.find('[data-value=\"' + $selected.attr('value') + '\"]');\n\n $item.focus();\n } else {\n $list.find('li')[0].focus();\n }\n }\n\n function showList() {\n $('body').append($list);\n $container.addClass('open');\n $list.show();\n positionList();\n isListVisible = true;\n setFocusOnSelected();\n }\n\n function processContainerKeypress(event) {\n var keyCode = event && event.keyCode;\n\n if (keyCode === 13 || keyCode === 40) {\n // enter or down arrow\n if (!isListVisible) {\n showList();\n } else {\n hideList();\n $container.focus();\n }\n } else if (keyCode === 27) {\n // escape\n if (isListVisible) {\n hideList();\n $container.focus();\n }\n }\n }\n\n if ($list) {\n $list.remove();\n }\n\n $list = $('
      ');\n\n Array.prototype.forEach.call($options, function (option) {\n var $option = $(option);\n var value = $option.attr('value');\n var text = option.innerHTML.replace(/\\\\n/gi, '
      ');\n\n if (text.indexOf('content(') !== -1) {\n text = $scope.content(text.substring(text.indexOf('(\\'') + 2, text.indexOf('\\')')));\n }\n\n var html = '
    • ' + text + '
    • ';\n $list.append($(html));\n });\n\n $container.append($list);\n $list.hide();\n\n $($list.find('li')).click(function (event) {\n var $target = $(event.target);\n var value = $target.data('value');\n\n if (typeof value !== 'undefined') {\n $select.find('option').removeAttr('selected');\n $select.find('option[value=\"' + value + '\"]').attr('selected', 'selected');\n $select.find('option').removeProp('selected');\n $select.find('option[value=\"' + value + '\"]').prop('selected', 'selected');\n } else {\n value = $target.html().replace(/\\//gi, '\\\\n');\n $select.val(value);\n }\n\n if ($select.attr('ng-model')) {\n if ($select.attr('ng-options') || $select.find('[ng-repeat]').length) {\n /* This parses the 'ng-options' directive and returns the options model.\n For example: If you have: ng-options='opt as opt.label for opt in options'\n Here it will parse this attribute and return 'options */\n var model = getModel();\n\n ngModel.$setViewValue(model[value]);\n } else {\n ngModel.$setViewValue(value);\n }\n }\n updateCover();\n hideList();\n });\n\n var $innerContainer = $container.find('.innerContainer');\n\n $container.click(function () {\n if (isListVisible) {\n hideList();\n $container.focus();\n } else {\n showList();\n }\n });\n\n $container.keydown(function (event) {\n return processContainerKeypress(event);\n });\n $innerContainer.keydown(function (event) {\n return processContainerKeypress(event);\n });\n\n $list.find('li').keydown(function (event) {\n var keyCode = event && event.keyCode;\n var $target = $(event.target);\n\n if (keyCode === 13) {\n // enter\n $target.click();\n event.stopPropagation();\n } else if (keyCode === 27) {\n // escape\n if (isListVisible) {\n hideList();\n $container.focus();\n event.stopPropagation();\n }\n } else if (keyCode === 40) {\n // down arrow\n if (!$target.is(':last-of-type')) {\n $target.next().focus();\n event.preventDefault();\n event.stopPropagation();\n }\n } else if (keyCode === 38) {\n // up arrow\n if (!$target.is(':first-of-type')) {\n $target.prev().focus();\n }\n event.preventDefault();\n event.stopPropagation();\n }\n });\n\n $(window).resize(function () {\n if (isListVisible) {\n positionList();\n }\n });\n\n $(window).bind('hashchange', function () {\n if (isListVisible) {\n hideList();\n }\n });\n\n $(document).click(function (event) {\n var $target = $(event.target);\n\n if (!($target.is($container) || $.contains($container.get()[0], $target.get()[0])) && isListVisible) {\n hideList();\n }\n });\n\n $container.blur(function (event) {\n // The setTimeout here is to ensure activeElement is set before our function executes\n $timeout(function () {\n var $newTarget = $(event.explicitOriginalTarget || document.activeElement);\n\n if (!($.contains($container.get()[0], $newTarget.get()[0]) || $.contains($list.get()[0], $newTarget.get()[0]))) {\n hideList(event);\n }\n }, 1);\n });\n\n listCreated = true;\n updateCover();\n }\n\n function render() {\n var options = $select.find('option');\n\n if (!listCreated) {\n createList(options);\n }\n }\n\n $select.wrap($container);\n $container = $select.parent();\n\n // Change class names to enable styling of hover/focus states\n $select.bind('mouseenter focus', function () {\n return $span.addClass('active');\n });\n // Change class names to enable styling of hover/focus states\n $select.bind('mouseleave blur', function () {\n return $span.removeClass('active');\n });\n $select.after($span);\n $select.addClass('replaced');\n $select.attr('tabindex', '-1');\n\n if (attrs['default']) {\n var defaultOption = document.createElement('option');\n\n defaultOption.innerText = attrs['default'];\n $select.append(defaultOption);\n }\n\n if ($select.attr('ng-options')) {\n $scope.$watch(attrs.ngModel, function () {\n render();\n });\n } else {\n $timeout(function () {\n return $scope.$broadcast('pageRendered');\n });\n }\n\n $scope.$on('pageRendered', function () {\n return render();\n });\n }\n };\n }]);\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n/***/ }),\n\n/***/ \"../node_modules/xo-ui-components/src/dropdown/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(console) {var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/squid/dist/index.js\"), __webpack_require__(\"../node_modules/jquery/dist/jquery.min.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (squid, $) {\n $.fn.dropdown = function () {\n console.warn('Dropdown deprecated');\n };\n squid.module('xo-dropdown.directive', ['squid']).directive('xoDropdown', ['$parse', '$window', '$timeout', '$util', '$compile', function ($parse, $window, $timeout, $util, $compile) {\n var userAgent = ($window.navigator || {}).userAgent;\n var isWinOS = Boolean(userAgent.match(/\\(win/i));\n\n return {\n restrict: 'A',\n scope: {\n dropdownTextBindVar: '=?'\n },\n link: function link($scope, $element, attrs) {\n var $parentScope = $scope.$parent;\n var $select = $($element);\n // TODO: This html should be refactored out into a template.\n var $span = $('');\n var selectInitialValue = '';\n var ngChange = '';\n\n $select.parent().addClass('custom-select-container');\n // Change class names to enable styling of hover/focus states\n $select.bind('mouseenter', function () {\n return $span.addClass('active');\n });\n $select.bind('mouseleave', function () {\n return $span.removeClass('active');\n });\n // Change class names to enable styling of hover/focus states\n $select.bind('focus', function () {\n selectInitialValue = $parse(attrs.ngModel)($parentScope);\n $span.addClass('active');\n });\n\n function executeSelectChange() {\n // setTimeout here is to ensure activeElement is set before our function executes\n $timeout(function () {\n var val = $parse(attrs.ngModel)($parentScope);\n\n if (selectInitialValue !== val) {\n if (ngChange) {\n ngChange($parentScope);\n }\n selectInitialValue = val;\n }\n }, 5);\n }\n\n if (isWinOS) {\n if (attrs['ngChange']) {\n ngChange = $parse(attrs.ngChange);\n attrs['ngChange'] = '';\n }\n\n $select.bind('blur', function () {\n executeSelectChange();\n $span.removeClass('active');\n });\n $select.bind('click', function () {\n return executeSelectChange();\n });\n } else {\n $select.bind('blur', function () {\n return $span.removeClass('active');\n });\n }\n\n $select.after($span);\n $select.addClass('replaced');\n\n if (attrs['default']) {\n var defaultOption = document.createElement('option');\n\n defaultOption.innerText = attrs['default'];\n $select.append(defaultOption);\n }\n\n var match = (attrs.ngOptions || '').match(/in ([\\w\\.]+)/);\n // Text Update Method 1(new): ng-bind on variable passed in directive and that is updated in parent/sibling scope\n if (angular.isDefined($scope.dropdownTextBindVar)) {\n var selectTextElement = $span.find('span span');\n\n if (selectTextElement.length) {\n $(selectTextElement).attr('ng-bind', 'dropdownTextBindVar');\n $(selectTextElement).html($compile(selectTextElement[0])($scope));\n }\n\n $scope.$watch('dropdownTextBindVar', function (newVal) {\n if (document.documentElement.getAttribute('dir') === 'rtl') {\n $span.toggleClass('ltrOverride', !$util.hasRTL(newVal));\n }\n });\n }\n // Text Update Method 2(old): jQuery text update on various conditions (not as reliable for me, ran into timing edge cases)\n else {\n var updateCover = function updateCover() {\n $timeout(function () {\n var text = $select.find(':selected').text().trim();\n\n $span.find('span span').text(text);\n if (document.documentElement.getAttribute('dir') === 'rtl') {\n $span.toggleClass('ltrOverride', !$util.hasRTL(text));\n }\n }, 5);\n };\n\n $parentScope.$watch(attrs.ngModel, updateCover);\n $scope.$on('contentChange', updateCover);\n if (match) {\n $parentScope.$watch(match[1], updateCover);\n }\n // Update cover on arrow key press, for case where menu is not open\n // but user is interacting with dropdown (eg. Firefox)\n $select.bind('keyup', function (event) {\n // Arrow keys are 37 - 40\n if (event.which >= 37 || event.which <= 40) {\n updateCover();\n }\n });\n }\n\n toggleOptionsLTROverride();\n if (match) {\n $parentScope.$watch(match[1], function (newVal) {\n toggleOptionsLTROverride();\n });\n }\n\n function toggleOptionsLTROverride() {\n if (document.documentElement.getAttribute('dir') === 'rtl') {\n $timeout(function () {\n var options = $select.find('option');\n\n for (var i = 0; i < options.length; i++) {\n $(options.get(i)).toggleClass('ltrOverride', !$util.hasRTL(options.get(i).text));\n }\n });\n }\n }\n }\n };\n }]);\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/console-browserify/index.js\")))\n\n/***/ }),\n\n/***/ \"../node_modules/xo-ui-components/src/error-tooltip/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function($) {\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _angularAria = __webpack_require__(\"../node_modules/angular-aria/angular-aria.min.js\");\n\n// Configure angular aria.\n// Note that aria configuration applies globally\n_angularAria.$ariaProvider.config({ // eslint-disable-line angular/di\n // Remove bindRoleForClick since we use ngClick for several items that shouldn't be treated as buttons.\n bindRoleForClick: false,\n\n // Remove ariaInvalid and ariaRequired as we want to handle them ourselves.\n // These attributes should only be set once the form is submitted, to match what\n // visually what we display\n ariaInvalid: false,\n ariaRequired: false,\n // Removing aria-hidden attribute for hidden elements\n ariaHidden: false\n});\n\n(0, _squid.$registerDirective)('xo-error-tooltip', function () {\n return {\n restrict: 'A',\n require: ['?^form', '?ngModel'],\n link: function link(scope, element, attrs, ctrls) {\n var formCtrl = ctrls[0],\n modelCtrl = ctrls[1];\n\n\n function shouldBeRequired() {\n if (formCtrl) {\n // If input is a checkbox and has error-text or error-key, show the error text instead of the required text.\n // error-text is a legacy thing for backward compatibility, we can get rid of this once all teams\n // adopt error-key in all input tags\n var showCheckboxRequired = !(element.attr('type') === 'checkbox' && (attrs.errorText || attrs.errorKey));\n\n return formCtrl.$submitted && modelCtrl.$error.required && showCheckboxRequired;\n } else {\n return modelCtrl.$error.required;\n }\n }\n\n function shouldBeInvalid() {\n if (formCtrl) {\n return formCtrl.$submitted && modelCtrl.$invalid;\n } else {\n return modelCtrl.$invalid;\n }\n }\n\n // Add or remove a string into a space split string (eg. aria-describedby ids, class names)\n function formatSpaceSplitString(str, id, add) {\n var strArray = void 0;\n\n if (str) {\n strArray = str.split(' ');\n } else {\n strArray = [];\n }\n\n var idIndex = strArray.indexOf(id);\n\n if (~idIndex && !add) {\n strArray.splice(idIndex, 1);\n } else if (!~idIndex && add) {\n strArray.push(id);\n }\n\n return strArray.join(' ');\n }\n\n // Add tooltip behavior after DOM settles\n (0, _angular.$timeout)(function () {\n var generateId = function generateId() {\n return Math.random().toString(36).replace(/[^a-z]+/g, '').substr(0, 7);\n };\n var requiredId = generateId();\n var invalidId = generateId();\n var requiredError = void 0;\n var invalidError = void 0;\n\n if (attrs.errorKey) {\n element.addClass('hasErrorTooltipRuleSpecific');\n invalidError = (0, _angular.$compile)('
      {{content(\"' + attrs.errorKey + '\")}}
      ')(scope);\n element.after(invalidError);\n } else if (attrs.errorText) {\n // errorText if case is for backward compatibility, we can get rid of this once\n // all teams adopt error-key in all input tags for tooltip message display\n element.addClass('hasErrorTooltipRuleSpecific');\n invalidError = $('
      ' + attrs.errorText + '
      ');\n element.after(invalidError);\n }\n\n if (attrs.required || (0, _angular.$parse)(attrs.ngRequired)(scope)) {\n element.addClass('hasErrorTooltipRequired');\n requiredError = (0, _angular.$compile)('
      {{content(\"validation.required\")}}
      ')(scope);\n element.after(requiredError);\n element.removeAttr('aria-required');\n }\n\n function setAriaAttributes() {\n var addTooltips = {\n required: false,\n invalid: false\n };\n\n // Do not associate \"Required\" error with aria-describedby\n // because this should already be read out either by \"required\"\n // attribute or \"aria-required\"=true, and only associate \"Invalid\"\n // error if \"Required\" is not showing to match visuals\n if (shouldBeRequired()) {\n addTooltips.required = true;\n } else if (shouldBeInvalid()) {\n addTooltips.invalid = true;\n }\n\n var describedby = element.attr('aria-describedby');\n\n describedby = formatSpaceSplitString(describedby, requiredId, addTooltips.required);\n describedby = formatSpaceSplitString(describedby, invalidId, addTooltips.invalid);\n element.attr('aria-describedby', describedby);\n }\n\n scope.$watch(shouldBeRequired, function (newVal) {\n setAriaAttributes();\n });\n scope.$watch(shouldBeInvalid, function (newVal) {\n element.attr('aria-invalid', newVal);\n setAriaAttributes();\n });\n\n // Set scroll so that the error message is in view when element receives focus\n element.on('focus', function (event) {\n var windowBot = $(window).scrollTop() + $(window).height();\n var requiredBot = requiredError ? requiredError.offset().top + requiredError.outerHeight() : 0;\n var invalidBot = invalidError ? invalidError.offset().top + invalidError.outerHeight() : 0;\n\n if (windowBot < Math.max(requiredBot, invalidBot)) {\n $(window).scrollTop(Math.max(requiredBot, invalidBot) - $(window).height());\n }\n });\n });\n }\n };\n});\n\n_squid.$registerDirective;\n\n_angular.$parse;\n\n_angular.$compile;\n\n_angular.$timeout;\n\n_angularAria.$ariaProvider;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/jquery/dist/jquery.min.js\")))\n\n/***/ }),\n\n/***/ \"../node_modules/xo-ui-components/src/escape-hatch/closeFrame/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\nvar _index = __webpack_require__(\"../node_modules/xo-return-to-merchant/dist/index.js\");\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/squid/dist/index.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!../node_modules/xo-ui-components/src/escape-hatch/closeFrame/template.html\"), __webpack_require__(\"../node_modules/xo-models/src/user/index.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (squid, template) {\n\n squid.module('xo-escape-hatch.closeFrame.directive', ['squid', 'xomodel.user']).directive('xoCloseFrame', [function () {\n return {\n template: template,\n\n restrict: 'E',\n\n scope: {\n redirectiframe: '=?',\n redirectLightbox: '=?'\n },\n\n controller: ['$scope', '$rootScope', '$populate', '$CheckoutInputDataModel', '$window', '$CheckoutAppDataModel', '$util', '$injector', '$logger', function ($scope, $rootScope, $populate, $CheckoutInputDataModel, $window, $CheckoutAppDataModel, $util, $injector, $logger) {\n\n $populate($scope, {\n checkoutAppData: $CheckoutAppDataModel.instance($rootScope.token)\n }).then(function () {\n var cancel_url = $scope.checkoutAppData.urls.cancel_url;\n\n $scope.checkoutInputData = $CheckoutInputDataModel.instance($scope.token);\n $scope.isIFrame = $util.isIFrame();\n\n $scope.closeFrame = function (event) {\n event.preventDefault();\n event.stopPropagation();\n\n if (window.xchild) {\n if (window.xprops.onCancel) {\n return window.xprops.onCancel({\n token: $scope.token,\n cancelUrl: cancel_url\n });\n } else {\n return window.xchild.close();\n }\n }\n\n if ($scope.redirectLightbox) {\n var result = _index.$ReturnToMerchant.postToMerchant({\n operation: 'return_to_merchant',\n returnUrl: cancel_url,\n updateParent: true\n });\n\n // Otherwise we have no choice but to return to the merchant\n if (!result) {\n $util.redirect(cancel_url);\n }\n\n // TODO - Move out helios specific logic. Apps should provide a callback instead.\n } else if ($scope.redirectiframe) {\n $window.location.replace(cancel_url);\n\n // TODO - Move out helios specific logic. Apps should provide a callback instead.\n } else {\n\n var iFrameFlow = $injector.get('$IFrameFlow');\n\n $logger.info('HELIOS_FLOW_FALLBACK'); // overall fallbacks\n $logger.info('HELIOS_FALLBACK_TO_MERCHANT');\n $logger.info('HELIOS_FALLBACK_MERCHANT_USER_CANCELLED');\n\n var url = $scope.checkoutInputData.errorUrl('user_cancelled');\n\n if ($scope.auth && $scope.auth.code) {\n url += '&code=' + $scope.auth.code;\n }\n\n iFrameFlow.findWindowAndRedirect($scope.checkoutInputData, url);\n }\n $scope.$emit('exitFrame');\n };\n });\n }]\n };\n }]);\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n_index.$ReturnToMerchant;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-ui-components/src/escape-hatch/escapeHatch/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/squid/dist/index.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!../node_modules/xo-ui-components/src/escape-hatch/escapeHatch/template.html\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (squid, template) {\n\n squid.module('xo-escape-hatch.escapeHatch.directive', ['squid']).directive('xoEscapeHatch', [function () {\n return {\n template: template,\n\n restrict: 'E',\n\n controller: ['$scope', '$rootScope', '$window', '$util', '$logger', function ($scope, $rootScope, $window, $util, $logger) {\n $scope.isIFrame = $util.isIFrame();\n $scope.closeFrame = function (event) {\n var url = $window.location.href && $window.location.href.split('#')[0] || '';\n\n if (url.indexOf('proxflow') > -1) {\n url = url.replace('proxflow', 'webapps/helios');\n }\n\n url += url.slice(-1) === '&' ? 'escape_hatch=1' : '&escape_hatch=1';\n\n if (url.indexOf('hermes') > -1 || url.indexOf('checkoutnow')) {\n $logger.info('HERMES_ESCAPE_HATCH_CLICKED');\n } else {\n $logger.info('HELIOS_ESCAPE_HATCH_CLICKED');\n }\n\n $window.top.location = url;\n $scope.$emit('exitFrame');\n };\n }]\n };\n }]);\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n/***/ }),\n\n/***/ \"../node_modules/xo-ui-components/src/floating-label/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/floating-label/styles.less\");\n\nvar treatmentType = void 0;\nvar newLocale = void 0;\nvar oldLocale = void 0;\n\nfunction getTreatment() {\n if (treatmentType !== undefined) {\n return treatmentType;\n }\n if ((0, _squid.$feature)('floatingLabels')) {\n return true;\n }\n var token = _angular.$rootScope.token;\n var throttle = _squid.$config['floatingLabelLocales'] && _squid.$config['floatingLabelLocales'][_squid.$locale.country] && _squid.$config['floatingLabelLocales'][_squid.$locale.country][_squid.$locale.lang];\n var id = _squid.$locale.lang + '_' + _squid.$locale.country + token;\n\n treatmentType = throttle && (0, _squid.$experiment)('floating_label_exp', throttle, id, {}) ? true : false;\n return treatmentType;\n}\n\n(0, _squid.$registerDirective)('floating-label', function () {\n return {\n restrict: 'A',\n link: function link(scope, element, attrs) {\n scope.$on('localeChange', function () {\n newLocale = _squid.$locale.country + '_' + _squid.$locale.lang;\n\n if (oldLocale !== newLocale) {\n treatmentType = undefined;\n oldLocale = newLocale;\n }\n scope.showFloatingLabels = getTreatment();\n });\n\n (0, _angular.$timeout)(function () {\n scope.showFloatingLabels = getTreatment();\n\n scope.$watch('showFloatingLabels', function (val) {\n // remove else block after experimentation is complete\n if (val) {\n element.addClass('floatingLabel');\n element.removeClass('noFloatingLabel');\n } else {\n element.removeClass('floatingLabel');\n element.addClass('noFloatingLabel');\n }\n });\n\n var input = element.find('input');\n\n if (input.attr('placeholder')) {\n input.addClass('hasPlaceholder');\n }\n\n // To hide the placeholder labels for pre-populated input fields\n scope.$watch(input.attr('ng-model'), function (value) {\n input.toggleClass('focused', !!value);\n });\n\n // We're using this as an alternative to watching 'ng-model' since this properly triggers the focused CSS property on email input.\n input.on('keyup', function (event) {\n var val = event.target.value;\n\n input.toggleClass('focused', !!val);\n });\n\n input.on('focus blur click', function (event) {\n if (scope.showFloatingLabels) {\n input.toggleClass('focused', event.type === 'focus' || this.value.length > 0);\n }\n });\n\n if (!('disableAutoblur' in attrs)) {\n input.trigger('blur');\n }\n });\n }\n };\n});\n\n(0, _squid.$registerDirective)('floating-label-dropdown', function () {\n return {\n restrict: 'A',\n link: function link(scope, element, attrs) {\n scope.$on('localeChange', function () {\n newLocale = _squid.$locale.country + '_' + _squid.$locale.lang;\n\n if (oldLocale !== newLocale) {\n treatmentType = undefined;\n oldLocale = newLocale;\n }\n scope.showFloatingLabels = getTreatment();\n });\n\n (0, _angular.$timeout)(function () {\n scope.showFloatingLabels = getTreatment();\n scope.$watch('showFloatingLabels', function (val) {\n // remove else block after experimentation is complete\n if (val) {\n element.addClass('floatingLabel');\n element.removeClass('noFloatingLabel');\n } else {\n element.removeClass('floatingLabel');\n element.addClass('noFloatingLabel');\n }\n });\n\n var select = element.find('select');\n var label = element.find('label');\n var flSpan = element.find('.custom-select span span');\n\n select.on('change mouseenter mouseleave blur', function (event) {\n var value = event.currentTarget.value;\n\n select.toggleClass('focused', event.type === 'change' || value.length > 0);\n flSpan.toggleClass('noValue', value.length < 1);\n label.toggleClass('hide', value.length < 1);\n }).trigger('mouseleave');\n });\n }\n };\n});\n\n_angular.$timeout;\n\n_angular.$rootScope;\n\n_squid.$locale;\n\n_squid.$experiment;\n\n_squid.$config;\n\n_squid.$feature;\n\n_squid.$registerDirective;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-ui-components/src/floating-label/styles.less\":\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ \"../node_modules/xo-ui-components/src/generic-error/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _jquery = __webpack_require__(\"../node_modules/jquery/dist/jquery.min.js\");\n\nvar _jquery2 = _interopRequireDefault(_jquery);\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _uiRouter = __webpack_require__(\"../node_modules/angular-ui-router/release/angular-ui-router.min.js\");\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\nvar _index = __webpack_require__(\"../node_modules/xo-models/src/auth/index.js\");\n\nvar _app = __webpack_require__(\"../node_modules/xo-models/src/app/index.js\");\n\nvar _index2 = __webpack_require__(\"../node_modules/xo-return-to-merchant/dist/index.js\");\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _index3 = __webpack_require__(\"../node_modules/xo-models/src/checkout/index.js\");\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/banner/directive.js\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-ui-components/src/generic-error/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/generic-error/styles.less\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar TITLE_KEY_MAPPING = {\n BLOCK_NON_DOMESTIC_SHIPPING: 'blockNonDomesticShippingTitle',\n BLOCK_PPC_INELIGIBLE_USER: 'blockPPCIneligibleTitle',\n COMPLIANCE_VIOLATION: 'transactionRefusedTitle',\n DOMESTIC_TRANSACTION_REQUIRED: 'domesticTransactionRequiredTitle',\n GAMER_LOGIN_OUT_OF_COUNTRY: 'sorry',\n GAMER_RESIDENCE_OUT_OF_COUNTRY: 'sorry',\n HERMES_PAYER_COUNTRY_NOT_ALLOWED_DCF: 'payerCountryNotAllowedTitleMemberDCF',\n INTERNAL_SERVICE_ERROR: 'transactionRefusedTitle',\n NEGATIVE_BALANCE_TRANSACTION_REFUSED: 'negativeBalanceRefusedTitle',\n PAYEE_ACCOUNT_LOCKED_OR_CLOSED: 'payeeAccountLockedOrClosedTitle',\n PAYER_COUNTRY_NOT_ALLOWED: 'payerCountryNotAllowedTitle',\n PAYER_COUNTRY_NOT_ENABLED: 'payerCountryNotAllowedTitle',\n PAYER_LOGIN_COUNTRY_NOT_ALLOWED: 'payerCountryNotAllowedTitle',\n PAYMENT_PROCESS_ERROR: 'paymentProcessError',\n RETRY: 'sorry',\n SENDING_LIMIT_EXCEEDED: 'genericErrorMessageTitle',\n STUDENT_ACCOUNT: 'studentAccountTitle',\n TRANSACTION_REFUSED: 'transactionRefusedTitle',\n XOON_PAYER_COUNTRY_NOT_ALLOWED_DCF: 'payerCountryNotAllowedTitleSignupDCF',\n CREDIT_CARD_AUTH_FAILED: 'smartDollarAuthFailedMsg'\n};\n\nvar CONTENT_KEY_MAPPING = {\n ACCOUNT_CANNOT_BE_FETCHED: 'genericError',\n AGREEMENT_ALREADY_CREATED: 'agreementAlreadyCreated',\n // TODO: rename to a common one, e.g TOKENIZED_WALLET_ELIGIBILITY_ERROR later\n ANDROID_PAY_ALREADY_PROVISIONED: 'tokenizedWalletAlreadyProvisioned',\n ANDROID_PAY_ELIGIBILITY_ERROR: 'tokenizedWalletGenericError',\n // end of TODO\n BLOCK_NON_DOMESTIC_SHIPPING: 'blockNonDomesticShippingMessage',\n BLOCK_PPC_INELIGIBLE_USER: 'blockPPCIneligibleMessage',\n COMPLIANCE_VIOLATION: 'complianceViolationMessage',\n DEFAULT_TOKENIZED_WALLET_ERROR: 'tokenizedWalletGenericError',\n DEFAULT: 'genericError',\n DOMESTIC_TRANSACTION_REQUIRED: 'domesticTransactionRequiredMessage',\n DUPLICATE_INVOICE_ID: 'duplicateInvoiceId',\n EINVALIDCSRF_JWT_EXPIRED: 'csrfTokenExpired',\n EXPIRED_SESSION: 'expiredOrTokenNotFoundError',\n GAMER_ACCOUNT_UNVERIFIED: 'accountUnverified',\n GAMER_INELIGIBLE: 'transactionRefusedTitle',\n GAMER_FI_INELIGIBLE: 'fiIneligible',\n GAMER_FI_UNCONFIRMED: 'fiUnconfirmed',\n GAMER_INVALID_ACCOUNT_TYPE: 'invalidAccountType',\n GAMER_LOGIN_OUT_OF_COUNTRY: 'unauthorizedCountryLogin',\n GAMER_NO_VALID_FUNDING_INSTRUMENT: 'fiIneligible',\n GAMER_RESIDENCE_OUT_OF_COUNTRY: 'unauthorizedCountryAccountRegistered',\n GAMING_FUNDING_SOURCE_VALIDATION_FAILED: 'unauthorizedCountryAccountRegistered',\n GUEST_UPGRADE_ERROR: 'guestUpgradeError',\n GUEST_UPGRADE_SESSION_ERROR: 'guestUpgradeSessionError',\n HERMES_PAYER_COUNTRY_NOT_ALLOWED_DCF: 'unauthorizedCountryAccountMemberDCF',\n INTERNAL_SERVICE_ERROR: 'transactionRefusedMessage',\n INVALID_RESOURCE_ID: 'expiredOrTokenNotFoundError',\n NEGATIVE_BALANCE_TRANSACTION_REFUSED: 'negativeBalanceRefusedMessage',\n PAYEE_ACCOUNT_LOCKED_OR_CLOSED: 'payeeAccountLockedOrClosed',\n PAYEE_BLOCKED_TRANSACTION: 'paymentDeniedError',\n PAYER_CANNOT_PAY: 'paymentDeniedError',\n PAYER_COUNTRY_NOT_ALLOWED: 'unauthorizedCountryAccountRegistered',\n PAYER_COUNTRY_NOT_ENABLED: 'rpUnauthorizedCountryMessage',\n PAYER_LOGIN_COUNTRY_NOT_ALLOWED: 'unauthorizedCountryLogin',\n PAYMENT_ALREADY_DONE: 'paymentAlreadyCompletedError',\n PAYMENT_DENIED: 'paymentDeniedError',\n PAYMENT_PROCESS_ERROR: 'chooseOtherWayToPay',\n RESTRICTED_USER: 'buyerRestrictedError',\n RETRY: 'thingsNotWorking',\n SENDING_LIMIT_EXCEEDED: 'sendingLimitExceeded',\n STUDENT_ACCOUNT: 'studentAccountMessage',\n TRANSACTION_LIMIT_EXCEEDED: 'transactionLimitExceeded',\n TRANSACTION_REFUSED: 'transactionRefusedMessage',\n CREDIT_CARD_AUTH_FAILED: 'transactionRefusedMessage',\n UNSUPPORTED_COUNTRY: 'unsupportedCountry',\n UNSUPPORTED_DUE_TO_RECEIVER_PREFERENCE: 'unsupportedReceiverPreferences',\n UNSUPPORTED_PAYEE_CURRENCY: 'unsupportedPayeeCurrency',\n XOON_PAYER_COUNTRY_NOT_ALLOWED_DCF: 'unauthorizedCountryAccountSignupDCF'\n};\n\n// pass merchantName attribute, if undefined, then suffix 'Default' to key\nvar renderContentWithMerchantName = function renderContentWithMerchantName(key) {\n var merchantNameFromProps = this.props.merchant;\n\n // we may not get merchantName as props, look for models also\n var merchantNameFromModels = void 0;\n if (this.models && this.models.checkoutAppData && this.models.checkoutAppData.merchant) {\n var merchant = this.models.checkoutAppData.merchant;\n\n merchantNameFromModels = merchant.brand_name || merchant.merchant_name;\n }\n\n var merchantName = merchantNameFromProps || merchantNameFromModels;\n\n if (merchantName) {\n return (0, _squid.$renderContent)(key, { merchantName: merchantName });\n }\n\n return (0, _squid.$renderContent)(key + 'Default');\n};\n\nvar renderContentWithWalletTokenizationName = function renderContentWithWalletTokenizationName(key) {\n var brandName = this.models.tokenizedWalletInfoModel.brandName();\n\n return (0, _squid.$renderContent)(key, { type: brandName });\n};\n\n// handle non-standard merchant error title strings\nvar TITLE_KEY_HANDLER = {\n DOMESTIC_TRANSACTION_REQUIRED: renderContentWithMerchantName,\n HERMES_PAYER_COUNTRY_NOT_ALLOWED_DCF: renderContentWithMerchantName,\n XOON_PAYER_COUNTRY_NOT_ALLOWED_DCF: renderContentWithMerchantName\n};\n\n// handle non-standard merchant error content strings\nvar CONTENT_KEY_HANDLER = {\n AGREEMENT_ALREADY_CREATED: renderContentWithMerchantName,\n ANDROID_PAY_ALREADY_PROVISIONED: renderContentWithWalletTokenizationName,\n DEFAULT_TOKENIZED_WALLET_ERROR: renderContentWithWalletTokenizationName,\n DOMESTIC_TRANSACTION_REQUIRED: renderContentWithMerchantName,\n HERMES_PAYER_COUNTRY_NOT_ALLOWED_DCF: renderContentWithMerchantName,\n XOON_PAYER_COUNTRY_NOT_ALLOWED_DCF: renderContentWithMerchantName\n};\n\nvar SHOW_LOGOUT_LINK_CODES = ['HERMES_PAYER_COUNTRY_NOT_ALLOWED_DCF', 'ANDROID_PAY_COUNTRY_NOT_SUPPORTED', 'ANDROID_PAY_ALREADY_PROVISIONED', 'GAMER_INVALID_ACCOUNT_TYPE'];\n\nvar HIDE_CANCEL_LINK_CODES = ['PAYER_COUNTRY_NOT_ALLOWED', 'GAMING_FUNDING_SOURCE_VALIDATION_FAILED', 'PAYER_LOGIN_COUNTRY_NOT_ALLOWED'];\n\nvar RETRY_LINK = ['EINVALIDCSRF_JWT_EXPIRED', 'GUEST_CHECKOUT_NOT_ALLOWED', 'RETRY'];\n\nvar TRANSACTION_REFUSED_BA_TITLE_MSG = {\n BA_NO_PURCHASE: 'transactionRefusedBAnoPurchaseTitle',\n BA_WITH_PURCHASE: 'transactionRefusedBAPurchaseTitle'\n};\n\n/* eslint-disable fasec/no-unsafe-regex */\nvar base64regex = new RegExp('^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$');\n\nexports['default'] = _squid.$Component.extend('$xoGenericErrorComponent', {\n tag: 'xo-generic-error',\n template: _template2['default'],\n props: {\n token: {\n type: 'var',\n required: false\n },\n logout: {\n type: 'var',\n required: false\n },\n isUnbranded: {\n type: 'var',\n required: false\n },\n cancelUrl: {\n type: 'str',\n required: false\n },\n merchant: {\n type: 'str',\n required: false\n }\n },\n resolve: {\n models: function models() {\n if (this.props.token) {\n return {\n checkoutAppData: _index3.$CheckoutAppDataModel.instance(this.props.token).retrieve()['catch'](angular.noop),\n cart: _index3.$CheckoutCartModel.instance(this.props.token).retrieve()['catch'](angular.noop),\n checkoutPayee: _index3.$CheckoutPayeeModel.instance(this.props.token).retrieve()['catch'](angular.noop),\n auth: _index.$AuthModel.instance().retrieve()['catch'](angular.noop),\n tokenizedWalletInfoModel: _app.$TokenizedWalletInfoModel.instance(this.props.token).retrieve()['catch'](angular.noop)\n };\n }\n }\n },\n lifecycle: {\n enter: function enter() {\n var _this = this;\n\n var cancelPreventStateChange = _angular.$rootScope.$on('$stateChangeStart', function (event, toState, toParams, fromState, fromParams) {\n event.preventDefault();\n });\n\n this.$on('$destroy', cancelPreventStateChange);\n\n var self = this;\n\n // to not break other application's error integration, we'll still support base64 decoded code parameters\n if (_uiRouter.$stateParams.code && base64regex.test(_uiRouter.$stateParams.code)) {\n self.errorCode = _squid.$util.base64Decode(_uiRouter.$stateParams.code);\n } else {\n self.errorCode = _uiRouter.$stateParams.code;\n }\n\n self.hideCancelLink = HIDE_CANCEL_LINK_CODES.indexOf(self.errorCode) > -1;\n self.retryLink = RETRY_LINK.indexOf(self.errorCode) > -1;\n\n _angular.$rootScope.allowUnload = true;\n self.cancelLink = self.props.cancelUrl;\n\n self.cancelRedirect = function ($event) {\n $event.preventDefault();\n var redirectUrl = self.cancelLink;\n\n if (_angular.$rootScope.partnerIntegration) {\n _logger.$logger.info('genericerror_partner_integration');\n redirectUrl = _squid.$util.buildURL(self.cancelLink, { error: 'true' });\n }\n\n _index2.$ReturnToMerchant.goTo(redirectUrl);\n };\n\n self.retryCheckout = function ($event) {\n $event.preventDefault();\n _squid.$util.reload();\n };\n\n self.isMessengerBAIntegration = _squid.$integration.getConfig('IS_MESSENGER_BA_INTEGRATION');\n\n self.loggingOut = function ($event) {\n $event.preventDefault();\n cancelPreventStateChange();\n self.props.logout();\n };\n\n (0, _jquery2['default'])('.paypalHeaderWrapper').hide();\n // Cancel link should be shown for \"Credit Ineligible\" page for DE\n if (self.errorCode !== 'BLOCK_PPC_INELIGIBLE_USER') {\n (0, _jquery2['default'])('#defaultCancelLink').hide();\n }\n (0, _jquery2['default'])('.footerWrapper').addClass('genericError');\n\n self.$on('$destroy', function (event) {\n (0, _jquery2['default'])('.paypalHeaderWrapper').show();\n if (self.errorCode !== 'BLOCK_PPC_INELIGIBLE_USER') {\n (0, _jquery2['default'])('#defaultCancelLink').show();\n }\n (0, _jquery2['default'])('.footerWrapper').removeClass('genericError');\n });\n\n // Returns the title string, based on custom key handler\n self.getTitle = function () {\n var key = self.titleKey;\n\n if (TITLE_KEY_HANDLER.hasOwnProperty(self.errorCode)) {\n return TITLE_KEY_HANDLER[self.errorCode].call(_this, key);\n }\n return (0, _squid.$renderContent)(key);\n };\n\n // Returns the content string, based on custom key handler\n self.getContent = function () {\n var key = self.contentKey;\n\n if (CONTENT_KEY_HANDLER.hasOwnProperty(self.errorCode)) {\n return CONTENT_KEY_HANDLER[self.errorCode].call(_this, key);\n }\n return (0, _squid.$renderContent)(key);\n };\n\n // Returns the cancel button label, based on presence of brand/merchant name\n self.getCancelLabel = function () {\n if (self.walletTokenization) {\n var brandName = _this.models.tokenizedWalletInfoModel.brandName();\n\n return (0, _squid.$renderContent)('common.backToTokenizedWalletB', { type: brandName });\n } else {\n var merchantName = _this.props.merchant;\n\n return (0, _index2.formatReturnContent)(_squid.$renderContent, merchantName);\n }\n };\n\n this.personalizedBanner = {\n show: false\n };\n\n _logger.$logger.info('checkout_fpti', {\n landing_page: 'error_page',\n int_error_code: '1',\n int_error_description: _uiRouter.$stateParams.code\n });\n },\n populate: function populate() {\n var _models = this.models,\n checkoutAppData = _models.checkoutAppData,\n checkoutPayee = _models.checkoutPayee,\n cart = _models.cart,\n auth = _models.auth;\n\n\n this.walletTokenization = cart && cart.isWalletTokenization();\n this.personalizedBanner.show = auth && auth.rememberedOT() && (0, _squid.$feature)('oneTouchPersonalization');\n\n if (checkoutAppData) {\n this.cancelLink = checkoutAppData.urls.cancel_url;\n }\n\n if (checkoutPayee) {\n var merchant = checkoutPayee.merchant;\n\n\n if (merchant.id && !this.hideCancelLink) {\n var hcl = _squid.$config.hideCancelLinkForMerchant;\n\n var shouldHide = hcl && hcl.indexOf(merchant.id) !== -1;\n\n if (shouldHide) {\n this.hideCancelLink = true;\n }\n }\n }\n\n if (auth) {\n this.showLogoutLink = _squid.$util.param('source') !== 'consumerApp' && this.props.logout && SHOW_LOGOUT_LINK_CODES.indexOf(this.errorCode) > -1 && !auth.disallow_login_switch; // disallow_login_switch is used for Google Pay - acount linking to hide \"not you\" button (see xo-hercules/auth/outputMapper)\n\n this.formattedNameInformal = (0, _squid.formatNameInformal)({\n first_name: auth.first_name,\n last_name: auth.last_name\n }) || auth.email;\n }\n\n // Map error code for Android Pay\n if (this.walletTokenization) {\n // For Android Pay, map all errors to generic Android Pay error except for\n // ANDROID_PAY_ALREADY_PROVISIONED\n if (this.errorCode !== 'ANDROID_PAY_ALREADY_PROVISIONED') {\n this.errorCode = 'DEFAULT_TOKENIZED_WALLET_ERROR';\n }\n }\n\n var titleKey = this.errorCode && TITLE_KEY_MAPPING[this.errorCode];\n\n if (titleKey) {\n if (titleKey === 'transactionRefusedTitle' && cart && cart.isBillingNoPurchase()) {\n this.titleKey = 'genericError.' + TRANSACTION_REFUSED_BA_TITLE_MSG['BA_NO_PURCHASE'];\n } else if (titleKey === 'transactionRefusedTitle' && cart && cart.isBillingPurchase()) {\n this.titleKey = 'genericError.' + TRANSACTION_REFUSED_BA_TITLE_MSG['BA_WITH_PURCHASE'];\n } else {\n this.titleKey = 'genericError.' + titleKey;\n }\n }\n\n var contentKey = this.errorCode && CONTENT_KEY_MAPPING[this.errorCode] || CONTENT_KEY_MAPPING.DEFAULT;\n this.contentKey = 'genericError.' + contentKey;\n }\n }\n});\n\n\n_angular.$rootScope;\n\n_uiRouter.$stateParams;\n\n_logger.$logger;\n\n_index.$AuthModel;\n\n_app.$TokenizedWalletInfoModel;\n\n_index2.$ReturnToMerchant;\n\n_index2.formatReturnContent;\n\n_squid.$Component;\n\n_squid.$util;\n\n_squid.$renderContent;\n\n_squid.$config;\n\n_squid.formatNameInformal;\n\n_squid.$integration;\n\n_squid.$feature;\n\n_index3.$CheckoutAppDataModel;\n\n_index3.$CheckoutCartModel;\n\n_index3.$CheckoutPayeeModel;\nmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ \"../node_modules/xo-ui-components/src/generic-error/styles.less\":\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ \"../node_modules/xo-ui-components/src/generic-error/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
      \\n
      \\n
      \\n\\n \\n

      \\n {{ content('memberReview.loggedInWithOneTouch', {userName: formattedNameInformal, lastName: models.auth.last_name, firstName: models.auth.first_name}) }}\\n {{ content('memberReview.notYou')}}\\n

      \\n
      \\n
      \\n

      \\n {{ content('creditcard.hi', {userName: formattedNameInformal}) }}\\n {{ content('memberReview.notYou')}}\\n

      \\n
      \\n\\n
      \\n {{ getTitle() }}\\n
      \\n
      \\n
      \\n

      \\n \\n {{ content('genericError.tryAgain') }}\\n \\n

      \\n

      \\n \\n {{ getCancelLabel() }}\\n \\n

      \\n
      \\n
      \\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-ui-components/src/generic-message/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\nvar _app = __webpack_require__(\"../node_modules/xo-models/src/app/index.js\");\n\nvar _index = __webpack_require__(\"../node_modules/xo-models/src/checkout/index.js\");\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/jquery/dist/jquery.min.js\"), __webpack_require__(\"../node_modules/angular/angular.min.js\"), __webpack_require__(\"../node_modules/squid/dist/index.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!../node_modules/xo-ui-components/src/generic-message/template.html\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function ($, angular, squid, template) {\n\n return angular.module('xo-generic-message.directive', ['squid']).directive('xoGenericMessage', ['$rootScope', function ($rootScope) {\n\n return {\n template: template,\n\n scope: {\n token: '=?'\n },\n\n controller: ['$scope', '$rootScope', '$stateParams', '$state', '$logger', '$CheckoutAppDataModel', '$DeviceInfo', '$window', '$populate', function ($scope, $rootScope, // eslint-disable-line no-shadow\n $stateParams, $state, $logger, $CheckoutAppDataModel, $DeviceInfo, $window, $populate) {\n\n $rootScope.$on('$stateChangeStart', function (event, toState, toParams, fromState, fromParams) {\n event.preventDefault();\n });\n\n $('.paypalHeaderWrapper').hide();\n $('.footerWrapper').addClass('genericMessage');\n\n var titleKeyMapping = {\n PAYMENT_SUCCESS: 'paymentSuccessTitle',\n DEFAULT: 'paymentSuccessTitle'\n };\n\n $scope.titleKey = 'genericMessage.' + ($stateParams.code && titleKeyMapping[$stateParams.code]) || titleKeyMapping.DEFAULT;\n\n var contentKeyMapping = {\n PAYMENT_SUCCESS: 'paymentSuccessMessage',\n DEFAULT: 'paymentSuccessMessage'\n };\n\n var contentKey = $stateParams.code && contentKeyMapping[$stateParams.code];\n\n if (contentKey) {\n $scope.contentKey = 'genericMessage.' + contentKey;\n }\n\n $populate($scope, {\n checkoutAppData: $CheckoutAppDataModel.instance($scope.token),\n tokenizedWalletInfoModel: _app.$TokenizedWalletInfoModel.instance($scope.token),\n cart: _index.$CheckoutCartModel.instance($scope.token)\n }).then(function () {\n var merchant = $scope.checkoutAppData.merchant;\n\n $scope.merchant = merchant.brand_name || merchant.merchant_name || merchant.merchant_email;\n\n var _$stateParams$returnU = $stateParams.returnUrl,\n returnUrl = _$stateParams$returnU === undefined ? $scope.checkoutAppData.urls.return_url : _$stateParams$returnU;\n\n var isHTTPUrl = Boolean(returnUrl.indexOf('http') === 0 || returnUrl.indexOf('www') === 0);\n var enableSuccessReturnButton = Boolean($DeviceInfo.isDevice() && !isHTTPUrl);\n\n if (enableSuccessReturnButton) {\n $scope.enableSuccessReturnUrl = true;\n var contentWithButtonKeyMapping = {\n PAYMENT_SUCCESS: 'successMessage',\n DEFAULT: 'paymentSuccessMessage'\n };\n var contentWithButtonKey = $stateParams.code && contentWithButtonKeyMapping[$stateParams.code];\n\n if (contentWithButtonKey) {\n $scope.contentKey = '';\n }\n $scope.returnButtonLabel = (0, _squid.$renderContent)('genericMessage.continueButton');\n var walletTokenization = $scope.cart && $scope.cart.isWalletTokenization();\n\n if (walletTokenization) {\n var brandName = $scope.tokenizedWalletInfoModel.brandName();\n\n $scope.returnButtonLabel = (0, _squid.$renderContent)('common.backToTokenizedWalletB', { type: brandName });\n }\n $scope.goToMerchant = function () {\n $logger.info('checkout_fpti', {\n 'from': 'POST_3DS',\n 'to': 'checkout_end',\n 'message': 'REDIRECT_TO_MERCHANT_ON_BUTTON_CLICK',\n 'returnUrl': returnUrl\n });\n $window.onunload = $window.onbeforeunload = function () {};\n $window.location = returnUrl;\n };\n }\n });\n\n $scope.$on('$destroy', function (event) {\n $('.paypalHeaderWrapper').show();\n $('.footerWrapper').removeClass('genericMessage');\n });\n }]\n };\n }]);\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n_app.$TokenizedWalletInfoModel;\n\n_index.$CheckoutCartModel;\n\n_squid.$renderContent;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-ui-components/src/message/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/squid/dist/index.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!../node_modules/xo-ui-components/src/message/template.html\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (squid, template) {\n squid.module('xo-message.directive', ['squid']).directive('xoMessage', ['$timeout', '$loader', '$rootScope', function ($timeout, $loader, $rootScope) {\n return {\n scope: {\n message: '=?', // Expected type - {msgs: [], type: \"info|error|success|warning\"}\n isgreyheader: '=?'\n },\n template: template,\n link: function link(scope, element, attrs) {\n\n // Hide and show the alerts so that messages can be registered by\n // screen reader even if they are repeats. Uses $timeout to\n // wait for DOM before showing alerts again.\n var toggleAlert = function toggleAlert() {\n var $alert = element.find('ul');\n $alert.detach();\n $timeout(function () {\n element.find('#pageLevelErrors').append($alert);\n });\n };\n\n // Toggle the alert whenever message changes by removing it and reappending it\n // to the DOM. Should fire even if message\n // is changed to the same, as assumes that the message should be reapplied.\n var cancel;\n scope.$watchCollection('message', function () {\n if ($loader.isLoading() && !cancel) {\n // If loading, toggle the alert after all loading calls have been made.\n // This is so that the alert can be read by screen reader after focus\n cancel = $rootScope.$on('allLoaded', function () {\n cancel();\n toggleAlert();\n\n cancel = null;\n });\n } else {\n toggleAlert();\n }\n });\n\n scope.$on('$destroy', function () {\n if (cancel) {\n cancel();\n }\n });\n }\n };\n }]);\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n/***/ }),\n\n/***/ \"../node_modules/xo-ui-components/src/modal/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function($) {\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/accessibility/directive.js\");\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-ui-components/src/modal/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n// Directives used in the template\n(0, _squid.$registerDirective)('xoModal', function () {\n return {\n template: _template2['default'],\n restrict: 'E',\n replace: true,\n transclude: true,\n scope: {\n show: '=?',\n showCloseButton: '=?',\n enableCloseOnEscape: '=?',\n onClose: '=?',\n enableMobileInterstitial: '@?',\n overrideDefaultContainer: '@?' // Boolean to determine if default styling should be applied to container\n },\n controller: ['$scope', function ($scope) {\n $scope.animate = false; // Don't animate until triggered\n $scope.showOverlay = $scope.show;\n\n var escapeKeyHandler = function escapeKeyHandler($event) {\n if ($event.keyCode === 27) {\n // Escape key maps to keycode 27\n $scope.hideModal();\n }\n };\n\n if ($scope.enableCloseOnEscape) {\n // Handle escape button as close button click\n $(document).bind('keyup', escapeKeyHandler);\n }\n\n $scope.hideModal = function ($event) {\n if ($event) {\n $event.preventDefault();\n }\n\n $scope.show = false;\n $(document).unbind('keyup', escapeKeyHandler);\n if ($scope.onClose) {\n $scope.onClose();\n }\n };\n }],\n\n link: function link($scope, elem, attrs) {\n // HACK: without this check, the modal slides down/fades out upon it being rendered\n $scope.$watch('show', function (newVal, oldVal) {\n if (oldVal !== newVal) {\n // When the show prop changes\n $scope.animate = true; // Ensure the modal is animated\n }\n });\n }\n };\n});\n\n_squid.$registerDirective;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/jquery/dist/jquery.min.js\")))\n\n/***/ }),\n\n/***/ \"../node_modules/xo-ui-components/src/modal/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
      \\n\\t
      \\n\\t
      \\n\\t\\t
      \\n\\t\\t\\t
      \\n\\t\\t\\t
      \\n\\t\\t\\t{{ content('common.back') }}\\n\\t\\t
      \\n\\t
      \\n
      \\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-ui-components/src/prefix-attrs-with/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nexports['default'] = (0, _squid.$registerDirective)('prefix-attrs-with', function () {\n return {\n restrict: 'A',\n link: function link(scope, elem, attrs) {\n var prefix = attrs.prefixAttrsWith;\n\n if (prefix && prefix.length) {\n ['id', 'for', 'name'].forEach(function (attrName) {\n var base = attrs[attrName];\n\n if (base) {\n elem.attr(attrName, _squid.$util.dasherizeToCamel(prefix + '-' + base));\n }\n });\n }\n }\n };\n});\n\n\n_squid.$util;\n\n_squid.$registerDirective;\nmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ \"../node_modules/xo-ui-components/src/select-simple/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-ui-components/src/select-simple/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/select-simple/styles.less\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n/**\n * xo-ui-select-simple\n * Full directive/template for the dropdown UI component (http://paypal-ui/components/forms/dropdowns)\n *\n * props:\n * - options: Array
      \\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-ui-components/src/spinner-button/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/angular/angular.min.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!../node_modules/xo-ui-components/src/spinner-button/template.html\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (angular, template) {\n return angular.module('xo-spinner-button.directive', []).directive('xoSpinnerButton', [function () {\n return {\n template: template,\n scope: {\n token: '=?',\n track: '@?',\n onClick: '=?',\n buttonText: '@?',\n isProcessing: '=?',\n validate: '=?'\n },\n controller: ['$scope', function ($scope) {\n\n $scope.submit = function () {\n if ($scope.onClick) {\n $scope.onClick();\n } else {\n $scope.validate = true;\n }\n };\n }]\n };\n }]);\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n/***/ }),\n\n/***/ \"../node_modules/xo-ui-components/src/spinner/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/jquery/dist/jquery.min.js\"), __webpack_require__(\"../node_modules/squid/dist/index.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!../node_modules/xo-ui-components/src/spinner/template.html\"), __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function ($, squid, template) {\n\n squid.module('xo-spinner.directive', ['squid', 'beaver']).directive('xoSpinner', [function () {\n\n return {\n scope: {},\n template: template,\n controller: ['$scope', '$element', '$rootScope', '$locale', '$logger', '$loader', '$timeout', function ($scope, $element, $rootScope, $locale, $logger, $loader, $timeout) {\n var $body = angular.element(document.getElementsByTagName('body'));\n var $priorActiveElement = $();\n var $capturedElement = $();\n var $header = $('header');\n var $slidingArea = $('#main');\n var $footer = $('footer');\n\n /**\n * This hides page content from any screen readers.\n * When the spinner's active, the only thing that should be read out is the \"Loading...\" text.\n *\n * The only crappy thing here is the spinner's nested deep in the content, so please excuse this jQuery crap.\n * At the very least, let's cache these selectors :|\n */\n function hidePageContentFromScreenReader(toggle) {\n $header.attr('aria-disabled', toggle);\n $slidingArea.attr('aria-disabled', toggle);\n $footer.attr('aria-disabled', toggle);\n }\n\n function preventDefault(event) {\n var _event$target = event.target;\n _event$target = _event$target === undefined ? {} : _event$target;\n var targetId = _event$target.id;\n\n // Only call preventDefault if the target is not a captcha input.\n // If the target is a captcha input we don't want to prevent the\n // user from entering the captcha code.\n\n if (targetId !== 'captchaCode') {\n event.preventDefault();\n }\n }\n\n function captureFocus(event) {\n if (!$element.has(event.target).length) {\n $capturedElement = $(event.target);\n }\n }\n\n function setLoadingMessage(message) {\n if (angular.isObject(message)) {\n $scope.message = message.heading;\n $('#spinnerMessage').css('font-size', '17.5px');\n $('#spinnerMessage').html(message.heading);\n $('#spinnerSubHeading').html(message.subHeading);\n } else {\n $scope.message = message;\n $('#spinnerMessage').html(message);\n }\n }\n\n function showSpinner() {\n $scope.loading = true;\n $logger.info('show_loading_spinner');\n $body.addClass('loading');\n\n // remember what was previously focused\n $priorActiveElement = $(':focus');\n\n $(':input, a').blur();\n\n hidePageContentFromScreenReader(true);\n\n if ($loader.firstLoad()) {\n setLoadingMessage($locale.content.get('base.processing'));\n }\n\n // focus on the message so that screen readers will let the user know the page is loading\n $(document).on('keydown', preventDefault);\n $(document).on('focusin', captureFocus);\n $timeout(function () {\n $('#spinner-message').focus();\n });\n }\n\n function hideSpinner() {\n $scope.loading = false;\n $logger.info('hide_loading_spinner');\n $('#preloaderSpinner').hide();\n $body.removeClass('loading');\n $(document).off('keydown', preventDefault);\n $(document).off('focusin', captureFocus);\n\n hidePageContentFromScreenReader(false);\n\n // Focus captured element if focus was given to an element while spinner was active.\n if ($capturedElement.length && $(document.body).has($capturedElement).length) {\n $capturedElement.focus();\n // Focus element that had focus before if it is still within the document\n } else if ($priorActiveElement.length && $(document.body).has($priorActiveElement).length) {\n $priorActiveElement.focus();\n } else {\n // If focus is not managed, default to focusing sliding area. Fixes FF and IE bug where tab focus starts from\n // the element last clicked, rather than top of page.\n $slidingArea.focus();\n }\n $priorActiveElement = $();\n $capturedElement = $();\n }\n\n var cancelStartLoad = $rootScope.$on('startLoad', showSpinner);\n var cancelAllLoaded = $rootScope.$on('allLoaded', hideSpinner);\n\n var cancelSetLoadingMessage = $rootScope.$on('loadingMessage', function (event, text) {\n setLoadingMessage(text);\n });\n\n $scope.$on('$destroy', function () {\n hideSpinner();\n cancelStartLoad();\n cancelAllLoaded();\n cancelSetLoadingMessage();\n });\n\n if ($loader.isLoading()) {\n showSpinner();\n }\n }]\n };\n }]);\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n/***/ }),\n\n/***/ \"../node_modules/xo-ui-components/src/tabs/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-ui-components/src/tabs/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/tabs/styles.less\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n/**\n * THIS IS A WIP\n * At this point, only pass 2 tabs!\n *\n * xo-ui-tabs\n * props:\n * - tabs: Array ([{id: 1, label: content('string')}, {id: 2, label: content('otherString')}])\n * - onSelect: Function, gets called when a tab is selected\n * - selectedTab: Tab ({id: 1, label: content('string')})\n */\n\nexports['default'] = _squid.$Component.extend('$xoUiTabsComponent', {\n tag: 'xo-ui-tabs',\n template: _template2['default'],\n props: {\n tabs: {\n type: 'var',\n required: true\n },\n onSelect: {\n type: 'var',\n required: false\n },\n selectedTab: {\n type: 'var',\n required: false\n }\n },\n actions: {\n getTabIsActive: function getTabIsActive(tab) {\n return this.compSelectedTab && tab.id === this.compSelectedTab.id;\n }\n },\n lifecycle: {\n enter: function enter() {\n var _this = this;\n\n var isValidSelected = function isValidSelected() {\n var inTabs = function inTabs() {\n return Boolean(_this.tabs.filter(function (tab) {\n return _this.selectedTab.id === tab.id && _this.selectedTab.label === tab.label;\n }).length);\n };\n\n return _this.selectedTab && inTabs();\n };\n\n var updateComputedSelected = function updateComputedSelected() {\n if (_this.tabs.length <= 1) {\n return;\n }\n\n if (isValidSelected()) {\n _this.compSelectedTab = (0, _angular.extend)({}, _this.selectedTab);\n return;\n } else {\n _this.compSelectedTab = (0, _angular.extend)({}, _this.tabs[0]);\n _this.onSelect(_this.compSelectedTab);\n }\n };\n\n this.$watch('selectedTab', updateComputedSelected);\n }\n }\n});\n\n\n_squid.$Component;\n\n_angular.extend;\nmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ \"../node_modules/xo-ui-components/src/tabs/styles.less\":\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ \"../node_modules/xo-ui-components/src/tabs/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
      1\\\" class=\\\"tabContainer\\\">\\n
      \\n
      \\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-ui-components/src/tooltip/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function($) {\n\nexports.__esModule = true;\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-ui-components/src/tooltip/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nfunction getDefaultShowEvent($el) {\n return $el.is('a') || $el.is('button') ? 'click' : 'focus';\n}\n\n// Modify the aria-describedby property to include the id when showing the element so contents are properly read\nfunction addDescribedById($el, id) {\n var describedByIds = $el.attr('aria-describedby') ? $el.attr('aria-describedby').split(' ') : [];\n\n if (!~describedByIds.indexOf(id)) {\n describedByIds.push(id);\n }\n\n $el.attr('aria-describedby', describedByIds.join(' '));\n}\n\n// Modify the aria-describedby attribute to remove the id when hiding the element so contents are no longer read\nfunction removeDescribedById($el, id) {\n var describedByIds = $el.attr('aria-describedby') || '';\n\n $el.attr('aria-describedby', describedByIds.split(' ').filter(function (existingId) {\n return existingId !== id;\n }).join(' '));\n}\n\nvar isMouseTypeEvent = function isMouseTypeEvent(type) {\n return (/mouse/.test(type)\n );\n};\n\nfunction debounceOnMouseTrigger(type, fn) {\n var isMouseType = isMouseTypeEvent(type);\n\n return function () {\n var _arguments = arguments;\n\n if (isMouseType) {\n (0, _angular.$timeout)(function () {\n return fn.apply(null, _arguments);\n }, 250);\n } else {\n fn.apply(null, arguments);\n }\n };\n}\n\nexports['default'] = _squid.$Component.extend('xoTooltip', {\n tag: 'xo-tooltip',\n template: _template2['default'],\n transclude: true,\n props: {\n trigger: {\n type: 'str',\n required: false\n },\n showEvent: {\n type: 'str',\n required: false\n },\n hideEvent: {\n type: 'str',\n required: false\n },\n displayInline: {\n type: 'var',\n required: false\n },\n align: {\n type: 'str',\n required: false\n }\n },\n lifecycle: {\n populate: function populate() {\n var $element = this.$element,\n trigger = this.trigger;\n\n var $trigger = $(trigger);\n var toolTip = $element.find('.toolTip');\n var toolTipID = this.toolTipID = 'toolTip_' + Math.random().toString(36).replace(/[^a-z]+/g, '').substr(0, 7);\n var isMouseOver = false;\n\n /**\n * Toggle the show/hide state of the tooltip\n */\n var toggle = function toggle(event) {\n if (toolTip.length && toolTip.is(':visible')) {\n close(event);\n } else {\n show(event);\n }\n };\n\n /**\n * Show the tooltip, if not already shown.\n */\n var show = function show(event) {\n if (event) {\n event.stopPropagation();\n event.preventDefault();\n }\n\n addDescribedById($trigger, toolTipID);\n\n // Show the tooltip and position the page scroll to include the element on page\n $element.show();\n toolTip.slideDown({\n progress: function progress() {\n var windowBot = $(window).scrollTop() + $(window).height();\n var toolTipBot = toolTip.offset().top + toolTip.outerHeight();\n if (toolTipBot > windowBot) {\n $(window).scrollTop(toolTipBot - $(window).height());\n }\n }\n });\n };\n\n /**\n * Hide the tooltip\n */\n var close = function close(event) {\n if (event) {\n event.stopPropagation();\n event.preventDefault();\n }\n\n if (!isMouseOver) {\n if (toolTip.length && toolTip.is(':visible')) {\n toolTip.slideUp(100, function () {\n $element.hide();\n });\n } else {\n $element.hide();\n }\n\n removeDescribedById($trigger, toolTipID);\n }\n };\n\n /**\n * Setting up the DOM behavior for this component\n */\n // Set defaults for showEvent and hideEvent if not provided\n this.showEvent = this.showEvent || getDefaultShowEvent($element);\n this.hideEvent = this.hideEvent || 'blur';\n\n var SHOW_EVENT = this.showEvent + '.toolTip';\n var HIDE_EVENT = this.hideEvent + '.toolTip';\n\n // Initially hide the tooltip\n $element.hide();\n\n // If tooltip is clicked, don't bubble up and trigger parent handlers\n $element.on('click', function (event) {\n return event.stopPropagation();\n });\n\n // If the tooltip contains an element with a \"close\" class, treat it as a close button\n $element.on('click', '.close', close);\n\n // Track whether the mouse is on the tooltip or not\n $element.on('mouseover', function () {\n isMouseOver = true;\n });\n $element.on('mouseleave', function () {\n isMouseOver = false;\n });\n\n // Clicking anywhere on the document not on the tooltip will close the tooltip.\n // Event is not passed so that other actions are not prevented\n $(document).on('click.toolTip', function (e) {\n // Needed because when the trigger is clicked, this click handler will also be fired.\n // So without this check the tooltip will open due to the trigger click and then this\n // document event handler would immediately close it\n if (!$trigger.is(e.target)) {\n close();\n } else {\n show();\n }\n });\n\n // Register the handlers to show and hide the tooltip\n if (this.showEvent === this.hideEvent) {\n $trigger.on(SHOW_EVENT, toggle);\n $element.on(SHOW_EVENT, toggle);\n } else {\n $trigger.on(SHOW_EVENT, show);\n $trigger.on(HIDE_EVENT, debounceOnMouseTrigger(this.hideEvent, close));\n // Also allow close event to happen on the tooltip itself, for mouse type events\n $element.on(HIDE_EVENT, debounceOnMouseTrigger(this.hideEvent, close));\n }\n\n // Clean up external listeners on exit\n this.$on('$destroy', function () {\n $(document).off('click.toolTip');\n $trigger.off(SHOW_EVENT);\n $trigger.off(HIDE_EVENT);\n close();\n });\n }\n }\n});\n\n\n_angular.$timeout;\n\n_squid.$Component;\nmodule.exports = exports['default'];\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/jquery/dist/jquery.min.js\")))\n\n/***/ }),\n\n/***/ \"../node_modules/xo-ui-components/src/tooltip/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
      \\n
      \\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-ui-components/src/ui-utils/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _jquery = __webpack_require__(\"../node_modules/jquery/dist/jquery.min.js\");\n\nvar _jquery2 = _interopRequireDefault(_jquery);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n// Generic scroll top.\n(0, _squid.$registerDirective)('scrollTop', function () {\n return {\n link: function link(scope, element, attr) {\n var targetId = attr['scrollTop'];\n\n (0, _jquery2['default'])(element).on('focus', function () {\n (0, _jquery2['default'])('#' + targetId).scrollTop((0, _jquery2['default'])(element).offset().top);\n });\n }\n };\n});\n\n// Element types that accept disabled attribute\n// See https://www.w3.org/TR/html5/disabled-elements.html#disabled-elements\n//\n// Usage:\n// Provide expression to be evaluated to determine if form needs to be disabled\n// Form will be disabled when the expression evaluates to true\n//
      \nvar ACCEPT_DISABLED = 'button, input, select, textarea, optgroup, option, fieldset';\n(0, _squid.$registerDirective)('disable-form', function () {\n return {\n link: function link(scope, element, attrs) {\n var toggleDisabled = function toggleDisabled(disable) {\n var collection = element.find(ACCEPT_DISABLED);\n\n if (disable) {\n collection.attr('disabled', true);\n } else {\n collection.removeAttr('disabled');\n }\n };\n\n // Watch number of elements to get a rough idea of if any new inputs are\n // added that also need to be disabled.\n scope.$watch(function checkIfDisabled() {\n return (0, _angular.$parse)(attrs['disableForm'])(scope) && element.find(ACCEPT_DISABLED).length;\n }, toggleDisabled);\n }\n };\n});\n\n_angular.$parse;\n\n_squid.$registerDirective;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-validation/dist/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _angular2 = _interopRequireDefault(_angular);\n\nvar _jquery = __webpack_require__(\"../node_modules/jquery/dist/jquery.min.js\");\n\nvar _jquery2 = _interopRequireDefault(_jquery);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n_angular2['default'].module().directive('xoValidation', function () {\n return {\n template: '',\n restrict: 'A',\n require: 'ngModel',\n link: function link(scope, elem, attr, ngModel) {\n var validationUtil = {\n // because IE8 doesnt have String.prototype.trim()\n trim: function trim(value) {\n var rtrim = /^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g;\n\n return value.replace(rtrim, '');\n },\n\n\n /**\n * Generic function that runs a given input against\n * a given regular expression\n *\n * @param {String} value input to test\n * @param {String/RegExp} regex Regular expression to test against\n * @returns {Boolean} matches or does not match given pattern\n */\n valid: function valid(value, regex) {\n if (this.empty(value)) {\n return false;\n }\n\n if (_angular2['default'].isString(regex)) {\n regex = new RegExp(regex);\n }\n\n return regex ? regex.test(value) : true;\n },\n\n\n // returns whether empty or not\n empty: function empty(value) {\n if (!value) {\n return true;\n }\n\n // IE8 and below doesn't have native .trim()\n return !this.trim(value);\n },\n\n\n // returns whether alphabetic or not\n alphabetic: function alphabetic(value) {\n return this.valid(value, /[A-Za-z]+$/);\n },\n\n\n // returns whether numeric or not\n numeric: function numeric(value) {\n var NUMERIC_REGEX = new RegExp('^[0-9]+$');\n\n return this.valid(value, NUMERIC_REGEX);\n },\n validBankAccount: function validBankAccount(value) {\n if (!scope.showIBAN) {\n return this.numeric(value);\n }\n\n return true;\n },\n validRouting: function validRouting(value) {\n if (!scope.showIBAN) {\n return this.valid(value, /^\\d{8}$/);\n }\n return true;\n },\n validIBANCode: function validIBANCode(value) {\n if (scope.showIBAN) {\n value = value && value.replace(/ +/g, '');\n return this.valid(value, /^([A-Z]){2}\\d{2}[A-Z0-9]{1,30}$/);\n }\n return true;\n },\n validIBAN: function validIBAN(value) {\n if (scope.showIBAN) {\n value = value && value.replace(/ +/g, '');\n return this.valid(value, /^DE\\d{20}$/);\n }\n\n return true;\n },\n validIBANCountry: function validIBANCountry(value) {\n value = value && value.replace(/ +/g, '');\n return !this.valid(value, /^([^D0-9][E]|[D][^E0-9]|[^D0-9][^E0-9])\\d{2}[A-Z0-9]{1,30}$/i);\n },\n\n\n // @Deprecated: This function is deprecated.\n // first two letters are the country code the rest are the bank account numbers max length 32\n validIBANWithValidCountryCode: function validIBANWithValidCountryCode(value) {\n value = value && value.replace(/ +/g, '');\n return this.valid(value, /^(AT|BE|CY|EE|FI|FR|DE|EL|IE|IT|LV|LT|LU|MT|MC|NL|PT|SK|SI|ES)\\d{3,32}$/i);\n },\n validLast4: function validLast4(value) {\n // @TODO - Unsafe regular expression, need to fix.\n var LAST_4 = /^([0-9]{4})?$/; // eslint-disable-line fasec/no-unsafe-regex\n\n return this.valid(value, LAST_4);\n },\n validStreet: function validStreet(value) {\n return this.valid(value, /^([A-Za-z0-9-. ]*)$/);\n },\n\n\n // Validating phone format with metadata from griffin\n validPhone: function validPhone(value) {\n var regex = scope.pattern;\n\n /*\n * User can enter phone format in various manner according to griffin mask\n * (00) 0000-0000\n * 00 000 0000\n * Since the griffin pattern only validates against numbers, need to trim the input\n * to only validate the numbers\n */\n value = value && value.replace(/[^0-9]/gi, '');\n return this.valid(value, regex);\n },\n validDobYear: function validDobYear(value) {\n return value !== 'YYYY';\n },\n validDobDay: function validDobDay(value) {\n return value !== 'DD';\n },\n validDobMonth: function validDobMonth(value) {\n return value !== 'MM';\n },\n validPoBox: function validPoBox(value) {\n // @TODO - Unsafe regular expression, need to fix.\n var boxRE = /\\b(((general\\s+)?post\\s+(office|mail)?)|((g\\.?)?p[-\\.]?\\s?[om][\\.-]?))\\s?(b(ox|\\.)?)?(\\s+\\d+)\\b/i; // eslint-disable-line fasec/no-unsafe-regex\n\n if (boxRE.test(value)) {\n return true;\n }\n\n return false;\n },\n validAddressSansPoBox: function validAddressSansPoBox(value) {\n var boxRE = /(p[-.]? ?[om]?[-.]? ?|post ?(office|mail)?)? ?b(.|ox)[^,]*\\d+/i;\n var cassRE = /(drawer|locker|bin|firm caller)\\s?#?[0-9]+/i;\n\n if (boxRE.test(value) || cassRE.test(value)) {\n return false;\n }\n return true;\n },\n validEmailOrPhone: function validEmailOrPhone(value) {\n if (!value) {\n return false;\n }\n\n return this.validEmail(value) || this.validPhone(value);\n },\n validEmail: function validEmail(value) {\n if (!value) {\n return false;\n }\n var trimmedValue = this.trim(value); // Trim leading and trailing whitespace\n // @TODO - Unsafe regular expression, need to fix.\n var EMAIL_REGEX = /^((([a-z]|\\d|[!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+(\\.([a-z]|\\d|[!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+)*)|((\\x22)((((\\x20|\\x09)*(\\x0d\\x0a))?(\\x20|\\x09)+)?(([\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x7f]|\\x21|[\\x23-\\x5b]|[\\x5d-\\x7e]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(\\\\([\\x01-\\x09\\x0b\\x0c\\x0d-\\x7f]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]))))*(((\\x20|\\x09)*(\\x0d\\x0a))?(\\x20|\\x09)+)?(\\x22)))@((([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))\\.)+(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))\\.?$/i; // eslint-disable-line\n\n return this.valid(trimmedValue, EMAIL_REGEX) && !this.highAscii(trimmedValue);\n },\n highAscii: function highAscii(value) {\n var trimmedValue = this.trim(value);\n // @TODO - Unsafe regular expression, need to fix.\n var HIGH_ASCII_REGEX = /[^\\x00-\\x7F]/; // eslint-disable-line no-control-regex\n\n return this.valid(trimmedValue, HIGH_ASCII_REGEX);\n },\n\n\n // expected format: MM/DD/YYYY\n validDate: function validDate(value) {\n var re = /^\\d{1,2}\\/\\d{1,2}\\/\\d{4}$/;\n var dArr = value.split('/');\n var d = new Date(value);\n var isValid = false;\n\n if (re.test(value)) {\n isValid = d.getMonth() + 1 === dArr[0] && d.getDate() === dArr[1] && d.getFullYear() === dArr[2];\n }\n\n return isValid;\n },\n\n\n /* Expects value and state. state can be \"past\" or \"future\".\n NOTE: This function validates only month and year, not day!\n Please use validDate() if you need to validate the whole date. */\n validDateWithoutDay: function validDateWithoutDay(value, options) {\n // eslint-disable-line max-statements\n var state = options.state;\n\n value = value.replace(/\\s/g, '');\n\n if (value === '') {\n return true;\n }\n\n var split = value.split('/');\n var month = split[0];\n var year = split[1];\n var currentYear = parseInt(new Date().getFullYear().toString().substr(2, 2), 10);\n var currentMonth = parseInt(new Date().getMonth(), 10) + 1;\n var validYear = true;\n var validMonth = true;\n\n if (value.length < 5) {\n return false;\n }\n\n if (!this.validDobMonth(month)) {\n return false;\n }\n\n month = parseInt(month, 10);\n year = parseInt(year, 10);\n\n if (state === 'past') {\n validYear = year <= currentYear;\n if (!validYear) {\n return false;\n }\n if (year === currentYear) {\n validMonth = month <= currentMonth;\n }\n } else if (state === 'future') {\n validYear = year >= currentYear;\n if (!validYear) {\n return false;\n }\n if (year === currentYear) {\n validMonth = month >= currentMonth;\n }\n }\n\n if (!validYear || !validMonth) {\n return false;\n }\n\n return true;\n },\n\n\n // formats to MM/DD/YYYY\n mmddyyyy: function mmddyyyy(day, month, year) {\n if (year.length < 4) {\n year = '20' + year;\n }\n\n return this.twoDigits(month) + '/' + this.twoDigits(day) + '/' + this.twoDigits(year);\n },\n\n\n // formats to YY-MMM-DDDD\n yyyymmdd: function yyyymmdd(day, month, year) {\n if (year.length < 4) {\n year = '20' + year;\n }\n\n return year + '-' + this.twoDigits(month) + '-' + this.twoDigits(day);\n },\n\n\n // pads a number to two digits\n twoDigits: function twoDigits(value) {\n return value < 10 ? '0' + value : '' + value;\n },\n\n\n // expects YYYY-MM-DD\n legalAge: function legalAge(value) {\n if (this.empty(value)) {\n return false;\n }\n\n var dateParts = value.split('-'); // expecting YYYY-MM-DD\n var birthDate = new Date(dateParts[0], dateParts[1] - 1, dateParts[2]);\n var yr = 365.25 * 24 * 60 * 60 * 1000; // milliseconds in a year\n var validBD = new Date(new Date() - 18 * yr);\n\n return validBD >= birthDate;\n },\n validZip: function validZip(value, options) {\n\n var postalCodeRegex = {\n // TODO: Once this is removed from the xo-add-address template, we can remove it...\n GB: /[A-Z]{1,2}[0-9][0-9A-Z]?\\s?[0-9][A-Z]{2}/,\n /**\n * Note: These are \"nice to have\".\n * Once we add support for these countries, we can remove these.\n */\n BA: /^\\d{5}$/,\n CY: /^\\d{4}$/,\n EE: /^\\d{5}$/,\n HR: /^\\d{5}$/,\n LU: /^\\d{4}$/,\n LV: /^\\d{4}$/,\n MT: /^\\d{3,4}$/,\n SI: /^\\d{4}$/,\n SK: /^[0-9]{3}[\\s][0-9]{2}$/,\n NZ: /^\\d{4}$/,\n LT: /^\\d{5}$/,\n BG: /^\\d{4}$/,\n CZ: /^\\d{5}$/,\n GR: /^\\d{3}[\\s]\\d{2}$/,\n HU: /^\\d{4}$/,\n MX: /^\\d{5}$/\n };\n\n var country = options && options.country;\n var regex = scope.zipEntry && scope.zipEntry.validationPattern || postalCodeRegex[country];\n var isRequired = scope.zipEntry && scope.zipEntry.required;\n\n if (!isRequired && this.empty(value)) {\n return true;\n }\n\n // If there is no regex, or it's not populated yet...\n if (!regex || _angular2['default'].isString(regex) && regex.indexOf('validationPattern') > -1) {\n return !this.empty(value);\n }\n\n value = value && value.toUpperCase();\n\n if (_angular2['default'].isString(regex)) {\n if (regex.charAt(0) !== '^') {\n regex = '^' + regex;\n }\n if (regex.charAt(regex.length - 1) !== '$') {\n regex += '$';\n }\n }\n\n return this.valid(value, regex);\n },\n validExpiry: function validExpiry(value, options) {\n var $monthEl = (0, _jquery2['default'])('[ng-model=\"card.expiry_month\"]');\n var $yearEl = (0, _jquery2['default'])('[ng-model=\"card.expiry_year\"]');\n var month = $monthEl.val();\n var year = $yearEl.val();\n var isValid = false;\n var monthElName = 'card.expiry_month';\n var yearElName = 'card.expiry_year';\n var cardType = options.cardType;\n\n if (month) {\n month = $monthEl.find('option')[$monthEl.val() * 1 + 1].label;\n }\n\n if (year) {\n year = $yearEl.find('option')[$yearEl.val() * 1 + 1].label;\n }\n\n if (month && year) {\n isValid = this.validExpires(month, year);\n }\n\n var formName = $monthEl.closest('form').attr('id');\n var form = scope[formName] || scope.$parent[formName];\n var monthFieldName = monthElName;\n var yearFieldName = yearElName;\n\n if (monthFieldName.indexOf('.') !== -1) {\n monthFieldName = monthFieldName.split('.')[1];\n }\n\n if (yearFieldName.indexOf('.') !== -1) {\n yearFieldName = yearFieldName.split('.')[1];\n }\n\n var cardsDontNeedExpiry = ['COFIDIS', 'COFINOGA', 'CETELEM'];\n\n if (cardType && cardsDontNeedExpiry.indexOf(cardType) !== -1) {\n isValid = true;\n }\n\n if (form) {\n form[monthFieldName].$setValidity('validExpiry', isValid);\n form[yearFieldName].$setValidity('validExpiry', isValid);\n }\n\n return isValid;\n },\n validExpires: function validExpires(month, year) {\n var date = new Date();\n var currentYear = parseInt(date.getFullYear().toString().substr(2, 2), 10);\n var currentMonth;\n\n if (year < currentYear) {\n return false;\n } else if (year > currentYear) {\n return this.validDobMonth(month);\n }\n\n // account for display date vs. system date\n currentMonth = date.getMonth() + 1;\n return this.validDobMonth(month) && month >= currentMonth;\n },\n startDate: function startDate(value, options) {\n var valueOptions = {\n cardType: scope.card.type\n };\n\n valueOptions[elem.attr('id')] = value;\n\n return this.setStartDateValidity(valueOptions);\n },\n\n\n setExpiryValidity: function setExpiryValidity(options) {\n if (!options) {\n return true;\n }\n\n var cardType = options.cardType || '';\n var expiryValidity = this.validExpiry(null, {\n cardType: cardType\n });\n\n return expiryValidity;\n },\n\n // start date validation for Maestro card\n setStartDateValidity: function setStartDateValidity(options) {\n if (!options) {\n return true;\n }\n\n var cardType = options.cardType || '';\n var startDateValidity = true;\n var $monthEl = (0, _jquery2['default'])('#startmonth');\n var $yearEl = (0, _jquery2['default'])('#startyear');\n var month = $monthEl.val();\n var year = $yearEl.val();\n\n if (cardType === 'MAESTRO') {\n if (!month || !year) {\n startDateValidity = false;\n }\n }\n\n var formName = $monthEl.closest('form').attr('id'),\n form = scope[formName] || scope.$parent[formName];\n\n if (form) {\n form.startmonth.$setValidity('startDate', startDateValidity);\n form.startyear.$setValidity('startDate', startDateValidity);\n }\n\n return startDateValidity;\n },\n dobField: function dobField(value, options) {\n var valueOptions = {};\n var fieldMap = {\n dobDayCC: 'day',\n dobMonthCC: 'month',\n dobYearCC: 'year'\n };\n\n valueOptions.cardType = scope.card.type;\n valueOptions[fieldMap[elem.attr('id')]] = value;\n\n return this.setDOBValidity(valueOptions);\n },\n setDOBValidity: function setDOBValidity(options) {\n if (!options) {\n return true;\n }\n\n var dobEnabledCards = ['COFIDIS', 'COFINOGA', 'CETELEM'];\n var dobValidity = true;\n\n var $monthEl = (0, _jquery2['default'])('#dobMonthCC');\n var $dayEl = (0, _jquery2['default'])('#dobDayCC');\n var $yearEl = (0, _jquery2['default'])('#dobYearCC');\n\n var month = options.month || $monthEl.val();\n var year = options.year || $yearEl.val();\n var day = options.day || $dayEl.val();\n\n if (month) {\n month = $monthEl.find('option')[$monthEl.val() * 1 + 1].label;\n }\n\n if (day) {\n day = $dayEl.find('option')[$dayEl.val() * 1 + 1].label;\n }\n\n if (year) {\n year = $yearEl.find('option')[$yearEl.val() * 1 + 1].label;\n }\n\n var cardType = options.cardType;\n\n if (cardType && dobEnabledCards.indexOf(cardType) !== -1) {\n if (!month || !year || !day) {\n dobValidity = false;\n // invalidate if < 18 y/o.\n } else if (!this.legalAge(this.yyyymmdd(day, month, year))) {\n dobValidity = false;\n } else if (!this.validDate(this.mmddyyyy(day, month, year))) {\n dobValidity = false;\n }\n }\n\n var formName = $monthEl.closest('form').attr('id');\n var form = scope[formName] || scope.$parent[formName];\n\n if (form) {\n form.dobMonthCC.$setValidity('dobField', dobValidity);\n form.dobDayCC.$setValidity('dobField', dobValidity);\n form.dobYearCC.$setValidity('dobField', dobValidity);\n }\n\n return dobValidity;\n },\n validName: function validName(value) {\n return this.valid(value, /^([a-zA-Z,\\xC0-\\xFF,\\u00C0-\\u017F\\,\\-\\s\\,\\'])*$/);\n },\n isChecked: function isChecked(value, options) {\n // $.is does not exist in $\n // eslint-disable-line angular/ng_angularelement\n var $el = (0, _jquery2['default'])(options.el);\n\n return $el.is(':checked');\n },\n validRUPassport: function validRUPassport(value, options) {\n if (scope.user.countryOfResidence === 'RU') {\n return this.valid(value, /^\\d{10}$/);\n }\n return true;\n }\n };\n\n var customValidator = function customValidator(value) {\n var ruleJson = _angular2['default'].fromJson(elem.attr('xo-validation'));\n var validator = ruleJson.validator;\n var options = ruleJson.options;\n\n ngModel.$setValidity(validator, validationUtil[validator](value, options));\n\n return value;\n };\n\n ngModel.$parsers.unshift(customValidator);\n ngModel.$formatters.unshift(customValidator);\n }\n };\n});\n\n/***/ }),\n\n/***/ \"../node_modules/xo-wallet-components/src/3ds/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/jquery/dist/jquery.min.js\"), __webpack_require__(\"../node_modules/angular/angular.min.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!../node_modules/xo-wallet-components/src/3ds/template.html\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function ($, angular, template) {\n return angular.module('xo-3ds.directive', ['squid']).directive('xo3ds', [function () {\n return {\n template: template,\n scope: {\n token: '=?',\n data: '=?',\n onComplete3dsHandler: '=?'\n },\n controller: ['$scope', '$rootScope', '$timeout', '$window', '$Resolve3DS', '$DeviceInfo', '$CheckoutAppDataModel', '$config', '$locale', '$logger', function ($scope, $rootScope, $timeout, $window, $Resolve3DS, $DeviceInfo, $CheckoutAppDataModel, $config, $locale, $logger) {\n var resolve3DS = $Resolve3DS.instance($scope.token);\n\n $scope.termUrl = window.location.origin + $config.urls.baseUrl + '/process3DS';\n\n $scope.data = $scope.data || {};\n\n var isIos = $DeviceInfo.getiOSVersion();\n\n var timeout3DSConfig = $config.timeout3DS || { DEFAULT: 30000 };\n\n var lightBoxTimeout = isIos && $locale.country === 'IN' ? 0 : timeout3DSConfig[$locale.country] || timeout3DSConfig.DEFAULT;\n\n var threeDSIframe = document.getElementById('threeDSFrame');\n\n function show3DSLightBox() {\n if ($scope.show3DS) {\n var lightbox = angular.element(document.getElementById('light-box'));\n\n lightbox.addClass('open');\n $scope.show3DS = false;\n $rootScope.$emit('loaded');\n threeDSIframe.removeEventListener('load', show3DSLightBox);\n }\n }\n\n function handleInitFailure(message) {\n // Since init3DS call failed. We disable the feature and proceed to checkout.\n $CheckoutAppDataModel.instance($rootScope.token).action('updatePaymentExperience', {\n data: {\n payment_experience: 'HERMESNODE',\n '3d_secure_authentication_supported': false\n },\n silent: true,\n transientError: true\n }).then(function () {\n $logger.info('checkout_fpti', {\n from: '3DS_CHALLENGE',\n to: 'process_3ds_challenge',\n int_error_description: message,\n error_type: 'soft_decline',\n error_source: 'fiLifecycle'\n });\n\n $scope.onComplete3dsHandler('success');\n });\n }\n\n function init3DSApi() {\n $rootScope.$emit('loadingMessage', $locale.content.get('threeDS.processing'));\n\n return resolve3DS.action('init3DS', {\n data: {\n cc_id: $scope.data.cc_id,\n flow_id: $scope.data.flow_id,\n merchant_id: $scope.data.merchant_id,\n merchant_country: $scope.data.merchant_country_code,\n currency: $scope.data.transaction_amount_currency,\n transaction_amount: $scope.data.transaction_amount_value\n },\n success: function success(response) {\n if (response.status === 'SUCCESS' && response.acsUrl) {\n $logger.info('checkout_fpti', { from: '3DS_CHALLENGE', to: 'prepare_3ds_challenge' });\n\n $scope.acsUrl = response.acsUrl;\n $scope.acsMethod = response.acsMethod || 'POST';\n $scope.acsPaReq = response.acsPaReq;\n\n var form = $('
      ', {\n action: $scope.acsUrl,\n method: $scope.acsMethod,\n id: 'iFrameForm',\n target: 'threeDSFrame'\n });\n\n form.append($('', {\n type: 'hidden',\n name: 'TermUrl',\n value: $scope.termUrl\n }));\n\n form.append($('', {\n type: 'hidden',\n name: 'PaReq',\n value: $scope.acsPaReq\n }));\n $('#lightBoxAcsWrapper').append(form);\n $('#iFrameForm').submit();\n\n // wait for 3DS page to load with a timeout\n\n // The $scope.show3DS in the line below is set true when the 3DS modal is eligible to be shown to user when the\n // bank page loads in its iframe, i.e., after init3DS success\n $scope.show3DS = true;\n threeDSIframe.addEventListener('load', show3DSLightBox);\n $rootScope.$emit('loading');\n $rootScope.$emit('loadingMessage', $locale.content.get('threeDS.processing'));\n $timeout(function () {\n if ($scope.show3DS) {\n $logger.info('checkout_fpti', {\n from: '3DS_CHALLENGE',\n to: '3DS_CHALLENGE',\n int_error_description: 'load_3ds_issuer_page_content_timeout',\n error_type: 'soft_decline',\n error_source: 'fiLifecycle'\n });\n }\n show3DSLightBox();\n }, lightBoxTimeout);\n } else {\n $logger.info('checkout_fpti', {\n from: '3DS_CHALLENGE',\n to: 'process_3ds_challenge',\n int_error_description: 'acsUrl_not_presented_on_init',\n error_type: 'soft_decline',\n error_source: 'fiLifecycle'\n });\n\n // When there is no 3DS challenge page to be shown, we return success to the caller\n $scope.onComplete3dsHandler('success');\n }\n },\n error: function error() {\n handleInitFailure('unknown_error_on_init3DS');\n },\n validation: function validation() {\n handleInitFailure('validation_error_on_init3DS');\n },\n contingencies: {\n DEFAULT: function DEFAULT() {\n handleInitFailure('contingency_presented_on_init3DS');\n }\n }\n });\n }\n\n function complete3DSApi(paRes) {\n return resolve3DS.action('complete3DS', {\n data: {\n third_party_response: paRes,\n cc_id: $scope.data.cc_id,\n flow_id: $scope.data.flow_id\n },\n success: function success(response) {\n var status = void 0;\n\n if (response.status === 'SUCCESS') {\n status = 'success';\n\n $logger.info('checkout_fpti', {\n from: '3DS_CHALLENGE',\n to: 'process_3ds_challenge'\n });\n } else {\n status = 'decline';\n\n $logger.info('checkout_fpti', {\n from: '3DS_CHALLENGE',\n to: 'process_3ds_challenge',\n int_error_description: 'complete3DS_decline',\n error_type: 'soft_decline',\n error_source: 'fiLifecycle'\n });\n }\n\n $scope.onComplete3dsHandler(status);\n }\n });\n }\n\n $scope.close3DSFrame = function () {\n $logger.info('checkout_fpti', { from: '3DS_CHALLENGE', to: 'process_user_close' });\n $logger.flush();\n\n var lightbox = angular.element(document.getElementById('light-box'));\n\n lightbox.removeClass('open');\n\n $timeout(function () {\n var lightboxMask = angular.element(document.getElementById('mask'));\n\n lightboxMask.remove();\n $scope.onComplete3dsHandler('close');\n }, 200);\n };\n\n init3DSApi();\n\n $scope.complete3DS = function (paRes) {\n complete3DSApi(paRes);\n };\n\n $window.complete3DSFrame = function (paRes) {\n $scope.complete3DS(paRes);\n };\n\n // when the esc key is pressed\n $('html').on('keyup', function (ev) {\n if (ev.which === 27) {\n $scope.close3DSFrame();\n }\n });\n }]\n };\n }]);\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n/***/ }),\n\n/***/ \"../node_modules/xo-wallet-components/src/add-bank/bank-input/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\nvar _showCartDecision = __webpack_require__(\"../node_modules/xo-page-components/src/cart/lib/showCartDecision.js\");\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\n__webpack_require__(\"../node_modules/xo-jquery-mask-plugin/dist/jquery.mask.min.js\");\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/jquery/dist/jquery.min.js\"), __webpack_require__(\"../node_modules/squid/dist/index.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!../node_modules/xo-wallet-components/src/add-bank/bank-input/template.html\"), __webpack_require__(\"../node_modules/xo-wallet-components/src/add-bank/bank-input/styles.less\"), __webpack_require__(\"../node_modules/xo-models/src/fi/index.js\"), __webpack_require__(\"../node_modules/xo-models/src/checkout/index.js\"), __webpack_require__(\"../node_modules/xo-ui-components/src/dropdown/directive.js\"), __webpack_require__(\"../node_modules/xo-ui-components/src/error-tooltip/directive.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function ($, squid, template) {\n\n return squid.module('xo-add-bank.bank-input.directive', ['squid', 'xomodel.fi', 'xomodel.checkout', 'xo-dropdown.directive', 'xo-error-tooltip.directive']).directive('xoBankInput', ['$rootScope', function ($rootScope) {\n return {\n template: template,\n\n scope: {\n token: '=?',\n user: '=?',\n bank: '=?',\n isUnbranded: '=?'\n },\n\n /* auto formatting the user entered IBAN input */\n link: function link(scope, element, attr) {\n var IBANMask = 'AA00 0000 0000 0000 0000 0000 0000 0000 00';\n\n element.on('keyup', function (event) {\n\n $('#ibanNumber').mask(IBANMask, {\n 'translation': {\n 0: { pattern: /[A-Za-z0-9]/ }\n }\n });\n });\n },\n\n controller: ['$scope', '$populate', '$locale', '$pxp', '$AddBankModel', '$CheckoutCartModel', '$CheckoutAppDataModel', '$CheckoutPayeeModel', '$CurrencyConversionModel', function ($scope, $populate, $locale, $pxp, $AddBankModel, $CheckoutCartModel, $CheckoutAppDataModel, $CheckoutPayeeModel, $CurrencyConversionModel) {\n\n $populate($scope, {\n checkoutCart: $CheckoutCartModel.instance($scope.token),\n checkoutAppData: $CheckoutAppDataModel.instance($scope.token),\n payee: $CheckoutPayeeModel.instance($scope.token)\n }).then(function () {\n\n // TODO: In the future, automate this information\n var BANK_CURRENCY = 'EUR';\n var BANK_COUNTRY = 'DE';\n var showDCCTreatmentName = 'xo_xoonboarding_bank_dcc_test';\n var UTC = 'UTC';\n\n $scope.showIBAN = true;\n\n var days = [];\n var months = [];\n var years = [];\n\n var i = void 0;\n\n for (i = 1; i <= 31; i += 1) {\n var d = i < 10 ? '0' + i : i.toString();\n\n days.push(d);\n }\n\n for (i = 1; i <= 12; i += 1) {\n var m = i < 10 ? '0' + i : i.toString();\n\n months.push(m);\n }\n\n var year = new Date().getFullYear();\n\n for (i = year - 17; i >= year - 100; i -= 1) {\n years.push(i);\n }\n\n $scope.days = days;\n $scope.months = months;\n $scope.years = years;\n\n $scope.toggleIBAN = function () {\n $scope.showIBAN = !$scope.showIBAN;\n };\n\n $scope.onibanKeyup = function () {\n $scope.bank.iban_number = $scope.bank.iban_number.toUpperCase();\n };\n\n var merchantID = $scope.payee.get('merchant.id', '');\n\n // check if currency conversion is needed by comparing cart's currency code with EUR\n var sourceCurrency = $scope.checkoutCart.get('purchase.amounts.total.currency_code');\n var sourceValue = $scope.checkoutCart.get('purchase.amounts.total.amount');\n\n if (!(sourceCurrency && sourceValue)) {\n return;\n }\n\n // Check if currency conversion is required\n if (sourceCurrency !== BANK_CURRENCY) {\n return $pxp('xo_xoonboarding_bank_dcc', {\n 'uid': merchantID\n }, showDCCTreatmentName).then(function () {\n var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n treatment_name = _ref.treatment_name;\n\n if (treatment_name === showDCCTreatmentName) {\n\n $CurrencyConversionModel.instance().retrieve({\n params: {\n sourceCurrency: sourceCurrency,\n sourceValue: sourceValue,\n targetCurrency: BANK_CURRENCY,\n countryCode: BANK_COUNTRY,\n language: $locale.lang\n }\n }).then(function (pricing) {\n if (pricing) {\n // If pricing object is true, currency conversion is valid\n $scope.isCurrencyConversionValid = true;\n\n var emptyCart = $scope.checkoutCart.get('purchase.items.length', 0) <= 0;\n var userAction = $scope.checkoutAppData.useraction();\n var noLineItemDetails = !(userAction && userAction.toLowerCase() === 'commit') && emptyCart;\n\n var total = $scope.checkoutCart.get('purchase.amounts.total');\n\n (0, _showCartDecision.showCartDecision)($scope.checkoutAppData.is_wps_subscription_flow(), total, $scope.checkoutAppData.get('merchant.merchant_country'), merchantID, noLineItemDetails, $scope.checkoutCart.isPurchase()).then(function (result) {\n $scope.showTotalAmount = result.showAmountInCartIcon;\n if ($scope.showTotalAmount) {\n $scope.targetFormatStr = pricing.from.currencyFormatSymbolISOCurrency;\n } else {\n $scope.sourceCurrencyCode = pricing.to.currencyCode;\n }\n });\n\n // Exchange Spread is the entire conversion spread. Eg: 1 USD = 1.5194 EUR\n $scope.exchangeSpreadFormatStr = pricing.spread;\n // griffin's dateTimeShort does not return timezone, so concatenate TZ\n $scope.fxDate = pricing.issuedDate.dateTimeShort + ' ' + UTC;\n } else {\n _logger.$logger.warn('Currency conversion API returned empty pricing object');\n $scope.isCurrencyConversionValid = false;\n }\n })['catch'](function (err) {\n _logger.$logger.warn('currency_conversion_error', {\n reason: 'Error retrieving currency conversion rates for the source amount',\n error: err\n });\n $scope.isCurrencyConversionValid = false;\n });\n }\n });\n }\n });\n }]\n };\n }]);\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n_showCartDecision.showCartDecision;\n\n_logger.$logger;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-wallet-components/src/add-bank/bank-input/styles.less\":\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ \"../node_modules/xo-wallet-components/src/add-card/addCep/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\n__webpack_require__(\"../node_modules/xo-angular-ui-utils/ui-utils.min.js\");\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/angular/angular.min.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!../node_modules/xo-wallet-components/src/add-card/addCep/template.html\"), __webpack_require__(\"../node_modules/squid/dist/index.js\"), __webpack_require__(\"../node_modules/xo-models/src/address/index.js\"), __webpack_require__(\"../node_modules/xo-form-components/src/zipcode/directive.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (angular, template) {\n return angular.module('xo-add-card.addcep.directive', ['squid', 'xomodel.address', 'xo-zipcode.directive']).directive('xoAddCep', [function () {\n return {\n template: template,\n\n scope: {\n token: '=?',\n sidebar: '=?',\n prefillAddress: '=?',\n doneFn: '=?'\n },\n\n controller: ['$scope', '$populate', '$state', '$PrefillAddressModel', '$locale', function ($scope, $populate, $state, $PrefillAddressModel, $locale) {\n $scope.country = $locale.country;\n $scope.address = {};\n\n $scope.onSubmit = function () {\n $scope.prefillAddress.address = {\n country: $locale.country,\n postal_code: $scope.address.postal_code\n };\n\n $scope.prefillAddress.save({\n data: $scope.prefillAddress,\n\n success: function success(result) {\n $scope.prefillAddress.address = result;\n $scope.doneFn();\n }\n });\n };\n }]\n };\n }]);\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n/***/ }),\n\n/***/ \"../node_modules/xo-wallet-components/src/add-card/addCep/route.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(module, __dirname, __filename) {var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/squid/dist/index.js\"), __webpack_require__(\"../node_modules/xo-wallet-components/src/add-card/addCep/directive.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (squid) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n squid.module('xo-add-card.addcep.route', ['squid', 'xo-add-card.addcep.directive']).factory('$AddCepRoute', ['$ComponentRoute', function ($ComponentRoute) {\n\n return $ComponentRoute.extend('AddCepRoute', {\n\n name: 'addCep',\n directive: 'xo-add-cep',\n titleContent: 'addBillingAddress.title',\n loginRequired: true,\n children: []\n });\n }]);\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/webpack/buildin/module.js\")(module), \"../node_modules/xo-wallet-components/src/add-card/addCep\", \"../node_modules/xo-wallet-components/src/add-card/addCep/route.js\"))\n\n/***/ }),\n\n/***/ \"../node_modules/xo-wallet-components/src/add-card/addbilling/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\n__webpack_require__(\"../node_modules/xo-angular-ui-utils/ui-utils.min.js\");\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/jquery/dist/jquery.min.js\"), __webpack_require__(\"../node_modules/squid/dist/index.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!../node_modules/xo-wallet-components/src/add-card/addbilling/template.html\"), __webpack_require__(\"../node_modules/xo-models/src/checkout/index.js\"), __webpack_require__(\"../node_modules/xo-models/src/fi/index.js\"), __webpack_require__(\"../node_modules/xo-models/src/address/index.js\"), __webpack_require__(\"../node_modules/xo-address-components/src/add-address/directive.js\"), __webpack_require__(\"../node_modules/xo-page-components/src/aside-header/directive.js\"), __webpack_require__(\"../node_modules/xo-ui-components/src/error-tooltip/directive.js\"), __webpack_require__(\"../node_modules/xo-ui-components/src/accessibility/directive.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function ($, squid, template) {\n\n return squid.module('xo-add-card.addbilling.directive', ['squid', 'xomodel.checkout', 'xomodel.fi', 'xomodel.address', 'xo-add-address.directive', 'xo-aside-header.directive', 'xo-error-tooltip.directive', 'xo-accessibility.directive']).directive('xoAddBilling', [function () {\n\n return {\n template: template,\n\n scope: {\n auth: '=?',\n token: '=?',\n doneFn: '=?',\n parentCallbacks: '=?',\n sidebar: '=?',\n showmeftsection: '=?',\n hideparenthead: '=?',\n billingaddressupdated: '=?',\n prefillAddress: '=?'\n },\n\n controller: ['$scope', '$populate', '$BillingAddressesModel', '$BillingAddressModel', '$PrefillAddressModel', '$feature', '$state', '$element', '$config', '$locale', '$timeout', function ($scope, $populate, $BillingAddressesModel, $BillingAddressModel, $PrefillAddressModel, $feature, $state, $element, $config, $locale, $timeout) {\n var country = $locale.getCountryCodeISO();\n\n $scope.billing = true; // to denote its billing address page still\n $scope.normalize = $feature('addressNormalization');\n $scope.country = country;\n var $el = $($element);\n\n if ($scope.showmeftsection) {\n $scope.showmeftsection.toggle = false;\n }\n\n if ($scope.hideparenthead) {\n $scope.hideparenthead.toggle = true;\n }\n\n function isUserInputtedAddress(address) {\n return address.id === '0';\n }\n\n // Label fields has having error if needed to, and focus the first error if needed\n function handleValidation(res) {\n if (res && res.fields && res.fields.length) {\n res.fields.forEach(function (field) {\n if (field.field) {\n var $field = $($el.find('[name=\"' + field.field + '\"]'));\n\n if ($field.length === 0 && field.field === 'zip') {\n $field = $($el.find('[ng-model=\"address.postal_code\"], [ng-model=\"zipCode\"]'));\n }\n\n $field.addClass('backendError');\n $field.attr('aria-invalid', true);\n }\n });\n }\n\n $el.find('form').find('.backendError, .ng-invalid').first().focus();\n }\n\n var prefilledAddress = $scope.prefillAddress && $scope.prefillAddress.address;\n\n if (prefilledAddress) {\n $scope.prefilled = true;\n }\n\n $scope.address = $scope.address || prefilledAddress || { country: country };\n\n $populate($scope, {\n billingAddresses: $BillingAddressesModel.instance()\n }).then(function () {\n\n $scope.cancelFn = function () {\n $state.go('^.addCard');\n };\n\n $scope.onSubmit = function () {\n $scope.updateAddress();\n };\n\n $scope.prefill = function () {\n $scope.address.country = $scope.country;\n $scope.prefillAddress = new $PrefillAddressModel({\n id: $scope.token,\n address: $scope.address\n });\n\n $scope.prefillAddress.save({\n data: $scope.prefillAddress,\n\n success: function success(result) {\n $scope.address = result;\n $scope.prefilled = true;\n $scope.showAddressFields = true;\n\n $timeout(function () {\n var value = $scope.address.state;\n\n var $option = $el.find('[value=\"' + value + '\"]');\n\n $option.prop('selected', 'selected');\n $option.trigger('change');\n\n value = $option.attr('label');\n }, 1000);\n }\n });\n };\n\n $scope.updateAddress = function () {\n\n var newBilling = new $BillingAddressModel({\n line1: $scope.address.line1,\n line2: $scope.address.line2,\n city: $scope.address.city,\n state: $scope.address.state,\n postal_code: $scope.address.postal_code,\n normalization_status: $scope.address.normalization_status,\n country: country,\n id: '0'\n });\n\n newBilling.save({\n data: $scope.billingAddress,\n\n success: function success() {\n if ($scope.normalize) {\n // set to false so that html related to billing address is hidden when child is shown\n $scope.billing = false;\n $scope.address.full_address = newBilling.full_address;\n $state.go('.addressNormalization');\n } else {\n $scope.updateBillingAddressAndReturn('^.addCard', newBilling);\n }\n },\n\n validation: function validation(res) {\n handleValidation(res);\n }\n\n });\n };\n\n $scope.uponNormalization = function (normalizedAddress, isBack) {\n if (isBack) {\n $scope.billing = true;\n $state.go('^');\n } else {\n $scope.updateBillingAddressAndReturn('^.^.addCard', normalizedAddress);\n }\n };\n\n $scope.updateBillingAddressAndReturn = function (target, address) {\n var newBillingAddress;\n\n if (address && address instanceof $BillingAddressModel) {\n newBillingAddress = address;\n } else {\n newBillingAddress = new $BillingAddressModel({\n line1: address.line1,\n line2: address.line2,\n city: address.city,\n state: address.state,\n postal_code: address.postal_code,\n normalization_status: address.normalization_status,\n country: address.country || $scope.country,\n full_address: address.full_address || $scope.address.full_address,\n id: '0'\n });\n }\n\n var addresses = $scope.billingAddresses.addresses;\n\n if (!isUserInputtedAddress(addresses[0])) {\n addresses.unshift(newBillingAddress);\n } else {\n addresses[0] = newBillingAddress;\n }\n $scope.billingaddressupdated.value = true;\n\n $state.go(target);\n };\n });\n }]\n };\n }]);\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n/***/ }),\n\n/***/ \"../node_modules/xo-wallet-components/src/add-card/addbilling/route.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(module, __dirname, __filename) {var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/squid/dist/index.js\"), __webpack_require__(\"../node_modules/xo-wallet-components/src/add-card/addbilling/directive.js\"), __webpack_require__(\"../node_modules/xo-address-components/src/add-address/directive.js\"), __webpack_require__(\"../node_modules/xo-address-components/src/address-normalization/route.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (squid) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n squid.module('xo-add-card.addbilling.route', ['squid', 'xo-add-card.addbilling.directive', 'xo-add-address.directive', 'xo-address-normalization.route']).factory('$AddBillingRoute', ['$ComponentRoute', function ($ComponentRoute) {\n\n return $ComponentRoute.extend('AddBillingRoute', {\n\n name: 'addBilling',\n directive: 'xo-add-billing',\n titleContent: 'addBillingAddress.title',\n\n trackingData: {\n fptiState: 'edit_billing'\n },\n loginRequired: true,\n children: [{\n name: '$AddressNormalizationRoute',\n attributes: {\n id: 'token',\n sidebar: 'sidebar',\n address: 'address',\n 'done-fn': 'uponNormalization'\n }\n }]\n\n });\n }]);\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/webpack/buildin/module.js\")(module), \"../node_modules/xo-wallet-components/src/add-card/addbilling\", \"../node_modules/xo-wallet-components/src/add-card/addbilling/route.js\"))\n\n/***/ }),\n\n/***/ \"../node_modules/xo-wallet-components/src/add-card/addcard/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\nvar _cardMetaData = __webpack_require__(\"../node_modules/xo-wallet-components/src/add-card/cardMetaData/index.js\");\n\n__webpack_require__(\"../node_modules/xo-angular-ui-utils/ui-utils.min.js\");\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/angular/angular.min.js\"), __webpack_require__(\"../node_modules/squid/dist/index.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!../node_modules/xo-wallet-components/src/add-card/addcard/template.html\"), __webpack_require__(\"../node_modules/jquery/dist/jquery.min.js\"), __webpack_require__(\"../node_modules/xo-models/src/checkout/index.js\"), __webpack_require__(\"../node_modules/xo-models/src/auth/index.js\"), __webpack_require__(\"../node_modules/xo-models/src/fi/index.js\"), __webpack_require__(\"../node_modules/xo-wallet-components/src/add-card/creditcard-input/directive.js\"), __webpack_require__(\"../node_modules/xo-ui-components/src/dropdown/directive.js\"), __webpack_require__(\"../node_modules/xo-tray-height/dist/directive.js\"), __webpack_require__(\"../node_modules/xo-page-components/src/aside-header/directive.js\"), __webpack_require__(\"../node_modules/xo-ui-components/src/message/directive.js\"), __webpack_require__(\"../node_modules/xo-ui-components/src/error-tooltip/directive.js\"), __webpack_require__(\"../node_modules/xo-ui-components/src/accessibility/directive.js\"), __webpack_require__(\"../node_modules/xo-wallet-components/src/fi-contingency-list/util.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (angular, squid, template, $) {\n\n return squid.module('xo-add-card.addcard.directive', ['squid', 'xomodel.checkout', 'xomodel.auth', 'xomodel.fi', 'xo-add-card.creditcard-input.directive', 'xo-dropdown.directive', 'xo-tray-height.directive', 'xo-aside-header.directive', 'xo-message.directive', 'xo-error-tooltip.directive', 'xo-accessibility.directive', 'fi.errorUtil']).directive('xoAddCard', [function () {\n\n return {\n template: template,\n\n scope: {\n token: '=?',\n done: '=?',\n message: '=?',\n pagetitle: '=?',\n sidebar: '=?',\n showmeftsection: '=?',\n hideparenthead: '=?',\n billingaddressupdated: '=?',\n cardmodel: '=?',\n parentCallbacks: '=?',\n selectedPromotionCardType: '=?',\n promotion: '=?',\n pageLevel: '=?',\n logout: '=?',\n phone: '=?',\n manageCardFlow: '=?',\n onSuccess: '=?',\n backUri: '=?'\n },\n controller: ['$scope', '$populate', '$state', '$BillingAddressesModel', '$CardTypesModel', '$CheckoutSessionModel', '$AuthModel', '$CheckoutCartModel', '$timeout', '$element', '$rootScope', '$locale', '$util', '$feature', '$ResolveOTP', '$Class', '$fiErrorUtil', '$renderContent', function ($scope, $populate, $state, $BillingAddressesModel, $CardTypesModel, $CheckoutSessionModel, $AuthModel, $CheckoutCartModel, $timeout, $element, $rootScope, $locale, $util, $feature, $ResolveOTP, $Class, $fiErrorUtil, $renderContent) {\n\n $populate($scope, {\n cart: $CheckoutCartModel.instance($scope.token),\n auth: $AuthModel.instance(),\n billingAddresses: $BillingAddressesModel.instance(),\n checkoutSession: $CheckoutSessionModel.instance($scope.token).retrieve({\n contingencies: {\n NEED_CREDIT_CARD: angular.noop,\n EXPIRED_CREDIT_CARD: angular.noop\n }\n })\n }).then(function () {\n\n // Set up the back url if passed down from the parent or else use the default review route\n $scope.backUri = $scope.backUri || 'checkout.review.sidebar.wallet';\n\n if ($scope.showmeftsection) {\n $scope.showmeftsection.toggle = true;\n }\n\n if ($scope.hideparenthead) {\n $scope.hideparenthead.toggle = false;\n }\n\n $scope.manageCardFlow = $scope.sidebar && $scope.cardmodel.card.isExisting();\n\n var type = $scope.selectedPromotionCardType && $scope.selectedPromotionCardType.type;\n\n if ($scope.checkoutSession.plccOffer && !type && $scope.promotion) {\n $state.go('^.selectCard');\n }\n\n $scope.showplcc = type === 'plcc';\n $scope.country = $locale.country;\n\n $scope.showNotYou = $scope.auth.is_auth_api_call && $util.param('source') !== 'consumerApp' && $scope.logout;\n\n $scope.cardmodel.cardType = 'creditCard';\n\n if ($scope.checkoutSession.plccOffer && $scope.showplcc) {\n $scope.cardmodel.cardType = 'privateLabel';\n $scope.cardmodel.sponsor_id = $scope.checkoutSession.plccOffer.sponsor_id;\n }\n\n $scope.cardmodel.user = {\n first_name: $scope.auth.first_name,\n last_name: $scope.auth.last_name\n };\n\n $scope.cardmodel.address = $scope.billingAddresses.addresses[0];\n\n if ($scope.billingaddressupdated.value) {\n $scope.billingaddressupdated = {\n msgs: [$locale.content.get('editCard.newAddressAdded')],\n type: 'success',\n value: true\n };\n }\n\n $scope.gotoBilling = function (address) {\n if ($scope.pageLevel) {\n $scope.pageLevel.message = null;\n }\n if (!address) {\n if ($locale.country === 'BR') {\n $scope.parentCallbacks.showCep();\n } else {\n $state.go('^.addBilling');\n }\n }\n };\n\n $scope.isUPOP = function () {\n /*\n * we do have a BIN lookup for C2 country to FIMS\n * if that fails\n * a) buyer selects card type from dropdown and it could be CUP\n * b) and we are not going to get isUpop from FIMS , but C2 CUP is always upop card\n * if that success\n * a) card can be of type VISA or CUP for dual cards\n * b) and we need to show dropdown for buyer to choose the card, eventhough we default to VISA\n * c) even though VISA selected , it is UPOP card\n * if that success\n * a) card be of type CUP and AMEX for dual cards\n * b) we don't show dropdown but default to CUP\n * c) here both CUP and UPOP is true\n *\n * so checking either CUP or UPOP (for VISA)\n * and yes only for OTP enabled country (C2 for now)\n */\n var needOTPForAddCard = $feature('needOTPForAddCard');\n var isCUP = $scope.cardmodel.card && $scope.cardmodel.card.type && $scope.cardmodel.card.type === 'CUP';\n var isUpop = $scope.cardmodel.card && $scope.cardmodel.card.isUpop;\n return needOTPForAddCard && isCUP && isUpop;\n };\n\n $scope.flag = function (field) {\n // passing country code to differentiate CUP for C2 and ROW\n return _cardMetaData.$CardMetaData.getMetaData($scope.cardmodel.card, field, $locale.country);\n };\n\n $scope.buttonText = function () {\n var contentString = 'creditcard.addBtn';\n\n if ($scope.cardmodel.card.isExisting()) {\n contentString = 'creditcard.updateBtn';\n } else if ($scope.isUPOP()) {\n contentString = 'creditcard.continuetext';\n }\n return contentString;\n };\n\n $scope.cardTypeChanged = function () {\n $scope.phone.phoneType = $scope.flag('phoneType');\n };\n\n function addErrorMessage(contentKey) {\n if (contentKey) {\n contentKey = angular.isArray(contentKey) ? contentKey[0] : contentKey;\n var message = $locale.content.get('creditcard.' + contentKey);\n\n $scope.message.msgs.push(message);\n }\n }\n\n function handleContingencies(result, contentBundle, defaultErrorKey, prop) {\n var errorData;\n\n if (result.errorCodes) {\n errorData = result;\n } else {\n errorData = {\n errorCodes: result && [result['0']]\n };\n }\n $scope.message = $fiErrorUtil.addPageErrors(errorData, contentBundle, prop, defaultErrorKey);\n\n if (window.scrollTo) {\n window.scrollTo(0, 0);\n }\n }\n\n $scope.cancelFn = function () {\n if ($scope.sidebar) {\n if (!$scope.checkoutSession.plccOffer) {\n $state.go('checkout.review.sidebar.wallet');\n } else {\n $state.go('^.selectCard');\n }\n } else {\n $scope.done();\n }\n };\n\n function initiateOTP() {\n var resolveOTP = new $ResolveOTP({ id: $scope.cardmodel.id });\n\n resolveOTP.action('init', {\n data: {\n phone: {\n country_code: $scope.phone.IntDialingCountryCode,\n number: $scope.phone.telephone\n }\n },\n resultModel: {},\n success: function success() {\n $scope.message = {};\n $state.go('.confirmUpop');\n },\n\n error: function error() {\n handleContingencies({}, 'confirmUpop', 'declineMessage');\n },\n\n contingencies: {\n INIT_OTP_CONTINGENCY: function INIT_OTP_CONTINGENCY(name, result) {\n // prop for last 4 digits of card in error message\n var prop = {\n number: $scope.cardmodel && $scope.cardmodel.card && $scope.cardmodel.card.last4()\n };\n\n handleContingencies(result, 'confirmUpop', 'declineMessage', prop);\n $fiErrorUtil.addFieldErrors(result, $element);\n },\n DEFAULT: function DEFAULT() {\n handleContingencies({}, 'confirmUpop', 'declineMessage');\n }\n }\n });\n }\n\n $scope.onSubmit = function () {\n if ($scope.pageLevel) {\n $scope.pageLevel.message = null;\n }\n var isNewCard = !$scope.cardmodel.card.isExisting();\n\n if (isNewCard) {\n delete $scope.cardmodel.id;\n }\n\n if ($('#plccAgree').is(':checked')) {\n $scope.cardmodel.preference = true;\n }\n\n // Only initiateOTP needs to be called for unconfirmed CUP contingency. Add card call does not need to be made.\n if ($scope.isUPOP() && $scope.cardmodel.id && ($scope.checkoutSession.get('errorData.cause') === 'NEED_AUTHENTICATED_CARD' || $scope.checkoutSession.get('errorData.cause') === 'EXPIRED_CREDIT_CARD')) {\n\n initiateOTP();\n } else {\n $scope.cardmodel.save({\n\n success: function success() {\n if ($scope.isUPOP()) {\n initiateOTP();\n } else {\n\n $scope.checkoutSession.fundingOptions.action('update', {\n\n resultModel: $scope.checkoutSession,\n\n data: {\n planId: $scope.cardmodel.id\n },\n success: function success(result) {\n if ($scope.cardmodel && $scope.cardmodel.cardType === 'privateLabel') {\n delete $scope.checkoutSession.plccOffer;\n }\n\n delete $scope.checkoutSession.errorData;\n\n var cardAdded = $scope.cardmodel && $scope.cardmodel.card;\n var numberAdded;\n var cardTypeAdded;\n\n if (cardAdded) {\n numberAdded = angular.isString(cardAdded.number) && cardAdded.number.replace(/\\s/g, '');\n cardTypeAdded = cardAdded.type;\n }\n\n var last4Added = angular.isString(numberAdded) && numberAdded.substr(numberAdded.length - 4);\n var cvvData = $scope.checkoutSession.cvvData;\n var last4ToUse;\n var cardTypeToUse;\n\n if (cvvData) {\n last4ToUse = cvvData.number;\n cardTypeToUse = cvvData.type;\n }\n\n if (last4ToUse === last4Added && cardTypeAdded === cardTypeToUse) {\n $scope.checkoutSession.set('cvvData.security_code', $scope.cardmodel.get('card.security_code'));\n }\n\n var updateCardSidebarMessage = $renderContent('wallet.cardUpdated', {\n type: cardTypeAdded,\n number: last4Added\n });\n var updateCardPageMessage = $renderContent('smallToolTip.cardUpdated');\n var addCardMessage = $renderContent('smallToolTip.cardAdded');\n\n var msgs = [addCardMessage];\n\n if (!isNewCard) {\n msgs = $scope.manageCardFlow ? [updateCardSidebarMessage] : [updateCardPageMessage];\n }\n\n $scope.checkoutSession.message = {\n type: 'success',\n msgs: msgs\n };\n\n $scope.done();\n },\n\n contingencies: {\n TRANSACTION_REFUSED: function TRANSACTION_REFUSED(name) {\n $scope.message.msgs = [];\n $scope.message.type = 'info';\n addErrorMessage('addedButCannotUse');\n }\n }\n });\n }\n },\n\n contingencies: {\n ADD_CARD_CONTINGENCY: function ADD_CARD_CONTINGENCY(name, result) {\n if ($scope.sidebar) {\n $scope.$emit('SidebarError');\n }\n $scope.billingaddressupdated.value = false;\n if (result && result.errorCodes) {\n handleContingencies(result, 'creditcard', 'errorInvalidData');\n $fiErrorUtil.addFieldErrors(result, $element);\n } else if (result && result['0']) {\n handleContingencies(result, 'creditcard');\n } else {\n handleContingencies({}, 'creditcard', 'errorInternalError');\n }\n },\n DISALLOWED_CUPSECURE_ADDITION: function DISALLOWED_CUPSECURE_ADDITION(name, result) {\n handleContingencies({}, 'creditcard', 'errorInternalError');\n },\n VALIDATION_ERROR: function VALIDATION_ERROR(name, result) {\n var $field = $($element).find('[ng-model=\"card.number\"]');\n\n $field.addClass('backendError');\n $field.attr('aria-invalid', true);\n $field.focus();\n },\n DEFAULT: function DEFAULT(name, result) {\n handleContingencies({ errorCodes: [name] }, 'creditcard', 'errorInternalError');\n }\n\n },\n\n error: function error() {\n handleContingencies({}, 'creditcard', 'errorInternalError');\n },\n\n validation: function validation(res) {// eslint-disable-line no-empty-function\n }\n });\n }\n };\n });\n }]\n };\n }]);\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n_cardMetaData.$CardMetaData;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-wallet-components/src/add-card/addcard/route.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(module, __dirname, __filename) {var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\nvar _route = __webpack_require__(\"../node_modules/xo-wallet-components/src/confirm-upop/route.js\");\n\nvar _route2 = _interopRequireDefault(_route);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/squid/dist/index.js\"), __webpack_require__(\"../node_modules/xo-wallet-components/src/add-card/addcard/directive.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (squid) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n squid.module('xo-add-card.addcard.route', ['squid', 'xo-add-card.addcard.directive']).factory('$AddCardRoute', ['$ComponentRoute', function ($ComponentRoute) {\n\n return $ComponentRoute.extend('AddCardRoute', {\n\n name: 'addCard',\n directive: 'xo-add-card',\n titleContent: 'asideHeader.addCard',\n\n trackingData: {\n fptiState: 'add_or_update_cc'\n },\n loginRequired: true,\n children: [{\n route: _route2['default'],\n attributes: {\n token: 'token',\n phone: 'phone',\n cardmodel: 'cardmodel',\n 'on-success': 'onSuccess'\n }\n }]\n });\n }]);\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/webpack/buildin/module.js\")(module), \"../node_modules/xo-wallet-components/src/add-card/addcard\", \"../node_modules/xo-wallet-components/src/add-card/addcard/route.js\"))\n\n/***/ }),\n\n/***/ \"../node_modules/xo-wallet-components/src/add-card/cardExpiry/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function($) {\n\nexports.__esModule = true;\nexports.$xoCardExpiryDirective = undefined;\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/tooltip/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/error-tooltip/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/floating-label/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/directionality/directive.js\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-wallet-components/src/add-card/cardExpiry/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar $xoCardExpiryDirective = exports.$xoCardExpiryDirective = _squid.$Component.extend('$xoCardExpiryDirective', {\n tag: 'xo-card-expiry',\n template: _template2['default'],\n\n props: {\n expiryMonth: {\n type: 'var',\n required: false\n },\n expiryYear: {\n type: 'var',\n required: false\n }\n },\n\n resolve: {\n experiments: function experiments() {\n return {\n showNumericKeypad: (0, _squid.$pxp)('xo_xoon_numeric_keypad_expirydob', { 'ctx.COUNTRY': _squid.$locale.country }, 'xo_xoon_numeric_keypad_expirydob_test')\n };\n }\n },\n\n lifecycle: {\n enter: function enter() {\n var _this = this;\n\n this.focusAndBlurHandler = function ($event) {\n _logger.$logger.info('credit_card_expiry_' + $event.type + '_event');\n };\n this.expiryFormat = (0, _squid.$feature)('ccExpiryDateFormat', 'MMYY', _squid.$locale.country);\n\n if (this.expiryMonth && this.expiryYear) {\n if (this.expiryFormat === 'MMYY') {\n this.expiryDate = this.expiryMonth + '/' + this.expiryYear.substring(2, 4);\n } else if (this.expiryFormat === 'MMYYYY') {\n this.expiryDate = this.expiryMonth + '/' + this.expiryYear;\n }\n }\n\n if (this.expiryFormat === 'MMYY') {\n this.maxlength = 5;\n this.expiryMask = '99/99';\n } else {\n this.maxlength = 7;\n this.expiryMask = '99/9999';\n }\n\n this.formatExpiry = function (event) {\n var key = event.keyCode || event.charCode;\n var $el = $(event.target);\n var val = $el.val().replace(/[^0-9\\/]/gi, '');\n var strokes = val.length;\n\n // Ignore delete keys\n if (key === 8 || key === 46) {\n return;\n }\n\n // after two characters add a slash char\n if (strokes === 2) {\n val += '/';\n }\n\n _this.expiryDate = val;\n $el.mask(_this.expiryMask);\n };\n\n var currentYear = new Date().getFullYear().toString();\n var validMonths = _squid.$util.map(_squid.$util.range(1, 13), function (num) {\n return ('0' + num).substr(-2);\n });\n\n this.validate = function (expiryDate) {\n if (!expiryDate) {\n return;\n }\n\n var month = void 0,\n year = void 0,\n unformatted = void 0;\n var isValid = false;\n\n unformatted = expiryDate.replace(/[^0-9]/gi, '');\n if (unformatted.length > 3) {\n month = unformatted.substring(0, 2);\n if (_this.expiryFormat === 'MMYY') {\n year = currentYear.substring(0, 2) + unformatted.substring(2, 4);\n } else if (_this.expiryFormat === 'MMYYYY') {\n year = unformatted.substring(2, 6);\n }\n\n isValid = validMonths.indexOf(month) > -1 && year >= currentYear;\n }\n\n _this.expiryYear = year;\n _this.expiryMonth = month;\n\n return isValid;\n };\n },\n populate: function populate() {\n // We are controlling card-expiry field through PXP.\n // Note: If locale is 'JP', then we always use keyType as 'tel' (jquery-mask-fix)\n if (this.experiments && this.experiments.showNumericKeypad || _squid.$locale.country === 'JP') {\n this.keyType = 'tel';\n } else {\n this.keyType = 'text';\n }\n }\n }\n});\n\nangular.value(\"$xoCardExpiryDirective\", $xoCardExpiryDirective);\n_squid.$Component;\n\n_squid.$locale;\n\n_squid.$feature;\n\n_squid.$util;\n\n_squid.$pxp;\n\n_logger.$logger;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/jquery/dist/jquery.min.js\")))\n\n/***/ }),\n\n/***/ \"../node_modules/xo-wallet-components/src/add-card/cardExpiry/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
      \\n
      \\n \\n \\n \\n
      \\n
      \\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-wallet-components/src/add-card/cardMetaData/index.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function($) {\n\nexports.__esModule = true;\nexports.$CardMetaData = undefined;\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _angular2 = _interopRequireDefault(_angular);\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar CARD_META_DATA = {\n DEFAULT: {\n fields: {\n address: true,\n cvv: true,\n dob: false,\n expiry: true,\n issue: false,\n phone: false\n },\n length: {\n cvv: 3,\n min: 16,\n max: 16\n },\n luhn: true,\n phoneType: 'Mobile',\n spaces: '4,8,12'\n },\n\n PLCC: {\n fields: {\n expiry: false,\n cvv: false,\n address: false\n },\n length: {\n min: 10,\n max: 16\n }\n },\n\n MAESTRO: {\n pattern: /^(5018|5020|5038|4903|4911|4936|564182|545250|504834|503615|6333|6304|6759|676[1-3]|0604)/,\n length: {\n min: 12,\n max: 19\n },\n spaces: '4,8,12,16'\n },\n\n SWITCH: {\n pattern: /^(5018|5020|5038|4903|4911|4936|564182|545250|504834|503615|6333|6304|6759|676[1-3]|0604)/,\n fields: {\n issue: true\n },\n length: {\n min: 12,\n max: 19\n },\n spaces: '4,8,12,16'\n },\n\n DINERSCLUB: {\n pattern: /^(36|38|30[0-5])/,\n length: {\n min: 14,\n max: 14\n }\n },\n\n DISCOVER: {\n pattern: /^(6011|65|64[4-9]|622|36|38|30[0-5])/,\n length: {\n min: 14\n }\n },\n\n MASTERCARD: {\n pattern: /^(5[1-5]|2(2(2[1-9]|[3-9]\\d)|[3-6]\\d\\d|7[0-1]\\d|720))/\n },\n\n AMEX: {\n pattern: /^3[47]/,\n length: {\n cvv: 4,\n min: 15,\n max: 15\n },\n spaces: '4,10'\n },\n\n VISA: {\n pattern: /^4/,\n length: {\n min: 13\n },\n subTypes: {\n QIWI: {\n pattern: /^(428122|489049|469395|446942|462012)/\n }\n }\n },\n\n JCB: {\n pattern: /^(?:2131|1800|35[0-9]{3})/,\n length: {\n min: 15\n }\n },\n\n CBNATIONALE: {},\n\n CETELEM: {\n fields: {\n dob: true\n },\n length: {\n max: 19\n },\n spaces: '4,8,12,16'\n },\n\n COFIDIS: {\n fields: {\n dob: true,\n expiry: false,\n cvv: false\n },\n length: {\n min: 8,\n max: 9\n },\n spaces: '4,8',\n luhn: false\n },\n\n COFINOGA: {\n fields: {\n dob: true,\n cvv: false\n },\n length: {\n min: 17,\n max: 17\n },\n spaces: '4,8,12,16'\n },\n\n ELO: {\n pattern: /^9/,\n length: {\n min: 13\n }\n },\n\n HIPER: {\n pattern: /^6/,\n length: {\n min: 13\n }\n },\n\n HIPERCARD: {\n pattern: /^7/,\n length: {\n min: 13\n }\n },\n\n // C2 CUP Credit Card - not a dual brand\n CUPC2CREDIT: {\n fields: {\n address: false,\n phone: true\n },\n length: {\n max: 19\n }\n },\n\n // C2 CUP AMEX Dual Credit Card - force Cup as primary card\n CUPC2AMEXCREDIT: {\n fields: {\n address: false,\n phone: true\n },\n length: {\n cvv: 4,\n min: 15,\n max: 15\n }\n },\n\n // C2 CUP non dual Debit Card\n CUPC2DEBIT: {\n fields: {\n address: false,\n cvv: false,\n expiry: false,\n phone: true\n },\n length: {\n max: 19\n }\n },\n\n // C2 CUP Amex Dual Debit Card - force cup as primary card\n CUPC2AMEXDEBIT: {\n fields: {\n address: false,\n cvv: false,\n expiry: false,\n phone: true\n },\n length: {\n min: 15,\n max: 15\n }\n },\n\n // C2 VISA CUP Dual Debit Card - force visa as primary card\n VISACUPDEBIT: {},\n // C2 VISA CUP Dual Credit Card - force Visa as primary card\n VISACUPCREDIT: {},\n // CUP for non C2 countries\n CUPCREDIT: {},\n CUPDEBIT: {}\n};\n\nObject.keys(CARD_META_DATA).forEach(function (key) {\n CARD_META_DATA[key] = $.extend(true, {}, CARD_META_DATA.DEFAULT, CARD_META_DATA[key]);\n});\n\nObject.keys(CARD_META_DATA).forEach(function (key) {\n CARD_META_DATA[key].spaces = CARD_META_DATA[key].spaces.split(',').map(Number);\n});\n\nfunction getTypeByPattern(cardMetaData, types, number) {\n var result = void 0;\n\n types.some(function (type) {\n var metaData = cardMetaData[type];\n\n if (metaData && metaData.pattern && metaData.pattern.test(number)) {\n result = type;\n return true;\n }\n return false;\n });\n return result;\n}\n\nvar $CardMetaData = exports.$CardMetaData = {\n getMetaData: function getMetaData(card, field, country) {\n var cardType = card && card.type || 'DEFAULT';\n var cardDualType = card && card.dualType;\n\n if (cardType === 'CUP') {\n /* append the country code to differentiate C2 and ROW CUP cards\n * at the end cardType is going be look like\n * CUPC2AMEXDEBIT / CUPC2AMEXCREDIT for dual brands\n * CUPC2CREDIT / CUPC2DEBIT for c2 non dual brands\n * CUPCREDIT / CUPDEBIT for ROW\n */\n var dualType = cardDualType === 'AMEX' ? cardDualType : '';\n var cardCountry = country === 'C2' ? 'C2' : '';\n var productType = ['DEBIT', 'DEBITCARD'].indexOf(card.productType) > -1 ? 'DEBIT' : 'CREDIT';\n cardType = '' + cardType + cardCountry + dualType + productType;\n } else if (cardType === 'VISA' && cardDualType === 'CUP') {\n /*\n * VISA & CUP is applicable for China WorldWide\n * at the end cardType is going to be\n * we don't have any other country in this combination\n * so don't use country passed into this method\n * VISACUPCREDIT / VISACUPDEBIT\n */\n var _productType = ['DEBIT', 'DEBITCARD'].indexOf(card.productType) > -1 ? 'DEBIT' : 'CREDIT';\n cardType = '' + cardType + cardDualType + _productType;\n }\n\n return _squid.$Class.get(CARD_META_DATA[cardType], field);\n },\n getCardType: function getCardType(types, number) {\n var cardType = {};\n\n if (_angular2['default'].isArray(types) && number) {\n cardType.type = getTypeByPattern(CARD_META_DATA, types, number);\n var metaData = CARD_META_DATA[cardType.type];\n\n if (metaData && metaData.subTypes) {\n cardType.subType = getTypeByPattern(metaData.subTypes, types, number);\n }\n }\n return cardType;\n }\n};\n\n_angular2['default'].value(\"$CardMetaData\", $CardMetaData);\n_squid.$Class;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/jquery/dist/jquery.min.js\")))\n\n/***/ }),\n\n/***/ \"../node_modules/xo-wallet-components/src/add-card/creditcard-input/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\nvar _cardMetaData = __webpack_require__(\"../node_modules/xo-wallet-components/src/add-card/cardMetaData/index.js\");\n\nvar _utils = __webpack_require__(\"../node_modules/xo-wallet-components/src/add-card/creditcard-input/utils.js\");\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/tooltip/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/error-tooltip/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/floating-label/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/directionality/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-wallet-components/src/add-card/cardExpiry/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-wallet-components/src/add-card/cvv/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-wallet-components/src/add-card/dob/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-angular-ui-utils/ui-utils.min.js\");\n\nvar _index = __webpack_require__(\"../node_modules/xo-device-info/dist/index.js\");\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/squid/dist/index.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!../node_modules/xo-wallet-components/src/add-card/creditcard-input/template.html\"), __webpack_require__(\"../node_modules/jquery/dist/jquery.min.js\"), __webpack_require__(\"../node_modules/xo-models/src/checkout/index.js\"), __webpack_require__(\"../node_modules/xo-models/src/fi/index.js\"), __webpack_require__(\"../node_modules/xo-form-components/src/name-input/directive.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (squid, template, $) {\n\n squid.module('xo-add-card.creditcard-input.directive', ['squid', 'xomodel.checkout', 'xomodel.fi', 'xo-tooltip.directive', 'xo-error-tooltip.directive', 'xo-name-input.directive']).directive('scrollToTop', [function () {\n return {\n link: function link(scope, element, attr) {\n $(element).on('focus', function () {\n if ($('#mxCardTitle').is(':visible')) {\n $('#creditCardForm').scrollTop($(element).offset().top);\n }\n });\n }\n };\n }]).directive('jsOnchange', [function () {\n /**\n * The 'jsOnchange' directive uses JavaScript's native 'onchange'\n * event instead of Angular's 'ng-change' directive. We need\n * this because 'ng-change' gets fired every time the input changes\n * but we want to fire the event until the users focuses out of the input,\n * which is how JavaScript's 'onchange' event works.\n */\n return {\n restrict: 'A',\n link: function link(scope, element, attrs) {\n var jsChangeHandler = scope.$eval(attrs.jsOnchange);\n\n element.on('change', jsChangeHandler);\n element.on('$destroy', function () {\n element.off('change');\n });\n }\n };\n }]).directive('xoCreditCard', ['$timeout', '$util', function ($timeout, $util) {\n return {\n template: template,\n restrict: 'E',\n scope: {\n token: '=?',\n card: '=?',\n user: '=?',\n selectedPromotionCardType: '=?',\n promotion: '=?',\n cardTypeChanged: '=?',\n cardNumberChanged: '=?',\n manageCardFlow: '=?',\n setBuyerFxFlag: '=?'\n },\n controller: ['$scope', '$populate', '$CardTypesModel', '$Class', '$locale', '$CardTypeFromBinModel', '$config', '$feature', '$pxp', '$logger', '$CheckoutAppDataModel', '$CheckoutCartModel', '$FlowEligibilityModel', '$meta', function ($scope, $populate, $CardTypesModel, $Class, $locale, $CardTypeFromBinModel, $config, $feature, $pxp, $logger, $CheckoutAppDataModel, $CheckoutCartModel, $FlowEligibilityModel, $meta) {\n $scope.locale = $locale;\n $scope.country = $scope.locale.country;\n\n var isUnsupportedCard;\n var lastVerifiedBin = '';\n var lastRequestedBin = ''; // bin requested to service to fetch card type and pending response.\n\n function updateBuyerFXCurrencyConversion() {\n return $pxp('xo_xoon_dcc_popup_content', { 'ctx.COUNTRY': $scope.locale.country }, '(xo_xoon_dcc_popup_content_)(.*)').then(function () {\n var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n treatment = _ref.treatment_name;\n\n if (treatment) {\n var isControl = treatment.includes('control');\n\n $scope.setBuyerFxFlag({ treatment: treatment });\n if (!isControl) {\n $scope.isBuyerFxApplicable = true;\n }\n }\n });\n }\n\n function logConversionDataToFPTI(isChangeable) {\n var _$scope$card$currency = $scope.card.currencyConvData;\n _$scope$card$currency = _$scope$card$currency === undefined ? {} : _$scope$card$currency;\n var from_code = _$scope$card$currency.from_code,\n to_code = _$scope$card$currency.to_code,\n spread = _$scope$card$currency.spread;\n\n /**\n * If conversion is not chnagable because of our agreement with\n * the card issuer we will not have conversion data. In that\n * case we will get the from code from the metadata and the\n * to code from the cart.\n */\n\n if (!from_code) {\n from_code = $util.getProperty($scope, 'locale.metadata.currency.code');\n to_code = $scope.checkoutCart.get('purchase.amounts.total.currency_code');\n }\n\n /**\n * FPTI event #3 for Buyer FX guest experience\n * https://engineering.paypalcorp.com/confluence/display/EDS/Buyer+FX+Instrumentation+Specs\n */\n $logger.info('checkout_fpti', {\n from: 'CURRENCY_CONVERSION',\n to: 'prepare_currency_conversion_pre_plan',\n conversion_type: (0, _utils.getDefaultCoversionSelection)($scope.card),\n is_conversion_shown: isChangeable ? 1 : 0,\n currency_conversion_from_curr: from_code,\n currency_conversion_to_curr: to_code,\n currency_conversion_spread: spread,\n locale: $locale.country\n });\n }\n\n function setConversionData(data) {\n /**\n * We want to enter this conditional if both of the\n * following conditions are met:\n * 1. The PXP `xo_xoon_dcc_popup_content` returns a\n * treatment or control value\n * 2. Either:\n * a. `data` is present, in which case this\n * function is being called after a successful\n * call to the `calculateCurrencyConversion` API\n * and we need to set `card.currencyConvData` and\n * log to FPTI\n * b. `card.currencyConvData` is NOT `undefined`, which\n * occurs when a user has prevously entered a card and\n * a successful call the the currency conversion API\n * has occurred and the user is now deleting/changing\n * the card number for some reason\n */\n if ($scope.isBuyerFxApplicable && (data || $scope.card.currencyConvData)) {\n $scope.card.currencyConvData = data;\n $logger.info('setting_currency_conversion_data', { hasConversionData: Boolean(data) });\n $scope.setBuyerFxFlag({ hasBuyerFxPrePlanData: Boolean(data) });\n\n /**\n * If data is `undefined` then we are resetting\n * conversion data and therefore need to reset the\n * default conversion selection to 'PAYPAL'\n */\n if (!data) {\n $scope.card.ppconversion = 'PAYPAL';\n } else {\n /**\n * If we have data the getCurrencyConversion() call\n * was successful and the conversion selection is\n * changeable.\n */\n logConversionDataToFPTI(true);\n }\n }\n }\n\n function conversionErrorHandler(key) {\n /**\n * Set `$scope.card.currencyConvData` to `undefined` so that if this isn't\n * the first card the user entered and the previous card got a 200 response\n * from the API, then we don't want the conversion data for that card to be\n * used for the newly entered card.\n */\n setConversionData();\n $logger.warn('Contingency encountered during calculateCurrencyConversion call.');\n return;\n }\n\n function getCurrencyConversion(number) {\n $scope.checkoutCart.action('calculateCurrencyConversion', {\n data: {\n cardNumber: number,\n country: $locale.country\n },\n success: setConversionData,\n contingencies: {\n DEFAULT: conversionErrorHandler\n },\n error: conversionErrorHandler\n });\n }\n\n function currencyConvCardTypeChangeHandler() {\n $scope.card.ppconversion = 'PAYPAL';\n }\n\n $scope.checkCardForDccCall = function checkCardForDccCall() {\n var _$scope$card = $scope.card;\n _$scope$card = _$scope$card === undefined ? {} : _$scope$card;\n var number = _$scope$card.number;\n\n /**\n * If the cart currency and the currency for the user's billing address are the\n * same or we are not showing the BuyerFX PXP then we don't need to make the\n * API call to get conversion information since no conversion is necessary\n */\n\n if (!$scope.isBuyerFxApplicable || !(0, _utils.isConversionApplicable)($scope)) {\n return;\n }\n\n var cardNumber = (0, _utils.removeNonNumericCharsAndTruncate)(number, $scope.maxLength());\n var isCardLenValid = $scope.cardLengthValid(cardNumber);\n var isCardLuhnValid = $scope.cardLuhnValid(cardNumber);\n\n // If the card has changed, we want to wipe out the currency conversion data\n // associated with the previous card number that the user had entered.\n setConversionData();\n\n /**\n * If the card length or luhn isn't valid, we return because we are in the\n * process of entering in new card number or because the card number isn't\n * valid and we don't want to make the API call until it is.\n */\n if (!isCardLenValid || !isCardLuhnValid) {\n return;\n }\n\n var _$scope$card2 = $scope.card;\n _$scope$card2 = _$scope$card2 === undefined ? {} : _$scope$card2;\n var type = _$scope$card2.type,\n currencyConvData = _$scope$card2.currencyConvData;\n\n /**\n * Combined check for all conditions for a getCurrencyConversion call\n * 1. Card type is defined\n * 2. If we haven't fetched conversion data for this card yet\n * 3. If card allows for conversion selection\n * (i.e. card type is not AMEX, CUP, DISCOVER, or JCB)\n */\n\n if (type && !currencyConvData) {\n /**\n * If conversion is not changeable we log to FPTI now since we aren't\n * calling getCurrencyConversion(), which logs in the success callback.\n */\n if (_utils.unchangeableCardTypes.includes(type)) {\n logConversionDataToFPTI(false);\n return;\n }\n\n getCurrencyConversion(cardNumber);\n }\n };\n\n $scope.$watch('card.type', function () {\n currencyConvCardTypeChangeHandler();\n if ($scope.cardTypeChanged) {\n $scope.cardTypeChanged();\n }\n });\n\n $scope.mxDebitCards = ['BANAMEX', 'BANCOARFACA', 'BBVA', 'BANORTE', 'HSBC', 'INBURSA', 'SANTANDER'];\n\n $scope.cardLengthValid = function (number) {\n if ($scope.card && $scope.card.isExisting()) {\n return true;\n }\n\n number = (0, _utils.removeNonNumericCharsAndTruncate)(number);\n\n return number.length >= $scope.flag('length.min') && number.length <= $scope.flag('length.max');\n };\n\n $scope.cardLuhnValid = function (input) {\n if (!$scope.flag('luhn') || $scope.card && $scope.card.isExisting()) {\n return true;\n }\n\n input = (0, _utils.removeNonNumericCharsAndTruncate)(input);\n\n var sum = 0;\n var numdigits = input.length;\n var parity = numdigits % 2;\n var i = 0;\n var digit = void 0;\n\n for (; i < numdigits; i++) {\n\n digit = parseInt(input.charAt(i), 10);\n\n if (i % 2 === parity) {\n digit *= 2;\n }\n\n if (digit > 9) {\n digit -= 9;\n }\n\n sum += digit;\n }\n\n return sum % 10 === 0;\n };\n\n var _ref2 = $scope.selectedPromotionCardType || {},\n promotionType = _ref2.type;\n\n $scope.isPlcc = promotionType === 'plcc';\n\n $scope.flag = function (field) {\n if ($scope.isPlcc && !$scope.card.type) {\n $scope.card.type = 'PLCC';\n }\n // passing country to differentiate CUP for C2 and ROW\n return _cardMetaData.$CardMetaData.getMetaData($scope.card, field, $locale.country);\n };\n\n $scope.maxLength = function () {\n if ($scope.card && $scope.card.isExisting()) {\n return 30;\n }\n\n return $scope.flag('length.max') + $scope.flag('spaces.length');\n };\n\n if ($scope.card && $scope.card.number) {\n $scope.unformattedCardNumber = (0, _utils.removeNonNumericCharsAndTruncate)($scope.card.number, $scope.maxLength());\n }\n\n $scope.showMXCardLogos = function () {\n return $locale.country === 'MX';\n };\n\n function pxpMXCardLabels() {\n if ($scope.showMXCardLogos()) {\n $pxp('xo_hermes_mx_cardlogo', {}, 'xo_hermes_mx_cardlogo_treatment').then(function () {\n var _ref3 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n treatment_name = _ref3.treatment_name;\n\n $scope.showLabels = treatment_name === 'xo_hermes_mx_cardlogo_treatment';\n });\n } else {\n $scope.showLabels = false;\n }\n }\n\n $populate($scope, {\n cardTypes: $CardTypesModel.instance($scope.token + ':' + $locale.country, {\n token: $scope.token,\n country: $locale.country\n }),\n checkoutAppData: $CheckoutAppDataModel.instance($scope.token).retrieve(),\n checkoutCart: $CheckoutCartModel.instance($scope.token),\n flowEligibility: $FlowEligibilityModel.instance($scope.token).retrieve({\n params: {\n geolocation: $meta.geolocation,\n localeCountry: $locale.country\n }\n })\n }).then(function () {\n if ((0, _utils.isConversionApplicable)($scope)) {\n return updateBuyerFXCurrencyConversion();\n }\n }).then(function () {\n $scope.debitCardFlow = angular.isArray($scope.flowEligibility.paymentCardProductClass) && $scope.flowEligibility.paymentCardProductClass[0] === 'DEBIT';\n var cardTypeServiceCall = $feature('cardTypeServiceCallRequired', false, $scope.country) || $scope.debitCardFlow;\n\n $scope.cardProductValid = function () {\n return $scope.debitCardFlow ? $scope.card.productType === 'DEBIT' : true;\n };\n\n var forceDropDown = false;\n\n function str(item) {\n var s = item.toString();\n\n return item < 10 ? '0' + s : s;\n }\n\n var scanCardExperimentEligibility = function scanCardExperimentEligibility() {\n if (!_index.$DeviceInfo.isSafariiOSBrowserView()) {\n return _squid.$promise.resolve(false);\n }\n // Scan credit card feature is only available in iosVersion 8+\n if (_index.$DeviceInfo.isSafariiOSBrowserView() && _index.$DeviceInfo.getiOSVersion()[0] < 8) {\n return _squid.$promise.resolve(false);\n }\n\n return (0, _squid.$elmo)('xo_hermes_addcard_camera_icon', { 'ctx.COUNTRY': $locale.country }, 'xo_hermes_addcard_camera_icon_show');\n };\n\n scanCardExperimentEligibility().then(function (result) {\n $scope.showScanCardExperiment = result || false;\n });\n\n $scope.supportedCardNamesCommaSeparated = $scope.cardTypes.supportedNames().join(', ');\n $scope.disallowedCardMessageFeature = $feature('disallowedCards', undefined, $scope.country);\n if ($scope.disallowedCardMessageFeature) {\n $scope.showUnsupportedCardMessage = true;\n $scope.unsupportedCardNamesCommaSeparated = $scope.cardTypes.unsupportedNames().join(', ');\n }\n\n $scope.$on('localeChange', function () {\n $scope.cardTypes = $CardTypesModel.instance($scope.token + ':' + $locale.country, {\n token: $scope.token,\n country: $locale.country\n });\n\n $scope.cardTypes.retrieve().then(function () {\n if ($scope.card.type && $scope.cardTypes.allowed.indexOf($scope.card.type) === -1) {\n delete $scope.card.type;\n forceDropDown = false;\n $scope.changeCardNumber(true);\n }\n });\n\n $scope.country = $locale.country;\n\n pxpMXCardLabels();\n });\n\n pxpMXCardLabels();\n\n $scope.cvvShown = function () {\n if ($scope.card.type === 'CETELEM' && $scope.locale.country === 'FR') {\n return false;\n }\n\n if ($scope.card.type === 'CUP' && $scope.card.productType === 'DEBITCARD') {\n return false;\n }\n\n if ($scope.isPlcc && $scope.card.type) {\n return true;\n }\n\n return $scope.flag('fields.cvv');\n };\n\n $scope.expiryShown = function () {\n if ($scope.isPlcc && $scope.card.type) {\n return true;\n }\n if ($scope.card.type === 'CUP' && $scope.card.productType === 'DEBITCARD') {\n return false;\n }\n\n return $scope.flag('fields.expiry');\n };\n\n $scope.enableDropDown = function () {\n // for VISA CUP dual card, force show dropdown for buyer to choose card type\n return Boolean(['ES', 'FR', 'GB', 'IT'].indexOf($scope.locale.country) > -1) || forceDropDown || $scope.card && $scope.card.type === 'VISA' && $scope.card && $scope.card.dualType === 'CUP';\n };\n\n $scope.showDropDown = function () {\n if ($scope.enableDropDown()) {\n return true;\n }\n\n if (!$scope.card.type && $scope.card.number && $scope.card.number.length >= 4 && !cardTypeServiceCall && !$scope.isPlcc) {\n return true;\n }\n\n if (!$scope.card.type && $scope.card.number && $scope.card.number.length >= 7 && cardTypeServiceCall && isUnsupportedCard) {\n return true;\n }\n\n return false;\n };\n\n $scope.showAcceptedCardLogos = function () {\n return !$scope.showDropDown() && $feature('showAcceptedCardLogos', false, $scope.country);\n };\n\n $scope.getCardTypeByNumber = function (types, number) {\n if ($scope.isPlcc && number.length > 6 || !$scope.isPlcc) {\n return _cardMetaData.$CardMetaData.getCardType(types, number);\n }\n };\n\n function formatCardNumber(number) {\n var spaces = $scope.flag('spaces');\n var formatted = [];\n\n for (var i = 0; i < number.length; i++) {\n if (spaces.indexOf(i) > -1) {\n formatted.push(' ');\n }\n\n formatted.push(number.charAt(i));\n }\n\n return formatted.join('');\n }\n\n $scope.$watch('country', function (newValue, oldValue) {\n cardTypeServiceCall = $feature('cardTypeServiceCallRequired', false, $scope.country) || $scope.debitCardFlow;\n });\n\n /**\n * Hit Callback(unformatted cc no) when user gets out of the cardNumber field.\n */\n $scope.focusAndBlurHandler = function ($event) {\n var type = $event.type;\n\n $logger.info('credit_card_number_' + type + '_event');\n if (type !== 'focus' && $scope.cardNumberChanged) {\n $scope.cardNumberChanged($scope.unformattedCardNumber);\n }\n };\n\n // e.g for a dual brand = ['CUP' ,'VISA'], select VISA or CUP based\n // on regex defined for card type. If not regex was defined, pick one\n // of the allowed card type.\n function selectCardTypeForDualBrands(result) {\n var dualCardTypes = $feature('dualCardTypes', {});\n var match;\n\n Object.keys(dualCardTypes).some(function (key) {\n return result.some(function (cardType) {\n if (cardType.type === key) {\n match = key;\n return true;\n }\n return false;\n });\n });\n\n if (match) {\n var regex = new RegExp(dualCardTypes[match]);\n var selected = $util.find(result, function (cardType) {\n if (regex.test(cardType.type)) {\n return true;\n }\n });\n\n // if selected card based on regexp is CUP\n // then we can test for AMEX as subtype (a dualType card)\n if (selected && selected.type === 'CUP') {\n $util.some(result, function (cardType) {\n if (/^AMEX$/.test(cardType.type)) {\n selected.dualType = cardType.type;\n return true;\n }\n });\n }\n\n // if selected card based on regexp is VISA\n // then we can test for CUP as subtype (a dualType card)\n if (selected && selected.type === 'VISA') {\n $util.some(result, function (cardType) {\n if (/^CUP$/.test(cardType.type)) {\n selected.dualType = cardType.type;\n return true;\n }\n });\n }\n\n return selected;\n } else {\n return $util.find(result, function (cardType) {\n return $scope.cardTypes.allowed.indexOf(cardType.type) > -1;\n });\n }\n }\n\n function selectCardType(result) {\n if (angular.isArray(result)) {\n if (result.length >= 2) {\n result = selectCardTypeForDualBrands(result);\n } else {\n result = result[0];\n }\n }\n\n return result || {};\n }\n\n function clearCardType() {\n $scope.card.type = '';\n $scope.card.isUpop = false;\n $scope.card.dualType = '';\n $scope.card.productType = '';\n }\n\n function getCardTypeByNumberServiceCall(number) {\n if (number.length >= 9) {\n /*\n * We have BIN numbers of different lengths - 6, 8, 9\n * For a 9 digit BIN number, when users enter 6 digits,\n * we might get a response different from what is expected out\n * of 9 digit BIN number.\n * So, we decided to call fims only when user entered card number\n * length is greater than or equal to 9.\n * This will also avoid multiple calls to fims at different length\n * of card (i.e. calling fims at every new digit after 6th digit until 9th digit)\n */\n var bin = number.slice(0, 9);\n\n if (lastVerifiedBin && lastVerifiedBin.bin === bin) {\n $scope.card.type = lastVerifiedBin.type;\n $scope.card.dualType = lastVerifiedBin.dualType;\n $scope.card.productType = lastVerifiedBin.productType;\n $scope.card.isUpop = lastVerifiedBin.isUpop;\n return;\n }\n\n if (isUnsupportedCard === bin || bin === lastRequestedBin) {\n return;\n }\n\n // protect against requesting substring of already requested bin\n if (bin.length <= lastRequestedBin.length && lastRequestedBin.indexOf(bin) > -1) {\n return;\n }\n\n lastRequestedBin = bin;\n\n $CardTypeFromBinModel.instance().save({\n data: {\n user_country: $scope.country,\n bin: bin\n },\n silent: true,\n success: function success(result) {\n\n // Log card brands returned from fims\n if (result) {\n var logObj = {\n totalItems: result.length,\n brands: []\n };\n\n result.forEach(function (brandObj) {\n logObj.brands.push(brandObj.type);\n });\n\n $logger.info('fims_card_type_from_bin_response', logObj);\n }\n\n result = selectCardType(result);\n var type = result.type;\n\n var disallowedCard = false;\n\n if ($scope.cardTypes.allowed.indexOf(type) === -1) {\n disallowedCard = true;\n } else if ($scope.debitCardFlow) {\n if (result.productType !== 'DEBIT') {\n disallowedCard = true;\n }\n }\n\n // if we get upop in the response from BIN lookup\n // set into the cardModel to trigger OTP\n // this should not only be set if dropdown is not shown\n $scope.card.isUpop = result.isUpop;\n\n if (disallowedCard) {\n clearCardType();\n isUnsupportedCard = bin;\n $scope.allowedCardsTooltip = true;\n return;\n }\n\n isUnsupportedCard = undefined;\n forceDropDown = false;\n if (!$scope.showDropDown()) {\n $scope.card.type = type;\n $scope.card.dualType = result.dualType;\n $scope.card.productType = result.productType;\n }\n\n // check for shorter version of bin coming back after longer version, protect against overwrite\n if (!lastVerifiedBin.bin || lastVerifiedBin.bin.indexOf(bin) === -1) {\n lastVerifiedBin = {\n bin: bin,\n type: type,\n dualType: result.dualType,\n productType: result.productType,\n isUpop: result.isUpop\n };\n }\n\n // This logic is to handle copy paste case when all numbers are entered at once\n if ($scope.card.type && number.length >= $scope.flag('length.min')) {\n if (/android/i.test(navigator.userAgent)) {\n return;\n }\n\n var ccNumber = (0, _utils.removeNonNumericCharsAndTruncate)($scope.card.number, $scope.maxLength());\n\n if (ccNumber.indexOf(number) >= 0) {\n $scope.card.number = formatCardNumber(ccNumber);\n }\n }\n\n return;\n },\n contingencies: {\n GET_FI_ISSUER_DETAILS_ERR: function GET_FI_ISSUER_DETAILS_ERR(name, result) {\n clearCardType();\n isUnsupportedCard = bin;\n lastRequestedBin = undefined;\n }\n },\n error: function error() {\n clearCardType();\n isUnsupportedCard = bin;\n }\n });\n } else {\n isUnsupportedCard = undefined;\n forceDropDown = false;\n clearCardType();\n }\n }\n\n $scope.getAllowedCardTypeByNumber = function (number) {\n return $scope.getCardTypeByNumber($scope.cardTypes.allowed, number);\n };\n\n $scope.getDisallowedCardTypeByNumber = function (number) {\n return $scope.getCardTypeByNumber($scope.cardTypes.disallowed, number);\n };\n\n $scope.enableAddMode = function () {\n if ($scope.card.isExisting()) {\n $scope.card.number = '';\n }\n };\n\n $scope.changeType = function () {\n forceDropDown = true;\n\n $scope.changeCardNumber(true);\n\n // If the card type dropdown changes we want to\n // check to see if we need to call the DCC API\n // and if it is then make a call\n $scope.checkCardForDccCall();\n\n // Blank out unsupported fields\n\n if (!$scope.flag('fields.expiry')) {\n delete $scope.card.expiry_month;\n delete $scope.card.expiry_year;\n }\n\n if (!$scope.flag('fields.issue')) {\n delete $scope.card.start_month;\n delete $scope.card.start_year;\n delete $scope.card.issue_number;\n }\n\n if (!$scope.flag('fields.dob')) {\n delete $scope.card.dob_day;\n delete $scope.card.dob_month;\n delete $scope.card.dob_year;\n }\n\n if (!$scope.flag('fields.cvv')) {\n delete $scope.card.security_code;\n }\n };\n\n $scope.changeCardNumber = function (isCardTypeChanged) {\n // If buyer tries to modify an update card number. We remove the whole string\n // so buyer can add a card instead.\n $scope.enableAddMode();\n $scope.allowedCardsTooltip = false;\n\n var regex = /[0-9]/;\n\n if ($feature('disableFullWidthCharacters') && regex.test($scope.card.number)) {\n $logger.info('checkout_fpti', {\n 'is_fullwidth_character': true\n });\n }\n\n var number = (0, _utils.removeNonNumericCharsAndTruncate)($scope.card.number, $scope.maxLength());\n var formattedNumber = void 0;\n\n $scope.unformattedCardNumber = number;\n\n // Attempt to determine the card type\n var cardType = void 0;\n\n if (cardTypeServiceCall) {\n if (!isCardTypeChanged) {\n getCardTypeByNumberServiceCall(number);\n }\n\n if (isUnsupportedCard) {\n $scope.allowedCardsTooltip = true;\n }\n } else {\n if (!isCardTypeChanged) {\n // Hide dropdown and trigger bin matching when the cc number is < 4 digits\n if (number.length < 4) {\n forceDropDown = false;\n }\n\n if (!$scope.enableDropDown()) {\n cardType = $scope.getAllowedCardTypeByNumber(number);\n $scope.card.type = cardType.type;\n $scope.card.subType = cardType.subType;\n }\n }\n\n if ($scope.isPlcc && $scope.card.type) {\n $scope.cvvShown();\n $scope.expiryShown();\n }\n\n if (!$scope.card.type && !$scope.isPlcc && (number.length >= 4 || $scope.getDisallowedCardTypeByNumber(number).type)) {\n $scope.allowedCardsTooltip = true;\n }\n }\n\n // Format the card number\n\n /*\n * PPPLMER-1563 commented out to fix this bug\n if (/android/i.test(navigator.userAgent)) {\n return;\n }\n */\n\n formattedNumber = formatCardNumber(number);\n\n // If the card is already formatted correctly, we can leave the user to continue in peace.\n if ($scope.card.number === formattedNumber) {\n return;\n }\n\n // Wait for the user's input to be reflected on the page (necessary for safari 5 otherwise selectionStart is incorrect)\n $timeout(function () {\n\n // re-formatting the number, since the card type may not have resolved before the first call\n $scope.card.number = formatCardNumber(number);\n\n // Save the current cursor positions\n var ccField = document.getElementById('cc');\n\n if (!ccField) {\n return;\n }\n var inputLength = ccField.value.length;\n var cursorStart = ccField.selectionStart;\n\n // Wait for the formatted card to be reflected on the page\n $timeout(function () {\n\n // If the cursor was at the end of the input field, keep it at the end\n if (cursorStart === inputLength) {\n ccField.selectionStart = ccField.selectionEnd = ccField.value.length;\n // Otherwise place the cursor to the position it was in before we replaced with the formatted number\n } else {\n ccField.selectionStart = ccField.selectionEnd = cursorStart;\n }\n });\n });\n };\n\n var year = new Date().getFullYear();\n\n $scope.months = $util.map($util.range(1, 13), str);\n $scope.startYears = $util.map($util.range(year - 10, year), str);\n });\n }]\n };\n }]);\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n_cardMetaData.$CardMetaData;\n\n_utils.unchangeableCardTypes;\n\n_utils.getDefaultCoversionSelection;\n\n_utils.isConversionApplicable;\n\n_utils.removeNonNumericCharsAndTruncate;\n\n_index.$DeviceInfo;\n\n_squid.$promise;\n\n_squid.$elmo;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-wallet-components/src/add-card/creditcard-input/utils.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.removeNonNumericCharsAndTruncate = exports.isConversionApplicable = exports.getDefaultCoversionSelection = exports.unchangeableCardTypes = undefined;\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar getForcedCards = function getForcedCards(type) {\n return _squid.$util.getProperty(_squid.$config, 'currencyConversion.cards.forced' + type, { 'default': [] });\n}; /* eslint-disable no-arrow-condition, no-confusing-arrow, angular/typecheck-string */\nvar unchangeableCardTypes = exports.unchangeableCardTypes = [].concat(getForcedCards('PayPal'), getForcedCards('Vendor'));\n\nvar getDefaultCoversionSelection = exports.getDefaultCoversionSelection = function getDefaultCoversionSelection() {\n var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n type = _ref.type;\n\n return getForcedCards('Vendor').includes(type) ? 'VENDOR' : 'PAYPAL';\n};\n\n/**\n * @function isConversionApplicable\n * @description checks to see if currency conversion is needed for the transaction\n * @param {object} scope - Angular scope\n * @returns {boolean}\n */\nvar isConversionApplicable = exports.isConversionApplicable = function isConversionApplicable(scope) {\n var cartCurrency = scope.checkoutCart.get('purchase.amounts.total.currency_code');\n var billingCurrency = _squid.$util.getProperty(scope, 'locale.metadata.currency.code');\n\n // If the cart currency and the currency for the user's billing address\n // are both presetn and different then currency conversion is applicable\n var hasDifferentCurrency = Boolean(cartCurrency && billingCurrency && cartCurrency !== billingCurrency);\n\n /**\n * Certain countries (e.g. IN) only allow domestic transactions, transactions between\n * a buyer and merchant both from that country (e.g. IN buyer & IN merchant), to be\n * done in the domestic currency (e.g. INR). For these countries we should not show\n * the conversion information, even if the cart currency is different from the countries\n * domestic currency. (See PPPLMER-63051)\n */\n var ineligibleDomesticCountriesList = _squid.$util.getProperty(_squid.$config, 'currencyConversion.domesticTransactionsIneligibleCountries', { 'default': [] });\n var merchantCountry = scope.checkoutAppData.get('merchant.merchant_country');\n var isForcedDomesticConversion = _squid.$locale.country === merchantCountry && ineligibleDomesticCountriesList.includes(_squid.$locale.country);\n\n return hasDifferentCurrency && !isForcedDomesticConversion;\n};\n\n/**\n * @function removeNonNumericCharsAndTruncate\n * @description removes non-numeric chars and optionally truncates\n * the string based on the provided `maxLen` param\n * @param {string} str\n * @param {number} maxLen\n * @returns {string}\n */\nvar removeNonNumericCharsAndTruncate = exports.removeNonNumericCharsAndTruncate = function removeNonNumericCharsAndTruncate(str, maxLen) {\n if (typeof str !== 'string') {\n return '';\n }\n\n var replacedStr = str.replace(/[^0-9]+/g, '');\n\n return maxLen ? replacedStr.slice(0, maxLen) : replacedStr;\n};\n\n_squid.$config;\n\n_squid.$locale;\n\n_squid.$util;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-wallet-components/src/add-card/cvv/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.$xoCvvDirective = undefined;\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _cardMetaData = __webpack_require__(\"../node_modules/xo-wallet-components/src/add-card/cardMetaData/index.js\");\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/floating-label/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/directionality/directive.js\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-wallet-components/src/add-card/cvv/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar $xoCvvDirective = exports.$xoCvvDirective = _squid.$Component.extend('$xoCvvDirective', {\n tag: 'xo-cvv',\n template: _template2['default'],\n\n props: {\n card: {\n type: 'var',\n required: false\n },\n showLabel: {\n type: 'var',\n required: false\n }\n },\n\n lifecycle: {\n enter: function enter() {\n var _this = this;\n\n this.focusAndBlurHandler = function ($event) {\n _logger.$logger.info('credit_card_cvv_' + $event.type + '_event');\n };\n this.maskCVV = (0, _squid.$feature)('maskCVV', false, _squid.$locale.country);\n this.cvvLength = function () {\n // passing country to differentiate CUP for C2 and ROW\n return _cardMetaData.$CardMetaData.getMetaData(_this.props.card, 'length.cvv', _squid.$locale.country);\n };\n this.cvvRequired = function () {\n return _this.props.card.type !== 'MAESTRO' || (0, _squid.$feature)('maestroCvvRequired', false, _squid.$locale.country);\n };\n }\n }\n});\n\nangular.value(\"$xoCvvDirective\", $xoCvvDirective);\n_squid.$Component;\n\n_squid.$locale;\n\n_squid.$feature;\n\n_cardMetaData.$CardMetaData;\n\n_logger.$logger;\n\n/***/ }),\n\n/***/ \"../node_modules/xo-wallet-components/src/add-card/cvv/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
      \\n
      \\n \\n\\n \\n \\n \\n \\n
      \\n
      \\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-wallet-components/src/add-card/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/angular/angular.min.js\"), __webpack_require__(\"../node_modules/squid/dist/index.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!../node_modules/xo-wallet-components/src/add-card/template.html\"), __webpack_require__(\"../node_modules/xo-models/src/checkout/index.js\"), __webpack_require__(\"../node_modules/xo-models/src/fi/index.js\"), __webpack_require__(\"../node_modules/xo-models/src/address/index.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (angular, squid, template) {\n\n return squid.module('xo-add-card.directive', ['squid', 'xomodel.checkout', 'xomodel.fi', 'xomodel.address']).directive('xoAddCardFlow', [function () {\n return {\n template: template,\n\n scope: {\n token: '=?',\n parentCallbacks: '=?',\n message: '=?',\n pagetitle: '=?',\n sidebar: '=?',\n showmeftsection: '=?',\n hideparenthead: '=?',\n promotion: '=?',\n pageLevel: '=?',\n logout: '=?',\n phone: '=?',\n fundingid: '=?',\n onSuccess: '=?',\n backUri: '=?'\n },\n\n controller: ['$scope', '$state', '$populate', '$AddCardModel', '$CardModel', '$CheckoutSessionModel', '$PrefillAddressModel', '$util', '$renderContent', function ($scope, $state, $populate, $AddCardModel, $CardModel, $CheckoutSessionModel, $PrefillAddressModel, $util, $renderContent) {\n\n $scope.addCCDone = function () {\n $scope.parentCallbacks.finish();\n };\n\n $scope.callbacks = {\n done: function done() {\n $scope.parentCallbacks.finish();\n },\n\n showCep: function showCep() {\n $scope.prefillAddress = new $PrefillAddressModel({\n id: $scope.token\n });\n\n $state.go('^.addCep');\n },\n\n cardTypeSelected: function cardTypeSelected(type) {\n $scope.selectedPromotionCardType = {\n type: type\n };\n $state.go('^.addCard');\n }\n };\n\n $scope.cepDone = function () {\n $state.go('^.addBilling');\n };\n\n $scope.selectedPromotionCardType = {\n type: $scope.promotion && $scope.promotion.type\n };\n\n if ($scope.promotion) {\n $scope.promotion.type = null;\n }\n\n $scope.billingaddressupdated = {\n value: false\n };\n\n $scope.phone = {\n hide_type: true\n };\n\n $scope.cardmodel = new $AddCardModel({\n card: new $CardModel()\n });\n\n $populate($scope, {\n checkoutSession: $CheckoutSessionModel.instance($scope.token).retrieve({\n contingencies: {\n NEED_CREDIT_CARD: angular.noop,\n EXPIRED_CREDIT_CARD: angular.noop\n }\n })\n }).then(function () {\n\n if ($scope.checkoutSession.errorData && $scope.checkoutSession.errorData.resolution) {\n var card = $scope.checkoutSession.errorData.resolution.data;\n\n if (card.fundingId && card.fi && card.fi.type) {\n $scope.cardmodel.id = card.fundingId;\n $scope.cardmodel.card = new $CardModel({\n number: 'xxxx-xxxx-xxxx-' + card.fi.number,\n type: card.fi.type.toUpperCase(),\n productType: card.fi.productType\n });\n }\n }\n if ($scope.fundingid) {\n var fundingSource = $util.find($scope.checkoutSession.fundingOptions.instruments, function (funding) {\n if (funding && funding.id === $scope.fundingid) {\n return funding;\n }\n });\n\n if (fundingSource) {\n $scope.cardmodel.id = fundingSource.id;\n $scope.cardmodel.card = new $CardModel({\n number: 'xxxx-xxxx-xxxx-' + fundingSource.lastDigits,\n lastDigits: fundingSource.lastDigits,\n type: fundingSource.name,\n name: $renderContent('fsMappings.' + fundingSource.name)\n });\n }\n }\n });\n }]\n };\n }]);\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n/***/ }),\n\n/***/ \"../node_modules/xo-wallet-components/src/add-card/dob/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-wallet-components/src/add-card/dob/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/dropdown/directive.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _squid.$Component.extend('$xoDobCardInputDirective', {\n tag: 'xo-dob-card-input',\n template: _template2['default'],\n\n props: {\n user: {\n type: 'var',\n required: false\n }\n },\n\n lifecycle: {\n enter: function enter() {\n function pad() {\n var length = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 2;\n\n return function (num) {\n return (new Array(length + 1).join('0') + num).substr(-length);\n };\n }\n\n var year = new Date().getFullYear();\n\n this.days = _squid.$util.map(_squid.$util.range(1, 32), pad());\n this.months = _squid.$util.map(_squid.$util.range(1, 13), pad());\n this.years = _squid.$util.map(_squid.$util.range(year - 100, year), pad(4)).reverse();\n }\n }\n});\n\n\n_squid.$Component;\n\n_squid.$util;\nmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ \"../node_modules/xo-wallet-components/src/add-card/dob/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
      \\n \\n\\n
      \\n \\n
      \\n\\n
      \\n \\n
      \\n\\n
      \\n \\n
      \\n
      \\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-wallet-components/src/add-card/index.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _directive = __webpack_require__(\"../node_modules/xo-wallet-components/src/add-card/cardExpiry/directive.js\");\n\nObject.keys(_directive).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _directive[key];\n }\n });\n});\n\nvar _cardMetaData = __webpack_require__(\"../node_modules/xo-wallet-components/src/add-card/cardMetaData/index.js\");\n\nObject.keys(_cardMetaData).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _cardMetaData[key];\n }\n });\n});\n\nvar _directive2 = __webpack_require__(\"../node_modules/xo-wallet-components/src/add-card/cvv/directive.js\");\n\nObject.keys(_directive2).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _directive2[key];\n }\n });\n});\n\n/***/ }),\n\n/***/ \"../node_modules/xo-wallet-components/src/add-card/route.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(module, __dirname, __filename) {var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/squid/dist/index.js\"), __webpack_require__(\"../node_modules/xo-wallet-components/src/add-card/directive.js\"), __webpack_require__(\"../node_modules/xo-wallet-components/src/add-card/addcard/route.js\"), __webpack_require__(\"../node_modules/xo-wallet-components/src/add-card/selectcard/route.js\"), __webpack_require__(\"../node_modules/xo-wallet-components/src/add-card/addbilling/route.js\"), __webpack_require__(\"../node_modules/xo-wallet-components/src/add-card/addCep/route.js\"), __webpack_require__(\"../node_modules/xo-wallet-components/src/confirm-upop/route.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (squid) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n squid.module('xo-add-card.route', ['squid', 'xo-add-card.directive', 'xo-add-card.addcard.route', 'xo-add-card.selectcard.route', 'xo-add-card.addbilling.route', 'xo-add-card.addcep.route', 'xo-confirm-upop.route']).factory('$AddCardFlowRoute', ['$ComponentRoute', function ($ComponentRoute) {\n\n return $ComponentRoute.extend('CardRoute', {\n\n name: 'addCardFlow',\n directive: 'xo-add-card-flow',\n titleContent: 'asideHeader.addCard',\n children: [{\n name: '$AddCardRoute',\n attributes: {\n token: 'token',\n cardmodel: 'cardmodel',\n done: 'addCCDone',\n message: 'message',\n pagetitle: 'pagetitle',\n sidebar: 'sidebar',\n showmeftsection: 'showmeftsection',\n hideparenthead: 'hideparenthead',\n billingaddressupdated: 'billingaddressupdated',\n isupdatecard: 'isupdatecard',\n 'parent-callbacks': 'callbacks',\n 'selected-promotion-card-type': 'selectedPromotionCardType',\n promotion: 'promotion',\n 'page-level': 'pageLevel',\n logout: 'logout',\n phone: 'phone',\n 'on-success': 'onSuccess',\n 'back-uri': 'backUri'\n }\n\n }, {\n name: '$SelectCardRoute',\n attributes: {\n token: 'token',\n 'parent-callbacks': 'callbacks',\n message: 'message',\n pagetitle: 'pagetitle',\n sidebar: 'sidebar',\n 'selected-promotion-card-type': 'selectedPromotionCardType',\n promotion: 'promotion'\n }\n }, {\n name: '$AddBillingRoute',\n attributes: {\n token: 'token',\n sidebar: 'sidebar',\n showmeftsection: 'showmeftsection',\n 'parent-callbacks': 'callbacks',\n hideparenthead: 'hideparenthead',\n billingaddressupdated: 'billingaddressupdated',\n 'prefill-address': 'prefillAddress'\n }\n }, {\n name: '$AddCepRoute',\n attributes: {\n token: 'token',\n sidebar: 'sidebar',\n 'done-fn': 'cepDone',\n 'prefill-address': 'prefillAddress'\n }\n }]\n });\n }]);\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/webpack/buildin/module.js\")(module), \"../node_modules/xo-wallet-components/src/add-card\", \"../node_modules/xo-wallet-components/src/add-card/route.js\"))\n\n/***/ }),\n\n/***/ \"../node_modules/xo-wallet-components/src/add-card/selectcard/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/angular/angular.min.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!../node_modules/xo-wallet-components/src/add-card/selectcard/template.html\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (angular, template) {\n\n return angular.module('xo-add-card.selectcard.directive', []).directive('xoSelectCard', [function () {\n\n return {\n template: template,\n\n scope: {\n parentCallbacks: '=?',\n token: '=?',\n promotion: '=?'\n },\n\n controller: ['$scope', '$populate', '$CheckoutSessionModel', function ($scope, $populate, $CheckoutSessionModel) {\n\n $populate($scope, {\n checkoutSession: $CheckoutSessionModel.instance($scope.token)\n }).then(function () {\n $scope.selectCardType = function (type) {\n // card type is either 'cc' or 'plcc'\n $scope.parentCallbacks.cardTypeSelected(type);\n };\n });\n }]\n };\n }]);\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n/***/ }),\n\n/***/ \"../node_modules/xo-wallet-components/src/add-card/selectcard/route.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(module, __dirname, __filename) {var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/angular/angular.min.js\"), __webpack_require__(\"../node_modules/xo-wallet-components/src/add-card/selectcard/directive.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (angular) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n angular.module('xo-add-card.selectcard.route', ['xo-add-card.selectcard.directive']).factory('$SelectCardRoute', ['$ComponentRoute', function ($ComponentRoute) {\n\n return $ComponentRoute.extend('SelectCardRoute', {\n\n name: 'selectCard',\n directive: 'xo-select-card',\n titleContent: 'asideHeader.selectCard',\n children: []\n });\n }]);\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/webpack/buildin/module.js\")(module), \"../node_modules/xo-wallet-components/src/add-card/selectcard\", \"../node_modules/xo-wallet-components/src/add-card/selectcard/route.js\"))\n\n/***/ }),\n\n/***/ \"../node_modules/xo-wallet-components/src/confirm-upop/confirm/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function($) {\n\nexports.__esModule = true;\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _angular2 = _interopRequireDefault(_angular);\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _util = __webpack_require__(\"../node_modules/xo-wallet-components/src/fi-contingency-list/util.js\");\n\nvar _index = __webpack_require__(\"../node_modules/xo-models/src/fi/index.js\");\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/spinner-button/directive.js\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-wallet-components/src/confirm-upop/confirm/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar VERIFICATION_CODE_COUNTDOWN_IN_SECS = 180; // 3 minutes\nvar RESEND_CODE_LINK_TIMEOUT_MILLI_SECS = 60000; // 1 minute\nvar ONE_MINUTE_IN_SECS = 60;\n\nexports['default'] = _squid.$Component.extend('$xoConfirmOtpDirective', {\n tag: 'xo-confirm-otp',\n template: _template2['default'],\n\n props: {\n token: {\n type: 'var',\n required: false\n },\n phone: {\n type: 'var',\n required: false\n },\n cardModel: {\n type: 'var',\n required: false\n },\n onSuccess: {\n type: 'var',\n required: false\n },\n message: {\n type: 'var',\n required: false\n },\n buttonTextKey: {\n type: 'var',\n required: false\n }\n },\n actions: {\n addMessage: function addMessage(type, contentKey) {\n if (contentKey) {\n this.message({\n msgKeys: [_angular2['default'].isArray(contentKey) ? contentKey[0] : contentKey],\n type: type || 'error'\n });\n }\n },\n stopConfirmCodeTimer: function stopConfirmCodeTimer() {\n if (this.confirmCodeTimer) {\n _angular.$interval.cancel(this.confirmCodeTimer);\n }\n this.countdown = 0;\n },\n stopResendCodeTimer: function stopResendCodeTimer() {\n if (this.resendCodeTimer) {\n _angular.$timeout.cancel(this.resendCodeTimer);\n }\n this.showResendLink = false;\n },\n updateCountdown: function updateCountdown() {\n if (this.countdown > 0) {\n this.countdown--;\n this.timer = Math.floor(this.countdown / ONE_MINUTE_IN_SECS) + ':' + ('0' + this.countdown % ONE_MINUTE_IN_SECS).slice(-2);\n } else {\n if (!this.isConfirmProcessing) {\n this.actions.addMessage('warning', 'confirmUpop.codeExpired');\n }\n this.actions.stopConfirmCodeTimer();\n this.actions.stopResendCodeTimer();\n }\n },\n startCountdown: function startCountdown(resetTimer) {\n var _this = this;\n\n if (resetTimer) {\n this.actions.stopConfirmCodeTimer();\n this.countdown = VERIFICATION_CODE_COUNTDOWN_IN_SECS;\n this.actions.updateCountdown();\n this.confirmCodeTimer = (0, _angular.$interval)(this.actions.updateCountdown, 1000);\n }\n\n this.actions.stopResendCodeTimer();\n this.showResendLink = false;\n this.resendCodeTimer = (0, _angular.$timeout)(function () {\n _this.showResendLink = true;\n }, RESEND_CODE_LINK_TIMEOUT_MILLI_SECS);\n this.actions.addMessage('success', 'confirmUpop.codeSent');\n },\n processed: function processed() {\n if (!this.countdown && this.isConfirmProcessing) {\n this.actions.addMessage('warning', 'confirmUpop.codeExpired');\n }\n this.isProcessing = this.isConfirmProcessing = false;\n },\n handleContingencies: function handleContingencies() {\n var result = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var prop = arguments[1];\n\n var errorData = void 0;\n\n if (result.errorCodes) {\n errorData = result;\n } else {\n errorData = {\n errorCodes: [result['0'] || 'ISSUER_DECLINE']\n };\n }\n\n this.message(_util.$fiErrorUtil.addPageErrors(errorData, 'confirmUpop', prop, 'error'));\n\n if (window.scrollTo) {\n window.scrollTo(0, 0);\n }\n },\n sendNewCode: function sendNewCode() {\n // reset the code field.\n if (this.cardModel) {\n this.cardModel.otp_code = '';\n }\n this.actions.resendCode(true);\n },\n resendCode: function resendCode(resetTimer) {\n var _this2 = this;\n\n this.isProcessing = true;\n\n this.resolveOTP.action('init', {\n silent: true,\n data: {\n phone: {\n country_code: this.phone.IntDialingCountryCode,\n number: this.phone.telephone\n }\n },\n resultModel: {},\n success: function success() {\n _this2.actions.startCountdown(resetTimer);\n },\n\n error: function error() {\n _this2.actions.handleContingencies();\n },\n\n contingencies: {\n INIT_OTP_CONTINGENCY: function INIT_OTP_CONTINGENCY(name, result) {\n // prop for last 4 digits of card in error message\n var prop = {\n number: _this2.cardLast4\n };\n\n _this2.actions.handleContingencies(result, prop);\n _util.$fiErrorUtil.addFieldErrors(result, _this2.$element);\n },\n DEFAULT: function DEFAULT() {\n _this2.actions.handleContingencies();\n }\n }\n })['finally'](this.actions.processed);\n },\n confirmOTP: function confirmOTP() {\n var _this3 = this;\n\n this.isProcessing = this.isConfirmProcessing = true;\n\n this.resolveOTP.action('complete', {\n silent: true,\n data: {\n code: this.cardModel.otp_code,\n phone: {\n country_code: this.phone.IntDialingCountryCode,\n number: this.phone.telephone\n },\n card_data: {\n expiration_time: {\n month: this.cardModel.expiry_month,\n year: this.cardModel.expiry_year\n },\n card_verification_code: this.cardModel.security_code\n }\n },\n\n success: this.onSuccess,\n\n error: function error() {\n _this3.actions.handleContingencies({}, 'confirmUpop');\n _this3.actions.processed();\n },\n\n contingencies: {\n COMPLETE_OTP_CONTINGENCY: function COMPLETE_OTP_CONTINGENCY(name, result) {\n // prop for last 4 digits of card in error message\n var prop = {\n number: _this3.cardLast4\n };\n\n _this3.actions.handleContingencies(result, prop);\n _util.$fiErrorUtil.addFieldErrors(result, _this3.$element);\n _this3.actions.processed();\n }\n }\n })['catch'](function () {\n _this3.actions.handleContingencies();\n _this3.actions.processed();\n });\n }\n },\n lifecycle: {\n enter: function enter() {\n var _this4 = this;\n\n this.resolveOTP = new _index.$ResolveOTP({ id: this.cardModel.id });\n this.isProcessing = this.showResendLink = false;\n this.cardLast4 = this.cardModel.last4();\n this.phoneLast4 = this.phone && this.phone.telephone && this.phone.telephone.slice(-4);\n this.actions.startCountdown(true);\n\n if (!this.buttonTextKey) {\n this.buttonTextKey = 'common.confirm';\n }\n\n this.$watch('isProcessing', function (isProcessing) {\n if (isProcessing) {\n _this4.$element.addClass('processing');\n } else {\n _this4.$element.removeClass('processing');\n }\n });\n $('#upopConfirmation .modalContainer').focus();\n }\n }\n});\n\n\n_angular.$interval;\n\n_angular.$timeout;\n\n_squid.$Component;\n\n_util.$fiErrorUtil;\n\n_index.$ResolveOTP;\nmodule.exports = exports['default'];\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/jquery/dist/jquery.min.js\")))\n\n/***/ }),\n\n/***/ \"../node_modules/xo-wallet-components/src/confirm-upop/confirm/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
      \\n
      \\n\\n
      \\n {{content('confirmUpop.timeRemaining')}}\\n {{timer}} {{content('confirmUpop.minutes')}}\\n {{content('confirmUpop.resendCode')}}\\n
      \\n\\n \\n\\n
      \\n
      \\n \\n\\n
      \\n \\n
      \\n \\n
      \\n \\n
      \\n
      \\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-wallet-components/src/confirm-upop/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _uiRouter = __webpack_require__(\"../node_modules/angular-ui-router/release/angular-ui-router.min.js\");\n\nvar _addCard = __webpack_require__(\"../node_modules/xo-wallet-components/src/add-card/index.js\");\n\nvar _util = __webpack_require__(\"../node_modules/xo-wallet-components/src/fi-contingency-list/util.js\");\n\nvar _jquery = __webpack_require__(\"../node_modules/jquery/dist/jquery.min.js\");\n\nvar _jquery2 = _interopRequireDefault(_jquery);\n\n__webpack_require__(\"../node_modules/xo-wallet-components/src/confirm-upop/init/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-wallet-components/src/confirm-upop/confirm/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-wallet-components/src/confirm-upop/styles.less\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-wallet-components/src/confirm-upop/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\nvar _index = __webpack_require__(\"../node_modules/xo-models/src/checkout/index.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _squid.$Component.extend('$xoConfirmUpopDirective', {\n tag: 'xo-confirm-upop',\n template: _template2['default'],\n\n props: {\n token: {\n type: 'var',\n required: false\n },\n phone: {\n type: 'var',\n required: false\n },\n cardModel: {\n type: 'var',\n required: false\n },\n onSuccess: {\n type: 'var',\n required: false\n },\n onCancel: {\n type: 'var',\n required: false\n },\n buttonTextKey: {\n type: 'var',\n required: false\n },\n onInitError: {\n type: 'var',\n required: false\n }\n },\n\n actions: {\n initSuccess: function initSuccess() {\n this.showCollectOtpScreen = true;\n }\n },\n\n lifecycle: {\n enter: function enter() {\n var _this = this;\n\n this.phone = this.props.phone || {};\n this.cardLast4 = this.cardModel.last4();\n\n // Set only from Login page\n this.fromLoginOverlay = _uiRouter.$stateParams.fromLoginOverlay;\n\n (0, _angular.$timeout)(function () {\n (0, _jquery2['default'])('#upopConfirmation .upopConfirm').addClass('upopOpen');\n if (_this.fromLoginOverlay) {\n (0, _angular.$timeout)(function () {\n (0, _jquery2['default'])('#upopConfirmation .modalWrapper').addClass('modalWrapperAnimation');\n });\n }\n });\n\n var hideModal = function hideModal() {\n (0, _jquery2['default'])('#upopConfirmation .upopConfirm').removeClass('upopOpen');\n };\n\n var done = function done(handler, target, errorData) {\n hideModal();\n (0, _angular.$timeout)(function () {\n return handler ? handler(errorData) : _this.goto(target);\n }, 300);\n };\n\n var _success = function _success() {\n done(_this.props.onSuccess, 'checkout.review');\n };\n\n this.closeModal = function (event) {\n if (event) {\n event.preventDefault();\n }\n\n done(_this.props.onCancel, '^');\n };\n\n this.confirmed = function () {\n if (_this.props.onSuccess) {\n // Make sure Guest/Signup always passes the onSuccess callback method.\n return _success();\n }\n\n // Update is only applicable for Hermes Member flow.\n var checkoutSession = _index.$CheckoutSessionModel.instance(_this.token);\n\n checkoutSession.fundingOptions.action('update', {\n resultModel: checkoutSession,\n silent: true,\n data: {\n planId: _this.cardModel.id\n },\n success: function success() {\n if (checkoutSession.cvvData) {\n checkoutSession.set('cvvData.security_code', _this.cardModel.security_code);\n }\n var isNewCard = !_this.cardModel.isExisting();\n\n var msg = isNewCard ? ['smallToolTip.cardAddedConfirmed'] : ['smallToolTip.cardConfirmed'];\n\n checkoutSession.message = {\n type: 'success',\n msgKeys: msg\n };\n\n _success();\n },\n contingencies: {\n TRANSACTION_REFUSED: function TRANSACTION_REFUSED(name) {\n checkoutSession.message = {\n type: 'info',\n msgKeys: 'creditcard.addedButCannotUse'\n };\n\n _success();\n }\n }\n });\n };\n\n this.flag = function (field) {\n // passing country to differentiate CUP for C2 and ROW\n return _addCard.$CardMetaData.getMetaData(_this.cardModel, field, _squid.$locale.country);\n };\n\n this.setMessage = function (message) {\n _this.message = message;\n };\n\n this.setInitErrorData = function (errorData) {\n if (_this.props.onInitError) {\n // Pass on the errorData to onInitError callback function for client specific content adaptation.\n done(_this.props.onInitError, '^', errorData);\n } else {\n\n // prop for last 4 digits of card in error message\n var prop = {\n number: _this.cardModel.last4()\n };\n\n // Build the content message from errorData\n _this.setMessage(_util.$fiErrorUtil.addPageErrors(errorData, 'confirmUpop', prop, 'error'));\n }\n };\n }\n }\n});\n\n\n_angular.$timeout;\n\n_squid.$Component;\n\n_squid.$locale;\n\n_uiRouter.$stateParams;\n\n_addCard.$CardMetaData;\n\n_util.$fiErrorUtil;\n\n_index.$CheckoutSessionModel;\nmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ \"../node_modules/xo-wallet-components/src/confirm-upop/init/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function($) {\n\nexports.__esModule = true;\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _util = __webpack_require__(\"../node_modules/xo-wallet-components/src/fi-contingency-list/util.js\");\n\nvar _index = __webpack_require__(\"../node_modules/xo-models/src/fi/index.js\");\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/spinner-button/directive.js\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-wallet-components/src/confirm-upop/init/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _squid.$Component.extend('$xoInitOtpDirective', {\n tag: 'xo-init-otp',\n template: _template2['default'],\n\n props: {\n token: {\n type: 'var',\n required: false\n },\n phone: {\n type: 'var',\n required: false\n },\n cardModel: {\n type: 'var',\n required: false\n },\n onSuccess: {\n type: 'var',\n required: false\n },\n flag: {\n type: 'var',\n required: false\n },\n setErrorData: {\n type: 'var',\n required: false\n }\n },\n\n actions: {\n initOtp: function initOtp() {\n var _this = this;\n\n var handleContingencies = function handleContingencies() {\n var result = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var prop = arguments[1];\n\n var errorData = void 0;\n\n if (result.errorCodes) {\n errorData = result;\n } else {\n errorData = {\n errorCodes: [result['0'] || 'ISSUER_DECLINE']\n };\n }\n\n _this.setErrorData(errorData);\n\n if (window.scrollTo) {\n window.scrollTo(0, 0);\n }\n };\n\n this.isProcessing = true;\n\n var resolveOTP = new _index.$ResolveOTP({ id: this.cardModel.id });\n\n resolveOTP.action('init', {\n data: {\n phone: {\n country_code: this.phone.IntDialingCountryCode,\n number: this.phone.telephone\n }\n },\n resultModel: {},\n success: function success() {\n _this.onSuccess();\n },\n\n error: function error() {\n handleContingencies();\n },\n\n contingencies: {\n INIT_OTP_CONTINGENCY: function INIT_OTP_CONTINGENCY(name, result) {\n\n handleContingencies(result);\n _util.$fiErrorUtil.addFieldErrors(result, _this.$element);\n },\n DEFAULT: function DEFAULT() {\n handleContingencies();\n }\n }\n })['finally'](function () {\n _this.isProcessing = false;\n });\n }\n },\n\n lifecycle: {\n enter: function enter() {\n var _this2 = this;\n\n this.$watch('isProcessing', function (isProcessing) {\n if (isProcessing) {\n _this2.$element.addClass('processing');\n } else {\n _this2.$element.removeClass('processing');\n }\n });\n\n if (this.flag('fields.expiry') && !this.cardModel.get('expiry_month') || this.flag('fields.cvv') && !this.cardModel.get('security_code') || this.flag('fields.phone') && !(this.phone && this.phone.telephone)) {\n\n this.showInitScreen = true;\n } else {\n this.actions.initOtp();\n }\n\n $('#upopConfirmation .modalContainer').focus();\n }\n }\n});\n\n\n_squid.$Component;\n\n_util.$fiErrorUtil;\n\n_index.$ResolveOTP;\nmodule.exports = exports['default'];\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/jquery/dist/jquery.min.js\")))\n\n/***/ }),\n\n/***/ \"../node_modules/xo-wallet-components/src/confirm-upop/init/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
      \\n
      \\n\\n
      \\n
      \\n \\n \\n
      \\n \\n\\n \\n
      \\n
      \\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-wallet-components/src/confirm-upop/route.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _index = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _directive = __webpack_require__(\"../node_modules/xo-wallet-components/src/confirm-upop/directive.js\");\n\nvar _directive2 = _interopRequireDefault(_directive);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _index.$Route.extend('$xoConfirmUpopRoute', {\n path: 'confirmUpop',\n directive: _directive2['default'],\n titleContent: 'confirmUpop.confirm',\n trackingData: {\n fptiState: 'confirm_upop'\n },\n query: ['fromLoginOverlay'],\n loginRequired: true,\n pageOnOverlay: true,\n children: []\n});\n\n\n_index.$Route;\nmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ \"../node_modules/xo-wallet-components/src/confirm-upop/styles.less\":\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ \"../node_modules/xo-wallet-components/src/confirm-upop/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
      \\n
      \\n
      \\n
      \\n
      \\n \\n \\n
      \\n\\n \\n \\n
      \\n
      \\n
      \\n
      \\n
      \\n
      \\n
      \\n
      \\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-wallet-components/src/currency-conversion-options/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _checkout = __webpack_require__(\"../node_modules/xo-models/src/checkout/index.js\");\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-wallet-components/src/currency-conversion-options/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _squid.$Component.extend('$xoCurrencyConversionOptions', {\n tag: 'xo-currency-conversion-options',\n\n template: _template2['default'],\n\n props: {\n card: {\n type: 'var',\n required: false\n },\n token: {\n type: 'var',\n required: false\n },\n treatment: {\n type: 'var',\n required: false\n },\n isPrePlan: {\n type: 'str',\n required: false\n },\n updateConversionSelection: {\n type: 'var',\n required: false\n },\n openModal: {\n type: 'var',\n required: false\n }\n },\n\n resolve: {\n models: function models() {\n var modelsObj = {\n checkoutCart: _checkout.$CheckoutCartModel.instance(this.props.token).retrieve()\n };\n\n if (!this.isPrePlan) {\n modelsObj.checkoutSession = _checkout.$CheckoutSessionModel.instance(this.props.token).retrieve();\n }\n\n return modelsObj;\n }\n },\n\n actions: {\n onConversionOptionChange: function onConversionOptionChange() {\n if (this.isPrePlan) {\n this.card.ppconversion = this.models.ppconversion;\n } else {\n // For post-plan conversion we need to update the chosen conversion\n // selection in the guest currency conversion interstitial component\n this.updateConversionSelection(this.models.ppconversion);\n }\n\n /**\n * FPTI event #4 for Buyer FX guest experience\n * https://engineering.paypalcorp.com/confluence/display/EDS/Buyer+FX+Instrumentation+Specs\n */\n var planType = this.isPrePlan ? 'pre' : 'post';\n\n _logger.$logger.info('checkout_fpti', {\n from: 'CURRENCY_CONVERSION',\n to: 'changed_currency_conversion_' + planType + '_plan',\n currency_conversion_selected: this.models.ppconversion,\n currency_conversion_from_curr: this.conversion.from_code,\n currency_conversion_to_curr: this.conversion.to_code,\n currency_conversion_spread: this.conversion.spread\n });\n\n this.conversionIsPayPal = this.models.ppconversion === this.conversionOptions.PAYPAL;\n }\n },\n\n lifecycle: {\n enter: function enter() {\n this.conversionOptions = _squid.$config.currencyConversion.options;\n this.isPrePlan = this.props.isPrePlan === 'true';\n var _props$treatment = this.props.treatment,\n treatment = _props$treatment === undefined ? '' : _props$treatment;\n\n\n this.isTreatment1 = treatment.includes('treatment_1');\n this.conversionIsPayPal = true;\n },\n populate: function populate() {\n this.models.ppconversion = this.conversionOptions.PAYPAL;\n\n /**\n * In the pre-plan case the conversion data will be located at\n * this.card.currencyConvData, whereas in the post-plan caes it\n * will be located at this.models.checkoutSession.plan.converison\n */\n var modelWithConversion = this.isPrePlan ? this.card : this.models.checkoutSession;\n var conversionKey = this.isPrePlan ? 'currencyConvData' : 'plan.conversion';\n\n this.conversion = modelWithConversion.get(conversionKey);\n\n var _models$checkoutCart$ = this.models.checkoutCart.get('grossTotalAmount', {}),\n toValue = _models$checkoutCart$.value,\n toCurrency = _models$checkoutCart$.currency;\n\n var _conversion = this.conversion,\n fullString = _conversion.to,\n amount = _conversion.to_amount,\n amountForex = _conversion.to_amount_forex,\n fromCurrency = _conversion.from_code;\n\n var formattedToStr = (0, _squid.truncateCurrencyConversionString)({\n fullString: fullString,\n amount: amount,\n amountForex: amountForex\n });\n\n this.paypalRate = '1 ' + fromCurrency + ' = ' + formattedToStr;\n this.spread = this.conversion.spread;\n\n // Get formatted currency amounts to display\n var paypalTotalPath = this.isPrePlan ? 'currencyConvData.payment_amt.value' : 'plan.sources.0.amount.amount_formatted_currency';\n\n this.paypalConversionTotal = this.isPrePlan ? (0, _squid.formatCurrency)(this.card.get(paypalTotalPath), fromCurrency, false) : this.models.checkoutSession.get(paypalTotalPath);\n this.issuerConversionTotal = (0, _squid.formatCurrency)(toValue, toCurrency, false);\n\n // Currency codes are used as labels for treatment 2\n this.toCurrency = toCurrency;\n this.fromCurrency = fromCurrency;\n\n // New Zealand departed from the other non-localized APAC countries and is not\n // showing the PayPal rate disclosure but instead is showing the spread disclosure\n this.showRateDisclosure = _squid.$locale.country !== 'NZ';\n this.showBRDisclosure = _squid.$locale.country === 'BR';\n var _$config$AMLRuleCount = _squid.$config.AMLRuleCountries,\n AMLRuleCountries = _$config$AMLRuleCount === undefined ? [] : _$config$AMLRuleCount;\n\n\n this.showAMLDisclosure = AMLRuleCountries.includes(_squid.$locale.country);\n\n // When the pre-plan API fails we show the conversion options\n // in an interstitial after the user submits the form.\n if (!this.isPrePlan && typeof this.openModal === 'function') {\n // eslint-disable-line angular/typecheck-function\n this.openModal();\n }\n }\n }\n});\n\n\n_squid.$Component;\n\n_squid.$locale;\n\n_squid.formatCurrency;\n\n_squid.$config;\n\n_squid.truncateCurrencyConversionString;\n\n_checkout.$CheckoutCartModel;\n\n_checkout.$CheckoutSessionModel;\n\n_logger.$logger;\nmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ \"../node_modules/xo-wallet-components/src/currency-conversion-options/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
      \\n
        \\n \\n
      • \\n \\n \\n
      • \\n\\n \\n
      • \\n \\n \\n
      • \\n
      \\n\\n
      \\n \\n
      \\n {{ content('currencyOptions.bfxConversionPayPalTotal') }}\\n
      \\n
      \\n {{ paypalConversionTotal }}\\n
      \\n\\n \\n
      \\n {{ content('currencyOptions.bfxConversionIssuerTotal') }}\\n
      \\n
      \\n {{ issuerConversionTotal }}\\n
      \\n
      \\n\\n
        \\n \\n
      • \\n {{ content('currencyOptions.bfxConversionPayPalRate') }} {{ paypalRate }}\\n
      • \\n
      • \\n {{ content('currencyOptions.bfxConversionPayPalSpreadDisclosureGuest', { spread: spread }) }}\\n
      • \\n
      • \\n {{ content('currencyOptions.bfxConversionPayPalRateDisclosure') }}\\n
      • \\n
      • \\n {{ content('currencyOptions.bfxConversionAMLRulesDisclosure') }}\\n
      • \\n\\n \\n
      • \\n {{ content('currencyOptions.bfxConversionIssuerDisclosure') }}\\n
      • \\n\\n \\n
      • \\n {{ content('currencyOptions.bfxConversionBRIOFRateDisclosure') }}\\n
      • \\n
      \\n
      \\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-wallet-components/src/fi-contingency-list/contingencies.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {\n\n // When adding a key, please keep list in alphabetical order\n var contingencyList = {\n ACCOUNT_RESTRICTED: ['errorAccountRestricted', 'errorGeneral'],\n ADD_REFUSED_DUE_TO_EXCEEDING_MAX_DUPLICATE_INSTRUMENT_LIMIT: 'errorInstrumentUnavailable',\n ADDRESS_MISMATCH: 'errorInstrumentBillingAddressNotMatch',\n BANK_ACCOUNT_NUMBER_IS_EMPTY: 'invalidPINumber',\n BANK_ADDRESS_IS_EMPTY: 'errorGeneral',\n BANK_ROUTING_NUMBER_IS_EMPTY: 'invalidPINumber',\n BILL_ADDR_NOT_ALLOWED: ['errorInstrumentBillingAddressNotAccepted', 'errorAddressNotAllowed'],\n BILL_ADDR_UNAVAILABLE: ['errorInstrumentBillingAddressUnavailable', 'errorInstrumentBillingAddressNotAccepted'],\n BILL_ADDR_UNAVAILABLE_GLOBAL: ['errorInstrumentBillingAddressUnavailableIntl', 'errorInstrumentBillingAddressNotAccepted'],\n BILL_ADDR_UNAVAILABLE_INTL: ['errorInstrumentBillingAddressUnavailableIntl', 'errorInstrumentBillingAddressNotAccepted'],\n BILL_ADDR_UNSUPPORTED: ['errorInstrumentBillingAddressUnsupported', 'errorInstrumentBillingAddressNotAccepted'],\n BILLING_ADDRESS1: 'errorInstrumentBillingAddressNotAccepted',\n BILLING_CITY: 'errorInstrumentBillingAddressNotAccepted',\n BILLING_COUNTRY: 'errorInstrumentBillingAddressNotAccepted',\n BILLING_DIFFERENT_COUNTRY: ['errorInstrumentBillingAddressUnavailableIntl', 'errorInstrumentBillingAddressNotAccepted'],\n CARD_NOT_ACTIVATED_FOR_UPOP: 'cardNotActivatedUpop',\n CC_INVALID_CSC: ['errorCheckDigits', 'errorGeneral'],\n CHECK_DIGITS_NOT_PRESENT: ['errorCheckDigitsNotPresent', 'errorGeneral'],\n CHECK_DIGITS_NOT_PROC: ['errorCheckDigitsNotPresent', 'errorGeneral'],\n CHECK_DIGITS_UNAVAILABLE: ['errorCheckDigits', 'errorGeneral'],\n CHECK_DIGITS_UNSUPPORTED: ['errorCheckDigits', 'errorGeneral'],\n CONFIRMATION_RESEND_COUNT_EXCEEDED: 'resendValExceeded',\n CONTACT_CARD_ISSUER_TO_VERIFY: 'issuerVerify',\n COUNTRY_NOT_SUPPORTED: 'complianceDecline',\n DUPLICATED_TRANSACTION: 'duplicateTransaction',\n EMPTY_DATA: 'errorGeneral',\n EXCESSIVE_REJECTIONS: ['errorExcessiveRejectGuest', 'errorInstrumentRefused'],\n FREQUENT_REQUEST_VERIFICATION_CODE: 'frequentVerificationCodeReq',\n INSTRUMENT_ALREADY_EXISTS: 'errorInstrumentAlreadyExists',\n INSTRUMENT_BILLING_ADDRESS_NOT_ACCEPTED: 'errorInstrumentBillingAddressNotAccepted',\n INSTRUMENT_COUNT_EXCEEDED: 'errorInstrumentCountExceeded',\n INSTRUMENT_COUNT_EXCEEDED_VERIFIED: 'errorInstrumentCountExceeded',\n INSTRUMENT_COUNT_LIMIT_EXCEEDED: 'errorInstrumentCountExceeded',\n INSTRUMENT_COUNT_LIMIT_EXCEEDED_VERIFIED: 'errorInstrumentCountExceeded',\n INSTRUMENT_DISABLED: 'errorInstrumentRefused',\n INSTRUMENT_DUPLICATE_LIMIT_REACHED: 'errorInstrumentRefused',\n INSTRUMENT_INTERNATIONAL: 'errorIssuerRejectIntl',\n INSTRUMENT_REFUSED: 'errorInstrumentRefused',\n INSTRUMENT_REFUSED_DUE_TO_MAX_LIMIT: 'errorInstrumentRefused',\n INSTRUMENT_REFUSED_DUE_TO_MAX_SHARED_INSTRUMENT_LIMIT: ['errorInstrumentUnavailable', 'errorInstrumentRefused'],\n INSTRUMENT_UNAVAILABLE: 'errorInstrumentUnavailable',\n INSTRUMENT_UPDATE_NO_CHANGE: 'errorInstrumentUpdateNoChange',\n INTERNAL_ERROR: 'errorInternalError',\n INVALID_ACCOUNT: ['errorInvalidAccount', 'errorGeneral'],\n INVALID_BANK_ACCOUNT_NUMBER: 'invalidPINumber',\n INVALID_BANK_ADDRESS: 'errorGeneral',\n INVALID_BANK_BENEFICIARY_NUMBER: 'errorGeneral',\n INVALID_BANK_BRANCH_NUMBER: 'errorGeneral',\n INVALID_BANK_IBAN: 'invalidPINumber',\n INVALID_BANK_IBAN_CONVERSION_ERROR: 'invalidPINumber',\n INVALID_BANK_ROUTING_NUMBER: 'invalidRoutingNumber',\n INVALID_BENEFICIARY_FIRST_NAME: 'errorInvalidFirstName',\n INVALID_BENEFICIARY_NAME: 'errorInvalidFirstName',\n INVALID_CARD_NUMBER: 'errorInvalidCCNumberOrType',\n INVALID_CARD_TYPE: 'errorInvalidCCNumberOrType',\n INVALID_DATA: ['errorInvalidData', 'errorGeneral'],\n INVALID_EXPIRATION_DATE: 'errorInvalidExpirationDate',\n INVALID_EXPIRY: 'errorInvalidExpirationDate',\n INVALID_FIRST_NAME: 'errorInvalidFirstName',\n INVALID_IBAN_CODE: 'invalidPINumber',\n INVALID_INSTRUMENT_ID: ['errorInvalidAccount', 'errorGeneral'],\n INVALID_LAST_NAME: 'errorInvalidLastName',\n INVALID_ONE_TIME_PASSWORD: 'errorInvalidOtpCode',\n INVALID_PARAMETERS: ['errorInvalidData', 'errorGeneral'],\n INVALID_PHONE: 'errorInvalidPhone',\n INVALID_SECURITY_CODE: 'errorInvalidCSC',\n ISSUER_DECLINE: 'errorIssuerReject',\n ISSUER_ERROR: ['errorIssuerDenied', 'errorInstrumentRefused'],\n ISSUER_REJECTED: ['errorIssuerReject', 'errorGeneral'],\n ISSUER_RESTRICTED: ['errorIssuerReject', 'errorGeneral'],\n MAX_AMOUNT_EXCEEDED: ['errorMaxAmountExceeded', 'errorInstrumentRefused'],\n MISSING_FIELD: ['errorInvalidData', 'errorGeneral'],\n NOT_CONFIRMED: 'notConfirmed',\n NOT_ELIGIBLE_TO_EDIT_CARD: 'notEligibleToEditCard',\n PAYPAL_CARD_REFUSED: ['errorPaypalRefused', 'errorGeneral'],\n PAYPAL_CREDIT_CARD_REFUSED: ['errorPaypalCreditRefused', 'errorGeneral'],\n PAYPAL_DEBIT_CARD_REFUSED: ['errorPaypalDebitRefused', 'errorGeneral'],\n PI_TYPE_NOT_SUPPORTED: 'errorInvalidCCNumberOrType_global',\n REJECT_AMEX_ADULT: ['errorAmexAdult', 'errorGeneral'],\n REJECT_REFUSED: ['errorIssuerReject', 'errorInstrumentRefused'],\n REJECT_UNKNOWN: ['errorIssuerReject', 'errorInstrumentRefused'],\n RESTRICTED_CARD: 'cardRestricted',\n RESTRICTED_CARD_GUEST: 'cardRestrictedGuest',\n SETTLEMENT_DENIED: 'errorInstrumentRefused',\n TRANSACTION_TIMEOUT: 'transactionTimeout',\n WRONG_CONFIRMATION_VALUES: 'wrongConfirmationValue'\n };\n\n return contingencyList;\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n/***/ }),\n\n/***/ \"../node_modules/xo-wallet-components/src/fi-contingency-list/util.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(module, __dirname, __filename) {var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/jquery/dist/jquery.min.js\"), __webpack_require__(\"../node_modules/angular/angular.min.js\"), __webpack_require__(\"../node_modules/squid/dist/index.js\"), __webpack_require__(\"../node_modules/xo-wallet-components/src/fi-contingency-list/contingencies.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function ($, angular, squid, contingencyList) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n squid.module('fi.errorUtil', ['squid']).factory('$fiErrorUtil', ['$renderContent', function ($renderContent) {\n return {\n addPageErrors: function addPageErrors(errorData, contentBundle, prop, defaultKey) {\n\n // error handling for filifecycle and fimanagement. \n if (!errorData.errorCodes) {\n errorData.errorCodes = errorData && [errorData['0']];\n }\n\n var messages = [];\n\n if (errorData.errorCodes && errorData.errorCodes.length) {\n errorData.errorCodes.forEach(function (errorCode) {\n var contentKey = contingencyList[errorCode] || defaultKey || 'errorGeneral';\n var message;\n\n if (angular.isArray(contentKey)) {\n for (var i = 0; i < contentKey.length; i++) {\n message = $renderContent(contentBundle + '.' + contentKey[i], prop);\n if (message && message.string) {\n break;\n }\n }\n } else {\n message = $renderContent(contentBundle + '.' + contentKey, prop);\n }\n\n messages.push(message);\n });\n\n return {\n msgs: messages,\n type: 'error'\n };\n }\n },\n\n /**\n * Highlight the Error Fields by ng-model\n * @param errorData\n * @param element\n * @param modelPrefix\n */\n addFieldErrors: function addFieldErrors(errorData, element, modelPrefix) {\n\n if (errorData.fields && errorData.fields.length) {\n errorData.fields.forEach(function (field) {\n var $field = $(element).find('[ng-model=\"' + (modelPrefix ? modelPrefix : '') + field.field + '\"]');\n\n $field.addClass('backendError');\n $field.attr('aria-invalid', true);\n });\n }\n $(element).find('.backendError:first').focus();\n },\n\n /**\n * Highlight the Error Fields by element name\n * @param errorData\n * @param element\n * @param modelPrefix\n */\n addFieldErrorsByName: function addFieldErrorsByName(errorData, element, modelPrefix) {\n\n if (errorData.fields && errorData.fields.length) {\n errorData.fields.forEach(function (field) {\n var fieldName = void 0;\n\n if (modelPrefix && field.field && field.field.length > 0) {\n // Add prefix with CamelCase of field name\n fieldName = modelPrefix + field.field[0].toUpperCase() + field.field.substring(1);\n } else {\n fieldName = field.field;\n }\n var $field = $(element).find('[name=\"' + fieldName + '\"]');\n\n $field.addClass('backendError');\n $field.attr('aria-invalid', true);\n });\n }\n $(element).find('.backendError:first').focus();\n }\n };\n }]);\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/webpack/buildin/module.js\")(module), \"../node_modules/xo-wallet-components/src/fi-contingency-list\", \"../node_modules/xo-wallet-components/src/fi-contingency-list/util.js\"))\n\n/***/ }),\n\n/***/ \"../node_modules/xo-wallet-components/src/installment-options/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/squid/dist/index.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!../node_modules/xo-wallet-components/src/installment-options/template.html\"), __webpack_require__(\"../node_modules/xo-models/src/checkout/index.js\"), __webpack_require__(\"../node_modules/xo-models/src/auth/index.js\"), __webpack_require__(\"../node_modules/xo-tray-height/dist/directive.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (squid, template) {\n squid.module('xo-installment-options.directive', ['squid', 'xomodel.checkout', 'xomodel.auth', 'xo-tray-height.directive']).directive('xoInstallmentOptions', [function () {\n return {\n template: template,\n\n scope: {\n token: '=?',\n doneFn: '=?',\n cardNumber: '=?'\n },\n\n controller: ['$AuthModel', '$scope', '$populate', '$CheckoutSessionModel', '$InstallmentOptionsModel', '$CheckoutPayeeModel', '$CheckoutCartModel', '$CheckoutAppDataModel', function ($AuthModel, $scope, $populate, $CheckoutSessionModel, $InstallmentOptionsModel, $CheckoutPayeeModel, $CheckoutCartModel, $CheckoutAppDataModel) {\n\n $populate($scope, {\n auth: $AuthModel.instance($scope.token)\n }).then(function () {\n\n if ($scope.auth.logged_in) {\n\n // Installment support for authenticated user\n $populate($scope, {\n checkoutSession: $CheckoutSessionModel.instance($scope.token)\n }).then(function () {\n $scope.cardInfo = $scope.checkoutSession.plan.sources[0];\n $scope.installments = $scope.checkoutSession.installments;\n });\n } else {\n // Installment support added for not authenticated user, e.g. BR signup flow\n var installmentsModel = $InstallmentOptionsModel.instance($scope.token);\n\n installmentsModel.save({\n data: {\n cc: $scope.cardNumber,\n payee: $CheckoutPayeeModel.instance($scope.token),\n checkoutCart: $CheckoutCartModel.instance($scope.token),\n checkoutAppData: $CheckoutAppDataModel.instance($scope.token)\n },\n\n success: function success(result) {\n $scope.cardInfo = result.cardInfo;\n $scope.installments = result.installment_options;\n }\n });\n }\n });\n\n $scope.onSelect = function (index) {\n var selectedInstallmentData = $scope.installments[index];\n\n $scope.installmentsModel = $InstallmentOptionsModel.instance($scope.token);\n\n var param = {\n term: selectedInstallmentData.term,\n payment_value: selectedInstallmentData.monthly_payment.value,\n payment_currency: selectedInstallmentData.monthly_payment.currency\n };\n\n if (selectedInstallmentData.total_cost) {\n param.total_cost_value = selectedInstallmentData.total_cost.value;\n param.total_cost_currency = selectedInstallmentData.total_cost.currency;\n }\n\n if (selectedInstallmentData.discount_amount) {\n param.discount_value = selectedInstallmentData.discount_amount.value;\n param.discount_currency = selectedInstallmentData.monthly_payment.currency;\n }\n\n if (selectedInstallmentData.discount_percentage) {\n param.discount_percentage = selectedInstallmentData.discount_percentage;\n }\n\n return $scope.installmentsModel.action('select', {\n data: param,\n\n success: function success(result) {\n if ($scope.auth.logged_in) {\n $scope.checkoutSession.selectedInstallmentData = selectedInstallmentData;\n }\n $scope.doneFn(result);\n }\n });\n };\n }]\n };\n }]);\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n/***/ }),\n\n/***/ \"../node_modules/xo-wallet-components/src/pay-upon-invoice/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _index = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _index2 = __webpack_require__(\"../node_modules/xo-models/src/checkout/index.js\");\n\nvar _index3 = __webpack_require__(\"../node_modules/xo-models/src/onboard/index.js\");\n\nvar _index4 = __webpack_require__(\"../node_modules/xo-models/src/fi/index.js\");\n\nvar _util = __webpack_require__(\"../node_modules/xo-wallet-components/src/fi-contingency-list/util.js\");\n\nvar _index5 = __webpack_require__(\"../node_modules/xo-models/src/auth/index.js\");\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\nvar _uiRouter = __webpack_require__(\"../node_modules/angular-ui-router/release/angular-ui-router.min.js\");\n\nvar _index6 = __webpack_require__(\"../node_modules/xo-models/src/address/index.js\");\n\n__webpack_require__(\"../node_modules/xo-address-components/src/add-address/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-form-components/src/name-input/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-form-components/src/dob-input/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-guest-components/src/guest/emailInput/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-form-components/src/phone/phoneInput/directive.js\");\n\nvar _template = __webpack_require__(\"../node_modules/xo-wallet-components/src/pay-upon-invoice/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _index.$Component.extend('xoPayUponInvoice', {\n tag: 'xo-pay-upon-invoice',\n template: _template2['default'],\n\n props: {\n token: {\n type: 'var',\n required: false\n },\n isUnbranded: {\n type: 'var',\n required: false\n }\n },\n\n resolve: {\n models: function models() {\n return {\n auth: _index5.$AuthModel.instance(this.token).retrieve(),\n checkoutAppData: _index2.$CheckoutAppDataModel.instance(this.props.token).retrieve(),\n checkoutCart: _index2.$CheckoutCartModel.instance(this.token).retrieve()\n };\n }\n },\n\n lifecycle: {\n enter: function enter() {\n this.locale = _index.$locale;\n var days = [];\n var months = [];\n var years = [];\n\n var i = void 0;\n\n for (i = 1; i <= 31; i += 1) {\n var d = i < 10 ? '0' + i : i.toString();\n\n days.push(d);\n }\n\n for (i = 1; i <= 12; i += 1) {\n var m = i < 10 ? '0' + i : i.toString();\n\n months.push(m);\n }\n\n var year = new Date().getFullYear();\n\n for (i = year - 17; i >= year - 100; i -= 1) {\n years.push(i);\n }\n\n this.dobDays = days;\n this.dobMonths = months;\n this.dobYears = years;\n\n this.hideHelper = true;\n\n this.onboard = new _index3.$OnboardModel({\n user: new _index3.$OnboardUserModel({\n country: _index.$locale.country\n }),\n billing_address: _index4.$BillingAddressModel.create(this.token, {\n country: _index.$locale.country\n }),\n shipping_address: _index2.$ShippingAddressModel.create(this.token, {\n country: _index.$locale.country\n }),\n\n phone: new _index3.$OnboardPhoneModel()\n });\n },\n populate: function populate() {\n var _this = this;\n\n // logout the user before user clicks on submit button\n // User might be logged into paypal on another tab, in which case\n // createPUI to PAPS fails (if we dont logout the user)\n this.models.auth.action('logout');\n\n var shippingAddress = this.models.checkoutCart.get('purchase.shipping_address');\n var billingAddress = this.models.checkoutCart.get('billing_address') || {};\n\n billingAddress.first_name = this.models.checkoutCart.get('payer.first_name');\n billingAddress.last_name = this.models.checkoutCart.get('payer.last_name');\n\n // basic validation to check if any data is missing\n var validateAddress = function validateAddress(address) {\n return address && address.line1 && address.city && address.postal_code;\n };\n\n /**\n /* Set prefill billing address. By default set to merchant passed billing address if its valid\n * Otherwise prefill valid shipping address as billing address\n */\n\n var getDefaultAddress = function getDefaultAddress() {\n var isValidBilling = validateAddress(billingAddress);\n var isValidShipping = validateAddress(shippingAddress);\n var defaultAddress = billingAddress;\n\n _logger.$logger.info('pay_upon_invoice_is_billing_valid_' + isValidBilling);\n if (!isValidBilling && isValidShipping) {\n defaultAddress = shippingAddress;\n _logger.$logger.info('pay_upon_invoice_set_shipping_as_default');\n }\n return defaultAddress || {};\n };\n\n var prefilledAddress = getDefaultAddress();\n\n this.isPrefilledAddress = validateAddress(prefilledAddress) && prefilledAddress.first_name && prefilledAddress.last_name;\n if (this.isPrefilledAddress) {\n this.shipping = prefilledAddress;\n this.shipping.recipientName = prefilledAddress.first_name + ' ' + prefilledAddress.last_name;\n this.shipping.zipAndCity = prefilledAddress.postal_code + ' ' + prefilledAddress.city;\n }\n\n var getPayButtonText = function getPayButtonText() {\n _this.useraction = _this.models.checkoutAppData.useraction();\n\n var payButtonText = _index.$locale.content.get('common.agreeAndContinue');\n\n if (_this.useraction && _this.useraction.toLowerCase() === 'commit') {\n payButtonText = _index.$locale.content.get('common.agreeAndPay');\n }\n return payButtonText;\n };\n\n this.payButtonText = getPayButtonText();\n\n /**\n /* Set the prefilled Phone Number either from shipping address or billing address which merchants pass while making create payment call\n * If both are present shipping address take the preference over billing address.\n */\n var prefilledNumber = this.models.checkoutCart.get('purchase.phone_fields') || this.models.checkoutCart.get('billing.phone_fields');\n\n if (prefilledNumber && prefilledNumber.telephone_country === _index.$locale.country) {\n this.onboard.phone.telephone = prefilledNumber.normalized_phone_number;\n }\n\n this.onboard.shipping_address = _index2.$ShippingAddressModel.create(this.token, { country: _index.$locale.country }, prefilledAddress);\n\n this.onboard.billing_address = _index4.$BillingAddressModel.create(this.token, {\n country: _index.$locale.country\n }, prefilledAddress);\n\n // saving in to user object so that email field pre-populate if its passed in from setEc.\n this.onboard.user.email = this.models.checkoutCart.payer && this.models.checkoutCart.payer.email;\n }\n },\n\n actions: {\n changeShipping: function changeShipping() {\n this.isPrefilledAddress = !this.isPrefilledAddress;\n },\n onSubmit: function onSubmit() {\n var _this2 = this;\n\n this.onboard.billing_address.country = _index.$locale.country;\n this.addressNormalization = new _index6.$AddressNormalizationModel({\n address: this.onboard.billing_address\n });\n\n var handleValidation = function handleValidation() {\n\n var data = {\n errorCodes: ['BILL_ADDR_NOT_ALLOWED']\n };\n\n _this2.errorMessage = _util.$fiErrorUtil.addPageErrors(data, 'payUponInvoice');\n\n if (window.scrollTo) {\n window.scrollTo(0, 0);\n }\n\n return _angular.$q.reject();\n };\n\n this.addressNormalization.save({\n\n data: this.addressNormalization,\n\n contingencies: {\n VALIDATION_ERROR: function VALIDATION_ERROR() {\n handleValidation()['catch'](function (error) {\n _logger.$logger.info('PUI_addressNormalization_validation_rejection_captured');\n });\n }\n\n },\n error: function error() {\n _uiRouter.$state.go('checkout.genericError', { code: 'PAYMENT_PROCESS_ERROR' });\n },\n success: function success(result) {\n var loginDataGsid = {\n user: {\n email: _this2.onboard.user.email\n },\n pui_flow: true\n };\n\n // Adding login call to get the Global session ID\n // by passing email and actorinfovo(just with actor type) to STS.\n // auth_state will be anonymous after the below passive login call.\n // since account is not created yet.\n return _angular.$q.when().then(function () {\n _logger.$logger.info('PUI_Invoking_login_call_to_get_GSID');\n return _this2.models.auth.action('login', {\n data: loginDataGsid,\n success: function success() {\n _logger.$logger.info('PUI_login_call_succeeded');\n },\n error: function error() {\n _logger.$logger.info('PUI_login_call_failed_to_get_GSID');\n _uiRouter.$state.go('checkout.genericError', { code: 'PAYMENT_PROCESS_ERROR' });\n }\n }).then(function () {\n _this2.normalizedAddress = result;\n\n var checkoutSession = _index2.$CheckoutSessionModel.instance(_this2.token);\n\n checkoutSession.action('createPUI', {\n data: {\n user: _this2.onboard.user,\n address: _this2.onboard.billing_address,\n isPayerRequired: true,\n paymentMethod: 'pay_upon_invoice',\n phone: _this2.onboard.phone || ''\n\n },\n contingencies: {\n PAYMENT_METHOD_UNUSABLE: function PAYMENT_METHOD_UNUSABLE() {\n _uiRouter.$state.go('checkout.genericError', {\n code: 'PAYMENT_PROCESS_ERROR'\n });\n }\n },\n error: function error() {\n _logger.$logger.info('PUI: checkout session creation failed');\n _uiRouter.$state.go('checkout.genericError', {\n code: 'PAYMENT_PROCESS_ERROR'\n });\n },\n success: function success(successResult) {\n var loginData = {\n user: {\n account_number: successResult.payer.account_number,\n email: successResult.payer.email\n }\n };\n\n return _angular.$q.when().then(function () {\n return _this2.models.auth.action('login', {\n data: loginData,\n success: function success() {\n _logger.$logger.info('PUI: guest login', {\n from: 'LOGIN',\n to: 'process_login'\n });\n },\n error: function error() {\n _logger.$logger.info('PUI: login guest user failed');\n _uiRouter.$state.go('checkout.genericError', { code: 'PAYMENT_PROCESS_ERROR' });\n }\n }).then(function () {\n return checkoutSession.action('authorize', {\n error: function error() {\n _logger.$logger.info('PUI: authorize payment failed');\n _uiRouter.$state.go('checkout.genericError', {\n code: 'PAYMENT_PROCESS_ERROR'\n });\n },\n success: function success() {\n _uiRouter.$state.go('checkout.end');\n }\n });\n });\n });\n },\n VALIDATION_ERROR: function VALIDATION_ERROR() {\n _uiRouter.$state.go('checkout.genericError', {\n code: 'PAYMENT_PROCESS_ERROR'\n });\n }\n });\n });\n });\n }\n });\n }\n }\n});\n\n\n_angular.$q;\n\n_index.$Component;\n\n_index.$locale;\n\n_index2.$CheckoutSessionModel;\n\n_index2.$CheckoutAppDataModel;\n\n_index2.$CheckoutCartModel;\n\n_index2.$ShippingAddressModel;\n\n_index3.$OnboardModel;\n\n_index3.$OnboardUserModel;\n\n_index3.$OnboardPhoneModel;\n\n_index4.$BillingAddressModel;\n\n_util.$fiErrorUtil;\n\n_index5.$AuthModel;\n\n_logger.$logger;\n\n_uiRouter.$state;\n\n_index6.$AddressNormalizationModel;\nmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ \"../node_modules/xo-wallet-components/src/pay-upon-invoice/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
      \\n\\n\\n
      {{content('payUponInvoice.title')}}
      \\n \\n\\n
      \\n\\n
      \\n \\n
      \\n
      \\n
      \\n {{shipping.recipientName}}\\n
      \\n\\n
      \\n {{shipping.line1}}\\n
      \\n\\n
      \\n {{shipping.line2}}\\n
      \\n\\n
      \\n {{shipping.zipAndCity}}\\n
      \\n
      \\n
      \\n \\n {{ content('common.change') }}\\n \\n
      \\n\\n
      \\n
      {{content('payUponInvoice.notification')}}
      \\n \\n
      \\n\\n
      \\n \\n
      \\n\\n \\n\\n \\n \\n
      \\n \\n\\n \\n \\n \\n \\n\\n \\n
      \\n {{ content('payUponInvoice.dobTooltip') }}\\n
      \\n
      \\n
      \\n \\n
      \\n\\n
      \\n \\n
      \\n\\n
      \\n \\n
      \\n
      \\n
      \\n \\n \\n
      \\n\\n
      \\n \\n
      \\n
      \\n
      \\n\\n\\n\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/xo-webpack-config/polyfills.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n// array\n__webpack_require__(\"../node_modules/core-js/fn/array/find.js\");\n__webpack_require__(\"../node_modules/core-js/fn/array/includes.js\");\n\n// string\n__webpack_require__(\"../node_modules/core-js/fn/string/includes.js\");\n\n\n// object\n__webpack_require__(\"../node_modules/core-js/fn/object/entries.js\");\n__webpack_require__(\"../node_modules/core-js/fn/object/values.js\");\n__webpack_require__(\"../node_modules/core-js/fn/object/assign.js\");\n\n\n\n\n/***/ }),\n\n/***/ \"./css/app.less\":\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ \"./js/app.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\n__webpack_require__(\"./css/app.less\");\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\nvar _route = __webpack_require__(\"./pages/xo-checkout/route.js\");\n\nvar _route2 = __webpack_require__(\"./pages/xo-guest-upgrade/route.js\");\n\nvar _middleware = __webpack_require__(\"./js/lib/middleware.js\");\n\nvar _index = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\n_logger.$logger.info('app_bootstrap', {\n hash: window.location.hash\n});\n\nif (_index.$util.param('data')) {\n var guestUpgradeRoute = new _route2.$GuestUpgradeRoute();\n\n guestUpgradeRoute.bootstrap('guestupgrade', _middleware.$Middleware);\n} else {\n var baseRoute = new _route.$BaseRoute();\n\n baseRoute.bootstrap('checkout.landing', _middleware.$Middleware);\n}\n\nwindow.bootstrap = true;\n\n_logger.$logger;\n\n_route.$BaseRoute;\n\n_route2.$GuestUpgradeRoute;\n\n_middleware.$Middleware;\n\n_index.$util;\n\n/***/ }),\n\n/***/ \"./js/bootstrap.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nwindow.main = true;\n\n// Angular 1.6.9 adds a `!` as a hash prefix to the url by default.\n// This is different behavior than Angular 1.4.7 which didn't add\n// a hash prefix. The code snippet below will prevent the hash prefix\n// from being added so that after the Angular 1.6.9 upgrade the url\n// hash will remain the same.\n// Angular 1.4.7: http://.../xoonboarding?token=EC-9CC38595EA0236714#/checkout/signup\n// Angular 1.6.9 with out setting the `hashPrefix` to an empty string:\n// http://.../xoonboarding?token=EC-9CC38595EA0236714#!/checkout/signup\nangular.module('app').config(['$locationProvider', function ($locationProvider) {\n $locationProvider.hashPrefix('');\n}]);\n\nif (!window.prefetch) {\n angular.bootstrap(document.body, ['app']);\n __webpack_require__(\"./js/app.js\");\n}\n\n/***/ }),\n\n/***/ \"./js/lib/contingency.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.$contingencyHandler = $contingencyHandler;\n\nvar _uiRouter = __webpack_require__(\"../node_modules/angular-ui-router/release/angular-ui-router.min.js\");\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nfunction showGenericError(code) {\n return function (errCode) {\n errCode = code || errCode;\n // Encode error text\n errCode = errCode ? window.btoa(errCode) : errCode;\n _uiRouter.$state.go('checkout.genericError', {\n code: errCode\n });\n };\n}\n\n/**\n * Route with default parameters unless special handler implemented otherwise\n *\n * To satisfy url: '/pageAddCard/:country/:fiType' in the route definition.\n * {country: ..., fiType: ...} must be passed for ui.router..\n *\n */\nfunction route(path, params) {\n return function () {\n _uiRouter.$state.go(path, params);\n };\n}\n\nvar routeToAddCC = function routeToAddCC(msg, contingency) {\n var gamblingCauses = ['PAYER_FUNDING_INSTRUMENT_INELIGIBLE', 'PAYER_FINANCIAL_INSTRUMENT_OUT_OF_COUNTRY', 'PAYER_FINANCIAL_INSTRUMENT_UNDER_AGE'];\n var isGambling = gamblingCauses.indexOf(contingency.cause) > -1;\n var param = isGambling ? {\n gaming: '1'\n } : {};\n\n return route('checkout.pageAddCard.addCardFlow.addCard', param);\n};\n\nfunction forbidden(err) {\n throw new _squid.$Forbidden(err);\n}\n\nfunction fallback(product) {\n return function (err) {\n throw new _squid.$FallbackError({\n reason: err,\n product: product\n });\n };\n}\n\nfunction $contingencyHandler(contingency) {\n if (contingency instanceof _squid.$Contingency) {\n\n // Leave a footprint here. The subsequent state where log how it goes..\n _logger.$logger.warn('contingency_handler', contingency);\n\n return contingency.handle({\n // TODO : modify these routes\n // Route\n NEED_CREDIT_CARD: routeToAddCC,\n NEED_CONFIRMED_CARD: routeToAddCC,\n NEED_CREDIT_CARD_OR_BANK_ACCOUNT: routeToAddCC,\n EXPIRED_CREDIT_CARD: routeToAddCC,\n\n // Generic Error Pages\n CURRENCY_COMPLIANCE: showGenericError(),\n INVALID_RESOURCE_ID: showGenericError(),\n PAYMENT_ALREADY_DONE: showGenericError(),\n PAYEE_BLOCKED_TRANSACTION: showGenericError(),\n RESTRICTED_USER: showGenericError(),\n PAYMENT_DENIED: showGenericError(),\n PAYER_CANNOT_PAY: showGenericError(),\n PAYEE_ACCOUNT_RESTRICTED: showGenericError(),\n PAYER_COUNTRY_NOT_ALLOWED: showGenericError(),\n PAYER_COUNTRY_NOT_ALLOWED_DCF: showGenericError('XOON_PAYER_COUNTRY_NOT_ALLOWED_DCF'),\n PAYER_COUNTRY_NOT_ENABLED: showGenericError(),\n PAYER_LOGIN_COUNTRY_NOT_ALLOWED: showGenericError(),\n GAMING_FUNDING_SOURCE_VALIDATION_FAILED: showGenericError(),\n GUEST_CHECKOUT_NOT_ALLOWED: showGenericError(),\n EINVALIDCSRF_JWT_EXPIRED: showGenericError(),\n\n // Fallbacks\n TRANSACTION_REFUSED: fallback('ux'),\n VERIFY_USER_IDENTITY: fallback('ux'),\n SENDING_LIMIT_EXCEEDED: fallback('ux'),\n PAYER_INVALID_FOR_PAYMENT: fallback('ux'),\n PAYMENT_CANNOT_BE_INITIATED: fallback('ux'),\n PERMISSION_DENIED: fallback('ux'),\n NEGATIVE_BALANCE_TRANSACTION_REFUSED: fallback('ux'),\n INVALID_TOKEN: fallback('ux'),\n INVALID_FUNDING_OPTION: fallback('ux'),\n INTERNAL_SERVICE_ERROR: fallback('ux'),\n VALIDATION_ERROR: fallback('ux'),\n SHIPPING_ADDRESS_INVALID: fallback('ux'),\n RISK_DENIED: fallback('ux'),\n DOMESTIC_TRANSACTION_REQUIRED: fallback('ux'),\n INVALID_ARGUMENT: fallback('ux'),\n CREDIT_PAYMENT_NOT_ALLOWED: fallback('ux'),\n UNSUPPORTED_PAYEE_CURRENCY: fallback('ux'),\n PAYEE_ACCOUNT_LOCKED_OR_CLOSED: fallback('ux'),\n CANNOT_PAY_SELF: fallback('hermes'),\n\n // Forbidden\n BUYER_NOT_SET: forbidden,\n\n // TODO: duplicate - PAYER_INVALID_FOR_PAYMENT: forbidden,\n // Default\n DEFAULT: function logUnhandledContingency() {\n _logger.$logger.warn('ui_unhandled_contingency_' + this.message);\n\n throw new _squid.$FallbackError({\n reason: 'unhandled_contingency',\n product: 'ux'\n });\n }\n });\n }\n}\n\nangular.value(\"$contingencyHandler\", $contingencyHandler);\n_uiRouter.$state;\n\n_logger.$logger;\n\n_squid.$Forbidden;\n\n_squid.$FallbackError;\n\n_squid.$Contingency;\n\n/***/ }),\n\n/***/ \"./js/lib/error.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.$apiErrorHandler = $apiErrorHandler;\nexports.$forbiddenHandler = $forbiddenHandler;\nexports.$exceptionHandler = $exceptionHandler;\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _uiRouter = __webpack_require__(\"../node_modules/angular-ui-router/release/angular-ui-router.min.js\");\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _index = __webpack_require__(\"../node_modules/xo-models/src/auth/index.js\");\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\nvar _fallback = __webpack_require__(\"./js/lib/fallback.js\");\n\nvar _contingency = __webpack_require__(\"./js/lib/contingency.js\");\n\nvar ERROR_STATE = void 0;\nvar ERROR_PREVENTED = void 0;\n\nfunction $apiErrorHandler(err) {\n if (err instanceof _squid.$ApiError) {\n _logger.$logger.error('api_error', {\n error: err.toString()\n });\n\n throw new _squid.$FallbackError({\n reason: 'api_error',\n product: 'ux'\n });\n\n // @TODO - wtf?\n return true; // eslint-disable-line no-unreachable\n }\n}\n\nfunction $forbiddenHandler(err) {\n if (err instanceof _squid.$Forbidden) {\n _logger.$logger.warn('forbidden_handler');\n _index.$AuthModel.instance().invalidate();\n\n throw new _squid.$FallbackError({\n reason: 'user_not_logged_in',\n product: 'ux'\n });\n }\n}\n\nvar handlers = [{\n type: _squid.$FallbackError,\n handle: _fallback.$fallbackErrorHandler\n}, {\n type: _squid.$Contingency,\n handle: _contingency.$contingencyHandler\n}, {\n type: _squid.$Forbidden,\n handle: $forbiddenHandler\n}];\n\nfunction $exceptionHandler(err, cause) {\n if (ERROR_STATE) {\n if (ERROR_PREVENTED) {\n throw err;\n }\n\n return;\n }\n\n // non token based Guest Upgrade Flow\n if (_squid.$util.param('data')) {\n _logger.$logger.error('guest_upgrade_error', {\n error: err\n });\n _uiRouter.$state.go('guestupgrade.genericError', {\n code: 'GUEST_UPGRADE_ERROR'\n });\n return;\n }\n\n var handled = handlers.some(function (handler) {\n if (err instanceof handler.type) {\n handler.handle(err);\n return true;\n }\n\n return false;\n });\n\n if (handled) {\n return;\n } else if (!err.transient) {\n ERROR_STATE = err;\n }\n\n var errType = (err.constructor.name || 'error').toLowerCase();\n var errName = 'ui_unhandled_' + errType;\n var errMsg = err.message || '';\n\n if (errMsg.indexOf('infdig') > -1) {\n errName = 'infinite_digest';\n } else if (errMsg.indexOf('inprog') > -1) {\n errName = 'digest_inprog';\n } else if (errMsg.indexOf('badparse') > -1) {\n errName = 'sanitize_badparse';\n } else if (errMsg.match(/^[\\w_]+$/) && !(err instanceof _squid.$Error)) {\n errName = errMsg;\n }\n\n if (['ui_unhandled_error', 'ui_unhandled_typeerror'].indexOf(errName) > -1) {\n if (err.stack && err.stack.indexOf('framework') > -1 && err.stack.indexOf('main.js') === -1) {\n errName = 'ui_unhandled_framework_error';\n }\n }\n\n var errObj = {\n error: err.stack || err.toString(),\n message: errMsg,\n cause: cause && cause.toString(),\n state: _uiRouter.$state.current.name,\n url: _angular.$window.location.toString()\n };\n\n _logger.$logger.error(errName, errObj);\n\n // emit the error object for subscribers like xo-tracking\n var event = _angular.$rootScope.$emit('unhandled_error', {\n route: (_uiRouter.$state || {}).current,\n message: errObj.error,\n code: errObj.cause,\n currentRoute: _uiRouter.$state.current\n });\n\n if (event.defaultPrevented) {\n ERROR_PREVENTED = true;\n throw err;\n } else if (!err.transient) {\n return (0, _fallback.$fallbackErrorHandler)(new _squid.$FallbackError({\n reason: errName\n }));\n }\n}\n\nfunction constructEventName(toState, fromState) {\n var fromStateFormatted = fromState.name.replace(/\\./g, '_') || 'start';\n var toStateFormatted = toState.name.replace(/\\./g, '_') || 'end';\n\n return 'state_change_' + fromStateFormatted + '_to_' + toStateFormatted;\n}\n\nvar stateChangeError = _angular.$rootScope.$on('$stateChangeError', function (event, toState, toParams, fromState, fromParams, err) {\n // Set prevent default to avoid angular UI router to keep looping back to same state\n event.preventDefault();\n $exceptionHandler(err, constructEventName(toState, fromState));\n});\nvar windowError = _angular.$rootScope.$on('$windowError', function (event, details) {\n _logger.$logger.error('window_error', details, {\n debounceFactor: details.message,\n debounceInterval: 1000\n });\n});\n\n_angular.$rootScope.$on('$destroy', stateChangeError);\n_angular.$rootScope.$on('$destroy', windowError);\n\nangular.value(\"$apiErrorHandler\", $apiErrorHandler);\nangular.value(\"$forbiddenHandler\", $forbiddenHandler);\nangular.value(\"$exceptionHandlerLazy\", $exceptionHandler);\n_angular.$rootScope;\n\n_angular.$window;\n\n_uiRouter.$state;\n\n_squid.$Forbidden;\n\n_squid.$ApiError;\n\n_squid.$FallbackError;\n\n_squid.$util;\n\n_squid.$Error;\n\n_squid.$Contingency;\n\n_index.$AuthModel;\n\n_logger.$logger;\n\n_fallback.$fallbackErrorHandler;\n\n_contingency.$contingencyHandler;\n\n/***/ }),\n\n/***/ \"./js/lib/fallback.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.$fallbackErrorHandler = $fallbackErrorHandler;\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _uiRouter = __webpack_require__(\"../node_modules/angular-ui-router/release/angular-ui-router.min.js\");\n\nvar _index = __webpack_require__(\"../node_modules/xo-return-to-merchant/dist/index.js\");\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _index2 = __webpack_require__(\"../node_modules/xo-models/src/user/index.js\");\n\nvar _index3 = __webpack_require__(\"../node_modules/xo-models/src/checkout/index.js\");\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\nfunction goToUrl(url, wpsParams, xoAppData) {\n if (xoAppData.is_wps_flow()) {\n return _index.$ReturnToMerchant.postTo(url, wpsParams);\n }\n\n return _index.$ReturnToMerchant.goTo(url);\n}\n\n/**\n * This function contains an additional determination of fallback url in case of an UX fallback\n *\n * @param {object} checkoutAppDataModel\n * @param {string} fallbackUrl\n * @returns {string}\n */\nfunction determineUrlForUxFallback(checkoutAppDataModel, fallbackUrl) {\n var experienceInitiator = checkoutAppDataModel.get('flags.payment_experience_initiator');\n\n // For UX fallback during a PPPlus transaction the fallback url\n // is merchants cancel_url with added parameter ppp_msg = 1\n if (experienceInitiator === 'PAYPAL_PLUS') {\n return _squid.$util.buildURL(checkoutAppDataModel.get('urls.cancel_url'), { ppp_msg: '1' });\n }\n\n return fallbackUrl;\n}\n\nfunction goToGenericError() {\n var code = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'DEFAULT';\n\n _uiRouter.$state.go('checkout.genericError', { code: code });\n return true;\n}\n\nfunction $fallbackErrorHandler() {\n var err = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var reason = err.reason;\n\n var models = {};\n\n return (0, _squid.$populate)(models, {\n checkoutAppData: _index3.$CheckoutAppDataModel.instance(_angular.$rootScope.token),\n checkoutCart: _index3.$CheckoutCartModel.instance(_angular.$rootScope.token),\n checkoutInputData: _index2.$CheckoutInputDataModel.instance(_angular.$rootScope.token),\n payeeModel: _index3.$CheckoutPayeeModel.instance(_angular.$rootScope.token)\n }).then(function () {\n var checkoutAppData = models.checkoutAppData,\n checkoutCart = models.checkoutCart,\n checkoutInputData = models.checkoutInputData;\n\n\n if (checkoutCart.isWalletTokenization()) {\n return goToGenericError();\n }\n\n if (checkoutAppData.doec_on_approve() && _angular.$rootScope.paymentComplete) {\n // Do not fallback. UX has no context of hermes token and will result in duplicate payment\n _logger.$logger.info('wps_error_payment_already_done', { reason: reason });\n return goToGenericError('PAYMENT_ALREADY_DONE');\n }\n\n var _$config$fallbackWhit = _squid.$config.fallbackWhitelist;\n _$config$fallbackWhit = _$config$fallbackWhit === undefined ? {} : _$config$fallbackWhit;\n var _$config$fallbackWhit2 = _$config$fallbackWhit.whitelist,\n whitelist = _$config$fallbackWhit2 === undefined ? [] : _$config$fallbackWhit2;\n\n\n if (err instanceof _squid.$FallbackError) {\n var _err$product = err.product,\n product = _err$product === undefined ? 'ux' : _err$product;\n var entry_point = err.entry_point;\n\n\n if (checkoutInputData.requiresOAuth()) {\n // there is no fallback for flows that require oauth code return (ex:PROX Signup),\n // so we show a generic error page\n _logger.$logger.error('fallback_inhibited_for_oauth_return_flows', { reason: reason });\n return goToGenericError(reason);\n }\n\n if (product === 'ux' && _angular.$rootScope.partnerIntegration) {\n _logger.$logger.info('partner_integration_fallback_to_UX');\n _angular.$window.resizeTo(screen.availWidth, screen.availHeight);\n }\n\n // For checkout-order tokens symphony sets checkoutAppData.flags.disable_legacy_fallback flag to 'true'.\n // In such cases we disable fallback to UX and show the generic error page.\n if (checkoutAppData.get('flags.disable_legacy_fallback')) {\n _logger.$logger.error('fallback_inhibited_for_checkout_order_tokens', { reason: reason });\n return goToGenericError(reason);\n }\n\n _squid.$util.assert(reason, 'expected fallback reason');\n\n _logger.$logger.log(product ? 'info' : 'error', 'fallback', {\n reason: reason,\n product: product,\n entry_point: entry_point\n });\n\n var country = _squid.$locale.country;\n\n var paymentAction = checkoutCart.payment_action;\n\n _logger.$logger.info('fallback_reason_' + reason);\n if (checkoutAppData.is_wps_flow()) {\n _logger.$logger.log('info', 'wps_fallback', {\n token: _squid.$meta.token,\n reason: reason\n });\n _logger.$logger.info('wps_fallback_reason_' + reason, { reason: reason });\n }\n\n if (!_squid.$config.fallbackEnabled && !entry_point) {\n _logger.$logger.info('fallback_disabled_by_config');\n return goToGenericError();\n }\n\n /**\n * CONFIG BASED WHITELIST:\n * Determines if we should fallback or instead redirect to generic error page.\n * We go to generic error page if the reason is not in the whitelist\n * If the users' browser supports session storage they will be shown the retry link\n * in generic error page.\n */\n var fallbackNotWhitelisted = whitelist.indexOf(reason) === -1;\n\n // We can add countries to the config param to enable fallback to UX\n // If fallback reason not whitelisted\n if (fallbackNotWhitelisted) {\n _logger.$logger.info('fallback_reason_not_whitelisted', { reason: reason, product: product, country: country, paymentAction: paymentAction });\n\n // We're using sessionStorage for retry detection\n if (_squid.$util.sessionStorageEnabled()) {\n var RETRY_KEY = 'retry_page_shown';\n var RETRY_PAGE_LIMIT = 3; // Only show the retry page at most 3 times\n var timesSeen = Number(sessionStorage.getItem(RETRY_KEY));\n var destination = 'RETRY';\n\n // Reset if there's an invalid value for timesSeen for some reason\n if (!timesSeen || timesSeen < 0) {\n timesSeen = 0;\n }\n\n // Only try to go to retry page if we're within retry attempts\n if (timesSeen < RETRY_PAGE_LIMIT) {\n timesSeen++;\n sessionStorage.setItem(RETRY_KEY, timesSeen);\n } else {\n destination = 'DEFAULT';\n }\n\n _logger.$logger.info('checkout_fpti', {\n 'enable_refresh_prompt': reason\n });\n\n return goToGenericError(destination);\n }\n return goToGenericError();\n }\n\n _logger.$logger.info('fallback_reason_whitelisted', { reason: reason, product: product, country: country, paymentAction: paymentAction });\n\n if (_squid.$config.deploy.isLocal() && !entry_point) {\n return _angular.$log.info('Fallback inhibited in local mode. Please refresh to re-enable error logging');\n }\n\n _angular.$rootScope.$emit('loading');\n\n var urlParams = {\n token: _squid.$meta.token,\n fallback: 1,\n landing: entry_point,\n useraction: _squid.$util.param('useraction')\n };\n\n if (_angular.$rootScope.partnerIntegration) {\n urlParams.incontext = '1';\n urlParams.nolegacy = '1';\n } else if (_angular.$rootScope.miniBrowser) {\n urlParams.incontext = '1';\n }\n\n var _checkoutAppData$flag = checkoutAppData.flags,\n appDataFlags = _checkoutAppData$flag === undefined ? {} : _checkoutAppData$flag;\n\n var base = _squid.$config.urls.fallbackUrl[product];\n var wpsParams = void 0;\n\n if (checkoutAppData.is_wps_subscription_flow()) {\n base = _squid.$config.urls.fallbackUrl['wpsSubscription'];\n wpsParams = _squid.$util.decodeAndParse(_squid.$meta.xclickParams);\n wpsParams.cmd = wpsParams.hosted_button_id ? '_s-xclick' : '_xclick-subscriptions';\n } else if (checkoutAppData.is_wps_flow()) {\n base = appDataFlags.is_cart_upload_flow || appDataFlags.is_shopping_cart_flow ? _squid.$config.urls.fallbackUrl['cartUpload'] : _squid.$config.urls.fallbackUrl['buyNow'];\n wpsParams = _squid.$util.decodeAndParse(_squid.$meta.xclickParams);\n }\n\n if (appDataFlags.is_invoice_flow) {\n urlParams.id = checkoutAppData.invoice_id;\n base = _squid.$config.urls.fallbackUrl['invoice'];\n }\n\n var hostname = _squid.$meta.stage ? _squid.$meta.stage : _angular.$window.location.hostname;\n var url = _squid.$util.buildURL('https://' + hostname + base, urlParams);\n\n if (checkoutAppData.is_wps_flow() || appDataFlags.is_invoice_flow) {\n goToUrl(url, wpsParams, checkoutAppData);\n return true;\n }\n\n if (product === 'ux') {\n var uxUrl = determineUrlForUxFallback(checkoutAppData, url);\n\n // Otherwise we can make a decision based on whether we're in the minibrowser or not\n return checkoutAppData.action('updateFallbackAction', {\n data: {\n fallback_action: 'CA_FALLBACK_USER_ACTION_LOGIN_GUEST_TAB_SELECTION'\n },\n success: function success() {\n _index.$ReturnToMerchant.goTo(uxUrl);\n return true;\n },\n\n contingencies: {\n DEFAULT: function DEFAULT() {\n _index.$ReturnToMerchant.goTo(uxUrl);\n return true;\n }\n }\n })['catch'](function () {\n _index.$ReturnToMerchant.goTo(uxUrl);\n return true;\n });\n }\n\n // Safe to always return to Aries\n _squid.$util.redirect(url);\n }\n\n return goToGenericError();\n })['catch'](function (modelLoadErr) {\n _logger.$logger.info('fallback_model_load_error', { reason: modelLoadErr });\n return goToGenericError(modelLoadErr);\n });\n}\n\nangular.value(\"$fallbackErrorHandler\", $fallbackErrorHandler);\n_angular.$window;\n\n_angular.$log;\n\n_angular.$rootScope;\n\n_uiRouter.$state;\n\n_index.$ReturnToMerchant;\n\n_squid.$FallbackError;\n\n_squid.$config;\n\n_squid.$meta;\n\n_squid.$util;\n\n_squid.$locale;\n\n_squid.$populate;\n\n_index2.$CheckoutInputDataModel;\n\n_index3.$CheckoutAppDataModel;\n\n_index3.$CheckoutCartModel;\n\n_index3.$CheckoutPayeeModel;\n\n_logger.$logger;\n\n/***/ }),\n\n/***/ \"./js/lib/index.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _contingency = __webpack_require__(\"./js/lib/contingency.js\");\n\nObject.keys(_contingency).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _contingency[key];\n }\n });\n});\n\nvar _error = __webpack_require__(\"./js/lib/error.js\");\n\nObject.keys(_error).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _error[key];\n }\n });\n});\n\nvar _fallback = __webpack_require__(\"./js/lib/fallback.js\");\n\nObject.keys(_fallback).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _fallback[key];\n }\n });\n});\n\nvar _metaBuilder = __webpack_require__(\"./js/lib/metaBuilder.js\");\n\nObject.keys(_metaBuilder).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _metaBuilder[key];\n }\n });\n});\n\nvar _middleware = __webpack_require__(\"./js/lib/middleware.js\");\n\nObject.keys(_middleware).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _middleware[key];\n }\n });\n});\n\nvar _miniBrowser = __webpack_require__(\"./js/lib/miniBrowser.js\");\n\nObject.keys(_miniBrowser).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _miniBrowser[key];\n }\n });\n});\n\n/***/ }),\n\n/***/ \"./js/lib/integration.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.$CONTEXT = exports.$integration = exports.$FLOWS = undefined;\n\nvar _$DEFAULT, _$CONTEXT$FULLPAGE, _$integration$init;\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nObject.defineProperty(exports, '$integration', {\n enumerable: true,\n get: function get() {\n return _squid.$integration;\n }\n});\nObject.defineProperty(exports, '$CONTEXT', {\n enumerable: true,\n get: function get() {\n return _squid.$CONTEXT;\n }\n});\nvar $FLOWS = exports.$FLOWS = {\n // Regular end-to-end checkout flow with one entry and one exit point\n CHECKOUT: 'CHECKOUT',\n\n // Partner flow [ TODO: FACTOR THIS OUT ]\n PARTNER: 'PARTNER',\n\n // Native checkout flow\n NATIVE_CHECKOUT: 'NATIVE_CHECKOUT'\n};\n\n_squid.$integration.init($FLOWS.CHECKOUT, (_$integration$init = {}, _$integration$init[_squid.$DEFAULT] = (_$DEFAULT = {\n REDIRECT_TOP: true,\n REDIRECT_QUERY_PARAM: false\n\n}, _$DEFAULT[$FLOWS.PARTNER] = {\n REDIRECT_TOP: false,\n REDIRECT_QUERY_PARAM: true\n}, _$DEFAULT), _$integration$init[_squid.$CONTEXT.FULLPAGE] = (_$CONTEXT$FULLPAGE = {}, _$CONTEXT$FULLPAGE[$FLOWS.NATIVE_CHECKOUT] = {\n REDIRECT_QUERY_PARAM: true\n}, _$CONTEXT$FULLPAGE), _$integration$init[_squid.$CONTEXT.LIGHTBOX] = {\n REDIRECT_TOP: false\n}, _$integration$init));\n\nangular.value(\"$FLOWS\", $FLOWS);\n_squid.$integration;\n\n_squid.$DEFAULT;\n\n_squid.$CONTEXT;\n\n/***/ }),\n\n/***/ \"./js/lib/metaBuilder.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.$metaBuilder = undefined;\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _model = __webpack_require__(\"../node_modules/xo-tracking/dist/model.js\");\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nfunction buildMeta() {\n return {\n token: _angular.$rootScope.token || _squid.$config.token || _squid.$meta.token || _squid.$util.param('token'),\n cartId: _squid.$util.param('cart_id'),\n calc: _model.$CalDataModel.getCalCorrId(),\n csci: _model.$CalDataModel.getUUID(),\n locale: {\n country: _squid.$locale && _squid.$locale.country,\n language: _squid.$locale && _squid.$locale.lang\n },\n state: 'ui_' + (_angular.$rootScope.currentState || 'checkout_init'),\n app_name: 'xoonboardingnodeweb'\n };\n}\n\n_squid.$Api.registerMetaBuilder(buildMeta);\n\nvar $metaBuilder = exports.$metaBuilder = {\n build: buildMeta\n};\n\nangular.value(\"$metaBuilder\", $metaBuilder);\n_angular.$rootScope;\n\n_model.$CalDataModel;\n\n_squid.$util;\n\n_squid.$meta;\n\n_squid.$Api;\n\n_squid.$locale;\n\n_squid.$config;\n\n/***/ }),\n\n/***/ \"./js/lib/middleware.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.$Middleware = undefined;\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\nvar _index = __webpack_require__(\"../node_modules/xo-models/src/user/index.js\");\n\nvar _index2 = __webpack_require__(\"../node_modules/xo-models/src/checkout/index.js\");\n\nvar _miniBrowser = __webpack_require__(\"./js/lib/miniBrowser.js\");\n\nvar _xoAPayUtils = __webpack_require__(\"../node_modules/xo-models/src/auth/lib/xoAPayUtils.js\");\n\nvar _index3 = __webpack_require__(\"../node_modules/xo-models/src/onboard/index.js\");\n\nvar _index4 = __webpack_require__(\"../node_modules/xo-models/src/auth/index.js\");\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar noop = function noop() {\n return undefined;\n};\n\nvar $Middleware = exports.$Middleware = [function checkToken() {\n var urlToken = _squid.$util.param('token');\n var bodyToken = _squid.$meta.token;\n\n if (urlToken !== _squid.$meta.token) {\n _logger.$logger.error('token_mismatch', {\n server: _squid.$meta.token,\n client: urlToken\n });\n }\n\n if (!urlToken && !bodyToken && !_squid.$util.param('data')) {\n throw new Error('No token or data found in page url');\n }\n\n // first set regular token (EC transactions)\n _angular.$rootScope.token = bodyToken || urlToken;\n\n _angular.$window.root = _angular.$rootScope;\n}, function resolveLocale() {\n var models = {};\n\n if (_angular.$rootScope.token) {\n return (0, _squid.$populate)(models, {\n appData: _index2.$CheckoutAppDataModel.instance(_angular.$rootScope.token).retrieve({\n contingencies: {\n DEFAULT: noop\n }\n }),\n cart: _index2.$CheckoutCartModel.instance(_angular.$rootScope.token)\n })['finally'](function () {\n // We need to have finally here instead of then, as we always want\n // locale to be resolved no matter failure of getCart or getAppData call\n return _squid.$locale.retrieve({\n params: {\n ipCountry: _squid.$meta.ipcountry,\n localeTestUrlParam: _squid.$util.param('locale.test'),\n checkoutBillingCountry: models.cart && models.cart.get('payer_info.billing_address.country_code'),\n checkoutShippingCountry: models.cart && models.cart.get('purchase.shipping_address.country_code'),\n merchantCountry: models.appData && models.appData.get('merchant.merchant_country'),\n checkoutSessionLocale: models.appData && models.appData.get('merchant.merchant_locale'),\n countryParam: _squid.$util.param('country.x') || _squid.$meta.query && _squid.$meta.query['country.x'],\n localeParam: _squid.$util.param('locale.x') || _squid.$meta.query && _squid.$meta.query['locale.x']\n }\n });\n });\n } else if (_squid.$util.param('data')) {\n var options = {\n params: {\n data: _squid.$util.param('data')\n }\n };\n\n return (0, _squid.$populate)(models, {\n guestAccountData: _index3.$GuestUpgradeModel.instance().retrieve({\n options: options,\n contingencies: {\n MAYFLY_ERROR: noop,\n DEFAULT: noop\n }\n })\n }).then(function () {\n return _squid.$locale.retrieve({\n params: {\n ipCountry: _squid.$meta.ipcountry,\n localeTestUrlParam: _squid.$util.param('locale.test'),\n countryParam: models.guestAccountData.get('user.country')\n }\n });\n });\n }\n},\n\n/*\n * checkFlowType: this function checks the flow type and adds call info logs\n *\n * We moved this fn from checkToken to a separate middleware, as we found an issue\n * when checkoutAppData call fails\n *\n * ISSUE FIXED: when checkoutAppData call fails with INVALID_RESOURCE_ID,\n * we redirect user to generie error page, and error page was shown without any\n * content/text, as resolveLocale middleware was never executed due to error thrown\n * in checkToken middleware function (error thrown by checkoutAppData failure)\n */\nfunction checkFlowType() {\n // wps tokens are not preceeded with 'EC-'\n var wpsPattern = /^[0-9A-Z]{17}$/;\n\n // now test for WPS, set flags as necessary and log.\n // make sure ebay transactions aren't counted\n var isEbay = _index.$CheckoutInputDataModel.instance(_angular.$rootScope.token).isEbayTxn();\n\n // identify WPS vs checkout-order token\n if (!isEbay && wpsPattern.test(_angular.$rootScope.token)) {\n return _index2.$CheckoutAppDataModel.instance(_angular.$rootScope.token).retrieve().then(function (appData) {\n // For WPS tokens appData.is_wps_flow() will always return 'true'.\n var isWPS = appData.is_wps_flow();\n\n _logger.$logger.info('xoon_' + (isWPS ? 'wps' : 'xo_order') + '_flow', {\n token: _angular.$rootScope.token\n });\n });\n }\n}, function logout() {\n if (!_squid.$config.clientSideLogout) {\n return;\n }\n\n return _index4.$AuthModel.instance().retrieve().then(function (auth) {\n if (auth.logged_in || auth.email) {\n return auth.action('logout');\n }\n });\n},\n\n/**\n * Redirect back to Hermes if Android user with PayPal available through Android pay who\n * landed on Xoon due to BASL. 2 checks need to be done to determine if user has PayPal\n * in Android pay wallet: 1. chrome version >=58 (this version support payment api)\n * 2. call canMakePayment api call to validate if PayPal is already available in Android pay\n */\nfunction checkAPayBASLRedirect() {\n if (!_squid.$config.apayEnabled) {\n return;\n }\n // Check if browser supports PaymentRequest API.\n if (!_xoAPayUtils.$xoAPayUtils.isAPayAPISupported()) {\n return;\n }\n\n var models = {};\n\n return (0, _squid.$populate)(models, {\n cart: _index2.$CheckoutCartModel.instance(_angular.$rootScope.token).retrieve()\n }).then(function () {\n // Do nothing for APay onboarding flow.\n if (models.cart.isWalletTokenization()) {\n return;\n }\n\n // Call PaymentRequest API to check if paypal as payment available\n return _xoAPayUtils.$xoAPayUtils.canMakeAPayPayment().then(function (result) {\n if (result) {\n return (0, _squid.$dispatch)('hermes', {\n token: _angular.$rootScope.token,\n hermesLoginRedirect: 'xoon',\n 'locale.x': _squid.$locale.lang + '_' + _squid.$locale.country,\n 'country.x': _squid.$locale.country\n });\n }\n });\n });\n}, function xcomponent() {\n if (window.xprops && window.xprops.init) {\n return _angular.$q.all([_index2.$CheckoutAppDataModel.instance(_angular.$rootScope.token).retrieve(), _index2.$CheckoutPayeeModel.instance(_angular.$rootScope.token).retrieve()]).then(function (_ref) {\n var checkoutAppData = _ref[0],\n checkoutPayee = _ref[1];\n\n return window.xprops.init({\n paymentToken: _angular.$rootScope.token,\n merchantID: checkoutPayee.merchant.id,\n cancelUrl: checkoutAppData.urls.cancel_url\n });\n });\n }\n}, function updateMerchantData() {\n if (_index.$CheckoutInputDataModel.instance(_angular.$rootScope.token).isEbayTxn()) {\n return _index2.$CheckoutAppDataModel.instance(_angular.$rootScope.token).retrieve().then(function (appData) {\n return _index.$CheckoutClientDataModel.instance(_angular.$rootScope.token).retrieve().then(function (clientData) {\n var checkoutInputData = _index.$CheckoutInputDataModel.instance(_angular.$rootScope.token);\n var identityData = clientData.merchantIdentityData();\n\n appData.merchant = {\n brand_name: identityData.brand_name,\n logo_url: identityData.logo_uri\n };\n\n appData.urls = {\n cancel_url: checkoutInputData.errorUrl('user_cancelled')\n };\n });\n });\n }\n}, function checkJavaScriptInjection() {\n if (_index.$CheckoutInputDataModel.instance(_angular.$rootScope.token).isEbayTxn()) {\n _logger.$logger.info('prox_signup_start', { cart_id: _angular.$rootScope.token });\n var redirectUri = _squid.$util.param('redirect_uri');\n\n if (redirectUri && redirectUri.indexOf('http') !== 0) {\n _logger.$logger.warn('XOON_FLOW_INVALID_REDIRECT_URI_JAVASCRIPT_INJECTION', {\n uri: redirectUri\n });\n return _angular.$q.reject(new _squid.$FallbackError({\n reason: 'invalidRedirectURI',\n product: 'ux'\n }));\n }\n }\n}, function verifyRedirectURI() {\n if (_index.$CheckoutInputDataModel.instance(_angular.$rootScope.token).isEbayTxn()) {\n var redirectUri = _squid.$util.param('redirect_uri');\n\n return _index.$CheckoutClientDataModel.instance(_angular.$rootScope.token).retrieve().then(function (clientData) {\n var isValidUri = clientData.validateRedirectUri(redirectUri) || {};\n\n if (!isValidUri.success) {\n _logger.$logger.warn('XOON_FLOW_INVALID_REDIRECT_URI', {\n uri: redirectUri\n });\n return _angular.$q.reject(new _squid.$FallbackError({\n reason: 'invalidRedirectURI',\n product: 'ux'\n }));\n }\n });\n }\n},\n\n// allow PROX to support country content separate from Hermes\nfunction proxFallbackManager() {\n if (_index.$CheckoutInputDataModel.instance(_angular.$rootScope.token).isEbayTxn()) {\n (0, _squid.$featureCountries)('guestFallback').forEach(function (country, index) {\n _squid.$config.features[country].guestFallback = false;\n });\n }\n}, function handleTagManager() {\n _angular.$window.dataLayer = {\n // Two letter country code of the current page's content\n contentCountry: _squid.$locale.country.toLowerCase(),\n // Two letter locale\n contentLanguage: _squid.$locale.lang.toLowerCase()\n };\n\n var tagManagerUrl = '//www.paypalobjects.com/tagmgmt/bs-chunk.js';\n\n // Based on the environment, Tag Manager end point can be changed. For now the local and stage end points are same.\n if (_angular.$window.location.href.indexOf('qa.paypal.com') > -1 || _angular.$window.location.href.indexOf('localhost') > -1) {\n tagManagerUrl = '//nexus.ensighten.com/paypal/stage/Bootstrap.js';\n }\n\n // Defer loading of the script when the spinner is done.\n _angular.$rootScope.$on('allLoaded', function () {\n // Defer to the end of the callstack.\n var scriptTag = createTagManagerScript(tagManagerUrl);\n\n scriptTag.defer = true;\n insertScript(scriptTag);\n });\n\n function createTagManagerScript(url) {\n var tagManagerObjec = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'tagManager';\n\n _angular.$window.tagManagerObjec = tagManagerObjec;\n\n _angular.$window[tagManagerObjec] = _angular.$window[tagManagerObjec] || function () {\n (_angular.$window[tagManagerObjec].q = _angular.$window[tagManagerObjec].q || []).push(arguments);\n };\n\n _angular.$window[tagManagerObjec].l = 1 * new Date();\n\n var scriptElement = document.createElement('script');\n scriptElement.src = url;\n\n return scriptElement;\n }\n\n function insertScript(scriptElement) {\n var firstScript = document.getElementsByTagName('script')[0];\n firstScript.parentNode.insertBefore(scriptElement, firstScript);\n }\n}, function setupMiniBrowser() {\n if (_squid.$util.param('data')) {\n return _miniBrowser.$MiniBrowser.initialize(_squid.$util.param('cancel_url'));\n }\n\n return _index2.$CheckoutAppDataModel.instance(_angular.$rootScope.token).retrieve().then(function (appData) {\n return _miniBrowser.$MiniBrowser.initialize(appData.urls.cancel_url);\n });\n}, function logStart() {\n _logger.$logger.info('app_start_design', {\n is_directintegration: _miniBrowser.$MiniBrowser.isDirectIntegration ? 1 : 0,\n is_incontext: _miniBrowser.$MiniBrowser.isMiniBrowser || _miniBrowser.$MiniBrowser.isFrame ? 1 : 0\n });\n}, function checkForSDK() {\n var isSDKintegration = window.name && window.name.indexOf('xcomponent__ppcheckout') === 0 || window.name.indexOf('zoid__ppcheckout') === 0 || _squid.$util.param('xcomponent') || _squid.$util.param('zoid');\n\n var sdkLoaded = window.paypal && window.xprops && window.paypal.Checkout && window.paypal.Checkout.isChild();\n\n if (isSDKintegration && !sdkLoaded) {\n throw new Error('Checkout loaded in an SDK integration, but no xprops found. Maybe the sdk script failed to load in the child window.');\n }\n}];\n\nangular.value(\"$Middleware\", $Middleware);\n_angular.$q;\n\n_angular.$rootScope;\n\n_angular.$window;\n\n_logger.$logger;\n\n_index.$CheckoutInputDataModel;\n\n_index2.$CheckoutAppDataModel;\n\n_index2.$CheckoutCartModel;\n\n_index2.$CheckoutPayeeModel;\n\n_miniBrowser.$MiniBrowser;\n\n_xoAPayUtils.$xoAPayUtils;\n\n_index.$CheckoutClientDataModel;\n\n_index3.$GuestUpgradeModel;\n\n_index4.$AuthModel;\n\n_squid.$FallbackError;\n\n_squid.$config;\n\n_squid.$meta;\n\n_squid.$util;\n\n_squid.$locale;\n\n_squid.$populate;\n\n_squid.$dispatch;\n\n_squid.$featureCountries;\n\n/***/ }),\n\n/***/ \"./js/lib/miniBrowser.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.$MiniBrowser = undefined;\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _index = __webpack_require__(\"../node_modules/xo-return-to-merchant/dist/index.js\");\n\nvar _integration = __webpack_require__(\"./js/lib/integration.js\");\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\nvar MiniBrowser = _squid.$Class.extend('MiniBrowser', {\n isMiniBrowser: false,\n partnerIntegration: false,\n isDirectIntegration: false,\n\n _isMiniBrowser: function _isMiniBrowser() {\n return window.name && window.name.indexOf('PPFrame') === 0 && _squid.$util.isPopup() || _squid.$util.param('incontext') === '1' || window.xchild && _squid.$util.isPopup();\n },\n _isFrame: function _isFrame() {\n return _squid.$util.isIFrame();\n },\n initialize: function initialize(cancel_url) {\n this.isMiniBrowser = _angular.$rootScope.miniBrowser = this._isMiniBrowser();\n this.isFrame = this._isFrame();\n this.partnerIntegration = _angular.$rootScope.partnerIntegration = _angular.$window.name === 'PPFrameRedirect' || _squid.$util.param('nolegacy') === '1';\n\n // this.nativeIntegration is true, whenever the query param native_xo=1 when hermes was launched\n this.nativeIntegration = _squid.$util.param('native_xo') === '1';\n\n this.isDirectIntegration = this.isMiniBrowser || this.partnerIntegration || Boolean(_squid.$util.param('incontext')) || _angular.$window.location.pathname.indexOf('/checkoutnow') > -1;\n\n _integration.$integration.setFlow(_integration.$FLOWS.CHECKOUT);\n\n if (this.partnerIntegration) {\n _integration.$integration.setFlow(_integration.$FLOWS.PARTNER);\n _logger.$logger.info('partner_integration_flow');\n } else if (this.nativeIntegration && (0, _squid.$feature)('nativexoSupport')) {\n // we are setting the flow to be native checkout type\n // whenever the nativeIntegration flag is on\n // setting this flow will enable the redirect_uri query param\n // passed to hermes to override the merchant's redirect url\n // on cancel or redirect after a successful payment\n _integration.$integration.setFlow(_integration.$FLOWS.NATIVE_CHECKOUT);\n _logger.$logger.info('nativexo_integration_flow');\n }\n\n if (this.isMiniBrowser && !this.partnerIntegration) {\n var msg = void 0;\n\n try {\n msg = {\n cancelUrl: cancel_url,\n landingUrl: _angular.$window.location.href,\n secureWindowmsg: _squid.$locale.content.scripts.secureWindowmsg\n };\n } catch (error) {\n return _logger.$logger.error('minibrowser_msg_construction_failed', { error: error });\n }\n\n if (!_index.$ReturnToMerchant.postToMerchant(msg)) {\n _logger.$logger.error('minibrowser_post_failed');\n }\n }\n }\n});\n\nvar $MiniBrowser = exports.$MiniBrowser = new MiniBrowser();\n\nangular.value(\"$MiniBrowser\", $MiniBrowser);\n_angular.$rootScope;\n\n_angular.$window;\n\n_index.$ReturnToMerchant;\n\n_integration.$integration;\n\n_integration.$FLOWS;\n\n_squid.$Class;\n\n_squid.$feature;\n\n_squid.$locale;\n\n_squid.$util;\n\n_logger.$logger;\n\n/***/ }),\n\n/***/ \"./pages/xo-add-card/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/angular/angular.min.js\"), __webpack_require__(\"../node_modules/squid/dist/module.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!./pages/xo-add-card/template.html\"), __webpack_require__(\"../node_modules/xo-models/src/fi/lib/fiApis.js\"), __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\"), __webpack_require__(\"../node_modules/xo-wallet-components/src/add-card/directive.js\"), __webpack_require__(\"../node_modules/xo-validation/dist/directive.js\"), __webpack_require__(\"../node_modules/xo-ui-components/src/tooltip/directive.js\"), __webpack_require__(\"../node_modules/xo-ui-components/src/dropdown/directive.js\"), __webpack_require__(\"../node_modules/xo-page-components/src/value-props/directive.js\"), __webpack_require__(\"../node_modules/xo-page-components/src/done/directive.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (angular, module, template) {\n\n return angular.module('hermes.page.xo-add-card.directive', ['squid', 'fi.apis', 'beaver', 'xo-add-card.directive', 'xo-validation.directive', 'xo-tooltip.directive', 'xo-dropdown.directive', 'xo-value-props.directive', 'xo-done.directive']).directive('xoPageAddCardPage', function ($rootScope) {\n\n return {\n template: template,\n\n scope: {\n token: '=?'\n },\n\n controller: function controller($scope, $rootScope, $state, $stateParams, $CheckoutSessionModel, $CheckoutAppDataModel, $CheckoutCartModel, // eslint-disable-line no-shadow\n $ShippingAddressModel, $locale, $fiApis, $logger) {\n\n function populateInfoMessage() {\n var msg = void 0;\n\n if ($stateParams.gaming === '1') {\n msg = $locale.content.get('creditcard.noEligibleFI');\n } else if ($stateParams.country === 'DE') {\n if ($stateParams.fiType === 'BANK') {\n msg = $locale.content.get('creditcard.cannotUseBank');\n } else {\n msg = $locale.content.get('creditcard.cannotUseCard');\n }\n } else {\n msg = $locale.content.get('creditcard.noFIContingency');\n }\n\n $scope.message = {\n msgs: [msg],\n type: 'error'\n };\n }\n\n populateInfoMessage();\n\n $scope.pagetitle = $locale.content.get('addCard.addACard');\n\n $scope.callbacks = {\n finish: function finish() {\n var checkoutSession = $CheckoutSessionModel.instance($rootScope.token);\n var checkoutAppData = $CheckoutAppDataModel.instance($rootScope.token);\n var checkoutCart = $CheckoutCartModel.instance($rootScope.token);\n var shippingAddress = $ShippingAddressModel.instance('123');\n\n var showGenericError = function showGenericError(code) {\n return function () {\n $state.go('checkout.genericError', { code: code });\n };\n };\n\n var makePayment = function makePayment() {\n return checkoutSession.action('createPayment', {\n data: {\n payer_id: checkoutSession.payer.id,\n intent: checkoutCart.payment_action\n },\n\n success: function success(result) {\n $rootScope.paymentComplete = true;\n $logger.info('wps_cart_to_txn_mapping', {\n cart_id: $rootScope.token,\n txn_id: result.transactionDetails && result.transactionDetails.id,\n txn_receipt_id: result.transactionDetails && result.transactionDetails.receipt_id\n });\n return $state.go('checkout.done');\n },\n\n contingencies: {\n TRANSACTION_REFUSED: showGenericError('TRANSACTION_REFUSED'),\n PAYEE_BLOCKED_TRANSACTION: showGenericError('PAYMENT_DENIED'),\n DUPLICATE_TRANSACTION: showGenericError('PAYMENT_ALREADY_DONE')\n }\n });\n };\n\n var authorize = function authorize() {\n checkoutSession.action('authorize', {\n success: function success() {\n if (checkoutAppData.doec_on_approve()) {\n return makePayment();\n } else {\n $state.go('checkout.end');\n }\n }\n });\n };\n\n var setStickyInstrument = function setStickyInstrument() {\n\n if ($stateParams.mode !== 'signup') {\n return;\n }\n var stickyInstrument = checkoutSession.selectedFuturePaymentInstrument ? undefined : checkoutSession.getSelectedStickyInstrument();\n\n if (stickyInstrument) {\n return checkoutSession.action('setStickyFI', {\n data: {\n instrument_id: stickyInstrument.instrument_id\n }\n });\n }\n };\n\n if (shippingAddress.isNew) {\n shippingAddress.save({\n data: shippingAddress,\n success: function success() {\n _angular.$q.when(setStickyInstrument())['catch'](function (err) {\n $logger.info('setStickyFI Failed', err);\n }).then(function () {\n return authorize();\n });\n }\n });\n } else {\n _angular.$q.when(setStickyInstrument())['catch'](function (err) {\n $logger.info('setStickyFI Failed', err);\n }).then($fiApis.patchCvv(checkoutSession)).then(authorize(), function (err) {\n $logger.error('patchCvv error', err);\n });\n }\n }\n };\n }\n };\n });\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n_angular.$q;\n\n/***/ }),\n\n/***/ \"./pages/xo-add-card/route.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(module, __dirname, __filename) {var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/angular/angular.min.js\"), __webpack_require__(\"../node_modules/squid/dist/index.js\"), __webpack_require__(\"../node_modules/xo-wallet-components/src/add-card/route.js\"), __webpack_require__(\"./pages/xo-add-card/directive.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (angular, squid) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n angular.module('hermes.page.xo-add-card.route', ['squid', 'xo-add-card.route', 'hermes.page.xo-add-card.directive']).factory('$AddCardPageRoute', function ($ComponentRoute) {\n\n return $ComponentRoute.extend('AddCardPageRoute', {\n name: 'pageAddCard',\n directive: 'xo-page-add-card-page',\n titleContent: 'asideHeader.addCard',\n query: ['gaming', 'country', 'fiType', 'mode'],\n trackingData: {\n templateName: 'addCard.dust',\n pageGoal: 'Add Card',\n buzname: {\n 'fullpage': {\n 'pagename': '%::fullpage-add-cc',\n 'pagename2': '%::fullpage-add-cc:guest:hermes:',\n 'version': 'guest:%:'\n // More page qualifiers come here...\n } }\n },\n children: [{\n name: '$AddCardFlowRoute',\n attributes: {\n token: 'token',\n message: 'message',\n pagetitle: 'pagetitle',\n 'parent-callbacks': 'callbacks'\n }\n }]\n });\n });\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/webpack/buildin/module.js\")(module), \"pages/xo-add-card\", \"pages/xo-add-card/route.js\"))\n\n/***/ }),\n\n/***/ \"./pages/xo-checkout/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\nvar _fn = __webpack_require__(\"../node_modules/xo-guest-components/src/fraudnet/fn.js\");\n\nvar _gdprCookieBanner = __webpack_require__(\"../node_modules/xo-models/src/gdprCookieBanner/index.js\");\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/angular/angular.min.js\"), __webpack_require__(\"../node_modules/squid/dist/index.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!./pages/xo-checkout/template.html\"), __webpack_require__(\"../node_modules/xo-ui-components/src/spinner/directive.js\"), __webpack_require__(\"../node_modules/xo-page-components/src/merchant-header/directive.js\"), __webpack_require__(\"../node_modules/xo-page-components/src/header/directive.js\"), __webpack_require__(\"../node_modules/xo-page-components/src/footer/directive.js\"), __webpack_require__(\"../node_modules/xo-page-components/src/cart/directive.js\"), __webpack_require__(\"../node_modules/xo-ui-components/src/error-tooltip/directive.js\"), __webpack_require__(\"../node_modules/xo-validation/dist/directive.js\"), __webpack_require__(\"../node_modules/xo-device-info/dist/index.js\"), __webpack_require__(\"../node_modules/xo-models/src/shippingMethod/index.js\"), __webpack_require__(\"../node_modules/xo-page-components/src/gdprCookieBanner/directive.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (angular, squid, template) {\n\n return angular.module('hermes.page.xo-checkout.directive', ['squid', 'xo-spinner.directive', 'xo-merchant-header.directive', 'xo-header.directive', 'xo-footer.directive', 'xo-cart.directive', 'xo-error-tooltip.directive', 'xo-validation.directive', 'xo-device-info', 'xo-gdpr-cookie-banner.directive']).directive('xoCheckout', function ($document, $config, $util) {\n\n return {\n template: template,\n scope: {},\n\n controller: function controller($scope, $rootScope, $state, $renderContent, $locale, $LocaleResolver, $DeviceInfo, $FallbackError, $feature, $populate, $CheckoutAppDataModel, $CheckoutCartModel, $CheckoutPayeeModel, $ShippingRuleSummaryModel) {\n\n $scope.token = $rootScope.token;\n $scope.locale = $locale;\n\n _fn.$fn.trigger();\n $scope.isGdprValid = _gdprCookieBanner.isGdprValid;\n\n function setLanguageToggleFlags() {\n var landingPage = $scope.checkoutAppData.get('flags.landing_page');\n var hermesLoginRedirectParam = $util.param('hermesLoginRedirect');\n var languageToggleFeature = $feature('languageToggle');\n\n // Language Toggle - header\n if (landingPage === 'BILLING' && !hermesLoginRedirectParam) {\n $scope.languageSwitchHeader = { show: languageToggleFeature };\n } else {\n $scope.languageSwitchFooter = { show: languageToggleFeature };\n }\n }\n\n function checkShippingRulesExist() {\n return $populate($scope, {\n shippingRulesSummary: $ShippingRuleSummaryModel.instance($rootScope.token).retrieve({\n params: {\n merchant_id: $scope.checkoutPayee.merchant.id,\n currency_code: $scope.checkoutCart.purchase.amounts.total.currency_code\n }\n })\n });\n }\n\n $populate($scope, {\n checkoutAppData: $CheckoutAppDataModel.instance($scope.token),\n checkoutCart: $CheckoutCartModel.instance($scope.token),\n checkoutPayee: $CheckoutPayeeModel.instance($scope.token)\n }).then(function () {\n setLanguageToggleFlags();\n\n var isSntSupported = $scope.checkoutAppData.is_snt_supported();\n\n // call checkShippingRulesExist only if the token is WPS and not WPS subscription flow, or the token\n // is instant update flow\n // We have instant update flow check here to avoid making unnecessary calls to shippingRulesSummary\n if (isSntSupported || $scope.checkoutCart.instantUpdateIntegration) {\n checkShippingRulesExist().then(function () {\n\n // We need instant update flow check here again, because all instant update flows will\n // not have SnTEnabled in shippingRulesSummary\n if ($scope.shippingRulesSummary && $scope.shippingRulesSummary.isSnTEnabled || $scope.checkoutCart.instantUpdateIntegration) {\n // preserve these cart amount values passed from the merchant\n // since they could get changed after SnT from profile/callback (in case instant update) is applied\n // TODO: get rid of buttonParams and start using checkoutCart in SnT module\n $scope.buttonParams = {\n shipping: $scope.checkoutCart.purchase.amounts.shipping,\n tax: $scope.checkoutCart.purchase.amounts.tax,\n total: $scope.checkoutCart.purchase.amounts.total\n };\n }\n });\n }\n });\n\n // Change html dir attribute for RTL/LTR, append RTL styling if needed.\n function setDirectionality() {\n $document.prop('documentElement').setAttribute('dir', $locale.metadata.directionality);\n }\n\n // Change html lang attribute and document title\n function localizeHead() {\n $document.prop('documentElement').setAttribute('lang', $locale.lang);\n setDirectionality();\n\n var content = $renderContent('base.payPal');\n\n if (content) {\n $document.title = content;\n }\n }\n\n function getPaymentMethod() {\n var paymentMethodViaUrl = $util.param('paymentMethod');\n var paymentMethodViaCheckoutAppData = $scope.checkoutAppData.get('user_selected_funding_source_type') === 'PAY_UPON_INVOICE' ? 'invoice' : undefined;\n\n return paymentMethodViaCheckoutAppData || paymentMethodViaUrl;\n }\n\n function checkUnbranded() {\n var paymentMethod = getPaymentMethod();\n\n if (!paymentMethod || !$config.allowedUnbrandedPayments) {\n return false;\n }\n\n // If paymentMethod in URL is NOT in the list of allowed payment methods, return false\n if ($config.allowedUnbrandedPayments.indexOf(paymentMethod) === -1) {\n return false;\n }\n\n return true;\n }\n\n $scope.isUnbranded = checkUnbranded();\n\n $scope.paymentMethod = '';\n\n if ($scope.isUnbranded) {\n $scope.paymentMethod = getPaymentMethod();\n\n if ($scope.paymentMethod === 'invoice') {\n $scope.unbrandedTitle = 'payUponInvoice.header';\n $scope.unbrandedSubTitle = 'payUponInvoice.processedBy';\n }\n }\n\n $scope.isApp = $DeviceInfo.isApp();\n\n var contentChange = $rootScope.$on('contentChange', localizeHead);\n\n localizeHead();\n\n var cancel = $rootScope.$on('allLoaded', function () {\n angular.element('#preloaderSpinner').hide();\n\n // Opera for Andriod has support for window.performance.timing but\n // not for window.performance.now()\n var loadTime = 'N/A';\n if ('now' in performance) {\n loadTime = performance.now();\n } else if (['timeOrigin', 'timing'].some(function (key) {\n return key in performance;\n })) {\n var _performance = performance,\n timeOrigin = _performance.timeOrigin,\n _performance$timing = _performance.timing,\n timing = _performance$timing === undefined ? {} : _performance$timing;\n\n var start = timeOrigin || timing.navigationStart;\n loadTime = Date.now() - start;\n }\n\n _logger.$logger.info('checkout_fpti', {\n from: 'BILLING',\n to: 'prepare_billing_page_loaded',\n page_load_time: loadTime\n });\n cancel();\n });\n\n $scope.$on('localeChange', function () {\n localizeHead();\n setLanguageToggleFlags();\n });\n\n $scope.$on('$destroy', function () {\n cancel();\n contentChange();\n });\n\n $document.bind('click', function (event) {\n $scope.$broadcast('clickBody', event.target);\n });\n }\n };\n });\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n_fn.$fn;\n\n_gdprCookieBanner.isGdprValid;\n\n_logger.$logger;\n\n/***/ }),\n\n/***/ \"./pages/xo-checkout/route.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(module, __dirname, __filename) {var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\n__webpack_require__(\"../node_modules/jquery/dist/jquery.min.js\");\n\n__webpack_require__(\"../node_modules/xo-angular-shims-placeholder/dist/angular-shims-placeholder.min.js\");\n\nvar _index = __webpack_require__(\"./js/lib/index.js\");\n\n__webpack_require__(\"../node_modules/xo-tracking/dist/index.js\");\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/angular/angular.min.js\"), __webpack_require__(\"../node_modules/squid/dist/index.js\"), __webpack_require__(\"./pages/xo-checkout/directive.js\"), __webpack_require__(\"./pages/xo-landing/route.js\"), __webpack_require__(\"./pages/xo-generic-error/route.js\"), __webpack_require__(\"./pages/xo-generic-message/route.js\"), __webpack_require__(\"./pages/xo-end/route.js\"), __webpack_require__(\"./pages/xo-guest/route.js\"), __webpack_require__(\"./pages/xo-signup/route.js\"), __webpack_require__(\"./pages/xo-add-card/route.js\"), __webpack_require__(\"../node_modules/xo-guest-components/src/multistep-signup/route.js\"), __webpack_require__(\"./pages/xo-pay-upon-invoice/route.js\"), __webpack_require__(\"../node_modules/xo-page-components/src/done/route.js\"), __webpack_require__(\"../node_modules/xo-page-components/src/route-to-complete/route.js\"), __webpack_require__(\"../node_modules/xo-form-components/src/inventory-soldout/route.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (angular, squid) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n angular.module('hermes.page.xo-checkout.route', ['squid', 'hermes.page.xo-landing.route', 'hermes.page.xo-checkout.directive', 'hermes.page.xo-generic-error.route', 'hermes.page.xo-generic-message.route', 'hermes.page.xo-end.route', 'hermes.page.xo-guest.route', 'hermes.page.xo-signup.route', 'hermes.page.xo-add-card.route', 'xo-multistep-signup.route', 'hermes.page.xo-pay-upon-invoice.route', 'xo-done', 'xo-route-to-complete']).factory('$BaseRoute', function ($ComponentRoute) {\n\n return $ComponentRoute.extend('CheckoutRoute', {\n\n defaultState: 'checkout.landing',\n middleware: _index.$Middleware,\n\n name: 'checkout',\n directive: 'xo-checkout',\n titleContent: 'base.payPal',\n children: [{\n name: '$LandingRoute',\n attributes: {\n 'is-unbranded': 'isUnbranded'\n }\n }, {\n name: '$GuestRoute',\n attributes: {\n token: 'token',\n 'is-unbranded': 'isUnbranded',\n 'payment-method': 'paymentMethod',\n 'button-params': 'buttonParams'\n }\n }, {\n name: '$SignupRoute',\n attributes: {\n token: 'token',\n 'button-params': 'buttonParams'\n }\n\n }, {\n name: '$AddCardPageRoute',\n attributes: {\n token: 'token'\n }\n\n }, {\n name: '$xoSoldOutPageRoute'\n }, {\n name: '$GenericErrorRoute'\n }, {\n name: '$GenericMessageRoute'\n }, {\n name: '$EndRoute'\n }, {\n name: '$MultistepSignupRoute',\n attributes: {\n token: 'token',\n 'button-params': 'buttonParams'\n }\n }, {\n name: '$PayUponInvoiceRoute',\n attributes: {\n token: 'token',\n 'is-unbranded': 'isUnbranded'\n }\n }, {\n name: '$DoneRoute'\n }, {\n name: '$RouteToCompleteRoute',\n attributes: {\n token: 'token'\n }\n }]\n });\n });\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n_index.$Middleware;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/webpack/buildin/module.js\")(module), \"pages/xo-checkout\", \"pages/xo-checkout/route.js\"))\n\n/***/ }),\n\n/***/ \"./pages/xo-end/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _index = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _index2 = __webpack_require__(\"../node_modules/xo-device-info/dist/index.js\");\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\nvar _uiRouter = __webpack_require__(\"../node_modules/angular-ui-router/release/angular-ui-router.min.js\");\n\nvar _index3 = __webpack_require__(\"../node_modules/xo-models/src/checkout/index.js\");\n\nvar _index4 = __webpack_require__(\"../node_modules/xo-models/src/user/index.js\");\n\nvar _index5 = __webpack_require__(\"../node_modules/xo-models/src/auth/index.js\");\n\nvar _index6 = __webpack_require__(\"../node_modules/xo-models/src/prox/index.js\");\n\nvar _index7 = __webpack_require__(\"../node_modules/xo-models/src/profilemanagement/index.js\");\n\nvar _index8 = __webpack_require__(\"../node_modules/xo-return-to-merchant/dist/index.js\");\n\nvar _returnParams = __webpack_require__(\"../node_modules/xo-page-components/src/returnParams/index.js\");\n\nvar _template = __webpack_require__(\"./pages/xo-end/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _index.$Component.extend('xoEnd', {\n\n tag: 'xo-end',\n\n template: _template2['default'],\n\n props: {},\n\n resolve: {\n models: function models() {\n return {\n payee: _index3.$CheckoutPayeeModel.instance(_angular.$rootScope.token).retrieve(),\n checkoutAppData: _index3.$CheckoutAppDataModel.instance(_angular.$rootScope.token).retrieve(),\n checkoutCart: _index3.$CheckoutCartModel.instance(_angular.$rootScope.token).retrieve(),\n checkoutSession: _index3.$CheckoutSessionModel.instance(_angular.$rootScope.token).retrieve()\n };\n },\n dependentModels: function dependentModels(resolvers) {\n return resolvers.models.then(function (models) {\n return {\n merchantPreferences: _index7.$MerchantPreferenceModel.instance(models.payee.merchant.id).retrieve()\n };\n });\n }\n },\n\n lifecycle: {\n enter: function enter() {\n angular.element('#outerWrapper').addClass('xo-end');\n _angular.$rootScope.$emit('startLoad');\n },\n exit: function exit() {\n // If there is any error in this directive, then we need to hide spinner\n // so that when user reaches generic error page, he can return to merchant\n // by clicking on \"return to merchant\" button\n _angular.$rootScope.$emit('allLoaded');\n },\n populate: function populate() {\n var _this = this;\n\n function returnMethod(merchantPreferences) {\n if (merchantPreferences) {\n return merchantPreferences.returnMethod();\n }\n return 'GET';\n }\n\n function returnUrl(checkoutAppData, merchantPreferences) {\n if (checkoutAppData.is_wps_flow() && merchantPreferences) {\n return checkoutAppData.urls.return_url || merchantPreferences.returnUrl();\n } else {\n return checkoutAppData.urls.return_url;\n }\n }\n\n function postToMerchant(wpsURL, wpsData) {\n _index8.$ReturnToMerchant.postTo(wpsURL, wpsData);\n }\n\n var goToMerchant = function goToMerchant(wpsURL, wpsData) {\n // if PDT is disabled don't send params in the url\n if (_this.dependentModels.merchantPreferences && !_this.dependentModels.merchantPreferences.pdtEnabled()) {\n return _index8.$ReturnToMerchant.goTo(wpsURL);\n }\n return _index8.$ReturnToMerchant.goTo(_index.$util.buildURL(wpsURL, wpsData));\n };\n\n _angular.$q.when().then(function () {\n\n /*\n If we're in an in-context flow, the parent button\n iframe may need the access token to continue running\n and execute the payment (e.g. in 3rd party cookies\n disabled mode)\n We reload the auth model, since after the user is\n onboarded this model is not updated, then pass the\n access token up. The token will only be passed if\n we're on the same-domain as the parent button.\n */\n\n if (window.xprops && window.xprops.onAuth) {\n var auth = _index5.$AuthModel.instance();\n\n return auth.reload().then(function () {\n window.xprops.onAuth({ accessToken: auth.access_token });\n });\n }\n }).then(function () {\n\n // handle the return url with post and get , with and without PDT for WPS alone\n // PDT - Payment Data Transfer\n if (_this.models.checkoutAppData.is_wps_flow()) {\n var wpsURL = returnUrl(_this.models.checkoutAppData, _this.dependentModels.merchantPreferences);\n var returnToMerchantMethod = returnMethod(_this.dependentModels.merchantPreferences);\n var isWPSCart = _this.models.checkoutAppData.flags.is_cart_upload_flow || _this.models.checkoutAppData.flags.is_shopping_cart_flow;\n var wpsParams = (0, _returnParams.$returnParams)(_this.models.checkoutCart, _this.models.checkoutSession, returnToMerchantMethod, 'WPS', isWPSCart);\n\n return returnToMerchantMethod === 'POST' ? postToMerchant(wpsURL, wpsParams) : goToMerchant(wpsURL, wpsParams);\n }\n\n var params = {};\n // Creating the checkoutInputData here so that it would not make payer-id call.\n var checkoutInputData = _index4.$CheckoutInputDataModel.instance(_angular.$rootScope.token);\n\n // Don't post PayerID for RT without purchase\n if (!_this.models.checkoutCart.isBillingNoPurchase()) {\n params.PayerID = _this.models.checkoutSession.payer.id;\n }\n\n var billingData = _this.models.checkoutCart.billing;\n\n // exclude BA token in the returnUrl for external merchant - (merchant not calling BEAM directly)\n if (billingData && billingData.ba_token && !_this.models.checkoutAppData.legacy_billing_integration) {\n params.ba_token = billingData.ba_token;\n }\n\n // When \"redirect_uri\" is passed as a query param\n if (_index.$integration.getConfig('REDIRECT_QUERY_PARAM') && _index.$util.param('redirect_uri')) {\n params.return_uri = _this.models.checkoutAppData.urls.return_url ? _index.$util.buildURL(_this.models.checkoutAppData.urls.return_url, params) : null;\n\n // Add these params after building `return_uri` to ensure they are not added into the final url\n params.intent = _this.models.checkoutCart.payment_action;\n params.opType = 'payment';\n params.paymentId = _this.models.checkoutAppData.payment_id;\n params.token = _angular.$rootScope.token;\n }\n\n var handleRedirection = function handleRedirection(url) {\n var isHTTPUrl = Boolean(url.indexOf('http') === 0 || url.indexOf('www') === 0);\n var isMobileDevice = Boolean(_index2.$DeviceInfo.isDevice() && !isHTTPUrl);\n\n /* Webview to App view switching is not happening properly\n * so to handle , adding a work around by adding cancel / return to merchant url\n * on success page\n * routeToComplete is the route which shows cancel / return to merchant url*/\n if (isMobileDevice) {\n _logger.$logger.info('Switching_Webview_To_App_view', {\n url: url\n });\n _angular.$window.onunload = _angular.$window.onbeforeunload = function () {\n // leave this blank , having this comment for lint warning - Unexpected Empty Function\n };\n _angular.$window.location = url;\n\n return _uiRouter.$state.go('checkout.routeToComplete', {\n url: url,\n urlType: 'success'\n });\n } else {\n _index8.$ReturnToMerchant.goTo(url);\n }\n\n return _index.$unresolved;\n };\n\n function finishProxFlow() {\n // for Prox Signup flow (eBay), generate auth code\n var auth = _index5.$AuthModel.instance();\n\n _logger.$logger.info('prox_exit_login_code_start');\n\n return auth.action('loginCode', {\n data: {\n user: {},\n client: {\n client_id: _index.$config.proxStsClientId,\n redirect_uri: checkoutInputData.redirect_uri,\n scope: checkoutInputData.scope,\n id_token: '',\n nonce: auth.nonce,\n response_type: 'code',\n skip_oauth: false,\n skip_consent: true,\n target_client_id: _index.$util.base64Decode(checkoutInputData.client_id),\n visitor_id: auth.visitor_id,\n scope_consent_context: 'access_token'\n }\n }\n\n })['catch'](function (err) {\n _logger.$logger.error('prox_exit_login_code_error', err);\n _index8.$ReturnToMerchant.goTo(checkoutInputData.errorUrl(err.message));\n\n return _index.$unresolved;\n }).then(function (loginCodeResult) {\n if (loginCodeResult && loginCodeResult.data && loginCodeResult.data.code) {\n _logger.$logger.info('prox_exit_login_code_success');\n return handleRedirection(checkoutInputData.successUrl(loginCodeResult.data.code));\n } else {\n _logger.$logger.error('prox_exit_login_code_not_found');\n _index8.$ReturnToMerchant.goTo(checkoutInputData.errorUrl('auth_code_error'));\n\n return _index.$unresolved;\n }\n });\n }\n\n if (!checkoutInputData.isEbayTxn()) {\n // non-Ebay/xoon flow\n return _angular.$q.when().then(function () {\n if (window.xprops && window.xprops.onAuthorize) {\n _logger.$logger.done();\n _angular.$rootScope.$emit('loading');\n\n var xparams = {\n paymentToken: _angular.$rootScope.token,\n orderID: _angular.$rootScope.token,\n billingToken: params['ba_token'],\n payerID: params['PayerID'],\n paymentID: params['paymentId'] || _this.models.checkoutAppData.payment_id,\n intent: _this.models.checkoutCart.payment_action\n };\n\n if (_this.models.checkoutAppData.get('urls.return_url')) {\n xparams.returnUrl = _index.$util.buildURL(_this.models.checkoutAppData.get('urls.return_url'), params);\n }\n\n return window.xprops.onAuthorize(xparams);\n } else if (_index.$integration.getConfig('REDIRECT_QUERY_PARAM') && _index.$util.param('redirect_uri')) {\n var redirect = _index.$util.buildURL(_index.$util.param('redirect_uri'));\n\n _logger.$logger.info('Nativeapp_Redirection', {\n redirect: redirect\n });\n return handleRedirection(_index.$util.buildURL(redirect, params));\n } else {\n return handleRedirection(_index.$util.buildURL(_this.models.checkoutAppData.get('urls.return_url'), params));\n }\n });\n } else {\n // PrOX flow only\n return _angular.$q.when().then(function () {\n _logger.$logger.info('prox_exit_for_authcode_start');\n if (_index.$util.param('fromLipp') === 'true') {\n var lippParamList = {\n client_id: _index.$util.param('client_id'),\n scope: _index.$util.param('scope'),\n state: _index.$util.param('state'),\n redirect_uri: _index.$util.param('redirect_uri'),\n metadata_id: _index.$util.param('cart_id')\n };\n var lippUrl = _index.$util.buildURL(_angular.$window.location.protocol + '//' + _angular.$window.location.host + _index.$config.urls.lippRedirectUrl, lippParamList);\n\n // reroute to LIPP to generate authcode if send from lipp\n _logger.$logger.info('XOON_REDIRECT_TO_LIPP_FOR_AUTHCODE');\n return _index8.$ReturnToMerchant.goTo(lippUrl, true);\n }if (_index.$util.param('ctxId')) {\n // for UL flow\n return _index6.$ContextualLoginModel.instance(_angular.$rootScope.token).retrieve().then(function (response) {\n if (response.success) {\n _logger.$logger.info('XOON_REDIRECT_TO_UL_FOR_AUTHCODE');\n _logger.$logger.info('checkout_fpti', { from: 'xoon_ul_auth_code', to: 'ul_auth_code' });\n var clUrl = _angular.$window.location.protocol + '//' + _angular.$window.location.host + _index.$config.urls.contextualLoginRedirectUrl + _index.$util.param('ctxId');\n\n return _index8.$ReturnToMerchant.goTo(clUrl, true);\n } else {\n _logger.$logger.error('XOON_UNABLE_TO_UPDATE_PAYLOAD_TO_UL_FOR_AUTHCODE');\n _logger.$logger.info('checkout_fpti', { from: 'xoon_ul_auth_code', to: 'regular_prox_ul_payload_update_error' });\n return finishProxFlow();\n }\n });\n } else {\n return finishProxFlow();\n }\n });\n }\n }); // end of then function\n } // populate\n\n }\n\n});\n\n\n_angular.$q;\n\n_angular.$rootScope;\n\n_angular.$window;\n\n_index.$Component;\n\n_index.$config;\n\n_index.$util;\n\n_index.$unresolved;\n\n_index.$integration;\n\n_index2.$DeviceInfo;\n\n_logger.$logger;\n\n_uiRouter.$state;\n\n_index3.$CheckoutSessionModel;\n\n_index3.$CheckoutAppDataModel;\n\n_index3.$CheckoutPayeeModel;\n\n_index3.$CheckoutCartModel;\n\n_index4.$CheckoutInputDataModel;\n\n_index5.$AuthModel;\n\n_index6.$ContextualLoginModel;\n\n_index7.$MerchantPreferenceModel;\n\n_index8.$ReturnToMerchant;\n\n_returnParams.$returnParams;\nmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ \"./pages/xo-end/route.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(module, __dirname, __filename) {var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\n__webpack_require__(\"./pages/xo-end/directive.js\");\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/angular/angular.min.js\"), __webpack_require__(\"../node_modules/squid/dist/index.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (angular, squid) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n angular.module('hermes.page.xo-end.route', ['squid']).factory('$EndRoute', function ($ComponentRoute) {\n\n return $ComponentRoute.extend('EndRoute', {\n name: 'end',\n directive: 'xo-end'\n });\n });\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/webpack/buildin/module.js\")(module), \"pages/xo-end\", \"pages/xo-end/route.js\"))\n\n/***/ }),\n\n/***/ \"./pages/xo-end/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
      \\n \\n
      \\n\"\n\n/***/ }),\n\n/***/ \"./pages/xo-generic-error/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.$xoGenericErrorPageComponent = undefined;\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _template = __webpack_require__(\"./pages/xo-generic-error/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\n__webpack_require__(\"../node_modules/xo-models/src/checkout/index.js\");\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/generic-error/directive.js\");\n\n__webpack_require__(\"../node_modules/xo-ui-components/src/message/directive.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar $xoGenericErrorPageComponent = exports.$xoGenericErrorPageComponent = _squid.$Component.extend('$xoGenericErrorPageComponent', {\n tag: 'xo-generic-error-page',\n template: _template2['default'],\n\n controller: function controller($scope, $rootScope, // eslint-disable-line no-shadow\n $locale, $CheckoutInputDataModel, $util, $logger, $state) {\n\n $scope.token = $rootScope.token;\n var terminalKey = 'terminal-error-' + $scope.token,\n refreshKey = 'has-seen-error-' + $scope.token;\n\n function renderErrorPage() {\n // prevent render flicker\n $scope.shouldRender = true;\n\n if ($CheckoutInputDataModel.instance($scope.token).isEbayTxn()) {\n $scope.cancelUrl = $util.param('redirect_uri');\n $scope.merchant = $locale.content.get('signup.ebay');\n }\n }\n\n if (!$util.sessionStorageEnabled() || !$scope.token || sessionStorage.getItem(terminalKey)) {\n return renderErrorPage();\n }\n\n // is not a refresh, user landing for the first time on generic error page.\n if (!sessionStorage.getItem(refreshKey)) {\n sessionStorage.setItem(refreshKey, '1');\n return renderErrorPage();\n } else {\n // This is a refresh. Go to guest page if a refresh happens, don't show generic error page\n $logger.info('checkout_fpti', {\n user_refresh: 1\n });\n // delete the refresh key, so that next time renders the error page.\n sessionStorage.removeItem(refreshKey);\n // go guest page if a refresh happens\n $state.go('checkout.landing')['catch'](function () {\n // don't try to do this again\n sessionStorage.setItem(terminalKey, '1');\n });\n }\n }\n});\n\nangular.value(\"$xoGenericErrorPageComponent\", $xoGenericErrorPageComponent);\n_squid.$Component;\n\n/***/ }),\n\n/***/ \"./pages/xo-generic-error/route.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(module, __dirname, __filename) {var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/angular/angular.min.js\"), __webpack_require__(\"../node_modules/squid/dist/index.js\"), __webpack_require__(\"./pages/xo-generic-error/directive.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (angular, squid) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n angular.module('hermes.page.xo-generic-error.route', ['squid', 'hermes.page.xo-generic-error.directive']).factory('$GenericErrorRoute', function ($ComponentRoute) {\n\n return $ComponentRoute.extend('GenericErrorRoute', {\n name: 'genericError',\n directive: 'xo-generic-error-page',\n titleContent: 'genericError.pleaseTryAgain',\n query: ['code'],\n // need to find these values\n trackingData: {\n templateName: 'genericError.dust',\n pageGoal: 'Generic Error',\n buzname: {\n 'fullpage': {\n 'pagename': '%::fullpage-generic-error',\n 'pagename2': '%::fullpage-generic-error:member:hermes:',\n 'version': 'member:%:'\n }\n }\n },\n children: []\n });\n });\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/webpack/buildin/module.js\")(module), \"pages/xo-generic-error\", \"pages/xo-generic-error/route.js\"))\n\n/***/ }),\n\n/***/ \"./pages/xo-generic-error/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"\\n\"\n\n/***/ }),\n\n/***/ \"./pages/xo-generic-message/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/angular/angular.min.js\"), __webpack_require__(\"../node_modules/squid/dist/index.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!./pages/xo-generic-message/template.html\"), __webpack_require__(\"../node_modules/xo-models/src/checkout/index.js\"), __webpack_require__(\"../node_modules/xo-ui-components/src/generic-message/directive.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (angular, squid, template) {\n return angular.module('hermes.page.xo-generic-message.directive', ['squid', 'xomodel.checkout', 'xo-generic-message.directive']).directive('xoGenericMessagePage', function ($rootScope) {\n\n return {\n template: template,\n\n controller: function controller($scope, $rootScope, // eslint-disable-line no-shadow\n $stateParams, $state, $logger, $CheckoutAppDataModel, $util, $q, $populate) {\n\n $scope.token = $rootScope.token;\n angular.element('#defaultCancelLink').hide();\n\n var stateChangeStart = $rootScope.$on('$stateChangeStart', function (event, toState, toParams, fromState, fromParams) {\n event.preventDefault();\n });\n\n $rootScope.$on('$destroy', stateChangeStart);\n }\n };\n });\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n/***/ }),\n\n/***/ \"./pages/xo-generic-message/route.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(module, __dirname, __filename) {var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/angular/angular.min.js\"), __webpack_require__(\"../node_modules/squid/dist/index.js\"), __webpack_require__(\"./pages/xo-generic-message/directive.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (angular, squid) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n angular.module('hermes.page.xo-generic-message.route', ['squid', 'hermes.page.xo-generic-message.directive']).factory('$GenericMessageRoute', function ($ComponentRoute) {\n\n return $ComponentRoute.extend('GenericMessageRoute', {\n name: 'genericMessage',\n directive: 'xo-generic-message-page',\n titleContent: 'genericError.pleaseTryAgain',\n query: ['code', 'returnUrl'],\n // need to find these values\n trackingData: {},\n children: []\n });\n });\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/webpack/buildin/module.js\")(module), \"pages/xo-generic-message\", \"pages/xo-generic-message/route.js\"))\n\n/***/ }),\n\n/***/ \"./pages/xo-guest-upgrade/route.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(module, __dirname, __filename) {var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\n__webpack_require__(\"../node_modules/jquery/dist/jquery.min.js\");\n\n__webpack_require__(\"../node_modules/xo-angular-shims-placeholder/dist/angular-shims-placeholder.min.js\");\n\n__webpack_require__(\"./js/lib/index.js\");\n\n__webpack_require__(\"../node_modules/xo-tracking/dist/index.js\");\n\nvar _middleware = __webpack_require__(\"./js/lib/middleware.js\");\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/angular/angular.min.js\"), __webpack_require__(\"../node_modules/squid/dist/index.js\"), __webpack_require__(\"./pages/xo-generic-error/route.js\"), __webpack_require__(\"../node_modules/xo-guest-components/src/guest-upgrade/directive.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (angular, squid) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n angular.module('hermes.page.xo-guest-upgrade.route', ['squid', 'hermes.page.xo-generic-error.route', 'xo-guest-upgrade.directive']).factory('$GuestUpgradeRoute', function ($ComponentRoute) {\n\n return $ComponentRoute.extend('GuestUpgradeRoute', {\n\n defaultState: 'guestupgrade',\n middleware: _middleware.$Middleware,\n\n name: 'guestupgrade',\n directive: 'xo-guest-upgrade',\n\n // Uncomment the following line to suffix content to\n // the title of the page\n // Base title is 'PayPal Checkout'\n // titleContent: 'accountCreationGuest.heading',\n\n trackingData: {\n templateName: 'xoguestupgrade.dust',\n pageGoal: 'guest upgrade',\n pageQualifier: 'guestupgrade',\n buzname: {\n 'guestupgrade': {\n 'pagename': '%::guestupgrade',\n 'pagename2': '%::guestupgrade:prox-guest-upgrade',\n 'version': 'version-1:%:'\n }\n }\n },\n children: [{\n name: '$GenericErrorRoute'\n }]\n });\n });\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n_middleware.$Middleware;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/webpack/buildin/module.js\")(module), \"pages/xo-guest-upgrade\", \"pages/xo-guest-upgrade/route.js\"))\n\n/***/ }),\n\n/***/ \"./pages/xo-guest/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/angular/angular.min.js\"), __webpack_require__(\"../node_modules/squid/dist/module.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!./pages/xo-guest/template.html\"), __webpack_require__(\"../node_modules/xo-page-components/src/value-props/directive.js\"), __webpack_require__(\"../node_modules/xo-guest-components/src/guest/directive.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (angular, module, template) {\n\n return angular.module('hermes.page.xo-guest.directive', ['squid', 'xo-value-props.directive', 'xo-onboard.payment.directive']).directive('xoGuest', function ($rootScope, $SingleStepModel) {\n\n return {\n template: template,\n\n scope: {\n token: '=?',\n parentCallbacks: '=?',\n isUnbranded: '=?',\n paymentMethod: '=?',\n buttonParams: '=?'\n },\n\n controller: function controller($scope, $state) {\n $scope.mode = 'guest';\n $scope.backUri = 'checkout.guest';\n $scope.singleStepModel = new $SingleStepModel();\n\n $scope.onComplete = function () {\n $state.go('checkout.end');\n };\n }\n };\n });\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n/***/ }),\n\n/***/ \"./pages/xo-guest/route.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(module, __dirname, __filename) {var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/angular/angular.min.js\"), __webpack_require__(\"../node_modules/squid/dist/index.js\"), __webpack_require__(\"./pages/xo-guest/directive.js\"), __webpack_require__(\"./pages/xo-sidebar/route.js\"), __webpack_require__(\"../node_modules/xo-guest-components/src/guest-upgrade-interstitial/route.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (angular, squid) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n angular.module('hermes.page.xo-guest.route', ['squid', 'hermes.page.xo-guest.directive', 'hermes.page.xo-sidebar.route']).factory('$GuestRoute', function ($ComponentRoute) {\n\n return $ComponentRoute.extend('GuestRoute', {\n name: 'guest',\n directive: 'xo-guest',\n\n // Uncomment the following line to suffix content to\n // the title of the page\n // Base title is 'PayPal Checkout'\n // titleContent: 'accountCreationGuest.heading',\n\n trackingData: {\n fptiState: 'guest_xo',\n trackStateExit: false,\n templateName: 'guest.dust',\n pageGoal: 'Payment Start',\n pageQualifier: 'guest',\n buzname: {\n 'guest': {\n 'pagename': '%::fullpage-guest',\n 'pagename2': '%::fullpage-guest:member:hermes:',\n 'version': 'guest:%:'\n },\n 'signup': {\n 'pagename': '%::fullpage-guestSignup',\n 'pagename2': '%::fullpage-guestSignup:member:hermes:',\n 'version': 'guestSignup:%:'\n // More page qualifiers come here...\n } }\n },\n children: [{\n name: '$SidebarRoute',\n attributes: {\n 'back-uri': 'backUri',\n 'parent-model': 'singleStepModel'\n }\n }, {\n name: '$GuestUpgradeInterstitialRoute',\n attributes: {\n token: 'token',\n 'parent-model': 'singleStepModel'\n }\n }]\n });\n });\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/webpack/buildin/module.js\")(module), \"pages/xo-guest\", \"pages/xo-guest/route.js\"))\n\n/***/ }),\n\n/***/ \"./pages/xo-landing/helper.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.landingPageResolver = undefined;\n\nvar _paypalSdkConstants = __webpack_require__(\"../node_modules/paypal-sdk-constants/index.js\");\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _index = __webpack_require__(\"../node_modules/xo-models/src/checkout/index.js\");\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar landingFlow = function landingFlow(models) {\n var merchantCountry = models.checkoutAppData.get('merchant.merchant_country');\n var merchantId = models.checkoutPayeeModel.getId();\n var paymentMethodViaUrl = _squid.$util.param('paymentMethod');\n var paymentMethodViaCheckoutAppData = models.checkoutAppData.get('user_selected_funding_source_type') === 'PAY_UPON_INVOICE' ? 'invoice' : undefined;\n var paymentMethod = paymentMethodViaCheckoutAppData || paymentMethodViaUrl;\n var isUnbranded = paymentMethod !== undefined;\n\n function getProcessedRoute(appRoute) {\n var isForcedSignup = void 0;\n\n switch (appRoute) {\n case 'checkout.guest':\n isForcedSignup = 0;\n break;\n case 'checkout.signup':\n case 'checkout.multistepsignup':\n isForcedSignup = 1;\n break;\n default:\n isForcedSignup = -1;\n break;\n }\n\n _logger.$logger.info('checkout_fpti', {\n from: 'LANDING_PAGE_PARAM',\n forced_signup_offered: isForcedSignup,\n landing_page: 'Billing',\n locale: _squid.$locale.lang + '_' + _squid.$locale.country\n });\n\n return appRoute;\n }\n\n function callEPM() {\n return _index.$FlowEligibilityModel.instance(_angular.$rootScope.token).retrieve({\n params: {\n localeCountry: _squid.$locale.country,\n fundingSource: window.xprops && window.xprops.fundingSource,\n merchantId: merchantId,\n merchantCountry: merchantCountry\n }\n }).then(function (flowEligibility) {\n var mode = flowEligibility.guest ? 'guest' : 'signup';\n _logger.$logger.info(mode + '_flow_offered_by_epm_at_route');\n var appRoute = mode === 'signup' ? 'checkout.signup' : 'checkout.guest';\n return getProcessedRoute(appRoute);\n });\n }\n\n if (_squid.$config.deploy.isLocal() || _squid.$config.deploy.isStage()) {\n var passedInExp = _squid.$util.param('showExp');\n\n if ('guest'.includes(passedInExp)) {\n return getProcessedRoute('checkout.guest');\n }\n\n if ('signup'.includes(passedInExp)) {\n return getProcessedRoute('checkout.signup');\n }\n }\n\n var _ref = window.xprops || {},\n _ref$fundingSource = _ref.fundingSource,\n fundingSourceFromXprops = _ref$fundingSource === undefined ? '' : _ref$fundingSource,\n _ref$fundingOffered = _ref.fundingOffered,\n fundingOfferedFromXprops = _ref$fundingOffered === undefined ? [] : _ref$fundingOffered;\n\n function isSPBSignEligible() {\n // fundingOfferedFromXprops is already an array from xprops.\n if (fundingSourceFromXprops === _paypalSdkConstants.FUNDING.PAYPAL && fundingOfferedFromXprops.includes(_paypalSdkConstants.FUNDING.CARD)) {\n return (0, _squid.$pxp)('xo_xoon_spb_signup', 'xo_xoon_spb_signup_test', undefined, false, true).then(function (result) {\n var treatmentName = result && result.treatment_name;\n return treatmentName === 'xo_xoon_spb_signup_test';\n });\n }\n return _angular.$q.resolve(false);\n }\n\n return isSPBSignEligible().then(function (spbSignupEligible) {\n if (spbSignupEligible) {\n return getProcessedRoute('checkout.signup');\n } else if (isUnbranded) {\n var isUnbrandedAllowed = (0, _squid.$feature)('unbranded', true, merchantCountry);\n var isPuiAllowed = (0, _squid.$feature)('invoicePayment', true, merchantCountry);\n\n if (isUnbrandedAllowed && isPuiAllowed && paymentMethod === 'invoice') {\n return getProcessedRoute('checkout.pay-upon-invoice');\n }\n return getProcessedRoute('checkout.guest');\n } else if (models.checkoutAppData.get('flags.payment_experience_initiator') === 'PAYPAL_PLUS' && _squid.$util.param('exp') === 'signup') {\n return getProcessedRoute('checkout.signup');\n } else if ((0, _squid.$feature)('multiStepSignup', false, _squid.$locale.country)) {\n return getProcessedRoute('checkout.multistepsignup');\n } else if (models.checkoutInputData.isEbayTxn()) {\n // force signup for eBay users\n _logger.$logger.info('ebay_flow_signup');\n return getProcessedRoute('checkout.signup');\n } else {\n // if you here means, now we need to determine the route based on symphony EPM call.\n return callEPM();\n }\n });\n};\n\nvar landingPageResolver = {\n landingFlow: landingFlow\n};\n\nexports.landingPageResolver = landingPageResolver;\n\n\n_paypalSdkConstants.FUNDING;\n\n_squid.$util;\n\n_squid.$feature;\n\n_squid.$config;\n\n_squid.$locale;\n\n_squid.$pxp;\n\n_index.$FlowEligibilityModel;\n\n_logger.$logger;\n\n_angular.$q;\n\n_angular.$rootScope;\n\n/***/ }),\n\n/***/ \"./pages/xo-landing/route.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.$LandingRoute = undefined;\n\nvar _angular = __webpack_require__(\"../node_modules/angular/angular.min.js\");\n\nvar _squid = __webpack_require__(\"../node_modules/squid/dist/index.js\");\n\nvar _logger = __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\");\n\nvar _index = __webpack_require__(\"../node_modules/xo-models/src/user/index.js\");\n\nvar _index2 = __webpack_require__(\"../node_modules/xo-models/src/checkout/index.js\");\n\nvar _index3 = __webpack_require__(\"../node_modules/xo-models/src/inventory/index.js\");\n\nvar _helper = __webpack_require__(\"./pages/xo-landing/helper.js\");\n\nvar $LandingRoute = exports.$LandingRoute = _squid.$ComponentRoute.extend('LandingRoute', {\n name: 'landing',\n\n // Uncomment the following line to suffix content to\n // the title of the page\n // Base title is 'PayPal Checkout'\n // titleContent: 'accountCreationGuest.heading',\n\n scope: {\n isUnbranded: '=?'\n },\n\n trackingData: {\n fptiState: 'landing',\n trackStateExit: true\n },\n\n init: function init() {\n this._super.init.apply(this);\n\n _squid.$event.on('countryChange', function () {\n _index2.$FlowEligibilityModel.instance(_angular.$rootScope.token).invalidate();\n });\n },\n\n\n resolve: {\n action: function action() {\n var models = {};\n\n return (0, _squid.$populate)(models, {\n checkoutCart: _index2.$CheckoutCartModel.instance(_angular.$rootScope.token),\n checkoutPayeeModel: _index2.$CheckoutPayeeModel.instance(_angular.$rootScope.token),\n checkoutAppData: _index2.$CheckoutAppDataModel.instance(_angular.$rootScope.token),\n checkoutInputData: _index.$CheckoutInputDataModel.instance(_angular.$rootScope.token)\n }).then(function () {\n // C2 ramp - force CN country code to C2 upon landing\n if (_squid.$locale.country === 'CN') {\n _squid.$locale.change('C2', _squid.$locale.lang);\n _logger.$logger.info('CN_locale_forced_to_C2');\n }\n }).then(function () {\n\n var cartHasInventory = models.checkoutCart.get('cartHasInventory');\n\n if (_squid.$config.enableInventoryWPS && cartHasInventory) {\n var inventoryModel = _index3.$InventoryModel.instance(_angular.$rootScope.token);\n var inventoryInput = {\n items: models.checkoutCart.get('purchase.items'),\n merchantId: models.checkoutPayeeModel.getId()\n };\n\n return inventoryModel.action('getInventory', {\n data: inventoryInput,\n success: function success(inventoryResponse) {\n if (inventoryResponse.showSoldoutPage) {\n return {\n to: 'checkout.soldout',\n params: {\n items: encodeURIComponent(inventoryResponse.soldoutItems),\n soldOutUrl: encodeURIComponent(inventoryResponse.soldoutUrl)\n }\n };\n } else {\n inventoryModel.setInvetoryItems(inventoryResponse);\n return _helper.landingPageResolver.landingFlow(models);\n }\n }\n });\n } else {\n return _helper.landingPageResolver.landingFlow(models);\n }\n });\n }\n }\n});\n\nangular.value(\"$LandingRoute\", $LandingRoute);\n_angular.$rootScope;\n\n_squid.$ComponentRoute;\n\n_squid.$config;\n\n_squid.$event;\n\n_squid.$locale;\n\n_squid.$populate;\n\n_logger.$logger;\n\n_index.$CheckoutInputDataModel;\n\n_index2.$CheckoutAppDataModel;\n\n_index2.$CheckoutPayeeModel;\n\n_index2.$CheckoutCartModel;\n\n_index2.$FlowEligibilityModel;\n\n_index3.$InventoryModel;\n\n_helper.landingPageResolver;\n\n/***/ }),\n\n/***/ \"./pages/xo-pay-upon-invoice/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/angular/angular.min.js\"), __webpack_require__(\"../node_modules/squid/dist/module.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!./pages/xo-pay-upon-invoice/template.html\"), __webpack_require__(\"../node_modules/xo-beaver/dist/logger.js\"), __webpack_require__(\"../node_modules/xo-page-components/src/value-props/directive.js\"), __webpack_require__(\"../node_modules/xo-wallet-components/src/pay-upon-invoice/directive.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (angular, module, template) {\n\n return angular.module('hermes.page.xo-pay-upon-invoice.directive', ['squid', 'xo-value-props.directive', 'xo-pay-upon-invoice.directive']).directive('xoPayUponInvoicePage', function ($rootScope, $logger) {\n\n return {\n template: template,\n\n scope: {\n token: '=?',\n isUnbranded: '=?'\n },\n\n controller: function controller($scope, $rootScope, $state, $locale) {// eslint-disable-line no-shadow\n\n }\n };\n });\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n/***/ }),\n\n/***/ \"./pages/xo-pay-upon-invoice/route.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(module, __dirname, __filename) {var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/angular/angular.min.js\"), __webpack_require__(\"../node_modules/squid/dist/index.js\"), __webpack_require__(\"./pages/xo-pay-upon-invoice/directive.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (angular, squid) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n angular.module('hermes.page.xo-pay-upon-invoice.route', ['squid', 'hermes.page.xo-pay-upon-invoice.directive']).factory('$PayUponInvoiceRoute', function ($ComponentRoute) {\n\n return $ComponentRoute.extend('PayUponInvoiceRoute', {\n name: 'pay-upon-invoice',\n directive: 'xo-pay-upon-invoice-page',\n\n // Uncomment the following line to suffix content to\n // the title of the page\n // Base title is 'PayPal Checkout'\n // titleContent: 'payment.payWithCard',\n\n trackingData: {\n templateName: 'pay-upon-invoice.dust',\n pageGoal: 'Payment Start',\n pageQualifier: 'pay-upon-invoice',\n buzname: {\n 'pay-upon-invoice': {\n 'pagename': '%::fullpage-pay-upon-invoice',\n 'pagename2': '%::fullpage-pay-upon-invoice:guest:hermes:',\n 'version': 'pay-upon-invoice:%:'\n // More page qualifiers come here...\n } }\n },\n children: []\n });\n });\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/webpack/buildin/module.js\")(module), \"pages/xo-pay-upon-invoice\", \"pages/xo-pay-upon-invoice/route.js\"))\n\n/***/ }),\n\n/***/ \"./pages/xo-sidebar-installment-options/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/angular/angular.min.js\"), __webpack_require__(\"../node_modules/squid/dist/index.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!./pages/xo-sidebar-installment-options/template.html\"), __webpack_require__(\"../node_modules/xo-page-components/src/aside-header/directive.js\"), __webpack_require__(\"../node_modules/xo-wallet-components/src/installment-options/directive.js\"), __webpack_require__(\"../node_modules/xo-tray-height/dist/directive.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (angular, squid, template) {\n\n return angular.module('hermes.page.xo-sidebar-installment-options.directive', ['squid', 'xo-aside-header.directive', 'xo-installment-options.directive', 'xo-tray-height.directive']).directive('xoSidebarInstallmentOptionsPage', function () {\n\n return {\n template: template,\n\n scope: {\n backUri: '=?',\n parentModel: '=?'\n },\n\n controller: function controller($scope, $rootScope, $state) {\n $scope.token = $rootScope.token;\n\n $scope.cardInfo = {\n number: $scope.parentModel.onboard.card.number.replace(/ /g, ''),\n type: $scope.parentModel.onboard.card.type\n };\n\n $scope.onComplete = function (result) {\n $scope.parentModel.setProperties({\n selectedInstallmentData: result\n });\n\n angular.element('#paymentMethod').removeClass('ng-invalid'); // FIXME : setup a callback in xo-multistep-signup\n\n $state.go($scope.backUri);\n };\n\n $scope.$emit('populated');\n }\n };\n });\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n/***/ }),\n\n/***/ \"./pages/xo-sidebar-installment-options/route.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(module, __dirname, __filename) {var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/angular/angular.min.js\"), __webpack_require__(\"../node_modules/squid/dist/index.js\"), __webpack_require__(\"./pages/xo-sidebar-installment-options/directive.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (angular, squid) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n angular.module('hermes.page.xo-sidebar-installment-options.route', ['squid', 'hermes.page.xo-sidebar-installment-options.directive']).factory('$SidebarInstallmentOptionsRoute', function ($ComponentRoute) {\n\n return $ComponentRoute.extend('InstallmentOptionsRoute', {\n name: 'installmentOptions',\n directive: 'xo-sidebar-installment-options-page',\n\n // Uncomment the following line to suffix content to\n // the title of the page\n // Base title is 'PayPal Checkout'\n // titleContent: 'accountCreationGuest.heading',\n\n trackingData: {\n templateName: 'tray/installmentOptions.dust',\n pageGoal: 'Installment Options',\n buzname: {\n 'fullpage': {\n 'pagename': '%::fullpage-installment-options',\n 'pagename2': '%::fullpage-installment-options::hermes:',\n 'version': ':%:'\n }\n }\n },\n children: []\n });\n });\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/webpack/buildin/module.js\")(module), \"pages/xo-sidebar-installment-options\", \"pages/xo-sidebar-installment-options/route.js\"))\n\n/***/ }),\n\n/***/ \"./pages/xo-sidebar/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/angular/angular.min.js\"), __webpack_require__(\"../node_modules/squid/dist/index.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!./pages/xo-sidebar/template.html\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (angular, index, template) {\n\n return angular.module('hermes.page.xo-sidebar.directive', ['squid']).directive('xoSidebar', function () {\n\n return {\n template: template,\n\n scope: {\n backUri: '=?',\n parentModel: '=?'\n },\n\n link: function link($scope, element, attr) {\n\n $scope.$on('populated', function () {\n angular.element('body').addClass('trayOpen');\n angular.element('#wrapper').addClass('maskMember');\n\n var payButton = angular.element('.confirmButton');\n\n if (payButton) {\n payButton.attr('disabled', true);\n }\n });\n\n $scope.$on('$destroy', function () {\n angular.element('body').removeClass('trayOpen');\n\n var payButton = angular.element('.confirmButton');\n\n if (payButton) {\n payButton.attr('disabled', false);\n }\n });\n },\n controller: function controller($scope, $rootScope, $window, $state, $util, $populate) {\n\n $util.assert($scope.backUri, 'Expected backUri');\n\n $populate($scope);\n\n $scope.token = $rootScope.token;\n\n $scope.onPageClick = function ($event) {\n $event.stopPropagation();\n };\n\n $scope.close = function () {\n $state.go($scope.backUri);\n };\n\n $scope.callbacks = {\n done: function done() {\n $state.go($scope.backUri);\n }\n };\n }\n };\n });\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n/***/ }),\n\n/***/ \"./pages/xo-sidebar/route.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(module, __dirname, __filename) {var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/angular/angular.min.js\"), __webpack_require__(\"../node_modules/squid/dist/index.js\"), __webpack_require__(\"./pages/xo-sidebar/directive.js\"), __webpack_require__(\"./pages/xo-sidebar-installment-options/route.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (angular, squid) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n angular.module('hermes.page.xo-sidebar.route', ['squid', 'hermes.page.xo-sidebar.directive', 'hermes.page.xo-sidebar-installment-options.route']).factory('$SidebarRoute', function ($ComponentRoute) {\n\n return $ComponentRoute.extend('SidebarRoute', {\n name: 'sidebar',\n directive: 'xo-sidebar',\n\n // Uncomment the following line to suffix content to\n // the title of the page\n // Base title is 'PayPal Checkout'\n // titleContent: 'accountCreationGuest.heading',\n\n children: [{\n name: '$SidebarInstallmentOptionsRoute',\n attributes: {\n 'back-uri': 'backUri',\n 'parent-model': 'parentModel'\n }\n }]\n });\n });\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/webpack/buildin/module.js\")(module), \"pages/xo-sidebar\", \"pages/xo-sidebar/route.js\"))\n\n/***/ }),\n\n/***/ \"./pages/xo-signup/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/angular/angular.min.js\"), __webpack_require__(\"../node_modules/squid/dist/module.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!./pages/xo-signup/template.html\"), __webpack_require__(\"../node_modules/xo-page-components/src/value-props/directive.js\"), __webpack_require__(\"../node_modules/xo-guest-components/src/guest/directive.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (angular, module, template) {\n\n return angular.module('hermes.page.xo-signup.directive', ['squid', 'xo-value-props.directive', 'xo-onboard.payment.directive']).directive('xoSignup', function ($rootScope, $SingleStepModel) {\n\n return {\n template: template,\n\n scope: {\n token: '=?',\n parentCallbacks: '=?',\n buttonParams: '=?'\n },\n\n controller: function controller($scope, $rootScope, $state, $locale) {\n // eslint-disable-line no-shadow\n $scope.mode = 'signup';\n $scope.backUri = 'checkout.signup';\n $scope.singleStepModel = new $SingleStepModel();\n\n $scope.onComplete = function () {\n $state.go('checkout.end');\n };\n }\n };\n });\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\n/***/ }),\n\n/***/ \"./pages/xo-signup/route.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(module, __dirname, __filename) {var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"../node_modules/angular/angular.min.js\"), __webpack_require__(\"../node_modules/squid/dist/index.js\"), __webpack_require__(\"./pages/xo-signup/directive.js\"), __webpack_require__(\"./pages/xo-sidebar/route.js\"), __webpack_require__(\"../node_modules/xo-guest-components/src/guest-upgrade-interstitial/route.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (angular, squid) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n angular.module('hermes.page.xo-signup.route', ['squid', 'hermes.page.xo-signup.directive', 'hermes.page.xo-sidebar.route']).factory('$SignupRoute', function ($ComponentRoute) {\n\n return $ComponentRoute.extend('SignupRoute', {\n name: 'signup',\n directive: 'xo-signup',\n\n // Uncomment the following line to suffix content to\n // the title of the page\n // Base title is 'PayPal Checkout'\n // titleContent: 'accountCreationGuest.heading',\n\n trackingData: {\n fptiState: 'signup',\n trackStateExit: true,\n templateName: 'signup.dust',\n pageGoal: 'Signup Start',\n pageQualifier: 'signup',\n buzname: {\n 'signup': {\n 'pagename': '%::fullpage-signup',\n 'pagename2': '%::fullpage-signup:member:hermes:',\n 'version': 'guest:%:'\n // More page qualifiers come here...\n } }\n },\n children: [{\n name: '$SidebarRoute',\n attributes: {\n 'back-uri': 'backUri',\n 'parent-model': 'singleStepModel'\n }\n }, {\n name: '$GuestUpgradeInterstitialRoute',\n attributes: {\n token: 'token',\n 'parent-model': 'singleStepModel'\n }\n }]\n });\n });\n}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/webpack/buildin/module.js\")(module), \"pages/xo-signup\", \"pages/xo-signup/route.js\"))\n\n/***/ }),\n\n/***/ 0:\n/***/ (function(module, exports, __webpack_require__) {\n\n__webpack_require__(\"../node_modules/xo-webpack-config/polyfills.js\");\nmodule.exports = __webpack_require__(\"./js/bootstrap.js\");\n\n\n/***/ })\n\n},[0]);\n\n\n// WEBPACK FOOTER //\n// js/main.js","\n\nrequire('../../modules/es6.array.find');\nmodule.exports = require('../../modules/_core').Array.find;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/fn/array/find.js\n// module id = ../node_modules/core-js/fn/array/find.js\n// module chunks = 0","\n\nrequire('../../modules/es7.array.includes');\nmodule.exports = require('../../modules/_core').Array.includes;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/fn/array/includes.js\n// module id = ../node_modules/core-js/fn/array/includes.js\n// module chunks = 0","\n\nrequire('../../modules/es6.object.assign');\nmodule.exports = require('../../modules/_core').Object.assign;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/fn/object/assign.js\n// module id = ../node_modules/core-js/fn/object/assign.js\n// module chunks = 0","\n\nrequire('../../modules/es7.object.entries');\nmodule.exports = require('../../modules/_core').Object.entries;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/fn/object/entries.js\n// module id = ../node_modules/core-js/fn/object/entries.js\n// module chunks = 0","\n\nrequire('../../modules/es7.object.values');\nmodule.exports = require('../../modules/_core').Object.values;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/fn/object/values.js\n// module id = ../node_modules/core-js/fn/object/values.js\n// module chunks = 0","\n\nrequire('../../modules/es6.string.includes');\nmodule.exports = require('../../modules/_core').String.includes;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/fn/string/includes.js\n// module id = ../node_modules/core-js/fn/string/includes.js\n// module chunks = 0","\n\nmodule.exports = function (it) {\n if (typeof it != 'function') throw TypeError(it + ' is not a function!');\n return it;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/modules/_a-function.js\n// module id = ../node_modules/core-js/modules/_a-function.js\n// module chunks = 0","\n\n// 22.1.3.31 Array.prototype[@@unscopables]\nvar UNSCOPABLES = require('./_wks')('unscopables');\nvar ArrayProto = Array.prototype;\nif (ArrayProto[UNSCOPABLES] == undefined) require('./_hide')(ArrayProto, UNSCOPABLES, {});\nmodule.exports = function (key) {\n ArrayProto[UNSCOPABLES][key] = true;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/modules/_add-to-unscopables.js\n// module id = ../node_modules/core-js/modules/_add-to-unscopables.js\n// module chunks = 0","\n\nvar isObject = require('./_is-object');\nmodule.exports = function (it) {\n if (!isObject(it)) throw TypeError(it + ' is not an object!');\n return it;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/modules/_an-object.js\n// module id = ../node_modules/core-js/modules/_an-object.js\n// module chunks = 0","\n\n// false -> Array#indexOf\n// true -> Array#includes\nvar toIObject = require('./_to-iobject');\nvar toLength = require('./_to-length');\nvar toAbsoluteIndex = require('./_to-absolute-index');\nmodule.exports = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (; length > index; index++) {\n if (IS_INCLUDES || index in O) {\n if (O[index] === el) return IS_INCLUDES || index || 0;\n }\n }return !IS_INCLUDES && -1;\n };\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/modules/_array-includes.js\n// module id = ../node_modules/core-js/modules/_array-includes.js\n// module chunks = 0","\n\n// 0 -> Array#forEach\n// 1 -> Array#map\n// 2 -> Array#filter\n// 3 -> Array#some\n// 4 -> Array#every\n// 5 -> Array#find\n// 6 -> Array#findIndex\nvar ctx = require('./_ctx');\nvar IObject = require('./_iobject');\nvar toObject = require('./_to-object');\nvar toLength = require('./_to-length');\nvar asc = require('./_array-species-create');\nmodule.exports = function (TYPE, $create) {\n var IS_MAP = TYPE == 1;\n var IS_FILTER = TYPE == 2;\n var IS_SOME = TYPE == 3;\n var IS_EVERY = TYPE == 4;\n var IS_FIND_INDEX = TYPE == 6;\n var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;\n var create = $create || asc;\n return function ($this, callbackfn, that) {\n var O = toObject($this);\n var self = IObject(O);\n var f = ctx(callbackfn, that, 3);\n var length = toLength(self.length);\n var index = 0;\n var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;\n var val, res;\n for (; length > index; index++) {\n if (NO_HOLES || index in self) {\n val = self[index];\n res = f(val, index, O);\n if (TYPE) {\n if (IS_MAP) result[index] = res; // map\n else if (res) switch (TYPE) {\n case 3:\n return true; // some\n case 5:\n return val; // find\n case 6:\n return index; // findIndex\n case 2:\n result.push(val); // filter\n } else if (IS_EVERY) return false; // every\n }\n }\n }return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;\n };\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/modules/_array-methods.js\n// module id = ../node_modules/core-js/modules/_array-methods.js\n// module chunks = 0","\n\nvar isObject = require('./_is-object');\nvar isArray = require('./_is-array');\nvar SPECIES = require('./_wks')('species');\n\nmodule.exports = function (original) {\n var C;\n if (isArray(original)) {\n C = original.constructor;\n // cross-realm fallback\n if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;\n if (isObject(C)) {\n C = C[SPECIES];\n if (C === null) C = undefined;\n }\n }return C === undefined ? Array : C;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/modules/_array-species-constructor.js\n// module id = ../node_modules/core-js/modules/_array-species-constructor.js\n// module chunks = 0","\n\n// 9.4.2.3 ArraySpeciesCreate(originalArray, length)\nvar speciesConstructor = require('./_array-species-constructor');\n\nmodule.exports = function (original, length) {\n return new (speciesConstructor(original))(length);\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/modules/_array-species-create.js\n// module id = ../node_modules/core-js/modules/_array-species-create.js\n// module chunks = 0","\n\nvar toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/modules/_cof.js\n// module id = ../node_modules/core-js/modules/_cof.js\n// module chunks = 0","\n\nvar core = module.exports = { version: '2.6.9' };\nif (typeof __e == 'number') __e = core; // eslint-disable-line no-undef\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/modules/_core.js\n// module id = ../node_modules/core-js/modules/_core.js\n// module chunks = 0","\n\n// optional / simple context binding\nvar aFunction = require('./_a-function');\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 1:\n return function (a) {\n return fn.call(that, a);\n };\n case 2:\n return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3:\n return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function () /* ...args */{\n return fn.apply(that, arguments);\n };\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/modules/_ctx.js\n// module id = ../node_modules/core-js/modules/_ctx.js\n// module chunks = 0","\n\n// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/modules/_defined.js\n// module id = ../node_modules/core-js/modules/_defined.js\n// module chunks = 0","\n\n// Thank's IE8 for his funny defineProperty\nmodule.exports = !require('./_fails')(function () {\n return Object.defineProperty({}, 'a', { get: function get() {\n return 7;\n } }).a != 7;\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/modules/_descriptors.js\n// module id = ../node_modules/core-js/modules/_descriptors.js\n// module chunks = 0","\n\nvar isObject = require('./_is-object');\nvar document = require('./_global').document;\n// typeof document.createElement is 'object' in old IE\nvar is = isObject(document) && isObject(document.createElement);\nmodule.exports = function (it) {\n return is ? document.createElement(it) : {};\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/modules/_dom-create.js\n// module id = ../node_modules/core-js/modules/_dom-create.js\n// module chunks = 0","\n\n// IE 8- don't enum bug keys\nmodule.exports = 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'.split(',');\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/modules/_enum-bug-keys.js\n// module id = ../node_modules/core-js/modules/_enum-bug-keys.js\n// module chunks = 0","\n\nvar global = require('./_global');\nvar core = require('./_core');\nvar hide = require('./_hide');\nvar redefine = require('./_redefine');\nvar ctx = require('./_ctx');\nvar PROTOTYPE = 'prototype';\n\nvar $export = function $export(type, name, source) {\n var IS_FORCED = type & $export.F;\n var IS_GLOBAL = type & $export.G;\n var IS_STATIC = type & $export.S;\n var IS_PROTO = type & $export.P;\n var IS_BIND = type & $export.B;\n var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];\n var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});\n var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});\n var key, own, out, exp;\n if (IS_GLOBAL) source = name;\n for (key in source) {\n // contains in native\n own = !IS_FORCED && target && target[key] !== undefined;\n // export native or passed\n out = (own ? target : source)[key];\n // bind timers to global for call from export context\n exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n // extend global\n if (target) redefine(target, key, out, type & $export.U);\n // export\n if (exports[key] != out) hide(exports, key, exp);\n if (IS_PROTO && expProto[key] != out) expProto[key] = out;\n }\n};\nglobal.core = core;\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\n$export.U = 64; // safe\n$export.R = 128; // real proto method for `library`\nmodule.exports = $export;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/modules/_export.js\n// module id = ../node_modules/core-js/modules/_export.js\n// module chunks = 0","\n\nvar MATCH = require('./_wks')('match');\nmodule.exports = function (KEY) {\n var re = /./;\n try {\n '/./'[KEY](re);\n } catch (e) {\n try {\n re[MATCH] = false;\n return !'/./'[KEY](re);\n } catch (f) {/* empty */}\n }return true;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/modules/_fails-is-regexp.js\n// module id = ../node_modules/core-js/modules/_fails-is-regexp.js\n// module chunks = 0","\n\nmodule.exports = function (exec) {\n try {\n return !!exec();\n } catch (e) {\n return true;\n }\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/modules/_fails.js\n// module id = ../node_modules/core-js/modules/_fails.js\n// module chunks = 0","\n\nmodule.exports = require('./_shared')('native-function-to-string', Function.toString);\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/modules/_function-to-string.js\n// module id = ../node_modules/core-js/modules/_function-to-string.js\n// module chunks = 0","\n\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math ? window : typeof self != 'undefined' && self.Math == Math ? self\n// eslint-disable-next-line no-new-func\n: Function('return this')();\nif (typeof __g == 'number') __g = global; // eslint-disable-line no-undef\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/modules/_global.js\n// module id = ../node_modules/core-js/modules/_global.js\n// module chunks = 0","\n\nvar hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/modules/_has.js\n// module id = ../node_modules/core-js/modules/_has.js\n// module chunks = 0","\n\nvar dP = require('./_object-dp');\nvar createDesc = require('./_property-desc');\nmodule.exports = require('./_descriptors') ? function (object, key, value) {\n return dP.f(object, key, createDesc(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/modules/_hide.js\n// module id = ../node_modules/core-js/modules/_hide.js\n// module chunks = 0","\n\nmodule.exports = !require('./_descriptors') && !require('./_fails')(function () {\n return Object.defineProperty(require('./_dom-create')('div'), 'a', { get: function get() {\n return 7;\n } }).a != 7;\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/modules/_ie8-dom-define.js\n// module id = ../node_modules/core-js/modules/_ie8-dom-define.js\n// module chunks = 0","\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = require('./_cof');\n// eslint-disable-next-line no-prototype-builtins\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/modules/_iobject.js\n// module id = ../node_modules/core-js/modules/_iobject.js\n// module chunks = 0","\n\n// 7.2.2 IsArray(argument)\nvar cof = require('./_cof');\nmodule.exports = Array.isArray || function isArray(arg) {\n return cof(arg) == 'Array';\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/modules/_is-array.js\n// module id = ../node_modules/core-js/modules/_is-array.js\n// module chunks = 0","\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nmodule.exports = function (it) {\n return (typeof it === 'undefined' ? 'undefined' : _typeof(it)) === 'object' ? it !== null : typeof it === 'function';\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/modules/_is-object.js\n// module id = ../node_modules/core-js/modules/_is-object.js\n// module chunks = 0","\n\n// 7.2.8 IsRegExp(argument)\nvar isObject = require('./_is-object');\nvar cof = require('./_cof');\nvar MATCH = require('./_wks')('match');\nmodule.exports = function (it) {\n var isRegExp;\n return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : cof(it) == 'RegExp');\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/modules/_is-regexp.js\n// module id = ../node_modules/core-js/modules/_is-regexp.js\n// module chunks = 0","\n\nmodule.exports = false;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/modules/_library.js\n// module id = ../node_modules/core-js/modules/_library.js\n// module chunks = 0","\n// 19.1.2.1 Object.assign(target, source, ...)\n\nvar DESCRIPTORS = require('./_descriptors');\nvar getKeys = require('./_object-keys');\nvar gOPS = require('./_object-gops');\nvar pIE = require('./_object-pie');\nvar toObject = require('./_to-object');\nvar IObject = require('./_iobject');\nvar $assign = Object.assign;\n\n// should work with symbols and should have deterministic property order (V8 bug)\nmodule.exports = !$assign || require('./_fails')(function () {\n var A = {};\n var B = {};\n // eslint-disable-next-line no-undef\n var S = Symbol();\n var K = 'abcdefghijklmnopqrst';\n A[S] = 7;\n K.split('').forEach(function (k) {\n B[k] = k;\n });\n return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;\n}) ? function assign(target, source) {\n // eslint-disable-line no-unused-vars\n var T = toObject(target);\n var aLen = arguments.length;\n var index = 1;\n var getSymbols = gOPS.f;\n var isEnum = pIE.f;\n while (aLen > index) {\n var S = IObject(arguments[index++]);\n var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);\n var length = keys.length;\n var j = 0;\n var key;\n while (length > j) {\n key = keys[j++];\n if (!DESCRIPTORS || isEnum.call(S, key)) T[key] = S[key];\n }\n }return T;\n} : $assign;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/modules/_object-assign.js\n// module id = ../node_modules/core-js/modules/_object-assign.js\n// module chunks = 0","\n\nvar anObject = require('./_an-object');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar toPrimitive = require('./_to-primitive');\nvar dP = Object.defineProperty;\n\nexports.f = require('./_descriptors') ? Object.defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return dP(O, P, Attributes);\n } catch (e) {/* empty */}\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/modules/_object-dp.js\n// module id = ../node_modules/core-js/modules/_object-dp.js\n// module chunks = 0","\n\nexports.f = Object.getOwnPropertySymbols;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/modules/_object-gops.js\n// module id = ../node_modules/core-js/modules/_object-gops.js\n// module chunks = 0","\n\nvar has = require('./_has');\nvar toIObject = require('./_to-iobject');\nvar arrayIndexOf = require('./_array-includes')(false);\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\n\nmodule.exports = function (object, names) {\n var O = toIObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) {\n if (key != IE_PROTO) has(O, key) && result.push(key);\n } // Don't enum bug & hidden keys\n while (names.length > i) {\n if (has(O, key = names[i++])) {\n ~arrayIndexOf(result, key) || result.push(key);\n }\n }return result;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/modules/_object-keys-internal.js\n// module id = ../node_modules/core-js/modules/_object-keys-internal.js\n// module chunks = 0","\n\n// 19.1.2.14 / 15.2.3.14 Object.keys(O)\nvar $keys = require('./_object-keys-internal');\nvar enumBugKeys = require('./_enum-bug-keys');\n\nmodule.exports = Object.keys || function keys(O) {\n return $keys(O, enumBugKeys);\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/modules/_object-keys.js\n// module id = ../node_modules/core-js/modules/_object-keys.js\n// module chunks = 0","\n\nexports.f = {}.propertyIsEnumerable;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/modules/_object-pie.js\n// module id = ../node_modules/core-js/modules/_object-pie.js\n// module chunks = 0","\n\nvar DESCRIPTORS = require('./_descriptors');\nvar getKeys = require('./_object-keys');\nvar toIObject = require('./_to-iobject');\nvar isEnum = require('./_object-pie').f;\nmodule.exports = function (isEntries) {\n return function (it) {\n var O = toIObject(it);\n var keys = getKeys(O);\n var length = keys.length;\n var i = 0;\n var result = [];\n var key;\n while (length > i) {\n key = keys[i++];\n if (!DESCRIPTORS || isEnum.call(O, key)) {\n result.push(isEntries ? [key, O[key]] : O[key]);\n }\n }\n return result;\n };\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/modules/_object-to-array.js\n// module id = ../node_modules/core-js/modules/_object-to-array.js\n// module chunks = 0","\n\nmodule.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/modules/_property-desc.js\n// module id = ../node_modules/core-js/modules/_property-desc.js\n// module chunks = 0","\n\nvar global = require('./_global');\nvar hide = require('./_hide');\nvar has = require('./_has');\nvar SRC = require('./_uid')('src');\nvar $toString = require('./_function-to-string');\nvar TO_STRING = 'toString';\nvar TPL = ('' + $toString).split(TO_STRING);\n\nrequire('./_core').inspectSource = function (it) {\n return $toString.call(it);\n};\n\n(module.exports = function (O, key, val, safe) {\n var isFunction = typeof val == 'function';\n if (isFunction) has(val, 'name') || hide(val, 'name', key);\n if (O[key] === val) return;\n if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));\n if (O === global) {\n O[key] = val;\n } else if (!safe) {\n delete O[key];\n hide(O, key, val);\n } else if (O[key]) {\n O[key] = val;\n } else {\n hide(O, key, val);\n }\n // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n})(Function.prototype, TO_STRING, function toString() {\n return typeof this == 'function' && this[SRC] || $toString.call(this);\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/modules/_redefine.js\n// module id = ../node_modules/core-js/modules/_redefine.js\n// module chunks = 0","\n\nvar shared = require('./_shared')('keys');\nvar uid = require('./_uid');\nmodule.exports = function (key) {\n return shared[key] || (shared[key] = uid(key));\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/modules/_shared-key.js\n// module id = ../node_modules/core-js/modules/_shared-key.js\n// module chunks = 0","\n\nvar core = require('./_core');\nvar global = require('./_global');\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || (global[SHARED] = {});\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: core.version,\n mode: require('./_library') ? 'pure' : 'global',\n copyright: '© 2019 Denis Pushkarev (zloirock.ru)'\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/modules/_shared.js\n// module id = ../node_modules/core-js/modules/_shared.js\n// module chunks = 0","\n\n// helper for String#{startsWith, endsWith, includes}\nvar isRegExp = require('./_is-regexp');\nvar defined = require('./_defined');\n\nmodule.exports = function (that, searchString, NAME) {\n if (isRegExp(searchString)) throw TypeError('String#' + NAME + \" doesn't accept regex!\");\n return String(defined(that));\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/modules/_string-context.js\n// module id = ../node_modules/core-js/modules/_string-context.js\n// module chunks = 0","\n\nvar toInteger = require('./_to-integer');\nvar max = Math.max;\nvar min = Math.min;\nmodule.exports = function (index, length) {\n index = toInteger(index);\n return index < 0 ? max(index + length, 0) : min(index, length);\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/modules/_to-absolute-index.js\n// module id = ../node_modules/core-js/modules/_to-absolute-index.js\n// module chunks = 0","\n\n// 7.1.4 ToInteger\nvar ceil = Math.ceil;\nvar floor = Math.floor;\nmodule.exports = function (it) {\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/modules/_to-integer.js\n// module id = ../node_modules/core-js/modules/_to-integer.js\n// module chunks = 0","\n\n// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = require('./_iobject');\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return IObject(defined(it));\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/modules/_to-iobject.js\n// module id = ../node_modules/core-js/modules/_to-iobject.js\n// module chunks = 0","\n\n// 7.1.15 ToLength\nvar toInteger = require('./_to-integer');\nvar min = Math.min;\nmodule.exports = function (it) {\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/modules/_to-length.js\n// module id = ../node_modules/core-js/modules/_to-length.js\n// module chunks = 0","\n\n// 7.1.13 ToObject(argument)\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return Object(defined(it));\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/modules/_to-object.js\n// module id = ../node_modules/core-js/modules/_to-object.js\n// module chunks = 0","\n\n// 7.1.1 ToPrimitive(input [, PreferredType])\nvar isObject = require('./_is-object');\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (it, S) {\n if (!isObject(it)) return it;\n var fn, val;\n if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;\n if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/modules/_to-primitive.js\n// module id = ../node_modules/core-js/modules/_to-primitive.js\n// module chunks = 0","\n\nvar id = 0;\nvar px = Math.random();\nmodule.exports = function (key) {\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/modules/_uid.js\n// module id = ../node_modules/core-js/modules/_uid.js\n// module chunks = 0","\n\nvar store = require('./_shared')('wks');\nvar uid = require('./_uid');\nvar _Symbol = require('./_global').Symbol;\nvar USE_SYMBOL = typeof _Symbol == 'function';\n\nvar $exports = module.exports = function (name) {\n return store[name] || (store[name] = USE_SYMBOL && _Symbol[name] || (USE_SYMBOL ? _Symbol : uid)('Symbol.' + name));\n};\n\n$exports.store = store;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/modules/_wks.js\n// module id = ../node_modules/core-js/modules/_wks.js\n// module chunks = 0","\n// 22.1.3.8 Array.prototype.find(predicate, thisArg = undefined)\n\nvar $export = require('./_export');\nvar $find = require('./_array-methods')(5);\nvar KEY = 'find';\nvar forced = true;\n// Shouldn't skip holes\nif (KEY in []) Array(1)[KEY](function () {\n forced = false;\n});\n$export($export.P + $export.F * forced, 'Array', {\n find: function find(callbackfn /* , that = undefined */) {\n return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\nrequire('./_add-to-unscopables')(KEY);\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/modules/es6.array.find.js\n// module id = ../node_modules/core-js/modules/es6.array.find.js\n// module chunks = 0","\n\n// 19.1.3.1 Object.assign(target, source)\nvar $export = require('./_export');\n\n$export($export.S + $export.F, 'Object', { assign: require('./_object-assign') });\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/modules/es6.object.assign.js\n// module id = ../node_modules/core-js/modules/es6.object.assign.js\n// module chunks = 0","// 21.1.3.7 String.prototype.includes(searchString, position = 0)\n\n\nvar $export = require('./_export');\nvar context = require('./_string-context');\nvar INCLUDES = 'includes';\n\n$export($export.P + $export.F * require('./_fails-is-regexp')(INCLUDES), 'String', {\n includes: function includes(searchString /* , position = 0 */) {\n return !!~context(this, searchString, INCLUDES).indexOf(searchString, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/modules/es6.string.includes.js\n// module id = ../node_modules/core-js/modules/es6.string.includes.js\n// module chunks = 0","\n// https://github.com/tc39/Array.prototype.includes\n\nvar $export = require('./_export');\nvar $includes = require('./_array-includes')(true);\n\n$export($export.P, 'Array', {\n includes: function includes(el /* , fromIndex = 0 */) {\n return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\nrequire('./_add-to-unscopables')('includes');\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/modules/es7.array.includes.js\n// module id = ../node_modules/core-js/modules/es7.array.includes.js\n// module chunks = 0","\n\n// https://github.com/tc39/proposal-object-values-entries\nvar $export = require('./_export');\nvar $entries = require('./_object-to-array')(true);\n\n$export($export.S, 'Object', {\n entries: function entries(it) {\n return $entries(it);\n }\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/modules/es7.object.entries.js\n// module id = ../node_modules/core-js/modules/es7.object.entries.js\n// module chunks = 0","\n\n// https://github.com/tc39/proposal-object-values-entries\nvar $export = require('./_export');\nvar $values = require('./_object-to-array')(false);\n\n$export($export.S, 'Object', {\n values: function values(it) {\n return $values(it);\n }\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/modules/es7.object.values.js\n// module id = ../node_modules/core-js/modules/es7.object.values.js\n// module chunks = 0","// uuid.js\n//\n// Copyright (c) 2010-2012 Robert Kieffer\n// MIT License - http://opensource.org/licenses/mit-license.php\n\n/*global window, require, define */\n(function(_window) {\n \n\n // Unique ID creation requires a high quality random # generator. We feature\n // detect to determine the best RNG source, normalizing to a function that\n // returns 128-bits of randomness, since that's what's usually required\n var _rng, _mathRNG, _nodeRNG, _whatwgRNG, _previousRoot;\n\n function setupBrowser() {\n // Allow for MSIE11 msCrypto\n var _crypto = _window.crypto || _window.msCrypto;\n\n if (!_rng && _crypto && _crypto.getRandomValues) {\n // WHATWG crypto-based RNG - http://wiki.whatwg.org/wiki/Crypto\n //\n // Moderately fast, high quality\n try {\n var _rnds8 = new Uint8Array(16);\n _whatwgRNG = _rng = function whatwgRNG() {\n _crypto.getRandomValues(_rnds8);\n return _rnds8;\n };\n _rng();\n } catch(e) {}\n }\n\n if (!_rng) {\n // Math.random()-based (RNG)\n //\n // If all else fails, use Math.random(). It's fast, but is of unspecified\n // quality.\n var _rnds = new Array(16);\n _mathRNG = _rng = function() {\n for (var i = 0, r; i < 16; i++) {\n if ((i & 0x03) === 0) { r = Math.random() * 0x100000000; }\n _rnds[i] = r >>> ((i & 0x03) << 3) & 0xff;\n }\n\n return _rnds;\n };\n if ('undefined' !== typeof console && console.warn) {\n console.warn(\"[SECURITY] node-uuid: crypto not usable, falling back to insecure Math.random()\");\n }\n }\n }\n\n function setupNode() {\n // Node.js crypto-based RNG - http://nodejs.org/docs/v0.6.2/api/crypto.html\n //\n // Moderately fast, high quality\n if ('function' === typeof require) {\n try {\n var _rb = require('crypto').randomBytes;\n _nodeRNG = _rng = _rb && function() {return _rb(16);};\n _rng();\n } catch(e) {}\n }\n }\n\n if (_window) {\n setupBrowser();\n } else {\n setupNode();\n }\n\n // Buffer class to use\n var BufferClass = ('function' === typeof Buffer) ? Buffer : Array;\n\n // Maps for number <-> hex string conversion\n var _byteToHex = [];\n var _hexToByte = {};\n for (var i = 0; i < 256; i++) {\n _byteToHex[i] = (i + 0x100).toString(16).substr(1);\n _hexToByte[_byteToHex[i]] = i;\n }\n\n // **`parse()` - Parse a UUID into it's component bytes**\n function parse(s, buf, offset) {\n var i = (buf && offset) || 0, ii = 0;\n\n buf = buf || [];\n s.toLowerCase().replace(/[0-9a-f]{2}/g, function(oct) {\n if (ii < 16) { // Don't overflow!\n buf[i + ii++] = _hexToByte[oct];\n }\n });\n\n // Zero out remaining bytes if string was short\n while (ii < 16) {\n buf[i + ii++] = 0;\n }\n\n return buf;\n }\n\n // **`unparse()` - Convert UUID byte array (ala parse()) into a string**\n function unparse(buf, offset) {\n var i = offset || 0, bth = _byteToHex;\n return bth[buf[i++]] + bth[buf[i++]] +\n bth[buf[i++]] + bth[buf[i++]] + '-' +\n bth[buf[i++]] + bth[buf[i++]] + '-' +\n bth[buf[i++]] + bth[buf[i++]] + '-' +\n bth[buf[i++]] + bth[buf[i++]] + '-' +\n bth[buf[i++]] + bth[buf[i++]] +\n bth[buf[i++]] + bth[buf[i++]] +\n bth[buf[i++]] + bth[buf[i++]];\n }\n\n // **`v1()` - Generate time-based UUID**\n //\n // Inspired by https://github.com/LiosK/UUID.js\n // and http://docs.python.org/library/uuid.html\n\n // random #'s we need to init node and clockseq\n var _seedBytes = _rng();\n\n // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)\n var _nodeId = [\n _seedBytes[0] | 0x01,\n _seedBytes[1], _seedBytes[2], _seedBytes[3], _seedBytes[4], _seedBytes[5]\n ];\n\n // Per 4.2.2, randomize (14 bit) clockseq\n var _clockseq = (_seedBytes[6] << 8 | _seedBytes[7]) & 0x3fff;\n\n // Previous uuid creation time\n var _lastMSecs = 0, _lastNSecs = 0;\n\n // See https://github.com/broofa/node-uuid for API details\n function v1(options, buf, offset) {\n var i = buf && offset || 0;\n var b = buf || [];\n\n options = options || {};\n\n var clockseq = (options.clockseq != null) ? options.clockseq : _clockseq;\n\n // UUID timestamps are 100 nano-second units since the Gregorian epoch,\n // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so\n // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'\n // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.\n var msecs = (options.msecs != null) ? options.msecs : new Date().getTime();\n\n // Per 4.2.1.2, use count of uuid's generated during the current clock\n // cycle to simulate higher resolution clock\n var nsecs = (options.nsecs != null) ? options.nsecs : _lastNSecs + 1;\n\n // Time since last uuid creation (in msecs)\n var dt = (msecs - _lastMSecs) + (nsecs - _lastNSecs)/10000;\n\n // Per 4.2.1.2, Bump clockseq on clock regression\n if (dt < 0 && options.clockseq == null) {\n clockseq = clockseq + 1 & 0x3fff;\n }\n\n // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new\n // time interval\n if ((dt < 0 || msecs > _lastMSecs) && options.nsecs == null) {\n nsecs = 0;\n }\n\n // Per 4.2.1.2 Throw error if too many uuids are requested\n if (nsecs >= 10000) {\n throw new Error('uuid.v1(): Can\\'t create more than 10M uuids/sec');\n }\n\n _lastMSecs = msecs;\n _lastNSecs = nsecs;\n _clockseq = clockseq;\n\n // Per 4.1.4 - Convert from unix epoch to Gregorian epoch\n msecs += 12219292800000;\n\n // `time_low`\n var tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;\n b[i++] = tl >>> 24 & 0xff;\n b[i++] = tl >>> 16 & 0xff;\n b[i++] = tl >>> 8 & 0xff;\n b[i++] = tl & 0xff;\n\n // `time_mid`\n var tmh = (msecs / 0x100000000 * 10000) & 0xfffffff;\n b[i++] = tmh >>> 8 & 0xff;\n b[i++] = tmh & 0xff;\n\n // `time_high_and_version`\n b[i++] = tmh >>> 24 & 0xf | 0x10; // include version\n b[i++] = tmh >>> 16 & 0xff;\n\n // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)\n b[i++] = clockseq >>> 8 | 0x80;\n\n // `clock_seq_low`\n b[i++] = clockseq & 0xff;\n\n // `node`\n var node = options.node || _nodeId;\n for (var n = 0; n < 6; n++) {\n b[i + n] = node[n];\n }\n\n return buf ? buf : unparse(b);\n }\n\n // **`v4()` - Generate random UUID**\n\n // See https://github.com/broofa/node-uuid for API details\n function v4(options, buf, offset) {\n // Deprecated - 'format' argument, as supported in v1.2\n var i = buf && offset || 0;\n\n if (typeof(options) === 'string') {\n buf = (options === 'binary') ? new BufferClass(16) : null;\n options = null;\n }\n options = options || {};\n\n var rnds = options.random || (options.rng || _rng)();\n\n // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n rnds[6] = (rnds[6] & 0x0f) | 0x40;\n rnds[8] = (rnds[8] & 0x3f) | 0x80;\n\n // Copy bytes to buffer, if provided\n if (buf) {\n for (var ii = 0; ii < 16; ii++) {\n buf[i + ii] = rnds[ii];\n }\n }\n\n return buf || unparse(rnds);\n }\n\n // Export public API\n var uuid = v4;\n uuid.v1 = v1;\n uuid.v4 = v4;\n uuid.parse = parse;\n uuid.unparse = unparse;\n uuid.BufferClass = BufferClass;\n uuid._rng = _rng;\n uuid._mathRNG = _mathRNG;\n uuid._nodeRNG = _nodeRNG;\n uuid._whatwgRNG = _whatwgRNG;\n\n if (('undefined' !== typeof module) && module.exports) {\n // Publish as node.js module\n module.exports = uuid;\n } else if (typeof define === 'function' && define.amd) {\n // Publish as AMD module\n define(function() {return uuid;});\n\n\n } else {\n // Publish as global (in browsers)\n _previousRoot = _window.uuid;\n\n // **`noConflict()` - (browser only) to reset global 'uuid' var**\n uuid.noConflict = function() {\n _window.uuid = _previousRoot;\n return uuid;\n };\n\n _window.uuid = uuid;\n }\n})('undefined' !== typeof window ? window : null);\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/node-uuid/uuid.js\n// module id = ../node_modules/node-uuid/uuid.js\n// module chunks = 0","module.exports = \"
      \\n \\n \\n
      \"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/noop-loader!../node_modules/xo-guest-components/src/guest-upgrade/occupation/template.html\n// module id = ../node_modules/noop-loader/index.js!../node_modules/xo-guest-components/src/guest-upgrade/occupation/template.html\n// module chunks = 0","module.exports = \"
      \\n
      \\n
      \\n {{content('largeScreenPayment.guestSignUpDesc')}}\\n
      \\n \\n
      \\n
      \\n\\n
      \\n \\n  {{content('login.orLowercase')}} \\n \\n
      \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/noop-loader!../node_modules/xo-guest-components/src/login-button/template.html\n// module id = ../node_modules/noop-loader/index.js!../node_modules/xo-guest-components/src/login-button/template.html\n// module chunks = 0","module.exports = \"
      \\n
      \\n
      \\n\\n \\n \\n\\n \\n \\n \\n\\n
      \\n\\n \\n
      \\n \\n \\n\\n \\n\\n \\n\\n \\n\\n \\n \\n\\n
      \\n
      \\n\\n \\n \\n
      \\n\\n\\n
      \\n \\n
      \\n\\n
      \\n \\n
      \\n
      \\n\\n \\n\\n
      \\n \\n \\n
      \\n\\n
      \\n
      \\n \\n\\n \\n\\n \\n
      \\n \\n \\n
      \\n
      \\n\\n \\n
      \\n
      \\n\\n
      \\n \\n
      \\n\\n
      \\n \\n\\n \\n
      \\n
      \\n
      \\n
      \\n
      \\n
      \\n \\n
      \\n\\n
      \\n
      \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/noop-loader!../node_modules/xo-guest-components/src/multistep-signup/addCard/template.html\n// module id = ../node_modules/noop-loader/index.js!../node_modules/xo-guest-components/src/multistep-signup/addCard/template.html\n// module chunks = 0","module.exports = \"
      \\n
      \\n
      \\n \\n

      {{content('shipping.shippingTitle')}}

      \\n\\n
      \\n\\n
      \\n \\n
      \\n \\n \\n
      \\n
      \\n\\n \\n
      \\n\\n \\n \\n
      \\n\\n
      \\n \\n
      \\n
      \\n\\n \\n
      \\n\\n
      \\n\\n
      \\n
      \\n \\n
      \\n
      \\n
      \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/noop-loader!../node_modules/xo-guest-components/src/multistep-signup/addShipping/template.html\n// module id = ../node_modules/noop-loader/index.js!../node_modules/xo-guest-components/src/multistep-signup/addShipping/template.html\n// module chunks = 0","module.exports = \"
      \\n
      \\n
      \\n \\n
      \\n
      \\n \\n
      \\n
      \\n
      \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/noop-loader!../node_modules/xo-guest-components/src/multistep-signup/addressNormalization/template.html\n// module id = ../node_modules/noop-loader/index.js!../node_modules/xo-guest-components/src/multistep-signup/addressNormalization/template.html\n// module chunks = 0","module.exports = \"
      \\n
      \\n
      \\n \\n

      {{content('largeScreenAccountCreation.title')}}

      \\n\\n
      \\n\\n
      \\n\\n
      \\n\\n
      \\n \\n\\n \\n\\n
      \\n \\n
      \\n\\n
      \\n \\n
      \\n\\n
      \\n
      \\n
      {{content('largeScreenAccountCreation.agrementError')}}
      \\n
      \\n \\n \\n
      \\n\\n

      \\n \\n

      \\n\\n
      \\n\\n
      \\n\\n
      \\n\\n \\n
      \\n
      \\n
      \\n \\n
      \\n
      \\n \\n
      \\n
      \\n
      \\n\\n\\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/noop-loader!../node_modules/xo-guest-components/src/multistep-signup/createAccount/template.html\n// module id = ../node_modules/noop-loader/index.js!../node_modules/xo-guest-components/src/multistep-signup/createAccount/template.html\n// module chunks = 0","module.exports = \"
      \"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/noop-loader!../node_modules/xo-guest-components/src/multistep-signup/template.html\n// module id = ../node_modules/noop-loader/index.js!../node_modules/xo-guest-components/src/multistep-signup/template.html\n// module chunks = 0","module.exports = \"
      \\n
      \\n

      {{ title }}

      \\n

      \\n

      \\n
      \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/noop-loader!../node_modules/xo-page-components/src/value-props/template.html\n// module id = ../node_modules/noop-loader/index.js!../node_modules/xo-page-components/src/value-props/template.html\n// module chunks = 0","module.exports = \"{{ content('base.closePayPalCheckoutLabel') }}\\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/noop-loader!../node_modules/xo-ui-components/src/escape-hatch/closeFrame/template.html\n// module id = ../node_modules/noop-loader/index.js!../node_modules/xo-ui-components/src/escape-hatch/closeFrame/template.html\n// module chunks = 0","module.exports = \"\\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/noop-loader!../node_modules/xo-ui-components/src/escape-hatch/escapeHatch/template.html\n// module id = ../node_modules/noop-loader/index.js!../node_modules/xo-ui-components/src/escape-hatch/escapeHatch/template.html\n// module chunks = 0","module.exports = \"
      \\n
      \\n
      \\n
      \\n {{content(titleKey)}}\\n
      \\n
      \\n {{content(contentKey)}}\\n
      \\n
      \\n
      \\n \\n
      \\n
      \\n
      \\n
      \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/noop-loader!../node_modules/xo-ui-components/src/generic-message/template.html\n// module id = ../node_modules/noop-loader/index.js!../node_modules/xo-ui-components/src/generic-message/template.html\n// module chunks = 0","module.exports = \"
      \\n
      \\n
      \\n \\n
        \\n
      • \\n \\n
      • \\n
      • \\n
        \\n
      • \\n
      \\n
      \\n
      \\n
      \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/noop-loader!../node_modules/xo-ui-components/src/message/template.html\n// module id = ../node_modules/noop-loader/index.js!../node_modules/xo-ui-components/src/message/template.html\n// module chunks = 0","module.exports = \"
      \\n \\n
      \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/noop-loader!../node_modules/xo-ui-components/src/spinner-button/template.html\n// module id = ../node_modules/noop-loader/index.js!../node_modules/xo-ui-components/src/spinner-button/template.html\n// module chunks = 0","module.exports = \"
      \\n
      \\n

      \\n

      \\n

      {{message}}

      \\n
      \\n
      \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/noop-loader!../node_modules/xo-ui-components/src/spinner/template.html\n// module id = ../node_modules/noop-loader/index.js!../node_modules/xo-ui-components/src/spinner/template.html\n// module chunks = 0","module.exports = \"
      \\n
      \\n
      \\n
      \\n\\n
      \\n
      \\n  \\n

      \\n {{ content('threeDS.iFrameTitle') }}\\n

      \\n \\n
      \\n\\n
      \\n
      \\n\\n
      \\n
      \\n
      \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/noop-loader!../node_modules/xo-wallet-components/src/3ds/template.html\n// module id = ../node_modules/noop-loader/index.js!../node_modules/xo-wallet-components/src/3ds/template.html\n// module chunks = 0","module.exports = \"
      \\n\\n
      \\n

      {{content('bank.enterBBAN')}}\\n {{content('bank.insteadIBAN')}}\\n

      \\n\\n
      \\n \\n \\n
      \\n\\n
      \\n \\n \\n
      \\n
      \\n
      \\n

      {{content('bank.enterIBAN')}}\\n {{content('bank.insteadBBAN')}}\\n

      \\n
      \\n \\n \\n
      \\n
      \\n\\n\\n
      \\n
      \\n {{content('currencyOptions.ppConversionRate')}}\\n {{exchangeSpreadFormatStr}}\\n
      \\n
      \\n {{content('currencyOptions.textConversionDate')}}\\n {{fxDate}}\\n
      \\n
      \\n \\n {{targetFormatStr}}\\n
      \\n
      \\n
      \\n\\n\\n
      \\n
      \\n {{content('DEMemberGuest.dob')}}\\n\\n
      \\n \\n
      \\n\\n\\n
      \\n \\n
      \\n\\n
      \\n \\n
      \\n\\n
      \\n
      \\n
      \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/noop-loader!../node_modules/xo-wallet-components/src/add-bank/bank-input/template.html\n// module id = ../node_modules/noop-loader/index.js!../node_modules/xo-wallet-components/src/add-bank/bank-input/template.html\n// module chunks = 0","module.exports = \"\\n\\n

      {{ content('addBillingAddress.title') }}

      \\n\\n
      \\n
      \\n \\n
      \\n \\n
      \\n
      \\n
      \\n\\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/noop-loader!../node_modules/xo-wallet-components/src/add-card/addCep/template.html\n// module id = ../node_modules/noop-loader/index.js!../node_modules/xo-wallet-components/src/add-card/addCep/template.html\n// module chunks = 0","module.exports = \"
      \\n \\n\\n

      {{ content('addBillingAddress.title') }}

      \\n\\n
      \\n
      \\n
      \\n \\n
      \\n\\n \\n
      \\n
      \\n
      \\n
      \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/noop-loader!../node_modules/xo-wallet-components/src/add-card/addbilling/template.html\n// module id = ../node_modules/noop-loader/index.js!../node_modules/xo-wallet-components/src/add-card/addbilling/template.html\n// module chunks = 0","module.exports = \"\\n
      \\n \\n
      \\n

      {{ content('asideHeader.updateCard', {type: cardmodel.card.name, number: cardmodel.card.lastDigits}) }}

      \\n {{ content('common.back') }}\\n
      \\n \\n \\n

      \\n {{ content('memberReview.welcomeBack', {userName: auth.first_name ? auth.first_name : auth.email}) }}\\n \\n {{ content('memberReview.notYou')}}\\n \\n

      \\n

      {{ pagetitle }}

      \\n\\n
      \\n
      \\n
      \\n \\n \\n \\n\\n \\n\\n
      \\n
      \\n \\n \\n {{ content(\\\"addressBook.add\\\") }}\\n
      \\n
      \\n\\n
      \\n
      \\n \\n
      \\n\\n \\n\\n
      \\n
      \\n \\n \\n
      \\n
      {{content('addCard.plccLegal', { merchant: promotion.name})}}
      \\n
      \\n\\n\\n \\n
      \\n
      \\n
      \\n\\n
      \\n
      \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/noop-loader!../node_modules/xo-wallet-components/src/add-card/addcard/template.html\n// module id = ../node_modules/noop-loader/index.js!../node_modules/xo-wallet-components/src/add-card/addcard/template.html\n// module chunks = 0","module.exports = \"
      \\n \\n \\n \\n\\n
      \\n
      \\n
      \\n
      \\n\\n
      \\n

      {{content('creditcard.cardIconTitle')}}

      \\n
      \\n

      {{content('creditcard.creditIconLabel')}}

      \\n
      \\n
      \\n
      \\n
      \\n
      \\n
      \\n
      \\n

      {{content('creditcard.debitIconLabel')}}

      \\n
      \\n
      \\n
      \\n
      \\n
      \\n\\n
      {{content('addCard.plccAddCard', { merchant: promotion.name})}}
      \\n\\n
      \\n \\n \\n
      \\n\\n
      \\n \\n\\n \\n
      \\n {{ !debitCardFlow ? content('creditcard.acceptableCards') : content('creditcard.acceptDebitCardOnly') }}\\n \\n {{supportedCardNamesCommaSeparated}}\\n \\n
      \\n
      \\n {{ !debitCardFlow ? content('creditcard.supportedAndUnsupportedCardType', {supportedCardNames: supportedCardNamesCommaSeparated, unsupportedCardNames: unsupportedCardNamesCommaSeparated}) : content('creditcard.acceptDebitCardOnly') }}\\n
      \\n
      \\n\\n \\n \\n\\n \\n
      \\n\\n \\n
      \\n\\n
      \\n \\n\\n
      \\n \\n
      \\n\\n
      \\n \\n
      \\n
      \\n\\n
      \\n \\n\\n \\n
      \\n {{ content('creditcard.issueNoLabelToolTip') }}\\n
      \\n
      \\n
      \\n
      \\n\\n
      \\n \\n \\n
      \\n\\n \\n \\n
      \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/noop-loader!../node_modules/xo-wallet-components/src/add-card/creditcard-input/template.html\n// module id = ../node_modules/noop-loader/index.js!../node_modules/xo-wallet-components/src/add-card/creditcard-input/template.html\n// module chunks = 0","module.exports = \"\\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/noop-loader!../node_modules/xo-wallet-components/src/add-card/selectcard/template.html\n// module id = ../node_modules/noop-loader/index.js!../node_modules/xo-wallet-components/src/add-card/selectcard/template.html\n// module chunks = 0","module.exports = \"
      \"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/noop-loader!../node_modules/xo-wallet-components/src/add-card/template.html\n// module id = ../node_modules/noop-loader/index.js!../node_modules/xo-wallet-components/src/add-card/template.html\n// module chunks = 0","module.exports = \"
      \\n
      \\n {{cardInfo.name}} x-{{cardInfo.last4}} {{content('installments.upto')}} {{installments.length}}x\\n
      \\n
        \\n
      • \\n
        \\n {{installment.term}}x {{content('installments.of')}} \\n
        \\n
        \\n {{installment.monthly_payment.formatted_value}}\\n
        \\n {{content('installments.total')}}: {{installment.total}}\\n \\n {{content('installments.save')}} {{installment.discount_amount.formatted_value}}\\n \\n
        \\n
        \\n\\n
      • \\n
      \\n
      \"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/noop-loader!../node_modules/xo-wallet-components/src/installment-options/template.html\n// module id = ../node_modules/noop-loader/index.js!../node_modules/xo-wallet-components/src/installment-options/template.html\n// module chunks = 0","module.exports = \"
      \\n
      \\n
      \\n \\n
      \\n\\n
      \\n \\n
      \\n
      \\n
      \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/noop-loader!./pages/xo-add-card/template.html\n// module id = ../node_modules/noop-loader/index.js!./pages/xo-add-card/template.html\n// module chunks = 0","module.exports = \"
      \\n \\n
      \\n
      \\n \\n
      \\n
      \\n
      \\n
      \\n \\n
      \\n \\n \\n
      \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/noop-loader!./pages/xo-checkout/template.html\n// module id = ../node_modules/noop-loader/index.js!./pages/xo-checkout/template.html\n// module chunks = 0","module.exports = \"\\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/noop-loader!./pages/xo-generic-message/template.html\n// module id = ../node_modules/noop-loader/index.js!./pages/xo-generic-message/template.html\n// module chunks = 0","module.exports = \"
      \\n
      \\n
      \\n \\n
      \\n
      \\n \\n \\n
      \\n
      \\n
      \\n
      \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/noop-loader!./pages/xo-guest/template.html\n// module id = ../node_modules/noop-loader/index.js!./pages/xo-guest/template.html\n// module chunks = 0","module.exports = \"
      \\n
      \\n
      \\n \\n
      \\n\\n
      \\n
      \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/noop-loader!./pages/xo-pay-upon-invoice/template.html\n// module id = ../node_modules/noop-loader/index.js!./pages/xo-pay-upon-invoice/template.html\n// module chunks = 0","module.exports = \"
      \\n \\n
      \\n \\n
      \\n
      \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/noop-loader!./pages/xo-sidebar-installment-options/template.html\n// module id = ../node_modules/noop-loader/index.js!./pages/xo-sidebar-installment-options/template.html\n// module chunks = 0","module.exports = \"\\n\\n\\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/noop-loader!./pages/xo-sidebar/template.html\n// module id = ../node_modules/noop-loader/index.js!./pages/xo-sidebar/template.html\n// module chunks = 0","module.exports = \"
      \\n
      \\n
      \\n \\n
      \\n
      \\n \\n
      \\n
      \\n
      \\n
      \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/noop-loader!./pages/xo-signup/template.html\n// module id = ../node_modules/noop-loader/index.js!./pages/xo-signup/template.html\n// module chunks = 0","\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\n!function (root, factory) {\n \"object\" == (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) && \"object\" == (typeof module === \"undefined\" ? \"undefined\" : _typeof(module)) ? module.exports = factory() : \"function\" == typeof define && define.amd ? define(\"ppsdkconstants\", [], factory) : \"object\" == (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) ? exports.ppsdkconstants = factory() : root.ppsdkconstants = factory();\n}(\"undefined\" != typeof self ? self : undefined, function () {\n return function (modules) {\n var installedModules = {};\n function __webpack_require__(moduleId) {\n if (installedModules[moduleId]) return installedModules[moduleId].exports;\n var module = installedModules[moduleId] = {\n i: moduleId,\n l: !1,\n exports: {}\n };\n modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n module.l = !0;\n return module.exports;\n }\n __webpack_require__.m = modules;\n __webpack_require__.c = installedModules;\n __webpack_require__.d = function (exports, name, getter) {\n __webpack_require__.o(exports, name) || Object.defineProperty(exports, name, {\n configurable: !1,\n enumerable: !0,\n get: getter\n });\n };\n __webpack_require__.n = function (module) {\n var getter = module && module.__esModule ? function () {\n return module[\"default\"];\n } : function () {\n return module;\n };\n __webpack_require__.d(getter, \"a\", getter);\n return getter;\n };\n __webpack_require__.o = function (object, property) {\n return Object.prototype.hasOwnProperty.call(object, property);\n };\n __webpack_require__.p = \"\";\n return __webpack_require__(__webpack_require__.s = \"./src/index.js\");\n }({\n \"./src/index.js\": function srcIndexJs(module, __webpack_exports__, __webpack_require__) {\n \n\n Object.defineProperty(__webpack_exports__, \"__esModule\", {\n value: !0\n });\n var _COUNTRY_LANGS,\n COUNTRY = {\n AD: \"AD\",\n AE: \"AE\",\n AG: \"AG\",\n AI: \"AI\",\n AL: \"AL\",\n AM: \"AM\",\n AN: \"AN\",\n AO: \"AO\",\n AR: \"AR\",\n AT: \"AT\",\n AU: \"AU\",\n AW: \"AW\",\n AZ: \"AZ\",\n BA: \"BA\",\n BB: \"BB\",\n BE: \"BE\",\n BF: \"BF\",\n BG: \"BG\",\n BH: \"BH\",\n BI: \"BI\",\n BJ: \"BJ\",\n BM: \"BM\",\n BN: \"BN\",\n BO: \"BO\",\n BR: \"BR\",\n BS: \"BS\",\n BT: \"BT\",\n BW: \"BW\",\n BY: \"BY\",\n BZ: \"BZ\",\n CA: \"CA\",\n CD: \"CD\",\n CG: \"CG\",\n CH: \"CH\",\n CI: \"CI\",\n CK: \"CK\",\n CL: \"CL\",\n CM: \"CM\",\n CN: \"CN\",\n CO: \"CO\",\n CR: \"CR\",\n CV: \"CV\",\n CY: \"CY\",\n CZ: \"CZ\",\n DE: \"DE\",\n DJ: \"DJ\",\n DK: \"DK\",\n DM: \"DM\",\n DO: \"DO\",\n DZ: \"DZ\",\n EC: \"EC\",\n EE: \"EE\",\n EG: \"EG\",\n ER: \"ER\",\n ES: \"ES\",\n ET: \"ET\",\n FI: \"FI\",\n FJ: \"FJ\",\n FK: \"FK\",\n FM: \"FM\",\n FO: \"FO\",\n FR: \"FR\",\n GA: \"GA\",\n GB: \"GB\",\n GD: \"GD\",\n GE: \"GE\",\n GF: \"GF\",\n GI: \"GI\",\n GL: \"GL\",\n GM: \"GM\",\n GN: \"GN\",\n GP: \"GP\",\n GR: \"GR\",\n GT: \"GT\",\n GW: \"GW\",\n GY: \"GY\",\n HK: \"HK\",\n HN: \"HN\",\n HR: \"HR\",\n HU: \"HU\",\n ID: \"ID\",\n IE: \"IE\",\n IL: \"IL\",\n IN: \"IN\",\n IS: \"IS\",\n IT: \"IT\",\n JM: \"JM\",\n JO: \"JO\",\n JP: \"JP\",\n KE: \"KE\",\n KG: \"KG\",\n KH: \"KH\",\n KI: \"KI\",\n KM: \"KM\",\n KN: \"KN\",\n KR: \"KR\",\n KW: \"KW\",\n KY: \"KY\",\n KZ: \"KZ\",\n LA: \"LA\",\n LC: \"LC\",\n LI: \"LI\",\n LK: \"LK\",\n LS: \"LS\",\n LT: \"LT\",\n LU: \"LU\",\n LV: \"LV\",\n MA: \"MA\",\n MC: \"MC\",\n MD: \"MD\",\n ME: \"ME\",\n MG: \"MG\",\n MH: \"MH\",\n MK: \"MK\",\n ML: \"ML\",\n MN: \"MN\",\n MQ: \"MQ\",\n MR: \"MR\",\n MS: \"MS\",\n MT: \"MT\",\n MU: \"MU\",\n MV: \"MV\",\n MW: \"MW\",\n MX: \"MX\",\n MY: \"MY\",\n MZ: \"MZ\",\n NA: \"NA\",\n NC: \"NC\",\n NE: \"NE\",\n NF: \"NF\",\n NG: \"NG\",\n NI: \"NI\",\n NL: \"NL\",\n NO: \"NO\",\n NP: \"NP\",\n NR: \"NR\",\n NU: \"NU\",\n NZ: \"NZ\",\n OM: \"OM\",\n PA: \"PA\",\n PE: \"PE\",\n PF: \"PF\",\n PG: \"PG\",\n PH: \"PH\",\n PL: \"PL\",\n PM: \"PM\",\n PN: \"PN\",\n PT: \"PT\",\n PW: \"PW\",\n PY: \"PY\",\n QA: \"QA\",\n RE: \"RE\",\n RO: \"RO\",\n RS: \"RS\",\n RU: \"RU\",\n RW: \"RW\",\n SA: \"SA\",\n SB: \"SB\",\n SC: \"SC\",\n SE: \"SE\",\n SG: \"SG\",\n SH: \"SH\",\n SI: \"SI\",\n SJ: \"SJ\",\n SK: \"SK\",\n SL: \"SL\",\n SM: \"SM\",\n SN: \"SN\",\n SO: \"SO\",\n SR: \"SR\",\n ST: \"ST\",\n SV: \"SV\",\n SZ: \"SZ\",\n TC: \"TC\",\n TD: \"TD\",\n TG: \"TG\",\n TH: \"TH\",\n TJ: \"TJ\",\n TM: \"TM\",\n TN: \"TN\",\n TO: \"TO\",\n TR: \"TR\",\n TT: \"TT\",\n TV: \"TV\",\n TW: \"TW\",\n TZ: \"TZ\",\n UA: \"UA\",\n UG: \"UG\",\n US: \"US\",\n UY: \"UY\",\n VA: \"VA\",\n VC: \"VC\",\n VE: \"VE\",\n VG: \"VG\",\n VN: \"VN\",\n VU: \"VU\",\n WF: \"WF\",\n WS: \"WS\",\n YE: \"YE\",\n YT: \"YT\",\n ZA: \"ZA\",\n ZM: \"ZM\",\n ZW: \"ZW\"\n },\n LANG = {\n AR: \"ar\",\n CS: \"cs\",\n DA: \"da\",\n DE: \"de\",\n EL: \"el\",\n EN: \"en\",\n ES: \"es\",\n FI: \"fi\",\n FR: \"fr\",\n HE: \"he\",\n HU: \"hu\",\n ID: \"id\",\n IT: \"it\",\n JA: \"ja\",\n KO: \"ko\",\n NL: \"nl\",\n NO: \"no\",\n PL: \"pl\",\n PT: \"pt\",\n RU: \"ru\",\n SK: \"sk\",\n SV: \"sv\",\n TH: \"th\",\n TR: \"tr\",\n ZH: \"zh\"\n },\n COUNTRY_LANGS = ((_COUNTRY_LANGS = {})[COUNTRY.AD] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.AE] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH, LANG.AR], _COUNTRY_LANGS[COUNTRY.AG] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.AI] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.AL] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.AM] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.AN] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.AO] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.AR] = [LANG.ES, LANG.EN], _COUNTRY_LANGS[COUNTRY.AT] = [LANG.DE, LANG.EN], _COUNTRY_LANGS[COUNTRY.AU] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.AW] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.AZ] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.BA] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.BB] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.BE] = [LANG.EN, LANG.NL, LANG.FR], _COUNTRY_LANGS[COUNTRY.BF] = [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.BG] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.BH] = [LANG.AR, LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.BI] = [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.BJ] = [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.BM] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.BN] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.BO] = [LANG.ES, LANG.EN, LANG.FR, LANG.ZH], _COUNTRY_LANGS[COUNTRY.BR] = [LANG.PT, LANG.EN], _COUNTRY_LANGS[COUNTRY.BS] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.BT] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.BW] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.BY] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.BZ] = [LANG.EN, LANG.ES, LANG.FR, LANG.ZH], _COUNTRY_LANGS[COUNTRY.CA] = [LANG.EN, LANG.FR], _COUNTRY_LANGS[COUNTRY.CD] = [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.CG] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.CH] = [LANG.DE, LANG.FR, LANG.EN], _COUNTRY_LANGS[COUNTRY.CI] = [LANG.FR, LANG.EN], _COUNTRY_LANGS[COUNTRY.CK] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.CL] = [LANG.ES, LANG.EN, LANG.FR, LANG.ZH], _COUNTRY_LANGS[COUNTRY.CM] = [LANG.FR, LANG.EN], _COUNTRY_LANGS[COUNTRY.CN] = [LANG.ZH], _COUNTRY_LANGS[COUNTRY.CO] = [LANG.ES, LANG.EN, LANG.FR, LANG.ZH], _COUNTRY_LANGS[COUNTRY.CR] = [LANG.ES, LANG.EN, LANG.FR, LANG.ZH], _COUNTRY_LANGS[COUNTRY.CV] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.CY] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.CZ] = [LANG.CS, LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.DE] = [LANG.DE, LANG.EN], _COUNTRY_LANGS[COUNTRY.DJ] = [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.DK] = [LANG.DA, LANG.EN], _COUNTRY_LANGS[COUNTRY.DM] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.DO] = [LANG.ES, LANG.EN, LANG.FR, LANG.ZH], _COUNTRY_LANGS[COUNTRY.DZ] = [LANG.AR, LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.EC] = [LANG.ES, LANG.EN, LANG.FR, LANG.ZH], _COUNTRY_LANGS[COUNTRY.EE] = [LANG.EN, LANG.RU, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.EG] = [LANG.AR, LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.ER] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.ES] = [LANG.ES, LANG.EN], _COUNTRY_LANGS[COUNTRY.ET] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.FI] = [LANG.FI, LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.FJ] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.FK] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.FM] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.FO] = [LANG.DA, LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.FR] = [LANG.FR, LANG.EN], _COUNTRY_LANGS[COUNTRY.GA] = [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.GB] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.GD] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.GE] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.GF] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.GI] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.GL] = [LANG.DA, LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.GM] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.GN] = [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.GP] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.GR] = [LANG.EL, LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.GT] = [LANG.ES, LANG.EN, LANG.FR, LANG.ZH], _COUNTRY_LANGS[COUNTRY.GW] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.GY] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.HK] = [LANG.EN, LANG.ZH], _COUNTRY_LANGS[COUNTRY.HN] = [LANG.ES, LANG.EN, LANG.FR, LANG.ZH], _COUNTRY_LANGS[COUNTRY.HR] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.HU] = [LANG.HU, LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.ID] = [LANG.ID, LANG.EN], _COUNTRY_LANGS[COUNTRY.IE] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.IL] = [LANG.HE, LANG.EN], _COUNTRY_LANGS[COUNTRY.IN] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.IS] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.IT] = [LANG.IT, LANG.EN], _COUNTRY_LANGS[COUNTRY.JM] = [LANG.EN, LANG.ES, LANG.FR, LANG.ZH], _COUNTRY_LANGS[COUNTRY.JO] = [LANG.AR, LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.JP] = [LANG.JA, LANG.EN], _COUNTRY_LANGS[COUNTRY.KE] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.KG] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.KH] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.KI] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.KM] = [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.KN] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.KR] = [LANG.KO, LANG.EN], _COUNTRY_LANGS[COUNTRY.KW] = [LANG.AR, LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.KY] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.KZ] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.LA] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.LC] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.LI] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.LK] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.LS] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.LT] = [LANG.EN, LANG.RU, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.LU] = [LANG.EN, LANG.DE, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.LV] = [LANG.EN, LANG.RU, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.MA] = [LANG.AR, LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.MC] = [LANG.FR, LANG.EN], _COUNTRY_LANGS[COUNTRY.MD] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.ME] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.MG] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.MH] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.MK] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.ML] = [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.MN] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.MQ] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.MR] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.MS] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.MT] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.MU] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.MV] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.MW] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.MX] = [LANG.ES, LANG.EN], _COUNTRY_LANGS[COUNTRY.MY] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.MZ] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.NA] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.NC] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.NE] = [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.NF] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.NG] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.NI] = [LANG.ES, LANG.EN, LANG.FR, LANG.ZH], _COUNTRY_LANGS[COUNTRY.NL] = [LANG.NL, LANG.EN], _COUNTRY_LANGS[COUNTRY.NO] = [LANG.NO, LANG.EN], _COUNTRY_LANGS[COUNTRY.NP] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.NR] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.NU] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.NZ] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.OM] = [LANG.AR, LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.PA] = [LANG.ES, LANG.EN, LANG.FR, LANG.ZH], _COUNTRY_LANGS[COUNTRY.PE] = [LANG.ES, LANG.EN, LANG.FR, LANG.ZH], _COUNTRY_LANGS[COUNTRY.PF] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.PG] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.PH] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.PL] = [LANG.PL, LANG.EN], _COUNTRY_LANGS[COUNTRY.PM] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.PN] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.PT] = [LANG.PT, LANG.EN], _COUNTRY_LANGS[COUNTRY.PW] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.PY] = [LANG.ES, LANG.EN], _COUNTRY_LANGS[COUNTRY.QA] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH, LANG.AR], _COUNTRY_LANGS[COUNTRY.RE] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.RO] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.RS] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.RU] = [LANG.RU, LANG.EN], _COUNTRY_LANGS[COUNTRY.RW] = [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.SA] = [LANG.AR, LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.SB] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.SC] = [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.SE] = [LANG.SV, LANG.EN], _COUNTRY_LANGS[COUNTRY.SG] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.SH] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.SI] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.SJ] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.SK] = [LANG.SK, LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.SL] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.SM] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.SN] = [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.SO] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.SR] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.ST] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.SV] = [LANG.ES, LANG.EN, LANG.FR, LANG.ZH], _COUNTRY_LANGS[COUNTRY.SZ] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.TC] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.TD] = [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.TG] = [LANG.FR, LANG.EN, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.TH] = [LANG.TH, LANG.EN], _COUNTRY_LANGS[COUNTRY.TJ] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.TM] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.TN] = [LANG.AR, LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.TO] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.TR] = [LANG.TR, LANG.EN], _COUNTRY_LANGS[COUNTRY.TT] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.TV] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.TW] = [LANG.ZH, LANG.EN], _COUNTRY_LANGS[COUNTRY.TZ] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.UA] = [LANG.EN, LANG.RU, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.UG] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.US] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.UY] = [LANG.ES, LANG.EN, LANG.FR, LANG.ZH], _COUNTRY_LANGS[COUNTRY.VA] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.VC] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.VE] = [LANG.ES, LANG.EN, LANG.FR, LANG.ZH], _COUNTRY_LANGS[COUNTRY.VG] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.VN] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.VU] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.WF] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.WS] = [LANG.EN], _COUNTRY_LANGS[COUNTRY.YE] = [LANG.AR, LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.YT] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.ZA] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.ZM] = [LANG.EN, LANG.FR, LANG.ES, LANG.ZH], _COUNTRY_LANGS[COUNTRY.ZW] = [LANG.EN], _COUNTRY_LANGS),\n SDK_SETTINGS = {\n CLIENT_TOKEN: \"data-client-token\",\n PARTNER_ATTRIBUTION_ID: \"data-partner-attribution-id\",\n STAGE_HOST: \"data-stage-host\",\n API_STAGE_HOST: \"data-api-stage-host\"\n },\n SDK_QUERY_KEYS = {\n COMPONENTS: \"components\",\n ENV: \"env\",\n DEBUG: \"debug\",\n CACHEBUST: \"cachebust\",\n CLIENT_ID: \"client-id\",\n MERCHANT_ID: \"merchant-id\",\n LOCALE: \"locale\",\n CURRENCY: \"currency\",\n INTENT: \"intent\",\n COMMIT: \"commit\",\n VAULT: \"vault\",\n BUYER_COUNTRY: \"buyer-country\",\n DISABLE_FUNDING: \"disable-funding\",\n DISABLE_CARD: \"disable-card\",\n LOCALE_COUNTRY: \"locale-country\",\n LOCALE_LANG: \"locale-lang\",\n ORDER_CURRENCY: \"order-currency\",\n ORDER_INTENT: \"order-intent\",\n ORDER_COMMIT: \"order-commit\",\n ORDER_VAULT: \"order-vault\"\n },\n COMPONENTS = {\n BUTTONS: \"buttons\",\n HOSTED_FIELDS: \"hosted-fields\"\n },\n DEBUG = {\n TRUE: !0,\n FALSE: !1\n },\n QUERY_BOOL = {\n TRUE: \"true\",\n FALSE: \"false\"\n },\n ENV = {\n LOCAL: \"local\",\n STAGE: \"stage\",\n SANDBOX: \"sandbox\",\n PRODUCTION: \"production\",\n TEST: \"test\"\n },\n FPTI_KEY = {\n FEED: \"feed_name\",\n STATE: \"state_name\",\n TRANSITION: \"transition_name\",\n BUTTON_TYPE: \"button_type\",\n SESSION_UID: \"page_session_id\",\n BUTTON_SESSION_UID: \"button_session_id\",\n TOKEN: \"token\",\n CONTEXT_ID: \"context_id\",\n CONTEXT_TYPE: \"context_type\",\n REFERER: \"referer_url\",\n PAY_ID: \"pay_id\",\n SELLER_ID: \"seller_id\",\n CLIENT_ID: \"client_id\",\n DATA_SOURCE: \"serverside_data_source\",\n BUTTON_SOURCE: \"button_source\",\n ERROR_CODE: \"ext_error_code\",\n ERROR_DESC: \"ext_error_desc\",\n PAGE_LOAD_TIME: \"page_load_time\",\n EXPERIMENT_NAME: \"pxp_exp_id\",\n TREATMENT_NAME: \"pxp_trtmnt_id\",\n TRANSITION_TIME: \"transition_time\",\n FUNDING_LIST: \"eligible_payment_methods\",\n FUNDING_COUNT: \"eligible_payment_count\",\n CHOSEN_FUNDING: \"selected_payment_method\",\n BUTTON_LAYOUT: \"button_layout\",\n VERSION: \"checkoutjs_version\",\n LOCALE: \"locale\",\n BUYER_COUNTRY: \"buyer_cntry\",\n INTEGRATION_IDENTIFIER: \"integration_identifier\",\n PARTNER_ATTRIBUTION_ID: \"bn_code\",\n SDK_NAME: \"sdk_name\",\n SDK_VERSION: \"sdk_version\",\n USER_AGENT: \"user_agent\",\n USER_ACTION: \"user_action\",\n CONTEXT_CORRID: \"context_correlation_id\"\n },\n FPTI_USER_ACTION = {\n COMMIT: \"commit\",\n CONTINUE: \"continue\"\n },\n FPTI_DATA_SOURCE = {\n PAYMENTS_SDK: \"checkout\"\n },\n FPTI_FEED = {\n PAYMENTS_SDK: \"payments_sdk\"\n },\n FPTI_SDK_NAME = {\n PAYMENTS_SDK: \"payments_sdk\"\n },\n INTENT = {\n CAPTURE: \"capture\",\n AUTHORIZE: \"authorize\",\n ORDER: \"order\"\n },\n COMMIT = {\n TRUE: !0,\n FALSE: !1\n },\n VAULT = {\n TRUE: !0,\n FALSE: !1\n },\n CURRENCY = {\n AUD: \"AUD\",\n BRL: \"BRL\",\n CAD: \"CAD\",\n CZK: \"CZK\",\n DKK: \"DKK\",\n EUR: \"EUR\",\n HKD: \"HKD\",\n HUF: \"HUF\",\n INR: \"INR\",\n ILS: \"ILS\",\n JPY: \"JPY\",\n MYR: \"MYR\",\n MXN: \"MXN\",\n TWD: \"TWD\",\n NZD: \"NZD\",\n NOK: \"NOK\",\n PHP: \"PHP\",\n PLN: \"PLN\",\n GBP: \"GBP\",\n RUB: \"RUB\",\n SGD: \"SGD\",\n SEK: \"SEK\",\n CHF: \"CHF\",\n THB: \"THB\",\n USD: \"USD\"\n },\n PLATFORM = {\n DESKTOP: \"desktop\",\n MOBILE: \"mobile\"\n },\n FUNDING = {\n PAYPAL: \"paypal\",\n VENMO: \"venmo\",\n CREDIT: \"credit\",\n CARD: \"card\",\n IDEAL: \"ideal\",\n SEPA: \"sepa\",\n BANCONTACT: \"bancontact\",\n GIROPAY: \"giropay\",\n SOFORT: \"sofort\",\n EPS: \"eps\",\n MYBANK: \"mybank\",\n P24: \"p24\",\n ZIMPLER: \"zimpler\",\n WECHATPAY: \"wechatpay\"\n },\n CARD = {\n VISA: \"visa\",\n MASTERCARD: \"mastercard\",\n AMEX: \"amex\",\n DISCOVER: \"discover\",\n HIPER: \"hiper\",\n ELO: \"elo\",\n JCB: \"jcb\",\n CUP: \"cup\"\n },\n DEFAULT_COUNTRY = COUNTRY.US,\n DEFAULT_CURRENCY = CURRENCY.USD,\n DEFAULT_INTENT = INTENT.CAPTURE,\n DEFAULT_COMMIT = COMMIT.TRUE,\n DEFAULT_VAULT = VAULT.FALSE,\n DEFAULT_COMPONENTS = COMPONENTS.BUTTONS,\n DEFAULT_DEBUG = DEBUG.FALSE;\n __webpack_require__.d(__webpack_exports__, \"COUNTRY\", function () {\n return COUNTRY;\n });\n __webpack_require__.d(__webpack_exports__, \"LANG\", function () {\n return LANG;\n });\n __webpack_require__.d(__webpack_exports__, \"COUNTRY_LANGS\", function () {\n return COUNTRY_LANGS;\n });\n __webpack_require__.d(__webpack_exports__, \"SDK_PATH\", function () {\n return \"/sdk/js\";\n });\n __webpack_require__.d(__webpack_exports__, \"SDK_SETTINGS\", function () {\n return SDK_SETTINGS;\n });\n __webpack_require__.d(__webpack_exports__, \"SDK_QUERY_KEYS\", function () {\n return SDK_QUERY_KEYS;\n });\n __webpack_require__.d(__webpack_exports__, \"COMPONENTS\", function () {\n return COMPONENTS;\n });\n __webpack_require__.d(__webpack_exports__, \"DEBUG\", function () {\n return DEBUG;\n });\n __webpack_require__.d(__webpack_exports__, \"QUERY_BOOL\", function () {\n return QUERY_BOOL;\n });\n __webpack_require__.d(__webpack_exports__, \"ENV\", function () {\n return ENV;\n });\n __webpack_require__.d(__webpack_exports__, \"FPTI_KEY\", function () {\n return FPTI_KEY;\n });\n __webpack_require__.d(__webpack_exports__, \"FPTI_USER_ACTION\", function () {\n return FPTI_USER_ACTION;\n });\n __webpack_require__.d(__webpack_exports__, \"FPTI_DATA_SOURCE\", function () {\n return FPTI_DATA_SOURCE;\n });\n __webpack_require__.d(__webpack_exports__, \"FPTI_FEED\", function () {\n return FPTI_FEED;\n });\n __webpack_require__.d(__webpack_exports__, \"FPTI_SDK_NAME\", function () {\n return FPTI_SDK_NAME;\n });\n __webpack_require__.d(__webpack_exports__, \"INTENT\", function () {\n return INTENT;\n });\n __webpack_require__.d(__webpack_exports__, \"COMMIT\", function () {\n return COMMIT;\n });\n __webpack_require__.d(__webpack_exports__, \"VAULT\", function () {\n return VAULT;\n });\n __webpack_require__.d(__webpack_exports__, \"CURRENCY\", function () {\n return CURRENCY;\n });\n __webpack_require__.d(__webpack_exports__, \"PLATFORM\", function () {\n return PLATFORM;\n });\n __webpack_require__.d(__webpack_exports__, \"FUNDING\", function () {\n return FUNDING;\n });\n __webpack_require__.d(__webpack_exports__, \"CARD\", function () {\n return CARD;\n });\n __webpack_require__.d(__webpack_exports__, \"DEFAULT_COUNTRY\", function () {\n return DEFAULT_COUNTRY;\n });\n __webpack_require__.d(__webpack_exports__, \"DEFAULT_CURRENCY\", function () {\n return DEFAULT_CURRENCY;\n });\n __webpack_require__.d(__webpack_exports__, \"DEFAULT_INTENT\", function () {\n return DEFAULT_INTENT;\n });\n __webpack_require__.d(__webpack_exports__, \"DEFAULT_COMMIT\", function () {\n return DEFAULT_COMMIT;\n });\n __webpack_require__.d(__webpack_exports__, \"DEFAULT_VAULT\", function () {\n return DEFAULT_VAULT;\n });\n __webpack_require__.d(__webpack_exports__, \"DEFAULT_COMPONENTS\", function () {\n return DEFAULT_COMPONENTS;\n });\n __webpack_require__.d(__webpack_exports__, \"DEFAULT_DEBUG\", function () {\n return DEFAULT_DEBUG;\n });\n }\n });\n});\n//# sourceMappingURL=paypal-sdk-constants.js.map\n//# sourceMappingURL=paypal-sdk-constants.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/paypal-sdk-constants/dist/paypal-sdk-constants.js\n// module id = ../node_modules/paypal-sdk-constants/dist/paypal-sdk-constants.js\n// module chunks = 0","/* @flow */\n\n// $FlowFixMe\nmodule.exports = require('./dist/paypal-sdk-constants'); // eslint-disable-line import/no-commonjs\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/paypal-sdk-constants/index.js\n// module id = ../node_modules/paypal-sdk-constants/index.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$Api = undefined;\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nexports.$getLatestCorrelationID = $getLatestCorrelationID;\n\nvar _jquery = require('jquery');\n\nvar _jquery2 = _interopRequireDefault(_jquery);\n\nvar _logger = require('xo-beaver/dist/logger');\n\nvar _event = require('./event');\n\nvar _class = require('./class');\n\nvar _util = require('./util');\n\nvar _promise = require('./promise');\n\nvar _config = require('./config');\n\nvar _error = require('./error');\n\nvar _loader = require('./loader');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n/*\n API\n ---\n\n This layer is responsible for handling api requests. It has a number of responsibilities:\n\n - Caching responses\n - Transparently returning data that has been preloaded into the initial page response\n - Instrumentation\n - Batching multiple api calls into a single http request\n - Handling multiple types of responses and dispatching to the correct handlers\n - Emitting loading events for all http calls\n */\n\n_config.$meta.headers = _config.$meta.headers || {};\n_config.$meta.headers['x-cookies'] = _typeof(_config.$meta.headers['x-cookies']) !== 'object' ? JSON.parse(_config.$meta.headers['x-cookies'] || '{}') : _config.$meta.headers['x-cookies'];\n\n// Are we in 'cookies disabled' mode? (Do we need to keep a local store of cookies)\nfunction cookiesEnabled() {\n return _util.$util.cookiesEnabled() && window.location.hostname.indexOf('.paypal.com') > -1;\n}\n\n// Cache for api responses, when cache: true\nvar cache = {};\nvar standardHeaders = {};\n\nvar latestCorrelationID = _config.$meta.correlationId;\n\n// Window load promise\nvar windowLoad = _util.$util.memoize(function () {\n return _promise.$promise.resolver(function (resolve) {\n if (document.readyState === 'complete') {\n resolve();\n } else {\n window.addEventListener('load', resolve);\n }\n });\n});\n\n// Buffer for batch requests made within the same frame\nvar batchQueue = {};\n\n// Backwards compat\nwindow.pre = {};\n\n// Transient cache resolvers\nvar transientCache = {};\n\n// Transient cache resolvers\nvar transientCacheResolvers = {};\n\n// Metabuilder\nvar metaBuilder = void 0;\n\n// Add to transientCache\nwindow.preload = function (method, url, data, name) {\n\n if (name) {\n window.pre[name] = {\n method: method,\n uri: url,\n res: data\n };\n }\n\n var key = method + ':' + url;\n var resolvers = transientCacheResolvers[key] || [];\n\n transientCache[key] = data;\n\n while (resolvers.length) {\n resolvers.pop().call();\n }\n};\n\n// Preload complete\nvar preloadComplete = false;\n\nwindow.preloadComplete = function () {\n preloadComplete = true;\n Object.keys(transientCacheResolvers).forEach(function (key) {\n var resolvers = transientCacheResolvers[key] || [];\n\n while (resolvers.length) {\n resolvers.pop().call();\n }\n });\n};\n\n_logger.$logger.info(cookiesEnabled() ? 'cookies_enabled' : 'cookies_disabled');\n\nvar $Api = exports.$Api = _class.$Class.extend('$Api', {\n\n // Cache any GET responses indefinitely\n cache: false,\n\n // Http timeout for all requests\n timeout: 45000,\n\n // Default number of attempts on aborted requests and 500 server errors\n getAttempts: 3,\n postAttempts: 1,\n\n // POST on a resource with an action name myapi.action('foo') -> POST /my/api/foo\n action: function action(_action, options) {\n options.action = _action;\n return this.post(options);\n },\n\n // GET on a resource myapi.retrieve() -> GET /my/api\n retrieve: function retrieve(options) {\n options.method = 'get';\n return this.call(options);\n },\n\n // POST on a resource myapi.retrieve() -> POST /my/api\n post: function post(options) {\n options.method = 'post';\n return this.call(options);\n },\n\n // Generic handler for calling an api and dispatching requests to the right place\n call: function call(options) {\n var self = this;\n\n // Set up request options and params. `options` is an object which should contain everything\n // the request needs to run and handle the response\n\n options.api = this;\n options.uri = this.getURI(options.model, options.action);\n options.params = options.params || {};\n options.cache = options.cache || self.cache && options.method === 'get';\n options.name = this.buildAPIName(options);\n options.meta = this.buildMeta();\n options.transientError = options.transientError || false;\n options.cacheKey = _util.$util.buildURL(options.uri, options.params);\n\n _logger.$logger.info(options.name + '_call', {\n name: options.name,\n method: options.method,\n uri: options.uri\n });\n\n if (!options.silent) {\n _event.$event.emit('loading');\n }\n\n // Decide where to get the response\n return _promise.$promise.first([\n\n // If caching is enabled and we have the data in local cache, use the cache\n function () {\n if (options.cache && cache[options.cacheKey]) {\n return cache[options.cacheKey];\n }\n },\n\n // Otherwise if we have transient cache data for this api, we can use that\n function () {\n return _promise.$promise.providing(self.hasTransientCacheData(options), function () {\n\n // The reason we use self.attemptRequest here is so any errors in the cached response\n // can trigger the retry code path, as if it were a regular request\n return self.attemptRequest(options);\n });\n },\n\n // If we're in batch mode, queue up a batch request\n function () {\n if (options.batch) {\n return self.batchRequest(options);\n }\n },\n\n // Otherwise attempt a regular http request (at this point an http call is guaranteed)\n function () {\n return self.attemptRequest(options);\n }])['finally'](function () {\n\n if (!options.silent) {\n _event.$event.emit('loaded');\n }\n }).then(function (res) {\n\n // Cache the response if we need to\n if (options.cache) {\n cache[options.cacheKey] = res;\n }\n\n // Handle the response\n return self.handleResponse(res.data, options);\n }, function (err) {\n\n // $BatchShortCircuit will be thrown if:\n //\n // 1. batch api call B depends on api call A, but-\n // 2. api call A fails\n //\n // In which case we end up in a situation where had it been a regular chain of events,\n // api B would never have been called in the first place.\n //\n // One possibility here is to return $unresolved, which prevents the promise from ever\n // resolving, but this has the potential to cause a lot of difficulty debugging and strange\n // corner cases.\n //\n // Instead we opt to simply reject the promise, and not call any of the response handlers\n\n if (err instanceof _error.$BatchShortCircuit) {\n return _promise.$promise.reject(err);\n }\n\n // Otherwise, handle the error normally\n return self.handleErrorResponse(err, options);\n });\n },\n\n // Set up a batch request for processing in the next frame\n batchRequest: function batchRequest(options) {\n\n // Batch Requests are an optimization layer on top of regular api calls. The purpose of this\n // layer is to combine multiple atomic api calls into a single http request, without forcing\n // developers to create large orchestration layers on the client/server with cross-cutting concerns.\n //\n // This layer will queue up multiple requests made in the same frame whenever batch-mode is enabled,\n // attach them all to an http call to /api/batch/:name, then on the response it will dispatch each\n // individual api call to the correct handler.\n //\n // The way this is implemented is to place each response in the transient api cache, then to yield\n // control to the regular api request handler, which will handle instrumentation and retries\n\n // For quick dev-time feedback...\n _util.$util.assert(options.batch.name, 'Must define a \"name\" for batch request: ' + options.batch);\n _util.$util.assert(options.batch.id, 'Must define a \"id\" for batch request: ' + options.batch);\n\n var name = options.batch.name;\n var id = options.batch.id;\n\n // Add the batch request options to the batchQueue for processing on the next frame\n var batch = batchQueue[name] = batchQueue[name] || {};\n\n batch[id] = options;\n\n // Fire off a batch request. This will be debounced: calls in the same frame will be combined to one\n return this.buildBatchRequest(name).then(function (results) {\n\n // We get back a mapping of id->response, so we now extract the response for our api\n // call. If we have no response, we can assume the call was never made, and short circuit.\n return results[id].then(function (result) {\n return result || _promise.$promise.reject(new _error.$BatchShortCircuit());\n });\n });\n },\n\n // Process all of the accumulated batch api requests\n buildBatchRequest: _promise.$promise.debounce(function (name) {\n\n var self = this;\n var batch = batchQueue[name];\n var batchIds = _class.$Class.keys(batch);\n var batchData = {};\n var headers = {};\n\n delete batchQueue[name];\n\n // If we have just a single request, we can short-circuit and just hit that api\n\n if (batchIds.length === 1) {\n\n var batchId = batchIds[0];\n var opts = batch[batchId];\n\n var results = {};\n\n results[batchId] = opts.api.attemptRequest(opts);\n return results;\n }\n\n // Build the request to send to the server side. This is an mapping of id->request, each containing\n // the method, uri, data, and dependencies for each api.\n //\n // Specifying a dependency for an api essentially means the back-end will only\n // call api-B if api-A returns ack=success. Otherwise there will be no response for api B.\n\n _util.$util.forEach(batch, function (options, id) {\n\n batchData[id] = {\n method: options.method,\n uri: options.api.getURI(options.model, options.action, true),\n data: options.data,\n params: options.params,\n dependencies: options.batch.dependencies\n };\n\n _util.$util.extend(headers, options.headers);\n });\n\n // Unfortunate circular dependency... $Api depends on another api.\n //\n // $batchApi is subject to all of the same rules regarding retries, so if for some reason the server\n // does not respond the first time, our batch request can still get through.\n\n return $batchApi.action(name, { // eslint-disable-line no-use-before-define\n data: batchData,\n headers: headers\n }).then(function (res) {\n\n // The final response will be a mapping of id->response-promise.\n //\n // However, we do not treat this data as our final response. Instead, we simply use it to\n // prime our transient cache, then proceed to jump to our regular request handler. This will\n // take care of retries and instrumentation as if this were a regular request.\n //\n // Note that a retry for $batchApi is different to a retry for an individual api. If\n // an *individual* api call fails, we do not want to re-do the entire batch call; instead we\n // can just retry the individual api call.\n\n return self.handleBatchResponse(batch, res.data);\n });\n }),\n\n // Process the responses for all of the batch requests we sent to the server\n handleBatchResponse: function handleBatchResponse(batch, data) {\n\n var self = this;\n\n var promises = {};\n\n // Loop over each individual api response contained in the batch response, and process the result\n\n _util.$util.forEach(batch, function (options, id) {\n\n // Store each response promise so we can check and wait for api dependencies\n\n promises[id] = _promise.$promise.run(function () {\n\n // Check if all of the dependencies are present for our individual api call. To do this\n // we must wait until the dependent api call is entirely complete, including any retries.\n\n var depsPresent = _promise.$promise.every(options.batch.dependencies || [], function (depName) {\n\n if (!batch[depName]) {\n _logger.$logger.info('missing_batch_dependency', {\n dependency: depName,\n available: Object.keys(batch).join('|')\n });\n }\n\n return !batch[depName] || promises[depName].then(function (dependency) {\n return dependency && dependency.data && dependency.data.ack === 'success';\n });\n });\n\n // If our dependencies are present, we can continue, otherwise we are not interested in\n // the result of the individual api call - if its dependency is not present, it will not be.\n\n return _promise.$promise.providing(depsPresent, function () {\n\n // If there is data returned for the individual call, add it to the transient cache\n\n return _promise.$promise.providing(data[id], function (result) {\n var uri = options.api.getURI(options.model, options.action);\n\n uri = _util.$util.buildURL(uri, options.params);\n\n self.addTransientCacheData(options.method, uri, result);\n }).then(function () {\n\n // Regardless of whether or not there is data, we can now attempt the request.\n // This will either get the data from the transient cache, or make an http call,\n // and handle any retries that need to be made.\n\n return options.api.attemptRequest(options);\n });\n });\n });\n });\n\n return promises;\n },\n\n // Handle the request and any retries, using either the transient cache or http calls\n attemptRequest: function attemptRequest(options) {\n var self = this;\n\n var attempts = options.method === 'get' ? this.getAttempts : this.postAttempts;\n\n // We allow a certain number of attempts/retries for each api call\n return _promise.$promise.attempt(attempts, function (remaining) {\n\n // Query the transient cache\n return self.getTransientCacheResponse(options).then(function (res) {\n\n // If we can get a response from the transient cache, then use it\n if (res) {\n return res;\n }\n\n // Otherwise resort to making an http call\n return self.getHttpResponse(options);\n })['catch'](function (res) {\n\n // If our request was aborted without even a status code, force a single retry\n if ((!res || !res.status) && attempts === 1) {\n\n _logger.$logger.warn('api_retry_aborted', {\n method: options.method,\n uri: options.uri\n });\n\n return self.getHttpResponse(options);\n }\n\n return _promise.$promise.reject(res);\n })['catch'](function (res) {\n\n // If our request was 401 denied (probably due to a CSRF error), force a single retry\n if (res.status === 401) {\n\n _logger.$logger.warn('api_retry_401', {\n method: options.method,\n uri: options.uri\n });\n\n return self.getHttpResponse(options);\n }\n\n return _promise.$promise.reject(res);\n })['catch'](function (res) {\n\n // Set the correct response and ack for 401\n if (res.status === 401) {\n return {\n data: {\n ack: 'permission_denied'\n }\n };\n }\n\n // Setup to throw a TOO_MANY_REQUESTS contingency for 429 response from ratelimiter (velocityserv)\n if (res.status === 429) {\n return {\n data: {\n ack: 'contingency',\n contingency: 'TOO_MANY_REQUESTS'\n }\n };\n }\n\n // If we have any remaining retries, log and reject\n if (remaining) {\n\n _logger.$logger.warn('api_retry', {\n method: options.method,\n uri: options.uri\n });\n\n return _promise.$promise.reject(res);\n }\n\n // Otherwise reject the request with the appropriate error\n\n // We got ack=error in the response\n if (res && res.data && res.data.ack === 'error') {\n return _promise.$promise.reject(new _error.$ApiError('api_error', { // eslint-disable-line no-reserved-keys\n name: options.name,\n method: options.method,\n uri: options.uri,\n stack: res.data.stack,\n transient: options.transientError\n }));\n }\n\n // We got a response error status\n else if (res && res.status) {\n return _promise.$promise.reject(new _error.$ApiError('response_status_' + res.status, { // eslint-disable-line no-reserved-keys\n uri: options.uri,\n transient: options.transientError\n }));\n } else if (res && res.error) {\n return _promise.$promise.reject(new _error.$ApiError('request_' + res.error, { // eslint-disable-line no-reserved-keys\n uri: options.uri,\n transient: options.transientError\n }));\n }\n\n // The request was aborted\n else {\n return _promise.$promise.reject(new _error.$ApiError('request_aborted', { // eslint-disable-line no-reserved-keys\n uri: options.uri,\n transient: options.transientError\n }));\n }\n });\n });\n },\n\n // Get an api response via http\n getHttpResponse: function getHttpResponse(options) {\n var self = this;\n\n var startTime = _util.$util.now();\n\n var request = this.http(options);\n\n return request['finally'](function () {\n\n // Calculate the end-to-end duration of the request from the client's perspective\n options.duration = _util.$util.now() - startTime;\n })['catch'](function (res) {\n\n // Turn responses with an ack into a 'success' so it makes it to the standard handlers\n if (res && res.status && res.data && res.data.ack && res.data.ack !== 'error') {\n return res;\n }\n\n return _promise.$promise.reject(res);\n }).then(function (res) {\n self.saveResponseState(res);\n\n var loggerPayload = {\n name: options.name,\n method: options.method,\n uri: options.uri,\n server: res.data.server,\n time: options.duration,\n duration: options.duration,\n corrid: res && res.headers('Paypal-Debug-Id')\n };\n\n // In certain browsers we can match up this api call to the performance data from the browser\n if (window.performance && window.performance.getEntries) {\n _util.$util.forEach(window.performance.getEntries(), function (resource) {\n if (resource.name && resource.name.indexOf(options.uri) > -1) {\n _util.$util.extend(loggerPayload, resource);\n }\n });\n }\n\n _logger.$logger.info('api_response', loggerPayload);\n\n if (res && res.status) {\n _logger.$logger.info('http_response_' + res.status);\n }\n\n return res;\n }, function (res) {\n self.saveResponseState(res);\n\n if (res && res.status) {\n _logger.$logger.info('http_response_' + res.status, {\n corrid: res.headers('Paypal-Debug-Id'),\n referenceId: res.headers('X-Reference-Header') || undefined // To not serialize this data if not present\n });\n }\n\n return _promise.$promise.reject(res);\n });\n },\n\n setTransientCache: function setTransientCache(data) {\n throw new Error('NotImplemented');\n },\n\n // Get an individual api response from the transient cache, as an object\n getTransientCacheData: function getTransientCacheData(options, pop) {\n\n if (!_config.$config.enablePreload) {\n return _promise.$promise.resolve();\n }\n\n var preMethod = options.method.toLowerCase();\n var preUri = _util.$util.buildURL(options.uri, options.params);\n\n var key = preMethod + ':' + preUri;\n\n return _promise.$promise.resolver(function (resolve) {\n\n function res() {\n var data = transientCache[key];\n\n if (pop) {\n delete transientCache[key];\n }\n resolve(data);\n }\n\n if (transientCache[key] || document.readyState === 'complete' || preloadComplete) {\n return res();\n }\n\n transientCacheResolvers[key] = transientCacheResolvers[key] || [];\n transientCacheResolvers[key].push(res);\n\n windowLoad().then(res);\n });\n },\n\n // Check if the transient cache has the data for a particular api\n hasTransientCacheData: function hasTransientCacheData(options) {\n return this.getTransientCacheData(options, false).then(function (data) {\n return Boolean(data);\n });\n },\n\n // Add data to the transient cache\n addTransientCacheData: function addTransientCacheData(method, uri, data) {\n var key = method + ':' + uri;\n\n transientCache[key] = data;\n },\n\n // Get an individual api response from transient cache, as a res promise with the correct status code\n getTransientCacheResponse: function getTransientCacheResponse(options) {\n\n return this.getTransientCacheData(options, true).then(function (data) {\n\n // Preload data does not come with a response code, so massage it into a response promise\n if (data) {\n if (data.ack === 'error') {\n return _promise.$promise.reject({\n status: 500,\n data: data\n });\n } else if (data.ack === 'permission_denied') {\n return _promise.$promise.reject({\n status: 401,\n data: data\n });\n } else if (data.ack === 'contingency' || data.ack === 'validation_error') {\n return {\n status: 400,\n data: data\n };\n } else {\n return {\n status: 200,\n data: data\n };\n }\n }\n\n // Log a cache miss if we are currently in the first-page load\n else if (options.method === 'get' && !_loader.$loader.firstLoad() && !options.silent) {\n _logger.$logger.info('preload_cache_miss', {\n uri: options.uri\n });\n }\n });\n },\n\n getHeaders: function getHeaders(options) {\n\n if (!_config.$meta.headers['x-csrf-jwt'] && !_config.$meta.csrfJwt) {\n _logger.$logger.warn('missing_csrf_jwt');\n }\n\n var headers = {\n 'X-Requested-With': 'XMLHttpRequest',\n 'x-csrf-jwt': _config.$meta.headers['x-csrf-jwt'] || _config.$meta.csrfJwt\n };\n\n _util.$util.extend(headers, standardHeaders);\n\n if (!cookiesEnabled()) {\n headers['x-cookies'] = JSON.stringify(_config.$meta.headers['x-cookies']);\n }\n\n if (options.headers) {\n _util.$util.extend(headers, options.headers);\n }\n\n return headers;\n },\n http: function http(options) {\n return this.httpJQuery(options);\n },\n\n\n /*\n // Raw http call\n httpAngular: function(options) {\n let request = {\n method: options.method,\n url: options.uri,\n data: {\n data: options.data,\n meta: options.meta\n },\n headers: this.getHeaders(options),\n params: options.params,\n requestType: 'json',\n responseType: 'json',\n timeout: this.timeout\n };\n if (options.method === 'get' && options.meta && Object.keys(options.meta).length) {\n request.params.meta = JSON.stringify(options.meta);\n }\n return $http(request);\n },\n */\n\n httpJQuery: function httpJQuery(options) {\n\n var request = {\n method: options.method,\n data: options.method === 'get' ? options.params : JSON.stringify({\n data: options.data,\n meta: options.meta || {}\n }),\n headers: this.getHeaders(options),\n timeout: this.timeout\n };\n\n if (options.method === 'post') {\n request.headers['Content-Type'] = 'application/json;charset=UTF-8';\n } else if (options.method === 'get') {\n request.data.meta = JSON.stringify(options.meta);\n }\n\n return _promise.$promise.resolver(function (resolve, reject) {\n\n function getRes(res, data) {\n return {\n status: res.status,\n data: data,\n headers: function headers(name) {\n return res.getResponseHeader(name);\n }\n };\n }\n\n request.success = function (data, status, res) {\n return resolve(getRes(res, data));\n };\n\n request.error = function (res) {\n if (res && res.status) {\n if (res.status >= 400) {\n return reject(getRes(res, res.responseJSON));\n } else {\n return resolve(getRes(res, res.responseJSON));\n }\n }\n\n return reject({\n status: 0,\n headers: _util.$util.noop,\n error: res && res.statusText\n });\n };\n\n _jquery2['default'].ajax(options.uri, request);\n });\n },\n\n // Save cookies and jwt-csrf token from the response\n saveResponseState: function saveResponseState(res) {\n\n if (res.headers('x-csrf-jwt')) {\n _config.$meta.headers['x-csrf-jwt'] = res.headers('x-csrf-jwt');\n _config.$meta.csrfJwt = res.headers('x-csrf-jwt');\n _config.$meta.headers['x-csrf-jwt-hash'] = res.headers('x-csrf-jwt-hash');\n }\n\n if (res.headers('X-cookies')) {\n\n _config.$meta.headers['x-cookies-hash'] = res.headers('x-cookies-hash');\n\n // Extend local cookie jar of encrypted-cookie-name->encrypted-cookie-value with any new cookies\n _util.$util.extend(_config.$meta.headers['x-cookies'], JSON.parse(res.headers('X-cookies') || '{}'));\n }\n\n latestCorrelationID = res.headers('Paypal-Debug-Id') || latestCorrelationID;\n },\n\n // Dispatch the response to the correct handlers\n handleResponse: function handleResponse(res, options) {\n var loggerName = 'ui_' + options.name;\n\n var loggerPayload = {\n name: options.name,\n method: options.method,\n uri: options.uri,\n time: options.duration,\n duration: options.duration\n };\n\n // Here we dispatch the response to the correct handler based on the ack.\n //\n // ack=success -> options.success()\n // ack=error -> options.error()\n // ack=validation -> options.validation()\n // ack=contingency -> options.contingencies[contingency]()\n //\n // Why do this rather than just rejecting the promise with a custom error?\n //\n // a) Angular promises have no `.catchType()`, so this saves us a lot of `instanceof` checks\n // b) Angular promises have no `.done()`, so callers can not assert that they have handled\n // every error they want to. This is exacerbated by the fact that there is no single thread\n // of execution on the front-end a la node, so we can't just call `.done()` at the very end :(\n //\n // This way, if somebody passes a handler, it will be called. Otherwise, an error will be thrown\n // and the global error handler will be invoked. The api responses are also given as promises.\n\n var resultModel = options.resultModel || options.model;\n\n /* jshint maxcomplexity: 17 */\n return _promise.$promise.call(function () {\n\n // If we are given a `resultModel`, we always extend it with `res.data`, no matter the ack\n\n if (res.data && resultModel) {\n\n if (resultModel.populate) {\n resultModel.populate(res.data);\n } else {\n _util.$util.extend(resultModel, res.data);\n }\n }\n\n if (res && res.ack === 'success' && resultModel && resultModel.fetchChildren) {\n return _promise.$promise.resolve(resultModel.fetchChildren()).then(function (children) {\n return _util.$util.extend(resultModel, children);\n });\n }\n }).then(function () {\n // eslint-disable-line max-statements\n\n // Handle each ack type, throw errors accordingly\n\n if (res.ack === 'success') {\n _logger.$logger.info(loggerName + '_success', loggerPayload);\n\n if (options.success) {\n if (options.success instanceof Function) {\n return options.success(res.data);\n }\n return options.success;\n }\n\n return res;\n }\n\n if (options.failSilently) {\n return;\n }\n\n if (res.ack === 'contingency') {\n _logger.$logger.info(loggerName + '_contingency', _util.$util.extend(loggerPayload, {\n contingency: res.contingency\n }));\n\n if (!res.contingency) {\n throw new _error.$ApiError('expected_contingency_name', {\n api: options.name\n });\n }\n\n var contingency = new _error.$Contingency(res.contingency, { // eslint-disable-line no-reserved-keys\n transient: options.transientError\n });\n\n if (resultModel) {\n resultModel.errorData = res.errorData || {};\n }\n\n var handler = options.contingencies && (options.contingencies[contingency.message] || options.contingencies['DEFAULT']);\n\n _util.$util.extend(contingency, res.errorData);\n\n if (handler) {\n if (handler instanceof Function) {\n return handler(contingency.message, contingency);\n }\n return handler;\n }\n\n throw contingency;\n } else if (res.ack === 'validation') {\n _logger.$logger.info(loggerName + '_validation', _util.$util.extend(loggerPayload, {\n validation: res.validation\n }));\n\n if (options.validation) {\n return options.validation(res.validation);\n }\n\n throw new _error.$ApiError('validation', { // eslint-disable-line no-reserved-keys\n transient: options.transientError\n });\n } else if (res.ack === 'permission_denied') {\n _logger.$logger.info(loggerName + '_denied', loggerPayload);\n\n var properties = {\n transient: options.transientError\n };\n\n if (res.reason) {\n properties.reason = res.reason;\n }\n\n throw new _error.$Forbidden(options.uri + ': forbidden', properties);\n } else {\n _logger.$logger.info(loggerName + '_noack', loggerPayload);\n\n throw new _error.$ApiError('noack', { // eslint-disable-line no-reserved-keys\n transient: options.transientError\n });\n }\n });\n },\n\n // Handle http error responses (ack=error or unhandled errors)\n handleErrorResponse: function handleErrorResponse(err, options) {\n\n return _promise.$promise.run(function () {\n\n // If the caller provides an error handler, let them handle it\n if (options.error) {\n return options.error(err);\n }\n\n // Otherwise we throw the error. Please not that this is NOT just rejecting the promise,\n // this will always end up in the global error handler due to how angular promises work.\n throw err;\n });\n },\n\n // Build the uri for the api call\n getURI: function getURI(model, action, relative) {\n var self = this;\n\n // build the uri as a seriest of segments\n var uri = [];\n\n uri.push(this.uri.replace(/\\/:[\\w\\.]+\\?/g, function (key) {\n\n // Add any *optional* dynamic keys from the model (/foo/:bar? -> /foo/{{model.bar}})\n\n key = key.slice(2);\n key = key.substring(0, key.length - 1);\n\n var component = model.get ? model.get(key) : model[key];\n\n if (!component) {\n return '';\n }\n\n return '/' + component;\n }).replace(/:[\\w\\.]+/g, function (key) {\n\n // Add any dynamic keys from the model (/foo/:bar -> /foo/{{model.bar}})\n\n key = key.slice(1);\n\n var component = model.get ? model.get(key) : model[key];\n\n if (!component) {\n throw new Error('Property \"' + key + '\" not found in model for: ' + self.uri);\n }\n\n return component;\n }));\n\n // Add the action, if provided (`foo.action('bar', {...})` -> /api/foo/bar\n if (action) {\n uri.push(action);\n }\n\n // Add the extension (e.g. for doing a GET on a .json resource)\n if (this.ext) {\n uri[uri.length - 1] += '.' + this.ext;\n }\n\n // Join the uri segments and strip any extra slashes\n uri = '/' + uri.join('/').replace(/\\/{2,}/g, '/').replace(/^\\//, '');\n\n // Add on the base uri, e.g. /webapps/hermes\n if (!relative) {\n uri = (this.baseURI || _config.$config.urls.baseUrl) + uri;\n }\n\n return uri;\n },\n\n // Attach meta data provided by the parent app\n buildMeta: function buildMeta() {\n if (metaBuilder) {\n return metaBuilder();\n }\n },\n\n // Build the name of the api for logging. /api/foo/bar -> api_foo_bar\n buildAPIName: function buildAPIName(options) {\n var self = this;\n var apiName = self.uri.replace(/^\\/+/, ''). // Remove leading '/'\n replace(/\\//g, '_'). // Replace remaining '/' with '_'\n replace(/\\?(.*)/, ''). // Remove everything after '?'\n replace(/[^a-zA-Z0-9_]/g, '');\n\n apiName = options.action ? apiName + '_' + options.action : apiName;\n apiName = apiName.charAt(0) === '_' ? apiName.slice(1) : apiName;\n return apiName;\n }\n});\n\n$Api.reopenClass({\n clearCache: function clearCache() {\n cache = {};\n }\n});\n\n$Api.registerMetaBuilder = function (builder) {\n metaBuilder = builder;\n};\n\n$Api.addHeader = function (name, value) {\n standardHeaders[name] = value;\n};\n\nvar $batchApi = new $Api({\n uri: '/api/batch',\n postAttempts: 3\n});\n\nfunction $getLatestCorrelationID() {\n return latestCorrelationID;\n}\n\nangular.value(\"$Api\", $Api);\nangular.value(\"$getLatestCorrelationID\", $getLatestCorrelationID);\n_logger.$logger;\n\n_event.$event;\n\n_class.$Class;\n\n_util.$util;\n\n_promise.$promise;\n\n_config.$config;\n\n_config.$meta;\n\n_error.$Contingency;\n\n_error.$Forbidden;\n\n_error.$ApiError;\n\n_error.$BatchShortCircuit;\n\n_loader.$loader;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/squid/dist/core/api.js\n// module id = ../node_modules/squid/dist/core/api.js\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\n/*\n Class\n -----\n\n A class pattern, adding sugar on top of javascript prototypes\n\n ### Basic Usage\n\n let MyClass = Class.extend({\n foo: 'bar';\n });\n\n myInstance = new MyClass({\n hello: 'world'\n });\n\n console.log(myInstance.foo, myInstance.hello)\n\n In this example, `foo` becomes a property on `MyClass`'s prototype,\n and `hello` becomes a property on `myInstance`.\n\n ### Default Object Methods\n\n - `init()`: Called after the object is first instantiated, with all properties available\n\n - `get(, )`: Get an object an arbitrary number of levels deep, or return a default\n\n e.g. `myInstance.get('foo.bar.baz', 'some_default');`\n\n Default return value is undefined\n\n - `set(, )`: Set an object an arbitrary number of levels deep\n\n e.g. `myInstance.set('foo.bar.baz', 'some_value');`\n\n Error is thrown if no object is found to set the value on\n\n - `setProperties()`: Set all the properties from an object onto your object\n\n e.g. `myInstance.setProperties({foo: 'bar', hello: 'world'})`\n\n Can not be used with nested properties\n\n - `forEach()`: Loop through the object and call callback(, ) for each key/val pair\n\n */\n\n// Object Create\n// -------------\n//\n// Shim for Object.create, if it is not supported by our browser\n//\n// let myPrototype = {foo: 'bar'}\n// let myObject = create(myPrototype)\n\n// Create an empty anonymous constructor with no side effects, for re-use later\nvar EmptyConstructor = function EmptyConstructor() {}; // eslint-disable-line no-empty-function\n\nvar create = Object.create || function create(obj) {\n\n // Set a temporary prototype\n EmptyConstructor.prototype = obj;\n\n // Create an object using our temporary constructor/prototype\n var instance = new EmptyConstructor();\n\n // Reset the prototype for next time\n EmptyConstructor.prototype = null;\n\n // Return our new object, created without side effects\n return instance;\n};\n\nfunction _extend(obj, source) {\n\n if (!source) {\n return obj;\n }\n\n for (var key in source) {\n if (source.hasOwnProperty(key)) {\n obj[key] = source[key];\n }\n }\n\n return obj;\n}\n\n// Is Object\n// ---------\n//\n// Check of a let is an object or not\n//\n// isobject({}) -> true\n// isobject('foo') -> false\n\nfunction isobject(obj) {\n return obj && (typeof obj === 'undefined' ? 'undefined' : _typeof(obj)) === 'object' && obj instanceof Object;\n}\n\n// Transpose properties\n// -------------------------------------------------------------------\n//\n// Transpose properties from a list of objects onto a recipient object\n//\n// let recipient = {};\n// transpose(recipient, [{a: 1, b: 2}, {c: 3}])\n// recipient -> {a: 1, b: 2, c:3}\n\nfunction transpose(recipient, args) {\n\n // Loop through all args\n for (var i = 0; i < args.length; i++) {\n var ob = args[i];\n\n // Ignore anything that is not an object\n if (!isobject(ob)) {\n continue;\n }\n\n // Loop through all keys in our object\n for (var key in ob) {\n\n // Ignore any prototypal properties\n if (!ob.hasOwnProperty(key)) {\n continue;\n }\n\n var item = ob[key];\n\n // Give the function a name\n if (item instanceof Function) {\n item.__name__ = key;\n }\n\n recipient[key] = item;\n }\n }\n}\n\n// Construct a Class\n// -----------------\n//\n// This is the primary constructor for all $Class objects\n\nfunction construct() {\n // eslint-disable-line no-unused-vars\n\n // Call any custom constructor;\n if (this.construct) {\n var ob = this.construct.apply(this, arguments);\n\n // If we get a new object back, return that to the user\n if (isobject(ob)) {\n return ob;\n }\n }\n\n // Load any provided properties directly onto the object\n transpose(this, arguments);\n\n // Initialize the object\n if (this.init) {\n this.init();\n }\n}\n\n// Reopen an object\n// ----------------\n//\n// Add properties to the constructor's prototype\n//\n// let Animal = $Class.extend();\n//\n// Animal.reopen({\n// type: 'animal',\n// });\n//\n// let cat = new Animal;\n// console.log(cat.type);\nfunction reopen() {\n\n // Add some more properies to our prototype\n transpose(this.prototype, arguments);\n\n return this;\n}\n\n// Reopen a class\n// --------------\n//\n// Add properties to the constructor. These will propogate through future extends\n//\n// let Animal = $Class.extend();\n//\n// Animal.reopenClass({\n// fromCache: function(id) {\n// return cache[id] || new this({id: id});\n// }\n// }\n//\n// let cat = Animal.fromCache('cat_54');\n\nfunction reopenClass() {\n\n // Add some more properies to our class\n transpose(this, arguments);\n\n // Add to __classmethods__\n transpose(this.__classmethods__, arguments);\n\n return this;\n}\n\nfunction isChild(Cls) {\n return Cls && Cls.prototype instanceof this;\n}\n\n// Generate a new class\n// --------------------\n//\n// Generate a new constructor, with the specified name, and attach all static and prototypal methods\n\nvar id = 0;\n\nfunction extend(name) {\n // eslint-disable-line max-statements\n var Cls = void 0;\n var className = void 0;\n var args = void 0;\n var argsLength = void 0;\n var startIndex = void 0;\n\n // Accept an optional class name\n if (typeof name === 'string') {\n\n // Guard against javascript injection\n if (!name.match(/^[\\w$][\\w\\d]*$/)) {\n throw new Error('Class name can not include special characters: ' + name);\n }\n\n // Use the provided name and slice out the first argument\n className = name;\n argsLength = arguments.length && arguments.length - 1;\n startIndex = 1;\n } else {\n\n // Otherwise default to the parent name, or 'Object' if generating our first class\n className = this.name || 'Object';\n argsLength = arguments.length;\n startIndex = 0;\n }\n\n args = new Array(argsLength);\n for (var i = startIndex; i < arguments.length; i++) {\n args[i - startIndex] = arguments[i];\n }\n\n // Dynamically create our constructor with a custom name\n eval('Cls = function ' + className + '() { return construct.apply(this, arguments) }'); // eslint-disable-line no-eval\n\n // Store the class name for future reference\n Cls.__name__ = className;\n\n // Set up a classmethods object. These will be inherited through subsequent extend() calls\n Cls.__classmethods__ = {\n extend: extend,\n reopen: reopen,\n reopenClass: reopenClass,\n isChild: isChild\n };\n\n id += 1;\n Cls.id = id;\n\n // If we're being called on an existing class, e.g. Class.extend(), we should inherit from that class\n if (this && this !== window) {\n\n // Inherit everything from superclass prototype\n Cls.prototype = create(this.prototype);\n\n // Re-set the constructor, which is overwritten by create\n Cls.prototype.constructor = Cls;\n\n // Add a reference to the superclass prototype for super method calls\n Cls.prototype._super = this.prototype;\n\n // Inherit any class methods from the superclass\n _extend(Cls.__classmethods__, this.__classmethods__);\n }\n\n // Add the class methods to our existing class\n _extend(Cls, Cls.__classmethods__);\n\n // Load any provided properties onto the constructor's prototype\n transpose(Cls.prototype, args);\n\n // Temporary: allow access from console/debugger\n if (className.indexOf('$') === 0) {\n window[className] = Cls;\n } else {\n window['$' + className] = Cls;\n }\n\n return Cls;\n}\n\n// Multi-layer get\n// ---------------\n//\n// Recursively gets a deep path from an object, returning a default value if any level is not found\n//\n// let obj = {bar: {baz: 1}}\n// get(obj, 'bar.baz', 'default') -> 1\n// get(obj, 'aaa.bbb', 'default') -> default\n\nfunction _get(item, path, def) {\n\n if (!path) {\n return def;\n }\n\n path = path.split('.');\n\n // Loop through each section of our key path\n for (var i = 0; i < path.length; i++) {\n\n // If we have an object, we can get the key\n if (isobject(item)) {\n item = item[path[i]];\n // Otherwise, we should return the default (undefined if not provided)\n } else {\n return def;\n }\n }\n\n // If our final result is undefined, we should return the default\n return item === undefined ? def : item;\n}\n\n// Multi-layer set\n// ---------------\n//\n// Recursively sets a deep path from an object\n//\n// let obj = {bar: {baz: 1}}\n// set(obj, 'bar.baz', 2)\n// obj.bar.baz -> 1\n\nfunction _set(item, path, value) {\n path = path.split('.');\n\n // Loop through each section of our key path except the last\n for (var i = 0; i < path.length - 1; i++) {\n\n // Get the next item down\n item = item[path[i]];\n\n // If we have an object, we're good\n if (isobject(item)) {\n continue;\n // Otherwise, there's nothing to set our key on\n } else {\n throw new Error(path[i - 1] + '.' + path[i] + ' is not an object');\n }\n }\n\n // Do the set on the retrieved object with our value\n item[path[path.length - 1]] = value;\n}\n\n// Loop through object\n// -------------------\n//\n// Loop an object and apply a function for each key/value\n//\n// let ob = {a: 1, b: 2, c: 3}\n// each(ob, console.log) -> a 1 b 2 c 3\n\nfunction each(ob, callback) {\n for (var key in ob) {\n if (ob.hasOwnProperty(key)) {\n callback.call(ob, key, ob[key]);\n }\n }\n}\n\n// Gey keys of object\n// ------------------\n//\n// Shim for Object.keys if it does not already exist\n//\n// let ob = {a: 1, b: 2, c: 3}\n// keys(ob) -> ['a', 'b', 'c']\n\nfunction _keys(ob) {\n\n if (Object.keys) {\n return Object.keys(ob);\n }\n\n var result = [];\n\n for (var key in ob) {\n if (ob.hasOwnProperty(key)) {\n result.push(key);\n }\n }\n\n return result;\n}\n\n// Create a base class that can be inherited from\n// ----------------------------------------------\n//\n// This is the public interface to the Class module.\n// All classes with extend from Class and be provided with a set of base convenience methods.\n\nvar $Class = exports.$Class = extend('Class', {\n\n init: function init() {\n // Empty init class, so calls to _super can be safely made\n },\n\n get: function get(path, def) {\n return _get(this, path, def);\n },\n\n set: function set(path, value) {\n _set(this, path, value);\n },\n\n setProperties: function setProperties() {\n transpose(this, arguments);\n },\n\n forEach: function forEach(callback) {\n each(this, callback);\n },\n\n keys: function keys() {\n return _keys(this);\n }\n});\n\n$Class.get = _get;\n$Class.set = _set;\n$Class.keys = _keys;\n\nangular.value(\"$Class\", $Class);\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/squid/dist/core/class.js\n// module id = ../node_modules/squid/dist/core/class.js\n// module chunks = 0","\n\nexports.__esModule = true;\nvar $meta = exports.$meta = window.meta || {};\nvar $cookies = exports.$cookies = window.cookies || {};\nvar $config = exports.$config = window.config || {};\nangular.value(\"$meta\", $meta);\nangular.value(\"$cookies\", $cookies);\nangular.value(\"$config\", $config);\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/squid/dist/core/config.js\n// module id = ../node_modules/squid/dist/core/config.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$dom = undefined;\n\nvar _logger = require('xo-beaver/dist/logger');\n\nvar _promise = require('./promise');\n\nvar _util = require('./util');\n\nvar $dom = exports.$dom = {\n\n elementReady: function elementReady(id) {\n\n return _promise.$promise.resolver(function (resolve, reject) {\n\n if (document.getElementById(id)) {\n return resolve();\n }\n\n var interval = setInterval(function () {\n if (document.getElementById(id)) {\n clearInterval(interval);\n return resolve();\n }\n }, 10);\n\n setTimeout(60000, reject);\n });\n },\n\n loadScript: function loadScript(name, src, timeout) {\n var attributes = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};\n\n return _promise.$promise.resolver(function (resolve, reject) {\n var script = document.createElement('script');\n var loadTimeout = void 0;\n\n function clearScriptLoadTimeout() {\n if (loadTimeout) {\n clearTimeout(loadTimeout);\n loadTimeout = undefined;\n }\n }\n\n script.onload = function () {\n clearScriptLoadTimeout();\n setTimeout(resolve, 10);\n };\n\n // For Internet explorer 8 support\n script.onreadystatechange = function () {\n if (this.readyState === 'complete' || this.readyState === 'loaded') {\n clearScriptLoadTimeout();\n setTimeout(resolve, 10);\n }\n };\n\n script.onerror = function (event) {\n _logger.$logger.info('script_error', {\n script: src\n });\n return reject(new Error(name + '_loading_error'));\n };\n\n if (timeout) {\n loadTimeout = setTimeout(function () {\n _logger.$logger.info('script_load_timedout', {\n script: src\n });\n return reject(new Error(name + '_loading_timed_out'));\n }, timeout);\n }\n\n script.setAttribute('src', src);\n\n for (var _iterator = Object.keys(attributes), _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {\n var _ref;\n\n if (_isArray) {\n if (_i >= _iterator.length) break;\n _ref = _iterator[_i++];\n } else {\n _i = _iterator.next();\n if (_i.done) break;\n _ref = _i.value;\n }\n\n var attribute = _ref;\n\n script.setAttribute(attribute, attributes[attribute]);\n }\n\n document.body.appendChild(script);\n });\n },\n\n cssReady: function cssReady(id) {\n\n var el = document.getElementById(id);\n\n return _promise.$promise.resolver(function (resolve, reject) {\n\n var timeout = void 0;\n var interval = void 0;\n\n function check() {\n _util.$util.forEach(document.styleSheets, function (stylesheet) {\n if (stylesheet.href === el.href) {\n clearInterval(interval);\n clearTimeout(timeout);\n resolve();\n }\n });\n }\n\n timeout = setTimeout(function () {\n clearInterval(interval);\n reject();\n throw new Error('css_loading_timed_out');\n }, 30000);\n\n interval = setInterval(check, 20);\n check();\n });\n }\n};\n\nangular.value(\"$dom\", $dom);\n_logger.$logger;\n\n_promise.$promise;\n\n_util.$util;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/squid/dist/core/dom.js\n// module id = ../node_modules/squid/dist/core/dom.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$BatchShortCircuit = exports.$ShortCircuit = exports.$FallbackError = exports.$ApiError = exports.$Forbidden = exports.$Contingency = exports.$Error = undefined;\n\nvar _event = require('./event');\n\nvar _class = require('./class');\n\nvar _util = require('./util');\n\n_util.$util.monkeyPatch(window, 'onerror', function (_ref, original) {\n var message = _ref[0],\n file = _ref[1],\n line = _ref[2],\n col = _ref[3],\n err = _ref[4];\n\n\n original();\n\n _event.$event.emit('$windowError', {\n message: message && (message.stack || message).toString(),\n file: file && file.toString(),\n line: line && line.toString(),\n col: col && col.toString(),\n stack: err && (err.stack || err).toString()\n });\n});\n\nvar $Error = exports.$Error = _class.$Class.extend.call(Error, '$Error', {\n\n construct: function construct(err, properties) {\n\n if (err instanceof Error) {\n err = err.message;\n }\n\n if (properties) {\n _util.$util.extend(this, properties);\n }\n\n this.payload = properties;\n\n this.message = err;\n }\n});\n\nvar $Contingency = exports.$Contingency = $Error.extend('$Contingency', {\n handle: function handle(handlers) {\n var handler = handlers[this.message] || handlers['DEFAULT'];\n\n if (handler) {\n var result = handler.call(this, this.message, this);\n\n if (typeof result !== 'undefined') {\n return result;\n }\n return true;\n }\n }\n});\n\nvar $Forbidden = exports.$Forbidden = $Error.extend('$Forbidden');\n\nvar $ApiError = exports.$ApiError = $Error.extend('$ApiError');\n\nvar $FallbackError = exports.$FallbackError = $Error.extend('$FallbackError', {\n init: function init() {\n this.reason = this.reason || '';\n this.product = this.product || '';\n this.entryPoint = this.entryPoint || '';\n }\n});\n\n/**\n * $ShortCircuit should be thrown if you want to bypass the remainder of a promise chain, and you've already\n * done error handling for the rejection. It should be handled with a no-op in app's $exceptionHandler\n */\nvar $ShortCircuit = exports.$ShortCircuit = $Error.extend('$ShortCircuit');\n\n// TO-BE-DEPRECATED: Use $ShortCircuit instead\nvar $BatchShortCircuit = exports.$BatchShortCircuit = $ShortCircuit;\n\nangular.value(\"$Error\", $Error);\nangular.value(\"$Contingency\", $Contingency);\nangular.value(\"$Forbidden\", $Forbidden);\nangular.value(\"$ApiError\", $ApiError);\nangular.value(\"$FallbackError\", $FallbackError);\nangular.value(\"$ShortCircuit\", $ShortCircuit);\nangular.value(\"$BatchShortCircuit\", $BatchShortCircuit);\n_event.$event;\n\n_class.$Class;\n\n_util.$util;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/squid/dist/core/error.js\n// module id = ../node_modules/squid/dist/core/error.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$event = undefined;\n\nvar _promise = require(\"./promise\");\n\nvar handlers = {};\n\nvar customEventEmitter = void 0;\n\nvar $event = exports.$event = {\n use: function use(eventEmitter) {\n customEventEmitter = eventEmitter;\n\n for (var _iterator = Object.keys(handlers), _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {\n var _ref;\n\n if (_isArray) {\n if (_i >= _iterator.length) break;\n _ref = _iterator[_i++];\n } else {\n _i = _iterator.next();\n if (_i.done) break;\n _ref = _i.value;\n }\n\n var eventName = _ref;\n\n if (handlers[eventName]) {\n for (var _iterator2 = handlers[eventName], _isArray2 = Array.isArray(_iterator2), _i2 = 0, _iterator2 = _isArray2 ? _iterator2 : _iterator2[Symbol.iterator]();;) {\n var _ref2;\n\n if (_isArray2) {\n if (_i2 >= _iterator2.length) break;\n _ref2 = _iterator2[_i2++];\n } else {\n _i2 = _iterator2.next();\n if (_i2.done) break;\n _ref2 = _i2.value;\n }\n\n var handler = _ref2;\n\n customEventEmitter.on(eventName, handler);\n }\n }\n }\n },\n on: function on(eventName, method) {\n\n if (customEventEmitter) {\n return customEventEmitter.on(eventName, method);\n }\n\n handlers[eventName] = handlers[eventName] || [];\n handlers[eventName].push(method);\n\n var cancelled = false;\n\n function cancel() {\n if (!cancelled) {\n handlers[eventName].splice(handlers[eventName].indexOf(method), 1);\n cancelled = true;\n }\n }\n\n cancel.cancel = cancel;\n return cancel;\n },\n once: function once(eventName, method) {\n\n if (customEventEmitter) {\n return customEventEmitter.once(eventName, method);\n }\n\n var listener = $event.on(eventName, function () {\n listener.cancel();\n return method.apply(this, arguments);\n });\n\n return listener;\n },\n emit: function emit(eventName) {\n if (customEventEmitter) {\n var _customEventEmitter;\n\n return (_customEventEmitter = customEventEmitter).emit.apply(_customEventEmitter, arguments);\n }\n\n var event = {\n preventDefault: function preventDefault() {\n event.defaultPrevented = true;\n }\n };\n\n if (handlers[eventName]) {\n for (var _iterator3 = Array.prototype.slice.apply(handlers[eventName]), _isArray3 = Array.isArray(_iterator3), _i3 = 0, _iterator3 = _isArray3 ? _iterator3 : _iterator3[Symbol.iterator]();;) {\n var _ref3;\n\n if (_isArray3) {\n if (_i3 >= _iterator3.length) break;\n _ref3 = _iterator3[_i3++];\n } else {\n _i3 = _iterator3.next();\n if (_i3.done) break;\n _ref3 = _i3.value;\n }\n\n var handler = _ref3;\n\n handler.apply(this, [event].concat(Array.prototype.slice.call(arguments)));\n }\n }\n\n return event;\n },\n broadcast: function broadcast(eventName) {\n\n if (customEventEmitter) {\n var _customEventEmitter2;\n\n return (_customEventEmitter2 = customEventEmitter).broadcast.apply(_customEventEmitter2, arguments);\n }\n\n return $event.emit.apply($event, arguments);\n },\n\n\n refCount: function refCount($scope, start, stop) {\n return _promise.$promise.resolver(function (resolve) {\n\n var count = 0;\n\n var cancelStartListener = $scope.$on(start, function (event, data) {\n count += 1;\n });\n\n var cancelStopListener = $scope.$on(stop, function (event, data) {\n setTimeout(function () {\n count -= 1;\n res(); // eslint-disable-line no-use-before-define\n }, 50);\n });\n\n function res() {\n if (!count) {\n\n if (cancelStartListener && cancelStopListener) {\n cancelStartListener();\n cancelStopListener();\n }\n\n return resolve();\n }\n }\n\n setTimeout(res, 50);\n });\n },\n\n compose: function compose(start, end, startAll, endAll) {\n var debounce = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;\n\n\n var count = 0;\n var active = false;\n\n $event.on(start, function () {\n if (!count) {\n setTimeout(function () {\n if (count && !active) {\n active = true;\n $event.emit(startAll);\n }\n }, debounce);\n }\n\n count += 1;\n });\n\n $event.on(end, function () {\n\n setTimeout(function () {\n count -= 1;\n\n if (!count && active) {\n active = false;\n $event.emit(endAll);\n }\n }, 0);\n });\n\n return {\n getCount: function getCount() {\n return count;\n },\n isActive: function isActive() {\n return Boolean(count);\n },\n reset: function reset() {\n count = 0;\n }\n };\n }\n};\n\nangular.value(\"$event\", $event);\n_promise.$promise;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/squid/dist/core/event.js\n// module id = ../node_modules/squid/dist/core/event.js\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _api = require('./api');\n\nObject.keys(_api).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _api[key];\n }\n });\n});\n\nvar _class = require('./class');\n\nObject.keys(_class).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _class[key];\n }\n });\n});\n\nvar _config = require('./config');\n\nObject.keys(_config).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _config[key];\n }\n });\n});\n\nvar _error = require('./error');\n\nObject.keys(_error).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _error[key];\n }\n });\n});\n\nvar _event = require('./event');\n\nObject.keys(_event).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _event[key];\n }\n });\n});\n\nvar _integration = require('./integration');\n\nObject.keys(_integration).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _integration[key];\n }\n });\n});\n\nvar _model = require('./model');\n\nObject.keys(_model).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _model[key];\n }\n });\n});\n\nvar _promise = require('./promise');\n\nObject.keys(_promise).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _promise[key];\n }\n });\n});\n\nvar _util = require('./util');\n\nObject.keys(_util).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _util[key];\n }\n });\n});\n\nvar _loader = require('./loader');\n\nObject.keys(_loader).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _loader[key];\n }\n });\n});\n\nvar _dom = require('./dom');\n\nObject.keys(_dom).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _dom[key];\n }\n });\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/squid/dist/core/index.js\n// module id = ../node_modules/squid/dist/core/index.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$integration = exports.$CONTEXT = exports.$DEFAULT = undefined;\n\nvar _logger = require('xo-beaver/dist/logger');\n\nvar $DEFAULT = exports.$DEFAULT = 'DEFAULT';\n\nvar $CONTEXT = exports.$CONTEXT = {\n\n // Full page checkout\n FULLPAGE: 'FULLPAGE',\n\n // Checkout in popup\n POPUP: 'POPUP',\n\n // Checkout in lightbox (iframe)\n LIGHTBOX: 'LIGHTBOX',\n\n // Web view\n WEBVIEW: 'WEBVIEW',\n\n // Native checkout\n NATIVE_CHECKOUT: 'NATIVE_CHECKOUT'\n};\n\nvar $integration = exports.$integration = {\n\n flow: $DEFAULT,\n\n init: function init(flow, config) {\n this.config = config || {};\n\n if (flow) {\n this.setFlow(flow);\n }\n\n this.setContext(this.getContext());\n },\n getContext: function getContext() {\n\n if (this.isIFrame()) {\n return $CONTEXT.LIGHTBOX;\n } else if (this.isPopup()) {\n return $CONTEXT.POPUP;\n } else {\n return $CONTEXT.FULLPAGE;\n }\n },\n isPopup: function isPopup() {\n return Boolean(window.opener);\n },\n isIFrame: function isIFrame() {\n return window.top !== window.self;\n },\n setContext: function setContext(context) {\n _logger.$logger.info('integration_context_' + context);\n this.context = context;\n },\n setFlow: function setFlow(flow) {\n _logger.$logger.info('integration_flow_' + flow);\n this.flow = flow;\n },\n is: function is(context, flow) {\n return this.isContext(context) && this.isFlow(flow);\n },\n isContext: function isContext(context) {\n return this.context === context;\n },\n isFlow: function isFlow(flow) {\n return this.flow === flow;\n },\n getConfig: function getConfig(key) {\n\n this.context = this.getContext();\n\n if (!this.config) {\n return;\n }\n\n if (this.config.hasOwnProperty(this.context) && this.config[this.context].hasOwnProperty(this.flow) && this.config[this.context][this.flow].hasOwnProperty(key)) {\n\n return this.config[this.context][this.flow][key];\n }\n\n if (this.config.hasOwnProperty(this.context) && this.config[this.context].hasOwnProperty(key)) {\n\n return this.config[this.context][key];\n }\n\n if (this.config.hasOwnProperty($DEFAULT) && this.config[$DEFAULT].hasOwnProperty(this.flow) && this.config[$DEFAULT][this.flow].hasOwnProperty(key)) {\n\n return this.config[$DEFAULT][this.flow][key];\n }\n\n if (this.config.hasOwnProperty($DEFAULT) && this.config[$DEFAULT].hasOwnProperty(key)) {\n\n return this.config[$DEFAULT][key];\n }\n },\n error: function error(message) {\n return new Error('Integration error: ' + this.context + ' / ' + this.flow + ' :: ' + message);\n }\n};\n\nangular.value(\"$DEFAULT\", $DEFAULT);\nangular.value(\"$CONTEXT\", $CONTEXT);\nangular.value(\"$integration\", $integration);\n_logger.$logger;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/squid/dist/core/integration.js\n// module id = ../node_modules/squid/dist/core/integration.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$loader = undefined;\n\nvar _event = require('./event');\n\nvar _firstLoad = false;\n\nvar loader = _event.$event.compose('loading', 'loaded', 'startLoad', 'allLoaded', 100);\n\nvar $loader = exports.$loader = {\n\n isLoading: function isLoading() {\n return Boolean(loader.getCount());\n },\n firstLoad: function firstLoad() {\n return _firstLoad;\n },\n reset: function reset() {\n loader.reset();\n }\n};\n\n_event.$event.on('allLoaded', function () {\n _firstLoad = true;\n});\n\nangular.value(\"$loader\", $loader);\n_event.$event;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/squid/dist/core/loader.js\n// module id = ../node_modules/squid/dist/core/loader.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$Model = undefined;\n\nvar _class = require('./class');\n\nvar _util = require('./util');\n\nvar _promise = require('./promise');\n\nvar $Model = exports.$Model = _class.$Class.extend('$Model', {\n\n init: function init() {\n\n if (this.keys().length) {\n this.onPopulate();\n }\n\n if (this.id) {\n var _cache = this.constructor._modelCache = this.constructor._modelCache || {};\n\n _cache[this.id] = this;\n }\n\n this.meta = {\n populated: false\n };\n },\n\n /**\n * Add the passed in properties to this Model.\n * Sets the meta.populated to true. This flag\n * can be used later to determine if the model is populated.\n * Calls onPopulate() in the end.\n */\n populate: function populate() {\n\n this.meta.populated = true;\n this.setProperties.apply(this, arguments);\n delete this.meta.invalidated;\n this.onPopulate();\n return this;\n },\n\n fetchChildren: function fetchChildren() {\n return _promise.$promise.resolve();\n },\n\n /**\n * Override this method, to execute any logic after model is populated.\n */\n onPopulate: function onPopulate() {// eslint-disable-line no-empty-function\n\n },\n\n /**\n * Override this method, to execute any logic after model is invalidated.\n */\n onInvalidate: function onInvalidate() {// eslint-disable-line no-empty-function\n\n },\n\n /**\n * Override this method to return a Mock instance. Must return a promise which resolves to model.\n */\n fetchMock: function fetchMock() {// eslint-disable-line no-empty-function\n\n },\n\n /**\n * Retrieves the model.\n *\n * If model is already populated just returns a promise which resolves to `this`\n * If there is a retriever for this model, then return the retreiver.\n * Else calls the api to retrieve the model.\n *\n * @param options\n * @returns {*}\n */\n retrieve: function retrieve(options) {\n var self = this;\n\n options = options || {};\n\n if (self.meta.populated) {\n\n if (options.success) {\n return _promise.$promise.resolve(options.success(self));\n }\n\n return _promise.$promise.resolve(this);\n }\n\n if (this.retriever) {\n return this.retriever;\n }\n\n if (!this.api) {\n throw new Error('Tried to populate a model with no api');\n }\n\n options.model = this;\n\n this.retriever = this.api.retrieve(options).then(function (res) {\n return self;\n })['finally'](function () {\n delete self.retriever;\n });\n\n return this.retriever;\n },\n\n /**\n * Calls a post on the api to save this model. Takes options as parameters.\n * options will passed down to api.post.\n *\n * @param options\n * @returns {*|HttpPromise}\n */\n save: function save(options) {\n options = options || {};\n options.model = this;\n\n options.data = options.data || this.serialize();\n\n return this.api.post(options);\n },\n\n /**\n * Calls Api.action to perform any action on the model.\n *\n * Takes action name and optional 'options' object as parameters.\n *\n * Ex: $CheckoutSession.actions('create', [options])\n *\n * @param action\n * @param options\n * @returns {*}\n */\n action: function action(_action, options) {\n options = options || {};\n options.model = this;\n\n return this.api.action(_action, options);\n },\n\n /**\n * Use this method to force a api call to get the data.\n *\n * @param options\n * @returns {*}\n */\n reload: function reload(options) {\n this.meta.populated = false;\n return this.retrieve(options);\n },\n\n stringify: function stringify() {\n return JSON.stringify(this, 2);\n },\n\n log: function log() {\n console.log(this.stringify());\n },\n\n serialize: function serialize() {// eslint-disable-line no-empty-function\n\n },\n\n /**\n * Invalidate the current model. Sets the meta.populated to false and sets meta.invalidated to true.\n */\n invalidate: function invalidate() {\n this.meta.populated = false;\n this.meta.invalidated = true;\n this.onInvalidate();\n },\n\n /**\n * Creates a new Class with properties from `child`. Then assigns `this` as parent to the new Class.\n *\n * @param Cls\n * @param child\n * @returns {*}\n */\n child: function child(Cls, _child) {\n\n if (!_child) {\n return;\n }\n\n return Cls.create(_child.id || this.id, { parent: this }).populate(_child);\n },\n\n /**\n *\n * @param Cls\n * @param children\n * @returns {*}\n */\n children: function children(Cls, _children) {\n var self = this;\n\n if (!_children) {\n return _children;\n }\n\n return _util.$util.map(_children, function (child) {\n return self.child(Cls, child);\n });\n }\n});\n\nvar cache = {};\n\n$Model.reopenClass({\n\n instance: function instance(id) {\n\n var modelCache = cache[this.id] = cache[this.id] || {};\n var instance = modelCache[id || 0] || this.create.apply(this, arguments);\n\n return instance;\n },\n\n retrieveInstance: function retrieveInstance() {\n return this.instance.apply(this, arguments).retrieve();\n },\n\n create: function create(id) {\n\n var modelCache = cache[this.id] = cache[this.id] || {};\n var instance = modelCache[id || 0] = new this({ // eslint-disable-line new-cap\n id: id || 0\n });\n\n instance.setProperties.apply(instance, Array.prototype.slice.call(arguments, 1));\n\n return instance;\n },\n\n fetch: function fetch() {\n console.warn('Model.fetch is deprecated, please use Model.instance');\n return this.instance.apply(this, arguments);\n },\n\n clearCache: function clearCache() {\n cache = {};\n },\n\n /**\n * should invalidate all models where the invalidationKey is found truthy\n *\n * invalidationKey: key of type string to look for in a model\n * example: $Model.bulkInvalidate('invalidateOnLogout');\n */\n bulkInvalidate: function bulkInvalidate(invalidationKey) {\n if (!invalidationKey) {\n return;\n }\n _util.$util.forEach(cache, function (modelCache, key) {\n _util.$util.forEach(modelCache, function (modelInstance, instanceId) {\n if (modelInstance[invalidationKey]) {\n modelInstance.invalidate();\n }\n });\n });\n }\n});\n\nangular.value(\"$Model\", $Model);\n_class.$Class;\n\n_util.$util;\n\n_promise.$promise;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/squid/dist/core/model.js\n// module id = ../node_modules/squid/dist/core/model.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$promise = $promise;\n\nvar _util = require('./util');\n\nvar _error = require('./error');\n\nvar Promise = window.Promise;\n\nfunction $promise(obj) {\n return Promise.resolve(obj);\n}\n\n_util.$util.extend($promise, {\n use: function use(CustomPromise) {\n Promise = CustomPromise;\n if (!window.Promise) {\n window.Promise = CustomPromise;\n }\n },\n resolver: function resolver(method) {\n return new Promise(method);\n },\n resolve: function resolve(value) {\n return Promise.resolve(value);\n },\n reject: function reject(value) {\n return Promise.reject(value);\n },\n\n\n run: function run(method) {\n return Promise.resolve().then(method);\n },\n\n call: function call(method) {\n return Promise.resolve().then(method);\n },\n\n sequential: function sequential(methods) {\n\n var prom = Promise.resolve();\n\n _util.$util.forEach(methods, function (method) {\n prom = prom.then(method);\n });\n\n return prom;\n },\n\n sleep: function sleep(time) {\n return new Promise(function (resolve) {\n setTimeout(resolve, time);\n });\n },\n\n map: function map(items, method) {\n\n var promises = void 0;\n\n if (items instanceof Array) {\n promises = [];\n } else if (items instanceof Object) {\n promises = {};\n } else {\n return Promise.resolve();\n }\n\n return this.all(_util.$util.map(items, function (item, key) {\n\n promises[key] = Promise.resolve(item).then(function (result) {\n return method(result, key, promises);\n });\n\n return promises[key];\n }));\n },\n\n all: function all(items) {\n\n if (items instanceof Array) {\n return Promise.all(items);\n } else if (items instanceof Object) {\n return this.hash(items);\n }\n\n return Promise.resolve([]);\n },\n\n hash: function hash(obj) {\n var results = {};\n\n return Promise.all(_util.$util.map(obj, function (item, key) {\n return Promise.resolve(item).then(function (result) {\n results[key] = result;\n });\n })).then(function () {\n return results;\n });\n },\n\n extend: function extend(obj, hash) {\n return this.hash(hash || {}).then(function (data) {\n _util.$util.extend(obj, data);\n });\n },\n\n attempt: function attempt(attempts, method) {\n\n attempts -= 1;\n\n return Promise.resolve().then(function () {\n return method(attempts);\n })['catch'](function (err) {\n\n if (attempts) {\n return $promise.attempt(attempts, method);\n }\n\n return Promise.reject(err);\n });\n },\n\n debounce: function debounce(method, time) {\n\n var timeout = void 0;\n var resolvers = {};\n\n return function () {\n\n var self = this;\n var args = arguments;\n var key = JSON.stringify(args);\n\n resolvers[key] = resolvers[key] || [];\n\n return new Promise(function (resolve) {\n resolvers[key].push(resolve);\n clearTimeout(timeout);\n\n timeout = setTimeout(function () {\n\n var result = method.apply(self, args);\n\n _util.$util.forEach(resolvers[key], function (resolver) {\n resolver(result);\n });\n\n delete resolvers[key];\n }, time);\n });\n };\n },\n\n every: function every(collection, handler) {\n return this.map(collection, function (item) {\n return handler(item);\n }).then(function (results) {\n return _util.$util.every(results);\n });\n },\n\n providing: function providing(condition, handler) {\n return Promise.resolve(condition).then(function (result) {\n if (result) {\n return handler(result);\n }\n });\n },\n\n until: function until(condition, pollTime, timeout, alwaysResolve) {\n\n return new Promise(function (resolve, reject) {\n if (condition()) {\n return resolve();\n }\n\n var interval = setInterval(function () {\n if (condition()) {\n clearInterval(interval);\n return resolve();\n }\n }, pollTime);\n\n if (timeout) {\n setTimeout(function () {\n clearInterval(interval);\n return alwaysResolve ? resolve() : reject();\n }, timeout);\n }\n });\n },\n\n first: function first(handlers) {\n\n var prom = $promise.resolve();\n var result = void 0;\n\n _util.$util.forEach(handlers, function (handler) {\n prom = prom.then(function () {\n return result || handler();\n }).then(function (handlerResult) {\n result = handlerResult;\n return result;\n });\n });\n\n return prom;\n },\n\n shortCircuit: function shortCircuit() {\n return $promise.reject(new _error.$ShortCircuit());\n }\n});\n\nangular.value(\"$promise\", $promise);\n_util.$util;\n\n_error.$ShortCircuit;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/squid/dist/core/promise.js\n// module id = ../node_modules/squid/dist/core/promise.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$unresolved = exports.$util = exports.isUnsafeRedirect = undefined;\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nexports.$getRedirectUrl = $getRedirectUrl;\nexports.$dispatch = $dispatch;\nexports.$experiment = $experiment;\n\nvar _event = require('./event');\n\nvar _logger = require('xo-beaver/dist/logger');\n\nvar _config = require('./config');\n\nvar _integration = require('./integration');\n\nvar _angular = require('angular');\n\nvar redirected = false;\nvar paramCache = {};\n\nvar blacklist = ['password', 'pr_password'];\nvar blacklistRegex = new RegExp('(' + blacklist.join('|') + ')=([^&]*)', 'g');\nvar sanitizeUrlForLogging = function sanitizeUrlForLogging(inputUrl) {\n return inputUrl.replace(blacklistRegex, function (match, key, value) {\n return key + '=**';\n });\n};\n\nvar isUnsafeRedirect = exports.isUnsafeRedirect = function isUnsafeRedirect(url) {\n return url.toLowerCase().replace(/\\s/g, '').indexOf('javascript:') !== -1;\n}; // eslint-disable-line no-script-url\n\nvar $util = exports.$util = {\n\n forEach: function forEach(collection, method) {\n if (collection instanceof Array) {\n for (var i = 0; i < collection.length; i++) {\n method(collection[i], i);\n }\n } else if (collection instanceof Object) {\n for (var key in collection) {\n if (collection.hasOwnProperty(key)) {\n method(collection[key], key);\n }\n }\n }\n },\n\n idleTimeout: function idleTimeout(time) {\n setTimeout(function () {\n _logger.$logger.info('page_idle');\n $util.reload();\n }, time);\n },\n\n\n reload: function reload() {\n _logger.$logger.info('reload');\n _event.$event.emit('loading');\n location.reload();\n },\n\n /**\n * replace:\n * Insert URL params provided and reload the window\n * This does not find the param if it already exists in the URL. It will add it again\n * @param params {Object} param - Params to add as URL params\n */\n replace: function replace(params) {\n if (params) {\n // Note: This won't replace the\n var url = $util.buildURL(location.href.split('#')[0], params);\n\n url = '' + url + window.location.hash;\n\n _logger.$logger.info('replace', { url: url });\n _event.$event.emit('loading');\n location.replace(url);\n } else {\n $util.reload();\n }\n },\n\n /**\n * redirect:\n * Redirects user to the given Url with options for different redirect behaviours\n * @param params {String} url - redirect url\n * @param params {Object} options - Optional param can have flags effecting behaviour of redirect\n */\n redirect: function redirect(url, options) {\n\n // optional flag to allow an iframe to Bust out of iframe mode by setting window.top.location = window.location.href\n var frameBust = options && options.frameBust;\n\n // Optional flag for url to not show up in browsing history. Handles back button scenario from CAPE to HERMES\n var replace = options && options.replace;\n\n if (isUnsafeRedirect(url)) {\n // eslint-disable-line\n _logger.$logger.error('unsafe_redirect_url', {\n url: url\n });\n throw new Error('Unsafe redirect url: ' + url);\n }\n\n _logger.$logger.info('redirect', {\n url: sanitizeUrlForLogging(url)\n });\n\n _event.$event.on('$stateChangeStart', function (event) {\n _logger.$logger.info('state_change_after_redirect');\n event.preventDefault();\n });\n\n function redir() {\n\n if (redirected) {\n return;\n }\n\n _logger.$logger.info('redirect', {\n url: sanitizeUrlForLogging(url)\n });\n\n window.onunload = window.onbeforeunload = function () {}; // eslint-disable-line no-empty-function\n\n if (_integration.$integration.getConfig('REDIRECT_TOP') !== false || frameBust) {\n if (replace) {\n window.top.location.replace(url);\n } else {\n window.top.location = url;\n }\n } else if (replace) {\n window.location.replace(url);\n } else {\n window.location = url;\n }\n\n redirected = true;\n }\n\n _event.$event.emit('loading');\n\n _logger.$logger.flush().then(redir);\n setTimeout(redir, 500);\n\n _logger.$logger.done();\n },\n\n cookiesEnabled: function cookiesEnabled() {\n var cookiesEnabled = void 0;\n\n document.cookie = '_cookiecheck=1';\n cookiesEnabled = Boolean(document.cookie.indexOf('_cookiecheck') > -1);\n document.cookie = '_cookiecheck=; expires=Thu, 01 Jan 1970 00:00:01 GMT;';\n document.cookie = '_cookiecheck; expires=Thu, 01 Jan 1970 00:00:01 GMT;';\n\n return cookiesEnabled;\n },\n\n storageEnabled: function storageEnabled(api) {\n try {\n window[api].setItem('__feature_test__', '0');\n window[api].removeItem('__feature_test__');\n return true;\n } catch (e) {\n return false;\n }\n },\n\n sessionStorageEnabled: function sessionStorageEnabled() {\n return this.storageEnabled('sessionStorage');\n },\n\n localStorageEnabled: function localStorageEnabled() {\n return this.storageEnabled('localStorage');\n },\n\n params: function params(string) {\n\n if (typeof string !== 'string') {\n string = this.queryString().slice(1);\n }\n\n var params = {};\n\n if (!string) {\n return params;\n }\n\n if (paramCache[string]) {\n return $util.extend({}, paramCache[string]);\n }\n\n $util.forEach(string.split('&'), function (pair) {\n pair = pair.split('=');\n\n if (pair[0]) {\n params[decodeURIComponent(pair[0])] = pair[1] && decodeURIComponent(pair[1]);\n }\n });\n\n paramCache[string] = params;\n\n return params;\n },\n\n queryString: function queryString() {\n if (window.location.search) {\n return window.location.search;\n } else {\n var string = window.location.href;\n var idx = string.indexOf('&');\n var rIdx = string.lastIndexOf('#');\n\n if (idx) {\n return '?' + string.substring(idx, rIdx >= 0 ? rIdx : string.length);\n }\n }\n return '';\n },\n\n queryStringSplice: function queryStringSplice(qs, insert, remove) {\n if (qs.indexOf('?') === 0) {\n qs = qs.slice(1);\n }\n\n var params = $util.extend(this.params(qs), insert);\n\n $util.forEach(remove, function (key) {\n delete params[key];\n });\n\n return '?' + this.paramToQueryString(params);\n },\n\n extend: function extend(obj, source) {\n\n if (!source) {\n return obj;\n }\n\n for (var key in source) {\n if (source.hasOwnProperty(key)) {\n obj[key] = source[key];\n }\n }\n\n return obj;\n },\n\n\n paramToQueryString: function paramToQueryString(params) {\n return this.filter(this.map(Object.keys(params).sort(), function (key) {\n if (!params[key]) {\n return;\n }\n\n return encodeURIComponent(key) + '=' + encodeURIComponent(params[key]);\n })).join('&');\n },\n\n param: function $param(name) {\n return this.params()[name];\n },\n\n hashParam: function hashParam(name) {\n return this.params(window.location.hash.slice(1))[name];\n },\n\n base64Decode: function base64Decode(encodedString) {\n return encodedString && window.atob(encodedString); // eslint-disable-line block-scoped-var,no-undef\n },\n\n base64Encode: function base64Encode(decodedString) {\n return decodedString && window.btoa(decodedString); // eslint-disable-line block-scoped-var,no-undef\n },\n\n /*\n * decodeAndParse :\n * 1 - Base64Decode\n * 2 - URI Decode\n * 3 - Split string into a nvp object\n * return obj\n */\n decodeAndParse: function decodeAndParse(encodedString) {\n if (encodedString) {\n return this.params(decodeURIComponent(this.base64Decode(encodedString)));\n }\n },\n\n assert: function $assert(value, message, payload) {\n if (!value) {\n throw new Error(message, payload || {});\n }\n },\n\n map: function $map(array, method) {\n\n array = array || [];\n\n var results = void 0;\n\n if (array instanceof Array) {\n results = [];\n\n $util.forEach(array, function () {\n results.push(method.apply(this, arguments));\n });\n\n return results;\n } else if (array instanceof Object) {\n\n results = {};\n\n $util.forEach(array, function (val, key) {\n results[key] = method.apply(this, arguments);\n });\n\n return results;\n } else {\n throw new Error('$util.map expects array or object');\n }\n },\n\n filter: function $filter(array, method) {\n method = method || Boolean;\n var results = [];\n\n $util.forEach(array, function (item) {\n if (method.apply(this, arguments)) {\n results.push(item);\n }\n });\n\n return results;\n },\n\n /**\n * Deprecated.\n *\n * If you have an array, use Array#find()\n * If you have an object, use the lodash or underscore .find() method\n *\n * @deprecated\n */\n find: function $find(array, method) {\n if (_config.$config.deploy.isLocal() || _config.$config.deploy.isStage()) {\n _angular.$log.warn('deprecated_method: squid.$util.find() is deprecated, use Array#find, which we have polyfilled, or _.find() for Objects instead.');\n }\n\n if (!array) {\n return;\n }\n\n for (var i = 0; i < array.length; i++) {\n if (method(array[i])) {\n return array[i];\n }\n }\n },\n\n findIndex: function $find(array, method) {\n\n if (!array) {\n return;\n }\n\n for (var i = 0; i < array.length; i++) {\n if (method(array[i])) {\n return i;\n }\n }\n },\n\n range: function range(start, end) {\n if (!end) {\n end = start;\n start = 0;\n }\n\n var result = [];\n\n for (var i = start; i < end; i++) {\n result.push(i);\n }\n\n return result;\n },\n\n pad: function $pad(string, n, char) {\n\n n = n || 0;\n char = char || '0';\n\n var padding = Array(n + 1).join(char.toString());\n\n return (padding + string).slice(-n);\n },\n\n /**\n * Deprecated.\n *\n * If you have an array, use Array#some() -- NOTE: Unlike Array#some(),\n * the return value of $util.some() isn't always a Boolean. It's return value\n * is whatever the passed callback returns. If you are using $util.some to\n * find an object in an array then you need to use $util.find instead of Array#some().\n * Ex:\n * 1. const preferredCard = $util.some(cardsArray, cards => card.isPreferred && card);\n * preferredCard will be the preferred card object or undefined if there isn't a\n * preferred card.\n * 2. const hasPreferred = cardsArray.some(cards => card.isPreferred && card);\n * Taking the code from #1 and simply swapping out $util.some for Array#some()\n * will result in a different return value, in this case the Boolean true if\n * there is a preferred card, otherwise false. In this case, instead of using\n * Array#some() you should use $util.find() (Array#find() isn't supported in IE9)\n * as seen below:\n * const preferredCard = $util.find(cardsArray, card => card.isPreferred);\n *\n * If you have an object, use the lodash or underscore .some() method\n *\n * @deprecated\n */\n some: function $some(array, method) {\n if (_config.$config.deploy.isLocal() || _config.$config.deploy.isStage()) {\n _angular.$log.warn('deprecated_method: squid.$util.some() is deprecated, use Array#some (use $util.find() if you are using\\n $util.some() to return someting other than a boolean) or lodash/underscore.some() instead.');\n }\n\n var result = void 0;\n\n $util.forEach(array, function (item, key) {\n if (!result) {\n result = method(item, key);\n }\n });\n\n return result;\n },\n\n /**\n * Deprecated.\n *\n * If you have an array, use Array#every()\n * If you have an object, use the lodash or underscore .every() method\n *\n * @deprecated\n */\n every: function $every(array, method) {\n if (_config.$config.deploy.isLocal() || _config.$config.deploy.isStage()) {\n _angular.$log.warn('deprecated_method: squid.$util.every() is deprecated, use Array#every, which we have polyfilled, or _.every() for Objects instead.');\n }\n\n method = method || Boolean;\n\n var result = true;\n\n $util.forEach(array, function (item) {\n if (!method(item)) {\n result = false;\n }\n });\n\n return result;\n },\n\n reduce: function $reduce(array, method, intial) {\n $util.forEach(array, function () {\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n intial = method.apply(undefined, [intial].concat(args));\n });\n\n return intial;\n },\n\n isPopup: function isPopup() {\n return _integration.$integration.isPopup();\n },\n\n isIFrame: function isIFrame() {\n return _integration.$integration.isIFrame();\n },\n\n buildURL: function buildURL(url, params) {\n /*\n * Do NOT add a check for anchor cause this function is also used for building XO success / cancel urls.\n * These urls are defined by the merchants and can also contain urls like \"abc.com#merchantanchor\" and merchants\n * expect (!) the following outcome: abc.com#merchantanchor?paypalparam=2\n */\n this.assert(url, 'buildURL :: expected url');\n\n var paramKeys = Object.keys(params || {});\n\n if (JSON.stringify(params) === '{}') {\n return url;\n }\n\n if (!paramKeys.length) {\n return url;\n }\n\n if (url.indexOf('?') === -1) {\n url += '?';\n } else {\n url += '&';\n }\n\n url += this.paramToQueryString(params);\n\n return url;\n },\n\n paypalURL: function paypalURL(url, params) {\n url = 'https://' + (_config.$meta.stage ? _config.$meta.stage : window.location.host) + url;\n\n return this.buildURL(url, params);\n },\n\n override: function override(obj, methodName, handler) {\n var existing = obj[methodName];\n\n obj[methodName] = function () {\n if (existing) {\n try {\n existing.apply(obj, arguments);\n } catch (err) {\n _logger.$logger.error(methodName + 'event_error', {\n error: err.toString\n });\n }\n }\n\n return handler.apply(obj, arguments);\n };\n },\n\n result: function result(method) {\n return method();\n },\n\n memoize: function memoize(method) {\n\n function memoized() {\n var key = JSON.stringify(arguments, function (_, value) {\n switch (typeof value === 'undefined' ? 'undefined' : _typeof(value)) {\n case 'function':\n throw new Error('Cannot memoize functional arguments');\n case 'undefined':\n return 'undefined';\n default:\n return value;\n }\n });\n\n if (!memoized.cache.hasOwnProperty(key)) {\n memoized.cache[key] = method.apply(this, arguments);\n }\n\n return memoized.cache[key];\n }\n\n memoized.cache = {};\n\n memoized.flush = function () {\n memoized.cache = {};\n };\n\n return memoized;\n },\n\n now: function now() {\n return window.enablePerformance ? parseInt(window.performance.now(), 10) : Date.now();\n },\n\n bindObject: function bindObject(obj, self) {\n return $util.map(obj, function (method) {\n return method.bind(self);\n });\n },\n\n hashStr: function hashStr(str) {\n var hash = 0;\n var i = void 0;\n var chr = void 0;\n var len = void 0;\n\n if (str.length === 0) {\n return hash;\n }\n for (i = 0, len = str.length; i < len; i++) {\n chr = str.charCodeAt(i);\n hash = (hash << 5) - hash + chr; // eslint-disable-line no-bitwise, no-extra-parens\n // Convert to 32bit integer\n hash |= 0; // eslint-disable-line no-bitwise\n }\n return Math.abs(hash);\n },\n\n hash: function hash() {\n return this.hashStr(Math.random());\n },\n\n popup: function popup(name, url, options, callback) {\n\n callback = $util.once(callback);\n\n var win = window.open(url, name, $util.map(Object.keys(options), function (key) {\n return key + '=' + options[key];\n }).join(', '));\n\n var interval = void 0;\n\n function checkWindowClosed() {\n if (win.closed) {\n clearInterval(interval);\n callback();\n }\n }\n\n interval = setInterval(checkWindowClosed, 50);\n setTimeout(checkWindowClosed);\n\n try {\n var close = win.close;\n\n win.close = function () {\n close.apply(this, arguments);\n checkWindowClosed();\n };\n } catch (err) {\n // pass\n }\n\n return win;\n },\n\n unique: function unique(collection) {\n return collection.filter(function (value, index, self) {\n return self.indexOf(value) === index;\n });\n },\n\n monkeyPatch: function monkeyPatch(mod, prop, method) {\n var original = mod[prop];\n\n mod[prop] = function () {\n var _this = this,\n _arguments = arguments;\n\n return method.call(this, arguments, function (self, args) {\n if (original) {\n return original.apply(self || _this, args || _arguments);\n }\n });\n };\n },\n once: function once(method) {\n var called = false;\n\n return function () {\n if (!called) {\n called = true;\n return method.apply(this, arguments);\n }\n };\n },\n camelToDasherize: function camelToDasherize(string) {\n return string.replace(/([A-Z])/g, function (g) {\n return '-' + g.toLowerCase();\n });\n },\n camelToCapsUnderscore: function camelToCapsUnderscore(string) {\n return string.replace(/([a-z][A-Z])/g, function (g) {\n return g[0] + '_' + g[1];\n }).toUpperCase();\n },\n dasherizeToCamel: function dasherizeToCamel(string) {\n return string.replace(/-([a-z])/g, function (g) {\n return g[1].toUpperCase();\n });\n },\n\n\n parentWindow: function parentWindow() {\n if (window.opener) {\n return window.opener;\n } else if (window.parent !== window) {\n return window.parent;\n }\n },\n\n hasRTL: function hasRTL(str) {\n return new RegExp('[\\u0590-\\u07BF]').test(str);\n },\n noop: function noop() {// eslint-disable-line no-empty-function\n\n },\n\n\n /**\n * @function isObject - tests to see if a passed argument is an Object. Returns `false`\n * for anything that is 'object-like' but not an actual Object (Array, Set, Map, ect)\n * as well as for `null` and `Object.create(null)`\n * @param {*} o\n * @returns {boolean}\n */\n isObject: function isObject(o) {\n var oAsString = Object.prototype.toString.call(o);\n\n return o instanceof Object && oAsString === '[object Object]';\n },\n\n\n /**\n * @function debounce\n * @param {function} callback\n * @param {number} time\n * @returns {function}\n */\n debounce: function debounce(callback, time) {\n var timeout = void 0;\n\n return function () {\n var _this2 = this;\n\n for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n var functionCall = function functionCall() {\n return callback.apply(_this2, args);\n };\n\n clearTimeout(timeout);\n timeout = setTimeout(functionCall, time);\n };\n },\n\n\n /**\n * @function getProperty\n * @param {object} obj\n * @param {string} propString\n * @param {string} splitOn\n * @returns {*}\n *\n * Ex:\n * const obj = {\n * a: {\n * b: {\n * c: 'property c'\n * },\n * 'key.with.periods': 10\n * }\n * };\n * const c = $util.getProperty(obj, 'a.b.c'); // c === 'property c'\n * const f = $util.getProperty(obj, 'a.b.c.d.e.f'); // f === undefined\n * const fDefault = $util.getProperty(\n * obj,\n * 'a.b.c.d.e.f',\n * { default: 'default value for f' }\n * ); // f === 'default value for f'\n * const n = $util.getProperty(obj, 'a,b,key.with.periods', { splitOn: ',' }); // n === 10\n */\n getProperty: function getProperty(obj) {\n var path = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n var _options$splitOn = options.splitOn,\n splitOn = _options$splitOn === undefined ? '.' : _options$splitOn,\n defaultValue = options['default'];\n\n\n if (!this.isObject(obj) || typeof path !== 'string' || typeof splitOn !== 'string') {\n return;\n }\n\n var pathArray = path.split(splitOn);\n var prop = obj[pathArray.shift()];\n\n while (prop && pathArray.length && this.isObject(prop)) {\n prop = prop[pathArray.shift()];\n }\n\n return pathArray.length || prop === undefined ? defaultValue : prop;\n }\n};\n\nvar $unresolved = exports.$unresolved = { then: $util.noop, 'catch': $util.noop };\n\nfunction $getRedirectUrl(product, params) {\n var url = '';\n var urlParams = $util.params();\n\n if (_config.$config.deploy.isLocal() || _config.$config.deploy.isStage()) {\n url = _config.$config.urls.dispatch && _config.$config.urls.dispatch[product] || '';\n }\n\n url += _config.$config.urls.fallbackUrl[product];\n\n $util.extend(urlParams, params || {});\n\n // cmd is a reserved slingshot param\n if (urlParams.cmd) {\n delete urlParams.cmd;\n }\n\n return $util.buildURL(url, urlParams);\n}\n\nfunction $dispatch(product, params, stateChange) {\n $util.assert(product, 'expected product');\n\n _logger.$logger.log('info', 'dispatch', {\n product: product\n });\n\n _event.$event.emit('loading');\n\n var url = '';\n\n url = $getRedirectUrl(product, params);\n\n // fire an event for xo-tracking to listen to and do fpti logging\n if (stateChange) {\n _event.$event.emit('page_loaded', stateChange.fromState, stateChange.toState);\n }\n\n return $util.redirect(url);\n}\n\nfunction $experiment(name, sample, id, loggerPayload) {\n\n var throttle = $util.hashStr(name + '_' + id) % 100;\n\n var group = void 0;\n\n if ($util.param(name) === 'true') {\n group = 'test_forced';\n } else if ($util.param(name) === 'false') {\n group = 'control_forced';\n } else if (throttle < sample) {\n group = 'test';\n } else if (sample >= 50 || sample <= throttle && throttle < sample * 2) {\n // eslint-disable-line no-extra-parens\n group = 'control';\n } else {\n group = 'throttle';\n }\n\n _logger.$logger.info('fpti_pxp_check', {\n from: 'PXP_CHECK',\n to: 'process_pxp_check',\n pxp_exp_id: name,\n pxp_trtmnt_id: group\n });\n\n _logger.$logger.info(name + '_' + group, loggerPayload || {});\n\n if (group === 'test' || group === 'test_forced') {\n return true;\n } else if (group === 'control') {\n return false;\n }\n}\n\nangular.value(\"isUnsafeRedirect\", isUnsafeRedirect);\nangular.value(\"$util\", $util);\nangular.value(\"$unresolved\", $unresolved);\nangular.value(\"$getRedirectUrl\", $getRedirectUrl);\nangular.value(\"$dispatch\", $dispatch);\nangular.value(\"$experiment\", $experiment);\n_event.$event;\n\n_logger.$logger;\n\n_config.$config;\n\n_config.$meta;\n\n_integration.$integration;\n\n_angular.$log;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/squid/dist/core/util.js\n// module id = ../node_modules/squid/dist/core/util.js\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _ng = require('./ng');\n\nObject.keys(_ng).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _ng[key];\n }\n });\n});\n\nvar _core = require('./core');\n\nObject.keys(_core).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _core[key];\n }\n });\n});\n\nvar _locale = require('./locale');\n\nObject.keys(_locale).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _locale[key];\n }\n });\n});\n\nvar _paypal = require('./paypal');\n\nObject.keys(_paypal).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _paypal[key];\n }\n });\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/squid/dist/index.js\n// module id = ../node_modules/squid/dist/index.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.getCurrencySymbol = exports.truncateCurrencyConversionString = undefined;\nexports.roundingAndSeparators = roundingAndSeparators;\nexports.formatCurrency = formatCurrency;\n\nvar _locale = require('./locale');\n\nvar ALL_NON_BREAKING_SPACE = new RegExp('\\xa0+', 'g'); // everything to do with currency formatting\n\n// quick Griffin reference on currency format:\n// ¤ : Currency Symbol = $\n// # : Amount = 186432.431\n// C : Currency Code = USD\n\nvar CODE_IN_FRONT = new RegExp('^([^¤#]*)(C[\\\\s]*)(.*)$'); // matching groups: (any negative symbol)(code)(the rest)\nvar ENDS_IN_WHITESPACE = new RegExp('\\s$');\nvar THOUSANDS_SPLITTER = /\\B(?=(\\d{3})+(?!\\d))/g; // eslint-disable-line fasec/no-unsafe-regex\nvar HUNDREDS_SPLITTER = /(\\d)(?=(\\d\\d)+\\d$)/g; // eslint-disable-line fasec/no-unsafe-regex\n\n// This seems to be the only currency / locale specific exception in Griffin\nvar STYLE_EXCEPTION = {\n 'tr TR TRY': '# ¤;-# ¤'\n};\n\nvar AmountOnlyStyle = '#;-#'; // A currency style for number only. $9USD -> 9.00\n\n// Griffin exceptions for separators at hundreds- xx,xx,xxx format\nvar HUNDREDS_SEPARATOR_EXCEPTION = ['IN', 'BT', 'MV', 'NP'];\n\nvar isObject = function isObject(param) {\n return Object.prototype.toString.call(param) === '[object Object]';\n};\n\n// Griffin \"fuzzy logic\"\n// apparently if the symbol is at least \"66% similar\" to the code, ignore it\nfunction maybeIgnoreSymbol(style, symbol, code) {\n\n // THIS IS NOT COMMUTATIVE\n function fuzzyMatch(code, symbol) {\n // eslint-disable-line no-shadow\n if (code === symbol) {\n return 100;\n } else {\n var codeParts = code.split('');\n var symbolParts = symbol.split('');\n var equivalency = codeParts.reduce(function (equiv, codePart) {\n var symbolPos = symbolParts.indexOf(codePart);\n\n if (symbolPos !== -1) {\n symbolParts.splice(symbolPos, 1);\n return equiv + 1;\n }\n return equiv;\n }, 0);\n var weight = equivalency / codeParts.length;\n\n return weight * 100;\n }\n }\n\n var ignoreSymbol = symbol.length > 1 && fuzzyMatch(code, symbol) >= 66;\n\n return ignoreSymbol ? style.replace(/¤\\s*/g, '') : style;\n}\n\n// deal with rounding due to truncation (Griffin rounds up) as well as dot/comma symbols\n// and thousand separators\nfunction roundingAndSeparators(amountString, _ref, _ref2) {\n var lang = _ref.lang,\n country = _ref.country;\n var decimalPlaces = _ref2.decimalPlaces,\n dot = _ref2.dot,\n comma = _ref2.comma;\n\n var value = parseFloat(amountString);\n var truncate = decimalPlaces === 0;\n var amountParts = truncate && !isNaN(value) ? Math.round(value).toString().split('.') : amountString.split('.');\n var exception = HUNDREDS_SEPARATOR_EXCEPTION.indexOf(country) > -1; // special exceptions\n var wholeString = exception ? amountParts[0].replace(HUNDREDS_SPLITTER, '$1,') : amountParts[0].replace(THOUSANDS_SPLITTER, comma);\n var decimalString = amountParts[1] || '00';\n\n return truncate ? wholeString : '' + wholeString + dot + decimalString;\n}\n\n// this is an agreement with UED for visual consistency - the currency code, if displayed, is always on the right\nfunction forceCodeToRight(style) {\n var parts = CODE_IN_FRONT.exec(style) || [];\n var endsWithWhitespace = ENDS_IN_WHITESPACE.test(style);\n var newStyle = style;\n\n // if CODE_IN_FRONT regex matches, array indexes -\n // [1] negative symbol plus whitespace, if any,\n // [2] the \"C\" plus any whitespace,\n // [3] whatever is after \"C\"\n if (parts.length === 4) {\n newStyle = parts[1] + parts[3] + (endsWithWhitespace ? 'C' : ' C');\n }\n\n return newStyle;\n}\n\n// deal with\n// 1. exceptions for specific locales\n// 2. positive and negative styles\n// 3. griffin fuzzy logic\n// 4. UED consistency logic\nfunction getFinalStyle() {\n var styleString = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ';';\n var _ref3 = arguments[1];\n var lang = _ref3.lang,\n country = _ref3.country;\n var _ref4 = arguments[2];\n var value = _ref4.value,\n _ref4$symbol = _ref4.symbol,\n symbol = _ref4$symbol === undefined ? '' : _ref4$symbol,\n code = _ref4.code;\n\n var exception = STYLE_EXCEPTION[[lang, country, code].join(' ')]; // special exceptions\n var currencyStyle = exception || styleString;\n\n var _currencyStyle$split = currencyStyle.split(';'),\n positiveStyle = _currencyStyle$split[0],\n negativeStyle = _currencyStyle$split[1]; // the style is separated by postive and negative notation via a ;\n\n\n var baseStyle = value < 0 ? negativeStyle || '-¤# C' : positiveStyle || '¤# C';\n var griffinStyle = exception ? baseStyle : maybeIgnoreSymbol(baseStyle, symbol, code); // don't apply fuzzy logic on exceptions\n\n return forceCodeToRight(griffinStyle);\n}\n\n// take the style and the formatted amount (rounded / truncated / thousands separator / decimal separator)\n// and produce the final result.\n//\n// wrapCodeInSpan - wraps the currency code in a span.currencyCode for styling purposes\nfunction applyCurrencyStyle(finalStyle, amountFormatted, _ref5) {\n var symbol = _ref5.symbol,\n code = _ref5.code,\n _ref5$wrapCodeInSpan = _ref5.wrapCodeInSpan,\n wrapCodeInSpan = _ref5$wrapCodeInSpan === undefined ? false : _ref5$wrapCodeInSpan;\n\n // the style will take care of negative symbol (see getFinalStyle function above)\n var absoluteAmountFormatted = amountFormatted.replace('-', '');\n\n // parallel operation is safer than serial replace\n return finalStyle.split('').map(function (char) {\n switch (char) {\n case 'C':\n return wrapCodeInSpan ? '' + code + '' : code;\n case '¤':\n return symbol;\n case '#':\n return absoluteAmountFormatted;\n default:\n return char;\n }\n }).join('').replace(ALL_NON_BREAKING_SPACE, ' ');\n}\n\n/**\n * @function formatCurrency\n * @param {string|number} amount Amount can be a string or a number\n * @param {string} code\n * @param {boolean} wrapCodeInSpan\n * @param {string} [style=SymbolISOCurrency]\n * @returns {string} formatted currency string\n */\nfunction formatCurrency(amount, code, wrapCodeInSpan) {\n var style = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'SymbolISOCurrency';\n\n if (isObject(amount) || typeof amount === 'undefined' || amount === null) {\n return;\n }\n\n var _ref6 = _locale.$locale.metadata || {},\n _ref6$number = _ref6.number,\n numberConfig = _ref6$number === undefined ? {} : _ref6$number,\n _ref6$currency = _ref6.currency,\n currencyConfig = _ref6$currency === undefined ? {} : _ref6$currency;\n\n var _currencyConfig$digit = currencyConfig.digits,\n digits = _currencyConfig$digit === undefined ? {} : _currencyConfig$digit,\n _currencyConfig$style = currencyConfig.styles,\n styles = _currencyConfig$style === undefined ? {} : _currencyConfig$style,\n _currencyConfig$suppo = currencyConfig.supportedSymbols,\n currencySymbols = _currencyConfig$suppo === undefined ? {} : _currencyConfig$suppo;\n\n var value = parseFloat(amount);\n\n styles.AmountOnlyStyle = AmountOnlyStyle;\n var dot = numberConfig.DECIMAL_SEP === undefined ? '.' : numberConfig.DECIMAL_SEP;\n var comma = numberConfig.GROUP_SEP === undefined ? ',' : numberConfig.GROUP_SEP;\n\n var amountFormatted = roundingAndSeparators(amount.toString(), _locale.$locale, { decimalPlaces: digits[code], dot: dot, comma: comma });\n\n if (code) {\n var symbol = currencySymbols[code];\n var finalStyle = getFinalStyle(styles[style], _locale.$locale, { value: value, symbol: symbol, code: code });\n\n return applyCurrencyStyle(finalStyle, amountFormatted, { symbol: symbol, code: code, wrapCodeInSpan: wrapCodeInSpan });\n }\n\n return amountFormatted; // HTML?\n}\n\n/**\n * @function truncateCurrencyConversionString\n * @description Takes a fullString, amount, and amountForex and truncates\n * the number in the full string to number of digits in amountForex.\n * This function is used to format the PayPal currency conversion\n * rate that is displayed to the user (e.g. '1 CAD = $0.7459 USD')\n * e.g. inputs of:\n * fullString = '$0.745994235 USD'\n * amount = '0.745994235'\n * amountForex = '0.7459'\n * results in an output of '$0.7459 USD'\n * @param {object} Contains keys 'fullString', 'amount', and 'amountForex'\n * @returns {string}\n */\nvar truncateCurrencyConversionString = exports.truncateCurrencyConversionString = function truncateCurrencyConversionString() {\n var _ref7 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n fullString = _ref7.fullString,\n amount = _ref7.amount,\n amountForex = _ref7.amountForex;\n\n var allArgsAreStrings = [fullString, amount, amountForex].every(function (s) {\n return typeof s === 'string';\n });\n\n if (!allArgsAreStrings) {\n return fullString || '';\n }\n\n // Some countries, e.g. France, use commas instead of decimals\n var target = amountForex.includes(',') ? amount.replace('.', ',') : amount;\n\n return fullString.replace(target, amountForex);\n};\n\n/**\n * @description takes a currency code and\n * returns either a code or a symbol based\n * on our currency mapping.\n * eg: USD -> $ , RUB -> RUB\n *\n * @param {*} code\n * @returns {string}\n */\nvar getCurrencySymbol = exports.getCurrencySymbol = function getCurrencySymbol(code) {\n var _ref8 = _locale.$locale.metadata || {},\n _ref8$currency = _ref8.currency,\n currency = _ref8$currency === undefined ? {\n supportedSymbols: {}\n } : _ref8$currency;\n\n return currency.supportedSymbols[code];\n};\n\n_locale.$locale;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/squid/dist/locale/currency.js\n// module id = ../node_modules/squid/dist/locale/currency.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$feature = $feature;\nexports.$featureCountries = $featureCountries;\n\nvar _core = require('../core');\n\nvar _locale = require('./locale');\n\nfunction $feature(prop, def, country) {\n\n var features = _core.$config.features || {};\n\n country = country || _locale.$locale.country;\n // 1. Check the feature is present in country\n var result = _core.$Class.get(features[country], prop);\n\n if (result !== undefined) {\n return result;\n }\n // 2. Check the feature is present in feature group\n\n Object.keys(_core.$config.regions).some(function (region) {\n if (_core.$config.regions[region].indexOf(country) !== -1) {\n result = _core.$Class.get(features[region], prop);\n return result !== undefined;\n }\n\n return false;\n });\n\n if (result !== undefined) {\n return result;\n }\n // 3. Check the feature is present in default group\n result = _core.$Class.get(features.DEFAULT, prop);\n\n if (result !== undefined) {\n return result;\n }\n return def;\n}\n\n// Build a list of all countries in our feature list and regions\n// populate countries with out REGION names in the list\nvar allCountries = _core.$Class.keys(_core.$config.features || {}).filter(function (country) {\n return country !== 'DEFAULT' && !(_core.$config.regions && _core.$config.regions.hasOwnProperty(country));\n});\n\n// populate all the region countries in to allcountries\n_core.$util.forEach(_core.$config.regions, function (countries, region) {\n _core.$util.forEach(countries, function (country) {\n if (allCountries.indexOf(country) === -1) {\n allCountries.push(country);\n }\n });\n});\n\nfunction $featureCountries(prop) {\n // Find the countries with a certain feature enabled\n return allCountries.filter(function (country) {\n return $feature(prop, false, country);\n });\n}\n\nangular.value(\"$feature\", $feature);\nangular.value(\"$featureCountries\", $featureCountries);\n_core.$config;\n\n_core.$Class;\n\n_core.$util;\n\n_locale.$locale;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/squid/dist/locale/feature.js\n// module id = ../node_modules/squid/dist/locale/feature.js\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _locale = require('./locale');\n\nObject.keys(_locale).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _locale[key];\n }\n });\n});\n\nvar _currency = require('./currency');\n\nObject.keys(_currency).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _currency[key];\n }\n });\n});\n\nvar _feature = require('./feature');\n\nObject.keys(_feature).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _feature[key];\n }\n });\n});\n\nvar _name = require('./name');\n\nObject.keys(_name).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _name[key];\n }\n });\n});\n\nvar _quantity = require('./quantity');\n\nObject.keys(_quantity).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _quantity[key];\n }\n });\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/squid/dist/locale/index.js\n// module id = ../node_modules/squid/dist/locale/index.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$localeHelper = exports.$locale = exports.$LocaleModel = exports.$MetadataModel = exports.$ContentModel = undefined;\nexports.sanitize = sanitize;\nexports.Content = Content;\nexports.$contentVersion = $contentVersion;\nexports.$renderContent = $renderContent;\nexports.$flushContent = $flushContent;\n\nvar _logger = require('xo-beaver/dist/logger');\n\nvar _core = require('../core');\n\nvar _paypal = require('../paypal');\n\nfunction sanitize(html) {\n return html && html.toString().replace(/&/g, '&').replace(//g, '>').replace(/\"/g, '"').replace(/'/g, ''').replace(/\\//g, '/');\n} /* eslint-disable no-use-before-define */\n\n\nvar JSONStringify = JSON.stringify;\n\nJSON.stringify = function (item) {\n if (item instanceof Content) {\n return item.toString();\n }\n return JSONStringify.apply(this, arguments);\n};\n\nfunction Content(key, props) {\n this.key = key;\n this.props = props;\n}\n\nContent.cache = {};\n\nContent.get = function (key, props) {\n\n if (!key) {\n return '';\n }\n\n props = props || {};\n\n var cacheKey = $locale.country + '_' + $locale.lang + '_' + key + '_' + JSONStringify.call(JSON, props);\n var cacheVal = Content.cache[cacheKey];\n\n if (cacheVal !== undefined) {\n return cacheVal;\n }\n\n cacheVal = Content.cache[cacheKey] = new Content(key, props);\n\n return cacheVal;\n};\n\nContent.prototype.toString = Content.prototype.valueOf = function () {\n if (this.string) {\n return this.string;\n }\n\n this.string = this.render(false);\n\n return this.string;\n};\n\nContent.prototype.toSafeString = function () {\n if (this.safeString) {\n return this.safeString;\n }\n\n this.safeString = this.render(true);\n\n return this.safeString;\n};\n\nContent.prototype.render = function (safe) {\n var _this = this;\n\n if (!this.key) {\n return '';\n }\n\n var value = contentCache[$locale.country] && contentCache[$locale.country][$locale.lang];\n var keys = this.key.split('.');\n\n for (var i = 0; i < keys.length; i++) {\n if (value) {\n value = value[keys[i]];\n } else {\n break;\n }\n }\n\n if (!value) {\n return '';\n }\n\n return value.replace(/\\{\\w+\\}/g, function (prop) {\n prop = prop.slice(1, prop.length - 1);\n\n if (prop === 'country') {\n return $locale.country;\n }\n\n if (prop === 'lang') {\n return $locale.lang;\n }\n\n if (!_this.props[prop]) {\n if (!_core.$loader.isLoading()) {\n _logger.$logger.warn('missing_content_prop', {\n key: _this.key,\n prop: prop\n }, { unique: true });\n }\n\n return '';\n }\n\n var propStr = _this.props[prop].toString();\n\n if (safe) {\n return sanitize(propStr);\n }\n\n return propStr;\n });\n};\n\nvar contentCache = {};\nvar currentVersion = void 0;\n\nwindow.addContent = function (country, lang, content, version) {\n var countryCache = contentCache[country] = contentCache[country] || {};\n\n countryCache[lang] = content;\n currentVersion = version;\n};\n\nvar metadataCache = {};\n\nwindow.addMetadata = function (country, lang, metadata) {\n var metadataVersion = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'default';\n\n var countryCache = metadataCache[country] = metadataCache[country] || {};\n\n countryCache[lang] = countryCache[lang] || {};\n countryCache[lang][metadataVersion] = metadata;\n};\n\nfunction $contentVersion() {\n return currentVersion || '';\n}\n\nvar PP_SPECIAL_COUNTRIES_ISO_CODES = {\n C2: 'CN'\n};\n\nvar $ContentModel = exports.$ContentModel = _core.$Model.extend('$ContentModel', {\n api: new _core.$Api({\n\n baseURI: _core.$meta.staticUrl,\n uri: '/locales/:countryCode/:lang',\n ext: 'js',\n\n retrieve: function retrieve(options) {\n var self = this;\n var model = options.model;\n\n var uri = self.getURI(model);\n\n return _core.$promise.resolve().then(function () {\n\n if (contentCache[model.countryCode] && contentCache[model.countryCode][model.lang]) {\n _logger.$logger.info('cached_content');\n return contentCache[model.countryCode][model.lang];\n }\n\n _logger.$logger.info('retrieve_content', {\n uri: uri\n });\n\n _core.$event.emit('loading');\n\n return _core.$promise.attempt(3, function () {\n return _core.$dom.loadScript('content', uri, 10000).then(function () {\n if (contentCache[model.countryCode] && contentCache[model.countryCode][model.lang]) {\n _logger.$logger.info('content_retrieved');\n return contentCache[model.countryCode][model.lang];\n }\n\n throw new Error('content_not_available');\n });\n })['catch'](function (err) {\n throw err;\n })['finally'](function () {\n _core.$event.emit('loaded');\n });\n }).then(function (content) {\n model.setProperties(content);\n return content;\n });\n }\n }),\n\n change: function change(country, lang) {\n\n if (country === this.countryCode && lang === this.lang) {\n return _core.$promise.resolve(this);\n }\n\n this.countryCode = country;\n this.lang = lang;\n\n return this.reload().then(function () {\n _core.$event.broadcast('contentChange');\n });\n }\n});\n\nvar $MetadataModel = exports.$MetadataModel = _core.$Model.extend('$MetadataModel', {\n\n api: new _core.$Api({\n\n baseURI: _core.$meta.staticUrl,\n uri: '/metadata/:country/:lang/:version?/metadata',\n ext: 'js',\n\n retrieve: function retrieve(options) {\n var self = this;\n var model = options.model;\n\n var uri = self.getURI(model);\n\n return _core.$promise.resolve().then(function () {\n\n var metadataVersion = model.version || 'default';\n\n if (metadataCache[model.country] && metadataCache[model.country][model.lang] && metadataCache[model.country][model.lang][metadataVersion]) {\n _logger.$logger.info('cached_metadata');\n return metadataCache[model.country][model.lang][metadataVersion];\n }\n\n _logger.$logger.info('retrieve_metadata', {\n uri: uri\n });\n\n _core.$event.emit('loading');\n\n return _core.$promise.attempt(3, function () {\n return _core.$dom.loadScript('metadata', uri, 10000).then(function () {\n if (metadataCache[model.country] && metadataCache[model.country][model.lang] && metadataCache[model.country][model.lang][metadataVersion]) {\n _logger.$logger.info('metadata_retrieved', {\n uri: uri\n });\n return metadataCache[model.country][model.lang][metadataVersion];\n }\n\n // Retry if not found in cache\n _logger.$logger.info('metadata_not_available', {\n uri: uri\n });\n return _core.$promise.reject(new Error('metadata_not_available'));\n });\n })['catch'](function (err) {\n throw err;\n })['finally'](function () {\n _core.$event.emit('loaded');\n });\n }).then(function (metadata) {\n model.setProperties(metadata);\n return metadata;\n });\n }\n }),\n\n setVersion: function setVersion(country, lang) {\n var _this2 = this;\n\n var versionPxpName = _core.$config.features[country] && _core.$config.features[country].metadataVersionName;\n\n if (versionPxpName && _core.$config.metadataPxpExperiments[versionPxpName]) {\n var pxp = (0, _paypal.$pxp)(_core.$config.metadataPxpExperiments[versionPxpName].experimentName, {\n 'ctx.COUNTRY': country,\n 'ctx.LANGUAGE': lang\n }, _core.$config.metadataPxpExperiments[versionPxpName].experimentTreatmentName);\n\n return pxp.then(function (treatment) {\n if (treatment) {\n _this2.version = versionPxpName;\n _logger.$logger.info('metadata_version_set', {\n country: country,\n lang: lang,\n version: versionPxpName\n });\n } else {\n delete _this2.version;\n }\n })['catch'](function () {\n delete _this2.version;\n })['finally'](function () {\n return _core.$promise.resolve();\n });\n } else {\n delete this.version;\n return _core.$promise.resolve();\n }\n },\n\n change: function change(country, lang) {\n var _this3 = this;\n\n this.country = country;\n this.lang = lang;\n\n return this.setVersion(country, lang).then(function () {\n return _this3.reload().then(function () {\n if (!_this3.noBroadcast) {\n _core.$event.broadcast('metadataChange');\n }\n });\n });\n },\n\n choose: function choose(country, lang, override) {\n\n if (country && (!this.chosenCountry || override !== false)) {\n this.chosenCountry = country;\n }\n\n if (lang && (!this.chosenLang || override !== false)) {\n this.chosenLang = lang;\n }\n\n country = this.chosenCountry || this.country;\n lang = this.chosenLang;\n\n if (_core.$config.supportedCountries) {\n if (!_core.$config.supportedCountries[country]) {\n country = this.country;\n }\n\n if (_core.$config.supportedCountries[country].indexOf(lang) === -1) {\n lang = _core.$config.supportedCountries[country][0];\n }\n }\n\n if (!lang) {\n lang = this.lang;\n }\n\n return this.change(country, lang);\n },\n\n normalizeAddressFields: function normalizeAddressFields(content) {\n\n var CONTENT_MAPPING = {\n line1Label: 'streetAddress',\n line2Label: 'streetAddress2',\n cityLabel: 'city',\n stateLabel: 'state',\n postcodeLabel: 'postalCode'\n };\n\n // Loop over all layout props, if they don't exist in Griffin, get them from xo-content\n for (var prop in CONTENT_MAPPING) {\n if (this.addressEntry && this.addressEntry.strings[prop]) {\n this.addressEntry.strings[prop] = this.addressEntry.strings[prop] || content.get('common.' + CONTENT_MAPPING[prop]);\n }\n }\n }\n});\n\nfunction mapLanguage(lang) {\n var unselectableLanguages = _core.$config.unselectableLanguages || [];\n\n if (unselectableLanguages.indexOf(lang) !== -1) {\n if (!(_core.$meta.corp && _core.$config.betaLanguages && _core.$config.betaLanguages.indexOf(lang) !== -1)) {\n return 'en';\n }\n }\n\n var unsupportedLanguages = _core.$config.unsupportedLanguages || [];\n\n if (unsupportedLanguages.indexOf(lang) !== -1) {\n if (!(_core.$meta.corp && _core.$config.betaLanguages && _core.$config.betaLanguages.indexOf(lang) !== -1)) {\n var s = lang + '_locale_not_supported';\n\n throw new Error(s);\n }\n }\n\n return lang;\n}\n\nvar $LocaleModel = exports.$LocaleModel = _core.$Model.extend('LocaleModel', {\n api: new _core.$Api({\n uri: '/api/locale'\n }),\n\n init: function init() {\n this._super.init.apply(this);\n this.content = $ContentModel.instance();\n this.metadata = $MetadataModel.instance();\n },\n\n retrieve: function retrieve() {\n var self = this;\n\n return this._super.retrieve.apply(this, arguments).then(function (result) {\n self.lang = mapLanguage(self.lang);\n return _core.$promise.all([self.content.change(self.country, self.lang), self.metadata.change(self.country, self.lang)]).then(function () {\n\n // TODO: This at build time... or make sure griffin metadata is complete\n self.metadata.normalizeAddressFields(self.content);\n\n return result;\n });\n });\n },\n\n change: function change(country, lang) {\n\n var self = this;\n\n lang = mapLanguage(lang);\n\n if (country === this.country && lang === this.lang) {\n return _core.$promise.resolve(this);\n }\n\n _logger.$logger.info('locale_change', {\n country: country,\n lang: lang\n });\n\n this.country = country;\n this.lang = lang;\n\n return _core.$promise.all([this.content.change(country, lang), this.metadata.change(country, lang)]).then(function (loadedData) {\n\n // TODO: This at build time... or make sure griffin metadata is complete\n self.metadata.normalizeAddressFields(self.content);\n\n _core.$event.broadcast('localeChange'); // broadcast only when data has all been loaded\n return loadedData;\n });\n },\n\n choose: function choose(country, lang, override) {\n\n if (country && (!this.chosenCountry || override !== false)) {\n this.chosenCountry = country;\n }\n\n if (lang && (!this.chosenLang || override !== false)) {\n this.chosenLang = lang;\n }\n\n country = this.chosenCountry || this.country;\n lang = this.chosenLang;\n\n if (!_core.$config.supportedCountries[country]) {\n country = this.country;\n }\n\n if (_core.$config.supportedCountries[country].indexOf(lang) === -1) {\n lang = _core.$config.supportedCountries[country][0];\n }\n\n if (!lang) {\n lang = this.lang;\n }\n\n return this.change(country, lang);\n },\n\n chooseCountry: function chooseCountry(country) {\n return this.choose(country, null);\n },\n\n chooseLang: function chooseLang(lang) {\n return this.choose(null, lang);\n },\n\n getLocaleCode: function getLocaleCode() {\n return this.lang + '_' + this.country;\n },\n\n getCountryCodeISO: function getCountryCodeISO() {\n return PP_SPECIAL_COUNTRIES_ISO_CODES[this.country] || this.country;\n }\n});\n\nvar $locale = exports.$locale = $LocaleModel.instance();\n\nfunction $renderContent(key, props) {\n return Content.get(key, props);\n}\n\nfunction $flushContent() {\n contentCache = {};\n Content.cache = {};\n $locale.content = $ContentModel.create();\n $locale.metadata = $MetadataModel.create();\n metadataCache = {};\n}\n\nvar $localeHelper = exports.$localeHelper = {\n /**\n *\n * @param locale - Ex: en_US\n * @returns {{country: *, dialect}}\n */\n normalizeLocale: function normalizeLocale(locale) {\n if (!locale) {\n return {};\n }\n\n locale = locale.replace('-', '_');\n\n var country = void 0;\n var language = void 0;\n\n if (locale.match(/^\\w{2}_\\w{2}$/)) {\n locale = locale.split('_');\n\n language = locale[0];\n country = locale[1];\n } else {\n language = locale;\n }\n\n return {\n country: country,\n language: language\n };\n }\n};\n\nangular.value(\"sanitize\", sanitize);\nangular.value(\"Content\", Content);\nangular.value(\"$contentVersion\", $contentVersion);\nangular.value(\"$ContentModel\", $ContentModel);\nangular.value(\"$MetadataModel\", $MetadataModel);\nangular.value(\"$LocaleModel\", $LocaleModel);\nangular.value(\"$locale\", $locale);\nangular.value(\"$renderContent\", $renderContent);\nangular.value(\"$flushContent\", $flushContent);\nangular.value(\"$localeHelper\", $localeHelper);\n_logger.$logger;\n\n_core.$event;\n\n_core.$Model;\n\n_core.$Api;\n\n_core.$meta;\n\n_core.$promise;\n\n_core.$config;\n\n_core.$loader;\n\n_core.$dom;\n\n_paypal.$pxp;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/squid/dist/locale/locale.js\n// module id = ../node_modules/squid/dist/locale/locale.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.formatNameInformal = formatNameInformal;\n\nvar _locale = require('./locale');\n\n// Mapping of Griffin fields to name fields that should be used\nvar SUBSTITUTED_FIELDS = {\n givenName: 'first_name',\n surname: 'last_name'\n};\n\n// Taken from griffin-paypal: test if a string is Latin\nfunction isLatin(str) {\n if (!str) {\n return true;\n }\n\n for (var i = 0; i < str.length; i++) {\n if (str.charCodeAt(i) > 0x24F) {\n return false;\n }\n }\n\n return true;\n}\n\n/**\n * Formats name into informal format based on Griffin metadata\n * @param {Object} name The name to be formatted, containing first_name and last_name properties\n * @return {String} The formatted string, or null if data is missing\n */\nfunction formatNameInformal(name) {\n var layoutMetadata = _locale.$locale.metadata.nameInformal;\n var layout = null;\n\n if (!layoutMetadata) {\n return name.first_name || null; // Default to first name if metadata not loaded\n }\n\n // According to Griffin, if the name is all Latin and there is a Latin formatting variant, use that one\n if (layoutMetadata['latinLayout'] && isLatin(name.first_name) && isLatin(name.last_name)) {\n layout = layoutMetadata['latinLayout'];\n } else {\n layout = layoutMetadata['layout'];\n }\n\n // Map griffin layout parts to the name passed in. If it requires a value not passed in name, returns null early\n var formattedName = [];\n\n for (var i = 0; i < layout.length; i++) {\n var namePart = layout[i];\n\n if (name[SUBSTITUTED_FIELDS[namePart['$']]]) {\n formattedName.push(name[SUBSTITUTED_FIELDS[namePart['$']]]);\n } else if (namePart['$'] === 'separator') {\n formattedName.push(namePart._);\n }\n }\n\n return formattedName.join('');\n}\n\n_locale.$locale;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/squid/dist/locale/name.js\n// module id = ../node_modules/squid/dist/locale/name.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.formatQuantity = formatQuantity;\n\nvar _locale = require('./locale');\n\nvar _currency = require('./currency');\n\n// format a quantity to add a thousand separator based on a locality\nfunction formatQuantity(quantity) {\n var _ref = _locale.$locale.metadata || {},\n _ref$number = _ref.number,\n numberConfig = _ref$number === undefined ? {} : _ref$number;\n\n var dot = '';\n var comma = numberConfig.GROUP_SEP === undefined ? ',' : numberConfig.GROUP_SEP;\n\n return (0, _currency.roundingAndSeparators)(quantity.toString(), _locale.$locale, { decimalPlaces: 0, dot: dot, comma: comma });\n}\n\n_locale.$locale;\n\n_currency.roundingAndSeparators;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/squid/dist/locale/quantity.js\n// module id = ../node_modules/squid/dist/locale/quantity.js\n// module chunks = 0","\n\nmodule.exports = angular.module;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/squid/dist/module.js\n// module id = ../node_modules/squid/dist/module.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$Component = undefined;\nexports.$populate = $populate;\n\nvar _angular = require('angular');\n\nvar _core = require('../core');\n\nvar _ng = require('./ng');\n\nvar _directive = require('./directive');\n\n(0, _directive.$registerDirective)('prevent-default', function () {\n\n return {\n restrict: 'A',\n link: function link($scope, $element, $attrs) {\n $element.on('click', function (event) {\n event.preventDefault();\n });\n }\n };\n});\n\n(0, _directive.$registerDirective)('stop-propagation', function () {\n\n return {\n restrict: 'A',\n link: function link($scope, $element, $attrs) {\n $element.on('click keydown keypress keyup', function (event) {\n event.stopPropagation();\n });\n }\n };\n});\n\n(0, _directive.$registerDirective)('validate-submit', function () {\n\n return {\n link: function link($scope, $element, $attrs) {\n\n var $form = $element.closest('form');\n var form = $scope[$form.prop('name')];\n var formID_element = $attrs.form; // take the form attribute from submit button\n var formID_linked = $element[0] // take the id from the linked form element\n && $element[0].form && $element[0].form.id;\n var isLinkedForm = formID_element && formID_element === formID_linked; // Checking for confirmation. May not be required. Presence should be good enough.\n\n if (isLinkedForm) {\n $form = angular.element(document.getElementById(formID_linked));\n var scope = $form.scope(); // Linked forms should mantain form scope\n\n form = scope[$form.prop('name')];\n }\n\n $element.on('click', function (event) {\n event.preventDefault();\n\n $form.addClass('validated');\n $scope.validated = true;\n form.$setSubmitted();\n\n if (form.$valid) {\n try {\n $scope.$eval($attrs.validateSubmit);\n } catch (err) {\n _angular.$injector.get('$exceptionHandler')(err);\n }\n } else {\n $form.find('.ng-invalid:first').focus();\n }\n });\n }\n };\n});\n\nfunction assertModelsRetrievedOrEmpty(items) {\n if (_core.$config.deploy.isLocal() || _core.$config.deploy.isStage()) {\n angular.forEach(items, function (item, name) {\n if (item instanceof _core.$Model) {\n if (item.meta.populated) {\n throw new Error(name + ' is already populated. Please call .retrieve() to ensure your code is not relying on cache being present.');\n }\n }\n });\n }\n}\n\nfunction setUpComponentRoute($scope, $Component, angular) {\n var componentRoute = $scope.componentRoute;\n\n componentRoute.scope = $scope;\n\n componentRoute.scope.goto = function (route) {\n componentRoute.goto(route);\n };\n\n var parentRoute = componentRoute.parent;\n\n if (parentRoute) {\n var parentScope = parentRoute.scope;\n var parentDirective = parentRoute.getDirective();\n var childSpec = componentRoute.childSpec;\n\n if (childSpec.config) {\n if (parentDirective instanceof $Component) {\n parentScope.viewConfig = childSpec.config.call(parentScope);\n } else {\n throw new Error('In order to use config() for child routes,\\n ' + parentRoute.getDirectiveTag() + ' must be instance of new\\n style $Component');\n }\n }\n\n if (childSpec.props) {\n if (parentDirective instanceof $Component) {\n angular.extend($scope, childSpec.props.call(parentScope));\n } else {\n throw new Error('In order to use props() for child routes,\\n ' + parentRoute.getDirectiveTag() + ' must be instance of new\\n style $Component');\n }\n }\n }\n}\n\nvar $Component = exports.$Component = _core.$Class.extend('$Component', {\n\n onPopulate: angular.noop,\n\n init: function init() {\n var _this = this,\n _arguments = arguments;\n\n this.validate();\n\n this.name = _core.$util.dasherizeToCamel(this.tag);\n\n var wrapperType = this.wrapperType === 'span' ? 'span' : 'div';\n\n this.template = '<' + wrapperType + ' class=\"' + this.tag + '-wrapper\" ng-if=\"populated && display\">' + this.template + '';\n\n this.scope = this.scope || {};\n this.resolve = this.resolve || {};\n this.props = this.props || {};\n this.rootEvents = this.rootEvents || {};\n\n this.actions = this.actions || {};\n\n this.lifecycle = this.lifecycle || {};\n this.lifecycle.enter = this.lifecycle.enter || angular.noop;\n this.lifecycle.reenter = this.lifecycle.reenter || angular.noop;\n this.lifecycle.exit = this.lifecycle.exit || angular.noop;\n this.lifecycle.populate = this.lifecycle.populate || angular.noop;\n\n if (this.scope && Object.keys(this.scope).length) {\n\n if (this.props && Object.keys(this.props).length) {\n throw new Error('Can not defined scope and props on the same component');\n }\n\n this.scope.componentRoute = '=';\n this.scope['export'] = '@';\n\n this.props = _core.$util.map(this.scope, function (type, key) {\n return {\n type: {\n '=': 'var',\n '@': 'str'\n }[type],\n required: false\n };\n });\n } else {\n\n this.props.componentRoute = {\n type: 'var',\n required: false\n };\n\n this.props['export'] = {\n type: 'str',\n required: false\n };\n\n var isRequired = function isRequired() {\n var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n required = _ref.required,\n optional = _ref.optional;\n\n return [true, 'true'].indexOf(required) > -1 || [false, 'false'].indexOf(optional) > -1;\n };\n\n this.scope = _core.$util.map(this.props, function (spec, key) {\n return {\n 'var': isRequired(spec) ? '=' : '=?',\n str: isRequired(spec) ? '@' : '@?'\n }[spec.type || 'var'];\n });\n }\n\n var originalController = this.controller || angular.noop;\n\n this.controller = ['$scope', '$element', function ($scope, $element) {\n $scope.$element = $element;\n\n $scope.$on('$destroy', function () {\n if ($scope.componentRoute && $scope.componentRoute.parent && $scope.componentRoute.parent.scope) {\n delete $scope.componentRoute.parent.scope.viewConfig;\n }\n _this.lifecycle.exit.call($scope);\n });\n\n $scope.props = {};\n\n if ($scope.componentRoute) {\n setUpComponentRoute($scope, $Component, angular);\n }\n\n angular.forEach(_this.props, function (type, key) {\n\n var prop = _this.props[key];\n var required = prop.required !== false;\n var def = void 0;\n\n if (prop['default'] instanceof Function) {\n def = _core.$util.memoize(prop['default'].bind($scope));\n } else {\n def = function def() {\n return prop['default'];\n };\n }\n\n var UNDEFINED = {\n 'var': undefined,\n str: ''\n }[prop.type];\n\n Object.defineProperty($scope.props, key, {\n get: function get() {\n var val = $scope[key];\n\n if (val === UNDEFINED) {\n if (required) {\n throw new Error('Prop required for component :: ' + _this.tag + ' :: ' + key);\n }\n\n return def();\n }\n\n return val;\n },\n\n set: function set() {\n throw new Error('Prop is immutable :: ' + _this.tag + ' :: ' + key);\n }\n });\n });\n\n $scope.fields = {};\n\n $scope.actions = _core.$util.bindObject(_this.actions, $scope);\n\n Object.keys(_this.rootEvents).forEach(function (eventName) {\n var cancel = _core.$event.on(eventName, function (event) {\n _this.rootEvents[eventName].apply($scope, _arguments);\n });\n\n $scope.$on('$destroy', cancel);\n });\n\n $scope.display = true;\n\n $scope.reload = function () {\n\n if (!$scope.populated) {\n throw new Error('Can not reload unpopulated component');\n }\n\n $scope.display = false;\n setTimeout(function () {\n $scope.display = true;\n });\n };\n\n $scope.componentScope = $scope;\n\n if ($scope.props['export'] && $scope.$parent.componentScope) {\n\n $scope.exports = angular.extend({}, _this.exports || {}, {\n reload: $scope.reload\n });\n\n Object.defineProperty($scope.$parent.componentScope, $scope.props['export'], {\n get: function get() {\n return $scope.exports;\n },\n\n configurable: true\n });\n }\n\n $scope._enablePopulateEvents = true;\n\n _angular.$injector.invoke(originalController, _this, { $scope: $scope, $element: $element });\n _this.lifecycle.enter.call($scope);\n\n $scope._enablePopulateEvents = false;\n\n var cancelReEnterEvent = _core.$event.on('$stateChangeSuccess', function (event, toState) {\n if (toState === $scope.props.componentRoute) {\n _this.lifecycle.reenter.call($scope);\n }\n });\n\n $scope.$on('$destroy', cancelReEnterEvent);\n\n return _core.$promise.sequential([function () {\n $scope.$emit('_populating');\n }, function () {\n return _core.$promise.map(_this.resolve, function (resolver, name, resolverPromises) {\n\n if (angular.isObject(resolver)) {\n $scope[name] = resolver;\n return resolver;\n }\n\n return _core.$promise.resolve(resolver.call($scope, resolverPromises)).then(function (data) {\n assertModelsRetrievedOrEmpty(data);\n\n return _core.$promise.hash(data).then(function (resolvedData) {\n\n $scope[name] = resolvedData;\n return resolvedData;\n });\n });\n });\n }, function () {\n\n $scope.populated = true;\n\n $scope.$emit('_populated');\n\n _core.$event.refCount($scope, '_populating', '_populated').then(function () {\n\n $scope.$on('populated', function (populatedEvent) {\n populatedEvent.stopPropagation();\n });\n\n $scope.$emit('populated');\n _this.onPopulate.call($scope);\n _this.lifecycle.populate.call($scope);\n });\n }]);\n }];\n },\n\n validate: function validate() {\n\n if (_core.$config.deploy.isLive() && !_core.$config.deploy.isTest()) {\n return;\n }\n\n var componentName = this.constructor.name;\n\n if (!this.tag) {\n throw new Error(componentName + ' :: expected property \\'tag\\'');\n }\n\n if (!this.tag.match(/^[a-z0-9-]+$/)) {\n throw new Error(componentName + ' :: tag should contain only lowercase alphanumeric characters and dashes');\n }\n\n if (!this.template) {\n throw new Error(componentName + ' :: expected property \\'template\\'');\n }\n\n if (this.resolve) {\n angular.forEach(this.resolve, function (resolver, name) {\n if (!(resolver instanceof Function)) {\n throw new Error(componentName + ' :: expected \\'resolve.' + name + '\\' to be a function');\n }\n });\n }\n\n if (this.props) {\n angular.forEach(this.props, function (prop, name) {\n\n if (!(prop instanceof Object)) {\n throw new Error(componentName + ' :: expected \\'props.' + name + '\\' to be a function');\n }\n\n if (prop.type && ['var', 'str'].indexOf(prop.type) === -1) {\n throw new Error(componentName + ' :: expected \\'props.' + name + '.type\\' to be one of var, str');\n }\n\n if (prop['default'] && prop.required) {\n throw new Error(componentName + ' :: unnecessary \\'props.' + name + '.default\\', since prop is required');\n }\n\n if (prop['default'] && prop['default'] instanceof Object && !(prop['default'] instanceof Function)) {\n throw new Error(componentName + ' :: expected \\'props.' + name + '.default\\' to be a primitive or a function - please do not pass mutable objects');\n }\n });\n }\n\n if (this.actions) {\n angular.forEach(this.actions, function (action, name) {\n if (!(action instanceof Function)) {\n throw new Error(componentName + ' :: expected \\'actions.' + name + '\\' to be a function');\n }\n });\n }\n\n if (this.lifecycle) {\n Object.keys(this.lifecycle).forEach(function (name) {\n if (['enter', 'populate', 'exit', 'reenter'].indexOf(name) === -1) {\n throw new Error(componentName + ' :: unexpected \\'lifecycle.' + name + '\\'');\n }\n });\n }\n }\n});\n\n$Component.reopenClass({\n\n extend: function extend() {\n\n var SubClass = _core.$Class.extend.apply(this, arguments);\n var spec = new SubClass();\n\n angular.module().directive(spec.name, function () {\n return spec;\n });\n\n return SubClass;\n },\n\n render: function render(scope) {\n _core.$event.emit('$resetState');\n\n var $scope = _angular.$rootScope.$new();\n\n angular.extend($scope, scope);\n\n var attrs = Object.keys(scope).map(function (key) {\n return _core.$util.camelToDasherize(key) + '=\"' + (this.prototype.props[key].type === 'var' ? key : scope[key]) + '\"';\n }.bind(this)).join(' ');\n\n var cleanRootScope = (0, _ng.$cleanRootScope)(_angular.$rootScope);\n var html = '<' + this.prototype.tag + ' ' + attrs + '>';\n\n console.log('RENDER', html, scope);\n\n var element = (0, _angular.$compile)(html)($scope);\n\n // attaching to the document so DOM Api works in karma flow tests (e.g document.getElementById('myId'))\n angular.element(document.body).append(element);\n\n afterEach(_core.$util.once(function () {\n $scope.$destroy();\n cleanRootScope();\n element.remove();\n }));\n\n setTimeout.flush();\n\n element.isolateScope = function () {\n throw new Error('Please test this element by interfacing with its public api: define mock endpoints, and interact with html links, buttons and form fields');\n };\n\n element.updateProps = function (props) {\n angular.extend($scope, props);\n $scope.$digest();\n setTimeout.flush();\n };\n\n return element;\n }\n});\n\nfunction autoConvertDirectiveToComponent(_ref2, original) {\n var name = _ref2[0],\n factory = _ref2[1];\n\n\n if (!angular.isFunction(factory)) {\n return original();\n }\n\n var tag = _core.$util.camelToDasherize(name);\n var spec = _angular.$injector.invoke(factory);\n\n if (spec.controller) {\n var originalController = spec.controller;\n\n spec.controller = ['$scope', '$element', function ($scope, $element) {\n $scope._enablePopulateEvents = true;\n var result = _angular.$injector.invoke(originalController, this, { $scope: $scope, $element: $element });\n\n $scope._enablePopulateEvents = false;\n return result;\n }];\n }\n\n if (spec instanceof $Component || !spec.template || !spec.controller || name.indexOf('xo') !== 0 || spec.transclude) {\n return original(this, [name, function () {\n return spec;\n }]);\n }\n\n if (spec.componentize) {\n\n $Component.extend('$' + name + 'Component', spec, {\n tag: tag\n });\n\n return this;\n }\n\n return original(this, [name, function () {\n return spec;\n }]);\n}\n\n_core.$util.monkeyPatch(_angular.$compileProvider, 'directive', autoConvertDirectiveToComponent);\n_core.$util.monkeyPatch(angular.module(), 'directive', autoConvertDirectiveToComponent);\n\n// $populate needs to go away\n\nfunction $populate($scope, instances) {\n\n $scope.$on = $scope.$on || angular.noop;\n $scope.$emit = $scope.$emit || angular.noop;\n\n var _enablePopulateEvents = $scope._enablePopulateEvents;\n\n if (_enablePopulateEvents) {\n _core.$event.refCount($scope, '_populating', '_populated').then(function () {\n $scope.$emit('populated');\n });\n }\n\n $scope.$on('populated', function (populatedEvent) {\n populatedEvent.stopPropagation();\n });\n\n if (_enablePopulateEvents) {\n $scope.$emit('_populating');\n }\n\n return _core.$promise.all(_core.$util.map(instances, function (instance, name) {\n\n var promise = void 0;\n\n if (instance.then) {\n promise = instance;\n } else {\n promise = instance.retrieve();\n $scope[name] = instance;\n }\n\n return promise.then(function (result) {\n $scope[name] = result;\n return result;\n });\n })).then(function (result) {\n\n if (_enablePopulateEvents) {\n $scope.$emit('_populated');\n }\n\n return result;\n });\n}\n\nangular.value(\"$Component\", $Component);\nangular.value(\"$populate\", $populate);\n_angular.$rootScope;\n\n_angular.$compile;\n\n_angular.$injector;\n\n_angular.$compileProvider;\n\n_core.$Class;\n\n_core.$Model;\n\n_core.$util;\n\n_core.$promise;\n\n_core.$config;\n\n_core.$event;\n\n_ng.$cleanRootScope;\n\n_directive.$registerDirective;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/squid/dist/ng/component.js\n// module id = ../node_modules/squid/dist/ng/component.js\n// module chunks = 0","\n\nvar _angular = require('angular');\n\nvar _core = require('../core');\n\n_core.$event.use({\n on: function on() {\n return _angular.$rootScope.$on.apply(_angular.$rootScope, arguments);\n },\n once: function once(name, handler) {\n var cancel = _core.$event.on(name, function () {\n cancel();\n handler.apply(this, arguments);\n }, true);\n\n return cancel;\n },\n emit: function emit() {\n return _angular.$rootScope.$emit.apply(_angular.$rootScope, arguments);\n },\n broadcast: function broadcast() {\n return _angular.$rootScope.$broadcast.apply(_angular.$rootScope, arguments);\n }\n});\n\n_core.$promise.use(_angular.$q);\n\n_angular.$q;\n\n_angular.$rootScope;\n\n_core.$event;\n\n_core.$promise;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/squid/dist/ng/core.js\n// module id = ../node_modules/squid/dist/ng/core.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$registerDirective = $registerDirective;\n\nvar _angular = require(\"angular\");\n\nvar _angular2 = _interopRequireDefault(_angular);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction $registerDirective(tag, definition) {\n\n var directiveName = tag.replace(/-([a-z])/g, function (g) {\n return g[1].toUpperCase();\n });\n\n return _angular2[\"default\"].module().directive(directiveName, definition);\n}\n\n_angular2[\"default\"].value(\"$registerDirective\", $registerDirective);\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/squid/dist/ng/directive.js\n// module id = ../node_modules/squid/dist/ng/directive.js\n// module chunks = 0","\n\nvar _uiRouter = require('uiRouter');\n\nvar _logger = require('xo-beaver/dist/logger');\n\nvar _core = require('../core');\n\nangular.module().run(function () {\n\n _core.$event.on('$stateChangeStart', function (event) {\n _core.$event.emit('loading');\n _core.$event.emit('loaded');\n });\n\n var startLoadTime = 0;\n var currentState = 'checkout_init';\n\n function currentStateName() {\n return _uiRouter.$state.current.name && _uiRouter.$state.current.name.replace(/\\./g, '_');\n }\n\n _core.$event.on('startLoad', function () {\n\n if (startLoadTime) {\n startLoadTime = _core.$util.now();\n } else if (window.enablePerformance && window.performance.timing.connectEnd && window.performance.timing.navigationStart) {\n\n var performance = window.performance;\n var timing = window.performance.timing || {};\n var now = performance.now();\n\n startLoadTime = parseInt(now - (timing.connectEnd - timing.navigationStart), 10);\n }\n });\n\n _core.$event.on('allLoaded', function () {\n\n var newState = currentStateName();\n\n if (!newState) {\n return;\n }\n\n if (currentState === newState) {\n _core.$event.emit('page_reloaded', currentState);\n } else {\n\n var duration = void 0;\n\n if (startLoadTime) {\n duration = _core.$util.now() - startLoadTime;\n }\n\n var payload = {\n start: currentState,\n end: newState,\n time: duration,\n duration: duration\n };\n\n _core.$event.emit('$transition', {\n from: currentState,\n toState: _uiRouter.$state.current,\n duration: duration\n });\n\n _logger.$logger.info('transition', payload);\n _logger.$logger.info('transition_' + currentState + '_to_' + newState, payload);\n\n _core.$event.emit('page_loaded', currentState, newState);\n _logger.$logger.flush();\n\n currentState = newState;\n }\n });\n\n _core.$event.emit('loading');\n\n var cancel = _core.$event.on('$stateChangeSuccess', function () {\n if (_uiRouter.$state.current.template) {\n cancel();\n setTimeout(function () {\n _core.$event.emit('loaded');\n }, 50);\n }\n });\n});\n\n_uiRouter.$state;\n\n_logger.$logger;\n\n_core.$event;\n\n_core.$util;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/squid/dist/ng/events.js\n// module id = ../node_modules/squid/dist/ng/events.js\n// module chunks = 0","\n\nvar _directive = require('./directive');\n\nvar _locale = require('../locale');\n\nvar _core = require('../core');\n\n(0, _directive.$registerDirective)('feature', function () {\n return {\n restrict: 'A',\n transclude: true,\n scope: {},\n template: '',\n link: function link($scope, element, attr) {\n $scope.enabled = function () {\n return (0, _locale.$feature)(attr.feature) || _core.$integration.getConfig(attr.feature);\n };\n }\n };\n});\n\n(0, _directive.$registerDirective)('unless-feature', function () {\n return {\n restrict: 'A',\n transclude: true,\n scope: {},\n template: '',\n link: function link($scope, element, attr) {\n $scope.enabled = function () {\n return (0, _locale.$feature)(attr.unlessFeature) || _core.$integration.getConfig(attr.unlessFeature);\n };\n }\n };\n});\n_directive.$registerDirective;\n\n_locale.$feature;\n\n_core.$integration;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/squid/dist/ng/feature.js\n// module id = ../node_modules/squid/dist/ng/feature.js\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _core = require('./core');\n\nObject.keys(_core).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _core[key];\n }\n });\n});\n\nvar _route = require('./route');\n\nObject.keys(_route).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _route[key];\n }\n });\n});\n\nvar _component = require('./component');\n\nObject.keys(_component).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _component[key];\n }\n });\n});\n\nvar _feature = require('./feature');\n\nObject.keys(_feature).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _feature[key];\n }\n });\n});\n\nvar _locale = require('./locale');\n\nObject.keys(_locale).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _locale[key];\n }\n });\n});\n\nvar _module = require('./module');\n\nObject.keys(_module).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _module[key];\n }\n });\n});\n\nvar _ng = require('./ng');\n\nObject.keys(_ng).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _ng[key];\n }\n });\n});\n\nvar _directive = require('./directive');\n\nObject.keys(_directive).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _directive[key];\n }\n });\n});\n\nvar _events = require('./events');\n\nObject.keys(_events).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _events[key];\n }\n });\n});\n\nvar _pxp = require('./pxp');\n\nObject.keys(_pxp).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _pxp[key];\n }\n });\n});\n\nvar _lazyLoadRoutes = require('./lazyLoadRoutes');\n\nObject.keys(_lazyLoadRoutes).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _lazyLoadRoutes[key];\n }\n });\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/squid/dist/ng/index.js\n// module id = ../node_modules/squid/dist/ng/index.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.lazyLoadRoute = exports.findRelativeState = exports.initRoute = undefined;\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nvar _uiRouter = require('uiRouter');\n\nvar _logger = require('xo-beaver/dist/logger');\n\nvar _core = require('../core');\n\nvar _config = require('../core/config');\n\nvar getHash = function getHash(url) {\n if (!url || !~url.indexOf('#')) {\n // eslint-disable-line no-bitwise\n return;\n }\n\n url = url.split('#');\n return url[url.length - 1];\n};\n\n/**\n *\n * get parent state, e.g \"checkout.sidebar.addCard\" -> \"checkout.sidebar\"\n */\nvar getParentState = function getParentState(path) {\n return _uiRouter.$state.get(path.slice(0, path.lastIndexOf('.')));\n};\n\n/**\n * Find route by slug\n * path - full path of the current route, e.g \"checkout.payWithSelection\"\n * slug - path of the route that we want to search, e.g \"payWithSelection\"\n */\nvar getRoute = function getRoute(path, slug) {\n var route = getParentState(path);\n\n if (!route) {\n return;\n }\n var children = route.children;\n\n if (children) {\n return children.find(function (child) {\n return child.slug === slug;\n });\n }\n};\n\n/**\n * Lazy load children routes in the background\n */\nvar lazyLoadChildren = function lazyLoadChildren(children) {\n if (children) {\n _logger.$logger.info('lazy_loading_route_load_children');\n children.forEach(function (child) {\n if (child.lazyRoute) {\n // request to download js chunk (dynamic import)\n child.lazyRoute();\n }\n });\n }\n};\n\n/**\n * Dynamically load route and initialize / register it\n * @param {Object} routeObj - route object from Route definition, e.g\n * {\n * name: '$PayWithSelection',\n * slug: 'payWithSelection',\n * lazyRouter: () => import('pages/payWithSelection/route)\n * }\n *\n * @param {Route} parent - parent of the passed routeObj\n * @param {String} fullRoutePath - full path of the route, e.g \"checkout.payWithselection\"\n */\nvar initRoute = exports.initRoute = function initRoute(routeObj, parent, fullRoutePath) {\n if (!routeObj) {\n return;\n }\n\n var name = routeObj.name,\n slug = routeObj.slug,\n attributes = routeObj.attributes,\n lazyRoute = routeObj.lazyRoute;\n\n\n _logger.$logger.info('lazy_loading_route_init', {\n name: name,\n slug: slug,\n fullRoutePath: fullRoutePath\n });\n\n return lazyRoute().then(function (route) {\n if (!route) {\n return;\n }\n if ((typeof route === 'undefined' ? 'undefined' : _typeof(route)) === 'object') {\n route = route[name];\n }\n var childRoute = new route({ //eslint-disable-line\n parent: parent || getParentState(fullRoutePath),\n childSpec: _core.$util.extend(routeObj, { route: route }),\n childAttributes: attributes\n });\n childRoute.register();\n return childRoute;\n });\n};\n\n/**\n * Promisify all lazy routes\n * Example:\n * targetState = 'checkout.sidebar.addCardFlow.addCard'\n * Lets say 'addCard', 'addCardFlow' and 'addCard' are lazy routes\n * 1. Go through each possible route, e.g 'checkout', 'checkout.sidebar', 'checkout.sidebar.addCardFlow', 'checkout.sidebar.addCardFlow.addCard'\n * 2. Check if each exists / already registered\n * 3. if route is not registered -> find that route and return promise\n * @param {String} targetState full path of the target route\n * Returns an array of promisified functions\n */\nvar findAndPromisifyRoutes = function findAndPromisifyRoutes(targetState) {\n var splittedTargetState = targetState.split('.');\n var states = splittedTargetState.slice(1);\n var routes = [];\n var path = splittedTargetState[0];\n\n states.forEach(function (state) {\n path += '.' + state;\n var fullRoutePath = path;\n\n if (!_uiRouter.$state.get(path)) {\n routes.push(function (parent) {\n var route = getRoute(fullRoutePath, state);\n\n return initRoute(route, parent, fullRoutePath);\n });\n }\n });\n return routes;\n};\n\n/**\n * Checks if it's a relative path (having `.` or `^`)\n * @param {String} stateName - path of the state, e.g `.mychildRoute`\n */\nvar isRelative = function isRelative(stateName) {\n return stateName.indexOf('.') === 0 || stateName.indexOf('^') === 0;\n};\n\n/**\n * finds a full path of the relative state name\n * examples:\n * '^' - will go to a parent state\n * '^.sibling' - will go to a sibling state\n * '.child.grandchild' - will go to grandchild state\n * @param {String / Object} stateOrName - state to find, e.g `^.selectFi`\n * Returns full path name of the state, e.g `^.selectFi` -> `checkout.selectFi`\n */\nvar findRelativeState = exports.findRelativeState = function findRelativeState(stateOrName) {\n if (!stateOrName) {\n return;\n }\n var base = _uiRouter.$state.current;\n\n var rel = stateOrName.split('.');\n var current = base;\n var i = 0;\n\n for (; i < rel.length; i++) {\n if (rel[i] === '' && i === 0) {\n current = base;\n continue;\n }\n if (rel[i] === '^') {\n if (!current.parent) {\n throw new Error('lazy-loading: path \\'' + stateOrName + '\\' not valid for state \\'' + base.name + '\\'');\n }\n current = current.parent;\n continue;\n }\n break;\n }\n rel = rel.slice(i).join('.');\n return current.name + (current.name && rel ? '.' : '') + rel;\n};\n\n/**\n * Lazy load route and redirect if successfull or reject if route was not found\n * Note: routes will be loading sequentialy for now to load parent routes first if they are lazy as well.\n * Example:\n * targetState = 'checkout.sidebar.addCardFlow.addCard'\n * Lets say 'addCard', 'addCardFlow' and 'addCard' are lazy routes and represent separate js chunk\n * We have to load each js chunk in order one by one to be able to register them and attach to corresponding parents.\n * @param {String} targetState - route path, e.g 'checkout.payWithSelection'\n * @param {Object} targetParams - params which route may need\n * @param {Boolean} shouldChangeState - if state should be changed after route is loaded\n */\nvar lazyLoadRoute = exports.lazyLoadRoute = function lazyLoadRoute(targetState) {\n var targetParams = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var shouldChangeState = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n\n if (!targetState) {\n return _core.$promise.reject(new Error('lazy_loading_target_state_is_empty'));\n }\n _logger.$logger.info('lazy_loading_route', {\n targetState: targetState,\n targetParams: targetParams\n });\n if (isRelative(targetState)) {\n targetState = findRelativeState(targetState, _uiRouter.$state.current);\n }\n _core.$event.emit('loading');\n\n var routes = findAndPromisifyRoutes(targetState);\n\n return _core.$promise.sequential(routes).then(function (result) {\n if (_uiRouter.$state.get(targetState)) {\n if (result) {\n lazyLoadChildren(result.children);\n }\n _logger.$logger.info('lazy_loading_route_state_change', {\n targetState: targetState,\n targetParams: targetParams\n });\n if (!shouldChangeState) {\n return _core.$promise.resolve();\n }\n return _uiRouter.$state.go(targetState, targetParams)['catch'](function (err) {\n if (err.message === 'transition prevented' || err.message === 'transition superseded') {\n return _core.$promise.resolve();\n }\n return _core.$promise.reject(err);\n });\n } else {\n return _core.$promise.reject(new Error('lazy_loading_state_was_not_loaded'));\n }\n })['catch'](function (error) {\n // in case of exceptions, spinner must dissapear, because for each 'loading' event\n // that's sent in the beginning of the function must be corresponding 'loaded' event\n // otherwise, there will be infinite spinner\n\n _logger.$logger.info('lazy_loading_route_error', {\n targetState: targetState,\n targetParams: targetParams,\n errorMessage: error && error.message,\n errorStack: error && error.stack\n });\n\n return _core.$promise.reject(error);\n })['finally'](function () {\n _core.$event.emit('loaded');\n });\n};\n\n/**\n * mostly needed for use cases when user types route manually\n */\nwindow.addEventListener('hashchange', function (event) {\n if (_config.$meta.codeSplitting) {\n var fromHash = getHash(event.oldURL);\n var toHash = getHash(event.newURL || window.location.hash);\n\n // skip lazy loading in case hash is undefined or empty\n // example -> OpenModal\n // in that case `toHash` will be empty\n if (!toHash) {\n return;\n }\n\n var getHashQueryParams = function getHashQueryParams(path) {\n var splittedPath = path.split('?');\n // e.g #/checkout/genericError?code=ERROR_CODE -> code=ERROR_CODE\n var hashParams = splittedPath.length > 1 && splittedPath[1];\n\n if (hashParams) {\n // e.g code=ERROR_CODE -> { code: ERROR_CODE }\n return _core.$util.params(hashParams);\n }\n };\n // e.g #/checkout/review -> checkout.review\n var path = toHash.slice(1).replace(/\\//g, '.');\n var hashQueryParams = getHashQueryParams(path);\n\n if (hashQueryParams) {\n // e.g checkout.genericError?code=ERROR_CODE -> checkout.genericError\n path = path.split('?')[0];\n }\n\n if (_uiRouter.$state.get(path)) {\n return;\n }\n\n _logger.$logger.info('hashchange_lazy_loading', {\n from: fromHash,\n to: toHash\n });\n\n lazyLoadRoute(path, hashQueryParams)['catch'](function () {\n _logger.$logger.info('hashchange_lazy_loading_error', {\n from: fromHash,\n to: toHash,\n params: hashQueryParams\n });\n });\n }\n});\n\n_uiRouter.$state;\n\n_logger.$logger;\n\n_core.$util;\n\n_core.$promise;\n\n_core.$event;\n\n_config.$meta;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/squid/dist/ng/lazyLoadRoutes.js\n// module id = ../node_modules/squid/dist/ng/lazyLoadRoutes.js\n// module chunks = 0","\n\nvar _angular = require('angular');\n\nvar _core = require('../core');\n\nvar _locale = require('../locale');\n\n(0, _angular.$registerDirective)('content', function () {\n return {\n restrict: 'A',\n\n link: function link($scope, element, attributes) {\n $scope.content = $scope.htmlContent = function (key, props) {\n if (attributes.content) {\n key = attributes.content + '.' + key;\n }\n var content = _locale.Content.get(key, props);\n\n if (content.toString()) {\n return content;\n } else {\n return;\n }\n };\n }\n };\n});\n\n(0, _angular.$registerDirective)('bind-html-compile', function () {\n\n return {\n restrict: 'A',\n link: function link($scope, $element, $attrs) {\n $scope.$watch(function () {\n return $scope.$eval($attrs.bindHtmlCompile);\n }, function (value) {\n $element.html(value && value.toString());\n (0, _angular.$compile)($element.contents())($scope);\n });\n }\n };\n});\n\n(0, _angular.$registerDirective)('format-currency', function () {\n\n return {\n restrict: 'E',\n template: '',\n scope: {\n amount: '=?',\n symbol: '=?',\n code: '=?',\n currencyStyle: '@?'\n },\n controller: ['$scope', function ($scope) {\n\n function format() {\n $scope.amount_formatted = _angular.$sce.trustAsHtml((0, _locale.formatCurrency)($scope.amount, $scope.code, true, $scope.currencyStyle));\n }\n\n $scope.$on('$destroy', _core.$event.on('localeChange', format));\n\n $scope.$watch('amount', function (newValue, oldValue) {\n if (newValue !== oldValue && _locale.$locale.country) {\n format();\n }\n });\n\n if (_locale.$locale.country) {\n format();\n }\n }] // controller\n }; // return\n}); // registerDirective\n\n\n(function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n})(window.angular);\n\nangular.module().value('$sanitize', function (val) {\n if (val instanceof _locale.Content) {\n return val.toSafeString();\n }\n return (0, _locale.sanitize)(val);\n});\n\n_angular.$sce;\n\n_angular.$registerDirective;\n\n_angular.$compile;\n\n_core.$event;\n\n_locale.formatCurrency;\n\n_locale.sanitize;\n\n_locale.Content;\n\n_locale.$locale;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/squid/dist/ng/locale.js\n// module id = ../node_modules/squid/dist/ng/locale.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.module = undefined;\n\nvar _angular = require('angular');\n\nvar _angular2 = _interopRequireDefault(_angular);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar _module = _angular2['default'].module;\nexports.module = _module;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/squid/dist/ng/module.js\n// module id = ../node_modules/squid/dist/ng/module.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$angularInvoke = $angularInvoke;\nexports.$once = $once;\nexports.$cleanRootScope = $cleanRootScope;\n\nvar _angular = require('angular');\n\nvar _core = require('../core');\n\nfunction $angularInvoke(method) {\n try {\n return method();\n } catch (err) {\n _angular.$injector.get('$exceptionHandler')(err);\n }\n}\n\nfunction $once(name, handler) {\n var cancel = _core.$event.on(name, function () {\n cancel();\n handler.apply(this, arguments);\n }, true);\n}\n\nfunction $cleanRootScope(rootScope) {\n\n var keys = Object.keys(rootScope);\n\n var autoCleanupEventHandlers = [];\n var eventHandlers = [];\n var eventCancelers = [];\n\n _core.$util.monkeyPatch(rootScope, '$on', function (_ref, original) {\n var name = _ref[0],\n handler = _ref[1],\n once = _ref[2];\n\n\n var cancel = original();\n\n var $state = void 0;\n\n try {\n $state = _angular.$injector.get('$state');\n } catch (err) {\n // pass\n }\n\n if (name === '$destroy' || !$state || !$state.current || !$state.current.name || $state.current.name === 'default') {\n autoCleanupEventHandlers.push(cancel);\n return function autoCleanedUpCancel() {}; // eslint-disable-line no-empty-function\n }\n\n if (once) {\n eventCancelers.push(cancel);\n return cancel;\n }\n\n // Let ng-router do its thing\n if (handler.toString().indexOf('updateView') !== -1) {\n return cancel;\n }\n\n var stack = void 0;\n\n try {\n throw new Error('$rootScope.$on');\n } catch (err) {\n stack = err.stack;\n }\n\n var reference = {\n name: name,\n handler: handler.toString(),\n stack: stack\n };\n\n eventHandlers.push(reference);\n\n return function () {\n cancel();\n eventHandlers.splice(eventHandlers.indexOf(reference), 1);\n };\n });\n\n return function () {\n\n _core.$event.emit('$destroy');\n\n autoCleanupEventHandlers.forEach(function (canceler) {\n return canceler();\n });\n autoCleanupEventHandlers = [];\n\n Object.keys(rootScope).forEach(function (key) {\n if (keys.indexOf(key) === -1) {\n delete rootScope[key];\n }\n });\n\n if (eventHandlers.length) {\n throw new Error('$rootScope event handlers not cleaned up:\\n\\n' + eventHandlers.map(function (eventHandler) {\n return eventHandler.name + '\\n\\n' + eventHandler.handler + '\\n\\n' + eventHandler.stack;\n }).join('\\n\\n'));\n }\n\n eventCancelers.forEach(function (cancel) {\n return cancel();\n });\n };\n}\n\nangular.value(\"$angularInvoke\", $angularInvoke);\nangular.value(\"$once\", $once);\nangular.value(\"$cleanRootScope\", $cleanRootScope);\n_angular.$injector;\n\n_core.$util;\n\n_core.$event;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/squid/dist/ng/ng.js\n// module id = ../node_modules/squid/dist/ng/ng.js\n// module chunks = 0","\n\nvar _uiRouter = require('uiRouter');\n\nvar _core = require('../core');\n\n_core.$event.on('pxp_res', function (event, pxpRes) {\n _uiRouter.$state.current.trackingData = _uiRouter.$state.current.trackingData || {};\n _uiRouter.$state.current.trackingData.pxpData = _uiRouter.$state.current.trackingData.pxpData || [];\n _uiRouter.$state.current.trackingData.pxpData.push(pxpRes);\n});\n\n_uiRouter.$state;\n\n_core.$event;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/squid/dist/ng/pxp.js\n// module id = ../node_modules/squid/dist/ng/pxp.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$ComponentRoute = exports.$Route = undefined;\n\nvar _angular = require('angular');\n\nvar _uiRouter = require('uiRouter');\n\nvar _logger = require('xo-beaver/dist/logger');\n\nvar _core = require('../core');\n\nvar _locale = require('../locale');\n\nvar _component = require('./component');\n\nvar _ng = require('./ng');\n\nvar _config = require('../core/config');\n\nvar _lazyLoadRoutes = require('./lazyLoadRoutes');\n\nvar $Route = exports.$Route = _core.$Class.extend('$ComponentRoute', {\n\n childSpec: {},\n\n init: function init() {\n var _this = this;\n\n this.validate();\n\n this.url = '/' + (this.path || this.name);\n\n if (this.query) {\n this.url += '?' + this.query.join('&');\n }\n\n this.hasResolver = Boolean(this.resolve);\n\n var controller = this.controller = ['$scope', function ($scope) {\n $scope.route = _this;\n if ($scope.componentScope) {\n delete $scope.componentScope.view;\n }\n }];\n\n if (this.get('resolve.action')) {\n this.controller = ['$scope', 'action', function ($scope, action) {\n _angular.$injector.invoke(controller, this, { $scope: $scope });\n if (action) {\n if (!action.newState) {\n _angular.$location.replace();\n }\n\n if (angular.isObject(action) && action.to) {\n _uiRouter.$state.go(action.to, action.params);\n } else {\n _uiRouter.$state.go(action);\n }\n }\n }];\n }\n },\n\n validate: function validate() {\n\n if (_core.$config.deploy.isLive() && !_core.$config.deploy.isTest()) {\n return;\n }\n\n var routeName = this.constructor.name;\n\n if (!this.name && !this.path) {\n throw new Error(routeName + ' :: expected property \\'path\\'');\n }\n\n if (this.url) {\n _logger.$logger.warn(routeName + ' :: unexpected property \\'url\\' :: ' + this.url);\n }\n\n if (this.query && !(this.query instanceof Array)) {\n throw new Error(routeName + ' :: expected property \\'query\\' to be array of query params');\n }\n\n if (this.controller) {\n // throw new Error(`${routeName} :: unexpected property 'controller'`);\n }\n\n if (this.resolve) {\n if (this.resolve.action && !(this.resolve.action instanceof Function)) {\n throw new Error(routeName + ' :: expected property \\'resolve.action\\' to be a function');\n }\n\n Object.keys(this.resolve).forEach(function (name) {\n if (name === 'data') {\n _logger.$logger.warn(routeName + ' :: unexpected resolver :: ' + name);\n } else if (name !== 'action') {\n throw new Error(routeName + ' :: unexpected resolver :: ' + name);\n }\n });\n }\n\n if (this.template) {\n throw new Error(routeName + ' :: unexpected property \\'template\\'');\n }\n\n if (!this.directive && !this.resolve && !this.resolve.action) {\n throw new Error(routeName + ' :: expected property \\'directive\\'');\n }\n\n if (this.directive && angular.isString(this.directive) && !this.getDirective()) {\n throw new Error(routeName + ' :: unknown directive \\'' + this.directive + '\\'');\n }\n\n if (this.directive && !angular.isString(this.directive) && !_component.$Component.isChild(this.directive)) {\n throw new Error(routeName + ' :: expected directive to be subclass of $Component');\n }\n\n if (this.children) {\n this.children.forEach(function (childSpec) {\n\n if (!childSpec.route && !childSpec.name) {\n throw new Error(routeName + ' :: child expected property \\'route\\'');\n }\n\n var ChildRoute = childSpec.route;\n var childName = childSpec.name || ChildRoute.name;\n\n // skip loading route as it won't be available to validate\n if (_config.$meta.codeSplitting && childSpec.lazyRoute) {\n return;\n }\n\n if (!ChildRoute && childSpec.name) {\n try {\n ChildRoute = _angular.$injector.get(childSpec.name);\n } catch (err) {\n throw new Error(routeName + ' :: could not find child route \\'' + childName + '\\'');\n }\n }\n\n if (!$Route.isChild(ChildRoute)) {\n throw new Error(routeName + ' :: ' + childName + ' :: expected child to be instance of $Route');\n }\n });\n }\n },\n goto: function goto(route) {\n return _uiRouter.$state.go(route.replace('this.', this.absolutePath + '.'));\n },\n getDirective: function getDirective() {\n return _angular.$injector.get(_core.$util.dasherizeToCamel(this.getDirectiveTag() + 'Directive'))[0];\n },\n getDirectiveTag: function getDirectiveTag() {\n return angular.isString(this.directive) ? this.directive : this.directive.prototype.tag;\n },\n\n\n bootstrap: function bootstrap(defaultState, middleware) {\n var _this2 = this;\n\n return (0, _ng.$angularInvoke)(function () {\n // only bootstrap if not bootstrapped already\n var element = angular.element(document.body);\n\n if (!element.injector()) {\n angular.bootstrap(element, ['app']);\n }\n\n return _this2.load(defaultState, middleware);\n });\n },\n\n load: function load(defaultState, middleware) {\n\n defaultState = defaultState || this.defaultState;\n middleware = middleware || this.middleware;\n\n _logger.$logger.info('bootstrap_route', {\n route: this.path || this.name\n });\n\n var logStateNotFoundAndThrow = function logStateNotFoundAndThrow(_ref) {\n var unfoundState = _ref.unfoundState,\n fromState = _ref.fromState,\n fromParams = _ref.fromParams,\n _ref$logName = _ref.logName,\n logName = _ref$logName === undefined ? '' : _ref$logName;\n\n _logger.$logger.error('state_not_found' + logName, {\n name: unfoundState.to,\n from: fromState.name,\n fromParams: fromParams,\n hash: window.location.hash\n });\n throw new Error('state_not_found' + logName + ': ' + unfoundState.to);\n };\n\n (0, _ng.$once)('$stateNotFound', function (event, unfoundState, fromState, fromParams) {\n if (!_config.$meta.codeSplitting) {\n event.preventDefault();\n logStateNotFoundAndThrow({ unfoundState: unfoundState, fromState: fromState, fromParams: fromParams });\n }\n });\n\n // for code splitting this event handler will be triggered every single time user tries to load lazy route\n // so we need to have it being listening more than once\n _core.$event.on('$stateNotFound', function (event, unfoundState, fromState, fromParams) {\n if (_config.$meta.codeSplitting) {\n event.preventDefault();\n // if route was not found - lazy load it or throw state_not_found if it was not found\n (0, _lazyLoadRoutes.lazyLoadRoute)(unfoundState.to, unfoundState.toParams)['catch'](function () {\n logStateNotFoundAndThrow({ unfoundState: unfoundState, fromState: fromState, fromParams: fromParams, logName: '_lazy_loading' });\n });\n }\n });\n\n this.register();\n\n _uiRouter.$urlRouterProvider.otherwise(function () {\n return _logger.$logger.info('otherwise_after_bootstrap', {\n hash: window.location.hash\n });\n });\n\n this.runMiddleware(middleware).then(function () {\n var targetState = void 0;\n var targetParams = void 0;\n\n if (window.location.hash && window.location.hash.indexOf('#/') === 0) {\n\n targetState = window.location.hash.slice(2).split('?')[0].replace(/^\\/+/, '').replace(/\\/+$/, '').replace(/\\//g, '.');\n\n targetParams = _core.$util.params(window.location.hash.slice(2).split('?')[1] || '');\n }\n\n _logger.$logger.info('initializing_route', {\n target: targetState,\n defaultState: defaultState,\n hash: window.location.hash\n });\n\n _angular.$location.replace();\n\n /**\n * load default state in case target state was not found\n * e.g checkout.landing - is the default state in Hermes\n */\n var loadDefaultState = function loadDefaultState() {\n if (_uiRouter.$state.get(defaultState)) {\n _logger.$logger.info('default_state', {\n stateName: defaultState\n });\n return _uiRouter.$state.go(defaultState)['catch'](function (err) {\n if (err.message === 'transition prevented') {\n _logger.$logger.warn('transition_prevented', {\n targetState: defaultState\n });\n return _core.$promise.resolve();\n }\n return _core.$promise.reject(err);\n });\n }\n\n throw new Error('Default state not found: ' + defaultState);\n };\n\n if (targetState) {\n var logUnknownState = function logUnknownState() {\n var logName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n\n _logger.$logger.info('unknown_state' + logName, {\n stateName: targetState\n });\n };\n\n if (_uiRouter.$state.get(targetState)) {\n _logger.$logger.info('existing_state', {\n stateName: targetState\n });\n return _uiRouter.$state.go(targetState, targetParams)['catch'](function (err) {\n // lib/js/security.js event listener handles auth required state changes\n // and cancels transitions if user not authenticated\n if (err.message === 'transition prevented') {\n _logger.$logger.warn('transition_prevented', {\n targetState: targetState\n });\n return _core.$promise.resolve();\n }\n return _core.$promise.reject(err);\n });\n } else if (_config.$meta.codeSplitting) {\n // try to lazy load route and catch / handle redirect errors\n // 1. If route was not found -> log and try to load default state\n // 2. If route was found but redirect throws an error -> reject\n return (0, _lazyLoadRoutes.lazyLoadRoute)(targetState, targetParams)['catch'](function (err) {\n if (err.message === 'lazy_loading_state_was_not_loaded') {\n logUnknownState('_lazy_loading');\n return loadDefaultState();\n } else {\n return _core.$promise.reject(err);\n }\n });\n } else {\n logUnknownState();\n }\n }\n return loadDefaultState();\n })['catch'](function (err) {\n return _angular.$injector.get('$exceptionHandler')(err);\n });\n },\n\n runMiddleware: function runMiddleware(middleware) {\n\n _logger.$logger.info('middleware', {\n priority: _core.$util.map(middleware, function (method) {\n return method.name;\n }).join('|')\n });\n\n var promise = _core.$promise.resolve();\n\n angular.forEach(middleware, function (method) {\n promise = promise.then(function () {\n\n if (method.name) {\n _logger.$logger.info('middleware_' + method.name);\n }\n\n return method();\n });\n });\n\n return promise;\n },\n\n register: function register() {\n var _this3 = this;\n\n this.template = this.constructTemplate(this.childAttributes || {});\n\n this.absolutePath = this.path || this.name;\n\n if (this.parent) {\n this.absolutePath = this.parent.absolutePath + '.' + this.absolutePath;\n }\n\n if (!_uiRouter.$state.get(this.absolutePath)) {\n _uiRouter.$stateProvider.state(this.absolutePath, this);\n }\n\n angular.forEach(this.children, function (childSpec) {\n // skip registering child if it's supposed to be lazy loaded\n if (_config.$meta.codeSplitting && childSpec.lazyRoute) {\n return;\n }\n var ChildRoute = childSpec.route || _angular.$injector.get(childSpec.name);\n\n var childRoute = new ChildRoute({\n parent: _this3,\n childSpec: childSpec,\n childAttributes: childSpec.attributes\n });\n\n childRoute.register();\n });\n },\n\n /**\n * Constructs the template string for this route. If route.directive = 'xo-add-bank', then the template will be\n * ''.\n * If attributes are specified, they will be passed to directive. Ex: \n *\n * @param attributes - A map of name value pairs - {name: value}.\n * @returns {string}\n */\n constructTemplate: function constructTemplate(attributes) {\n var self = this;\n\n if (!self.directive) {\n return;\n }\n\n attributes['component-route'] = 'route';\n\n if (this.parent) {\n attributes['export'] = 'view';\n }\n\n var tag = this.getDirectiveTag();\n\n var paramString = '';\n\n angular.forEach(attributes, function (value, key) {\n paramString += ' ' + key + '=\"' + value + '\"';\n });\n\n return '
      ';\n }\n});\n\nif (!_uiRouter.$state.get('default')) {\n _uiRouter.$stateProvider.state('default', {\n auth: false\n });\n}\n\n$Route.reopenClass({\n render: function render(props) {\n\n _core.$event.emit('$resetState');\n _core.$loader.reset();\n _uiRouter.$state.go('default');\n setTimeout.flush();\n\n var $scope = angular.extend(_angular.$rootScope.$new(), props);\n\n var cleanRootScope = (0, _ng.$cleanRootScope)(_angular.$rootScope);\n var element = (0, _angular.$compile)('
      ')($scope);\n\n afterEach(_core.$util.once(function () {\n $scope.$destroy();\n cleanRootScope();\n _core.$loader.reset();\n angular.element(document.getElementById('app')).remove();\n }));\n\n var route = new this({\n // Pass child attributes to simulate a route receiving scope variables from the parent\n childAttributes: _core.$util.reduce(props, function (result, val, key) {\n result[_core.$util.camelToDasherize(key)] = key;\n return result;\n }, {})\n });\n\n route.bootstrap(route.defaultState || route.path || route.name);\n setTimeout.flush();\n\n element.isolateScope = function () {\n throw new Error('Please test this element by interfacing with its public api: define mock endpoints, and interact with html links, buttons and form fields');\n };\n\n // attaching to the document so DOM Api works in karma flow tests (e.g document.getElementById('myId'))\n angular.element(document.body).append(element);\n\n return element;\n },\n\n\n assertActive: function assertActive() {\n var isState = _uiRouter.$state.current instanceof this;\n\n if (!isState) {\n throw new Error('Current state should be \"' + (this.prototype.path || this.prototype.name) + '\", found \"' + _uiRouter.$state.current.name + '\"');\n }\n }\n});\n\nfunction getPageTitle(stateName) {\n\n var state = _uiRouter.$state.get(stateName);\n\n if (!state) {\n return;\n }\n\n if (state.titleContent) {\n return _locale.$locale.content.get(state.titleContent);\n }\n}\n\nfunction changePageTitle() {\n\n document.documentElement.setAttribute('lang', _locale.$locale.lang);\n\n if (!_uiRouter.$state.current || !_uiRouter.$state.current.name) {\n return;\n }\n\n var fullStateTitle = [];\n\n _uiRouter.$state.current.name.split('.').reduce(function (a, b) {\n\n var stateName = [a, b].filter(Boolean).join('.');\n var stateTitle = getPageTitle(stateName);\n\n if (stateTitle) {\n fullStateTitle.push(stateTitle);\n }\n\n return stateName;\n }, null);\n\n document.title = _core.$util.unique(fullStateTitle).join(' - ');\n}\n\n_core.$event.on('$stateChangeSuccess', changePageTitle);\n_core.$event.on('contentChange', changePageTitle);\n\nvar $ComponentRoute = exports.$ComponentRoute = $Route;\n\nangular.value(\"$Route\", $Route);\nangular.value(\"$ComponentRoute\", $ComponentRoute);\n_angular.$rootScope;\n\n_angular.$location;\n\n_angular.$injector;\n\n_angular.$compile;\n\n_uiRouter.$state;\n\n_uiRouter.$stateProvider;\n\n_uiRouter.$urlRouterProvider;\n\n_logger.$logger;\n\n_core.$config;\n\n_core.$Class;\n\n_core.$util;\n\n_core.$promise;\n\n_core.$event;\n\n_core.$loader;\n\n_locale.$locale;\n\n_component.$Component;\n\n_ng.$cleanRootScope;\n\n_ng.$angularInvoke;\n\n_ng.$once;\n\n_config.$meta;\n\n_lazyLoadRoutes.lazyLoadRoute;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/squid/dist/ng/route.js\n// module id = ../node_modules/squid/dist/ng/route.js\n// module chunks = 0","\n\nvar _core = require('../core');\n\nvar _env = require('./env');\n\n_core.$config.deploy = _core.$config.deploy || _env.$env;\n\n_core.$config;\n\n_env.$env;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/squid/dist/paypal/config.js\n// module id = ../node_modules/squid/dist/paypal/config.js\n// module chunks = 0","\n\nexports.__esModule = true;\nvar $env = exports.$env = {\n\n isLocal: function isLocal() {\n return window.location.hostname === 'localhost' || window.location.hostname === 'localhost.paypal.com';\n },\n\n isStage: function isStage() {\n return Boolean(window.location.hostname.match(/^.*\\.qa\\.paypal\\.com$/));\n },\n\n isSandbox: function isSandbox() {\n return Boolean(window.location.hostname.match(/^.*\\.sandbox\\.paypal\\.com$/));\n },\n\n isLive: function isLive() {\n return window.location.hostname === 'www.paypal.com';\n },\n\n isTest: function isTest() {\n return false;\n }\n};\n\nangular.value(\"$env\", $env);\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/squid/dist/paypal/env.js\n// module id = ../node_modules/squid/dist/paypal/env.js\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _env = require('./env');\n\nObject.keys(_env).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _env[key];\n }\n });\n});\n\nvar _config = require('./config');\n\nObject.keys(_config).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _config[key];\n }\n });\n});\n\nvar _pxp = require('./pxp');\n\nObject.keys(_pxp).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _pxp[key];\n }\n });\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/squid/dist/paypal/index.js\n// module id = ../node_modules/squid/dist/paypal/index.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$PXPModel = undefined;\nexports.$getPxpTreatments = $getPxpTreatments;\nexports.$pxp = $pxp;\nexports.$pxpMatch = $pxpMatch;\nexports.$pxpFactors = $pxpFactors;\nexports.$elmo = $elmo;\n\nvar _logger = require('xo-beaver/dist/logger');\n\nvar _core = require('../core');\n\nvar _locale = require('../locale');\n\nvar $PXPModel = exports.$PXPModel = _core.$Model.extend({\n api: new _core.$Api({\n uri: '/api/pxp/:pagename'\n })\n});\n\nfunction logPxp(pxpRes, params, logPayload) {\n var exp_name = [];\n var xe = [];\n var xt = [];\n var isElmoExperiment = params.isElmoExperiment;\n\n angular.forEach(pxpRes.treatments, function (treatment) {\n\n _logger.$logger.info('treatment_' + treatment.treatment_name, angular.extend({\n experiment: pxpRes.pagename,\n treatment: treatment.treatment_name,\n experiment_id: treatment.experiment_id,\n treatment_id: treatment.treatment_id,\n loc_country: _locale.$locale.country,\n loc_lang: _locale.$locale.lang,\n exp_source: isElmoExperiment ? 'elmo' : 'pxp'\n }, params, logPayload));\n\n exp_name.push(treatment.treatment_name);\n xe.push(treatment.experiment_id);\n xt.push(treatment.treatment_id);\n });\n\n _logger.$logger.info('pxp_' + pxpRes.pagename, angular.extend({\n pxp_exp_id: xe.join('|'),\n pxp_trtmnt_id: xt.join('|'),\n treatments: exp_name.join('|'),\n loc_country: _locale.$locale.country,\n loc_lang: _locale.$locale.lang,\n exp_source: isElmoExperiment ? 'elmo' : 'pxp'\n }, params, logPayload));\n\n _logger.$logger.info('fpti_pxp_check', {\n from: 'PXP_CHECK',\n to: 'process_pxp_check',\n pxp_exp_id: xe.join(','),\n pxp_trtmnt_id: xt.join(','),\n exp_source: isElmoExperiment ? 'elmo' : 'pxp'\n });\n\n _core.$event.emit('pxp_res', pxpRes);\n}\n\nfunction $getPxpTreatments(id, params, logPayload) {\n var forceApiCall = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n var silent = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;\n var isElmoExperiment = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : false;\n\n\n return _core.$promise.run(function () {\n if (isElmoExperiment) {\n Object.assign(params, { isElmoExperiment: isElmoExperiment });\n }\n\n var pxp = $PXPModel.instance(_core.$util.buildURL(id, params), { pagename: id });\n var forceTreatments = _core.$util.param('pxp_' + id) || _core.$util.param('elmo_' + id);\n\n if (forceTreatments) {\n var treatments = forceTreatments.split(',').filter(Boolean);\n\n pxp.treatments = treatments.map(function (treatment_name) {\n return {\n treatment_name: treatment_name\n };\n });\n\n return pxp;\n }\n\n if (forceApiCall) {\n pxp.cached = false;\n\n return pxp.reload({\n params: params,\n silent: silent\n });\n }\n\n return pxp.retrieve({\n params: params,\n silent: silent,\n // Ignore all errors from this api, by passing transientError as true\n // Pxps are not critical calls, so they should fail silently without fallbacks (page reload / showing error page)\n transientError: true\n });\n }).then(function (pxp) {\n if (!pxp.cached) {\n logPxp(pxp, params, logPayload);\n }\n\n pxp.cached = true;\n\n return pxp;\n });\n}\n\nfunction $pxp(id, params, pattern) {\n var forceApiCall = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n var silent = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;\n var isElmoExperiment = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : false;\n\n if (!pattern) {\n pattern = params;\n params = {};\n }\n\n pattern = new RegExp('^' + pattern + '$');\n\n return exports.$getPxpTreatments(id, params, null, forceApiCall, silent, isElmoExperiment).then(function (experimentResponse) {\n var result = void 0;\n\n (experimentResponse.treatments || []).some(function (treatment) {\n if (!pattern.test(treatment.treatment_name)) {\n return false;\n }\n\n result = {\n treatment_name: treatment.treatment_name,\n factors: treatment.factors\n };\n\n return true;\n });\n\n return result;\n });\n}\n\nfunction $pxpMatch(id, params, patterns, logPayload) {\n if (!patterns) {\n patterns = params;\n params = {};\n }\n\n return exports.$getPxpTreatments(id, params, logPayload).then(function (pxpResponse) {\n var result = {};\n\n angular.forEach(patterns, function (pattern, name) {\n pattern = new RegExp('^' + pattern + '$');\n result[name] = false;\n\n (pxpResponse.treatments || []).some(function (treatment) {\n if (!pattern.test(treatment.treatment_name)) {\n return false;\n }\n\n result[name] = true;\n return true;\n });\n });\n\n return result;\n });\n}\n\nfunction $pxpFactors(id, params, pattern) {\n params.factors = 'true';\n return $pxp(id, params, pattern).then(function (pxpResponse) {\n var result = void 0;\n\n if (pxpResponse && pxpResponse.factors) {\n result = { treatment_name: pxpResponse.treatment_name };\n var pxpFactors = pxpResponse.factors;\n var length = pxpFactors.length;\n\n for (var i = 0; i < length; i++) {\n result[pxpFactors[i].name] = pxpFactors[i].value;\n }\n }\n\n return result;\n });\n}\n\nfunction $elmo(id, params, pattern) {\n var forceApiCall = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n var silent = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true;\n\n var isElmoExperiment = true;\n\n return $pxp(id, params, pattern, forceApiCall, silent, isElmoExperiment);\n}\n\nwindow.$pxp = $pxp;\nwindow.$elmo = $elmo;\n\nangular.value(\"$PXPModel\", $PXPModel);\nangular.value(\"$getPxpTreatments\", $getPxpTreatments);\nangular.value(\"$pxp\", $pxp);\nangular.value(\"$pxpMatch\", $pxpMatch);\nangular.value(\"$pxpFactors\", $pxpFactors);\nangular.value(\"$elmo\", $elmo);\n_logger.$logger;\n\n_core.$Model;\n\n_core.$Api;\n\n_core.$util;\n\n_core.$promise;\n\n_core.$event;\n\n_locale.$locale;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/squid/dist/paypal/pxp.js\n// module id = ../node_modules/squid/dist/paypal/pxp.js\n// module chunks = 0","/*** IMPORTS FROM imports-loader ***/\n(function() {\n\n!function(a,b){a.PAYPAL=a.PAYPAL||{},a.PAYPAL.unifiedLogin=b()}(this,function(){function a(a,b){var c,d={src:a,height:b.height||239,style:\"width: 100%;\",name:b.name||\"injectedUl\",frameborder:0,scrolling:b.scrolling||\"no\",title:b.title||\"PayPal\",sandbox:\"allow-same-origin allow-scripts allow-popups allow-forms allow-top-navigation\"},e=document.createElement(\"iframe\");b.hide&&(d.style=d.style+\"display: none;\");for(c in d)e.setAttribute(c,d[c]);return e}function b(a,b,c){var d,e=a||window.location.origin||window.location.protocol+\"//\"+window.location.host,f=e+(c||\"/signin/inject/\"),g=b?\"?\":\"\",h=0;if(!b)return f;for(d in b)h>0&&(g+=\"&\"),g=g+d+\"=\"+encodeURIComponent(b[d]),h+=1;return f+g}function c(a){var b,c=\"\";try{if(a.source.name!==q.name)return}catch(d){return}if(b=g(a.origin),!f(b))throw new Error(\"PostMessage iframe domain (\"+b+\"), must be a *.paypal.com domain\");if(c=a&&a.data,\"string\"==typeof c)try{c=JSON.parse(c)}catch(h){throw new Error(\"Invalid JSON string sent to onPostMessage handler: \"+c)}c.data&&\"resize\"===c.data.event?e(q,c.data.heightInPx):c.data&&\"htmlRendered\"===c.data.event?x=!0:!w&&p?p(c):w&&v.push(c)}function d(a){a&&\"resize\"===a.event?e(s,a.heightInPx):r(a)}function e(a,b){a.setAttribute(\"height\",b)}function f(a){var b=/\\.paypal\\.com$/gi;return b.test(a)}function g(a){if(a){var b=/^https?:\\/\\/(.*\\.paypal\\.com)(:[0-9]+)?$/gi,c=b.exec(a);return c&&c[1]}}function h(){var a;if(p){for(a=0;a 1) {\n // populate line2 from the last element\n line2 = array.pop();\n }\n line1 = array.join(COMMA);\n\n var displayLine1 = line1 + prefix(line2, COMMA);\n var displayLine2 = prefix(address.city) + prefix(address.state, COMMA) + prefix(address.postal_code, SPACE);\n var displayLine3 = prefix(address.country);\n\n return {\n line1: line1,\n line2: line2,\n city: address.city,\n state: address.state,\n postal_code: address.postal_code,\n country: address.country,\n displayLine1: displayLine1,\n displayLine2: displayLine2,\n displayLine3: displayLine3,\n dropDownAddress: displayLine1 + prefix(displayLine2, ' \\\\n ') + prefix(displayLine3, ' \\\\n ')\n };\n }\n\n function populateAddressFormFields(address) {\n $scope.address.line1 = address.line1;\n $scope.address.line2 = address.line2;\n $scope.address.city = address.city;\n $scope.address.state = address.state;\n $scope.address.postal_code = address.postal_code;\n $scope.address.neighborhood = address.neighborhood;\n }\n\n /**\n * Show error message and display the full-address fields\n */\n function populateErrorMessage() {\n var messages = [];\n\n messages.push($scope.locale.content.get('addressBook.lookupError'));\n $scope.lookupFailureMessage = {\n msgs: messages,\n type: 'warning'\n };\n $scope.isShowLookupFields = false;\n $scope.isLookupFailure = true;\n }\n\n function processLookupResult(list) {\n if (list.length > 1) {\n // Show drop-down list of all addresses\n $scope.isLookupSuccess = true;\n $scope.isShowLookupDropDown = true;\n $scope.lookupAddressList = list.map(function (addr) {\n return getAddress(addr);\n });\n } else if (list.length === 1) {\n // Show single address component\n $scope.isLookupSuccess = true;\n $scope.isShowLookupDropDown = false;\n\n var address = getAddress(list[0]);\n\n $scope.singleAddress = address;\n populateAddressFormFields(address);\n } else {\n populateErrorMessage();\n }\n }\n\n if ($scope.address) {\n $scope.lastPrefilledZip = $scope.address.postal_code;\n }\n\n $scope.prefill = function () {\n var cepPattern = /^(\\d{5}-\\d{3}|\\d{5}|\\d{8})$/;\n var first_name = void 0;\n var last_name = void 0;\n\n if ($scope.lastPrefilledZip === $scope.address.postal_code || !cepPattern.test($scope.address.postal_code)) {\n return;\n }\n\n if ($scope.isShipping) {\n first_name = $scope.address.first_name;\n last_name = $scope.address.last_name;\n }\n\n $scope.prefillAddress = new _index.$PrefillAddressModel({\n id: $scope.token,\n address: {\n country: $scope.address.country,\n postal_code: $scope.address.postal_code\n }\n });\n\n return $scope.prefillAddress.save({\n data: $scope.prefillAddress,\n success: function success(result) {\n if (result) {\n populateAddressFormFields(result);\n $scope.lastPrefilledZip = $scope.address.postal_code;\n if ($scope.isShipping) {\n $scope.address.first_name = first_name;\n $scope.address.last_name = last_name;\n }\n }\n }\n });\n };\n\n $scope.findAddress = function () {\n $scope.lookupAddress = _index.$PrefillAddressModel.create($scope.token, {\n address: {\n country: $scope.address.country,\n postal_code: $scope.address.postal_code,\n house_number: $scope.address.house_number,\n building_name: $scope.address.building_name\n }\n });\n\n if (document.querySelector('#lookupZip.ng-invalid')) {\n document.querySelector('#addressLookupFields').classList.add('validated');\n } else {\n $scope.isLookupProcessing = true;\n $scope.lookupAddress.save({\n data: $scope.lookupAddress,\n silent: true,\n success: function success(result) {\n processLookupResult(result);\n $scope.hideButtonHandler(false);\n },\n contingencies: {\n INTERNAL_ERROR: populateErrorMessage\n }\n });\n }\n };\n\n $scope.changeAddressDropDown = function () {\n populateAddressFormFields($scope.address.selectedAddress);\n };\n\n $scope.showFullAddress = function () {\n $scope.isShowLookupFields = false;\n $scope.hideButtonHandler(false);\n };\n\n /**\n * Pass an array of group names to retrieve the list of states\n * e.g. ['england', 'northernIreland', 'scotland', 'wales', 'ukOffshoreDependencies']\n */\n var stateNamesInGroup = [];\n\n $scope.retrieveStateNamesInGroup = function (groups) {\n if (stateNamesInGroup.length) {\n // Angular keeps watching for this method as its used in ng-model, hence return cached data.\n return stateNamesInGroup;\n }\n var content = _squid.$locale.content;\n\n angular.forEach(groups, function (group) {\n var groupName = content.common[group];\n var statesList = content[group];\n\n angular.forEach(statesList, function (value, key) {\n stateNamesInGroup.push({\n key: key,\n value: value,\n group: groupName\n });\n });\n });\n return stateNamesInGroup;\n };\n\n $scope.zipCodeBlur = function () {\n if ($scope.triggerZipCodeBlur) {\n _angular.$rootScope.$emit('zip_code_blur');\n }\n };\n\n $scope.zipCodeKeyPress = function (event) {\n if ($scope.triggerZipCodeKeyPress) {\n _angular.$rootScope.$emit('zip_code_keypress', { event: event });\n }\n };\n }]\n});\n\nangular.value(\"$xoAddAddressComponent\", $xoAddAddressComponent);\n_angular.$rootScope;\n\n_squid.$Component;\n\n_squid.$feature;\n\n_squid.$locale;\n\n_squid.$MetadataModel;\n\n_index.$PrefillAddressModel;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-address-components/src/add-address/directive.js\n// module id = ../node_modules/xo-address-components/src/add-address/directive.js\n// module chunks = 0","module.exports = \"
      \\n \\n
      \\n
      \\n \\n\\n
      \\n
      \\n
      \\n \\n \\n
      \\n
      \\n \\n \\n
      \\n
      \\n
      \\n \\n \\n
      \\n
      \\n \\n \\n
      \\n
      \\n
      \\n \\n \\n
      \\n
      \\n \\n \\n
      \\n
      \\n
      \\n
      \\n\\n
      \\n \\n
      \\n
      \\n
      \\n {{ content('addressBook.address') }}\\n
      \\n
      \\n \\n
      \\n
      \\n
      \\n \\n \\n
      \\n
      \\n \\n \\n
      \\n
      \\n \\n \\n
      \\n
      \\n
      \\n \\n \\n
      \\n
      \\n \\n \\n
      \\n
      \\n
      \\n \\n \\n
      \\n
      \\n
      \\n {{ content('addBillingAddress.lookupTitle') }}\\n {{ content('addressBook.enterFullAddress') }}\\n
      \\n
      \\n
      \\n \\n \\n
      \\n
      \\n
      \\n \\n \\n
      \\n
      \\n \\n \\n
      \\n \\n
      \\n
      \\n
      \\n {{ content('addressBook.address') }}\\n \\n {{ content('common.change') }}\\n \\n
      \\n
      \\n\\n \\n
      \\n
      \\n {{ singleAddress.displayLine1 }}
      \\n {{ singleAddress.displayLine2 }}
      \\n {{ singleAddress.displayLine3 }}\\n
      \\n
      \\n
      \\n \\n
      \\n \\n \\n
      \\n
      \\n
      \\n
      \\n \\n \\n
      \\n
      \\n
      \\n
      \\n \\n \\n
      \\n
      \\n
      \\n
      \\n \\n \\n
      \\n
      \\n
      \\n
      \\n \\n \\n
      \\n
      \\n \\n \\n
      \\n
      \\n
      \\n
      \\n \\n \\n
      \\n
      \\n
      \\n
      \\n \\n\\n
      \\n \\n
      \\n
      \\n
      \\n \\n \\n
      \\n
      \\n
      \\n
      \\n \\n \\n
      \\n
      \\n
      \\n
      \\n \\n \\n
      \\n
      \\n
      \\n
      \\n \\n \\n
      \\n
      \\n \\n \\n
      \\n
      \\n
      \\n \\n
      \\n
      \\n \\n
      \\n
      \\n \\n \\n
      \\n\\n
      \\n \\n \\n
      \\n\\n
      \\n \\n \\n
      \\n\\n
      \\n \\n \\n
      \\n
      \\n
      \\n
      \\n\\n
      \\n \\n \\n
      \\n\\n
      \\n \\n \\n
      \\n
      \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-address-components/src/add-address/template.html\n// module id = ../node_modules/xo-address-components/src/add-address/template.html\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$xoAddressDisplayComponent = undefined;\n\nvar _squid = require('squid');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nrequire('./styles');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar $xoAddressDisplayComponent = exports.$xoAddressDisplayComponent = _squid.$Component.extend('$xoAddressDisplayComponent', {\n tag: 'xo-address-display',\n template: _template2['default'],\n props: {\n address: {\n type: 'var',\n required: false\n },\n showPreferred: {\n type: 'str',\n required: false\n },\n countryCode: {\n type: 'var',\n required: false\n },\n displayFormattedAddr: {\n type: 'var',\n required: false\n }\n },\n actions: {\n formatAddress: function formatAddress(address) {\n var COMMA = ', ';\n var SPACE = ' ';\n\n function prefix(str, prefixStr) {\n if (str) {\n return (prefixStr ? prefixStr : '') + str;\n }\n return '';\n }\n\n var displayLine1 = (address.line1 ? address.line1 : '') + (address.line2 ? prefix(address.line2, COMMA) : '');\n var displayLine2 = (address.city ? prefix(address.city) : '') + (address.state ? prefix(address.state, COMMA) : '') + (address.postal_code ? prefix(address.postal_code, SPACE) : '');\n var displayLine3 = address.country ? prefix(address.country) : '';\n\n return {\n displayLine1: displayLine1,\n displayLine2: displayLine2,\n displayLine3: displayLine3\n };\n }\n },\n lifecycle: {\n populate: function populate() {\n var _this = this;\n\n var address = this.props.address || {};\n var countryCode = typeof this.props.countryCode === 'undefined' ? address.country || address.country_code : this.props.countryCode;\n\n this.isPreferred = this.props.showPreferred && address.preferred_address && (0, _squid.$feature)('preferredShipping', false, countryCode);\n if (this.props.displayFormattedAddr) {\n this.formattedAddr = this.actions.formatAddress(address);\n this.$watchCollection('props.address', function (newVal) {\n _this.formattedAddr = _this.actions.formatAddress(newVal);\n });\n }\n }\n }\n});\n\nangular.value(\"$xoAddressDisplayComponent\", $xoAddressDisplayComponent);\n_squid.$Component;\n\n_squid.$feature;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-address-components/src/address-display/directive.js\n// module id = ../node_modules/xo-address-components/src/address-display/directive.js\n// module chunks = 0","module.exports = \"
      \\n
      \\n {{props.address.full_address}}\\n {{content('countryList.'+props.address.country)}}\\n
      \\n\\n
      \\n {{formattedAddr.displayLine1}}
      \\n {{formattedAddr.displayLine2}}
      \\n {{formattedAddr.displayLine3}}\\n
      \\n\\n
      \\n \\n {{content('shippingAddress.preferred')}}\\n \\n
      \\n
      \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-address-components/src/address-display/template.html\n// module id = ../node_modules/xo-address-components/src/address-display/template.html\n// module chunks = 0","\n\nvar _angular = require('angular');\n\nvar _squid = require('squid');\n\nvar _index = require('xo-models/src/address/index');\n\nrequire('xo-page-components/src/aside-header/directive');\n\nrequire('xo-tray-height/dist/directive');\n\nrequire('./styles');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nangular.module().directive('xoAddressNormalization', function () {\n return {\n template: _template2['default'],\n scope: {\n id: '=?',\n address: '=?',\n doneFn: '=?',\n sidebar: '=?',\n hideBackButton: '=?'\n },\n\n controller: ['$scope', function ($scope) {\n _squid.$util.assert($scope.address, 'Original Address cannot be empty');\n\n $scope.showNormalization = false;\n\n var normalize = (0, _squid.$feature)('addressNormalization', false, $scope.address.country);\n if (!normalize) {\n $scope.doneFn($scope.address, false);\n return;\n }\n\n var userEnteredAddress;\n var addrFormat = (0, _squid.$feature)('FormatAddressForNormalization', $scope.address.country, $scope.address.country);\n\n $scope.addressSelected = 'normalizedAddress';\n $scope.transitionName = 'address_normalization_normalizedAddress';\n\n // Brazil specific format\n if (addrFormat === 'AddressBR') {\n userEnteredAddress = angular.fromJson(angular.toJson($scope.address));\n userEnteredAddress.line1 = $scope.address.line1 + ' ' + $scope.address.streetNumber;\n userEnteredAddress.line2 = $scope.address.neighborhood;\n }\n\n $scope.servAddress = userEnteredAddress ? userEnteredAddress : $scope.address;\n $scope.servAddress.normalization_status = 'UNNORMALIZED_USER_PREFERRED';\n\n $scope.addressNormalization = new _index.$AddressNormalizationModel({\n id: $scope.id,\n address: $scope.servAddress\n });\n\n function centerLightBox() {\n var element = $('#lbox');\n if (!element.length) {\n return;\n }\n\n var windowElement = $(window);\n var lboxContainerElem = $('#lboxContainer');\n element.css('top', Math.max(0, (windowElement.height() - element.outerHeight()) / 2) + 'px');\n element.css('width', '65%');\n var computedLeft = (windowElement.width() - element.outerWidth()) / 2;\n var leftBound = lboxContainerElem.offset().left + lboxContainerElem.width() * 0.1;\n var elementLeft = computedLeft < leftBound ? leftBound : computedLeft;\n if (computedLeft < leftBound) {\n element.css('width', lboxContainerElem.width() * 0.8);\n }\n element.css('left', Math.max(0, elementLeft) + 'px');\n return element;\n }\n\n function trinityResponseCallback() {\n $scope.showNormalization = true;\n\n // default behavior of $timeout with no 2nd param is to wait for dom to finish rendering before executing callback\n (0, _angular.$timeout)(function () {\n centerLightBox();\n $(window).resize(centerLightBox);\n });\n }\n\n $scope.addressNormalization.save({\n data: $scope.addressNormalization,\n\n contingencies: {\n VALIDATION_ERROR: function VALIDATION_ERROR() {\n trinityResponseCallback();\n $scope.transitionName = 'address_normalization_enteredAddress';\n return;\n }\n },\n\n success: function success(result) {\n trinityResponseCallback();\n if (result === false) {\n // trinity doesn't find any match\n $scope.transitionName = 'address_normalization_enteredAddress';\n return;\n }\n $scope.normalizedAddress = result;\n $scope.normalizedAddress.normalization_status = 'NORMALIZED';\n\n if (addrFormat === 'AddressBR') {\n $scope.normalizedAddress.line1 = $scope.normalizedAddress.streetName + ' ' + $scope.normalizedAddress.streetNumber;\n $scope.normalizedAddress.line2 = $scope.normalizedAddress.neighborhood;\n }\n\n // if the two addresses equal, no need to show the panel\n if ($scope.isEqual($scope.normalizedAddress, $scope.servAddress)) {\n if ($scope.servAddress.preferred_address) {\n $scope.normalizedAddress.preferred_address = true;\n }\n\n if (addrFormat === 'AddressBR' && $scope.address.line2) {\n $scope.normalizedAddress.line1 = $scope.normalizedAddress.line1 + ' ' + $scope.address.line2;\n }\n $scope.callback($scope.normalizedAddress, false);\n } else if (addrFormat === 'AddressBR' && $scope.address.line2) {\n $scope.normalizedAddress.line1 = $scope.normalizedAddress.line1 + ' ' + $scope.address.line2;\n }\n },\n\n error: trinityResponseCallback\n });\n\n // make space and case insensitive. sub empty vals for undefined.\n function desensitizedAddress(addr) {\n for (var key in addr) {\n var val = addr[key];\n if (addr.hasOwnProperty(key)) {\n if (val && val.length) {\n addr[key] = val.trim().toLowerCase();\n } else {\n addr[key] = undefined;\n }\n }\n }\n return addr;\n }\n\n // check if the two address are the same\n $scope.isEqual = function (address1, address2) {\n var addressOne = desensitizedAddress(JSON.parse(JSON.stringify(address1)));\n var addressTwo = desensitizedAddress(JSON.parse(JSON.stringify(address2)));\n\n if (!addressOne || !addressTwo) {\n return false;\n }\n\n return addressOne.line1 === addressTwo.line1 && addressOne.line2 === addressTwo.line2 && addressOne.city === addressTwo.city && addressOne.state === addressTwo.state && addressOne.postal_code === addressTwo.postal_code && addressOne.country === addressTwo.country;\n };\n\n // Australia displays address line2 first\n $scope.isLine2First = function () {\n return $scope.address.country === 'AU';\n };\n\n $scope.onBack = function () {\n $scope.callback($scope.address, true);\n };\n\n $scope.selection = function (value) {\n $scope.transitionName = 'address_normalization_' + value;\n };\n\n $scope.onContinue = function () {\n $scope.addressSelected = this.addressNormalizationForm.addressSelected;\n\n if ($scope.addressSelected && $scope.addressSelected.$modelValue === 'normalizedAddress') {\n if ($scope.servAddress.preferred_address) {\n $scope.normalizedAddress.preferred_address = true;\n }\n $scope.callback($scope.normalizedAddress, false);\n } else {\n $scope.servAddress.normalization_status = 'UNNORMALIZED_USER_PREFERRED';\n if (addrFormat === 'AddressBR' && $scope.address.line2) {\n $scope.servAddress.line1 = $scope.servAddress.line1 + ' ' + $scope.address.line2;\n }\n $scope.callback($scope.servAddress, false);\n }\n };\n\n $scope.callback = function (address, isBack) {\n $scope.doneFn(address, isBack);\n };\n }]\n };\n});\n\n_angular.$timeout;\n\n_squid.$feature;\n\n_squid.$util;\n\n_index.$AddressNormalizationModel;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-address-components/src/address-normalization/directive.js\n// module id = ../node_modules/xo-address-components/src/address-normalization/directive.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$AddressNormalizationRoute = undefined;\n\nvar _squid = require('squid');\n\nrequire('./directive');\n\nvar $AddressNormalizationRoute = exports.$AddressNormalizationRoute = _squid.$ComponentRoute.extend('AddressNormalizationRoute', {\n name: 'addressNormalization',\n titleContent: 'addressNormalization.addressmatch',\n directive: 'xo-address-normalization',\n trackingData: {\n fptiState: 'address_normalization',\n buzname: {\n 'fullpage': {\n 'pagename': '%::address_normalization',\n 'pagename2': '%::address_normalization:member:hermes:',\n 'version': 'member:%:'\n }\n }\n },\n loginRequired: true,\n\n children: []\n});\n\nangular.value(\"$AddressNormalizationRoute\", $AddressNormalizationRoute);\n_squid.$ComponentRoute;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-address-components/src/address-normalization/route.js\n// module id = ../node_modules/xo-address-components/src/address-normalization/route.js\n// module chunks = 0","module.exports = \"
      \\n \\n
      \\n
      \\n
      \\n

      {{ content('addressNormalization.title') }}

      \\n

      {{ content('addressNormalization.intro') }}

      \\n
      \\n

      \\n \\n
      \\n
      \\n

      \\n\\n \\n
      \\n
      \\n
      \\n

      {{ content('addressNormalization.noaddressmatchTitle') }}

      \\n

      {{ content('addressNormalization.noaddressmatchMsg') }}

      \\n \\n
      \\n

      {{ content('addressNormalization.addressyouenter') }}

      \\n
      \\n
      \\n {{servAddress.line2}} {{servAddress.line1}},\\n
      \\n
      \\n
      {{servAddress.line1}}, {{address.line2}}, {{servAddress.line2}}
      \\n
      {{servAddress.line1}}, {{servAddress.line2}}
      \\n
      \\n
      \\n {{servAddress.city}}, {{servAddress.state}}\\n {{servAddress.postal_code}}, {{content('countryList.'+servAddress.country)}}\\n
      \\n
      \\n
      \\n
      \\n
      \\n \\n \\n
      \\n
      \\n \\n
      \\n
      \\n
      \\n
      \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-address-components/src/address-normalization/template.html\n// module id = ../node_modules/xo-address-components/src/address-normalization/template.html\n// module chunks = 0","\n\nvar _angular = require('angular');\n\nvar _angular2 = _interopRequireDefault(_angular);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n(function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n})(window.angular);\n\n_angular2['default'].module('beaver.level', []).factory('$logLevel', function () {\n return {\n INFO: 'info',\n DEBUG: 'debug',\n ERROR: 'error',\n WARN: 'warn',\n ALERT: 'alert'\n };\n}).factory('$consoleLogLevel', function () {\n return {\n info: 'info',\n debug: 'debug',\n error: 'error',\n warn: 'warn',\n alert: 'info'\n };\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-beaver/dist/level.js\n// module id = ../node_modules/xo-beaver/dist/level.js\n// module chunks = 0","\n\nvar _angular = require('angular');\n\nvar _angular2 = _interopRequireDefault(_angular);\n\nvar _level = require('./level');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n/* eslint-disable angular/di */\n\n(function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n})(window.angular);\n\n_angular2['default'].module().factory('$Logger', function () {\n var logger = {};\n var HERMES_DEV_COOKIE = 'hermesdev';\n\n _angular2['default'].forEach(_level.$logLevel, function (level) {\n logger[level] = function (event, payload, settings) {\n return this.log(level, event, payload, settings);\n };\n });\n\n var hostname = _angular.$window.location && _angular.$window.location.hostname || '';\n var uniqueEvents = [];\n\n _angular2['default'].extend(logger, {\n autoLog: [_level.$logLevel.WARNING, _level.$logLevel.ERROR],\n flushInterval: 10 * 60 * 1000,\n heartbeatInterval: 5000,\n sizeLimit: 500,\n debounceInterval: 10,\n uri: '/api/log',\n rootTxnUri: '/api/log/crt',\n hearbeatMaxThreshold: 50,\n deploy: {\n isLocal: function isLocal() {\n return hostname === 'localhost' || hostname === 'localhost.paypal.com';\n },\n\n isStage: function isStage() {\n return Boolean(hostname.match(/^.*\\.qa\\.paypal\\.com$/));\n },\n\n isLive: function isLive() {\n return hostname === 'www.paypal.com';\n }\n },\n\n init: function init() {\n var self = this;\n\n this.buffer = [];\n\n var previousBeforeUnloadHandler = _angular.$window.onbeforeunload;\n\n _angular.$window.onbeforeunload = function (event) {\n if (self.isDone) {\n return;\n }\n\n self.info('window_beforeunload');\n\n if (previousBeforeUnloadHandler) {\n return previousBeforeUnloadHandler.apply(this, arguments);\n }\n };\n\n var previousUnloadHandler = _angular.$window.onunload;\n\n _angular.$window.onunload = function (event) {\n\n if (self.isDone) {\n return;\n }\n\n self.info('window_unload');\n self._flush();\n\n self.done();\n\n if (previousUnloadHandler) {\n return previousUnloadHandler.apply(this, arguments);\n }\n };\n\n this.heartbeat();\n this.daemon();\n },\n\n heartbeat: function heartbeat() {\n var self = this;\n\n if (!window.enablePerformance) {\n return;\n }\n\n function timestamp() {\n var perf = window.performance;\n\n return parseInt(perf.now() - (perf.timing.connectEnd - perf.timing.navigationStart), 10);\n }\n\n var howBusy = {\n lastSampledTime: timestamp(),\n lastLag: 0,\n maxLag: 0,\n dampendedLag: 0\n };\n\n var count = 0;\n\n (0, _angular.$interval)(function () {\n\n if (!self.buffer.length || self.buffer[self.buffer.length - 1].event !== 'heartbeat') {\n count = 0;\n }\n\n if (!self.buffer.length || count > self.hearbeatMaxThreshold) {\n return;\n }\n\n count += 1;\n\n var payload = {\n count: count\n };\n\n var now = timestamp();\n\n howBusy.lastLag = now - howBusy.lastSampledTime - self.heartbeatInterval;\n howBusy.maxLag = howBusy.lastLag > howBusy.maxLag ? howBusy.lastLag : howBusy.maxLag;\n howBusy.dampendedLag = (howBusy.lastLag + howBusy.dampendedLag * 2) / 3;\n howBusy.lastSampledTime = now;\n\n payload.lastLag = howBusy.lastLag.toFixed(4);\n payload.maxLag = howBusy.maxLag.toFixed(4);\n payload.dampendedLag = howBusy.dampendedLag.toFixed(4);\n payload.lastSampledTime = howBusy.lastSampledTime.toFixed(4);\n\n if (howBusy.lastLag > 10000) {\n self.info('toobusy', {}, {\n noConsole: true,\n unique: true\n });\n }\n\n self.info('heartbeat', payload, {\n noConsole: true\n });\n }, this.heartbeatInterval);\n },\n\n done: function done() {\n this.flush(true);\n this.isDone = true;\n },\n\n addPerformanceData: function addPerformanceData(payload) {\n\n if (window.enablePerformance) {\n var performance = window.performance;\n var timing = window.performance.timing || {};\n var now = performance.now();\n\n if (window.clientStartTime && _angular2['default'].isUndefined(payload.client_elapsed)) {\n payload.client_elapsed = parseInt(now - window.clientStartTime, 10);\n }\n\n if (timing.connectEnd && timing.navigationStart && _angular2['default'].isUndefined(payload.req_elapsed)) {\n payload.req_elapsed = parseInt(now - (timing.connectEnd - timing.navigationStart), 10);\n }\n }\n },\n\n addLocaleData: function addLocaleData(payload) {\n\n var context = {};\n\n try {\n context = _angular.$injector.get('$metaBuilder').buildContext();\n } catch (err) {\n return; // Continue without adding locale data\n }\n if (context.locale && context.locale.country) {\n payload.site_cntry = context.locale.country;\n }\n },\n\n /* jslint maxcomplexity: false */\n log: function log(level, event, payload, settings) {\n var self = this;\n\n payload = payload || {};\n\n if (_angular2['default'].isArray(payload) || !_angular2['default'].isObject(payload)) {\n payload = {\n payload: payload\n };\n }\n settings = settings || {};\n\n if (settings.unique) {\n var hash = event + ':' + _angular2['default'].toJson(payload);\n\n if (uniqueEvents.indexOf(hash) > -1) {\n return self;\n }\n uniqueEvents.push(hash);\n }\n\n payload.pageID = window.meta && window.meta.pageID;\n\n this.addPerformanceData(payload);\n this.addLocaleData(payload);\n\n self.print(level, event, payload, settings);\n\n if (this.buffer.length >= this.sizeLimit) {\n if (this.buffer.length === this.sizeLimit) {\n return self.enqueue('warn', 'logger_max_buffer_length');\n }\n return self;\n }\n\n return self.enqueue(level, event, payload, settings);\n },\n\n getTimestamp: function getTimestamp() {\n var now = Date.now();\n\n return window.logOffset ? window.logOffset + now : now;\n },\n\n enqueue: function enqueue(level, event, payload, settings) {\n payload = payload || {};\n settings = settings || {};\n\n var data = {\n level: level,\n event: event,\n timestamp: this.getTimestamp(),\n payload: payload\n };\n\n this.buffer.push(data);\n\n // If the log level is classified as autolog, then flush the data\n if (this.autoLog.indexOf(level) > -1) {\n this.flush();\n }\n\n return this;\n },\n\n shouldPrintLogsToConsole: function shouldPrintLogsToConsole(settings) {\n\n if (settings.noConsole) {\n return false;\n }\n\n if (window.meta && window.meta.corp) {\n return true;\n }\n\n if (this.deploy.isLocal() || this.deploy.isStage()) {\n return true;\n }\n\n var cookies = window.cookies || {};\n\n if (cookies[HERMES_DEV_COOKIE] && cookies[HERMES_DEV_COOKIE] === '1') {\n return true;\n }\n\n return false;\n },\n\n print: function print(level, event, payload, settings) {\n\n if (!this.shouldPrintLogsToConsole(settings)) {\n return;\n }\n\n var args = [event];\n\n if (payload) {\n args.push(payload);\n\n if (payload.stack || payload.error || payload.warning) {\n args.push('\\n\\n', payload.stack || payload.error || payload.warning);\n }\n }\n\n _angular.$log[_level.$consoleLogLevel[level] || 'info'].apply(_angular.$log, args);\n },\n\n flush: function flush(immediate) {\n var self = this;\n\n if (!this.buffer.length) {\n return _angular.$q.when();\n }\n\n if (immediate) {\n return _angular.$q.when(this._flush());\n }\n\n if (self.debouncer_timeout) {\n _angular.$timeout.cancel(self.debouncer_timeout);\n }\n\n self.debouncer_timeout = (0, _angular.$timeout)(function () {\n\n var resolver = self.debouncer_resolver;\n\n delete self.debouncer_promise;\n delete self.debouncer_resolver;\n delete self.debouncer_timeout;\n\n self._flush().then(function () {\n resolver();\n });\n }, this.debounceInterval);\n\n self.debouncer_promise = self.debouncer_promise || (0, _angular.$q)(function (resolver) {\n self.debouncer_resolver = resolver;\n });\n\n return self.debouncer_promise;\n },\n\n _flush: function _flush() {\n var self = this;\n\n if (!self.buffer.length) {\n return _angular.$q.when();\n }\n\n var meta = {};\n\n try {\n meta = _angular.$injector.get('$metaBuilder').build();\n } catch (err) {\n // @TODO - Log error\n }\n\n var req = this.ajax('post', _angular.$window.meta.logURL || _angular.$window.config.urls.baseUrl + this.uri, {\n data: {\n events: self.buffer\n },\n meta: meta\n });\n\n self.buffer = [];\n\n return req;\n },\n\n ajax: function ajax(method, url, json) {\n return (0, _angular.$q)(function (resolve) {\n var XRequest = window.XMLHttpRequest || ActiveXObject; // eslint-disable-line no-undef, block-scoped-var\n var req = new XRequest('MSXML2.XMLHTTP.3.0');\n var logAppName = _angular.$window.meta.logAppName;\n\n req.open(method.toUpperCase(), url);\n\n req.setRequestHeader('X-Requested-With', 'XMLHttpRequest');\n req.setRequestHeader('Content-type', 'application/json');\n\n if (logAppName) {\n req.setRequestHeader('x-app-name', logAppName);\n }\n\n req.onreadystatechange = function () {\n if (req.readyState > 3) {\n resolve();\n }\n };\n req.send(_angular2['default'].toJson(json).replace(/&/g, '%26')); // eslint-disable-line angular/ng_json_functions\n });\n },\n\n daemon: function daemon() {\n this.stop();\n\n var self = this;\n\n this.timer = (0, _angular.$interval)(function () {\n self.flush();\n }, this.flushInterval);\n },\n\n stop: function stop() {\n if (this.timer) {\n _angular.$interval.cancel(this.timer);\n }\n },\n\n createCalRootTxn: function createCalRootTxn(data, txnName) {\n if (data !== null && _angular2['default'].isObject(data)) {\n var rootTxnData = { 'data': {}, 'transactionName': '' };\n var url = '' + _angular.$window.config.urls.baseUrl + this.rootTxnUri;\n if (_angular2['default'].isString(txnName)) {\n rootTxnData.transactionName = txnName;\n }\n Object.assign(rootTxnData.data, data);\n this.ajax('post', url, rootTxnData);\n }\n }\n });\n\n function Logger(val) {\n _angular2['default'].extend(this, val);\n this.init();\n }\n\n Logger.prototype = logger;\n Logger.prototype.constructor = Logger;\n\n return Logger;\n}).factory('$logger', ['$Logger', function ($Logger) {\n return new $Logger();\n}]).run(['$logger', function ($logger) {\n _angular2['default'].forEach(window.beaconQueue, function (payload) {\n $logger.log(payload.level, payload.event, payload);\n });\n\n window.beacon = function (level, events, payload) {\n _angular2['default'].forEach(events, function (event) {\n $logger.log(level, event, payload);\n });\n };\n}]);\n\n_level.$logLevel;\n\n_level.$consoleLogLevel;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-beaver/dist/logger.js\n// module id = ../node_modules/xo-beaver/dist/logger.js\n// module chunks = 0","\n\nvar _squid = require('squid');\n\nvar _angular = require('angular');\n\nvar _angular2 = _interopRequireDefault(_angular);\n\nvar _logger = require('xo-beaver/dist/logger');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n(function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n})(window.angular);\n\n_angular2['default'].module().factory('$DeviceInfo', function () {\n var userAgent = _angular.$window.navigator.userAgent;\n var standalone = _angular.$window.navigator.standalone;\n var DEVICE_PATTERN = /iPod|iPhone|iPad|Android|BlackBerry|BB10|Palm|CriOS|IEMobile|Windows Phone OS|webOS|Symbian|silk|Kindle|Opera Mini|mobile/i;\n var TABLET_PATTERN = /ip(a|ro)d|silk|xoom|playbook|tablet|kindle|Nexus 7|GT-P10|SC-01C|SHW-M180S|SM-T320|SGH-T849|SCH-I800|SHW-M180L|SPH-P100|SGH-I987|zt180|HTC( Flyer|_Flyer)|Sprint ATP51|ViewPad7|pandigital(sprnova|nova)|Ideos S7|Dell Streak 7|Advent Vega|A101IT|A70BHT|MID7015|Next2|nook|FOLIO|MB511.*RUTEM|Mac OS.*Silk/i;\n var IOS_PATTERN = /iP(hone|od|ad)/i;\n\n function getIntegrationContext(integrationKey) {\n // additonal context sent via partners in regards to integration\n var integrationContext = _squid.$meta.integrationCTX || {};\n\n return integrationContext[integrationKey];\n }\n\n // Supports iOS and Android. Updated / more accurate method of detecting webviews\n function isWebView() {\n var logEnabled = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n var ua = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : userAgent;\n\n var ios = /iphone|ipod|ipad/i.test(ua);\n var android = /Android/i.test(ua);\n\n if (ios) {\n // Unfortunately no perfectly reliable way, this will detect some 3rd party browsers as ui webview\n // Major browsers: chrome, safari, firefox, uc browser, puffin, are detected reliably.\n var ios_uiwebview = /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(ua);\n\n if (!standalone && ios_uiwebview && !isSafariViewController()) {\n // uiwebview\n logWebView('iOS');\n return true;\n }\n } else if (android) {\n // not iOS, Android platform handling\n // Whitelist for x-requested-with header values for web view detection\n var allowedXRequestedWithRegexMap = {\n ajax: /XMLHttpRequest/i,\n baiduBrowser: /com.baidu.browser.inter/i,\n operaMini: /com.opera.mini.native/i,\n maxthon: /com.mx.browser/i,\n litterPenguinBrowser: /com.explore.web.browser/i\n };\n var xRequestedWithHeaderVal = _squid.$meta.requestHeaders['x-requested-with'];\n\n if (xRequestedWithHeaderVal) {\n // check if x-requested-with header val is in whitelist\n for (var key in allowedXRequestedWithRegexMap) {\n if (allowedXRequestedWithRegexMap.hasOwnProperty(key)) {\n if (allowedXRequestedWithRegexMap[key].test(xRequestedWithHeaderVal)) {\n return false;\n }\n }\n }\n logWebView('Android');\n return true;\n }\n }\n\n return false;\n\n function logWebView(device) {\n if (!logEnabled) {\n return;\n }\n // cal log\n _logger.$logger.info('WebView :: ' + device);\n }\n }\n\n /**\n * Check if the given the user-agent string is belongs to a device.\n */\n function isDevice() {\n if (_angular2['default'].isString(userAgent)) {\n return DEVICE_PATTERN.test(userAgent) || TABLET_PATTERN.test(userAgent);\n }\n\n return false;\n }\n\n /**\n * Check if the given the user-agent string is belongs to a tablet.\n */\n function isTablet() {\n if (_angular2['default'].isString(userAgent)) {\n return TABLET_PATTERN.test(userAgent);\n }\n\n return false;\n }\n\n /**\n * Check if the given the user-agent string is belongs to a mobile\n */\n function isMobile() {\n return isDevice(userAgent) && !isTablet(userAgent);\n }\n\n /**\n * Get the mobile platform value given the user-agent string.\n */\n function getDevicePlatform() {\n if (_angular2['default'].isString(userAgent)) {\n var matched = userAgent.match(/iPod|iPhone|iPad|Android|BlackBerry|Windows Phone OS|webOS|Symbian|mobile/g);\n\n if (matched && matched.length > 0) {\n return matched[0];\n }\n }\n }\n\n /**\n * Check if the give user agent is from an app.\n */\n function isApp(uaString) {\n userAgent = uaString || userAgent;\n\n if (DEVICE_PATTERN.test(userAgent) || TABLET_PATTERN.test(userAgent)) {\n if (getDevicePlatform(userAgent) === 'Android') {\n return (/Version\\/\\d.\\d/i.test(userAgent)\n );\n }\n\n return (/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)|PLAYSTATION|iPadApp/i.test(userAgent)\n );\n }\n\n return false;\n }\n\n function isSafariViewController() {\n if (getIntegrationContext('brainTreeIntegration') === 'SFVC') {\n return true;\n }\n if (_angular2['default'].isString(userAgent)) {\n var ios = /iphone|ipod|ipad/i.test(userAgent);\n\n return ios && _angular.$window.indexedDB && isApp();\n } else {\n return false;\n }\n }\n\n /**\n * Get the device capabilities\n */\n function getCapabilities() {\n var capabilities = {};\n var device = DEVICE_PATTERN.test(userAgent);\n var tablet = TABLET_PATTERN.test(userAgent);\n var app = isApp(userAgent);\n\n if (_angular2['default'].isString(userAgent)) {\n capabilities.isWireless = device || tablet;\n capabilities.isTablet = tablet;\n capabilities.isMobile = device && !tablet;\n capabilities.isDesktop = !device;\n capabilities.isApp = app;\n }\n return capabilities;\n }\n\n /**\n * Get various AppIntegrationType\n */\n function getAppIntegrationType() {\n var app_int_type = void 0;\n\n if (isDevice()) {\n if (isApp()) {\n if (isSafariViewController()) {\n app_int_type = 'SFVC';\n } else {\n app_int_type = 'WebView';\n }\n } else {\n app_int_type = 'Browser';\n }\n }\n return app_int_type;\n }\n\n function isSafariiOSBrowserView() {\n var ua = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : userAgent;\n\n var ios = IOS_PATTERN.test(ua);\n var safari = /safari/i.test(ua);\n var isIOSApp = /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(ua);\n var isChromeOnIOS = /(.*?CriOS)/i.test(ua);\n var isFirefoxOnIOS = /(.*?FxiOS)/i.test(ua);\n var isSafariBrowserOnly = safari && !isChromeOnIOS && !isFirefoxOnIOS;\n\n return ios && !standalone && isSafariBrowserOnly && !isIOSApp;\n }\n\n function getiOSVersion() {\n var ua = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : userAgent;\n\n var ios = IOS_PATTERN.test(ua);\n\n if (ios) {\n var version = ua.match(/OS (\\d+)_(\\d+)/);\n return [parseInt(version[1], 10), parseInt(version[2], 10)];\n }\n return false;\n }\n\n return {\n isDevice: isDevice,\n isTablet: isTablet,\n isMobile: isMobile,\n isApp: isApp,\n isSafariViewController: isSafariViewController,\n getCapabilities: getCapabilities,\n getAppIntegrationType: getAppIntegrationType,\n isWebView: isWebView,\n isSafariiOSBrowserView: isSafariiOSBrowserView,\n getiOSVersion: getiOSVersion\n };\n});\n\n_squid.$meta;\n\n_logger.$logger;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-device-info/dist/index.js\n// module id = ../node_modules/xo-device-info/dist/index.js\n// module chunks = 0","\n\nvar _squid = require('squid');\n\nrequire('xo-ui-components/src/directionality/directive');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nangular.module().directive('dobValidation', function () {\n return {\n require: 'ngModel',\n link: function link(scope, element, attr, ctrl) {\n\n // init scope vars\n // age - above 18 yrs\n // validDate - months <= 12 and day <= 31 or based on month\n scope.isValidDate = true;\n scope.isValidAge = true;\n scope.isValid = false;\n scope.dobToolTip = 'hide';\n\n function isValidDate(year, month, day) {\n // dates like 02/31 33/33 should return false\n var date = new Date(year, month, day);\n\n var fullYear = date.getFullYear();\n var dateMonth = date.getMonth();\n var dateDay = date.getDate();\n\n // If birth year is in the future or before 1900, dob is invalid\n var now = new Date();\n if (fullYear > now.getFullYear() || fullYear < 1900) {\n return false;\n }\n\n if (fullYear === parseInt(year, 10) && dateMonth === parseInt(month, 10) && dateDay === parseInt(day, 10)) {\n return true;\n }\n return false;\n }\n\n function isOfLegalAge(birthDate) {\n // user should be of exact 18 years of age or older\n var tempDate = new Date(birthDate.getFullYear() + 18, birthDate.getMonth(), birthDate.getDate());\n return tempDate <= new Date().setHours(0, 0, 0, 0);\n }\n\n /**\n * Parses input value to set corresponding day, month, year values for scope\n * @param {String} inputVal - the value to be parsed\n */\n function parseDob(inputVal) {\n var day;\n var month;\n var year;\n\n var sep = scope.dateSeparator();\n var partsArr = inputVal.split(sep);\n var first = partsArr[0];\n var sec = partsArr[1];\n var third = partsArr[2];\n\n if (scope.dateFormat() === 'DMY') {\n day = first;\n month = sec;\n year = third;\n } else if (scope.dateFormat() === 'YMD') {\n year = first;\n month = sec;\n day = third;\n } else {\n month = first;\n day = sec;\n year = third;\n }\n\n // Validate only on entering the last digit of the dob\n var dayLen = ('' + day).length;\n var monLen = ('' + month).length;\n var yrLen = ('' + year).length;\n var validDay = dayLen === 1 || dayLen === 2;\n var validMon = monLen === 1 || monLen === 2;\n var validYr = yrLen === 4;\n var requirement = validDay && validMon && validYr;\n\n if (requirement) {\n scope.isValidDate = isValidDate(year, month - 1, day);\n\n scope.isValidAge = isOfLegalAge(new Date(year, month - 1, day));\n scope.isValid = scope.isValidDate && scope.isValidAge;\n scope.dobToolTip = scope.isValid ? 'hide' : 'show';\n\n scope.user.dob_day = day;\n scope.user.dob_month = month;\n scope.user.dob_year = year;\n } else {\n scope.isValid = false;\n }\n\n ctrl.$setValidity('dobText', scope.isValid);\n\n return inputVal;\n }\n\n /**\n * Validates the inputted DOB value\n * @param {string} ngModelValue - the to-be mutated input value\n * onComplete for mask listener - called when user copy/pastes DOB into the field\n */\n scope.dobValidator = function dobValidator(ngModelValue) {\n var input = element;\n var dateMask = scope.dateMask();\n input.mask(dateMask, {\n translation: {\n 'Z': {\n pattern: /[0-9]/, optional: true\n },\n '0': {\n pattern: /[0-9]/, optional: false\n }\n },\n onComplete: function onComplete(val) {\n ngModelValue = val;\n return parseDob(ngModelValue);\n }\n });\n\n return parseDob(ngModelValue);\n };\n\n scope.dobTester = function dobTester(val) {\n return parseDob(val);\n };\n\n ctrl.$parsers.push(scope.dobValidator);\n }\n };\n}).directive('xoDobInput', function () {\n return {\n template: _template2['default'],\n restrict: 'E',\n scope: {\n user: '=?'\n },\n controller: ['$scope', function ($scope) {\n\n // To support additional date separators, simply add separator to getDateSeparators function\n var DateManager = {\n dateSeparator: undefined,\n dateFormat: undefined,\n griffinDateEntry: undefined,\n\n _init_: function _init_() {\n this.griffinDateEntry = _squid.$locale.metadata.dateEntry;\n this.dateSeparator = this.getDateSeparator(this.griffinDateEntry);\n this.dateFormat = undefined;\n this.dateFormat = this.getDateFormat();\n this.dateRegex = this.getDateRegex();\n // dob validator depends on dateFormat function in $scope, so context is bound.\n $scope.dateFormat = this.getDateFormat.bind(this);\n $scope.dateSeparator = this.getDateSeparator.bind(this, this.griffinDateEntry);\n $scope.dateMask = this.getDateMask.bind(this, this.dateSeparator);\n this.getDobNumericCheck();\n },\n getDateFormat: function getDateFormat() {\n // cache date format value, must be unset on init\n if (this.dateFormat) {\n return this.dateFormat;\n }\n\n var griffinDateFormat = _squid.$locale.metadata.dateFormat.toUpperCase();\n var dateFormatComponents = griffinDateFormat.split(this.dateSeparator);\n\n // Trim the white space in griffin dateFormat\n // Eg: SK dateFormat is MM. DD. YYYY - here we need to strip spaces\n dateFormatComponents = dateFormatComponents.map(function (str) {\n return str.trim();\n });\n\n var dIdx = dateFormatComponents.indexOf('DD'),\n mIdx = dateFormatComponents.indexOf('MM');\n\n var formatComponentMap = this.getFormatComponentIdxMappings();\n if (formatComponentMap['DMY'].day === dIdx && formatComponentMap['DMY'].month === mIdx) {\n return 'DMY';\n } else if (formatComponentMap['MDY'].day === dIdx && formatComponentMap['MDY'].month === mIdx) {\n return 'MDY';\n }\n return 'YMD';\n },\n setDobTextPlaceHolder: function setDobTextPlaceHolder() {\n $scope.dobTextPlaceholder = this.griffinDateEntry.toUpperCase();\n },\n dobTextKeyupHandler: function dobTextKeyupHandler(event) {\n this.updateDobBindings(true);\n },\n getDobNumericCheck: function getDobNumericCheck() {\n return (0, _squid.$pxp)('xo_xoon_numeric_keypad_expirydob', { 'ctx.COUNTRY': _squid.$locale.country }, 'xo_xoon_numeric_keypad_expirydob_test').then(function (result) {\n if (result) {\n $scope.dobTextInputType = 'tel';\n }\n });\n },\n /**\n * Absolutely makes sure that dob input doesn't contain bad characters.\n * Called on any chatacter input AND on locale change.\n */\n updateDobBindings: function updateDobBindings(change) {\n var cleanedDob = ($scope.dob.value || '').replace(this.dateRegex, '');\n $scope.dob.value = cleanedDob;\n\n // This way, our dob value is always formatted correctly.\n if (change) {\n $scope.dob.value = $('#dobText').val();\n }\n },\n // Dynamically construct regex to only include date separator supported by country and nondigits\n getDateRegex: function getDateRegex() {\n var escapedRegexChars = ['.', '$', '^', '{', '[', '(', '|', ')', '*', '+', '?', '\\\\'];\n var sep = this.dateSeparator;\n var assembledRegex = '[^0-9' + (escapedRegexChars.indexOf(sep) !== -1 ? '\\\\' + sep : sep) + ']';\n return new RegExp(assembledRegex, 'gi');\n },\n getDateMask: function getDateMask(dateSeparator) {\n var dateFormat = this.dateFormat;\n if (dateFormat === 'DMY' || dateFormat === 'MDY') {\n return '0Z' + dateSeparator + '0Z' + dateSeparator + '0000';\n }\n\n return '0000' + dateSeparator + '0Z' + dateSeparator + '0Z';\n },\n getDateSeparator: function getDateSeparator(dateEntry) {\n var ret = '';\n this.getDateSeparators().forEach(function (ele, iter) {\n // eslint-disable-line\n if (dateEntry.indexOf(ele) !== -1) {\n ret = ele;\n }\n });\n return ret;\n },\n // To add any additional date separators, simply add them to the returned array.\n getDateSeparators: function getDateSeparators() {\n return ['-', '.', '/'];\n },\n // Handles changes in date component order or date separator change.\n updateDateInputForFormat: function updateDateInputForFormat(oldFormat, newFormat, oldSeparator) {\n var curDateVal = $scope.dob.value || '';\n\n // Clear dob input if date is incomplete so user can see updated placeholder\n if (curDateVal.length < 8) {\n $scope.dob.value = '';\n return;\n }\n\n var formatComponentIdxMappings = this.getFormatComponentIdxMappings(),\n oldFormatIdxMapping = formatComponentIdxMappings[oldFormat],\n newFormatIdxMapping = formatComponentIdxMappings[newFormat];\n var oldDateComponents = curDateVal.split(oldSeparator),\n newDateComponents = ['', '', ''];\n\n newDateComponents[newFormatIdxMapping.day] = oldDateComponents[oldFormatIdxMapping.day];\n newDateComponents[newFormatIdxMapping.month] = oldDateComponents[oldFormatIdxMapping.month];\n newDateComponents[newFormatIdxMapping.year] = oldDateComponents[oldFormatIdxMapping.year];\n $scope.dob.value = newDateComponents.join(this.dateSeparator);\n },\n getFormatComponentIdxMappings: function getFormatComponentIdxMappings() {\n return {\n 'DMY': {\n 'day': 0,\n 'month': 1,\n 'year': 2\n },\n 'MDY': {\n 'day': 1,\n 'month': 0,\n 'year': 2\n },\n 'YMD': {\n 'day': 2,\n 'month': 1,\n 'year': 0\n }\n };\n },\n prefillFetchedDob: function prefillFetchedDob() {\n if ($scope.user && $scope.user.dob_day && $scope.user.dob_month && $scope.user.dob_year) {\n if (!$scope.dob) {\n $scope.dob = {};\n }\n\n if (this.dateFormat === 'DMY') {\n $scope.dob.value = $scope.user.dob_day + this.dateSeparator + $scope.user.dob_month + this.dateSeparator + $scope.user.dob_year;\n } else if (this.dateFormat === 'YMD') {\n $scope.dob.value = $scope.user.dob_year + this.dateSeparator + $scope.user.dob_month + this.dateSeparator + $scope.user.dob_day;\n } else {\n $scope.dob.value = $scope.user.dob_month + this.dateSeparator + $scope.user.dob_day + this.dateSeparator + $scope.user.dob_year;\n }\n } else {\n $scope.dob = {\n value: ''\n };\n }\n }\n };\n\n DateManager._init_();\n DateManager.setDobTextPlaceHolder();\n DateManager.prefillFetchedDob();\n\n $scope.onDobTextKeyup = function (event) {\n DateManager.dobTextKeyupHandler(event);\n };\n\n $scope.$on('localeChange', function () {\n var oldDateFormat = DateManager.dateFormat;\n var oldSeparator = DateManager.dateSeparator;\n DateManager._init_();\n DateManager.updateDateInputForFormat(oldDateFormat, DateManager.dateFormat, oldSeparator);\n DateManager.updateDobBindings(false);\n DateManager.setDobTextPlaceHolder();\n });\n }]\n };\n});\n\n_squid.$locale;\n\n_squid.$pxp;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-form-components/src/dob-input/directive.js\n// module id = ../node_modules/xo-form-components/src/dob-input/directive.js\n// module chunks = 0","module.exports = \"
      \\n
      \\n \\n
      \\n \\n
      \\n

      {{ content('scripts.validDate') }}

      \\n

      {{ content('scripts.legalAge') }}

      \\n
      \\n
      \\n
      \\n {{ dobTextPlaceholder }}\\n \\n
      \\n
      \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-form-components/src/dob-input/template.html\n// module id = ../node_modules/xo-form-components/src/dob-input/template.html\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _index = require('squid/index');\n\nrequire('xo-ui-components/src/floating-label/directive');\n\nrequire('./styles');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _index.$Component.extend('$xoGenderType', {\n tag: 'xo-gender-type',\n template: _template2['default'],\n props: {\n user: {\n type: 'var',\n required: false\n }\n }\n});\n\n\n_index.$Component;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-form-components/src/gender-type/directive.js\n// module id = ../node_modules/xo-form-components/src/gender-type/directive.js\n// module chunks = 0","module.exports = \"
      \\n
      \\n \\n \\n
      \\n
      \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-form-components/src/gender-type/template.html\n// module id = ../node_modules/xo-form-components/src/gender-type/template.html\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _squid = require('squid');\n\nvar _util = require('xo-return-to-merchant/dist/util');\n\nrequire('xo-ui-components/src/modal/directive');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nvar _uiRouter = require('uiRouter');\n\nvar _logger = require('xo-beaver/dist/logger');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _squid.$Component.extend('$xoSoldoutPageDirective', {\n tag: 'xo-soldout-page',\n template: _template2['default'],\n auth: false,\n actions: {\n continueShoppingHandler: function continueShoppingHandler() {\n _util.$ReturnToMerchant.goTo(decodeURIComponent(_uiRouter.$state.params.soldOutUrl), true);\n }\n },\n lifecycle: {\n enter: function enter() {\n this.locale = _squid.$locale;\n angular.element('.paypalHeader').css('display', 'none');\n angular.element('#defaultCancelLink').css('display', 'none');\n\n _logger.$logger.info('checkout_fpti', {\n landing_page: 'sold_out',\n int_error_code: '0',\n int_error_description: 'cart item sold out'\n });\n },\n populate: function populate() {\n this.item_name = decodeURIComponent(_uiRouter.$state.params.items);\n }\n }\n});\n\n\n_squid.$Component;\n\n_squid.$locale;\n\n_util.$ReturnToMerchant;\n\n_uiRouter.$state;\n\n_logger.$logger;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-form-components/src/inventory-soldout/directive.js\n// module id = ../node_modules/xo-form-components/src/inventory-soldout/directive.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$xoSoldOutPageRoute = undefined;\n\nvar _squid = require('squid');\n\nvar _directive = require('./directive');\n\nvar _directive2 = _interopRequireDefault(_directive);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar $xoSoldOutPageRoute = exports.$xoSoldOutPageRoute = _squid.$ComponentRoute.extend('$xoSoldOutPageRoute', {\n path: 'soldout',\n directive: _directive2['default'],\n titleContent: 'soldout.title',\n query: ['items', 'soldOutUrl'],\n auth: false,\n trackingData: {\n fptiState: 'soldout',\n templateName: 'soldout.dust',\n pageGoal: 'soldout page',\n buzname: {\n 'fullpage': {\n 'pagename': '%::fullpage-soldout',\n 'pagename2': '%::fullpage-soldout:member:hermes:',\n 'version': 'member:%:'\n // More page qualifiers come here...\n } }\n },\n children: []\n});\n\nangular.value(\"$xoSoldOutPageRoute\", $xoSoldOutPageRoute);\n_squid.$ComponentRoute;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-form-components/src/inventory-soldout/route.js\n// module id = ../node_modules/xo-form-components/src/inventory-soldout/route.js\n// module chunks = 0","module.exports = \"
      \\n
      \\n
      \\n\\n
      \\n {{content ('soldout.icon')}}\\n
      \\n\\n
      \\n \\n
      \\n
      \\n\\n
      \\n
      \\n
      \\n \\n\\n
      \\n\\n
      \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-form-components/src/inventory-soldout/template.html\n// module id = ../node_modules/xo-form-components/src/inventory-soldout/template.html\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.VALID_DIRECTION = undefined;\n\nvar _squid = require('squid');\n\nrequire('xo-ui-components/src/accessibility/directive');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar VALID_DIRECTION = exports.VALID_DIRECTION = ['top', 'bottom'];\nvar isValidDirection = function isValidDirection(n) {\n return VALID_DIRECTION.includes(n);\n};\n\n\nangular.module().directive('xoLanguageOptions', function () {\n return {\n template: _template2['default'],\n\n scope: {\n direction: '@?'\n },\n\n controller: ['$scope', function ($scope) {\n $scope.direction = isValidDirection($scope.direction) ? $scope.direction : 'bottom';\n $scope.showLanguages = false;\n\n function setLanguageVars() {\n $scope.localeModel = _squid.$locale;\n $scope.currentLanguage = $scope.localeModel.lang;\n $scope.currentCountry = $scope.localeModel.country;\n $scope.languageList = $scope.localeModel.metadata.languageLabel;\n $scope.supportedLanguages = _squid.$config.supportedCountries[$scope.currentCountry];\n $scope.hasMultipleLanguages = $scope.supportedLanguages && $scope.supportedLanguages.length > 1 ? true : false;\n }\n\n $scope.selectLanguage = function (language) {\n $scope.currentLanguage = language;\n _squid.$locale.chooseLang(language);\n };\n\n $scope.toggle = function ($event) {\n if ($event) {\n $event.preventDefault();\n }\n\n $scope.showLanguages = !$scope.showLanguages;\n };\n\n setLanguageVars();\n\n // Reset locale properties for languageToggle\n $scope.$on('localeChange', function () {\n setLanguageVars();\n });\n\n // \"clickBody\" is an artifical event broadcast by the xo-checkout component (essentially document.click)\n $scope.$on('clickBody', function ($event, target) {\n if ($(target).parents('.languageToggleDisplay div').length === 0) {\n $scope.showLanguages = false;\n $scope.$apply();\n }\n });\n }]\n };\n});\n\n_squid.$config;\n\n_squid.$locale;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-form-components/src/language-options/directive.js\n// module id = ../node_modules/xo-form-components/src/language-options/directive.js\n// module chunks = 0","module.exports = \"
      \\n \\n
      \\n
      \\n
      \\n \\n
      \\n
      \\n
      \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-form-components/src/language-options/template.html\n// module id = ../node_modules/xo-form-components/src/language-options/template.html\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _squid = require('squid');\n\nrequire('xo-ui-components/src/error-tooltip/directive');\n\nrequire('xo-ui-components/src/floating-label/directive');\n\nrequire('xo-ui-components/src/prefix-attrs-with/directive');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _squid.$Component.extend('$xoNameInput', {\n tag: 'xo-name-input',\n\n template: _template2['default'],\n\n props: {\n attrPrefix: {\n required: false,\n type: 'var'\n },\n country: {\n required: false,\n type: 'str'\n },\n user: {\n required: false,\n type: 'var'\n }\n },\n\n lifecycle: {\n enter: function enter() {\n var _this = this;\n\n this.locale = _squid.$locale;\n this.metadata = _squid.$MetadataModel.create();\n\n var handleCountryChange = function handleCountryChange() {\n _this.metadata.choose(_this.country || _squid.$locale.country, _squid.$locale.lang);\n };\n\n this.$watch('country', handleCountryChange);\n }\n }\n});\n\n\n_squid.$Component;\n\n_squid.$locale;\n\n_squid.$MetadataModel;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-form-components/src/name-input/directive.js\n// module id = ../node_modules/xo-form-components/src/name-input/directive.js\n// module chunks = 0","module.exports = \"
      \\n
      \\n \\n
      \\n
      \\n \\n \\n
      \\n
      \\n\\n \\n
      \\n
      \\n \\n \\n
      \\n
      \\n
      \\n\\n
      \\n \\n
      \\n \\n \\n
      \\n\\n \\n
      \\n \\n \\n
      \\n
      \\n
      \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-form-components/src/name-input/template.html\n// module id = ../node_modules/xo-form-components/src/name-input/template.html\n// module chunks = 0","\n\nvar _angular = require('angular');\n\nvar _squid = require('squid');\n\nvar _index = require('xo-models/src/checkout/index');\n\nrequire('xo-ui-components/src/directionality/directive');\n\nrequire('xo-ui-components/src/tooltip/directive');\n\nrequire('../dob-input/directive');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n(function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n})(window.angular);\n\nangular.module().directive('brIdValidations', function () {\n return {\n require: 'ngModel',\n\n link: function link(scope, element, attr, ctrl) {\n scope.cpfValidator = function cpfValidator(ngModelValue) {\n var value = ngModelValue.replace(/[^0-9]/gi, '');\n var len = value.length;\n\n if (len !== 11) {\n ctrl.$setValidity('nationalId', false);\n return ngModelValue;\n }\n\n var x = value.match(/\\b(\\d)\\1+\\b/);\n\n if (x) {\n ctrl.$setValidity('nationalId', false);\n return ngModelValue;\n }\n\n var v1 = 0;\n var v2 = 0;\n var dv1;\n var dv2;\n var i;\n var j;\n\n for (i = 0, j = 10; i < 9, j > 1; i++, j--) {\n // eslint-disable-line no-sequences\n v1 += j * +value[i];\n }\n\n v1 = v1 % 11;\n dv1 = 11 - v1 < 10 ? 11 - v1 : 0;\n\n for (i = 0, j = 11; i < 9, j > 2; i++, j--) {\n // eslint-disable-line no-sequences\n v2 += j * +value[i];\n }\n\n v2 += dv1 * 2;\n v2 = v2 % 11;\n dv2 = 11 - v2 < 10 ? 11 - v2 : 0;\n\n scope.isValid = dv1 === parseInt(value[9], 10) && dv2 === parseInt(value[10], 10);\n\n ctrl.$setValidity('nationalId', scope.isValid);\n\n return ngModelValue;\n };\n\n ctrl.$parsers.push(scope.cpfValidator);\n }\n };\n}).directive('sgIdValidations', function () {\n return {\n require: 'ngModel',\n\n link: function link(scope, element, attr, ctrl) {\n scope.nricFinValidator = function nricFinValidator(ngModelValue) {\n var idType = scope.$parent.nationalIdModel.nationalId.type;\n if (idType === 'NATIONAL_ID') {\n scope.isValid = false;\n\n // Valid if first char is \"S\", \"T\", \"F\" or \"G\" and the rest 7 are digits followed by a letter.\n if (ngModelValue.match(/^[SFTG]\\d{7}[A-Z]$/)) {\n scope.isValid = true;\n }\n } else {\n scope.isValid = true;\n }\n ctrl.$setValidity('nationalId', scope.isValid);\n return ngModelValue;\n };\n ctrl.$parsers.push(scope.nricFinValidator);\n }\n };\n}).directive('ruIdValidations', function () {\n return {\n require: 'ngModel',\n\n link: function link(scope, element, attr, ctrl) {\n\n function validateSNILSChunk(sum, checksum) {\n if (sum < 100 && sum === checksum) {\n return true;\n } else if ((sum === 100 || sum === 101) && checksum === 0) {\n return true;\n } else if (sum > 101) {\n var remainder = sum % 101;\n return validateSNILSChunk(remainder, checksum);\n }\n\n return false;\n }\n\n function validateSNILS(value) {\n if (value.length === 11) {\n if (Number(value) > 1001998) {\n var snilsNumber = value.substring(0, 9);\n var checksum = Number(value.substring(9));\n var sum = 0;\n var multiplier = 1;\n\n for (var i = snilsNumber.length - 1; i >= 0; i--) {\n sum = sum + Number(snilsNumber.charAt(i)) * multiplier;\n multiplier++;\n }\n\n return validateSNILSChunk(sum, checksum);\n }\n\n return true;\n }\n\n return false;\n }\n\n function validateINNChecksum(value, factor, valueLength, match) {\n var n;\n var sumn = 0;\n for (var i = 0; i < valueLength; i++) {\n sumn = sumn + Number(value[i]) * Number(factor[i]);\n }\n n = sumn % 11;\n n = n === 10 ? 0 : n;\n\n if (n !== Number(match)) {\n return false;\n }\n\n return true;\n }\n\n function validateINN(value) {\n if (value.length === 12) {\n var factor = [7, 2, 4, 10, 3, 5, 9, 4, 6, 8];\n\n if (!validateINNChecksum(value, factor, value.length - 2, value[10])) {\n return false;\n }\n\n factor.unshift(3);\n\n if (!validateINNChecksum(value, factor, value.length - 1, value[11])) {\n return false;\n }\n\n return true;\n }\n\n return false;\n }\n\n function validateOMS(value) {\n if (value.length >= 11 && value.length <= 16) {\n return true;\n }\n\n return false;\n }\n\n scope.idValidator = function idValidator(ngModelValue) {\n var value = ngModelValue.replace(/[^0-9]/gi, '');\n var secondaryType = scope.nationalIdModel.secondaryIdType;\n\n if (secondaryType === 'SNILS') {\n scope.isValid = validateSNILS(value);\n } else if (secondaryType === 'INN') {\n scope.isValid = validateINN(value);\n } else if (secondaryType === 'OMS') {\n scope.isValid = validateOMS(value);\n }\n\n ctrl.$setValidity('secondaryId', scope.isValid);\n\n return ngModelValue;\n };\n\n ctrl.$parsers.push(scope.idValidator);\n }\n };\n}).directive('xoNationalIdInput', function () {\n return {\n template: _template2['default'],\n scope: {\n user: '=?',\n country: '@?'\n },\n\n link: function link(scope, element, attr) {\n var passportMask = '0000000000';\n\n element.on('keyup', function (event) {\n if (scope.user.countryOfResidence === 'RU') {\n $('#nationalId').mask(passportMask, {\n 'translation': {\n 0: { pattern: /[0-9]/ }\n }\n });\n } else {\n $('#nationalId').unmask(passportMask);\n }\n });\n },\n\n controller: ['$scope', '$NationalIdModel', function ($scope, $NationalIdModel) {\n\n $scope.nationalIdModel = $NationalIdModel.instance(_angular.$rootScope.token);\n $scope.checkoutCart = _index.$CheckoutCartModel.instance(_angular.$rootScope.token);\n $scope.user = $scope.user || {};\n $scope.user.countryOfResidence = $scope.user.countryOfResidence || $scope.country;\n $scope.formattedValues = {};\n $scope.showNationalIdFields = false;\n\n if ($scope.checkoutCart.payer && $scope.checkoutCart.payer.tax_id) {\n $scope.nationalIdModel.nationalId.value = $scope.checkoutCart.payer.tax_id;\n }\n\n $scope.countryChanged = function () {\n if ($scope.user.countryOfResidence === 'RU') {\n $scope.showNationalIdFields = true;\n $scope.minLengthNatId = 10;\n $scope.maxLengthNatId = 10;\n } else {\n $scope.showNationalIdFields = false;\n $scope.minLengthNatId = 6;\n $scope.maxLengthNatId = 15;\n }\n };\n\n $scope.cpfMasking = function (newValue) {\n if (newValue) {\n var unformatted = newValue.replace(/[^0-9]/gi, '');\n var formatted = [['', unformatted.slice(0, 3)], ['.', unformatted.slice(3, 6)], ['.', unformatted.slice(6, 9)], ['-', unformatted.slice(9)]].map(function (x) {\n return x[1] && x[0] + x[1] || '';\n }).join('');\n\n $scope.formattedValues.nationalId = formatted;\n $scope.nationalIdModel.nationalId.value = unformatted;\n } else {\n $scope.nationalIdModel.nationalId.value = '';\n }\n };\n\n $scope.secondaryIdFormatting = function () {\n var $el = $('#idValue');\n\n if ($scope.nationalIdModel.secondaryIdType === 'SNILS' && $el.length > 0) {\n var unformatted = $el.val().replace(/[^0-9]/gi, '');\n var formatted = [['', unformatted.slice(0, 3)], ['-', unformatted.slice(3, 6)], ['-', unformatted.slice(6, 9)], [' ', unformatted.slice(9)]].map(function (x) {\n return x[1] && x[0] + x[1] || '';\n }).join('');\n\n $scope.nationalIdModel.secondaryIdValue = formatted;\n }\n };\n\n $scope.secondaryIdChange = function () {\n var currentSecondaryId = $scope.secondaryIds[$scope.nationalIdModel.secondaryIdType];\n\n $scope.nationalIdModel.secondaryIdValue = '';\n $scope.maxLength = currentSecondaryId.length;\n $scope.minLength = currentSecondaryId.minlength ? currentSecondaryId.minlength : currentSecondaryId.length;\n\n $scope.maskCharLength = currentSecondaryId.maskCharLength ? currentSecondaryId.maskCharLength : 0;\n };\n\n $scope.sgIdChange = function () {\n $scope.nationalIdModel.nationalId.value = '';\n };\n\n function setLocalizedNatIDLabels() {\n $scope.nationalIds = {\n 'PASSPORT': { name: 'PASSPORT_NUMBER', value: _squid.$locale.content.addTaxId.passport }\n };\n\n // National ID is not shown for South Korea\n if (_squid.$locale.country !== 'KR') {\n $scope.nationalIds.NATID = { name: 'NATIONAL_ID', value: _squid.$locale.content.addTaxId.natid };\n }\n\n // ID type change from “Driver’s License” to “TEMPORARY_NATIONAL_ID” for HK only,\n // other countries show \"Driver’s License\" in th national ID drop down\n if (_squid.$locale.country === 'HK' && (0, _squid.$feature)('driverLicenseToTempNationalID', false, _squid.$locale.country)) {\n $scope.nationalIds.TNID = { name: 'TEMPORARY_NATIONAL_ID', value: _squid.$locale.content.addTaxId.tnid };\n } else {\n $scope.nationalIds.DL = { name: 'DRIVERS_LICENSE', value: _squid.$locale.content.addTaxId.dl };\n }\n }\n\n function setLocalizedRUContent() {\n $scope.countries = _squid.$locale.metadata.territory;\n $scope.secondaryIds = {\n 'INN': { name: 'INN', value: _squid.$locale.content.addTaxId.INN, length: 12 },\n 'SNILS': { name: 'SNILS', value: _squid.$locale.content.addTaxId.SNILS, length: 14, maskCharLength: 3 },\n 'OMS': { name: 'OMS', value: _squid.$locale.content.addTaxId.OMS, length: 16, minlength: 11 }\n };\n }\n\n if (_squid.$locale.country === 'BR') {\n $scope.nationalIdModel.nationalId.type = 'TAX_ID';\n $scope.nationalIdModel.nationalId.subType = 'CPF';\n\n $scope.cpfMasking($scope.nationalIdModel.nationalId.value);\n } else if ($scope.country === 'RU') {\n setLocalizedRUContent();\n $scope.nationalIdModel.nationalId.type = 'PASSPORT';\n $scope.nationalIdModel.nationalId.subType = '';\n $scope.user.nativeName = $scope.user.nativeName || {};\n\n if (!$scope.nationalIdModel.secondaryIdType) {\n $scope.nationalIdModel.secondaryIdType = $scope.secondaryIds.INN.name;\n }\n\n $scope.secondaryIdChange();\n\n $scope.countryChanged();\n } else if ($scope.country === 'KR') {\n $scope.nationalIds = {\n 'PASSPORT': { name: 'PASSPORT_NUMBER', value: _squid.$locale.content.addTaxId.passport },\n 'DL': { name: 'DRIVERS_LICENSE', value: _squid.$locale.content.addTaxId.dl }\n };\n $scope.nationalIdModel.nationalId.type = 'PASSPORT_NUMBER';\n $scope.nationalIdModel.nationalId.subType = '';\n } else {\n // Default behaviour - set to 3pl countries\n setLocalizedNatIDLabels();\n $scope.nationalIdModel.nationalId.type = 'NATIONAL_ID';\n $scope.nationalIdModel.nationalId.subType = '';\n }\n\n $scope.$on('contentChange', function () {\n setLocalizedNatIDLabels();\n\n if ($scope.country === 'RU') {\n setLocalizedRUContent();\n }\n });\n }]\n };\n}).factory('$NationalIdModel', function () {\n\n return _squid.$Model.extend('NationalIdModel', {\n\n init: function init() {\n this._super.init.apply(this);\n this.nationalId = this.nationalId || {};\n },\n\n serialize: function serialize() {\n return this.nationalId;\n }\n });\n});\n\n_angular.$rootScope;\n\n_squid.$feature;\n\n_squid.$locale;\n\n_squid.$Model;\n\n_index.$CheckoutCartModel;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-form-components/src/national-id-input/directive.js\n// module id = ../node_modules/xo-form-components/src/national-id-input/directive.js\n// module chunks = 0","module.exports = \"
      \\n
      \\n
      \\n
      \\n
      \\n \\n \\n
      \\n\\n
      \\n \\n \\n
      \\n
      \\n\\n
      \\n\\n
      \\n \\n \\n
      \\n\\n
      \\n\\n
      \\n\\n
      \\n \\n \\n
      \\n\\n
      \\n \\n \\n
      \\n\\n
      \\n\\n
      \\n\\n
      \\n
      \\n \\n \\n
      \\n\\n
      \\n \\n\\n
      \\n \\n \\n
      \\n
      \\n\\n
      \\n \\n\\n \\n
      \\n\\n \\n\\n
      \\n {{content('addTaxId.additionalInfo')}}\\n
      \\n \\n
      \\n
      \\n \\n
      \\n {{content('addTaxId.additionalInfoNote')}}\\n
      \\n
      \\n
      \\n
      \\n\\n
      \\n
      \\n \\n \\n
      \\n\\n
      \\n \\n \\n
      \\n
      \\n
      \\n
      \\n
      \\n\\n
      \\n
      \\n \\n \\n
      \\n\\n
      \\n \\n \\n
      \\n
      \\n
      \\n
      \\n
      \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-form-components/src/national-id-input/template.html\n// module id = ../node_modules/xo-form-components/src/national-id-input/template.html\n// module chunks = 0","\n\nvar _angular = require('angular');\n\nvar _squid = require('squid');\n\nvar _uiRouter = require('uiRouter');\n\nvar _logger = require('xo-beaver/dist/logger');\n\nvar _auth = require('xo-models/src/auth');\n\nrequire('xo-models/src/auth/index');\n\nvar _index = require('xo-models/src/checkout/index');\n\nvar _index2 = require('xo-models/src/user/index');\n\nrequire('xo-page-components/src/value-props/directive');\n\nrequire('xo-title/dist/directive');\n\nrequire('xo-ui-components/src/message/directive');\n\nrequire('./phoneInput/directive');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nangular.module().directive('xoAddPhone', function () {\n return {\n template: _template2['default'],\n scope: {},\n controller: ['$scope', function ($scope) {\n\n $scope.showPhoneDisclosure = (0, _squid.$featureCountries)('showPhoneDisclosure').indexOf(_squid.$locale.country) > -1;\n $scope.phoneConsent = (0, _squid.$feature)('phoneConsent');\n $scope.consentContentKey = $scope.phoneConsent ? 'addPhone.phoneConsent' : 'addPhone.phoneDisclosure';\n $scope.errorMessage = {\n msgKeys: ['addPhone.addPhoneNumberConsent'],\n type: 'info'\n };\n\n $scope.userInfo = _index2.$UserInfoModel.instance(_angular.$rootScope.token);\n $scope.phone = {};\n\n var CONTENT_KEY = {\n INVALID_PHONE_NUMBER: 'validPhone'\n };\n\n var CONTENT_MAPPING = {\n numberError: CONTENT_KEY.INVALID_PHONE_NUMBER,\n typeError: CONTENT_KEY.INVALID_PHONE_NUMBER\n };\n\n var populateErrorMessage = function populateErrorMessage(name) {\n var contentKey = CONTENT_MAPPING[name];\n var msg = contentKey ? _squid.$locale.content.get('scripts.' + contentKey) : 'unresolved content for login error ' + name;\n\n $scope.errorMessage = {\n msgs: [msg],\n type: 'error'\n };\n };\n\n var validationErrorHandler = {\n numberError: populateErrorMessage,\n typeError: populateErrorMessage\n };\n\n (0, _squid.$populate)($scope, {\n auth: _auth.$AuthModel.instance()\n }).then(function () {\n\n $scope.logout = function () {\n _logger.$logger.info('not_you_logout');\n $scope.auth.action('logout').then(function () {\n _uiRouter.$state.go('checkout.login');\n });\n };\n\n $scope.showNotYou = $scope.auth.is_auth_api_call && _squid.$util.param('source') !== 'consumerApp' && $scope.logout;\n\n $scope.onSubmit = function () {\n if ($scope.phoneConsent) {\n $scope.phone.consent = {\n agreed: true,\n contentId: _squid.$locale.country + ':' + _squid.$locale.lang + ':' + $scope.consentContentKey + ':' + (0, _squid.$contentVersion)()\n };\n }\n $scope.userInfo.action('addPhone', {\n\n data: $scope.phone,\n\n success: function success(data) {\n return _index.$CheckoutSessionModel.instance(_angular.$rootScope.token).action('create', {\n success: function success() {\n _uiRouter.$state.go('checkout.review');\n }\n });\n },\n\n contingencies: {\n NEED_CREDIT_CARD: function NEED_CREDIT_CARD() {\n _angular.$location.path('/checkout/addCard');\n },\n\n EXPIRED_CREDIT_CARD: function EXPIRED_CREDIT_CARD() {\n _angular.$location.path('/checkout/updateCard');\n }\n },\n\n validation: function validation(data) {\n angular.forEach(data, function (value, key) {\n validationErrorHandler[key](key);\n });\n }\n });\n };\n });\n }]\n };\n});\n\n_angular.$rootScope;\n\n_angular.$location;\n\n_squid.$feature;\n\n_squid.$locale;\n\n_squid.$populate;\n\n_squid.$util;\n\n_squid.$featureCountries;\n\n_squid.$contentVersion;\n\n_uiRouter.$state;\n\n_logger.$logger;\n\n_auth.$AuthModel;\n\n_index.$CheckoutSessionModel;\n\n_index2.$UserInfoModel;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-form-components/src/phone/directive.js\n// module id = ../node_modules/xo-form-components/src/phone/directive.js\n// module chunks = 0","\n\ndefine([], function () {\n return {\n 'AC': {\n 'status': 'reserved',\n 'phoneCountryCode': '247',\n 'showCountryCodeList': false\n },\n 'AD': {\n 'status': 'assigned',\n 'phoneCountryCode': '376',\n 'showCountryCodeList': false\n },\n 'AE': {\n 'status': 'assigned',\n 'phoneCountryCode': '971',\n 'showCountryCodeList': false\n },\n 'AF': {\n 'status': 'assigned',\n 'phoneCountryCode': '93',\n 'showCountryCodeList': false\n },\n 'AG': {\n 'status': 'assigned',\n 'phoneCountryCode': '1',\n 'showCountryCodeList': false\n },\n 'AI': {\n 'status': 'assigned',\n 'phoneCountryCode': '1',\n 'showCountryCodeList': false\n },\n 'AL': {\n 'status': 'assigned',\n 'phoneCountryCode': '355',\n 'showCountryCodeList': false\n },\n 'AM': {\n 'status': 'assigned',\n 'phoneCountryCode': '374',\n 'showCountryCodeList': false\n },\n 'AN': {\n 'status': 'assigned',\n 'phoneCountryCode': '599',\n 'showCountryCodeList': false\n },\n 'AO': {\n 'status': 'assigned',\n 'phoneCountryCode': '244',\n 'showCountryCodeList': false\n },\n 'AQ': {\n 'status': 'assigned',\n 'phoneCountryCode': '672',\n 'showCountryCodeList': false\n },\n 'AR': {\n 'status': 'assigned',\n 'phoneCountryCode': '54',\n 'showCountryCodeList': false\n },\n 'AS': {\n 'status': 'assigned',\n 'phoneCountryCode': '1',\n 'showCountryCodeList': false\n },\n 'AT': {\n 'status': 'assigned',\n 'phoneCountryCode': '43',\n 'showCountryCodeList': true\n },\n 'AU': {\n 'status': 'assigned',\n 'phoneCountryCode': '61',\n 'showCountryCodeList': true\n },\n 'AW': {\n 'status': 'assigned',\n 'phoneCountryCode': '297',\n 'showCountryCodeList': false\n },\n 'AZ': {\n 'status': 'assigned',\n 'phoneCountryCode': '994',\n 'showCountryCodeList': false\n },\n 'BA': {\n 'status': 'assigned',\n 'phoneCountryCode': '387',\n 'showCountryCodeList': false\n },\n 'BB': {\n 'status': 'assigned',\n 'phoneCountryCode': '1',\n 'showCountryCodeList': false\n },\n 'BD': {\n 'status': 'assigned',\n 'phoneCountryCode': '880',\n 'showCountryCodeList': false\n },\n 'BE': {\n 'status': 'assigned',\n 'phoneCountryCode': '32',\n 'showCountryCodeList': true\n },\n 'BF': {\n 'status': 'assigned',\n 'phoneCountryCode': '226',\n 'showCountryCodeList': false\n },\n 'BG': {\n 'status': 'assigned',\n 'phoneCountryCode': '359',\n 'showCountryCodeList': false\n },\n 'BH': {\n 'status': 'assigned',\n 'phoneCountryCode': '973',\n 'showCountryCodeList': false\n },\n 'BI': {\n 'status': 'assigned',\n 'phoneCountryCode': '257',\n 'showCountryCodeList': false\n },\n 'BJ': {\n 'status': 'assigned',\n 'phoneCountryCode': '229',\n 'showCountryCodeList': false\n },\n 'BL': {\n 'status': 'assigned',\n 'phoneCountryCode': '590',\n 'showCountryCodeList': false\n },\n 'BM': {\n 'status': 'assigned',\n 'phoneCountryCode': '1',\n 'showCountryCodeList': false\n },\n 'BN': {\n 'status': 'assigned',\n 'phoneCountryCode': '673',\n 'showCountryCodeList': false\n },\n 'BO': {\n 'status': 'assigned',\n 'phoneCountryCode': '591',\n 'showCountryCodeList': false\n },\n 'BQ': {\n 'status': 'assigned',\n 'phoneCountryCode': '599',\n 'showCountryCodeList': false\n },\n 'BR': {\n 'status': 'assigned',\n 'phoneCountryCode': '55',\n 'showCountryCodeList': false\n },\n 'BS': {\n 'status': 'assigned',\n 'phoneCountryCode': '1',\n 'showCountryCodeList': false\n },\n 'BT': {\n 'status': 'assigned',\n 'phoneCountryCode': '975',\n 'showCountryCodeList': false\n },\n 'BV': {\n 'status': 'assigned'\n },\n 'BW': {\n 'status': 'assigned',\n 'phoneCountryCode': '267',\n 'showCountryCodeList': false\n },\n 'BY': {\n 'status': 'assigned',\n 'phoneCountryCode': '375',\n 'showCountryCodeList': false\n },\n 'BZ': {\n 'status': 'assigned',\n 'phoneCountryCode': '501',\n 'showCountryCodeList': false\n },\n 'C2': {\n 'status': 'assigned',\n 'phoneCountryCode': '86',\n 'showCountryCodeList': false\n },\n 'CA': {\n 'status': 'assigned',\n 'phoneCountryCode': '1',\n 'showCountryCodeList': false\n },\n 'CC': {\n 'status': 'assigned',\n 'phoneCountryCode': '61',\n 'showCountryCodeList': false\n },\n 'CD': {\n 'status': 'assigned',\n 'phoneCountryCode': '243',\n 'showCountryCodeList': false\n },\n 'CF': {\n 'status': 'assigned',\n 'phoneCountryCode': '236',\n 'showCountryCodeList': false\n },\n 'CG': {\n 'status': 'assigned',\n 'phoneCountryCode': '242',\n 'showCountryCodeList': false\n },\n 'CH': {\n 'status': 'assigned',\n 'phoneCountryCode': '41',\n 'showCountryCodeList': true\n },\n 'CI': {\n 'status': 'assigned',\n 'phoneCountryCode': '225',\n 'showCountryCodeList': false\n },\n 'CK': {\n 'status': 'assigned',\n 'phoneCountryCode': '682',\n 'showCountryCodeList': false\n },\n 'CL': {\n 'status': 'assigned',\n 'phoneCountryCode': '56',\n 'showCountryCodeList': false\n },\n 'CM': {\n 'status': 'assigned',\n 'phoneCountryCode': '237',\n 'showCountryCodeList': false\n },\n 'CN': {\n 'status': 'assigned',\n 'phoneCountryCode': '86',\n 'showCountryCodeList': false\n },\n 'CO': {\n 'status': 'assigned',\n 'phoneCountryCode': '57',\n 'showCountryCodeList': false\n },\n 'CR': {\n 'status': 'assigned',\n 'phoneCountryCode': '506',\n 'showCountryCodeList': false\n },\n 'CU': {\n 'status': 'assigned',\n 'phoneCountryCode': '53',\n 'showCountryCodeList': false\n },\n 'CV': {\n 'status': 'assigned',\n 'phoneCountryCode': '238',\n 'showCountryCodeList': false\n },\n 'CW': {\n 'status': 'assigned',\n 'phoneCountryCode': '599',\n 'showCountryCodeList': false\n },\n 'CX': {\n 'status': 'assigned',\n 'phoneCountryCode': '61',\n 'showCountryCodeList': false\n },\n 'CY': {\n 'status': 'assigned',\n 'phoneCountryCode': '357',\n 'showCountryCodeList': false\n },\n 'CZ': {\n 'status': 'assigned',\n 'phoneCountryCode': '420',\n 'showCountryCodeList': false\n },\n 'DE': {\n 'status': 'assigned',\n 'phoneCountryCode': '49',\n 'showCountryCodeList': false\n },\n 'DJ': {\n 'status': 'assigned',\n 'phoneCountryCode': '253',\n 'showCountryCodeList': false\n },\n 'DK': {\n 'status': 'assigned',\n 'phoneCountryCode': '45',\n 'showCountryCodeList': true\n },\n 'DM': {\n 'status': 'assigned',\n 'phoneCountryCode': '1',\n 'showCountryCodeList': false\n },\n 'DO': {\n 'status': 'assigned',\n 'phoneCountryCode': '1',\n 'showCountryCodeList': false\n },\n 'DZ': {\n 'status': 'assigned',\n 'phoneCountryCode': '213',\n 'showCountryCodeList': false\n },\n 'EC': {\n 'status': 'assigned',\n 'phoneCountryCode': '593',\n 'showCountryCodeList': false\n },\n 'EE': {\n 'status': 'assigned',\n 'phoneCountryCode': '372',\n 'showCountryCodeList': false\n },\n 'EG': {\n 'status': 'assigned',\n 'phoneCountryCode': '20',\n 'showCountryCodeList': false\n },\n 'EH': {\n 'status': 'assigned',\n 'phoneCountryCode': '212',\n 'showCountryCodeList': false\n },\n 'ER': {\n 'status': 'assigned',\n 'phoneCountryCode': '291',\n 'showCountryCodeList': false\n },\n 'ES': {\n 'status': 'assigned',\n 'phoneCountryCode': '34',\n 'showCountryCodeList': false\n },\n 'ET': {\n 'status': 'assigned',\n 'phoneCountryCode': '251',\n 'showCountryCodeList': false\n },\n 'FI': {\n 'status': 'assigned',\n 'phoneCountryCode': '358',\n 'showCountryCodeList': false\n },\n 'FJ': {\n 'status': 'assigned',\n 'phoneCountryCode': '679',\n 'showCountryCodeList': false\n },\n 'FK': {\n 'status': 'assigned',\n 'phoneCountryCode': '500',\n 'showCountryCodeList': false\n },\n 'FM': {\n 'status': 'assigned',\n 'phoneCountryCode': '691',\n 'showCountryCodeList': false\n },\n 'FO': {\n 'status': 'assigned',\n 'phoneCountryCode': '298',\n 'showCountryCodeList': false\n },\n 'FR': {\n 'status': 'assigned',\n 'phoneCountryCode': '33',\n 'showCountryCodeList': false\n },\n 'GA': {\n 'status': 'assigned',\n 'phoneCountryCode': '241',\n 'showCountryCodeList': false\n },\n 'GB': {\n 'status': 'assigned',\n 'phoneCountryCode': '44',\n 'showCountryCodeList': false\n },\n 'GD': {\n 'status': 'assigned',\n 'phoneCountryCode': '1',\n 'showCountryCodeList': false\n },\n 'GE': {\n 'status': 'assigned',\n 'phoneCountryCode': '995',\n 'showCountryCodeList': false\n },\n 'GF': {\n 'status': 'assigned',\n 'phoneCountryCode': '594',\n 'showCountryCodeList': false\n },\n 'GG': {\n 'status': 'assigned',\n 'phoneCountryCode': '44',\n 'showCountryCodeList': false\n },\n 'GH': {\n 'status': 'assigned',\n 'phoneCountryCode': '233',\n 'showCountryCodeList': false\n },\n 'GI': {\n 'status': 'assigned',\n 'phoneCountryCode': '350',\n 'showCountryCodeList': false\n },\n 'GL': {\n 'status': 'assigned',\n 'phoneCountryCode': '299',\n 'showCountryCodeList': false\n },\n 'GM': {\n 'status': 'assigned',\n 'phoneCountryCode': '220',\n 'showCountryCodeList': false\n },\n 'GN': {\n 'status': 'assigned',\n 'phoneCountryCode': '224',\n 'showCountryCodeList': false\n },\n 'GP': {\n 'status': 'assigned',\n 'phoneCountryCode': '590',\n 'showCountryCodeList': false\n },\n 'GQ': {\n 'status': 'assigned',\n 'phoneCountryCode': '240',\n 'showCountryCodeList': false\n },\n 'GR': {\n 'status': 'assigned',\n 'phoneCountryCode': '30',\n 'showCountryCodeList': false\n },\n 'GS': {\n 'status': 'assigned',\n 'phoneCountryCode': '500',\n 'showCountryCodeList': false\n },\n 'GT': {\n 'status': 'assigned',\n 'phoneCountryCode': '502',\n 'showCountryCodeList': false\n },\n 'GU': {\n 'status': 'assigned',\n 'phoneCountryCode': '1',\n 'showCountryCodeList': false\n },\n 'GW': {\n 'status': 'assigned',\n 'phoneCountryCode': '245',\n 'showCountryCodeList': false\n },\n 'GY': {\n 'status': 'assigned',\n 'phoneCountryCode': '592',\n 'showCountryCodeList': false\n },\n 'HK': {\n 'status': 'assigned',\n 'phoneCountryCode': '852',\n 'showCountryCodeList': true\n },\n 'HM': {\n 'status': 'assigned'\n },\n 'HN': {\n 'status': 'assigned',\n 'phoneCountryCode': '504',\n 'showCountryCodeList': false\n },\n 'HR': {\n 'status': 'assigned',\n 'phoneCountryCode': '385',\n 'showCountryCodeList': false\n },\n 'HT': {\n 'status': 'assigned',\n 'phoneCountryCode': '509',\n 'showCountryCodeList': false\n },\n 'HU': {\n 'status': 'assigned',\n 'phoneCountryCode': '36',\n 'showCountryCodeList': false\n },\n 'ID': {\n 'status': 'assigned',\n 'phoneCountryCode': '62',\n 'showCountryCodeList': false\n },\n 'IE': {\n 'status': 'assigned',\n 'phoneCountryCode': '353',\n 'showCountryCodeList': false\n },\n 'IL': {\n 'status': 'assigned',\n 'phoneCountryCode': '972',\n 'showCountryCodeList': false\n },\n 'IM': {\n 'status': 'assigned',\n 'phoneCountryCode': '44',\n 'showCountryCodeList': false\n },\n 'IN': {\n 'status': 'assigned',\n 'phoneCountryCode': '91',\n 'showCountryCodeList': false\n },\n 'IO': {\n 'status': 'assigned',\n 'phoneCountryCode': '246',\n 'showCountryCodeList': false\n },\n 'IQ': {\n 'status': 'assigned',\n 'phoneCountryCode': '964',\n 'showCountryCodeList': false\n },\n 'IR': {\n 'status': 'assigned',\n 'phoneCountryCode': '98',\n 'showCountryCodeList': false\n },\n 'IS': {\n 'status': 'assigned',\n 'phoneCountryCode': '354',\n 'showCountryCodeList': false\n },\n 'IT': {\n 'status': 'assigned',\n 'phoneCountryCode': '39',\n 'showCountryCodeList': false\n },\n 'JE': {\n 'status': 'assigned',\n 'phoneCountryCode': '44',\n 'showCountryCodeList': false\n },\n 'JM': {\n 'status': 'assigned',\n 'phoneCountryCode': '1',\n 'showCountryCodeList': false\n },\n 'JO': {\n 'status': 'assigned',\n 'phoneCountryCode': '962',\n 'showCountryCodeList': false\n },\n 'JP': {\n 'status': 'assigned',\n 'phoneCountryCode': '81',\n 'showCountryCodeList': false\n },\n 'KE': {\n 'status': 'assigned',\n 'phoneCountryCode': '254',\n 'showCountryCodeList': false\n },\n 'KG': {\n 'status': 'assigned',\n 'phoneCountryCode': '996',\n 'showCountryCodeList': false\n },\n 'KH': {\n 'status': 'assigned',\n 'phoneCountryCode': '855',\n 'showCountryCodeList': false\n },\n 'KI': {\n 'status': 'assigned',\n 'phoneCountryCode': '686',\n 'showCountryCodeList': false\n },\n 'KM': {\n 'status': 'assigned',\n 'phoneCountryCode': '269',\n 'showCountryCodeList': false\n },\n 'KN': {\n 'status': 'assigned',\n 'phoneCountryCode': '1',\n 'showCountryCodeList': false\n },\n 'KP': {\n 'status': 'assigned',\n 'phoneCountryCode': '850',\n 'showCountryCodeList': false\n },\n 'KR': {\n 'status': 'assigned',\n 'phoneCountryCode': '82',\n 'showCountryCodeList': false\n },\n 'KW': {\n 'status': 'assigned',\n 'phoneCountryCode': '965',\n 'showCountryCodeList': false\n },\n 'KY': {\n 'status': 'assigned',\n 'phoneCountryCode': '1',\n 'showCountryCodeList': false\n },\n 'KZ': {\n 'status': 'assigned',\n 'phoneCountryCode': '7',\n 'showCountryCodeList': false\n },\n 'LA': {\n 'status': 'assigned',\n 'phoneCountryCode': '856',\n 'showCountryCodeList': true\n },\n 'LB': {\n 'status': 'assigned',\n 'phoneCountryCode': '961',\n 'showCountryCodeList': false\n },\n 'LC': {\n 'status': 'assigned',\n 'phoneCountryCode': '1',\n 'showCountryCodeList': false\n },\n 'LI': {\n 'status': 'assigned',\n 'phoneCountryCode': '423',\n 'showCountryCodeList': false\n },\n 'LK': {\n 'status': 'assigned',\n 'phoneCountryCode': '94',\n 'showCountryCodeList': false\n },\n 'LR': {\n 'status': 'assigned',\n 'phoneCountryCode': '231',\n 'showCountryCodeList': false\n },\n 'LS': {\n 'status': 'assigned',\n 'phoneCountryCode': '266',\n 'showCountryCodeList': false\n },\n 'LT': {\n 'status': 'assigned',\n 'phoneCountryCode': '370',\n 'showCountryCodeList': false\n },\n 'LU': {\n 'status': 'assigned',\n 'phoneCountryCode': '352',\n 'showCountryCodeList': false\n },\n 'LV': {\n 'status': 'assigned',\n 'phoneCountryCode': '371',\n 'showCountryCodeList': false\n },\n 'LY': {\n 'status': 'assigned',\n 'phoneCountryCode': '218',\n 'showCountryCodeList': false\n },\n 'MA': {\n 'status': 'assigned',\n 'phoneCountryCode': '212',\n 'showCountryCodeList': false\n },\n 'MC': {\n 'status': 'assigned',\n 'phoneCountryCode': '377',\n 'showCountryCodeList': false\n },\n 'MD': {\n 'status': 'assigned',\n 'phoneCountryCode': '373',\n 'showCountryCodeList': false\n },\n 'ME': {\n 'status': 'assigned',\n 'phoneCountryCode': '382',\n 'showCountryCodeList': false\n },\n 'MF': {\n 'status': 'assigned',\n 'phoneCountryCode': '590',\n 'showCountryCodeList': false\n },\n 'MG': {\n 'status': 'assigned',\n 'phoneCountryCode': '261',\n 'showCountryCodeList': false\n },\n 'MH': {\n 'status': 'assigned',\n 'phoneCountryCode': '692',\n 'showCountryCodeList': false\n },\n 'MK': {\n 'status': 'assigned',\n 'phoneCountryCode': '389',\n 'showCountryCodeList': false\n },\n 'ML': {\n 'status': 'assigned',\n 'phoneCountryCode': '223',\n 'showCountryCodeList': false\n },\n 'MM': {\n 'status': 'assigned',\n 'phoneCountryCode': '95',\n 'showCountryCodeList': false\n },\n 'MN': {\n 'status': 'assigned',\n 'phoneCountryCode': '976',\n 'showCountryCodeList': false\n },\n 'MO': {\n 'status': 'assigned',\n 'phoneCountryCode': '853',\n 'showCountryCodeList': false\n },\n 'MP': {\n 'status': 'assigned',\n 'phoneCountryCode': '1',\n 'showCountryCodeList': false\n },\n 'MQ': {\n 'status': 'assigned',\n 'phoneCountryCode': '596',\n 'showCountryCodeList': false\n },\n 'MR': {\n 'status': 'assigned',\n 'phoneCountryCode': '222',\n 'showCountryCodeList': false\n },\n 'MS': {\n 'status': 'assigned',\n 'phoneCountryCode': '1',\n 'showCountryCodeList': false\n },\n 'MT': {\n 'status': 'assigned',\n 'phoneCountryCode': '356',\n 'showCountryCodeList': false\n },\n 'MU': {\n 'status': 'assigned',\n 'phoneCountryCode': '230',\n 'showCountryCodeList': false\n },\n 'MV': {\n 'status': 'assigned',\n 'phoneCountryCode': '960',\n 'showCountryCodeList': false\n },\n 'MW': {\n 'status': 'assigned',\n 'phoneCountryCode': '265',\n 'showCountryCodeList': false\n },\n 'MX': {\n 'status': 'assigned',\n 'phoneCountryCode': '52',\n 'showCountryCodeList': false\n },\n 'MY': {\n 'status': 'assigned',\n 'phoneCountryCode': '60',\n 'showCountryCodeList': false\n },\n 'MZ': {\n 'status': 'assigned',\n 'phoneCountryCode': '258',\n 'showCountryCodeList': false\n },\n 'NA': {\n 'status': 'assigned',\n 'phoneCountryCode': '264',\n 'showCountryCodeList': false\n },\n 'NC': {\n 'status': 'assigned',\n 'phoneCountryCode': '687',\n 'showCountryCodeList': false\n },\n 'NE': {\n 'status': 'assigned',\n 'phoneCountryCode': '227',\n 'showCountryCodeList': false\n },\n 'NF': {\n 'status': 'assigned',\n 'phoneCountryCode': '672',\n 'showCountryCodeList': false\n },\n 'NG': {\n 'status': 'assigned',\n 'phoneCountryCode': '234',\n 'showCountryCodeList': false\n },\n 'NI': {\n 'status': 'assigned',\n 'phoneCountryCode': '505',\n 'showCountryCodeList': false\n },\n 'NL': {\n 'status': 'assigned',\n 'phoneCountryCode': '31',\n 'showCountryCodeList': true\n },\n 'NO': {\n 'status': 'assigned',\n 'phoneCountryCode': '47',\n 'showCountryCodeList': true\n },\n 'NP': {\n 'status': 'assigned',\n 'phoneCountryCode': '977',\n 'showCountryCodeList': false\n },\n 'NR': {\n 'status': 'assigned',\n 'phoneCountryCode': '674',\n 'showCountryCodeList': false\n },\n 'NU': {\n 'status': 'assigned',\n 'phoneCountryCode': '683',\n 'showCountryCodeList': false\n },\n 'NZ': {\n 'status': 'assigned',\n 'phoneCountryCode': '64',\n 'showCountryCodeList': false\n },\n 'OM': {\n 'status': 'assigned',\n 'phoneCountryCode': '968',\n 'showCountryCodeList': false\n },\n 'PA': {\n 'status': 'assigned',\n 'phoneCountryCode': '507',\n 'showCountryCodeList': false\n },\n 'PE': {\n 'status': 'assigned',\n 'phoneCountryCode': '51',\n 'showCountryCodeList': false\n },\n 'PF': {\n 'status': 'assigned',\n 'phoneCountryCode': '689',\n 'showCountryCodeList': false\n },\n 'PG': {\n 'status': 'assigned',\n 'phoneCountryCode': '675',\n 'showCountryCodeList': false\n },\n 'PH': {\n 'status': 'assigned',\n 'phoneCountryCode': '63',\n 'showCountryCodeList': false\n },\n 'PK': {\n 'status': 'assigned',\n 'phoneCountryCode': '92',\n 'showCountryCodeList': false\n },\n 'PL': {\n 'status': 'assigned',\n 'phoneCountryCode': '48',\n 'showCountryCodeList': true\n },\n 'PM': {\n 'status': 'assigned',\n 'phoneCountryCode': '508',\n 'showCountryCodeList': false\n },\n 'PN': {\n 'status': 'assigned',\n 'phoneCountryCode': '870',\n 'showCountryCodeList': false\n },\n 'PR': {\n 'status': 'assigned',\n 'phoneCountryCode': '1',\n 'showCountryCodeList': false\n },\n 'PS': {\n 'status': 'assigned',\n 'phoneCountryCode': '970',\n 'showCountryCodeList': false\n },\n 'PT': {\n 'status': 'assigned',\n 'phoneCountryCode': '351',\n 'showCountryCodeList': false\n },\n 'PW': {\n 'status': 'assigned',\n 'phoneCountryCode': '680',\n 'showCountryCodeList': false\n },\n 'PY': {\n 'status': 'assigned',\n 'phoneCountryCode': '595',\n 'showCountryCodeList': false\n },\n 'QA': {\n 'status': 'assigned',\n 'phoneCountryCode': '974',\n 'showCountryCodeList': false\n },\n 'RE': {\n 'status': 'assigned',\n 'phoneCountryCode': '262',\n 'showCountryCodeList': false\n },\n 'RO': {\n 'status': 'assigned',\n 'phoneCountryCode': '40',\n 'showCountryCodeList': false\n },\n 'RS': {\n 'status': 'assigned',\n 'phoneCountryCode': '381',\n 'showCountryCodeList': false\n },\n 'RU': {\n 'status': 'assigned',\n 'phoneCountryCode': '7',\n 'showCountryCodeList': false\n },\n 'RW': {\n 'status': 'assigned',\n 'phoneCountryCode': '250',\n 'showCountryCodeList': false\n },\n 'SA': {\n 'status': 'assigned',\n 'phoneCountryCode': '966',\n 'showCountryCodeList': false\n },\n 'SB': {\n 'status': 'assigned',\n 'phoneCountryCode': '677',\n 'showCountryCodeList': false\n },\n 'SC': {\n 'status': 'assigned',\n 'phoneCountryCode': '248',\n 'showCountryCodeList': false\n },\n 'SD': {\n 'status': 'assigned',\n 'phoneCountryCode': '249',\n 'showCountryCodeList': false\n },\n 'SE': {\n 'status': 'assigned',\n 'phoneCountryCode': '46',\n 'showCountryCodeList': true\n },\n 'SG': {\n 'status': 'assigned',\n 'phoneCountryCode': '65',\n 'showCountryCodeList': true\n },\n 'SH': {\n 'status': 'assigned',\n 'phoneCountryCode': '290',\n 'showCountryCodeList': false\n },\n 'SI': {\n 'status': 'assigned',\n 'phoneCountryCode': '386',\n 'showCountryCodeList': false\n },\n 'SJ': {\n 'status': 'assigned',\n 'phoneCountryCode': '47',\n 'showCountryCodeList': false\n },\n 'SK': {\n 'status': 'assigned',\n 'phoneCountryCode': '421',\n 'showCountryCodeList': false\n },\n 'SL': {\n 'status': 'assigned',\n 'phoneCountryCode': '232',\n 'showCountryCodeList': false\n },\n 'SM': {\n 'status': 'assigned',\n 'phoneCountryCode': '378',\n 'showCountryCodeList': false\n },\n 'SN': {\n 'status': 'assigned',\n 'phoneCountryCode': '221',\n 'showCountryCodeList': false\n },\n 'SO': {\n 'status': 'assigned',\n 'phoneCountryCode': '252',\n 'showCountryCodeList': false\n },\n 'SR': {\n 'status': 'assigned',\n 'phoneCountryCode': '597',\n 'showCountryCodeList': false\n },\n 'SS': {\n 'status': 'assigned',\n 'phoneCountryCode': '211',\n 'showCountryCodeList': false\n },\n 'ST': {\n 'status': 'assigned',\n 'phoneCountryCode': '239',\n 'showCountryCodeList': false\n },\n 'SV': {\n 'status': 'assigned',\n 'phoneCountryCode': '503',\n 'showCountryCodeList': false\n },\n 'SX': {\n 'status': 'assigned',\n 'phoneCountryCode': '1',\n 'showCountryCodeList': false\n },\n 'SY': {\n 'status': 'assigned',\n 'phoneCountryCode': '963',\n 'showCountryCodeList': false\n },\n 'SZ': {\n 'status': 'assigned',\n 'phoneCountryCode': '268',\n 'showCountryCodeList': false\n },\n 'TC': {\n 'status': 'assigned',\n 'phoneCountryCode': '1',\n 'showCountryCodeList': false\n },\n 'TD': {\n 'status': 'assigned',\n 'phoneCountryCode': '235',\n 'showCountryCodeList': false\n },\n 'TF': {\n 'status': 'assigned',\n 'phoneCountryCode': '262',\n 'showCountryCodeList': false\n },\n 'TG': {\n 'status': 'assigned',\n 'phoneCountryCode': '228',\n 'showCountryCodeList': false\n },\n 'TH': {\n 'status': 'assigned',\n 'phoneCountryCode': '66',\n 'showCountryCodeList': false\n },\n 'TJ': {\n 'status': 'assigned',\n 'phoneCountryCode': '992',\n 'showCountryCodeList': false\n },\n 'TK': {\n 'status': 'assigned',\n 'phoneCountryCode': '690',\n 'showCountryCodeList': false\n },\n 'TL': {\n 'status': 'assigned',\n 'phoneCountryCode': '670',\n 'showCountryCodeList': false\n },\n 'TM': {\n 'status': 'assigned',\n 'phoneCountryCode': '993',\n 'showCountryCodeList': false\n },\n 'TN': {\n 'status': 'assigned',\n 'phoneCountryCode': '216',\n 'showCountryCodeList': false\n },\n 'TO': {\n 'status': 'assigned',\n 'phoneCountryCode': '676',\n 'showCountryCodeList': false\n },\n 'TR': {\n 'status': 'assigned',\n 'phoneCountryCode': '90',\n 'showCountryCodeList': true\n },\n 'TT': {\n 'status': 'assigned',\n 'phoneCountryCode': '1',\n 'showCountryCodeList': false\n },\n 'TV': {\n 'status': 'assigned',\n 'phoneCountryCode': '688',\n 'showCountryCodeList': false\n },\n 'TW': {\n 'status': 'assigned',\n 'phoneCountryCode': '886',\n 'showCountryCodeList': true\n },\n 'TZ': {\n 'status': 'assigned',\n 'phoneCountryCode': '255',\n 'showCountryCodeList': false\n },\n 'UA': {\n 'status': 'assigned',\n 'phoneCountryCode': '380',\n 'showCountryCodeList': false\n },\n 'UG': {\n 'status': 'assigned',\n 'phoneCountryCode': '256',\n 'showCountryCodeList': false\n },\n 'UM': {\n 'status': 'assigned',\n 'phoneCountryCode': '1',\n 'showCountryCodeList': false\n },\n 'US': {\n 'status': 'assigned',\n 'phoneCountryCode': '1',\n 'showCountryCodeList': false,\n 'hideInOtherCountries': true\n },\n 'UY': {\n 'status': 'assigned',\n 'phoneCountryCode': '598',\n 'showCountryCodeList': false\n },\n 'UZ': {\n 'status': 'assigned',\n 'phoneCountryCode': '998',\n 'showCountryCodeList': false\n },\n 'VA': {\n 'status': 'assigned',\n 'phoneCountryCode': '39',\n 'showCountryCodeList': false\n },\n 'VC': {\n 'status': 'assigned',\n 'phoneCountryCode': '1',\n 'showCountryCodeList': false\n },\n 'VE': {\n 'status': 'assigned',\n 'phoneCountryCode': '58',\n 'showCountryCodeList': false\n },\n 'VG': {\n 'status': 'assigned',\n 'phoneCountryCode': '1',\n 'showCountryCodeList': false\n },\n 'VI': {\n 'status': 'assigned',\n 'phoneCountryCode': '1',\n 'showCountryCodeList': false\n },\n 'VN': {\n 'status': 'assigned',\n 'phoneCountryCode': '84',\n 'showCountryCodeList': false\n },\n 'VU': {\n 'status': 'assigned',\n 'phoneCountryCode': '678',\n 'showCountryCodeList': false\n },\n 'WF': {\n 'status': 'assigned',\n 'phoneCountryCode': '681',\n 'showCountryCodeList': false\n },\n 'WS': {\n 'status': 'assigned',\n 'phoneCountryCode': '685',\n 'showCountryCodeList': false\n },\n 'YE': {\n 'status': 'assigned',\n 'phoneCountryCode': '967',\n 'showCountryCodeList': false\n },\n 'YT': {\n 'status': 'assigned',\n 'phoneCountryCode': '262',\n 'showCountryCodeList': false\n },\n 'ZA': {\n 'status': 'assigned',\n 'phoneCountryCode': '27',\n 'showCountryCodeList': false\n },\n 'ZM': {\n 'status': 'assigned',\n 'phoneCountryCode': '260',\n 'showCountryCodeList': false\n },\n 'ZW': {\n 'status': 'assigned',\n 'phoneCountryCode': '263',\n 'showCountryCodeList': false\n }\n };\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-form-components/src/phone/lib/territoriesByCode.js\n// module id = ../node_modules/xo-form-components/src/phone/lib/territoriesByCode.js\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _angular = require('angular');\n\nvar _squid = require('squid');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nrequire('../phoneInputB/directive.js');\n\nrequire('../phoneInputA/directive.js');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _squid.$Component.extend('$xoPhoneInput', {\n tag: 'xo-phone-input',\n template: _template2['default'],\n\n props: {\n phone: {\n type: 'var',\n reqiured: false\n },\n\n showPhoneType: {\n type: 'var',\n optional: true,\n 'default': true\n },\n\n hideWork: {\n type: 'var',\n optional: true,\n 'default': false\n },\n\n token: {\n type: 'var',\n optional: true\n },\n\n exclude: {\n type: 'var',\n optional: true\n },\n\n hidePhoneType: {\n type: 'var',\n optional: true,\n 'default': false\n },\n\n country: {\n type: 'var',\n optional: true\n }\n },\n\n lifecycle: {\n enter: function enter() {\n var _this = this;\n\n var getTreatment = function getTreatment() {\n\n if ((0, _squid.$feature)('showNewPhoneDesign', false, _squid.$locale.country)) {\n return true;\n }\n\n var throttle = void 0;\n\n if (_squid.$config['newPhoneDesignThrottle']) {\n\n throttle = _squid.$config['newPhoneDesignThrottle']['DEFAULT'];\n\n if (_squid.$config['newPhoneDesignThrottle'][_squid.$locale.country] >= 0) {\n throttle = _squid.$config['newPhoneDesignThrottle'][_squid.$locale.country];\n }\n }\n\n var id = _squid.$locale.country + _angular.$rootScope.token;\n return throttle !== undefined && (0, _squid.$experiment)('new_phone_design_exp', throttle, id, {}) ? true : false;\n };\n\n this.treatment = getTreatment();\n\n this.$watch('showPhoneType', function () {\n _this.hidePhoneType = _this.showPhoneType === false;\n }, true);\n }\n }\n\n});\n\n\n_angular.$rootScope;\n\n_squid.$Component;\n\n_squid.$locale;\n\n_squid.$experiment;\n\n_squid.$config;\n\n_squid.$feature;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-form-components/src/phone/phoneInput/directive.js\n// module id = ../node_modules/xo-form-components/src/phone/phoneInput/directive.js\n// module chunks = 0","module.exports = \"\\n\\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-form-components/src/phone/phoneInput/template.html\n// module id = ../node_modules/xo-form-components/src/phone/phoneInput/template.html\n// module chunks = 0","\n\nvar _squid = require('squid');\n\nrequire('xo-ui-components/src/directionality/directive');\n\nrequire('xo-ui-components/src/dropdown/directive');\n\nrequire('xo-ui-components/src/error-tooltip/directive');\n\nrequire('xo-ui-components/src/floating-label/directive');\n\nvar _territoriesByCode = require('../lib/territoriesByCode');\n\nvar _territoriesByCode2 = _interopRequireDefault(_territoriesByCode);\n\nrequire('./styles');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nangular.module().directive('xoPhoneInputA', function () {\n return {\n template: _template2['default'],\n scope: {\n phone: '=?',\n showPhoneType: '=?',\n exclude: '@?',\n country: '=?'\n },\n\n link: function link(scope, element, attr, controller) {\n element.on('keyup', function (event) {\n element.find('.telephone').mask(scope.mask, {\n 'translation': {\n 0: { pattern: /[0-9]/ }\n }\n });\n });\n },\n\n controller: ['$scope', function ($scope) {\n $scope.locale = _squid.$locale;\n $scope.IntDialingCodes = _territoriesByCode2['default'];\n $scope.defaultCountryPhoneCode = _territoriesByCode2['default'][_squid.$locale.country];\n $scope.showPhoneType = (0, _squid.$feature)('phoneType', true, $scope.country) && $scope.showPhoneType !== false;\n\n // dont display countries that are tagged with hideInOtherCountries flag in territoriesByCode.js.\n // if localeCountry and dropdown country are same ignore hideInOtherCountries and display the countrycode.\n $scope.hideCountry = function (dropdownCountry, hideInOtherCountries) {\n return _squid.$locale.country !== dropdownCountry && hideInOtherCountries;\n };\n\n $scope.phone = $scope.phone || {};\n $scope.phone.phoneType = $scope.phone.phoneType || 'Mobile';\n $scope.phone.IntDialingCountryCode = $scope.defaultCountryPhoneCode.phoneCountryCode;\n\n angular.extend($scope.phone, {\n phoneCountryCode: _squid.$locale.country\n });\n\n function getPhoneMask(phoneType, phoneEntry) {\n var defaultMask = '0000000000000000';\n var masks = phoneEntry && phoneEntry.masks;\n var mobileMask = masks && masks.MOBILE ? masks.MOBILE : defaultMask;\n var fixedLineMask = masks && masks.FIXED_LINE ? masks.FIXED_LINE : defaultMask;\n return phoneType === 'Mobile' ? mobileMask : fixedLineMask;\n }\n\n function getPhonePattern(phoneEntry) {\n var defaultPattern = '^[0-9]+$';\n var patterns = phoneEntry && phoneEntry.patterns;\n // less stric regex validation in place for now, just use general regex to match mobile AND fixed-line formats\n // for now we use less strict regex validation because we are not ready for this more strict validation\n if (patterns) {\n return patterns.GENERAL ? patterns.GENERAL : defaultPattern;\n }\n return defaultPattern;\n\n // more strict regex validaiton based on phone type is found commented below\n // var ret;\n // switch ($scope.phone.phoneType) {\n // case 'Mobile':\n // ret = patterns.MOBILE;\n // break;\n // case 'Home':\n // case 'Work':\n // ret = patterns.FIXED_LINE;\n // break;\n // default:\n // ret = patterns.GENERAL;\n // break;\n // }\n // return ret ? ret : defaultPattern;\n }\n\n function populatePhoneMetadata() {\n if (!$scope.metadata || $scope.metadata.country !== _squid.$locale.metadata.country) {\n $scope.metadata = angular.copy(_squid.$locale.metadata);\n }\n var phoneEntry = $scope.metadata.phoneEntry;\n $scope.mask = getPhoneMask($scope.phone.phoneType, phoneEntry);\n $scope.pattern = getPhonePattern(phoneEntry);\n }\n\n populatePhoneMetadata();\n\n // Reset the phone number mask from according to the phone type\n $scope.phoneTypeChanged = function () {\n $scope.mask = getPhoneMask($scope.phone.phoneType, $scope.metadata.phoneEntry);\n $scope.pattern = getPhonePattern($scope.metadata.phoneEntry);\n $('.telephone').mask($scope.mask);\n };\n\n $scope.$watch('phone.phoneCountryCode', function (newValue) {\n $scope.phone.IntDialingCountryCode = _territoriesByCode2['default'][newValue].phoneCountryCode;\n });\n\n $scope.$on('localeChange', function () {\n $scope.defaultCountryPhoneCode = _territoriesByCode2['default'][_squid.$locale.country];\n $scope.phone.phoneCountryCode = _squid.$locale.country;\n if (!$scope.metadata || $scope.metadata.country !== _squid.$locale.metadata.country) {\n populatePhoneMetadata();\n $('.telephone').mask($scope.mask);\n }\n });\n\n $scope.$watch('country', function (newVal) {\n if (newVal) {\n $scope.defaultCountryPhoneCode = _territoriesByCode2['default'][$scope.country];\n $scope.phone.phoneCountryCode = $scope.country;\n\n if (!$scope.metadata || $scope.metadata.country !== $scope.country) {\n\n $scope.metadata = _squid.$MetadataModel.create();\n $scope.metadata.choose($scope.country, _squid.$locale.lang).then(function () {\n\n var phoneEntry = $scope.metadata.phoneEntry;\n $scope.mask = getPhoneMask($scope.phone.phoneType, phoneEntry);\n $scope.pattern = getPhonePattern(phoneEntry);\n\n $('.telephone').mask($scope.mask);\n });\n }\n }\n });\n\n $scope.showWork = $scope.exclude === 'WORK';\n }]\n };\n});\n\n_squid.$feature;\n\n_squid.$locale;\n\n_squid.$MetadataModel;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-form-components/src/phone/phoneInputA/directive.js\n// module id = ../node_modules/xo-form-components/src/phone/phoneInputA/directive.js\n// module chunks = 0","module.exports = \"
      \\n
      \\n \\n \\n
      \\n\\n
      \\n \\n \\n
      \\n\\n
      \\n\\n \\n \\n
      \\n
      \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-form-components/src/phone/phoneInputA/template.html\n// module id = ../node_modules/xo-form-components/src/phone/phoneInputA/template.html\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _angular = require('angular');\n\nvar _jquery = require('jquery');\n\nvar _jquery2 = _interopRequireDefault(_jquery);\n\nvar _squid = require('squid');\n\nvar _logger = require('xo-beaver/dist/logger');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nrequire('./styles');\n\nrequire('jqueryMask');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar MOBILE = 'Mobile';\nvar KEYS = {\n ENTER: 13,\n UP: 38,\n DOWN: 40,\n TAB: 9,\n ESC: 27,\n A: 65,\n Z: 90,\n SPACE: 32\n};\n\nvar query = '';\nvar queryTimer = null;\n\nexports['default'] = _squid.$Component.extend('$xoPhoneInputB', {\n tag: 'xo-phone-input-b',\n template: _template2['default'],\n\n props: {\n phone: {\n type: 'var',\n required: false\n },\n\n hidePhoneType: {\n type: 'var',\n required: false\n },\n\n hideWork: {\n type: 'var',\n required: false,\n 'default': false\n }\n },\n\n actions: {\n\n // return the phonePattern\n getPhonePattern: function getPhonePattern(phoneEntry) {\n var DEFAULT_PATTERN = '^[0-9]+$';\n var patterns = phoneEntry && phoneEntry.patterns;\n // less strict regex validation in place for now, just use general regex to match mobile AND fixed-line\n // formats\n // for now we use less strict regex validation because we are not ready for this more strict validation\n return patterns && patterns.GENERAL ? patterns.GENERAL : DEFAULT_PATTERN;\n },\n\n\n // return phoneMask based on phone Type\n getPhoneMask: function getPhoneMask(phoneType, phoneEntry) {\n var DEFAULT_MASK = '0000000000000000';\n var masks = phoneEntry && phoneEntry.masks;\n\n if (phoneType === MOBILE) {\n return masks && masks.MOBILE ? masks.MOBILE : DEFAULT_MASK;\n } else {\n return masks && masks.FIXED_LINE ? masks.FIXED_LINE : DEFAULT_MASK;\n }\n },\n\n\n // set the phone number mask and pattern\n updatePhoneMaskAndPattern: function updatePhoneMaskAndPattern() {\n var country = this.metadata.localization.country;\n // If phoneCountry does not match the country the metadata is from then\n // we set phoneEntry to a falsey value so the default pattern and mask are\n // used for the phone input.\n\n var phoneEntry = this.phoneCountry === country && this.metadata.phoneEntry;\n\n this.mask = this.actions.getPhoneMask(this.phone.phoneType, phoneEntry);\n this.pattern = this.actions.getPhonePattern(phoneEntry);\n this.actions.applyMaskOnPhoneInput();\n },\n getPhoneDialingCode: function getPhoneDialingCode(territory, state) {\n var overrides = this.metadata.regionalOverrides;\n\n if (state && overrides && overrides.hasOwnProperty(state) && overrides[state].props.internationalDialingCode) {\n return overrides[state].props.internationalDialingCode;\n }\n\n return territory.internationalDialingCode;\n },\n\n\n // fetch the passed country's international dialing code\n updateDialingCodeAndCountry: function updateDialingCodeAndCountry() {\n var territory = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var state = arguments[1];\n\n this.phoneCountry = territory.code;\n this.phone.IntDialingCountryCode = this.actions.getPhoneDialingCode(territory, state);\n (0, _jquery2['default'])('.fixedCode').text('+' + this.phone.IntDialingCountryCode);\n },\n\n\n /* if user chooses a different dialing code -\n -. fetch the new country's metadata\n -. update phone Country and dialing code\n -. update the phone number mask and pattern (no explicit call as it happens when metadata updates)\n -. close the dropdown if open\n */\n updatePhoneFieldMetadata: function updatePhoneFieldMetadata() {\n var territory = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var state = arguments[1];\n\n // create a local copy of metadata (only happens on initial load)\n if (!this.metadata) {\n this.metadata = _squid.$MetadataModel.instance(0, {\n 'noBroadcast': true\n });\n }\n\n this.metadata.choose(territory.code);\n\n this.actions.updateDialingCodeAndCountry(territory, state);\n // Whenever metadata is updated that is promise returns then the metadata listener will update the mask\n // and pattern so not calling it here. Moving on...\n\n // close the dropdown if open\n if (this.listVisible) {\n this.actions.collapseListAndFocusOnParent();\n }\n\n _logger.$logger.info('phone_country_code_updated', {\n territory: territory.code\n });\n },\n getTerritoryDataFromMetadata: function getTerritoryDataFromMetadata(country) {\n return _squid.$util.find(this.dialingCodeList, function (_ref) {\n var code = _ref.code;\n return code === country;\n });\n },\n\n\n // set the stage on first load or on locale change\n init: function init(country) {\n this.hidePhoneType = this.hidePhoneType || (0, _squid.$feature)('hidePhoneType', false, country);\n\n this.showDialingCodeContainer = (0, _squid.$feature)('showDialingCodeContainer', false, country);\n\n this.listVisible = false;\n\n // default the phone type to Mobile if not specified\n // Note: this.phone is not optional\n this.phone = this.phone || {};\n\n this.phone.phoneType = this.phone.phoneType || 'Mobile';\n\n // populate the dialing code list/options\n var _$locale$metadata = _squid.$locale.metadata,\n _$locale$metadata$ter = _$locale$metadata.territory,\n territory = _$locale$metadata$ter === undefined ? [] : _$locale$metadata$ter,\n _$locale$metadata$add = _$locale$metadata.additionalDialingCodes,\n additionalDialingCodes = _$locale$metadata$add === undefined ? [] : _$locale$metadata$add;\n var _$config$dialingCodeB = _squid.$config.dialingCodeBlacklist,\n dialingCodeBlacklist = _$config$dialingCodeB === undefined ? [] : _$config$dialingCodeB;\n\n // Merge dialing codes from supported countries with dialing codes from\n // assigned countries and then filtering countries that are blacklisted\n\n this.dialingCodeList = territory.concat(additionalDialingCodes).filter(function (_ref2) {\n var code = _ref2.code;\n return !dialingCodeBlacklist.includes(code);\n }).sort(function (a, b) {\n return a.name.localeCompare(b.name);\n });\n var territoryData = this.actions.getTerritoryDataFromMetadata(this.phone.phoneCountry || country);\n\n this.actions.updatePhoneFieldMetadata(territoryData);\n },\n\n\n // helper to show the options list and focus on the selected phone country option\n expandList: function expandList() {\n (0, _jquery2['default'])('.country-list').show();\n this.listVisible = true;\n (0, _jquery2['default'])('.country-list .country.selected').focus();\n },\n\n\n // helper to collapse the options\n collapseList: function collapseList() {\n this.listVisible = false;\n (0, _jquery2['default'])('.country-list').hide();\n },\n\n\n // helper to collapse the options and xfer focus back to the parent dropdown\n collapseListAndFocusOnParent: function collapseListAndFocusOnParent() {\n this.actions.collapseList();\n (0, _jquery2['default'])('#dialingCodeContainer div.selected-flag').focus();\n },\n\n\n // helper to toggle the dropdown list\n toggleList: function toggleList() {\n if (this.listVisible) {\n this.actions.collapseListAndFocusOnParent();\n } else {\n this.actions.expandList();\n }\n },\n\n\n // remove highlighting from other list items and highlight the given item\n highlightListItem: function highlightListItem(listItem) {\n (0, _jquery2['default'])('li.country').removeClass('highlight');\n listItem.addClass('highlight');\n listItem.focus();\n },\n\n // select the given item and update the phone field metadata\n selectListItem: function selectListItem(listItem) {\n var country = listItem.attr('data-country-code');\n var territory = this.actions.getTerritoryDataFromMetadata(country);\n\n this.actions.updatePhoneFieldMetadata(territory);\n },\n\n // find the first list item whose name starts with the query string\n searchForCountry: function searchForCountry(queryString) {\n for (var i = 0; i < this.dialingCodeList.length; i++) {\n if (this.actions.startsWith(this.dialingCodeList[i].name, queryString)) {\n\n var listItem = (0, _jquery2['default'])('.country-list').find('[data-country-code=\"' + this.dialingCodeList[i].code + '\"]');\n // update highlighting and scroll\n this.actions.highlightListItem(listItem);\n break;\n }\n }\n },\n\n // check if (uppercase) string a starts with string b\n startsWith: function startsWith(a, b) {\n return a.substr(0, b.length).toUpperCase() === b;\n },\n\n // When Switching between double Byte -> Single Byte character\n // angular model is not properly updated by jquery-mask (PPPLMER-52127)\n // re-update the model with entered value.\n updateAngularModel: function updateAngularModel() {\n if (this.phone.ispreFill) {\n // We set the flag to false once the prefill is completed.\n // This helps to update angular model properly upon next keyUp()\n this.phone.ispreFill = false;\n } else {\n this.phone.telephone = this.$element.find('.telephone').val();\n }\n },\n\n // format the phone number\n applyMaskOnPhoneInput: function applyMaskOnPhoneInput() {\n // If `this.mask` is `undefined` and we try to mask this field\n // jQuery mask will throw a type error when it tries to access\n // `mask.length` during a for loop.\n if (!this.mask) {\n return;\n }\n\n this.actions.updateAngularModel();\n\n this.$element.find('.telephone').mask(this.mask, {\n 'translation': {\n 0: { pattern: /[0-9]/ }\n }\n });\n },\n\n // highlight the event target\n handleListMouseover: function handleListMouseover($event) {\n this.actions.highlightListItem((0, _jquery2['default'])($event.target));\n },\n\n // expand the list when down arrow is pressed\n handleKeyboardInputForDropdown: function handleKeyboardInputForDropdown($event) {\n\n var key = $event.which;\n if (key === KEYS.DOWN || key === KEYS.UP || key === KEYS.SPACE) {\n $event.stopPropagation();\n $event.preventDefault();\n this.actions.expandList();\n } else {\n this.actions.collapseList();\n }\n },\n\n /*\n navigating list using the keyboard\n up, down, esc, enter and letter keys\n */\n handleKeyboardInputForList: function handleKeyboardInputForList($event) {\n var $listItems = (0, _jquery2['default'])('li.country');\n var key = $event.which;\n var $selected = (0, _jquery2['default'])($event.target);\n var $current = void 0;\n\n $event.stopPropagation();\n $event.preventDefault();\n\n // if user types in an input, focus on the first country starting with that query\n // upper case letters (since keyup/keydown only return upper case letters)\n if (key >= KEYS.A && key <= KEYS.Z) {\n if (queryTimer) {\n _angular.$timeout.cancel(queryTimer);\n }\n\n query += String.fromCharCode(key);\n this.actions.searchForCountry(query);\n\n queryTimer = (0, _angular.$timeout)(function () {\n query = '';\n }, 1e3);\n\n return;\n }\n\n // ignore other keys\n if (key !== KEYS.DOWN && key !== KEYS.UP && key !== KEYS.ENTER && key !== KEYS.ESC) {\n return;\n }\n\n // select the the new phone country when user hits enter\n if (key === KEYS.ENTER) {\n this.actions.selectListItem($selected);\n return;\n }\n\n // close the list if escape is pressed\n if (key === KEYS.ESC) {\n this.actions.collapseListAndFocusOnParent();\n return;\n }\n\n // highlight the next/prev element when arrow key is pressed\n if (key === KEYS.DOWN) // Down key\n {\n if (!$selected.length || $selected.is(':last-child')) {\n $current = $listItems.eq(0);\n } else {\n $current = $selected.next();\n }\n }\n\n // Up key\n if (key === KEYS.UP) {\n if (!$selected.length || $selected.is(':first-child')) {\n $current = $listItems.last();\n } else {\n $current = $selected.prev();\n }\n }\n\n this.actions.highlightListItem($current);\n }\n },\n\n lifecycle: {\n enter: function enter() {\n this.actions.init(_squid.$locale.country);\n },\n populate: function populate() {\n var _this = this;\n\n this.$on('localeChange', function () {\n _this.actions.init(_squid.$locale.country);\n });\n\n // update the phone mask and pattern when metadata is changed\n this.$watch('metadata', function () {\n _this.actions.updatePhoneMaskAndPattern();\n }, true);\n\n // update the mask when .telephone val changes either programatically or via user action\n this.$watch('this.phone.telephone', function (newVal) {\n if (newVal) {\n _this.$element.find('.telephone').val(newVal).trigger('input');\n }\n }, true);\n\n var addressChangeEvent = _angular.$rootScope.$on('billingAddressStateChange', function (e, address) {\n var territory = _this.actions.getTerritoryDataFromMetadata(_this.metadata.country);\n _this.actions.updatePhoneFieldMetadata(territory, address.state);\n });\n\n this.$on('$destroy', addressChangeEvent);\n\n // hide the dropdown list if a click occurs anywhere else on the page\n (0, _jquery2['default'])('*').on('click', function (event) {\n if (!(0, _jquery2['default'])('#dialingCodeContainer div.selected-flag').is((0, _jquery2['default'])(event.target))) {\n _this.actions.collapseList();\n }\n });\n }\n }\n});\n\n\n_angular.$rootScope;\n\n_angular.$timeout;\n\n_squid.$Component;\n\n_squid.$locale;\n\n_squid.$feature;\n\n_squid.$util;\n\n_squid.$MetadataModel;\n\n_squid.$config;\n\n_logger.$logger;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-form-components/src/phone/phoneInputB/directive.js\n// module id = ../node_modules/xo-form-components/src/phone/phoneInputB/directive.js\n// module chunks = 0","module.exports = \"
      \\n
      \\n\\n \\n\\n \\n
      \\n\\n\\n
      \\n\\n
      \\n
      \\n
      \\n
      \\n
      \\n\\n
        \\n
      • \\n\\n
        \\n
        \\n
        \\n\\n {{ value.name }}\\n\\n +{{ value.internationalDialingCode }}\\n
      • \\n
      \\n
      \\n\\n \\n
      \\n\\n\\n
      \\n\\n +{{ phone.IntDialingCountryCode }}\\n \\n \\n
      \\n\\n\\n
      \\n\\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-form-components/src/phone/phoneInputB/template.html\n// module id = ../node_modules/xo-form-components/src/phone/phoneInputB/template.html\n// module chunks = 0","module.exports = \"
      \\n
      \\n
      \\n \\n

      \\n {{ content('creditcard.hi', {userName: auth.first_name ? auth.first_name : auth.email}) }}\\n \\n {{ content('memberReview.notYou')}}\\n \\n

      \\n \\n
      \\n\\n \\n

      \\n \\n

      \\n \\n
      \\n
      \\n
      \\n \\n
      \\n
      \\n
      \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-form-components/src/phone/template.html\n// module id = ../node_modules/xo-form-components/src/phone/template.html\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _angular = require('angular');\n\nvar _angular2 = _interopRequireDefault(_angular);\n\nvar _index = require('squid/index');\n\nrequire('xo-ui-components/src/floating-label/directive');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _index.$Component.extend('$xoPlaceOfBirth', {\n tag: 'xo-place-of-birth',\n template: _template2['default'],\n\n props: {\n user: {\n type: 'var',\n required: false\n }\n },\n\n lifecycle: {\n populate: function populate() {\n var _this = this;\n\n this.populateCountryList = function () {\n var guestBlockedCountries = _index.$config.guestBlockedCountries || [];\n _this.metadata = _angular2['default'].copy(_index.$locale.metadata);\n var placeOfBirth = {};\n\n _this.countriesList = _this.metadata.territory.filter(function (c) {\n\n if (c.code === _index.$locale.country) {\n placeOfBirth = c;\n }\n return !(guestBlockedCountries.indexOf(c.code) > -1);\n });\n // set the default select option in the place of birth dropdown\n _this.selectedPlaceOfBirth = placeOfBirth;\n _this.user.placeofbirth = placeOfBirth.code;\n };\n this.populateCountryList();\n this.$on('metadataChange', this.populateCountryList);\n }\n },\n\n actions: {\n updatePlaceOfBirth: function updatePlaceOfBirth(country_code) {\n this.user.placeofbirth = country_code;\n }\n }\n});\n\n\n_index.$Component;\n\n_index.$locale;\n\n_index.$config;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-form-components/src/place-of-birth/directive.js\n// module id = ../node_modules/xo-form-components/src/place-of-birth/directive.js\n// module chunks = 0","module.exports = \"
      \\n \\n \\n
      \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-form-components/src/place-of-birth/template.html\n// module id = ../node_modules/xo-form-components/src/place-of-birth/template.html\n// module chunks = 0","\n\nexports.__esModule = true;\n\nrequire('xo-ui-components/src/dropdown/directive');\n\nrequire('xo-ui-components/src/error-tooltip/directive');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nvar _squid = require('squid');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _squid.$Component.extend('$xoSelectShippingCountry', {\n tag: 'xo-select-shipping-country',\n template: _template2['default'],\n props: {\n shippingAddress: {\n type: 'var',\n required: false\n },\n disableChangeShippingCountry: {\n type: 'var',\n required: false\n }\n },\n actions: {\n // Return the country list, with the selected address country at the top\n getList: function getList(address) {\n var defaultCountryCode = address && address.country || _squid.$locale.country;\n var countryList = _squid.$locale.metadata.territory;\n var isDefaultCountry = function isDefaultCountry(country) {\n return country.code === defaultCountryCode;\n };\n var defaultCountry = _squid.$util.find(countryList, isDefaultCountry);\n var res = countryList.filter(function (country) {\n return !isDefaultCountry(country);\n });\n\n res.unshift(defaultCountry);\n\n return res;\n }\n },\n lifecycle: {\n enter: function enter() {\n var _this = this;\n\n this.countryList = this.actions.getList(this.props.shippingAddress);\n\n this.$on('metadataChange', function () {\n _this.countryList = _this.actions.getList(_this.props.shippingAddress);\n });\n }\n }\n});\n\n\n_squid.$Component;\n\n_squid.$locale;\n\n_squid.$util;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-form-components/src/select-shipping-country/directive.js\n// module id = ../node_modules/xo-form-components/src/select-shipping-country/directive.js\n// module chunks = 0","module.exports = \"\\n
      \\n \\n \\n
      \\n
      \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-form-components/src/select-shipping-country/template.html\n// module id = ../node_modules/xo-form-components/src/select-shipping-country/template.html\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _index = require('squid/index');\n\nvar _index2 = require('xo-models/src/checkout/index');\n\nvar _index3 = require('xo-models/src/user/index');\n\nrequire('xo-ui-components/src/dropdown/directive');\n\nrequire('xo-ui-components/src/error-tooltip/directive');\n\nvar _utilFunctions = require('./utilFunctions');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nrequire('./styles');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _index.$Component.extend('xoTravelRule', {\n tag: 'xo-travel-rule',\n template: _template2['default'],\n\n props: {\n token: {\n type: 'var',\n required: false\n },\n finish: {\n type: 'var',\n required: false\n },\n onUserInfoSuccess: {\n type: 'var',\n required: false\n }\n },\n\n resolve: {\n models: function models() {\n return {\n checkoutSession: _index2.$CheckoutSessionModel.instance(this.token).retrieve()\n };\n }\n },\n\n actions: {\n submit: function submit() {\n var _this = this;\n\n var data = {};\n\n if (this.needPayerGovtId) {\n var chosenIdDetails = this.idTypes.find((0, _utilFunctions.findChosenId)(this.idData.type));\n\n // Scrub the formatting when invoking the backend services.\n var unformatted = (this.idData.value || '').replace(/[^0-9a-zA-Z]+/g, '');\n\n data.newDocId = {\n type: chosenIdDetails.idType,\n subType: chosenIdDetails.idSubtype,\n issuerCountry: this.idData.country,\n issuer: chosenIdDetails.idIssuer,\n value: unformatted,\n collectionPoint: 'UNKNOWN',\n placeOfIssue: this.idData.country\n };\n }\n\n if (this.needPayerAddress) {\n var address = this.address;\n\n\n data.newAddress = {\n address1: address.line1,\n address2: address.line2,\n city: address.city,\n state: address.state,\n zip: address.postal_code,\n iso_country: 'US'\n };\n }\n\n var onUserInfoSuccess = this.onUserInfoSuccess || function () {\n var checkoutCart = _index2.$CheckoutCartModel.instance(_this.token);\n\n return _this.models.checkoutSession.action('create', {\n data: {\n baToken: checkoutCart.billing && checkoutCart.billing.ba_token\n },\n success: function success() {\n // Clear the errors if create checkout session was successful\n _this.models.checkoutSession.errorData = undefined;\n _this.finish();\n }\n });\n };\n\n this.userInfo.action('governmentId-address', {\n data: data,\n\n success: onUserInfoSuccess,\n\n validation: function validation(validationData) {\n var $field = _this.$element.find('#data');\n\n $field.addClass('backendError');\n $field.attr('aria-invalid', true);\n $field.focus();\n }\n });\n }\n },\n\n lifecycle: {\n populate: function populate() {\n var _this2 = this;\n\n var country = _index.$locale.getCountryCodeISO();\n\n this.country = country;\n this.address = { country: country };\n this.countryList = _index.$locale.metadata.territory;\n this.idTypes = (0, _utilFunctions.getIdTypes)(_index.$locale.content);\n this.idData = (0, _utilFunctions.getIdData)();\n\n this.idTypeChanged = function () {\n _this2.idData.country = 'US';\n };\n\n var checkoutSession = _index2.$CheckoutSessionModel.instance(this.token);\n var payerDetailsTypes = checkoutSession.get('errorData.resolution.data', []);\n\n if (payerDetailsTypes.includes('GOVERNMENT_ID')) {\n this.needPayerGovtId = true;\n }\n\n if (payerDetailsTypes.includes('STREET_ADDRESS')) {\n this.needPayerAddress = true;\n }\n\n this.userInfo = _index3.$UserInfoModel.instance(this.token);\n }\n }\n});\n// This component probably shouldn't be in xo-form-components, as xo-address-components depends on xo-form-components\n// If below is included, the tests will error due to duplicate xo-form-components being loaded.\n// import 'xo-address-components/src/add-address/directive';\n\n_index.$Component;\n\n_index.$locale;\n\n_index2.$CheckoutSessionModel;\n\n_index2.$CheckoutCartModel;\n\n_index3.$UserInfoModel;\n\n_utilFunctions.findChosenId;\n\n_utilFunctions.getIdData;\n\n_utilFunctions.getIdTypes;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-form-components/src/travel-rule/directive.js\n// module id = ../node_modules/xo-form-components/src/travel-rule/directive.js\n// module chunks = 0","module.exports = \"
      \\n
      \\n

      {{ content('travelRule.travelRule') }}

      \\n

      {{ content('travelRule.note') }}

      \\n\\n
      \\n
      \\n \\n \\n
      \\n
      \\n
      \\n
      \\n \\n
      \\n
      \\n \\n \\n
      \\n
      \\n \\n \\n
      \\n
      \\n \\n \\n
      \\n \\n
      \\n
      \\n
      \\n \\n \\n
      \\n
      \\n
      \\n\\n
      \\n

      {{ content('travelRule.pleaseEnterStreetAddress') }}

      \\n \\n
      \\n\\n
      \\n \\n
      \\n
      \\n
      \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-form-components/src/travel-rule/template.html\n// module id = ../node_modules/xo-form-components/src/travel-rule/template.html\n// module chunks = 0","\n\nexports.__esModule = true;\nvar findChosenId = exports.findChosenId = function findChosenId(id) {\n return function () {\n var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n name = _ref.name;\n\n return name === id;\n };\n};\n\nvar getIdTypes = exports.getIdTypes = function getIdTypes(content) {\n return [{\n name: 'SSN',\n value: content.get('travelRule.ssnDropdownLabel'),\n idType: 'TAX_ID',\n idSubtype: 'SSN',\n idIssuer: 'US_SSN'\n }, {\n name: 'TaxID',\n value: content.get('travelRule.taxIdDropdownLabel'),\n idType: 'TAX_ID',\n idSubtype: 'ITIN',\n idIssuer: 'US_ITIN'\n }, {\n name: 'EmployerID',\n value: content.get('travelRule.employerIdDropdownLabel'),\n idType: 'TAX_ID',\n idSubtype: 'TIN',\n idIssuer: 'US_TIN'\n }, {\n name: 'Passport',\n value: content.get('travelRule.passportDropdownLabel'),\n idType: 'PASSPORT',\n idIssuer: 'PASSPORT'\n }, {\n name: 'AlienNumber',\n value: content.get('travelRule.aNumberDropdownLabel'),\n idType: 'IMMGT_ID',\n idIssuer: 'IMMIGRATION'\n }];\n};\n\nvar getIdData = exports.getIdData = function getIdData() {\n return {\n type: 'SSN',\n value: '',\n country: 'US'\n };\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-form-components/src/travel-rule/utilFunctions.js\n// module id = ../node_modules/xo-form-components/src/travel-rule/utilFunctions.js\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _squid = require('squid');\n\nrequire('xo-ui-components/src/error-tooltip/directive');\n\nrequire('xo-ui-components/src/prefix-attrs-with/directive');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _squid.$Component.extend('$xoZipcode', {\n tag: 'xo-zipcode',\n\n template: _template2['default'],\n\n props: {\n address: {\n reqiured: false,\n type: 'var'\n },\n attrPrefix: {\n required: false,\n type: 'var'\n },\n country: {\n required: false,\n type: 'str'\n },\n doneFn: {\n required: false,\n type: 'var'\n },\n keyPressFn: {\n required: false,\n type: 'var'\n },\n maxLength: {\n required: false,\n type: 'var'\n },\n postalCodeLabel: {\n required: false,\n type: 'var'\n },\n zipEntry: {\n required: false,\n type: 'var'\n },\n zipErrorKey: {\n required: false,\n type: 'str'\n },\n zipLabel: {\n required: false,\n type: 'str'\n },\n zipRequired: {\n reqiured: false,\n type: 'var'\n }\n },\n\n lifecycle: {\n enter: function enter() {\n this.formatRegex = undefined;\n this.inputParams = (0, _squid.$feature)('zipcodeInputParams', undefined, this.country);\n\n if (this.inputParams) {\n this.minLength = this.inputParams.minLength;\n this.maxLength = this.inputParams.maxLength;\n\n if (this.inputParams.formatPattern) {\n this.formatRegex = new RegExp(this.inputParams.formatPattern, 'g');\n }\n }\n\n this.formatZipWithDash = function (zipcode, index) {\n if (zipcode.length > index) {\n zipcode = zipcode.slice(0, index) + '-' + zipcode.slice(index);\n }\n\n return zipcode;\n };\n }\n },\n\n actions: {\n changeZip: function changeZip(zipcode) {\n if (zipcode) {\n\n if (this.formatRegex) {\n zipcode = zipcode.replace(this.formatRegex, '');\n }\n\n if (this.inputParams && this.inputParams.formatZip) {\n zipcode = this.formatZipWithDash(zipcode, this.inputParams.minLength);\n }\n\n this.address.postal_code = zipcode;\n }\n },\n doneFunction: function doneFunction() {\n if (this.doneFn) {\n this.doneFn();\n }\n },\n keyPressHandler: function keyPressHandler(event) {\n if (this.keyPressFn) {\n this.keyPressFn(event);\n }\n }\n }\n});\n\n\n_squid.$Component;\n\n_squid.$feature;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-form-components/src/zipcode/directive.js\n// module id = ../node_modules/xo-form-components/src/zipcode/directive.js\n// module chunks = 0","module.exports = \"
      \\n \\n \\n
      \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-form-components/src/zipcode/template.html\n// module id = ../node_modules/xo-form-components/src/zipcode/template.html\n// module chunks = 0","\n\nvar _angular = require('angular');\n\nvar _angular2 = _interopRequireDefault(_angular);\n\nrequire('squid/index');\n\nrequire('xo-beaver/dist/logger');\n\nvar _squid = require('squid');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n(function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n})(window.angular);\n\n_angular2['default'].module().factory('$fn', ['$populate', '$rootScope', '$window', '$logger', '$config', '$util', '$meta', '$q', function ($populate, $rootScope, $window, $logger, $config, $util, $meta, $q) {\n\n var fncls = 'fnparams-dede7cc5-15fd-4c75-a9f4-36c430ee3a99';\n var options = {\n fnSessionId: getFnCorrId(),\n sourceId: 'XOONBOARDINGNODEWEB',\n allowsCustomEvent: typeof CustomEvent !== 'undefined' && _angular2['default'].isFunction(CustomEvent),\n fnUrl: $config.urls.fraudnetUrl,\n passive: true\n };\n\n // Fraudnet initialization logging\n $logger.info('FN_Initialised', {\n 'allowsCustomEvent': options.allowsCustomEvent\n });\n\n // Get the unique id to pass to fraudnet - EC/WPS/BA token\n function getFnCorrId() {\n\n var fnCorrId = $rootScope.token || $meta.token;\n\n if ($meta.baToken) {\n $logger.info('BEAM_In_Hermes_Checkout');\n fnCorrId = $meta.baToken;\n } else if ($rootScope.fraudNetId) {\n fnCorrId = $rootScope.fraudNetId;\n }\n\n return fnCorrId;\n }\n\n // Call injectConfig before calling injectScript function\n function _injectScript(fnUrl) {\n var script = document.createElement('script');\n\n script.id = 'js-sync';\n script.src = fnUrl;\n document.body.appendChild(script);\n }\n\n function _injectConfig(configOptions) {\n var script = document.getElementById('fconfig');\n\n if (script) {\n if (script.parentNode) {\n script.parentNode.removeChild(script);\n }\n }\n\n script = document.createElement('script');\n script.id = 'fconfig';\n script.type = 'application/json';\n script.setAttribute('fncls', fncls);\n\n script.text = '{ \"f\": \"' + configOptions.fnSessionId + '\", \"s\": \"' + configOptions.sourceId + '\", \"cb\": \"fnCallback\" }';\n document.body.appendChild(script);\n }\n\n /*\n * trigger - this function will call injectConfig and injectScript\n * functions which actually load fraudnet required scripts\n */\n function trigger(scope) {\n var fnLoaded = !!$rootScope.fnLoaded;\n\n if (fnLoaded || !(0, _squid.$feature)('enableFraudnet')) {\n return false;\n }\n\n if (options.fnUrl) {\n\n $window.fnCallback = function () {\n if (scope) {\n scope.$emit('fnCallback');\n }\n };\n\n _injectConfig(options);\n _injectScript(options.fnUrl);\n\n $rootScope.fnLoaded = true;\n\n return true;\n }\n return false;\n }\n\n return {\n trigger: trigger\n };\n}]);\n\n_squid.$feature;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/fraudnet/fn.js\n// module id = ../node_modules/xo-guest-components/src/fraudnet/fn.js\n// module chunks = 0","\n\nexports.__esModule = true;\nvar frs_wps_optional = {\n frs_wps_optional_treatment1: {\n title: 'signup.createPayPalAccountFRSLine1Variant1',\n subTitle: 'signup.createPayPalAccountFRSLine2Variant1'\n },\n frs_wps_optional_treatment2: {\n title: 'signup.createPayPalAccountFRSLine1Variant2',\n subTitle: 'signup.createPayPalAccountFRSLine2Variant2'\n },\n frs_wps_optional_treatment3: {\n title: 'signup.createPayPalAccountFRSLine1Variant3',\n subTitle: 'signup.createPayPalAccountFRSLine2Variant1'\n }\n};\n\nexports['default'] = {\n test: {\n frs_wps_optional: frs_wps_optional\n }\n};\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest-upgrade-interstitial/constants/pxpExperimentConstants.js\n// module id = ../node_modules/xo-guest-components/src/guest-upgrade-interstitial/constants/pxpExperimentConstants.js\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _angular = require('angular');\n\nvar _squid = require('squid');\n\nvar _index = require('xo-models/src/onboard/index');\n\nvar _directive = require('xo-form-components/src/national-id-input/directive');\n\nvar _index2 = require('xo-models/src/frs/index');\n\nvar _logger = require('xo-beaver/dist/logger');\n\nvar _uiRouter = require('uiRouter');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nvar _pxpExperimentConstants = require('./constants/pxpExperimentConstants');\n\nvar _pxpExperimentConstants2 = _interopRequireDefault(_pxpExperimentConstants);\n\nrequire('../guest/onboardOptions/signup/directive');\n\nrequire('xo-ui-components/src/tooltip/directive');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _squid.$Component.extend('xoGuestUpgradeInterstitial', {\n tag: 'xo-guest-upgrade-interstitial',\n template: _template2['default'],\n\n props: {\n token: {\n type: 'var',\n required: false\n },\n parentModel: {\n type: 'var',\n required: false\n }\n },\n\n lifecycle: {\n enter: function enter() {\n var _this = this;\n\n this.locale = _squid.$locale;\n this.flags = this.props.parentModel.flags;\n if (!this.flags) {\n _logger.$logger.info('WPS_interstitial_render_error');\n return _uiRouter.$state.go('checkout.genericError', { code: 'PAYMENT_ALREADY_DONE' });\n }\n this.flags.wpsInterstitial = true;\n this.flags.showMobileEmailSection = true;\n this.onboard = this.props.parentModel.onboard;\n this.frsContentKeys = {};\n\n // If US, then show new e-sign compliance experience\n // Submit button text changes and return to merchant msg above button\n // with user action 'continue'\n if (this.locale.country === 'US') {\n this.showNewSignupComplianceExp = true;\n }\n\n if (this.flags.freeReturnShippingOptInFlowApplicable) {\n var treatmentName = this.flags.freeReturnShippingApplicableTreatment;\n var treatmentContentKeys = _pxpExperimentConstants2['default'].test['frs_wps_optional'][treatmentName];\n\n this.frsContentKeys = treatmentContentKeys ? treatmentContentKeys : {};\n }\n\n // Wait for the component to be populated and the template to be rendered\n // and then set `interstitialOpen` to `true`, which will add the class 'upsellOpen'\n // to the interstitial and trigger the transition to slide it onto the screen\n this.$on('populated', function () {\n _this.interstitialOpen = true;\n });\n },\n populate: function populate() {\n var _this2 = this;\n\n this.handleFrsContingency = function (message) {\n _logger.$logger.info('WPS_guest_upgrade_free_return_shipping_optin_' + message);\n _this2.logFptiFrsError();\n return _uiRouter.$state.go('checkout.done');\n };\n\n this.handleFrsError = function (message, error) {\n _logger.$logger.info('WPS_guest_upgrade_free_return_shipping_optin_' + message, error);\n _this2.logFptiFrsError();\n return _uiRouter.$state.go('checkout.done');\n };\n\n this.logFptiFrsError = function () {\n _logger.$logger.info('checkout_fpti', {\n from: 'guest_upgrade_interstitial_frs_optin_flow',\n to: 'process_frs_optin_user_failure'\n });\n };\n }\n },\n\n actions: {\n onSubmit: function onSubmit() {\n var _this3 = this;\n\n this.upgrade = new _index.$GuestUpgradeModel();\n\n this.upgrade.billing_address = this.onboard.billing_address;\n this.upgrade.user = this.onboard.user;\n this.upgrade.payerId = this.onboard.payerId;\n this.upgrade.transaction = this.onboard.transaction;\n this.upgrade.phone = this.onboard.phone;\n this.upgrade.marketing_optin = this.onboard.marketingOptin;\n this.upgrade.nationalIdModel = _directive.$NationalIdModel.instance(this.props.token);\n this.upgrade.experienceChannel = 'HERMES';\n\n var isFrsOptInFlow = this.flags.freeReturnShippingOptInFlowApplicable;\n var isFrsActiveFlow = this.flags.freeReturnShippingOptInActiveFlow;\n\n // Close the interstitial after submit so it is not shown underneath the spinner mask.\n this.interstitialOpen = false;\n\n return this.upgrade.save({\n\n data: this.upgrade.serialize(),\n\n success: function success() {\n _angular.$rootScope.mode = 'signup';\n _logger.$logger.info('WPS_guest_upgrade_success');\n if (isFrsOptInFlow) {\n _logger.$logger.info('checkout_fpti', {\n from: 'guest_upgrade_interstitial_frs_optin_flow',\n to: 'prepare_frs_optin_user'\n });\n\n // Opt in upgraded user for Free Return Shipping benefit\n // Set whether FRS opt-in flow type is Active or Silent\n var frsOptInModel = new _index2.$FreeReturnShippingOptInModel();\n\n var frsOptInRequest = {\n optInStatus: 'Y',\n optInType: isFrsActiveFlow ? 'ACTIVE' : 'SILENT'\n };\n\n return frsOptInModel.save({\n data: frsOptInRequest,\n success: function success(optInResponse) {\n // User is opted into FRS benefit and can request return shipping refund for eligible transactions.\n _logger.$logger.info('WPS_guest_upgrade_free_return_shipping_optin_success');\n _logger.$logger.info('checkout_fpti', {\n from: 'guest_upgrade_interstitial_frs_optin_flow',\n to: 'process_frs_optin_user_success'\n });\n return _uiRouter.$state.go('checkout.done');\n },\n contingencies: {\n // In-context FRS opt-in failed. User needs to opt-in to FRS explicitly.\n FRS_OPTIN_ERROR: function FRS_OPTIN_ERROR() {\n return _this3.handleFrsContingency('FRS_OPTIN_ERROR');\n },\n VALIDATION_ERROR: function VALIDATION_ERROR() {\n return _this3.handleFrsContingency('VALIDATION_ERROR');\n },\n DEFAULT: function DEFAULT() {\n return _this3.handleFrsContingency('UNHANDLED_CONTINGENCY');\n }\n },\n validation: function validation(errorResponse) {\n return _this3.handleFrsError('SERVICE_VALIDATION_ERROR', errorResponse);\n },\n error: function error(errorResponse) {\n return _this3.handleFrsError('SERVICE_ERROR', errorResponse);\n }\n });\n }\n return _uiRouter.$state.go('checkout.done');\n },\n error: function error() {\n _logger.$logger.info('WPS_guest_upgrade_failed_SERVICE_ERROR');\n return _uiRouter.$state.go('checkout.done', { code: 'NO_UPGRADE' });\n },\n contingencies: {\n DOB_INVALID: function DOB_INVALID() {\n _logger.$logger.info('WPS_guest_upgrade_failed_DOB_INVALID');\n return _uiRouter.$state.go('checkout.done', { code: 'NO_UPGRADE' });\n },\n NATID_INVALID: function NATID_INVALID() {\n _logger.$logger.info('WPS_guest_upgrade_failed_NATID_INVALID');\n return _uiRouter.$state.go('checkout.done', { code: 'NO_UPGRADE' });\n },\n DEFAULT: function DEFAULT() {\n _logger.$logger.info('WPS_guest_upgrade_failed_Unknown_contingency');\n return _uiRouter.$state.go('checkout.done', { code: 'NO_UPGRADE' });\n }\n },\n validation: function validation() {\n _logger.$logger.info('WPS_guest_upgrade_failed_SERVICE_VALIDATION_ERROR');\n return _uiRouter.$state.go('checkout.done', { code: 'NO_UPGRADE' });\n }\n });\n }\n }\n});\n\n\n_angular.$rootScope;\n\n_squid.$Component;\n\n_squid.$locale;\n\n_index.$GuestUpgradeModel;\n\n_directive.$NationalIdModel;\n\n_index2.$FreeReturnShippingOptInModel;\n\n_logger.$logger;\n\n_uiRouter.$state;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest-upgrade-interstitial/directive.js\n// module id = ../node_modules/xo-guest-components/src/guest-upgrade-interstitial/directive.js\n// module chunks = 0","\n\ndefine(['angular', 'squid/index', './directive'], function (angular, squid) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n angular.module('xo-guest-upgrade-interstitial.route', ['squid', 'xo-guest-upgrade-interstitial.directive']).factory('$GuestUpgradeInterstitialRoute', ['$ComponentRoute', function ($ComponentRoute) {\n\n return $ComponentRoute.extend('GuestUpgradeInterstitialRoute', {\n\n name: 'guestUpgradeInterstitial',\n directive: 'xo-guest-upgrade-interstitial',\n trackingData: {\n fptiState: 'guest_xo_upgrade_interstitial',\n trackStateExit: false,\n pageQualifier: 'guest',\n buzname: {\n 'guest': {\n 'pagename': '%::fullpage-guest-upgrade-interstitial',\n 'pagename2': '%::fullpage-guest:member:hermes:',\n 'version': 'guest:%:'\n // More page qualifiers come here...\n } }\n },\n children: []\n });\n }]);\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest-upgrade-interstitial/route.js\n// module id = ../node_modules/xo-guest-components/src/guest-upgrade-interstitial/route.js\n// module chunks = 0","module.exports = \"
      \\n
      \\n
      \\n
       
      \\n
      \\n
      \\n
      {{ content('base.payPal') }}
      \\n\\n
      \\n
      \\n
      {{content('signup.paymentSuccessTitle')}}
      \\n
      {{content(frsContentKeys.title)}}
      \\n
      {{content('signup.createAccountToday')}}
      \\n
      \\n\\n
      \\n
      {{ content('signup.createAccountDetails') }}
      \\n
      \\n
      \\n
      \\n
      {{content('signup.paymentSuccessTitle')}}
      \\n
      {{content('signup.createAccountToday')}}
      \\n
      \\n\\n
      {{ content('signup.createAccountDetails') }}
      \\n
      \\n\\n
      \\n {{onboard.user.email}}\\n \\n \\n \\n \\n\\n \\n
      \\n {{ content('signup.emailHelper') }}\\n
      \\n
      \\n
      \\n\\n
      \\n\\n \\n\\n \\n\\n \\n
      \\n
      \\n
      \\n
      \\n
      \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest-upgrade-interstitial/template.html\n// module id = ../node_modules/xo-guest-components/src/guest-upgrade-interstitial/template.html\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _index = require('xo-return-to-merchant/dist/index');\n\nvar _index2 = require('squid/index');\n\nvar _angular = require('angular');\n\nvar _util = require('../lib/util');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nvar _index3 = require('xo-models/src/fi/index.js');\n\nvar _uiRouter = require('uiRouter');\n\nvar _logger = require('xo-beaver/dist/logger');\n\nvar _directive = require('xo-form-components/src/national-id-input/directive');\n\nvar _index4 = require('xo-models/src/onboard/index.js');\n\nvar _mapper = require('./lib/mapper');\n\nvar _mapper2 = _interopRequireDefault(_mapper);\n\nrequire('xo-form-components/src/place-of-birth/directive');\n\nrequire('xo-form-components/src/gender-type/directive');\n\nrequire('xo-form-components/src/phone/directive');\n\nrequire('xo-form-components/src/dob-input/directive');\n\nrequire('./occupation/directive');\n\nrequire('guest/nationality/directive');\n\nvar _fpti = require('xo-tracking/dist/fpti');\n\nrequire('xo-page-components/src/footer/directive');\n\nrequire('xo-ui-components/src/tooltip/directive');\n\nrequire('xo-ui-components/src/message/directive');\n\nrequire('xo-ui-components/src/spinner/directive');\n\nrequire('xo-address-components/src/add-address/directive');\n\nrequire('xo-page-components/src/value-props/directive');\n\nrequire('xo-return-to-merchant/dist/util');\n\nrequire('guest/emailInput/directive');\n\nrequire('guest/passwordInput/directive');\n\nrequire('xo-address-components/src/address-normalization/directive');\n\nvar _gdprCookieBanner = require('xo-models/src/gdprCookieBanner');\n\nvar _helper = require('guest/onboardOptions/lib/helper');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _index2.$Component.extend('xoGuestUpgrade', {\n tag: 'xo-guest-upgrade',\n template: _template2['default'],\n\n props: {\n token: {\n type: 'var',\n required: false\n }\n },\n\n resolve: {\n models: function models() {\n var options = {\n params: {\n data: _index2.$util.param('data')\n }\n };\n\n return {\n preloadedData: _index4.$GuestUpgradeModel.instance().retrieve(options)\n };\n }\n },\n\n lifecycle: {\n enter: function enter() {\n this.upgradeFromEmail = _index2.$util.param('data').length === 15 || _index2.$util.param('data').length === 16;\n this.flags = { singlePassword: false };\n this.locale = _index2.$locale;\n this.returnToMerchantTimerMsg = '';\n this.valueTitle = (0, _index2.$renderContent)('guestVerify.propHead');\n this.valueText = (0, _index2.$renderContent)('guestVerify.propVal');\n this.footerStyle = 'fullFooter';\n this.isGdprValid = _gdprCookieBanner.isGdprValid;\n\n // Do not show cancel URL if experience is set to minibrowser\n if (!_angular.$rootScope.miniBrowser) {\n this.cancelUrl = _index2.$util.param('cancel_url');\n } else {\n // Change the message of the overlay on the site that launched this flow.\n _index.$ReturnToMerchant.postToMerchant({\n secureWindowmsg: _index2.$locale.content.get('signup.overlayMsg')\n });\n }\n\n var modelSchema = {\n user: new _index4.$OnboardUserModel({\n country: _index2.$locale.country,\n nationality: _index2.$locale.country\n }),\n\n phone: new _index4.$OnboardPhoneModel(),\n\n billing_address: _index3.$BillingAddressModel.create(null, {\n country: _index2.$locale.country\n })\n };\n\n this.onboard = new _index4.$GuestUpgradeModel(modelSchema);\n\n this.fpti = {\n trackSuccess: function trackSuccess() {\n this.track(':success');\n },\n trackError: function trackError(err) {\n this.track(':error', err);\n },\n track: function track(suffix, err) {\n var error = void 0;\n\n if (err) {\n error = {\n type: 'pageError',\n msg: err.message\n };\n }\n _uiRouter.$state.current.trackingData.buzname.guestupgrade.pagename2 += suffix;\n _fpti.$fpti.setupDataString(_uiRouter.$state.current, error);\n }\n };\n\n this.currentYear = new Date().getFullYear().toString();\n this.validMonths = _index2.$util.map(_index2.$util.range(1, 13), function (num) {\n return ('0' + num).substr(-2);\n });\n },\n populate: function populate() {\n var _this = this;\n\n var isGDPRCountry = _helper.signupLib.getIsGDPRCountry(this.locale.country);\n\n // Market Opt-in display and checked by default is based on config settings\n this.showMarketingOptin = _helper.signupLib.getMarketingOptinShowHide(this.locale.country, isGDPRCountry);\n\n // If not showing a checkbox for marketing opt-in, set the flag to null as per GDPR team requirement\n if (!this.showMarketingOptin) {\n this.onboard.marketing_optin = null;\n } else {\n // DO THIS ONLY IF the marketing opt-in checkbox is displayed to users\n // Is marketing opt-in checkbox checked by default\n this.onboard.marketing_optin = _helper.signupLib.getMarketingOptinIsChecked(this.locale.country, isGDPRCountry);\n // Marketing opt-in text next to checkbox\n this.marketingOptinContentKey = _helper.signupLib.getMarketingOptinContentKey(this.locale.country, isGDPRCountry);\n }\n\n var getContentIdentifier = function getContentIdentifier() {\n return [_index2.$locale.country, _index2.$locale.lang, (0, _index2.$contentVersion)(), 'signupTerms.easySignupTCPA'].join(':');\n };\n\n var preloadedData = this.models.preloadedData;\n\n var getFiMode = function getFiMode() {\n var _ref = preloadedData && preloadedData.fi_details || {},\n _ref$bank_accounts = _ref.bank_accounts,\n bank_accounts = _ref$bank_accounts === undefined ? [] : _ref$bank_accounts;\n\n return bank_accounts.length > 0 ? 'bank' : '';\n };\n\n this.onboard.eConsentTermsContent = _helper.signupLib.getSignupTermsContentKey(this.locale.country, isGDPRCountry, getFiMode());\n\n if (preloadedData.guestUpgradeNewAppRedirect === true) {\n var redirectUrl = window.location.href.replace('xoonboarding', 'prox');\n\n _logger.$logger.info('guest_upgrade_new_app_redirect', {\n redirectUrl: redirectUrl,\n transactionId: preloadedData.transaction\n });\n return _index2.$util.redirect(redirectUrl);\n }\n this.onboard.payerId = preloadedData.payerId;\n this.onboard.billing_address.populate(_mapper2['default'].getFormattedAddress(preloadedData.billing_address));\n this.onboard.user.populate(preloadedData.user);\n this.specialFields = _mapper2['default'].getSpecialFieldsFor(preloadedData.user.country);\n this.onboard.contentIdentifier = getContentIdentifier();\n this.hasDialingCodeOverride = _util.hasDialingCodeOverride;\n\n if (this.upgradeFromEmail) {\n // Email based gxo flow\n\n this.onboard.card = preloadedData.card;\n this.onboard.receiptId = preloadedData.receiptId;\n this.onboard.transaction = preloadedData.transaction;\n this.onboard.experienceIdentifier = 'proxemailupgrade';\n } else {\n // Ad based gxo flow\n\n // Check if return_url and cancel_url are present and if the session has timed out\n if (!_index2.$util.param('cancel_url') || !_index2.$util.param('return_url') || !preloadedData.email || !preloadedData.payerId || !preloadedData.transaction) {\n this.fpti.trackError(new Error('malformed payload'));\n _uiRouter.$state.go('guestupgrade.genericError', {\n code: 'GUEST_UPGRADE_SESSION_ERROR'\n });\n return;\n }\n _mapper2['default'].pxpMapper(this, _index2.$pxpMatch, preloadedData);\n this.onboard.transaction = preloadedData.transaction;\n this.onboard.experienceIdentifier = 'proxupgrade';\n\n _logger.$logger.info('guest_upgrade_ui_fields', {\n special_fields: this.specialFields,\n txn_id: preloadedData.transaction\n });\n if (this.specialFields.address) {\n this.uponNormalization = function (normalizedAddress) {\n _this.showAddressNormalizationLightbox = false;\n\n // Update the new address\n _this.onboard.billing_address = _index3.$BillingAddressModel.create(null, normalizedAddress, {\n id: '0',\n normalization_status: normalizedAddress.normalization_status\n });\n\n _this.upgrade();\n };\n }\n }\n\n var showSuccessPage = function showSuccessPage() {\n // This changes the footer wapper ID and appropriate css classes gets applied\n _this.footerStyle = 'confirmationFooter';\n\n if (!_this.upgradeFromEmail) {\n var timer = void 0;\n\n _this.successUrl = _index2.$util.buildURL(_index2.$util.param('return_url'), {\n status: 'success'\n });\n\n _this.fpti.trackSuccess();\n _index.$ReturnToMerchant.postToMerchant(_this.successUrl);\n\n var timerExecutor = function timerExecutor() {\n // eslint-disable-line no-inner-declarations\n // We wait for 5 secs on live and 10 secs on stage/local(helpful for automation)\n var waitTime = _index2.$config.deploy.isLive() ? 20 : 10;\n\n var updateMsg = function updateMsg() {\n _this.returnToMerchantTimerMsg = (0, _index2.$renderContent)('signup.returnTimerMsg', {\n waitTime: waitTime\n });\n };\n\n _this.stopTimerAndRedirect = function () {\n if (angular.isDefined(timer)) {\n _angular.$interval.cancel(timer);\n timer = undefined;\n }\n _index.$ReturnToMerchant.goTo(_this.successUrl);\n };\n\n updateMsg();\n // When this.onboard becomes null, the success page is shown.\n _this.onboard = null;\n\n return function () {\n waitTime -= 1;\n updateMsg();\n if (waitTime === 0) {\n return _this.stopTimerAndRedirect();\n }\n };\n };\n\n timer = (0, _angular.$interval)(timerExecutor(), 1000);\n } else {\n // When this.onboard becomes null, the success page is shown.\n _this.onboard = null;\n }\n };\n\n var handleUIValidation = function handleUIValidation(errorData, displayGenericMessage) {\n var element = _mapper2['default'].errorMapper(errorData);\n\n if (element) {\n var $fields = $(element);\n\n $fields.addClass('backendError');\n }\n if (displayGenericMessage) {\n _this.pageErrorMsg = { msgs: [_this.locale.content.genericError.incontextGenericPageError], type: 'error' };\n }\n };\n\n this.upgrade = function () {\n var data = _this.upgradeFromEmail ? _this.onboard.serializeEmailFlow() : _this.onboard.serialize();\n\n _this.onboard.save({\n data: data,\n success: showSuccessPage,\n contingencies: {\n DOB_INVALID: function DOB_INVALID(err, message) {\n handleUIValidation(err);\n _this.pageErrorMsg = { msgs: [_this.locale.content.validation.validDOB], type: 'error' };\n },\n PHONE_INVALID: function PHONE_INVALID(err, message) {\n handleUIValidation(err);\n _this.pageErrorMsg = { msgs: [_this.locale.content.validation.validPhone], type: 'error' };\n },\n NATID_INVALID: function NATID_INVALID(err, message) {\n handleUIValidation(err);\n _this.pageErrorMsg = { msgs: [_this.locale.content.validation.validNationalId], type: 'error' };\n },\n ADDRESS_LINEONE_INVALID: function ADDRESS_LINEONE_INVALID(err, message) {\n handleUIValidation(err, true);\n },\n ADDRESS_CITY_INVALID: function ADDRESS_CITY_INVALID(err, message) {\n handleUIValidation(err, true);\n },\n ADDRESS_STATE_INVALID: function ADDRESS_STATE_INVALID(err, message) {\n handleUIValidation(err, true);\n },\n ADDRESS_POSTAL_CODE_INVALID: function ADDRESS_POSTAL_CODE_INVALID(err, message) {\n handleUIValidation(err, true);\n },\n PASSWORD_INVALID: function PASSWORD_INVALID(err, message) {\n handleUIValidation(err, true);\n },\n FI_INVALID: function FI_INVALID(err, message) {\n handleUIValidation(err);\n },\n DEFAULT: function DEFAULT(name, contingency) {\n _logger.$logger.info('guest_upgrade_contingency', {\n 'int_error_description': contingency && contingency.message,\n 'contingency_name': name\n });\n }\n }\n })['catch'](function (err) {\n _this.fpti.trackError(err);\n\n _logger.$logger.error('guest_upgrade_error', { error: err });\n\n if (_index2.$util.param('return_url')) {\n var url = _index2.$util.buildURL(_index2.$util.param('return_url'), {\n status: 'fail'\n });\n\n _this.cancelUrl = url;\n\n _index.$ReturnToMerchant.postToMerchant({\n cancelUrl: url\n });\n }\n });\n };\n }\n },\n\n actions: {\n onSubmit: function onSubmit() {\n if (this.specialFields.nationalId) {\n this.onboard.nationalIdModel = _directive.$NationalIdModel.instance(_angular.$rootScope.token);\n }\n\n if (this.specialFields.address) {\n this.showAddressNormalizationLightbox = true;\n return;\n }\n\n this.upgrade();\n },\n formatExpiry: function formatExpiry(event) {\n var key = event.keyCode || event.charCode;\n var $el = $(event.target);\n var val = $el.val().replace(/[^0-9\\/]/gi, '');\n var strokes = val.length;\n\n // Ignore delete keys\n if (key === 8 || key === 46) {\n return;\n }\n\n // after two characters add a slash char\n if (strokes === 2) {\n val += '/';\n }\n\n this.expiryDate = val;\n $el.mask('99/99');\n },\n\n\n validate: function validate(expiryDate) {\n if (!expiryDate) {\n return;\n }\n\n var month = void 0,\n year = void 0,\n unformatted = void 0;\n var isValid = false;\n\n unformatted = expiryDate.replace(/[^0-9]/gi, '');\n if (unformatted.length > 3) {\n month = unformatted.substring(0, 2);\n year = this.currentYear.substring(0, 2) + unformatted.substring(2, 4);\n\n isValid = this.validMonths.indexOf(month) > -1 && year >= this.currentYear;\n\n if (isValid) {\n var expDate = new Date(year, parseInt(month, 10) - 1);\n var today = new Date();\n\n isValid = expDate > today;\n }\n }\n\n return isValid;\n }\n\n }\n\n});\n\n\n_index.$ReturnToMerchant;\n\n_index2.$Component;\n\n_index2.$contentVersion;\n\n_index2.$locale;\n\n_index2.$util;\n\n_index2.$config;\n\n_index2.$pxpMatch;\n\n_index2.$renderContent;\n\n_angular.$rootScope;\n\n_angular.$interval;\n\n_util.hasDialingCodeOverride;\n\n_index3.$BillingAddressModel;\n\n_uiRouter.$state;\n\n_logger.$logger;\n\n_directive.$NationalIdModel;\n\n_index4.$OnboardUserModel;\n\n_index4.$OnboardPhoneModel;\n\n_index4.$GuestUpgradeModel;\n\n_fpti.$fpti;\n\n_gdprCookieBanner.isGdprValid;\n\n_helper.signupLib;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest-upgrade/directive.js\n// module id = ../node_modules/xo-guest-components/src/guest-upgrade/directive.js\n// module chunks = 0","\n\ndefine(function () {\n\n var FIELD_SETS = { // eslint-disable-line no-reserved-keys\n 'default': [],\n set1: ['dob', 'nationality'],\n set2: ['dob', 'nationality', 'marketing'],\n set3: ['address', 'dob', 'marketing'],\n set4: ['dob', 'nationality', 'occupation', 'marketing'],\n set5: ['dob', 'nationality', 'nationalId'],\n set6: ['dob', 'gender', 'placeOfBirth', 'nationality', 'nationalId'],\n set7: ['dob', 'nationality', 'nationalId', 'marketing']\n };\n\n var FIELDS = {\n US: FIELD_SETS['default'],\n IN: FIELD_SETS.set2,\n IL: FIELD_SETS.set7,\n AT: FIELD_SETS.set2,\n BE: FIELD_SETS.set2,\n DK: FIELD_SETS.set2,\n NO: FIELD_SETS.set2,\n PL: FIELD_SETS.set2,\n SE: FIELD_SETS.set2,\n AU: FIELD_SETS.set3,\n CA: FIELD_SETS.set4,\n SG: FIELD_SETS.set5,\n MY: FIELD_SETS.set2,\n KR: FIELD_SETS.set5,\n NZ: FIELD_SETS.set5,\n ID: FIELD_SETS.set5,\n TH: FIELD_SETS.set5,\n FR: FIELD_SETS.set2,\n DE: FIELD_SETS.set2,\n IT: FIELD_SETS.set2,\n ES: FIELD_SETS.set2,\n GB: FIELD_SETS.set2,\n NL: FIELD_SETS.set2,\n CH: FIELD_SETS.set7,\n TR: FIELD_SETS.set1,\n CZ: FIELD_SETS.set2,\n FI: FIELD_SETS.set2,\n EE: FIELD_SETS.set2,\n LV: FIELD_SETS.set2,\n HR: FIELD_SETS.set7,\n UA: FIELD_SETS.set1,\n PT: FIELD_SETS.set2,\n IE: FIELD_SETS.set2,\n HU: FIELD_SETS.set2,\n GR: FIELD_SETS.set2,\n SK: FIELD_SETS.set2,\n BA: FIELD_SETS.set1,\n BG: FIELD_SETS.set2,\n CY: FIELD_SETS.set2,\n HK: FIELD_SETS.set6,\n LT: FIELD_SETS.set2,\n LU: FIELD_SETS.set2,\n MT: FIELD_SETS.set2,\n PH: FIELD_SETS.set5,\n RO: FIELD_SETS.set2,\n SI: FIELD_SETS.set2,\n TW: FIELD_SETS.set1,\n AE: FIELD_SETS.set5,\n AL: FIELD_SETS.set1,\n AM: FIELD_SETS.set1,\n AZ: FIELD_SETS.set1,\n BH: FIELD_SETS.set5,\n BN: FIELD_SETS.set1,\n BY: FIELD_SETS.set1,\n EG: FIELD_SETS.set1,\n FO: FIELD_SETS.set5,\n GE: FIELD_SETS.set5,\n NG: FIELD_SETS.set1,\n OM: FIELD_SETS.set5,\n QA: FIELD_SETS.set5,\n RE: FIELD_SETS.set1,\n RS: FIELD_SETS.set5,\n SA: FIELD_SETS.set5,\n VA: FIELD_SETS.set1,\n ZA: FIELD_SETS.set5,\n ZM: FIELD_SETS.set1,\n LK: FIELD_SETS.set1,\n FM: FIELD_SETS.set1,\n MN: FIELD_SETS.set1,\n MV: FIELD_SETS.set1,\n VN: FIELD_SETS.set5,\n MK: FIELD_SETS.set1,\n GI: FIELD_SETS.set1,\n MQ: FIELD_SETS.set1,\n GP: FIELD_SETS.set1,\n MU: FIELD_SETS.set5,\n MD: FIELD_SETS.set5,\n IS: FIELD_SETS.set7,\n GL: FIELD_SETS.set5,\n KZ: FIELD_SETS.set5,\n KW: FIELD_SETS.set5,\n BT: FIELD_SETS.set1,\n KH: FIELD_SETS.set1,\n LA: FIELD_SETS.set1,\n NP: FIELD_SETS.set1,\n TO: FIELD_SETS.set1,\n WS: FIELD_SETS.set1,\n AO: FIELD_SETS.set1,\n BF: FIELD_SETS.set1,\n BI: FIELD_SETS.set1,\n BJ: FIELD_SETS.set1,\n CD: FIELD_SETS.set1,\n CG: FIELD_SETS.set1,\n CI: FIELD_SETS.set1,\n CK: FIELD_SETS.set1,\n CM: FIELD_SETS.set1,\n CV: FIELD_SETS.set1,\n DJ: FIELD_SETS.set1,\n ER: FIELD_SETS.set1,\n ET: FIELD_SETS.set1,\n FJ: FIELD_SETS.set1,\n GA: FIELD_SETS.set1,\n GF: FIELD_SETS.set1,\n GM: FIELD_SETS.set1,\n GN: FIELD_SETS.set1,\n GW: FIELD_SETS.set1,\n KG: FIELD_SETS.set1,\n KI: FIELD_SETS.set1,\n KM: FIELD_SETS.set1,\n LI: FIELD_SETS.set2,\n ME: FIELD_SETS.set1,\n MG: FIELD_SETS.set1,\n MH: FIELD_SETS.set1,\n ML: FIELD_SETS.set1,\n MR: FIELD_SETS.set1,\n MS: FIELD_SETS.set1,\n MW: FIELD_SETS.set1,\n NA: FIELD_SETS.set1,\n NC: FIELD_SETS.set1,\n NE: FIELD_SETS.set1,\n NF: FIELD_SETS.set1,\n NR: FIELD_SETS.set1,\n NU: FIELD_SETS.set1,\n PF: FIELD_SETS.set1,\n SZ: FIELD_SETS.set1,\n TD: FIELD_SETS.set1,\n TG: FIELD_SETS.set1,\n TJ: FIELD_SETS.set1,\n TM: FIELD_SETS.set1,\n TV: FIELD_SETS.set1,\n TZ: FIELD_SETS.set1,\n UG: FIELD_SETS.set5,\n VU: FIELD_SETS.set1,\n WF: FIELD_SETS.set1,\n YT: FIELD_SETS.set1,\n ZW: FIELD_SETS.set1,\n DZ: FIELD_SETS.set1,\n JO: FIELD_SETS.set5,\n MA: FIELD_SETS.set5,\n TN: FIELD_SETS.set1,\n YE: FIELD_SETS.set1,\n AD: FIELD_SETS.set5,\n BW: FIELD_SETS.set5,\n KE: FIELD_SETS.set5,\n LS: FIELD_SETS.set5,\n MC: FIELD_SETS.set5,\n MZ: FIELD_SETS.set5,\n SN: FIELD_SETS.set5,\n PG: FIELD_SETS.set1,\n PM: FIELD_SETS.set1,\n PN: FIELD_SETS.set1,\n PY: FIELD_SETS.set1,\n RW: FIELD_SETS.set1,\n SB: FIELD_SETS.set1,\n SC: FIELD_SETS.set1,\n SH: FIELD_SETS.set1,\n SJ: FIELD_SETS.set1,\n SL: FIELD_SETS.set1,\n SM: FIELD_SETS.set1,\n SO: FIELD_SETS.set1,\n ST: FIELD_SETS.set1,\n PW: FIELD_SETS.set1,\n AG: FIELD_SETS.set1,\n AN: FIELD_SETS.set1,\n AW: FIELD_SETS.set1,\n BB: FIELD_SETS.set1,\n BO: FIELD_SETS.set1,\n BZ: FIELD_SETS.set1,\n DM: FIELD_SETS.set1,\n FK: FIELD_SETS.set1,\n GD: FIELD_SETS.set1,\n GY: FIELD_SETS.set1,\n KN: FIELD_SETS.set1,\n LC: FIELD_SETS.set1,\n SR: FIELD_SETS.set1,\n TC: FIELD_SETS.set1,\n TT: FIELD_SETS.set1,\n VC: FIELD_SETS.set1,\n VG: FIELD_SETS.set1,\n AI: FIELD_SETS.set1,\n MX: FIELD_SETS.set1,\n AR: FIELD_SETS.set5,\n BM: FIELD_SETS.set5,\n BS: FIELD_SETS.set5,\n CL: FIELD_SETS.set5,\n CO: FIELD_SETS.set5,\n CR: FIELD_SETS.set5,\n DO: FIELD_SETS.set5,\n EC: FIELD_SETS.set5,\n GT: FIELD_SETS.set5,\n HN: FIELD_SETS.set5,\n JM: FIELD_SETS.set5,\n JP: FIELD_SETS.set1,\n KY: FIELD_SETS.set5,\n NI: FIELD_SETS.set5,\n PA: FIELD_SETS.set5,\n PE: FIELD_SETS.set5,\n SV: FIELD_SETS.set5,\n UY: FIELD_SETS.set5,\n VE: FIELD_SETS.set5,\n C2: FIELD_SETS.set1\n };\n\n // converts ['a', 'b'] to {a:true, b:true}\n function arrayToObject(array) {\n var obj = {};\n\n array.forEach(function (key) {\n obj[key] = true;\n });\n\n return obj;\n }\n\n return {\n getSpecialFieldsFor: function getSpecialFieldsFor(country) {\n return arrayToObject(FIELDS[country] || FIELDS.US);\n },\n\n getFormattedAddress: function getFormattedAddress(address) {\n if (address.country === 'AU') {\n var AUStateCodeMap = {\n australiancapitalterritory: 'ACT',\n newsouthwales: 'NSW',\n northernterritory: 'NT',\n queensland: 'QLD',\n southaustralia: 'SA',\n tasmania: 'TAS',\n victoria: 'VIC',\n westernaustralia: 'WA'\n };\n\n address.state = AUStateCodeMap[address.state.replace(/\\s/g, '').toLowerCase()] || address.state;\n }\n\n return address;\n },\n\n errorMapper: function errorMapper(errorData) {\n var errorMap = {\n DOB_INVALID: { field: '#dobText' },\n PHONE_INVALID: { field: '#telephone' },\n NATID_INVALID: { field: '#idValue' },\n FI_INVALID: { field: '#expiry_value, #cvv' },\n ADDRESS_LINEONE_INVALID: { field: '#billingLine1' },\n ADDRESS_CITY_INVALID: { field: '#billingCity' },\n ADDRESS_STATE_INVALID: { field: '#billingState' },\n ADDRESS_POSTAL_CODE_INVALID: { field: '#billingPostalCode' },\n PASSWORD_INVALID: { field: '#password, #confirmPassword' }\n };\n\n return errorMap[errorData].field;\n },\n\n pxpMapper: function pxpMapper($scope, $pxpMatch, preloadedData) {\n var patterns = {\n proxSignupTitleTreatment: 'prox_signup_title_treatment',\n proxSinglePasswordTreatment: 'prox_single_password_treatment'\n };\n var logPayload = {\n txn_id: preloadedData.transaction\n };\n\n if ($scope.locale.metadata.country === 'US') {\n $pxpMatch('prox_single_password', {}, patterns, logPayload).then(function (result) {\n if (result && result.proxSinglePasswordTreatment) {\n $scope.flags.singlePassword = true;\n }\n });\n }\n if ($scope.locale.metadata.country === 'US' && $scope.locale.metadata.lang === 'en') {\n $pxpMatch('prox_signup_title', {}, patterns, logPayload).then(function (result) {\n if (result && result.proxSignupTitleTreatment) {\n $scope.pageTitle = $scope.locale.content.signup.eBayTitle;\n } else {\n $scope.pageTitle = $scope.locale.content.signup.title;\n }\n });\n }\n }\n };\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest-upgrade/lib/mapper.js\n// module id = ../node_modules/xo-guest-components/src/guest-upgrade/lib/mapper.js\n// module chunks = 0","\n\ndefine(['angular', 'text!./template.html', 'xo-ui-components/src/error-tooltip/directive'], function (angular, template) {\n\n return angular.module('xo-guest-upgrade.occupation', ['squid', 'xo-error-tooltip.directive']).directive('xoOccupation', [function () {\n return {\n template: template,\n\n scope: {\n user: '=?'\n },\n\n controller: ['$scope', '$locale', function ($scope, $locale) {\n\n $scope.locale = $locale;\n\n $scope.occupations = function () {\n return $locale.content.signup.occupationList;\n };\n }]\n };\n }]);\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest-upgrade/occupation/directive.js\n// module id = ../node_modules/xo-guest-components/src/guest-upgrade/occupation/directive.js\n// module chunks = 0","module.exports = \"
      \\n
      \\n
      \\n
      \\n
      \\n
      \\n
      \\n
      \\n
      \\n
      \\n
      \\n {{content('signup.paypal')}}\\n
      \\n
      \\n
      \\n
      \\n
      \\n
      \\n
      \\n
      \\n
      \\n

      {{content('signup.successTitle')}}

      \\n
      \\n\\n

      {{content('signup.successText1')}} {{content('signup.successText2')}}

      \\n

      \\n

      {{content('signup.returnToEbayMsg')}}

      \\n\\n \\n {{content('signup.backToEbay')}}\\n \\n
      \\n
      \\n
      \\n \\n\\n
      \\n\\n
      \\n

      {{ content(upgradeFromEmail ? 'guestUpgrade.emailFlowTitle' : 'signup.title') }}

      \\n

      {{pageSubTitle}}

      \\n
      \\n\\n
      \\n
      \\n
      \\n

      {{content('guestUpgrade.contactInfo')}}

      \\n

      {{onboard.user.first_name}} {{onboard.user.last_name}}

      \\n

      {{onboard.user.email}}

      \\n

      {{onboard.user.phone}}

      \\n
      \\n
      \\n

      {{content('guestUpgrade.billingAddress')}}

      \\n

      {{onboard.billing_address.line1}}

      \\n

      {{onboard.billing_address.city}}, {{onboard.billing_address.state}} {{onboard.billing_address.postal_code}}

      \\n
      \\n
      \\n\\n

      \\n\\n
      \\n

      {{content('guestUpgrade.confirmCard')}} {{onboard.card.brand}} x-{{onboard.card.lastFour}}

      \\n\\n
      \\n \\n\\n \\n
      \\n\\n
      \\n \\n\\n \\n\\n \\n
      \\n
      \\n
      \\n\\n \\n \\n\\n \\n
      \\n \\n \\n \\n \\n \\n \\n \\n
      \\n\\n \\n \\n\\n \\n \\n \\n\\n \\n\\n
      \\n \\n
      \\n\\n \\n\\n
      \\n
      {{ content('signup.agrementError') }}
      \\n\\n \\n \\n
      \\n \\n
      \\n

      \\n
      \\n\\n
      \\n \\n \\n
      \\n\\n
      \\n \\n
      \\n
      \\n
      \\n
      \\n\\n
      \\n \\n
      \\n
      \\n
      \\n \\n \\n \\n
      \\n
      \\n \\n
      \\n
      \\n \\n
      \\n \\n
      \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest-upgrade/template.html\n// module id = ../node_modules/xo-guest-components/src/guest-upgrade/template.html\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _squid = require('squid');\n\nvar _angular = require('angular');\n\nvar _checkout = require('xo-models/src/checkout');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nvar _errorHandlerHelper = require('../lib/errorHandlerHelper');\n\nvar errorHandlerHelper = _interopRequireWildcard(_errorHandlerHelper);\n\nrequire('xo-address-components/src/add-address/directive.js');\n\nrequire('xo-form-components/src/select-shipping-country/directive.js');\n\nrequire('xo-page-components/src/header/directive');\n\nrequire('xo-page-components/src/cart/directive.js');\n\nvar _util = require('xo-return-to-merchant/dist/util.js');\n\nvar _xoShippingOptions = require('xo-shipping-options');\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } }\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _squid.$Component.extend('$xoCartChanged', {\n tag: 'xo-cart-changed',\n\n template: _template2['default'],\n\n props: {\n token: {\n type: 'var',\n required: false\n },\n\n shippingAddress: {\n type: 'var',\n required: true\n },\n\n disableChangeShippingCountry: {\n type: 'var',\n required: false\n },\n\n checkForShippingOptions: {\n type: 'var',\n required: true\n },\n\n shippingOptions: {\n type: 'var',\n required: true\n },\n\n selectedShippingOption: {\n type: 'var',\n required: true\n },\n\n onShippingOptionSelect: {\n type: 'var',\n required: true\n },\n\n onShippingChange: {\n type: 'var',\n required: true\n },\n\n onContinue: {\n type: 'var',\n required: true\n },\n\n message: {\n type: 'var',\n required: false\n },\n\n showForm: {\n type: 'var',\n required: false\n }\n },\n\n resolve: {\n models: function models() {\n return {\n checkoutAppData: _checkout.$CheckoutAppDataModel.instance(this.props.token).retrieve(),\n checkoutSession: _checkout.$CheckoutSessionModel.instance(this.props.token).retrieve()\n };\n }\n },\n\n lifecycle: {\n enter: function enter() {\n var _this = this;\n\n this.callOnShippingChange = this.showForm;\n\n var isCallbackInterstitial = window.xprops && window.xprops.onShippingChange;\n\n var initialMessage = !isCallbackInterstitial && this.shippingOptions && this.shippingOptions.length ? (0, _squid.$renderContent)('shipping.orderChoiceLabel') : this.message;\n\n var changeMessage = function changeMessage(message) {\n _this.computedMessage = message;\n };\n\n changeMessage(initialMessage);\n\n // Turn on the call-callback flag if a new option is selected\n this.wrappedOnShippingOptionSelect = function () {\n var option = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var userSelected = arguments[1];\n\n return _this.onShippingOptionSelect(option, userSelected).then(function () {\n if (userSelected && window.xprops && window.xprops.onShippingChange) {\n return _this.onShippingChange();\n }\n });\n };\n\n this.errorMessage = '';\n\n // If the interstitial is submitted with the form open, call the callback\n this.openForm = function () {\n changeMessage((0, _squid.$renderContent)('shippingAddress.label'));\n _this.callOnShippingChange = true;\n _this.showForm = true;\n };\n\n this.closeForm = function () {\n changeMessage(initialMessage);\n _this.showForm = false;\n };\n\n document.querySelector('body').style.overflow = 'hidden';\n },\n exit: function exit() {\n document.querySelector('body').style.overflow = '';\n },\n populate: function populate() {\n var _this2 = this;\n\n this.checkForShippingOptions();\n\n this.cartOptions = {\n showTotal: true,\n showContainer: false\n };\n\n this.updateShippingAddress = function () {\n return _this2.models.checkoutSession.shipping.action('update', {\n data: _this2.shippingAddress.serialize(),\n resultModel: _this2.models.checkoutSession,\n validation: function validation(errorData, message) {\n errorHandlerHelper.errorHandler(message, errorData.fields, function () {}, null, '#cartChangedForm');\n _this2.errorMessage = {\n msgs: [(0, _squid.$renderContent)('shippingAddress.errorInfo')],\n type: 'error'\n };\n\n return _squid.$promise.reject();\n }\n });\n };\n\n this.merchant = this.models.checkoutAppData.getMerchantDisplayName();\n\n var getFormattedAddress = function getFormattedAddress() {\n var fullName = _this2.models.checkoutSession.shipping.name;\n var fullAddress = _this2.models.checkoutSession.shipping.full_address_multiline;\n\n return [fullName].concat(fullAddress).join('
      ');\n };\n\n this.formattedAddress = _angular.$sce.trustAsHtml(getFormattedAddress());\n\n (0, _angular.$timeout)(function () {\n _this2.modalOpen = true;\n });\n }\n },\n\n actions: {\n updateShippingOrContinue: function updateShippingOrContinue(event) {\n if (event) {\n event.preventDefault();\n }\n\n if (this.callOnShippingChange) {\n this.callOnShippingChange = false;\n return this.updateShippingAddress().then(this.onShippingChange);\n }\n\n return this.onContinue();\n },\n returnToMerchant: function returnToMerchant() {\n return (0, _util.goTo)(this.models.checkoutAppData.urls.cancel_url);\n }\n }\n});\n\n\n_squid.$Component;\n\n_squid.$renderContent;\n\n_angular.$timeout;\n\n_angular.$sce;\n\n_checkout.$CheckoutAppDataModel;\n\n_checkout.$CheckoutSessionModel;\n\n_squid.$promise;\n\n_util.goTo;\n\n_xoShippingOptions.$xoShippingOptions; // eslint-disable-line no-unused-vars;\n\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest/cartChanged/directive.js\n// module id = ../node_modules/xo-guest-components/src/guest/cartChanged/directive.js\n// module chunks = 0","module.exports = \"
      \\n
      \\n
      \\n
      \\n\\n
      \\n\\t\\t\\t\\t
      \\n \\n
      \\n
      \\n
      \\n

      {{computedMessage}}

      \\n
      \\n
      \\n \\n \\n
      \\n
      \\n
      \\n \\n \\n \\n \\n {{content('shipping.orderChoiceLabel')}}\\n \\n
      \\n
      \\n
      \\n \\n \\n
      \\n
      \\n
      \\n
      \\n
      \\n
      \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest/cartChanged/template.html\n// module id = ../node_modules/xo-guest-components/src/guest/cartChanged/template.html\n// module chunks = 0","\n\nexports.__esModule = true;\nvar submitButtonGuestTextKeyMap = {\n commit: 'common.payLabel',\n notCommit: 'common.continueLabel',\n commitInCurrency: 'common.payInCurrencyLabel',\n notCommitInCurrency: 'common.continueInCurrencyLabel'\n};\n\nvar submitButtonSignupTextKeyMap = {\n commit: 'common.createAccountAndPayNow',\n notCommit: 'common.agreeAndCreateAccount'\n};\n\nvar SUBSCRIPTION_SUBMIT_BUTTON_KEY = exports.SUBSCRIPTION_SUBMIT_BUTTON_KEY = 'wpsSubscription.guest.createAccountAndSubscribe.button.text';\n\nvar SUBMIT_BUTTON_TEXT_KEY_MAP = exports.SUBMIT_BUTTON_TEXT_KEY_MAP = {\n signup: {\n US: submitButtonSignupTextKeyMap,\n ROW: {\n commit: 'common.agreeAndPay',\n notCommit: 'common.agreeAndContinue'\n }\n },\n pomaSignup: {\n US: submitButtonSignupTextKeyMap,\n ROW: {\n commit: 'common.agreeAndPayNowPoma',\n notCommit: 'common.agreeAndContinue'\n }\n },\n guest: {\n US: submitButtonGuestTextKeyMap,\n ROW: submitButtonGuestTextKeyMap\n }\n};\n\n// This is remittance transfer rule max amount for invoicing transactions\nvar RTR_AMOUNT = exports.RTR_AMOUNT = 15;\n\n// Shipping Options Label mapping for content\nvar SHIPPING_TYPE_LABEL_MAPPING = exports.SHIPPING_TYPE_LABEL_MAPPING = {\n PICKUP: {\n PICKUP_IN_STORE: 'shipping.pickupInStore',\n STORE_PICKUP: 'shipping.storePickup',\n PICKUP_OPTION: 'shipping.pickupOption',\n COLLECTION: 'shipping.collection',\n EXPRESS_PICKUP: 'shipping.expressPickup',\n CLICK_COLLECT: 'shipping.clickCollect',\n SHIP_TO_STORE: 'shipping.shipToStore',\n COLLECT_PLUS: 'shipping.collectPlus',\n PICKUP_FROM_STORE: 'shipping.pickupFromStore',\n FREE_NEXT_DAY_STORE_DELIVERY: 'shipping.freeNextDayStoreDelivery',\n BUY_AND_COLLECT: 'shipping.buyAndCollect',\n SHIP_TO_LOCKER: 'shipping.shipToLocker'\n },\n SHIPPING: {\n SHIP_TO_HOME: 'shipping.shipToHome',\n OVERNIGHT: 'shipping.overnightShipping', // testing multiple methods ....\n TWO_THREE_DAYS: 'shipping.twoThreeDaysShipping' // testing multiple methods ....\n }\n};\n\n// Shipping Type content mapping\nvar SHIPPING_TYPE_MAPPING = exports.SHIPPING_TYPE_MAPPING = {\n SHIPPING: 'shipping.shipHome',\n PICKUP: 'shipping.shipStore'\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest/constants/constants.js\n// module id = ../node_modules/xo-guest-components/src/guest/constants/constants.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.validationErrorMap = exports.errorElementMap = undefined;\n\nvar _squid = require('squid');\n\nvar _index = require('squid/index');\n\nvar loginRedirectUrl = (0, _squid.$getRedirectUrl)('hermes', {\n hermesLoginRedirect: 'xoon'\n});\n\n/* Please do not remove the double encoding component 'encodeURIComponent' */\nvar doubleEncodeUrl = function doubleEncodeUrl(url) {\n return encodeURIComponent(encodeURIComponent(url));\n};\nvar loginPageUrl = doubleEncodeUrl((0, _squid.$getRedirectUrl)('hermes', {}));\nvar landingPageUrl = doubleEncodeUrl(_index.$util.buildURL(_index.$config.urls.fallbackUrl && _index.$config.urls.fallbackUrl['hermes'] || '/webapps/hermes', _index.$util.params()));\n\nvar authflowRedirectUrl = (0, _squid.$getRedirectUrl)('authflow', {});\nauthflowRedirectUrl = authflowRedirectUrl + '&loginUrl=' + loginPageUrl + '&redirectUri=' + landingPageUrl;\n\n// TODO: should we have fields in a different constant\nvar errorElementMap = {\n INVALID_FIRST_NAME: {\n fields: [{ field: 'user.first_name' }]\n },\n INVALID_LAST_NAME: {\n fields: [{ field: 'user.last_name' }]\n },\n INVALID_PHONE_TYPE: {\n fields: [{ field: 'phone.phoneType' }]\n },\n INVALID_PHONE_NUMBER: {\n fields: [{ field: 'phone.telephone' }]\n },\n INVALID_CITY_STATE_ZIPCODE: {\n fields: [{ field: 'address.city' }, { field: 'address.state' }, { field: 'zipCode' }]\n },\n INVALID_LINE1: {\n fields: [{ field: 'address.line1' }]\n },\n INVALID_CITY: {\n fields: [{ field: 'address.city' }]\n },\n INVALID_STATE: {\n fields: [{ field: 'address.state' }]\n },\n INVALID_ZIPCODE: {\n fields: [{ field: 'PostalCode' }, { field: 'address.postal_code' }],\n name: 'billing'\n },\n INVALID_NATIONAL_ID_TYPE: {\n element: '#nationalIdFields',\n fields: [{ field: 'type' }],\n model: 'nationalIdModel.nationalId.'\n },\n INVALID_NATIONAL_ID: {\n element: '#nationalIdFields',\n fields: [{ field: 'Value' }],\n name: 'id'\n },\n INVALID_SECONDARY_ID_TYPE: {\n element: '#nationalIdFields',\n fields: [{ field: 'secondaryIdType' }],\n model: 'nationalIdModel.'\n },\n INVALID_SECONDARY_ID: {\n element: '#nationalIdFields',\n fields: [{ field: 'secondaryIdValue' }],\n model: 'nationalIdModel.'\n },\n\n INVALID_BILLING_ADDRESS: {\n element: '#billingAddress',\n name: 'billing'\n },\n INVALID_SHIPPING_ADDRESS: {\n element: '#shippingAddress',\n name: 'shipping'\n },\n INVALID_EXPIRATION_DATE: {\n pageError: {\n contentKey: 'creditcard.errorExpiredCard'\n }\n },\n PASSWORD_TOO_LONG: {\n element: '#signupContainer',\n model: 'user.',\n fields: [{ field: 'password' }, { field: 'confirmPassword' }]\n },\n PASSWORD_CONTAINS_FORBIDDEN_WORDS: {\n element: '#signupContainer',\n model: 'user.',\n fields: [{ field: 'password' }, { field: 'confirmPassword' }]\n },\n PASSWORD_HAS_ILLEGAL_CHARACTERS: {\n element: '#signupContainer',\n model: 'user.',\n fields: [{ field: 'password' }, { field: 'confirmPassword' }]\n },\n ACCOUNT_ALREADY_EXISTS: {\n fields: [{ field: 'user.email' }],\n pageError: {\n contentKey: 'login.userMayHaveAccount',\n guestcontentKey: 'login.userMayHaveAccountGuest'\n },\n compileMessageWith: {\n href: loginRedirectUrl\n },\n scrollToTop: true\n },\n ACCOUNT_ALREADY_EXISTS_AUTHFLOW_REDIRECT: {\n fields: [{ field: 'user.email' }],\n pageError: {\n contentKey: 'login.userMayHaveAccountRecovery'\n },\n compileMessageWith: {\n href: authflowRedirectUrl\n },\n scrollToTop: true\n },\n INVALID_EMAIL_ID: {\n fields: [{ field: 'user.email' }]\n },\n DOB_INVALID: {\n element: '#dob, #dobBank',\n name: 'dob',\n fields: [{ field: 'Day' }, { field: 'Month' }, { field: 'Year' }, { field: 'Text' }]\n },\n REJECT_REFUSED: {\n pageError: {\n contentKey: 'creditcard.errorInstrumentRefused'\n }\n },\n INVALID_INSTRUMENT_ID: {\n pageError: {\n contentKey: 'creditcard.errorInvalidData'\n }\n },\n ADDRESS_MISMATCH: {\n pageError: {\n contentKey: 'creditcard.errorInstrumentBillingAddressNotMatch'\n }\n },\n CHECK_DIGITS_REJECTED: {\n pageError: {\n contentKey: 'creditcard.errorCheckDigits'\n }\n },\n OAS_GENERIC_ERROR: {\n pageError: {\n contentKey: 'genericError.genericError'\n },\n scrollToTop: true\n },\n BIN_BLOCKED_OR_CARD_NOT_ALLOWED: {\n pageError: {\n contentKey: 'creditcard.complianceDecline'\n }\n },\n INVALID_CARD_OR_TYPE: {\n pageError: {\n contentKey: 'creditcard.errorInvalidCCNumberOrType_global'\n }\n },\n INVALID_SECURITY_CODE: {\n fields: [{ field: 'card.security_code' }],\n pageError: {\n contentKey: 'creditcard.errorCheckDigitsNotPresent'\n }\n },\n COUNTRY_NOT_SUPPORTED: {\n pageError: {\n contentKey: 'creditcard.complianceDecline'\n }\n },\n CARD_GENERIC_ERROR: {\n pageError: {\n contentKey: 'creditcard.errorGeneral'\n }\n },\n BANK_GENERIC_ERROR: {\n pageError: {\n contentKey: 'bank.errorGeneral'\n }\n }\n};\n\n// TODO: this block needs to be depricated. looks like this is valid for a\n// old service call which is killed already\nvar validationErrorMap = {\n INVALID_ROUTING_NUMBER: {\n contentKey: 'bank.invalidRoutingNumber'\n },\n INVALID_ACCOUNT: {\n contentKey: 'creditcard.errorInvalidData'\n },\n ISSUER_DENIED: {\n contentKey: 'creditcard.errorIssuerDenied'\n },\n ISSUER_REJECTED: {\n contentKey: 'creditcard.errorIssuerReject'\n },\n REJECT_REFUSED: {\n contentKey: 'creditcard.errorInstrumentRefused'\n },\n INVALID_INSTRUMENT_ID: {\n contentKey: 'creditcard.errorInvalidData'\n }\n};\n\nexports.errorElementMap = errorElementMap;\nexports.validationErrorMap = validationErrorMap;\n\n\n_squid.$getRedirectUrl;\n\n_index.$config;\n\n_index.$util;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest/constants/errorHandlerConstants.js\n// module id = ../node_modules/xo-guest-components/src/guest/constants/errorHandlerConstants.js\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar singlepassword = {\n singlepassword_test: 'xoon_single_password_test'\n};\n\nvar xoon_optional_signup_content_change = {\n xoon_optional_signup_content_change_gb_test: {\n subTitle: 'common.createPayPalPropTest1',\n yesCreateAccount: 'common.yesCreateAccountTest1'\n },\n xoon_optional_signup_content_change_test1: {\n title: 'common.getBenefitsLine1Test1',\n subTitle: 'common.createPayPalPropTest1'\n },\n xoon_optional_signup_content_change_test2: {\n title: 'common.getBenefitsLine1Test1',\n subTitle: 'common.createPayPalPropTest2'\n },\n xoon_optional_signup_content_change_test3: {\n title: 'common.getBenefitsLine1Test2',\n subTitle: 'common.createPayPalPropTest3'\n },\n xoon_optional_signup_content_change_test4: {\n title: 'common.getBenefitsLine1Test2',\n subTitle: 'common.createPayPalPropTest4'\n }\n};\n\nvar frsPageName = {\n wps: {\n signup: 'frs_wps_forced',\n guest: 'frs_wps_optional',\n guestonly: 'frs_wps_optional'\n },\n ec: {\n signup: 'frs_ec_forced',\n guest: 'frs_ec_optional'\n }\n};\n\nvar xoon_forced_signup_buyer_protection_content = {\n xoon_forced_signup_buyer_protection_content_treatment_a: {\n titleLine1: 'common.getSecurityAndProtectionLine1',\n titleLine2: 'common.getSecurityAndProtectionLine2',\n subTitle: 'common.getSecurityAndProtectionLineSubTitle'\n },\n xoon_forced_signup_buyer_protection_content_treatment_b: {\n titleLine1: 'common.getCashbackLine1',\n titleLine2: '',\n subTitle: 'common.getCashbackLineSubTitle'\n }\n};\n\nvar frs_wps_optional = {\n frs_wps_optional_treatment1: {\n title: 'signup.createPayPalAccountFRSLine1Variant1',\n subTitle: 'signup.createPayPalAccountFRSLine2Variant1'\n },\n frs_wps_optional_treatment2: {\n title: 'signup.createPayPalAccountFRSLine1Variant2',\n subTitle: 'signup.createPayPalAccountFRSLine2Variant2'\n },\n frs_wps_optional_treatment3: {\n title: 'signup.createPayPalAccountFRSLine1Variant3',\n subTitle: 'signup.createPayPalAccountFRSLine2Variant1'\n }\n};\n\nvar frs_ec_optional = {\n frs_ec_optional_treatment1: {\n title: 'signup.createPayPalAccountFRSLine1Variant4',\n subTitle: 'signup.createPayPalAccountFRSLine2Variant1'\n },\n frs_ec_optional_treatment2: {\n title: 'signup.createPayPalAccountFRSLine1Variant5',\n subTitle: 'signup.createPayPalAccountFRSLine2Variant2'\n },\n frs_ec_optional_treatment3: {\n title: 'signup.createPayPalAccountFRSLine1Variant6',\n subTitle: 'signup.createPayPalAccountFRSLine2Variant1'\n }\n};\n\nvar frs_ec_forced = {\n frs_ec_forced_treatment1: {\n title: 'signup.createPayPalAccountFRSLine1Variant7',\n subTitle: 'signup.createPayPalAccountFRSLine2Variant1'\n },\n frs_ec_forced_treatment2: {\n title: 'signup.createPayPalAccountFRSLine1Variant8',\n subTitle: 'signup.createPayPalAccountFRSLine2Variant2'\n },\n frs_ec_forced_treatment3: {\n title: 'signup.createPayPalAccountFRSLine1Variant9',\n subTitle: 'signup.createPayPalAccountFRSLine2Variant1'\n }\n};\n\nvar frs_wps_forced = {\n frs_wps_forced_treatment1: {\n title: 'signup.createPayPalAccountFRSLine1Variant7',\n subTitle: 'signup.createPayPalAccountFRSLine2Variant1'\n },\n frs_wps_forced_treatment2: {\n title: 'signup.createPayPalAccountFRSLine1Variant8',\n subTitle: 'signup.createPayPalAccountFRSLine2Variant2'\n },\n frs_wps_forced_treatment3: {\n title: 'signup.createPayPalAccountFRSLine1Variant9',\n subTitle: 'signup.createPayPalAccountFRSLine2Variant1'\n }\n};\n\nvar frs_applicable_treatments = {\n frs_wps_optional: ['frs_wps_optional_treatment1', 'frs_wps_optional_treatment2', 'frs_wps_optional_treatment3'],\n frs_ec_optional: ['frs_ec_optional_treatment1', 'frs_ec_optional_treatment2', 'frs_ec_optional_treatment3'],\n frs_ec_forced: ['frs_ec_forced_treatment1', 'frs_ec_forced_treatment2', 'frs_ec_forced_treatment3'],\n frs_wps_forced: ['frs_wps_forced_treatment1', 'frs_wps_forced_treatment2', 'frs_wps_forced_treatment3']\n};\n\nexports['default'] = {\n test: {\n singlepassword: singlepassword,\n xoon_optional_signup_content_change: xoon_optional_signup_content_change,\n frs_wps_optional: frs_wps_optional,\n frs_ec_optional: frs_ec_optional,\n frs_ec_forced: frs_ec_forced,\n frs_applicable_treatments: frs_applicable_treatments,\n frsPageName: frsPageName,\n frs_wps_forced: frs_wps_forced,\n xoon_forced_signup_buyer_protection_content: xoon_forced_signup_buyer_protection_content\n }\n};\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest/constants/pxpExperimentConstants.js\n// module id = ../node_modules/xo-guest-components/src/guest/constants/pxpExperimentConstants.js\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _angular = require('angular');\n\nvar _angular2 = _interopRequireDefault(_angular);\n\nvar _index = require('squid/index');\n\nvar _index2 = require('xo-models/src/checkout/index');\n\nvar _index3 = require('xo-models/src/user/index');\n\nvar _logger = require('xo-beaver/dist/logger');\n\nvar _uiRouter = require('uiRouter');\n\nrequire('xo-ui-components/src/error-tooltip/directive');\n\nrequire('xo-ui-components/src/floating-label/directive');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _index.$Component.extend('xoCountryList', {\n tag: 'xo-country-list',\n template: _template2['default'],\n\n props: {\n token: {\n type: 'var',\n required: false\n },\n showMask: {\n type: 'var',\n required: false\n },\n // mode is not present in multistep, so it is set as not required\n mode: {\n type: 'var',\n required: false\n }\n },\n\n resolve: {\n models: function models() {\n return {\n checkoutInputData: _index3.$CheckoutInputDataModel.instance(this.token).retrieve(),\n payee: _index2.$CheckoutPayeeModel.instance(this.token).retrieve(),\n checkoutAppData: _index2.$CheckoutAppDataModel.instance(this.token).retrieve(),\n checkoutCart: _index2.$CheckoutCartModel.instance(this.token).retrieve()\n };\n }\n },\n\n lifecycle: {\n enter: function enter() {\n // Default to 'signup' as multistep will not pass mode prop\n this.mode = this.mode || 'signup';\n },\n populate: function populate() {\n var _this = this;\n\n var proxSignUpFlow = this.models.checkoutInputData.isEbayTxn();\n\n this.merchantCountry = this.models.checkoutAppData.get('merchant.merchant_country');\n this.merchantComplianceRestricted = (0, _index.$feature)('merchantComplianceRestricted', false, this.merchantCountry);\n\n this.fallbackOnUnsupportedCountry = function (selectedCountry) {\n if (!(0, _index.$feature)('guest', false, selectedCountry) || (0, _index.$feature)('guestFallback', false, selectedCountry)) {\n throw new _index.$FallbackError({\n reason: 'other_country_selected_for_guest',\n product: 'ux'\n });\n }\n };\n\n this.fallbackOnUnsupportedCountry(_index.$locale.country);\n\n this.isMerchantCountrySameAsSelectedCountry = function (merchantCountry, selectedCountry) {\n var countriesWithMultipleCodes = {\n CN: ['CN', 'C2'],\n C2: ['CN', 'C2']\n };\n var merchantCountryList = countriesWithMultipleCodes[merchantCountry] || [merchantCountry];\n\n return merchantCountryList.indexOf(selectedCountry) > -1;\n };\n\n /**\n * This function will determine the country list will be shown to user:\n * 1. Get supported country list from griffin\n * 2. Filter out blocked countries configured in our app's config file\n * 3. Add default 'Country' option to the list if needed: ie. for merchant compliance restricted case\n */\n this.populateSupportedCountries = function () {\n _this.metadata = _angular2['default'].copy(_index.$locale.metadata) || {};\n var _metadata$territory = _this.metadata.territory,\n territory = _metadata$territory === undefined ? [] : _metadata$territory;\n\n var countries = proxSignUpFlow ? _index.$config.proxSupportedCountries : _index.$config.guestBlockedCountries || [];\n\n _this.supportedCountries = territory.filter(function (c) {\n if (c.code === _index.$locale.country) {\n _this.selectedCountryObj = c;\n }\n\n var inCountires = countries.includes(c.code);\n\n // When not in the prox signup flow we need to return the negated\n // inCountires since it is checking blocked countries, not allowed countries\n return proxSignUpFlow ? inCountires : !inCountires;\n });\n\n if (!proxSignUpFlow) {\n if (_this.merchantComplianceRestricted && _this.isMerchantCountrySameAsSelectedCountry(_this.merchantCountry, _this.selectedCountryObj.code)) {\n var defaultOption = {\n code: '',\n name: _index.$locale.content.common.country\n };\n\n _this.supportedCountries.push(defaultOption);\n _this.selectedCountryObj = defaultOption;\n }\n\n if (_this.merchantComplianceRestricted && _this.isMerchantCountrySameAsSelectedCountry(_this.merchantCountry, _index.$locale.country)) {\n _this.showMask = true;\n }\n }\n };\n\n this.populateSupportedCountries();\n\n // TODO: to be removed - currently locale change and metadata change is not in sync which need to be fixed.\n this.$on('metadataChange', function () {\n _this.populateSupportedCountries();\n });\n\n /*\n * merchants can block international PayPal accounts using the merchant setting Block payments from users\n * who have non-merchant country PayPal accounts, if resolved country is not merchant country, default to merchant country\n * and disable the country list\n */\n this.blockNonDomesticPayer = this.models.checkoutAppData.get('flags.block_non_domestic_payer') && (0, _index.$feature)('blockNonDomesticPayer', false, this.merchantCountry);\n this.disableCountryList = this.blockNonDomesticPayer || this.models.checkoutCart.isWalletTokenization();\n if (this.disableCountryList && this.merchantCountry !== _index.$locale.country) {\n _logger.$logger.info('merchant block_non_domestic_payer', {\n merchantCountry: this.merchantCountry,\n resolvedCountry: _index.$locale.country\n });\n this.actions.countryChanged(this.merchantCountry);\n }\n }\n },\n\n actions: {\n countryChanged: function countryChanged(selectedCountry) {\n var _this2 = this;\n\n var stateName = this.mode === 'signup' ? 'signup' : 'guest_xo';\n\n _logger.$logger.info('country_updated', { 'to': selectedCountry, 'from': _index.$locale.country });\n\n _logger.$logger.info('checkout_fpti', {\n from: stateName,\n to: 'prep_change_cntry'\n });\n\n this.selectedCountry = selectedCountry;\n this.fallbackOnUnsupportedCountry(selectedCountry);\n\n if (this.merchantComplianceRestricted) {\n this.showMask = false;\n this.showMessage = false;\n this.ariaDescribedBy = '';\n\n if (!selectedCountry) {\n this.showMask = true;\n return;\n } else if (this.isMerchantCountrySameAsSelectedCountry(this.merchantCountry, selectedCountry)) {\n this.showMask = true;\n this.showMessage = true;\n this.ariaDescribedBy = 'errorSignupAgree';\n return;\n }\n }\n\n var resolveLang = function resolveLang() {\n\n var merchantLocale = _this2.models.checkoutAppData.get('merchant.merchant_locale');\n\n merchantLocale = merchantLocale && _index.$localeHelper.normalizeLocale(merchantLocale).language;\n merchantLocale = merchantLocale && merchantLocale.toLowerCase();\n\n var supportedLocales = _index.$config.supportedCountries;\n\n var defaultLanguageException = _index.$config.defaultLanguageException;\n var defaultExceptionLang = defaultLanguageException[selectedCountry];\n var defaultCountryLang = supportedLocales[selectedCountry] && supportedLocales[selectedCountry][0];\n\n var selectedLang = defaultExceptionLang || defaultCountryLang;\n\n var resolvedLang = merchantLocale && supportedLocales[selectedCountry] && supportedLocales[selectedCountry].indexOf(merchantLocale) !== -1 ? merchantLocale : selectedLang;\n\n return resolvedLang;\n };\n\n if (_index.$locale.country !== this.selectedCountry) {\n // Make known the country has changed\n // Used in xoon to re-issue EPM call\n _index.$event.broadcast('countryChange');\n\n // Perform Language Resolution only when the country is changed, as below code does not consider locale.x merchant parameter\n _index.$locale.choose(this.selectedCountry, resolveLang(selectedCountry)).then(function () {\n _uiRouter.$state.go('checkout.landing');\n });\n }\n }\n }\n\n});\n\n\n_index.$Component;\n\n_index.$FallbackError;\n\n_index.$config;\n\n_index.$event;\n\n_index.$feature;\n\n_index.$locale;\n\n_index.$localeHelper;\n\n_index2.$CheckoutAppDataModel;\n\n_index2.$CheckoutPayeeModel;\n\n_index2.$CheckoutCartModel;\n\n_index3.$CheckoutInputDataModel;\n\n_logger.$logger;\n\n_uiRouter.$state;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest/countryList/directive.js\n// module id = ../node_modules/xo-guest-components/src/guest/countryList/directive.js\n// module chunks = 0","module.exports = \"
      \\n
      \\n \\n {{content('billing.blockNonDomesticPayer', {countryCode: selectedCountryObj.code})}}\\n
      \\n
      \\n \\n \\n
      \\n\\n
      \\n {{content('common.complianceRestricted', {merchantCountry: selectedCountryObj.name})}}\\n
      \\n
      \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest/countryList/template.html\n// module id = ../node_modules/xo-guest-components/src/guest/countryList/template.html\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _index = require('xo-models/src/checkout/index');\n\nvar _squid = require('squid');\n\nvar _logger = require('xo-beaver/dist/logger');\n\nvar _angular = require('angular');\n\nrequire('../postPlanInterstitialOptions/directive');\n\nrequire('xo-wallet-components/src/currency-conversion-options/directive');\n\nrequire('./styles');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nvar _constants = require('../../constants/constants');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _squid.$Component.extend('$xoCurrencyConversionLightbox', {\n tag: 'xo-currency-conversion-lightbox',\n\n template: _template2['default'],\n\n props: {\n token: {\n type: 'var',\n required: false\n },\n doneFn: {\n type: 'var',\n required: false\n },\n prePlanTreatment: {\n type: 'var',\n required: false\n }\n },\n\n resolve: {\n models: function models() {\n return {\n checkoutSession: _index.$CheckoutSessionModel.instance(this.props.token).retrieve(),\n checkoutAppData: _index.$CheckoutAppDataModel.instance(this.props.token).retrieve()\n };\n }\n },\n\n lifecycle: {\n enter: function enter() {\n var _this = this;\n\n this.openModal = function () {\n _logger.$logger.info('OPENING_CURRENCY_CONVERSION_LIGHTBOX', { isBuyerFx: Boolean(_this.prePlanTreatment) });\n _this.modalOpen = true;\n };\n\n this.updateConversionSelection = function (selection) {\n _this.models.ppconversion = selection;\n _this.setSelectedCurrency(selection);\n };\n\n this.isBuyerFXTreatment2 = (this.prePlanTreatment || '').includes('treatment_2');\n this.isNotBuyerFXTreatment = !(this.prePlanTreatment || '').includes('treatment');\n\n // This function is used to set the this.currency property which\n // is used for the `Pay in {currency}` label for the Buyer FX flow\n this.setSelectedCurrency = function (currencySelection) {\n if (_this.isBuyerFXTreatment2) {\n _this.currency = currencySelection === 'PAYPAL' ? _this.fromCurrencyCode : _this.toCurrencyCode;\n }\n };\n },\n populate: function populate() {\n var _this2 = this;\n\n // Set default conversion choice to 'PAYPAL'\n this.models.ppconversion = 'PAYPAL';\n\n // Get conversion currency codes\n var conversion = this.models.checkoutSession.get('plan.conversion', {});\n\n this.fromCurrencyCode = conversion.from_code;\n this.toCurrencyCode = conversion.to_code;\n this.conversionSpread = conversion.spread;\n\n // We don't want to log Buyer FX information to FPTI\n // for countries not included in the PXP\n if (this.prePlanTreatment) {\n /**\n * FPTI event #5 for Buyer FX guest experience\n * https://engineering.paypalcorp.com/confluence/display/EDS/Buyer+FX+Instrumentation+Specs\n * Buyer FX logging requires some extra information beyond what\n * we log for the PILOT/ROW/EMEA DCC experience\n */\n _logger.$logger.info('checkout_fpti', {\n from: 'CURRENCY_CONVERSION',\n to: 'prepare_currency_conversion_post_plan',\n conversion_type: 'PAYPAL', // Default selection\n is_conversion_shown: 1,\n currency_conversion_from_curr: this.fromCurrencyCode,\n currency_conversion_to_curr: this.toCurrencyCode,\n currency_conversion_spread: this.conversionSpread\n });\n }\n\n // Set content for Buyer FX (prePlanTreatment)\n this.setSelectedCurrency('PAYPAL');\n this.continueButton = 'common.pay' + (this.isBuyerFXTreatment2 ? 'InCurrency' : '') + 'Label';\n this.buyerFxHeader = this.prePlanTreatment === 'xo_xoon_dcc_popup_content_treatment_1' ? 'currencyOptions.bfxConversionHeaderRateInterstitial' : 'currencyOptions.bfxConversionHeaderCurrency';\n\n /**\n * Invoicing RegE compliance message has to be shown if Remittance Transfer Rule (RTR) applies.\n * It applies for US payers paying non US merchants an amount greater than $15 USD or the\n * equivalent in a foreign currency.\n */\n var isInvoicingFlow = this.models.checkoutAppData.get('flags.is_invoice_flow') === true;\n var amount = this.models.checkoutSession.get('plan.sources.0.amount.amount');\n var isRTRAmount = Number(amount) > _constants.RTR_AMOUNT;\n\n if (isInvoicingFlow) {\n var isUSBuyer = _squid.$locale.country === 'US';\n\n this.merchant = this.models.checkoutAppData.get('merchant');\n this.showInvoicingRegEMsg = isUSBuyer && isRTRAmount && _squid.$util.getProperty(this.merchant, 'merchant_country') !== 'US';\n\n // We need merchantDisplayName to be non empty and if merchant_name or brand_name is undefined\n // then we need the value of merchantDisplayName to be 'the merchant' as it is the middle of sentence\n // in currencyOptions.invoicingRegEMsg displayed in template\n this.nonEmptyMerchantDisplayName = this.models.checkoutAppData.getMerchantDisplayName({\n nonEmptyReturnValue: true\n });\n }\n /**\n * End Reg-E logic\n */\n\n this.closeModal = function (event) {\n if (event && event.preventDefault) {\n event.preventDefault();\n }\n\n _this2.modalOpen = false;\n\n // Hook css transition completion event 'transitionend'\n // to call onComplete function, guarentees best timing\n var containerEl = document.getElementById('conversionContainer');\n var onComplete = _squid.$util.once(function () {\n _logger.$logger.info('close_currency_conversion_lightbox');\n return _this2.props.doneFn();\n });\n\n containerEl.addEventListener('transitionend', onComplete);\n\n // If the browser doesn't support `transitionend` event callback\n // then we call onComplete after 350ms as fallback\n (0, _angular.$timeout)(onComplete, 350);\n };\n\n /**\n * FPTI event 7 for Buyer FX DCC - POST-PLAN\n * https://engineering.paypalcorp.com/confluence/display/EDS/Buyer+FX+Instrumentation+Specs\n */\n this.logFinalSelectionToFPTI = function () {\n _logger.$logger.info('checkout_fpti', {\n from: 'CURRENCY_CONVERSION',\n to: 'finalize_currency_conversion',\n currency_conversion_selected: _this2.models.ppconversion,\n currency_conversion_from_curr: _this2.fromCurrencyCode,\n currency_conversion_to_curr: _this2.toCurrencyCode,\n currency_conversion_spread: _this2.conversionSpread\n });\n };\n }\n },\n\n actions: {\n onSubmit: function onSubmit() {\n var _this3 = this;\n\n if (!this.models.ppconversion) {\n _logger.$logger.info('CURRENCY_CONVERSION_SUBMITTED_WITHOUT_SELECTION');\n\n this.message = {\n msgKeys: ['currencyOptions.noneSelected'],\n type: 'error'\n };\n\n return;\n }\n\n /*\n * This check cuts off flow to the 'updateConversion' service call\n * when the user has selected 'PAYPAL' for conversion. This is done\n * because the conversion is already set to 'PAYPAL' on the plan so\n * we do not need to make a patch call to update the conversion selection.\n */\n if (this.models.ppconversion === 'PAYPAL') {\n // We don't want to log Buyer FX information to FPTI\n // for countries not incldued in the PXP\n if (this.prePlanTreatment) {\n this.logFinalSelectionToFPTI();\n }\n\n this.closeModal({ complete: true });\n\n return;\n }\n\n /**\n * If conversion is not 'PAYPAL' then we need to patch the cart to set the\n * conversion type to vendor.\n */\n var data = {\n conversionType: this.models.ppconversion,\n planId: this.models.checkoutSession.get('plan.id')\n };\n\n if (data.planId) {\n var setErrorMessage = function setErrorMessage() {\n _logger.$logger.info('POST_PLAN_CONVERSION_ERROR');\n\n _this3.message = {\n msgKeys: ['genericError.genericError'],\n type: 'error'\n };\n };\n\n this.models.checkoutSession.fundingOptions.action('updateConversion', {\n data: data,\n success: function success() {\n // We don't want to log Buyer FX information to FPTI\n // for countries not incldued in the PXP\n if (_this3.prePlanTreatment) {\n _this3.logFinalSelectionToFPTI();\n }\n\n _this3.closeModal({ complete: true });\n },\n error: setErrorMessage,\n contingency: setErrorMessage\n });\n }\n }\n }\n});\n\n\n_index.$CheckoutSessionModel;\n\n_index.$CheckoutAppDataModel;\n\n_squid.$Component;\n\n_squid.$locale;\n\n_squid.$util;\n\n_logger.$logger;\n\n_angular.$timeout;\n\n_constants.RTR_AMOUNT;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest/currencyConversion/currencyConversionInterstitial/directive.js\n// module id = ../node_modules/xo-guest-components/src/guest/currencyConversion/currencyConversionInterstitial/directive.js\n// module chunks = 0","module.exports = \"
      \\n
      \\n\\n
      \\n
      \\n\\n
      \\n \\n\\n
      \\n\\n \\n \\n\\n
      \\n

      {{ content(buyerFxHeader) }}

      \\n \\n \\n
      \\n\\n
      \\n {{\\n content(\\n 'currencyOptions.invoicingRegEMsg',\\n {\\n merchantName: nonEmptyMerchantDisplayName,\\n amountInInvoiceCurrency: merchantTotal\\n }\\n )\\n }}\\n
      \\n\\n
      \\n \\n
      \\n\\n \\n
      \\n
      \\n
      \\n
      \\n
      \\n
      \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest/currencyConversion/currencyConversionInterstitial/template.html\n// module id = ../node_modules/xo-guest-components/src/guest/currencyConversion/currencyConversionInterstitial/template.html\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _squid = require('squid');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nrequire('xo-wallet-components/src/currency-conversion-options/directive.js');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _squid.$Component.extend('$xoInlineCurrencyConversion', {\n tag: 'xo-inline-currency-conversion',\n\n template: _template2['default'],\n\n props: {\n card: {\n type: 'var',\n required: false\n },\n token: {\n type: 'var',\n required: false\n },\n treatment: {\n type: 'var',\n required: false\n }\n },\n\n lifecycle: {\n populate: function populate() {\n var isRate = (this.treatment || '').includes('treatment_1');\n var headerType = isRate ? 'RateInline' : 'Currency';\n\n this.conversionTitle = 'currencyOptions.bfxConversionHeader' + headerType;\n }\n }\n});\n\n\n_squid.$Component;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest/currencyConversion/inlineCurrencyConversion/directive.js\n// module id = ../node_modules/xo-guest-components/src/guest/currencyConversion/inlineCurrencyConversion/directive.js\n// module chunks = 0","module.exports = \"
      \\n

      \\n {{ content(conversionTitle) }}\\n

      \\n\\n \\n \\n
      \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest/currencyConversion/inlineCurrencyConversion/template.html\n// module id = ../node_modules/xo-guest-components/src/guest/currencyConversion/inlineCurrencyConversion/template.html\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.getCurrencyFrom = exports.getCurrencyTo = exports.getDccVendorExchange = exports.getDccPPExchange = exports.getDccPPTotal = exports.getDccVendorTotal = exports.getDccPPRate = exports.getVendorRateLabel = exports.getPPRateLabel = exports.getDccTitle = undefined;\n\nvar _squid = require('squid');\n\nvar getDccTitle = function getDccTitle(isCountryUS) {\n return isCountryUS ? 'currencyOptions.dccTitleTreatment2' : 'currencyOptions.dccTitle';\n}; /* eslint-disable no-arrow-condition, no-confusing-arrow */\n\n\nvar getPPRateLabel = function getPPRateLabel(isCountryUS) {\n return isCountryUS ? 'currencyOptions.dccPPDescTreatment1' : 'currencyOptions.dccPPDesc';\n};\n\nvar getVendorRateLabel = function getVendorRateLabel(isCountryUS) {\n return isCountryUS ? 'currencyOptions.dccVendorDescTreatment1' : 'currencyOptions.dccVendorDesc';\n};\n\nvar getDccPPRate = function getDccPPRate(isCountryUS, isEMEA3PLCountry) {\n return isCountryUS ? 'currencyOptions.dccPPRateTreatment1' : 'currencyOptions.dccPPRate' + (isEMEA3PLCountry ? '3PL' : '');\n};\n\nvar getDccVendorTotal = function getDccVendorTotal(isCountryUS) {\n return isCountryUS ? 'currencyOptions.dccVendorTotalTreatment1' : 'currencyOptions.dccVendorTotal';\n};\n\nvar getDccPPTotal = function getDccPPTotal(isCountryUS) {\n return isCountryUS ? 'currencyOptions.dccPPTotalTreatment1' : 'currencyOptions.dccPPTotal';\n};\n\nvar getDccPPExchange = function getDccPPExchange(isCountryUS) {\n return isCountryUS ? 'currencyOptions.dccPPExchangeTreatment1' : 'currencyOptions.dccPPExchange';\n};\n\nvar getDccVendorExchange = function getDccVendorExchange(isCountryUS) {\n return isCountryUS ? 'currencyOptions.dccVendorExchangeTreatment1' : 'currencyOptions.dccVendorExchange';\n};\n\nvar getCurrencyTo = function getCurrencyTo(isCountryUS, conversion) {\n if (isCountryUS) {\n return conversion.to_amount_forex;\n }\n\n return (0, _squid.truncateCurrencyConversionString)({\n fullString: conversion.to,\n amount: conversion.to_amount,\n amountForex: conversion.to_amount_forex\n });\n};\n\nvar getCurrencyFrom = function getCurrencyFrom(isCountryUS, conversion) {\n if (isCountryUS) {\n return '1';\n }\n\n return (0, _squid.truncateCurrencyConversionString)({\n fullString: conversion.from,\n amount: conversion.from_amount,\n amountForex: conversion.from_amount_forex\n });\n};\n\nexports.getDccTitle = getDccTitle;\nexports.getPPRateLabel = getPPRateLabel;\nexports.getVendorRateLabel = getVendorRateLabel;\nexports.getDccPPRate = getDccPPRate;\nexports.getDccVendorTotal = getDccVendorTotal;\nexports.getDccPPTotal = getDccPPTotal;\nexports.getDccPPExchange = getDccPPExchange;\nexports.getDccVendorExchange = getDccVendorExchange;\nexports.getCurrencyTo = getCurrencyTo;\nexports.getCurrencyFrom = getCurrencyFrom;\n\n\n_squid.truncateCurrencyConversionString;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest/currencyConversion/postPlanInterstitialOptions/contentUtils.js\n// module id = ../node_modules/xo-guest-components/src/guest/currencyConversion/postPlanInterstitialOptions/contentUtils.js\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _squid = require('squid');\n\nvar _index = require('xo-models/src/checkout/index');\n\nvar _logger = require('xo-beaver/dist/logger');\n\nvar _contentUtils = require('./contentUtils');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _squid.$Component.extend('$xoCurrencyConversionLightboxOptions', {\n tag: 'xo-currency-conversion-lightbox-options',\n\n template: _template2['default'],\n\n props: {\n token: {\n type: 'var',\n required: false\n },\n openModal: {\n type: 'var',\n required: false\n },\n updateConversionSelection: {\n type: 'var',\n required: false\n },\n isBuyerFxPxp: {\n type: 'var',\n required: false\n }\n },\n\n resolve: {\n models: function models() {\n return {\n checkoutSession: _index.$CheckoutSessionModel.instance(this.props.token).retrieve(),\n checkoutCart: _index.$CheckoutCartModel.instance(this.props.token).retrieve()\n };\n }\n },\n\n lifecycle: {\n populate: function populate() {\n // Set conversion information\n this.conversionOptions = _squid.$config.currencyConversion.options;\n this.models.ppconversion = this.conversionOptions.PAYPAL;\n\n this.conversion = this.models.checkoutSession.get('plan.conversion');\n this.paypalConversionTotal = this.models.checkoutSession.get('plan.sources.0.amount.amount_formatted_currency');\n\n var unformattedAmount = this.models.checkoutCart.get('purchase.amounts.total.amount');\n var merchantCurrencyCode = this.models.checkoutCart.get('purchase.amounts.total.currency_code');\n\n this.merchantTotal = (0, _squid.formatCurrency)(unformattedAmount, merchantCurrencyCode, false);\n\n var isEMEA3PLCountry = _squid.$util.getProperty(_squid.$locale.metadata, 'localization.isEMEA3PLCountry', { 'default': false });\n\n // Content for non Buyer FX phase 2 is different for the US.\n // The US uses content from Buyer FX phase 1 as the control.\n var isCountryUS = _squid.$locale.country === 'US';\n\n // Get content keys\n this.dccTitle = (0, _contentUtils.getDccTitle)(isCountryUS);\n this.ppRateLabel = (0, _contentUtils.getPPRateLabel)(isCountryUS);\n this.dccPPRate = (0, _contentUtils.getDccPPRate)(isCountryUS, isEMEA3PLCountry);\n this.vendorRateLabel = (0, _contentUtils.getVendorRateLabel)(isCountryUS);\n this.dccPPTotal = (0, _contentUtils.getDccPPTotal)(isCountryUS);\n this.dccPPExchange = (0, _contentUtils.getDccPPExchange)(isCountryUS);\n this.dccPPExchangeOptions = {\n buyerCurrency: this.conversion.from_code,\n currencyFrom: (0, _contentUtils.getCurrencyFrom)(isCountryUS, this.conversion),\n currencyTo: (0, _contentUtils.getCurrencyTo)(isCountryUS, this.conversion),\n sellerCurrency: this.conversion.to_code\n };\n this.dccVendorExchange = (0, _contentUtils.getDccVendorExchange)(isCountryUS);\n\n // LATAM countries have unique disclosure requirements for vendor option\n this.dccVendorTotal = (0, _contentUtils.getDccVendorTotal)(isCountryUS);\n\n // Open the interstitial\n this.openModal();\n }\n },\n\n actions: {\n onConversionOptionChange: function onConversionOptionChange() {\n // For post-plan conversion we need to update the chosen conversion\n // selection in the guest currency conversion interstitial component\n this.updateConversionSelection(this.models.ppconversion);\n\n // We don't want to log Buyer FX information to FPTI\n // for countries not incldued in the PXP\n if (this.isBuyerFxPxp) {\n /**\n * FPTI event #4 & #6 for Buyer FX guest experience\n * https://engineering.paypalcorp.com/confluence/display/EDS/Buyer+FX+Instrumentation+Specs\n */\n _logger.$logger.info('checkout_fpti', {\n from: 'CURRENCY_CONVERSION',\n to: 'changed_currency_conversion_post_plan',\n currency_conversion_selected: this.models.ppconversion,\n currency_conversion_from_curr: this.conversion.from_code,\n currency_conversion_to_curr: this.conversion.to_code,\n currency_conversion_spread: this.conversion.spread\n });\n }\n }\n }\n});\n\n\n_squid.$Component;\n\n_squid.$locale;\n\n_squid.formatCurrency;\n\n_squid.$util;\n\n_squid.$config;\n\n_index.$CheckoutSessionModel;\n\n_index.$CheckoutCartModel;\n\n_logger.$logger;\n\n_contentUtils.getDccTitle;\n\n_contentUtils.getPPRateLabel;\n\n_contentUtils.getVendorRateLabel;\n\n_contentUtils.getDccPPRate;\n\n_contentUtils.getDccVendorTotal;\n\n_contentUtils.getDccPPTotal;\n\n_contentUtils.getDccPPExchange;\n\n_contentUtils.getDccVendorExchange;\n\n_contentUtils.getCurrencyTo;\n\n_contentUtils.getCurrencyFrom;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest/currencyConversion/postPlanInterstitialOptions/directive.js\n// module id = ../node_modules/xo-guest-components/src/guest/currencyConversion/postPlanInterstitialOptions/directive.js\n// module chunks = 0","module.exports = \"
      \\n

      {{ content(dccTitle) }}

      \\n\\n
        \\n

        \\n

        \\n
      • \\n
        \\n \\n \\n {{ content(ppRateLabel, { buyerCurrency: conversion.from_code }) }}\\n \\n
        \\n
          \\n
        • \\n
        • \\n
        • \\n {{ content('currencyOptions.conversionDate', {date: conversion.date}) }}\\n
        • \\n
        • \\n
        • \\n
        • \\n
        • \\n
        \\n
      • \\n
      • \\n
        \\n \\n \\n {{ content(vendorRateLabel, { sellerCurrency: conversion.to_code }) }}\\n \\n
        \\n
          \\n
        • \\n
        • \\n
        • \\n {{ content('currencyOptions.exchangeRate') }} {{ content('currencyOptions.dccVendorRateNonVisa') }}\\n
        • \\n
        • \\n
        \\n
      • \\n
      • \\n {{ content('currencyOptions.dccCommonRateNonVisa') }}\\n
      • \\n
      \\n
      \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest/currencyConversion/postPlanInterstitialOptions/template.html\n// module id = ../node_modules/xo-guest-components/src/guest/currencyConversion/postPlanInterstitialOptions/template.html\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.logBuyerFxFpti = exports.logBuyerFxFptiEvent7 = exports.logBuyerFxFptiEvent3 = exports.isConversionChangeableForCardType = exports.getForcedVendorCards = exports.getForcedPayPalCards = undefined;\n\nvar _logger = require('xo-beaver/dist/logger');\n\nvar _squid = require('squid');\n\nvar getFromCode = function getFromCode() {\n return _squid.$util.getProperty(_squid.$locale, 'metadata.currency.code');\n};\nvar getToCode = function getToCode(purchase) {\n return _squid.$util.getProperty(purchase, 'amounts.total.currency_code');\n};\nvar getForcedCards = function getForcedCards(type) {\n return _squid.$util.getProperty(_squid.$config, 'currencyConversion.cards.forced' + type, { 'default': [] });\n};\n\nvar getForcedPayPalCards = exports.getForcedPayPalCards = function getForcedPayPalCards() {\n return getForcedCards('PayPal');\n};\n\nvar getForcedVendorCards = exports.getForcedVendorCards = function getForcedVendorCards() {\n return getForcedCards('Vendor');\n};\n\nvar isConversionChangeableForCardType = exports.isConversionChangeableForCardType = function isConversionChangeableForCardType(type) {\n return ![].concat(getForcedPayPalCards(), getForcedVendorCards()).includes(type);\n};\n\n/**\n * FPTI event #3 for Buyer FX guest experience\n * https://engineering.paypalcorp.com/confluence/display/EDS/Buyer+FX+Instrumentation+Specs\n */\nvar logBuyerFxFptiEvent3 = exports.logBuyerFxFptiEvent3 = function logBuyerFxFptiEvent3(purchase) {\n _logger.$logger.info('checkout_fpti', {\n from: 'CURRENCY_CONVERSION',\n to: 'prepare_currency_conversion_post_plan',\n conversion_type: 'VENDOR',\n is_conversion_shown: 0, // 0 b/c we won't be showing conversion options\n currency_conversion_from_curr: getFromCode(),\n currency_conversion_to_curr: getToCode(purchase),\n currency_conversion_spread: 'N/A',\n locale: _squid.$locale.country\n });\n};\n\n/**\n * FPTI event 7 for Buyer FX DCC - PRE-PLAN MULTISTEP\n * https://engineering.paypalcorp.com/confluence/display/EDS/Buyer+FX+Instrumentation+Specs\n */\nvar logBuyerFxFptiEvent7 = exports.logBuyerFxFptiEvent7 = function logBuyerFxFptiEvent7() {\n var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n _ref$card = _ref.card,\n card = _ref$card === undefined ? {} : _ref$card,\n isConversionChangeable = _ref.isConversionChangeable,\n isSignup = _ref.isSignup,\n hasPrePlanData = _ref.hasPrePlanData,\n purchase = _ref.purchase;\n\n var _card$currencyConvDat = card.currencyConvData;\n _card$currencyConvDat = _card$currencyConvDat === undefined ? {} : _card$currencyConvDat;\n var from_code = _card$currencyConvDat.from_code,\n to_code = _card$currencyConvDat.to_code,\n spread = _card$currencyConvDat.spread,\n type = card.type;\n\n /**\n * We initially set the selection to `card.ppconversion`, which is the choice\n * the user selected when they were shown the conversion options. There are\n * two scenarios we need to adjust for, which are handled by the conditional\n * statement below.\n */\n\n var selection = card.ppconversion;\n\n /**\n * Adjustment scenario 1\n * Conversion is changeable, mode is `signup` and we don't have pre-plan data\n * In this case we force the vendor rate and forgo the conversion fee so that\n * there is as little friction as possible for a user that is in the process of\n * signing up.\n */\n if (isConversionChangeable && isSignup && !hasPrePlanData) {\n selection = 'VENDOR';\n\n /**\n * Adjustment scenario 2\n * If conversion is not changeable we need to check if the card type should be\n * forced to the PayPal conversion rate. If not, use vendor\n */\n } else if (!isConversionChangeable) {\n selection = getForcedPayPalCards().includes(type) ? 'PAYPAL' : 'VENDOR';\n }\n\n _logger.$logger.info('checkout_fpti', {\n from: 'CURRENCY_CONVERSION',\n to: 'finalize_currency_conversion',\n currency_conversion_selected: selection,\n currency_conversion_from_curr: from_code || getFromCode(),\n currency_conversion_to_curr: to_code || getToCode(purchase),\n currency_conversion_spread: spread || 'N/A'\n });\n};\n\nvar logBuyerFxFpti = exports.logBuyerFxFpti = function logBuyerFxFpti() {\n var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n hasPrePlanData = _ref2.hasPrePlanData,\n isSignup = _ref2.isSignup,\n _ref2$card = _ref2.card,\n card = _ref2$card === undefined ? {} : _ref2$card,\n purchase = _ref2.purchase;\n\n var type = card.type;\n\n var isConversionChangeable = isConversionChangeableForCardType(type);\n\n /**\n * If we don't have pre-plan data because the pre-plan API failed or becuse\n * the user is seeing the control and not one of the treatments and\n * the mode is signup and the card the chageable then we need to log event\n * 3 here. This is because for signup use cases the user won't see the\n * post-plan interstitial which is where event 3 is logged when the pre-plan\n * API fails or when the user is seeing the control experience for the guest\n * use case.\n */\n if (!hasPrePlanData && isSignup && isConversionChangeable) {\n logBuyerFxFptiEvent3(purchase);\n }\n\n if (isSignup || hasPrePlanData || !isConversionChangeable) {\n logBuyerFxFptiEvent7({\n card: card,\n isConversionChangeable: isConversionChangeable,\n isSignup: isSignup,\n hasPrePlanData: hasPrePlanData,\n purchase: purchase\n });\n }\n};\n\n_logger.$logger;\n\n_squid.$config;\n\n_squid.$locale;\n\n_squid.$util;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest/currencyConversion/utils.js\n// module id = ../node_modules/xo-guest-components/src/guest/currencyConversion/utils.js\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _angular = require('angular');\n\nvar _ul = require('xo-login-components/src/unified-login/ul');\n\nvar _squid = require('squid');\n\nvar _index = require('squid/index');\n\nvar _index2 = require('xo-models/src/checkout/index');\n\nvar _index3 = require('xo-models/src/user/index');\n\nvar _index4 = require('xo-models/src/shoppingcart/index');\n\nvar _index5 = require('xo-models/src/shippingMethod/index');\n\nvar _index6 = require('xo-models/src/inventory/index');\n\nvar _index7 = require('xo-models/src/onboard/index');\n\nvar _index8 = require('xo-models/src/fi/index');\n\nvar _fiApis = require('xo-models/src/fi/lib/fiApis');\n\nvar _index9 = require('xo-models/src/auth/index');\n\nvar _logger = require('xo-beaver/dist/logger');\n\nvar _uiRouter = require('uiRouter');\n\nvar _index10 = require('xo-device-info/dist/index');\n\nvar _index11 = require('xo-models/src/marketingoffer/index');\n\nvar _directive = require('xo-form-components/src/national-id-input/directive');\n\nvar _util = require('xo-wallet-components/src/fi-contingency-list/util');\n\nvar _sticky = require('./sticky');\n\nvar _util2 = require('../lib/util');\n\nvar _errorHandlerHelper = require('./lib/errorHandlerHelper');\n\nvar errorHandlerHelper = _interopRequireWildcard(_errorHandlerHelper);\n\nvar _shippingChangeFeature = require('./lib/shippingChangeFeature');\n\nvar _pageProps = require('./lib/pageProps');\n\nvar _util3 = require('./lib/util');\n\nvar _constants = require('./constants/constants');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nvar _index12 = require('xo-models/src/profilemanagement/index');\n\nvar _utils = require('./currencyConversion/utils');\n\nvar _xoShippingOptions = require('xo-shipping-options');\n\nvar _shippingOptionsFeature = require('./lib/shippingOptionsFeature.js');\n\nrequire('./currencyConversion/currencyConversionInterstitial/directive.js');\n\nrequire('./currencyConversion/inlineCurrencyConversion/directive.js');\n\nrequire('./countryList/directive.js');\n\nrequire('./emailInput/directive.js');\n\nrequire('./onboardOptions/directive.js');\n\nrequire('./passwordInput/directive.js');\n\nrequire('./redirectingFromXoonWarning/directive.js');\n\nrequire('./select-shipping-method/directive.js');\n\nrequire('./sepa/directive.js');\n\nrequire('./cartChanged/directive.js');\n\nrequire('./travelRuleLightbox/directive.js');\n\nrequire('./xoonHeader/directive.js');\n\nrequire('./tesla-add-bank/directive.js');\n\nrequire('xo-address-components/src/add-address/directive.js');\n\nrequire('xo-address-components/src/address-normalization/directive.js');\n\nrequire('xo-form-components/src/name-input/directive.js');\n\nrequire('xo-form-components/src/phone/phoneInput/directive.js');\n\nrequire('xo-form-components/src/select-shipping-country/directive.js');\n\nrequire('xo-wallet-components/src/3ds/directive.js');\n\nrequire('xo-wallet-components/src/add-bank/bank-input/directive.js');\n\nrequire('xo-wallet-components/src/add-card/creditcard-input/directive.js');\n\nrequire('xo-page-components/src/ba-message-banner/directive.js');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } }\n\nexports['default'] = _index.$Component.extend('xoOnboardPayment', {\n tag: 'xo-onboard-payment',\n template: _template2['default'],\n\n props: {\n token: {\n type: 'var',\n required: false\n },\n mode: {\n type: 'var',\n required: false\n },\n isUnbranded: {\n type: 'var',\n required: false\n },\n paymentMethod: {\n type: 'var',\n required: false\n },\n singleStepModel: {\n type: 'var',\n required: false\n },\n buttonParams: {\n type: 'var',\n required: false\n }\n },\n\n resolve: {\n models: function models() {\n return {\n auth: _index9.$AuthModel.instance(this.token).retrieve(),\n payee: _index2.$CheckoutPayeeModel.instance(this.props.token).retrieve(),\n checkoutAppData: _index2.$CheckoutAppDataModel.instance(this.props.token).retrieve(),\n checkoutCart: _index2.$CheckoutCartModel.instance(this.token).retrieve(),\n checkoutInputData: _index3.$CheckoutInputDataModel.instance(this.token).retrieve()\n };\n },\n shippingRule: function shippingRule(resolvers) {\n var _this = this;\n\n return resolvers.models.then(function (models) {\n if (models.checkoutAppData.is_snt_supported()) {\n return {\n profileRulesSummary: _index5.$ShippingRuleSummaryModel.instance(_this.token).retrieve({\n params: {\n merchant_id: models.payee.merchant.id,\n currency_code: models.checkoutCart.purchase.amounts.total.currency_code\n }\n })\n };\n }\n });\n },\n merchantPreferences: function merchantPreferences(resolvers) {\n return resolvers.models.then(function (models) {\n return {\n model: _index12.$MerchantPreferenceModel.instance(models.payee.merchant.id).retrieve()\n };\n });\n },\n sepaExperiment: function sepaExperiment() {\n var isSepaOverlayRequired = this.isUnbranded && this.onboard.fiMode === 'bank';\n\n if (isSepaOverlayRequired) {\n return {\n sepaOverlay: (0, _squid.$pxp)('XO_XOONBOARDING_SEPA_OVERLAY', { 'ctx.COUNTRY': _index.$locale.country }, 'XO_XOONBOARDING_SEPA_OVERLAY_TEST')\n };\n }\n },\n experiments: function experiments() {\n var flow = this.flags.wpsFlow ? 'wps' : 'ec';\n\n return {\n accountExistsPXP: (0, _squid.$pxp)('xo_xoon_account_exists_toggle_' + flow, { 'ctx.COUNTRY': _index.$locale.country }, 'xo_xoon_account_exists_toggle_' + flow + '_treatment')\n };\n },\n teslaAddBank: function teslaAddBank() {\n return {\n teslaAddBankEXP: (0, _squid.$elmo)('xo_xoon_tesla_add_bank', { 'ctx.COUNTRY': _index.$locale.country }, '(xo_xoon_jp_add_bank_treatment)(.*)')\n };\n },\n indiaWhitelistPxp: function indiaWhitelistPxp(resolvers) {\n var _this2 = this;\n\n return resolvers.models.then(function (models) {\n // show address less on-boarding experience only for EC IN whitelisted merchants.\n var eligible = !models.checkoutAppData.is_wps_flow() && !models.checkoutInputData.isEbayTxn() && !models.checkoutAppData.isInvoiceFlow() && !models.checkoutAppData.is_wps_subscription_flow() && !models.checkoutCart.isWalletTokenization();\n\n if (_index.$locale.country === 'IN' && eligible) {\n var _ref = models.payee || {},\n _ref$merchant = _ref.merchant;\n\n _ref$merchant = _ref$merchant === undefined ? {} : _ref$merchant;\n var id = _ref$merchant.id;\n\n return (0, _squid.$pxp)('xo_xoon_addressless_in_whitelist', { 'uid': id }, '(xo_xoon_addressless_in_whitelist_)(.*)').then(function (result) {\n if (result && result.treatment_name.includes('xo_xoon_addressless_in_whitelist_test')) {\n // Hide Billing Address and DOB fields when merchant is whitelisted\n _this2.flags.whiteListedIndiaMerchant = true;\n _logger.$logger.info('test_whitelisted_india_merchant');\n } else {\n return (0, _squid.$pxp)('xo_xoon_addressless_in_ramp', { 'ctx.MID': id }, '(xo_xoon_addressless_in_ramp_)(.*)').then(function (rampResult) {\n if (rampResult && rampResult.treatment_name.includes('xo_xoon_addressless_in_ramp_test')) {\n // Hide Billing Address and DOB fields when merchant is whitelisted\n _this2.flags.whiteListedIndiaMerchant = true;\n _logger.$logger.info('test_ramped_india_merchant');\n }\n });\n }\n });\n }\n });\n },\n bypassAddressVerificationExperience: function bypassAddressVerificationExperience() {\n // will only have treatment when the mode is guestonly\n return {\n bypassAddressVerificationExp: (0, _squid.$elmo)('xo_xoon_skip_avs', { 'ctx.COUNTRY': _index.$locale.country }, 'Trmt_xo_xoon_skip_avs')\n };\n }\n },\n\n lifecycle: {\n enter: function enter() {\n var _this3 = this;\n\n this.locale = _index.$locale;\n this.currentState = _uiRouter.$state.current.name;\n this.flags = {\n shipToBilling: true,\n allowEditShipping: true,\n showSingleAddress: false,\n showShippingLabel: true,\n cupDetected: false,\n hideShippingAddress: false,\n allowPayWithSnT: false,\n allowSnTCall: true,\n instantUpdateShippingRegionSupported: true,\n freeReturnShippingOptInFlowApplicable: false,\n freeReturnShippingOptInActiveFlow: false,\n showRedirectWarningPrompt: false,\n titleSubtitlePxpTreatment: false,\n showCartChanged: false,\n whiteListedIndiaMerchant: false,\n upopDetected: false\n };\n\n this.sepa = {\n sepaGuestAgree: false,\n sepaAgree: false,\n show: false\n };\n\n // set the OTP for addCard based on country feature\n this.needOTPForAddCard = (0, _index.$feature)('needOTPForAddCard');\n\n // If US, then show new e-sign compliance experience\n // Submit button text changes and show return to merchant msg above button\n // with user action 'continue'\n if (this.locale.country === 'US') {\n this.showNewSignupComplianceExp = true;\n }\n\n var app_int_type = _index10.$DeviceInfo.isWebView() ? 'WebView' : _index10.$DeviceInfo.getAppIntegrationType();\n\n // fpti log for app integration type\n _logger.$logger.info('checkout_fpti', {\n app_int_type: app_int_type\n });\n\n _logger.$logger.info('checkout_fpti', {\n page: 'main:ec:hermes::fullpage-billing:guest:hermes:'\n });\n\n // set the china upop flag on event heard\n // based on upop detected\n this.$watch('onboard.card.isUpop', function (newVal) {\n _this3.flags.upopDetected = newVal;\n });\n\n // set the cup flag on event heard\n // based on card type selected\n this.$watch('onboard.card.type', function (newVal) {\n _this3.flags.cupDetected = newVal === 'CUP';\n });\n\n $(document).on('click', '#pomaLegalterms a', function () {\n _angular.$rootScope.$broadcast('trackInput', {\n currentRoute: _uiRouter.$state.current,\n page: 'main:ec:hermes::fullpage-billing:guest:aries:',\n transition: $(_this3).text().replace(/\\s/g, '_')\n });\n });\n\n // This is needed in Sepa directive\n this.sectionElement = '#singlePagePayment';\n\n this.countries = function () {\n return _index.$locale.content.countryList;\n };\n\n var triggerPageDesignFPTILog = function triggerPageDesignFPTILog() {\n var pageContext = 'Full-context';\n\n if (_angular.$rootScope.miniBrowser) {\n pageContext = 'In-context';\n }\n\n _logger.$logger.info('checkout_fpti', {\n 'design': pageContext\n });\n };\n // Log Initial Page Design\n\n triggerPageDesignFPTILog();\n // Trigger Design FPTI Log on Page Design Change\n _angular.$rootScope.$watch('miniBrowser', triggerPageDesignFPTILog);\n\n var getPresetPaymentMethod = function getPresetPaymentMethod() {\n var paymentMethod = _this3.paymentMethod && _this3.paymentMethod.toLowerCase();\n\n if (!paymentMethod || paymentMethod !== 'bank' && paymentMethod !== 'card') {\n return;\n }\n\n return paymentMethod === 'bank' ? 'bank' : 'card';\n };\n\n var getFundingSource = function getFundingSource() {\n var fundingSource = void 0;\n\n if (_index.$config.deploy.isLocal() || _index.$config.deploy.isStage()) {\n // Both query param (fundingSource) and post message(window.xprops.fundingSource) are present\n // in SPB(Smart Payment Button) integration. but post message(window.xprops.fundingSource)\n // will not be availabe in local testing, so passing query param in the url mimics\n // the same.\n fundingSource = _index.$util.param('fundingSource');\n }\n\n if (window.xprops && window.xprops.fundingSource) {\n fundingSource = window.xprops.fundingSource;\n }\n\n return fundingSource;\n };\n\n this.showFISwitchTab = function () {\n\n // If the experience is tesla-add-bank, then show the FI toggle.\n if (_this3.teslaAddBankEXP) {\n return true;\n }\n\n var fundingSource = getFundingSource();\n\n if (getPresetPaymentMethod() || fundingSource === 'elv') {\n return false;\n }\n\n return (0, _index.$feature)('fiSwitchTab', false, _index.$locale.country);\n };\n\n this.getDefaultFIMode = function () {\n var presetPayMentMethod = getPresetPaymentMethod();\n\n if (presetPayMentMethod) {\n return presetPayMentMethod;\n }\n\n // Check to see if it's Tesla Add Bank experience. If so,\n // The default FI will depend on the treatments A,B or control\n\n if (_this3.teslaAddBankEXP) {\n return _this3.teslaFIDefault;\n }\n\n if (_index.$locale.country === 'DE') {\n var fundingSource = getFundingSource();\n var allowRevisedEpmCallJson = _index.$config.allowRevisedEpmCall;\n var allowSpb = allowRevisedEpmCallJson[_index.$locale.country] || allowRevisedEpmCallJson['DEFAULT'];\n\n // defaulting to card tab for SPB(Smart Payment Button) integration whenever post message\n // passing 'card' for DE.\n if (allowSpb && fundingSource === 'card') {\n return 'card';\n }\n // Default tab for branded DE transaction is Bank\n return 'bank';\n }\n return 'card';\n };\n\n this.onboard = new _index7.$OnboardModel({\n user: _index7.$OnboardUserModel.instance(this.token, {\n country: _index.$locale.country,\n countryOfResidence: _index.$locale.country,\n nationality: _index.$locale.country\n }),\n\n card: new _index8.$CardModel(),\n\n bank: new _index8.$BankModel(),\n\n fiMode: this.getDefaultFIMode(),\n\n billing_address: _index8.$BillingAddressModel.create(this.token, {\n country: _index.$locale.country\n }),\n shipping_address: _index2.$ShippingAddressModel.create(this.token, {\n country: _index.$locale.country\n }),\n\n phone: new _index7.$OnboardPhoneModel(),\n\n shipping_address_validation: false,\n billing_address_present: false,\n poma_flow: false,\n frs_optin_flow_applicable: false\n });\n\n this.onboard.card.ppconversion = 'PAYPAL';\n this.getSelectedCurrencyCode = function (selection) {\n var _onboard$card$currenc = _this3.onboard.card.currencyConvData;\n _onboard$card$currenc = _onboard$card$currenc === undefined ? {} : _onboard$card$currenc;\n var from_code = _onboard$card$currenc.from_code,\n to_code = _onboard$card$currenc.to_code;\n\n\n _this3.selectedCurrency = selection === 'PAYPAL' ? from_code : to_code;\n };\n this.$watch('onboard.card.ppconversion', function (newVal) {\n _logger.$logger.info('conversion_selection_changed_to_' + newVal);\n _this3.getSelectedCurrencyCode(newVal);\n });\n this.setBuyerFxFlag = function (_ref2) {\n var treatment = _ref2.treatment,\n hasBuyerFxPrePlanData = _ref2.hasBuyerFxPrePlanData;\n\n if (treatment) {\n _this3.flags.buyerFxTreatment = treatment;\n }\n\n _this3.flags.hasBuyerFxPrePlanData = hasBuyerFxPrePlanData;\n };\n },\n populate: function populate() {\n var _this4 = this;\n\n var determineTeslaFIMode = function determineTeslaFIMode(type) {\n if (type === 'xo_xoon_jp_add_bank_treatment') {\n return 'bank';\n } else {\n return 'card';\n }\n };\n\n var checkTeslaEligbility = function checkTeslaEligbility() {\n var _teslaAddBank$teslaAd = _this4.teslaAddBank.teslaAddBankEXP,\n teslaAddBankEXP = _teslaAddBank$teslaAd === undefined ? {} : _teslaAddBank$teslaAd;\n var teslaAddBankTreatment = teslaAddBankEXP.treatment_name;\n\n _this4.teslaAddBankEXP = teslaAddBankTreatment && teslaAddBankTreatment.includes('xo_xoon_jp_add_bank_treatment');\n\n // If it's teslaAddBankEXP treatment is successful, then change the default FI based on treatment returned.\n if (_this4.teslaAddBankEXP) {\n _this4.teslaFIDefault = determineTeslaFIMode(teslaAddBankTreatment);\n _this4.onboard.fiMode = _this4.teslaFIDefault;\n }\n };\n\n checkTeslaEligbility();\n\n this.getToggleKeys = (0, _pageProps.getFItoggleContentKeys)(this.teslaAddBankEXP, this.teslaFIDefault);\n\n // We show JP-add bank experience only when the following conditions meet:\n // A) If ELMO passes. If ELMO fails, we don't even show the toggle.\n // B) If the flow is a bank flow.\n\n this.showTeslaAddBankFlow = function () {\n return _this4.teslaAddBankEXP && _this4.onboard.fiMode === 'bank';\n };\n\n // Shipping Options/BOPIS\n this.shippingOptionsFeature = (0, _shippingOptionsFeature.buildShippingOptionsFeature)(this.token);\n if (this.shippingOptionsFeature.hasShippingOptions()) {\n this.flags.showCartChanged();\n }\n\n // Needed to show custom description sent by merchant in Billing Agreement flow\n this.billingAgreementMerchantMsg = this.models.checkoutCart.getBillingDescription();\n\n // Log to FPTI to indicate the page has been rendered\n _logger.$logger.info('checkout_fpti', {\n from: this.mode === 'guest' ? 'GUEST_XO' : 'SIGNUP',\n to: 'prepare_' + (this.mode === 'guest' ? 'guest_xo' : 'signup')\n });\n\n if (this.shippingRule && this.shippingRule.profileRulesSummary) {\n this.flags.wps_SnT_flow = this.shippingRule.profileRulesSummary.isSnTEnabled;\n }\n\n // pre-fill user first name and last name.\n // override happens at handlePrefillShippingAndBillingAddress if merchant passing\n // shipping address during cart creation.\n this.onboard.user.first_name = this.models.checkoutCart.get('payer.first_name');\n this.onboard.user.last_name = this.models.checkoutCart.get('payer.last_name');\n\n var setAllowShipToBilling = function setAllowShipToBilling(allow) {\n // Toggle checkbox\n _this4.flags.disallowShipToBilling = !allow;\n // Show/Hide shipping address section\n _this4.flags.shipToBilling = allow;\n };\n\n var checkProcessorDecline = function checkProcessorDecline() {\n var processorDeclined = _this4.models.checkoutAppData.get('flags.processor_declined');\n\n if (processorDeclined) {\n _this4.errorMessage = {\n msgs: [(0, _squid.$renderContent)('payment.processorDeclineMemberNoFIGeneric')],\n type: 'warning'\n };\n }\n };\n var checkLatinumRedirect = function checkLatinumRedirect() {\n if (_squid.$meta.query && _squid.$meta.query.latinumRedirect) {\n _this4.topErrorMessage = {\n msgs: [(0, _squid.$renderContent)('login.latinumNotUsed', { alternativeFunding: _squid.$meta.query.latinumRedirect })],\n type: 'info'\n };\n }\n };\n\n var setChangeShippingCountryAlertMsg = function setChangeShippingCountryAlertMsg() {\n var countryName = (0, _squid.$renderContent)('shippingCountry.' + _this4.merchantCountry);\n var infoMessage = (0, _squid.$renderContent)('largeScreenPayment.blockNonDomesticShippingAlert', {\n shippingCountry: countryName\n });\n\n _this4.changeShippingCountryAlert = {\n msgs: [infoMessage],\n type: 'info'\n };\n };\n\n // pre-populate shipping and billing address\n var updateShippingAndBillingAddress = function updateShippingAndBillingAddress(shippingAddress, billingAddress) {\n // Detect invalid length country codes in which case we invalidate the country code.\n // A default value of $locale.country will subsequently be picked up for invalidated country codes in the model creation.\n if (shippingAddress && shippingAddress.country_code && shippingAddress.country_code.length !== 2) {\n shippingAddress.country_code = undefined;\n }\n\n if (billingAddress && billingAddress.country_code && billingAddress.country_code.length !== 2) {\n billingAddress.country_code = undefined;\n }\n\n // NOTE: this function modifies params.state value to uppercase\n (0, _util3.sanitizeStateFields)(shippingAddress, billingAddress);\n\n // pre-fill billing address with shipping address\n _this4.onboard.shipping_address = _index2.$ShippingAddressModel.create(_this4.token, {\n country: shippingAddress.country_code || _index.$locale.country\n }, shippingAddress);\n\n // pre-fill provided billing address\n _this4.onboard.billing_address = _index8.$BillingAddressModel.create(_this4.token, {\n country: billingAddress.country_code || _index.$locale.country\n }, billingAddress);\n };\n\n var showGenericError = function showGenericError(code) {\n return function () {\n _uiRouter.$state.go('checkout.genericError', { code: code });\n };\n };\n // handle billing and shipping address prefill scenarios\n var handlePrefillShippingAndBillingAddress = function handlePrefillShippingAndBillingAddress(allowPrefillShippingAddress, prefilledAddress, prefilledBillingAddress) {\n // if users already had performed planning/post on xo session. Don't prefill the address\n // due to security concerns.\n // buyer_set_in_session attribute indicates that post on xo session/planning has been invoked\n var supplementary_data = _this4.models.checkoutCart.supplementary;\n\n if (supplementary_data && supplementary_data.buyer_set_in_session) {\n return;\n }\n // if both shipping and billing addresses are provided\n if (allowPrefillShippingAddress && prefilledAddress && prefilledBillingAddress) {\n updateShippingAndBillingAddress(prefilledAddress, prefilledBillingAddress);\n\n // uncheck ship to billing checkbox\n _this4.flags.shipToBilling = false;\n } else if (allowPrefillShippingAddress && prefilledAddress) {\n // if only shipping address is provided\n\n // pre-fill user first name and last name\n _this4.onboard.user.first_name = prefilledAddress.first_name;\n _this4.onboard.user.last_name = prefilledAddress.last_name;\n\n updateShippingAndBillingAddress(prefilledAddress, prefilledAddress);\n if (!_this4.flags.allowEditShipping) {\n _this4.flags.shipToBilling = false;\n }\n } else if (prefilledBillingAddress) {\n // if only billing address is provided\n updateShippingAndBillingAddress(prefilledBillingAddress, prefilledBillingAddress);\n }\n };\n\n // remove this upon oas ramp completion\n this.onboard.testParams = {\n oas: _index.$util.param('oas'),\n cardCandidate: _index.$util.param('cardCandidate')\n };\n\n this.$on('localeChange', function () {\n _this4.onboard.fiMode = _this4.getDefaultFIMode();\n _this4.onboard.billing_address.country = _index.$locale.country;\n _this4.onboard.user.country = _index.$locale.country;\n _this4.onboard.user.nationality = _index.$locale.country;\n _this4.onboard.user.countryOfResidence = _index.$locale.country;\n _this4.setBackButtonForWebview();\n\n if (_this4.flags.disableChangeShippingCountry) {\n if (_this4.flags.allowEditShipping) {\n setAllowShipToBilling(_index.$locale.country === _this4.merchantCountry);\n }\n } else {\n _this4.onboard.shipping_address.country = _index.$locale.country;\n }\n });\n\n this.$on('contentChange', function () {\n if (_this4.flags.disableChangeShippingCountry) {\n setChangeShippingCountryAlertMsg();\n }\n });\n\n this.$on('signupClickedTimerStarted', function (event, time) {\n _this4.signupClickedStartTime = time;\n });\n\n this.hasDialingCodeOverride = _util2.hasDialingCodeOverride;\n this.showContactInfo = function () {\n return _this4.hasDialingCodeOverride() || _this4.flags.allowChoice;\n };\n\n this.displayEmailInContactInfo = function () {\n if (!(0, _util2.hasDialingCodeOverride)()) {\n return true;\n }\n\n var showingEmailInSignup = !_this4.flags.allowChoice;\n\n if (!showingEmailInSignup) {\n return true;\n }\n\n return false;\n };\n\n this.redirect = function () {\n _logger.$logger.info('basl_throttle_test_login');\n (0, _squid.$dispatch)('hermes', {\n hermesLoginRedirect: 'xoon',\n token: _this4.token,\n 'locale.x': _index.$locale.lang + '_' + _index.$locale.country,\n 'country.x': _index.$locale.country\n });\n };\n\n this.$watch('flags.shipToBilling', function (shipToBilling) {\n if (!shipToBilling && _this4.flags.allowEditShipping) {\n $.each(_this4.onboard.billing_address, function (key, val) {\n if (angular.isString(_this4.onboard.billing_address[key]) && !_this4.onboard.shipping_address[key]) {\n _this4.onboard.shipping_address[key] = val;\n }\n });\n\n _this4.onboard.shipping_address.first_name = _this4.onboard.shipping_address.first_name || _this4.onboard.user.first_name;\n _this4.onboard.shipping_address.last_name = _this4.onboard.shipping_address.last_name || _this4.onboard.user.last_name;\n }\n });\n\n // Format address to display when store pick is selected\n var formatAddress = function formatAddress(address) {\n var COMMA = ', ';\n var SPACE = ' ';\n\n function prefix(str, prefixStr) {\n if (str) {\n return (prefixStr ? prefixStr : '') + str;\n }\n return '';\n }\n\n var displayLine1 = (address.line1 ? address.line1 : '') + (address.line2 ? prefix(address.line2, COMMA) : '');\n var displayLine2 = (address.city ? prefix(address.city) : '') + (address.state ? prefix(address.state, COMMA) : '') + (address.postal_code ? prefix(address.postal_code, SPACE) : '');\n var displayLine3 = address.country ? prefix(address.country) : '';\n\n return {\n displayLine1: displayLine1,\n displayLine2: displayLine2,\n displayLine3: displayLine3\n };\n };\n\n var storePickUpSelected = _angular.$rootScope.$on('store_pick_up_selected', function (event) {\n var addressType = _this4.flags.shipToBilling ? 'billing_address' : 'shipping_address';\n\n _this4.shippingAddress = formatAddress(_this4.onboard[addressType]);\n });\n\n this.$on('$destroy', storePickUpSelected);\n\n var showErrorFields = _angular.$rootScope.$on('showErrorFields', function (event) {\n _this4.toggleAddressFieldsValidation(true);\n });\n\n this.$on('$destroy', showErrorFields);\n\n var hideErrorFields = _angular.$rootScope.$on('hideErrorFields', function (event) {\n _this4.toggleAddressFieldsValidation(false);\n });\n\n this.$on('$destroy', hideErrorFields);\n\n // useraction flag\n var useraction = this.models.checkoutAppData.useraction();\n\n this.flags.commit = useraction && useraction.toLowerCase() === 'commit';\n _logger.$logger.info('checkout_fpti', {\n billing_page_button_text: this.flags.commit ? 'paynow_y' : 'paynow_n'\n });\n\n this.flags.wpsFlow = this.models.checkoutAppData.is_wps_flow();\n\n // show shipping address based on merchant passed in parameter\n this.showShippingAddress = Boolean(!this.models.checkoutAppData.flags.hide_shipping_address && this.models.checkoutAppData.flags.shipping_address_required);\n\n this.isInstantUpdateFlow = this.models.checkoutCart.instantUpdateIntegration;\n if (this.isInstantUpdateFlow) {\n this.trackSntReq = {};\n }\n\n // flags.allowEditShipping = false, skip saving shipping address validation otherwise don't skip.\n this.flags.allowEditShipping = this.models.checkoutAppData.get('flags.allow_change_shipping', false);\n\n // Prefill email from cart\n this.onboard.user.email = this.models.checkoutCart.get('payer.email');\n\n this.upopConfirmButtonTextKey = (0, _pageProps.upopConfirmButtonTextKey)(this.flags);\n\n // *** NOTE:\n // PXP was initially intended to be used with login button, but we've opted to use back button\n // page name and treatments still have login in the name though.\n this.flags.backButtonWebview = false;\n this.setBackButtonForWebview = function () {\n if (_index10.$DeviceInfo.isWebView(false)) {\n var floatThrottle = parseFloat((0, _index.$feature)('webviewBackButtonThrottle', 0, _index.$locale.country));\n\n if (isNaN(floatThrottle)) {\n return;\n }\n\n _this4.flags.backButtonWebview = floatThrottle && (0, _squid.$experiment)('webview_backbutton_throttle', floatThrottle, _angular.$rootScope.token, {}) ? true : false;\n if (_this4.flags.backButtonWebview) {\n _logger.$logger.info('BACK_BUTTON_SHOWN_FOR_WEBVIEW');\n }\n }\n };\n this.setBackButtonForWebview();\n\n this.landingAbTestCheck = function () {\n /**\n * Show the login button on xoon when:\n * - hermes redirects to xoon in xo-landing-router\n **/\n return _squid.$meta.query && _squid.$meta.query.abTestThrottle === 'xoon' ? true : false;\n };\n\n /**\n * This function takes in an International number: e.g +491721232312 and returns national number (1721232312)\n * @param {string} formattedPhone\n * @param {string} IntDialingCountryCode\n * @return {string}\n */\n this.getFormattedNationalNumber = function (formattedPhone, IntDialingCountryCode) {\n if (!formattedPhone || !IntDialingCountryCode) {\n return;\n }\n\n // Generate clean number by removing empty spaces.\n var cleanPhoneNumber = formattedPhone.replace(/\\s/g, '');\n\n var dailingCode = IntDialingCountryCode[0] === '+' ? IntDialingCountryCode : '+' + IntDialingCountryCode;\n\n return cleanPhoneNumber.split(dailingCode)[1];\n };\n\n // Get merchant passed shipping address from either purchase plan or billing agreement plan\n var prefilledAddress = this.models.checkoutCart.get('purchase.shipping_address') || this.models.checkoutCart.get('billing.shipping_address');\n\n var prefilledNumber = this.models.checkoutCart.get('purchase.phone_fields') || this.models.checkoutCart.get('billing.phone_fields');\n\n var useInternationalFormatting = (0, _index.$feature)('useInternationalFormatting', false, _index.$locale.country);\n\n if (prefilledNumber && prefilledNumber.telephone_country === _index.$locale.country) {\n // If UseInternationalFormatting is enabled, we use griffin's international Number\n // Formatting instead of national formatting. This can be found in feature in config.json\n if (useInternationalFormatting) {\n this.onboard.phone.telephone = this.getFormattedNationalNumber(prefilledNumber.formatted_phone_number_international, this.onboard.phone.IntDialingCountryCode);\n } else {\n this.onboard.phone.telephone = prefilledNumber.formatted_phone_number;\n }\n this.onboard.phone.ispreFill = true;\n }\n\n var allowPrefillShippingAddress = !!prefilledAddress;\n\n var prefilledBillingAddress = this.models.checkoutCart.get('billing_address');\n\n this.merchantCountry = this.models.checkoutAppData.get('merchant.merchant_country', 'US');\n\n // We need merchantDisplayName to be non empty and if merchant_name or brand_name is undefined\n // then we need the value of merchantDisplayName to be 'the merchant' as it is the middle of sentence\n // in content keys used in template\n this.nonEmptyMerchantDisplayName = this.models.checkoutAppData.getMerchantDisplayName({\n nonEmptyReturnValue: true\n });\n\n if ((0, _index.$feature)('supportBlockNonDomesticShipping', false, this.merchantCountry)) {\n this.flags.disableChangeShippingCountry = this.models.checkoutAppData.get('flags.block_non_domestic_shipping', false);\n\n if (this.flags.disableChangeShippingCountry) {\n _logger.$logger.info('onboard_block_non_domestic_shipping', {\n block_non_domestic_shipping: this.flags.disableChangeShippingCountry,\n allow_change_shipping: this.flags.allowEditShipping,\n setec_shipping_country_code: prefilledAddress && prefilledAddress.country_code\n });\n\n if (!this.flags.allowEditShipping && prefilledAddress && prefilledAddress.country_code !== this.merchantCountry && prefilledAddress.country_code !== '') {\n _uiRouter.$state.go('checkout.genericError', {\n code: 'BLOCK_NON_DOMESTIC_SHIPPING'\n });\n }\n\n if (prefilledAddress && prefilledAddress.country_code !== this.merchantCountry) {\n allowPrefillShippingAddress = false;\n }\n\n setChangeShippingCountryAlertMsg();\n this.onboard.shipping_address.country = this.merchantCountry;\n\n // Show shipping address section if user locale is different from merchant country\n if (this.flags.allowEditShipping && _index.$locale.country !== this.merchantCountry) {\n setAllowShipToBilling(false);\n }\n }\n }\n\n /**\n * Handle Card-Type based Installments e.g. Brazil is card_type based installments,\n * so fetch the installments during page load.\n */\n var handleCardTypeBasedInstallments = function handleCardTypeBasedInstallments() {\n _this4.$watch('singlePagePaymentForm.$valid', function (newVal, oldVal) {\n var cardModel = _this4.onboard.card;\n\n if (newVal && newVal.luhn && newVal.luhn[0].$name === 'cardNumber') {\n cardModel.valid = false;\n } else {\n cardModel.valid = true;\n }\n });\n\n _this4.$watch(_this4.onboard.card.type, function (newValue, oldValue) {\n // Sanitize the values\n newValue = newValue ? newValue.replace(/ /g, '').toLowerCase() : null;\n\n var cardNetwork = void 0;\n\n if (newValue && _this4.installments && _this4.installments.length > 0) {\n _this4.installments.some(function cardCheck(card, index, array) {\n if (card.cardInfo && card.cardInfo.card_type && card.cardInfo.card_type.toLowerCase() === newValue) {\n // Card Network Found\n cardNetwork = card;\n return true;\n }\n return false;\n });\n\n if (cardNetwork && cardNetwork.installment_options && cardNetwork.installment_options.length > 0) {\n // Card network && installments found\n if (cardNetwork.installment_options.length === 1) {\n _this4.singleStepModel.selectedInstallmentData = {\n installment_option_selected: cardNetwork.installment_options[0],\n preventChange: true\n };\n }\n\n _this4.singleStepModel.allowInstallments = true;\n } else {\n // Card network does not exists Or No installment found\n _this4.singleStepModel.allowInstallments = false;\n }\n } else {\n _this4.singleStepModel.allowInstallments = false;\n }\n });\n var installments = _index2.$InstallmentOptionsModel.instance(_this4.token);\n\n installments.save({\n data: {\n payee: _this4.models.payee,\n checkoutCart: _this4.models.checkoutCart,\n checkoutAppData: _this4.models.checkoutAppData\n },\n success: function success(result) {\n _this4.installments = result.installments;\n }\n });\n };\n\n /**\n * Handle Issuer based Installments e.g. Mexico is issuer_based (bank) installments, so fetch the\n * installments after user enters card number\n */\n var handleIssuerBasedInstallments = function handleIssuerBasedInstallments() {\n _this4.cardNumberChanged = function (unformattedCardNumber) {\n if (unformattedCardNumber && unformattedCardNumber !== _this4.prevCardNumber) {\n // Make sure the Installments server is hit only once for a cardNumber\n _this4.prevCardNumber = unformattedCardNumber;\n var installments = _index2.$InstallmentOptionsModel.instance(_this4.token);\n\n installments.save({\n silent: true,\n data: {\n payee: _this4.models.payee,\n checkoutCart: _this4.models.checkoutCart,\n checkoutAppData: _this4.models.checkoutAppData,\n cc: unformattedCardNumber\n },\n success: function success(result) {\n _this4.installments = result;\n\n if (result.installment_options && result.installment_options.length > 0) {\n _this4.issuerBasedInstallmentsRetrieved = true;\n\n // reset the previously selected installment\n _this4.singleStepModel.selectedInstallmentData = undefined;\n if (result.installment_options.length === 1) {\n _this4.singleStepModel.selectedInstallmentData = {\n installment_option_selected: result.installment_options[0],\n preventChange: true\n };\n }\n\n _this4.singleStepModel.allowInstallments = true;\n } else {\n _this4.singleStepModel.allowInstallments = false;\n }\n }\n });\n }\n };\n };\n\n // Lookup installments only when amount is greater than zero.\n // for ex: Billing Agreements can create with amount=zero.\n if ((0, _index.$feature)('installments', false, _index.$locale.country) && this.models.checkoutCart.get('purchase.amounts.total.amount', 0) > 0) {\n if ((0, _index.$feature)('issuerBasedInstallments', false, _index.$locale.country)) {\n // e.g. Mexico is issuer_based (bank) installments, so fetch the installments after user enters card number\n handleIssuerBasedInstallments();\n } else {\n // e.g. Brazil is card_type based installments, so fetch the installments during page load.\n handleCardTypeBasedInstallments();\n }\n }\n\n this.isInstallmentsVisible = function () {\n if (!_this4.singleStepModel) {\n return false;\n }\n _this4.singleStepModel.onboard = _this4.onboard;\n\n var model = _this4.onboard;\n var hasConditionMet = _this4.singleStepModel.allowInstallments && model.card.number && (model.card.valid || _this4.issuerBasedInstallmentsRetrieved);\n var isBilling = _this4.models.checkoutCart.isBilling();\n\n return !isBilling && hasConditionMet;\n };\n\n checkProcessorDecline();\n\n checkLatinumRedirect();\n\n handlePrefillShippingAndBillingAddress(allowPrefillShippingAddress, prefilledAddress, prefilledBillingAddress);\n\n var experienceInitiator = this.models.checkoutAppData.get('flags.payment_experience_initiator');\n\n this.onboard.payment_experience_initiator = experienceInitiator;\n\n this.isApac = function () {\n return _index.$config.apacCountries && _index.$config.apacCountries.indexOf(_this4.locale.country) > -1;\n };\n\n this.$on('MORSDisplayed', function (event, args) {\n _this4.MORSDisplayed = args;\n });\n\n this.$on('MORSNotDisplayed', function (event, args) {\n _this4.MORSDisplayed = {};\n });\n\n var handleCardContingencySignup = function handleCardContingencySignup(errorData) {\n if (_this4.models.checkoutInputData.isEbayTxn()) {\n (0, _squid.$dispatch)('prox', {\n action: 'login'\n });\n } else {\n // redirect to hermes and we will see add card page\n var fieldError = errorData && errorData[0] && errorData[0].field;\n var avsRetry = fieldError === 'billing_address' ? true : false;\n\n (0, _squid.$dispatch)('hermes', {\n redirectToHermes: true,\n addFIContingency: fieldError ? 'retry' : 'noretry',\n avsRetry: avsRetry,\n token: _this4.token,\n 'locale.x': _index.$locale.lang + '_' + _index.$locale.country,\n 'country.x': _index.$locale.country\n });\n }\n };\n\n var handleCardContingencyGuest = function handleCardContingencyGuest() {\n var msg = void 0;\n\n if (_this4.models.payee.isGambling()) {\n msg = _index.$locale.content.get('creditcard.noEligibleFI');\n } else if (_this4.onboard.billing_address.country === 'DE') {\n if (_this4.onboard.fiMode === 'bank') {\n delete _this4.onboard.bank;\n msg = _index.$locale.content.get('creditcard.cannotUseBank');\n _this4.onboard.fiMode = 'card';\n } else {\n msg = _index.$locale.content.get('creditcard.cannotUseCard');\n }\n } else {\n msg = _index.$locale.content.get('creditcard.errorInstrumentRefused');\n }\n\n _this4.errorMessage = {\n msgs: [msg],\n type: 'error'\n };\n return _angular.$q.reject()['catch'](angular.noop);\n };\n\n var handleCardContingency = function handleCardContingency(action) {\n return _this4.flags.mode === 'signup' ? handleCardContingencySignup() : handleCardContingencyGuest();\n };\n\n var show3DSLightbox = function show3DSLightbox(checkoutSession) {\n var cc_id = checkoutSession.get('resolve_3ds.ccId');\n var plans = checkoutSession.get('plan.sources', null);\n var plan = plans && plans.filter(function (e) {\n return e.instrument_id === cc_id;\n })[0].amount || null;\n\n _this4.resolve_3ds_data = {\n cc_id: cc_id,\n flow_id: 'HERMES',\n merchant_id: _this4.models.payee.get('merchant.id'),\n merchant_country_code: _this4.models.checkoutAppData.get('merchant.merchant_country'),\n transaction_amount_currency: plan && plan.currency_code,\n transaction_amount_value: plan && plan.amount\n\n };\n _this4.launch3DSResolver = true;\n };\n\n var isDCCEligible = function isDCCEligible(checkoutSession) {\n var isGuest = _this4.flags.mode !== 'signup';\n var hasCurrencyConversion = checkoutSession.get('plan.conversion.paypal') && checkoutSession.get('plan.conversion.changeable');\n\n // Decides dcc currency conversion popup show/hide\n return isGuest && hasCurrencyConversion;\n };\n\n /*\n * This function will determine final route of the transaction:\n * 1. return to merchant for all none WPS traffic\n * 2. go to checkout done page for WPS with not eligible interstitial traffic\n * 3. got to WPS interstitial for eligible(passes upgrade eligibility) WPS traffic\n */\n var finalRoute = function finalRoute() {\n var finishFlow = function finishFlow() {\n var isWpsFlow = _this4.flags.wpsFlow;\n var destination = isWpsFlow ? 'done' : 'end';\n\n if (_this4.flags.poma_flow) {\n _logger.$logger.info('LOGGING_OUT' + (isWpsFlow ? '_WPS' : '') + '_POMA_FLOW_FOR_CLEARING_COOKIES');\n\n // Logging out the user only for POMA before going to END state.\n // why are we logging out?\n // ACCESS_TOKEN dropped during passive login is 8hr expiration, due to which\n // user is not authenticated in subsequent transaction in hermes review page\n // while adding FI or Shipping Address.\n // so by logging out the user, removes all the cookies except RT from the\n // browser in which hermes does RT to AT exchange in the absence of AT and gets\n // the limited AccessToken.\n return _this4.models.auth.action('logout').then(function () {\n return _uiRouter.$state.go('checkout.' + destination);\n });\n }\n\n return _uiRouter.$state.go('checkout.' + destination);\n };\n\n if (_this4.flags.wpsFlow) {\n _this4.singleStepModel.onboard = _this4.onboard;\n _this4.singleStepModel.flags = _this4.flags;\n // set signup/guest flag so done page\n // renders the proper content\n _angular.$rootScope.mode = _this4.flags && _this4.flags.mode;\n\n if (_this4.flags.wpsInterstitialEligible) {\n if (_this4.flags.buyerMode === 'signup') {\n return _uiRouter.$state.go('checkout.done');\n }\n\n var logAndGoToDone = function logAndGoToDone(error) {\n return function () {\n _logger.$logger.info('wps_interstitial_ineligible_' + error);\n return _uiRouter.$state.go('checkout.done');\n };\n };\n\n return _this4.onboard.action('upgradeValidate', {\n data: _this4.onboard.serialize(),\n success: function success() {\n return _uiRouter.$state.go('checkout.guest.guestUpgradeInterstitial');\n },\n contingencies: {\n CC_LINKED: logAndGoToDone('CC_LINKED'),\n EXISTING_MEMBER: logAndGoToDone('EXISTING_MEMBER'),\n CC_LINKED_TO_FULL_ACCOUNT: logAndGoToDone('CC_LINKED_TO_FULL_ACCOUNT'),\n VALIDATION_ERROR: logAndGoToDone('VALIDATION_ERROR'),\n DEFAULT: logAndGoToDone('UHANDLED_CONTINGENCY')\n },\n validation: logAndGoToDone('SERVICE_VALIDATION_ERROR'),\n error: logAndGoToDone('SERVICE_ERROR')\n });\n }\n }\n\n finishFlow();\n };\n\n var authorize = function authorize() {\n var checkoutSession = _index2.$CheckoutSessionModel.instance(_this4.token);\n var checkoutAppData = _this4.models.checkoutAppData;\n var checkoutCart = _this4.models.checkoutCart;\n var doEcOnApprove = checkoutAppData.doec_on_approve();\n\n return checkoutSession.action('authorize', {\n success: function success() {\n var isSubscriptionsV1 = checkoutCart.isSubscriptionsV1();\n var isWpsSubscription = checkoutAppData.is_wps_subscription_flow();\n\n if (isWpsSubscription || isSubscriptionsV1) {\n return (0, _util2.redirectToSubscriptionFinalRoute)(_this4.flags.mode, isSubscriptionsV1);\n } else if (doEcOnApprove) {\n return checkInventoryAndPay(checkoutSession);\n }\n\n return finalRoute();\n }\n });\n };\n\n var setStickyFIAndAuthorize = function setStickyFIAndAuthorize() {\n var checkoutSession = _index2.$CheckoutSessionModel.instance(_this4.token);\n\n return _angular.$q.when((0, _sticky.setStickyInstrument)(checkoutSession))['catch'](function (err) {\n _logger.$logger.info('setStickyFI_Failed', err);\n })['finally'](authorize);\n };\n\n this.shippingChangeFeature = (0, _shippingChangeFeature.createShippingChangeFeature)({\n orderID: this.token,\n checkoutAppData: this.models.checkoutAppData,\n checkoutCart: this.models.checkoutCart,\n flags: this.flags,\n callback: function callback() {\n return _this4.shippingOptionsFeature.checkForShippingOptions();\n }\n });\n\n var continueWith3DSOrAuthorize = function continueWith3DSOrAuthorize() {\n var checkoutSession = _index2.$CheckoutSessionModel.instance(_this4.token);\n\n if (checkoutSession.resolve_3ds) {\n return show3DSLightbox(checkoutSession);\n }\n\n _logger.$logger.info('Initiate_setStickyFI_call_and_authorize_call');\n return setStickyFIAndAuthorize();\n };\n\n var postCheckoutSessionOperations = function postCheckoutSessionOperations(dccComplete) {\n var checkoutSession = _index2.$CheckoutSessionModel.instance(_this4.token);\n\n /**\n * 1. Transaction is eligible for DCC - guest flow, plan has PayPal conversion,\n * and conversion is changeable\n * 2. Function wasn't called by post plan interstitial form submission\n * 3. DCC has not been successfully called (this.onboard.cart.currencyConvData will be `undefined`)\n * - Beacuse it hasn't been called yet or because the prePlan API was called but it\n * returned an error. In that case we want to try again with the postPlan API instead\n * of forcing the user to abandon their cart.\n */\n if (isDCCEligible(checkoutSession) && !dccComplete && !_this4.onboard.get('card.currencyConvData')) {\n _logger.$logger.info('render_currency_conversion_lightbox');\n if (_this4.flags.wpsInterstitialEligible) {\n _logger.$logger.info('wps_interstitial_render_dcc');\n }\n _this4.launchCurrencyConversionLightbox = true;\n return;\n }\n\n var hasCallbackAPI = window.xprops && window.xprops.onShippingChange;\n if (_this4.shippingOptionsFeature.hasShippingOptions() && !hasCallbackAPI) {\n _this4.shippingChangeFeature.interstitialResolver = continueWith3DSOrAuthorize;\n _this4.shippingChangeFeature.handleOnShippingChange = function () {\n return _this4.shippingChangeFeature.showOrResolveInterstitial();\n };\n\n return _this4.shippingChangeFeature.showOrResolveInterstitial(true);\n }\n\n return callOnShippingChangeAndContinue();\n };\n\n var callOnShippingChangeAndContinue = function callOnShippingChangeAndContinue() {\n // We don't have a shipping address... just continue\n if (!_this4.flags.allowEditShipping) {\n return _angular.$q.when().then(continueWith3DSOrAuthorize);\n }\n\n return _this4.shippingChangeFeature.handleOnShippingChange().then(continueWith3DSOrAuthorize);\n };\n\n this.onCompleteDCC = function (result) {\n _this4.launchCurrencyConversionLightbox = false;\n return postCheckoutSessionOperations(true);\n };\n\n var makePayment = function makePayment(checkoutSession) {\n var wpsParams = _index.$util.decodeAndParse(_squid.$meta.xclickParams);\n\n return checkoutSession.action('createPayment', {\n data: {\n payer_id: checkoutSession.get('payer.id'),\n intent: _this4.models.checkoutCart.payment_action,\n wa_type: wpsParams && wpsParams.wa_type,\n correlation_id: _squid.$meta.correlationId,\n merchant_id: _this4.models.payee.get('merchant.id'),\n custom: _this4.models.checkoutCart.get('purchase.custom'),\n invoice: _this4.models.checkoutCart.get('purchase.invoice')\n },\n success: function success(result) {\n _angular.$rootScope.paymentComplete = true;\n _this4.onboard.payerId = checkoutSession.payer && checkoutSession.payer.id;\n _this4.onboard.transaction = result.transactionDetails && result.transactionDetails.id;\n if (_index.$config.enableShoppingCartWPS && _this4.models.checkoutAppData.flags.is_shopping_cart_flow) {\n markCartCheckedout();\n }\n return finalRoute();\n },\n contingencies: {\n TRANSACTION_REFUSED: handlePaymentContingencies('TRANSACTION_REFUSED'),\n INSTRUMENT_DECLINED: function INSTRUMENT_DECLINED() {\n inventoryOperation('failed');\n var param = {\n mode: _this4.flags.mode\n };\n\n _uiRouter.$state.go('checkout.pageAddCard.addCardFlow.addCard', param);\n },\n PAYEE_BLOCKED_TRANSACTION: handlePaymentContingencies('PAYMENT_DENIED'),\n DUPLICATE_TRANSACTION: handlePaymentContingencies('PAYMENT_ALREADY_DONE'),\n // This error needs the same handling as card decline in add card API call\n CC_PROCESSOR_DECLINED: handleCardContingency,\n DEFAULT: handlePaymentContingencies('DEFAULT')\n },\n error: function error(err) {\n _logger.$logger.info('createPayment Failed due to service error', err);\n inventoryOperation('failed');\n return _uiRouter.$state.go('checkout.genericError', { code: 'DEFAULT' });\n }\n });\n };\n\n var inventoryOperation = function inventoryOperation(paymentStatus) {\n var cartHasInventory = _this4.models.checkoutCart.get('cartHasInventory');\n\n if (cartHasInventory) {\n var inventoryModel = _index6.$InventoryModel.instance(_angular.$rootScope.token);\n var inventoryItems = inventoryModel.getInventoryItems();\n var purchaseItems = _this4.models.checkoutCart.get('purchaseUnits');\n var inventoryPatchInput = {};\n var cartItems = void 0;\n\n if (purchaseItems && purchaseItems[0] && purchaseItems[0].item_list) {\n cartItems = purchaseItems[0].item_list.items;\n }\n paymentStatus = paymentStatus ? paymentStatus : 'success';\n if (cartItems && inventoryItems) {\n inventoryPatchInput = {\n inventoryItems: inventoryItems,\n cartItems: cartItems,\n merchantId: _this4.models.payee.get('merchant.id', ''),\n paymentStatus: paymentStatus\n };\n } else {\n return _angular.$q.when(); // don't need to call patchInventory if items not present\n }\n\n return inventoryModel.action('patchInventory', {\n data: inventoryPatchInput,\n success: function success(patchResponse) {\n if (patchResponse) {\n if (patchResponse.showSoldoutPage) {\n // show soldout page\n return {\n soldoutpage: true,\n items: patchResponse.soldoutItems,\n soldOutUrl: patchResponse.soldoutUrl\n };\n } else if (patchResponse.patchCart) {\n var purchase_unit = _this4.models.checkoutCart.get('purchaseUnits')[0];\n\n purchase_unit.item_list.items = patchResponse.cartItems;\n var patchCartPayload = {\n id: _this4.token,\n patchEntities: [{\n field: 'inventoryItems',\n value: purchase_unit.item_list.items\n }]\n };\n\n return _this4.models.checkoutCart.action('patchCartData', {\n data: patchCartPayload\n });\n }\n } else {\n return;\n }\n }\n });\n } else {\n return _angular.$q.when(); // not an inventory request proceed with existing flow\n }\n };\n\n var checkInventoryAndPay = function checkInventoryAndPay(checkoutSession) {\n return inventoryOperation().then(function (result) {\n if (result && result.soldoutpage) {\n return _uiRouter.$state.go('checkout.soldout', {\n items: encodeURIComponent(result.items),\n soldOutUrl: encodeURIComponent(result.soldOutUrl)\n });\n }\n return makePayment(checkoutSession);\n });\n };\n\n var handlePaymentContingencies = function handlePaymentContingencies(code) {\n return function () {\n inventoryOperation('failed');\n return _uiRouter.$state.go('checkout.genericError', { code: code });\n };\n };\n\n var markCartCheckedout = function markCartCheckedout() {\n var shoppingCartModel = _index4.$ShoppingCartModel.instance(_angular.$rootScope.token);\n\n return shoppingCartModel.action('cartCheckedOut', {\n success: function success(result) {\n _logger.$logger.info('cart checked out successfully');\n }\n });\n };\n\n var mapValidationErrors = function mapValidationErrors(err) {\n var fields = err && err.fields || [];\n\n fields.forEach(function (fieldError) {\n if (fieldError && fieldError.property) {\n fieldError.field = fieldError.property;\n }\n });\n return {\n fields: fields\n };\n };\n\n var mapAddCardErrors = function mapAddCardErrors(field) {\n switch (field) {\n case 'cvv':\n return { fields: [{ field: 'security_code' }] };\n case 'billing_address':\n if (_this4.$element.find('[ng-model=\"address.line2\"]').val().length) {\n return { fields: [{ field: 'address.line1' }, { field: 'address.line2' }, { field: 'address.postal_code' }] };\n }\n return { fields: [{ field: 'address.line1' }, { field: 'address.postal_code' }] };\n default:\n return;\n }\n };\n\n // TODO: clean up this code as most of filifecycleserv error handler is in\n // lib/errorHandlerHelper, and we should get rid of $fiErrorUtil\n // From my understanding following function is related to older service call\n this.handleFIContingencies = function (data, fundingInstrument) {\n return (0, _squid.$pxp)('xo_xoon_validation_error', { 'ctx.country': _index.$locale.country }, 'xo_xoon_validation_error_treatment', false, true).then(function (result) {\n // data is an object which has error with key 0\n // standardize data's data structure to group invalid fields together and handle all cases\n if (result && data && data[0]) {\n var contentBundle = 'addCardFIErrors';\n var errorData = mapAddCardErrors(data[0].field);\n\n switch (data[0].field) {\n case 'billing_address':\n _this4.errorMessage = _util.$fiErrorUtil.addPageErrors(data, contentBundle, _this4.props, 'VALIDATION_ERROR_BILLING_ADDRESS');\n _util.$fiErrorUtil.addFieldErrors(errorData, _this4.$element);\n break;\n case 'cvv':\n _this4.errorMessage = _util.$fiErrorUtil.addPageErrors(data, contentBundle, _this4.props, 'VALIDATION_ERROR_CVV');\n _util.$fiErrorUtil.addFieldErrors(errorData, _this4.$element, 'card.');\n break;\n default:\n _this4.errorMessage = _util.$fiErrorUtil.addPageErrors(data, fundingInstrument);\n break;\n }\n }\n\n if (!_this4.errorMessage) {\n _this4.errorMessage = {\n msgs: [_index.$locale.content.get(fundingInstrument + '.errorGeneral')],\n type: 'error'\n };\n }\n\n errorHandlerHelper.scrollToElement();\n });\n };\n\n this.handleAddFIContingencies = function (data, fundingInstrument, action) {\n if (action === 'signup') {\n handleCardContingencySignup(data);\n } else {\n _this4.handleFIContingencies(data, fundingInstrument);\n }\n };\n\n var getContentIdentifier = function getContentIdentifier(tcpaIdentifier) {\n return _index.$locale.country + ':' + _index.$locale.lang + ':' + (0, _squid.$contentVersion)() + ':' + tcpaIdentifier;\n };\n\n /*\n * onBoardAccount and functions calling onBoardAccount\n */\n this.onBoardAccount = function () {\n // remove the page level errors\n _this4.errorMessage = '';\n\n // creating this variable shipping_address_validation for back-end whether to validate\n // the shipping address or not.\n // shipping address validation required only when shipping address is different than Billing Address\n // shipToBilling flag will be false when user tries to expand the shipping address in Billing Page\n // By default shipToBilling is true, so when shipping address is shown and Billing Address\n // is not present for whitelisted india merchants, shipping address needs to be validated.\n _this4.onboard.shipping_address_validation = _this4.flags.allowEditShipping && (!_this4.flags.shipToBilling || _this4.flags.whiteListedIndiaMerchant);\n // billing_address_present passed to the back end to skip / perform billing address validation\n // billing_address_present will be false only for whitelisted merchant from INs.\n _this4.onboard.billing_address_present = !_this4.flags.whiteListedIndiaMerchant;\n _this4.onboard.billing_address.country = _index.$locale.country;\n\n _this4.onboard.skipInitiateAuth = true;\n\n _this4.onboard.poma_flow = _this4.flags.poma_flow;\n _this4.onboard.content_identifier = getContentIdentifier(_this4.flags.tcpa_identifier);\n _this4.onboard.prox_flow = _this4.models.checkoutInputData.isEbayTxn();\n\n // Set Free Return Shipping Opt-in flow applicability flag\n _this4.onboard.frs_optin_flow_applicable = _this4.flags.freeReturnShippingOptInFlowApplicable;\n _this4.onboard.frs_optin_active_flow = _this4.flags.freeReturnShippingOptInActiveFlow;\n\n // merchantCountry, merchantPreferences, and isUnbranded are needed to check for guest eligibility\n var _merchantPreferences = _this4.merchantPreferences;\n _merchantPreferences = _merchantPreferences === undefined ? {} : _merchantPreferences;\n var merchant_preferences = _merchantPreferences.model;\n\n\n _this4.onboard.flow_eligibility_data = {\n is_unbranded: _this4.isUnbranded,\n merchant_preferences: merchant_preferences,\n merchant_country: _this4.merchantCountry\n };\n\n _this4.onboard.bypass_address_verification = _this4.bypassAddressVerificationExperience.bypassAddressVerificationExp && _this4.flags.mode === 'guest';\n\n // POMA should go in Singup rails, because poma usecase is passwordless member\n var action = _this4.flags.poma_flow || _this4.flags.mode === 'signup' ? 'signup' : 'guest';\n\n var setErrorMessage = function setErrorMessage(errMsg) {\n _this4.errorMessage = {\n msgs: errorHandlerHelper.getPageError(errMsg),\n type: 'error'\n };\n };\n\n return _this4.onboard.action(action, {\n data: _this4.onboard.serialize(),\n\n success: function success(result) {\n return _angular.$q.when().then(function () {\n /*\n If we're in an in-context flow, the parent button\n iframe may need the access token to continue running\n and execute the payment (e.g. in 3rd party cookies\n disabled mode)\n We reload the auth model, since after the user is\n onboarded this model is not updated, then pass the\n access token up. The token will only be passed if\n we're on the same-domain as the parent button.\n */\n\n if (window.xprops && window.xprops.onAuth) {\n if (result && result.accessToken) {\n _logger.$logger.info('spb_onauth_from_onboard_call');\n return window.xprops.onAuth({ accessToken: result.accessToken });\n } else {\n // TODO: this can be removed once we're sure `result.accessToken`\n // is always populated\n _logger.$logger.info('spb_onauth_from_auth_reload');\n var auth = _index9.$AuthModel.instance();\n return auth.reload().then(function () {\n window.xprops.onAuth({ accessToken: auth.access_token });\n });\n }\n }\n }).then(function () {\n if (_this4.flags.poma_flow) {\n var locale_code = _index.$locale.lang + '_' + _index.$locale.country;\n var locale_country = _index.$locale.country;\n\n return _ul.$ul.optInToOneTouch(_this4.token, locale_country, locale_code).then(function (success) {\n _logger.$logger.info('UL_SUCCESSFULLY_DROPPED_RT_IN_COOKIE');\n }, function (err) {\n // eslint-disable-line handle-callback-err\n _logger.$logger.info('UL_FAILED_DROPPED_RT_IN_COOKIE');\n });\n }\n }).then(function () {\n if (_this4.models.checkoutCart.isWalletTokenization()) {\n _logger.$logger.info('REDIRECT_' + _this4.subject + '_WALLET_TOKENIZATION');\n (0, _squid.$dispatch)('hermes', {\n token: _this4.token,\n 'locale.x': _index.$locale.lang + '_' + _index.$locale.country,\n 'country.x': _index.$locale.country\n });\n } else {\n // fire conversion url for MORS offer in the sign up section, ad_id = 202002\n if (_this4.MORSDisplayed && _this4.MORSDisplayed.placementId === '202002') {\n _index11.$fireMORSBeacon.fireBeacon(_this4.MORSDisplayed.clickURL);\n }\n\n if (_this4.onboard.card && _this4.onboard.fundingId && _this4.needOTPForAddCard && _this4.flags.cupDetected && _this4.flags.upopDetected) {\n _this4.onboard.card.id = _this4.onboard.fundingId;\n _this4.launchUpopScreen = true;\n } else {\n // Create Checkout-Session\n return createXO();\n }\n }\n });\n },\n\n contingencies: {\n TRANSACTION_REFUSED: showGenericError('TRANSACTION_REFUSED'),\n CC_LINKED_TO_FULL_ACCOUNT: function CC_LINKED_TO_FULL_ACCOUNT() {\n setErrorMessage('creditcard.linkedCardToAddNewCard');\n },\n BANK_LINKED_TO_FULL_ACCOUNT: function BANK_LINKED_TO_FULL_ACCOUNT() {\n setErrorMessage('bank.linkedBankError');\n },\n EXISTING_ACCOUNT_RESTRICTED: function EXISTING_ACCOUNT_RESTRICTED() {\n setErrorMessage('creditcard.riskDisallowed');\n },\n TOO_MANY_REQUESTS: function TOO_MANY_REQUESTS() {\n setErrorMessage('genericError.genericError');\n },\n\n VALIDATE_BANK_CONTINGENCY: function VALIDATE_BANK_CONTINGENCY(name, data) {\n _this4.errorMessage = _util.$fiErrorUtil.addPageErrors(data, _this4.locale, 'bank');\n _util.$fiErrorUtil.addFieldErrors(data, _this4.sectionElement);\n },\n ADD_CARD_CONTINGENCY: function ADD_CARD_CONTINGENCY(result, err) {\n _this4.handleAddFIContingencies(err, 'creditcard', action);\n },\n ADD_BANK_CONTINGENCY: function ADD_BANK_CONTINGENCY(result, err) {\n _this4.handleAddFIContingencies(err, 'bank', action);\n },\n RISK_DISALLOWED: function RISK_DISALLOWED() {\n setErrorMessage('creditcard.riskDisallowed');\n },\n COUNTRY_NOT_SUPPORTED: function COUNTRY_NOT_SUPPORTED() {\n setErrorMessage('creditcard.complianceDecline');\n },\n\n VALIDATION_ERROR: function VALIDATION_ERROR(message) {\n var errorData = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var _errorData$ = errorData[0];\n _errorData$ = _errorData$ === undefined ? {} : _errorData$;\n var errorCode = _errorData$.code;\n var _experiments$accountE = _this4.experiments.accountExistsPXP,\n accountExistsPXP = _experiments$accountE === undefined ? {} : _experiments$accountE;\n var accountExistsTreatment = accountExistsPXP.treatment_name;\n\n var isCheckAuthflowRedirect = errorCode === 'ACCOUNT_ALREADY_EXISTS' && !_this4.models.checkoutInputData.isEbayTxn() && _this4.mode === 'signup';\n\n return (0, _util3.authflowRedirect)({ isCheckAuthflowRedirectParam: isCheckAuthflowRedirect, country: _index.$locale.country }).then(function (isAuthFlow) {\n\n // following errorCode is added for US1174965 - forced signup\n if (isAuthFlow) {\n errorData[0].errorCode = 'ACCOUNT_ALREADY_EXISTS_AUTHFLOW_REDIRECT';\n }\n\n var errorMsgs = errorHandlerHelper.errorHandler(message, errorData, _this4.actions.positionToErrorField, accountExistsTreatment ? _this4.mode : '');\n var errorType = errorHandlerHelper.getErrorType(errorCode, _this4.mode, accountExistsTreatment);\n\n if (errorMsgs && errorMsgs.length > 0) {\n _this4.errorMessage = {\n msgs: errorMsgs,\n type: errorType\n };\n }\n\n if (accountExistsTreatment && errorCode === 'ACCOUNT_ALREADY_EXISTS' && _this4.mode !== 'signup') {\n var isPOMA = _this4.flags.poma_flow;\n\n (0, _pageProps.accountExistsOptionalCheck)(_this4.mode, isPOMA);\n }\n });\n }\n },\n\n validation: function validation(res) {\n // should catch any primary check failures like schema validations etc\n _util.$fiErrorUtil.addFieldErrors(mapValidationErrors(res), _this4.sectionElement);\n }\n });\n };\n\n var addShippingAddress = function addShippingAddress() {\n return _squid.$promise.call(function () {\n // Add shipping address if edit shipping is allowed. this.flags.allowEditShipping flag used\n // to show \"ship to Billing\" checkbox\n if (_this4.flags.allowEditShipping) {\n var shippingAddress = _this4.onboard.shipping_address;\n\n shippingAddress.recipient_name = shippingAddress.first_name + ' ' + shippingAddress.last_name;\n return shippingAddress.save({\n data: _this4.onboard.shipping_address.serialize(),\n validation: function validation(message, errorData) {\n var errorMsgs = errorHandlerHelper.errorHandler(message, errorData, _this4.actions.positionToErrorField);\n\n if (errorMsgs && errorMsgs.length > 0) {\n _this4.errorMessage = {\n msgs: errorMsgs,\n type: 'error'\n };\n }\n }\n });\n }\n });\n };\n\n var createXO = function createXO() {\n var checkoutSession = _index2.$CheckoutSessionModel.instance(_this4.token);\n\n return checkoutSession.action('create', {\n data: {\n fraudnet_id: _this4.models.checkoutCart.get('supplementary.risk_correlation_id'),\n baToken: _this4.models.checkoutCart.get('billing.ba_token'),\n cc_login_account_number: _this4.onboard.cc_login_account_number,\n email_login_account_number: _this4.onboard.email_login_account_number\n },\n\n success: function success() {\n return _angular.$q.when().then(addShippingAddress).then(function () {\n if (_this4.flags.buyerFxTreatment) {\n /**\n * Here we will log the following events to FPTI\n * Event 3 - During signup when the the pre-plan API failed and\n * the card allows for the conversion seleciton to be changed\n * Event 7 - All cases expect for guest checkout when the pre-plan\n * API fails and the card allows for conversion selection. We\n * don't log event 7 here in that case because those users will\n * see the post-plan interstitial which will log event 7 upon submission\n */\n (0, _utils.logBuyerFxFpti)({\n card: _this4.onboard.card,\n hasPrePlanData: _this4.flags.hasBuyerFxPrePlanData,\n isSignup: _this4.flags.mode === 'signup',\n purchase: _this4.models.checkoutCart.purchase\n });\n }\n\n /**\n * If checkoutSession has DCC enabled, then we do the 'updateConversion' call and upate to 'VENDOR' if:\n * 1. Pre-Plan (Buyer FX): if 'VENDOR' was selected as the option from the inline radio buttons.\n * 2. The user is going through the forced signup flow we need currency conversion and they didn't see the Buyer FX\n * experience or the API for that experience failed. For signup we don't show the post-plan\n * DCC interstitial since we want to minimize the number of fields the user has to fill\n * out. Therefore we forgo the chance at earning the conversion fee and forece 'VENDOR'.\n */\n var conversionPayPalAndChangeable = checkoutSession.get('plan.conversion.paypal') && checkoutSession.get('plan.conversion.changeable');\n var isSignupWithNoConversion = _this4.flags.mode === 'signup' && !_this4.onboard.card.currencyConvData;\n var conversionIsVendor = _this4.onboard.card.ppconversion === 'VENDOR';\n\n if (conversionPayPalAndChangeable && (isSignupWithNoConversion || conversionIsVendor)) {\n return _index2.$FundingOptionsModel.instance(_this4.token).action('updateConversion', {\n data: {\n conversionType: 'VENDOR',\n planId: checkoutSession.plan.id\n },\n resultModel: checkoutSession\n })['catch'](function (err) {\n return err;\n });\n }\n }).then(function () {\n // Performing a check if the card and CVV exists to determine whether or not we do a patchCVV\n var checkCVV = checkoutSession.get('cvvData');\n var securityCode = _this4.onboard.get('card.security_code');\n var fundingOptions = checkoutSession.get('fundingOptions.instruments');\n var instrumentId = fundingOptions && fundingOptions.length > 0 ? fundingOptions[0].id : null;\n\n if (checkCVV) {\n _logger.$logger.info('paps_threw_cvv_contigency_patchCvv');\n checkoutSession.set('cvvData.security_code', securityCode);\n } else if (securityCode && instrumentId && _this4.onboard.bypass_address_verification) {\n _logger.$logger.info('bypass_skip_avs_patchCvv');\n checkoutSession.set('cvvData', {\n security_code: securityCode,\n id: instrumentId\n });\n }\n\n // Verify if there's a funding option, if there is we than make a patchCVV call\n if (instrumentId) {\n _logger.$logger.info('funding_options_exist');\n return _fiApis.$fiApis.patchCvv(checkoutSession).then(postCheckoutSessionOperations, function (err) {\n _logger.$logger.error('patchCvv error', err);\n });\n } else {\n _logger.$logger.info('funding_options_do_not_exist');\n }\n });\n },\n\n contingencies: {\n TRANSACTION_REFUSED: showGenericError('TRANSACTION_REFUSED'),\n NEED_SHIPPING_ADDRESS: function NEED_SHIPPING_ADDRESS() {\n return _this4.onboard.shipping_address.save({\n data: _this4.onboard.shipping_address.serialize(),\n validation: function validation(message, errorData) {\n var errorMsgs = errorHandlerHelper.errorHandler(message, errorData, _this4.actions.positionToErrorField);\n\n if (errorMsgs && errorMsgs.length > 0) {\n _this4.errorMessage = {\n msgs: errorMsgs,\n type: 'error'\n };\n }\n }\n });\n },\n NEED_CREDIT_CARD_OR_BANK_ACCOUNT: function NEED_CREDIT_CARD_OR_BANK_ACCOUNT() {\n return handleCardContingency();\n },\n NEED_CREDIT_CARD: function NEED_CREDIT_CARD() {\n return handleCardContingency();\n },\n SENDING_LIMIT_EXCEEDED: function SENDING_LIMIT_EXCEEDED() {\n /* 1. Introducing config attribute sendingLimitNoFallback for certain countries right now\n only Japan, to go to generic error page in case of sending limit exceeded. this config\n will be removed once all countries have proper content available.\n 2. Currently only guest mode will go to generic error page as signup mode need to handle\n SENDING_LIMIT_EXCEEDED AND TRANSACTION_LIMIT_EXCEEDED separately but we are not getting expected\n contingency from Symphony yet. Will remove scope.flags.mode === 'guest' condition once we are getting\n expected contingency back.\n */\n if ((0, _index.$feature)('sendingLimitNoFallback') && _this4.flags.mode === 'guest') {\n _uiRouter.$state.go('checkout.genericError', { code: 'TRANSACTION_LIMIT_EXCEEDED' });\n } else {\n throw new _index.$FallbackError({\n reason: 'sending_limit_exceeded',\n product: 'ux'\n });\n }\n },\n NEED_AUTHENTICATED_CARD: function NEED_AUTHENTICATED_CARD() {\n // Contingency purpose - Show OTP confirmation popup\n // As we have already presented user with OTP popup with\n // init call after add card (flag - launchUpopScreen),\n // we need to redirect user to hermes at this point\n (0, _squid.$dispatch)('hermes', {\n token: _this4.token,\n 'locale.x': _index.$locale.lang + '_' + _index.$locale.country,\n 'country.x': _index.$locale.country\n });\n },\n TRAVEL_RULE_ID_REQUIRED: function TRAVEL_RULE_ID_REQUIRED() {\n _logger.$logger.info('invoice_travel_rule_id_required');\n _this4.launchTravelRuleLightbox = true;\n }\n }\n });\n };\n\n this.onTravelRuleSuccess = function () {\n // Close travel rule lightbox if it is open\n _this4.launchTravelRuleLightbox = false;\n return createXO();\n };\n\n this.onUpopSuccess = function () {\n _this4.launchUpopScreen = false;\n return createXO();\n };\n\n this.onUpopCancel = function (errorData) {\n _this4.launchUpopScreen = false;\n\n if (_this4.flags.mode === 'signup') {\n // If signup user closes the OTP popup window(or some error in flow)\n // then call create checkout session, and this will intern redirect\n // to hermes with NEED_AUTHENTICATED_CARD contingency\n return createXO();\n } else if (errorData) {\n // If guest user closes the OTP popup window(or some error in flow)\n // then show a page level error to the user\n // There is no redirect to hermes in guest case\n if (errorData && errorData.errorCodes && errorData.errorCodes[0] === 'RESTRICTED_CARD') {\n // Custom error messaging for RESTRICTED_CARD errorCode.\n // RESTRICTED_CARD_GUEST content key is applicable for both Guest & Signup flows.\n errorData.errorCodes[0] = 'RESTRICTED_CARD_GUEST';\n }\n\n // prop for last 4 digits of card in error message\n var prop = {\n number: _this4.onboard.card.last4()\n };\n\n _this4.errorMessage = _util.$fiErrorUtil.addPageErrors(errorData, 'confirmUpop', prop, 'error');\n }\n };\n\n this.uponNormalization = function (normalizedAddress, isBack) {\n _this4.showAddressNormalizationLightbox = false;\n\n var newBilling = _index8.$BillingAddressModel.create(_this4.token, normalizedAddress, {\n id: '0'\n });\n\n _this4.onboard.billing_address = newBilling;\n\n if (_this4.flags.shipToBilling) {\n _this4.onboard.shipping_address.first_name = _this4.onboard.user.first_name;\n _this4.onboard.shipping_address.last_name = _this4.onboard.user.last_name;\n }\n\n return _this4.onBoardAccount();\n };\n\n this.toggleAddressFieldsValidation = function (toggle) {\n if (_this4.flags.shipToBilling) {\n _this4.billingAddressValidated = toggle;\n } else {\n _this4.shippingAddressValidated = toggle;\n }\n };\n\n /*\n * Update Phone Number to remove '-' from actual Number.\n * Input: 123-4567-890 Output: 1234567890.\n */\n this.updatePhoneOnSubmit = function () {\n if (_this4.onboard.phone.telephone) {\n _this4.onboard.phone.telephone = _this4.$element.find('.telephone').cleanVal();\n }\n };\n\n /*\n * Before submit the transaction, need to update shipping address if this.flags.shipToBilling is set\n * Also update city/state/zip value if the city/state/zip element is not present for the selected country\n * TODO: should enhance this function to compare the address entry from metadata based on country,\n * the tricky part is need to consider to load metadata separately for billing and shipping\n * if their country is different\n */\n this.updateAddressOnSubmit = function () {\n var billingState = $('#billingAddress #state')[0] || $('#billingAddress #billingState')[0];\n var shippingState = $('#shippingAddress #state')[0] || $('#shippingAddress #shippingState')[0];\n var billingCity = $('#billingAddress #city')[0] || $('#billingAddress #billingCity')[0];\n var shippingCity = $('#shippingAddress #city')[0] || $('#shippingAddress #shippingCity')[0];\n var billingZip = $('#billingAddress #postalCode')[0] || $('#billingAddress #billingPostalCode')[0];\n var shippingZip = $('#shippingAddress #postalCode')[0] || $('#shippingAddress #shippingPostalCode')[0];\n var billingLine1 = $('#billingAddress #line1')[0] || $('#billingAddress #billingLine1')[0];\n var billingLine2 = $('#billingAddress #line2')[0] || $('#billingAddress #billingLine2')[0];\n\n // Before submit the onboarding request, we need to make sure billing address country code is user selected country\n _this4.onboard.billing_address.country = _index.$locale.country;\n\n if (!billingCity) {\n delete _this4.onboard.billing_address.city;\n }\n\n if (!billingState) {\n delete _this4.onboard.billing_address.state;\n }\n\n if (!billingZip) {\n delete _this4.onboard.billing_address.postal_code;\n }\n\n if (!billingLine1) {\n delete _this4.onboard.billing_address.line1;\n }\n\n if (!billingLine2) {\n delete _this4.onboard.billing_address.line2;\n }\n\n // skip populating shipping address fields for india whitelisted Merchants.\n if (_this4.flags.shipToBilling && !_this4.flags.whiteListedIndiaMerchant) {\n _this4.onboard.shipping_address = _index2.$ShippingAddressModel.create(_this4.token, _this4.onboard.billing_address, {\n first_name: _this4.onboard.user.first_name,\n last_name: _this4.onboard.user.last_name\n });\n } else {\n _this4.onboard.shipping_address.first_name = _this4.onboard.shipping_address.first_name || _this4.onboard.user.first_name;\n _this4.onboard.shipping_address.last_name = _this4.onboard.shipping_address.last_name || _this4.onboard.user.last_name;\n\n if (!shippingState) {\n delete _this4.onboard.shipping_address.state;\n }\n\n if (!shippingCity) {\n delete _this4.onboard.shipping_address.city;\n }\n\n if (!shippingZip) {\n delete _this4.onboard.shipping_address.postal_code;\n }\n\n // Shipping / Billing Address Difference Detection\n _this4.addrDiffDetected = compareShippingBillingAddrs(_this4.onboard.shipping_address, _this4.onboard.billing_address);\n if (_this4.addrDiffDetected) {\n var addrDiff = {\n is_ship_addr_diff: 1,\n page: 'main:ec:hermes::fullpage-billing:guest:hermes:'\n };\n\n _angular.$rootScope.$broadcast('addrDiff', addrDiff);\n }\n }\n };\n\n // This function just logs 'Non-DE' IBAN when user submits the form.\n this.logNonDEIBAN = function (iban_value) {\n if (iban_value && iban_value.slice(0, 2) !== 'DE') {\n _logger.$logger.info('non_DE_IBAN_number_submitted_' + iban_value);\n }\n };\n\n // Case insensitively compare all string properties of shipping and billing address to detect difference.\n // This method is designed to work with any country with any set of address input fields.\n var compareShippingBillingAddrs = function compareShippingBillingAddrs(shipping_addr, billing_addr) {\n var diffDetected = false;\n\n for (var prop in shipping_addr) {\n if (shipping_addr.hasOwnProperty(prop) && billing_addr.hasOwnProperty(prop)) {\n if (angular.isString(shipping_addr[prop]) && angular.isString(billing_addr[prop])) {\n if (shipping_addr[prop].toUpperCase() !== billing_addr[prop].toUpperCase()) {\n // Special handling for postal code\n if (prop === 'postal_code') {\n diffDetected = checkZip(shipping_addr[prop], billing_addr[prop]);\n } else {\n diffDetected = true;\n }\n }\n }\n }\n }\n\n // Special case zip check to ignore differences in zipcode format\n function checkZip(zip1, zip2) {\n var longerZip = zip1.length > zip2.length ? zip1 : zip2;\n var shorterZip = longerZip === zip1 ? zip2 : zip1;\n\n if (longerZip.indexOf(shorterZip) > -1) {\n return false;\n }\n return true;\n }\n\n return diffDetected;\n };\n\n var enableSnT = function enableSnT() {\n if (_this4.flags.wps_SnT_flow && !_this4.flags.allowSnTCall) {\n // SnT should be allowed if there is an contingency during OnBoard.\n _this4.flags.allowSnTCall = true;\n }\n };\n\n var handleAllLoadedForSnT = _angular.$rootScope.$on('allLoaded', enableSnT);\n\n this.$on('$destroy', handleAllLoadedForSnT);\n\n var routeToHermesOn3DSDeclineForSignUp = function routeToHermesOn3DSDeclineForSignUp() {\n // dispatch to hermesnodeweb up on 3DS authenticate decline.\n _logger.$logger.info('xoon_to_hermes_redirect_on_signup_3DS_Authentication_decline');\n (0, _squid.$dispatch)('hermes', {\n redirectToHermesOn3DSDecline: 'xoon',\n token: _this4.token,\n 'locale.x': _index.$locale.lang + '_' + _index.$locale.country,\n 'country.x': _index.$locale.country\n });\n };\n\n /**\n * call patchXO API to clear the 3DS contingency and then call authorize API.\n */\n var clear3DSContingency = function clear3DSContingency() {\n var checkoutSession = _index2.$CheckoutSessionModel.instance(_this4.token);\n\n return checkoutSession.action('clear3DSContingency', {\n data: {\n ccId: checkoutSession.resolve_3ds.ccId\n },\n success: function success() {\n // don't call authorize if the contingency is not cleared\n if (!checkoutSession.resolve_3ds) {\n _logger.$logger.info('Initiate_setStickyFI_call_and_authorize_call_after_resolve_3ds');\n return setStickyFIAndAuthorize();\n } else {\n _this4.errorMessage = {\n msgs: errorHandlerHelper.get3dsPageWarning(checkoutSession.resolve_3ds, 'threeDS.guestDeclineAfter3DSAccept'),\n type: 'warning'\n };\n }\n },\n contingencies: {\n // contingency may be \"no cc\" or any thing from clear3DSContingency(patch on xosession)\n // for \"no cc\" symphony throws NEED_CREDIT_CARD or NEED_CREDIT_CARD_OR_BANK_ACCOUNT\n DEFAULT: function DEFAULT(name, contingency) {\n _logger.$logger.info('clear3DSContingency_contingency', {\n int_error_description: contingency && contingency.message,\n contingency_name: name\n });\n\n if (_this4.flags.mode === 'signup') {\n // route to member review page upon patch xo throws contingency for signup\n routeToHermesOn3DSDeclineForSignUp();\n } else {\n _this4.errorMessage = {\n msgs: errorHandlerHelper.get3dsPageWarning(checkoutSession.resolve_3ds, 'threeDS.guestDeclineAfter3DSAccept'),\n type: 'warning'\n };\n }\n }\n }\n });\n };\n\n this.onComplete3DSHandler = function (status) {\n _this4.launch3DSResolver = false;\n var checkoutSession = _index2.$CheckoutSessionModel.instance(_this4.token);\n\n if (status === 'decline') {\n // Flow should route to member review page for sign up case\n // up on receiving \"decline\" response from 3DS authenticate call\n if (_this4.flags.mode === 'signup') {\n routeToHermesOn3DSDeclineForSignUp();\n } else {\n // guest case\n _this4.errorMessage = {\n msgs: errorHandlerHelper.get3dsPageWarning(checkoutSession.resolve_3ds, 'threeDS.guestDecline'),\n type: 'warning'\n };\n }\n } else if (status === 'close') {\n // Closing the 3DS page should route the flow to member review for sign up case\n // because the member account is created already.\n // Guest remains in the Billing page, no re-direction.\n if (_this4.flags.mode === 'signup') {\n routeToHermesOn3DSDeclineForSignUp();\n }\n } else if (status === 'success') {\n // Up on Successful authenticate, perform Patch on XO session and authorise.\n clear3DSContingency();\n }\n };\n\n // Added a function to set SepaOverlay flag based on pxp call\n var setSepaOverlayFlag = function setSepaOverlayFlag() {\n var sepaOverlayPXP = _this4.sepaExperiment.sepaOverlay && _this4.sepaExperiment.sepaOverlay.treatment_name === 'XO_XOONBOARDING_SEPA_OVERLAY_TEST';\n\n if (sepaOverlayPXP) {\n _logger.$logger.info('checkout_fpti', { is_sepaOverlay: 1 });\n\n _this4.flags.show_sepa_overlay = true;\n } else {\n _logger.$logger.info('checkout_fpti', { is_sepaOverlay: 0 });\n _this4.flags.show_sepa_overlay = false;\n }\n };\n\n setSepaOverlayFlag();\n\n _logger.$logger.info('sepa_overlay', {\n type: this.onboard.fiMode,\n sepa_overlay: this.flags.show_sepa_overlay,\n lang: _index.$locale.lang,\n unbrandedFlag: this.isUnbranded\n });\n\n // will be called upon change in flags.mode and flags.poma_flow - opt-in or opt-out\n // and when pre-plan currency conversion API returns conversion data\n var setSubmitButtonText = function setSubmitButtonText() {\n var isSubscription = _this4.models.checkoutAppData.is_wps_subscription_flow() || _this4.models.checkoutCart.isSubscriptionsV1();\n\n _this4.submitButtonText = (0, _pageProps.submitButtonTextKey)(_this4.flags, _this4.showNewSignupComplianceExp, _this4.flags.hasBuyerFxPrePlanData, isSubscription);\n };\n\n this.$watch('flags.mode', setSubmitButtonText);\n this.$watch('flags.poma_flow', setSubmitButtonText);\n this.$watch('onboard.card.currencyConvData', function () {\n _this4.getSelectedCurrencyCode(_this4.onboard.card.ppconversion);\n setSubmitButtonText();\n });\n\n this.openAndContinueSepaOverlay = function () {\n if (_this4.flags.show_sepa_overlay && !_this4.sepa.sepaGuestAgree) {\n _this4.sepa.show = true;\n return true;\n } else {\n return false;\n }\n };\n\n // If its invoicing flow with Remittance transfer rule (RTR), then a dislaimer content has to be shown to the payer.\n // It applies for US payers paying non US merchants of greater than $15 USD or equivalent.\n var handleInvoicingRegE = function handleInvoicingRegE(currConvData) {\n var isInvoicingFlow = _this4.models.checkoutAppData.get('flags.is_invoice_flow') === true;\n\n if (isInvoicingFlow) {\n var merchantCountry = _this4.models.checkoutAppData.get('merchant.merchant_country');\n var payerCountry = _this4.locale.country;\n\n var isRTRAmount = void 0;\n\n if (currConvData) {\n var _currConvData$payment = currConvData.payment_amt;\n _currConvData$payment = _currConvData$payment === undefined ? {} : _currConvData$payment;\n var value = _currConvData$payment.value,\n currency_code = _currConvData$payment.currency_code;\n\n\n if (value && currency_code) {\n isRTRAmount = Number(value) > _constants.RTR_AMOUNT;\n _this4.amountInPayerCurrency = (0, _squid.formatCurrency)(value, currency_code);\n _this4.hasCurrConversion = true;\n }\n } else {\n _this4.hasCurrConversion = false;\n\n var _ref3 = _this4.models.checkoutCart.get('purchase.amounts.total') || {},\n amount = _ref3.amount,\n _currency_code = _ref3.currency_code;\n\n isRTRAmount = Number(amount) > _constants.RTR_AMOUNT && _currency_code === 'USD';\n }\n\n _this4.showInvoicingRegEMsg = isRTRAmount && merchantCountry !== 'US' && payerCountry === 'US';\n\n var _ref4 = _this4.models.checkoutCart.get('purchase.amounts.total') || {},\n amount_formatted_currency = _ref4.amount_formatted_currency;\n\n _this4.amountInInvCurrency = amount_formatted_currency;\n\n // We need merchantDisplayName to be non empty and if merchant_name or brand_name is undefined\n // then we need the value of merchantDisplayName to be 'the merchant' as it is the middle of sentence\n // in content keys used in template\n _this4.nonEmptyMerchantDisplayName = _this4.models.checkoutAppData.getMerchantDisplayName({\n nonEmptyReturnValue: true\n });\n }\n };\n\n var setInvoicingRegEDetails = function setInvoicingRegEDetails(cardType) {\n if (cardType !== undefined && cardType !== 'VISA') {\n handleInvoicingRegE();\n } else {\n _this4.showInvoicingRegEMsg = false;\n }\n };\n\n this.$watch('onboard.card.type', setInvoicingRegEDetails);\n\n var setInvoicingRegEDetailsWithConversion = function setInvoicingRegEDetailsWithConversion(currConvData) {\n if (currConvData !== undefined) {\n handleInvoicingRegE(currConvData);\n } else {\n _this4.showInvoicingRegEMsg = false;\n }\n };\n\n this.$watch('onboard.card.currencyConvData', setInvoicingRegEDetailsWithConversion);\n\n var initPaymentRequest = function initPaymentRequest(PaymentRequest) {\n var networks = ['amex', 'diners', 'discover', 'jcb', 'mastercard', 'unionpay', 'visa', 'mir'];\n var types = ['debit', 'credit', 'prepaid'];\n // supportedInstruments includes Android Pay and credit cards.\n var supportedInstruments = [{\n supportedMethods: 'basic-card',\n data: {\n supportedNetworks: networks,\n supportedTypes: types\n }\n }];\n var details = {\n total: {\n label: 'Pay with PayPal',\n amount: {\n currency: 'USD',\n value: '10.00'\n }\n }\n };\n var options = {\n requestPayerName: true,\n requestPayerPhone: true,\n requestPayerEmail: true\n };\n\n return new PaymentRequest(supportedInstruments, details, options);\n };\n\n // GPayment Request API to measure impact.\n var logGPayMethods = function logGPayMethods() {\n if (angular.isFunction(window.PaymentRequest)) {\n try {\n var request = initPaymentRequest(window.PaymentRequest);\n if (request.canMakePayment) {\n request.canMakePayment().then(function (result) {\n if (result) {\n _logger.$logger.info('gpayment_api_can_make_payment');\n } else {\n _logger.$logger.info('gpayment_api_cannot_make_payment');\n }\n })['catch'](function (err) {\n _logger.$logger.info('gpayment_api_unhandled_error', err);\n });\n } else {\n _logger.$logger.info('gpayment_api_browser_cannot_make_payment');\n }\n } catch (e) {\n // Could happening due to support for modifiers not being present (< chrome v62)\n _logger.$logger.info('gpayment_api_exception_init_gpay', e);\n }\n } else {\n _logger.$logger.info('gpayment_api_browser_not_supported');\n }\n };\n\n logGPayMethods();\n } // populate\n\n },\n\n actions: {\n toggleFIMode: function toggleFIMode(event, mode) {\n\n var isTesla = this.teslaAddBankEXP ? 'tesla_' : '';\n\n // Log to FPTI with event name and mode.\n\n _logger.$logger.info('checkout_fpti', {\n from: this.mode === 'guest' ? 'GUEST_XO' : 'SIGNUP',\n to: 'prepare_' + isTesla + mode\n });\n\n _logger.$logger.info('FI_TOGGLE_CHANGED_TO', mode);\n\n event.preventDefault();\n this.onboard.fiMode = mode;\n },\n goBack: function goBack(event) {\n (0, _squid.$dispatch)('hermes', {\n redirectToHermes: true,\n token: this.token\n });\n },\n\n\n // Enable user to edit shipping address\n editShippingAddress: function editShippingAddress() {\n this.flags.showSingleAddress = false;\n this.flags.allowEditShipping = true;\n this.flags.disallowShipToBilling = true;\n this.flags.shipToBilling = false;\n this.flags.hideShippingAddress = false;\n _angular.$rootScope.$emit('change_in_shipping_address');\n },\n logWebviewBackButtonClick: function logWebviewBackButtonClick() {\n if (this.flags.backButtonWebview) {\n _logger.$logger.info('BACK_BUTTON_FOR_WEBVIEW_CLICKED');\n }\n },\n updatePageLevelErrorMessage: function updatePageLevelErrorMessage() {\n var msgs = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'error';\n\n this.errorMessage = { msgs: msgs, type: type };\n },\n onSubmit: function onSubmit() {\n // Remove backendError class upon submit on all fields\n // This is necessary to clear backend error on fields like first name\n // and last name, that is not having frontend validation\n $(this.sectionElement + ' .backendError').removeAttr('aria-invalid').removeClass('backendError');\n\n // Added logging for non-DE IBAN numbers: US1022248\n this.logNonDEIBAN($(this.sectionElement + ' #ibanNumber').val());\n\n // Added a condition check for pxp experimentation for Sepa Overlay US755520\n if (this.openAndContinueSepaOverlay()) {\n return;\n }\n\n if (this.isInstantUpdateFlow) {\n var currentShippingAddress = this.flags.shipToBilling ? this.onboard.billing_address : this.onboard.shipping_address;\n\n if ((0, _util2.hasAddressChanged)(this.trackSntReq.address, currentShippingAddress)) {\n _logger.$logger.info('address_changed_trigger_snt');\n _angular.$rootScope.$emit('submission_triggered');\n return;\n }\n if (!this.flags.instantUpdateShippingRegionSupported) {\n _logger.$logger.info(this.flags.mode + '_submit_not_allowed_instant_update_shipping_region_unsupported');\n return;\n }\n }\n\n if (this.flags.wps_SnT_flow || this.isInstantUpdateFlow) {\n /**\n * During submit , if SnT is triggered , do not allow Pay .\n */\n if (!this.flags.allowPayWithSnT) {\n _logger.$logger.info(this.flags.mode + '_submit_not_allowed_without_SnT_completion');\n return;\n }\n // Any SnT Call triggered when xoon updates the address for checkout should not be allowed.\n this.flags.allowSnTCall = false;\n }\n\n _logger.$logger.info(this.flags.mode + '_submit', {\n type: this.onboard.fiMode === 'bank' ? 'BANK' : this.onboard.card.type,\n country: _index.$locale.country,\n lang: _index.$locale.lang\n }).flush();\n\n if (this.flags.nationalIdFlag) {\n this.onboard.nationalIdModel = _directive.$NationalIdModel.instance(_angular.$rootScope.token);\n }\n\n if (this.flags.mode !== 'signup') {\n delete this.onboard.user.password;\n }\n\n this.updateAddressOnSubmit();\n this.updatePhoneOnSubmit();\n\n if (this.needOTPForAddCard && this.flags.cupDetected && !this.flags.upopDetected) {\n this.flags.allowSnTCall = true;\n // CUP Secure card is not supported in our flow\n return this.handleFIContingencies({}, 'creditcard');\n }\n\n var merchantPassedShipping = this.models.checkoutCart.get('purchase.shipping_address') || this.models.checkoutCart.get('billing.shipping_address');\n\n _logger.$logger.info('address_normalization', {\n from: 'checkout_guest',\n to: 'prepare_address_normalization',\n shipping_cnty: this.onboard.shipping_address.country,\n is_ship_addr_diff: this.addrDiffDetected,\n is_billing_present: this.models.checkoutCart.billing_address ? true : false,\n is_shipping_present: merchantPassedShipping ? true : false\n });\n\n if ((0, _index.$feature)('addressNormalization')) {\n this.showAddressNormalizationLightbox = true;\n } else {\n // Making sure incontext shipping methods are populated\n if (this.shippingOptionsFeature.hasShippingOptions() && !this.shippingOptionsFeature.selectedShippingOption) {\n this.errorMessage = {\n type: 'error',\n msgKeys: ['shipping.bopisErrorMessage']\n };\n\n return;\n }\n\n return this.onBoardAccount();\n }\n },\n positionToErrorField: function positionToErrorField() {\n var _this5 = this;\n\n var errorFields = $('.backendError:visible, input:visible.ng-invalid, select:visible.ng-invalid');\n var firstErrorField = errorFields && errorFields.length && errorFields[0];\n\n // Sets the styling for validation on singlePagePaymentForm\n this.validated = true;\n\n // AB testing - fixes the revious bug of marking the email and password\n // as required when the user selects the 'yes' button for the first time\n this.flags.ignoreValidationTheFirstTime = false;\n\n if (firstErrorField) {\n firstErrorField.focus();\n } else {\n errorHandlerHelper.scrollToElement();\n }\n\n $('.backendError:visible').on('blur', function (event) {\n $(_this5).removeClass('backendError');\n });\n\n if ($('#installments').length) {\n $('#paymentMethod').addClass('ng-invalid');\n } else {\n $('#paymentMethod').removeClass('ng-invalid');\n }\n\n return true;\n }\n }\n});\n\n\n_angular.$q;\n\n_angular.$rootScope;\n\n_ul.$ul;\n\n_squid.$contentVersion;\n\n_squid.$experiment;\n\n_squid.$promise;\n\n_squid.$renderContent;\n\n_squid.$pxp;\n\n_squid.$dispatch;\n\n_squid.$meta;\n\n_squid.formatCurrency;\n\n_squid.$elmo;\n\n_index.$Component;\n\n_index.$FallbackError;\n\n_index.$config;\n\n_index.$feature;\n\n_index.$locale;\n\n_index.$util;\n\n_index2.$CheckoutSessionModel;\n\n_index2.$FundingOptionsModel;\n\n_index2.$CheckoutAppDataModel;\n\n_index2.$CheckoutPayeeModel;\n\n_index2.$CheckoutCartModel;\n\n_index2.$ShippingAddressModel;\n\n_index2.$InstallmentOptionsModel;\n\n_index3.$CheckoutInputDataModel;\n\n_index4.$ShoppingCartModel;\n\n_index5.$ShippingRuleSummaryModel;\n\n_index6.$InventoryModel;\n\n_index7.$OnboardModel;\n\n_index7.$OnboardUserModel;\n\n_index7.$OnboardPhoneModel;\n\n_index8.$BankModel;\n\n_index8.$CardModel;\n\n_index8.$BillingAddressModel;\n\n_fiApis.$fiApis;\n\n_index9.$AuthModel;\n\n_logger.$logger;\n\n_uiRouter.$state;\n\n_index10.$DeviceInfo;\n\n_index11.$fireMORSBeacon;\n\n_directive.$NationalIdModel;\n\n_util.$fiErrorUtil;\n\n_sticky.setStickyInstrument;\n\n_util2.hasAddressChanged;\n\n_util2.hasDialingCodeOverride;\n\n_util2.redirectToSubscriptionFinalRoute;\n\n_shippingChangeFeature.createShippingChangeFeature;\n\n_pageProps.upopConfirmButtonTextKey;\n\n_pageProps.submitButtonTextKey;\n\n_pageProps.accountExistsOptionalCheck;\n\n_pageProps.getFItoggleContentKeys;\n\n_util3.authflowRedirect;\n\n_util3.sanitizeStateFields;\n\n_constants.RTR_AMOUNT;\n\n_index12.$MerchantPreferenceModel;\n\n_utils.logBuyerFxFpti;\n\n_xoShippingOptions.$xoShippingOptions; // eslint-disable-line no-unused-vars;\n\n_shippingOptionsFeature.buildShippingOptionsFeature;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest/directive.js\n// module id = ../node_modules/xo-guest-components/src/guest/directive.js\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _squid = require('squid');\n\nrequire('xo-ui-components/src/directionality/directive');\n\nrequire('xo-ui-components/src/error-tooltip/directive');\n\nrequire('xo-validation/dist/directive');\n\nrequire('./styles');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _squid.$Component.extend('xoEmailInput', {\n tag: 'xo-email-input',\n template: _template2['default'],\n props: {\n user: {\n type: 'var',\n required: false\n },\n disabled: {\n type: 'var',\n required: false\n },\n hideHelper: {\n type: 'var', // flow: Optional string, if \"signup\" then use the Signup tooltip\n required: false\n },\n flags: {\n type: 'var',\n required: false\n }\n },\n lifecycle: {\n enter: function enter() {\n var _this = this;\n\n this.flags = this.flags ? this.flags : {};\n var setEmailToolTip = function setEmailToolTip() {\n _this.emailToolTip = _this.flags.mode === 'signup' ? 'common.emailHelper' : 'common.emailTooltipGuest';\n };\n\n this.$watch('flags.mode', setEmailToolTip);\n }\n }\n});\n\n\n_squid.$Component;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest/emailInput/directive.js\n// module id = ../node_modules/xo-guest-components/src/guest/emailInput/directive.js\n// module chunks = 0","module.exports = \"
      \\n \\n
      \\n \\n
      \\n \\n \\n
      \\n \\n \\n
      \\n
      \\n
      \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest/emailInput/template.html\n// module id = ../node_modules/xo-guest-components/src/guest/emailInput/template.html\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.getErrorType = exports.errorHandler = exports.addFieldError = exports.get3dsPageWarning = exports.getPageError = exports.scrollToElement = undefined;\n\nvar _errorHandlerConstants = require('../constants/errorHandlerConstants');\n\nvar _squid = require('squid');\n\nvar _logger = require('xo-beaver/dist/logger');\n\nvar SECTION_ELEMENT = '#singlePagePayment';\n\nvar scrollToElement = function scrollToElement(fieldName) {\n var element = $('[name=' + fieldName + ']');\n var notifications = $('#notifications');\n var logo = $('#paypalLogo');\n\n if (element.length) {\n element.focus();\n } else {\n var focusDiv = notifications.length ? notifications : logo;\n\n // Focus notifications div or logo div\n // This triggers scroll to notifications or logo from\n // hideSpinner() function\n focusDiv.attr('tabindex', '-1').focus();\n }\n};\n\nvar getPageError = function getPageError(contentKey, compileMessageWith) {\n var messages = [];\n var msg = void 0;\n\n if (compileMessageWith) {\n msg = (0, _squid.$renderContent)(contentKey, compileMessageWith);\n } else {\n msg = _squid.$locale.content.get(contentKey);\n }\n\n messages.push(msg);\n\n scrollToElement();\n\n return messages;\n};\n\nvar get3dsPageWarning = function get3dsPageWarning(resolve3DS, contentKey) {\n var messages = [];\n var cardType = resolve3DS.type;\n var cardLast4 = resolve3DS.number;\n\n messages.push((0, _squid.$renderContent)(contentKey, { cardType: cardType, last4: cardLast4 }));\n scrollToElement();\n return messages;\n};\n\nvar addFieldError = function addFieldError(errorData) {\n var sectionElement = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : SECTION_ELEMENT;\n\n (errorData.fields || []).forEach(function (field) {\n var $field = $(sectionElement).find('[ng-model=\"' + field + '\"]');\n\n $field.addClass('backendError');\n });\n};\n\nvar getErrorType = function getErrorType(errorCode, mode, treatment) {\n if (errorCode === 'ACCOUNT_ALREADY_EXISTS' && mode !== 'signup' && treatment) {\n return 'info';\n }\n\n return 'error';\n};\n\n/**\n * Highlight the Error Fields by ng-model\n * @param errorData\n * @param element\n * @param modelPrefix\n */\nvar addFieldErrors = function addFieldErrors(errorData, element, modelPrefix) {\n\n if (errorData.fields && errorData.fields.length) {\n errorData.fields.forEach(function (field) {\n var $field = $(element).find('[ng-model=\"' + (modelPrefix ? modelPrefix : '') + field.field + '\"]');\n\n $field.addClass('backendError');\n $field.attr('aria-invalid', true);\n });\n }\n\n $(element).find('.backendError:first').focus();\n};\n\n/**\n * Highlight the Error Fields by element name\n * @param errorData\n * @param element\n * @param modelPrefix\n */\nvar addFieldErrorsByName = function addFieldErrorsByName(errorData, element, modelPrefix) {\n\n if (errorData.fields && errorData.fields.length) {\n errorData.fields.forEach(function (field) {\n var fieldName = void 0;\n\n if (modelPrefix && field.field && field.field.length > 0) {\n // Add prefix with CamelCase of field name\n fieldName = modelPrefix + field.field[0].toUpperCase() + field.field.substring(1);\n } else {\n fieldName = field.field;\n }\n var $field = $(element).find('[name=\"' + fieldName + '\"]');\n\n $field.addClass('backendError');\n $field.attr('aria-invalid', true);\n });\n }\n\n $(element).find('.backendError:first').focus();\n};\n\nvar errorHandler = function errorHandler(message, errorData, positionToErrorField, mode) {\n var sectionElement = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : SECTION_ELEMENT;\n\n var messages = [];\n var prefix = mode === 'guest' ? 'guest' : '';\n\n // TODO: this block does same thing as next block, need to depricate this\n // Next block has better features and stable on live\n if (errorData && errorData.message === 'VALIDATION_ERROR') {\n angular.forEach(errorData.errorCodes, function (errCode) {\n\n var validationPageError = _errorHandlerConstants.validationErrorMap[errCode];\n\n if (validationPageError) {\n messages = getPageError(validationPageError.contentKey);\n _logger.$logger.info('HANDLED_VALIDATION_ERROR', errCode);\n } else {\n // There are multiple services that can throw generic VALIDATION_ERROR.\n // We have chosen to use genericError for the time being since we can't pinpoint the error class.\n messages = getPageError('genericError.genericError');\n _logger.$logger.info('UNHANDLED_VALIDATION_ERROR', errCode);\n }\n });\n }\n\n var scrollToTop = false;\n\n angular.forEach(errorData, function (err) {\n\n // TODO: need to break if case nesting\n if (err) {\n var errElMap = _errorHandlerConstants.errorElementMap[err] || _errorHandlerConstants.errorElementMap[err.errorCode] || _errorHandlerConstants.errorElementMap[err.code];\n\n if (errElMap) {\n var element = sectionElement + (errElMap.element ? ' ' + errElMap.element : '');\n\n if (errElMap.name) {\n // Highlight the Error Fields by name\n addFieldErrorsByName(errElMap.fields && errElMap || err.details || err, element, errElMap.name);\n } else {\n // Highlight the Error Fields by ng-model\n addFieldErrors(errElMap.fields && errElMap || err.details || err, element, errElMap.model);\n }\n\n if (errElMap.pageError) {\n // If guest specific content key (guestcontentKey) is not found, then pickup generic content key\n var contentKey = errElMap.pageError[prefix + 'contentKey'] || errElMap.pageError.contentKey;\n\n messages = getPageError(contentKey, errElMap.compileMessageWith);\n scrollToTop = errElMap.scrollToTop ? true : false;\n }\n } else {\n addFieldError(err);\n }\n }\n });\n\n if (!scrollToTop) {\n positionToErrorField();\n }\n\n return messages;\n};\n\nexports.scrollToElement = scrollToElement;\nexports.getPageError = getPageError;\nexports.get3dsPageWarning = get3dsPageWarning;\nexports.addFieldError = addFieldError;\nexports.errorHandler = errorHandler;\nexports.getErrorType = getErrorType;\n\n\n_errorHandlerConstants.errorElementMap;\n\n_errorHandlerConstants.validationErrorMap;\n\n_squid.$renderContent;\n\n_squid.$locale;\n\n_logger.$logger;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest/lib/errorHandlerHelper.js\n// module id = ../node_modules/xo-guest-components/src/guest/lib/errorHandlerHelper.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.getFItoggleContentKeys = exports.accountExistsOptionalCheck = exports.submitButtonTextKey = exports.upopConfirmButtonTextKey = undefined;\n\nvar _constants = require('../constants/constants');\n\nvar _constants2 = require('../tesla-add-bank/constants');\n\nvar _angular = require('angular');\n\nvar upopConfirmButtonTextKey = function upopConfirmButtonTextKey(flags) {\n if (flags.wpsFlow) {\n return 'confirmUpop.confirmAndContinue';\n } else if (flags.commit) {\n return 'confirmUpop.confirmAndPay';\n }\n\n return 'confirmUpop.confirmAndContinueToMerch';\n};\n\nvar getCommitOrContinueText = function getCommitOrContinueText(flags, mode, showSignupCompliance, hasConversion) {\n var showCurrency = mode === 'guest' && (flags.buyerFxTreatment || '').includes('treatment_2') && hasConversion;\n var commitType = flags.commit ? 'commit' + (showCurrency ? 'InCurrency' : '') : 'notCommit' + (showCurrency ? 'InCurrency' : '');\n var group = showSignupCompliance ? 'US' : 'ROW';\n\n return _constants.SUBMIT_BUTTON_TEXT_KEY_MAP[mode][group][commitType];\n};\n\nvar submitButtonTextKey = function submitButtonTextKey(flags, showSignupCompliance, hasConversion, isSubscription) {\n var mode = flags.mode === 'signup' ? 'signup' : 'guest';\n\n if (flags.show_poma_ui) {\n mode = flags.poma_flow ? 'pomaSignup' : 'guest';\n }\n\n return mode === 'signup' && flags.commit && isSubscription ? _constants.SUBSCRIPTION_SUBMIT_BUTTON_KEY : getCommitOrContinueText(flags, mode, showSignupCompliance, hasConversion);\n};\n\nvar accountExistsOptionalCheck = function accountExistsOptionalCheck() {\n var mode = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'guest';\n var isPOMA = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n\n angular.element('#email').removeClass('backendError');\n\n if (mode === 'guest' && !isPOMA) {\n // Optional signup only!\n (0, _angular.$timeout)(function () {\n // Angular.element causes digest cycle error. Hence switching to document.querySelector.\n document.querySelector('#guestSignup2').click();\n }, 0);\n } else if (isPOMA) {\n // POMA flow\n (0, _angular.$timeout)(function () {\n angular.element('#saveMyInfo').click();\n }, 0);\n }\n};\n\n// Returns keys depending on the specific flow. (e.g, Tesla add bank)\nvar getFItoggleContentKeys = function getFItoggleContentKeys(teslaAddBank, teslaFIDefault) {\n\n if (!teslaAddBank) {\n return _constants2.DEFAULT_TOGGLE_FI;\n }\n\n // Treatment A - 'bank' selected as default.\n if (teslaAddBank && teslaFIDefault === 'bank') {\n return _constants2.TESLA_TOGGLE_FI_BANK;\n }\n\n // Treatment B - 'card' selected as default.\n return _constants2.TESLA_TOGGLE_FI_CARD;\n};\n\nexports.upopConfirmButtonTextKey = upopConfirmButtonTextKey;\nexports.submitButtonTextKey = submitButtonTextKey;\nexports.accountExistsOptionalCheck = accountExistsOptionalCheck;\nexports.getFItoggleContentKeys = getFItoggleContentKeys;\n\n\n_constants.SUBMIT_BUTTON_TEXT_KEY_MAP;\n\n_constants.SUBSCRIPTION_SUBMIT_BUTTON_KEY;\n\n_constants2.DEFAULT_TOGGLE_FI;\n\n_constants2.TESLA_TOGGLE_FI_BANK;\n\n_constants2.TESLA_TOGGLE_FI_CARD;\n\n_angular.$timeout;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest/lib/pageProps.js\n// module id = ../node_modules/xo-guest-components/src/guest/lib/pageProps.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.createShippingChangeFeature = undefined;\n\nvar _squid = require('squid');\n\nvar _uiRouter = require('uiRouter');\n\nvar _index = require('xo-models/src/checkout/index');\n\nvar _factory = require('xo-shipping-change/src/factory');\n\nvar _logger = require('xo-beaver/dist/logger');\n\nvar promiseNoop = function promiseNoop() {\n return (0, _squid.$promise)();\n};\n\nvar createShippingChangeFeature = exports.createShippingChangeFeature = function createShippingChangeFeature(_ref) {\n var orderID = _ref.orderID,\n checkoutCart = _ref.checkoutCart,\n checkoutAppData = _ref.checkoutAppData,\n flags = _ref.flags,\n _ref$callback = _ref.callback,\n callback = _ref$callback === undefined ? promiseNoop : _ref$callback;\n\n var feature = {\n message: '',\n showForm: false,\n interstitialResolver: null,\n\n showCartChanged: function showCartChanged() {},\n showOrResolveInterstitial: function showOrResolveInterstitial() {},\n handleOnShippingChange: function handleOnShippingChange() {}\n };\n\n feature.showCartChanged = function () {\n flags.showCartChanged = true;\n };\n\n feature.showOrResolveInterstitial = function (cartHasChanged, rejected) {\n\n if (rejected) {\n feature.message = (0, _squid.$renderContent)('shippingMethod.shippingRegionUnsupported', {\n merchant: checkoutAppData.getMerchantDisplayName()\n });\n feature.showForm = true;\n\n return callback().then(function () {\n return feature.showCartChanged();\n });\n }\n\n if (cartHasChanged) {\n feature.message = (0, _squid.$renderContent)('shippingCallback.updated', {\n amount: checkoutCart.get('purchase.amounts.total.amount_formatted_currency')\n });\n feature.showForm = false;\n\n return callback().then(function () {\n return feature.showCartChanged();\n });\n }\n\n feature.interstitialResolver();\n };\n\n feature.handleOnShippingChange = function () {\n\n if (!window.xprops || !window.xprops.onShippingChange) {\n return (0, _squid.$promise)();\n }\n\n var loadingMsg = _squid.$locale.content.get('shippingCallback.loading');\n\n _squid.$event.emit('loading');\n _squid.$event.emit('loadingMessage', loadingMsg);\n\n flags.showCartChanged = false;\n\n var checkoutSession = _index.$CheckoutSessionModel.instance(orderID);\n var shippingChangeFactory = (0, _factory.$ShippingChangeFactory)({\n orderID: orderID,\n checkoutAppData: checkoutAppData,\n checkoutCart: checkoutCart\n });\n\n return shippingChangeFactory.getPayload(checkoutSession.get('shipping')).then(function (payload) {\n _logger.$logger.info('shipping_change_payload_recieved', payload);\n return shippingChangeFactory.callOnShippingChange(payload);\n }).then(function (_ref2) {\n var cartHasChanged = _ref2.cartHasChanged,\n rejected = _ref2.rejected;\n\n _logger.$logger.info('shipping_change_called', { cartHasChanged: cartHasChanged, rejected: rejected });\n\n _squid.$event.emit('loaded');\n\n /**\n * There's currently a pending promise that's\n * waiting on a successful response from the interstitial\n * in order to continue.\n */\n if (feature.interstitialResolver) {\n return feature.showOrResolveInterstitial(cartHasChanged, rejected);\n }\n\n return _squid.$promise.resolver(function (resolve) {\n feature.interstitialResolver = resolve;\n return feature.showOrResolveInterstitial(cartHasChanged, rejected);\n });\n })['catch'](function (err) {\n _squid.$event.emit('loaded');\n _logger.$logger.error('shipping_change_error', err);\n\n return _uiRouter.$state.go('checkout.genericError', { code: 'DEFAULT' });\n });\n };\n\n return feature;\n};\n\n_squid.$promise;\n\n_squid.$renderContent;\n\n_squid.$locale;\n\n_squid.$event;\n\n_uiRouter.$state;\n\n_index.$CheckoutSessionModel;\n\n_factory.$ShippingChangeFactory;\n\n_logger.$logger;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest/lib/shippingChangeFeature.js\n// module id = ../node_modules/xo-guest-components/src/guest/lib/shippingChangeFeature.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.buildShippingOptionsFeature = undefined;\n\nvar _index = require('xo-models/src/checkout/index');\n\nvar _xoShippingOptions = require('xo-shipping-options');\n\nvar buildShippingOptionsFeature = exports.buildShippingOptionsFeature = function buildShippingOptionsFeature(token) {\n var checkoutCart = _index.$CheckoutCartModel.instance(token);\n\n var selectOption = function selectOption(option) {\n if (!option) {\n return;\n }\n\n return (0, _xoShippingOptions.selectShippingOption)(token, option).then(function () {\n checkoutCart.invalidate();\n\n checkoutCart.api.cache = false;\n return checkoutCart.reload().then(function () {\n return option;\n });\n });\n };\n\n var checkForOptions = function checkForOptions() {\n var shippingOptions = [];\n var selectedShippingOption = null;\n\n return (0, _xoShippingOptions.getShippingOptions)(token).then(function (options) {\n shippingOptions = options;\n }).then(function () {\n return (0, _xoShippingOptions.getSelectedShippingOption)(token);\n }).then(function (selectedOption) {\n selectedShippingOption = selectedOption;\n }).then(function () {\n return { options: shippingOptions, selectedOption: selectedShippingOption };\n });\n };\n\n var feature = {\n shippingOptions: [],\n selectedShippingOption: null,\n\n hasShippingOptions: function hasShippingOptions() {\n return Boolean(feature.shippingOptions && feature.shippingOptions.length);\n },\n\n selectShippingOption: function selectShippingOption(option, userSelected) {\n return selectOption(option, userSelected).then(function (shippingOption) {\n feature.selectedShippingOption = shippingOption;\n });\n },\n\n checkForShippingOptions: function checkForShippingOptions() {\n return checkForOptions().then(function (_ref) {\n var options = _ref.options,\n selectedOption = _ref.selectedOption;\n\n feature.shippingOptions = options;\n feature.selectedShippingOption = selectedOption;\n });\n }\n };\n\n feature.checkForShippingOptions();\n\n return feature;\n};\n\n_index.$CheckoutCartModel;\n\n_xoShippingOptions.getShippingOptions;\n\n_xoShippingOptions.selectShippingOption;\n\n_xoShippingOptions.getSelectedShippingOption;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest/lib/shippingOptionsFeature.js\n// module id = ../node_modules/xo-guest-components/src/guest/lib/shippingOptionsFeature.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.sanitizeStateFields = exports.authflowRedirect = undefined;\n\nvar _squid = require('squid');\n\nvar authflowRedirect = function authflowRedirect(_ref) {\n var isCheckAuthflowRedirectParam = _ref.isCheckAuthflowRedirectParam,\n country = _ref.country;\n\n if (isCheckAuthflowRedirectParam) {\n return (0, _squid.$elmo)('xo_xoon_account_already_exists', { 'ctx.COUNTRY': country }, 'xo_xoon_account_already_exists_treatment').then(function (result) {\n return Boolean(result);\n });\n }\n return _squid.$promise.resolve(false);\n};\n\n// There are two ways to prefill state related info.\n// NVP and REST integration. For NVP the shippingAddress.state || billingAddress.state is capitalized before landing here\n// REST does not do any capitalization.\n// In order to make prefilling consistent across all integrations, we convert them to uppercase!\nvar sanitizeStateFields = function sanitizeStateFields(shippingAddress, billingAddress) {\n if (shippingAddress && shippingAddress.state) {\n shippingAddress.state = shippingAddress.state.toUpperCase();\n }\n\n if (billingAddress && billingAddress.state) {\n billingAddress.state = billingAddress.state.toUpperCase();\n }\n};\n\nexports.authflowRedirect = authflowRedirect;\nexports.sanitizeStateFields = sanitizeStateFields;\n\n\n_squid.$promise;\n\n_squid.$elmo;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest/lib/util.js\n// module id = ../node_modules/xo-guest-components/src/guest/lib/util.js\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _squid = require('squid');\n\nrequire('xo-ui-components/src/error-tooltip/directive');\n\nrequire('./styles');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _squid.$Component.extend('xoNationality', {\n tag: 'xo-nationality',\n template: _template2['default'],\n props: {\n user: {\n type: 'var',\n required: true\n }\n },\n lifecycle: {\n enter: function enter() {\n var _this = this;\n\n var bindLocalizedCountries = function bindLocalizedCountries() {\n\n var guestBlockedCountries = _squid.$config.guestBlockedCountries || [];\n\n _this.metadata = angular.copy(_squid.$locale.metadata);\n\n _this.countries = _this.metadata.territory.filter(function (c) {\n // don't show the blocked countries in the dropdown\n return !(guestBlockedCountries.indexOf(c.code) > -1);\n });\n };\n\n bindLocalizedCountries();\n this.$on('metadataChange', bindLocalizedCountries);\n }\n }\n});\n\n\n_squid.$Component;\n\n_squid.$locale;\n\n_squid.$config;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest/nationality/directive.js\n// module id = ../node_modules/xo-guest-components/src/guest/nationality/directive.js\n// module chunks = 0","module.exports = \"
      \\n \\n \\n
      \"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest/nationality/template.html\n// module id = ../node_modules/xo-guest-components/src/guest/nationality/template.html\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _index = require('squid/index');\n\nvar _angular = require('angular');\n\nvar _index2 = require('xo-models/src/user/index');\n\nvar _index3 = require('xo-models/src/subscription/index');\n\nvar _index4 = require('xo-models/src/checkout/index');\n\nvar _index5 = require('xo-models/src/profilemanagement/index');\n\nvar _index6 = require('xo-models/src/frs/index');\n\nvar _logger = require('xo-beaver/dist/logger');\n\nvar _uiRouter = require('uiRouter');\n\nvar _index7 = require('xo-device-info/dist/index');\n\nvar _contentKeys = require('../../lib/contentKeys');\n\nvar _pxpExperimentConstants = require('../constants/pxpExperimentConstants');\n\nvar _pxpExperimentConstants2 = _interopRequireDefault(_pxpExperimentConstants);\n\nrequire('./guest/directive.js');\n\nrequire('./signup/directive.js');\n\nrequire('xo-page-components/src/marketingOffers/directive.js');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _index.$Component.extend('xoOnboardOptions', {\n tag: 'xo-onboard-options',\n template: _template2['default'],\n\n props: {\n token: {\n type: 'var',\n required: false\n },\n flags: {\n type: 'var',\n required: false\n },\n mode: {\n type: 'var',\n required: false\n },\n onboard: {\n type: 'var',\n required: false\n },\n singlePagePaymentForm: {\n type: 'var',\n required: false\n },\n validated: {\n type: 'var',\n required: false\n },\n sepa: {\n type: 'var',\n required: false\n },\n merchant: {\n type: 'var',\n required: false\n },\n isUnbranded: {\n type: 'var',\n required: false\n }\n },\n\n resolve: {\n models: function models() {\n return {\n checkoutInputData: _index2.$CheckoutInputDataModel.instance(this.token).retrieve(),\n payee: _index4.$CheckoutPayeeModel.instance(this.token).retrieve(),\n checkoutAppData: _index4.$CheckoutAppDataModel.instance(this.token).retrieve(),\n checkoutCart: _index4.$CheckoutCartModel.instance(this.token).retrieve(),\n flowEligibility: _index4.$FlowEligibilityModel.instance(this.token).retrieve()\n };\n },\n subscriptionsV1Model: function subscriptionsV1Model(resolvers) {\n return resolvers.models.then(function (models) {\n if (models.checkoutCart.isSubscriptionsV1()) {\n return _index3.$SubscriptionsV1Model.instance(models.checkoutCart.getBaToken()).retrieve();\n }\n });\n },\n pomaExperiment: function pomaExperiment() {\n if (this.mode === 'guest') {\n return {\n poma: (0, _index.$pxp)('XO_XOONBOARDING_POMA_GLOBAL', { 'ctx.COUNTRY': _index.$locale.country }, '(XO_XOONBOARDING_POMA_GLOBAL_)(.*)')\n };\n }\n },\n populateFlags: function populateFlags(resolvers) {\n var _this = this;\n\n return resolvers.models.then(function (models) {\n // Saving various flow indicators in to flags for future use.\n // These flags can be reused in this file instead of referring it from models always\n var _ref = models.payee || {},\n _ref$merchant = _ref.merchant;\n\n _ref$merchant = _ref$merchant === undefined ? {} : _ref$merchant;\n var id = _ref$merchant.id;\n\n // is_wps_flow indicator in checkoutAppData will be undefined for ebay flows\n // isEbaytxn() will be true only for prox flows.\n\n var flowFLags = {\n isWpsFlow: models.checkoutAppData.is_wps_flow(),\n isEcFlow: !models.checkoutAppData.is_wps_flow() && !models.checkoutInputData.isEbayTxn(),\n isInvoiceFlow: models.checkoutAppData.isInvoiceFlow(),\n isWpsSubscription: models.checkoutAppData.is_wps_subscription_flow(),\n tokenWalletization: models.checkoutCart.isWalletTokenization()\n };\n\n Object.assign(_this.flags, flowFLags);\n _this.flags.flowName = flowFLags.isEcFlow ? 'ec' : 'wps';\n\n return _index5.$MerchantPreferenceModel.instance(id).retrieve().then(function (merchantPreferences) {\n _this.flags.merchantPreferences = merchantPreferences;\n });\n });\n },\n experiments: function experiments() {\n return {\n optionalSignupContent: (0, _index.$pxp)('xoon_optional_signup_content_change', { 'ctx.COUNTRY': _index.$locale.country }, '(xoon_optional_signup_content_change_)(.*)'),\n marketingOfferTitleContentExp: (0, _index.$pxp)('xoon_forced_signup_buyer_protection_content', { 'ctx.COUNTRY': _index.$locale.country }, '(xoon_forced_signup_buyer_protection_content_)(.*)')\n };\n },\n freeReturnShippingExperiments: function freeReturnShippingExperiments(resolvers) {\n var _this2 = this;\n\n return resolvers.populateFlags.then(function () {\n var ecSignupWalletTokenization = _this2.flags.isEcFlow && _this2.mode === 'signup' && _this2.flags.tokenWalletization;\n\n var wpsAutoreturnPdtEnabled = _this2.flags.isWpsFlow && (_this2.flags.merchantPreferences.autoReturn() || _this2.flags.merchantPreferences.pdtEnabled());\n\n // frs content not applicable for prox flows.\n // frs content not applicable for when cart has TOKENIZED_WALLET and mode is signup\n // frs content not applicable for when autoreturns/pdt present in merchant preferences\n // frs content not applicable for split screen experience\n if (!wpsAutoreturnPdtEnabled && !ecSignupWalletTokenization && (_this2.flags.isWpsFlow || _this2.flags.isEcFlow)) {\n var pageName = _pxpExperimentConstants2['default'].test['frsPageName'][_this2.flags.flowName][_this2.mode];\n\n return (0, _index.$pxp)(pageName, { 'ctx.COUNTRY': _index.$locale.country }, pageName + '_(.*)');\n }\n });\n }\n },\n\n lifecycle: {\n enter: function enter() {\n this.locale = _index.$locale;\n },\n populate: function populate() {\n var _this3 = this;\n\n this.contentKeys = {};\n this.frsContentKeys = {};\n\n this.showMarketingOffers = function () {\n return !_this3.flags.allowChoice && !_this3.models.checkoutCart.isWalletTokenization() && !_this3.flags.freeReturnShippingOptInFlowApplicable && !_this3.flags.titleSubtitlePxpTreatment;\n };\n\n var setUnbrandedContent = function setUnbrandedContent() {\n _this3.onboardTitleLine1 = _this3.isUnbranded ? 'common.getBenefitsUnBrandedLine1' : 'common.getBenefitsLine1';\n _this3.subTitle = _this3.isUnbranded ? 'common.createPayPalUnBrandedProp' : 'common.createPayPalProp';\n _this3.paypalSubTitle = _this3.isUnbranded ? 'common.createPayPalUnBrandedSubTitle' : 'common.createPayPalSubTitle';\n _this3.guestSignup1 = _this3.isUnbranded ? 'common.yesCreateUnBrandedAccount' : 'common.yesCreateAccount';\n _this3.guestSignup2 = _this3.isUnbranded ? 'common.nothanksUnBranded' : 'common.nothanks';\n };\n\n setUnbrandedContent();\n\n var contentOpts = {\n $config: _index.$config,\n cart: this.models.checkoutCart,\n appData: this.models.checkoutAppData,\n locale: this.locale,\n subscriptionData: this.subscriptionsV1Model\n };\n\n this.billingAgreementContent = (0, _contentKeys.getBillingAgreementContentInfo)(contentOpts);\n\n /**\n * show WPS interstitial page, if\n * 1. its optional sign up flow and\n * 2. not multistep flow and not DE\n * 3. merchant pref not have pdt or auto return and\n * 4. one touch throttle is not control\n * 5. wps interstitial throttle return treatment experiment\n **/\n var checkWPSInterstitialEligibility = function checkWPSInterstitialEligibility() {\n if (!_this3.flags.isWpsFlow) {\n return;\n }\n\n if (_this3.flags.isWpsSubscription) {\n _logger.$logger.info('wps_interstitial_not_eligible_for_wps_subscription_flow');\n return;\n }\n\n if (_this3.mode === 'signup') {\n _logger.$logger.info('wps_interstitial_not_eligible_force_signup');\n return;\n }\n\n if (_this3.flags.merchantPreferences) {\n var autoReturnEnabled = (0, _index.$feature)('wpsMerchantAutoReturn', false) && _this3.flags.merchantPreferences.autoReturn();\n\n if (autoReturnEnabled) {\n _logger.$logger.info('wps_interstitial_not_eligible_merchant_prefer_auto_return');\n return;\n }\n\n var pdtEnabled = (0, _index.$feature)('wpsMerchantPdt', false) && _this3.flags.merchantPreferences.pdtEnabled();\n\n if (pdtEnabled) {\n _logger.$logger.info('wps_interstitial_not_eligible_merchant_prefer_pdt_enabled');\n return;\n }\n }\n\n _logger.$logger.info('wps_interstitial_pxp_eligible_show_guestonly_and_wps_interstitial');\n _this3.flags.wpsInterstitialEligible = true;\n _this3.mode = 'guestonly';\n };\n\n var setEcPomaFlag = function setEcPomaFlag() {\n var _pomaExperiment$poma = _this3.pomaExperiment.poma;\n _pomaExperiment$poma = _pomaExperiment$poma === undefined ? {} : _pomaExperiment$poma;\n var _pomaExperiment$poma$ = _pomaExperiment$poma.treatment_name,\n treatment_name = _pomaExperiment$poma$ === undefined ? [] : _pomaExperiment$poma$;\n\n\n if (treatment_name.includes('XO_XOONBOARDING_POMA_GLOBAL_TREATMENT')) {\n _logger.$logger.info('checkout_fpti', { is_poma: 1 });\n _this3.flags.wpsInterstitialEligible = false;\n _this3.flags.showPomaUi = true;\n _this3.POMAContentType = treatment_name.includes('TREATMENT_A') ? 'TREATMENT_A' : 'TREATMENT_B';\n }\n };\n\n var setOptionalSignupPromotionContent = function setOptionalSignupPromotionContent() {\n if (_this3.mode !== 'guest') {\n return;\n }\n\n var optionSignupContentPXP = _this3.experiments.optionalSignupContent;\n\n if (optionSignupContentPXP && optionSignupContentPXP.treatment_name) {\n var treatmentContentKeys = _pxpExperimentConstants2['default'].test['xoon_optional_signup_content_change'][optionSignupContentPXP.treatment_name];\n\n _this3.contentKeys = treatmentContentKeys ? treatmentContentKeys : {};\n }\n };\n\n // This Marketing Header is set for IN guest experience users where the header title and subtitle are updated based on the PXP value.\n var setINMarketingOfferContent = function setINMarketingOfferContent() {\n if (_this3.mode !== 'signup' || _index.$locale.country !== 'IN') {\n return;\n }\n\n _this3.flags.marketingOfferTitleContentExp = false;\n _this3.marketingOfferTitleContentExpContentKeys = {};\n\n var marketingOfferTitleContentExp = _this3.experiments.marketingOfferTitleContentExp;\n\n if (marketingOfferTitleContentExp && marketingOfferTitleContentExp.treatment_name) {\n var treatmentContentKeys = _pxpExperimentConstants2['default'].test['xoon_forced_signup_buyer_protection_content'][marketingOfferTitleContentExp.treatment_name];\n // Check whether the treatment key exists or is it a control. This will set the marketingOfferTitleContentExp variable as false so that the control text is rendered.\n\n if (treatmentContentKeys) {\n _this3.flags.marketingOfferTitleContentExp = true;\n _this3.marketingOfferTitleContentExpContentKeys = treatmentContentKeys ? treatmentContentKeys : {};\n\n _logger.$logger.info('xoon_forced_signup_buyer_protection_content', {\n message: marketingOfferTitleContentExp.treatment_name\n });\n }\n }\n };\n\n var handleFrsContingency = function handleFrsContingency(message) {\n _logger.$logger.info('free_return_shipping_applicability_check_merchant_' + message);\n return false;\n };\n\n var handleFrsError = function handleFrsError(message, error) {\n _logger.$logger.info('free_return_shipping_applicability_check_merchant_' + message, error);\n return false;\n };\n\n var checkMerchantApplicabilityForFRS = function checkMerchantApplicabilityForFRS() {\n if (_index.$config.deploy.isLocal() || _index.$config.deploy.isStage()) {\n // URL param used in Dev and Staging environment for testing purpose\n var passedInVal = _index.$util.param('frsMerchantCheck');\n\n if ('off'.includes(passedInVal)) {\n _logger.$logger.info('skipping_frs_merchant_applicability_check');\n return _angular.$q.when(true);\n }\n }\n\n var frsMerchantApplicabilityModel = new _index6.$FreeReturnShippingApplicabilityModel();\n\n var merchantApplicabilityRequest = {\n context: 'MERCHANT',\n merchantId: _this3.models.payee.get('merchant.id')\n };\n\n _logger.$logger.info('checkout_fpti', {\n from: 'frs_flow_applicability',\n to: 'prepare_frs_merchant_applicability'\n });\n\n // Once throttling of FRS experience is complete, we need to perform FRS applicability check in resolvers\n return frsMerchantApplicabilityModel.save({\n data: merchantApplicabilityRequest,\n success: function success(frsApplicabilityResponse) {\n _logger.$logger.info('checkout_fpti', {\n from: 'frs_flow_applicability',\n to: 'process_frs_merchant_applicability',\n eligibility_reason: frsApplicabilityResponse && frsApplicabilityResponse.applicable\n });\n\n return frsApplicabilityResponse && frsApplicabilityResponse.applicable;\n },\n contingencies: {\n FRS_APPLICABILITY_ERROR: function FRS_APPLICABILITY_ERROR() {\n return handleFrsContingency('FRS_APPLICABILITY_ERROR');\n },\n VALIDATION_ERROR: function VALIDATION_ERROR() {\n return handleFrsContingency('VALIDATION_ERROR');\n },\n DEFAULT: function DEFAULT() {\n return handleFrsContingency('UNHANDLED_CONTINGENCY');\n }\n },\n validation: function validation(err) {\n return handleFrsError('SERVICE_VALIDATION_ERROR', err);\n },\n error: function error(err) {\n return handleFrsError('SERVICE_ERROR', err);\n }\n });\n };\n\n var checkFrsFlowApplicability = function checkFrsFlowApplicability() {\n var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n treatment_name = _ref2.treatment_name;\n\n var flowType = arguments[1];\n\n var frsApplicableTreatments = _pxpExperimentConstants2['default'].test['frs_applicable_treatments'];\n var isTreatmentApplicable = (frsApplicableTreatments[flowType] || []).includes(treatment_name);\n\n _logger.$logger.info('checkout_fpti', {\n from: 'frs_flow_applicability',\n to: 'prepare_frs_optin_flow_applicability'\n });\n\n /**\n * Invoke FRS check applicability API to determine eligible vs ineligible traffic for both test and control group\n * When FRS treatment flow is applicable and FRS merchant applicability is true, FRS experience will be shown to user\n * When FRS control flow is applicable, FRS experience will not be shown to user. Hence, return frs as not applicable\n */\n return checkMerchantApplicabilityForFRS().then(function (isFrsApplicable) {\n var isFlowApplicable = isTreatmentApplicable ? isFrsApplicable : false;\n\n _logger.$logger.info('checkout_fpti', {\n from: 'frs_flow_applicability',\n to: 'process_frs_optin_flow_applicability',\n eligibility_reason: isFlowApplicable\n });\n\n return isFlowApplicable;\n });\n };\n\n var setFreeReturnShippingEligibilityFlags = function setFreeReturnShippingEligibilityFlags() {\n if (_this3.flags.showPomaUi) {\n _logger.$logger.info('POMA_UI_enabled_free_return_shipping_feature_not_applicable');\n return false;\n }\n\n // pxp treatments for FRS present only for wps optional/signup or EC optional/signup\n var frsExp = _this3.freeReturnShippingExperiments;\n\n if (frsExp) {\n var flowType = _pxpExperimentConstants2['default'].test['frsPageName'][_this3.flags.flowName][_this3.mode];\n\n checkFrsFlowApplicability(frsExp, flowType).then(function (frsFlowApplicable) {\n if (frsFlowApplicable) {\n _logger.$logger.info('free_return_shipping_optin_flow_applicable');\n\n _this3.flags.freeReturnShippingOptInFlowApplicable = true;\n /**\n * Set whether FRS opt-in flow is Active (true) or Silent (false)\n * Active flow - When opt-in involves explicit user action like activate button, checkbox.\n * Silent flow - When opt-in doesn't have user action and performed automatically with account signup flow.\n */\n _this3.flags.freeReturnShippingOptInActiveFlow = false;\n\n _this3.onboard.frs_optin_flow_applicable = true;\n _this3.onboard.frs_optin_active_flow = false;\n\n if (_this3.flags.wpsInterstitialEligible) {\n _this3.flags.freeReturnShippingApplicableTreatment = frsExp.treatment_name;\n } else {\n _this3.frsNonWpsInterstitalFlow = true;\n var treatmentContentKeys = _pxpExperimentConstants2['default'].test[flowType][frsExp.treatment_name];\n\n _this3.frsContentKeys = treatmentContentKeys ? treatmentContentKeys : {};\n }\n }\n });\n }\n };\n\n var setFlagsPostFlowEligibility = function setFlagsPostFlowEligibility() {\n var trackingModes = ['guest', 'guestonly'];\n\n _this3.flags.track_submit_transition = trackingModes.includes(_this3.mode) ? 'guest_xo' : 'signup';\n\n checkWPSInterstitialEligibility();\n setOptionalSignupPromotionContent();\n setINMarketingOfferContent();\n\n // POMA - Passwordless Onboarding of Member Accounts\n if (_this3.mode === 'guest' && _index.$locale.country === 'US' && !_index7.$DeviceInfo.isWebView()) {\n if (!_this3.flags.isWpsFlow && !_this3.flags.isInvoiceFlow) {\n setEcPomaFlag();\n }\n }\n\n _this3.flags.mode = _this3.mode;\n _this3.flags.signupEnabled = _this3.mode !== 'guestonly';\n _this3.flags.allowChoice = _this3.mode !== 'signup';\n\n // Initialize showDisabledPasswordField to true.\n // NOTE: We use the if condition to check for undefined so the variable is assigned only once.\n // This method is called on every locale change, so we don't want it to be true on every change.\n // In future cases, signupSelected and guestSelected will set it accordingly.\n if (_this3.flags.showDisabledPasswordField === undefined) {\n _this3.flags.showDisabledPasswordField = true;\n }\n\n // Set Free Return Shipping Opt-in eligibility flags\n setFreeReturnShippingEligibilityFlags();\n };\n\n setFlagsPostFlowEligibility();\n }\n },\n actions: {\n setBuyerModeFlags: function setBuyerModeFlags(newValue) {\n switch (newValue) {\n case 'guest':\n case 'guestonly':\n // show disabled password field for variant2\n this.flags.showDisabledPasswordField = true;\n _logger.$logger.info('Guest_Signup_No');\n this.flags.mode = newValue;\n this.flags.track_submit_transition = 'guest_xo';\n break;\n case 'signup':\n // hide disabled password field\n this.flags.showDisabledPasswordField = false;\n this.flags.ignoreValidationTheFirstTime = true;\n _logger.$logger.info('Guest_Signup_Yes');\n this.flags.mode = newValue;\n this.flags.track_submit_transition = 'guest_optional_signup';\n break;\n default:\n // Do Nothing\n }\n this.accountCreationSectionErrorMessage = '';\n $('.signupFieldsContainer .radioButton').removeClass('warning');\n _uiRouter.$state.current.trackingData.pageQualifier = newValue;\n return true;\n },\n triggerTimerForSignupClicked: function triggerTimerForSignupClicked() {\n if (window.performance) {\n _logger.$logger.info('sign up option clicked, start timer...', window.performance.now());\n this.$emit('signupClickedTimerStarted', window.performance.now());\n }\n },\n onCheckedSavedMyInfo: function onCheckedSavedMyInfo($event) {\n if ($event.target.checked) {\n // populating the legal terms key to send the TCPA details to OAS later during onboarding\n this.flags.tcpa_identifier = 'poma.legalTerms';\n this.flags.poma_flow = true;\n this.flags.track_submit_transition = 'poma_signup';\n $('.pomaFieldsContainer').addClass('focusBorder');\n $('.pomaFieldsContainer').addClass('active');\n _logger.$logger.info('POMA_CHECKBOX_SELECTED');\n if ($('#pomaSubmit').offset()) {\n window.scrollTo(0, this.$element.parent().find('#pomaSubmit').offset().top);\n }\n } else {\n this.flags.tcpa_identifier = undefined;\n this.flags.poma_flow = false;\n this.flags.track_submit_transition = 'guest_xo';\n $('.pomaFieldsContainer').removeClass('focusBorder');\n $('.pomaFieldsContainer').removeClass('active');\n _logger.$logger.info('POMA_CHECKBOX_DESELECTED');\n }\n }\n }\n});\n\n\n_index.$Component;\n\n_index.$locale;\n\n_index.$pxp;\n\n_index.$config;\n\n_index.$util;\n\n_index.$feature;\n\n_angular.$q;\n\n_index2.$CheckoutInputDataModel;\n\n_index3.$SubscriptionsV1Model;\n\n_index4.$CheckoutAppDataModel;\n\n_index4.$CheckoutPayeeModel;\n\n_index4.$CheckoutCartModel;\n\n_index4.$FlowEligibilityModel;\n\n_index5.$MerchantPreferenceModel;\n\n_index6.$FreeReturnShippingApplicabilityModel;\n\n_logger.$logger;\n\n_uiRouter.$state;\n\n_index7.$DeviceInfo;\n\n_contentKeys.getBillingAgreementContentInfo;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest/onboardOptions/directive.js\n// module id = ../node_modules/xo-guest-components/src/guest/onboardOptions/directive.js\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _squid = require('squid');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _squid.$Component.extend('xoGuestOptions', {\n tag: 'xo-guest-options',\n template: _template2['default'],\n\n props: {\n flags: {\n type: 'var',\n required: false\n },\n onboard: {\n type: 'var',\n required: false\n },\n singlePagePaymentForm: {\n type: 'var',\n required: false\n },\n validated: {\n type: 'var',\n required: false\n },\n sepa: {\n type: 'var',\n required: false\n }\n },\n\n resolve: {\n experiments: function experiments() {\n return {\n guestEconsentAMLD4Pxp: (0, _squid.$pxp)('xo_xoonboarding_guest_econsent_amld4', { 'ctx.COUNTRY': _squid.$locale.country }, '(xo_xoonboarding_guest_econsent_amld4)(.*)')\n };\n }\n },\n\n lifecycle: {\n enter: function enter() {\n this.locale = _squid.$locale;\n this.showGuestAMLD4Terms = false;\n var _$config$AMLRuleCount = _squid.$config.AMLRuleCountries,\n AMLRuleCountries = _$config$AMLRuleCount === undefined ? [] : _$config$AMLRuleCount;\n\n\n this.isAmlCountry = AMLRuleCountries.includes(_squid.$locale.country);\n },\n populate: function populate() {\n var _this = this;\n\n var getAMLGuestTermsContentKey = function getAMLGuestTermsContentKey() {\n var _experiments$guestEco = _this.experiments.guestEconsentAMLD4Pxp;\n _experiments$guestEco = _experiments$guestEco === undefined ? {} : _experiments$guestEco;\n var _experiments$guestEco2 = _experiments$guestEco.treatment_name,\n treatment_name = _experiments$guestEco2 === undefined ? [] : _experiments$guestEco2;\n\n\n if (treatment_name.includes('xo_xoonboarding_guest_econsent_amld4_test')) {\n _this.showGuestAMLD4Terms = true;\n return _this.onboard.fiMode === 'bank' ? 'signupTerms.guestEconsentBankTermsAMLD4' : 'signupTerms.guestEconsentTermsAMLD4';\n }\n // either its control or PXP error, default to existing guest AML rules\n return 'signupTerms.guestAML4Rule';\n };\n\n this.$watch('onboard.fiMode', function (newVal) {\n _this.econsentKey = _this.isAmlCountry ? getAMLGuestTermsContentKey() : 'signupTerms.guest';\n });\n }\n },\n actions: {\n openSepa: function openSepa() {\n this.props.sepa.show = true;\n }\n }\n});\n\n\n_squid.$Component;\n\n_squid.$locale;\n\n_squid.$config;\n\n_squid.$pxp;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest/onboardOptions/guest/directive.js\n// module id = ../node_modules/xo-guest-components/src/guest/onboardOptions/guest/directive.js\n// module chunks = 0","module.exports = \"
      \\n
      \\n
      \\n
      {{ content('largeScreenAccountCreation.agrementError') }}
      \\n \\n \\n
      \\n
      \\n

      \\n
      \\n
      \\n
      {{ content('largeScreenAccountCreation.agrementError') }}
      \\n \\n \\n
      \\n
      \\n
      {{ content('largeScreenAccountCreation.agrementError') }}
      \\n \\n \\n
      \\n
      \\n
      \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest/onboardOptions/guest/template.html\n// module id = ../node_modules/xo-guest-components/src/guest/onboardOptions/guest/template.html\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.signupLib = undefined;\n\nvar _squid = require('squid');\n\nvar getIsGDPRCountry = function getIsGDPRCountry() {\n var country = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _squid.$locale.country;\n\n // Refer to config.GDPR for countries list\n return _squid.$util.getProperty(_squid.$config, 'GDPR.countries', { 'default': [] }).indexOf(country) > -1;\n};\n\nvar getMarketingOptinShowHide = function getMarketingOptinShowHide() {\n var country = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _squid.$locale.country;\n var isGDPRCountry = arguments[1];\n\n if (isGDPRCountry) {\n return true;\n }\n\n // GDPR config overrides all country specific config\n return (0, _squid.$feature)('marketingOptinMember', false, country);\n};\n\nvar getMarketingOptinIsChecked = function getMarketingOptinIsChecked() {\n var country = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _squid.$locale.country;\n var isGDPRCountry = arguments[1];\n\n // If GDPR country, then check for marketing opt-in\n // unchecked countries list in GDPR config object\n if (isGDPRCountry) {\n return _squid.$util.getProperty(_squid.$config, 'GDPR.marketingOptinUncheckedCountries', { 'default': [] }).indexOf(country) < 0;\n }\n\n // GDPR config overrides all country specific config\n return (0, _squid.$feature)('checkMarketingOptIn', false, country);\n};\n\nvar getMarketingOptinContentKey = function getMarketingOptinContentKey() {\n var country = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _squid.$locale.country;\n var isGDPRCountry = arguments[1];\n\n if (isGDPRCountry) {\n return 'signupTerms.GDPRAgreeMarketing';\n }\n\n // GDPR config overrides all country specific config\n return 'signupTerms.agreeMarketing';\n};\n\nvar getSignupTermsContentKey = function getSignupTermsContentKey() {\n var country = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _squid.$locale.country;\n var isGDPRCountry = arguments[1];\n var fiMode = arguments[2];\n\n\n if (country === 'US') {\n return 'signupTerms.signupTCPA3';\n }\n\n // GDPR pxp treatment check\n if (isGDPRCountry) {\n return fiMode === 'bank' ? 'signupTerms.GDPRAgreeTermsBank' : 'signupTerms.GDPRAgreeTerms';\n }\n\n // We dont need to check for Bank here as DE (Bank payment enabled) is a GDPR country\n return 'signupTerms.signupC';\n};\n\nvar signupLib = {\n getIsGDPRCountry: getIsGDPRCountry,\n getMarketingOptinIsChecked: getMarketingOptinIsChecked,\n getMarketingOptinShowHide: getMarketingOptinShowHide,\n getMarketingOptinContentKey: getMarketingOptinContentKey,\n getSignupTermsContentKey: getSignupTermsContentKey\n};\n\nexports.signupLib = signupLib;\n\n\n_squid.$util;\n\n_squid.$locale;\n\n_squid.$feature;\n\n_squid.$config;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest/onboardOptions/lib/helper.js\n// module id = ../node_modules/xo-guest-components/src/guest/onboardOptions/lib/helper.js\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _index = require('squid/index');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nrequire('xo-form-components/src/place-of-birth/directive');\n\nrequire('xo-form-components/src/gender-type/directive');\n\nvar _helper = require('../lib/helper');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _index.$Component.extend('xoSignupOptions', {\n tag: 'xo-signup-options',\n template: _template2['default'],\n\n props: {\n flags: {\n type: 'var',\n required: false\n },\n onboard: {\n type: 'var',\n required: false\n },\n singlePagePaymentForm: {\n type: 'var',\n required: false\n },\n validated: {\n type: 'var',\n required: false\n },\n sepa: {\n type: 'var',\n required: false\n },\n guestUpgrade: {\n type: 'var',\n required: false\n },\n isUnbranded: {\n type: 'var',\n required: false\n }\n },\n\n resolve: {\n experiments: function experiments() {\n return {\n // countries in the contextual rules\n // \"GB,\"FR\",\"ES\",\"IE\",\"PL\",\"CY\",\"BG\",\"BE\",\"CZ\",\"DK\",\"EE\",\"FI\",\n // \"GF\",\"GI\",\"GP\",\"GR\",\"HU\",\"LV\",\"LI\",\"LT\",\"LU\",\"MT\",\"MQ\",\"PT\",\n // \"RE\",\"RO\",\"SM\",\"SK\",\"SI\",\"SE\",\"NO\",\"AT\",\"NL\",\"IT\",\"DE\"\n nationalityThrottle: (0, _index.$pxp)('xo_xoonboarding_eu_nationality_throttle', { 'ctx.COUNTRY': _index.$locale.country }, '(xo_xoonboarding_eu_nationality_throttle_)(.*)')\n };\n }\n },\n\n lifecycle: {\n enter: function enter() {\n this.locale = _index.$locale;\n this.flags.nationalIdFlag = _index.$config.nationalIdRequiredCountries && _index.$config.nationalIdRequiredCountries.indexOf(this.locale.country) > -1;\n this.isGenderFieldEnabled = (0, _index.$feature)('gender', false, this.locale.country);\n this.showNationalityField = (0, _index.$feature)('nationalityRequired', false, this.locale.country);\n },\n populate: function populate() {\n var _this = this;\n\n var isGDPRCountry = _helper.signupLib.getIsGDPRCountry(this.locale.country);\n\n // Market Opt-in display and checked by default is based on config settings\n this.showMarketingOptin = _helper.signupLib.getMarketingOptinShowHide(this.locale.country, isGDPRCountry);\n\n // By default, if we are not showing a checkbox for marketing opt-in\n // then, get all signup/POMA users opted-in for marketing emails\n // Setting the flag to null as per GDPR team requirement\n if (!this.showMarketingOptin) {\n this.onboard.marketingOptin = null;\n } else {\n // DO THIS ONLY IF the marketing opt-in checkbox is displayed to users\n // Is marketing opt-in checkbox checked by default\n this.onboard.marketingOptin = _helper.signupLib.getMarketingOptinIsChecked(this.locale.country, isGDPRCountry);\n // Marketing opt-in text next to checkbox\n this.marketingOptinContentKey = _helper.signupLib.getMarketingOptinContentKey(this.locale.country, isGDPRCountry);\n }\n\n // Get Signup agree terms content and update the this.onboard object with they key\n var getSignupTermsContentKey = function getSignupTermsContentKey() {\n return _helper.signupLib.getSignupTermsContentKey(_this.locale.country, isGDPRCountry, _this.onboard.fiMode);\n };\n\n this.onboard.eConsentTermsContent = getSignupTermsContentKey();\n\n // control treatment will be returned for the countries which are in the contextual rules and falls in to control,\n // for those don't show the national ID field.\n // Test treatment / undefined (In-case of the countries not in the contextual rules),\n // read \"nationalityRequired\" from config.json which by default determined in enter()\n var pxpTreatments = this.experiments.nationalityThrottle;\n\n if (pxpTreatments && pxpTreatments.treatment_name.indexOf('xo_xoonboarding_eu_nationality_throttle_control') > -1 && this.showNationalityField) {\n this.showNationalityField = false;\n }\n\n // TODO: Remove watch after GDPR ramp (may 25th, 2018), we will have\n // one signup terms text for both bank and card fi types\n // DE - based on FI mode, we need to change signup agree terms\n this.$watch('onboard.fiMode', function (newVal) {\n _this.onboard.eConsentTermsContent = getSignupTermsContentKey();\n });\n }\n },\n\n actions: {\n openSepa: function openSepa() {\n this.sepa.show = true;\n }\n }\n});\n\n\n_index.$Component;\n\n_index.$locale;\n\n_index.$pxp;\n\n_index.$config;\n\n_index.$feature;\n\n_helper.signupLib;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest/onboardOptions/signup/directive.js\n// module id = ../node_modules/xo-guest-components/src/guest/onboardOptions/signup/directive.js\n// module chunks = 0","module.exports = \"
      \\n
      \\n \\n
      \\n
      \\n \\n \\n\\n \\n
      \\n \\n \\n \\n \\n \\n \\n \\n
      \\n\\n \\n \\n \\n \\n\\n \\n \\n \\n\\n \\n \\n \\n\\n \\n \\n \\n\\n \\n\\n
      \\n
      {{ content('largeScreenAccountCreation.agrementError') }}
      \\n \\n \\n
      \\n
      \\n

      \\n

      \\n
      \\n
      \\n
      {{ content('largeScreenAccountCreation.agrementError') }}
      \\n \\n \\n
      \\n
      \\n \\n \\n
      \\n
      \\n
      \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest/onboardOptions/signup/template.html\n// module id = ../node_modules/xo-guest-components/src/guest/onboardOptions/signup/template.html\n// module chunks = 0","module.exports = \"
      \\n\\n \\n
      \\n\\n
      \\n\\n
      \\n\\n \\n

      \\n

      {{content(frsContentKeys.title)}}

      \\n

      \\n
      \\n\\n

      \\n\\n \\n
      \\n\\n \\n

      \\n
      \\n\\n
      \\n\\n \\n

      \\n

      {{content(onboardTitleLine1)}}

      \\n

      {{content('common.getBenefitsLine2')}}

      \\n

      \\n
      \\n\\n \\n

      \\n

      {{content(contentKeys.title)}}

      \\n

      \\n
      \\n\\n

      \\n

      \\n\\n \\n\\n

      \\n
      \\n\\n \\n \\n
      \\n \\n \\n \\n \\n
      \\n\\n
      \\n \\n

      \\n

      {{content(marketingOfferTitleContentExpContentKeys.titleLine1)}}

      \\n

      {{content(marketingOfferTitleContentExpContentKeys.titleLine2)}}

      \\n

      \\n
      \\n

      \\n
      \\n\\n
      \\n

      {{content('signup.loginDetails')}}

      \\n
      \\n
      \\n\\n
      \\n \\n\\n \\n \\n
      \\n\\n \\n\\n
      \\n\\n
      \\n \\n \\n
      \\n\\n \\n\\n
      \\n\\n
      \\n \\n\\n
      \\n \\n
      \\n\\n
      \\n
       
      \\n\\n
      \\n
      \\n

      {{content('poma.headingB')}}

      \\n
      \\n

      {{content('poma.para1B')}}

      \\n

      {{content('poma.para2B')}}

      \\n
      \\n
      \\n \\n \\n
      \\n
      \\n

      \\n
      \\n
      \\n
      \\n

      {{content('poma.heading')}}

      \\n
      \\n

      {{content('poma.para1')}}

      \\n

      {{content('poma.para2')}}

      \\n
        \\n
      • {{content('poma.para2Bullet1')}}
      • \\n
      • {{content('poma.para2Bullet2')}}
      • \\n
      \\n

      {{content('poma.para3')}}

      \\n

      {{content('poma.para4')}}

      \\n
      \\n
      \\n \\n \\n
      \\n
      \\n

      \\n
      \\n
      \\n
      \\n\\n
      \\n\\n

      \\n \\n

      \\n
      \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest/onboardOptions/template.html\n// module id = ../node_modules/xo-guest-components/src/guest/onboardOptions/template.html\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _squid = require('squid');\n\nvar _angular = require('angular');\n\nvar _jquery = require('jquery');\n\nvar _jquery2 = _interopRequireDefault(_jquery);\n\nrequire('xo-ui-components/src/directionality/directive');\n\nrequire('xo-ui-components/src/error-tooltip/directive');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _squid.$Component.extend('xoPasswordInput', {\n tag: 'xo-password-input',\n template: _template2['default'],\n props: {\n user: {\n type: 'var',\n required: false\n },\n singlePassword: {\n type: 'var',\n required: false\n },\n isDisabled: {\n type: 'var',\n required: false\n }\n },\n lifecycle: {\n enter: function enter() {\n var _this = this;\n\n this.locale = _squid.$locale;\n this.passwordToolTip = 'show';\n this.passwordMismatch = 'hide';\n this.requirementLength = 'active';\n this.requirementNumberSymbol = 'active';\n\n // Set singlePassword as true by default\n // NOTE: PROX flow is still using two password fields\n this.singlePassword = this.singlePassword !== false;\n\n /*\n The next 2 methods serve to allow passwordValidate & confirmPasswordValidate directives\n to access + change the scope variables inside here as the scopes\n in these directives are different and do not inherit from here.\n */\n this.setScopeProp = function (prop, newVal) {\n _this[prop] = newVal;\n };\n\n this.getScopeProp = function (prop) {\n return _this[prop];\n };\n\n /*\n * single password case\n * flags and functions to enable single password hide and\n * show password feature\n */\n var enableSinglePassword = function enableSinglePassword() {\n _this.showRawPassword = false;\n _this.showPasswordTextToggleLink = false;\n\n _this.toggleShowRawPassword = function ($event) {\n var $passwordEl = (0, _jquery2['default'])('#password');\n var valLength = $passwordEl.val().length;\n\n $event.preventDefault();\n _this.showRawPassword = !_this.showRawPassword;\n\n if (_this.showRawPassword) {\n $passwordEl.prop('type', 'text');\n } else {\n $passwordEl.prop('type', 'password');\n }\n\n // timeout is need to get this function running after\n // the onPasswordBlur function\n (0, _angular.$timeout)(function () {\n $passwordEl.focus();\n // firefox set the cursor to the end of the value text\n $passwordEl.get(0).setSelectionRange(valLength, valLength);\n });\n };\n };\n\n if (this.singlePassword) {\n enableSinglePassword();\n }\n }\n },\n actions: {\n // 'singlePassword' case - show the 'hide/show' password link\n onPasswordFocusBlur: function onPasswordFocusBlur($event, focused) {\n var passwordValLength = this.user.password && this.user.password.length;\n\n if (this.singlePassword) {\n if (focused) {\n this.showPasswordTextToggleLink = true;\n this.addRightSpaceToShowHideLink = (0, _jquery2['default'])($event.target).hasClass('ng-invalid');\n } else {\n // if password value length is zero then it is false\n this.showPasswordTextToggleLink = passwordValLength ? true : false;\n }\n }\n }\n }\n});\n\n\n(0, _angular.$registerDirective)('password-validate', function () {\n return {\n require: 'ngModel',\n restrict: 'A',\n link: function link(scope, elem, attrs, controller) {\n var ngModel = controller;\n var passwordInputScope = scope.componentScope;\n\n ngModel.$setValidity('password', false);\n\n var fourSequence = function fourSequence(value) {\n value += ' ' + value.split('').reverse().join('');\n var sequences = '`1231234234534564567567867897890890-90-= ' + // row 1\n 'qwerwertertyrtyutyuiyuiouiopiop[op[]p[]\\\\ ' + // row 2\n 'asdfsdfgdfghfghjghjkhjkljkl;kl;\\' ' + // row 3\n 'zxcvxcvbcvbnvbnmbnm,nm,.m,./ ' + // row 4\n '~!@#!@#$@#$%#$%^$%^&%^&*^&*(&*()*()_()_+ ' + // shift + row 1\n 'QWERWERTERTYRTYUTYUIYUIOUIOPIOP{OP{}P{}| ' + // shift + row 2\n 'ASDFSDFGDFGHFGHJGHJKHJKLJKL:KL:\" ' + // shift + row 3\n 'ZXCVXCVBCVBNVBNMBNMM<>?'; // shift + row 4\n\n var len = value.length;\n\n for (var i = 0; i < len - 3; i++) {\n if (sequences.indexOf(value.substr(i, 4)) > -1) {\n // if return value is false, then add the class\n passwordInputScope.setScopeProp('addRightSpaceToShowHideLink', true);\n return false;\n }\n }\n return true;\n };\n\n var containsDoubleByte = function containsDoubleByte(s) {\n var returnVal = /[^\\u0000-\\u00ff]/.test(s); // eslint-disable-line no-control-regex\n\n // if return value is false, then add the class\n passwordInputScope.setScopeProp('addRightSpaceToShowHideLink', !returnVal);\n return returnVal;\n };\n\n ngModel.$parsers.unshift(function (viewValue) {\n passwordInputScope.setScopeProp('requirementLength', viewValue.length >= 8 && viewValue.length <= 20 ? false : 'active');\n passwordInputScope.setScopeProp('requirementNumberSymbol', /\\d/.test(viewValue) || /[\\-!@#$%\\^&*()_+|~=`{}\\[\\]:';'<>?,.\\/\\\\]/.test(viewValue) ? false : 'active');\n\n passwordInputScope.setScopeProp('requirementInfoSec', false);\n if (scope.user.country === 'AU') {\n var lcViewVal = viewValue.toLowerCase();\n var firstName = scope.user && scope.user.first_name && scope.user.first_name.toLowerCase();\n var lastName = scope.user && scope.user.last_name && scope.user.last_name.toLowerCase();\n var dob = scope.user && scope.user.dob_day + '/' + scope.user.dob_month + '/' + scope.user.dob_year;\n\n if (lcViewVal.indexOf(firstName) > -1 || lcViewVal.indexOf(lastName) > -1 || lcViewVal.indexOf(dob) > -1) {\n passwordInputScope.setScopeProp('requirementInfoSec', 'active');\n }\n }\n\n passwordInputScope.setScopeProp('restrictionEmail', false);\n passwordInputScope.setScopeProp('restrictionFourRepeated', viewValue.length > 3 && /(.)\\1{3}/.test(viewValue) ? 'active' : false);\n passwordInputScope.setScopeProp('restrictionNonValidCharacters', /[\\x00-\\x08\\x0E-\\x1F\\x80-\\xFF ]/.test(viewValue) ? 'active' : false); // eslint-disable-line no-control-regex\n passwordInputScope.setScopeProp('restrictionFourSequence', viewValue.length > 3 && !fourSequence(viewValue) ? 'active' : false);\n passwordInputScope.setScopeProp('restrictionDoubleByte', containsDoubleByte(viewValue) ? 'active' : false);\n\n var requirements = !(passwordInputScope.getScopeProp('requirementLength') || passwordInputScope.getScopeProp('requirementNumberSymbol') || passwordInputScope.getScopeProp('requirementInfoSec'));\n var restrictions = !(passwordInputScope.getScopeProp('restrictionEmail') || passwordInputScope.getScopeProp('restrictionFourRepeated') || passwordInputScope.getScopeProp('restrictionNonValidCharacters') || passwordInputScope.getScopeProp('restrictionFourSequence') || passwordInputScope.getScopeProp('restrictionDoubleByte'));\n var isValidPassword = requirements && restrictions;\n\n ngModel.$setValidity('password', isValidPassword);\n passwordInputScope.setScopeProp('passwordToolTip', isValidPassword ? 'hide' : 'show');\n\n // for singlePassword field with hide/show link, add hide/show link\n // right side spacing based on validity of field input\n passwordInputScope.setScopeProp('addRightSpaceToShowHideLink', !isValidPassword);\n\n return viewValue;\n });\n }\n };\n});\n\n(0, _angular.$registerDirective)('confirm-password-validate', function () {\n return {\n require: 'ngModel',\n restrict: 'A',\n link: function link(scope, elem, attrs, controller) {\n var ngModel = controller;\n var passwordInputScope = scope.componentScope;\n\n ngModel.$setValidity('confirmPassword', false);\n\n passwordInputScope.$watch('user.password', function (newValue) {\n var cPass = passwordInputScope.user.confirmPassword;\n\n if (cPass && cPass.length && cPass !== newValue) {\n ngModel.$setValidity('confirmPassword', false);\n passwordInputScope.setScopeProp('passwordMismatch', 'show');\n }\n });\n\n ngModel.$parsers.unshift(function (viewValue) {\n var passwordVal = passwordInputScope.user.password;\n\n passwordInputScope.setScopeProp('restrictionMatch', passwordVal && viewValue.length > 0 && passwordVal.indexOf(viewValue) === 0 && passwordVal === viewValue);\n\n ngModel.$setValidity('confirmPassword', passwordVal === viewValue);\n\n passwordInputScope.setScopeProp('passwordMismatch', passwordInputScope.getScopeProp('restrictionMatch') ? 'hide' : 'show');\n return viewValue;\n });\n }\n };\n});\n\n_squid.$Component;\n\n_squid.$locale;\n\n_angular.$timeout;\n\n_angular.$registerDirective;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest/passwordInput/directive.js\n// module id = ../node_modules/xo-guest-components/src/guest/passwordInput/directive.js\n// module chunks = 0","module.exports = \"
      \\n
      \\n\\n
      \\n \\n \\n
      \\n\\n
      \\n \\n \\n
      \\n\\n \\n\\n
      \\n \\n
      \\n
        \\n
      • {{ content('scripts.requirementLength') }}
      • \\n
      • {{ content('scripts.requirementNumberSymbol') }}
      • \\n
      • {{ content('scripts.informationSecurity') }}
      • \\n
      • {{ content('scripts.restrictionEmail') }}
      • \\n
      • {{ content('scripts.restrictionFourRepeated') }}
      • \\n
      • {{ content('scripts.restrictionNonValidCharacters') }}
      • \\n
      • {{ content('scripts.restrictionFourSequence') }}
      • \\n
      • {{ content('scripts.restrictionDoubleByte') }}
      • \\n
      \\n
      \\n
      \\n
      \\n
      \\n
      \\n\\n
      \\n \\n \\n
      \\n\\n
      \\n \\n \\n
      \\n\\n
      \\n \\n
      \\n
        \\n
      • {{ content('scripts.restrictionMatch') }}
      • \\n
      \\n
      \\n
      \\n
      \\n
      \\n
      \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest/passwordInput/template.html\n// module id = ../node_modules/xo-guest-components/src/guest/passwordInput/template.html\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _squid = require('squid');\n\nvar _logger = require('xo-beaver/dist/logger');\n\nvar _index = require('xo-models/src/auth/index');\n\nrequire('xo-ui-components/src/modal/directive.js');\n\nrequire('./styles');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _squid.$Component.extend('xoRedirectingFromXoonWarning', {\n tag: 'xo-redirecting-from-xoon-warning',\n template: _template2['default'],\n\n props: {\n token: {\n type: 'var',\n required: true\n },\n flags: {\n type: 'var',\n required: true\n },\n // mode is not present in multistep, so it is set as not required\n mode: {\n type: 'var',\n required: false\n }\n },\n\n resolve: {\n models: function models() {\n return {\n auth: _index.$AuthModel.instance().retrieve()\n };\n }\n },\n\n lifecycle: {\n enter: function enter() {\n // Default to 'signup' as multistep will not pass mode prop\n this.mode = this.mode || 'signup';\n },\n populate: function populate() {\n var $ccField = $('#cc');\n\n // Check the validity of fields read from config\n if (($ccField.val() || '').length > 0 && $ccField.hasClass('ng-valid')) {\n _logger.$logger.info('checkout_fpti', {\n from: this.mode === 'signup' ? 'signup' : 'guest_xo',\n to: 'prep_change_email'\n });\n this.showPrompt = true;\n } else {\n this.actions.redirectToHermes();\n }\n }\n },\n\n actions: {\n redirectToHermes: function redirectToHermes(isRedirectConfirmationShown) {\n\n var redirectLogType = isRedirectConfirmationShown ? 'with' : 'without';\n var transitionName = isRedirectConfirmationShown ? 'process_yes_change_email' : 'process_change_email';\n\n _logger.$logger.info('splitscreen_email_change_redirect_' + redirectLogType + '_modal_confirmation');\n\n _logger.$logger.info('checkout_fpti', {\n from: this.mode === 'signup' ? 'signup' : 'guest_xo',\n to: transitionName\n });\n\n // need this to get token in \".then\" function of clearCookies call\n var that = this;\n\n // We need to clear loginEmail and rmuc cookies\n // to make sure UL treats this user as splitscreen eligible\n this.models.auth.clearCookies({ loginEmail: true, rmuc: true }).then(function () {\n // Make sure to send locale and country as we need to carry this back\n // to hermes, if user changed these params in xoon\n (0, _squid.$dispatch)('hermes', {\n token: that.token,\n 'locale.x': _squid.$locale.lang + '_' + _squid.$locale.country,\n 'country.x': _squid.$locale.country\n });\n });\n },\n triggerRedirect: function triggerRedirect($event) {\n if ($event) {\n $event.preventDefault();\n }\n\n this.actions.redirectToHermes(true);\n },\n closePopupModal: function closePopupModal($event) {\n // We need this as this function is called from xo-modal\n // as a callback function\n if ($event) {\n $event.preventDefault();\n }\n\n _logger.$logger.info('checkout_fpti', {\n from: this.mode === 'signup' ? 'signup' : 'guest_xo',\n to: 'process_no_change_email'\n });\n\n this.showPrompt = false;\n this.flags.showRedirectWarningPrompt = false;\n }\n }\n\n});\n\n\n_squid.$Component;\n\n_squid.$locale;\n\n_squid.$dispatch;\n\n_logger.$logger;\n\n_index.$AuthModel;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest/redirectingFromXoonWarning/directive.js\n// module id = ../node_modules/xo-guest-components/src/guest/redirectingFromXoonWarning/directive.js\n// module chunks = 0","module.exports = \"\\n
      \\n
      \\n

      \\n

      \\n
      \\n\\n
      \\n \\n \\n
      \\n
      \\n
      \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest/redirectingFromXoonWarning/template.html\n// module id = ../node_modules/xo-guest-components/src/guest/redirectingFromXoonWarning/template.html\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _angular = require('angular');\n\nvar _index = require('squid/index');\n\nvar _logger = require('xo-beaver/dist/logger');\n\nvar _errorHandlerHelper = require('../lib/errorHandlerHelper');\n\nvar errorHandlerHelper = _interopRequireWildcard(_errorHandlerHelper);\n\nvar _index2 = require('xo-models/src/shippingMethod/index');\n\nvar _index3 = require('xo-models/src/checkout/index');\n\nvar _template = require('./template.html');\n\nvar _template2 = _interopRequireDefault(_template);\n\nrequire('xo-ui-components/src/error-tooltip/directive');\n\nrequire('./shipping-method-dropdown/directive.js');\n\nrequire('./styles.less');\n\nvar _util = require('../../lib/util');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } }\n\nexports['default'] = _index.$Component.extend('$xoGuestSelectShippingMethodDirective', {\n tag: 'xo-guest-select-shipping-method',\n template: _template2['default'],\n\n props: {\n token: {\n type: 'var',\n required: false\n },\n billingAddress: {\n type: 'var',\n required: false\n },\n shippingAddress: {\n type: 'var',\n required: false\n },\n isShippingSameAsBilling: {\n type: 'var',\n required: false\n },\n showShipping: {\n type: 'var',\n required: false\n },\n buttonParams: {\n type: 'var',\n required: false\n },\n updatePageLevelErrorMessage: {\n type: 'var',\n required: false\n },\n flags: {\n type: 'var',\n required: false\n },\n trackSntReq: {\n type: 'var',\n required: false\n }\n },\n\n resolve: {\n models: function models() {\n return {\n checkoutAppData: _index3.$CheckoutAppDataModel.instance(this.props.token).retrieve(),\n checkoutCart: _index3.$CheckoutCartModel.instance(this.props.token).retrieve(),\n checkoutPayee: _index3.$CheckoutPayeeModel.instance(this.props.token).retrieve()\n };\n }\n },\n\n lifecycle: {\n enter: function enter() {\n var _this = this;\n\n // Decides whether to show whole section\n this.showShippingMethodSection = true;\n\n // Decides whether to show merchant options\n this.showMerchantOptions = true;\n this.showZipCode = false;\n this.zipCode = '';\n\n // Decides whether to show different DropDown\n this.isShowShippingMethodsDropDown = false;\n this.noShippingMethodDropDown = true;\n\n // Decides whether to show pick up store Text\n this.isStorePickUp = false;\n\n // Models\n this.currencyCode = '';\n\n this.selectedShippingCharge = '';\n\n // Initial charges\n this.charges = [{}];\n\n // No shipping charges\n this.noShippingChargesList = this.charges;\n\n // Hide the additional drop down that is rendered in iOS\n this.hideSelectDropdown = navigator.appVersion.indexOf('iPhone') !== -1;\n\n // Models mapped to guest scope component\n this.billingAddress = this.props.billingAddress;\n this.shippingAddress = this.props.shippingAddress;\n this.flags = this.props.flags;\n this.isShippingSameAsBilling = this.props.isShippingSameAsBilling;\n this.showShipping = this.props.showShipping;\n this.trackSntReq = this.props.trackSntReq;\n\n // Decides on disable/enable of dropdown\n this.changeShippingMethod = 'changeShippingMethodDisabled';\n this.selectedShippingMethodText = 'disableShippingMethod';\n this.dropDownBackground = 'normalBackground';\n\n // Used for instant update feature\n this.callbackShippingOptions = [];\n this.fallbackShippingOptions = [];\n this.selectedMethod = {};\n this.callbackInsuranceOffered = false;\n this.defaultFallbackOptionIndex = 0;\n\n this.shippingMethodNotSelected = true;\n\n this.shipAndTaxError = false;\n this.override = false;\n this.noErrorOrOverride = true;\n\n this.triggerFetchShippingMethods = false;\n this.localeCountry = _index.$locale.country;\n\n this.trackZipCode = {\n prev: '',\n current: ''\n };\n\n this.trackState = {\n prev: '',\n current: ''\n };\n\n var populatePatchAmountDetails = function populatePatchAmountDetails(patchableAmountEntities, constantAmountEntities, decimalDigits, amounts) {\n var newTotal = _this.buttonCartAmounts.total;\n\n Object.keys(patchableAmountEntities).forEach(function (key) {\n var detail = patchableAmountEntities[key];\n\n if (!isNaN(detail.value)) {\n detail.value = Number(detail.value);\n amounts.details[key] = detail.value.toFixed(decimalDigits);\n } else {\n detail.value = 0;\n }\n var difference = detail.valueInCart ? detail.value - detail.valueInCart : detail.value;\n\n newTotal += difference;\n });\n amounts.total = newTotal.toFixed(decimalDigits);\n Object.keys(constantAmountEntities).forEach(function (key) {\n var detail = constantAmountEntities[key];\n\n if (detail.valueInCart !== undefined) {\n amounts.details[key] = detail.valueInCart.toFixed(decimalDigits);\n }\n });\n\n _logger.$logger.info('snt_populate_patch_amount_details', {\n patchableAmountEntities: patchableAmountEntities,\n constantAmountEntities: constantAmountEntities,\n amounts: amounts,\n decimalDigits: decimalDigits\n });\n };\n\n // Todo: Understand: Why are we modifying API response?\n var getExternalCallbackOptionsForPatch = function getExternalCallbackOptionsForPatch() {\n var externalCallbackOptions = _this.models.checkoutCart.getExternalCallbackOptions();\n\n if (_this.response.shipping_options_source === 'CALLBACK') {\n externalCallbackOptions.callback_shipping_options = _this.callbackShippingOptions;\n externalCallbackOptions.callback_insurance_option_offered = _this.callbackInsuranceOffered;\n } else if (_this.response.shipping_options_source === 'FALLBACK') {\n externalCallbackOptions.fallback_shipping_options = _this.fallbackShippingOptions;\n }\n _logger.$logger.info('snt_external_callback_options_for_patch', {\n externalCallbackOptions: externalCallbackOptions\n });\n return externalCallbackOptions;\n };\n\n // Generates the request body to be used for patch Cart\n var getPatchReqData = function getPatchReqData(shippingAmt, taxAmt, shipMethod, insuranceAmt) {\n // What will get patched?\n // 1. amount values in the cart,\n // 2. shipping method (only in case of non instant update flows)\n // 3. external_callback_options (only in case of instant update flows)\n\n var currencyDigits = _index.$locale.metadata && _index.$locale.metadata.currency && _index.$locale.metadata.currency.digits;\n var decimalDigits = currencyDigits && currencyDigits[_this.currencyCode];\n\n if (isNaN(decimalDigits)) {\n decimalDigits = 2;\n }\n var patchEntities = [];\n var amounts = {\n 'currency': _this.currencyCode,\n 'details': {\n 'subtotal': _this.buttonCartAmounts.subTotal.toFixed(decimalDigits)\n }\n };\n var patchableAmountEntities = {\n shipping: {\n value: shippingAmt,\n valueInCart: _this.buttonCartAmounts.shippingAmt\n },\n tax: {\n value: taxAmt,\n valueInCart: _this.buttonCartAmounts.taxAmt\n },\n insurance: {\n value: insuranceAmt,\n valueInCart: _this.buttonCartAmounts.insuranceAmt\n }\n };\n // amount details which are not affected by SnT response,\n // but still need to get included in the patch request if initially present\n var constantAmountEntities = {\n handling_fee: {\n valueInCart: _this.buttonCartAmounts.handlingAmt\n },\n shipping_discount: {\n valueInCart: _this.buttonCartAmounts.shippingDiscountAmt\n },\n discount: {\n valueInCart: _this.buttonCartAmounts.discount\n }\n };\n\n populatePatchAmountDetails(patchableAmountEntities, constantAmountEntities, decimalDigits, amounts);\n patchEntities.push({\n field: 'purchaseAmount',\n value: amounts\n });\n\n if (_this.isInstantUpdateFlow) {\n patchEntities.push({\n field: 'externalCallbackOptions',\n value: getExternalCallbackOptionsForPatch()\n });\n } else {\n var shippingMethod = '';\n\n if (shipMethod && _this.shippingMethods) {\n shippingMethod = _this.shippingMethods.getShippingMethodId(shipMethod);\n }\n patchEntities.push({\n field: 'shippingMethod',\n value: shippingMethod\n });\n }\n\n var patchRequest = {\n id: _this.token,\n patchEntities: patchEntities\n };\n\n _logger.$logger.info('snt_patch_request', { patchRequest: patchRequest });\n return patchRequest;\n };\n\n // Function which will update costs which were patched\n var updatePreviousCosts = function updatePreviousCosts() {\n _this.previousCosts = {};\n if (_this.models.checkoutCart.purchase.amounts.shipping) {\n _this.previousCosts.shippingAmount = Number(_this.models.checkoutCart.purchase.amounts.shipping.amount);\n }\n if (_this.models.checkoutCart.purchase.amounts.tax) {\n _this.previousCosts.taxAmount = Number(_this.models.checkoutCart.purchase.amounts.tax.amount);\n }\n _logger.$logger.info('snt_update_previous_costs', { previousCosts: _this.previousCosts });\n };\n\n // Responsible to patch the cart with shipping, tax (and insurance in case of instant update)\n var updateShippingTaxCharge = function updateShippingTaxCharge(shippingAmt, taxAmt, shipMethod, insurance) {\n _logger.$logger.info('snt_update_shipping_tax_charge', {\n shippingAmt: shippingAmt,\n taxAmt: taxAmt,\n shipMethod: shipMethod,\n decodeEntities: (0, _util.decodeEntities)(shipMethod),\n insurance: insurance\n });\n var patchReq = getPatchReqData(shippingAmt, taxAmt, (0, _util.decodeEntities)(shipMethod), insurance);\n\n _this.models.checkoutCart.action('patchCartData', {\n data: patchReq,\n batch: {\n name: 'patchCartData',\n id: 'checkoutCart'\n },\n success: function success(result) {\n _logger.$logger.info('snt_patch_cart_data_success');\n _this.checkoutSession = _index3.$CheckoutSessionModel.instance(_this.token);\n updatePreviousCosts();\n },\n contingencies: {\n DEFAULT: function DEFAULT(name, err) {\n _logger.$logger.info('snt_patch_cart_failure', { error: err });\n throw err;\n }\n }\n });\n };\n\n // Checks whether domestic shipping methods are supported for the country or not\n this.isDomesticShippingMethodsSupported = function () {\n var country = _this.isShippingSameAsBilling ? _this.billingAddress.country : _this.shippingAddress.country;\n var result = void 0;\n\n if (_this.isInstantUpdateFlow) {\n // for countries which have no state or zip code in their address templates, SnT must be called based on country change\n // which implies isDomesticShippingMethodsSupported would be false\n result = !(0, _index.$feature)('noZipCodeOrState', false, country);\n } else {\n result = (0, _index.$feature)('allowWPSDomesticShippingMethods', false, country);\n }\n\n _logger.$logger.info('snt_is_domestic_shipping_methods_supported', {\n result: result,\n isInstantUpdateFlow: _this.isInstantUpdateFlow\n });\n return result;\n };\n\n // Sets the zip code whenever user enters the postal code field.\n this.setZipCode = function (caller) {\n if (_this.isDomesticShippingMethodsSupported()) {\n _this.showZipCode = true;\n if (_this.isShippingSameAsBilling) {\n _this.zipCode = _this.billingAddress.postal_code;\n } else {\n _this.zipCode = _this.shippingAddress.postal_code;\n }\n } else {\n _this.showZipCode = false;\n }\n\n _logger.$logger.info('snt_set_zip_code', {\n isShippingSameAsBilling: _this.isShippingSameAsBilling,\n zipCode: _this.zipCode,\n showZipCode: _this.showZipCode,\n caller: caller\n });\n };\n\n // Checks whether there was a change in zip code\n var isZipCodeChange = function isZipCodeChange() {\n var result = _this.trackZipCode.prev !== _this.trackZipCode.current;\n\n _logger.$logger.info('snt_zip_code_changed', {\n trackZipCode: _this.trackZipCode,\n result: result\n });\n return result;\n };\n\n // Checks whether there was a change in state\n var isStateChange = function isStateChange() {\n var result = _this.trackState.prev !== _this.trackState.current;\n\n _logger.$logger.info('snt_state_changed', {\n trackState: _this.trackState,\n result: result\n });\n return result;\n };\n\n // Checks whether there was a change in country\n // Todo: Understand: Won't billing address country will always be the same as locale country\n var isCountryChange = function isCountryChange() {\n _logger.$logger.info('snt_country_changed', {\n bc: _this.billingAddress && _this.billingAddress.country,\n lc: _this.localeCountry\n });\n\n if (_this.billingAddress.country && _this.localeCountry) {\n return _this.billingAddress.country !== _this.localeCountry;\n }\n // Todo: Understand: Why are we returning true by default\n return true;\n };\n\n // Util function to help safe convert a value to decimal\n var safeConvert = function safeConvert(value) {\n value = Number(value);\n _logger.$logger.info('snt_safe_convert', {\n value: value\n });\n if (isNaN(value)) {\n throw new Error(value + ' cannot be divided');\n }\n return value / 100;\n };\n\n // Checks whether shipping and tax response has tax in it\n // Todo: instead of returning a boolean why not returntax amount if there is any\n var responseHasTaxCharges = function responseHasTaxCharges() {\n _logger.$logger.info('snt_response_has_tax_charges', {\n charges: _this.response.charges\n });\n if (_this.response.charges.length === 0) {\n return false;\n }\n return !!_this.response.charges[0].tax;\n };\n\n // Checks whether shipping and tax response has shipping charges\n var responseHasShippingCharges = function responseHasShippingCharges() {\n _logger.$logger.info('snt_response_has_shipping_charges', {\n charges: _this.response.charges\n });\n if (_this.response.charges.length === 0) {\n return false;\n }\n return !!_this.response.charges[0].shipping_charge;\n };\n\n /*\n Checks whether patch cart is required or not .\n Use cases where this is called\n ------------------------------\n 1. When user selects a shipping method from dropdown.\n 2. User selects store pick Up , wants to change shipping address but shipping address fields are empty ,\n applicationShippingAmt will be passed as undefined to this function .\n */\n var isPatchCartRequired = function isPatchCartRequired(applicableShippingAmt, applicableTaxAmt) {\n var result = applicableShippingAmt !== _this.previousCosts.shippingAmount || applicableTaxAmt !== _this.previousCosts.taxAmount;\n\n _logger.$logger.info('snt_is_patch_card_required', {\n applicableShippingAmt: applicableShippingAmt,\n applicableTaxAmt: applicableTaxAmt,\n previousCosts: _this.previousCosts,\n result: result\n });\n\n return result;\n };\n\n var getTaxFromResponse = function getTaxFromResponse(charge) {\n // todo: Understand: is charge different from towhat is there in response since we want to get tax from\n // response!\n var responseCharge = charge || responseHasTaxCharges() && _this.response.charges[0];\n var result = void 0;\n\n if (responseCharge && responseCharge.tax) {\n // todo: Understand: Why the below condition\n if (!_this.buttonCartAmounts.shippingAmt && !_this.showShipping) {\n result = safeConvert(responseCharge.tax.item_tax.value);\n } else {\n result = safeConvert(responseCharge.tax.total_tax.value);\n }\n }\n _logger.$logger.info('snt_tax_from_response', {\n result: result,\n responseCharge: responseCharge\n });\n return result;\n };\n\n // Returns tax amount\n var getTax = function getTax(charge) {\n _logger.$logger.info('snt_get_tax', {\n isInstantUpdateFlow: _this.isInstantUpdateFlow,\n isBuyNow: _this.isBuyNow,\n buttonCartAmountsTaxAmt: _this.buttonCartAmounts.taxAmt\n\n });\n\n // todo: Understand: Why do we need isInstantUpdateFlow condition when getTaxFromResponse(charge); is\n // the default!?\n if (_this.isInstantUpdateFlow) {\n return getTaxFromResponse(charge);\n }\n if ((_this.isBuyNow || _this.isCartUpload) && _this.buttonCartAmounts.taxAmt >= 0) {\n return _this.buttonCartAmounts.taxAmt;\n }\n return getTaxFromResponse(charge);\n };\n\n // Disables the shipping method dropdown\n var disableDropDown = function disableDropDown() {\n _logger.$logger.info('snt_disable_dropdown');\n _this.isShowShippingMethodsDropDown = false;\n _this.noShippingMethodDropDown = true;\n\n _this.changeShippingMethod = 'changeShippingMethodDisabled';\n _this.dropDownBackground = 'normalBackground';\n _this.selectedShippingMethodText = 'disableShippingMethod';\n\n var span = $('#noShippingMethod > div > span > span > span');\n\n span.html(_index.$locale.content.get('shippingMethod.selectMethod'));\n };\n\n // Enable the shipping method dropdown\n var enableDropDown = function enableDropDown() {\n _logger.$logger.info('snt_enable_dropdown');\n _this.isShowShippingMethodsDropDown = true;\n _this.noShippingMethodDropDown = false;\n _this.shippingMethodNotSelected = true;\n\n _this.changeShippingMethod = 'changeShippingMethodEnabled';\n _this.dropDownBackground = 'normalBackground';\n _this.selectedShippingMethodText = 'enableShippingMethod';\n };\n\n // Enable store pick up to show shipping address\n var enableStorePickUp = function enableStorePickUp() {\n _logger.$logger.info('snt_enable_store_pickup');\n _this.flags.hideShippingAddress = true;\n _this.flags.showSingleAddress = true;\n _angular.$rootScope.$emit('store_pick_up_selected');\n };\n\n // Disable store pick Up\n var disableStorePickUp = function disableStorePickUp() {\n _logger.$logger.info('snt_disable_store_pickup');\n _this.flags.hideShippingAddress = false;\n _this.flags.showSingleAddress = false;\n };\n\n // Checks whether zip code is empty or not\n var isFormZipCodeEmpty = function isFormZipCodeEmpty() {\n // Todo: Understand: Is zipCodeField always present for non instant update flow?\n // Basically understand instant update flow\n var result = void 0;\n\n if (_this.isInstantUpdateFlow) {\n var zipCodeField = _this.isShippingSameAsBilling ? $('#billingAddress #postalCode')[0] || $('#billingAddress #billingPostalCode')[0] : $('#shippingAddress #postalCode')[0] || $('#shippingAddress #shippingPostalCode')[0];\n // The zip code field is not present for some countries.\n // isFormZipCodeEmpty() in that case returns false\n\n if (!zipCodeField) {\n _logger.$logger.info('snt_is_form_zip_code_empty_no_zip_field');\n return false;\n }\n }\n if (_this.isShippingSameAsBilling) {\n result = _this.billingAddress && !_this.billingAddress.postal_code;\n } else {\n result = _this.shippingAddress && !_this.shippingAddress.postal_code;\n }\n _logger.$logger.info('snt_is_form_zip_code_empty', {\n result: result,\n isShippingSameAsBilling: _this.isShippingSameAsBilling\n });\n return result;\n };\n\n // Checks whether line1 is emoty or not\n var isFormAddressLine1Empty = function isFormAddressLine1Empty() {\n var result = void 0;\n\n if (_this.isShippingSameAsBilling) {\n result = _this.billingAddress && !_this.billingAddress.line1;\n } else {\n result = _this.shippingAddress && !_this.shippingAddress.line1;\n }\n _logger.$logger.info('snt_is_form_address_line1_empty', { result: result });\n\n return result;\n };\n\n // Checks whether state is empty or not\n var isFormStateEmpty = function isFormStateEmpty() {\n var result = void 0;\n\n if (_this.isInstantUpdateFlow) {\n var stateField = _this.isShippingSameAsBilling ? $('#billingAddress #state')[0] || $('#billingAddress #billingState')[0] : $('#shippingAddress #state')[0] || $('#shippingAddress #shippingState')[0];\n // The state field is not present for some countries.\n // isFormStateEmpty() in that case returns false\n\n if (!stateField) {\n _logger.$logger.info('snt_is_form_state_empty_no_state');\n return false;\n }\n }\n if (_this.isShippingSameAsBilling) {\n result = _this.billingAddress && !_this.billingAddress.state;\n } else {\n result = _this.shippingAddress && !_this.shippingAddress.state;\n }\n _logger.$logger.info('snt_is_form_state_empty', {\n result: result,\n isShippingSameAsBilling: _this.isShippingSameAsBilling\n });\n\n return result;\n };\n\n // Returns the current zip code entered by the user\n var getCurrentZipCode = function getCurrentZipCode() {\n _logger.$logger.info('snt_get_current_zip_code', {\n isShippingSameAsBilling: _this.isShippingSameAsBilling,\n baPostalCode: _this.billingAddress.postal_code,\n saPostalCode: _this.shippingAddress.postal_code\n });\n\n if (_this.isShippingSameAsBilling) {\n if (_this.billingAddress.postal_code) {\n return _this.billingAddress.postal_code;\n }\n }\n\n // Todo: Understand should it be else if?\n if (_this.shippingAddress.postal_code) {\n return _this.shippingAddress.postal_code;\n }\n };\n\n // Returns current state selected by the user\n var getCurrentState = function getCurrentState() {\n _logger.$logger.info('snt_get_current_state', {\n isShippingSameAsBilling: _this.isShippingSameAsBilling,\n baPostalCode: _this.billingAddress.state,\n saPostalCode: _this.shippingAddress.state\n });\n\n if (_this.isShippingSameAsBilling) {\n if (_this.billingAddress.state) {\n return _this.billingAddress.state;\n }\n }\n if (_this.shippingAddress.state) {\n return _this.shippingAddress.state;\n }\n };\n\n var isValidPostalCodeElement = function isValidPostalCodeElement(element) {\n var isValidBillingPostalCodeElement = (element === 'billingPostalCode' || element === 'postalCode') && _this.isShippingSameAsBilling;\n var isValidShippingPostalCodeElement = (element === 'shippingPostalCode' || element === 'postalCode') && !_this.isShippingSameAsBilling;\n\n _logger.$logger.info('snt_is_valid_postal_code_element', { result: isValidBillingPostalCodeElement || isValidShippingPostalCodeElement });\n return isValidBillingPostalCodeElement || isValidShippingPostalCodeElement;\n };\n\n // Function which patches the cart with button parameters\n var patchCartWithButtonParams = function patchCartWithButtonParams() {\n _logger.$logger.info('snt_patch_cart_with_button_params', {\n buttonCartAmounts: _this.buttonCartAmounts\n });\n if (!_this.buttonCartAmounts) {\n // todo: Understand: No error?\n return;\n }\n var shippingAmt = _this.buttonCartAmounts.shippingAmt;\n var taxAmt = _this.buttonCartAmounts.taxAmt;\n\n if (isPatchCartRequired(shippingAmt, taxAmt)) {\n updateShippingTaxCharge(shippingAmt, taxAmt, 'DEFAULT');\n }\n };\n\n // Listener to fetch adapted shipping methods when locale changes\n // Todo: Cleanup: localeChange not required\n var localeChange = _angular.$rootScope.$on('localeChange', function (event) {\n _this.localeCountry = _index.$locale.country;\n if (!isCountryChange()) {\n disableDropDown();\n _this.fetchShippingMethods();\n }\n });\n\n // Todo: cleanup: not needed\n _angular.$rootScope.$on('$destroy', localeChange);\n\n // Listener which is responsible to patch Cart with button params if shipping address fields are empty\n var changeInShippingAddress = _angular.$rootScope.$on('change_in_shipping_address', function (event) {\n _logger.$logger.info('snt_change_in_shipping_address');\n if (isFormZipCodeEmpty() || isFormStateEmpty()) {\n disableDropDown();\n _this.isStorePickUp = false;\n patchCartWithButtonParams();\n }\n });\n\n _angular.$rootScope.$on('$destroy', changeInShippingAddress);\n\n this.setAllowPayWithSnT = function (value) {\n _logger.$logger.info('snt_set_allow_pay_with_snt', { value: value });\n _this.flags.allowPayWithSnT = value;\n };\n\n this.handleZipCodeBlur = function (event) {\n _logger.$logger.info('snt_handle_zip_code_blur', {\n allowSnTCall: _this.flags.allowSnTCall\n });\n\n if (_this.flags.allowSnTCall) {\n if (!_this.showShipping) {\n disableDropDown();\n _this.fetchShippingMethods();\n } else if (!isFormZipCodeEmpty() && !isFormStateEmpty()) {\n _this.trackZipCode.current = getCurrentZipCode();\n _this.trackState.current = getCurrentState();\n if (isZipCodeChange() || isStateChange()) {\n if (_this.isDomesticShippingMethodsSupported()) {\n disableDropDown();\n _this.fetchShippingMethods();\n } else {\n _this.setAllowPayWithSnT(true);\n }\n } else {\n _this.setAllowPayWithSnT(true);\n }\n } else if (!isFormAddressLine1Empty() && (isFormZipCodeEmpty() || isFormStateEmpty())) {\n if (isFormZipCodeEmpty()) {\n _this.trackZipCode.prev = '';\n }\n if (isFormStateEmpty()) {\n _this.trackState.prev = '';\n }\n if (_this.isDomesticShippingMethodsSupported()) {\n _angular.$rootScope.$emit('showErrorFields');\n disableDropDown();\n _this.isStorePickUp = false;\n disableStorePickUp();\n patchCartWithButtonParams();\n }\n } else {\n _logger.$logger.info('snt_handle_zip_code_blur_default', {\n showZipCode: false\n });\n _this.showZipCode = false;\n }\n }\n };\n\n // Listener which is responsible to call shipping tax API to fetch shipping methods for the given address\n var zipCodeBlur = _angular.$rootScope.$on('zip_code_blur', this.handleZipCodeBlur);\n\n _angular.$rootScope.$on('$destroy', zipCodeBlur);\n\n var handleZipCodeKeyPress = function handleZipCodeKeyPress(event, args) {\n var zipCodeElement = args && args.event && args.event.target && args.event.target.id;\n\n _logger.$logger.info('snt_handle_zip_code_key_press', {\n zipCodeElement: zipCodeElement\n });\n\n _this.setAllowPayWithSnT(true);\n /* On keypress of zip code element in US / CA , SnT should be applied before Pay.\n For other countries , flag will be set when SnT Call is made during Page load .\n */\n if (zipCodeElement && isValidPostalCodeElement(zipCodeElement) && _this.isDomesticShippingMethodsSupported() && isZipCodeChange()) {\n _this.setAllowPayWithSnT(false);\n }\n };\n\n var zipCodeKeyPress = _angular.$rootScope.$on('zip_code_keypress', handleZipCodeKeyPress);\n\n _angular.$rootScope.$on('$destroy', zipCodeKeyPress);\n\n /*\n Watcher on the ship to Billing checkbox\n Use cases\n ---------\n 1. User has selected a shipping method , unchecks the ship to my billing checkbox , if shipping address is empty\n we disable dropdown and patch cart with button params.\n 2. User has selected a shipping method , unchecks the ship to my billing checkbox , if shipping address is not empty,\n we fetch shipping methods based on shipping address.\n 3. User has selected a shipping method based on shipping address , checks the ship to my billing checkbox ,\n we fetch shipping methods based on billing address.\n */\n this.$watch('isShippingSameAsBilling', function (newVal, oldVal) {\n if (newVal !== oldVal) {\n _logger.$logger.info('snt_shipping_same_as_billing_watch');\n disableDropDown();\n _this.trackZipCode = {\n prev: '',\n current: ''\n };\n\n _this.trackState = {\n prev: '',\n current: ''\n };\n _this.fetchShippingMethods();\n _this.isStorePickUp = false;\n _this.setZipCode('snt_shipping_same_as_billing_watch');\n }\n });\n\n /*\n For instant update flows, the SnT service call is triggered when there is a change in\n i. State\n ii. Zip code\n Changes to any other address fields will not trigger the SnT call.\n The address fields are again compared during submit. If they are found to be different, SnT is again called.\n */\n\n // Watcher for billing address postal code\n this.$watch('billingAddress.postal_code', function (newVal, oldVal) {\n if (newVal !== oldVal) {\n _logger.$logger.info('snt_billing_address_postal_code_watch', {\n newVal: newVal,\n oldVal: oldVal\n });\n _this.shipAndTaxError = false;\n _this.setZipCode('snt_billing_address_postal_code_watch');\n }\n });\n\n // Watcher for shipping address postal code\n this.$watch('shippingAddress.postal_code', function (newVal, oldVal) {\n if (newVal !== oldVal) {\n _logger.$logger.info('snt_billing_address_postal_code_watch', {\n newVal: newVal,\n oldVal: oldVal\n });\n _this.shipAndTaxError = false;\n _this.setZipCode('snt_billing_address_postal_code_watch');\n }\n });\n\n // Watchers for billing address state change\n this.$watch('billingAddress.state', function (newVal, oldVal) {\n if (newVal !== oldVal) {\n _logger.$logger.info('snt_billing_address_state_watch', {\n newVal: newVal,\n oldVal: oldVal\n });\n if (_this.isShippingSameAsBilling && !isFormZipCodeEmpty() && _this.flags.allowSnTCall) {\n if (!isFormStateEmpty()) {\n if (_this.isDomesticShippingMethodsSupported()) {\n disableDropDown();\n _this.fetchShippingMethods();\n }\n }\n }\n }\n });\n\n // Watchers for billing address country change\n this.$watch('billingAddress.country', function (newVal, oldVal) {\n if (newVal !== oldVal) {\n _logger.$logger.info('snt_billing_address_country_watch', {\n newVal: newVal,\n oldVal: oldVal\n });\n if (_this.isShippingSameAsBilling && _this.flags.allowSnTCall) {\n if (!_this.isInstantUpdateFlow || !_this.isDomesticShippingMethodsSupported()) {\n _angular.$rootScope.$emit('hideErrorFields');\n _this.triggerFetchShippingMethods = true;\n }\n }\n }\n });\n\n // Todo: Undertand: Why watch? just call a function when set true\n this.$watch('triggerFetchShippingMethods', function (newVal, oldVal) {\n if (newVal !== oldVal) {\n _logger.$logger.info('snt_trigger_fetch_shipping_methods_watch', {\n newVal: newVal,\n oldVal: oldVal\n });\n if (newVal) {\n disableDropDown();\n _this.fetchShippingMethods();\n }\n }\n });\n\n // Watchers for shipping address country change\n this.$watch('shippingAddress.country', function (newVal, oldVal) {\n if (newVal !== oldVal) {\n _logger.$logger.info('snt_shipping_address_country_watch', {\n newVal: newVal,\n oldVal: oldVal,\n isShippingSameAsBilling: _this.isShippingSameAsBilling,\n allowSnTCall: _this.flags.allowSnTCall\n });\n if (!_this.isShippingSameAsBilling && _this.flags.allowSnTCall) {\n if (!_this.isInstantUpdateFlow || !_this.isDomesticShippingMethodsSupported()) {\n disableDropDown();\n _this.fetchShippingMethods();\n }\n }\n }\n });\n\n // Watchers for shipping address state change\n this.$watch('shippingAddress.state', function (newVal, oldVal) {\n if (newVal !== oldVal) {\n _logger.$logger.info('snt_shipping_address_state_watch', {\n newVal: newVal,\n oldVal: oldVal,\n isShippingSameAsBilling: _this.isShippingSameAsBilling,\n allowSnTCall: _this.flags.allowSnTCall\n });\n if (!_this.isShippingSameAsBilling && !isFormZipCodeEmpty() && _this.flags.allowSnTCall) {\n if (_this.isDomesticShippingMethodsSupported()) {\n disableDropDown();\n _this.fetchShippingMethods();\n }\n }\n }\n });\n\n // Function responsible to format each item to be shown in the dropdown\n var getShippingCharge = function getShippingCharge(charge, index) {\n\n var DASH = '--';\n var SPACE = ' ';\n\n function prefix(str, prefixStr) {\n if (str) {\n return (prefixStr ? prefixStr : '') + str;\n }\n return '';\n }\n\n var shippingMethod = charge.shipping_charge.shipping_method;\n\n var _ref = charge.shipping_charge || {},\n _ref$shipping_amount = _ref.shipping_amount,\n shipping_amount = _ref$shipping_amount === undefined ? {} : _ref$shipping_amount;\n // TODO: shipping amount and insurance amount formatting code can be refactored\n // Format shipping amount if available\n\n\n var shippingCurrency = '';\n\n if (shipping_amount) {\n var amount = (parseInt(charge.shipping_charge.shipping_amount.value, 10) / 100).toFixed(2);\n var currencyCode = charge.shipping_charge.shipping_amount.currency_code;\n var formattedAmount = (0, _index.formatCurrency)(amount, currencyCode);\n\n shippingCurrency = prefix(SPACE + formattedAmount, SPACE + DASH);\n }\n var shippingDeliveryTime = charge.shipping_charge.delivery_time;\n\n var displayShippingMethod = (0, _util.decodeEntities)(shippingMethod);\n\n var displayShippingDeliveryTime = prefix(shippingDeliveryTime, ' \\\\n ');\n\n // Format insurance if available\n var insuranceCurrency = '';\n\n if (charge.shipping_charge.insurance_amount) {\n var insuranceAmount = (parseInt(charge.shipping_charge.insurance_amount.value, 10) / 100).toFixed(2);\n var insuranceCurrencyCode = charge.shipping_charge.insurance_amount.currency_code;\n var formattedInsuranceAmount = (0, _index.formatCurrency)(insuranceAmount, insuranceCurrencyCode);\n\n insuranceCurrency = '' + SPACE + formattedInsuranceAmount;\n }\n\n var result = {\n\n shippingCharge: charge,\n shippingMethod: displayShippingMethod,\n shippingCurrency: shippingCurrency,\n shippingDeliveryTime: displayShippingDeliveryTime,\n insuranceCurrency: insuranceCurrency,\n index: index\n };\n\n _logger.$logger.info('snt_get_shipping_charge', {\n result: result\n });\n\n return result;\n };\n\n // Function responsible to set default shipping method\n var setDefaultShippingMethod = function setDefaultShippingMethod() {\n _logger.$logger.info('snt_set_default_shipping_method');\n\n var span = $('#shippingMethodsDropDown > div > span > span > span');\n\n span.html(_index.$locale.content.get('shippingMethod.selectMethod'));\n\n _this.isStorePickUp = false;\n\n disableStorePickUp();\n\n _this.shippingChargesList = [{}];\n };\n\n // Populates the shipping method dropdown with shipping charges .\n var populateShippingCharges = function populateShippingCharges() {\n _logger.$logger.info('snt_populate_shipping_charges');\n setDefaultShippingMethod();\n if (_this.charges.length >= 1) {\n enableDropDown();\n _this.shippingChargesList = _this.charges.map(getShippingCharge);\n _logger.$logger.info('snt_populate_shipping_charges_list', {\n shippingChargesList: _this.shippingChargesList\n });\n } else {\n disableDropDown();\n }\n };\n\n // Checks whether selected shipping method is store pick up or not\n var isStorePickUpMethod = function isStorePickUpMethod(shipping_method_type) {\n var result = shipping_method_type === 'STORE_PICKUP' || shipping_method_type === 'PICKUP';\n\n _logger.$logger.info('snt_is_store_pickup', {\n result: result\n });\n return result;\n };\n\n // Function called when user selects a shipping method from the dropdown\n this.selectShippingMethod = function (selectedShippingCharge) {\n _logger.$logger.info('snt_selected_shipping_method');\n _this.selectedMethod.index = selectedShippingCharge.index;\n _this.selectedShippingCharge = selectedShippingCharge;\n\n // deselect insurance checkbox\n _this.selectedShippingCharge.insuranceCheckboxChecked = false;\n _this.selectedShippingCharge.showInsuranceSelectCheckbox = false;\n\n var taxAmtApplied = void 0;\n var amountValue = void 0;\n var methodType = void 0;\n var insurance = void 0;\n var patchWithInsurance = false;\n\n if (_this.selectedShippingCharge && _this.selectedShippingCharge.shippingCharge && _this.selectedShippingCharge.shippingCharge.shipping_charge) {\n _logger.$logger.info('snt_selected_shipping_charge');\n\n var shippingCharge = _this.selectedShippingCharge.shippingCharge.shipping_charge;\n\n _this.flags.allowEditShipping = true;\n _this.flags.showSingleAddress = false;\n _this.isStorePickUp = false;\n if (isStorePickUpMethod(shippingCharge.shipping_method_type)) {\n _this.isStorePickUp = true;\n enableStorePickUp();\n }\n _this.shippingMethodNotSelected = false;\n methodType = shippingCharge.shipping_method_type;\n amountValue = safeConvert(shippingCharge.shipping_amount.value);\n taxAmtApplied = getTax(_this.selectedShippingCharge.shippingCharge);\n insurance = shippingCharge.insurance_amount && shippingCharge.insurance_amount.value;\n\n _logger.$logger.info('snt_selected_shipping_charge_insurance', {\n insurance: insurance\n });\n\n if (insurance) {\n insurance = safeConvert(insurance);\n /**\n * Patch Insurance if\n * 1. offer_insurance_option=false and there is insurance amount in response;\n * 2. offer_insurance_option=true and there is an insurance amount in response,\n * then user needs to select the apply insurance checkbox first\n */\n if (!shippingCharge.offer_insurance_option) {\n _logger.$logger.info('snt_selected_shipping_charge_dont_offer_insurance_option');\n patchWithInsurance = true;\n } else {\n _logger.$logger.info('snt_selected_shipping_charge_show_insurance_checkbox');\n\n _this.selectedShippingCharge.showInsuranceSelectCheckbox = true;\n }\n }\n } else {\n _logger.$logger.info('snt_no_selected_shipping_charge');\n _this.isStorePickUp = false;\n amountValue = _this.buttonCartAmounts.shippingAmt;\n taxAmtApplied = getTax();\n methodType = 'DEFAULT';\n }\n\n if (_this.isInstantUpdateFlow) {\n updateExternalCallbackOptions(_this.response.shipping_options_source, _this.selectedMethod.prevIndex, _this.selectedMethod.index);\n if (patchWithInsurance) {\n updateShippingTaxCharge(amountValue, taxAmtApplied, methodType, insurance);\n } else {\n updateShippingTaxCharge(amountValue, taxAmtApplied, methodType);\n }\n } else if (isPatchCartRequired(amountValue, taxAmtApplied)) {\n updateShippingTaxCharge(amountValue, taxAmtApplied, methodType);\n }\n\n _logger.$logger.info('snt_selected_shipping_method_final', {\n prevIndex: _this.selectedMethod.index,\n isInstantUpdateFlow: _this.isInstantUpdateFlow\n });\n _this.selectedMethod.prevIndex = _this.selectedMethod.index;\n };\n // Function called when user selects a optional insurance field in checkbox\n this.onInsuranceCheckboxChange = function (insuranceCheckboxChecked) {\n _this.selectedShippingCharge.insuranceCheckboxChecked = insuranceCheckboxChecked;\n var shippingCharge = _this.selectedShippingCharge.shippingCharge.shipping_charge;\n var insurance = safeConvert(shippingCharge.insurance_amount.value);\n var taxAmtApplied = getTax(_this.selectedShippingCharge.shippingCharge);\n var amountValue = safeConvert(shippingCharge.shipping_amount.value);\n var methodType = shippingCharge.shipping_method_type;\n\n _logger.$logger.info('snt_on_insurance_checkbox_change', {\n insuranceCheckboxChecked: insuranceCheckboxChecked,\n amountValue: amountValue,\n taxAmtApplied: taxAmtApplied,\n methodType: methodType,\n insurance: insurance\n });\n\n if (_this.selectedShippingCharge.insuranceCheckboxChecked === true) {\n // Patch the cart with insurance\n updateShippingTaxCharge(amountValue, taxAmtApplied, methodType, insurance);\n } else {\n // Patch the cart without insurance\n updateShippingTaxCharge(amountValue, taxAmtApplied, methodType);\n }\n };\n\n // Function responsible to populate Error fields\n var populateErrorFields = function populateErrorFields() {\n _logger.$logger.info('snt_populate_error_fields', {\n isShippingSameAsBilling: _this.isShippingSameAsBilling\n });\n disableDropDown();\n _this.showZipCode = false;\n if (_this.isShippingSameAsBilling) {\n _this.city = _this.billingAddress.city;\n _this.state = _this.billingAddress.state;\n } else {\n _this.city = _this.shippingAddress.city;\n _this.state = _this.shippingAddress.state;\n }\n };\n\n var populateCallbackShippingOptions = function populateCallbackShippingOptions() {\n _logger.$logger.info('snt_populate_callback_shipping_options', {\n charges: _this.charges\n });\n\n if (!_this.charges) {\n return;\n }\n _this.callbackShippingOptions = _this.charges.map(function (charge, index) {\n var shippingCharge = charge.shipping_charge;\n var taxCharge = charge.tax;\n var insurance = shippingCharge && shippingCharge.insurance_amount;\n var option = {};\n\n if (shippingCharge) {\n option.method = shippingCharge.shipping_method;\n option.amount = {\n value: safeConvert(shippingCharge.shipping_amount && shippingCharge.shipping_amount.value),\n currency: shippingCharge.shipping_amount && shippingCharge.shipping_amount.currency_code\n };\n option.is_default = shippingCharge.default_method;\n option.is_selected = false;\n if (insurance) {\n option.insurance = {\n value: safeConvert(insurance.value),\n currency: insurance.currency_code\n };\n _this.callbackInsuranceOffered = true;\n }\n if (taxCharge) {\n option.tax = {\n value: safeConvert(taxCharge.total_tax.value),\n currency: taxCharge.total_tax.currency_code\n };\n }\n }\n return option;\n });\n _logger.$logger.info('snt_populate_callback_shipping_options', {\n callbackShippingOptions: _this.callbackShippingOptions\n });\n };\n\n var updateExternalCallbackOptions = function updateExternalCallbackOptions(optionsSource, prevIndex, index) {\n if (optionsSource === 'CALLBACK' && _this.callbackShippingOptions) {\n if (!isNaN(prevIndex)) {\n _this.callbackShippingOptions[prevIndex].is_selected = false;\n }\n _this.callbackShippingOptions[index].is_selected = true;\n } else if (optionsSource === 'FALLBACK' && _this.fallbackShippingOptions) {\n if (!isNaN(prevIndex)) {\n _this.fallbackShippingOptions[prevIndex].is_selected = false;\n }\n _this.fallbackShippingOptions[index].is_selected = true;\n }\n _logger.$logger.info('snt_update_external_extcallback_options', {\n optionsSource: optionsSource,\n prevIndex: prevIndex,\n index: index,\n callbackShippingOptions: _this.callbackShippingOptions,\n fallbackShippingOptions: _this.fallbackShippingOptions\n });\n };\n\n // Find the charges of the default option and patch cart with corresponding values.\n var updateShippingTaxChargeWithDefaultOption = function updateShippingTaxChargeWithDefaultOption() {\n var shippingAmt = void 0;\n var taxAmt = void 0;\n var insuranceAmt = void 0;\n var methodType = void 0;\n // SnT service always returns FALLBACK response when no_shipping = 1\n\n if (_this.response.shipping_options_source === 'FALLBACK' && !isNaN(_this.defaultFallbackOptionIndex)) {\n var defaultOption = _this.fallbackShippingOptions[_this.defaultFallbackOptionIndex];\n\n if (defaultOption) {\n shippingAmt = defaultOption.amount && defaultOption.amount.value;\n taxAmt = defaultOption.tax && defaultOption.tax.value;\n insuranceAmt = defaultOption.insurance && defaultOption.insurance.value;\n }\n }\n _logger.$logger.info('snt_updateShippingTaxChargeWithDefaultOption', {\n shippingAmt: shippingAmt,\n taxAmt: taxAmt,\n methodType: methodType,\n insuranceAmt: insuranceAmt\n });\n // Todo: Understand: shouldnt this call be inside if\n updateShippingTaxCharge(shippingAmt, taxAmt, methodType, insuranceAmt);\n };\n\n /* Function which is responsible to process shipping tax response\n Use cases\n ---------\n 1. If shipping tax API returns error, show Error fields.\n 2. (i) WPS: If response has shipping charges and shipping options are to be shown, populate the dropdown with charges else patch cart\n with shipping amount returned.\n (ii)Instant Update: If the shipping region is unsupported, display error message. Otherwise the above behavior applies.\n 3. If no_shipping = 1\n (i) WPS: If profile_override = true , apply shipping from button if it is not empty.\n (ii) Instant Update: Do not display the shipping options. Apply the default fallback(or callback) shipping option charges.\n 4. Apply tax if applicable.\n */\n var processShippingAndTaxResponse = function processShippingAndTaxResponse() {\n _logger.$logger.info('snt_processShippingAndTaxResponse');\n var applicableShippingAmt = _this.buttonCartAmounts && _this.buttonCartAmounts.shippingAmt;\n\n // Set selected shipping charge as null to disallow form submit without selecting a shipping method.\n _this.selectedShippingCharge = null;\n\n // Handle error from service\n if (_this.shipAndTaxError) {\n populateErrorFields();\n }\n if (_this.isInstantUpdateFlow) {\n _logger.$logger.info('snt_is_instant_update_flow');\n if (!_this.response.shipping_region_supported) {\n _logger.$logger.info('snt_shipping_region_not_supported');\n\n _this.flags.instantUpdateShippingRegionSupported = false;\n\n var msgsArray = errorHandlerHelper.getPageError('shippingMethod.shippingRegionUnsupported', { merchant: _this.nonEmptyMerchantDisplayName });\n\n // As updatePageLevelErrorMessage is an optional parameter we are\n // checking for the parameter before calling the function\n if (_this.updatePageLevelErrorMessage) {\n _this.updatePageLevelErrorMessage(msgsArray);\n }\n\n return;\n }\n if (_this.response.shipping_options_source === 'CALLBACK') {\n _logger.$logger.info('snt_shipping_options_source_is_callback');\n populateCallbackShippingOptions();\n }\n if (_this.showShipping) {\n _logger.$logger.info('snt_instant_update_show_shipping_is_true');\n // this.showShipping is true when merchant passes no_shipping parameter with value 0 or 2.\n // In this case, the shipping values from the SnT response is considered.\n if (responseHasShippingCharges()) {\n populateShippingCharges();\n patchCartWithButtonParams();\n }\n } else {\n // this.showShipping is false when merchant passes no_shipping parameter with value 1\n // In this case, shipping options aren't shown. The default fallback shipping option is considered.\n _logger.$logger.info('snt_show_shipping_is_not_true');\n _this.showShippingMethodSection = false;\n _this.flags.showShippingLabel = false;\n updateShippingTaxChargeWithDefaultOption();\n }\n return;\n }\n // non instant update flow, no_shipping = 0\n else if (_this.showShipping) {\n _logger.$logger.info('snt_show_shipping_is_true');\n if (responseHasShippingCharges()) {\n if (_this.response.show_shipping_options) {\n _logger.$logger.info('snt_show_shipping_options_is_true');\n populateShippingCharges();\n } else {\n _logger.$logger.info('snt_show_shipping_options_is_not_true');\n // shippingCharges with out amount is returned in the charges array even shipping is not\n // configured in the profile for the merchant. so safe to check for null values before\n // accessing shipping_amount.\n\n var _ref2 = _this.response.charges[0].shipping_charge || {},\n _ref2$shipping_amount = _ref2.shipping_amount;\n\n _ref2$shipping_amount = _ref2$shipping_amount === undefined ? {} : _ref2$shipping_amount;\n var value = _ref2$shipping_amount.value;\n // call safeConvert only when value is present\n\n if (value) {\n applicableShippingAmt = safeConvert(value);\n }\n _this.showShippingMethodSection = false;\n _this.flags.showShippingLabel = false;\n }\n }\n }\n // not instant update flow, no_shipping = 1 , profile_override = true , shipping passed in button.\n else if (_this.response.profile_override_allowed) {\n _logger.$logger.info('snt_profile_override_allowed');\n // If shipping Amt is not empty , set applicable shipping amt for patch cart\n if (_this.buttonCartAmounts && _this.buttonCartAmounts.shippingAmt) {\n applicableShippingAmt = _this.buttonCartAmounts.shippingAmt;\n _this.showShippingMethodSection = false;\n _this.flags.showShippingLabel = false;\n }\n }\n\n var applicableTaxAmt = getTax();\n\n // Patch if shipping amt or tax amount has changed\n if (isPatchCartRequired(applicableShippingAmt, applicableTaxAmt)) {\n updateShippingTaxCharge(applicableShippingAmt, applicableTaxAmt, 'DEFAULT');\n }\n };\n\n var clearFallbackOptionsSelectionFlags = function clearFallbackOptionsSelectionFlags() {\n _logger.$logger.info('snt_clearFallbackOptionsSelectionFlags', {\n fallbackShippingOptions: _this.fallbackShippingOptions\n });\n if (!_this.fallbackShippingOptions) {\n return;\n }\n for (var i = 0; i < _this.fallbackShippingOptions.length; i++) {\n _this.fallbackShippingOptions[i].is_selected = false;\n }\n };\n\n // Function which gets shipping and tax charges from the merchant profile.\n this.fetchShippingMethods = function () {\n\n _this.flags.showShippingLabel = true;\n _this.flags.instantUpdateShippingRegionSupported = true;\n _this.selectedMethod = {};\n _this.response = {};\n _this.callbackShippingOptions = [];\n _this.callbackInsuranceOffered = false;\n _this.showShippingMethodSection = true;\n _this.shippingChargesList = [{}];\n\n // Todo: Understand: What?\n _this.setAllowPayWithSnT(false);\n\n clearFallbackOptionsSelectionFlags();\n\n var shippingAddress = _this.billingAddress;\n\n if (!_this.isShippingSameAsBilling) {\n shippingAddress = _this.shippingAddress;\n }\n\n _this.trackZipCode.prev = shippingAddress.postal_code;\n _this.trackState.prev = shippingAddress.state;\n\n _this.dropDownBackground = 'processingBackground';\n\n _this.selectedShippingMethodText = 'disableShippingMethod';\n\n _this.changeShippingMethod = 'changeShippingMethodDisabled';\n\n var cartWeight = void 0,\n discount = void 0,\n cartHandling = void 0,\n currCode = void 0;\n\n if (_this.models.checkoutCart.cartWeight && _this.models.checkoutCart.cartWeight.value) {\n cartWeight = {\n value: Number(_this.models.checkoutCart.cartWeight.value).toFixed(2),\n unit: _this.models.checkoutCart.cartWeight.unit\n };\n }\n\n if (_this.models.checkoutCart.purchase.amounts.discount && _this.models.checkoutCart.purchase.amounts.discount.amount) {\n discount = Number(_this.models.checkoutCart.purchase.amounts.discount.amount).toFixed(2);\n }\n\n if (_this.models.checkoutCart.purchase.amounts.handling_fee && _this.models.checkoutCart.purchase.amounts.handling_fee.amount) {\n cartHandling = Number(_this.models.checkoutCart.purchase.amounts.handling_fee.amount).toFixed(2);\n }\n\n currCode = _this.models.checkoutCart.purchase.amounts.total.currency_code;\n\n var sntRequest = {\n 'currency_code': _this.currencyCode,\n 'cart_weight': cartWeight,\n 'cart_handling': { value: cartHandling, currency_code: currCode },\n 'discount': { value: discount, currency_code: currCode },\n 'item_list': _this.models.checkoutCart.purchase.items,\n 'tax_on_shipping_required': _this.showShipping, // tax on shipping is not applicable when no_shipping is 1\n 'merchant_id': _this.models.checkoutPayee.merchant.id,\n 'locale': _index.$locale.lang + '_' + _index.$locale.country\n };\n\n _logger.$logger.info('snt_fetch_shipping_methods', {\n sntRequest: sntRequest,\n state: shippingAddress.state,\n postal_code: shippingAddress.postal_code\n });\n\n sntRequest.address = {\n 'line1': shippingAddress.line1,\n 'line2': shippingAddress.line2,\n 'city': shippingAddress.city,\n 'state': shippingAddress.state,\n 'postal_code': shippingAddress.postal_code,\n 'country_code': shippingAddress.country,\n 'id': _this.token\n };\n\n if (_this.isInstantUpdateFlow) {\n _this.trackSntReq.address = sntRequest.address;\n sntRequest.external_callback_options = _this.models.checkoutCart.getExternalCallbackOptions();\n // TODO: For EC flows, populate sntRequest.token as well.\n }\n _this.shippingMethods = new _index2.$ShippingMethodModel(sntRequest);\n\n _this.shippingMethods.save({\n data: _this.shippingMethods,\n\n contingencies: {\n VALIDATION_ERROR: function VALIDATION_ERROR(name, err) {\n _logger.$logger.info('snt_get_shipping_methods_VALIDATION_ERROR');\n _this.shipAndTaxError = true;\n if (!isFormZipCodeEmpty() || !isFormStateEmpty()) {\n _angular.$rootScope.$emit('showErrorFields');\n }\n populateErrorFields();\n patchCartWithButtonParams();\n },\n INTERNAL_SERVICE_ERROR: function INTERNAL_SERVICE_ERROR(name, err) {\n _logger.$logger.info('snt_get_shipping_methods_INTERNAL_SERVICE_ERROR');\n _this.shipAndTaxError = true;\n if (!isFormZipCodeEmpty() || !isFormStateEmpty()) {\n _angular.$rootScope.$emit('showErrorFields');\n }\n populateErrorFields();\n patchCartWithButtonParams();\n }\n },\n success: function success(result) {\n _logger.$logger.info('snt_get_shipping_methods_success');\n _this.response = result;\n _this.charges = result.charges;\n _this.triggerFetchShippingMethods = false;\n _this.setAllowPayWithSnT(true);\n processShippingAndTaxResponse();\n }\n });\n };\n _angular.$rootScope.$on('submission_triggered', function () {\n _logger.$logger.info('snt_submission_triggered');\n disableDropDown();\n _this.fetchShippingMethods();\n });\n },\n\n populate: function populate() {\n\n this.currencyCode = this.models.checkoutCart.purchase.amounts.total.currency_code;\n this.isInstantUpdateFlow = this.models.checkoutCart.instantUpdateIntegration;\n if (this.isInstantUpdateFlow) {\n this.fallbackShippingOptions = this.models.checkoutCart.getExternalCallbackOptions().fallback_shipping_options;\n if (this.fallbackShippingOptions) {\n this.defaultFallbackOptionIndex = _index.$util.findIndex(this.fallbackShippingOptions, function (option) {\n return option.is_default;\n });\n }\n }\n\n this.buttonCartAmounts = {\n shippingAmt: this.buttonParams.shipping ? Number(this.buttonParams.shipping.amount) : undefined,\n taxAmt: this.buttonParams.tax ? Number(this.buttonParams.tax.amount) : undefined,\n discount: this.models.checkoutCart.purchase.amounts.discount ? Number(this.models.checkoutCart.purchase.amounts.discount.amount) : undefined,\n subTotal: Number(this.models.checkoutCart.purchase.amounts.subtotal.amount),\n total: Number(this.buttonParams.total.amount)\n };\n\n var appDataFlags = this.models.checkoutAppData && this.models.checkoutAppData.flags;\n\n // We need merchantDisplayName to be non empty and if merchant_name or brand_name is undefined\n // then we need the value of merchantDisplayName to be 'the merchant' as it is the first word\n // in shippingMethod.shippingRegionUnsupported content key used below\n this.nonEmptyMerchantDisplayName = this.models.checkoutAppData.getMerchantDisplayName({\n nonEmptyReturnValue: true,\n isSentenceBeginning: true\n });\n\n this.isBuyNow = appDataFlags && appDataFlags.is_buy_now_flow;\n\n this.isCartUpload = appDataFlags && appDataFlags.is_cart_upload_flow;\n\n if (this.models.checkoutCart.cartWeight) {\n if (this.models.checkoutCart.cartWeight.value) {\n this.cartWeight = {\n value: Number(this.models.checkoutCart.cartWeight.value).toFixed(2),\n unit: this.models.checkoutCart.cartWeight.unit\n };\n }\n }\n\n if (this.models.checkoutCart.purchase.amounts.discount) {\n if (this.models.checkoutCart.purchase.amounts.discount.amount) {\n this.cartDiscount = {\n value: Number(this.models.checkoutCart.purchase.amounts.discount.amount).toFixed(2),\n currency_code: this.currencyCode\n };\n }\n }\n\n if (this.models.checkoutCart.purchase.amounts.handling_fee) {\n this.buttonCartAmounts.handlingAmt = Number(this.models.checkoutCart.purchase.amounts.handling_fee.amount);\n }\n\n if (this.models.checkoutCart.purchase.amounts.insurance) {\n this.buttonCartAmounts.insuranceAmt = Number(this.models.checkoutCart.purchase.amounts.insurance.amount);\n }\n\n if (this.models.checkoutCart.purchase.amounts.shipping_discount) {\n this.buttonCartAmounts.shippingDiscountAmt = Number(this.models.checkoutCart.purchase.amounts.shipping_discount.amount);\n }\n\n this.previousCosts = {\n shippingAmount: this.models.checkoutCart.purchase.amounts.shipping ? Number(this.models.checkoutCart.purchase.amounts.shipping.amount) : undefined,\n taxAmount: this.models.checkoutCart.purchase.amounts.tax ? Number(this.models.checkoutCart.purchase.amounts.tax.amount) : undefined\n };\n\n if (!this.isDomesticShippingMethodsSupported()) {\n this.triggerFetchShippingMethods = true;\n }\n\n _logger.$logger.info('snt_populate', {\n buttonCartAmounts: this.buttonCartAmounts,\n previousCosts: this.previousCosts\n });\n\n // trigger zipCodeBlur handler to fetch shipping methods in case of pre-filled address\n this.handleZipCodeBlur();\n }\n }\n}); /**\n * Created by aaramamurthy on 2/29/16.\n *\n * Component responsible to show shipping methods set by merchant to a buyer during guest checkout flow.\n */\n\n_angular.$rootScope;\n\n_index.$Component;\n\n_index.$locale;\n\n_index.formatCurrency;\n\n_index.$feature;\n\n_index.$util;\n\n_logger.$logger;\n\n_index2.$ShippingMethodModel;\n\n_index3.$CheckoutAppDataModel;\n\n_index3.$CheckoutCartModel;\n\n_index3.$CheckoutSessionModel;\n\n_index3.$CheckoutPayeeModel;\n\n_util.decodeEntities;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest/select-shipping-method/directive.js\n// module id = ../node_modules/xo-guest-components/src/guest/select-shipping-method/directive.js\n// module chunks = 0","/**\n * Created by aaramamurthy on 3/22/16.\n *\n * This is a dropdown multiline directive customised for shipping charges dropdown .\n * Existing multiline dropdown does not provide the functionality to have element based styling inside an dropdown item.\n * Existing multiline dropdown also shows an empty object in the dropdown if passed.\n * This directive populates the dropdown by making shipping amount as bold .\n * This directive populates the dropdown with items which is a valid object and has a value.\n */\n\n\n\ndefine(['squid/index', 'jquery'], function (squid, $) {\n\n squid.module('xo-shipping-method-dropdown.directive', ['squid']).directive('xoShippingMethodDropDown', ['$timeout', function ($timeout) {\n return {\n restrict: 'A',\n\n require: '?ngModel',\n\n link: function link($scope, $select, attrs, ngModel) {\n\n var isListVisible = false;\n var listCreated = false;\n\n $select = $($select);\n\n var $span = $('
      ');\n var $container = $('
      ');\n var $list;\n\n function updateCover() {\n $timeout(function () {\n var span = $span.find('span span');\n\n var text = $select.find('[selected]').text().replace(/\\\\n/gi, '
      ').trim();\n\n var shippingAmount = text.substring(text.search('--'), text.search('
      '));\n\n var boldText = text.replace(shippingAmount, shippingAmount.bold());\n\n boldText = boldText.replace('--', '-');\n\n span.html(boldText);\n }, 10);\n }\n\n function createList($options) {\n if ($options.length < 2) {\n return;\n }\n\n function getModel() {\n var modelName;\n var model;\n var subParts;\n\n if ($select.attr('ng-options')) {\n modelName = $select.attr('ng-options').substring($select.attr('ng-options').indexOf('in ') + 3, $select.attr('ng-options').length);\n } else {\n var $option = $($select.find('[ng-repeat]')[0]);\n\n modelName = $option.attr('ng-repeat').substring($option.attr('ng-repeat').indexOf('in ') + 3, $option.attr('ng-repeat').length);\n }\n\n // This is to handle cases like card.billingAddress\n if (modelName.indexOf('.') !== -1) {\n subParts = modelName.split('.');\n model = $scope;\n\n for (var i = 0; i < subParts.length; i++) {\n model = model[subParts[i]];\n }\n } else {\n // And this is to handle straightforward model names\n model = $scope[modelName];\n }\n\n return model;\n }\n\n function hideList(event) {\n $list.hide();\n $container.append($list);\n isListVisible = false;\n $container.removeClass('open');\n }\n\n function positionList() {\n $list.css('left', $container.offset().left + 'px');\n $list.css('top', $container.offset().top + $container.height() + 'px');\n $list.css('width', $container.width() + 'px');\n }\n\n function setFocusOnSelected() {\n var $selected = $select.find('[selected]');\n\n if ($selected.length) {\n var $item = $list.find('[data-value=\"' + $selected.attr('value') + '\"]');\n\n $item.focus();\n } else {\n $list.find('li')[0].focus();\n }\n }\n\n function showList() {\n $('body').append($list);\n $container.addClass('open');\n $list.show();\n positionList();\n isListVisible = true;\n setFocusOnSelected();\n }\n\n function processContainerKeypress(event) {\n var keyCode = event.keyCode;\n\n if (keyCode === 13 || keyCode === 40) {\n // enter or down arrow\n if (!isListVisible) {\n showList();\n } else {\n hideList();\n $container.focus();\n }\n } else if (keyCode === 27) {\n // escape\n if (isListVisible) {\n hideList();\n $container.focus();\n }\n }\n }\n\n if ($list) {\n $list.remove();\n }\n\n $list = $('
        ');\n\n Array.prototype.forEach.call($options, function (option) {\n var $option = $(option);\n var value = $option.attr('value');\n\n var text = option.innerHTML.replace(/\\\\n/gi, '
        ');\n\n var shippingAmount = text.substring(text.search('--'), text.search('
        '));\n\n var boldText = text.replace(shippingAmount, shippingAmount.bold());\n\n boldText = boldText.replace('--', '- ');\n\n if (boldText.indexOf('content(') !== -1) {\n boldText = $scope.content(boldText.substring(boldText.indexOf('(\\'') + 2, boldText.indexOf('\\')')));\n }\n\n var html = '
      • ' + boldText + '
      • ';\n if (value !== '') {\n $list.append($(html));\n }\n });\n\n $container.append($list);\n $list.hide();\n\n $($list.find('li')).click(function (event) {\n var $target = $(event.target);\n var value = $target.data('value');\n\n if ($target[0].nodeName.toLowerCase() !== 'li') {\n value = $target.parent().data('value');\n }\n\n if (typeof value !== 'undefined') {\n $select.find('option').removeAttr('selected');\n $select.find('option[value=\"' + value + '\"]').attr('selected', 'selected');\n $select.find('option').removeProp('selected');\n $select.find('option[value=\"' + value + '\"]').prop('selected', 'selected');\n } else {\n value = $target.html().replace(/\\//gi, '\\\\n');\n $select.val(value);\n }\n\n if ($select.attr('ng-model')) {\n if ($select.attr('ng-options') || $select.find('[ng-repeat]').length) {\n /* This parses the 'ng-options' directive and returns the options model.\n For example: If you have: ng-options='opt as opt.label for opt in options'\n Here it will parse this attribute and return 'options */\n var model = getModel();\n\n ngModel.$setViewValue(model[value]);\n } else {\n ngModel.$setViewValue(value);\n }\n }\n\n updateCover();\n hideList();\n });\n\n var $innerContainer = $container.find('.innerContainer');\n\n $container.click(function (event) {\n if (isListVisible) {\n hideList();\n $container.focus();\n } else {\n showList();\n }\n });\n\n $container.keydown(function (event) {\n processContainerKeypress(event);\n });\n\n $innerContainer.keydown(function (event) {\n processContainerKeypress(event);\n });\n\n $list.find('li').keydown(function (event) {\n var keyCode = event.keyCode;\n var $target = $(event.target);\n\n if (keyCode === 13) {\n // enter\n $target.click();\n event.stopPropagation();\n } else if (keyCode === 27) {\n // escape\n if (isListVisible) {\n hideList();\n $container.focus();\n event.stopPropagation();\n }\n } else if (keyCode === 40) {\n // down arrow\n if (!$target.is(':last-of-type')) {\n $target.next().focus();\n event.preventDefault();\n event.stopPropagation();\n }\n } else if (keyCode === 38) {\n // up arrow\n if (!$target.is(':first-of-type')) {\n $target.prev().focus();\n }\n event.preventDefault();\n event.stopPropagation();\n }\n });\n\n $(window).resize(function () {\n if (isListVisible) {\n positionList();\n }\n });\n\n $(window).bind('hashchange', function () {\n if (isListVisible) {\n hideList();\n }\n });\n\n $(document).click(function (event) {\n var $target = $(event.target);\n\n if (!($target.is($container) || $.contains($container.get()[0], $target.get()[0])) && isListVisible) {\n hideList();\n }\n });\n\n listCreated = true;\n updateCover();\n }\n\n function render() {\n var options = $select.find('option');\n\n if (!listCreated) {\n createList(options);\n }\n }\n\n $select.wrap($container);\n $container = $select.parent();\n\n // Change class names to enable styling of hover/focus states\n $select.bind('mouseenter focus', function () {\n $span.addClass('active');\n });\n\n // Change class names to enable styling of hover/focus states\n $select.bind('mouseleave blur', function () {\n $span.removeClass('active');\n });\n\n $select.after($span);\n\n $select.addClass('replaced');\n\n $select.attr('tabindex', '-1');\n\n if (attrs['default']) {\n var defaultOption = document.createElement('option');\n\n defaultOption.innerText = attrs['default'];\n $select.append(defaultOption);\n }\n\n if ($select.attr('ng-options') || $select.find('[ng-repeat]').length) {\n $scope.$watch(attrs.ngModel, function () {\n render();\n });\n } else {\n $timeout(function () {\n $scope.$broadcast('pageRendered');\n }, 0);\n }\n\n $scope.$on('pageRendered', function () {\n render();\n });\n }\n };\n }]);\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest/select-shipping-method/shipping-method-dropdown/directive.js\n// module id = ../node_modules/xo-guest-components/src/guest/select-shipping-method/shipping-method-dropdown/directive.js\n// module chunks = 0","module.exports = \"
        \\n \\n\\n
        \\n

        \\n {{content('shippingMethod.guestMerchantOptions')}}\\n

        \\n\\n

        \\n {{content('shippingMethod.zipCode')}}:\\n

        \\n\\n

        \\n {{zipCode}}\\n

        \\n\\n

        \\n [{{city}},{{state}} {{zipCode}}]\\n

        \\n\\n
        \\n\\n
        \\n\\n \\n\\n
        \\n\\n
        \\n\\n \\n \\n\\n
        \\n\\n
        \\n\\n \\n\\n
        \\n\\n
        \\n
        \\n

        \\n
        \\n
        \\n\\n
        \\n {{content('shippingMethod.storeLocationInfo')}}\\n
        \\n\\n\\n
        \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest/select-shipping-method/template.html\n// module id = ../node_modules/xo-guest-components/src/guest/select-shipping-method/template.html\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _squid = require('squid');\n\nvar _errorHandlerHelper = require('../lib/errorHandlerHelper');\n\nvar errorHandlerHelper = _interopRequireWildcard(_errorHandlerHelper);\n\nvar _util = require('xo-wallet-components/src/fi-contingency-list/util');\n\nvar _index = require('xo-models/src/fi/index');\n\nvar _angular = require('angular');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } }\n\nexports['default'] = _squid.$Component.extend('xoGuestSepaLightbox', {\n tag: 'xo-guest-sepa-lightbox',\n template: _template2['default'],\n\n props: {\n token: {\n type: 'var',\n required: false\n },\n address: {\n type: 'var',\n required: false\n },\n singlePagePaymentForm: {\n type: 'var',\n required: false\n },\n updatePageLevelErrorMessage: {\n type: 'var',\n required: false\n },\n validated: {\n type: 'var',\n required: false\n },\n sepa: {\n type: 'var',\n required: false\n },\n onboard: {\n type: 'var',\n required: false\n },\n sectionElement: {\n type: 'var',\n required: false\n },\n flags: {\n type: 'var',\n required: false\n },\n isUnbranded: {\n type: 'var',\n required: false\n },\n doneFn: {\n type: 'var',\n required: false\n }\n },\n\n lifecycle: {\n enter: function enter() {},\n populate: function populate() {\n var _this = this;\n\n var openSepa = function openSepa() {\n var form = _this.singlePagePaymentForm;\n var formValid = true;\n var firstFailedElementName = determineFirstFailedElement();\n\n // Clear existing error messages\n _this.validated = true;\n\n _this.noErrorShowSepa = false;\n\n function determineFirstFailedElement() {\n var result = void 0;\n var sepaNotRequiredFields = ['sepaAgree', 'sepaGuestAgree', 'guestagree', 'agree'];\n\n for (var i in form) {\n if (form[i] && form[i].hasOwnProperty && form[i].hasOwnProperty('$valid') && sepaNotRequiredFields.indexOf(form[i].$name) === -1 && // Dont check validity for fields we don't need for SEPA\n !form[i].$valid) {\n formValid = false;\n result = form[i].$name;\n break;\n }\n }\n\n return result;\n }\n // If form is valid then call validateBank Api and then open sepa\n\n if (formValid) {\n _this.addBankModel = new _index.$AddBankModel({\n user: _this.onboard.user,\n bank: _this.onboard.bank\n });\n\n _this.addBankModel.action('validate', {\n\n data: _this.addBankModel.getBankData(),\n\n resultModel: {},\n\n success: function success(data) {\n _this.addBankModel.creditorDetails = data.creditorDetails;\n _this.addBankModel.fiDetails = data.fiDetails;\n _this.noErrorShowSepa = true;\n (0, _angular.$timeout)(function () {\n window.scrollTo(0, 0);\n }, 100);\n },\n\n contingencies: {\n VALIDATE_BANK_CONTINGENCY: function VALIDATE_BANK_CONTINGENCY(name, data) {\n var pageLevelErrorObj = _util.$fiErrorUtil.addPageErrors(data, 'bank');\n\n _this.hideSepa();\n _this.updatePageLevelErrorMessage(pageLevelErrorObj.msgs, pageLevelErrorObj.type);\n _util.$fiErrorUtil.addFieldErrors(data, _this.sectionElement);\n firstFailedElementName = determineFirstFailedElement();\n errorHandlerHelper.scrollToElement(firstFailedElementName);\n }\n },\n validation: function validation(data) {\n\n var returnObj = { fields: [] };\n\n _this.hideSepa();\n\n angular.forEach(data.fields || [], function (field) {\n returnObj.fields.push(field.property);\n });\n\n errorHandlerHelper.addFieldError(returnObj);\n\n firstFailedElementName = determineFirstFailedElement();\n errorHandlerHelper.scrollToElement(firstFailedElementName);\n }\n });\n } else {\n _this.hideSepa();\n errorHandlerHelper.scrollToElement(firstFailedElementName);\n }\n };\n\n this.hideSepa = function () {\n _this.noErrorShowSepa = false;\n _this.sepa.show = false;\n };\n\n // Added the sepa content change based on US755520\n var setSepaOverlayContent = function setSepaOverlayContent() {\n _this.sepaTitle = _this.isUnbranded && _this.flags.show_sepa_overlay ? 'DEMemberGuest.sepaTitleUnbranded' : 'DEMemberGuest.sepaTitle';\n _this.sepaAgreement = _this.isUnbranded && _this.flags.show_sepa_overlay ? 'DEMemberGuest.ddAgreementUnbrandedPara1' : 'DEMemberGuest.ddAgreementPara1';\n if (_this.flags.show_sepa_overlay) {\n if (_this.flags.isUnbranded && _this.flags.commit) {\n _this.sepaSubmit = 'common.acceptAndComplete';\n } else {\n _this.sepaSubmit = 'common.acceptAndContinue';\n }\n } else {\n _this.sepaSubmit = 'header.close';\n }\n };\n\n this.$watch('sepa.show', function (newVal, oldVal) {\n if (newVal) {\n openSepa();\n }\n });\n\n this.$watch('flags.show_sepa_overlay', function (newVal, oldVal) {\n if (newVal) {\n setSepaOverlayContent();\n }\n });\n\n setSepaOverlayContent();\n }\n },\n actions: {\n closeSepa: function closeSepa($event) {\n $event.preventDefault();\n this.hideSepa();\n },\n acceptSepa: function acceptSepa($event) {\n $event.preventDefault();\n\n this.hideSepa();\n this.sepa.sepaGuestAgree = true;\n this.sepa.sepaAgree = true;\n if (this.flags.show_sepa_overlay) {\n this.doneFn();\n }\n }\n }\n});\n\n\n_squid.$Component;\n\n_util.$fiErrorUtil;\n\n_index.$AddBankModel;\n\n_angular.$timeout;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest/sepa/directive.js\n// module id = ../node_modules/xo-guest-components/src/guest/sepa/directive.js\n// module chunks = 0","module.exports = \"\\n
        \\n
        \\n\\n
        \\n
        \\n\\n\\n close\\n\\n

        {{ content(sepaTitle) }}

        \\n\\n

        {{ content(sepaAgreement) }}

        \\n\\n
        \\n {{ content('DEMemberGuest.accountCarrier') }}\\n
        {{addBankModel.user.first_name}} {{addBankModel.user.last_name}}
        \\n
        {{address.line1}}
        \\n
        {{address.line2}}
        \\n
        {{address.postal_code}} {{address.city}}
        \\n
        \\n\\n
        \\n

        \\n {{content('DEMemberGuest.IBAN')}}
        \\n {{addBankModel.fiDetails.piDetails.piAccountNumber}}\\n

        \\n\\n

        \\n {{content('DEMemberGuest.bankName')}}
        \\n {{addBankModel.fiDetails.piDetails.isssuerDetails.name}}\\n

        \\n\\n

        \\n {{content('DEMemberGuest.bic')}}
        \\n {{addBankModel.fiDetails.piDetails.bic}}\\n

        \\n
        \\n\\n \\n\\n
        {{ content('base.payPal') }}
        \\n
        \\n
        \\n
        \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest/sepa/template.html\n// module id = ../node_modules/xo-guest-components/src/guest/sepa/template.html\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.setStickyInstrument = undefined;\n\nvar _squid = require('squid');\n\nvar _logger = require('xo-beaver/dist/logger');\n\n/**\n * Makes billing agreement financial instrument sticky if necessary\n *\n * @param {CheckoutSession} checkoutSession\n * @return {Promise}\n */\nvar setStickyInstrument = exports.setStickyInstrument = function setStickyInstrument(checkoutSession) {\n if (!checkoutSession) {\n throw new TypeError('missing checkoutSession');\n }\n\n if (checkoutSession.selectedFuturePaymentInstrument) {\n // session already has a sticky instrument\n _logger.$logger.info('no_setStickyFI_call_checkoutsession_already_has_sticky_fi');\n return _squid.$promise.resolve();\n }\n\n var stickyInstrument = checkoutSession.getSelectedStickyInstrument();\n\n // billing agreement is not supported for WPS and guest transactions\n // we dont do setStickyFI call in both WPS and guest transactions\n if (stickyInstrument) {\n _logger.$logger.info('calling_checkoutsession_setStickyFI_API');\n return checkoutSession.action('setStickyFI', {\n data: {\n instrument_id: stickyInstrument.instrument_id\n }\n });\n }\n\n _logger.$logger.info('no_setStickyFI_call_checkoutsession_has_no_selected_sticky_fi');\n return _squid.$promise.resolve();\n};\n\n_squid.$promise;\n\n_logger.$logger;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest/sticky.js\n// module id = ../node_modules/xo-guest-components/src/guest/sticky.js\n// module chunks = 0","module.exports = \"
        \\n\\n \\n \\n\\n \\n \\n \\n\\n \\n\\n
        \\n\\n \\n\\n
        \\n \\n \\n \\n\\n
        \\n \\n
        \\n\\n
        \\n \\n\\n
        \\n \\n \\n
        \\n\\n \\n\\n\\n

        {{content('addressBook.billingAddress')}}

        \\n
        \\n \\n
        \\n\\n\\n
        \\n \\n \\n
        \\n\\n

        {{content('shipping.shippingLabel')}}

        \\n\\n
        \\n
        \\n {{content('shipping.shippingTitle')}}\\n {{content('common.change')}}\\n
        \\n
        \\n {{shippingAddress.displayLine1}}
        \\n {{shippingAddress.displayLine2}}
        \\n {{shippingAddress.displayLine3}}\\n
        \\n
        \\n\\n
        \\n\\n

        {{content('shipping.shippingTitle')}}

        \\n\\n \\n\\n \\n\\n \\n\\n
        \\n\\n
        \\n \\n \\n \\n
        \\n\\n
        \\n

        {{content('addPhone.contactInformation')}}

        \\n

        \\n \\n \\n
        \\n\\n \\n\\n
        \\n
        \\n {{ content('billingAgreement.invoicingRegEMsg', {merchantName: nonEmptyMerchantDisplayName, amountInInvCurrency: amountInInvCurrency}) }}\\n
        \\n
        \\n {{ content('billingAgreement.invoicingRegEMsgWithCurrConversion', {amountInPayerCurrency: amountInPayerCurrency, merchantName: nonEmptyMerchantDisplayName, amountInInvCurrency: amountInInvCurrency}) }}\\n
        \\n
        \\n\\n
        \\n
        \\n

        {{content('common.textAboveAgreeButton')}}

        \\n
        \\n\\n \\n {{content('common.back')}}\\n \\n\\n \\n \\n\\n
        \\n
        \\n
        \\n
        \\n
        \\n\\n\\n \\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest/template.html\n// module id = ../node_modules/xo-guest-components/src/guest/template.html\n// module chunks = 0","\n\nexports.__esModule = true;\n// Default experience keys - For \"DE\" and other flows.\nvar DEFAULT_TOGGLE_FI = exports.DEFAULT_TOGGLE_FI = [{\n type: 'bank',\n label: 'bank.bank'\n}, {\n type: 'card',\n label: 'bank.card'\n}];\n\n// Keys when \"Bank\" is selected as default.\nvar TESLA_TOGGLE_FI_BANK = exports.TESLA_TOGGLE_FI_BANK = [{\n type: 'bank',\n label: 'bank.bank'\n}, {\n type: 'card',\n label: 'bank.cardWithoutCredit'\n}];\n\n// Keys when \"Card\" is selected as default.\nvar TESLA_TOGGLE_FI_CARD = exports.TESLA_TOGGLE_FI_CARD = [{\n type: 'card',\n label: 'bank.cardWithoutCredit'\n}, {\n type: 'bank',\n label: 'bank.bank'\n}];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest/tesla-add-bank/constants.js\n// module id = ../node_modules/xo-guest-components/src/guest/tesla-add-bank/constants.js\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _index = require('squid/index');\n\nvar _index2 = require('xo-models/src/app/index');\n\nvar _logger = require('xo-beaver/dist/logger');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _index.$Component.extend('xoTeslaAddBank', {\n tag: 'xo-tesla-add-bank',\n template: _template2['default'],\n\n props: {\n token: {\n type: 'var',\n required: false\n },\n mode: {\n type: 'var',\n required: false\n }\n },\n\n resolve: {\n models: function models() {\n return {\n teslaFlowIdData: _index2.$TeslaFlowIdModel.instance(this.token).retrieve()\n };\n }\n },\n\n lifecycle: {\n enter: function enter() {\n this.mode = this.mode || 'signup';\n },\n populate: function populate() {\n var _this = this;\n\n var setupRedirectUrl = function setupRedirectUrl() {\n var _ref = _this.models.teslaFlowIdData || {},\n teslaFlowID = _ref.encodedParam;\n\n _this.finalUrl = '' + window.location.origin + _index.$config.urls.teslaAddBankUrl + teslaFlowID + '&country.x=' + _index.$locale.country + '&locale.x=' + _index.$locale.lang + '_' + _index.$locale.country + '&tsrce=xoonboardingnodeweb';\n\n _logger.$logger.info('tesla_add_bank_final_url', _this.finalUrl);\n };\n\n setupRedirectUrl();\n\n this.$on('localeChange', function () {\n setupRedirectUrl();\n });\n }\n },\n\n actions: {\n onContinueClick: function onContinueClick($event) {\n\n // FPTI logging when clicked on continue.\n _logger.$logger.info('checkout_fpti', {\n from: 'SIGNUP',\n to: 'process_tesla_continue'\n });\n\n $event.preventDefault();\n _logger.$logger.info('tesla_add_bank_redirection_button_clicked');\n window.location.href = this.finalUrl;\n }\n }\n\n});\n\n\n_index.$Component;\n\n_index.$locale;\n\n_index.$config;\n\n_index2.$TeslaFlowIdModel;\n\n_logger.$logger;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest/tesla-add-bank/directive.js\n// module id = ../node_modules/xo-guest-components/src/guest/tesla-add-bank/directive.js\n// module chunks = 0","module.exports = \"
        \\n

        \\n {{content('bank.bankDescription')}}\\n

        \\n\\n \\n
        \"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest/tesla-add-bank/template.html\n// module id = ../node_modules/xo-guest-components/src/guest/tesla-add-bank/template.html\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _squid = require('squid');\n\nvar _angular = require('angular');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nrequire('xo-form-components/src/travel-rule/directive');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _squid.$Component.extend('$xoTravelRuleLightbox', {\n tag: 'xo-travel-rule-lightbox',\n\n template: _template2['default'],\n\n props: {\n token: {\n type: 'var',\n required: false\n },\n doneFn: {\n type: 'var',\n required: false\n }\n },\n\n lifecycle: {\n enter: function enter() {\n var _this = this;\n\n // Open interstitial after element is rendered\n (0, _angular.$timeout)(function () {\n _this.modalOpen = true;\n });\n }\n }\n});\n\n\n_squid.$Component;\n\n_angular.$timeout;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest/travelRuleLightbox/directive.js\n// module id = ../node_modules/xo-guest-components/src/guest/travelRuleLightbox/directive.js\n// module chunks = 0","module.exports = \"
        \\n
        \\n
        \\n
        \\n
        \\n \\n \\n
        \\n
        \\n
        \\n
        \\n
        \\n
        \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest/travelRuleLightbox/template.html\n// module id = ../node_modules/xo-guest-components/src/guest/travelRuleLightbox/template.html\n// module chunks = 0","\n\nexports.__esModule = true;\nvar defaultSignupTitleContentKey = 'largeScreenPayment.signupTitle';\nvar defaultGuestTitleContentKey = 'largeScreenPayment.title';\n\nvar titleTreatmentKeyToContentKeyMapping = {\n signup: defaultSignupTitleContentKey,\n guest: defaultGuestTitleContentKey,\n ebay: 'signupAccountCreation.heading',\n bank: 'largeScreenPayment.bankTitle',\n walletTokenization: 'common.createPayPalSubTitleSignup',\n xo_xoon_header_title_subtitle_global_control: defaultSignupTitleContentKey,\n xo_xoon_header_title_subtitle_global_throttle: defaultSignupTitleContentKey,\n xo_xoon_header_title_subtitle_global_test: 'splitScreenExp.signupOnboardTitle',\n xo_xoon_header_title_subtitle_IN_control: defaultSignupTitleContentKey,\n xo_xoon_header_title_subtitle_IN_treatment_a: 'header.titleSaferCheckout',\n xo_xoon_header_title_subtitle_IN_treatment_b: 'header.titleAddYourCard',\n xo_xoon_header_title_subtitle_IN_treatment_c: 'header.titleFreeAccount',\n indiaTitleBilling: 'header.titleBilling',\n xo_xoon_jp_add_bank_treatment: 'header.titleTeslaBankOrCard',\n xo_xoon_jp_add_bank_treatment_card: 'header.titleTeslaCardOrBank'\n};\n\nvar defaultSignupTitlePropsContentKey = 'largeScreenPayment.titleProp';\nvar defaultGuestTitlePropsContentKey = defaultSignupTitlePropsContentKey;\n\nvar titlePropsTreatmentKeyToContentKeyMapping = {\n signup: defaultSignupTitlePropsContentKey,\n guest: defaultGuestTitlePropsContentKey,\n google: 'signup.androidPayTitleProp',\n samsung: 'signup.tokenizedWalletInfoTitleProp',\n walletTokenization: 'signup.androidPayTitleProp',\n xo_xoon_header_title_subtitle_global_control: defaultSignupTitlePropsContentKey,\n xo_xoon_header_title_subtitle_global_throttle: defaultSignupTitlePropsContentKey,\n xo_xoon_header_title_subtitle_global_test: 'common.buyerProtectionSignup',\n xo_xoon_header_title_subtitle_IN_control: defaultSignupTitlePropsContentKey,\n xo_xoon_header_title_subtitle_IN_treatment_a: 'header.subTitleCreateYourAccount',\n xo_xoon_header_title_subtitle_IN_treatment_b: 'header.subTitleSaveYourCard',\n xo_xoon_header_title_subtitle_IN_treatment_c: 'header.subTitleSaveYourCard',\n indiaTitleBilling: 'header.subTitleBilling'\n};\n\nexports.titleTreatmentKeyToContentKeyMapping = titleTreatmentKeyToContentKeyMapping;\nexports.titlePropsTreatmentKeyToContentKeyMapping = titlePropsTreatmentKeyToContentKeyMapping;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest/xoonHeader/constants.js\n// module id = ../node_modules/xo-guest-components/src/guest/xoonHeader/constants.js\n// module chunks = 0","\n\nexports.__esModule = true;\n\nrequire('./styles');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nvar _squid = require('squid');\n\nvar _lib = require('./lib');\n\nvar _constants = require('./constants');\n\nvar _index = require('xo-models/src/app/index');\n\nvar _index2 = require('xo-models/src/checkout/index');\n\nvar _index3 = require('xo-models/src/user/index');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _squid.$Component.extend('xoXoonHeader', {\n tag: 'xo-xoon-header',\n template: _template2['default'],\n\n props: {\n token: {\n type: 'var',\n required: true\n },\n flags: {\n type: 'var',\n required: true\n },\n user: {\n type: 'var',\n required: true\n },\n // This mode is carried from pages 'mode' setting\n // It is not flags.mode that changes upon radio button clicks\n // in optional signup flow\n mode: {\n type: 'var',\n required: true\n },\n fiMode: {\n type: 'var',\n required: true\n }\n },\n\n resolve: {\n models: function models() {\n return {\n checkoutCart: _index2.$CheckoutCartModel.instance(this.token).retrieve(),\n checkoutInputData: _index3.$CheckoutInputDataModel.instance(this.token).retrieve(),\n tokenizedWalletInfoModel: _index.$TokenizedWalletInfoModel.instance(this.token).retrieve(),\n checkoutAppData: _index2.$CheckoutAppDataModel.instance(this.token).retrieve()\n };\n },\n experiments: function experiments() {\n return {\n // we are running title and subTitle pxp only for signup flows\n titleSubtitleContentExp: this.props.mode === 'signup' ? (0, _squid.$pxp)('xo_xoon_header_title_subtitle', { 'ctx.COUNTRY': _squid.$locale.country }, '(xo_xoon_header_title_subtitle_)(.*)') : null\n };\n },\n teslaAddBank: function teslaAddBank() {\n return {\n teslaAddBankEXP: (0, _squid.$elmo)('xo_xoon_tesla_add_bank', { 'ctx.COUNTRY': _squid.$locale.country }, '(xo_xoon_jp_add_bank_treatment)(.*)')\n };\n }\n },\n\n lifecycle: {\n enter: function enter() {\n this.locale = _squid.$locale;\n this.currentCountryName = _squid.$util.getProperty(this.locale, 'metadata.localization.countryName', {\n 'default': this.locale.country\n });\n },\n populate: function populate() {\n var _this = this;\n\n var checkTeslaEligbility = function checkTeslaEligbility() {\n var _teslaAddBank$teslaAd = _this.teslaAddBank.teslaAddBankEXP,\n teslaAddBankEXP = _teslaAddBank$teslaAd === undefined ? {} : _teslaAddBank$teslaAd;\n var teslaAddBankTreatment = teslaAddBankEXP.treatment_name;\n\n _this.teslaTreatmentFIType = teslaAddBankTreatment;\n _this.teslaAddBankEXP = teslaAddBankTreatment && teslaAddBankTreatment.includes('xo_xoon_jp_add_bank_treatment');\n };\n\n checkTeslaEligbility();\n\n var setTitleSubtitleContentAndFlags = function setTitleSubtitleContentAndFlags() {\n _this.subject = _this.models.tokenizedWalletInfoModel.getSubject(); // Samsung or Android\n\n var _ref = _this.experiments.titleSubtitleContentExp || {},\n titleSubtitleContentExpTreatment = _ref.treatment_name;\n\n // Add experiment check and default values (props.mode) on FLow Context keys\n\n\n var pageTitleFlowContextKey = (0, _lib.getPageTitleContextKey)(_this.models, _this.props.mode, _this.props.fiMode, _this.currentCountryName) || _this.teslaAddBankEXP && _this.teslaTreatmentFIType || titleSubtitleContentExpTreatment || _this.props.mode;\n var pageTitlePropsFlowContextKey = (0, _lib.getPageTitlePropsContextKey)(_this.models, _this.subject, _this.currentCountryName) || titleSubtitleContentExpTreatment || _this.props.mode;\n\n // get the actual content key from constants file mapping\n _this.pageTitleContentKey = _constants.titleTreatmentKeyToContentKeyMapping[pageTitleFlowContextKey];\n _this.pageTitlePropsContentKey = _constants.titlePropsTreatmentKeyToContentKeyMapping[pageTitlePropsFlowContextKey];\n\n // if the treatment returned by pxp does not have words like 'control' and 'throttle'\n // then it is a test treatment, so lets set flags.titleSubtitleContentExpTreatment = true\n // This flag is used in onboardOptions template to decide display components\n if (titleSubtitleContentExpTreatment && !(titleSubtitleContentExpTreatment.indexOf('control') > -1 || titleSubtitleContentExpTreatment.indexOf('throttle') > -1)) {\n // Set flag to use in oboardingOptions template\n _this.props.flags.titleSubtitlePxpTreatment = true;\n }\n };\n\n var setInitialFlags = function setInitialFlags() {\n setTitleSubtitleContentAndFlags();\n };\n\n setInitialFlags();\n }\n },\n\n actions: {\n redirectWarningPromptInit: function redirectWarningPromptInit($event) {\n if ($event) {\n $event.preventDefault();\n }\n\n // Redirection will be triggered in redirectWarningPrompt directive\n // based on few conditions check\n this.flags.showRedirectWarningPrompt = true;\n }\n }\n});\n\n\n_squid.$Component;\n\n_squid.$locale;\n\n_squid.$pxp;\n\n_squid.$util;\n\n_squid.$elmo;\n\n_lib.getPageTitleContextKey;\n\n_lib.getPageTitlePropsContextKey;\n\n_constants.titleTreatmentKeyToContentKeyMapping;\n\n_constants.titlePropsTreatmentKeyToContentKeyMapping;\n\n_index.$TokenizedWalletInfoModel;\n\n_index2.$CheckoutCartModel;\n\n_index2.$CheckoutAppDataModel;\n\n_index3.$CheckoutInputDataModel;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest/xoonHeader/directive.js\n// module id = ../node_modules/xo-guest-components/src/guest/xoonHeader/directive.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.getPageTitlePropsContextKey = exports.getPageTitleContextKey = undefined;\n\nvar _logger = require('xo-beaver/dist/logger');\n\n// Return keys for few specific flows that needs title override\n// Please refer to ./constants.js file for default keys used in the flow\nvar getPageTitleContextKey = function getPageTitleContextKey(models, mode, fiMode, currentCountryName) {\n if (models.checkoutInputData.isEbayTxn()) {\n // prox signup flow title\n return 'ebay';\n } else if (fiMode === 'bank') {\n return 'bank';\n } else if (models.checkoutCart.isWalletTokenization()) {\n return 'walletTokenization';\n } else if (currentCountryName === 'India' && models.checkoutCart.isBilling() && models.checkoutAppData.get('merchant.merchant_country', 'US') === 'IN') {\n return 'indiaTitleBilling';\n }\n // We have an experiment that decides key for mode === 'signup'\n};\n\n// Return keys for few specific flows that needs title props or sub title override\n// Please refer to ./constants.js file for default keys used in the flow\nvar getPageTitlePropsContextKey = function getPageTitlePropsContextKey(models, subject, currentCountryName) {\n\n var WALLET_RESPONSE = ['google', 'Samsung'];\n\n if (models.checkoutCart.isWalletTokenization()) {\n\n _logger.$logger.info(subject + '_WALLET_TOKENIZATION');\n\n if (WALLET_RESPONSE.indexOf(subject) > -1) {\n return subject.toLowerCase();\n } else {\n // Oops something terrible happened! API response does't have our key. return default instead\n return 'walletTokenization';\n }\n }\n\n if (currentCountryName === 'India' && models.checkoutCart.isBilling() && models.checkoutAppData.get('merchant.merchant_country', 'US') === 'IN') {\n return 'indiaTitleBilling';\n }\n};\n\nexports.getPageTitleContextKey = getPageTitleContextKey;\nexports.getPageTitlePropsContextKey = getPageTitlePropsContextKey;\n\n\n_logger.$logger;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest/xoonHeader/lib.js\n// module id = ../node_modules/xo-guest-components/src/guest/xoonHeader/lib.js\n// module chunks = 0","module.exports = \"
        \\n

        \\n

        \\n\\n \\n
        \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/guest/xoonHeader/template.html\n// module id = ../node_modules/xo-guest-components/src/guest/xoonHeader/template.html\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.getBillingAgreementContentInfo = exports.getSusbcriptionsV1ContentKey = exports.getRPContentKey = exports.getBAContentKey = undefined;\n\nvar _squid = require('squid');\n\n/**\n * Returns the appropriate billing agreement xo-content key.\n * (Usage: MIB, CIB, MISB, CISB and all merchant having a consent_code in their settings.)\n * enterpriseAgreement.{CODE}NoFiStickyConsentSignup\n * billingAgreement.signupAgreementCibStickyPay\n * billingAgreement.signupAgreementCibStickyContinue\n * billingAgreement.signupAgreementFiStickyPay\n * billingAgreement.signupAgreementFiStickyContinue\n *\n * @param {cart} a CheckoutCartModel instance\n * @param {appData} a CheckoutAppDataModel instance\n * @return {String}\n */\n\nvar getBAContentKey = exports.getBAContentKey = function getBAContentKey() {\n var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n cart = _ref.cart,\n appData = _ref.appData,\n locale = _ref.locale;\n\n var consentCode = cart.get('billing.consent_code');\n\n if (consentCode) {\n return 'enterpriseAgreement.' + consentCode + 'NoFiStickyConsentSignup';\n }\n\n var isCIB = cart.get('billing.type') === 'CHANNEL_INITIATED_BILLING';\n var type = isCIB ? 'Cib' : 'Fi';\n var useraction = appData.useraction();\n var action = useraction === 'commit' ? 'Pay' : 'Continue';\n var isIndiaDomestic = locale.country === 'IN' && locale.country === appData.get('merchant.merchant_country', 'US');\n var indiaDomestic = isIndiaDomestic ? 'Domestic' : '';\n var keySuffix = type + 'Sticky' + indiaDomestic + action;\n\n return 'billingAgreement.signupAgreement' + keySuffix;\n};\n\n/**\n * Returns the appropriate RP xo-content key.\n *\n * billingAgreement.signupRpAgreementFiStickyPay\n * billingAgreement.signupRpAgreementFiStickyContinue\n *\n * @param {appData} a CheckoutAppDataModel instance\n * @return {String}\n */\nvar getRPContentKey = exports.getRPContentKey = function getRPContentKey() {\n var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n appData = _ref2.appData;\n\n var useraction = appData.useraction();\n var action = useraction === 'commit' ? 'Pay' : 'Continue';\n\n return 'billingAgreement.signupRpAgreementFiSticky' + action;\n};\n\nvar getSusbcriptionsV1ContentKey = exports.getSusbcriptionsV1ContentKey = function getSusbcriptionsV1ContentKey() {\n return 'billingAgreement.signupAgreementSubscriptionsV1';\n};\n\n/**\n * Determines and returns content key for billing agreement flow.\n * Takes care of MIB, CIB, RP, WPS Subscriptions, Subscriptions V1 (API integration).\n * WPS Susbcription and RP BA Text is same.\n *\n * @param cart\n * @param appData\n * @param locale\n * @return {object} containing contentKey and idSelector to be applied to span element displaying BA text\n */\nvar getBillingAgreementContentInfo = exports.getBillingAgreementContentInfo = function getBillingAgreementContentInfo() {\n var _ref3 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n cart = _ref3.cart,\n appData = _ref3.appData,\n locale = _ref3.locale,\n subscriptionData = _ref3.subscriptionData;\n\n var showBAContent = cart.isBilling() && !cart.isWalletTokenization();\n var isWpsSubscription = appData.is_wps_subscription_flow();\n var isSubscriptionsV1 = cart.isSubscriptionsV1();\n var isRP = cart.get('billing.type') === 'RECURRING_PAYMENTS';\n var showBillingAgreementText = showBAContent && !isRP && !isWpsSubscription && !isSubscriptionsV1;\n var showRpAgreementText = showBAContent && (isRP || isWpsSubscription);\n var showSubscriptionsV1AgreementText = showBAContent && isSubscriptionsV1;\n var country = locale.country,\n lang = locale.lang;\n\n var merchantName = appData.getMerchantDisplayName({\n nonEmptyReturnValue: true\n });\n\n if (showBillingAgreementText) {\n return {\n contentKey: getBAContentKey({ cart: cart, appData: appData, locale: locale }),\n idSelector: 'billingAgreement',\n data: { merchantName: merchantName, country: country, lang: lang }\n };\n } else if (showRpAgreementText) {\n return {\n contentKey: getRPContentKey({ appData: appData }),\n idSelector: 'rpAgreement',\n data: { merchantName: merchantName, country: country, lang: lang }\n };\n } else if (showSubscriptionsV1AgreementText) {\n var plan = subscriptionData.planReview.new_plan || subscriptionData.planReview.current_plan;\n var maxAmt = plan && plan.initial_payment_info && plan.initial_payment_info.maximum_payment_amount;\n var subscriptionsMaxAmount = maxAmt && (0, _squid.formatCurrency)(maxAmt.value / 100, maxAmt.currency_code);\n var subscriptionAmtChangeNotice = subscriptionData.billingAgreementCart.price_change_advance_notification_days;\n\n return {\n contentKey: getSusbcriptionsV1ContentKey(),\n idSelector: 'subscriptionsV1Agreement',\n data: { subscriptionsMaxAmount: subscriptionsMaxAmount, subscriptionAmtChangeNotice: subscriptionAmtChangeNotice, merchantName: merchantName, country: country, lang: lang }\n };\n }\n return {};\n};\n\n_squid.formatCurrency;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/lib/contentKeys.js\n// module id = ../node_modules/xo-guest-components/src/lib/contentKeys.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.hasDialingCodeOverride = exports.redirectToSubscriptionFinalRoute = exports.decodeEntities = exports.hasAddressChanged = undefined;\n\nvar _angular = require('angular');\n\nvar _squid = require('squid');\n\nvar isString = function isString(value) {\n return typeof value === 'string';\n}; // eslint-disable-line angular/typecheck-string\n\nvar areAddressFieldsEqual = function areAddressFieldsEqual(address1Field, address2Field) {\n if (address1Field === address2Field) {\n return true;\n }\n\n var fields = [address1Field, address2Field];\n\n if (fields.includes(undefined) && fields.includes('')) {\n return true;\n }\n\n if (isString(address1Field) && isString(address2Field)) {\n return address1Field.toUpperCase() === address2Field.toUpperCase();\n }\n\n return false;\n};\n\nvar hasAddressChanged = exports.hasAddressChanged = function hasAddressChanged(address1, address2) {\n var addressFields = ['line1', 'line2', 'city', 'state', 'postal_code', 'country_code'];\n\n return addressFields.some(function (field) {\n return !areAddressFieldsEqual(address1[field], address2[field === 'country_code' ? 'country' : field]);\n });\n};\n\nvar decodeEntities = exports.decodeEntities = function decodeEntities(input) {\n // A constant key that can be used to find the element\n var ENTITY_ELEM = '__xpc_entitydecoder__';\n\n // Create the element if this is the first time this is called\n if (!window[ENTITY_ELEM]) {\n window[ENTITY_ELEM] = document.createElement('p');\n }\n\n var converter = window[ENTITY_ELEM];\n\n converter.innerHTML = input;\n return converter.innerText || converter.text || converter.textContent;\n};\n\nvar redirectToSubscriptionFinalRoute = exports.redirectToSubscriptionFinalRoute = function redirectToSubscriptionFinalRoute() {\n var mode = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'guest';\n var isSubscriptionV1 = arguments[1];\n\n var protocol = _angular.$window.location.protocol + '//';\n var stageUrl = _squid.$meta.stage || _angular.$window.location.hostname;\n var subscriptionReturnUri = isSubscriptionV1 ? _squid.$config.urls.subscriptionsV1ReturnUrl : _squid.$config.urls.wpsSubscriptionReturnUrl;\n var params = {\n token: _squid.$meta.token,\n sdkMeta: _squid.$meta.sdkMeta,\n mode: mode,\n // Read mfid from params in case buyer landed with 302 URL redirection,\n // and meta for internal redirects.\n mfid: _squid.$util.param('mfid') || _squid.$meta.mfid,\n 'country.x': _squid.$locale.country,\n 'locale.x': _squid.$locale.lang + '_' + _squid.$locale.country\n };\n var redirectUrl = _squid.$util.buildURL(protocol + stageUrl + subscriptionReturnUri, params);\n\n _squid.$util.redirect(redirectUrl);\n};\n\n/**\n * Certain regions (ie: Macau) live within territories\n * but have their own dialing codes. We need to shift the UX\n * to have the phone number after the province selection\n * https://engineering.paypalcorp.com/jira/browse/PPPLMER-48433\n */\nvar hasDialingCodeOverride = exports.hasDialingCodeOverride = function hasDialingCodeOverride() {\n var overrides = _squid.$locale.metadata.regionalOverrides;\n\n if (!overrides) {\n return false;\n }\n\n return Object.keys(overrides).map(function (key) {\n return overrides[key].props;\n }).some(function (override) {\n return override.hasOwnProperty('internationalDialingCode');\n });\n};\n\n_angular.$window;\n\n_squid.$meta;\n\n_squid.$util;\n\n_squid.$locale;\n\n_squid.$config;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/lib/util.js\n// module id = ../node_modules/xo-guest-components/src/lib/util.js\n// module chunks = 0","\n\ndefine(['squid/index', 'text!./template.html'], function (squid, template, opinionlab) {\n\n squid.module('xo-login-button.directive', ['squid']).directive('xoLoginButton', [function () {\n\n return {\n template: template,\n\n scope: {\n redirect: '=?'\n },\n\n controller: ['$scope', function ($scope) {}]\n };\n }]);\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/login-button/directive.js\n// module id = ../node_modules/xo-guest-components/src/login-button/directive.js\n// module chunks = 0","\n\nvar _logger = require('xo-beaver/dist/logger');\n\ndefine(['angular', 'squid/index', 'text!./template.html', '../lib/util', 'xo-page-components/src/value-props/directive', 'xo-form-components/src/phone/phoneInput/directive', 'xo-form-components/src/name-input/directive', 'guest/emailInput/directive', 'guest/passwordInput/directive', 'guest/countryList/directive', 'guest/sepa/directive', // TODO: Check if its used\n'guest/select-shipping-method/directive', 'guest/xoonHeader/directive.js', 'xo-models/src/onboard/index', 'login-button/directive', 'xo-locale/dist/index', 'xo-locale/dist/helper', 'xo-models/src/address/index', 'xo-models/src/checkout/index', 'xo-models/src/shippingMethod/index', 'xo-ui-components/src/ui-utils/directive', 'xo-ui-components/src/accessibility/directive', 'xo-page-components/src/ba-message-banner/directive'], function (angular, module, template, util) {\n return angular.module('xo-multistep-signup-add-card.directive', ['squid', 'xo-value-props.directive', 'xo-phone.phoneInput', 'xo-name-input.directive', 'xo-guest.emailInput', 'xo-guest.passwordInput', 'xo-guest.countryList', 'xo-onboard.sepa.directive', // TODO: Check if its used\n 'xo-guest-select-shipping-method.directive', 'xo-xoon-header.directive', 'xomodel.onboard', 'xo-login-button.directive', 'locale.helper', 'xomodel.address', 'xomodel.checkout', 'xo-ui-utils.directive', 'xo-accessibility.directive', 'xo-ba-message-banner.directive']).directive('formErrorDetect', [function () {\n return function ($scope, el, attrs) {\n $scope.$watch(attrs.name + '.$error', function (newVal, oldVal) {\n var cardModel = $scope.multistepSignupModel.onboard.card;\n\n /*\n * Here we are making sure that both luhn and len validation\n * together marks the cardModel validity which in-tern handles\n * form submit and validity in front-end\n * Background:\n * card input element has luhn and len validation as part of\n * ui-validate util\n */\n if (newVal.luhn && newVal.luhn[0].$invalid || newVal.len && newVal.len[0].$invalid) {\n cardModel.valid = false;\n } else {\n cardModel.valid = true;\n }\n }, true);\n };\n }]).directive('xoMultistepSignupAddCard', [function () {\n return {\n template: template,\n\n scope: {\n token: '=?',\n parentCallbacks: '=?',\n multistepSignupModel: '=?',\n positionToErrorField: '=?',\n backState: '=?',\n backendError: '=?',\n clearBackendError: '=?',\n normalizeAddress: '=?',\n prefillAddressCommon: '=?',\n buttonParams: '=?'\n },\n\n link: function link($scope) {\n $scope.$watch(function () {\n return $scope.multistepSignupModel.onboard.card.number;\n }, function cardNumberChangeHandler(newValue, oldValue) {\n // Sanitize the values\n newValue = newValue ? newValue.replace(/ /g, '').toLowerCase() : null;\n oldValue = oldValue ? oldValue.replace(/ /g, '').toLowerCase() : null;\n\n if (newValue) {\n if (newValue !== oldValue) {\n if ($scope.multistepSignupModel.selectedInstallmentData && !$scope.multistepSignupModel.selectedInstallmentData.preventChange) {\n // Resetting selected installment data, if installment change is not explicitly prohibited.\n $scope.multistepSignupModel.selectedInstallmentData = undefined;\n }\n }\n }\n });\n\n $scope.$watch(function () {\n return $scope.multistepSignupModel.onboard.card.type;\n }, function cardTypeChangeHandler(newValue, oldValue) {\n // Sanitize the values\n newValue = newValue ? newValue.replace(/ /g, '').toLowerCase() : null;\n\n var eligibilityModel = $scope.multistepSignupModel.eligibilityModel;\n var cardNetwork;\n\n if (newValue && eligibilityModel && eligibilityModel.installments && eligibilityModel.installments.length > 0) {\n eligibilityModel.installments.some(function cardCheck(card, index, array) {\n if (card.cardInfo && card.cardInfo.card_type && card.cardInfo.card_type.toLowerCase() === newValue) {\n // Card Network Found\n cardNetwork = card;\n return true;\n }\n return false;\n });\n\n if (cardNetwork && cardNetwork.installment_options && cardNetwork.installment_options.length > 0) {\n // Card network && installments found\n if (cardNetwork.installment_options.length === 1) {\n $scope.multistepSignupModel.selectedInstallmentData = {\n installment_option_selected: cardNetwork.installment_options[0],\n preventChange: true\n };\n }\n\n $scope.multistepSignupModel.allowInstallments = true;\n } else {\n // Card network does not exists Or No installment found\n $scope.multistepSignupModel.allowInstallments = false;\n }\n } else {\n $scope.multistepSignupModel.allowInstallments = false;\n }\n });\n\n $scope.$on('$destroy', function () {\n $scope.clearBackendError('multistepsignupaddcard');\n });\n\n if ($scope.backendError) {\n $scope.backendError('multistepsignupaddcard');\n }\n },\n\n controller: ['$scope', '$rootScope', '$populate', '$state', '$util', '$locale', '$feature', '$q', '$CheckoutAppDataModel', '$ShippingRuleSummaryModel', '$CheckoutPayeeModel', '$CheckoutCartModel', '$BillingAddressModel', '$ShippingAddressModel', '$PrefillAddressModel', '$pxpFactors', '$config', '$dispatch', '$localeHelper', '$location', '$meta', function ($scope, $rootScope, $populate, $state, $util, $locale, $feature, $q, $CheckoutAppDataModel, $ShippingRuleSummaryModel, $CheckoutPayeeModel, $CheckoutCartModel, $BillingAddressModel, $ShippingAddressModel, $PrefillAddressModel, $pxpFactors, $config, $dispatch, $localeHelper, $location, $meta) {\n $scope.locale = $locale;\n $scope.formattedValues = {};\n $scope.mode = 'signup';\n $scope.fiMode = 'card';\n $scope.backUri = 'checkout.multistepsignup.multistepsignupaddcard';\n $scope.normalize = $feature('addressNormalization', false, $locale.country);\n $scope.componentsFlag = util.componentsMap($locale.country);\n\n $scope.$on('localeChange', function () {\n $scope.componentsFlag = util.componentsMap($locale.country);\n $scope.multistepSignupModel.onboard.billing_address.country = $locale.country;\n $scope.multistepSignupModel.onboard.shipping_address.country = $locale.country;\n });\n\n $scope.zipMasking = function () {\n var newValue = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n\n $scope.formattedValues.postalCode = $locale.country === 'RU' ? newValue : util.maskingUtil.maskZip(newValue);\n $scope.multistepSignupModel.onboard.billing_address.postal_code = $scope.formattedValues.postalCode && $scope.formattedValues.postalCode.replace(/[^0-9]/gi, '');\n };\n\n function checkShippingRulesExist() {\n if ($scope.multistepSignupModel.wps_flow && $scope.multistepSignupModel.snt_supported_flow) {\n return $populate($scope, {\n shippingRulesSummary: $ShippingRuleSummaryModel.instance($rootScope.token).retrieve({\n params: {\n merchant_id: $scope.payee.merchant.id,\n currency_code: $scope.checkoutCart.purchase.amounts.total.currency_code\n }\n })\n }).then(function () {\n if ($scope.shippingRulesSummary.isSnTEnabled) {\n $scope.multistepSignupModel.merchant_has_snt_profile = true;\n }\n });\n } else {\n return $q.when();\n }\n }\n\n $scope.isInstallmentsVisible = function isInstallmentsVisible() {\n var model = $scope.multistepSignupModel;\n var hasConditionMet = model.allowInstallments && model.onboard.card.number && model.onboard.card.valid;\n var isBilling = $scope.checkoutCart.isBilling();\n\n return !isBilling && hasConditionMet;\n };\n\n if ($scope.multistepSignupModel.onboard.ue_billing_address) {\n $scope.multistepSignupModel.onboard.billing_address = $scope.multistepSignupModel.onboard.ue_billing_address;\n $scope.zipMasking($scope.multistepSignupModel.onboard.ue_billing_address.postal_code);\n }\n\n if ($locale.country === 'BR' && $scope.multistepSignupModel.onboard.billing_address) {\n $scope.multistepSignupModel.onboard.billing_address.postal_code = util.maskingUtil.maskZip($scope.multistepSignupModel.onboard.billing_address.postal_code);\n }\n\n $scope.setSelectedCurrency = function (selection) {\n var _$scope$multistepSign = $scope.multistepSignupModel.onboard.card.currencyConvData;\n _$scope$multistepSign = _$scope$multistepSign === undefined ? {} : _$scope$multistepSign;\n var from_code = _$scope$multistepSign.from_code,\n to_code = _$scope$multistepSign.to_code;\n\n\n $scope.selectedCurrency = selection === 'PAYPAL' ? from_code : to_code;\n _logger.$logger.info('CONVERSION_SELECTION_CHANGED_TO_' + selection);\n };\n\n $scope.setSubmitButtonKey = function () {\n var _$scope$multistepSign2 = $scope.multistepSignupModel.flags,\n hasData = _$scope$multistepSign2.hasBuyerFxPrePlanData,\n _$scope$multistepSign3 = _$scope$multistepSign2.buyerFxTreatment,\n treatment = _$scope$multistepSign3 === undefined ? '' : _$scope$multistepSign3;\n\n var inCurrency = treatment.includes('treatment_2') && hasData;\n\n $scope.submitButtonKey = 'common.continue' + (inCurrency ? 'InCurrency' : '') + 'Label';\n };\n\n $scope.$watch('multistepSignupModel.onboard.card.ppconversion', function (selection) {\n $scope.setSelectedCurrency(selection);\n $scope.setSubmitButtonKey();\n });\n\n $scope.setBuyerFxFlag = function (_ref) {\n var treatment = _ref.treatment,\n hasBuyerFxPrePlanData = _ref.hasBuyerFxPrePlanData;\n\n if (treatment) {\n $scope.multistepSignupModel.flags.buyerFxTreatment = treatment;\n }\n\n if (hasBuyerFxPrePlanData) {\n $scope.setSelectedCurrency($scope.multistepSignupModel.onboard.card.ppconversion);\n }\n\n $scope.multistepSignupModel.flags.hasBuyerFxPrePlanData = hasBuyerFxPrePlanData;\n $scope.setSubmitButtonKey();\n\n _logger.$logger.info('SETTING_BUYER_FX_FLAG_IN_MULTISTEP_DIR', {\n treatment: treatment,\n hasBuyerFxPrePlanData: hasBuyerFxPrePlanData\n });\n };\n\n $scope.submitButtonKey = 'common.continueLabel';\n\n $populate($scope, {\n checkoutAppData: $CheckoutAppDataModel.instance($scope.token),\n payee: $CheckoutPayeeModel.instance($scope.token),\n checkoutCart: $CheckoutCartModel.instance($scope.token)\n }).then(function () {\n // Needed to show custom description sent by merchant in Billing Agreement flow\n $scope.billingAgreementMerchantMsg = $scope.checkoutCart.getBillingDescription();\n\n // Log to FPTI to indicate the page has been rendered\n _logger.$logger.info('checkout_fpti', {\n from: 'CHECKOUT_MULTISTEPSIGNUP',\n to: 'prepare_checkout_multistepsignup'\n });\n\n $scope.multistepSignupModel.flags.allowEditShipping = $scope.checkoutAppData.get('flags.allow_change_shipping', false);\n\n $scope.multistepSignupModel.installmentDisabled = $scope.checkoutCart.isBilling();\n\n $scope.multistepSignupModel.wps_flow = $scope.checkoutAppData.is_wps_flow();\n $scope.multistepSignupModel.snt_supported_flow = $scope.checkoutAppData.is_snt_supported();\n\n $scope.showShippingAddress = Boolean(!$scope.checkoutAppData.flags.hide_shipping_address && $scope.checkoutAppData.flags.shipping_address_required);\n\n checkShippingRulesExist();\n\n $scope.prefill = function () {\n var postal_code = $scope.multistepSignupModel.onboard.billing_address.postal_code;\n\n $scope.prefillAddressCommon(postal_code, $scope.multistepSignupModel.onboard.billing_address, $scope.multistepSignupModel.onboard.user, $scope.multistepSignupModel.flags.billingAddress, false);\n };\n\n // Get merchant passed shipping address from either purchase plan or billing agreement plan\n var merchantSuppliedAddress = $scope.checkoutCart.get('purchase.shipping_address') || $scope.checkoutCart.get('billing.shipping_address');\n var merchantSuppliedNumber = $scope.checkoutCart.get('purchase.phone_fields') || $scope.checkoutCart.get('billing.phone_fields');\n\n if (merchantSuppliedAddress && !$scope.multistepSignupModel.onboard.ue_billing_address) {\n $scope.multistepSignupModel.onboard.billing_address = $BillingAddressModel.create($scope.token, {\n country: $locale.country\n }, merchantSuppliedAddress);\n\n $scope.prefill();\n\n $scope.zipMasking($scope.multistepSignupModel.onboard.billing_address.postal_code);\n\n $scope.multistepSignupModel.onboard.billing_address.postal_code = $scope.formattedValues.postalCode;\n $scope.multistepSignupModel.onboard.user.first_name = merchantSuppliedAddress.first_name;\n $scope.multistepSignupModel.onboard.user.last_name = merchantSuppliedAddress.last_name;\n }\n\n if (merchantSuppliedNumber && merchantSuppliedNumber.telephone_country === $locale.country) {\n $scope.multistepSignupModel.onboard.phone.telephone = merchantSuppliedNumber.normalized_phone_number;\n }\n });\n\n var basl_hermes_xoon_redirect = $util.param('hermesXoonRedirect') || $meta.query && $meta.query.hermesXoonRedirect;\n var basl_abtest_throttle = $util.param('abTestThrottle') || $meta.query && $meta.query.abTestThrottle;\n\n $scope.showLogin = basl_hermes_xoon_redirect || basl_abtest_throttle;\n\n $scope.redirect = function () {\n $dispatch('hermes', {\n hermesLoginRedirect: 'xoon',\n token: $scope.token,\n 'locale.x': $locale.lang + '_' + $locale.country,\n 'country.x': $locale.country\n });\n };\n\n $scope.uponNormalization = function (normalizedAddress, isBack) {\n if (isBack) {\n $location.path('/checkout/multistepsignup/multistepsignupaddcard').replace();\n } else {\n $scope.normalize = false;\n $scope.multistepSignupModel.onboard.billing_address.setProperties(normalizedAddress);\n\n if ($scope.multistepSignupModel.flags.shipToBilling) {\n $location.path('/checkout/multistepsignup/multistepsignupcreateaccount').replace();\n } else {\n $location.path('/checkout/multistepsignup/multistepsignupaddshipping').replace();\n }\n }\n };\n\n $scope.changeCountry = function changeCountry() {\n if ($scope.multistepSignupModel.onboard.shipping_address.country && $scope.multistepSignupModel.onboard.shipping_address.country !== $locale.country) {\n $scope.multistepSignupModel.onboard.shippingCountryChanged = true;\n $rootScope.$broadcast('countryChange', $scope.multistepSignupModel.onboard.shipping_address.country);\n } else {\n $scope.multistepSignupModel.onboard.shippingCountryChanged = false;\n }\n };\n\n $scope.onSubmit = function onSubmit() {\n // Backup user entered address\n $scope.multistepSignupModel.onboard.ue_billing_address = $BillingAddressModel.create($scope.token, {\n country: $locale.country\n }, $scope.multistepSignupModel.onboard.billing_address);\n\n if ($scope.componentsFlag.shippingAddress) {\n $scope.multistepSignupModel.onboard.ue_shipping_address = $ShippingAddressModel.create($scope.token, {\n country: $locale.country\n }, $scope.multistepSignupModel.onboard.shipping_address);\n }\n\n // Remove phone formatting\n $scope.multistepSignupModel.onboard.phone.telephone = $scope.multistepSignupModel.onboard.phone.telephone.replace(/[^0-9]/gi, '');\n\n if ($scope.normalize) {\n $scope.clearBackendError('multistepsignupaddcard');\n $scope.normalizeAddress($scope.multistepSignupModel.onboard.billing_address, $scope.uponNormalization);\n } else if ($scope.componentsFlag.shippingAddressPage) {\n if (!$scope.multistepSignupModel.flags.shipToBilling) {\n $state.go('checkout.multistepsignup.multistepsignupaddshipping');\n }\n } else {\n $state.go('checkout.multistepsignup.multistepsignupcreateaccount');\n }\n };\n }]\n };\n }]);\n});\n\n_logger.$logger;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/multistep-signup/addCard/directive.js\n// module id = ../node_modules/xo-guest-components/src/multistep-signup/addCard/directive.js\n// module chunks = 0","\n\ndefine(['angular', 'squid/index', './directive', 'pages/xo-sidebar/route'], function (angular, squid) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n angular.module('xo-multistep-signup-add-card.route', ['squid', 'xo-multistep-signup-add-card.directive', 'hermes.page.xo-sidebar.route']).factory('$MultistepSignupAddCardRoute', ['$ComponentRoute', function ($ComponentRoute) {\n\n return $ComponentRoute.extend('MultistepSignupAddCardRoute', {\n name: 'multistepsignupaddcard',\n\n directive: 'xo-multistep-signup-add-card',\n\n children: [{\n name: '$SidebarRoute',\n attributes: {\n 'back-uri': 'backUri',\n 'parent-model': 'multistepSignupModel'\n }\n }]\n });\n }]);\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/multistep-signup/addCard/route.js\n// module id = ../node_modules/xo-guest-components/src/multistep-signup/addCard/route.js\n// module chunks = 0","\n\ndefine(['angular', 'squid/index', 'text!./template.html', '../lib/util', 'xo-page-components/src/value-props/directive'], function (angular, module, template, util) {\n\n return angular.module('xo-multistep-signup-add-shipping.directive', ['squid', 'xo-value-props.directive']).directive('xoMultistepSignupAddShipping', [function () {\n\n return {\n template: template,\n\n scope: {\n token: '=?',\n parentCallbacks: '=?',\n multistepSignupModel: '=?',\n positionToErrorField: '=?',\n backState: '=?',\n backendError: '=?',\n clearBackendError: '=?',\n normalizeAddress: '=?',\n prefillAddressCommon: '=?'\n },\n\n link: function link($scope) {\n if ($scope.backendError) {\n $scope.backendError('multistepsignupaddshipping');\n }\n\n $scope.$on('$destroy', function () {\n $scope.clearBackendError('multistepsignupaddshipping');\n });\n },\n\n controller: ['$scope', '$rootScope', '$populate', '$state', '$util', '$locale', '$feature', '$ShippingAddressModel', '$CheckoutAppDataModel', '$CheckoutCartModel', '$pxpFactors', '$config', '$location', function ($scope, $rootScope, $populate, $state, $util, $locale, $feature, $ShippingAddressModel, $CheckoutAppDataModel, $CheckoutCartModel, $pxpFactors, $config, $location) {\n\n $scope.locale = $locale;\n $scope.validated = false;\n $scope.formattedValues = {};\n $scope.normalize = $feature('addressNormalization', false, $locale.country);\n $scope.prefillDone = false;\n\n if (!$scope.multistepSignupModel.onboard.shippingCountryChanged) {\n $scope.multistepSignupModel.onboard.shippingCountryChanged = false;\n }\n\n $scope.zipMasking = function (newValue) {\n $scope.formattedValues.postalCode = util.maskingUtil.maskZip(newValue);\n $scope.multistepSignupModel.onboard.shipping_address.postal_code = $scope.formattedValues.postalCode.replace(/[^0-9]/gi, '');\n };\n\n if ($scope.multistepSignupModel.onboard.ue_shipping_address) {\n $scope.multistepSignupModel.onboard.shipping_address = $scope.multistepSignupModel.onboard.ue_shipping_address;\n $scope.zipMasking($scope.multistepSignupModel.onboard.ue_shipping_address.postal_code);\n }\n\n $scope.changeCountry = function changeCountry() {\n if ($scope.multistepSignupModel.onboard.shipping_address.country && $scope.multistepSignupModel.onboard.shipping_address.country !== $locale.country) {\n $scope.multistepSignupModel.onboard.shippingCountryChanged = true;\n $rootScope.$broadcast('countryChange', $scope.multistepSignupModel.onboard.shipping_address.country);\n } else {\n $scope.multistepSignupModel.onboard.shippingCountryChanged = false;\n }\n };\n\n $populate($scope, {\n checkoutAppData: $CheckoutAppDataModel.instance($scope.token),\n checkoutCart: $CheckoutCartModel.instance($scope.token)\n }).then(function () {\n // To fix the back case where the '-' is not added to zip code\n if ($scope.multistepSignupModel.onboard.shipping_address) {\n $scope.multistepSignupModel.onboard.shipping_address.postal_code = util.maskingUtil.maskZip($scope.multistepSignupModel.onboard.shipping_address.postal_code);\n }\n\n $scope.prefill = function (override) {\n var postal_code = $scope.multistepSignupModel.onboard.shipping_address.postal_code;\n\n $scope.prefillAddressCommon(postal_code, $scope.multistepSignupModel.onboard.shipping_address, $scope.multistepSignupModel.onboard.shipping_address, $scope.multistepSignupModel.flags.shippingAddress, override);\n\n if (!$scope.prefillDone) {\n $scope.prefillDone = true;\n }\n };\n\n // Get merchant passed shipping address from either purchase plan or billing agreement plan\n var merchantSuppliedAddress = $scope.checkoutCart.get('purchase.shipping_address') || $scope.checkoutCart.get('billing.shipping_address');\n\n if (merchantSuppliedAddress && !$scope.multistepSignupModel.onboard.ue_shipping_address) {\n $scope.multistepSignupModel.onboard.shipping_address = $ShippingAddressModel.create($scope.token, {\n country: $locale.country\n }, merchantSuppliedAddress);\n $scope.prefill(true);\n $scope.zipMasking($scope.multistepSignupModel.onboard.shipping_address.postal_code);\n $scope.multistepSignupModel.onboard.shipping_address.postal_code = $scope.formattedValues.postalCode;\n }\n });\n\n $scope.uponNormalization = function (normalizedAddress, isBack) {\n if (isBack) {\n $location.path('/checkout/multistepsignup/multistepsignupaddshipping').replace();\n } else {\n $scope.normalize = false;\n $scope.multistepSignupModel.onboard.shipping_address.setProperties(normalizedAddress);\n $location.path('/checkout/multistepsignup/multistepsignupcreateaccount').replace();\n }\n };\n\n $scope.validate = function () {\n $scope.validated = true;\n return true;\n };\n\n $scope.onSubmit = function onSubmit() {\n // set recipient_name property\n var shippingAddress = $scope.multistepSignupModel.onboard.shipping_address;\n // TODO: in some locale, last_name can be displayed first, and space ' ' can be unnecessary.\n\n shippingAddress.recipient_name = shippingAddress.first_name + ' ' + shippingAddress.last_name;\n\n // backup user entered address\n $scope.multistepSignupModel.onboard.ue_shipping_address = $ShippingAddressModel.create($scope.token, {\n country: $locale.country\n }, shippingAddress);\n\n if ($scope.normalize) {\n $scope.clearBackendError('multistepsignupaddshipping');\n $scope.normalizeAddress(shippingAddress, $scope.uponNormalization);\n } else {\n $state.go('checkout.multistepsignup.multistepsignupcreateaccount');\n }\n };\n }]\n };\n }]);\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/multistep-signup/addShipping/directive.js\n// module id = ../node_modules/xo-guest-components/src/multistep-signup/addShipping/directive.js\n// module chunks = 0","\n\ndefine(['angular', 'squid/index', './directive'], function (angular, squid) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n angular.module('xo-multistep-signup-add-shipping.route', ['squid', 'xo-multistep-signup-add-shipping.directive']).factory('$MultistepSignupAddShippingRoute', ['$ComponentRoute', function ($ComponentRoute) {\n\n return $ComponentRoute.extend('MultistepSignupAddShippingRoute', {\n name: 'multistepsignupaddshipping',\n\n directive: 'xo-multistep-signup-add-shipping',\n\n children: [{\n name: '$AddressNormalizationRoute',\n attributes: {\n id: 'token',\n address: 'multistepSignupModel.onboard.shipping_address',\n 'done-fn': 'uponNormalization'\n }\n }]\n });\n }]);\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/multistep-signup/addShipping/route.js\n// module id = ../node_modules/xo-guest-components/src/multistep-signup/addShipping/route.js\n// module chunks = 0","\n\ndefine(['angular', 'squid/index', 'text!./template.html', 'js/lib/index', 'xo-page-components/src/value-props/directive', '../lib/util'], function (angular, module, template) {\n\n return angular.module('xo-multistep-signup-address-normalization.directive', ['squid', 'xo-value-props.directive']).directive('xoMultistepSignupAddressNormalization', ['$rootScope', function ($rootScope) {\n\n return {\n template: template,\n\n scope: {\n id: '=?',\n address: '=?',\n doneFn: '=?'\n },\n\n controller: ['$scope', '$locale', '$config', function ($scope, $locale, $config) {}]\n };\n }]);\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/multistep-signup/addressNormalization/directive.js\n// module id = ../node_modules/xo-guest-components/src/multistep-signup/addressNormalization/directive.js\n// module chunks = 0","\n\ndefine(['angular', 'squid/index', './directive'], function (angular, squid) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n angular.module('xo-multistep-signup-address-normalization.route', ['squid', 'xo-multistep-signup-address-normalization.directive']).factory('$MultistepSignupAddressNormalizationRoute', ['$ComponentRoute', function ($ComponentRoute) {\n\n return $ComponentRoute.extend('MultistepSignupAddressNormalizationRoute', {\n name: 'multistepsignupaddressnormalization',\n\n directive: 'xo-multistep-signup-address-normalization',\n\n children: []\n });\n }]);\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/multistep-signup/addressNormalization/route.js\n// module id = ../node_modules/xo-guest-components/src/multistep-signup/addressNormalization/route.js\n// module chunks = 0","\n\nvar _util = require('../../lib/util');\n\nvar _logger = require('xo-beaver/dist/logger');\n\nvar _utils = require('../../guest/currencyConversion/utils');\n\ndefine(['angular', 'squid/index', '../lib/util', '../../lib/util', 'xo-models/src/inventory/index', 'xo-models/src/shoppingcart/index'], function (angular, squid, util) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n squid.module('xomultistepsignupapi', ['squid']).factory('$MultistepApiCalls', ['$MultistepSignupModel', '$CheckoutSessionModel', '$CheckoutAppDataModel', '$CheckoutPayeeModel', '$InventoryModel', '$ShoppingCartModel', '$CheckoutCartModel', '$rootScope', '$state', '$config', '$locale', '$NationalIdModel', '$location', '$dispatch', '$getRedirectUrl', '$renderContent', '$q', '$FundingOptionsModel', function ($MultistepSignupModel, $CheckoutSessionModel, $CheckoutAppDataModel, $CheckoutPayeeModel, $InventoryModel, $ShoppingCartModel, $CheckoutCartModel, $rootScope, $state, $config, $locale, $NationalIdModel, $location, $dispatch, $getRedirectUrl, $renderContent, $q, $FundingOptionsModel) {\n\n function processFieldMap(errorCategory) {\n var fieldMap = util.contingencyMap(errorCategory.errorCode || errorCategory.code);\n\n if (fieldMap) {\n if (!fieldMap.fields && (errorCategory.fields || errorCategory.details && errorCategory.details.fields)) {\n // eslint-disable-line no-extra-parens\n errorCategory.fields = errorCategory.fields || errorCategory.details && errorCategory.details.fields;\n\n var fields = errorCategory.fields.map(function (value, index, array) {\n if (angular.isString(value)) {\n return {\n field: value\n };\n }\n\n return value;\n });\n\n fieldMap.fields = fields;\n }\n } else {\n _logger.$logger.info('signup_validation_error', {\n message: errorCategory.errorCode || errorCategory.code + ' not mapped'\n });\n }\n\n return fieldMap;\n }\n\n function redirectTohermesCC(path, $location, token) {\n // eslint-disable-line no-shadow\n var url;\n var protocol;\n var host;\n var port;\n\n protocol = $location.protocol() + '://';\n\n if ($location.host()) {\n host = $location.host();\n }\n\n if ($location.port()) {\n port = ':' + $location.port();\n }\n\n url = protocol + host + port + config.urls.fallbackUrl.hermes + '?token=' + token + path; // eslint-disable-line no-undef,block-scoped-var\n\n window.location = url;\n }\n\n function setStickyInstrument(checkoutSession) {\n // make billing agreement FI sticky for sign up\n\n var stickyInstrument = checkoutSession.selectedFuturePaymentInstrument ? undefined : checkoutSession.getSelectedStickyInstrument();\n\n if (stickyInstrument) {\n return checkoutSession.action('setStickyFI', {\n data: {\n instrument_id: stickyInstrument.instrument_id\n }\n });\n }\n }\n\n function showGenericError(code) {\n return function () {\n $state.go('checkout.genericError', { code: code });\n };\n }\n\n function markCartCheckedout(checkoutAppData) {\n var shoppingCartModel = $ShoppingCartModel.instance($rootScope.token);\n\n return shoppingCartModel.action('cartCheckedOut', {\n success: function success(result) {\n _logger.$logger.info('cart checked out successfully');\n }\n });\n }\n\n function handlePaymentContingencies(checkoutCart, payee, code) {\n return function () {\n inventoryOperation(checkoutCart, payee, 'failed');\n return $state.go('checkout.genericError', { code: code });\n };\n }\n\n function makePayment(checkoutSession, checkoutCart, checkoutAppData, payee) {\n return checkoutSession.action('createPayment', {\n 'data': {\n payer_id: checkoutSession.payer && checkoutSession.payer.id,\n intent: checkoutCart.payment_action\n },\n success: function success(result) {\n $rootScope.paymentComplete = true;\n if ($config.enableShoppingCartWPS && checkoutAppData.flags.is_shopping_cart_flow) {\n markCartCheckedout(checkoutAppData);\n }\n return $state.go('checkout.done');\n },\n contingencies: {\n TRANSACTION_REFUSED: handlePaymentContingencies(checkoutCart, payee, 'TRANSACTION_REFUSED'),\n INSTRUMENT_DECLINED: function INSTRUMENT_DECLINED(err, message) {\n inventoryOperation(checkoutCart, payee, 'failed');\n _logger.$logger.info('INSTRUMENT_DECLINED_contingency', {\n name: err,\n message: message\n });\n redirectTohermesCC('#checkout/pageAddCard/addCardFlow/addCard', $location, $rootScope.token);\n },\n PAYEE_BLOCKED_TRANSACTION: handlePaymentContingencies(checkoutCart, payee, 'PAYMENT_DENIED'),\n DUPLICATE_TRANSACTION: handlePaymentContingencies(checkoutCart, payee, 'PAYMENT_ALREADY_DONE'),\n CC_PROCESSOR_DECLINED: function CC_PROCESSOR_DECLINED(err, message) {\n inventoryOperation(checkoutCart, payee, 'failed');\n // Log the error and redirect to hermes add card page\n _logger.$logger.info('CC_PROCESSOR_DECLINED_CONTINGENCY', {\n name: err,\n message: message\n });\n redirectTohermesCC('#checkout/pageAddCard/addCardFlow/addCard', $location, $rootScope.token);\n },\n DEFAULT: handlePaymentContingencies(checkoutCart, payee, 'DEFAULT')\n },\n error: function error(err) {\n _logger.$logger.info('createPayment Failed due to service error', err);\n inventoryOperation(checkoutCart, payee, 'failed');\n return $state.go('checkout.genericError', { code: 'DEFAULT' });\n }\n\n });\n }\n\n function authorizeSession(checkoutSession) {\n var multistepSignupModel = $MultistepSignupModel.instance();\n var checkoutAppData = $CheckoutAppDataModel.instance($rootScope.token);\n var payee = $CheckoutPayeeModel.instance($rootScope.token);\n var checkoutCart = $CheckoutCartModel.instance($rootScope.token);\n\n if (checkoutSession.resolve_3ds) {\n var cc_id = checkoutSession.get('resolve_3ds.ccId');\n var plans = checkoutSession.get('plan.sources', null);\n var plan = plans && plans.filter(function (e) {\n return e.instrument_id === cc_id;\n })[0].amount || null;\n\n multistepSignupModel.resolve_3ds_data = {\n cc_id: cc_id,\n flow_id: 'HERMES',\n merchant_id: payee.get('merchant.id'),\n merchant_country_code: checkoutAppData.get('merchant.merchant_country'),\n transaction_amount_currency: plan && plan.currency_code,\n transaction_amount_value: plan && plan.amount\n };\n\n multistepSignupModel.is3ds = true;\n $state.go('checkout.multistepsignup.multistepsignupcreateaccount');\n } else {\n return $q.when(setStickyInstrument(checkoutSession))['catch'](function (err) {\n _logger.$logger.info('setStickyFI Failed', err);\n })['finally'](function () {\n return checkoutSession.action('authorize', {\n success: function success() {\n var isSubscriptionsV1 = checkoutCart.isSubscriptionsV1();\n var isWpsSubscription = checkoutAppData.is_wps_subscription_flow();\n\n if (isWpsSubscription || isSubscriptionsV1) {\n return (0, _util.redirectToSubscriptionFinalRoute)(multistepSignupModel.flags.mode, isSubscriptionsV1);\n } else if (checkoutAppData.doec_on_approve()) {\n return checkInventoryAndPay(checkoutSession, checkoutCart, payee, checkoutAppData);\n } else {\n $state.go('checkout.end');\n }\n }\n });\n });\n }\n }\n\n function inventoryOperation(checkoutCart, payee, paymentStatus) {\n var cartHasInventory = checkoutCart.get('cartHasInventory');\n\n if (cartHasInventory) {\n var inventoryModel = $InventoryModel.instance($rootScope.token);\n var inventoryItems = inventoryModel.getInventoryItems();\n var purchaseItems = checkoutCart.get('purchaseUnits');\n var cartItems,\n inventoryPatchInput = {};\n\n if (purchaseItems && purchaseItems[0] && purchaseItems[0].item_list) {\n cartItems = purchaseItems[0].item_list.items;\n }\n paymentStatus = paymentStatus ? paymentStatus : 'success';\n if (cartItems && inventoryItems) {\n inventoryPatchInput = {\n inventoryItems: inventoryItems,\n cartItems: cartItems,\n merchantId: payee.get('merchant.id', ''),\n paymentStatus: paymentStatus\n };\n } else {\n return $q.when(); // don't need to call patchInventory if items not present\n }\n\n return inventoryModel.action('patchInventory', {\n data: inventoryPatchInput,\n success: function success(patchResponse) {\n if (patchResponse) {\n if (patchResponse.showSoldoutPage) {\n // show soldout page\n return {\n soldoutpage: true,\n items: patchResponse.soldoutItems,\n soldOutUrl: patchResponse.soldoutUrl\n };\n } else if (patchResponse.patchCart) {\n var purchase_unit = checkoutCart.get('purchaseUnits')[0];\n\n purchase_unit.item_list.items = patchResponse.cartItems;\n var patchCartPayload = {\n id: $rootScope.token,\n patchEntities: [{\n field: 'inventoryItems',\n value: purchase_unit.item_list.items\n }]\n };\n\n return checkoutCart.action('patchCartData', {\n data: patchCartPayload\n });\n }\n } else {\n return;\n }\n }\n });\n } else {\n return $q.when(); // not an inventory request proceed with existing flow\n }\n }\n\n function checkInventoryAndPay(checkoutSession, checkoutCart, payee, checkoutAppData) {\n return inventoryOperation(checkoutCart, payee).then(function (result) {\n if (result && result.soldoutpage) {\n return $state.go('checkout.soldout', {\n items: encodeURIComponent(result.items),\n soldOutUrl: encodeURIComponent(result.soldOutUrl)\n });\n }\n return makePayment(checkoutSession, checkoutCart, checkoutAppData, payee);\n });\n }\n\n function createSession() {\n\n var multistepSignupModel = $MultistepSignupModel.instance();\n var checkoutSession = $CheckoutSessionModel.instance($rootScope.token);\n var checkoutCart = $CheckoutCartModel.instance($rootScope.token);\n\n return checkoutSession.action('create', {\n data: {\n fraudnet_id: checkoutCart.supplementary && checkoutCart.supplementary.risk_correlation_id,\n baToken: checkoutCart.billing && checkoutCart.billing.ba_token\n },\n success: function success() {\n return $q.when().then(function () {\n if (!multistepSignupModel.flags.shipToBilling) {\n return multistepSignupModel.onboard.shipping_address.save({\n\n data: multistepSignupModel.onboard.shipping_address.serialize(),\n\n validation: function validation(message, err) {\n // TODO need to handle\n }\n });\n }\n }).then(function () {\n var _ref = multistepSignupModel.flags || {},\n hasBuyerFxPrePlanData = _ref.hasBuyerFxPrePlanData,\n buyerFxTreatment = _ref.buyerFxTreatment;\n\n // If this purchase is a cross-border transaction that requires\n // currency conversion then `buyerFxTreatment` will be truthy\n\n\n if (buyerFxTreatment) {\n var _multistepSignupModel = multistepSignupModel.onboard,\n card = _multistepSignupModel.card,\n _multistepSignupModel2 = _multistepSignupModel.card;\n _multistepSignupModel2 = _multistepSignupModel2 === undefined ? {} : _multistepSignupModel2;\n var type = _multistepSignupModel2.type;\n var purchase = checkoutSession.purchase;\n\n var isConversionChangeable = (0, _utils.isConversionChangeableForCardType)(type);\n\n /**\n * If buyer fx pre-plan call failed and the card is changeable\n * then we haven't logged event 3 yet. Event 3 for changeable\n * cards is usually logged in xo-wallet-components creditcard-input\n * directive after a successful call to the pre-plan API.\n */\n if (!hasBuyerFxPrePlanData && isConversionChangeable) {\n /**\n * FPTI event #3 for Buyer FX\n * https://engineering.paypalcorp.com/confluence/display/EDS/Buyer+FX+Instrumentation+Specs\n */\n (0, _utils.logBuyerFxFptiEvent3)(purchase);\n }\n\n /**\n * FPTI event 7 for Buyer FX\n * https://engineering.paypalcorp.com/confluence/display/EDS/Buyer+FX+Instrumentation+Specs\n */\n (0, _utils.logBuyerFxFptiEvent7)({\n card: card,\n hasPrePlanData: hasBuyerFxPrePlanData,\n isConversionChangeable: isConversionChangeable,\n isSignup: true,\n purchase: purchase\n });\n }\n\n if (checkoutSession.get('plan.conversion.paypal') && checkoutSession.get('plan.conversion.changeable') && multistepSignupModel.onboard.card.ppconversion === 'VENDOR') {\n return $FundingOptionsModel.instance($rootScope.token).action('updateConversion', {\n data: {\n conversionType: 'VENDOR',\n planId: checkoutSession.plan.id\n }\n })['catch'](function (err) {\n _logger.$logger.warn('ERROR_updateConversion to VENDOR failed', err);\n });\n }\n }).then(function () {\n return authorizeSession(checkoutSession);\n });\n },\n contingencies: {\n TRANSACTION_REFUSED: showGenericError('TRANSACTION_REFUSED'),\n NEED_CREDIT_CARD: function NEED_CREDIT_CARD(err, message) {\n _logger.$logger.info('NEED_CREDIT_CARD_contingency', {\n name: err,\n message: message\n });\n redirectTohermesCC('#checkout/pageAddCard/addCardFlow/addCard', $location, $rootScope.token);\n }\n }\n });\n }\n\n var multiStepFunctions = {\n\n onboard: function onboard() {\n\n var pageError = { // eslint-disable-line no-reserved-keys\n multistepsignupaddcard: [],\n multistepsignupaddshipping: [],\n multistepsignupcreateaccount: [],\n transient: true\n };\n\n var multistepSignupModel = $MultistepSignupModel.instance();\n\n multistepSignupModel.onboard.billing_address.country = $locale.country;\n multistepSignupModel.onboard.nationalIdModel = $NationalIdModel.instance($rootScope.token);\n\n return multistepSignupModel.onboard.action(multistepSignupModel.flags.mode, {\n\n data: multistepSignupModel.onboard.serialize(),\n\n success: createSession,\n\n contingencies: {\n TRANSACTION_REFUSED: showGenericError('TRANSACTION_REFUSED'),\n TOO_MANY_REQUESTS: function TOO_MANY_REQUESTS() {\n var messages = [];\n\n messages.push($locale.content.get('genericError.genericError'));\n\n multistepSignupModel.pageError = pageError;\n pageError.multistepsignupaddcard.errorMessage = {\n msgs: messages,\n type: 'error'\n };\n\n $state.go('checkout.multistepsignup.multistepsignupaddcard');\n },\n ADD_KYC_FAILED: function ADD_KYC_FAILED() {\n redirectTohermesCC('#/checkout/addNationalId', $location, $rootScope.token);\n },\n CC_LINKED_TO_FULL_ACCOUNT: function CC_LINKED_TO_FULL_ACCOUNT() {\n var messages = [];\n\n messages.push($locale.content.get('creditcard.linkedCardToAddNewCard'));\n\n multistepSignupModel.pageError = pageError;\n pageError.multistepsignupaddcard.errorMessage = {\n msgs: messages,\n type: 'error'\n };\n\n $state.go('checkout.multistepsignup.multistepsignupaddcard');\n },\n ADD_CARD_CONTINGENCY: function ADD_CARD_CONTINGENCY(message, errorData) {\n // @TODO send to correct page in hermes\n // $dispatch('hermes');\n // auth model-> check if user logged in\n var addFIContingency = errorData && errorData[0] === 'VALIDATION_ERROR' ? 'retry' : 'noretry';\n\n $dispatch('hermes', {\n redirectToHermes: true,\n addFIContingency: addFIContingency,\n token: $rootScope.token,\n 'locale.x': $locale.lang + '_' + $locale.country,\n 'country.x': $locale.country\n });\n },\n ISSUER_DECLINE: function ISSUER_DECLINE(message, result) {\n // @TODO send to correct page in hermes\n // $dispatch('hermes');\n redirectTohermesCC('#checkout/pageAddCard/addCardFlow/addCard', $location, $rootScope.token);\n },\n VALIDATION_ERROR: function VALIDATION_ERROR(message, errors) {\n\n var messages = [];\n var compileVars = {\n loginRedirectUrl: $getRedirectUrl('hermes', {\n hermesLoginRedirect: 'xoon'\n })\n };\n // Iterate over the errorData to support multiple error support\n\n Object.keys(errors).forEach(function (key, index, array) {\n\n var errorCategory = errors[key];\n // errorCategory sanity checks\n\n if (!errorCategory || angular.isString(errorCategory) || key === 'transient' || key === 'payload') {\n return;\n }\n\n var fieldMap = processFieldMap(errorCategory);\n var msg;\n var compileMessageWith;\n\n if (fieldMap) {\n\n if (fieldMap.pageError) {\n compileMessageWith = fieldMap.compileMessageWith;\n\n if (compileMessageWith) {\n // substitute the actual value\n // this is required as it is not good to have custom\n // code inside library - lib/utils.js\n $.each(compileMessageWith, function (objKey, val) {\n var actualValue = compileVars[val];\n\n if (actualValue) {\n compileMessageWith[objKey] = actualValue;\n }\n });\n\n msg = $renderContent(fieldMap.pageError.contentKey, compileMessageWith);\n } else {\n msg = $locale.content.get(fieldMap.pageError.contentKey);\n }\n messages.push(msg);\n }\n\n pageError[fieldMap.path].push(fieldMap);\n\n if (messages.length > 0) {\n pageError[fieldMap.path].errorMessage = {\n msgs: messages,\n type: 'error'\n };\n }\n }\n });\n\n multistepSignupModel.pageError = pageError;\n throw pageError;\n }\n },\n validation: function validation(res) {\n if (res && (res.field === 'secondaryId' || res.field === 'passport')) {\n // The validation error cannot be corrected at this point in onboarding\n redirectTohermesCC('#/checkout/addNationalId', $location, $rootScope.token);\n } else {\n _logger.$logger.info('signup_validation', {\n message: res\n });\n }\n }\n });\n },\n\n routeToHermesOn3DSDeclineForSignUp: function routeToHermesOn3DSDeclineForSignUp() {\n // dispatch to hermesnodeweb up on 3DS authenticate decline.\n _logger.$logger.info('xoon_to_hermes_redirect_on_signup_3DS_Authentication_decline');\n $dispatch('hermes', {\n token: $rootScope.token,\n redirectToHermesOn3DSDecline: 'xoon'\n });\n },\n\n clear3DSContingency: function clear3DSContingency() {\n var checkoutSession = $CheckoutSessionModel.instance($rootScope.token);\n\n return checkoutSession.action('clear3DSContingency', {\n data: {\n ccId: checkoutSession.resolve_3ds.ccId\n },\n success: function success() {\n // don't call authorize if the contingency is not cleared\n if (!checkoutSession.resolve_3ds) {\n return authorizeSession(checkoutSession);\n } else {\n multiStepFunctions.routeToHermesOn3DSDeclineForSignUp();\n }\n },\n contingencies: {\n // contingency may be \"no cc\" or any thing from clear3DSContingency(patch on xosession)\n // for \"no cc\" symphony throws NEED_CREDIT_CARD or NEED_CREDIT_CARD_OR_BANK_ACCOUNT\n DEFAULT: function handleContingency(name, contingency) {\n _logger.$logger.info('clear3DSContingency_contingency', {\n 'int_error_description': contingency && contingency.message,\n 'contingency_name': name\n });\n // route to member review page upon patch xo throws contingency for signup\n multiStepFunctions.routeToHermesOn3DSDeclineForSignUp();\n }\n }\n\n });\n }\n\n };\n\n return multiStepFunctions;\n }]);\n});\n\n_util.redirectToSubscriptionFinalRoute;\n\n_logger.$logger;\n\n_utils.isConversionChangeableForCardType;\n\n_utils.logBuyerFxFptiEvent3;\n\n_utils.logBuyerFxFptiEvent7;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/multistep-signup/apiCalls/factory.js\n// module id = ../node_modules/xo-guest-components/src/multistep-signup/apiCalls/factory.js\n// module chunks = 0","\n\nvar _contentKeys = require('../../lib/contentKeys');\n\nvar _subscription = require('xo-models/src/subscription');\n\ndefine(['jquery', 'angular', 'squid/index', 'text!./template.html', '../lib/util', 'xo-page-components/src/value-props/directive', 'xo-models/src/onboard/index', 'xo-models/src/fi/index', 'xo-form-components/src/dob-input/directive', 'xo-form-components/src/national-id-input/directive', 'xo-models/src/user/index', '../apiCalls/factory'], function ($, angular, module, template, util) {\n\n return angular.module('xo-multistep-signup-create-account.directive', ['squid', 'xomodel.onboard', 'xo-value-props.directive', 'xo-dob-input.directive', 'xo-national-id-input.directive', 'xomodel.user', 'xomultistepsignupapi']).directive('xoMultistepSignupCreateAccount', [function () {\n\n return {\n template: template,\n\n scope: {\n token: '=?',\n parentCallbacks: '=?',\n multistepSignupModel: '=?',\n positionToErrorField: '=?',\n backState: '=?',\n backendError: '=?',\n clearBackendError: '=?'\n },\n\n controller: ['$scope', '$rootScope', '$populate', '$state', '$util', '$locale', '$ShippingAddressModel', '$logger', '$CheckoutSessionModel', '$CheckoutAppDataModel', '$CheckoutCartModel', '$UserInfoModel', '$dispatch', '$pxpFactors', '$config', '$MultistepApiCalls', '$pxp', function ($scope, $rootScope, $populate, $state, $util, $locale, $ShippingAddressModel, $logger, $CheckoutSessionModel, $CheckoutAppDataModel, $CheckoutCartModel, $UserInfoModel, $dispatch, $pxpFactors, $config, $MultistepApiCalls, $pxp) {\n\n // Log to FPTI to indicate the page has been rendered\n $logger.info('checkout_fpti', {\n from: 'CHECKOUT_MULTISTEPSIGNUP_MULTISTEPSIGNUPCREATEACCOUNT',\n to: 'prepare_checkout_multistepsignup_multistepsignupcreateaccount'\n });\n\n $scope.locale = $locale;\n $scope.componentsFlag = util.componentsMap($locale.country);\n $scope.metadata = angular.copy($locale.metadata);\n $scope.countries = $scope.metadata.territory;\n\n $scope.checkoutCart = $CheckoutCartModel.instance($scope.token);\n $scope.checkoutAppData = $CheckoutAppDataModel.instance($scope.token);\n if ($scope.checkoutCart && $scope.checkoutCart.isSubscriptionsV1()) {\n $scope.subscriptionsV1Model = _subscription.$SubscriptionsV1Model.instance($scope.checkoutCart.getBaToken());\n }\n\n if ($scope.checkoutAppData && $scope.checkoutAppData.merchant) {\n $scope.nonEmptyMerchantDisplayName = $scope.checkoutAppData.getMerchantDisplayName({\n nonEmptyReturnValue: true\n });\n }\n\n function formatFiLast4() {\n var ccNum = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n\n return 'x-' + ccNum.replace(/\\s+/g, '').slice(-4);\n }\n\n function formatFiName() {\n var ccType = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n\n var tmp = ccType.toLowerCase();\n\n return tmp.charAt(0).toUpperCase() + tmp.slice(1);\n }\n\n var contentOpts = {\n cart: $scope.checkoutCart,\n appData: $scope.checkoutAppData,\n locale: $scope.locale,\n subscriptionData: $scope.subscriptionsV1Model\n };\n\n $scope.isWpsSubscription = $scope.checkoutAppData.is_wps_subscription_flow();\n $scope.isSubscriptionsV1 = $scope.checkoutCart.isSubscriptionsV1();\n $scope.isSubscription = $scope.isWpsSubscription || $scope.isSubscriptionsV1;\n $scope.billingAgrementContentInfo = (0, _contentKeys.getBillingAgreementContentInfo)(contentOpts);\n\n $scope.fiName = formatFiName($scope.multistepSignupModel.onboard.card.type);\n $scope.fiFormatLast4 = formatFiLast4($scope.multistepSignupModel.onboard.card.number);\n\n if ($scope.billingAgrementContentInfo && $scope.billingAgrementContentInfo.data) {\n $scope.billingAgrementContentInfo.data.fiName = $scope.fiName;\n $scope.billingAgrementContentInfo.data.fiFormatLast4 = $scope.fiFormatLast4;\n }\n // Reset password fields\n delete $scope.multistepSignupModel.onboard.user.password;\n delete $scope.multistepSignupModel.onboard.user.confirmPassword;\n\n var useraction = $scope.checkoutAppData.useraction();\n\n $scope.isCommit = useraction && useraction.toLowerCase() === 'commit';\n $logger.info('checkout_fpti', {\n 'billing_page_button_text': $scope.isCommit ? 'paynow_y' : 'paynow_n'\n });\n\n if ($scope.isCommit) {\n if ($scope.isSubscription) {\n $scope.submitButtonKey = 'wpsSubscription.guest.createAccountAndSubscribe.button.text';\n } else {\n $scope.submitButtonKey = 'common.agreeAndPay';\n }\n } else {\n $scope.submitButtonKey = 'common.agreeAndContinue';\n }\n\n if (!$rootScope.miniBrowser && $locale.country === 'BR') {\n var brPxp = $config.pxpExperiments.BR.xo_br_hermesnode_createaccount_design;\n\n $pxpFactors(brPxp.pgName, brPxp.params, brPxp.pattern).then(function (result) {\n $scope.createAccountDesignExp = result;\n });\n }\n\n function handleUIValidation(fields) {\n var $fields = $(fields);\n\n $fields.addClass('backendError');\n\n if (window.scrollTo) {\n window.scrollTo(0, 0);\n }\n }\n\n function isNameCyrillic() {\n var result = true;\n var regexCyrillic = /[а-яА-ЯЁё]/;\n\n if (!regexCyrillic.test($('#firstName').val())) {\n result = false;\n handleUIValidation('#firstName');\n }\n if (!regexCyrillic.test($('#lastName').val())) {\n result = false;\n handleUIValidation('#lastName');\n }\n if (!regexCyrillic.test($('#middleName').val())) {\n result = false;\n handleUIValidation('#middleName');\n }\n\n if (!result) {\n var messages = [];\n\n messages.push($locale.content.get('addTaxId.cyrillicNameError'));\n $scope.multistepSignupModel.pageError = $scope.multistepSignupModel.pageError || {};\n $scope.multistepSignupModel.pageError.multistepsignupcreateaccount = {\n errorMessage: {\n msgs: messages,\n type: 'error'\n }\n };\n }\n\n return result;\n }\n\n $scope.onContinue = function () {\n var validInput = true;\n\n if ($scope.multistepSignupModel.onboard.user.countryOfResidence === 'RU') {\n validInput = isNameCyrillic();\n }\n\n var isLegalAge = util.validateLegalAge($scope.multistepSignupModel.onboard.user.dob_month, $scope.multistepSignupModel.onboard.user.dob_day, $scope.multistepSignupModel.onboard.user.dob_year);\n\n if (!isLegalAge) {\n validInput = false;\n handleUIValidation('#dobText');\n }\n\n if (validInput) {\n $scope.onSubmit();\n }\n };\n\n $scope.legalAgreeToolTip = function () {\n if ($scope.multistepSignupModel.onboard.agree) {\n $scope.showTooltip = false;\n } else {\n $scope.showTooltip = true;\n }\n };\n\n $scope.validate = function () {\n $scope.legalAgreeToolTip();\n $scope.validated = true;\n return true;\n };\n\n $scope.onComplete3DSHandler = function (status) {\n $scope.multistepSignupModel.is3ds = false;\n if (status === 'decline' || status === 'close') {\n // Flow should route to member review page for sign up case\n // up on receiving \"decline\" or \"close\" response from 3DS authenticate call\n $MultistepApiCalls.routeToHermesOn3DSDeclineForSignUp();\n } else if (status === 'success') {\n // Up on Successful authenticate, perform Patch on XO session and authorise.\n $MultistepApiCalls.clear3DSContingency();\n }\n };\n\n $scope.onSubmit = function () {\n\n $logger.info($scope.multistepSignupModel.flags.mode + '_submit', {\n type: $scope.multistepSignupModel.onboard.card.type,\n country: $locale.country,\n lang: $locale.lang\n }).flush();\n\n if ($scope.multistepSignupModel.flags.shipToBilling) {\n $scope.multistepSignupModel.onboard.shipping_address = $ShippingAddressModel.create($scope.token, $scope.multistepSignupModel.onboard.billing_address, {\n first_name: $scope.multistepSignupModel.onboard.user.first_name,\n last_name: $scope.multistepSignupModel.onboard.user.last_name\n });\n }\n\n $MultistepApiCalls.onboard()['catch'](function (pageError) {\n var addCard = pageError.multistepsignupaddcard;\n var addShipping = pageError.multistepsignupaddshipping;\n var createAcc = pageError.multistepsignupcreateaccount;\n\n // Globally handled contingencies also trigger the catch block.\n if (addCard && addCard.length > 0) {\n $state.go('checkout.multistepsignup.multistepsignupaddcard');\n } else if (addShipping && addShipping.length > 0) {\n $state.go('checkout.multistepsignup.multistepsignupaddshipping');\n } else if (createAcc && createAcc.length > 0) {\n $scope.backendError('multistepsignupcreateaccount');\n }\n });\n };\n }]\n };\n }]);\n});\n\n_contentKeys.getBillingAgreementContentInfo;\n\n_subscription.$SubscriptionsV1Model;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/multistep-signup/createAccount/directive.js\n// module id = ../node_modules/xo-guest-components/src/multistep-signup/createAccount/directive.js\n// module chunks = 0","\n\ndefine(['angular', 'squid/index', './directive'], function (angular, squid) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n angular.module('xo-multistep-signup-create-account.route', ['squid', 'xo-multistep-signup-create-account.directive']).factory('$MultistepSignupCreateAccountRoute', ['$ComponentRoute', function ($ComponentRoute) {\n\n return $ComponentRoute.extend('MultistepSignupCreateAccountRoute', {\n name: 'multistepsignupcreateaccount',\n\n directive: 'xo-multistep-signup-create-account',\n\n children: []\n });\n }]);\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/multistep-signup/createAccount/route.js\n// module id = ../node_modules/xo-guest-components/src/multistep-signup/createAccount/route.js\n// module chunks = 0","\n\ndefine(['jquery', 'angular', 'squid/module', 'text!./template.html', './index', 'xo-models/src/onboard/index', 'xo-models/src/checkout/index', 'xo-models/src/address/index'], function ($, angular, module, template) {\n\n return angular.module('xo-multistep-signup.directive', ['squid', 'xomultistepsignupmodel', 'xomodel.onboard', 'xomodel.checkout', 'xomodel.address', 'xo-fi-contingency-list.util']).directive('xoMultistepSignup', ['$rootScope', function ($rootScope) {\n\n return {\n template: template,\n\n scope: {\n token: '=?',\n parentCallbacks: '=?',\n buttonParams: '=?'\n },\n\n controller: ['$populate', '$scope', '$state', '$locale', '$MultistepSignupModel', '$OnboardModel', '$logger', '$PrefillAddressModel', '$OnboardUserModel', '$OnboardPhoneModel', '$ShippingAddressModel', '$BillingAddressModel', '$InstallmentOptionsModel', '$location', '$feature', '$timeout', '$CheckoutPayeeModel', '$CheckoutCartModel', '$CheckoutAppDataModel', '$fiErrorUtil', '$util', function ($populate, $scope, $state, $locale, $MultistepSignupModel, $OnboardModel, $logger, $PrefillAddressModel, $OnboardUserModel, $OnboardPhoneModel, $ShippingAddressModel, $BillingAddressModel, $InstallmentOptionsModel, $location, $feature, $timeout, $CheckoutPayeeModel, $CheckoutCartModel, $CheckoutAppDataModel, $fiErrorUtil, $util) {\n\n $scope.locale = $locale;\n\n $scope.multistepSignupModel = $MultistepSignupModel.instance();\n\n function triggerPageDesignFPTILog() {\n var pageContext = 'Full-context';\n\n if ($rootScope.miniBrowser) {\n pageContext = 'In-context';\n }\n\n $logger.info('checkout_fpti', {\n 'design': pageContext\n });\n }\n // Log Initial Page Design\n triggerPageDesignFPTILog();\n // Trigger Design FPTI Log on Page Design Change\n $rootScope.$watch('miniBrowser', triggerPageDesignFPTILog);\n\n var normalizeCallback;\n var lastPrefillCall = {};\n\n function sanitizeZip(value) {\n return (value || '').replace(/[^0-9]+/g, '');\n }\n\n $scope.multistepSignupModel.onboard = new $OnboardModel({\n\n user: $OnboardUserModel.instance($scope.token, {\n country: $locale.country\n }),\n\n billing_address: $BillingAddressModel.create($scope.token, {\n country: $locale.country\n }),\n\n shipping_address: $ShippingAddressModel.create($scope.token, {\n country: $locale.country\n }),\n\n phone: new $OnboardPhoneModel()\n });\n\n $scope.multistepSignupModel.onboard.card.ppconversion = 'PAYPAL';\n\n // remove this upon oas ramp completion\n $scope.multistepSignupModel.onboard.testParams = {\n oas: $util.param('oas'),\n cardCandidate: $util.param('cardCandidate')\n };\n\n $populate($scope, {\n checkoutCart: $CheckoutCartModel.instance($scope.token)\n }).then(function () {\n $scope.multistepSignupModel.onboard.user.email = $scope.checkoutCart.payer && $scope.checkoutCart.payer.email;\n });\n\n $scope.multistepSignupModel.onboard.shipping_address.setProperties({\n first_name: '',\n last_name: ''\n });\n\n $scope.multistepSignupModel.onboard.billing_address.setProperties({\n first_name: '',\n last_name: ''\n });\n\n $scope.multistepSignupModel.flags = {\n mode: 'signup',\n shipToBilling: true,\n allowEditShipping: true,\n\n billingAddress: {\n addrPrefilled: false\n },\n shippingAddress: {\n addrPrefilled: false\n }\n };\n\n function sortCountryList() {\n $scope.metadata = angular.copy($locale.metadata);\n return $scope.metadata.territory;\n }\n\n $scope.multistepSignupModel.countries = sortCountryList();\n\n $scope.positionToErrorField = function positionToErrorField() {\n var errorFields = $('.backendError:visible, input:visible.ng-invalid, select:visible.ng-invalid');\n\n var firstErrorField = errorFields && errorFields.length && errorFields[0];\n\n if (firstErrorField) {\n firstErrorField.focus();\n window.document.body.scrollTop = $(firstErrorField).offset().top;\n } else {\n // If there are no field errors and only page level errors.\n window.document.body.scrollTop = 0;\n }\n\n $('.backendError:visible').on('blur', function (event) {\n $(this).removeClass('backendError');\n });\n\n if ($('#installments').length) {\n $('#paymentMethod').addClass('ng-invalid');\n } else {\n $('#paymentMethod').removeClass('ng-invalid');\n }\n\n return true;\n };\n\n $scope.backState = function backState() {\n history.back();\n // $scope.$apply();\n };\n\n $scope.backendError = function backendError(pageName) {\n $timeout(function () {\n var modelErrors = $scope.multistepSignupModel.pageError;\n\n if (modelErrors && modelErrors[pageName]) {\n var pageErrors = modelErrors[pageName];\n\n pageErrors.forEach(function (err) {\n if (err.name) {\n // Highlight the Error Fields by name\n $fiErrorUtil.addFieldErrorsByName(err, 'form', err.name);\n } else {\n // Highlight the Error Fields by ng-model\n $fiErrorUtil.addFieldErrors(err, 'form', err.model);\n }\n });\n }\n }, 10);\n };\n\n $scope.clearBackendError = function clearBackendError(pageName) {\n if ($scope.multistepSignupModel.pageError) {\n $scope.multistepSignupModel.pageError[pageName] = [];\n }\n };\n\n $scope.normalizeAddress = function normalizeAddress(address, callback) {\n $scope.multistepSignupModel.onboard.toBeNormalizedAddress = address;\n $state.go('checkout.multistepsignup.multistepsignupaddressnormalization');\n normalizeCallback = callback;\n };\n\n $scope.prefillAddressCommon = function (postal_code, address, user, flag, override) {\n\n if (!postal_code) {\n return;\n }\n\n var addressType = address instanceof $ShippingAddressModel ? 'shipping' : 'billing';\n\n if (!override && lastPrefillCall[addressType] === sanitizeZip(postal_code)) {\n return;\n }\n\n $scope.prefillAddress = new $PrefillAddressModel({\n id: $scope.token,\n address: {\n country: $locale.country,\n postal_code: postal_code\n }\n });\n\n $scope.prefillAddress.save({\n data: $scope.prefillAddress,\n\n success: function success(result) {\n\n if (result) {\n lastPrefillCall[addressType] = sanitizeZip(result.postal_code);\n address.setProperties(result);\n }\n\n if (address.name) {\n var names = util.nameUtil.splitName(address.name); // eslint-disable-line block-scoped-var,no-undef\n\n user.setProperties(names);\n }\n\n flag.addrPrefilled = true;\n\n $timeout(function () {\n flag.addrPrefilled = true;\n }, 1000);\n },\n\n contingencies: {\n DEFAULT: function DEFAULT() {\n flag.addrPrefilled = true;\n }\n }\n });\n };\n\n $scope.uponNormalization = function uponNormalization(normalizedAddress, isBack) {\n if (normalizeCallback) {\n normalizeCallback(normalizedAddress, isBack);\n }\n };\n\n /* Eligibility Check call is done only after first load. Hence is done in the parent directive\n * and not in addCard directive. Addcard directive will be called after each back button\n * rendering\n */\n function isInstallmentEligible() {\n\n $populate($scope, {\n payee: $CheckoutPayeeModel.instance($scope.token),\n checkoutCart: $CheckoutCartModel.instance($scope.token),\n checkoutAppData: $CheckoutAppDataModel.instance($scope.token)\n }).then(function () {\n\n if ($scope.checkoutCart.isBilling()) {\n // Reference transaction detected\n $location.path('/checkout/multistepsignup/multistepsignupaddcard').replace();\n } else {\n $scope.multistepSignupModel.eligibilityModel = {};\n\n var installments = $InstallmentOptionsModel.instance($scope.token);\n\n /* Updating the eligibilityModel with the installment response.\n * Show Or hide of installment depends upon the card type.\n * Card model changes for type is checked in addCard directive to determine installment display.\n */\n installments.save({\n data: {\n payee: $scope.payee,\n checkoutCart: $scope.checkoutCart,\n checkoutAppData: $scope.checkoutAppData\n },\n\n resultModel: $scope.multistepSignupModel.eligibilityModel\n\n }).then(function () {\n $location.path('/checkout/multistepsignup/multistepsignupaddcard').replace();\n });\n }\n });\n }\n\n if ($feature('installments', false, $locale.country)) {\n isInstallmentEligible();\n } else {\n // BUG - switching from BR to RU country needs this timeout\n // Without timeout the route change is so fast that it just loads an empty cached page\n // without the form elements\n $timeout(function () {\n $location.path('/checkout/multistepsignup/multistepsignupaddcard').replace();\n });\n }\n }]\n };\n }]);\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/multistep-signup/directive.js\n// module id = ../node_modules/xo-guest-components/src/multistep-signup/directive.js\n// module chunks = 0","\n\ndefine(['squid/index'], function (squid) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n squid.module('xomultistepsignupmodel', ['squid']).factory('$MultistepSignupModel', ['$Model', function ($Model) {\n return $Model.extend('MultistepSignupModel', {});\n }]);\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/multistep-signup/index.js\n// module id = ../node_modules/xo-guest-components/src/multistep-signup/index.js\n// module chunks = 0","\n\ndefine([], function () {\n var name = {\n splitName: function splitName(fullName) {\n var index = fullName.indexOf(' ');\n\n return {\n first_name: index > 0 ? fullName.substr(0, index) : fullName,\n last_name: index > 0 ? fullName.substr(index + 1) : ''\n };\n }\n };\n\n var masking = {\n maskZip: function maskZip(value) {\n if (value) {\n var unformatted = value.replace(/[^0-9]/gi, '');\n\n return unformatted.length > 5 ? [unformatted.slice(0, 5), '-', unformatted.slice(5)].join('') : unformatted;\n }\n\n return '';\n }\n };\n\n var validateLegalAge = function validateLegalAge(dobMonth, dobDay, dobYear) {\n var currentDate = new Date();\n var currentMonth = currentDate.getMonth() + 1;\n var currentDay = currentDate.getDate();\n var currentYear = currentDate.getFullYear();\n var largestDOBYear = currentYear - 18; // Legal age is 18\n\n var isLegal = dobYear < largestDOBYear || dobYear === largestDOBYear && dobMonth < currentMonth || dobYear === largestDOBYear && dobMonth === currentMonth && dobDay <= currentDay;\n\n return isLegal;\n };\n\n var componentsMap = function componentsMap(locale) {\n var flags = {};\n\n switch (locale) {\n case 'BR':\n flags = {\n zipCode: true,\n billingAddressLabel: false,\n shippingAddress: false,\n shippingAddressPage: true,\n dobDropDown: true,\n addTaxId: true\n };\n break;\n case 'RU':\n flags = {\n zipCode: false,\n billingAddressLabel: true,\n shippingAddress: true,\n shippingAddressPage: false,\n dobDropDown: false,\n dobText: true\n };\n break;\n default:\n flags = {\n nameInput: true,\n zipCode: true,\n billingAddressLabel: true,\n shippingAddress: true,\n dobDropDown: true\n };\n break;\n }\n\n return flags;\n };\n\n var contingencyMap = function contingencyMap(code) {\n var errorElementMap = {\n INVALID_FIRST_NAME: {\n fields: [{ field: 'first_name' }],\n model: 'user.',\n path: 'multistepsignupaddcard'\n },\n INVALID_LAST_NAME: {\n fields: [{ field: 'last_name' }],\n model: 'user.',\n path: 'multistepsignupaddcard'\n },\n INVALID_MIDDLE_NAME: {\n fields: [{ field: 'middle_name' }],\n model: 'user.',\n path: 'multistepsignupaddcard'\n },\n INVALID_NATIVE_FIRST_NAME: {\n fields: [{ field: 'first_name' }],\n model: 'user.',\n path: 'multistepsignupcreateaccount'\n },\n INVALID_NATIVE_LAST_NAME: {\n fields: [{ field: 'last_name' }],\n model: 'user.',\n path: 'multistepsignupcreateaccount'\n },\n INVALID_NATIVE_MIDDLE_NAME: {\n fields: [{ field: 'middle_name' }],\n model: 'user.nativeName.',\n path: 'multistepsignupcreateaccount'\n },\n INVALID_PHONE_TYPE: {\n fields: [{ field: 'phoneType' }],\n model: 'phone.',\n path: 'multistepsignupaddcard'\n },\n INVALID_PHONE_NUMBER: {\n fields: [{ field: 'telephone' }],\n model: 'phone.',\n path: 'multistepsignupaddcard'\n },\n INVALID_CITY_STATE_ZIPCODE: {\n fields: [{ field: 'city' }, { field: 'state' }, { field: 'zipCode' }],\n model: 'address.',\n path: 'multistepsignupaddcard'\n },\n INVALID_LINE1: {\n fields: [{ field: 'line1' }],\n model: 'address.',\n path: 'multistepsignupaddcard'\n },\n INVALID_CITY: {\n fields: [{ field: 'city' }],\n model: 'address.',\n path: 'multistepsignupaddcard'\n },\n INVALID_STATE: {\n fields: [{ field: 'state' }],\n model: 'address.',\n path: 'multistepsignupaddcard'\n },\n INVALID_ZIPCODE: {\n fields: [{ field: 'zipCode' }],\n model: 'address.',\n path: 'multistepsignupaddcard'\n },\n\n INVALID_NATIONAL_ID_TYPE: {\n fields: [{ field: 'type' }],\n model: 'nationalIdModel.nationalId.',\n path: 'multistepsignupcreateaccount'\n },\n INVALID_NATIONAL_ID: {\n fields: [{ field: 'Id' }],\n name: 'national',\n path: 'multistepsignupcreateaccount'\n },\n INVALID_SECONDARY_ID_TYPE: {\n fields: [{ field: 'secondaryIdType' }],\n model: 'nationalIdModel.',\n path: 'multistepsignupcreateaccount'\n },\n INVALID_SECONDARY_ID: {\n fields: [{ field: 'secondaryIdValue' }],\n model: 'nationalIdModel.',\n path: 'multistepsignupcreateaccount'\n },\n\n INVALID_CARD_NUMBER: {\n path: 'multistepsignupaddcard'\n },\n INVALID_BILLING_ADDRESS: {\n model: 'address.',\n path: 'multistepsignupaddcard'\n },\n INVALID_SHIPPING_ADDRESS: {\n model: 'address.',\n path: 'multistepsignupaddshipping'\n },\n INVALID_EXPIRY: {\n path: 'multistepsignupaddcard'\n },\n PASSWORD_CONTAINS_FORBIDDEN_WORDS: {\n fields: [{\n field: 'password'\n }, {\n field: 'confirmPassword'\n }],\n model: 'user.',\n path: 'multistepsignupcreateaccount'\n },\n PASSWORD_HAS_ILLEGAL_CHARACTERS: {\n fields: [{\n field: 'password'\n }, {\n field: 'confirmPassword'\n }],\n model: 'user.',\n path: 'multistepsignupcreateaccount'\n },\n ACCOUNT_ALREADY_EXISTS: {\n fields: [{\n field: 'user.email'\n }],\n pageError: {\n contentKey: 'login.userMayHaveAccount'\n },\n compileMessageWith: {\n href: 'loginRedirectUrl'\n },\n path: 'multistepsignupcreateaccount'\n },\n DOB_INVALID: {\n fields: [{\n field: 'user.dob_day'\n }, {\n field: 'user.dob_month'\n }, {\n field: 'user.dob_year'\n }],\n path: 'multistepsignupcreateaccount'\n },\n CC_NUMBER_BLOCKED: {\n model: 'card.',\n pageError: {\n contentKey: 'creditcard.errorGeneral'\n },\n path: 'multistepsignupaddcard'\n },\n COUNTRY_NOT_SUPPORTED: {\n model: 'card.',\n pageError: {\n contentKey: 'creditcard.complianceDecline'\n },\n path: 'multistepsignupaddcard'\n },\n CARD_GENERIC_ERROR: {\n model: 'card.',\n pageError: {\n contentKey: 'creditcard.errorGeneral'\n },\n path: 'multistepsignupaddcard'\n }\n };\n\n return errorElementMap[code];\n };\n\n var util = {};\n\n util.nameUtil = name;\n util.maskingUtil = masking;\n util.componentsMap = componentsMap;\n util.contingencyMap = contingencyMap;\n util.validateLegalAge = validateLegalAge;\n\n return util;\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/multistep-signup/lib/util.js\n// module id = ../node_modules/xo-guest-components/src/multistep-signup/lib/util.js\n// module chunks = 0","\n\ndefine(['angular', 'squid/index', './directive', './addCard/route', './addShipping/route', './createAccount/route', './addressNormalization/route'], function (angular, squid) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n angular.module('xo-multistep-signup.route', ['squid', 'xo-multistep-signup.directive', 'xo-multistep-signup-add-card.route', 'xo-multistep-signup-add-shipping.route', 'xo-multistep-signup-create-account.route', 'xo-multistep-signup-address-normalization.route']).factory('$MultistepSignupRoute', ['$ComponentRoute', function ($ComponentRoute) {\n\n return $ComponentRoute.extend('MultistepSignupRoute', {\n name: 'multistepsignup',\n\n directive: 'xo-multistep-signup',\n\n children: [{\n name: '$MultistepSignupAddCardRoute',\n attributes: {\n token: 'token',\n 'multistep-signup-model': 'multistepSignupModel',\n 'position-to-error-field': 'positionToErrorField',\n 'back-state': 'backState',\n 'backend-error': 'backendError',\n 'clear-backend-error': 'clearBackendError',\n 'normalize-address': 'normalizeAddress',\n 'prefill-address-common': 'prefillAddressCommon',\n 'button-params': 'buttonParams'\n }\n }, {\n name: '$MultistepSignupAddShippingRoute',\n attributes: {\n token: 'token',\n 'multistep-signup-model': 'multistepSignupModel',\n 'position-to-error-field': 'positionToErrorField',\n 'back-state': 'backState',\n 'backend-error': 'backendError',\n 'clear-backend-error': 'clearBackendError',\n 'normalize-address': 'normalizeAddress',\n 'prefill-address-common': 'prefillAddressCommon'\n }\n }, {\n name: '$MultistepSignupCreateAccountRoute',\n attributes: {\n token: 'token',\n 'multistep-signup-model': 'multistepSignupModel',\n 'position-to-error-field': 'positionToErrorField',\n 'back-state': 'backState',\n 'backend-error': 'backendError',\n 'clear-backend-error': 'clearBackendError'\n }\n }, {\n name: '$MultistepSignupAddressNormalizationRoute',\n attributes: {\n token: 'token',\n address: 'multistepSignupModel.onboard.toBeNormalizedAddress',\n 'done-fn': 'uponNormalization'\n }\n }]\n });\n }]);\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-guest-components/src/multistep-signup/route.js\n// module id = ../node_modules/xo-guest-components/src/multistep-signup/route.js\n// module chunks = 0","/*** IMPORTS FROM imports-loader ***/\nvar jquery = window.jQuery;\n\n// jQuery Mask Plugin v1.14.11\n// github.com/igorescobar/jQuery-Mask-Plugin\nvar $jscomp={scope:{},findInternal:function(a,l,d){a instanceof String&&(a=String(a));for(var p=a.length,h=0;hd?g=e:f>=g&&f!==d?c.maskDigitPosMapOld[g]||(f=g,g=g-(l-h)-a,c.maskDigitPosMap[g]&&(g=f)):g>f&&(g=\ng+(h-l)+m)}return g},behaviour:function(f){f=f||window.event;c.invalid=[];var e=b.data(\"mask-keycode\");if(-1===a.inArray(e,m.byPassKeys)){var e=c.getMasked();setTimeout(function(){c.setCaret(c.calculateCaretPosition())},10);c.val(e);c.setCaret(e.length);return c.callbacks(f)}},getMasked:function(a,b){var g=[],d=void 0===b?c.val():b+\"\",n=0,h=e.length,q=0,l=d.length,k=1,r=\"push\",p=-1,t=0,y=[],v,z;f.reverse?(r=\"unshift\",k=-1,v=0,n=h-1,q=l-1,z=function(){return-1 -1);\n };\n\n var resolvers = $util.map($config.locale.lang.resolvers, function (name) {\n $LanguageResolvers[name].name = name;\n return $LanguageResolvers[name];\n });\n\n return this.resolvePromiseChain(resolvers, validator, [country]).then(function (resolved) {\n $logger.debug('resolve_lang', {\n lang: resolved.resolved,\n resolver: resolved.resolver\n });\n return resolved.resolved;\n });\n },\n\n setUserPreferredCountry: function setUserPreferredCountry(country) {\n $util.assert(country, 'No country provided');\n this.userPreferredCountry = country;\n },\n\n setUserPreferredLanguage: function setUserPreferredLanguage(language) {\n $util.assert(language, 'No language provided');\n this.userPreferredLanguage = language;\n },\n\n resolve: function resolve(preventContentLoad) {\n\n var self = this;\n\n function resolveCountry() {\n if (self.userPreferredCountry) {\n return $q.when(self.userPreferredCountry);\n }\n\n return self.resolveCountry();\n }\n\n function resolveLanguage(country) {\n if (self.userPreferredLanguage) {\n return $q.when(self.userPreferredLanguage);\n }\n\n return self.resolveLanguage(country);\n }\n\n return resolveCountry().then(function (country) {\n return resolveLanguage(country).then(function (language) {\n return {\n language: language,\n country: country\n };\n });\n }).then(function (result) {\n return $locale.change(result.country, result.language, preventContentLoad);\n });\n }\n\n });\n\n return new LocaleResolver();\n });\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-locale/dist/resolvers.js\n// module id = ../node_modules/xo-locale/dist/resolvers.js\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _angular = require('angular');\n\nvar _squid = require('squid');\n\nvar _logger = require('xo-beaver/dist/logger');\n\nvar _index = require('xo-device-info/dist/index');\n\nvar _utils = require('./utils');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nrequire('./styles');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _squid.$Component.extend({\n tag: 'xo-dolphin',\n template: _template2['default'],\n actions: {\n startTimer: function startTimer() {\n var _this = this;\n\n _logger.$logger.info('xoDolphin_startTimer');\n // Set a 10 second timer to check if UL has loaded or not\n this.isTimerRunning = true;\n (0, _angular.$timeout)(function () {\n if (!_this.hasOverlayLoaded && _this.isTimerRunning) {\n _logger.$logger.info(_utils.flowName, {\n 'from': 'show_banner',\n 'to': 'overlay_timeout',\n 'context_id': _angular.$rootScope.token\n });\n _this.isTimerRunning = false;\n _this.showSpinner = false;\n }\n }, this.timerDuration);\n },\n closeBanner: function closeBanner() {\n this.showBanner = false;\n _logger.$logger.info(_utils.flowName, {\n 'from': 'show_banner',\n 'to': 'close_banner',\n 'context_id': _angular.$rootScope.token\n });\n },\n openOverlay: function openOverlay() {\n var _this2 = this;\n\n var onPostMessagesHandler = function onPostMessagesHandler(postMessage) {\n if (!angular.isObject(postMessage)) {\n try {\n postMessage = JSON.parse(postMessage);\n } catch (e) {\n _logger.$logger.info('xoDolphin_jsonParseFailed');\n }\n }\n\n if (!postMessage || !postMessage.data || !postMessage.data.event) {\n _logger.$logger.info('xoDolphin_invalidPostMessage');\n return;\n }\n\n _this2.showSpinner = false;\n\n if (postMessage.data.event === 'phoneConfirmationLoaded') {\n _this2.hasOverlayLoaded = true;\n _angular.$rootScope.$emit('loaded');\n _logger.$logger.info(_utils.flowName, {\n 'from': 'show_banner',\n 'to': 'overlay_loaded',\n 'context_id': _angular.$rootScope.token\n });\n }\n\n if (postMessage.data.event === 'phoneConfirmationCompleted') {\n _this2.isPhoneConfirmed = true;\n // For auto triggered overlays (confirm3 & add3), the banner is hidden by default\n // Unhide it once phone confirmation completes or SMS to complete it is sent out\n if (_this2.toastParams.autoTriggeredOverlay) {\n _logger.$logger.info('xoDolphin_showBannerOnAutoTriggeredOverlay');\n _this2.showBanner = true;\n }\n _logger.$logger.info(_utils.flowName, {\n 'from': 'show_banner',\n 'to': 'successfully_confirmed',\n 'context_id': _angular.$rootScope.token\n });\n _this2.actions.closeOverlay();\n }\n\n if (postMessage.data.event === 'smsSent') {\n // Set isPhoneConfirmed to true as user will complete the phone confirmation from sms\n // hence from app point of view it s completed for the 'current' request\n // Also, the experience is exactly the same (show success message)\n _this2.isPhoneConfirmed = true;\n _this2.successContent = _this2.toastParams.smsSentKey;\n _this2.showBanner = true;\n _logger.$logger.info(_utils.flowName, {\n 'from': 'show_banner',\n 'to': 'sms_sent',\n 'context_id': _angular.$rootScope.token\n });\n _this2.actions.closeOverlay();\n }\n\n if (postMessage.data.event === 'phoneConfirmationError') {\n _this2.hasOverlayLoaded = true;\n _logger.$logger.info(_utils.flowName, {\n 'from': 'show_banner',\n 'to': 'generic_error',\n 'context_id': _angular.$rootScope.token\n });\n _this2.actions.closeOverlay();\n }\n\n if (postMessage.data.event === 'close') {\n _this2.hasOverlayLoaded = true;\n _this2.actions.closeOverlay();\n }\n };\n (0, _angular.$timeout)(function () {\n _logger.$logger.info(_utils.flowName, {\n 'from': 'show_banner',\n 'to': 'show_overlay',\n 'context_id': _angular.$rootScope.token\n });\n\n _this2.$element.addClass('overlayOpen').promise().then(function () {\n // Note: A second timeout is added here to avoid a race condition where the DOM is not yet available\n // for the inject script to pick a targetElement for injecting the iframe.\n (0, _angular.$timeout)(function () {\n var variant = _this2.toastParams && _this2.toastParams.variant;\n var options = (0, _utils.getInjectULBaseObject)(variant);\n options.onPostMessage = onPostMessagesHandler;\n if (!options.targetElement) {\n _logger.$logger.info('xoDolphin_missingTargetElement');\n }\n _this2.showSpinner = true;\n if (window.PAYPAL && window.PAYPAL.unifiedLogin && options.targetElement) {\n _logger.$logger.info('xoDolphin_injectIframe');\n window.PAYPAL.unifiedLogin.inject(options);\n _this2.actions.startTimer();\n }\n });\n });\n });\n },\n closeOverlay: function closeOverlay() {\n var _this3 = this;\n\n this.$element.removeClass('overlayOpen');\n this.isTimerRunning = false;\n this.showSpinner = false;\n _logger.$logger.info(_utils.flowName, {\n 'from': 'show_banner',\n 'to': 'overlay_closed',\n 'context_id': _angular.$rootScope.token\n });\n (0, _angular.$timeout)(function () {\n _logger.$logger.info('xoDolphin_hideOverlay');\n _this3.showOverlay = false;\n _this3.hasOverlayLoaded = false;\n }, 300);\n }\n },\n lifecycle: {\n enter: function enter() {\n var ulToast = _squid.$util.param('ulToast') || _squid.$util.param('ulToastWpsDone');\n this.toastParams = ulToast && _utils.variantParams[ulToast];\n this.isPhoneConfirmed = false;\n this.hasOverlayLoaded = false;\n this.isTimerRunning = false;\n this.timerDuration = 10000;\n },\n populate: function populate() {\n var _this4 = this;\n\n if (!this.toastParams) {\n _logger.$logger.info('Missing or invalid toast param!');\n return;\n }\n\n this.showBanner = !this.toastParams.autoTriggeredOverlay;\n this.showOverlay = this.toastParams.autoTriggeredOverlay;\n this.bannerContent = this.toastParams.messageKey;\n this.successContent = this.toastParams.successKey;\n this.autoTriggeredOverlay = this.toastParams.autoTriggeredOverlay;\n this.variant = this.toastParams.variant;\n // DeviceInfo doesnt seem to have isDesktop, hence just avoiding the mobile use case\n this.fixedBanner = _index.$DeviceInfo.isMobile() ? '' : 'dolphinBannerFixed';\n\n _logger.$logger.info(_utils.flowName, {\n 'from': 'show_banner',\n 'to': this.toastParams.transitionName,\n 'banner_type': this.toastParams.bannerType,\n 'context_id': _angular.$rootScope.token\n });\n\n // Cannot use `$apply` as we need to wait for the entire digest cycle to complete\n (0, _angular.$timeout)(function () {\n if (_this4.autoTriggeredOverlay) {\n _this4.actions.openOverlay();\n return;\n }\n angular.element('#confirmPhoneBtn').on('click', function () {\n _logger.$logger.info(_utils.flowName, {\n 'from': 'show_banner',\n 'to': 'click_link',\n 'context_id': _angular.$rootScope.token\n });\n _this4.showOverlay = true;\n // Allow overlay DOM to be added before animating it in\n (0, _angular.$timeout)(_this4.actions.openOverlay, 150);\n });\n // Add a delay to open the overlay when it's A) auto trigger and B) Not WPS\n // `ulToastWpsDone` will be added by UL only if it is indeed a WPS flow\n }, this.autoTriggeredOverlay && !_squid.$util.param('ulToastWpsDone') ? 1800 : 0);\n }\n }\n});\n\n\n_angular.$rootScope;\n\n_angular.$timeout;\n\n_squid.$Component;\n\n_squid.$util;\n\n_logger.$logger;\n\n_index.$DeviceInfo;\n\n_utils.getInjectULBaseObject;\n\n_utils.flowName;\n\n_utils.variantParams;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-login-components/src/dolphin/directive.js\n// module id = ../node_modules/xo-login-components/src/dolphin/directive.js\n// module chunks = 0","module.exports = \"
        \\n
        \\n
        \\n
        \\n \\n {{ content(successContent) }}

        \\n
        \\n
        \\n
        \\n
        \\n
        \\n
        \\n
        \\n
        \\n
        \\n
        \\n \\n
        \\n
        \\n
        \\n
        \\n
        \\n
        \\n
        \\n
        \\n

        \\n
        \\n
        \\n
        \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-login-components/src/dolphin/template.html\n// module id = ../node_modules/xo-login-components/src/dolphin/template.html\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.getDolphinEligibility = exports.variantParams = exports.flowName = exports.getInjectULBaseObject = undefined;\n\nvar _angular = require('angular');\n\nvar _uiRouter = require('uiRouter');\n\nvar _squid = require('squid');\n\nvar _logger = require('xo-beaver/dist/logger');\n\nvar _eligibility = require('xo-models/src/eligibility');\n\nvar getCreditInterstitialEligibility = function getCreditInterstitialEligibility() {\n // TODO: Refactor the usage of PXP result stored in rootScope once Credit team make a change to this\n var creditInterstitialPXPResult = _angular.$rootScope['creditInterstitialPXPResult'];\n var creditInterstitialControl = 'xo_hermesnodeweb_us_ryi_ppc_ppcacquisition_interstitial_control';\n // If there is a value && it is not Control, then it's any of the treatments\n return creditInterstitialPXPResult && creditInterstitialPXPResult !== creditInterstitialControl;\n};\n\nvar getInjectULBaseObject = exports.getInjectULBaseObject = function getInjectULBaseObject(variant) {\n var options = {\n config: {\n name: 'PPFrameRedirect',\n height: 577\n },\n queryParams: {\n intent: variant === 'add3' || variant === 'confirm3' ? 'xoAutoTrigger' : 'xoToast',\n flowId: _angular.$rootScope.token,\n flowInfo: _uiRouter.$state.current && _uiRouter.$state.current.name,\n 'country.x': _squid.$locale.country,\n 'locale.x': _squid.$locale.getLocaleCode()\n },\n iframePathname: '/signin/phone-confirmation',\n targetElement: document.getElementById('injectedULPhoneConfirmation')\n };\n\n return options;\n};\n\nvar flowName = exports.flowName = 'ul_dolphin';\n\n// A simple object to map all the properties specific to a particular variant\n// Not creating a function & abstracting common things for the sake of simplicity\n// Once the performance is measured, only 1 of the 4 variants will be left behind\n// and this object will have only 2 props again.\n// A variant prop is added to define the class name in the template\n// The query param's value is not used directly to avoid XSS\nvar variantParams = exports.variantParams = {\n confirm: {\n messageKey: 'login.confirmPhone',\n successKey: 'login.confirmPhoneSuccess',\n transitionName: 'confirm_phone',\n bannerType: 'short_text_link',\n // `variant` uses a hardcoded value for th ulToast query param\n // it is used later in the flow from here instead of the query param\n variant: 'confirm'\n },\n confirm1: {\n messageKey: 'login.confirmPhoneWithButton',\n successKey: 'login.confirmPhoneSuccess',\n transitionName: 'confirm_phone',\n bannerType: 'short_text_button',\n variant: 'confirm1'\n },\n confirm2: {\n messageKey: 'login.confirmPhoneLongWithButton',\n successKey: 'login.confirmPhoneSuccess',\n transitionName: 'confirm_phone',\n bannerType: 'long_text_button',\n variant: 'confirm2'\n },\n confirm3: {\n // There is no messageKey in this variant\n successKey: 'login.confirmPhoneSuccess',\n smsSentKey: 'login.smsSent',\n transitionName: 'confirm_phone',\n bannerType: 'auto_trigger',\n variant: 'confirm3',\n autoTriggeredOverlay: true\n },\n add: {\n messageKey: 'login.addPhone',\n successKey: 'login.addPhoneSuccess',\n transitionName: 'add_phone',\n bannerType: 'short_text_link',\n variant: 'add'\n },\n add1: {\n messageKey: 'login.addPhoneWithButton',\n successKey: 'login.addPhoneSuccess',\n transitionName: 'add_phone',\n bannerType: 'short_text_button',\n variant: 'add1'\n },\n add2: {\n messageKey: 'login.addPhoneLongWithButton',\n successKey: 'login.addPhoneSuccess',\n transitionName: 'add_phone',\n bannerType: 'long_text_button',\n variant: 'add2'\n },\n add3: {\n // There is no messageKey in this variant\n successKey: 'login.addPhoneSuccess',\n smsSentKey: 'login.smsSent',\n transitionName: 'add_phone',\n bannerType: 'auto_trigger',\n variant: 'add3',\n autoTriggeredOverlay: true\n }\n};\n\nvar getDolphinEligibility = exports.getDolphinEligibility = function getDolphinEligibility(stateName) {\n var isReviewOrFi = /checkout\\.review|checkout\\.selectFi/.test(stateName) && _squid.$util.param('ulToast');\n\n if (!isReviewOrFi) {\n _logger.$logger.info(flowName, {\n 'from': 'dolphin_elg_chk',\n 'to': 'process_dolphin_elg_chk',\n 'eligibility_reason': 'not_ryp',\n 'context_id': _angular.$rootScope.token\n });\n return _squid.$promise.resolve();\n }\n\n return _eligibility.$stickyCTA.instance().getEligibility()\n // Dolphin can be enabled only in case sticky & credit interstitial are not eligibile\n .then(function (isStickyEligible) {\n var eligibilityReason = 'no_sticky_or_credit';\n var isCreditInsterstialEligible = getCreditInterstitialEligibility();\n\n if (isCreditInsterstialEligible) {\n eligibilityReason = 'has_credit_interstitial';\n }\n\n if (isStickyEligible) {\n eligibilityReason = 'has_sticky';\n }\n\n _logger.$logger.info(flowName, {\n 'from': 'dolphin_elg_chk',\n 'to': 'process_dolphin_elg_chk',\n 'eligibility_reason': eligibilityReason,\n 'context_id': _angular.$rootScope.token\n });\n\n return !isStickyEligible && !isCreditInsterstialEligible;\n });\n};\n\n_angular.$rootScope;\n\n_uiRouter.$state;\n\n_squid.$locale;\n\n_squid.$promise;\n\n_squid.$util;\n\n_logger.$logger;\n\n_eligibility.$stickyCTA;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-login-components/src/dolphin/utils.js\n// module id = ../node_modules/xo-login-components/src/dolphin/utils.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$ul = undefined;\n\nvar _angular = require('angular');\n\nvar _logger = require('xo-beaver/dist/logger');\n\nvar _config = require('squid/dist/core/config');\n\nvar _model = require('xo-tracking/dist/model');\n\nvar _auth = require('xo-models/src/auth');\n\nrequire('ul-inline/dist/inject');\n\n/**\n * Created by upigilam on 4/8/16.\n * UL handler is to exchange ST to RT exchanges.\n */\n\nvar $ul = exports.$ul = {\n\n optInToOneTouch: function optInToOneTouch(token, locale_country, locale_code, silent, fptiData, flowName) {\n\n return (0, _angular.$q)(function (resolve, reject) {\n\n var PAYPAL = window.PAYPAL || {};\n var ulTimeOutValue = 10000;\n var ulTimeoutPromise = null;\n\n function logSubmit(data) {\n var fptiPayload = {\n 'from': fptiData && fptiData.stateName ? fptiData.stateName : 'poma_page',\n 'to': fptiData && fptiData.transInfix ? fptiData.transInfix : 'process_kmli_optin'\n };\n if (data && data.errorCode) {\n angular.extend(fptiPayload, {\n 'int_error_code': data.errorCode,\n 'error_type': 'hard_decline',\n 'error_source': 'unifiedloginnodeweb'\n });\n }\n _logger.$logger.info('checkout_fpti', fptiPayload);\n }\n\n function failureHandler(reason) {\n logSubmit({ errorCode: reason });\n _logger.$logger.info('UL_Loading_error_' + reason);\n return reject(new Error('UL_Loading_error_' + reason));\n }\n\n function startTimer(tag) {\n _logger.$logger.info('UL_START_TIMER_' + tag);\n ulTimeoutPromise = (0, _angular.$timeout)(function () {\n failureHandler('timed_out');\n if (!silent) {\n _angular.$rootScope.$emit('loaded');\n }\n }, ulTimeOutValue);\n }\n\n function stopTimer(tag) {\n if (!silent) {\n _angular.$rootScope.$emit('loaded');\n }\n _logger.$logger.info('UL_STOP_TIMER_' + tag);\n\n if (ulTimeoutPromise) {\n _angular.$timeout.cancel(ulTimeoutPromise);\n ulTimeoutPromise = null;\n }\n }\n\n var ulEventHandlers = {\n 'oneTouchInterstitialOptInLoaded': function oneTouchInterstitialOptInLoaded(data) {\n // Don't start or stop timer. Flow should not get block even the post messages is not returned from UL\n },\n 'oneTouchInterstitialOptInAttempted': function oneTouchInterstitialOptInAttempted(data) {\n // Don't start or stop timer. Flow should not get block even the post messages is not returned from UL\n },\n 'oneTouchInterstitialOptInSuccess': function oneTouchInterstitialOptInSuccess(data) {\n stopTimer(data.event);\n logSubmit();\n // UL will drop RT cookie and respond oneTouchInterstitialOptInSuccess postmessage.\n _auth.$AuthModel.instance().retrieve().then(function (auth) {\n auth.refresh_token = true;\n });\n return resolve();\n },\n 'oneTouchInterstitialOptInFailed': function oneTouchInterstitialOptInFailed(data) {\n stopTimer(data.event);\n failureHandler(data.event);\n },\n 'oneTouchInterstitialOptInNotAuthorized': function oneTouchInterstitialOptInNotAuthorized(data) {\n // removing the element - ulTargetAttribute from DOM, to avoid any other accidental\n // actions on the element which is causing excess spinners later.\n var child = document.getElementById('ulTargetAttribute');\n child.parentNode.removeChild(child);\n stopTimer(data.event);\n failureHandler(data.event);\n }\n };\n\n function postMessageHandler(response) {\n (0, _angular.$timeout)(function () {\n _logger.$logger.info('ul_postmessaged_received', response);\n var data = response.data || response.error;\n var eventId = data && data.event;\n if (eventId) {\n _logger.$logger.debug('UL' + eventId, response);\n var handler = ulEventHandlers[eventId];\n if (handler) {\n handler(data);\n }\n }\n });\n }\n\n function loadOneTouchUpsell() {\n if (!silent) {\n _angular.$rootScope.$emit('loading');\n }\n\n var ulTargetAttribute = document.createElement('div');\n ulTargetAttribute.setAttribute('id', 'ulTargetAttribute');\n\n // setting display to None leading FireFox hiding all the ul elements due to which body click doesn't work\n // ulTargetAttribute.style.display = \"None\";\n\n // Making 0px, it works for FF, Chrome, Safari\n ulTargetAttribute.style.width = '0px';\n ulTargetAttribute.style.margin = '0px';\n ulTargetAttribute.style.height = '0px';\n ulTargetAttribute.style.padding = '0px';\n\n document.body.appendChild(ulTargetAttribute);\n\n var options = {\n targetElement: document.getElementById('ulTargetAttribute'),\n queryParams: {\n 'country.x': locale_country,\n 'locale.x': locale_code,\n 'flowId': token,\n 'correlationId': _model.$CalDataModel.getCalCorrId(),\n 'flowName': flowName ? flowName : 'checkoutOnlyMember' // default is poma flow\n },\n iframePathname: '/signin/activate-one-touch',\n onPostMessage: postMessageHandler\n };\n\n if (_config.$config.deploy.isLocal()) {\n if (_config.$meta.stage) {\n options.origin = 'https://' + _config.$meta.stage;\n } else {\n // if no stage url shows up then use any backup url for origin\n options.origin = _config.$config.urls.onboarding.split('/webapps/')[0];\n }\n }\n\n if (PAYPAL && PAYPAL.unifiedLogin) {\n startTimer('initializeUl');\n PAYPAL.unifiedLogin.inject(options);\n } else {\n failureHandler('PAYPAL.unifiedLogin_undefined');\n }\n }\n\n loadOneTouchUpsell();\n });\n }\n};\n\n// Loads unifiedLogin key on to PAYPAL window object\n\n\nangular.value(\"$ul\", $ul);\n_angular.$rootScope;\n\n_angular.$q;\n\n_angular.$timeout;\n\n_logger.$logger;\n\n_config.$config;\n\n_config.$meta;\n\n_model.$CalDataModel;\n\n_auth.$AuthModel;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-login-components/src/unified-login/ul.js\n// module id = ../node_modules/xo-login-components/src/unified-login/ul.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$ValidateAddressModel = exports.$PrefillAddressModel = exports.$AddressNormalizationModel = undefined;\n\nvar _squid = require('squid');\n\nvar $AddressNormalizationModel = exports.$AddressNormalizationModel = _squid.$Model.extend('$AddressNormalizationModel', {\n api: new _squid.$Api({\n uri: '/api/address/normalize'\n })\n});\n\nvar $PrefillAddressModel = exports.$PrefillAddressModel = _squid.$Model.extend('$PrefillAddressModel', {\n api: new _squid.$Api({\n uri: '/api/address/prefill'\n })\n});\n\nvar $ValidateAddressModel = exports.$ValidateAddressModel = _squid.$Model.extend('$ValidateAddressModel', {\n api: new _squid.$Api({\n uri: '/api/address/validate'\n })\n});\n\nangular.value(\"$AddressNormalizationModel\", $AddressNormalizationModel);\nangular.value(\"$PrefillAddressModel\", $PrefillAddressModel);\nangular.value(\"$ValidateAddressModel\", $ValidateAddressModel);\n_squid.$Model;\n\n_squid.$Api;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-models/src/address/index.js\n// module id = ../node_modules/xo-models/src/address/index.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$PXPBlacklist = exports.$TokenizedWalletMsbOfferModel = exports.$TokenizedWalletPinModel = exports.$TokenizedFundingCapabilitiesModel = exports.$TokenizedWalletInfoModel = exports.$TokenizedWalletEligibilityModel = exports.$MessengerIntegrationDataModel = exports.$AppDataModel = exports.$LocaleConfigModel = exports.$PXPModel = exports.$TeslaFlowIdModel = undefined;\n\nvar _brandNames, _msbDisclaimerLinks;\n\nvar _squid = require('squid');\n\nvar $TeslaFlowIdModel = exports.$TeslaFlowIdModel = _squid.$Model.extend('$TeslaFlowIdModel', {\n api: new _squid.$Api({\n uri: '/api/teslaFlowId/:id'\n })\n});\n\nvar $PXPModel = exports.$PXPModel = _squid.$Model.extend('$PXPModel', {\n api: new _squid.$Api({\n uri: '/api/pxp/:id'\n })\n});\n\nvar $LocaleConfigModel = exports.$LocaleConfigModel = _squid.$Model.extend('$LocaleConfigModel', {\n api: new _squid.$Api({\n uri: '/api/localeConfig'\n })\n});\n\nvar $AppDataModel = exports.$AppDataModel = _squid.$Model.extend('$AppDataModel', {\n api: new _squid.$Api({\n uri: '/api/app'\n }),\n\n isMobile: function isMobile() {\n return this.platform === 'mobile';\n }\n});\n\nvar $MessengerIntegrationDataModel = exports.$MessengerIntegrationDataModel = _squid.$Model.extend('$MessengerIntegrationDataModel', {\n api: new _squid.$Api({\n uri: '/api/messenger'\n })\n});\n\nvar $TokenizedWalletEligibilityModel = exports.$TokenizedWalletEligibilityModel = _squid.$Model.extend('$TokenizedWalletEligibilityModel', {\n api: new _squid.$Api({\n uri: '/api/eligibility/tokenizedWallet/:id'\n }),\n\n invalidateOnLogout: true, // invalidate this model when auth.logout() gets called\n\n isEligible: function isEligible() {\n return this.eligible;\n }\n});\n\nvar subjectTypes = {\n SAMSUNG_PAY: 'Samsung',\n ANDROID_PAY: 'google'\n};\n\nvar brandNames = (_brandNames = {}, _brandNames[subjectTypes.SAMSUNG_PAY] = 'Samsung Pay', _brandNames[subjectTypes.ANDROID_PAY] = 'Google Pay', _brandNames);\n\n/**\n * disclaimer links used on the *pay review page\n */\nvar disclaimerLinks = function disclaimerLinks(country) {\n var _ref;\n\n return _ref = {}, _ref[subjectTypes.SAMSUNG_PAY] = 'https://www.paypal.com/' + country + '/webapps/mpp/ua/ppsamsungpay-tnc', _ref[subjectTypes.ANDROID_PAY] = 'https://www.paypal.com/' + country + '/webapps/mpp/ua/ppandroidpay-tnc', _ref;\n};\n\n// disclaimer links used on Msb offer popup\nvar msbDisclaimerLinks = (_msbDisclaimerLinks = {}, _msbDisclaimerLinks[subjectTypes.SAMSUNG_PAY] = 'https://www.paypal.com/us/smarthelp/article/samsung-pay-terms-and-conditions-faq3863', _msbDisclaimerLinks[subjectTypes.ANDROID_PAY] = 'https://www.paypal.com/us/smarthelp/article/google-pay-terms-and-conditions-faq3862', _msbDisclaimerLinks);\n\n/**\n * this model populates data from tokenized wallet mayfly object\n * (see xo-hermes-app/apis/tokenizedWalletInfo) which contains:\n *\n * - wallet_id (used for both Samsung Pay and Android Pay)\n * - external_device_id (used for Samsung Pay only)\n * - subject (used for both Samsung Pay and Android Pay)\n *\n * Note: model is being populated in xo-preload on the server (see config.json)\n */\n\nvar $TokenizedWalletInfoModel = exports.$TokenizedWalletInfoModel = _squid.$Model.extend('$TokenizedWalletInfoModel', {\n\n api: new _squid.$Api({\n uri: '/api/info/tokenizedWallet/:id'\n }),\n\n isAndroidPay: function isAndroidPay() {\n return this.subject === subjectTypes.ANDROID_PAY;\n },\n\n isSamsungPay: function isSamsungPay() {\n return this.subject === subjectTypes.SAMSUNG_PAY;\n },\n\n getSubject: function getSubject() {\n return this.subject || subjectTypes.ANDROID_PAY;\n },\n\n // until we use mayfly for android pay - fallback to Android Pay\n brandName: function brandName() {\n return brandNames[this.subject] || brandNames[subjectTypes.ANDROID_PAY];\n },\n\n // until we use mayfly for android pay - fallback to Android Pay\n getDisclaimerLink: function getDisclaimerLink() {\n var country = _squid.$locale.country.toLowerCase();\n\n return disclaimerLinks(country)[this.subject] || disclaimerLinks(country)[subjectTypes.ANDROID_PAY];\n },\n\n // get Msb terms and conditions link based on the subject\n getMsbDisclaimerLink: function getMsbDisclaimerLink() {\n return msbDisclaimerLinks[this.subject] || msbDisclaimerLinks[subjectTypes.ANDROID_PAY];\n }\n});\n\nvar $TokenizedFundingCapabilitiesModel = exports.$TokenizedFundingCapabilitiesModel = _squid.$Model.extend('$TokenizedFundingCapabilitiesModel', {\n api: new _squid.$Api({\n uri: '/api/capabilities/tokenizedWallet/:id'\n }),\n invalidateOnLogout: true,\n\n isDirectFundingEnabled: function isDirectFundingEnabled() {\n return this.directFundingEnabled;\n },\n\n isTopupEnabled: function isTopupEnabled() {\n return this.topupFundingEnabled;\n },\n getProductName: function getProductName() {\n return this.name;\n },\n\n getCurrency: function getCurrency() {\n return this.issuingCurrency;\n },\n\n getContingencies: function getContingencies() {\n return this.contingencies;\n },\n\n getTopupAmountChoices: function getTopupAmountChoices() {\n return this.topUpAmountChoices;\n }\n});\n\nvar $TokenizedWalletPinModel = exports.$TokenizedWalletPinModel = _squid.$Model.extend('$TokenizedWalletPinModel', {\n api: new _squid.$Api({\n uri: '/api/pin/tokenizedWallet/:id'\n }),\n\n invalidateOnLogout: true, // invalidate this model when auth.logout() gets called\n\n getPinOrigin: function getPinOrigin() {\n return this.pinOrigin;\n },\n getSuggestedPin: function getSuggestedPin() {\n return this.suggestedPin;\n },\n getSuggestedKey: function getSuggestedKey() {\n return this.suggestedKey;\n },\n getPinId: function getPinId() {\n return this.pinId;\n },\n isPinIdPresent: function isPinIdPresent() {\n return !!this.pinId;\n },\n isSetupEligible: function isSetupEligible() {\n return this.pinOrigin === 'UNSET' || this.pinOrigin === 'SYSTEM';\n }\n});\n\nvar $TokenizedWalletMsbOfferModel = exports.$TokenizedWalletMsbOfferModel = _squid.$Model.extend('$TokenizedWalletMsbOfferModel', {\n api: new _squid.$Api({\n uri: '/api/msb/tokenizedWallet/:id'\n }),\n invalidateOnLogout: true\n});\n\nvar $PXPBlacklist = exports.$PXPBlacklist = {\n isMerchantBlacklisted: function isMerchantBlacklisted(merchantId) {\n return _squid.$config.pxpBlacklist && _squid.$config.pxpBlacklist.merchant && _squid.$config.pxpBlacklist.merchant.indexOf(merchantId) !== -1;\n }\n};\n\nangular.value(\"$TeslaFlowIdModel\", $TeslaFlowIdModel);\nangular.value(\"$PXPModel\", $PXPModel);\nangular.value(\"$LocaleConfigModel\", $LocaleConfigModel);\nangular.value(\"$AppDataModel\", $AppDataModel);\nangular.value(\"$MessengerIntegrationDataModel\", $MessengerIntegrationDataModel);\nangular.value(\"$TokenizedWalletEligibilityModel\", $TokenizedWalletEligibilityModel);\nangular.value(\"$TokenizedWalletInfoModel\", $TokenizedWalletInfoModel);\nangular.value(\"$TokenizedFundingCapabilitiesModel\", $TokenizedFundingCapabilitiesModel);\nangular.value(\"$TokenizedWalletPinModel\", $TokenizedWalletPinModel);\nangular.value(\"$TokenizedWalletMsbOfferModel\", $TokenizedWalletMsbOfferModel);\nangular.value(\"$PXPBlacklist\", $PXPBlacklist);\n_squid.$config;\n\n_squid.$locale;\n\n_squid.$Model;\n\n_squid.$Api;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-models/src/app/index.js\n// module id = ../node_modules/xo-models/src/app/index.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$ULoginModel = exports.$AuthModel = exports.$AuthApi = undefined;\n\nvar _angular = require('angular');\n\nvar _squid = require('squid');\n\nvar _logger = require('xo-beaver/dist/logger');\n\nvar _app = require('../app');\n\nvar $AuthApi = exports.$AuthApi = _squid.$Model.extend('$AuthApi', {\n api: new _squid.$Api({\n uri: '/api/auth',\n postAttempts: 3\n })\n});\n\nvar $AuthModel = exports.$AuthModel = _squid.$Model.extend('$AuthModel', {\n api: new _squid.$Api({\n uri: '/api/auth',\n postAttempts: 3\n }),\n\n invalidateOnLogout: true, // invalidate this model when auth.logout() gets called\n\n loggedIn: function loggedIn() {\n return this.logged_in;\n },\n\n visitorId: function visitorId() {\n return this.visitor_id;\n },\n\n accessToken: function accessToken() {\n return this.access_token;\n },\n\n accessTokenPresent: function accessTokenPresent() {\n return this.access_token_present;\n },\n\n refreshToken: function refreshToken() {\n return this.refresh_token;\n },\n\n rememberedOT: function rememberedOT() {\n return this.remembered && this.remembered_device_token;\n },\n\n isSessionTimeout: function isSessionTimeout() {\n return this.meta && this.meta.invalidated;\n },\n\n clearCookies: function clearCookies() {\n var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n return this.action('clearCookies', { data: data });\n },\n\n isFBSkipLogin: function isFBSkipLogin() {\n /* Facebook pass the code generated in checkout URL , check for to determine it as FB Skip Login\n * if both OneTouch cookie present and if code passed by FB, login usually happens using OneTouch\n * as both are having auth state as remembered, we may look for rememberedOT as it is having remembered_device_token\n * for OneTouch identifier to differentiate both logins\n * auth_claims for OneTouch is DEVICE_TOKEN\n */\n return this.remembered && _squid.$util.param('code') && !this.rememberedOT();\n },\n\n showNotYou: function showNotYou() {\n var isAuthApiCall = this.is_auth_api_call;\n var isConsumerApp = _squid.$util.param('source') === 'consumerApp';\n var redirectToHermesOn3DSDecline = _squid.$util.param('redirectToHermesOn3DSDecline');\n var isUlReturnLoggedIn = _squid.$util.param('ulReturn') && this.auth_state === 'LOGGEDIN';\n\n // for Tokenized Venice integraion (Google Pay Venice / Samsung Pay Venice) - `not you` link should be hidden.\n // `TokenizedWalletInfoModel` is always populated in xo-preload (even for error cases - it will be just empty)\n // so we don't need to retrieve the model\n var tokenizedWalletInfo = _app.$TokenizedWalletInfoModel.instance(_angular.$rootScope.token);\n var isNotVeniceTokenizedIntegration = function isNotVeniceTokenizedIntegration() {\n return !tokenizedWalletInfo || tokenizedWalletInfo && !tokenizedWalletInfo.is_venice_integration;\n };\n\n // disallow_login_switch is used for Google Pay - acount linking to hide \"not you\" button (see xo-hercules/auth/outputMapper)\n return (isAuthApiCall || this.isFBSkipLogin()) && !isConsumerApp && !redirectToHermesOn3DSDecline && !isUlReturnLoggedIn && !this.disallow_login_switch && isNotVeniceTokenizedIntegration();\n },\n\n logout: function logout() {\n _squid.$Model.bulkInvalidate('invalidateOnLogout');\n _angular.$rootScope.$broadcast('logout');\n return this.action('logout');\n },\n\n /**\n * Perform a logout and then redirect.\n * @param reason - used to log reason why a redirect was trigged.\n */\n logoutAndRedirect: function logoutAndRedirect() {\n var _this = this;\n\n var reason = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'logout';\n\n var logoutFrom = this.get('tenant', 'PAYPAL');\n return this.logout().then(function () {\n return _this.redirectToLogin(reason, { logoutFrom: logoutFrom });\n });\n },\n\n // redirect to UL as landing through xo-landing-router\n // so first it hits hermes app and then redirects to UL\n redirectToLogin: function redirectToLogin(reason, ctx) {\n if (!reason) {\n return false;\n }\n // current query parameters\n var qs = _squid.$util.queryString() || '';\n var params = { 'ulClientRedirect': reason };\n\n params = _squid.$util.extend(params, ctx); // update params with context that may be sent\n\n // insert \"ulClientRedirect\" param and remove \"ul\", \"ulReturn\"\n var updatedQs = _squid.$util.queryStringSplice(qs, params, ['ul', 'ulReturn']);\n\n // base url should not be hardcoded to \"/webapps/hermes\" due to other use cases such as\n // 1. * Pay (Android Pay / Samsung Pay) -- uses /agreements/setup to exchange BA token to EC token\n var ulAsLandingUrl = _squid.$util.paypalURL('' + window.location.pathname + updatedQs);\n\n _logger.$logger.info('redirecting_to_ulAsLanding');\n return _squid.$util.redirect(ulAsLandingUrl);\n }\n\n});\n\nvar $ULoginModel = exports.$ULoginModel = _squid.$Model.extend('$ULoginModel', {\n api: new _squid.$Api({\n uri: '/api/auth/ulogin',\n postAttempts: 1,\n cache: false\n })\n});\n\nangular.value(\"$AuthApi\", $AuthApi);\nangular.value(\"$AuthModel\", $AuthModel);\nangular.value(\"$ULoginModel\", $ULoginModel);\n_angular.$rootScope;\n\n_squid.$Model;\n\n_squid.$Api;\n\n_squid.$util;\n\n_logger.$logger;\n\n_app.$TokenizedWalletInfoModel;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-models/src/auth/index.js\n// module id = ../node_modules/xo-models/src/auth/index.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$xoAPayUtils = undefined;\n\nvar _angular = require('angular');\n\nvar _logger = require('xo-beaver/dist/logger');\n\nvar _squid = require('squid');\n\nvar _index = require('xo-device-info/dist/index');\n\nvar _jwtToken = '';\nvar _authenticated;\n\n// Call browser PaymentRequest API that returns a promise\nfunction createPaymentRequest() {\n var supportedInstruments = [{\n supportedMethods: ['https://android.com/pay'],\n data: {\n minGooglePlayServicesVersion: '10400000',\n paymentMethodTokenizationParameters: {\n tokenizationType: 'GATEWAY_TOKEN',\n parameters: {\n gateway: 'paypal'\n }\n }\n }\n }];\n var details = {\n // Payment request requires an amount. Hardcode the value for now.\n total: { label: 'Checkout', amount: { currency: 'USD', value: '5.00' } }\n };\n\n var options = {};\n\n try {\n return new PaymentRequest(supportedInstruments, details, options); // eslint-disable-line no-undef\n } catch (e) {\n _logger.$logger.info('PAYMENT_REQUEST_NOT_SUPPORTED');\n }\n}\n\nfunction updateCookie(url, params) {\n (0, _angular.$http)({\n method: 'GET',\n url: url,\n params: params\n })['catch'](function (err) {\n _logger.$logger.info('tokenized_wallet_update_cookie_error', { err: err });\n });\n}\n\nfunction isPaymentRequestAPISupported() {\n var currentVersionMatch = navigator.userAgent.match(/Chrome\\/([0-9]+)\\./i);\n\n return _index.$DeviceInfo.isMobile() && window.navigator.vendor === 'Google Inc.' && 'PaymentRequest' in window && navigator.userAgent.match(/Android/i) && currentVersionMatch && Number(currentVersionMatch[1]) >= 58;\n}\n\nvar $xoAPayUtils = exports.$xoAPayUtils = {\n isAPayAPISupported: function isAPayAPISupported() {\n return isPaymentRequestAPISupported();\n },\n\n canMakeAPayPayment: function canMakeAPayPayment() {\n if (!isPaymentRequestAPISupported()) {\n return _angular.$q.resolve(false);\n }\n\n var paymentRequest = window.appPaymentRequest || createPaymentRequest();\n\n if (paymentRequest && paymentRequest.canMakePayment) {\n _logger.$logger.info('APAY_CHECK_CAN_MAKE_PAYMENT');\n _logger.$logger.info('checkout_fpti', {\n from: 'payment_request_check_payment',\n to: 'prepare_payment_request_check_payment'\n });\n\n return paymentRequest.canMakePayment().then(function (result) {\n if (result) {\n\n _logger.$logger.info('APAY_CAN_MAKE_PAYMENT');\n _logger.$logger.info('checkout_fpti', {\n from: 'payment_request_check_payment',\n to: 'process_payment_request_can_make_payment'\n });\n return true;\n } else {\n _logger.$logger.info('APAY_CAN_NOT_MAKE_PAYMENT_NO_PAYMENT');\n _logger.$logger.info('checkout_fpti', {\n from: 'payment_request_can_make_payment',\n to: 'process_payment_request_can_not_make_payment',\n error_source: 'PaymentRequestAPI',\n error_type: 'no_payment'\n\n });\n return false;\n }\n })['catch'](function (err) {\n _logger.$logger.info('APAY_CAN_NOT_MAKE_PAYMENT_SOFT_DECLINE', {\n msg: err && err.message,\n name: err && err.name\n });\n\n _logger.$logger.info('checkout_fpti', {\n from: 'payment_request_can_make_payment',\n to: 'prepare_payment_request_can_make_payment_soft_decline',\n int_error_code: err && err.name,\n int_error_description: err && err.message,\n error_source: 'PaymentRequestAPI',\n error_type: 'soft_decline'\n });\n\n return false;\n });\n } else {\n return _angular.$q.resolve(false);\n }\n },\n\n authenticateAPay: function authenticateAPay() {\n var forceAuthenticate = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n\n if (!forceAuthenticate && _authenticated !== undefined) {\n return _angular.$q.resolve(_authenticated);\n }\n\n _authenticated = false;\n _jwtToken = '';\n\n // Do not proceed if PaymentRequest is not supported.\n if (!isPaymentRequestAPISupported()) {\n return _angular.$q.resolve(false);\n }\n\n var paymentRequest = window.appPaymentRequest || createPaymentRequest();\n\n if (paymentRequest) {\n _logger.$logger.info('APAY_AUTHENTICATION_BEGIN');\n _logger.$logger.info('checkout_fpti', {\n from: 'payment_request_auth',\n to: 'prepare_payment_request_auth'\n });\n\n return paymentRequest.show().then(function (result) {\n result.complete('success');\n\n _logger.$logger.info('APAY_AUTHENTICATION_SUCCEEDED');\n _logger.$logger.info('checkout_fpti', {\n from: 'payment_request_auth',\n to: 'process_payment_request_auth',\n param_type: 'JWT'\n });\n\n var paymentMethodToken = result.details && result.details.paymentMethodToken && JSON.parse(result.details.paymentMethodToken);\n\n _jwtToken = paymentMethodToken.authJwt;\n _authenticated = true;\n return true;\n })['catch'](function (err) {\n _logger.$logger.info('APAY_AUTHENTICATION_FAILED', {\n msg: err && err.message,\n name: err && err.name\n });\n\n _logger.$logger.info('checkout_fpti', {\n from: 'payment_request_auth',\n to: 'process_payment_request_auth',\n int_error_code: err && err.name,\n int_error_description: err && err.message,\n error_source: 'PaymentRequestAPI',\n error_type: 'soft_decline'\n\n });\n\n return false;\n });\n } else {\n return _angular.$q.resolve(false);\n }\n },\n\n getAPayAuthToken: function getAPayAuthToken() {\n return _jwtToken;\n },\n\n setAPayCookie: function setAPayCookie(token) {\n if (_squid.$config.tokenizedWalletCookieURL) {\n updateCookie(_squid.$config.tokenizedWalletCookieURL, {\n op: 'set',\n token: token\n });\n }\n },\n\n clearAPayCookie: function clearAPayCookie(token) {\n if (_squid.$config.tokenizedWalletCookieURL) {\n updateCookie(_squid.$config.tokenizedWalletCookieURL, {\n op: 'clear',\n token: token\n });\n }\n },\n\n setOTAPayCookie: function setOTAPayCookie(token) {\n if (_squid.$config.tokenizedWalletCookieURL) {\n updateCookie(_squid.$config.tokenizedWalletCookieURL, {\n op: 'setot',\n token: token\n });\n }\n }\n};\n\nangular.value(\"$xoAPayUtils\", $xoAPayUtils);\n_angular.$http;\n\n_angular.$q;\n\n_logger.$logger;\n\n_squid.$config;\n\n_index.$DeviceInfo;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-models/src/auth/lib/xoAPayUtils.js\n// module id = ../node_modules/xo-models/src/auth/lib/xoAPayUtils.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$CheckoutSessionModel = exports.$CardBackupModel = exports.$CheckoutPlanModel = exports.$CheckoutShippingAddressesModel = exports.$CreditOptionsModel = exports.$CheckoutPayeeModel = exports.$ShippingAddressModel = exports.$CheckoutShippingAddressModel = exports.$FlowEligibilityModel = exports.$InstallmentOptionsModel = exports.serializeInstallmentsOptionsData = exports.$FundingOptionsModel = exports.$FundingSourceModel = exports.$CheckoutAppDataModel = exports.$CheckoutCartModel = undefined;\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nvar _squid = require('squid');\n\nvar _processorDecline = require('../processorDecline');\n\nvar _utils = require('./lib/utils');\n\nvar $CheckoutCartModel = exports.$CheckoutCartModel = _squid.$Model.extend('$CheckoutCartModel', {\n api: new _squid.$Api({\n uri: '/api/checkout/:id/cart',\n cache: true\n }),\n\n isPurchase: function isPurchase() {\n return Boolean(this.purchase);\n },\n\n getCartCurrencyCode: function getCartCurrencyCode() {\n return _squid.$util.getProperty(this, 'purchase.amounts.total.currency_code');\n },\n\n // NOTE returns undefined if this is not a purchase or there is some other error\n getPurchaseAmount: function getPurchaseAmount() {\n if (!this.isPurchase()) {\n return;\n }\n var purchaseAmount = _squid.$util.getProperty(this, 'purchase.amounts.total.amount');\n var purchaseAmountFloat = parseFloat(purchaseAmount);\n\n return purchaseAmountFloat || undefined;\n },\n\n isBilling: function isBilling() {\n return Boolean(this.billing);\n },\n\n isSubscriptionsV1: function isSubscriptionsV1() {\n return this.isBilling() && this.billing.type === 'SUBSCRIPTIONS_V1';\n },\n\n getBaToken: function getBaToken() {\n return this.isBilling() && this.billing.ba_token;\n },\n\n isBillingPurchase: function isBillingPurchase() {\n return this.isPurchase() && this.isBilling();\n },\n\n isBillingNoPurchase: function isBillingNoPurchase() {\n return this.isBilling() && !this.isPurchase();\n },\n\n getBillingDescription: function getBillingDescription() {\n return this.billing && this.billing.description;\n },\n\n isMultiSellerPurchase: function isMultiSellerPurchase() {\n return this.purchaseUnits && this.purchaseUnits.length > 1;\n },\n\n isShippingMethodStorePickUp: function isShippingMethodStorePickUp() {\n return this.isPurchase() && (this.purchase.shipping_method === '29' || this.purchase.shipping_method === '21');\n },\n\n isWalletTokenization: function isWalletTokenization() {\n return this.isBilling() && this.billing.intent === 'TOKENIZED_WALLET';\n },\n\n getExternalCallbackOptions: function getExternalCallbackOptions() {\n return this.purchaseUnits && this.purchaseUnits[0] && this.purchaseUnits[0].external_callback_options;\n }\n});\n\nvar $CheckoutAppDataModel = exports.$CheckoutAppDataModel = _squid.$Model.extend('$CheckoutAppDataModel', {\n api: new _squid.$Api({\n uri: '/api/checkout/:id/appData'\n }),\n\n useraction: function useraction() {\n // user_action from session takes precedence over CGI param.\n var incontext_integration = window.xchild && window.xchild.props.commit ? 'commit' : false;\n var rest_integration = this.flags && this.flags.user_action === 'PAY' ? 'commit' : false;\n\n return rest_integration || incontext_integration || _squid.$util.param('useraction');\n },\n\n is_wps_flow: function is_wps_flow() {\n return this.flags && this.flags.is_wps_flow;\n },\n\n is_snt_supported: function is_snt_supported() {\n return this.flags && this.flags.is_snt_supported;\n },\n\n doec_on_approve: function doec_on_approve() {\n return this.flags && this.flags.doec_on_approve;\n },\n\n is_wps_subscription_flow: function is_wps_subscription_flow() {\n return this.flags && this.flags.is_wps_subscription_flow;\n },\n\n is_wps_installmentplan_flow: function is_wps_installmentplan_flow() {\n return this.flags && this.flags.is_wps_installmentplan_flow;\n },\n\n /*\n * Returns a string or undefined value\n * nonEmptyReturnValue - if true, then always return non empty string\n * isSentenceBeginning - if true, and merchant brand_name and merchant_name is undefined\n * then returns 'The merchant'. If false, returns 'the merchant'\n * NOTE: We should not return merchant_email for any reason as it is a PII\n */\n getMerchantDisplayName: function getMerchantDisplayName() {\n var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n nonEmptyReturnValue = _ref.nonEmptyReturnValue,\n isSentenceBeginning = _ref.isSentenceBeginning,\n getContent = _ref.getContent;\n\n var merchantName = this.merchant.brand_name || this.merchant.merchant_name;\n\n if (nonEmptyReturnValue) {\n var contentKey = isSentenceBeginning ? 'common.Themerchant' : 'common.themerchant';\n var merchantAltName = getContent ? getContent(contentKey) : _squid.$locale.content.get(contentKey);\n\n return merchantName || merchantAltName;\n }\n\n return merchantName;\n },\n\n isInvoiceFlow: function isInvoiceFlow() {\n return Boolean(this.flags && this.flags.is_invoice_flow);\n },\n\n\n // Returns true if flow should be treated as a second button (PP Credit) transaction\n isSecondButton: function isSecondButton() {\n return this.is_second_button_txn || _squid.$Class.get(window, 'xprops.fundingSource') === 'credit';\n }\n});\n\nvar $FundingSourceModel = exports.$FundingSourceModel = _squid.$Model.extend('$FundingSourceModel', {\n\n formatLast4: function formatLast4() {\n var last4;\n\n if (this.last4) {\n last4 = this.last4;\n\n if (!this.parent.isAuthRequired) {\n last4 = 'x-' + last4;\n }\n }\n\n return last4;\n }\n});\n\nvar $FundingOptionsModel = exports.$FundingOptionsModel = _squid.$Model.extend('$FundingOptionsModel', {\n api: new _squid.$Api({\n uri: '/api/checkout/:id/fundingOptions',\n postAttempts: 2\n }),\n\n eachPlan: function eachPlan(method, context) {\n angular.forEach(this.plans, method, this);\n },\n\n hasECheck: function hasECheck() {\n var _instruments = this.instruments,\n instruments = _instruments === undefined ? [] : _instruments;\n\n\n return instruments.some(function (instr) {\n return instr.type === 'ECHECK' || instr.subtype === 'ECHECK';\n });\n },\n\n hasCredit: function hasCredit() {\n var _instruments2 = this.instruments,\n instruments = _instruments2 === undefined ? [] : _instruments2;\n\n\n return instruments.some(function (instrument) {\n return instrument.type === 'CREDIT';\n });\n },\n\n getBankPlanIdByInstrumentId: function getBankPlanIdByInstrumentId(id, subType) {\n var fundingInstrument = _squid.$util.find(this.plans, function (plan) {\n return plan.primaryFs && plan.primaryFs.type === 'BANK' && plan.primaryFs.id === id && plan.primaryFs.subtype === subType;\n });\n\n return fundingInstrument && fundingInstrument.planId;\n },\n\n // get IACH and PAD banks combined by plan.primaryFs.id\n // order matters, so if IACH comes first then PAD is filtered and vise versa\n getPadAndIachCombinedPlans: function getPadAndIachCombinedPlans() {\n var _this = this;\n\n var plans = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.plans;\n\n if (!plans) {\n return [];\n }\n var planIds = {};\n\n plans.forEach(function (plan) {\n var planId = plan.planId,\n primaryFs = plan.primaryFs;\n\n\n if (_this.isIACH(plan) && !planIds[planId]) {\n planIds[primaryFs.padPlanId] = true;\n }\n if (_this.isPAD(plan) && !planIds[planId]) {\n planIds[primaryFs.iachPlanId] = true;\n }\n });\n\n return plans.filter(function (plan) {\n return !planIds[plan.planId];\n });\n },\n\n // get plan by planId\n getPlanByPlanId: function getPlanByPlanId(id) {\n var plan = _squid.$util.find(this.plans, function (p) {\n return p.primaryFs && p.planId === id;\n });\n\n return plan;\n },\n\n getPlanSubType: function getPlanSubType() {\n var plan = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var _plan$primaryFs = plan.primaryFs;\n _plan$primaryFs = _plan$primaryFs === undefined ? {} : _plan$primaryFs;\n var subtype = _plan$primaryFs.subtype;\n\n\n return subtype;\n },\n\n\n // is plan PAD bank (bank is charged after some delay)\n isPAD: function isPAD(plan) {\n return this.getPlanSubType(plan) === 'PAD';\n },\n\n\n // is plan IACH bank (instant transfer)\n isIACH: function isIACH(plan) {\n return this.getPlanSubType(plan) === 'IACH';\n },\n\n\n // is plan MEFT bank\n isMEFT: function isMEFT(plan) {\n return this.getPlanSubType(plan) === 'MEFT';\n },\n\n\n // is plan IACH bank (instant transfer)\n isIACHWithPad: function isIACHWithPad(plan) {\n return this.isIACH(plan) && plan.primaryFs.padPlanId;\n },\n\n // get PAD hop date (when bank will be charged) based on selected plan and PAD toggle state\n getPadPlanHopDate: function getPadPlanHopDate(plan) {\n if (this.isIACH(plan)) {\n var padPlan = this.getPlanByPlanId(plan.primaryFs.padPlanId);\n\n if (padPlan) {\n return padPlan.primaryFs.hop_date;\n }\n } else {\n return plan.primaryFs.hop_date;\n }\n },\n\n // get PAD or IACH plan id based on selected plan and PAD toggle state\n getPadOrIachPlanIdBySelectedPlan: function getPadOrIachPlanIdBySelectedPlan(_ref2) {\n var plan = _ref2.plan,\n isPadToggleSelected = _ref2.isPadToggleSelected;\n\n if (!plan || !plan.primaryFs) {\n return;\n }\n\n var _plan$primaryFs2 = plan.primaryFs,\n padPlanId = _plan$primaryFs2.padPlanId,\n iachPlanId = _plan$primaryFs2.iachPlanId,\n planId = plan.planId;\n\n\n if (isPadToggleSelected) {\n return this.isPAD(plan) ? planId : padPlanId;\n } else {\n return this.isIACH(plan) ? planId : iachPlanId;\n }\n },\n\n onPopulate: function onPopulate() {\n var self = this;\n\n angular.forEach(this.plans, function (plan) {\n if (plan.primaryFs && plan.primaryFs.type === 'BANK' && (plan.primaryFs.subtype === 'IACH' || plan.primaryFs.subtype === 'PAD')) {\n Object.defineProperty(plan.primaryFs, plan.primaryFs.subtype === 'IACH' ? 'padPlanId' : 'iachPlanId', {\n enumerable: true,\n configurable: false,\n writeable: false,\n value: self.getBankPlanIdByInstrumentId(plan.primaryFs.id, plan.primaryFs.subtype === 'IACH' ? 'PAD' : 'IACH')\n });\n }\n });\n },\n\n getBankPadPlanIdByInstrumentId: function getBankPadPlanIdByInstrumentId(fsId, fsSubtype) {\n var bankPadPlan = _squid.$util.find(this.plans, function () {\n var plan = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var _plan$primaryFs3 = plan.primaryFs;\n _plan$primaryFs3 = _plan$primaryFs3 === undefined ? {} : _plan$primaryFs3;\n var id = _plan$primaryFs3.id,\n type = _plan$primaryFs3.type,\n subtype = _plan$primaryFs3.subtype;\n\n\n return id === fsId && type === 'BANK' && subtype === fsSubtype;\n });\n\n if (!bankPadPlan) {\n return;\n }\n\n var _bankPadPlan$primaryF = bankPadPlan.primaryFs;\n _bankPadPlan$primaryF = _bankPadPlan$primaryF === undefined ? {} : _bankPadPlan$primaryF;\n var subtype = _bankPadPlan$primaryF.subtype,\n padPlanId = _bankPadPlan$primaryF.padPlanId,\n iachPlanId = _bankPadPlan$primaryF.iachPlanId;\n\n\n return subtype === 'IACH' ? padPlanId : iachPlanId;\n },\n\n\n isPadToggleApplicable: function isPadToggleApplicable() {\n var padToggleApplicable = false;\n\n this.eachPlan(function (plan) {\n if (!padToggleApplicable && plan.primaryFs && plan.primaryFs.type === 'BANK') {\n if (plan.primaryFs.subtype === 'IACH' && plan.primaryFs.hasOwnProperty('padPlanId')) {\n padToggleApplicable = plan.primaryFs.padPlanId ? true : false;\n } else if (plan.primaryFs.subtype === 'PAD' && plan.primaryFs.hasOwnProperty('iachPlanId')) {\n padToggleApplicable = plan.primaryFs.iachPlanId ? true : false;\n }\n }\n }, this);\n\n return padToggleApplicable;\n },\n\n isPadToggleApplicableForFS: function isPadToggleApplicableForFS(planId) {\n var padToggleApplicable = false;\n var selectedPlan = _squid.$util.find(this.plans, function (plan) {\n return plan.planId === planId;\n });\n\n if (selectedPlan && selectedPlan.primaryFs && selectedPlan.primaryFs.type === 'BANK' && (selectedPlan.primaryFs.subtype === 'IACH' && selectedPlan.primaryFs.padPlanId || selectedPlan.primaryFs.subtype === 'PAD' && selectedPlan.primaryFs.iachPlanId)) {\n padToggleApplicable = true;\n }\n\n return padToggleApplicable;\n },\n\n getPreferred: function getPreferred() {\n var _this2 = this;\n\n return _squid.$util.find(this.plans, function (plan) {\n return _this2.isPreferred(plan);\n });\n },\n\n isPreferred: function isPreferred() {\n var plan = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n if (this.isPAD(plan)) {\n // if the current plan is PAD -> find corresponding IACH plan to see if it's preferred\n var iachPlan = this.getPlanByPlanId(plan.primaryFs.iachPlanId) || {};\n var _iachPlan$primaryFs = iachPlan.primaryFs;\n _iachPlan$primaryFs = _iachPlan$primaryFs === undefined ? {} : _iachPlan$primaryFs;\n\n var _iachPlan$primaryFs$i = _iachPlan$primaryFs.isPreferred,\n _isPreferred = _iachPlan$primaryFs$i === undefined ? false : _iachPlan$primaryFs$i;\n\n return _isPreferred;\n }\n\n var _plan$primaryFs4 = plan.primaryFs;\n _plan$primaryFs4 = _plan$primaryFs4 === undefined ? {} : _plan$primaryFs4;\n var _plan$primaryFs4$isPr = _plan$primaryFs4.isPreferred,\n isPreferred = _plan$primaryFs4$isPr === undefined ? false : _plan$primaryFs4$isPr;\n\n\n return isPreferred;\n },\n\n // get Merchant specific balance by plan id\n getMsbByPlanId: function getMsbByPlanId(planId) {\n var plan = this.getPlanByPlanId(planId);\n\n return plan && plan.incentive;\n },\n\n /**\n * Avoid plans that are not meant for display on the UI.\n * - Hide Rewards\n */\n getDisplayPlans: function getDisplayPlans() {\n // return type should be undefined in no plans\n // for billing agreement use case\n return this.plans ? this.plans.filter(function (plan) {\n return !plan.rewards;\n }) : this.plans;\n },\n /**\n * Avoid instruments that are not meant for display on the UI.\n * - Hide Rewards\n */\n getDisplayInstruments: function getDisplayInstruments() {\n var _instruments3 = this.instruments,\n instruments = _instruments3 === undefined ? [] : _instruments3;\n\n\n return instruments.filter(function (instrument) {\n return instrument.type !== 'REWARDS';\n });\n }\n});\n\n// Map the data needed for the installmentsOptions endpoint\nvar serializeInstallmentsOptionsData = exports.serializeInstallmentsOptionsData = function serializeInstallmentsOptionsData(_ref3) {\n var merchant_country = _ref3.checkoutAppData.merchant.merchant_country,\n checkoutCart = _ref3.checkoutCart,\n country = _ref3.country,\n id = _ref3.payee.merchant.id,\n isMemberCredit = _ref3.isMemberCredit,\n cc = _ref3.cc;\n\n var payload = {\n checkoutAppData: {\n merchant: {\n merchant_country: merchant_country\n }\n },\n checkoutCart: {},\n country: country,\n payee: {\n merchant: {\n id: id\n }\n },\n isMemberCredit: isMemberCredit,\n cc: cc\n };\n\n if (checkoutCart.purchase && checkoutCart.purchase.amounts) {\n var _checkoutCart$purchas = checkoutCart.purchase.amounts.total,\n amount = _checkoutCart$purchas.amount,\n currency_code = _checkoutCart$purchas.currency_code;\n\n\n payload.checkoutCart.purchase = {\n amounts: {\n total: {\n amount: amount,\n currency_code: currency_code\n }\n }\n };\n }\n\n return payload;\n};\n\nvar $InstallmentOptionsModel = exports.$InstallmentOptionsModel = _squid.$Model.extend('$InstallmentOptionsModel', {\n\n api: new _squid.$Api({\n uri: '/api/checkout/:id/installmentOptions/',\n postAttempts: 2\n }),\n\n save: function save(options) {\n options.data = serializeInstallmentsOptionsData(options.data);\n\n return this._super.save.call(this, options);\n }\n});\n\nvar $FlowEligibilityModel = exports.$FlowEligibilityModel = _squid.$Model.extend('$FlowEligibilityModel', {\n api: new _squid.$Api({\n uri: '/api/checkout/:id/flowEligibility'\n })\n});\n\nvar $CheckoutShippingAddressModel = exports.$CheckoutShippingAddressModel = _squid.$Model.extend('$CheckoutShippingAddressModel', {\n api: new _squid.$Api({\n uri: '/api/checkout/:parent.id/shipping/:id'\n })\n});\n\nvar $ShippingAddressModel = exports.$ShippingAddressModel = _squid.$Model.extend('$ShippingAddressModel', {\n api: new _squid.$Api({\n uri: '/api/checkout/:id/shipping/add'\n }),\n\n serialize: function serialize() {\n return {\n first_name: this.first_name,\n last_name: this.last_name,\n recipient_name: this.recipient_name,\n line1: this.line1,\n line2: this.line2,\n city: this.city,\n state: this.state,\n postal_code: this.postal_code,\n country: this.country\n };\n }\n});\n\nvar $CheckoutPayeeModel = exports.$CheckoutPayeeModel = _squid.$Model.extend('$CheckoutPayeeModel', {\n api: new _squid.$Api({\n uri: '/api/checkout/:id/payee'\n }),\n\n getId: function getId() {\n return this.merchant && this.merchant.id;\n },\n\n isGambling: function isGambling() {\n return this.merchant && this.merchant.isGambling;\n },\n\n isOnBaNoStickyList: function isOnBaNoStickyList() {\n var merchantId = this.getId();\n\n return merchantId && _squid.$config.disableMerchantForStickyBA && _squid.$config.disableMerchantForStickyBA.indexOf(merchantId) > -1;\n }\n});\n\nvar creditOptionsModel = {\n largeEligibleAmount: {\n US: 99,\n GB: 150\n }\n};\n\n// keeping sacEligibleAmount available for backwards compat, largeEligibleAmount preferred\ncreditOptionsModel.sacEligibleAmount = creditOptionsModel.largeEligibleAmount;\n\nvar $CreditOptionsModel = exports.$CreditOptionsModel = creditOptionsModel;\n\nvar $CheckoutShippingAddressesModel = exports.$CheckoutShippingAddressesModel = _squid.$Model.extend('$CheckoutShippingAddressesModel', {\n api: new _squid.$Api({\n uri: '/api/checkout/:id/shipping'\n }),\n\n onPopulate: function onPopulate() {\n this.addresses = this.children($CheckoutShippingAddressModel, this.addresses);\n },\n\n getPreferredShippingAddress: function getPreferredShippingAddress() {\n var preferredAddress = {};\n\n if (this.addresses) {\n var i = void 0;\n var address = void 0;\n\n for (i = 0; i < this.addresses.length; i++) {\n address = this.addresses[i];\n\n if (address && address.preferred_address) {\n preferredAddress = {\n 'line1': address.line1,\n 'line2': address.line2,\n 'city': address.city,\n 'state': address.state,\n 'postal_code': address.postal_code,\n 'country_code': address.country_code\n };\n\n break;\n }\n }\n }\n return preferredAddress;\n },\n\n getPrimaryShippingAddress: function getPrimaryShippingAddress() {\n var primaryAddress = {};\n\n if (this.addresses) {\n var i = void 0;\n var address = void 0;\n\n for (i = 0; i < this.addresses.length; i++) {\n address = this.addresses[i];\n\n if (address && address.primary_address) {\n primaryAddress = {\n 'line1': address.line1,\n 'line2': address.line2,\n 'city': address.city,\n 'state': address.state,\n 'postal_code': address.postal_code,\n 'country_code': address.country_code\n };\n\n break;\n }\n }\n }\n return primaryAddress;\n }\n});\n\nvar $CheckoutPlanModel = exports.$CheckoutPlanModel = _squid.$Model.extend('$CheckoutPlanModel', {\n\n onPopulate: function onPopulate() {\n this.sources = this.children($FundingSourceModel, this.sources);\n },\n\n eachSource: function eachSource(method, context) {\n angular.forEach(this.sources, method, this);\n },\n\n hasFundingMethodType: function hasFundingMethodType(name) {\n var found = false;\n\n this.eachSource(function (source) {\n if (source.type === name) {\n found = true;\n }\n }, this);\n\n return found;\n },\n\n hasFundingMethodSubType: function hasFundingMethodSubType(name) {\n var found = false;\n\n this.eachSource(function (source) {\n if (source.sub_type === name) {\n found = true;\n }\n }, this);\n\n return found;\n },\n\n isPAD: function isPAD() {\n return this.hasFundingMethodSubType('DELAYED_TRANSFER');\n },\n\n isIACH: function isIACH() {\n var found = false;\n\n this.eachSource(function (source) {\n if (source.type === 'BANK_ACCOUNT' && source.sub_type === 'INSTANT_TRANSFER') {\n found = true;\n }\n }, this);\n\n return found;\n },\n\n isSplitBalance: function isSplitBalance() {\n return this.sources && this.sources.length > 1 && this.hasFundingMethodType('BALANCE');\n },\n\n isSplitPaymentWithBalanceAndIach: function isSplitPaymentWithBalanceAndIach() {\n return this.isSplitBalance() && this.isIACH();\n },\n\n isMSB: function isMSB() {\n return this.sources && this.sources.length === 1 && this.sources[0].type === 'INCENTIVE';\n },\n\n isBalance: function isBalance() {\n return this.sources && this.sources.length === 1 && this.sources[0].type === 'BALANCE';\n },\n\n hasConversion: function hasConversion() {\n return this.conversion !== null && _typeof(this.conversion) === 'object';\n }\n});\n\nvar $CardBackupModel = exports.$CardBackupModel = _squid.$Model.extend('$CardBackupModel', {\n onPopulate: function onPopulate() {\n if (!this.get('parent.meta.populated')) {\n return;\n }\n\n // If plan IDs change, we need to reevaluate the correct backup plan id\n this.resetIfDoesNotApply();\n this.reevaluateEligibility();\n },\n\n\n /**\n * getCardBackupInstrument\n * Get the user's last selection for card backup, if still eligible\n * @returns {Object|undefined} the plan of the user's last selection, or undefined otherwise\n */\n getPlan: function getPlan() {\n if (!this.isAllowed()) {\n return;\n }\n\n return this.plan;\n },\n\n\n /**\n * setCardBackupInstrument\n * Save the user's selection for backup. Tied to the currently selected plan\n * @param {Object} plan - the plan to use as the backup\n * @param {Object} [forPlan] - if needed, the plan to compare against. prefer not to pass it in\n */\n setPlan: function setPlan(plan, forPlan) {\n this.plan = plan;\n this.forPlan = forPlan || this.getCheckoutSessionPlan();\n },\n isAllowed: function isAllowed() {\n var _forPlan = this.forPlan;\n _forPlan = _forPlan === undefined ? {} : _forPlan;\n var _forPlan$primaryFs = _forPlan.primaryFs;\n _forPlan$primaryFs = _forPlan$primaryFs === undefined ? {} : _forPlan$primaryFs;\n var type = _forPlan$primaryFs.type,\n secondaryFIs = _forPlan.secondaryFIs;\n\n\n if (type !== 'CARD' || secondaryFIs !== false) {\n return false;\n }\n return this.allowCardBackup;\n },\n getCheckoutSessionPlan: function getCheckoutSessionPlan() {\n return this.get('parent.fundingOptions.plans.0');\n },\n reevaluateEligibility: function reevaluateEligibility() {\n var _this3 = this;\n\n (0, _processorDecline.getProcessorDeclineRetryEligibility)(this.id, this.parent).then(function (eligibility) {\n _this3.allowCardBackup = eligibility;\n\n return eligibility;\n });\n },\n reset: function reset(forPlan) {\n this.setPlan(undefined, forPlan);\n },\n\n /**\n * resetIfDoesNotApply\n * resets the selected backup for card if no longer valid based on user's choice\n * matches the plan ID if still valid but plan IDs change\n * @param {String} [plan] - current checkout session funding options plan user has selected\n */\n resetIfDoesNotApply: function resetIfDoesNotApply(plan) {\n if (!plan) {\n plan = this.getCheckoutSessionPlan();\n }\n\n var getKey = function getKey(p) {\n return p && p.primaryFs && p.primaryFs.id;\n };\n var planKey = getKey(plan);\n var forKey = getKey(this.forPlan);\n\n if (!planKey || planKey !== forKey) {\n return this.reset(plan);\n }\n\n // Since planIds may change, if backup is still valid then find the new plan\n var plans = this.get('parent.fundingOptions.plans') || [];\n var currentPlanKey = getKey(this.plan);\n var newPlan = currentPlanKey && plans.find(function (p) {\n return getKey(p) === currentPlanKey;\n });\n\n // If, for whatever reason, the old instrument isn't in the new plans, we'll reset\n if (currentPlanKey && !newPlan) {\n return this.reset(plan);\n }\n\n this.forPlan = plan;\n this.plan = newPlan;\n }\n});\n\nvar $CheckoutSessionModel = exports.$CheckoutSessionModel = _squid.$Model.extend('$CheckoutSessionModel', {\n\n api: new _squid.$Api({\n uri: '/api/checkout/:id/session',\n postAttempts: 2\n }),\n\n invalidateOnLogout: true, // invalidate this model when auth.logout() gets called\n smartDollarAuthFailed: false, // initial value for smartDollar authorization check\n\n onPopulate: function onPopulate() {\n this.plan = new $CheckoutPlanModel(this.plan);\n this.shipping = this.child($CheckoutShippingAddressModel, this.shipping);\n this.fundingOptions = this.child($FundingOptionsModel, this.fundingOptions);\n\n // Reevaluate the eligibility for allowing backup with cards. This can\n // change when the checkout session is updated\n this.cardBackup = this.child($CardBackupModel, this.cardBackup || {});\n _squid.$event.emit('checkoutSessionChange'); // emit a session change event for apps to react accordingly\n },\n\n /**\n * Finds the plan in billing cases that the user is intending to use as the sticky FI.\n * @return {Object} the instrument representation from futurePaymentInstruments\n */\n getSelectedStickyInstrument: function getSelectedStickyInstrument() {\n // This method doesn't apply for non-billing cases\n if (!this.futurePaymentInstruments) {\n return;\n }\n\n // For BA no purchase cases (no plan), use either\n // 1. selectedFuturePaymentInstrument (we've made and persisted a selection)\n // 2. first of futurePaymentInstruments (we haven't made a selection and need to save it later)\n if (!(this.plan && this.plan.sources)) {\n return this.selectedFuturePaymentInstrument || this.futurePaymentInstruments[0];\n }\n\n // Otherwise, if we have a plan list (ie. this is a purchase case),\n // we'll always want to take the currently selected plan,\n // as selectedFuturePaymentInstrument may not be updated to the user's current plan\n var selectedInstrumentId = _squid.$util.some(this.plan.sources, function (fi) {\n return fi.instrument_id ? fi.instrument_id : undefined;\n });\n\n var stickyInstrument = _squid.$util.find(this.futurePaymentInstruments, function (fi) {\n return fi.instrument_id === selectedInstrumentId;\n });\n\n return stickyInstrument;\n },\n\n getPlanList: function getPlanList() {\n // Only show plans that need to be shown.\n return this.fundingOptions && this.fundingOptions.getDisplayPlans();\n },\n\n // returns true if more than one plan uses BALANCE as the primary FI\n isMultipleBalancePlan: function isMultipleBalancePlan() {\n var matchingBalancePlans = 0;\n\n return this.fundingOptions && this.fundingOptions.plans && this.fundingOptions.plans.some(function (plan) {\n // if BALANCE is the primary FI...\n if (plan.primaryFs.name === 'BALANCE') {\n // increment number of balance plans found\n matchingBalancePlans++;\n }\n // exit once we have more than one balance plan\n return matchingBalancePlans > 1;\n });\n },\n\n getDisallowedInstruments: function getDisallowedInstruments() {\n if (this.fundingOptions && this.fundingOptions.disallowedInstruments && angular.isArray(this.fundingOptions.disallowedInstruments)) {\n var filteredDisallowedInstruments = this.fundingOptions.disallowedInstruments.filter(function (instrument) {\n if (instrument.type === 'CARD' && instrument.declineReason === 'unsupportedDueToExpiration') {\n return (0, _utils.filterCardWithinLastNMonths)(instrument, (0, _squid.$feature)('expirePeriod'));\n }\n return true;\n });\n this.fundingOptions.disallowedInstruments = filteredDisallowedInstruments;\n }\n return this.fundingOptions && this.fundingOptions.disallowedInstruments;\n },\n\n getDisallowedPreferred: function getDisallowedPreferred() {\n var disallowedInstrument = this.getDisallowedInstruments();\n\n // find only the disallowed instrument that has been marked as preferred.\n disallowedInstrument = disallowedInstrument && _squid.$util.find(disallowedInstrument, function (fi) {\n return fi.isPreferred;\n });\n\n // if the disallowed instrument is in the plan list (in the case that the instrument has a BUF)\n // we do not show it in the disallowed section.\n var isDisallowedInstrumentInPlanList = disallowedInstrument && _squid.$util.some(this.getPlanList(), function (plan) {\n var instrumentID = plan.primaryFs && plan.primaryFs.id;\n\n if (instrumentID && disallowedInstrument.id) {\n return instrumentID === disallowedInstrument.id;\n } else {\n return false;\n }\n });\n\n return !isDisallowedInstrumentInPlanList && disallowedInstrument;\n },\n\n expiredInstruments: function expiredInstruments() {\n var expiredInstruments = [];\n var disallowedPreferred = this.getDisallowedPreferred();\n var disallowedInstruments = this.getDisallowedInstruments();\n\n if (disallowedPreferred) {\n expiredInstruments.push(disallowedPreferred);\n }\n\n _squid.$util.forEach(disallowedInstruments, function (instrument) {\n if (instrument.type === 'CARD' && !instrument.isPreferred && instrument.declineReason === 'unsupportedDueToExpiration') {\n expiredInstruments.push(instrument);\n }\n });\n\n return expiredInstruments;\n },\n\n preferredExpiredInstruments: function preferredExpiredInstruments() {\n var disallowedPreferred = this.getDisallowedPreferred();\n\n if (disallowedPreferred && disallowedPreferred.type === 'CARD' && disallowedPreferred.isPreferred && disallowedPreferred.declineReason === 'unsupportedDueToExpiration') {\n return true;\n }\n\n return false;\n },\n\n getShippingAddressMinimalDetails: function getShippingAddressMinimalDetails() {\n return {\n 'line1': this.shipping.line1,\n 'line2': this.shipping.line2,\n 'city': this.shipping.city,\n 'state': this.shipping.state,\n 'postal_code': this.shipping.postal_code,\n 'country_code': this.shipping.country\n };\n },\n\n getPPCconversionInfo: function getPPCconversionInfo() {\n var ppcFi = void 0;\n if (this.fundingOptions && this.fundingOptions.instruments) {\n ppcFi = this.fundingOptions.instruments.find(function (fi) {\n return fi.type === 'CREDIT' && fi.name === 'BILL_ME_LATER';\n });\n }\n if (ppcFi && ppcFi.currency_conversion) {\n return Object.assign({}, ppcFi.currency_conversion);\n }\n return null;\n }\n\n});\n\nangular.value(\"$CheckoutCartModel\", $CheckoutCartModel);\nangular.value(\"$CheckoutAppDataModel\", $CheckoutAppDataModel);\nangular.value(\"$FundingSourceModel\", $FundingSourceModel);\nangular.value(\"$FundingOptionsModel\", $FundingOptionsModel);\nangular.value(\"serializeInstallmentsOptionsData\", serializeInstallmentsOptionsData);\nangular.value(\"$InstallmentOptionsModel\", $InstallmentOptionsModel);\nangular.value(\"$FlowEligibilityModel\", $FlowEligibilityModel);\nangular.value(\"$CheckoutShippingAddressModel\", $CheckoutShippingAddressModel);\nangular.value(\"$ShippingAddressModel\", $ShippingAddressModel);\nangular.value(\"$CheckoutPayeeModel\", $CheckoutPayeeModel);\nangular.value(\"$CreditOptionsModel\", $CreditOptionsModel);\nangular.value(\"$CheckoutShippingAddressesModel\", $CheckoutShippingAddressesModel);\nangular.value(\"$CheckoutPlanModel\", $CheckoutPlanModel);\nangular.value(\"$CardBackupModel\", $CardBackupModel);\nangular.value(\"$CheckoutSessionModel\", $CheckoutSessionModel);\n_squid.$Class;\n\n_squid.$Model;\n\n_squid.$Api;\n\n_squid.$util;\n\n_squid.$config;\n\n_squid.$locale;\n\n_squid.$event;\n\n_squid.$feature;\n\n_processorDecline.getProcessorDeclineRetryEligibility;\n\n_utils.filterCardWithinLastNMonths;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-models/src/checkout/index.js\n// module id = ../node_modules/xo-models/src/checkout/index.js\n// module chunks = 0","\n\nexports.__esModule = true;\n/**\n* @param {Date} d1\n* @param {Date} d2\n* @returns {number}\n*/\nvar monthDiff = function monthDiff(d1, d2) {\n var months = void 0;\n months = (d2.getFullYear() - d1.getFullYear()) * 12;\n months -= d1.getMonth() + 1;\n months += d2.getMonth() + 1;\n return months <= 0 ? 0 : months;\n};\n\n/**\n* @param {Object} fi - A funding instrument\n* @param {boolean} expiredPeriod - feature boolean flag from config.json\n* @returns {boolean}\n*/\nvar filterCardWithinLastNMonths = function filterCardWithinLastNMonths(fi, expirePeriod) {\n var expire_year = fi.expire_year,\n expire_month = fi.expire_month;\n\n\n var expiryDate = new Date(expire_year + '-' + expire_month + '-01');\n\n var monthDifference = monthDiff(expiryDate, new Date());\n\n return monthDifference !== 0 && monthDifference <= expirePeriod;\n};\n\nexports.filterCardWithinLastNMonths = filterCardWithinLastNMonths;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-models/src/checkout/lib/utils.js\n// module id = ../node_modules/xo-models/src/checkout/lib/utils.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$stickyCTA = undefined;\n\nvar _angular = require('angular');\n\nvar _logger = require('xo-beaver/dist/logger');\n\nvar _squid = require('squid');\n\nvar _index = require('xo-device-info/dist/index');\n\nvar _checkout = require('../checkout');\n\nvar _gdprCookieBanner = require('../gdprCookieBanner');\n\nvar checkEligibility = function checkEligibility() {\n var token = _angular.$rootScope.token;\n var models = {};\n\n return _squid.$promise.all([(0, _squid.$populate)(models, {\n checkoutCartModel: _checkout.$CheckoutCartModel.instance(token),\n checkoutSessionModel: _checkout.$CheckoutSessionModel.instance(token),\n checkoutAppDataModel: _checkout.$CheckoutAppDataModel.instance(token)\n }), _gdprCookieBanner.$GDPRCookieBannerModel.instance().hasBanner()]).then(function () {\n // Device Checks\n var userAgent = _angular.$window.navigator.userAgent;\n var isIE = !!userAgent.match(/MSIE|trident|edge/i);\n var isMobile = _index.$DeviceInfo.isMobile();\n var miniBrowser = _angular.$rootScope.miniBrowser;\n var isValidTraffic = isMobile || miniBrowser;\n var isSmallScreen = _angular.$window.innerWidth <= 600;\n\n // Flow Checks\n var billing = models.checkoutCartModel.isBilling();\n var invoice = models.checkoutAppDataModel.get('flags.is_invoice_flow');\n var upop = models.checkoutSessionModel.unconfirmed_upop;\n var gpdr = _gdprCookieBanner.$GDPRCookieBannerModel.instance().shown();\n\n // Feature checks\n var eligibleCountry = (0, _squid.$feature)('stickyCTA');\n var ineligibilityConditions = {\n isIE: isIE,\n upop: upop,\n invoice: invoice,\n gpdr: gpdr,\n billing: billing,\n isNotSmallScreen: !isSmallScreen,\n isNotValidTraffic: !isValidTraffic,\n isNotEligibleCountry: !eligibleCountry\n };\n\n var decision = isValidTraffic && eligibleCountry && isSmallScreen && !billing && !invoice && !upop && !isIE && !gpdr;\n\n var ineligibilityReasons = Object.keys(ineligibilityConditions).filter(function (key) {\n return ineligibilityConditions[key];\n });\n var eligibility_reason = 'eligible';\n\n if (ineligibilityReasons.length > 0 || !decision) {\n eligibility_reason = 'ineligible-' + ineligibilityReasons.join(',');\n }\n _logger.$logger.info('checkout_fpti', {\n from: 'sticky_cta',\n to: 'process_eligibility_check',\n eligibility_reason: eligibility_reason\n });\n\n return decision;\n });\n};\n\nvar checkPxp = function checkPxp() {\n var _$CheckoutAppDataMode = _checkout.$CheckoutAppDataModel.instance(_angular.$rootScope.token),\n merchant = _$CheckoutAppDataMode.merchant;\n\n var country = merchant && merchant.merchant_country;\n\n return (0, _squid.$pxp)('xo_hermesnode_config', { 'ctx.COUNTRY': country }, 'xo_hermesnode_sticky_cta_(.*)', false, true).then(function (treatment) {\n if (treatment) {\n var test = /xo_hermesnode_sticky_cta_(.*)/g;\n var name = treatment && treatment.treatment_name;\n var treatmentTest = test.exec(name);\n var treatmentName = treatmentTest.length > 1 && treatmentTest[1];\n\n _logger.$logger.info('checkout_fpti', {\n from: 'sticky_cta',\n to: 'process_pxp_check',\n eligibility_reason: treatmentName\n });\n return treatmentName;\n }\n return '';\n });\n};\n\nvar mapper = function mapper(eligibility, treatment) {\n var variant = {\n 'treatmentA': 'bottom',\n 'treatmentB': 'top',\n 'control': '',\n 'DEFAULT': ''\n };\n var result = variant[treatment] || variant.DEFAULT;\n\n _logger.$logger.info('checkout_fpti', {\n from: 'sticky_cta',\n to: 'process_variant_check',\n eligibility_reason: result || 'ineligible'\n });\n return result;\n};\n\n/**\n * To be replaced by $EligibilityClass.\n * Following new EligibilityClass pattern.\n*/\nvar $stickyCTA = exports.$stickyCTA = _squid.$Model.extend('$stickyCTA', {\n getEligibility: function getEligibility() {\n return checkEligibility().then(function (eligibility) {\n if (eligibility) {\n return checkPxp().then(function (treatment) {\n return mapper(eligibility, treatment);\n });\n } else {\n return '';\n }\n });\n }\n});\n\nangular.value(\"$stickyCTA\", $stickyCTA);\n_angular.$rootScope;\n\n_angular.$window;\n\n_logger.$logger;\n\n_squid.$Model;\n\n_squid.$populate;\n\n_squid.$pxp;\n\n_squid.$feature;\n\n_squid.$promise;\n\n_index.$DeviceInfo;\n\n_checkout.$CheckoutCartModel;\n\n_checkout.$CheckoutSessionModel;\n\n_checkout.$CheckoutAppDataModel;\n\n_gdprCookieBanner.$GDPRCookieBannerModel;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-models/src/eligibility/index.js\n// module id = ../node_modules/xo-models/src/eligibility/index.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$CardInfoModel = exports.$WalletInstrumentNameMapping = exports.$WalletPreferences = exports.$ResolveOTP = exports.$Resolve3DS = exports.$CardTypeFromBinModel = exports.$BillingAddressesModel = exports.$CurrencyConversionModel = exports.$BillingAddressModel = exports.$AddBillingAddressModel = exports.$DeleteCardModel = exports.$SepaModel = exports.$PreferredFi = exports.$AddBankModel = exports.$BankModel = exports.$CardTypesModel = exports.$UnavailableCardModel = exports.$AddCardModel = exports.$CardModel = undefined;\n\nvar _index = require('xo-device-info/dist/index');\n\nvar _squid = require('squid');\n\nvar BILLING_ADDRESS_FORMAT = {\n DEFAULT: {\n ',': ', ',\n ' ': ' '\n },\n IL: {\n he: {\n ',': '‏, ‏',\n ' ': '‏ ‏'\n }\n }\n};\n\nvar $CardModel = exports.$CardModel = _squid.$Model.extend('$CardModel', {\n serialize: function serialize() {\n return {\n type: this.type,\n number: this.number.replace(/[^\\d]+/g, ''),\n security_code: this.security_code,\n expiry_month: this.expiry_month && _squid.$util.pad(this.expiry_month, 2),\n expiry_year: this.expiry_year,\n issue_number: this.issue_number ? this.issue_number : undefined,\n start_month: this.start_month ? _squid.$util.pad(this.start_month, 2) : undefined,\n start_year: this.start_year ? this.start_year : undefined\n };\n },\n\n last4: function last4() {\n var cardNumber = this.number;\n\n return cardNumber.substr(cardNumber.length - 4);\n },\n\n isExisting: function isExisting() {\n return this.number && Boolean(this.number.match(/^xxxx-xxxx-xxxx-[\\d]{4}$/));\n }\n});\n\nvar $AddCardModel = exports.$AddCardModel = _squid.$Model.extend('$AddCardModel', {\n api: new _squid.$Api({\n uri: '/api/fi/card/:id?'\n }),\n\n init: function init() {\n this._super.init.apply(this);\n this.card = new $CardModel();\n },\n\n serialize: function serialize() {\n var id = this.address.id && this.address.id !== '0' ? this.address.id : undefined;\n\n return {\n cardType: this.cardType ? this.cardType : 'creditCard',\n sponsor_id: this.sponsor_id,\n preference: this.preference,\n user: this.user,\n card: this.card.serialize(),\n address: id ? {\n id: id\n } : this.address.serialize()\n };\n },\n\n clearId: function clearId() {\n delete this.id;\n }\n});\n\nvar $UnavailableCardModel = exports.$UnavailableCardModel = _squid.$Model.extend('$UnavailableCardModel', {\n api: new _squid.$Api({\n uri: '/api/fi/unavailable/card?addFIContingency'\n })\n});\n\nvar $CardTypesModel = exports.$CardTypesModel = _squid.$Model.extend('$CardTypesModel', {\n api: new _squid.$Api({\n uri: '/api/fi/card/types?country=:country&token=:token'\n }),\n\n retrieve: function retrieve() {\n return this._super.retrieve.apply(this, arguments).then(function (result) {\n this.disallowedCards = (0, _squid.$feature)('disallowedCards', undefined, this.country);\n // override disallowed cards with card types config list based on country\n if (this.disallowedCards) {\n result.disallowed = this.disallowedCards.cardTypes;\n }\n return result;\n });\n },\n\n supportedNames: function supportedNames() {\n if (typeof this.allowed === 'undefined') {\n return;\n }\n\n return this.allowed.map(function (type) {\n return _squid.$locale.content.cardTypes[type];\n });\n },\n\n unsupportedNames: function unsupportedNames() {\n if (typeof this.disallowed === 'undefined') {\n return;\n }\n\n return this.disallowed.map(function (type) {\n return _squid.$locale.content.cardTypes[type];\n });\n }\n});\n\nvar $BankModel = exports.$BankModel = _squid.$Model.extend('$BankModel', {\n init: function init() {\n this._super.init.apply(this);\n this.bank_account_number = '';\n this.bank_routing_number = '';\n this.iban_number = '';\n },\n\n serialize: function serialize() {\n var data = {};\n\n if (this.bank_account_number) {\n data.bank_account_number = this.bank_account_number;\n }\n if (this.bank_routing_number) {\n data.bank_routing_number = this.bank_routing_number;\n }\n if (this.iban_number) {\n data.iban_number = this.iban_number.replace(/\\s/g, '').toUpperCase();\n }\n return data;\n }\n});\n\nvar $AddBankModel = exports.$AddBankModel = _squid.$Model.extend('$AddBankModel', {\n api: new _squid.$Api({\n uri: '/api/fi/bank'\n }),\n\n init: function init() {\n this._super.init.apply(this);\n this.user = this.user || {\n first_name: '',\n dob_day: '',\n dob_month: '',\n dob_year: '',\n currency_code: '',\n country: ''\n };\n this.bank = this.bank || new $BankModel();\n this.address = this.address || {};\n this.creditorDetails = this.creditorDetails || {};\n this.fiDetails = this.fiDetails || {};\n },\n\n getBankData: function getBankData() {\n var data = {};\n\n // Set user info\n data.user = this.user;\n\n // Set bank info\n var bank = {};\n\n this.bank = this.bank || {};\n\n if (this.candidate_id) {\n data.candidate_id = this.candidate_id;\n }\n\n if (this.bank.bank_account_number) {\n bank.bank_account_number = this.bank.bank_account_number;\n }\n\n if (this.bank.bank_routing_number) {\n bank.bank_routing_number = this.bank.bank_routing_number;\n }\n\n if (this.bank.iban_number) {\n bank.iban_number = this.bank.iban_number.replace(/\\s/g, '');\n }\n data.bank = bank;\n\n // Set address info\n if (this.address) {\n data.address = {\n line1: this.address.line1,\n line2: this.address.line2,\n city: this.address.city,\n country: this.address.country,\n postal_code: this.address.postal_code\n };\n }\n\n return data;\n }\n});\n\nvar $PreferredFi = exports.$PreferredFi = _squid.$Model.extend('$PreferredFi', {\n api: new _squid.$Api({\n uri: '/api/fi/preferred'\n }),\n\n init: function init() {\n this._super.init.apply(this);\n\n // Get the type of device to send to FI for logging\n function getUiChannel() {\n var capabilities = _index.$DeviceInfo.getCapabilities();\n\n if (capabilities.isTablet) {\n return 'Tablet';\n } else if (capabilities.isMobile) {\n return 'Mobile';\n } else if (capabilities.isDesktop) {\n return 'Desktop';\n } else if (capabilities.isApp) {\n return 'App';\n } else {\n return null;\n }\n }\n\n this.uiChannel = getUiChannel();\n },\n\n serialize: function serialize() {\n return {\n preferred: this.preferred,\n uiChannel: this.uiChannel\n };\n }\n});\n\nvar $SepaModel = exports.$SepaModel = _squid.$Model.extend('$SepaModel', {\n api: new _squid.$Api({\n uri: '/api/fi/bank'\n })\n});\n\nvar $DeleteCardModel = exports.$DeleteCardModel = _squid.$Model.extend('$DeleteCardModel', {\n api: new _squid.$Api({\n uri: '/api/fi/card/:id/delete'\n })\n});\n\nvar $AddBillingAddressModel = exports.$AddBillingAddressModel = _squid.$Model.extend('$AddBillingAddressModel', {\n api: new _squid.$Api({\n uri: '/api/fi/:instrumentid/addbillingaddress'\n })\n});\n\nvar $BillingAddressModel = exports.$BillingAddressModel = _squid.$Model.extend('$BillingAddressModel', {\n api: new _squid.$Api({\n uri: '/api/fi/billingaddress/validate'\n }),\n\n format: function format() {\n\n var langConfig = (BILLING_ADDRESS_FORMAT[_squid.$locale.country] || {})[_squid.$locale.lang] || {};\n\n var comma = angular.isUndefined(langConfig[',']) ? BILLING_ADDRESS_FORMAT['DEFAULT'][','] : langConfig[','];\n var space = angular.isUndefined(langConfig[' ']) ? BILLING_ADDRESS_FORMAT['DEFAULT'][' '] : langConfig[' '];\n\n return _squid.$util.filter([this.line1, this.line2, this.city, this.state, this.country]).join(comma) + space + _squid.$util.filter([this.postal_code]);\n },\n\n serialize: function serialize() {\n return {\n line1: this.line1 && this.line1.trim(),\n line2: this.line2 && this.line2.trim(),\n city: this.city && this.city.trim(),\n state: this.state && this.state.trim(),\n postal_code: this.postal_code && this.postal_code.trim(),\n normalization_status: this.normalization_status,\n country: this.country\n };\n }\n});\n\nvar $CurrencyConversionModel = exports.$CurrencyConversionModel = _squid.$Model.extend('$CurrencyConversionModel', {\n api: new _squid.$Api({\n uri: '/api/fi/currencyConversion'\n })\n});\n\nvar $BillingAddressesModel = exports.$BillingAddressesModel = _squid.$Model.extend('$BillingAddressesModel', {\n api: new _squid.$Api({\n uri: '/api/fi/billingaddress'\n }),\n\n onPopulate: function onPopulate() {\n this.addresses = this.children($BillingAddressModel, this.addresses);\n }\n});\n\nvar $CardTypeFromBinModel = exports.$CardTypeFromBinModel = _squid.$Model.extend('$CardTypeFromBinModel', {\n api: new _squid.$Api({\n uri: '/api/fi/cardTypeFromBin'\n })\n});\n\nvar $Resolve3DS = exports.$Resolve3DS = _squid.$Model.extend('$Resolve3DS', {\n api: new _squid.$Api({\n uri: '/api/fi/3ds/:id'\n })\n});\n\nvar $ResolveOTP = exports.$ResolveOTP = _squid.$Model.extend('$ResolveOTP', {\n api: new _squid.$Api({\n uri: '/api/fi/otp/:id'\n })\n});\n\nvar $WalletPreferences = exports.$WalletPreferences = _squid.$Model.extend('$WalletPreferences', {\n api: new _squid.$Api({\n uri: '/api/fi/wallet/preferences'\n }),\n\n invalidateOnLogout: true, // invalidate this model when auth.logout() gets called\n\n init: function init() {\n this._super.init.apply(this);\n this.topup = {};\n this.direct = {};\n },\n\n serialize: function serialize() {\n var data = {};\n\n if (this.topup.amount) {\n var _topup = this.topup,\n amount = _topup.amount,\n _topup$fundingSource = _topup.fundingSource;\n _topup$fundingSource = _topup$fundingSource === undefined ? {} : _topup$fundingSource;\n var instrument_id = _topup$fundingSource.instrument_id;\n\n // Set the Topup funding instrument in the wallet preference api, which will be used by future Topup transactions\n\n data.topup = {\n amount: amount,\n instrument_id: instrument_id,\n autoload_minimum_threshold: _squid.$config.topup.autoload_minimum_threshold\n };\n } else {\n var _direct$fundingSource = this.direct.fundingSource;\n _direct$fundingSource = _direct$fundingSource === undefined ? {} : _direct$fundingSource;\n var _instrument_id = _direct$fundingSource.instrument_id;\n\n // Set the Direct funding instrument in the wallet preference api, which will be used by future Direct funding transactions\n\n data.direct = {\n instrument_id: _instrument_id,\n currency_code: this.currency\n };\n }\n return data;\n },\n\n /**\n * Return the preferred topup/direct fundingsource.\n * Originally values of topup & direct are from the FI wallet preferences api, which gets assigned during the init() call.\n * Values can be changed in the Review and the Wallet pages.\n */\n getPreferred: function getPreferred() {\n if (this.topup.fundingSource && this.topup.fundingSource.instrument_id) {\n // xo-hermes-fi will always return topup.fundingSource even when there is no preferred topup instrument, hence making the additional check here.\n return this.topup.fundingSource;\n } else {\n return this.direct.fundingSource || {};\n }\n }\n});\n\nvar $WalletInstrumentNameMapping = exports.$WalletInstrumentNameMapping = _squid.$Model.extend('$WalletInstrumentNameMapping', {\n init: function init() {\n this._super.init.apply(this);\n this.INSTRUMENT_MAP = {\n AMSOUTH: /AMSOUTH,/,\n BOFA: /BANK OF AMERICA/,\n CAPITAL: /CAPITAL/,\n CHASE: /CHASE/,\n CITI: /CITIBANK/,\n FIFTHTHIRD: /FIFTH THIRD BANK/,\n HUNTINGTON: /HUNTINGTON/,\n INGDIRECT: /ING DIRECT/,\n NATIONALCITY: /NATIONAL CITY/,\n PNC: /PNC/,\n REGIONS: /REGIONS/,\n SUNTRUST: /SUNTRUST/,\n TDWATERHOUSE: /TD WATERHOUSE/,\n USAA: /USAA/,\n USBANK: /US BANK/,\n VISA: /VISA/,\n WAMUTUAL: /WASHINGTON MUTUAL/,\n WELLSFARGO: /WELLS FARGO/\n };\n this.INSTRUMENT_NAMES = Object.keys(this.INSTRUMENT_MAP);\n },\n\n getInstrumentNameNormalized: function getInstrumentNameNormalized(fsName) {\n var _this = this;\n\n if (!fsName) {\n return;\n }\n\n fsName = fsName.toUpperCase();\n\n return _squid.$util.find(this.INSTRUMENT_NAMES, function (instName) {\n if (_this.INSTRUMENT_MAP[instName].test(fsName)) {\n return true;\n }\n return false;\n });\n }\n});\n\nvar $CardInfoModel = exports.$CardInfoModel = _squid.$Model.extend('$CardInfoModel', {\n api: new _squid.$Api({\n uri: '/api/fi/card/:id'\n })\n});\n\nangular.value(\"$CardModel\", $CardModel);\nangular.value(\"$AddCardModel\", $AddCardModel);\nangular.value(\"$UnavailableCardModel\", $UnavailableCardModel);\nangular.value(\"$CardTypesModel\", $CardTypesModel);\nangular.value(\"$BankModel\", $BankModel);\nangular.value(\"$AddBankModel\", $AddBankModel);\nangular.value(\"$PreferredFi\", $PreferredFi);\nangular.value(\"$SepaModel\", $SepaModel);\nangular.value(\"$DeleteCardModel\", $DeleteCardModel);\nangular.value(\"$AddBillingAddressModel\", $AddBillingAddressModel);\nangular.value(\"$BillingAddressModel\", $BillingAddressModel);\nangular.value(\"$CurrencyConversionModel\", $CurrencyConversionModel);\nangular.value(\"$BillingAddressesModel\", $BillingAddressesModel);\nangular.value(\"$CardTypeFromBinModel\", $CardTypeFromBinModel);\nangular.value(\"$Resolve3DS\", $Resolve3DS);\nangular.value(\"$ResolveOTP\", $ResolveOTP);\nangular.value(\"$WalletPreferences\", $WalletPreferences);\nangular.value(\"$WalletInstrumentNameMapping\", $WalletInstrumentNameMapping);\nangular.value(\"$CardInfoModel\", $CardInfoModel);\n_index.$DeviceInfo;\n\n_squid.$Model;\n\n_squid.$Api;\n\n_squid.$util;\n\n_squid.$config;\n\n_squid.$feature;\n\n_squid.$locale;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-models/src/fi/index.js\n// module id = ../node_modules/xo-models/src/fi/index.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$fiApis = undefined;\n\nvar _angular = require('angular');\n\nvar $fiApis = exports.$fiApis = {\n patchCvv: function patchCvv(checkoutSession) {\n var cvvData = checkoutSession.get('cvvData');\n\n if (cvvData) {\n return checkoutSession.action('patchCvv', {\n data: {\n id: cvvData.id,\n cvv: cvvData.security_code,\n type: cvvData.type,\n number: cvvData.number\n }\n });\n }\n\n return _angular.$q.when();\n }\n};\n\nangular.value(\"$fiApis\", $fiApis);\n_angular.$q;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-models/src/fi/lib/fiApis.js\n// module id = ../node_modules/xo-models/src/fi/lib/fiApis.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$FreeReturnShippingOptInModel = exports.$FreeReturnShippingApplicabilityModel = undefined;\n\nvar _squid = require('squid');\n\nvar $FreeReturnShippingApplicabilityModel = exports.$FreeReturnShippingApplicabilityModel = _squid.$Model.extend('$FreeReturnShippingApplicabilityModel', {\n api: new _squid.$Api({\n uri: '/api/offers/freeReturnShipping/checkApplicability'\n })\n});\n\nvar $FreeReturnShippingOptInModel = exports.$FreeReturnShippingOptInModel = _squid.$Model.extend('$FreeReturnShippingOptInModel', {\n api: new _squid.$Api({\n uri: '/api/offers/freeReturnShipping/optInUser'\n })\n});\n\nangular.value(\"$FreeReturnShippingApplicabilityModel\", $FreeReturnShippingApplicabilityModel);\nangular.value(\"$FreeReturnShippingOptInModel\", $FreeReturnShippingOptInModel);\n_squid.$Model;\n\n_squid.$Api;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-models/src/frs/index.js\n// module id = ../node_modules/xo-models/src/frs/index.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$GDPRCookieBannerModel = exports.isGdprValid = exports.testGdprBannerCookie = undefined;\n\nvar _squid = require('squid');\n\nvar _logger = require('xo-beaver/dist/logger');\n\nvar testGdprBannerCookie = exports.testGdprBannerCookie = function testGdprBannerCookie(cookies) {\n return (/(^|;\\s*)cookie_prefs=/.test(cookies)\n );\n};\n\nvar isGdprValid = exports.isGdprValid = function isGdprValid() {\n if (_squid.$util.param('forceGDPR')) {\n return true;\n }\n\n var country = _squid.$locale.country;\n\n return _squid.$util.getProperty(_squid.$config, 'GDPR.cookieBanner', { 'default': false }) && _squid.$util.getProperty(_squid.$config, 'GDPR.countries', { 'default': [] }).indexOf(country) > -1;\n};\n\nvar $GDPRCookieBannerModel = exports.$GDPRCookieBannerModel = _squid.$Model.extend('$GDPRCookieBannerModel', {\n api: new _squid.$Api({\n uri: '/api/cookieBanner'\n }),\n\n /**\n * Handles the logic for when to fetch the banner and when to return\n * Don't repeat the call for same country\n * Don't return the banner if not PXP check\n * @returns {Promise} resolves an object\n */\n getBanner: function getBanner() {\n var _this = this;\n\n // API is cached on country. Return current result if already present\n if (this.lastResult && this.lastCountry === _squid.$locale.country && this.lastLang === _squid.$locale.lang) {\n return this.lastResult;\n }\n\n // Invalidate the model to make a fresh call\n this.invalidate();\n\n // Log if the user has cookie indicating a previous interaction with the cookie banner\n if (testGdprBannerCookie(document.cookie)) {\n _logger.$logger.info('checkout_fpti', {\n from: 'GDPR_banner',\n to: 'GDPR_banner_has_cookie'\n });\n }\n\n // Cache the result promise and params\n this.lastCountry = _squid.$locale.country;\n this.lastLang = _squid.$locale.lang;\n this.lastResult = this.retrieve().then(function (res) {\n var html = res.html,\n css = res.css,\n js = res.js;\n\n\n if (!html || !js || !css) {\n _logger.$logger.info('gdpr_response_missing_props', {\n html: !!html,\n js: !!js,\n css: !!css\n });\n _this.reset();\n return;\n }\n\n _logger.$logger.info('checkout_fpti', {\n from: 'GDPR_banner',\n to: 'GDPR_banner_shown'\n });\n\n return { html: html, css: css, js: js };\n });\n\n return this.lastResult;\n },\n reset: function reset() {\n this.html = '';\n this.css = '';\n this.js = '';\n },\n shown: function shown() {\n return !!this.html;\n },\n\n // Check if a banner was shown in the flow.\n // SOME EDGE CASES:\n // Will not update when the user clicks to accept the banner, and it closes\n // Will update if retrieve is called with a new country and blank data is returned\n hasBanner: function hasBanner() {\n var _this2 = this;\n\n // check config flag\n // check if already populated\n // make call again and let regular logic populate html\n // return boolean\n\n if (!isGdprValid()) {\n return _squid.$promise.resolve(false);\n }\n if (this.html) {\n return _squid.$promise.resolve(this.shown());\n }\n return this.getBanner().then(function () {\n return _this2.shown();\n });\n }\n});\n\nangular.value(\"testGdprBannerCookie\", testGdprBannerCookie);\nangular.value(\"isGdprValid\", isGdprValid);\nangular.value(\"$GDPRCookieBannerModel\", $GDPRCookieBannerModel);\n_squid.$Model;\n\n_squid.$Api;\n\n_squid.$locale;\n\n_squid.$config;\n\n_squid.$util;\n\n_squid.$promise;\n\n_logger.$logger;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-models/src/gdprCookieBanner/index.js\n// module id = ../node_modules/xo-models/src/gdprCookieBanner/index.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$InventoryModel = undefined;\n\nvar _squid = require('squid');\n\nvar $InventoryModel = exports.$InventoryModel = _squid.$Model.extend('$InventoryModel', {\n api: new _squid.$Api({\n uri: '/api/catalog/:id/item/',\n postAttempts: 2,\n cache: true\n }),\n\n setInvetoryItems: function setInvetoryItems(inventoryItems) {\n this.inventoryItems = inventoryItems;\n },\n\n getInventoryItems: function getInventoryItems() {\n return this.inventoryItems;\n }\n});\n\nangular.value(\"$InventoryModel\", $InventoryModel);\n_squid.$Model;\n\n_squid.$Api;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-models/src/inventory/index.js\n// module id = ../node_modules/xo-models/src/inventory/index.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$CreditOfferModel = exports.$MemberSegmentModel = exports.$fireMORSBeacon = exports.$MessageDiscoverModel = exports.$MarketingOfferModel = undefined;\n\nvar _uuid = require('node-uuid/uuid');\n\nvar _uuid2 = _interopRequireDefault(_uuid);\n\nvar _squid = require('squid');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar $MarketingOfferModel = exports.$MarketingOfferModel = _squid.$Model.extend('$MarketingOfferModel', {\n api: new _squid.$Api({\n uri: '/api/checkout/offer/search-ads',\n postAttempts: 1,\n cache: true\n }),\n init: function init() {\n this.setProperties({ ads: [] });\n this.meta = { populated: false };\n },\n onPopulate: function onPopulate() {\n var _this = this;\n\n if (this.targetPlacements && this.targetPlacements[0]) {\n var targetAd = this.ads.find(function (ad) {\n return ad.valid && ad.campaign.adunit_id === _this.targetPlacements[0].placement_code;\n });\n\n this.ad = undefined;\n if (targetAd) {\n var ad = {};\n var nvpContent = targetAd && targetAd.content && targetAd.content.nvp;\n\n nvpContent.forEach(function (obj) {\n ad[obj.name] = obj.value;\n });\n ad['impressionUrl'] = targetAd && targetAd.tracking && targetAd.tracking.impression_url;\n ad['clickUrl'] = targetAd && targetAd.tracking && targetAd.tracking.click_url;\n ad['campaignId'] = targetAd && targetAd.campaign && targetAd.campaign.campaign_id;\n ad['buyItemId'] = targetAd && targetAd.campaign && targetAd.campaign.buy_item_id;\n ad['placementCode'] = targetAd && targetAd.campaign && targetAd.campaign.adunit_id;\n this.ad = ad;\n }\n }\n },\n getCacheKey: function getCacheKey() {\n var cacheKey = {};\n\n if (this.cacheParam) {\n this.cacheParam.forEach(function (element) {\n if (typeof element.value !== 'undefined') {\n cacheKey[element.name] = element.value.toString();\n }\n });\n }\n return cacheKey;\n },\n serialize: function serialize() {\n return {\n 'site': this.site,\n 'locale': this.locale,\n 'si': this.si,\n 'visit_id': _uuid2['default'].v4(),\n 'page': this.page,\n 'epu': this.payer,\n 'pu_type': this.puType || 'ANONYMOUS',\n 'country_code': this.countryCode,\n 'payment_context': {\n 'total_transaction_amount': this.totalTransactionAmount,\n 'total_shipping_amount': this.totalShippingAmount,\n 'business_case': 'NONE',\n 'business_case_variation': '',\n 'validate_existing_offer': 'false',\n 'payment_units': [{\n 'transaction_amount': this.totalTransactionAmount,\n 'transaction_id': '',\n 'encrypted_transaction_id': '',\n 'activity_id': '',\n 'payee': {\n 'pu_type': 'BUSINESS',\n 'country_code': this.countryCode,\n 'epu': this.payee,\n 'pu': ''\n }\n }]\n },\n 'target_placements': this.targetPlacements,\n 'wallet_instruments': this.walletInstruments,\n 'addl_property_installments_not_allowed': this.installmentsNotAllowed\n };\n },\n getTargetAd: function getTargetAd() {\n return this.ad;\n },\n isAdFound: function isAdFound() {\n if (this.ad) {\n for (var property in this.ad) {\n if (this.ad.hasOwnProperty(property)) {\n return true;\n }\n }\n }\n return false;\n }\n});\n\nvar $MessageDiscoverModel = exports.$MessageDiscoverModel = _squid.$Model.extend('$MessageDiscoverModel', {\n api: new _squid.$Api({\n uri: '/api/checkout/offer/discover-messages',\n postAttempts: 1\n })\n});\n\nvar $fireMORSBeacon = exports.$fireMORSBeacon = {\n fireBeacon: function fireBeacon(uri) {\n var img = document.createElement('img');\n\n img.setAttribute('src', uri);\n document.body.appendChild(img);\n return;\n }\n};\n\nvar $MemberSegmentModel = exports.$MemberSegmentModel = _squid.$Model.extend('$MemberSegmentModel', {\n api: new _squid.$Api({\n uri: '/api/segment/memberSegment',\n postAttempts: 1\n }),\n invalidateOnLogout: true, // invalidate this model when auth.logout() gets called\n getMemberSegment: function getMemberSegment() {\n return this.memberSegment;\n },\n getCreditOffer: function getCreditOffer() {\n return this.creditOffer;\n },\n isNewMember: function isNewMember() {\n return this.memberSegment === 'NEW_MEMBER' || this.memberSegment === 'YOUNG_MEMBER';\n },\n isExistingMember: function isExistingMember() {\n return this.memberSegment === 'EXISTING_MEMBER';\n },\n // Member Segments that are eligble for the New Experience\n isEligibleForExperimentation: function isEligibleForExperimentation() {\n var eligibleMemberSegments = _squid.$config.memberSegments;\n\n return eligibleMemberSegments.indexOf(this.memberSegment) > -1;\n }\n});\n\nvar $CreditOfferModel = exports.$CreditOfferModel = $MessageDiscoverModel.extend('$CreditOfferModel', {\n init: function init() {\n this.setProperties({\n bannerMessages: []\n });\n },\n populate: function populate(result) {\n var _this2 = this;\n\n if (result && result.touchpoint_messages) {\n var touchpoint_messages = result.touchpoint_messages.find(function (element) {\n return element.touchpoint_code === _this2.touchpoint;\n });\n\n this.storeMessages(touchpoint_messages);\n }\n },\n storeMessages: function storeMessages(touchpoint_messages) {\n if (touchpoint_messages) {\n this.viewName = touchpoint_messages.view_name;\n\n if (touchpoint_messages.messages) {\n var messages = touchpoint_messages.messages;\n\n for (var i = 0; i < touchpoint_messages.messages.length; i++) {\n var presentmentType = messages[i].content.json.PresentmentType;\n\n if (presentmentType === 'Banner') {\n this.bannerMessages.push(messages[i]);\n }\n }\n }\n }\n },\n getBannerCount: function getBannerCount() {\n return this.bannerMessages.length;\n },\n hasBannerMessage: function hasBannerMessage() {\n return this.getBannerCount() > 0;\n },\n getTouchpointCode: function getTouchpointCode() {\n return this.touchpoint;\n },\n getBannerMessage: function getBannerMessage(i) {\n i = !i ? 0 : i;\n\n if (this.getBannerCount() > i) {\n return this.bannerMessages[i];\n }\n return null;\n },\n getCacheKey: function getCacheKey() {\n var cacheKey = {};\n\n if (this.application_context) {\n this.application_context.forEach(function (element) {\n if (typeof element.value !== 'undefined') {\n cacheKey[element.name] = element.value.toString();\n }\n });\n }\n return cacheKey;\n },\n serialize: function serialize() {\n return {\n 'country_code': this.locale.country,\n 'language': this.locale.lang + '_' + this.locale.country,\n 'identity_context': [{\n 'type': 'PAYER_ID',\n 'value': this.payer\n }, {\n 'type': 'MERCHANT_PAYER_ID',\n 'value': this.payee\n }],\n 'recommendation_context': {\n 'view_names': this.view_names ? this.view_names : [],\n 'touchpoint_details': [{\n 'code': this.touchpoint,\n 'message_count': this.message_count ? this.message_count : 1\n }]\n },\n 'application_context': this.application_context\n };\n }\n});\n\nangular.value(\"$MarketingOfferModel\", $MarketingOfferModel);\nangular.value(\"$MessageDiscoverModel\", $MessageDiscoverModel);\nangular.value(\"$fireMORSBeacon\", $fireMORSBeacon);\nangular.value(\"$MemberSegmentModel\", $MemberSegmentModel);\nangular.value(\"$CreditOfferModel\", $CreditOfferModel);\n_squid.$Model;\n\n_squid.$Api;\n\n_squid.$config;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-models/src/marketingoffer/index.js\n// module id = ../node_modules/xo-models/src/marketingoffer/index.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$SingleStepModel = exports.$GuestUpgradeModel = exports.$OnboardPhoneModel = exports.$OnboardUserModel = exports.$OnboardModel = undefined;\n\nvar _squid = require('squid');\n\nvar _index = require('../fi/index');\n\nvar _directive = require('xo-form-components/src/national-id-input/directive');\n\nvar $OnboardModel = exports.$OnboardModel = _squid.$Model.extend('$OnboardModel', {\n api: new _squid.$Api({\n uri: '/api/onboard'\n }),\n\n init: function init() {\n this._super.init.apply(this);\n this.fiMode = this.fiMode || 'card'; // Supports card or bank\n this.bank = this.bank || new _index.$BankModel();\n this.card = this.card || new _index.$CardModel();\n },\n\n serialize: function serialize() {\n var data = {\n user: this.user.serialize(),\n billing_address: this.billing_address.serialize(),\n shipping_address: this.shipping_address.serialize(),\n phone: this.phone.serialize(),\n marketing_optin: this.marketingOptin,\n shipping_address_validation: this.shipping_address_validation,\n billing_address_present: this.billing_address_present,\n payment_experience_initiator: this.payment_experience_initiator,\n poma_flow: this.poma_flow,\n prox_flow: this.prox_flow,\n testParams: this.testParams,\n content_identifier: this.content_identifier,\n frs_optin_flow_applicable: this.frs_optin_flow_applicable, // Free Return Shipping Opt-in flow applicability flag\n frs_optin_active_flow: this.frs_optin_active_flow, // Denotes FRS opt in flow type - Active (true) or Silent (false)\n flow_eligibility_data: this.flow_eligibility_data,\n bypass_address_verification: this.bypass_address_verification,\n bypass_authorization: this.bypass_authorization\n };\n\n if (this.nationalIdModel) {\n data.nationalIdModel = {\n 'secondaryIdType': this.nationalIdModel.secondaryIdType,\n 'secondaryIdValue': this.nationalIdModel.secondaryIdValue\n };\n\n if (this.nationalIdModel.nationalId) {\n data.nationalIdModel.nationalId = {\n type: this.nationalIdModel.nationalId.type,\n subType: this.nationalIdModel.nationalId.subType,\n value: this.nationalIdModel.nationalId.value\n };\n }\n }\n\n if (this.fiMode === 'card') {\n data.card = this.card.serialize();\n } else {\n data.bank = this.bank.serialize();\n }\n\n data.skipInitiateAuth = this.skipInitiateAuth;\n\n return data;\n }\n});\n\nvar $OnboardUserModel = exports.$OnboardUserModel = _squid.$Model.extend('$OnboardUserModel', {\n serialize: function serialize() {\n var onboardUserModel = {\n first_name: this.first_name,\n last_name: this.last_name,\n email: this.email,\n password: this.password,\n countryOfResidence: this.countryOfResidence,\n country: this.country,\n dob_day: this.dob_day,\n dob_month: this.dob_month,\n dob_year: this.dob_year,\n occupation: this.occupation,\n nationality: this.nationality,\n gender_type: this.gendertype,\n place_of_birth: this.placeofbirth\n };\n\n if (this.nativeName) {\n onboardUserModel.nativeName = {\n first_name: this.nativeName.first_name,\n last_name: this.nativeName.last_name,\n middle_name: this.nativeName.middle_name\n };\n }\n\n return onboardUserModel;\n }\n});\n\nvar $OnboardPhoneModel = exports.$OnboardPhoneModel = _squid.$Model.extend('$OnboardPhoneModel', {\n serialize: function serialize() {\n return {\n type: this.phoneType,\n number: this.telephone,\n countryCode: this.IntDialingCountryCode\n };\n }\n});\n\n/**\n * A model for handling onboarding guest accounts\n * into PayPal accounts (happens post transaction)\n */\n\nvar $GuestUpgradeModel = exports.$GuestUpgradeModel = _squid.$Model.extend('$GuestUpgradeModel', {\n api: new _squid.$Api({\n uri: '/api/onboard/guest-upgrade'\n }),\n\n serialize: function serialize() {\n var data = {\n user: this.user.serialize(),\n phone: this.phone.serialize(),\n billing_address: this.billing_address.serialize(),\n payerId: this.payerId,\n transaction: this.transaction,\n marketing_optin: this.marketing_optin,\n contentIdentifier: this.contentIdentifier,\n experienceIdentifier: this.experienceIdentifier,\n experienceChannel: this.experienceChannel,\n nationalId: this.nationalIdModel ? this.nationalIdModel.serialize() : _directive.$NationalIdModel.instance().serialize()\n };\n\n // append additional phone data\n data.phone.country_prefix = this.phone && this.phone.IntDialingCountryCode;\n\n // append additional billing_address data\n data.billing_address.normalization_status = this.billing_address && this.billing_address.normalization_status;\n\n return data;\n },\n\n serializeEmailFlow: function serializeEmailFlow() {\n var data = {\n user: this.user.serialize(),\n phone: this.phone.serialize(),\n billing_address: this.billing_address.serialize(),\n payerId: this.payerId,\n transaction: this.transaction,\n receiptId: this.receiptId,\n marketing_optin: this.marketing_optin,\n card: this.card\n };\n\n return data;\n }\n});\n\nvar $SingleStepModel = exports.$SingleStepModel = _squid.$Model.extend('$SingleStepModel', {});\n\nangular.value(\"$OnboardModel\", $OnboardModel);\nangular.value(\"$OnboardUserModel\", $OnboardUserModel);\nangular.value(\"$OnboardPhoneModel\", $OnboardPhoneModel);\nangular.value(\"$GuestUpgradeModel\", $GuestUpgradeModel);\nangular.value(\"$SingleStepModel\", $SingleStepModel);\n_squid.$Model;\n\n_squid.$Api;\n\n_index.$CardModel;\n\n_index.$BankModel;\n\n_directive.$NationalIdModel;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-models/src/onboard/index.js\n// module id = ../node_modules/xo-models/src/onboard/index.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.getProcessorDeclineRetryEligibility = getProcessorDeclineRetryEligibility;\n\nvar _squid = require('squid');\n\nvar _logger = require('xo-beaver/dist/logger');\n\nvar _thirdPartyInfo = require('xo-third-party-components/src/thirdParty-info');\n\nvar _checkout = require('../checkout');\n\nvar _auth = require('../auth');\n\nvar INELIGIBLE = _squid.$promise.resolve(false);\nvar lastBuyerId = null;\n\n// Check eligibility for processor decline retry feature\n// First checks if feature eligibility is met, then PXP eligibility is met\nfunction getProcessorDeclineRetryEligibility(token, checkoutSession) {\n if (!(0, _squid.$feature)('cardBackup')) {\n return INELIGIBLE;\n }\n\n // TODO: Refactor the eligibility rules to a set of common rules\n var models = {};\n\n return (0, _squid.$populate)(models, {\n auth: _auth.$AuthModel.instance(),\n checkoutCart: _checkout.$CheckoutCartModel.instance(token),\n checkoutPayee: _checkout.$CheckoutPayeeModel.instance(token),\n checkoutAppData: _checkout.$CheckoutAppDataModel.instance(token)\n }).then(function () {\n var checkoutCart = models.checkoutCart,\n checkoutPayee = models.checkoutPayee,\n checkoutAppData = models.checkoutAppData;\n\n var plans = checkoutSession.get('fundingOptions.plans', []);\n var moreThanOneCard = plans.filter(function (fi) {\n return fi.primaryFs.type === 'CARD';\n }).length < 2;\n\n // exclude rewards from the eligibility list\n var hasRewards = plans.filter(function (fi) {\n return fi && fi.rewards !== undefined;\n }).length > 0;\n\n // See https://engineering.paypalcorp.com/confluence/display/HellsKitchen/Hermes+Processor+Decline+Retry for eligibility reasons\n var isGambling = checkoutPayee.isGambling();\n var isBilling = checkoutCart.isBilling();\n // We're only sure that Sale transactions will go onto the new payments stack, for now\n var isNotSale = checkoutCart.get('payment_action') !== 'sale';\n var isThirdParty = _thirdPartyInfo.thirdPartyExperience.isThirdPartyExperience(token);\n // Exclude all WPS products\n var isWpsOrInvoice = checkoutAppData.get('flags.is_wps_flow') || checkoutAppData.get('flags.is_invoice_flow');\n // We will need to confirm functionality for this before we can enable for this feature\n var isMultiSellerPurchase = checkoutCart.isMultiSellerPurchase();\n var hasInstallments = checkoutSession.installments && checkoutSession.installments.length > 1;\n var involvedCurrencies = plans.reduce(function (currencies, plan) {\n currencies[plan.primaryFs.amount.currency_code] = 1;\n return currencies;\n }, {});\n // Buyer promo email routing through checkoutserv, downstream does not support\n var hasBuyerPromoEmail = checkoutAppData.get('flags.display_buyer_email_promotional_opt_in');\n\n if (checkoutCart.get('purchase.amounts.total.currency_code')) {\n involvedCurrencies[checkoutCart.purchase.amounts.total.currency_code] = 1;\n }\n\n var ineligibilityCriteria = {\n isGambling: isGambling,\n moreThanOneCard: moreThanOneCard,\n hasRewards: hasRewards,\n isBilling: isBilling,\n isNotSale: isNotSale,\n isThirdParty: isThirdParty,\n isWpsOrInvoice: isWpsOrInvoice,\n isMultiSellerPurchase: isMultiSellerPurchase,\n hasInstallments: hasInstallments,\n currencyConversion: Object.keys(involvedCurrencies).length > 1,\n hasBuyerPromoEmail: hasBuyerPromoEmail\n };\n var ineligibleReasons = Object.keys(ineligibilityCriteria).filter(function (key) {\n return ineligibilityCriteria[key];\n });\n var eligible = ineligibleReasons.length === 0;\n\n // Logging for FPTI\n _logger.$logger.info('checkout_fpti', {\n from: 'processor_decline_retry',\n // This logs whether user is eligible by Hermes criteria\n to: 'processor_decline_retry_' + (eligible ? 'eligible' : 'ineligible')\n });\n\n if (!eligible) {\n // This logs the overall result of the eligibility check\n _logger.$logger.info('processor_decline_retry_ineligible', {\n reasons: ineligibleReasons.join()\n });\n }\n\n return eligible;\n }).then(function (featureEligible) {\n // BuyerId is needed to make sure pxp is reloaded if a new user logs in.\n // Refactor: Make this a common pxp model that is invalidated on logout\n var buyerId = models.auth.buyerId;\n\n var sameBuyer = buyerId === lastBuyerId;\n\n lastBuyerId = buyerId;\n\n if (!featureEligible) {\n return false;\n }\n\n // Only run the PXP if the feature is eligible, as requested from analytics\n return (0, _squid.$pxp)('xo_hermes_processor_decline_retry', {}, 'xo_hermes_processor_decline_retry_treatment', sameBuyer ? false : true, true).then(function (pxpRes) {\n if (!pxpRes) {\n _logger.$logger.info('processor_decline_retry_ineligible', {\n pxpIneligible: true\n });\n }\n\n return !!pxpRes;\n });\n }).then(function (eligibleWithPxp) {\n if (eligibleWithPxp) {\n _logger.$logger.info('processor_decline_retry_eligible');\n }\n return eligibleWithPxp;\n });\n}\n\n_squid.$feature;\n\n_squid.$populate;\n\n_squid.$promise;\n\n_squid.$pxp;\n\n_logger.$logger;\n\n_thirdPartyInfo.thirdPartyExperience;\n\n_checkout.$CheckoutCartModel;\n\n_checkout.$CheckoutPayeeModel;\n\n_checkout.$CheckoutAppDataModel;\n\n_auth.$AuthModel;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-models/src/processorDecline/index.js\n// module id = ../node_modules/xo-models/src/processorDecline/index.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$MerchantPreferenceModel = undefined;\n\nvar _squid = require('squid');\n\nvar $MerchantPreferenceModel = exports.$MerchantPreferenceModel = _squid.$Model.extend('$MerchantPreferenceModel', {\n init: function init() {\n this._super.init.apply(this);\n\n this.setProperties({\n rm: _squid.$util.param('rm'), // Return Method\n return_url: _squid.$util.param('return'),\n auto_return: {\n enabled: false\n },\n pdt: {\n enabled: false\n }\n });\n },\n\n\n api: new _squid.$Api({\n baseURI: _squid.$config.urls.baseUrl,\n uri: '/api/profilemanagement/:id/getMerchantPreferences'\n }),\n\n autoReturn: function autoReturn() {\n return this.auto_return.enabled;\n },\n pdtEnabled: function pdtEnabled() {\n return this.pdt && this.pdt.enabled;\n },\n returnUrl: function returnUrl() {\n return this.return_url || this.auto_return.url;\n },\n\n\n /**\n * 0 – redirect using GET method ( default behavior )\n * 1 – redirect using the GET method, but no payment variables are included\n * 2 – redirect using the POST method, and include all payment variables\n */\n returnMethod: function returnMethod() {\n if (this.rm === '2') {\n return this.pdtEnabled() ? 'GET' : 'POST';\n }\n\n return 'GET';\n },\n returnMethodSupported: function returnMethodSupported() {\n return this.returnMethod() === 'GET';\n },\n\n\n /**\n * Determines if payment details need to be sent back to the merchant.\n * @returns {boolean}\n */\n postPaymentData: function postPaymentData() {\n return this.rm === '2' && !this.pdtEnabled() && this.returnUrl();\n },\n\n\n // charset of merchant having in profile\n charSet: function charSet() {\n return this.charset;\n }\n});\n\nangular.value(\"$MerchantPreferenceModel\", $MerchantPreferenceModel);\n_squid.$Model;\n\n_squid.$Api;\n\n_squid.$config;\n\n_squid.$util;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-models/src/profilemanagement/index.js\n// module id = ../node_modules/xo-models/src/profilemanagement/index.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$ContextualLoginModel = undefined;\n\nvar _squid = require('squid');\n\nvar $ContextualLoginModel = exports.$ContextualLoginModel = _squid.$Model.extend('$ContextualLoginModel', {\n init: function init() {\n this._super.init.apply(this);\n this.setProperties({\n key: _squid.$util.param('ctxId')\n });\n },\n api: new _squid.$Api({\n uri: '/api/contextualLogin/:key'\n })\n});\n\nangular.value(\"$ContextualLoginModel\", $ContextualLoginModel);\n_squid.$Model;\n\n_squid.$Api;\n\n_squid.$util;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-models/src/prox/index.js\n// module id = ../node_modules/xo-models/src/prox/index.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$ShippingRuleSummaryModel = exports.$ShippingMethodModel = undefined;\n\nvar _squid = require('squid');\n\nvar $ShippingMethodModel = exports.$ShippingMethodModel = _squid.$Model.extend('$ShippingMethodModel', {\n api: new _squid.$Api({\n uri: '/api/shippingtax/charges'\n }),\n\n getShippingMethodId: function getShippingMethodId(shippingMethodType) {\n var shippingMethodsMap = {\n DEFAULT: '0',\n AIR_SERVICE: '1',\n ECONOMY: '2',\n EXPEDITED_AIR_SERVICE: '3',\n EXPEDITED_FLAT_RATE_SHIPPING: '4',\n EXPRESS: '5',\n EXPRESS_DOMESTIC: '6',\n FREE_SHIPPING: '7',\n GROUND: '8',\n GLOBAL_PRIORITY: '9',\n INTERNATIONAL_ECONOMY: '10',\n INTERNATIONAL_EXPEDITED: '11',\n INTERNATIONAL_EXPRESS: '12',\n INTERNATIONAL_EXPRESS_AIR: '13',\n INTERNATIONAL_PRIORITY_AIR: '14',\n NEXT_DAY: '15',\n NEXT_DAY_AIR: '16',\n NEXT_DAY_AIR_ECONOMY: '17',\n ONE_DAY_SHIPPING: '18',\n OVERNIGHT: '19',\n OVERNIGHT_FLAT_RATE_SHIPPING: '20',\n PICKUP: '21',\n PRIORITY: '22',\n RUSH_DELIVERY: '23',\n STANDARD_DOMESTIC: '24',\n STANDARD_EXPEDITED: '25',\n STANDARD_FLAT_RATE_SHIPPING: '26',\n STANDARD_INTERNATIONAL: '27',\n STANDARD_SHIPPING: '28',\n STORE_PICKUP: '29',\n TWO_DAY_SHIPPING: '30',\n WORLDWIDE_SHIPPING: '31',\n TWO_DAY_AIR: '32'\n };\n\n return shippingMethodsMap[shippingMethodType];\n },\n\n isStorePickUp: function isStorePickUp(shipping_method_type) {\n return shipping_method_type === 'STORE_PICKUP' || shipping_method_type === 'PICKUP';\n }\n});\n\nvar $ShippingRuleSummaryModel = exports.$ShippingRuleSummaryModel = _squid.$Model.extend('$ShippingRuleSummaryModel', {\n api: new _squid.$Api({\n uri: '/api/shippingtax/:id/rulesSummary'\n })\n});\n\nangular.value(\"$ShippingMethodModel\", $ShippingMethodModel);\nangular.value(\"$ShippingRuleSummaryModel\", $ShippingRuleSummaryModel);\n_squid.$Model;\n\n_squid.$Api;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-models/src/shippingMethod/index.js\n// module id = ../node_modules/xo-models/src/shippingMethod/index.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$ShoppingCartModel = undefined;\n\nvar _squid = require('squid');\n\nvar $ShoppingCartModel = exports.$ShoppingCartModel = _squid.$Model.extend('$ShoppingCartModel', {\n api: new _squid.$Api({\n uri: '/api/shoppingcart/:id',\n postAttempts: 2,\n cache: false\n })\n});\n\nangular.value(\"$ShoppingCartModel\", $ShoppingCartModel);\n_squid.$Model;\n\n_squid.$Api;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-models/src/shoppingcart/index.js\n// module id = ../node_modules/xo-models/src/shoppingcart/index.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$SubscriptionsV1Model = exports.$SubscriptionModel = exports.$CreateBAModel = undefined;\n\nvar _squid = require('squid');\n\nvar $CreateBAModel = exports.$CreateBAModel = _squid.$Model.extend('$CreateBAModel', {\n api: new _squid.$Api({\n uri: '/api/billagmt',\n postAttempts: 3\n })\n});\n\nvar $SubscriptionModel = exports.$SubscriptionModel = _squid.$Model.extend('$SubscriptionModel', {\n api: new _squid.$Api({\n uri: '/api/billagmt/:id',\n postAttempts: 3,\n cache: true\n })\n});\n\nvar $SubscriptionsV1Model = exports.$SubscriptionsV1Model = _squid.$Model.extend('$SubscriptionsV1Model', {\n api: new _squid.$Api({\n uri: '/api/billagmt/subscriptions/v1/:id',\n cache: true\n })\n});\n\nangular.value(\"$CreateBAModel\", $CreateBAModel);\nangular.value(\"$SubscriptionModel\", $SubscriptionModel);\nangular.value(\"$SubscriptionsV1Model\", $SubscriptionsV1Model);\n_squid.$Model;\n\n_squid.$Api;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-models/src/subscription/index.js\n// module id = ../node_modules/xo-models/src/subscription/index.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$UserProductSubscriptionModel = exports.$AuthConsentModel = exports.$UserPhotoModel = exports.$EConsentModel = exports.$WaxUserModel = exports.$PatchPhoneModel = exports.$AddKYCModel = exports.$ValidatePhoneModel = exports.$UserInfoModel = exports.$CheckoutInputDataModel = exports.$CheckoutClientDataModel = undefined;\n\nvar _squid = require('squid');\n\nvar $CheckoutClientDataModel = exports.$CheckoutClientDataModel = _squid.$Model.extend('$CheckoutClientDataModel', {\n api: new _squid.$Api({\n uri: '/api/user/:id/clientData'\n }),\n\n merchantIdentityData: function merchantIdentityData() {\n return {\n email: this.email,\n brand_name: this.display_name,\n logo_uri: this.logo_uri,\n identity_uri: this.identity_uri\n };\n },\n\n validateClient: function validateClient() {\n if (this.partner_id && this.identity_uri) {\n return {\n success: true\n };\n } else {\n return {\n success: false,\n error: 'invalid_client'\n };\n }\n },\n validateRedirectUri: function validateRedirectUri(redirectUrl) {\n if (this.identity_uri && this.identity_uri.indexOf(redirectUrl) > -1) {\n return {\n success: true\n };\n } else {\n return {\n success: false,\n error: 'invalid_redirect_url'\n };\n }\n }\n});\n\nvar ACTION = {\n login: 'login',\n resolve: 'resolve',\n addCard: 'addCard',\n addBank: 'addBank',\n changeCurrencyConv: 'changeCurrencyConv',\n signup: 'signup',\n mandate: 'mandate',\n addCredit: 'addCredit',\n ulReturn: 'ulReturn',\n creditReturn: 'creditReturn',\n guestCurrencyConversion: 'guestCurrencyConversion',\n guestAuthentication: 'guestAuthentication',\n compliance: 'compliance'\n};\n\nvar $CheckoutInputDataModel = exports.$CheckoutInputDataModel = _squid.$Model.extend('$CheckoutInputDataModel', {\n init: function init() {\n this._super.init.apply(this);\n this.setProperties({\n client_id: _squid.$util.param('client_id'),\n action: _squid.$util.param('action'),\n redirect_uri: _squid.$util.param('redirect_uri'),\n scope: _squid.$util.param('scope'),\n state: _squid.$util.param('state'),\n flow: _squid.$util.param('flow'),\n payer_id: _squid.$util.param('payer_id'),\n mandate_reference_number: _squid.$util.param('mandate_reference_number'),\n funding_option_id: _squid.$util.param('funding_option_id'),\n locale: _squid.$util.param('locale'),\n logout: _squid.$util.param('logout'),\n refresh_parent: _squid.$util.param('refresh_parent'),\n escape_hatch: _squid.$util.param('escape_hatch'),\n failedBecause: _squid.$util.param('failedBecause'),\n redirectReferrer: _squid.$util.param('redirectReferrer'),\n id_token: _squid.$util.param('prox_id'),\n nonce: _squid.$util.param('nonce'),\n hide_rm: _squid.$util.param('hideRM'),\n payloadEnc: _squid.$util.param('payloadEnc'),\n xcancel: _squid.$util.param('x-cancel'),\n xsuccess: _squid.$util.param('x-success')\n });\n },\n\n api: new _squid.$Api({\n baseURI: _squid.$config.urls.baseUrl,\n uri: '/api/user/:id/payerId'\n }),\n\n isEbayTxn: function isEbayTxn() {\n return Boolean(this.client_id);\n },\n\n validAction: function validAction() {\n var actions = {\n login: 'login',\n resolve: 'resolve',\n addCard: 'addCard',\n addBank: 'addBank',\n changeCurrencyConv: 'changeCurrencyConv',\n signup: 'signup',\n mandate: 'mandate',\n addCredit: 'addCredit',\n ulReturn: 'ulReturn',\n creditReturn: 'creditReturn',\n guestCurrencyConversion: 'guestCurrencyConversion',\n guestAuthentication: 'guestAuthentication',\n compliance: 'compliance'\n };\n\n return actions.hasOwnProperty(this.action);\n },\n\n showRYP: function showRYP() {\n return !this.isEbayTxn();\n },\n\n requiresOAuth: function requiresOAuth() {\n return this.action === ACTION.login || this.action === ACTION.signup;\n },\n\n requiresRedirectUri: function requiresRedirectUri() {\n return this.action === ACTION.mandate || !this.requiresOAuth();\n },\n\n validRedirectUri: function validRedirectUri() {\n if (this.requiresRedirectUri()) {\n return Boolean(this.redirect_uri);\n }\n return true;\n },\n\n validate: function validate() {\n var error;\n var success = true;\n\n if (this.isEbayTxn()) {\n if (!this.validAction()) {\n success = false;\n error = 'invalid_action';\n } else if (!this.validRedirectUri()) {\n success = false;\n error = 'invalid_redirect_uri';\n }\n }\n\n return {\n success: success,\n error: error\n };\n },\n\n errorUrl: function errorUrl(err, errorDesc) {\n var url = this.redirect_uri;\n\n url += url && url.indexOf('?') < 0 ? '?' : '&';\n url += 'state=' + encodeURIComponent(this.state);\n\n if (err) {\n url += '&error=' + err;\n }\n if (errorDesc) {\n url += '&error_description=' + errorDesc;\n }\n\n return url;\n },\n\n successUrl: function successUrl(code) {\n var url = this.redirect_uri;\n\n url += url && url.indexOf('?') < 0 ? '?' : '&';\n url += 'state=' + encodeURIComponent(this.state);\n\n url += '&code=' + code;\n\n return url;\n },\n\n rmEnabled: function rmEnabled(featureEnabled) {\n return featureEnabled && this.action === ACTION.login;\n },\n\n hideRM: function hideRM() {\n return angular.isDefined(this.hide_rm) ? this.hide_rm.toLowerCase() === 'true' : false;\n }\n});\n\nvar $UserInfoModel = exports.$UserInfoModel = _squid.$Model.extend('$UserInfoModel', {\n api: new _squid.$Api({\n uri: '/api/user/:id/session'\n })\n});\n\nvar $ValidatePhoneModel = exports.$ValidatePhoneModel = _squid.$Model.extend('$ValidatePhoneModel', {\n api: new _squid.$Api({\n uri: '/api/user/:token/session/validatePhone',\n cache: false\n })\n});\n\nvar $AddKYCModel = exports.$AddKYCModel = _squid.$Model.extend('$AddKYCModel', {\n api: new _squid.$Api({\n uri: '/api/user/:token/session/addKYC'\n })\n});\n\nvar $PatchPhoneModel = exports.$PatchPhoneModel = _squid.$Model.extend('$PatchPhoneModel', {\n api: new _squid.$Api({\n uri: '/api/checkout/:token/session/patch',\n cache: false\n })\n});\n\nvar $WaxUserModel = exports.$WaxUserModel = _squid.$Model.extend('$WaxUserModel', {\n api: new _squid.$Api({\n uri: '/api/user/:id/waxUser'\n })\n});\n\nvar $EConsentModel = exports.$EConsentModel = _squid.$Model.extend('$EConsentModel', {\n api: new _squid.$Api({\n uri: '/api/user/eConsent'\n }),\n\n invalidateOnLogout: true // invalidate this model when auth.logout() gets called\n});\n\nvar $UserPhotoModel = exports.$UserPhotoModel = _squid.$Model.extend('$UserPhotoModel', {\n api: new _squid.$Api({\n baseURI: _squid.$config.urls.baseUrl,\n uri: 'api/user/photo'\n }),\n\n invalidateOnLogout: true // invalidate this model when auth.logout() gets called\n});\n\nvar $AuthConsentModel = exports.$AuthConsentModel = _squid.$Model.extend('$AuthConsentModel', {\n api: new _squid.$Api({\n uri: '/api/user/authConsent'\n })\n});\n\nvar $UserProductSubscriptionModel = exports.$UserProductSubscriptionModel = _squid.$Model.extend('$UserProductSubscriptionModel', {\n api: new _squid.$Api({\n uri: '/api/user/productSubscription'\n })\n});\n\nangular.value(\"$CheckoutClientDataModel\", $CheckoutClientDataModel);\nangular.value(\"$CheckoutInputDataModel\", $CheckoutInputDataModel);\nangular.value(\"$UserInfoModel\", $UserInfoModel);\nangular.value(\"$ValidatePhoneModel\", $ValidatePhoneModel);\nangular.value(\"$AddKYCModel\", $AddKYCModel);\nangular.value(\"$PatchPhoneModel\", $PatchPhoneModel);\nangular.value(\"$WaxUserModel\", $WaxUserModel);\nangular.value(\"$EConsentModel\", $EConsentModel);\nangular.value(\"$UserPhotoModel\", $UserPhotoModel);\nangular.value(\"$AuthConsentModel\", $AuthConsentModel);\nangular.value(\"$UserProductSubscriptionModel\", $UserProductSubscriptionModel);\n_squid.$Model;\n\n_squid.$Api;\n\n_squid.$util;\n\n_squid.$config;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-models/src/user/index.js\n// module id = ../node_modules/xo-models/src/user/index.js\n// module chunks = 0","\n\nvar _uiRouter = require('uiRouter');\n\nvar _angular = require('angular');\n\nvar _angular2 = _interopRequireDefault(_angular);\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n_angular2['default'].module().directive('xoAsideHeader', function () {\n return {\n template: _template2['default'],\n restrict: 'E',\n scope: {\n hdrtype: '@?',\n heading: '@?',\n subHead: '@?',\n addLink: '@?',\n backUrl: '@?',\n closeUrl: '@?',\n hidex: '@?',\n headerLeftLink: '=?',\n headerLeft: '@?',\n headerLeftIcon: '@?',\n headerRightLink: '=?',\n headerRight: '@?',\n headerRightIcon: '@?',\n subHeaderLeftLink: '@?',\n subHeaderLeft: '@?',\n subHeaderLeftIcon: '@?',\n subHeaderRightLink: '@?',\n subHeaderRight: '@?',\n subHeaderRightIcon: '@?',\n showDualFi: '=?'\n },\n controller: ['$scope', '$element', function ($scope, $element) {\n (0, _angular.$timeout)(function () {\n // Explicitly select `x` button and `<` buttons from manage wallet\n // and add card pages\n // See: https://engineering.paypalcorp.com/jira/browse/PPPLMER-64007\n // See: https://engineering.paypalcorp.com/jira/browse/PPPLMER-64008\n $element.find('a.focusableIcon').focus();\n });\n\n if (_angular2['default'].isUndefined($scope.closeUrl)) {\n $scope.closeUrl = 'checkout.review';\n }\n\n if ($scope.addLink) {\n $scope.subHeaderRight = 'asideHeader.add';\n $scope.subHeaderRightLink = $scope.addLink;\n }\n\n $scope.onClickLink = function (event, target, showDualFi) {\n event.preventDefault();\n if (showDualFi) {\n $scope.showFiOptions = true;\n } else if (_angular2['default'].isFunction(target)) {\n target();\n } else {\n _uiRouter.$state.go(target);\n }\n };\n }]\n };\n});\n\n_uiRouter.$state;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-page-components/src/aside-header/directive.js\n// module id = ../node_modules/xo-page-components/src/aside-header/directive.js\n// module chunks = 0","module.exports = \"\\n\\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-page-components/src/aside-header/template.html\n// module id = ../node_modules/xo-page-components/src/aside-header/template.html\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _squid = require('squid');\n\nvar _index = require('xo-models/src/checkout/index');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nrequire('./styles');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _squid.$Component.extend('$xoBaMessageBanner', {\n tag: 'xo-ba-message-banner',\n template: _template2['default'],\n props: {\n token: {\n type: 'var',\n required: false\n },\n isMessengerIntegration: {\n type: 'var',\n required: false\n },\n borderPosition: {\n type: 'var',\n required: false\n }\n },\n resolve: {\n models: function models() {\n if (this.props.token) {\n return {\n checkoutAppData: _index.$CheckoutAppDataModel.instance(this.props.token).retrieve(),\n checkoutCart: _index.$CheckoutCartModel.instance(this.props.token).retrieve()\n };\n }\n }\n },\n lifecycle: {\n enter: function enter() {\n this.borderPosition = this.borderPosition || 'bottom';\n },\n populate: function populate() {\n this.merchantMsg = this.models.checkoutCart.getBillingDescription();\n\n // We need other variables only if this.merchantMsg exists\n if (this.merchantMsg) {\n // We need merchantDisplayName to be non empty and if merchant_name or brand_name is undefined\n // then we need the value of merchantDisplayName to be 'the merchant' as it is the middle of sentence\n // in content keys used in template\n this.nonEmptyMerchantDisplayName = this.models.checkoutAppData.getMerchantDisplayName({\n nonEmptyReturnValue: true\n });\n\n var _ref = window.xprops || {},\n _ref$experience = _ref.experience,\n experience = _ref$experience === undefined ? { facebook: false } : _ref$experience;\n\n this.isFacebookIntegration = experience.facebook;\n }\n }\n }\n});\n\n\n_squid.$Component;\n\n_index.$CheckoutAppDataModel;\n\n_index.$CheckoutCartModel;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-page-components/src/ba-message-banner/directive.js\n// module id = ../node_modules/xo-page-components/src/ba-message-banner/directive.js\n// module chunks = 0","module.exports = \"
        \\n

        \\n {{ content('billingAgreement.merchantMsgHeader', { merchantName: nonEmptyMerchantDisplayName }) }}\\n

        \\n

        \\n {{ content('messenger.fbHeader') }}\\n

        \\n

        \\n {{ content('messenger.baHeader') }}\\n

        \\n
        \\n \\n {{ merchantMsg }}\\n \\n
        \\n
        \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-page-components/src/ba-message-banner/template.html\n// module id = ../node_modules/xo-page-components/src/ba-message-banner/template.html\n// module chunks = 0","\n\nvar _angular = require('angular');\n\nvar _squid = require('squid');\n\nvar _index = require('xo-models/src/checkout/index');\n\nvar _index2 = require('xo-models/src/subscription/index');\n\nvar _subscriptionTerms = require('../../subscription-terms');\n\nvar _subscriptionTerms2 = _interopRequireDefault(_subscriptionTerms);\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nangular.module().directive('cartWrapper', function () {\n return {\n template: _template2['default'],\n restrict: 'E',\n scope: {\n showAmt: '=?',\n showArrow: '=?',\n token: '=?',\n baToken: '=?'\n },\n controller: ['$scope', function ($scope) {\n _squid.$util.assert($scope.token, 'Expected token');\n\n (0, _squid.$populate)($scope, {\n checkoutCart: _index.$CheckoutCartModel.instance($scope.token)\n }).then(function () {\n if ($scope.checkoutCart.isSubscriptionsV1()) {\n $scope.showAmt = true;\n\n (0, _squid.$populate)($scope, {\n subscriptionsV1Data: _index2.$SubscriptionsV1Model.instance($scope.baToken)\n }).then(function () {\n var planReview = $scope.subscriptionsV1Data.planReview;\n\n var plan = planReview.new_plan || planReview.current_plan;\n\n $scope.subscriptionAmount = _subscriptionTerms2['default'].getNumericValueNonZero(plan, 'initial_payment_info.total_amount.value') / 100;\n $scope.currencyCode = _squid.$util.getProperty(plan, 'initial_payment_info.total_amount.currency_code');\n })['catch'](_angular.noop);\n }\n\n if ($scope.checkoutCart.purchase) {\n $scope.currencyCode = $scope.checkoutCart.purchase.amounts.total.currency_code;\n }\n\n $scope.getAmount = function () {\n if ($scope.checkoutCart.isSubscriptionsV1()) {\n return $scope.subscriptionAmount;\n } else if ($scope.checkoutCart.purchase) {\n return $scope.checkoutCart.purchase.amounts.total.amount;\n }\n };\n });\n }]\n };\n});\n\n_angular.noop;\n\n_squid.$populate;\n\n_squid.$util;\n\n_index.$CheckoutCartModel;\n\n_index2.$SubscriptionsV1Model;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-page-components/src/cart/cartWrapper/directive.js\n// module id = ../node_modules/xo-page-components/src/cart/cartWrapper/directive.js\n// module chunks = 0","module.exports = \"\\n \\n \\n \\n \\n \\n \\n \\n\\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-page-components/src/cart/cartWrapper/template.html\n// module id = ../node_modules/xo-page-components/src/cart/cartWrapper/template.html\n// module chunks = 0","\n\nvar _angular = require('angular');\n\nvar _squid = require('squid');\n\nvar _uiRouter = require('uiRouter');\n\nvar _index = require('xo-models/src/checkout/index');\n\nrequire('xo-ui-components/src/accessibility/directive');\n\nrequire('./cartWrapper/directive');\n\nrequire('./itemDetails/directive');\n\nvar _showCartDecision = require('./lib/showCartDecision');\n\nrequire('./lib/ui');\n\nrequire('./subscription/directive');\n\nrequire('./subscriptionsV1/directive');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nangular.module().directive('xoCart', function () {\n return {\n template: _template2['default'],\n restrict: 'E',\n\n scope: {\n showCartTotal: '=?',\n renderCartContainer: '=?',\n overrideShowDetails: '=?',\n detailsExpanded: '=?',\n token: '=?'\n },\n\n controller: ['$scope', function ($scope) {\n\n _squid.$util.assert($scope.token, 'Expected token');\n\n (0, _squid.$populate)($scope, {\n checkoutAppData: _index.$CheckoutAppDataModel.instance($scope.token),\n checkoutCart: _index.$CheckoutCartModel.instance($scope.token),\n payee: _index.$CheckoutPayeeModel.instance($scope.token)\n }).then(function loadCartData() {\n\n var emptyCart = $scope.checkoutCart.get('purchase.items.length', 0) <= 0;\n var cartDesc = $scope.checkoutCart.get('purchase.description');\n\n $scope.note = $scope.checkoutCart.get('note');\n\n // resolve string in descriptions array since the only element may be `null`\n // TODO: fix backend to return a string, to avoid this conditional\n if (cartDesc && angular.isString(cartDesc[0])) {\n cartDesc = cartDesc[0];\n } else {\n cartDesc = '';\n }\n\n $scope.desc = cartDesc;\n $scope.hasItems = !$scope.renderCartContainer && !emptyCart;\n var showCartDetails = !$scope.checkoutAppData.flags.hide_cart_details;\n var notMultiSellerPurchase = !$scope.checkoutCart.isMultiSellerPurchase();\n // Always Render minicart for wps subscription .\n var wpsSubscription = $scope.checkoutAppData.is_wps_subscription_flow();\n var isSubscriptionsV1 = $scope.checkoutCart.isSubscriptionsV1();\n\n $scope.showArrow = wpsSubscription || isSubscriptionsV1 || showCartDetails && (cartDesc || $scope.overrideShowDetails || $scope.hasItems || $scope.note) && notMultiSellerPurchase;\n\n // add details to render to the checkoutCart items\n $scope.checkoutCart.get('purchase.items', []).forEach(function addDetails(item) {\n item.details = {};\n\n if (item.quantity > 1) {\n item.details.price = item.price.amount;\n item.details.quantity = (0, _squid.formatQuantity)(item.quantity);\n }\n\n if (item.description) {\n if (!item.name) {\n item.name = item.description;\n } else {\n item.details.description = item.description;\n }\n }\n\n // move options to detail section\n if (item.item_option_selections) {\n item.details.hasSelections = true;\n item.details.item_option_selections = item.item_option_selections;\n }\n\n if (item.sku) {\n item.details.sku = item.sku;\n }\n\n item.hasDetails = Object.keys(item.details).length > 0;\n item.details.hasMore = item.hasDetails || item.details.hasSelections;\n });\n\n // Mapping of field name as recieved by API to corresponding property key\n $scope.amountHeaders = {\n 'total': 'header.total',\n 'subtotal': 'header.itemTotal',\n 'tax': 'header.tax',\n 'shipping': 'header.shipping',\n 'insurance': 'header.insurance',\n 'handling_fee': 'header.handling',\n 'shipping_discount': 'header.shippingDiscount',\n 'description': 'header.description',\n 'discount': 'header.discount'\n };\n\n // Non-AU merchants are subjected to PXP test when user action is not commit and line item details\n // are not available and purchase amount is not zero.\n var userAction = $scope.userAction = $scope.checkoutAppData.useraction();\n var noLineItemDetails = !(userAction && userAction.toLowerCase() === 'commit') && emptyCart;\n\n var purchase = $scope.checkoutCart.purchase;\n var total = purchase && purchase.amounts && purchase.amounts.total;\n\n $scope.isCartTextTotalOrSubTotal = userAction === 'commit' || $scope.showCartTotal === true ? 'header.total' : 'header.subTotal';\n\n return (0, _showCartDecision.showCartDecision)($scope.checkoutAppData.is_wps_subscription_flow() || $scope.checkoutCart.isSubscriptionsV1(), total, $scope.checkoutAppData.get('merchant.merchant_country'), $scope.payee.get('merchant.id', ''), noLineItemDetails, $scope.checkoutCart.isPurchase()).then(function (result) {\n $scope.showAmt = result.showAmt;\n $scope.showCartSubTotal = result.showCartSubTotal;\n $scope.showAmountInCartIcon = result.showAmountInCartIcon;\n });\n }).then(function handleCartOpenClose() {\n // the cart is only automatically open under the following criteria:\n // 1. the cart has a 'note to buyer' ($scope.note is defined)\n // 2. the cart was not previously automatically opened before\n // 3. the state has transitioned to checkout.review or checkout.guest\n // OR `detailsExpanded` is passed as true to the component\n function decideShowCart(currentState) {\n var falsePositive = /^checkout\\.(selectFi)$/.test(currentState) && /^checkout\\.(review|guest)$/.test($scope.openedAlready);\n var notOpened = !$scope.openedAlready && /^checkout\\.(review|guest)$/.test(currentState);\n var canShow = notOpened || falsePositive;\n\n if ($scope.note && canShow || $scope.detailsExpanded) {\n $scope.openedAlready = currentState; // may have been undefined before\n return true;\n }\n\n return false;\n }\n\n $scope.showCartItem = function (breakdown) {\n return breakdown.field_name !== 'total' && Number(breakdown.amount) !== 0;\n };\n\n $scope.showCart = decideShowCart(_uiRouter.$state.current.name);\n\n // TODO: Must we really couple this so tightly with the state transition names?\n var openCartListener = _angular.$rootScope.$on('$stateChangeSuccess', function (event, toState) {\n $scope.showCart = decideShowCart(toState.name);\n });\n\n $scope.$on('$destroy', openCartListener); // see http://stackoverflow.com/a/27016855 on why $destroy\n\n $scope.toggleCart = function ($event) {\n $scope.showCart = !$scope.showCart;\n $event.preventDefault();\n };\n\n $scope.closeCart = function ($event) {\n $scope.showCart = false;\n // for accessible autofocus on cart toggle link button\n $scope.$broadcast('cart-closed');\n if ($event) {\n $event.preventDefault();\n }\n };\n\n $scope.$on('clickBody', function ($event, target) {\n if ($scope.showCart && $(target).parents('.cartContainer').length === 0) {\n $scope.closeCart($event);\n $scope.$apply();\n }\n });\n\n // this listener / broadcast allows accessibility components to scan and focus inside the cart\n // when the cart is displayed\n $scope.$watch('showCart', function (showCart) {\n if (showCart) {\n $scope.$broadcast('cart-updated');\n }\n });\n }).then(function handleEllipsisIssues() {\n // NOTE: the scattered broadcasts of \"cart-updated\" events are mostly\n // to allow the accessibility directives modal-box and focus-when to\n // know when to recalculate keyboard behavior / focus\n $scope.toolongTracker = {};\n\n // this function is invoked by the onEllipsis directive that tracks\n // if the item name won't fit within the restricted space.\n $scope.toolong = function (idx) {\n $scope.toolongTracker[idx] = true;\n $scope.$broadcast('cart-updated');\n };\n\n $scope.showMore = function (idx, type) {\n // there are 2 types of more, \"floating\" when the name is too long\n // and \"inline\" when the name can fit, but there are additional details.\n //\n // Show a more if the item\n // 1. has an expanded state\n // 2. is not already expanded\n // 3. if it is appropriate to show that type.\n var itemIsTooLong = $scope.toolongTracker[idx];\n var isAppropriateType = itemIsTooLong && type === 'floating' || !itemIsTooLong && type === 'inline';\n\n return $scope.hasExpandedState(idx) && !$scope.isExpanded(idx) && isAppropriateType;\n };\n\n $scope.expandedIndex = -1; // initially, none of the line items are expanded\n $scope.isExpanded = function isExpanded(idx) {\n return idx === $scope.expandedIndex;\n };\n $scope.hasExpandedState = function hasExpandedState(idx) {\n // A line item is exandable if\n // 1. the name cannot fit in one line ($scope.toolongTracker) and/or\n // 2. there are details (attached to purchase.items in the cart)\n // 3. there is item number (sku) in the item\n var item = $scope.checkoutCart.get('purchase.items', [])[idx] || {};\n var nameTooLong = $scope.toolongTracker[idx];\n\n return nameTooLong || item.hasDetails || item.sku;\n };\n $scope.expand = function expand(idx) {\n $scope.expandedIndex = idx;\n $scope.$broadcast('cart-updated');\n };\n $scope.collapse = function collapse() {\n $scope.expandedIndex = -1;\n $scope.$broadcast('cart-updated');\n };\n\n // Set default focus on cart first element \"more\" link\n $scope.focusElementCssSelector = 'a.more';\n\n // Change the focus element as user clicks on elements\n $scope.$watch('expandedIndex', function (expandedIndex) {\n if (expandedIndex === -1) {\n $scope.focusElementCssSelector = 'a.more';\n } else {\n // If any \"more\" link or item is clicked in cart, then\n // set focus to itemNameContainer\n $scope.focusElementCssSelector = '.itemNameContainer.expanded';\n }\n });\n\n $scope.$emit('dataLoaded');\n });\n }]\n };\n});\n\n_angular.$rootScope;\n\n_squid.$populate;\n\n_squid.$util;\n\n_squid.formatQuantity;\n\n_uiRouter.$state;\n\n_index.$CheckoutAppDataModel;\n\n_index.$CheckoutCartModel;\n\n_index.$CheckoutPayeeModel;\n\n_showCartDecision.showCartDecision;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-page-components/src/cart/directive.js\n// module id = ../node_modules/xo-page-components/src/cart/directive.js\n// module chunks = 0","\n\nrequire('xo-ui-components/src/accessibility/directive');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nangular.module().directive('itemDetails', function () {\n return {\n template: _template2['default'],\n restrict: 'E',\n scope: {\n details: '=?',\n sku: '=?',\n currencyCode: '=?',\n onClickLess: '&?'\n },\n controller: function controller() {/* dumb component */}\n };\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-page-components/src/cart/itemDetails/directive.js\n// module id = ../node_modules/xo-page-components/src/cart/itemDetails/directive.js\n// module chunks = 0","module.exports = \"\\n
          \\n
        • \\n \\n {{ content('header.itemNumber') }} {{ details.sku }}\\n \\n
        • \\n
        • {{ content('header.price') }}\\n \\n
        • \\n
        • {{ content('header.quantity') }} {{ details.quantity }}
        • \\n
        • \\n
          \\n \\n {{ selection.name }}:\\n {{ selection.select }}\\n \\n
          \\n\\n
          \\n {{ content('header.description') }} {{ details.description }}\\n
          \\n
        • \\n
        \\n{{ content('header.less') }}\\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-page-components/src/cart/itemDetails/template.html\n// module id = ../node_modules/xo-page-components/src/cart/itemDetails/template.html\n// module chunks = 0","\n\n/**\n * Takes a string with HTML entities within and renders it as the unicode\n * characters they represent. This is done by leveraging the browser to\n * perform this transformation internally. InnerText is chosen as the output\n * so as to kill any HTML itself that was supplied.\n *\n * @param {Element} element any HTML element supporting innerText and\n * innerHTML. Preferably one not connected to the DOM or visible in any way.\n * @param {String} input a String containing HTML entities that need to be\n * decoded and HTML stripped.\n * @return {String} the same string with HTML tags removed and entities\n * decoded.\n */\n\nexports.__esModule = true;\nexports.decodeEntities = decodeEntities;\nexports['default'] = decodeEntitiesAngularFilter;\nfunction decodeEntities(element, input) {\n // Escape opening tags on vulnerable tags\n input = input.replace(/<(\\/?)(html|script|body|meta|style|img|iframe|svg|link)/ig, '<$1$2');\n element.innerHTML = input;\n return element.textContent || element.innerText;\n}\n\nfunction decodeEntitiesAngularFilter() {\n // A constant key that can be used to find the element\n var ENTITY_ELEM = '__xpc_entitydecoder__';\n\n // Create the element if this is the first time this is called\n if (!window[ENTITY_ELEM]) {\n window[ENTITY_ELEM] = document.createElement('p');\n }\n\n // Retrieve the converter element rather than create one every\n // time. Angular may call this filter many times repeatedly and\n // we should make a small effort to optimize the process\n var converter = window[ENTITY_ELEM];\n\n /**\n * Takes a string with HTML entities within and renders it as the unicode\n * characters they represent. This is done by leveraging the browser to\n * perform this transformation internally. InnerText is chosen as the output\n * so as to kill any HTML itself that was supplied.\n *\n * @param {String} input a String containing HTML entities that need to be\n * decoded and HTML stripped.\n * @return {String} the same string with HTML tags removed and entities\n * decoded.\n */\n return decodeEntities.bind(null, converter);\n}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-page-components/src/cart/lib/decode_entities.js\n// module id = ../node_modules/xo-page-components/src/cart/lib/decode_entities.js\n// module chunks = 0","\n\nvar _squid = require('squid');\n\nvar _angular = require('angular');\n\n(function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n})(window.angular);\n\nangular.module().factory('$pxpCartAmt', function () {\n return function (merchantCountry, merchantId, noLineItemDetails, isPurchase) {\n if (merchantCountry !== 'AU' && noLineItemDetails && isPurchase) {\n var pageName = 'xo_hermes_no_line_item_details';\n var showAmtBlacklistTreatment = 'xo_hermes_no_line_items_show_amount_blacklist_test_group';\n var showAmtTreatment = 'xo_hermes_no_line_items_show_amount_test_group';\n\n return _angular.$q.all([(0, _squid.$pxp)(pageName, {\n 'ctx.merchantID': merchantId,\n uid: merchantId\n }, showAmtBlacklistTreatment, false, true), (0, _squid.$pxp)(pageName, {\n 'ctx.merchantID': merchantId,\n uid: merchantId\n }, showAmtTreatment, false, true)]).then(function (results) {\n var showAmtBlacklist = results[0];\n var showAmt = results[1];\n\n if (showAmtBlacklist && showAmtBlacklist.treatment_name === showAmtBlacklistTreatment) {\n return true;\n }\n\n if (showAmt && showAmt.treatment_name === showAmtTreatment) {\n return true;\n }\n\n return false; // default to hide\n });\n }\n\n return _angular.$q.when(!noLineItemDetails && isPurchase);\n };\n});\n\n_squid.$pxp;\n\n_angular.$q;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-page-components/src/cart/lib/pxp.js\n// module id = ../node_modules/xo-page-components/src/cart/lib/pxp.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.showCartDecision = showCartDecision;\n\nvar _pxp = require('./pxp');\n\nfunction showCartDecision(isSubscriptionFlow, total, merchantCountry, merchantId, noLineItemDetails, isPurchase) {\n return (0, _pxp.$pxpCartAmt)(merchantCountry, merchantId, noLineItemDetails, isPurchase).then(function (showAmount) {\n // Show cart subtotal if there is a total amount\n // Do not show subtotal for wps subscription flow.\n // Show amount in cart icon only if showAmount is truthy and total amount is not zero\n return {\n showAmt: showAmount,\n showCartSubTotal: showAmount && total && !isSubscriptionFlow,\n showAmountInCartIcon: showAmount && +total.amount !== 0\n };\n });\n}\n\n_pxp.$pxpCartAmt;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-page-components/src/cart/lib/showCartDecision.js\n// module id = ../node_modules/xo-page-components/src/cart/lib/showCartDecision.js\n// module chunks = 0","\n\nvar _jquery = require('jquery');\n\nvar _jquery2 = _interopRequireDefault(_jquery);\n\nvar _squid = require('squid');\n\nvar _angular = require('angular');\n\nvar _decode_entities = require('./decode_entities');\n\nvar _decode_entities2 = _interopRequireDefault(_decode_entities);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n// Register entity decoding filter in Angular\n_angular.$filterProvider.register('decodeEntities', _decode_entities2['default']);\n\n// if an element has an ellipsis text-overflow in effect (it must already have\n// the appropriate css styling) then invoke the function that is passed to the directive\nfunction getVisibleWidth(elem) {\n var elemRect = elem.getBoundingClientRect();\n\n // cross browser, returns decimals for ultra-precision\n return elemRect.right - elemRect.left;\n}\n\nfunction getNaturalWidth(elem) {\n var old = {\n overflow: elem.style.overflow,\n width: elem.style.width,\n display: elem.style.display\n };\n var result = void 0;\n\n elem.style.overflow = 'visible';\n elem.style.width = 'auto';\n elem.style.display = 'inline-block';\n result = getVisibleWidth(elem);\n elem.style.overflow = old.overflow;\n elem.style.width = old.width;\n elem.style.display = old.display;\n\n return result;\n}\n\n// pre-determine approach to reading styles\nvar getStyle = _angular.$window.getComputedStyle ? function (elem, style) {\n return _angular.$window.getComputedStyle(elem)[style];\n} // modern browsers\n: function (elem, style) {\n return elem.currentStyle[style];\n}; // IE\n\nfunction hasEllipsis(elem) {\n var overflowHidden = getStyle(elem, 'overflow') === 'hidden';\n var textOverflowEllipsis = getStyle(elem, 'text-overflow') === 'ellipsis';\n var whiteSpaceNowrap = getStyle(elem, 'white-space') === 'nowrap';\n\n if (overflowHidden && textOverflowEllipsis && whiteSpaceNowrap) {\n return getVisibleWidth(elem) < getNaturalWidth(elem);\n }\n\n return false;\n}\n\n(0, _squid.$registerDirective)('onEllipsis', function () {\n return {\n restrict: 'A',\n link: function link(scope, element, attrs) {\n function invokeSubscriber() {\n (0, _angular.$parse)(attrs.onEllipsis)(scope);\n scope.$apply();\n }\n\n (0, _angular.$timeout)(function () {\n if (hasEllipsis(element[0])) {\n invokeSubscriber();\n }\n });\n }\n };\n});\n\n// Makes an element examine the outerHeight of its siblings\n// and the max-height of its parent, then sets a max-height for itself\n// so that everything fits within the limits of the parent. Note that it assumes\n// no other sibling also has dynamic-maxheight.\n(0, _squid.$registerDirective)('dynamicMaxheight', function () {\n return {\n restrict: 'A',\n link: function link(scope, element, attrs) {\n function resizeContainer() {\n var $element = (0, _jquery2['default'])(element);\n var parentHeight = parseFloat(getStyle($element.parent()[0], 'max-height'));\n var siblings = $element.siblings().filter(function () {\n var pos = getStyle((0, _jquery2['default'])(this)[0], 'position');\n\n return pos !== 'fixed' && pos !== 'absolute';\n }).map(function getOuterHeights() {\n return (0, _jquery2['default'])(this).outerHeight();\n });\n var siblingsHeight = 0;\n var i = void 0;\n\n for (i = 0; i < siblings.length; i += 1) {\n siblingsHeight += siblings[i];\n }\n\n var spaceAvailable = parentHeight - siblingsHeight;\n\n if (!isNaN(spaceAvailable)) {\n $element.css('max-height', spaceAvailable + 'px');\n }\n }\n\n // if an expression is provided, it is used as an event to listen for and recalculate the height\n if (attrs.dynamicMaxheight) {\n scope.$on((0, _angular.$parse)(attrs.dynamicMaxheight)(scope), resizeContainer);\n }\n\n (0, _angular.$timeout)(resizeContainer);\n }\n };\n});\n\n_squid.$registerDirective;\n\n_angular.$parse;\n\n_angular.$timeout;\n\n_angular.$filterProvider;\n\n_angular.$window;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-page-components/src/cart/lib/ui.js\n// module id = ../node_modules/xo-page-components/src/cart/lib/ui.js\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _angular = require('angular');\n\nvar _squid = require('squid');\n\nvar _index = require('xo-models/src/subscription/index');\n\nvar _subscriptionTerms = require('../../subscription-terms');\n\nvar _subscriptionTerms2 = _interopRequireDefault(_subscriptionTerms);\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nrequire('./styles.less');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _squid.$Component.extend('$subscription', {\n tag: 'subscription',\n template: _template2['default'],\n props: {\n baToken: {\n type: 'var',\n optional: false\n },\n merchantId: {\n type: 'var',\n optional: false\n }\n },\n resolve: {\n models: function models() {\n return {\n subscriptionData: _index.$SubscriptionModel.instance(this.baToken).retrieve({\n params: {\n merchant_id: this.merchantId\n }\n })['catch'](_angular.noop)\n };\n }\n },\n lifecycle: {\n populate: function populate() {\n var _this = this;\n\n this.itemName = _subscriptionTerms2['default'].getItemName(this.models.subscriptionData);\n this.itemOptions = _subscriptionTerms2['default'].getItemOptions(this.models.subscriptionData);\n\n this.getFirstAmount = function () {\n return _subscriptionTerms2['default'].getFormattedFirstAmount(_this.models.subscriptionData);\n };\n\n this.getTermsText = function () {\n return _subscriptionTerms2['default'].getTermsText(_this.models.subscriptionData);\n };\n }\n }\n});\n\n\n_angular.noop;\n\n_squid.$Component;\n\n_index.$SubscriptionModel;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-page-components/src/cart/subscription/directive.js\n// module id = ../node_modules/xo-page-components/src/cart/subscription/directive.js\n// module chunks = 0","module.exports = \"
        \\n
        \\n
        \\n\\n

        {{content('wpsSubscription.message.subscriptionDetails')}}:

        \\n
        \\n\\n {{itemName}}\\n
        \\n
        {{option.name}}:\\n {{option.selection}}\\n
        \\n
        \\n
        \\n
        \\n\\n
        \\n

        {{content('wpsSubscription.message.terms')}}:\\n

        \\n
        \\n {{term}}\\n
        \\n
        \\n
        \\n

        {{content('wpsSubscription.message.firstAmount')}}

        \\n
        \\n
        \\n
        \\n
        \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-page-components/src/cart/subscription/template.html\n// module id = ../node_modules/xo-page-components/src/cart/subscription/template.html\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _angular = require('angular');\n\nvar _squid = require('squid');\n\nvar _index = require('xo-models/src/subscription/index');\n\nvar _subscriptionTerms = require('../../subscription-terms');\n\nvar _subscriptionTerms2 = _interopRequireDefault(_subscriptionTerms);\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nrequire('./styles.less');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _squid.$Component.extend('$SubscriptionsV1', {\n tag: 'subscriptions-v1',\n template: _template2['default'],\n props: {\n baToken: {\n type: 'var',\n optional: false\n },\n merchantId: {\n type: 'var',\n optional: false\n }\n },\n resolve: {\n models: function models() {\n return {\n subscriptionData: _index.$SubscriptionsV1Model.instance(this.baToken).retrieve({\n params: {\n merchant_id: this.merchantId\n }\n })['catch'](_angular.noop)\n };\n }\n },\n lifecycle: {\n populate: function populate() {\n var _models$subscriptionD = this.models.subscriptionData,\n planReview = _models$subscriptionD.planReview,\n billingAgreementCart = _models$subscriptionD.billingAgreementCart;\n\n var plan = planReview.new_plan || planReview.current_plan;\n\n var itemAmount = _subscriptionTerms2['default'].getNumericValueNonZero(plan, 'initial_payment_info.first_payment.value');\n var currencyCode = _squid.$util.getProperty(plan, 'initial_payment_info.total_amount.currency_code');\n\n this.termsText = _subscriptionTerms2['default'].getTermsText({ plan: plan });\n this.startDate = billingAgreementCart.start_time_formatted;\n this.autoRenewIndicator = billingAgreementCart.auto_renewal === 'true';\n\n this.itemName = _squid.$util.getProperty(plan, 'plan.name');\n this.taxPercentage = _subscriptionTerms2['default'].getNumericValueNonZero(plan, 'initial_payment_info.taxPercentage');\n this.itemPrice = _subscriptionTerms2['default'].getFormattedAmount(itemAmount, currencyCode);\n\n this.quantity = !isNaN(billingAgreementCart.quantity) && billingAgreementCart.quantity;\n this.shipping = _subscriptionTerms2['default'].getNumericValueNonZero(plan, 'initial_payment_info.shipping_amount.value');\n this.shippingAmount = _subscriptionTerms2['default'].getFormattedAmount(this.shipping, currencyCode);\n this.setupFee = _subscriptionTerms2['default'].getNumericValueNonZero(plan, 'initial_payment_info.setup_fee.value');\n this.setupFeeAmount = _subscriptionTerms2['default'].getFormattedAmount(this.setupFee, currencyCode);\n\n var totalAmount = _subscriptionTerms2['default'].getNumericValueNonZero(plan, 'initial_payment_info.total_amount.value');\n this.totalAmount = _subscriptionTerms2['default'].getFormattedAmount(totalAmount, currencyCode);\n }\n }\n});\n\n\n_angular.noop;\n\n_squid.$Component;\n\n_squid.$util;\n\n_index.$SubscriptionsV1Model;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-page-components/src/cart/subscriptionsV1/directive.js\n// module id = ../node_modules/xo-page-components/src/cart/subscriptionsV1/directive.js\n// module chunks = 0","module.exports = \"
        \\n
        \\n
        \\n\\n

        {{content('wpsSubscription.message.subscriptionDetails')}}:

        \\n
        \\n\\n
        \\n
        \\n {{terms}}\\n
        \\n
        {{content('subscriptions.message.renewsUntilCancelled')}}
        \\n
        {{content('subscriptions.message.startDate')}} {{ startDate }}
        \\n
        \\n
        \\n
        \\n\\n
        \\n
        \\n
        {{ itemName }}
        \\n
        {{ itemPrice }}
        \\n
        \\n
        \\n
        {{ content('header.quantity') }} {{ quantity }}
        \\n
        \\n
        \\n
        \\n
        {{ content('header.shipping') }}
        \\n
        {{ shippingAmount }}
        \\n
        \\n\\n
        \\n
        {{ content('subscriptions.message.setupFee') }}
        \\n
        {{ setupFeeAmount }}
        \\n
        \\n\\n
        \\n
        {{ content('subscriptions.message.includesTax', {tax: taxPercentage}) }}
        \\n
        \\n
        \\n
        \\n
        \\n

        {{content('header.total')}}

        \\n
        {{ totalAmount }}
        \\n
        \\n
        \\n
        \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-page-components/src/cart/subscriptionsV1/template.html\n// module id = ../node_modules/xo-page-components/src/cart/subscriptionsV1/template.html\n// module chunks = 0","module.exports = \"
        \\n
        \\n\\n \\n \\n \\n\\n \\n\\n
        \\n
        \\n\\n \\n\\n
        \\n

        \\n {{ content('header.noteFromMerchant', {merchant: checkoutAppData.merchant.brand_name}) }}\\n {{ checkoutAppData.merchant.brand_name }}\\n

        \\n

        \\n {{ note | decodeEntities }}\\n {{ desc | decodeEntities }}\\n

        \\n
        \\n\\n \\n \\n\\n \\n \\n\\n
        \\n \\n\\n
          \\n
        • \\n
        • \\n {{ content(amountHeaders[breakdown.field_name]) }}\\n \\n \\n \\n
        • \\n \\n
        \\n
        \\n\\n
        \\n {{ content(isCartTextTotalOrSubTotal) }}\\n \\n \\n \\n
        \\n\\n
        \\n
        \\n
        \\n
        \\n
        \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-page-components/src/cart/template.html\n// module id = ../node_modules/xo-page-components/src/cart/template.html\n// module chunks = 0","\n\n/* Constants for FB messenger related components */\nmodule.exports = {\n OVERRIDE_FBPP_REPEAT_FLAG: 'override_fbpp_repeat',\n OVERRIDE_FBPP_MOBILE_FLAG: 'override_fbpp_mobile',\n FB_BA_SHOWN_FLAG: 'is_xo_wps_fb_messenger_plugin_match_withba_shown',\n MOBILE_CHANNEL: 'MOBILE',\n WEB_CHANNEL: 'WEB',\n FB_USER_API_MOBILE_URL: 'https://m.facebook.com/paypal/user_identifier',\n FB_USER_API_URL: 'https://www.facebook.com/paypal/user_identifier',\n FB_PROD_APP_ID: '1084613224964631',\n FB_PROD_PAGE_ID: {\n US: '55982004572',\n AU: '171522459698178',\n CA: '164660263560926',\n GB: '167465479930420',\n HK: '575224445931086',\n JP: '252040838174046',\n NZ: '171522459698178',\n PH: '1895483750701842',\n SG: '1405303076421245',\n IL: '369238992488',\n CZ: '199396843578121',\n DE: '109838022384872',\n AT: '109838022384872',\n CH: '109838022384872',\n FR: '124143236317',\n IT: '198366693576785',\n BR: '170288122998781',\n ES: '244240615638886',\n MX: '42433532610',\n ZA: '388473619362',\n NL: '105370782861413',\n DK: '133211860117553',\n SE: '121404111292725',\n RU: '275216545856555',\n PL: '244706038980513',\n NO: '304581546592510',\n GR: '704200349634422',\n IN: '347199669139259',\n AE: '402374783229274',\n BH: '402374783229274',\n DZ: '402374783229274',\n EG: '402374783229274',\n JO: '402374783229274',\n KW: '402374783229274',\n MA: '402374783229274',\n OM: '402374783229274',\n QA: '402374783229274',\n SA: '402374783229274',\n TN: '402374783229274',\n YE: '402374783229274',\n AR: '474276366001351',\n CL: '474276366001351',\n CO: '474276366001351',\n CR: '474276366001351',\n DO: '474276366001351',\n EC: '474276366001351',\n PE: '474276366001351',\n UY: '474276366001351',\n VE: '474276366001351'\n },\n FB_TEST_PAGE_ID: '676472402496128',\n PXP_MESSENGER_EXPT: 'xo_wps_fb_messenger_plugin',\n PXP_SHOW_MESSENGER_PLUGIN_TREATMENT: 'xo_wps_fb_messenger_plugin_1_treatment',\n PXP_MESSENGER_IN: 'xo_wps_fb_messenger_plugin_IN',\n PXP_MESSENGER_PLUGIN_TREATMENT_IN: 'xo_wps_fb_messenger_plugin_IN_treatment'\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-page-components/src/constants/fbMessenger.js\n// module id = ../node_modules/xo-page-components/src/constants/fbMessenger.js\n// module chunks = 0","\n\nvar _jquery = require('jquery');\n\nvar _jquery2 = _interopRequireDefault(_jquery);\n\nvar _uiRouter = require('uiRouter');\n\nvar _logger = require('xo-beaver/dist/logger');\n\nvar _index = require('xo-device-info/dist/index');\n\nvar _angular = require('angular');\n\nvar _squid = require('squid');\n\nvar _auth = require('xo-models/src/auth');\n\nvar _index2 = require('xo-models/src/checkout/index');\n\nvar _profilemanagement = require('xo-models/src/profilemanagement');\n\nvar _thirdPartyInfo = require('xo-third-party-components/src/thirdParty-info');\n\nvar _fbMessenger = require('../constants/fbMessenger');\n\nvar _fbMessenger2 = _interopRequireDefault(_fbMessenger);\n\nvar _index3 = require('../utils/index');\n\nvar _index4 = _interopRequireDefault(_index3);\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nrequire('xo-login-components/src/dolphin/directive');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar AUTORETURN_TIMEOUT = 5000;\n// If the user returns into checkout, it causes errors since the checkout\n// session is not what we'd expect it to look like. Rather than proofing our\n// code against this, we will attempt to prevent navigation instead.\n// Any valid routes should be added here\nvar WHITELISTED_ROUTES = ['checkout.end'];\n\n(0, _angular.$registerDirective)('xo-done', function () {\n return {\n template: _template2['default'],\n controller: ['$scope', function ($scope) {\n $scope.isGuestSignup = _angular.$rootScope.mode && _angular.$rootScope.mode === 'signup';\n $scope.locale = _squid.$locale;\n\n function addPageMessage(code) {\n var CONTENT_KEY_MAPPING = {\n NO_UPGRADE: 'accountUpgradeFailed'\n };\n\n if (code && CONTENT_KEY_MAPPING[code]) {\n $scope.errorMessage = {\n msgs: [_squid.$locale.content.get('done.' + CONTENT_KEY_MAPPING[code])],\n type: 'warning'\n };\n }\n }\n\n function isThirdPartyFlow() {\n return _thirdPartyInfo.thirdPartyExperience.isThirdPartyExperience(_angular.$rootScope.token);\n }\n\n (0, _squid.$populate)($scope, {\n checkoutAppData: _index2.$CheckoutAppDataModel.instance($scope.token),\n checkoutSession: _index2.$CheckoutSessionModel.instance($scope.token),\n checkoutCart: _index2.$CheckoutCartModel.instance($scope.token),\n payee: _index2.$CheckoutPayeeModel.instance($scope.token),\n auth: _auth.$AuthModel.instance($scope.token)\n }).then(function () {\n\n // populate fpti payload about facebook skip login\n if ($scope.auth.isFBSkipLogin()) {\n _logger.$logger.info('checkout_fpti', {\n 'design': 'facebook_onetouch'\n });\n }\n\n // We need merchant display name (which can be undefined) to display in\n // merchant details section of the page\n $scope.merchantDisplayName = $scope.checkoutAppData.getMerchantDisplayName();\n // We need non empty value for merchantDisplayName in #merchant-text tag\n $scope.nonEmptyMerchantDisplayName = $scope.checkoutAppData.getMerchantDisplayName({\n nonEmptyReturnValue: true\n });\n\n return (0, _squid.$populate)($scope, {\n merchantPreferenceModel: _profilemanagement.$MerchantPreferenceModel.instance($scope.payee.merchant.id)\n }).then(function () {\n // Show auto return page when feature is enabled by merchant and txn\n $scope.isAutoReturn = $scope.merchantPreferenceModel.autoReturn();\n _logger.$logger.info('wps_autoreturn_' + ($scope.isAutoReturn ? 'enabled' : 'disabled'), {\n return_url: $scope.checkoutAppData.urls.return_url || 'not_available',\n autoreturn_url: $scope.merchantPreferenceModel.returnUrl() || 'not_available'\n });\n\n // Set content key based on device\n $scope.autoReturnContentKey = _index.$DeviceInfo.isMobile() || _index.$DeviceInfo.isTablet() ? 'done.autoReturnStatement' : 'done.autoReturnStatementWeb';\n $scope.guestSignupKey = $scope.isGuestSignup ? 'done.paymentGuest' : 'done.payment';\n\n if (_uiRouter.$stateParams.code) {\n addPageMessage(_uiRouter.$stateParams.code);\n }\n var amount = $scope.checkoutSession.transactionDetails.amount.total;\n var code = $scope.checkoutSession.transactionDetails.amount.currency;\n\n $scope.formattedAmount = (0, _squid.formatCurrency)(amount, code);\n var itemList = $scope.checkoutSession.itemsList;\n\n itemList.forEach(function (item) {\n item.quantity = (0, _squid.formatQuantity)(item.quantity);\n });\n });\n }).then(function () {\n var pxpContext = _index4['default'].getMessengerPXPContext();\n\n _logger.$logger.info('pxp_xo_wps_fb_messenger_plugin ', pxpContext);\n\n // Skipping FB messenger experience if Venmo flow detected as this is only for PayPal users\n // Also not loading if merchant auto return is enabled\n\n if (!$scope.isAutoReturn && !isThirdPartyFlow()) {\n if (_index4['default'].isDolphinEligibleOnWpsDone(_uiRouter.$state.current && _uiRouter.$state.current.name)) {\n _logger.$logger.info('ul_dolphin', {\n 'from': 'dolphin_elg_chk',\n 'to': 'process_dolphin_elg_chk',\n 'eligibility_reason': 'wps_done_flow',\n 'context_id': _angular.$rootScope.token\n });\n $scope.isDolphinEligibleOnWpsDone = true;\n } else {\n _squid.$promise.all([(0, _squid.$pxp)(_fbMessenger2['default'].PXP_MESSENGER_EXPT, pxpContext, _fbMessenger2['default'].PXP_SHOW_MESSENGER_PLUGIN_TREATMENT, false, true), (0, _squid.$pxp)(_fbMessenger2['default'].PXP_MESSENGER_IN, pxpContext, _fbMessenger2['default'].PXP_MESSENGER_PLUGIN_TREATMENT_IN, false, true)]).then(function () {\n var results = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var country = _squid.$locale.country;\n var _$scope$checkoutSessi = $scope.checkoutSession.payer;\n _$scope$checkoutSessi = _$scope$checkoutSessi === undefined ? {} : _$scope$checkoutSessi;\n var payerId = _$scope$checkoutSessi.id;\n\n\n _logger.$logger.info('Messenger_done_page_PXP_RESULT', results);\n\n var _results$ = results[0];\n _results$ = _results$ === undefined ? {} : _results$;\n var treatment_name = _results$.treatment_name,\n _results$2 = results[1];\n _results$2 = _results$2 === undefined ? {} : _results$2;\n var in_treatment_name = _results$2.treatment_name;\n\n\n if (treatment_name === _fbMessenger2['default'].PXP_SHOW_MESSENGER_PLUGIN_TREATMENT || in_treatment_name === _fbMessenger2['default'].PXP_MESSENGER_PLUGIN_TREATMENT_IN) {\n _logger.$logger.info('messenger_done_page_test_traffic');\n _logger.$logger.info('checkout_fpti', {\n buyer_country: country,\n buyer_id: payerId,\n design: 'fbmessenger',\n from: 'XO_SUCCESS',\n eligibility_reason: 'messenger_treatment'\n });\n $scope.pxpMessengerIntegrationEnabled = true;\n } else {\n _logger.$logger.info('messenger_done_page_control_traffic');\n _logger.$logger.info('checkout_fpti', {\n buyer_country: country,\n buyer_id: payerId,\n design: 'fbmessenger',\n from: 'XO_SUCCESS',\n eligibility_reason: 'messenger_control'\n });\n $scope.pxpMessengerIntegrationEnabled = false;\n }\n });\n }\n }\n\n (0, _jquery2['default'])('#outerWrapper').addClass('xo-done');\n\n $scope.expansion = false;\n $scope.toggle = function () {\n if ($scope.expansion === false) {\n $scope.maxHeight = document.getElementsByClassName('details-expand')[0].scrollHeight + 'px';\n $scope.expansion = true;\n } else {\n $scope.expansion = false;\n }\n return $scope.expansion;\n };\n\n $scope.autoReturnStatementClick = function (event) {\n event.preventDefault();\n if (event.target && event.target.nodeName === 'A') {\n _logger.$logger.info('autoreturn_statement_clicked');\n $scope.returnToMerchant();\n }\n };\n\n if ($scope.isAutoReturn) {\n _logger.$logger.info('autoreturn_to_merchant');\n (0, _angular.$timeout)($scope.returnToMerchant, AUTORETURN_TIMEOUT);\n }\n });\n\n $scope.$on('localeChange', function () {\n if (_uiRouter.$stateParams.code) {\n addPageMessage(_uiRouter.$stateParams.code);\n }\n });\n\n $scope.returnToMerchant = function () {\n _logger.$logger.info('return_to_merchant_clicked');\n return _uiRouter.$state.go('checkout.end');\n };\n\n var onExitListeners = function onExitListeners() {\n var removeClassListener = _angular.$rootScope.$on('$stateChangeSuccess', function (event, newState, newParams, oldState) {\n if (oldState.name === 'checkout.done') {\n (0, _jquery2['default'])('#outerWrapper').removeClass('xo-done');\n }\n });\n var preventBackListener = _angular.$rootScope.$on('$stateChangeStart', function (event, newState) {\n if (!~WHITELISTED_ROUTES.indexOf(newState.name)) {\n _logger.$logger.info('done_page_prevent_routing', {\n to: newState.name\n });\n event.preventDefault();\n preventBackListener();\n\n return _uiRouter.$state.go('checkout.genericError', {\n code: 'PAYMENT_ALREADY_DONE'\n });\n }\n });\n\n return function () {\n removeClassListener();\n preventBackListener();\n };\n };\n\n $scope.$on('$destroy', onExitListeners());\n }]\n };\n});\n\n_uiRouter.$state;\n\n_uiRouter.$stateParams;\n\n_logger.$logger;\n\n_index.$DeviceInfo;\n\n_angular.$registerDirective;\n\n_angular.$rootScope;\n\n_angular.$timeout;\n\n_squid.$locale;\n\n_squid.$populate;\n\n_squid.$promise;\n\n_squid.$pxp;\n\n_squid.formatCurrency;\n\n_squid.formatQuantity;\n\n_auth.$AuthModel;\n\n_index2.$CheckoutAppDataModel;\n\n_index2.$CheckoutCartModel;\n\n_index2.$CheckoutPayeeModel;\n\n_index2.$CheckoutSessionModel;\n\n_profilemanagement.$MerchantPreferenceModel;\n\n_thirdPartyInfo.thirdPartyExperience;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-page-components/src/done/directive.js\n// module id = ../node_modules/xo-page-components/src/done/directive.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$DoneRoute = undefined;\n\nvar _squid = require('squid');\n\nrequire('./directive');\n\nvar $DoneRoute = exports.$DoneRoute = _squid.$ComponentRoute.extend('DoneRoute', {\n name: 'done',\n directive: 'xo-done',\n titleContent: 'done.paymentCompleted',\n query: ['code'],\n trackingData: {\n fptiState: 'done_page',\n templateName: 'memberDone.dust',\n pageGoal: 'Payment Done Receipt',\n trackStateExit: true,\n buzname: {\n 'fullpage': {\n 'pagename': '%::fullpage-done',\n 'pagename2': '%::fullpage-done:member:hermes:',\n 'version': 'member:%:'\n }\n }\n },\n children: []\n});\n\nangular.value(\"$DoneRoute\", $DoneRoute);\n_squid.$ComponentRoute;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-page-components/src/done/route.js\n// module id = ../node_modules/xo-page-components/src/done/route.js\n// module chunks = 0","module.exports = \"
        \\n \\n
        \\n
        \\n
        \\n
        \\n
        {{ content('done.payment_target', { merchantName: nonEmptyMerchantDisplayName }) }}
        \\n {{content('paymentMethod.msbDetails')}}\\n
        \\n
        \\n
        \\n
        \\n {{item.quantity}} x {{item.name}}\\n \\n \\n \\n \\n
        \\n
        \\n \\n {{ content('header.itemNumber') }} {{ item.sku }}\\n \\n
        \\n
        \\n \\n {{ selection.name }}:\\n {{ selection.select }}\\n \\n
        \\n
        \\n
        \\n
        \\n {{content('header.subTotal')}}\\n \\n \\n \\n \\n
        \\n
        \\n {{content('header.tax')}}\\n \\n \\n \\n \\n
        \\n
        \\n {{content('header.shipping')}}\\n \\n \\n \\n \\n
        \\n
        \\n {{content('header.insurance')}}\\n \\n \\n \\n \\n
        \\n
        \\n {{content('header.handling')}}\\n \\n \\n \\n \\n
        \\n
        \\n {{content('header.discount')}}\\n \\n \\n \\n \\n
        \\n
        \\n
        \\n \\n {{content('base.totalLabel')}}\\n \\n \\n \\n \\n \\n
        \\n
        \\n
        \\n \\n \\n
        \\n
        \\n
        \\n
        \\n {{content('done.temporarily_pending')}}\\n
        \\n
        \\n
        \\n \\n\\n
        \\n
        \\n
        {{ content('messenger.integration') }}
        \\n
        \\n
        \\n
        {{ content('messenger.linkedTitle') }}
        \\n
        {{ content('messenger.linkedSubtitle') }}
        \\n
        \\n
        {{ content('messenger.upsell') }}
        \\n \\n
        \\n\\n

        0\\\" class=\\\"receipt title\\\">{{content('done.paidWith')}}

        \\n
        \\n
        \\n {{content('fsMappings.'+item.type) || item.name}} x-{{item.last4}}\\n \\n \\n \\n \\n
        \\n
        \\n
        {{content('done.transactionInformation', {merchantName: checkoutSession.transactionDetails.soft_descriptor})}}\\n
        \\n

        {{content('done.shippedTo')}}

        \\n
        \\n
        {{checkoutSession.shipping.name}}
        \\n
          \\n
        • {{item}}
        • \\n
        \\n
        {{content('countryList.'+checkoutSession.shipping.country)}}
        \\n
        \\n
        \\n
        {{ content('shippingMethod.storeLocation') }}
        \\n

        {{ content('shippingMethod.storeLocationInfo') }}

        \\n
        \\n

        {{content('done.purchaseDetails')}}

        \\n
        {{content('done.receiptNumber')}} {{checkoutSession.transactionDetails.receipt_id}}
        \\n
        \\n
        {{content('done.confirmation')}}
        \\n
        {{checkoutSession.payer.email}}
        \\n
        \\n\\n
        \\n

        {{content('done.merchantDetails')}}

        \\n
        \\n
        {{ merchantDisplayName }}
        \\n
        {{checkoutAppData.merchant.phone}}
        \\n
        \\n
        \\n\\n
        \\n \\n
        \\n
        \\n
        \\n
        {{content('done.paymentCompleted')}}
        \\n
        \\n
        \\n
        \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-page-components/src/done/template.html\n// module id = ../node_modules/xo-page-components/src/done/template.html\n// module chunks = 0","\n\nvar _uiRouter = require('uiRouter');\n\nvar _angular = require('angular');\n\nvar _squid = require('squid');\n\nvar _index = require('xo-device-info/dist/index');\n\nrequire('xo-form-components/src/language-options/directive');\n\nvar _index2 = require('xo-models/src/auth/index');\n\nvar _index3 = require('xo-models/src/checkout/index');\n\nvar _index4 = require('xo-models/src/user/index');\n\nvar _index5 = require('xo-return-to-merchant/dist/index');\n\nrequire('xo-ui-components/src/escape-hatch/escapeHatch/directive');\n\nrequire('xo-ui-components/src/modal/directive');\n\nvar _footerMap = require('./footerMap');\n\nvar _footerMap2 = _interopRequireDefault(_footerMap);\n\nvar _opinionlab = require('./opinionlab');\n\nvar _opinionlab2 = _interopRequireDefault(_opinionlab);\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nvar _logger = require('xo-beaver/dist/logger');\n\nrequire('./styles');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nangular.module().directive('xoFooter', function () {\n return {\n template: _template2['default'],\n restrict: 'EA',\n scope: {\n token: '=?',\n escapeHatchIncontext: '=?',\n cancel: '@?',\n merchant: '@?',\n languageSwitch: '=?',\n showVenmoLegalLinks: '=?'\n },\n controller: ['$scope', function ($scope) {\n $scope.isIFrame = _squid.$util.isIFrame();\n if ($scope.escapeHatchIncontext) {\n $scope.showEscapeHatch = $scope.isIFrame;\n }\n $scope.locale = _squid.$locale;\n $scope.proxSignUpFlow = _index4.$CheckoutInputDataModel.instance($scope.token).isEbayTxn();\n $scope.year = new Date().getFullYear();\n\n $scope.isApac = function () {\n return _squid.$config.apacCountries && _squid.$config.apacCountries.indexOf($scope.locale.country) > -1;\n };\n\n // Determine if country belongs to a region to serve correct footer links\n var getRegion = function getRegion(country) {\n var regions = _squid.$config.regions;\n for (var region in regions) {\n if (regions[region].indexOf(country) > -1) {\n return region;\n }\n }\n return false;\n };\n\n function isDESecondButtonFlow() {\n return $scope.locale.country === 'DE' && $scope.checkoutAppData && $scope.checkoutAppData.is_second_button_txn;\n }\n\n $scope.footerLinks = function () {\n if ($scope.isApac()) {\n return _footerMap2['default'].APAC;\n }\n\n // It is a product requirement that for the DE CYCO page, Hermes only show the footer links\n // that were available in Aries\n if (isDESecondButtonFlow()) {\n return _footerMap2['default']['DESecondButton'];\n }\n\n return _footerMap2['default'][$scope.locale.country] || _footerMap2['default'][getRegion($scope.locale.country)] || _footerMap2['default'].DEFAULT;\n };\n\n $scope.showPolicyInfo = function () {\n return $scope.isApac() || $scope.locale.country === 'AU';\n };\n\n $scope.cancelRedirect = function ($event) {\n $event.preventDefault();\n\n var cancelUri = $scope.cancel;\n var redirectUri = _squid.$util.param('redirect_uri');\n\n if (window.xprops && window.xprops.onCancel && !cancelUri) {\n return window.xprops.onCancel({\n orderID: $scope.token\n });\n }\n\n // \"redirect_uri\" as a query param overrides the cancel url in the checkout session\n if (_squid.$integration.getConfig('REDIRECT_QUERY_PARAM') && redirectUri) {\n\n cancelUri = _squid.$util.buildURL(redirectUri, {\n opType: 'cancel',\n return_uri: $scope.cancel,\n token: $scope.token\n });\n }\n\n _index5.$ReturnToMerchant.goTo(cancelUri);\n };\n\n $scope.isIndiaLegalEntity = function () {\n // for PayPal India domestic launch legal entity should be 84\n // update footer with indian policy for this case\n return $scope.auth && $scope.auth.logged_in && $scope.auth.legalEntity === 84 || $scope.locale.country === 'IN';\n };\n\n if ($scope.token) {\n (0, _squid.$populate)($scope, {\n checkoutAppData: _index3.$CheckoutAppDataModel.instance($scope.token),\n checkoutPayee: _index3.$CheckoutPayeeModel.instance($scope.token),\n auth: _index2.$AuthModel.instance()\n }).then(function () {\n var payee = $scope.checkoutPayee;\n\n if (payee && payee.merchant && payee.merchant.id) {\n var hcl = _squid.$config.hideCancelLinkForMerchant;\n\n var shouldHide = hcl && hcl.indexOf(payee.merchant.id) !== -1;\n if (shouldHide) {\n $scope.hideCancel = true;\n }\n }\n $scope.cancel = $scope.checkoutAppData.urls.cancel_url;\n $scope.merchant = $scope.checkoutAppData.getMerchantDisplayName();\n });\n }\n\n var cancelShowModal = _angular.$rootScope.$on('showModal', function (event, ctx) {\n var url = ctx && ctx.popupUrl;\n _logger.$logger.info('show_popup_modal', { url: url, ua: _angular.$window.navigator.userAgent });\n $scope.popupUrl = _angular.$sce.trustAsResourceUrl(url);\n $scope.show = true;\n $scope.$digest(); // eslint-disable-line angular/ng_no_digest\n });\n\n $scope.hideModal = function () {\n _logger.$logger.info('hide_popup_modal');\n $scope.show = false;\n };\n\n $scope.$on('$destroy', cancelShowModal);\n\n $scope.showOL = function showOL(event) {\n event.preventDefault();\n\n var placeholder = 'main:ec:hermes';\n var page = _uiRouter.$state.current.get('trackingData.buzname.fullpage.pagename2', 'unknown').replace('%', placeholder);\n var data = {\n opVars: {\n rlogId: _angular.$window.meta.rlogId || '',\n page: page || window.location.hash,\n csci: 'Unknown',\n calc: _angular.$window.meta.correlationId,\n custId: 'Unknown',\n merchantId: 'Unknown',\n token: $scope.token || 'Unknown'\n },\n locale: {\n country: _squid.$locale.country,\n languageCode: _squid.$locale.lang + '_' + _squid.$locale.country\n }\n };\n\n (0, _opinionlab2['default'])(data);\n };\n\n $scope.showFeedback = function () {\n return !_index.$DeviceInfo.isDevice() && !isDESecondButtonFlow();\n };\n\n $scope.hideReturnCancelUrl = function () {\n if (window.xprops && window.xprops.onCancel) {\n return false;\n }\n\n if (!$scope.cancel) {\n return true;\n }\n\n if (_uiRouter.$state.current && _uiRouter.$state.current.name === 'checkout.done') {\n return true;\n }\n\n return false;\n };\n\n $scope.showVenmoLinks = function () {\n // if on payWithSelection State, always show it, else we choose whatever 'checkout' directive says.\n if (_uiRouter.$state.current && _uiRouter.$state.current.name === 'checkout.payWithSelection') {\n return true;\n }\n return !!$scope.showVenmoLegalLinks;\n };\n\n $scope.showPaypalLinks = function () {\n // will force Paypal Links if on payWithSelection state. Hide paypal links if we explicitly request venmo Links\n if (_uiRouter.$state.current && _uiRouter.$state.current.name === 'checkout.payWithSelection') {\n return true;\n }\n return !$scope.showVenmoLegalLinks;\n };\n }]\n };\n});\n\n_uiRouter.$state;\n\n_angular.$window;\n\n_angular.$rootScope;\n\n_angular.$sce;\n\n_squid.$config;\n\n_squid.$util;\n\n_squid.$locale;\n\n_squid.$populate;\n\n_squid.$integration;\n\n_index.$DeviceInfo;\n\n_index2.$AuthModel;\n\n_index3.$CheckoutAppDataModel;\n\n_index3.$CheckoutPayeeModel;\n\n_index4.$CheckoutInputDataModel;\n\n_index5.$ReturnToMerchant;\n\n_logger.$logger;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-page-components/src/footer/directive.js\n// module id = ../node_modules/xo-page-components/src/footer/directive.js\n// module chunks = 0","\n\ndefine({\n CA: [{\n id: 'policy',\n content: 'footer.policiesCA'\n }, {\n id: 'terms',\n content: 'footer.termsCA'\n }, {\n id: 'privacy',\n content: 'footer.privacyCA'\n }],\n\n BE: [{\n id: 'legal',\n content: 'footer.legal'\n }, {\n id: 'privacy',\n content: 'footer.privacy'\n }],\n\n DE: [{\n id: 'imprint',\n content: 'footer.DEImprint'\n }, {\n id: 'legal',\n content: 'footer.DELegal'\n }, {\n id: 'privacy',\n content: 'footer.DEPrivacy'\n }, {\n id: 'paymentdesc',\n content: 'footer.DEKeyPaymentDesc'\n }],\n\n ES: [{\n id: 'legal',\n content: 'footer.legal'\n }, {\n id: 'privacy',\n content: 'footer.privacy'\n }],\n\n FR: [{\n id: 'legal',\n content: 'footer.FRLegal'\n }, {\n id: 'useragreement',\n content: 'footer.FRUserAgreement'\n }, {\n id: 'privacy',\n content: 'footer.FRPrivacy'\n }],\n\n IT: [{\n id: 'legal',\n content: 'footer.legal'\n }, {\n id: 'privacy',\n content: 'footer.privacy'\n }],\n\n NL: [{\n id: 'legal',\n content: 'footer.legal'\n }, {\n id: 'privacy',\n content: 'footer.privacy'\n }],\n\n IE: [{\n id: 'terms',\n content: 'footer.terms'\n }, {\n id: 'useragreement',\n content: 'footer.userAgreement'\n }, {\n id: 'privacy',\n content: 'footer.privacy'\n }],\n\n APAC: [{\n id: 'terms',\n content: 'footer.terms'\n }, {\n id: 'useragreement',\n content: 'footer.userAgreement'\n }, {\n id: 'privacy',\n content: 'footer.privacy'\n }],\n EMEA: [{\n id: 'terms',\n content: 'footer.terms'\n }, {\n id: 'useragreement',\n content: 'footer.userAgreement'\n }, {\n id: 'privacy',\n content: 'footer.privacy'\n }],\n EM: [{\n id: 'terms',\n content: 'footer.terms'\n }, {\n id: 'useragreement',\n content: 'footer.userAgreement'\n }, {\n id: 'privacy',\n content: 'footer.privacy'\n }],\n LATAM: [{\n id: 'help',\n content: 'footer.help'\n }, {\n id: 'terms',\n content: 'footer.terms'\n }, {\n id: 'privacy',\n content: 'footer.privacy'\n }],\n\n AU: [{\n id: 'terms',\n content: 'footer.terms'\n }, {\n id: 'privacy',\n content: 'footer.privacy'\n }],\n AT: [{\n id: 'imprint',\n content: 'footer.ATImprint'\n }, {\n id: 'terms',\n content: 'footer.terms'\n }, {\n id: 'privacy',\n content: 'footer.privacy'\n }],\n CH: [{\n id: 'imprint',\n content: 'footer.CHImprint'\n }, {\n id: 'terms',\n content: 'footer.terms'\n }, {\n id: 'privacy',\n content: 'footer.privacy'\n }],\n DK: [{\n id: 'useragreement',\n content: 'footer.DKUserAgreement'\n }, {\n id: 'privacy',\n content: 'footer.privacy'\n }],\n SE: [{\n id: 'useragreement',\n content: 'footer.SEUserAgreement'\n }, {\n id: 'privacy',\n content: 'footer.privacy'\n }],\n PL: [{\n id: 'useragreement',\n content: 'footer.PLUserAgreement'\n }, {\n id: 'privacy',\n content: 'footer.privacy'\n }],\n NO: [{\n id: 'useragreement',\n content: 'footer.NOUserAgreement'\n }, {\n id: 'privacy',\n content: 'footer.privacy'\n }],\n TR: [{\n id: 'useragreement',\n content: 'footer.TRUserAgreement'\n }, {\n id: 'privacy',\n content: 'footer.privacy'\n }],\n BR: [{\n id: 'help',\n content: 'footer.help'\n }, {\n id: 'terms',\n content: 'footer.terms'\n }, {\n id: 'privacy',\n content: 'footer.privacy'\n }],\n MX: [{\n id: 'help',\n content: 'footer.help'\n }, {\n id: 'terms',\n content: 'footer.terms'\n }, {\n id: 'privacy',\n content: 'footer.privacy'\n }],\n RU: [{\n id: 'terms',\n content: 'footer.terms'\n }, {\n id: 'privacy',\n content: 'footer.privacy'\n }],\n\n DESecondButton: [{\n id: 'imprint',\n content: 'footer.DEImprint'\n }, {\n id: 'privacy',\n content: 'footer.DEPrivacy'\n }],\n\n DEFAULT: [{\n id: 'policy',\n content: 'footer.policies',\n venmoContent: 'footer.venmo_policies'\n }, {\n id: 'terms',\n content: 'footer.terms',\n venmoContent: 'footer.venmo_terms'\n }, {\n id: 'privacy',\n content: 'footer.privacy',\n venmoContent: 'footer.venmo_privacy'\n }]\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-page-components/src/footer/footerMap.js\n// module id = ../node_modules/xo-page-components/src/footer/footerMap.js\n// module chunks = 0","\n\ndefine([], function () {\n\n var _doc = document;\n var _w = window;\n var _tm = new Date().getTime();\n var _sH = screen.height;\n var _ht = escape(_w.location.href); // eslint-disable-line block-scoped-var,no-undef\n var _hr = escape(_doc.referrer); // eslint-disable-line block-scoped-var,no-undef\n var _sW = screen.width;\n\n function popUp(opinionlabURL) {\n _w.open(opinionlabURL, 'comments', 'width=535,height=192' + ',screenX=' + (_sW - 535) / 2 + ',screenY=' + (_sH - 192) / 2 + ',top=' + (_sH - 192) / 2 + ',left=' + (_sW - 535) / 2 + ',resizable=yes' + ',copyhistory=yes' + ',scrollbars=no');\n }\n\n function updateCustomVars(data) {\n\n var opVars = data.opVars;\n var locale = data.locale;\n\n _ht = 'https://' + locale.country + '.paypal.com/' + locale.languageCode + '/00/' + escape(opVars.page.replace(/\\s|\\//g, '_')) + '.page'; // eslint-disable-line block-scoped-var,no-undef\n\n var customVar = (opVars.rlogId || opVars.calc) + '|' + opVars.csci + '|' + opVars.page + '|' + locale.country + '|' + locale.languageCode + '|' + opVars.custId + '|' + opVars.merchantId + '|' + opVars.token + '|' + 'Unknown';\n return customVar;\n }\n\n function _fC(_u) {\n var _sp = '%3A\\\\/\\\\/';\n var _rp = '%3A//';\n var _aT = _sp + ',\\\\/,\\\\.,-,_,' + _rp + ',%2F,%2E,%2D,%5F';\n var _aA = _aT.split(',');\n\n for (var i = 0; i < 5; i++) {\n eval('_u=_u.replace(/' + _aA[i] + '/g,_aA[i+5])'); // eslint-disable-line no-eval\n }\n return _u;\n }\n\n return function (locale) {\n\n var custom_var = updateCustomVars(locale);\n\n var opinionlabURL = 'https://secure.opinionlab.com/ccc01/comment_card.asp?' + 'time1=' + _tm + '&time2=' + new Date().getTime() + '&prev=' + _fC(_hr) + '&referer=' + _fC(_ht) + '&height=' + _sH + '&width=' + _sW + '&custom_var=' + custom_var;\n popUp(opinionlabURL);\n };\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-page-components/src/footer/opinionlab.js\n// module id = ../node_modules/xo-page-components/src/footer/opinionlab.js\n// module chunks = 0","module.exports = \"
        \\n
        \\n

        \\n \\n \\n \\n

        \\n\\n
        \\n \\n
          \\n
        • \\n
        • \\n
        \\n

        \\n {{ content('footer.copyright', {year: year}) }}\\n \\n {{ content('memberReview.propHead') }}\\n

        \\n\\n \\n
        \\n\\n
        \\n

        \\n

        \\n

        {{ content('footer.moreCopyright', {year: year}) }}

        \\n
        \\n\\n
        \\n \\n
        \\n \\n
        \\n
        \\n
        \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-page-components/src/footer/template.html\n// module id = ../node_modules/xo-page-components/src/footer/template.html\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$gdprCookieBannerComponent = undefined;\n\nvar _squid = require('squid');\n\nvar _angular = require('angular');\n\nvar _gdprCookieBanner = require('xo-models/src/gdprCookieBanner');\n\nvar _logger = require('xo-beaver/dist/logger');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nrequire('./styles');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n/**\n * General Data Protection Regulation (GDPR) defines standards on how personal data is collected, processed, transferred and disposed.\n * Affected Countries: All \"GDPR\" countries: Please check config.json for country list.\n * Wiki: https://github.paypal.com/Checkout-R/xoonboardingnodeweb/wiki/GDPR:-Feature,-Integration-documentation\n */\nvar $gdprCookieBannerComponent = exports.$gdprCookieBannerComponent = _squid.$Component.extend('$gdprCookieBanner', {\n tag: 'xo-gdpr-cookie-banner',\n template: _template2['default'],\n actions: {\n // Fetch the GDPR banner, append to DOM if available\n refreshGDPR: function refreshGDPR() {\n var _this = this;\n\n var gdprModel = _gdprCookieBanner.$GDPRCookieBannerModel.instance();\n\n return gdprModel.getBanner().then(function () {\n var banner = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n // Run cleanup once we know the result, to prevent screen flash\n _this.actions.cleanup();\n\n var html = banner.html,\n css = banner.css,\n js = banner.js;\n\n\n if (!html || !css || !js) {\n return;\n }\n\n var div = angular.element(html);\n var style = angular.element(css);\n var script = angular.element(js);\n\n var el = _this.$element.find('#gdpr-cookie-banner-outerwrap');\n\n el.append(style);\n el.append(div);\n el.append(script);\n\n if (!(0, _angular.isFunction)(window.bindGdprEvents)) {\n _logger.$logger.error('gdpr_banner_bindGdprEvents_not_defined');\n return;\n }\n\n // TODO: Remove this class add when cookie banner script is fixed to add this class properly\n angular.element(document.body).addClass('gdprCookieBanner-acceptedAll');\n\n window.bindGdprEvents();\n });\n },\n\n // Clear out the banner container to remove the old elements\n cleanup: function cleanup() {\n var el = this.$element.find('#gdpr-cookie-banner-outerwrap');\n\n el.empty();\n }\n },\n\n lifecycle: {\n populate: function populate() {\n var _this2 = this;\n\n this.actions.refreshGDPR();\n\n // On \"localeChange\" we are re-fetching data.\n this.$on('localeChange', function () {\n _this2.actions.refreshGDPR();\n });\n }\n }\n});\n\nangular.value(\"$gdprCookieBannerComponent\", $gdprCookieBannerComponent);\n_squid.$Component;\n\n_angular.isFunction;\n\n_gdprCookieBanner.$GDPRCookieBannerModel;\n\n_logger.$logger;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-page-components/src/gdprCookieBanner/directive.js\n// module id = ../node_modules/xo-page-components/src/gdprCookieBanner/directive.js\n// module chunks = 0","module.exports = \"\\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-page-components/src/gdprCookieBanner/template.html\n// module id = ../node_modules/xo-page-components/src/gdprCookieBanner/template.html\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$SetHeaderText = undefined;\n\nvar _angular = require('angular');\n\nvar _squid = require('squid');\n\nvar _index = require('xo-device-info/dist/index');\n\nrequire('xo-ui-components/src/escape-hatch/closeFrame/directive');\n\nrequire('xo-form-components/src/language-options/directive');\n\nrequire('../cart/directive');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nrequire('./styles');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nangular.module().directive('xoHeader', function () {\n return {\n template: _template2['default'],\n scope: {\n showCartTotal: '=?',\n renderCartContainer: '=?',\n token: '=?',\n isUnbranded: '=?',\n unbrandedTitle: '=?',\n unbrandedSubTitle: '=?',\n languageSwitch: '=?',\n redirectiframe: '=?',\n redirectLightbox: '=?',\n isVenmoFlow: '=?'\n },\n controller: ['$scope', function ($scope) {\n var _ref = window.xprops || {},\n _ref$experience = _ref.experience,\n experience = _ref$experience === undefined ? { facebook: false } : _ref$experience;\n\n // Callback-integrated merchants should have a breakdown available in their flow\n\n\n $scope.enableCartBreakdown = Boolean(window.xprops && window.xprops.onShippingChange);\n\n $scope.isFacebookBAIntegration = experience.facebook;\n $scope.isMessengerBAIntegration = _squid.$integration.getConfig('IS_MESSENGER_BA_INTEGRATION');\n $scope.isMobile = _index.$DeviceInfo.isMobile() || _index.$DeviceInfo.isTablet();\n $scope.title = (0, _squid.$renderContent)($scope.unbrandedTitle);\n $scope.subTitle = (0, _squid.$renderContent)($scope.unbrandedSubTitle);\n $SetHeaderText.subscribe($scope, function (event, text) {\n $scope.unbrandedTitle = text;\n $scope.title = (0, _squid.$renderContent)($scope.unbrandedTitle);\n });\n }]\n };\n});\n\nvar headerText = '';\nvar $SetHeaderText = exports.$SetHeaderText = {\n setText: function setText(text) {\n headerText = text;\n _angular.$rootScope.$emit('update_header_text', text);\n },\n getText: function getText() {\n return headerText;\n },\n subscribe: function subscribe($scope, callback) {\n var handler = _angular.$rootScope.$on('update_header_text', callback);\n $scope.$on('$destroy', handler);\n }\n};\n\nangular.value(\"$SetHeaderText\", $SetHeaderText);\n_angular.$rootScope;\n\n_squid.$integration;\n\n_squid.$renderContent;\n\n_index.$DeviceInfo;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-page-components/src/header/directive.js\n// module id = ../node_modules/xo-page-components/src/header/directive.js\n// module chunks = 0","module.exports = \"
        \\n
        \\n
        \\n \\n
        \\n {{title}}\\n
        {{ content('base.payPal') }}
        \\n
        Venmo Checkout
        \\n
        \\n \\\"PayPal\\\"\\n \\n \\\"Facebook\\\"\\n
        \\n
        \\n
        \\n \\\"PayPal\\n
        \\n
        \\n \\\"PayPal\\n
        \\n
        \\n\\n \\n\\n \\n\\n
        {{subTitle}}
        \\n \\n
        \\n
        \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-page-components/src/header/template.html\n// module id = ../node_modules/xo-page-components/src/header/template.html\n// module chunks = 0","\n\nvar _angular = require('angular');\n\nvar _squid = require('squid');\n\nvar _logger = require('xo-beaver/dist/logger');\n\nvar _auth = require('xo-models/src/auth');\n\nvar _index = require('xo-models/src/checkout/index');\n\nrequire('xo-title/dist/directive');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nvar _marketingoffer = require('xo-models/src/marketingoffer');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nangular.module().directive('xoMarketingOffers', function () {\n return {\n template: _template2['default'],\n scope: {\n placementCode: '=?',\n titleTxtProperty: '=?',\n subtitleProperty: '=?',\n token: '=?',\n pageName: '=?',\n backgroundImage: '=?',\n xoTitleTag: '@?',\n xoTitleClass: '@?'\n },\n controller: ['$scope', '$element', '$sce', function ($scope, $element, $sce) {\n var morsOfferFlag = $scope.placementCode === '202003' && (0, _squid.$feature)('morsValuePropOffers');\n var populateObj = void 0;\n\n if (morsOfferFlag) {\n populateObj = {\n checkoutCart: _index.$CheckoutCartModel.instance($scope.token),\n checkoutSession: _index.$CheckoutSessionModel.instance($scope.token),\n payee: _index.$CheckoutPayeeModel.instance($scope.token),\n auth: _auth.$AuthModel.instance()\n };\n } else {\n populateObj = {\n checkoutCart: _index.$CheckoutCartModel.instance($scope.token)\n };\n }\n (0, _squid.$populate)($scope, populateObj).then(function () {\n $scope.locale = _squid.$locale;\n $scope.token = _angular.$rootScope.token;\n function setDefaultValues() {\n $scope.ad = {\n Title: (0, _squid.$renderContent)($scope.titleTxtProperty),\n Body: (0, _squid.$renderContent)($scope.subtitleProperty),\n backgroundImage: $scope.backgroundImage\n };\n }\n\n $scope.$watch('ad.backgroundImage', function (imageUrl) {\n if (imageUrl) {\n var url = imageUrl;\n var propImg = angular.element($element[0].querySelector('div.prop-img'));\n var isRetina = window && window.matchMedia && window.matchMedia('(-webkit-min-device-pixel-ratio: 2), ' + '(min--moz-device-pixel-ratio: 2), ' + '(-o-min-device-pixel-ratio: 2/1),' + '(min-device-pixel-ratio: 2),' + '(min-resolution: 192dpi), ' + '(min-resolution: 2dppx)').matches;\n\n if (isRetina && url) {\n var index = url.lastIndexOf('.'); // index at which file extension start\n url = url.substring(0, index) + '_2x' + url.substring(index, url.length);\n propImg.css({\n 'background-image': 'url(' + url + ')',\n 'height': '150px',\n 'margin-top': '0px'\n });\n } else {\n propImg.css({\n 'background-image': 'url(' + url + ')',\n 'height': '150px',\n 'margin-top': '0px'\n });\n }\n }\n });\n\n if ($scope.placementCode === '202002') {\n $scope.pu_type = 'ANONYMOUS';\n $scope.presentation_types = ['CompositeText'];\n $scope.pxpInfo = {\n name: 'xo_xoon_hermes_mors',\n pattern: '(xo_xoon_hermes_mors_)(.*)',\n treatment: 'xo_xoon_hermes_mors_treatment'\n };\n } else if ($scope.placementCode === '202003') {\n $scope.className = 'props';\n $scope.pu_type = 'PERSONAL';\n $scope.presentation_types = ['GenericComposite'];\n $scope.pxpInfo = {\n name: 'xo_mors_hermes_placements_ryi',\n pattern: '(xo_mors_hermes_placements_ryi_)(.*)',\n treatment: 'xo_mors_hermes_placements_ryi_treatment'\n };\n } else {\n setDefaultValues();\n }\n\n // serve ads only if pxp is true, country is US and lang is en\n if (_squid.$locale.country === 'US' && _squid.$locale.lang === 'en' && $scope.placementCode && (0, _squid.$feature)('morsValuePropOffers')) {\n $scope.marketingOfferData = new _marketingoffer.$MarketingOfferModel({\n countryCode: $scope.locale.country,\n page: $scope.pageName,\n puType: $scope.pu_type,\n locale: _squid.$locale.lang + '_' + _squid.$locale.country,\n totalTransactionAmount: {\n 'currency_code': $scope.checkoutCart.get('purchase.amounts.total.currency_code', ''),\n // Round the calculation to eliminate Floating point Rounding Error (69.99 * 100 === 6998.999999999999)\n // http://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html\n 'value': Math.round($scope.checkoutCart.get('purchase.amounts.total.amount', 0) * 100)\n },\n totalShippingAmount: {\n 'currency_code': $scope.checkoutCart.get('purchase.amounts.total.currency_code', ''),\n // Round the calculation to eliminate Floating point Rounding Error (69.99 * 100 === 6998.999999999999)\n // http://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html\n 'value': Math.round($scope.checkoutCart.get('purchase.amounts.shipping.amount', 0) * 100)\n },\n payee: morsOfferFlag ? $scope.payee.merchant.id : '',\n payer: morsOfferFlag ? $scope.checkoutSession.payer.id : '',\n si: morsOfferFlag ? $scope.checkoutSession.id : '',\n visitor_id: morsOfferFlag ? $scope.auth.visitor_id : '',\n targetPlacements: [{\n 'placement_code': $scope.placementCode,\n 'presentation_types': $scope.presentation_types\n }]\n });\n (0, _squid.$pxp)($scope.pxpInfo.name, { 'ctx.COUNTRY': _squid.$locale.country }, $scope.pxpInfo.pattern, false, true).then(function (res) {\n\n _logger.$logger.info('MO treatment: ' + (res ? res.treatment_name : '[no pxp response!]'));\n if (res && res.treatment_name === $scope.pxpInfo.treatment) {\n\n return _marketingoffer.$MarketingOfferModel.instance($scope.token).save({\n silent: true,\n data: $scope.marketingOfferData.serialize(),\n // Ignore all errors from this api, by passing transientError as true\n transientError: true,\n success: function success(result) {\n var ads_arr = result && result.ads || [];\n var adFound = false;\n\n // MORS could serve multiple ads for a given page. Iterate to get the\n // correct one based on the ad placement_id\n ads_arr.forEach(function (ad) {\n var adunit_id = ad.campaign.adunit_id;\n\n if (adunit_id.toString() === $scope.placementCode.toString() && ad.valid) {\n adFound = true;\n $scope.ad = {};\n var content = ad.content.nvp;\n content.forEach(function (obj) {\n $scope.ad[obj.name] = obj.value;\n });\n $scope.ad['impressionUrl'] = ad.tracking.impression_url;\n $scope.ad['clickUrl'] = ad.tracking.click_url;\n }\n });\n\n if (adFound) {\n $scope.ad.Body = $sce.trustAsHtml($scope.ad.Body);\n // $scope.ad.Title does not need to be assigned. for 202001, 202002,\n // and 202003 placement_ids as this will already be assigned.\n\n // notify MORS of successful rendering by firing the impressionurl\n // beacon and by setting the click url to be fired for future\n // conversion.\n // setting the placement_id helps to differentiate between multiple ads\n // displayed on the same page\n\n _logger.$logger.info('MORS_ad_displayed');\n _marketingoffer.$fireMORSBeacon.fireBeacon($scope.ad.impressionUrl);\n\n _angular.$rootScope.$broadcast('MORSDisplayed', {\n clickUrl: $scope.ad.clickUrl,\n placementId: $scope.placementCode\n });\n } else {\n _logger.$logger.info('MORS_ad_not_found');\n setDefaultValues();\n _angular.$rootScope.$broadcast('MORSNotDisplayed');\n }\n },\n\n error: function error(err) {\n setDefaultValues();\n _logger.$logger.error('MORS_api_failure', { error: err });\n }\n });\n } else {\n setDefaultValues();\n _angular.$rootScope.$broadcast('MORSNotDisplayed');\n }\n });\n } else {\n setDefaultValues();\n _angular.$rootScope.$broadcast('MORSNotDisplayed');\n }\n $scope.$on('localeChange', function () {\n setDefaultValues();\n });\n });\n }]\n };\n});\n\n_angular.$rootScope;\n\n_squid.$feature;\n\n_squid.$locale;\n\n_squid.$populate;\n\n_squid.$pxp;\n\n_squid.$renderContent;\n\n_logger.$logger;\n\n_auth.$AuthModel;\n\n_index.$CheckoutCartModel;\n\n_index.$CheckoutPayeeModel;\n\n_index.$CheckoutSessionModel;\n\n_marketingoffer.$MarketingOfferModel;\n\n_marketingoffer.$fireMORSBeacon;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-page-components/src/marketingOffers/directive.js\n// module id = ../node_modules/xo-page-components/src/marketingOffers/directive.js\n// module chunks = 0","module.exports = \"
        \\n
        \\n \\n

        \\n
        \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-page-components/src/marketingOffers/template.html\n// module id = ../node_modules/xo-page-components/src/marketingOffers/template.html\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _angular = require('angular');\n\nvar _squid = require('squid');\n\nvar _index = require('xo-models/src/checkout/index');\n\nvar _index2 = require('xo-models/src/user/index');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _squid.$Component.extend('$xoMerchantHeaderDirective', {\n tag: 'xo-merchant-header',\n template: _template2['default'],\n props: {\n token: {\n type: 'var',\n required: false\n },\n merchant: {\n type: 'var',\n required: false\n },\n disableId: {\n type: 'str',\n required: false\n }\n },\n resolve: {\n models: function models() {\n if (this.props.token) {\n return {\n checkoutAppData: _index.$CheckoutAppDataModel.instance(this.props.token).retrieve()['catch'](_angular.noop)\n };\n }\n }\n },\n lifecycle: {\n populate: function populate() {\n var _ref = this.models || {},\n checkoutAppData = _ref.checkoutAppData;\n\n if (checkoutAppData) {\n // get Merchant display name - can be undefined in which case we have an empty header\n this.merchantDisplayName = checkoutAppData.getMerchantDisplayName();\n\n if (this.props.token && !_index2.$CheckoutInputDataModel.instance(this.props.token).isEbayTxn()) {\n this.merchant = checkoutAppData.merchant;\n }\n }\n }\n }\n});\n\n\n(0, _squid.$registerDirective)('xoMerchantImageResize', function () {\n return {\n restrict: 'A',\n link: function link(scope, element) {\n element.bind('load', function () {\n var MAX_WIDTH = 780;\n var MAX_HEIGHT = 90;\n\n if (this.width > MAX_WIDTH) {\n var ratio = MAX_WIDTH / this.width;\n var height = this.height * ratio;\n\n this.width = MAX_WIDTH;\n this.height = height > MAX_HEIGHT ? MAX_HEIGHT : height;\n }\n });\n }\n };\n});\n\n_angular.noop;\n\n_squid.$Component;\n\n_squid.$registerDirective;\n\n_index.$CheckoutAppDataModel;\n\n_index2.$CheckoutInputDataModel;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-page-components/src/merchant-header/directive.js\n// module id = ../node_modules/xo-page-components/src/merchant-header/directive.js\n// module chunks = 0","module.exports = \"
        \\n
        \\n
        \\n \\n {{ merchantDisplayName || merchant.brand_name }}\\n \\t\\n \\\"{{\\n
        \\n
        \\n
        \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-page-components/src/merchant-header/template.html\n// module id = ../node_modules/xo-page-components/src/merchant-header/template.html\n// module chunks = 0","\n\nvar addValidParam = require('../utils').addValidParam;\n\nfunction returnWPSParams(checkoutCart, checkoutSession, returnToMerchantMethod, is_cart_upload_flow) {\n var params = {};\n var customData = checkoutCart.get('purchase.custom');\n\n if (returnToMerchantMethod === 'POST') {\n // TODO: find out why we get postbackData as undefined\n // UPDATE: couldn't reproduce an issue on the stage for now\n if (checkoutSession.postbackData) {\n params = checkoutSession.postbackData;\n }\n } else {\n var transactionDetail = checkoutSession.transactionDetails;\n\n if (transactionDetail) {\n addValidParam(params, 'tx', transactionDetail.id);\n addValidParam(params, 'st', transactionDetail.state);\n\n if (transactionDetail.amount) {\n addValidParam(params, 'amt', transactionDetail.amount.total);\n addValidParam(params, 'cc', transactionDetail.amount.currency);\n }\n }\n\n // Cart uploads can have more than one item so we don't add any in return URL\n if (!is_cart_upload_flow) {\n var itemDetail = checkoutSession.get('itemsList.0');\n if (itemDetail) {\n addValidParam(params, 'item_name', itemDetail.name);\n addValidParam(params, 'item_number', itemDetail.sku);\n }\n }\n\n addValidParam(params, 'cm', customData);\n }\n return params;\n}\n\n/**\n * this API function is used by hermesnodeweb/public/pages/xo-end and xoonboardingnodeweb/public/pages/xo-end\n * Create params to return back to the merchant after clicking on \"Return to merchant\" on the Done page.\n * buy-now and cart-upload params are slightly different: given cart-upload might have multiple items,\n * please refer https://github.paypal.com/NodeXOShared/xo-hermes-checkout/blob/master/apis/session/postBackDataMapper.js\n * to know more details about post back data\n\n * @param {Object (angular model)} cart model\n * @param {Object (angular model)} session model\n * @param {String} http method, either \"POST\" or \"GET\"\n * @param {String} feature type (WPS only for now)\n * @param {Boolean} flag that indicates if it's a cart upload or not\n * @returns {object} params to pass back to the merchant\n*/\nmodule.exports = {\n $returnParams: function $returnParams(checkoutCart, checkoutSession, returnToMerchantMethod, feature, is_cart_upload_flow) {\n if (feature === 'WPS') {\n return returnWPSParams(checkoutCart, checkoutSession, returnToMerchantMethod, is_cart_upload_flow);\n }\n return {};\n }\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-page-components/src/returnParams/index.js\n// module id = ../node_modules/xo-page-components/src/returnParams/index.js\n// module chunks = 0","\n\nvar _squid = require('squid');\n\nvar _uiRouter = require('uiRouter');\n\nvar _angular = require('angular');\n\nvar _index = require('xo-models/src/checkout/index');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nrequire('./styles');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nangular.module().directive('xoRouteToComplete', function () {\n return {\n template: _template2['default'],\n scope: {\n token: '=?'\n },\n controller: ['$scope', function ($scope) {\n /* hide the footer cancel link */\n angular.element('#defaultCancelLink').hide();\n\n _angular.$rootScope.$on('$stateChangeStart', function (event) {\n event.preventDefault();\n });\n\n /* hide header paypal logo*/\n $('.paypalHeaderWrapper').hide();\n\n $('.footerWrapper').addClass('routecss');\n\n /* urlType is passed from xo-end or from xo-page-components/footer/directive.\n * urltype can be either success(incase of successfull flow completion ) or cancel\n * */\n var urlType = _uiRouter.$stateParams.urlType;\n\n // show the return to merchant url only in case of success.\n if (urlType === 'success') {\n $scope.enableSuccessReturnUrl = true;\n }\n\n if (urlType === 'cancel') {\n // defaulting to False. Once the cancel content is available, turn it to true.\n $scope.enableCancelReturnUrl = true;\n }\n\n $scope.goToMerchant = function () {\n _angular.$window.onunload = _angular.$window.onbeforeunload = function () {};\n _angular.$window.location = _uiRouter.$stateParams.url;\n };\n\n (0, _squid.$populate)($scope, {\n checkoutAppData: _index.$CheckoutAppDataModel.instance($scope.token)\n }).then(function () {\n $scope.merchant = $scope.checkoutAppData.getMerchantDisplayName();\n });\n\n $scope.$on('$destroy', function (event) {\n $('.paypalHeaderWrapper').show();\n $('.footerWrapper').removeClass('routecss');\n });\n }]\n };\n});\n\n_squid.$populate;\n\n_uiRouter.$stateParams;\n\n_angular.$rootScope;\n\n_angular.$window;\n\n_index.$CheckoutAppDataModel;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-page-components/src/route-to-complete/directive.js\n// module id = ../node_modules/xo-page-components/src/route-to-complete/directive.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$RouteToCompleteRoute = undefined;\n\nvar _squid = require('squid');\n\nrequire('./directive');\n\nvar $RouteToCompleteRoute = exports.$RouteToCompleteRoute = _squid.$ComponentRoute.extend('$RouteToCompleteRoute', {\n name: 'routeToComplete',\n directive: 'xo-route-to-complete',\n titleContent: 'genericError.pleaseTryAgain',\n query: ['url', 'urlType'],\n trackingData: {\n fptiState: 'route-to-complete',\n buzname: {\n 'fullpage': {\n 'pagename': '%::route-to-complete',\n 'pagename2': '%::route-to-complete:member:hermes:',\n 'version': 'member:%:'\n }\n }\n },\n children: []\n});\n\nangular.value(\"$RouteToCompleteRoute\", $RouteToCompleteRoute);\n_squid.$ComponentRoute;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-page-components/src/route-to-complete/route.js\n// module id = ../node_modules/xo-page-components/src/route-to-complete/route.js\n// module chunks = 0","module.exports = \"
        \\n
        \\n
        \\n
        {{content('genericMessage.paymentSuccessTitle')}}
        \\n
        {{content('genericMessage.successMessage')}}
        \\n
        \\n
        \\n \\n
        \\n
        \\n
        \\n
        \\n \\n
        \\n
        \\n
        \\n
        \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-page-components/src/route-to-complete/template.html\n// module id = ../node_modules/xo-page-components/src/route-to-complete/template.html\n// module chunks = 0","\n\nvar _subscriptionTerms = require('./subscriptionTerms');\n\nvar _subscriptionTerms2 = _interopRequireDefault(_subscriptionTerms);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nmodule.exports = {\n getFirstAmount: _subscriptionTerms2['default'].getFirstAmount,\n getFormattedFirstAmount: _subscriptionTerms2['default'].getFormattedFirstAmount,\n getFormattedAmount: _subscriptionTerms2['default'].getFormattedAmount,\n getItemOptions: _subscriptionTerms2['default'].getItemOptions,\n getItemName: _subscriptionTerms2['default'].getItemName,\n getCurrencyCode: _subscriptionTerms2['default'].getCurrencyCode,\n getTermsText: _subscriptionTerms2['default'].getTermsText,\n getEffectiveDate: _subscriptionTerms2['default'].getEffectiveDate,\n getNumericValueNonZero: _subscriptionTerms2['default'].getNumericValueNonZero\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-page-components/src/subscription-terms/index.js\n// module id = ../node_modules/xo-page-components/src/subscription-terms/index.js\n// module chunks = 0","\n\nvar _squid = require('squid');\n\nvar BILL_PERIOD_DAY = 'DAY';\nvar BILL_PERIOD_WEEK = 'WEEK';\nvar BILL_PERIOD_MONTH = 'MONTH';\nvar BILL_PERIOD_YEAR = 'YEAR';\nvar TRIAL_SUBSCRIPTION = 'TRIAL';\nvar REGULAR_SUBSCRIPTION = 'REGULAR';\nvar INFINITE_CYCLES = 'INFINITE';\n\n/**\n * Plural time unit\n * True: time unit will be one of: days, weeks, months, years\n * False: time unit will be one of: day, week, month, year\n * @type {boolean}\n */\nvar pluralTimeUnit = false;\n\n/**\n * If a statement has hasPriorTerm=true , then the statement will begin with \"Then\"\n * e.g. Then 2$ for next 4 months\n * otherwise statement will be\n * 2$ for next 4 months\n * @type {boolean}\n */\nvar hasPriorTerm = false;\n\n/**\n * Returns a localized text from given key and props\n * @param key\n * @param props\n */\nfunction localizedContent(key, props) {\n return _squid.Content.get(key, props) && _squid.Content.get(key, props).toString();\n}\n\n/**\n * Computes the singular or plural form for time unit\n * @param billPeriod\n * @returns {string}\n */\nfunction computeTimeUnit(billPeriod) {\n var timeUnit = void 0;\n\n switch (billPeriod) {\n case BILL_PERIOD_DAY:\n timeUnit = pluralTimeUnit ? 'days' : 'day';\n break;\n case BILL_PERIOD_WEEK:\n timeUnit = pluralTimeUnit ? 'weeks' : 'week';\n break;\n case BILL_PERIOD_MONTH:\n timeUnit = pluralTimeUnit ? 'months' : 'month';\n break;\n case BILL_PERIOD_YEAR:\n timeUnit = pluralTimeUnit ? 'years' : 'year';\n break;\n default:\n timeUnit = '';\n }\n\n return localizedContent('wpsSubscription.label.' + timeUnit);\n}\n\n/**\n * Format amount\n * @param amount\n * @param currencyCode\n * @returns {string} A formatted amount string with currency code or free if 0\n */\nfunction computeAmount(amount, currencyCode) {\n if (amount === 0) {\n return localizedContent('wpsSubscription.label.free');\n } else {\n return (0, _squid.formatCurrency)(amount, currencyCode, false);\n }\n}\n\n/**\n * This method computes first trial key\n * @returns {string} Content Key for 1st trial, which must be prepended by wpsSubscription.message\n */\nfunction computeFirstTrialKey() {\n if (pluralTimeUnit) {\n // {amount} for the first {timePeriod} {timeUnit}\n return 'firstTrialPeriod.plural';\n } else {\n // {amount} for the first {timeUnit}\n return 'firstTrialPeriod.singular';\n }\n}\n\n/**\n * This method computes content key for 2nd trial\n * @returns {string} Content Key for 2nd trial, which must be prepended by wpsSubscription.message\n */\nfunction computeSecondTrialKey() {\n if (pluralTimeUnit) {\n // Then {amount} for the next {timePeriod} {timeUnit}\n return 'secondTrialPeriod.plural';\n } else {\n // Then {amount} for the next {timeUnit}\n return 'secondTrialPeriod.singular';\n }\n}\n\n/**\n * Computes and returns content key for regular subscription\n * There can be 12 variations of regular subscription content\n * @param totalCycles\n * @returns {string} Content Key for 2nd trial, which must be prepended by wpsSubscription.message\n */\nfunction computeRegularSubscriptionKey(totalCycles) {\n var key = 'regularSubscriptionPeriod';\n\n if (hasPriorTerm) {\n // Content starts with Then {amount} for ......\n key += '.withPriorTerms';\n } else {\n // Content does NOT starts with Then\n key += '.noPriorTerms';\n }\n\n if (pluralTimeUnit) {\n // Content has: {amount} for each 2 days/weeks/months/years\n key += '.plural';\n } else {\n // Content has: {amount} for each day/week/month/year\n key += '.singular';\n }\n\n switch (+totalCycles) {\n case 0:\n case 1:\n // Text will look like $20.00 USD for the next 2 months\n // Content does NOT end with: for 3 installments\n key += '.nonRecurring';\n break;\n case Infinity:\n // Content ends with: for each 2 months OR for each month\n // Content will look like $30.00 USD for each week\n key += '.recurringInfinite';\n break;\n default:\n // Content ends with: for 3 installments\n // Content will look like $100.00 USD for each 2 months, for 3 installments\n key += '.recurring';\n }\n return key;\n}\n\n/**\n * Prepares and returns an individual term text string\n * @param subscriptionTerms\n * @param index\n * @param currencyCode\n * @returns {string}\n */\nfunction prepareIndividualTermText(subscriptionTerms, index, currencyCode) {\n var amount = +subscriptionTerms[index].amount,\n billPeriod = subscriptionTerms[index].billPeriod,\n periodType = subscriptionTerms[index].periodType,\n billFrequency = +subscriptionTerms[index].billFrequency,\n totalCycles = +subscriptionTerms[index].totalCycles;\n var contentKey = void 0;\n hasPriorTerm = index > 0;\n pluralTimeUnit = billFrequency > 1;\n\n if (periodType === TRIAL_SUBSCRIPTION) {\n if (index === 0) {\n // First Trial\n contentKey = computeFirstTrialKey();\n } else if (index === 1) {\n // Second Trial\n contentKey = computeSecondTrialKey();\n }\n } else if (periodType === REGULAR_SUBSCRIPTION) {\n contentKey = computeRegularSubscriptionKey(totalCycles);\n }\n contentKey = 'wpsSubscription.message.' + contentKey;\n var templatePlaceholderData = {\n amount: computeAmount(amount, currencyCode),\n timePeriod: billFrequency,\n timeUnit: computeTimeUnit(billPeriod),\n installmentCount: totalCycles\n };\n\n return localizedContent(contentKey, templatePlaceholderData);\n}\n\nfunction mapBaResponse(baResponseData) {\n var mappedSubscriptionDetails = {};\n var plan = baResponseData && baResponseData.plan;\n var allTerms = plan && plan.payment_definitions;\n var mappedTerms = [];\n var firstTrialAmount = null;\n var regularAmount = void 0;\n mappedSubscriptionDetails.currencyCode = plan && plan.currency_code;\n\n if (allTerms) {\n allTerms.forEach(function (eachTerm) {\n var totalCycles = eachTerm.duration === INFINITE_CYCLES ? Infinity : eachTerm.cycles;\n var eachMappedTerm = {\n amount: eachTerm.amount && eachTerm.amount.value / 100,\n billPeriod: eachTerm.frequency,\n periodType: eachTerm.type,\n billFrequency: eachTerm.frequency_interval,\n totalCycles: totalCycles\n };\n\n if (!mappedSubscriptionDetails.currencyCode) {\n // V1 Subscriptions: Pick currency code from any of the amounts.\n mappedSubscriptionDetails.currencyCode = eachTerm.amount && eachTerm.amount.currency_code;\n }\n\n if (eachTerm.type === TRIAL_SUBSCRIPTION && eachTerm.index === '1') {\n firstTrialAmount = eachMappedTerm.amount;\n } else if (eachTerm.type === REGULAR_SUBSCRIPTION) {\n regularAmount = eachMappedTerm.amount;\n }\n mappedTerms.push(eachMappedTerm);\n });\n\n // firstTrialAmount can be zero for free trial, null for no trial\n // and valid value if there is trial amount\n mappedSubscriptionDetails.firstAmount = firstTrialAmount !== null ? firstTrialAmount : regularAmount;\n mappedSubscriptionDetails.subscriptionTerms = mappedTerms;\n }\n\n return mappedSubscriptionDetails;\n}\n\n/**\n * Prepare and return a subscription terms\n * @param baResponseData\n * @returns {Object} Containing Subscription Terms Text\n */\nfunction getTermsText(baResponseData) {\n var subscriptionDetails = mapBaResponse(baResponseData);\n var subscriptionTerms = subscriptionDetails.subscriptionTerms;\n var currencyCode = subscriptionDetails.currencyCode;\n var termTextList = [];\n\n for (var i = 0, len = subscriptionTerms.length; i < len; i++) {\n termTextList.push(prepareIndividualTermText(subscriptionTerms, i, currencyCode));\n }\n return termTextList;\n}\n\n/**\n * Returns a un formatted first amount from ba response\n */\nfunction getFirstAmount(baResponseData) {\n var subscriptionDetails = mapBaResponse(baResponseData);\n\n return subscriptionDetails.firstAmount;\n}\n\n/**\n * Returns the currency code\n */\nfunction getCurrencyCode(baResponseData) {\n var plan = baResponseData && baResponseData.plan;\n\n return plan && plan.currency_code;\n}\n\n/**\n * Returns a formatted first amount from ba response data\n */\nfunction getFormattedFirstAmount(baResponseData) {\n var amount = getFirstAmount(baResponseData);\n var currencyCode = getCurrencyCode(baResponseData);\n\n return (0, _squid.formatCurrency)(amount, currencyCode, false);\n}\n\n/**\n * Retrieve item details\n */\nfunction getItemOptions(baResponseData) {\n var itemDetails = baResponseData && baResponseData.items && baResponseData.items[0];\n\n return itemDetails.options;\n}\n\n/**\n * Retrieve item name\n */\nfunction getItemName(baResponseData) {\n if (!baResponseData) {\n return;\n }\n var _baResponseData$items = baResponseData.items;\n _baResponseData$items = _baResponseData$items === undefined ? [] : _baResponseData$items;\n var _baResponseData$items2 = _baResponseData$items[0];\n _baResponseData$items2 = _baResponseData$items2 === undefined ? {} : _baResponseData$items2;\n var name = _baResponseData$items2.name;\n\n return name;\n}\n\nfunction getEffectiveDate(baResponseData) {\n return baResponseData && baResponseData.effective_date;\n}\n\nfunction getFormattedAmount(amount, currencyCode) {\n return (0, _squid.formatCurrency)(amount / 100, currencyCode, false);\n}\n\nfunction getNumericValueNonZero(obj, path) {\n var data = parseInt(_squid.$util.getProperty(obj, path), 10);\n return !isNaN(data) && data > 0 && data;\n}\n\nmodule.exports = {\n getFirstAmount: getFirstAmount,\n getFormattedFirstAmount: getFormattedFirstAmount,\n getFormattedAmount: getFormattedAmount,\n getItemOptions: getItemOptions,\n getItemName: getItemName,\n getCurrencyCode: getCurrencyCode,\n getTermsText: getTermsText,\n getEffectiveDate: getEffectiveDate,\n getNumericValueNonZero: getNumericValueNonZero\n};\n\n_squid.formatCurrency;\n\n_squid.Content;\n\n_squid.$util;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-page-components/src/subscription-terms/subscriptionTerms.js\n// module id = ../node_modules/xo-page-components/src/subscription-terms/subscriptionTerms.js\n// module chunks = 0","\n\nvar _fbMessenger = require('../constants/fbMessenger');\n\nvar _fbMessenger2 = _interopRequireDefault(_fbMessenger);\n\nvar _squid = require('squid');\n\nvar _index = require('xo-device-info/dist/index');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nmodule.exports = {\n /**\n * add non empty key, value to the object\n * @param {Object} object where to add new key, value\n * @param {String} key\n * @param {Any type} value, can not be empty\n * @returns {void}\n */\n addValidParam: function addValidParam(obj, key, val) {\n if (!obj) {\n return;\n }\n if (typeof key === 'string' && key && val !== undefined && val !== null) {\n obj[key] = val;\n }\n },\n\n // Get PXP context for Messenger feature\n getMessengerPXPContext: function getMessengerPXPContext() {\n var isMobile = _index.$DeviceInfo.isMobile() || _index.$DeviceInfo.isTablet();\n var overrideMobileUserFlag = _squid.$util.param(_fbMessenger2['default'].OVERRIDE_FBPP_MOBILE_FLAG);\n var channelVal = isMobile ? _fbMessenger2['default'].MOBILE_CHANNEL : _fbMessenger2['default'].WEB_CHANNEL;\n var pxpContext = {\n 'ctx.COUNTRY': _squid.$locale.country,\n 'ctx.CHANNEL': overrideMobileUserFlag ? _fbMessenger2['default'].WEB_CHANNEL : channelVal,\n 'ctx.LANGUAGE': _squid.$locale.lang + '_' + _squid.$locale.country\n };\n\n return pxpContext;\n },\n\n isDolphinEligibleOnWpsDone: function isDolphinEligibleOnWpsDone(stateName) {\n return (/checkout\\.done/.test(stateName) && !!_squid.$util.param('ulToastWpsDone')\n );\n }\n}; /* eslint-disable angular/typecheck-string */\n\n\n_squid.$util;\n\n_squid.$locale;\n\n_index.$DeviceInfo;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-page-components/src/utils/index.js\n// module id = ../node_modules/xo-page-components/src/utils/index.js\n// module chunks = 0","\n\ndefine(['squid/index', 'text!./template.html'], function (squid, template) {\n squid.module('xo-value-props.directive', ['squid']).directive('xoValueProps', function () {\n return {\n template: template,\n restrict: 'E',\n scope: {\n type: '@?',\n title: '@?',\n text: '@?',\n textContent: '@?',\n imageUrl: '@?'\n },\n link: function link(scope, element, attrs) {\n if (angular.isString(attrs.imageUrl)) {\n // Only do this when image-url is defined so that we do not affect default behavior. These image-url\n // are configured through pxp tool for factor based experiments, hence they should all should adhere\n // to standard size i.e. 150X150 pixels.\n attrs.$observe('imageUrl', function (imageUrl) {\n var url = imageUrl;\n var propImg = angular.element(element[0].querySelector('div.prop-img'));\n var isRetina = window && window.matchMedia && window.matchMedia('(-webkit-min-device-pixel-ratio: 2), ' + '(min--moz-device-pixel-ratio: 2), ' + '(-o-min-device-pixel-ratio: 2/1),' + '(min-device-pixel-ratio: 2),' + '(min-resolution: 192dpi), ' + '(min-resolution: 2dppx)').matches;\n\n if (isRetina) {\n var index = url.lastIndexOf('.'); // index at which file extension start\n url = url.substring(0, index) + '_2x' + url.substring(index, url.length);\n propImg.css({\n 'background-image': 'url(' + url + ')',\n 'height': '150px',\n 'background-size': '150px 150px',\n 'margin-top': '0px'\n });\n } else {\n propImg.css({\n 'background-image': 'url(' + url + ')',\n 'height': '150px',\n 'margin-top': '0px'\n });\n }\n });\n }\n }\n };\n });\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-page-components/src/value-props/directive.js\n// module id = ../node_modules/xo-page-components/src/value-props/directive.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.formatReturnContent = formatReturnContent;\nvar MAX_MERCHANT_NAME_LENGTH = exports.MAX_MERCHANT_NAME_LENGTH = 15;\n\nfunction formatReturnContent($renderContent, merchantName) {\n if (merchantName && merchantName.length < MAX_MERCHANT_NAME_LENGTH) {\n return $renderContent('common.returnToMerchant', { merchantName: merchantName });\n }\n\n return $renderContent('common.returnToDefaultMerchant');\n}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-return-to-merchant/dist/formatReturnContent.js\n// module id = ../node_modules/xo-return-to-merchant/dist/formatReturnContent.js\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _util = require('./util');\n\nObject.defineProperty(exports, '$ReturnToMerchant', {\n enumerable: true,\n get: function get() {\n return _util.$ReturnToMerchant;\n }\n});\n\nvar _formatReturnContent = require('./formatReturnContent');\n\nObject.defineProperty(exports, 'formatReturnContent', {\n enumerable: true,\n get: function get() {\n return _formatReturnContent.formatReturnContent;\n }\n});\nObject.defineProperty(exports, 'MAX_MERCHANT_NAME_LENGTH', {\n enumerable: true,\n get: function get() {\n return _formatReturnContent.MAX_MERCHANT_NAME_LENGTH;\n }\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-return-to-merchant/dist/index.js\n// module id = ../node_modules/xo-return-to-merchant/dist/index.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$ReturnToMerchant = undefined;\nexports.goTo = goTo;\nexports.postToMerchant = postToMerchant;\nexports.postTo = postTo;\n\nvar _angular = require('angular');\n\nvar _angular2 = _interopRequireDefault(_angular);\n\nvar _index = require('xo-device-info/dist/index');\n\nvar _logger = require('xo-beaver/dist/logger');\n\nvar _uiRouter = require('uiRouter');\n\nvar _squid = require('squid');\n\nvar _index2 = require('xo-models/src/checkout/index');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nfunction goTo(url, forceRedirect) {\n if (!url) {\n return;\n }\n\n _logger.$logger.info(url.indexOf('PayerID') > -1 ? 'return_to_merchant' : 'cancel_to_merchant', {\n url: url\n });\n\n // if V4 in-context integration, we'll terminate and call the close handler.\n if (window.xchild) {\n _logger.$logger.done();\n _angular.$rootScope.$emit('loading');\n\n var paymentToken = _angular.$rootScope.token;\n var cart = _index2.$CheckoutCartModel.instance(paymentToken);\n var appData = _index2.$CheckoutAppDataModel.instance(paymentToken);\n var orderID = paymentToken;\n var intent = cart.payment_action;\n var billingToken = cart.billing && cart.billing.ba_token;\n var paymentID = appData.payment_id;\n var cancelUrl = url;\n\n return window.xprops.onCancel({\n paymentToken: paymentToken,\n billingToken: billingToken,\n orderID: orderID,\n paymentID: paymentID,\n intent: intent,\n cancelUrl: cancelUrl\n });\n }\n\n var isHTTPUrl = Boolean(url.indexOf('http') === 0 || url.indexOf('www') === 0);\n var showPaymentSuccess = Boolean(_index.$DeviceInfo.isDevice() && !isHTTPUrl);\n\n if (showPaymentSuccess) {\n _logger.$logger.info('redirect', {\n url: url\n });\n _angular.$window.onunload = _angular.$window.onbeforeunload = function () {// eslint-disable no-empty-function\n };\n\n // wait until state change is done and then redirect\n // for some reason, in case of webview (invoice flow) and code split\n // when user is redirecting to the return url - dynamic chunk fails to load\n // which triggers reload of the previous page\n return _uiRouter.$state.go('checkout.genericMessage', {\n code: 'PAYMENT_SUCCESS',\n returnUrl: url\n })['catch'](function (err) {\n _logger.$logger.info('app_redirect_to_merchant_generic_message_error', {\n error: err && err.message\n });\n })['finally'](function () {\n _angular.$window.location = url;\n });\n }\n\n if (forceRedirect) {\n _squid.$util.redirect(url);\n } else {\n var isVZeroIframe = Boolean(_angular.$rootScope.partnerIntegration) && _squid.$util.isIFrame();\n\n if (isVZeroIframe) {\n _squid.$util.redirect(url, { redirectImmediateParent: true });\n }\n\n // If we are not in minibrowser, do a hard redirect\n else if (_angular.$rootScope.partnerIntegration || !_angular.$rootScope.miniBrowser && !_squid.$util.isIFrame()) {\n _squid.$util.redirect(url);\n } else {\n\n // Construct a message to send to the parent\n var result = this.postToMerchant({\n operation: 'return_to_merchant',\n returnUrl: url,\n updateParent: true\n });\n\n // Otherwise we have no choice but to return to the merchant\n if (!result) {\n _squid.$util.redirect(url);\n }\n }\n }\n\n var userStatus = function userStatus() {\n _logger.$logger.info('redirected_user_still_on_page_second_checkpoint');\n };\n\n (0, _angular.$timeout)(function () {\n _logger.$logger.info('redirected_user_still_on_page_first_checkpoint');\n (0, _angular.$timeout)(userStatus, 10000);\n }, 10000);\n}\n\nfunction postToMerchant(msg) {\n\n try {\n msg = _angular2['default'].toJson(msg, 0);\n\n // If we are not in IE, attempt to send a postMessage\n if (_angular.$window.opener && (_angular.$window.navigator.userAgent.match(/edge/i) || _angular.$window.opener.postMessage && !_angular.$window.navigator.userAgent.match(/msie|trident/i))) {\n _angular.$window.opener.postMessage(msg, '*');\n _logger.$logger.info('minibrowser_postmessage');\n return true;\n }\n // Otherwise, attempt to send a message through the iframe bridge\n var bridge = _angular.$window.opener && _angular.$window.opener.frames && _angular.$window.opener.frames.length && _angular.$window.opener.frames.PayPalBridge;\n\n if (bridge && bridge.returnToParent) {\n bridge.returnToParent(msg);\n _logger.$logger.info('minibrowser_bridgemessage');\n return true;\n }\n\n _logger.$logger.warn('minibrowser_nopostback');\n } catch (err) {\n _logger.$logger.error('minibrowser_postback_error', {\n error: err.stack || err.toString()\n });\n }\n\n return false;\n}\n\nfunction postTo(url, msg) {\n var form = document.createElement('form');\n\n form.method = 'POST';\n form.action = url;\n form.className = 'hide';\n\n for (var key in msg) {\n var input = document.createElement('input');\n\n input.name = key;\n input.value = msg[key];\n form.appendChild(input);\n }\n\n _angular.$window.document.body.appendChild(form);\n form.submit();\n _logger.$logger.info('web_postmessage');\n return true;\n}\n\nvar $ReturnToMerchant = exports.$ReturnToMerchant = {\n goTo: goTo,\n postToMerchant: postToMerchant,\n postTo: postTo\n};\n\n_angular2['default'].value(\"goTo\", goTo);\n_angular2['default'].value(\"postToMerchant\", postToMerchant);\n_angular2['default'].value(\"postTo\", postTo);\n_angular2['default'].value(\"$ReturnToMerchant\", $ReturnToMerchant);\n_index.$DeviceInfo;\n\n_logger.$logger;\n\n_uiRouter.$state;\n\n_squid.$util;\n\n_index2.$CheckoutCartModel;\n\n_index2.$CheckoutAppDataModel;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-return-to-merchant/dist/util.js\n// module id = ../node_modules/xo-return-to-merchant/dist/util.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$ShippingChangeFactory = $ShippingChangeFactory;\n\nvar _util = require('./util');\n\nvar _squid = require('squid');\n\nfunction $ShippingChangeFactory(_ref) {\n var checkoutAppData = _ref.checkoutAppData,\n checkoutCart = _ref.checkoutCart;\n\n return {\n getCartTotal: function getCartTotal() {\n return (0, _util.getCartTotal)(checkoutCart);\n },\n getPayload: function getPayload(shippingAddress) {\n var paymentID = checkoutAppData.get('payment_id');\n var orderID = checkoutAppData.get('id');\n\n return (0, _util.getPayload)({ orderID: orderID, paymentID: paymentID, shippingAddress: shippingAddress, checkoutCart: checkoutCart });\n },\n updateCart: function updateCart() {\n return (0, _util.updateCart)(checkoutCart);\n },\n callOnShippingChange: function callOnShippingChange(payload) {\n var allowChangeShipping = checkoutAppData.get('flags.allow_change_shipping', false);\n\n if (!allowChangeShipping) {\n return (0, _squid.$promise)({\n cartHasChanged: false,\n rejected: false\n });\n }\n\n return (0, _util.callOnShippingChange)({ payload: payload, checkoutCart: checkoutCart });\n }\n };\n}\n\nangular.value(\"$ShippingChangeFactory\", $ShippingChangeFactory);\n_util.getCartTotal;\n\n_util.getPayload;\n\n_util.updateCart;\n\n_util.callOnShippingChange;\n\n_squid.$promise;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-shipping-change/src/factory.js\n// module id = ../node_modules/xo-shipping-change/src/factory.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.payloadOutputMapper = exports.amountOutputMapper = exports.breakdownOutputMapper = undefined;\n\nvar _squid = require('squid');\n\nvar breakdownOutputMapper = exports.breakdownOutputMapper = function breakdownOutputMapper() {\n var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n subtotal = _ref.subtotal,\n item_total = _ref.item_total,\n shipping = _ref.shipping,\n handling = _ref.handling,\n tax = _ref.tax,\n tax_total = _ref.tax_total,\n insurance = _ref.insurance,\n shipping_discount = _ref.shipping_discount,\n discount = _ref.discount;\n\n var breakdown = {\n item_total: subtotal || item_total,\n tax_total: tax || tax_total,\n handling: handling,\n shipping: shipping,\n insurance: insurance,\n discount: discount,\n shipping_discount: shipping_discount\n };\n\n return Object.keys(breakdown).reduce(function (newBreakdown, item) {\n var _$util$extend;\n\n if (!breakdown[item]) {\n return newBreakdown;\n }\n\n return _squid.$util.extend(newBreakdown, (_$util$extend = {}, _$util$extend[item] = amountOutputMapper(breakdown[item]), _$util$extend));\n }, {});\n};\n\nvar amountOutputMapper = exports.amountOutputMapper = function amountOutputMapper() {\n var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n amount = _ref2.amount,\n value = _ref2.value,\n currency = _ref2.currency,\n currency_code = _ref2.currency_code,\n breakdown = _ref2.breakdown;\n\n var fullAmount = {\n value: amount || value,\n currency_code: currency || currency_code\n };\n\n return breakdown ? _squid.$util.extend(fullAmount, {\n breakdown: breakdownOutputMapper(breakdown)\n }) : fullAmount;\n};\n\nvar shippingAddressMapper = function shippingAddressMapper() {\n var _ref3 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n city = _ref3.city,\n state = _ref3.state,\n country_code = _ref3.country_code,\n postal_code = _ref3.postal_code;\n\n return {\n city: city,\n state: state,\n country_code: country_code,\n postal_code: postal_code\n };\n};\n\nvar shippingOptionMapper = function shippingOptionMapper() {\n var _ref4 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n id = _ref4.id,\n label = _ref4.label,\n type = _ref4.type,\n amount = _ref4.amount,\n selected = _ref4.selected;\n\n if (!id) {\n return undefined;\n }\n return {\n id: id,\n type: type,\n label: label,\n amount: amountOutputMapper(amount),\n selected: selected\n };\n};\n\nvar payloadOutputMapper = exports.payloadOutputMapper = function payloadOutputMapper(_ref5) {\n var orderID = _ref5.orderID,\n paymentID = _ref5.paymentID,\n shipping_address = _ref5.shipping_address,\n amount = _ref5.amount,\n selected_shipping_option = _ref5.selected_shipping_option;\n return {\n orderID: orderID,\n paymentID: paymentID,\n paymentToken: orderID,\n selected_shipping_option: shippingOptionMapper(selected_shipping_option),\n shipping_address: shippingAddressMapper(shipping_address),\n amount: amountOutputMapper(amount)\n };\n};\n\n_squid.$util;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-shipping-change/src/outputMapper.js\n// module id = ../node_modules/xo-shipping-change/src/outputMapper.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.getCartTotal = getCartTotal;\nexports.getPayload = getPayload;\nexports.updateCart = updateCart;\nexports.callOnShippingChange = callOnShippingChange;\n\nvar _xoShippingOptions = require('xo-shipping-options');\n\nvar _outputMapper = require('./outputMapper.js');\n\nfunction getCartTotal(cart) {\n var breakdown = Object.keys(cart.get('purchase.amounts')).reduce(function (acc, value) {\n if (value !== 'total') {\n acc[value] = (0, _outputMapper.amountOutputMapper)(cart.get('purchase.amounts.' + value));\n }\n\n return acc;\n }, {});\n\n return {\n currency_code: cart.get('purchase.amounts.total.currency_code'),\n value: cart.get('purchase.amounts.total.amount'),\n breakdown: breakdown\n };\n}\n\nfunction getPayload() {\n var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n orderID = _ref.orderID,\n paymentID = _ref.paymentID,\n _ref$shippingAddress = _ref.shippingAddress,\n shippingAddress = _ref$shippingAddress === undefined ? {} : _ref$shippingAddress,\n checkoutCart = _ref.checkoutCart;\n\n var city = shippingAddress.city,\n state = shippingAddress.state,\n country = shippingAddress.country,\n postal_code = shippingAddress.postal_code;\n\n var amount = checkoutCart ? getCartTotal(checkoutCart) : {};\n\n var shippingChangePayload = {\n orderID: orderID,\n paymentID: paymentID,\n shipping_address: {\n city: city,\n state: state,\n country_code: country,\n postal_code: postal_code\n },\n selected_shipping_option: undefined,\n amount: amount\n };\n\n return (0, _xoShippingOptions.getSelectedShippingOption)(orderID).then(function (option) {\n shippingChangePayload.selected_shipping_option = option;\n }).then(function () {\n return (0, _outputMapper.payloadOutputMapper)(shippingChangePayload);\n });\n}\n\nfunction updateCart(cart) {\n cart.invalidate();\n cart.api.cache = false;\n\n return cart.reload().then(function () {\n return getCartTotal(cart);\n });\n}\n\nfunction callOnShippingChange() {\n var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n payload = _ref2.payload,\n checkoutCart = _ref2.checkoutCart;\n\n var rejected = false;\n var shippingOptionsChanged = false;\n var shippingOptions = void 0;\n\n var shippingChangeActions = {\n reject: function reject() {\n rejected = true;\n }\n };\n\n var cartTotal = getCartTotal(checkoutCart);\n\n var changedShippingOptions = function changedShippingOptions() {\n var oldOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var newOptions = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n\n if (oldOptions.length !== newOptions.length) {\n return true;\n }\n\n return Boolean(newOptions.filter(function (key) {\n return JSON.stringify(newOptions[key]) !== JSON.stringify(oldOptions[key]);\n }).length);\n };\n\n return (0, _xoShippingOptions.getShippingOptions)(payload.orderID).then(function (options) {\n return shippingOptions = options;\n }).then(function () {\n return window.xprops.onShippingChange((0, _outputMapper.payloadOutputMapper)(payload), shippingChangeActions);\n }).then(function () {\n return (0, _xoShippingOptions.getShippingOptions)(payload.orderID);\n }).then(function (options) {\n shippingOptionsChanged = changedShippingOptions(shippingOptions, options);\n }).then(function () {\n return updateCart(checkoutCart);\n }).then(function (total) {\n var newCartTotal = getCartTotal(checkoutCart);\n var cartHasChanged = cartTotal.currency_code !== newCartTotal.currency_code || cartTotal.value !== newCartTotal.value;\n\n return {\n cartHasChanged: cartHasChanged || shippingOptionsChanged,\n rejected: rejected\n };\n });\n}\n\n_xoShippingOptions.getSelectedShippingOption;\n\n_xoShippingOptions.getShippingOptions;\n\n_outputMapper.amountOutputMapper;\n\n_outputMapper.payloadOutputMapper;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-shipping-change/src/util.js\n// module id = ../node_modules/xo-shipping-change/src/util.js\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _TYPE_CONTENT_MAPPING, _TAB_CONTENT_MAPPING;\n\nvar _angular = require('angular');\n\nvar _uiRouter = require('uiRouter');\n\nvar _squid = require('squid');\n\nvar _index = require('xo-models/src/checkout/index');\n\nrequire('xo-address-components/src/address-display/directive');\n\nrequire('xo-ui-components/src/accessibility/directive');\n\nrequire('xo-ui-components/src/tabs/directive');\n\nrequire('xo-ui-components/src/select-simple/directive');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nrequire('./styles');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar SHIPPING_TYPE = {\n SHIPPING: 'SHIPPING',\n PICKUP: 'PICKUP'\n};\n\nvar TYPE_CONTENT_MAPPING = (_TYPE_CONTENT_MAPPING = {}, _TYPE_CONTENT_MAPPING[SHIPPING_TYPE.SHIPPING] = 'shipping.shipHome', _TYPE_CONTENT_MAPPING[SHIPPING_TYPE.PICKUP] = 'shipping.shipStore', _TYPE_CONTENT_MAPPING);\n\nvar TAB_CONTENT_MAPPING = (_TAB_CONTENT_MAPPING = {}, _TAB_CONTENT_MAPPING[SHIPPING_TYPE.SHIPPING] = 'shipping.shipItTab', _TAB_CONTENT_MAPPING[SHIPPING_TYPE.PICKUP] = 'shipping.pickItUp', _TAB_CONTENT_MAPPING);\n\nexports['default'] = _squid.$Component.extend('$xoShippingOptionsComponent', {\n tag: 'xo-shipping-options',\n template: _template2['default'],\n props: {\n token: {\n type: 'var',\n required: false\n },\n methods: {\n type: 'var',\n required: true\n },\n selectedMethod: {\n type: 'var',\n required: false\n },\n onSelect: {\n type: 'var',\n required: false\n },\n onClickEdit: {\n type: 'var',\n required: false\n }\n },\n resolve: {\n models: function models() {\n return {\n checkoutAppData: _index.$CheckoutAppDataModel.instance(this.props.token).retrieve()['catch'](_angular.noop),\n checkoutSession: _index.$CheckoutSessionModel.instance(this.props.token).retrieve()['catch'](_angular.noop)\n };\n }\n },\n\n actions: {\n // Takes the buyer to the change-shipping page\n gotoShipping: function gotoShipping() {\n if (!this.canChangeShipping) {\n return;\n }\n\n if (typeof this.onClickEdit === 'function') {\n return this.onClickEdit();\n }\n\n _uiRouter.$state.go('checkout.review.sidebar.shipping');\n },\n setTab: function setTab(tab) {\n this.actions.setStateTo(tab.id);\n },\n getTabs: function getTabs() {\n if (!this.methods || !this.methods.length) {\n return [];\n }\n\n var hasShipping = Boolean(this.methods.filter(function (method) {\n return method.type === SHIPPING_TYPE.SHIPPING;\n }).length);\n var hasPickup = Boolean(this.methods.filter(function (method) {\n return method.type === SHIPPING_TYPE.PICKUP;\n }).length);\n\n var shippingTab = {\n id: SHIPPING_TYPE.SHIPPING,\n label: (0, _squid.$renderContent)(TAB_CONTENT_MAPPING[SHIPPING_TYPE.SHIPPING]).toString()\n };\n\n var pickupTab = {\n id: SHIPPING_TYPE.PICKUP,\n label: (0, _squid.$renderContent)(TAB_CONTENT_MAPPING[SHIPPING_TYPE.PICKUP]).toString()\n };\n\n return [hasShipping && shippingTab, hasPickup && pickupTab].filter(function (tab) {\n return tab;\n });\n },\n\n\n // Switches the active tab (pickup or shipping)\n // Auto-selects method if it's the only item, or auto-selects if it was pre-selected\n // Will not auto-select if second param is false\n setStateTo: function setStateTo(state) {\n var _this = this;\n\n var autoSelect = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n\n\n this.state = state;\n\n var getSelectedTab = function getSelectedTab() {\n return _this.tabs.filter(function (tab) {\n return tab.id === _this.state;\n }).pop();\n };\n\n this.selectedTab = getSelectedTab();\n\n if (!this.methods || !this.methods.length || !this.selectedTab || !autoSelect) {\n return;\n }\n\n var hasMultiShippingMethods = this.shippingMethods && this.shippingMethods.length > 1;\n var hasMultiPickupMethods = this.pickupMethods && this.pickupMethods.length > 1;\n\n if (state === SHIPPING_TYPE.SHIPPING) {\n if (this.selectedShippingMethod) {\n return this.actions.selectShippingMethod(this.selectedShippingMethod);\n }\n\n if (!hasMultiShippingMethods) {\n return this.actions.selectShippingMethod(this.shippingMethods[0], Boolean(this.pickupMethods.length));\n }\n }\n\n if (state === SHIPPING_TYPE.PICKUP) {\n if (this.selectedPickupMethod) {\n return this.actions.selectShippingMethod(this.selectedPickupMethod);\n }\n\n if (!hasMultiPickupMethods) {\n return this.actions.selectShippingMethod(this.pickupMethods[0], Boolean(this.shippingMethods.length));\n }\n }\n },\n\n\n // Set the local selected pickup/shipping method, then call the\n // callback passed via props with the method\n selectShippingMethod: function selectShippingMethod(selected) {\n var _this2 = this;\n\n var userSelected = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n var callCallback = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n\n\n var getShippingMethodByID = function getShippingMethodByID(id) {\n if (!id) {\n return false;\n }\n\n return _this2.methods.filter(function (method) {\n return method.id === id;\n }).pop();\n };\n\n var shippingMethod = getShippingMethodByID(selected && selected.id);\n\n if (shippingMethod === undefined) {\n this.selectedPickupMethod = false;\n this.selectedShippingMethod = false;\n\n return this.onSelect(undefined, userSelected);\n }\n\n if (!this.state !== selected.type) {\n this.actions.setStateTo(SHIPPING_TYPE[selected.type], false);\n }\n\n if (this.state === SHIPPING_TYPE.SHIPPING) {\n this.selectedShippingMethod = this.formatShippingMethod(shippingMethod);\n } else if (this.state === SHIPPING_TYPE.PICKUP) {\n this.selectedPickupMethod = this.formatShippingMethod(shippingMethod);\n } else {\n this.state = SHIPPING_TYPE.SHIPPING;\n }\n\n if (callCallback) {\n this.onSelect((0, _angular.extend)({}, shippingMethod), userSelected);\n }\n },\n\n\n // Helper to map shipping methods passed by the props and\n // select only the ones that fit the 'type'.\n mapShippingMethodsByType: function mapShippingMethodsByType() {\n var _this3 = this;\n\n var shippingMethods = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var type = arguments[1];\n\n return shippingMethods.filter(function (shippingMethod) {\n return SHIPPING_TYPE[shippingMethod.type] === type;\n }).map(function (shippingMethod) {\n return _this3.formatShippingMethod(shippingMethod);\n });\n }\n },\n lifecycle: {\n enter: function enter() {\n var _this4 = this;\n\n this.formatShippingMethod = function (method) {\n if (!method || (0, _angular.equals)(method, {})) {\n return false;\n }\n\n var getFormattedLabel = function getFormattedLabel() {\n if (!method.amount || parseFloat(method.amount.value) <= 0) {\n return method.label;\n }\n\n var amountFormatted = (0, _squid.formatCurrency)(method.amount.value, method.amount.currency_code || method.amount.currency);\n\n return (0, _squid.$renderContent)('shipping.customLabelAndAmount', {\n amount: amountFormatted,\n label: method.label\n }).toString();\n };\n\n return (0, _angular.extend)({}, method, {\n label: getFormattedLabel()\n });\n };\n\n // Dropdown active flag\n this.isPickupDropdownActive = false;\n this.isShippingDropdownActive = false;\n\n this.isPickup = function () {\n return _this4.state === SHIPPING_TYPE.PICKUP;\n };\n this.isShipping = function () {\n return _this4.state === SHIPPING_TYPE.SHIPPING;\n };\n\n this.pickupLabel = (0, _squid.$renderContent)(TYPE_CONTENT_MAPPING[SHIPPING_TYPE.PICKUP]).toString();\n this.shippingLabel = (0, _squid.$renderContent)(TYPE_CONTENT_MAPPING[SHIPPING_TYPE.SHIPPING]).toString();\n\n this.selectedPickupMethod = false; // eslint-disable-line no-unused-expressions\n this.selectedShippingMethod = false; // eslint-disable-line no-unused-expressions\n\n this.formatShippingMethods = function () {\n _this4.pickupMethods = _this4.actions.mapShippingMethodsByType(_this4.methods, SHIPPING_TYPE.PICKUP);\n _this4.shippingMethods = _this4.actions.mapShippingMethodsByType(_this4.methods, SHIPPING_TYPE.SHIPPING);\n\n if (_this4.selectedMethod) {\n _this4.actions.selectShippingMethod(_this4.selectedMethod, false, false);\n } else if (_this4.methods && _this4.methods.length) {\n _this4.actions.setStateTo((_this4.shippingMethods.length ? _this4.shippingMethods : _this4.pickupMethods)[0].type);\n } else {\n _this4.state = SHIPPING_TYPE.SHIPPING;\n }\n };\n\n this.$watch('methods', function () {\n _this4.formatShippingMethods();\n });\n\n this.tabs = this.actions.getTabs();\n\n // We'll render dual tabs ONLY when there are TWO Shipping types sent by the merchant\n this.renderTabs = Boolean(this.tabs.length > 1);\n\n // when clicking outside the dropdown\n this.$on('clickBody', function () {\n _this4.isPickupDropdownActive = false;\n _this4.isShippingDropdownActive = false;\n });\n },\n populate: function populate() {\n var allowChangeShipping = this.models.checkoutAppData.get('flags.allow_change_shipping');\n\n // Only allow buyer to change shipping address if allowed\n this.canChangeShipping = typeof this.onClickEdit === 'function' || allowChangeShipping;\n this.showShippingAddress = Boolean(!this.models.checkoutAppData.flags.hide_shipping_address && this.models.checkoutSession && this.models.checkoutSession.shipping);\n }\n }\n});\n\n\n_angular.noop;\n\n_angular.extend;\n\n_angular.equals;\n\n_uiRouter.$state;\n\n_squid.$Component;\n\n_squid.$renderContent;\n\n_squid.formatCurrency;\n\n_index.$CheckoutAppDataModel;\n\n_index.$CheckoutSessionModel;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-shipping-options/src/component/directive.js\n// module id = ../node_modules/xo-shipping-options/src/component/directive.js\n// module chunks = 0","module.exports = \"
        \\n \\n\\n \\n
        \\n\\n \\n \\n {{models.checkoutSession.shipping.name}}\\n \\n \\n {{ content('common.change') }}\\n \\n \\n
        \\n\\n
        \\n

        \\n

        \\n\\n 1\\\"\\n default-text=\\\"content('shipping.selectShippingMethod').toString()\\\"\\n label=\\\"shippingLabel\\\"\\n options=\\\"shippingMethods\\\"\\n selected-option=\\\"selectedShippingMethod\\\"\\n on-select=\\\"actions.selectShippingMethod\\\"\\n >\\n\\n
        \\n

        \\n

        \\n
        \\n\\n \\n
        \\n\\n
        \\n

        \\n

        \\n\\n 1\\\"\\n default-text=\\\"content('shipping.selectPickUpLocation').toString()\\\"\\n label=\\\"pickupLabel\\\"\\n options=\\\"pickupMethods\\\"\\n selected-option=\\\"selectedPickupMethod\\\"\\n on-select=\\\"actions.selectShippingMethod\\\">\\n \\n\\n
        \\n

        \\n

        \\n
        \\n
        \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-shipping-options/src/component/template.html\n// module id = ../node_modules/xo-shipping-options/src/component/template.html\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _directive = require('./component/directive.js');\n\nObject.defineProperty(exports, '$xoShippingOptions', {\n enumerable: true,\n get: function get() {\n return _directive.$xoShippingOptions;\n }\n});\n\nvar _lib = require('./lib');\n\nObject.keys(_lib).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _lib[key];\n }\n });\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-shipping-options/src/index.js\n// module id = ../node_modules/xo-shipping-options/src/index.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.selectShippingOption = exports.getSelectedShippingOption = exports.getShippingOptions = undefined;\n\nvar _squid = require('squid');\n\nvar _logger = require('xo-beaver/dist/logger');\n\nvar _cart = require('./cart.js');\n\nvar _checkout = require('xo-models/src/checkout');\n\n/*\n Shipping Option API\n\n For now, this is strictly client-side and comes from the\n incontext flow.\n*/\n\nvar getShippingOptions = exports.getShippingOptions = function getShippingOptions(token) {\n var checkoutCart = _checkout.$CheckoutCartModel.instance(token);\n\n return checkoutCart.retrieve().then(function () {\n var shippingOptions = checkoutCart.get('purchaseUnits.0.item_list.shipping_options');\n\n if (shippingOptions && shippingOptions.length) {\n _logger.$logger.info('shipping_options_from_cart', shippingOptions);\n } else {\n _logger.$logger.info('no_shipping_options_from_cart');\n return;\n }\n\n return shippingOptions.map(function (options) {\n return {\n id: options.id,\n type: options.type,\n amount: options.amount,\n label: options.label,\n selected: options.selected\n };\n });\n });\n};\n\nvar getSelectedShippingOption = exports.getSelectedShippingOption = function getSelectedShippingOption(token) {\n return getShippingOptions(token).then(function (shippingOptions) {\n if (!shippingOptions || !shippingOptions.length) {\n return undefined;\n }\n\n var selectedShippingOption = shippingOptions.filter(function (option) {\n return option.selected;\n }).pop();\n\n if (selectedShippingOption) {\n _logger.$logger.info('selected_shipping_option_from_cart', selectedShippingOption);\n return selectedShippingOption;\n } else {\n _logger.$logger.info('no_shipping_option_from_cart');\n }\n });\n};\n\nvar selectShippingOption = exports.selectShippingOption = function selectShippingOption(token, option) {\n var checkoutCart = _checkout.$CheckoutCartModel.instance(token);\n\n return checkoutCart.retrieve().then(function () {\n return getShippingOptions(token);\n }).then(function (shippingOptions) {\n\n var newShippingOptions = shippingOptions.map(function (newOption) {\n return _squid.$util.extend(newOption, {\n selected: option.id === newOption.id\n });\n });\n\n var shippingOptionsPatch = {\n field: 'shippingOptions',\n value: newShippingOptions\n };\n\n var cartAmountPatch = {\n field: 'purchaseAmount',\n value: (0, _cart.retotalCart)(token, option.amount.value)\n };\n\n return _squid.$promise.resolver(function (resolve, reject) {\n checkoutCart.action('patchCartData', {\n data: {\n id: token,\n patchEntities: [shippingOptionsPatch, cartAmountPatch]\n },\n success: function success(result) {\n return resolve(result);\n }\n });\n });\n });\n};\n\n_squid.$promise;\n\n_squid.$util;\n\n_logger.$logger;\n\n_cart.retotalCart;\n\n_checkout.$CheckoutCartModel;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-shipping-options/src/lib/api.js\n// module id = ../node_modules/xo-shipping-options/src/lib/api.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.retotalCart = undefined;\n\nvar _squid = require('squid');\n\nvar _angular = require('angular');\n\nvar _checkout = require('xo-models/src/checkout');\n\n// Re-totals the cart with new shipping costs.\n//\n// @param token: PAY token/Cart ID\n// @param shippingAmount: String float amount (Ex: '15.00')\n// @returns amount: Amount object with new total and breakdown\n\nvar retotalCart = exports.retotalCart = function retotalCart(token, shippingAmount) {\n var checkoutCart = _checkout.$CheckoutCartModel.instance(token);\n var currencyCode = checkoutCart.grossTotalAmount.currency;\n var currencyDigits = _squid.$locale.metadata && _squid.$locale.metadata.currency && _squid.$locale.metadata.currency.digits;\n var decimalDigits = isNaN(currencyDigits && currencyDigits[currencyCode]) ? 2 : currencyDigits && currencyDigits[currencyCode];\n\n // Takes an integer/string and formats as a float\n var formatAmount = function formatAmount(amount) {\n return parseFloat(amount).toFixed(decimalDigits);\n };\n\n // Sums all of the arguments\n var sumAmounts = function sumAmounts() {\n for (var _len = arguments.length, amounts = Array(_len), _key = 0; _key < _len; _key++) {\n amounts[_key] = arguments[_key];\n }\n\n return amounts.reduce(function (total, amount) {\n return formatAmount(parseFloat(total) + parseFloat(amount));\n }, '0');\n };\n\n // Sums up all of the amount details (except the total)\n var sumDetails = function sumDetails(details) {\n var blacklist = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n\n return Object.keys(details).reduce(function (value, detail) {\n var detailValue = details[detail];\n if (blacklist.indexOf(detail) !== -1) {\n return value;\n }\n switch (detail) {\n case 'shipping_discount':\n case 'discount':\n return sumAmounts(formatAmount(parseFloat(detailValue) * -1), value);\n default:\n return sumAmounts(details[detail], value);\n }\n }, '0');\n };\n\n // Simplifies the checkout cart amounts with just a simple key-value { detail: cost } format\n var oldTotal = checkoutCart.get('purchase.amounts.total.amount', formatAmount(0));\n var oldDetails = Object.keys(checkoutCart.get('purchase.amounts', {})).reduce(function (details, name) {\n var _extend;\n\n var amount = checkoutCart.get('purchase.amounts.' + name + '.amount', formatAmount(0));\n return name === 'total' ? details : (0, _angular.extend)({}, details, (_extend = {}, _extend[name] = amount, _extend));\n }, {});\n\n // Create a new amount details object with new shipping cost, and subtotal (if it was left out)\n var newDetails = (0, _angular.extend)({}, oldDetails, {\n shipping: formatAmount(shippingAmount),\n subtotal: formatAmount(parseFloat(oldTotal) - parseFloat(sumDetails(oldDetails, ['subtotal', 'total'])))\n });\n\n // Sum up all of the new amount details for the new total\n var newTotal = sumDetails(newDetails, ['total']);\n\n return {\n currency: currencyCode,\n total: newTotal,\n details: newDetails\n };\n};\n\n_squid.$locale;\n\n_angular.extend;\n\n_checkout.$CheckoutCartModel;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-shipping-options/src/lib/cart.js\n// module id = ../node_modules/xo-shipping-options/src/lib/cart.js\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _api = require('./api.js');\n\nObject.keys(_api).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _api[key];\n }\n });\n});\n\nvar _cart = require('./cart.js');\n\nObject.keys(_cart).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _cart[key];\n }\n });\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-shipping-options/src/lib/index.js\n// module id = ../node_modules/xo-shipping-options/src/lib/index.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.thirdPartyExperience = exports.venmoExperience = exports.thirdPartyInfo = undefined;\nexports.redirect = redirect;\nexports.getUserAgent = getUserAgent;\n\nvar _squid = require('squid');\n\nvar _logger = require('xo-beaver/dist/logger');\n\nvar _auth = require('xo-models/src/auth');\n\nvar _index = require('xo-device-info/dist/index');\n\nvar _angular = require('angular');\n\nvar _checkout = require('xo-models/src/checkout');\n\nvar _sessionStorage = require('./sessionStorage');\n\nvar _sessionStorage2 = _interopRequireDefault(_sessionStorage);\n\nvar _venmoModels = require('../venmo-models');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n// TODO: Check how the cookie should be read/set (through meta? if read on server side)\nvar PWV_COOKIE = 'pwv';\nvar BA = 'BILLING_AGREEMENT';\n\nvar cancelLogoutEventListener = _angular.$rootScope.$on('logout', function (event, args) {\n\n // disable venmo models when ready\n var token = _angular.$rootScope.token;\n\n _venmoModels.$VenmoUserModel.instance(token).invalidate();\n _venmoModels.$VenmoOnboardModel.instance(token).invalidate();\n thirdPartyExperience.resetThirdPartyExperience();\n});\n\n_angular.$rootScope.$on('$destroy', cancelLogoutEventListener);\n\nvar readCookie = function readCookie(name) {\n var nameEQ = name + '=';\n var ca = document.cookie.split(';');\n\n for (var i = 0, len = ca.length; i < len; i++) {\n var c = ca[i];\n\n while (c.charAt(0) === ' ') {\n c = c.substring(1, c.length);\n }\n if (c.indexOf(nameEQ) === 0) {\n return c.substring(nameEQ.length, c.length);\n }\n }\n return null;\n};\n\nvar thirdPartyInfo = exports.thirdPartyInfo = {\n /**\n * @name isThirdPartyEligible\n * @returns {Promise}\n */\n isThirdPartyEligible: function isThirdPartyEligible() {\n var _this = this;\n\n return this.isBaiduEligible().then(function (baiduEligibility) {\n return _this.isVenmoEligible() || baiduEligibility;\n });\n },\n\n\n /**\n * @name isBaiduEligible\n * @returns {Promise}\n */\n isBaiduEligible: function isBaiduEligible() {\n return _checkout.$FlowEligibilityModel.instance(_angular.$rootScope.token, {\n params: {\n geolocation: _squid.$meta.geolocation\n }\n }).retrieve().then(function (eligibility) {\n _logger.$logger.info('baidu_eligibility', eligibility);\n return eligibility.baiduWallet;\n });\n },\n\n\n /**\n * @name isVenmoEligible\n * @description Handler to call to determine if user can use Venmo\n * @returns {Boolean}\n */\n isVenmoEligible: function isVenmoEligible() {\n var appData = _checkout.$CheckoutAppDataModel.instance(_angular.$rootScope.token);\n var cart = _checkout.$CheckoutCartModel.instance(_angular.$rootScope.token);\n var merchantCountry = appData.get('merchant.merchant_country');\n var isProcessorDeclined = appData.get('flags.processor_declined');\n var isInvoice = appData.get('flags.is_invoice_flow');\n var isBillingAgreement = cart.isBilling();\n var isMobile = _index.$DeviceInfo.isDevice();\n var isVenmoCookie = this.isVenmoCookiePresent();\n var isSFAuthenticationSession = _squid.$util.param('bt_int_type') === '2';\n var isMSPTransaction = cart.isMultiSellerPurchase();\n var eligibilityParams = {\n isMobile: isMobile,\n isVenmoCookie: isVenmoCookie,\n isNotInvoice: !isInvoice,\n isNotProcessorDeclined: !isProcessorDeclined,\n isNotBillingAgreement: !isBillingAgreement,\n isUSMerchant: merchantCountry === 'US',\n isNotSFAuthenticationSession: !isSFAuthenticationSession,\n isNotMSPTransaction: !isMSPTransaction\n };\n\n var venmoEligibility = Object.keys(eligibilityParams).filter(function (param) {\n return !eligibilityParams[param];\n });\n venmoEligibility = venmoEligibility && venmoEligibility.length > 0 ? 'ineligible:' + venmoEligibility.join() : 'eligible';\n\n _logger.$logger.info('venmo_eligibility', venmoEligibility);\n\n _logger.$logger.info('checkout_fpti', {\n 'is_venmo_cookie': isVenmoCookie ? '1' : '0',\n 'eligibility_reason': venmoEligibility\n });\n\n return Boolean(venmoEligibility === 'eligible');\n },\n\n\n /**\n * @name isVenmoCookiePresent\n * @returns {Boolean}\n */\n isVenmoCookiePresent: function isVenmoCookiePresent() {\n var cookieValue = readCookie(PWV_COOKIE);\n\n return Boolean(cookieValue);\n },\n\n\n /**\n * @name buildVenmoURL\n * @description Build the venmo URL scheme\n * @returns {String}\n */\n buildVenmoURL: function buildVenmoURL() {\n // SCHEME needs to change according to old or new experience\n // const linkType = venmoUrlSchemeType();\n var SCHEME = _squid.$config.urls && _squid.$config.urls.venmoAppSwitchURL['universal'];\n var VENMO_ROUTE = '#/checkout/venmo';\n var LOGIN_ROUTE = '#/checkout/login?venmoError=true';\n var cartModel = _checkout.$CheckoutCartModel.instance(_angular.$rootScope.token);\n\n var token = void 0;\n var total = void 0;\n var currency = void 0;\n var intent = void 0;\n\n // Send BA token when it's BA without Purchase\n if (cartModel.get('billing.ba_token') && cartModel.get('purchase.amounts.total.amount', '0') === '0') {\n token = cartModel.get('billing.ba_token');\n } else {\n // Send EC token when it's BA without purchase.\n token = _angular.$rootScope.token;\n }\n\n // For BA: setting billing agreement as payment_action explicitly, not relying on payment action returned in cart\n intent = cartModel.billing ? BA : cartModel.payment_action;\n\n // total cannot be undefined, outdated venmo app clients will crash otherwise\n total = cartModel.get('purchase.amounts.total.amount', '0');\n currency = cartModel.get('purchase.amounts.total.currency_code', 'none');\n\n var params = (0, _angular.$httpParamSerializer)({\n 'x-success': _angular.$location.absUrl().replace(/#.*$/, VENMO_ROUTE),\n 'x-failure': _angular.$location.absUrl().replace(/#.*$/, LOGIN_ROUTE),\n 'ua': _angular.$window.navigator.userAgent,\n 'merchant_id': _checkout.$CheckoutPayeeModel.instance(_angular.$rootScope.token).getId(),\n 'token': token,\n total: total,\n currency: currency, // can be undefined for BA w/o purchase\n intent: intent\n });\n\n return SCHEME + '?' + params;\n }\n};\n\nvar venmoExperienceKey = 'VENMO_EXPERIENCE';\n\n// Get whether a token is marked as Venmo experience.\nvar venmoExperience = exports.venmoExperience = {\n set: function set(token) {\n var sessionStorage = (0, _sessionStorage2['default'])();\n\n sessionStorage.setItem(venmoExperienceKey, token);\n },\n get: function get(token) {\n var auth = _auth.$AuthModel.instance();\n var sessionStorage = (0, _sessionStorage2['default'])();\n\n if (auth.logged_in && auth.guest && // Check if Venmo guest account logged in\n sessionStorage.getItem(venmoExperienceKey) === token) {\n return true;\n } else {\n this.set(null);\n return false;\n }\n }\n};\n\nvar allowedThirdPartyExperiences = {\n VENMO: 'VENMO_EXPERIENCE',\n BAIDU: 'BAIDU_EXPERIENCE'\n};\n\nvar THIRD_PARTY_NAMESPSACE = 'THIRD_PARTY_EXPERIENCE';\n\nvar thirdPartyExperience = exports.thirdPartyExperience = {\n setAsVenmoExperience: function setAsVenmoExperience(token) {\n var _JSON$stringify;\n\n var sessionStorage = (0, _sessionStorage2['default'])();\n var payload = JSON.stringify((_JSON$stringify = {}, _JSON$stringify[token] = allowedThirdPartyExperiences['VENMO'], _JSON$stringify));\n\n sessionStorage.setItem(THIRD_PARTY_NAMESPSACE, payload);\n },\n setAsBaiduExperience: function setAsBaiduExperience(token) {\n var _JSON$stringify2;\n\n var sessionStorage = (0, _sessionStorage2['default'])();\n var payload = JSON.stringify((_JSON$stringify2 = {}, _JSON$stringify2[token] = allowedThirdPartyExperiences['BAIDU'], _JSON$stringify2));\n\n sessionStorage.setItem(THIRD_PARTY_NAMESPSACE, payload);\n },\n isThirdPartyExperience: function isThirdPartyExperience(token) {\n var availableExperiences = [];\n\n for (var key in allowedThirdPartyExperiences) {\n availableExperiences.push(allowedThirdPartyExperiences[key]);\n }\n\n var currentExperience = this.getExperience(token);\n\n return Boolean(availableExperiences.indexOf(currentExperience) > -1);\n },\n getExperience: function getExperience(token) {\n var auth = _auth.$AuthModel.instance();\n var sessionStorage = (0, _sessionStorage2['default'])();\n\n // if logged in, and guest, we return the experience if any\n if (auth.logged_in && auth.guest && sessionStorage.getItem(THIRD_PARTY_NAMESPSACE)) {\n var payload = JSON.parse(sessionStorage.getItem(THIRD_PARTY_NAMESPSACE) || '');\n\n return payload && payload[token] || 'MEMBER_EXPERIENCE';\n } else if (auth.logged_in && auth.tenant === 'VENMO') {\n return allowedThirdPartyExperiences['VENMO'];\n } else {\n // If not logged in, we reset the third party experience\n this.resetThirdPartyExperience();\n return 'MEMBER_EXPERIENCE';\n }\n },\n resetThirdPartyExperience: function resetThirdPartyExperience() {\n var sessionStorage = (0, _sessionStorage2['default'])();\n\n sessionStorage.removeItem(THIRD_PARTY_NAMESPSACE);\n }\n};\n\n// used to trigger app switches and flush the logs before doing so\nfunction redirect(url) {\n return _logger.$logger.flush().then(function () {\n _angular.$window.location.replace(url);\n });\n}\n\n// fetching browser's user agent.\nfunction getUserAgent() {\n return _angular.$window.navigator.userAgent;\n}\n\n_squid.$config;\n\n_squid.$util;\n\n_squid.$meta;\n\n_logger.$logger;\n\n_auth.$AuthModel;\n\n_index.$DeviceInfo;\n\n_angular.$rootScope;\n\n_angular.$window;\n\n_angular.$location;\n\n_angular.$httpParamSerializer;\n\n_checkout.$CheckoutPayeeModel;\n\n_checkout.$CheckoutCartModel;\n\n_checkout.$CheckoutAppDataModel;\n\n_checkout.$FlowEligibilityModel;\n\n_venmoModels.$VenmoOnboardModel;\n\n_venmoModels.$VenmoUserModel;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-third-party-components/src/thirdParty-info/index.js\n// module id = ../node_modules/xo-third-party-components/src/thirdParty-info/index.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports['default'] = getSessionStorage;\nvar store = {};\n\n// Polyfill for sessionStorage if not available. Simple variable store\n\nfunction getSessionStorage() {\n try {\n\n window['sessionStorage'].setItem('__feature_test__', '0');\n window['sessionStorage'].removeItem('__feature_test__');\n return window.sessionStorage;\n } catch (err) {\n return {\n getItem: function getItem(key) {\n if (arguments < 1) {\n throw new Error('1 argument required');\n }\n return store[key];\n },\n setItem: function setItem(key, val) {\n if (arguments < 2) {\n throw new Error('2 arguments required');\n }\n store[key] = val;\n },\n removeItem: function removeItem(key) {\n\n delete store[key];\n }\n };\n }\n}\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-third-party-components/src/thirdParty-info/sessionStorage.js\n// module id = ../node_modules/xo-third-party-components/src/thirdParty-info/sessionStorage.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$VenmoTransactionEligibility = exports.$VenmoSupplementaryInfo = exports.$VenmoUserModel = exports.$VenmoOnboardModel = undefined;\n\nvar _squid = require('squid');\n\nvar $VenmoOnboardModel = exports.$VenmoOnboardModel = _squid.$Model.extend('$VenmoOnboardModel', {\n api: new _squid.$Api({\n uri: '/api/venmo/onboard'\n })\n});\n\nvar $VenmoUserModel = exports.$VenmoUserModel = _squid.$Model.extend('$VenmoUserModel', {\n api: new _squid.$Api({\n uri: '/api/venmo/user'\n })\n});\n\nvar $VenmoSupplementaryInfo = exports.$VenmoSupplementaryInfo = _squid.$Model.extend('$VenmoSupplementaryInfo', {\n api: new _squid.$Api({\n uri: '/api/venmo/address'\n }),\n\n serialize: function serialize() {\n\n return {\n user: {\n first_name: this.user && this.user.first_name && this.user.first_name.trim(),\n last_name: this.user && this.user.last_name && this.user.last_name.trim()\n },\n billing: {\n line1: this.billing && this.billing.line1 && this.billing.line1.trim(),\n line2: this.billing && this.billing.line2 && this.billing.line2.trim(),\n city: this.billing && this.billing.city && this.billing.city.trim(),\n state: this.billing && this.billing.state && this.billing.state.trim(),\n postal_code: this.billing && this.billing.postal_code && this.billing.postal_code.trim(),\n normalization_status: this.billing && this.billing.normalization_status && this.billing.normalization_status.trim(),\n country: this.billing && this.billing.country && this.billing.country.trim()\n },\n shipping: {\n line1: this.shipping && this.shipping.line1 && this.shipping.line1.trim(),\n line2: this.shipping && this.shipping.line2 && this.shipping.line2.trim(),\n city: this.shipping && this.shipping.city && this.shipping.city.trim(),\n state: this.shipping && this.shipping.state && this.shipping.state.trim(),\n postal_code: this.shipping && this.shipping.postal_code && this.shipping.postal_code.trim(),\n normalization_status: this.shipping && this.shipping.normalization_status && this.shipping.normalization_status.trim(),\n country: this.shipping && this.shipping.country && this.shipping.country.trim()\n },\n shipToBilling: this.shipToBilling\n };\n }\n});\n\nvar $VenmoTransactionEligibility = exports.$VenmoTransactionEligibility = _squid.$Model.extend('$VenmoTransactionEligibility', {\n api: new _squid.$Api({\n uri: '/api/venmo/:id/eligibility'\n })\n});\n\nangular.value(\"$VenmoOnboardModel\", $VenmoOnboardModel);\nangular.value(\"$VenmoUserModel\", $VenmoUserModel);\nangular.value(\"$VenmoSupplementaryInfo\", $VenmoSupplementaryInfo);\nangular.value(\"$VenmoTransactionEligibility\", $VenmoTransactionEligibility);\n_squid.$Model;\n\n_squid.$Api;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-third-party-components/src/venmo-models/index.js\n// module id = ../node_modules/xo-third-party-components/src/venmo-models/index.js\n// module chunks = 0","\n\nvar _angular = require('angular');\n\nvar _angular2 = _interopRequireDefault(_angular);\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n_angular2['default'].module().directive('xoTitle', [function () {\n return {\n template: _template2['default'],\n restrict: 'E',\n scope: {\n titleTxt: '@?',\n className: '@?',\n tagName: '@?'\n },\n link: function link($scope, $element) {\n if ($scope.tagName) {\n var newEl = document.createElement($scope.tagName || 'h1');\n\n newEl.className = $scope.className || 'alpha';\n newEl.textContent = '{{ titleTxt }}';\n (0, _angular.$compile)(newEl)($scope);\n $element.empty().append(newEl);\n }\n }\n };\n}]);\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-title/dist/directive.js\n// module id = ../node_modules/xo-title/dist/directive.js\n// module chunks = 0","module.exports = \"

        \\n {{ titleTxt }}\\n

        \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-title/dist/template.html\n// module id = ../node_modules/xo-title/dist/template.html\n// module chunks = 0","\n\nvar _angular = require('angular');\n\nvar _angular2 = _interopRequireDefault(_angular);\n\nvar _squid = require('squid');\n\nvar _model = require('./model');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n(function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n})(window.angular);\n\n_angular2['default'].module().factory('$FptiBuilder', function () {\n /**\n * Build the front-end FPTI event from three data sources\n * 1. the per-product configuration\n * 2. the buzname defined per-route\n * 3. the additional attributes that only available at a specific checkpoint\n *\n */\n\n return _squid.$Class.extend('FptiBuilder', {\n\n resolvePageQualifier: function resolvePageQualifier(trackingData) {\n // The pages can populated pageQualifier to override the default one\n this.pageQualifier = trackingData && trackingData.pageQualifier ? trackingData.pageQualifier\n // because 'fullpage' has been widely embedded into routes\n // we had better to keep it as a place holder\n : 'fullpage'; // update later if it's in-context\n },\n\n build: function build() {\n\n if (!this.trackingData && !this.error) {\n // do nothing if neither page nor error tracking\n return this;\n }\n\n this.resolvePageQualifier(this.trackingData);\n\n this._dataObj = new _model.$FptiDataModel().decorate('base', this.baseData).decorate('buzname', this.trackingData, this.pageQualifier, undefined, this.productOverride).decorate('templateName', this.trackingData, this.pageQualifier).decorate('pageGoal', this.trackingData.pageGoal).decorate('ecToken', this.trackingData.token).decorate('correlationId', (0, _squid.$getLatestCorrelationID)()).decorate('uuid', _model.$CalDataModel.getUUID()).decorate('fieldError', this.error).decorate('pageError', this.error).decorate('pageStartTime', new Date().getTime()).decorate('pxptrackingdata', this.trackingData.pxpData).decorate('transition_time', this.transition_time).decorate('cust', this.cust).decorate('dc', this.dc).decorate('az', this.az).decorate('comp', this.comp).getDataObject(this.isInContext);\n\n return this;\n },\n\n toString: function toString() {\n var dataAry = [];\n\n _angular2['default'].forEach(this._dataObj, function (v, k) {\n dataAry.push(k + '=' + v);\n });\n\n return dataAry.join('&');\n }\n });\n});\n\n_squid.$getLatestCorrelationID;\n\n_squid.$Class;\n\n_model.$FptiDataModel;\n\n_model.$CalDataModel;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-tracking/dist/builder.js\n// module id = ../node_modules/xo-tracking/dist/builder.js\n// module chunks = 0","\n\nvar _angular = require('angular');\n\nvar _angular2 = _interopRequireDefault(_angular);\n\nvar _squid = require('squid');\n\nvar _index = require('xo-models/src/checkout/index');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n(function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n})(window.angular);\n\n_angular2['default'].module().factory('$ButtonTrackingService', function () {\n var _beaconUrl = 'https://www.paypalobjects.com/en_US/i/scr/btn_tracking_pixel.gif?teal=null&Id=null&ru=null';\n var _beaconParams = ['fltk', 'calc', 'page', 'xe', 'xt'];\n var _alreadyFired = false;\n\n function _strToElements(str) {\n var elements = {};\n\n if (str && str.length) {\n str.split('&').forEach(function (param) {\n var nvp = param.split('=');\n\n elements[nvp[0]] = nvp[1];\n });\n }\n return elements;\n }\n\n function _fireButtonTrackingBeacon(elements) {\n var url = _beaconUrl;\n var xoData = {};\n\n function buildParam(param, value) {\n var p = '&' + param + '=' + (value ? value : 'null');\n\n return p;\n }\n\n function getGUIID(ts) {\n return _strToElements(ts).vr;\n }\n\n function addToDocument(uri) {\n var img = document.createElement('img');\n\n img.setAttribute('src', uri);\n document.body.appendChild(img);\n }\n\n // Get some params from FPTI data.\n _beaconParams.forEach(function (param) {\n url += buildParam(param, elements[param]);\n });\n\n // Build the rest of the params.\n url += buildParam('fpti', getGUIID(_squid.$cookies && _squid.$cookies.ts));\n url += buildParam('WWW_AKA_MVT_BUTTONS', _squid.$cookies && _squid.$cookies.WWW_AKA_MVT_BUTTONS);\n url += buildParam('WWW_AKA_MVT_ID', _squid.$cookies && _squid.$cookies.WWW_AKA_MVT_ID);\n url += buildParam('ip', _squid.$meta && _squid.$meta.ipaddress);\n\n if (_angular.$rootScope.token) {\n (0, _squid.$populate)(xoData, {\n payee: _index.$CheckoutPayeeModel.instance(_angular.$rootScope.token),\n appData: _index.$CheckoutAppDataModel.instance(_angular.$rootScope.token)\n }).then(function () {\n url += buildParam('mrid', xoData.payee && xoData.payee.getId());\n url += buildParam('calf', xoData.appData && xoData.appData.flow_id);\n addToDocument(url);\n });\n } else {\n url += buildParam('mrid', null);\n url += buildParam('calf', null);\n addToDocument(url);\n }\n }\n\n return {\n fireBeacon: function fireBeacon(fptiData) {\n if (!_alreadyFired && fptiData) {\n var elements = _strToElements(fptiData);\n\n // Fire the beacon if this is a page render.\n if (elements.page) {\n _alreadyFired = true;\n return _fireButtonTrackingBeacon(elements);\n }\n }\n },\n resetAlreadyFired: function resetAlreadyFired() {\n _alreadyFired = false;\n }\n };\n});\n\n_angular.$rootScope;\n\n_squid.$meta;\n\n_squid.$cookies;\n\n_squid.$populate;\n\n_index.$CheckoutAppDataModel;\n\n_index.$CheckoutPayeeModel;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-tracking/dist/button.js\n// module id = ../node_modules/xo-tracking/dist/button.js\n// module chunks = 0","\n\nvar _uiRouter = require('uiRouter');\n\nvar _angular = require('angular');\n\nvar _angular2 = _interopRequireDefault(_angular);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n_angular2['default'].module('tracking.directive', ['ui.router']).directive('trackSubmit', function () {\n return {\n restrict: 'AE',\n link: function link($scope, element, attr) {\n element.on('mousedown', function (event) {\n var transition = attr && attr.trackSubmit;\n var trackSubmit = {\n currentRoute: _uiRouter.$state.current,\n transition: transition,\n errors: []\n };\n\n _angular2['default'].forEach($('input.ng-invalid, select.ng-invalid'), function (el) {\n var elem = $(el);\n var elementId = elem.attr('id');\n var elementName = elem.attr('name');\n var errorKey = elem.attr('data-error-key');\n var errorText = elem.has('required') ? 'required' : 'no error key';\n var fieldName = elementId ? elementId : elementName;\n\n if (!fieldName) {\n var elementModel = elem.attr('ng-model');\n\n fieldName = elementModel ? elementModel : 'unnamed-field';\n }\n\n trackSubmit.errors.push({\n fieldName: fieldName,\n errorMessage: errorKey ? errorKey : errorText\n });\n });\n\n _angular.$rootScope.$broadcast('trackSubmit', trackSubmit);\n });\n }\n };\n}).directive('trackLink', function () {\n return {\n restrict: 'AE',\n link: function link($scope, element, attr) {\n element.on('mousedown', function (event) {\n var state = attr && attr.trackLink;\n\n if (state) {\n var trackLink = {\n currentRoute: _uiRouter.$state.current,\n transition: state\n };\n\n _angular.$rootScope.$broadcast('trackLink', trackLink);\n }\n });\n }\n };\n}).directive('trackClick', function () {\n return {\n restrict: 'AE',\n link: function link($scope, element, attr) {\n element.on('click', function (event) {\n var state = attr && attr.trackClick;\n\n if (state) {\n var trackClick = {\n currentRoute: _uiRouter.$state.current,\n transition: state\n };\n _angular.$rootScope.$broadcast('trackClick', trackClick);\n }\n });\n }\n };\n}).directive('trackInput', function () {\n /*\n * Track an input tag with track-input attribute\n * you can use the value of track-input attribute as\n * a tracking attr Eg.: track-input=\"xo_guest_yes\"\n */\n return {\n restrict: 'AE',\n link: function link($scope, element, attr) {\n element.on('click', function (event) {\n var state = void 0;\n\n if (event.target.type === 'checkbox') {\n if (event.target.checked) {\n state = attr && attr.trackInput + '_CHECKED';\n } else {\n state = attr && attr.trackInput + '_UNCHECKED';\n }\n } else {\n state = attr && attr.trackInput;\n }\n\n var trackInput = {\n currentRoute: _uiRouter.$state.current,\n page: 'main:ec:hermes::fullpage-billing:guest:aries:'\n };\n\n if (state) {\n trackInput.transition = state;\n }\n\n _angular.$rootScope.$broadcast('trackInput', trackInput);\n });\n }\n };\n});\n\n_uiRouter.$state;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-tracking/dist/directive.js\n// module id = ../node_modules/xo-tracking/dist/directive.js\n// module chunks = 0","\n\nvar _squid = require('squid');\n\nvar _angular = require('angular');\n\nvar _angular2 = _interopRequireDefault(_angular);\n\nvar _builder = require('./builder');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n(function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n})(window.angular);\n\n_angular2['default'].module().factory('$fpti', function () {\n var _beaconUrl = void 0;\n\n // Logic to switch between production/staging urls. This way we don't pollute live logs,\n // and we are able to test on stage using the fpti log viewing tool.\n if (_squid.$config.deploy.isLocal() || _squid.$config.deploy.isStage()) {\n _beaconUrl = 'https://tracking.qa.paypal.com/webapps/tracking/ts'; // stage url\n } else {\n _beaconUrl = _squid.$config.urls && _squid.$config.urls.fptiBeaconUrl;\n }\n\n return {\n // Get all the tracking data defined at the page level\n getPageTrackingData: function getPageTrackingData(route) {\n route = route || {};\n\n var trackingData = route.trackingData || {};\n var routeParent = route.parent;\n\n trackingData.token = _angular.$rootScope.token;\n\n while (routeParent) {\n trackingData = _angular2['default'].merge({}, routeParent.trackingData || {}, trackingData);\n routeParent = routeParent.parent;\n }\n return trackingData;\n },\n\n setupDataString: function setupDataString(route, err, data) {\n var trackingData = this.getPageTrackingData(route);\n var PAYPAL = window && window.PAYPAL;\n\n var fptiData = void 0;\n\n if (PAYPAL && typeof PAYPAL.analytics !== 'undefined') {\n PAYPAL.core = PAYPAL.core || {};\n\n var payload = {\n baseData: window.meta.fpti,\n trackingData: trackingData,\n error: err,\n isInContext: _angular.$rootScope.miniBrowser\n };\n\n _angular2['default'].extend(payload, data || {});\n fptiData = new _builder.$FptiBuilder(payload).build().toString();\n\n // FPTI client side tracking only if we have template\n if (route && route.template && _angular2['default'].isFunction(PAYPAL.analytics.setup)) {\n PAYPAL.core.pta = PAYPAL.analytics.setup({\n data: fptiData,\n url: _beaconUrl\n });\n }\n }\n return fptiData;\n }\n };\n}).factory('$fptiError', function () {\n function stringifyErrorMessage(msg) {\n return encodeURIComponent(_angular2['default'].isString(msg) ? msg.split('\\n').slice(0, 2).join('@') // Get the first two lines of stack\n : (_angular2['default'].toJson(msg) || 'undefined').substring(0, 128));\n }\n\n return _squid.$Error.extend({\n construct: function construct(err) {\n if (!err) {\n return;\n }\n this.type = err.type;\n this.field = err.field;\n this.msg = stringifyErrorMessage(err.message || err.error);\n this.code = err.code || err.cause;\n }\n });\n});\n\n_squid.$config;\n\n_squid.$Error;\n\n_builder.$FptiBuilder;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-tracking/dist/fpti.js\n// module id = ../node_modules/xo-tracking/dist/fpti.js\n// module chunks = 0","\n\n/**\n * xo-tracking encapsulates all the details about instrumentation\n * and only register event listeners during bootstrap\n */\ndefine(['angular', './listener', './directive'], function (angular) {\n\n // Declare the dependency to register the listeners\n return angular.module('tracking', ['tracking.listener', 'tracking.directive']);\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-tracking/dist/index.js\n// module id = ../node_modules/xo-tracking/dist/index.js\n// module chunks = 0","\n\nvar _angular = require('angular');\n\nvar _angular2 = _interopRequireDefault(_angular);\n\nvar _index = require('xo-models/src/auth/index');\n\nvar _squid = require('squid');\n\nvar _logger = require('xo-beaver/dist/logger');\n\nvar _model = require('./model');\n\nvar _builder = require('./builder');\n\nvar _button = require('./button');\n\nvar _fpti = require('./fpti');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n_angular2['default'].module().run(function () {\n // eslint-disable-line max-statements\n var token = window.meta.token;\n // logAppName is the appname from meta.js. if the logAppName is not defined, default it to 'appNameNotDefined'.\n var appName = _squid.$meta.logAppName || 'appNameNotDefined';\n var addTrackingData = function addTrackingData(object) {\n return _squid.$util.extend(object, {\n dc: _squid.$meta.dc,\n az: _squid.$meta.az,\n cust: _index.$AuthModel.instance().buyer_id || '',\n comp: appName\n });\n };\n var cplSettings = _squid.$config.enableCPL;\n var passesCplThrottle = cplSettings && (typeof cplSettings.throttle === 'undefined' || (0, _squid.$experiment)('cpl_tracking', cplSettings.throttle, token));\n var cplEnabled = passesCplThrottle || _squid.$util.params().forceEnableCPL;\n\n function logTransition(state) {\n return !(state.trackingData && state.trackingData.suppressTransitionLog);\n }\n\n function logStateExit(state) {\n return state.trackingData && state.trackingData.trackStateExit;\n }\n\n function getBeaconUrl() {\n // Logic to switch between production/staging urls. This way we don't pollute live logs,\n // and we are able to test on stage using the fpti log viewing tool.\n return _squid.$config.deploy.isLocal() || _squid.$config.deploy.isStage() ? 'https://tracking.qa.paypal.com/webapps/tracking/ts' // stage url\n : _squid.$config.urls && _squid.$config.urls.fptiBeaconUrl;\n }\n\n /*\n * Triggers pa.js recordClick with custom parameters\n */\n function fptiCustomRecordClick(route, customData) {\n var analyticsInstance, fptiData, fptiDataObj;\n var PAYPAL = window.PAYPAL;\n\n if (PAYPAL && typeof PAYPAL.analytics !== 'undefined') {\n PAYPAL.core = PAYPAL.core || {};\n\n analyticsInstance = new PAYPAL.analytics.Analytics();\n\n fptiData = new _builder.$FptiBuilder({\n trackingData: route.trackingData,\n isInContext: _angular.$rootScope.miniBrowser,\n comp: appName\n // ... Other flow data pass-in here to resolve page qualifier\n }).build();\n\n // Grab the fpti data object and extend with custom params\n // The fpti data obj should include pxp params as well\n fptiDataObj = fptiData._dataObj;\n $.extend(fptiDataObj, customData);\n\n analyticsInstance.setRequestData(fptiDataObj);\n analyticsInstance.recordClick({\n url: getBeaconUrl()\n });\n }\n }\n\n _angular.$rootScope.$on('trackInput', function (event, trackInput) {\n if (!trackInput) {\n return;\n }\n var customData = {\n link: trackInput && trackInput.transition,\n page: trackInput && trackInput.page\n };\n\n fptiCustomRecordClick(trackInput.currentRoute, customData);\n });\n\n _angular.$rootScope.$on('trackClick', function (event, trackClick) {\n if (!trackClick) {\n return;\n }\n var customData = {\n link: trackClick && trackClick.transition\n };\n\n fptiCustomRecordClick(trackClick.currentRoute, customData);\n });\n\n _angular.$rootScope.$on('trackSubmit', function (event, trackSubmit) {\n if (!trackSubmit) {\n return;\n }\n var currentRoute = trackSubmit && trackSubmit.currentRoute;\n var routeName = currentRoute ? currentRoute.name : 'noRoute';\n\n _logger.$logger.info('track_submit', {\n route_name: routeName\n // ID stuff here later\n });\n\n if (logTransition(currentRoute)) {\n routeName = routeName.replace(/\\./g, '_');\n var state = currentRoute.trackingData && currentRoute.trackingData.fptiState || routeName;\n var transition = trackSubmit.transition || state;\n\n _logger.$logger.info(routeName + '_exit', {\n fptiState: state,\n fptiTransition: transition\n });\n }\n\n if (trackSubmit.errors && trackSubmit.errors.length) {\n var fptiFieldErrors = JSON.stringify(trackSubmit.errors);\n\n _logger.$logger.info('checkout_fpti', {\n form_field_errors: fptiFieldErrors\n });\n }\n\n var errors = trackSubmit.errors;\n\n if (_angular2['default'].isArray(errors)) {\n errors.forEach(function (err) {\n _logger.$logger.debug('track_submit_error', err);\n if (_fpti.$fpti) {\n _fpti.$fpti.setupDataString(currentRoute, new _fpti.$fptiError({\n type: 'fieldError',\n field: err.fieldName,\n code: err.errorMessage\n }));\n }\n });\n\n if (errors.length) {\n _logger.$logger.flush(true);\n }\n }\n });\n\n _angular.$rootScope.$on('unhandled_error', function (event, exception) {\n if (_fpti.$fpti) {\n _fpti.$fpti.setupDataString(exception.currentRoute, new _fpti.$fptiError({\n type: 'pageError',\n message: exception.message,\n code: exception.cause\n }));\n }\n });\n\n _angular.$rootScope.$on('trackLink', function (event, trackLink) {\n if (!trackLink) {\n return;\n }\n\n var currentRoute = trackLink.currentRoute;\n var routeName = (currentRoute ? currentRoute.name : 'noRoute').replace(/\\./g, '_');\n var state = currentRoute.trackingData && currentRoute.trackingData.fptiState || routeName;\n\n _logger.$logger.info(routeName + '_exit', {\n fptiState: state,\n fptiTransition: trackLink.transition\n });\n });\n\n _angular.$rootScope.$on('$transition', function (event, data) {\n (0, _angular.$timeout)(function () {\n if (_fpti.$fpti) {\n var fptiData = _fpti.$fpti.setupDataString(data.toState, null, addTrackingData({\n transition_time: data.duration\n }));\n\n // This seems to conflict with CPL data, so don't fire if CPL\n if (!cplEnabled) {\n // Fire and forget button tracking beacon.\n _button.$ButtonTrackingService.fireBeacon(fptiData);\n }\n }\n });\n });\n\n _angular.$rootScope.$on('$stateChangeStart', function (event, toState, toParams, fromState) {\n var from = fromState && fromState.name.replace(/\\./g, '_');\n var to = toState && toState.name.replace(/\\./g, '_');\n\n if (from && logTransition(fromState) && logStateExit(fromState)) {\n var trackingData = fromState.trackingData && fromState.trackingData || {};\n\n _logger.$logger.info(from + '_exit', { fptiState: trackingData.fptiState || from, fptiTransition: trackingData.fptiState || from });\n }\n\n _logger.$logger.info('state_change', {\n from: from || 'start',\n to: to || 'end'\n });\n\n // Generate a new CAL correlation_id to be shared until next flow transition (only for view states)\n if (toState.template) {\n _model.$CalDataModel.generateMetaIds();\n }\n\n _angular.$rootScope.currentState = to;\n\n if (to && logTransition(toState)) {\n _logger.$logger.info(to + '_enter', { fptiState: toState.trackingData && toState.trackingData.fptiState || to });\n }\n });\n\n _angular.$rootScope.$on('page_loaded', function (event, from, to) {\n if (from !== 'checkout_init') {\n return;\n }\n var key = _model.$FptiConstants.stateName[to] || 'review';\n var landing_page = _model.$FptiConstants.landing_page[key];\n\n _logger.$logger.info('landing_page', {\n 'from': landing_page,\n 'to': 'process_page_loaded',\n fpti_landing_page: landing_page\n });\n });\n\n _angular.$rootScope.$on('page_reloaded', function () {\n _logger.$logger.flush(true);\n _model.$CalDataModel.generateMetaIds();\n });\n\n _angular.$rootScope.$on('$stateChangeSuccess', function (event, toState) {\n var to = toState.name.replace(/\\./g, '_');\n\n if (toState.hasResolver && to) {\n _logger.$logger.info(to + '_load');\n } else if (to) {\n _logger.$logger.info(to + '_rendering');\n }\n });\n\n _angular.$rootScope.$on('addrDiff', function (event, addrDiff) {\n if (!addrDiff) {\n return;\n }\n _logger.$logger.info('checkout_fpti' + addrDiff);\n });\n\n function getHash(url) {\n if (!url || !~url.indexOf('#')) {\n // eslint-disable-line no-bitwise\n return;\n }\n\n url = url.split('#');\n return url[url.length - 1];\n }\n\n var oldHash = window.location.hash;\n\n window.addEventListener('hashchange', function (event) {\n _logger.$logger.info('hashchange', {\n from: getHash(event.oldURL || oldHash),\n to: getHash(event.newURL || window.location.hash)\n });\n\n if (!_squid.$loader.isLoading()) {\n _logger.$logger.flush();\n }\n\n oldHash = window.location.hash;\n });\n\n $(document).on('click', function (event) {\n if (event && event.target && event.target.tagName) {\n var name = event.target.tagName.toLowerCase();\n\n if (event.target.id) {\n name += '#' + event.target.id;\n } else if (event.target.attributes && event.target.attributes['ng-model']) {\n name += ':' + event.target.attributes['ng-model'].value;\n } else if (event.target.className) {\n name += '.' + event.target.className.split(' ').join('.');\n }\n\n _logger.$logger.info('click', { el: name });\n }\n });\n\n if (cplEnabled) {\n window.fptiserverurl = getBeaconUrl();\n\n var firstInvocation = true;\n var trackPageStart = function trackPageStart() {\n if (firstInvocation) {\n firstInvocation = false;\n return;\n }\n try {\n window.PAYPAL.analytics.startCPLTracking();\n } catch (e) {\n console.log('error starting cpl tracking ' + e);\n }\n };\n\n var firstDone = true;\n var trackDone = function trackDone(beaconData) {\n window.PAYPAL.analytics.endCPLTracking({\n pageData: addTrackingData(beaconData),\n inferStart: firstDone\n });\n firstDone = false;\n };\n\n var currentRoute = null;\n\n _angular.$rootScope.$on('startLoad', function () {\n return trackPageStart();\n });\n _angular.$rootScope.$on('$stateChangeSuccess', function (e, route) {\n currentRoute = route;\n });\n\n _angular.$rootScope.$on('allLoaded', function () {\n try {\n var buildParams = {\n productOverride: window.fptiProductOverride,\n trackingData: _fpti.$fpti.getPageTrackingData(currentRoute)\n };\n var legacyFptiData = new _builder.$FptiBuilder(buildParams).build()._dataObj;\n var product = window.fptiProductOverride || 'ec';\n\n legacyFptiData.pgrp = 'main:' + product + ':hermes';\n legacyFptiData.flid = token;\n trackDone(legacyFptiData);\n } catch (e) {\n console.log('error tracking CPL data ' + e);\n }\n });\n }\n});\n\n_index.$AuthModel;\n\n_squid.$util;\n\n_squid.$meta;\n\n_squid.$config;\n\n_squid.$experiment;\n\n_squid.$loader;\n\n_logger.$logger;\n\n_model.$CalDataModel;\n\n_model.$FptiConstants;\n\n_builder.$FptiBuilder;\n\n_button.$ButtonTrackingService;\n\n_fpti.$fpti;\n\n_fpti.$fptiError;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-tracking/dist/listener.js\n// module id = ../node_modules/xo-tracking/dist/listener.js\n// module chunks = 0","\n\nvar _angular = require('angular');\n\nvar _angular2 = _interopRequireDefault(_angular);\n\nvar _squid = require('squid');\n\nvar _uuid = require('node-uuid/uuid');\n\nvar _uuid2 = _interopRequireDefault(_uuid);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n(function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n})(window.angular); /* eslint-disable angular/di */\n\n\n_angular2['default'].module().constant('$FptiConstants', {\n // The prototype of buzname data object\n buznameMap: {\n flowgatename: {\n placeHolder: '',\n fptiKey: 'fltp'\n },\n 'flowname': {\n placeHolder: 'ec:hermes:',\n fptiKey: 'flnm'\n },\n 'hier1': {\n placeHolder: 'main_ec_hermes_',\n fptiKey: 'shir'\n },\n 'inout': {\n placeHolder: 'inout',\n fptiKey: 'lgin'\n },\n 'pagename': {\n placeHolder: 'main:ec:hermes',\n fptiKey: 'pgrp'\n },\n 'pagename2': {\n placeHolder: 'main:ec:hermes',\n fptiKey: 'page'\n },\n 'version': {\n placeHolder: 'hermes',\n fptiKey: 'vers'\n }\n },\n // Full list of FPTI keys indexed by readable names\n // This mapping can also be served as default decorator\n fptiKeys: {\n 'businessType': 'bztp',\n 'correlationId': 'calc', // CalDataModel\n 'cust': 'cust',\n 'errorCode': 'eccd',\n 'fieldError': 'erfd',\n 'flowgatename': 'fltp', // buzname\n 'flowname': 'flnm', // buzname\n 'loggedIn': 'lgin', // buzname\n 'merchantId': 'mrid',\n 'merchantType': 'mbtp',\n 'pageError': 'erpg',\n 'pageGoal': 'goal', // route\n 'pageGroup': 'pgrp', // buzname\n 'pageName': 'page', // buzname\n 'pageQualifer': 'qual', // buzname\n 'pageStartTime': 'pgst', // FptiBuilder\n 'pageTechnologyFlag': 'pgtf', // productConfig\n 'paymentFlowId': 'pfid',\n 'rLogId': 'teal',\n 'sessionId': 'fpti',\n 'siteHierarchy': 'shir', // buzname\n 'sourceCi': 's', // productConfig\n 'tealeaf': 'teal',\n 'templateName': 'tmpl', // route\n 'transition_time': 'transition_time',\n 'uuid': 'csci', // CalDataModel\n 'version': 'vers', // buzname\n 'visitorId': 'vid',\n 'ecToken': 'fltk', // metadata\n 'pxpExpSelected': 'xe',\n 'pxpTreatementSelected': 'xt',\n 'pxpQualifiedTreatment': 'qt',\n 'pxpContextId': 'qc',\n 'dc': 'dc',\n 'az': 'az',\n 'comp': 'comp'\n },\n landing_page: {\n login: 'LOGIN',\n econsent: 'eConsent',\n review: 'Review',\n error_page: 'error_page',\n add_card: 'add_card',\n add_bank: 'add_bank',\n billing: 'billing',\n done_page: 'done_page',\n shoppingCart: 'shoppingCart',\n emptyCart: 'emptyCart',\n soldout: 'soldout',\n openButton: 'openButton'\n },\n stateName: {\n checkout_login: 'login',\n checkout_genericError: 'error_page',\n checkout_fastlogin: 'login',\n checkout_econsent: 'econsent',\n checkout_review: 'review',\n checkout_pageAddCard_addCardFlow_addCard: 'add_card',\n checkout_updateCard_addCardFlow_addCard: 'add_card',\n checkout_pageAddFi_bank_add: 'add_bank',\n guest: 'billing',\n checkout_done: 'done_page',\n checkout_guest: 'billing',\n checkout_signup: 'billing',\n guestupgrade_genericError: 'error_page',\n checkout_multistepsignup_multistepsignupaddcard: 'billing',\n checkout_shoppingCart: 'shoppingCart',\n checkout_emptyCart: 'emptyCart',\n checkout_soldout: 'soldout',\n checkout_openButton: 'openButton'\n }\n}).factory('$FptiDataModel', ['$FptiConstants', function ($FptiConstants) {\n var productConfig = {};\n\n // TODO to read from config.json\n productConfig[$FptiConstants.fptiKeys.sourceCi] = 'ci';\n productConfig[$FptiConstants.fptiKeys.pageTechnologyFlag] = 'NodeJS';\n\n /**\n * Utilizing Decorator pattern to allow defining additional logic for specific keys\n */\n return _squid.$Class.extend('FptiDataModel', {\n init: function init() {\n this._dataObj = _angular2['default'].extend({}, productConfig);\n this._decoratorList = [];\n },\n decorators: {\n buzname: function buzname(trackingData, pageQualifier, isInContext, productOverride) {\n if (!trackingData) {\n return;\n }\n\n var buzname = trackingData.buzname;\n\n if (!buzname) {\n return;\n }\n\n var buznameDiff = buzname[pageQualifier];\n\n if (!buznameDiff) {\n return;\n }\n\n var dataObj = this._dataObj;\n var buznameMap = $FptiConstants.buznameMap;\n // read app specific place holder from config\n var placeHolderConfig = _squid.$config && _squid.$config.fpti && _squid.$config.fpti.buznameEntryPlaceHolder;\n\n Object.keys(buznameMap).forEach(function (key) {\n var buznameEntry = buznameMap[key];\n var fptiKey = buznameEntry.fptiKey;\n var placeHolder = buznameEntry.placeHolder;\n\n if (buznameDiff[key]) {\n if (placeHolderConfig && placeHolderConfig[key]) {\n placeHolder = placeHolderConfig[key];\n }\n\n if (productOverride) {\n var _placeHolder$split = placeHolder.split(':'),\n main = _placeHolder$split[0],\n hermes = _placeHolder$split[2];\n\n placeHolder = main + ':' + productOverride + ':' + hermes;\n }\n\n dataObj[fptiKey] = buznameDiff[key].replace('%', placeHolder);\n } else {\n dataObj[fptiKey] = placeHolder;\n }\n });\n dataObj[$FptiConstants.fptiKeys.pageQualifer] = pageQualifier;\n },\n\n base: function base(_base) {\n if (_base) {\n for (var key in _base) {\n if (!this._dataObj[key]) {\n this._dataObj[key] = _base[key];\n }\n }\n }\n },\n\n locale: function locale(_locale) {\n if (_locale && _locale.country) {\n this._dataObj[$FptiConstants.fptiKeys.locale] = _locale.country;\n }\n },\n\n pxptrackingdata: function pxptrackingdata(pxpData) {\n var qt = [];\n var qc = [];\n var xe = [];\n var xt = [];\n\n _squid.$util.some(pxpData, function (trackInfo) {\n var match = trackInfo && trackInfo.tracking_tags && trackInfo.tracking_tags.match('\\\\bqt=([^;]+);');\n\n if (match) {\n qt.push(match[1]);\n }\n\n match = trackInfo && trackInfo.tracking_tags && trackInfo.tracking_tags.match('\\\\bqc=([^;]+);');\n if (match) {\n qc.push(match[1]);\n }\n\n _squid.$util.some(trackInfo.treatments, function (treatment) {\n xe.push(treatment.experiment_id);\n xt.push(treatment.treatment_id);\n });\n });\n\n this._dataObj[$FptiConstants.fptiKeys.pxpQualifiedTreatment] = qt.join(',');\n this._dataObj[$FptiConstants.fptiKeys.pxpContextId] = qc.join(',');\n this._dataObj[$FptiConstants.fptiKeys.pxpExpSelected] = xe.join(',');\n this._dataObj[$FptiConstants.fptiKeys.pxpTreatementSelected] = xt.join(',');\n },\n\n templateName: function templateName(trackingData, pageQualifier, isInContext) {\n if (trackingData && trackingData.templateName) {\n var templateName = (trackingData.templateName || '') + (pageQualifier ? ':' + pageQualifier : '');\n\n this._dataObj[$FptiConstants.fptiKeys.templateName] = templateName;\n }\n },\n\n fieldError: function fieldError(err) {\n if (err && err.type === 'fieldError') {\n this._dataObj[$FptiConstants.fptiKeys.fieldError] = err.field;\n this._dataObj[$FptiConstants.fptiKeys.errorCode] = err.code;\n }\n },\n\n pageError: function pageError(err) {\n if (err && err.type === 'pageError') {\n\n this._dataObj[$FptiConstants.fptiKeys.pageError] = err.msg;\n this._dataObj[$FptiConstants.fptiKeys.errorCode] = err.code;\n }\n }\n\n },\n decorate: function decorate(name) {\n this._decoratorList.push({\n name: name,\n params: Array.prototype.slice.call(arguments, 1)\n });\n return this;\n },\n getDataObject: function getDataObject(isInContext) {\n var i;\n var decorator;\n\n for (i = 0; i < this._decoratorList.length; i++) {\n decorator = this._decoratorList[i];\n if (!decorator) {\n continue;\n }\n var name = decorator.name;\n var params = decorator.params;\n\n if (_angular2['default'].isFunction(this.decorators[name])) {\n // Invoke the decorator and pass in the parameter list\n this.decorators[name].apply(this, params);\n } else {\n var fptiKey = $FptiConstants.fptiKeys[name];\n\n // If the fptiKey is defined and value is present, add the k-v pair\n if (fptiKey && params && params.length > 0) {\n this._dataObj[fptiKey] = params[0];\n }\n }\n }\n\n // 'fullpage' was widely used as default key in page routs definition\n // finally replace it here if it's incontext\n var dataObj = this._dataObj;\n\n if (isInContext) {\n Object.keys(dataObj).forEach(function (k) {\n if (_angular2['default'].isString(dataObj[k])) {\n // some values can be number\n dataObj[k] = dataObj[k].replace('fullpage', 'incontext');\n }\n });\n }\n\n return this._dataObj;\n }\n });\n}]).factory('$CalDataModel', function () {\n var uuid_v4_mask = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx';\n var uuid_v1_mask = 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX';\n\n function _generateCorrelationId() {\n var uidRandomArr = (_uuid2['default'].v4() || uuid_v4_mask).split('-');\n var uidTime = (_uuid2['default'].v1() || uuid_v1_mask).split('-');\n\n return uidTime[0] + uidRandomArr[0].substr(0, 5);\n }\n\n function _generateUUID() {\n return (_uuid2['default'].v4() || uuid_v4_mask).replace(/-/g, '');\n }\n\n var CalModel = _squid.$Model.extend({\n _calCorrId: _generateCorrelationId(),\n _uuid: _generateUUID(),\n\n generateCalCorrId: function generateCalCorrId() {\n this._calCorrId = _generateCorrelationId();\n },\n generateUUID: function generateUUID() {\n this._uuid = _generateUUID();\n },\n generateMetaIds: function generateMetaIds() {\n this.generateCalCorrId();\n this.generateUUID();\n },\n\n getCalCorrId: function getCalCorrId() {\n return this._calCorrId;\n },\n\n getUUID: function getUUID() {\n return this._uuid;\n }\n });\n\n return new CalModel();\n});\n\n_squid.$Model;\n\n_squid.$Class;\n\n_squid.$util;\n\n_squid.$config;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-tracking/dist/model.js\n// module id = ../node_modules/xo-tracking/dist/model.js\n// module chunks = 0","\n\nvar _angular = require('angular');\n\nvar _logger = require('xo-beaver/dist/logger');\n\n/** Name: Tray height helper */\nangular.module().directive('xoTrayHeight', function () {\n return {\n restrict: 'A',\n link: function link($scope, element, attrs) {\n // Check to see if we can use the safer full height approach\n // or if we need to fallback to calculating the height using\n // math and relying on the \"right\" timing.\n var topClass = 'xo-sidebar-wrapper';\n var topSelector = '.' + topClass;\n var topElem = document.querySelector(topSelector);\n var inScope = topElem && topElem.querySelector('[xo-tray-height]');\n var useNewFlow = topElem && inScope;\n\n /**\n * NOTE:\n * The following code, despite being the \"new\" flow, is still\n * a stopgap solution until such time as the markup and or\n * CSS undergo an overhaul. It relies on the more stable\n * cascading relative/absolute positioning and 100% height\n * *and* the fact that the code is an instance of xo-tray-height\n * within the xo-sidebar-wrapper.\n */\n function calculate() {\n var curElem = element[0];\n\n while (!~curElem.className.indexOf(topClass)) {\n var style = getComputedStyle(curElem, null);\n\n if (style.position !== 'absolute') {\n curElem.style.position = 'relative';\n }\n curElem.style.height = '100%';\n curElem = curElem.parentNode;\n }\n }\n\n /**\n * NOTE:\n * The following DEPRECATED version of the calculate method\n * relies on calculating the heights using math. This heavy\n * handed approach is fine if it is called at the right times\n * and often enough; however, this criteria is hard to achieve.\n *\n * A markup and styles overhaul is recommended to do away with\n * both of these methods.\n */\n function deprecatedCalculate() {\n // DEPRECATED\n _logger.$logger.warn('xo-tray-height-fallback', {\n message: 'Using the fallback sidebar height calculation. ' + 'height may not be 100%. You should not be here!'\n });\n var height;\n var headerHeight;\n var mainHeight;\n var trayMinheight = 400;\n var asideContentHeight;\n var $aside = $(element).parents('aside:visible');\n var $asideContent = $aside.find('.asideContent');\n\n if (!$aside || !$asideContent) {\n return;\n }\n\n // Updates the tray height to the section height\n headerHeight = $aside.find('.header').outerHeight(true);\n mainHeight = $('#main').outerHeight(true);\n\n height = mainHeight - headerHeight;\n asideContentHeight = $asideContent.outerHeight(true);\n if ($scope.miniBrowser) {\n $aside.find('.aside').css('height', '534px');\n var minHeight = 534 - headerHeight;\n\n $asideContent.css('height', minHeight);\n } else if (asideContentHeight > height) {\n $asideContent.css('height', height);\n $aside.find('aside:visible').addClass('hasScroll');\n } else {\n height = height > trayMinheight ? height : trayMinheight;\n $asideContent.css('height', height);\n $aside.removeClass('hasScroll');\n }\n }\n\n if (useNewFlow) {\n calculate();\n } else {\n (0, _angular.$timeout)(deprecatedCalculate, 1);\n\n $scope.$on('SidebarError', function () {\n deprecatedCalculate();\n });\n }\n }\n };\n});\n\n/* grab the logger so we can warn about being in the fallback mode */\n\n\n_angular.$timeout;\n\n_logger.$logger;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-tray-height/dist/directive.js\n// module id = ../node_modules/xo-tray-height/dist/directive.js\n// module chunks = 0","\n\nvar _squid = require('squid');\n\nvar _angular = require('angular');\n\nvar _ui = require('./ui');\n\nvar _jquery = require('jquery');\n\nvar _jquery2 = _interopRequireDefault(_jquery);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n// Adds role='button' and tabindex='0' to anchor elements\n// so that it is keyboard navigable and recognized by screen\n// readers as a button.\n//\n// As anchors without href do not fire their click event\n// automatically on a Space or ENTER key, this directive forces\n// that functionality.\n//\n// If something is assigned to the link-button attribute, then\n// it is used as an aria-label.\n(0, _squid.$registerDirective)('link-button', function () {\n return {\n restrict: 'A',\n link: function link(scope, element, attrs) {\n var ariaLabel = (0, _angular.$parse)(attrs.linkButton)(scope);\n var $element = (0, _jquery2['default'])(element);\n\n $element.attr('role', 'button');\n $element.attr('tabindex', '0');\n if (ariaLabel) {\n $element.attr('aria-label', ariaLabel);\n }\n $element.on('keydown', function (event) {\n // do nothing if there is an alt or ctrl key as well\n if (!(event.altKey || event.ctrlKey)) {\n switch (event.keyCode) {\n case _ui.KEYS.SPACE:\n case _ui.KEYS.ENTER:\n element[0].click();\n return false;\n default:\n break;\n }\n }\n return true;\n });\n }\n };\n});\n\n// this directive gives an element characteristics of a native\n// select element in terms of keyboard navigation. It becomes reachable\n// via the tab key, reflects screenreader characteristics and\n// can be activated by any of the DOWN, SPACE or ENTER KEYS.\n(0, _squid.$registerDirective)('select-button', function () {\n return {\n restrict: 'A',\n link: function link(scope, element, attrs) {\n var $element = (0, _jquery2['default'])(element);\n if (!attrs.hasOwnProperty('disableRole')) {\n $element.attr('role', 'button');\n }\n\n $element.attr('aria-haspopup', 'true').attr('tabindex', '0').on('keydown', function (event) {\n // do nothing if there is an alt or ctrl key as well\n if (!(event.altKey || event.ctrlKey)) {\n switch (event.keyCode) {\n case _ui.KEYS.DOWN:\n case _ui.KEYS.SPACE:\n case _ui.KEYS.ENTER:\n element[0].click();\n return false;\n default:\n break;\n }\n }\n return true;\n });\n }\n };\n});\n\n// this directive makes a container with links act as if it were a select dropdown\n// in terms of keyboard accessibility. The following characteristics are implemented:\n//\n// * UP/RIGHT and DOWN/lEFT KEYS navigate through the options.\n// * ESC cancels and closes the dropdown\n// * SPACE or ENTER select an option\n// * You cannot TAB out of a dropdown until you select or cancel\n//\n// in addition, the following extra characteristics are implemented\n//\n// * The TAB (and SHIFT-TAB) key will also function to move between options\n// * Upon reaching the end of the list, the focus will shift back to the first item, and vice versa\n//\n// How to use:\n// 1. The select-cancel attribute is an agnostic expression to implement the cancel / back mechanic.\n// The expression is run whenever the ESC key is pressed.\n// 2. The select-allow-tab-escape attribute can be added alongside the select-box attribute to allow\n// tabs to escape the select-box element.\n(0, _squid.$registerDirective)('select-box', function () {\n return {\n restrict: 'A',\n link: function link(scope, element, attrs) {\n var allowTabEscape = (0, _angular.isDefined)(attrs.selectAllowTabEscape);\n\n function escapeToggle() {\n if (attrs.selectCancel) {\n (0, _angular.$parse)(attrs.selectCancel)(scope);\n scope.$apply();\n }\n }\n\n element.attr('role', 'menu');\n\n element.on('keydown.selectBox', function (event) {\n var $allTabbable = (0, _ui.findAll)(element, _ui.tabbable);\n var $origin = (0, _jquery2['default'])(event.target);\n\n if (!(event.altKey || event.ctrlKey)) {\n var index = $allTabbable.index($origin);\n\n switch (event.keyCode) {\n case _ui.KEYS.TAB:\n if (allowTabEscape && (index === 0 && event.shiftKey || index === $allTabbable.length && !event.shiftKey)) {\n // Enable default behavior to escape select-box\n escapeToggle();\n break;\n } else if (event.shiftKey) {\n index = (index - 1 + $allTabbable.length) % $allTabbable.length;\n } else {\n index = (index + 1) % $allTabbable.length;\n }\n $allTabbable.eq(index).focus();\n event.preventDefault();\n break;\n case _ui.KEYS.DOWN:\n case _ui.KEYS.RIGHT:\n index = (index + 1) % $allTabbable.length;\n $allTabbable.eq(index).focus();\n event.preventDefault();\n break;\n case _ui.KEYS.UP:\n case _ui.KEYS.LEFT:\n index = (index - 1 + $allTabbable.length) % $allTabbable.length;\n $allTabbable.eq(index).focus();\n event.preventDefault();\n break;\n case _ui.KEYS.SPACE:\n case _ui.KEYS.ENTER:\n $origin.click();\n event.preventDefault();\n break;\n case _ui.KEYS.ESC:\n escapeToggle();\n break;\n default:\n break;\n }\n }\n });\n }\n };\n});\n\n// similar to select-box, this directive restrains tabbing within a container\n// to the container itself.\n//\n// 1. modal-cancel is the equivalent of select-cancel from select-box, and\n// should define a cancellation / ESC function.\n(0, _squid.$registerDirective)('modal-box', function () {\n return {\n restrict: 'A',\n link: function link(scope, element, attrs) {\n function escapeToggle() {\n (0, _angular.$parse)(attrs.modalCancel)(scope);\n scope.$apply();\n }\n\n // Gets the index of the element that should be focused after pressing Tab\n function getNextIndex($element, $elements, shift) {\n if (shift) {\n return ($elements.index($element) - 1 + $elements.length) % $elements.length;\n } else {\n return ($elements.index($element) + 1) % $elements.length;\n }\n }\n\n if ((0, _angular.$parse)(attrs.modalBox)(scope) !== false) {\n element.on('keydown.modalBox', function (event) {\n var $allTabbable = (0, _ui.findAll)(element, _ui.tabbable);\n var $origin = (0, _jquery2['default'])(event.target);\n\n if (!(event.altKey || event.ctrlKey)) {\n switch (event.keyCode) {\n case _ui.KEYS.TAB:\n var index = getNextIndex($origin, $allTabbable, event.shiftKey);\n $allTabbable.eq(index).focus();\n event.preventDefault();\n event.stopPropagation();\n break;\n case _ui.KEYS.ESC:\n escapeToggle();\n event.preventDefault();\n event.stopPropagation();\n break;\n default:\n break;\n }\n }\n });\n }\n }\n };\n});\n\n// A simple version of modal that doesn't rely on controlling keyboard behavior\n// as strictly. Should be used in cases where tab items are not as easily accessible\n// via JS (ie. iframes)\n// Redirects focus to container when focusin event fired on element not in container\n(0, _squid.$registerDirective)('simple-modal', function () {\n return {\n restrict: 'A',\n link: function link(scope, element, attrs) {\n element.attr('tabindex', '-1');\n\n var cancelFn;\n if (attrs.modalCancel) {\n cancelFn = function cancelFn() {\n (0, _angular.$parse)(attrs.modalCancel)(scope);\n scope.$apply();\n };\n }\n\n function registerModal() {\n (0, _jquery2['default'])(document).on('focusin.simple-modal', function (event) {\n if (!element[0].contains(event.target)) {\n event.stopPropagation();\n element.focus();\n }\n });\n if (cancelFn) {\n (0, _jquery2['default'])(document).on('click.simple-modal', function (event) {\n if (!element[0].contains(event.target)) {\n deregisterModal();\n cancelFn();\n }\n });\n }\n }\n\n function deregisterModal() {\n (0, _jquery2['default'])(document).off('focusin.simple-modal');\n (0, _jquery2['default'])(document).off('click.simple-modal');\n }\n\n // Watch the expression provided to simpleModal and add modal behavior when\n // expression result changes to truthy\n if ((0, _angular.isDefined)(element.attr('simpleModal'))) {\n scope.$watch(attrs['simpleModal'], function (newVal) {\n if (newVal) {\n registerModal();\n } else {\n deregisterModal();\n }\n });\n } else {\n registerModal();\n }\n\n scope.$on('$destroy', deregisterModal);\n }\n };\n});\n\n// this directive gives an element characteristics of a native\n// option element in terms of aria attributes. It must be used\n// as a child of a selectBox for proper keyboard behavior as it\n// disables default tabbing behavior.\n//\n// The expression provided to the directive is used to set the\n// aria-selected attribute when the expression evaluates to true.\n(0, _squid.$registerDirective)('select-option', function () {\n return {\n restrict: 'A',\n link: function link(scope, element, attrs) {\n (0, _jquery2['default'])(element).attr('role', 'menuitem');\n if ((0, _angular.$parse)(attrs.selectOption)(scope)) {\n (0, _jquery2['default'])(element).attr('aria-selected', 'true');\n }\n }\n };\n});\n\n// adapted from http://stackoverflow.com/a/24416690\n// This directive makes the element focused when the expression\n// provided _changes_ to true.\n//\n// In order to avoid conflicts with autofocus when a page first loads,\n// adding the focused-once-before attribute will enable the expression\n// only if it has been focused on before.\n//\n// * if the element itself is not focusable, then it will locate the first focusable\n// element within it.\n// * if the additional attribute focus-element is provided, it is wrapped\n// as a jQuery element (could be selector string or actual element) and focused on\n// it will be parsed when the focus-when attribute is true\n// * if the attribute focus-on is provided, then the focus-when attribute is ignored and\n// the directive listens to the event specified by focus-on\n(0, _squid.$registerDirective)('focus-when', function () {\n return {\n restrict: 'A',\n link: function link(scope, element, attrs) {\n\n function locateAndFocus(active) {\n (0, _angular.$timeout)(function () {\n if (active) {\n // deal with figuring out which element to focus on\n var $elementToFocus = (0, _jquery2['default'])(); // start with \"monad\" to make life easier\n var directiveElementFocusable = (0, _ui.focusable)(element[0]);\n\n // this works by fallthrough. it will try each one\n // in succession until an element is found\n if (attrs.focusElement) {\n // scenario 1 - specific element provided\n $elementToFocus = (0, _ui.filterAll)((0, _angular.$parse)(attrs.focusElement)(scope), _ui.focusable);\n }\n\n if ($elementToFocus.length === 0 && !directiveElementFocusable) {\n // scenario 2 - element with directive is not focusable\n $elementToFocus = (0, _ui.findAll)(element, _ui.focusable);\n }\n\n // default / scenario 3 - no valid targets specified or found\n if ($elementToFocus.length === 0) {\n $elementToFocus = (0, _jquery2['default'])(element);\n }\n\n $elementToFocus.first().focus();\n }\n });\n }\n\n var active = true;\n\n if ('focusedOnceBefore' in attrs) {\n active = false;\n (0, _jquery2['default'])(element).on('focus', function () {\n active = true;\n });\n }\n\n if (attrs.focusRefreshOn) {\n scope.$on((0, _angular.$parse)(attrs.focusRefreshOn)(scope), function () {\n locateAndFocus(active);\n });\n } else {\n scope.$watch(attrs.focusWhen, function (val) {\n locateAndFocus(active && val);\n });\n }\n }\n };\n});\n\n// angularUI router specific - listens to a specific transition\n// defined in two attributes, focusWhenState (this directive) and TransitionsTo\nvar FOCUS_EVENT_NAME = 'accessible-focus';\n(0, _squid.$registerDirective)('focus-when-state', function () {\n return {\n restrict: 'A',\n link: function link(scope, element, attrs) {\n var startState = attrs.focusWhenState;\n var endState = attrs.transitionsTo;\n var transitionMessage = startState + ' > ' + endState;\n var unregisterEventFn = _angular.$rootScope.$on('$stateChangeSuccess', function (event, toState, toParams, fromState, fromParams) {\n if (fromState.name === startState && toState.name === endState) {\n scope.$broadcast(FOCUS_EVENT_NAME, transitionMessage);\n }\n });\n\n scope.$on(FOCUS_EVENT_NAME, function (event, message) {\n if (message === transitionMessage) {\n (0, _angular.$timeout)(function () {\n return element[0].focus();\n });\n }\n });\n\n // see http://stackoverflow.com/a/27016855\n scope.$on('$destroy', unregisterEventFn);\n }\n };\n});\n\n// Listens for the next state transition and focuses an element provided by selector\n// Use with links where focus is needed to return to a specific element after the transition\n(0, _squid.$registerDirective)('focus-after-transition', function () {\n return {\n restrict: 'A',\n link: function link(scope, element, attrs) {\n element.on('click', function () {\n var focusSelector = attrs['focusAfterTransition'];\n var cancel = _angular.$rootScope.$on('$stateChangeSuccess', function (event, toState, toParams, fromState, fromParams) {\n cancel();\n (0, _angular.$timeout)(function () {\n (0, _jquery2['default'])(focusSelector).focus();\n });\n });\n });\n }\n };\n});\n\n// focuses on the first focusable element on a container containing form elements\n(0, _squid.$registerDirective)('form-autofocus', function () {\n return {\n restrict: 'A',\n link: function link(scope, element, attrs) {\n // wait for the entire DOM to settle down first\n (0, _angular.$timeout)(function () {\n var $allFocusable = (0, _ui.findAll)(element, _ui.focusable);\n if ($allFocusable.length > 0) {\n $allFocusable.first().focus();\n }\n });\n }\n };\n});\n\n// Change element to be focusable and tabbable or unfocusable if it is\n// not typically a focusable element by removing the tabindex attribute.\n(0, _squid.$registerDirective)('focusable', function () {\n return {\n restrict: 'A',\n link: function link(scope, element, attrs) {\n function setFocusable(value) {\n if (value) {\n element.attr('tabindex', 0);\n } else {\n element.removeAttr('tabindex');\n }\n }\n\n if (attrs.focusable) {\n scope.$watch(attrs.focusable, function (newVal) {\n if (newVal) {\n setFocusable(true);\n } else {\n setFocusable(false);\n }\n });\n } else {\n setFocusable(true);\n }\n }\n };\n});\n\n_squid.$registerDirective;\n\n_angular.$parse;\n\n_angular.$timeout;\n\n_angular.$rootScope;\n\n_angular.isDefined;\n\n_ui.KEYS;\n\n_ui.focusable;\n\n_ui.tabbable;\n\n_ui.findAll;\n\n_ui.filterAll;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-ui-components/src/accessibility/directive.js\n// module id = ../node_modules/xo-ui-components/src/accessibility/directive.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.filterAll = exports.findAll = exports.tabbable = exports.focusable = exports.visible = exports.KEYS = undefined;\n\nvar _jquery = require('jquery');\n\nvar _jquery2 = _interopRequireDefault(_jquery);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar KEYS = {\n TAB: 0x09,\n ENTER: 0x0D,\n ESC: 0x1B,\n SPACE: 0x20,\n LEFT: 0x25,\n UP: 0x26,\n RIGHT: 0x27,\n DOWN: 0x28\n};\n\nfunction visible(element) {\n return _jquery2['default'].expr.filters.visible(element) && !(0, _jquery2['default'])(element).parents().addBack().filter(function () {\n return _jquery2['default'].css(this, 'visibility') === 'hidden';\n }).length;\n}\n\n// ripped from http://stackoverflow.com/a/7668761\n/* istanbul ignore next */\nfunction focusable(element) {\n var nodeName = element.nodeName.toLowerCase();\n var isTabIndexNotNaN = !isNaN(_jquery2['default'].attr(element, 'tabindex'));\n var map;\n var mapName;\n var img;\n\n if (nodeName === 'area') {\n map = element.parentNode;\n mapName = map.name;\n if (!element.href || !mapName || map.nodeName.toLowerCase() !== 'map') {\n return false;\n }\n img = (0, _jquery2['default'])('img[usemap=#' + mapName + ']')[0];\n return !!img && visible(img);\n }\n return (/^(input|select|textarea|button|object)$/.test(nodeName) ? // eslint-disable-line no-nested-ternary\n !element.disabled : nodeName === 'a' ? element.href || isTabIndexNotNaN : isTabIndexNotNaN) &&\n // the element and all of its ancestors must be visible\n visible(element);\n}\n\n/* istanbul ignore next */\nfunction tabbable(element) {\n var tabIndex = _jquery2['default'].attr(element, 'tabindex');\n var isTabIndexNaN = isNaN(tabIndex);\n\n return (isTabIndexNaN || tabIndex >= 0) && focusable(element);\n}\n\nfunction filterAll(elements, filterFn) {\n return (0, _jquery2['default'])(elements).filter(function () {\n return filterFn(this);\n });\n}\n\nfunction findAll(container, filterFn) {\n return filterAll((0, _jquery2['default'])(container).find('*'), filterFn);\n}\n\nexports.KEYS = KEYS;\nexports.visible = visible;\nexports.focusable = focusable;\nexports.tabbable = tabbable;\nexports.findAll = findAll;\nexports.filterAll = filterAll;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-ui-components/src/accessibility/ui.js\n// module id = ../node_modules/xo-ui-components/src/accessibility/ui.js\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _squid = require('squid');\n\nvar _auth = require('xo-models/src/auth');\n\nvar _index = require('xo-models/src/user/index');\n\nvar _logger = require('xo-beaver/dist/logger');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nrequire('./styles');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _squid.$Component.extend('$xoBanner', {\n tag: 'xo-banner',\n template: _template2['default'],\n transclude: true,\n props: {\n isNmj: {\n type: 'var',\n required: false\n }\n },\n resolve: {\n // Need buyer_id from $AuthModel first to get the URL for the user profile photo\n models: function models() {\n return {\n auth: _auth.$AuthModel.instance().retrieve()\n };\n },\n userPhoto: function userPhoto(resolvers) {\n return resolvers.models.then(function (models) {\n return {\n photoData: _index.$UserPhotoModel.instance(models.auth.buyer_id).retrieve({\n params: {\n 'min_size': 45\n }\n })['catch'](function (error) {\n _logger.$logger.info('error_retrieve_user_photo');\n return {};\n })\n };\n });\n }\n },\n lifecycle: {\n populate: function populate() {\n var avatarElement = this.$element.find('#banner-picture');\n var auth = this.models.auth;\n var photoData = this.userPhoto.photoData;\n\n // Currently only showing initials for New Member Journey\n var showInitials = auth.first_name && auth.last_name && this.props.isNmj;\n\n if (avatarElement && auth.buyer_id) {\n // The \"phantom\" avatar image is displayed by default via CSS\n // background-image property. If the request for a user's\n // profile photo returns a URL, the background-image property\n // is replaced with that URL.\n\n // Show user photo for avatar\n if (photoData && photoData.photo_url) {\n avatarElement.css('background-image', 'url(\"' + photoData.photo_url + '\")');\n _logger.$logger.info('xoBanner_user');\n }\n\n // No user photo: show user initials instead of phantom image\n if (!photoData.photo_url && showInitials) {\n avatarElement.addClass('initials');\n this.initials = '' + auth.first_name[0] + auth.last_name[0];\n _logger.$logger.info('xoBanner_initials');\n }\n } else {\n // Leave the phantom avatar as the background image\n _logger.$logger.info('xoBanner_default');\n }\n }\n }\n});\n\n\n_squid.$Component;\n\n_auth.$AuthModel;\n\n_index.$UserPhotoModel;\n\n_logger.$logger;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-ui-components/src/banner/directive.js\n// module id = ../node_modules/xo-ui-components/src/banner/directive.js\n// module chunks = 0","module.exports = \"
        \\n
        {{ initials }}
        \\n
        \\n
        \"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-ui-components/src/banner/template.html\n// module id = ../node_modules/xo-ui-components/src/banner/template.html\n// module chunks = 0","\n\nvar _squid = require('squid');\n\nvar _angular = require('angular');\n\nrequire('./styles.less');\n\n/**\n * This directive watches the model and listens to user input to look for arabic/hebrew/right-to-left language\n * unicode chars, then adds dir=\"rtl\" or dir=\"ltr\" attribute to input field\n *\n * Add directionality to the container html div element of a input field.\n *
        \n */\n(0, _squid.$registerDirective)('directionality', function () {\n return {\n restrict: 'A',\n link: function link(scope, element) {\n var currentWatchDeregister = void 0;\n var input = element.find('input');\n\n if (!input.length) {\n listenForInputRendered();\n return;\n }\n\n // If the input has not yet been rendered inside the container, listen for dom node inserted\n // then, if the node inserted is an input, we will use that element and init the directionality\n // listeners. The first input rendered is the one that will be captured by this directive.\n function listenForInputRendered() {\n element.bind('DOMNodeInserted', checkDOMNodeInserted);\n\n function checkDOMNodeInserted(event) {\n if (event && event.target && event.target.tagName === 'INPUT') {\n element.unbind('DOMNodeInserted', checkDOMNodeInserted);\n input = angular.element(event.target);\n init();\n }\n }\n }\n\n function setDirectionality(value) {\n if (value) {\n // set directionality to 'rtl' if the value has hebrew/arabic unicode chars.\n element.toggleClass('ltrOverride', !_squid.$util.hasRTL(value));\n } else {\n element.toggleClass('ltrOverride', _angular.$document.prop('documentElement').getAttribute('dir') !== 'rtl');\n }\n }\n\n function jqueryOnKeyupHandler(event) {\n setDirectionality(event.target.value);\n }\n\n // Reset directionality listeners when we transition from ltr -> rtl locale or vice versa\n function resetDirectionalityListener() {\n // remove directionality listeners that were set on prior locale\n input.unbind('keyup', jqueryOnKeyupHandler);\n if (currentWatchDeregister) {\n currentWatchDeregister();\n }\n\n // set new directionality listeners for the current locale if 'rtl'\n if (document.documentElement.getAttribute('dir') === 'rtl') {\n (0, _angular.$timeout)(function () {\n // Watch ng-model on input to set directionality if it contains RTL char\n currentWatchDeregister = scope.$watch(input.attr('ng-model'), function (value) {\n setDirectionality(value);\n });\n // jQuery listener for cases where ng-model is not populated until post validation\n input.on('keyup', jqueryOnKeyupHandler);\n });\n }\n }\n\n function init() {\n resetDirectionalityListener();\n scope.$on('localeChange', function () {\n resetDirectionalityListener();\n });\n }\n\n init();\n }\n };\n});\n\n/**\n * This directive watches the model for arabic/hebrew/right-to-left language unicode chars, then adds dir=\"rtl\"\n * or dir=\"ltr\" attribute to the html element.\n *\n * Add directionality-text=\"<>\" to the div or span or any element containing text.\n * <{{user.name}}\n */\n(0, _squid.$registerDirective)('directionality-text', function () {\n return {\n restrict: 'A',\n link: function link(scope, element, attrs) {\n if (document.documentElement.getAttribute('dir') === 'rtl') {\n var $element = $(element);\n\n (0, _angular.$timeout)(function () {\n if (attrs.directionalityText) {\n scope.$watch(attrs.directionalityText, function () {\n $element.toggleClass('ltrOverride', !_squid.$util.hasRTL((0, _angular.$parse)(attrs.directionalityText)(scope)));\n });\n } else {\n $element.toggleClass('ltrOverride', !_squid.$util.hasRTL(element.text()));\n }\n });\n }\n }\n };\n});\n\n_squid.$util;\n\n_squid.$registerDirective;\n\n_angular.$document;\n\n_angular.$parse;\n\n_angular.$timeout;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-ui-components/src/directionality/directive.js\n// module id = ../node_modules/xo-ui-components/src/directionality/directive.js\n// module chunks = 0","\n\ndefine(['squid/index', 'jquery'], function (squid, $) {\n squid.module('xo-dropdown-multiline.directive', ['squid']).directive('xoDropdownMultiline', ['$timeout', function ($timeout) {\n return {\n restrict: 'A',\n require: '?ngModel',\n link: function link($scope, $select, attrs, ngModel) {\n var isListVisible = false;\n var listCreated = false;\n\n $select = $($select);\n\n var $span = $('
        ');\n var $container = $('
        ');\n var $list = void 0;\n\n function updateCover() {\n $timeout(function () {\n $span.find('span span').html($select.find('[selected]').text().replace(/\\\\n/gi, '
        ').trim());\n }, 10);\n }\n\n function createList($options) {\n if ($options.length < 2) {\n return;\n }\n\n function getModel() {\n var modelName = void 0;\n var model = void 0;\n var subParts = void 0;\n\n if ($select.attr('ng-options')) {\n modelName = $select.attr('ng-options').substring($select.attr('ng-options').indexOf('in ') + 3, $select.attr('ng-options').length);\n } else {\n var $option = $($select.find('[ng-repeat]')[0]);\n\n modelName = $option.attr('ng-repeat').substring($option.attr('ng-repeat').indexOf('in ') + 3, $option.attr('ng-repeat').length);\n }\n\n // This is to handle cases like card.billingAddress\n if (modelName.indexOf('.') !== -1) {\n subParts = modelName.split('.');\n model = $scope;\n\n for (var i = 0; i < subParts.length; i++) {\n model = model[subParts[i]];\n }\n } else {\n // And this is to handle straightforward model names\n model = $scope[modelName];\n }\n\n return model;\n }\n\n function hideList(event) {\n $list.hide();\n $container.append($list);\n isListVisible = false;\n $container.removeClass('open');\n }\n\n function positionList() {\n $list.css('left', $container.offset().left + 'px');\n $list.css('top', $container.offset().top + $container.height() + 'px');\n $list.css('width', $container.width() + 'px');\n }\n\n function setFocusOnSelected() {\n var $selected = $select.find('[selected]');\n\n if ($selected.length) {\n var $item = $list.find('[data-value=\"' + $selected.attr('value') + '\"]');\n\n $item.focus();\n } else {\n $list.find('li')[0].focus();\n }\n }\n\n function showList() {\n $('body').append($list);\n $container.addClass('open');\n $list.show();\n positionList();\n isListVisible = true;\n setFocusOnSelected();\n }\n\n function processContainerKeypress(event) {\n var keyCode = event && event.keyCode;\n\n if (keyCode === 13 || keyCode === 40) {\n // enter or down arrow\n if (!isListVisible) {\n showList();\n } else {\n hideList();\n $container.focus();\n }\n } else if (keyCode === 27) {\n // escape\n if (isListVisible) {\n hideList();\n $container.focus();\n }\n }\n }\n\n if ($list) {\n $list.remove();\n }\n\n $list = $('
          ');\n\n Array.prototype.forEach.call($options, function (option) {\n var $option = $(option);\n var value = $option.attr('value');\n var text = option.innerHTML.replace(/\\\\n/gi, '
          ');\n\n if (text.indexOf('content(') !== -1) {\n text = $scope.content(text.substring(text.indexOf('(\\'') + 2, text.indexOf('\\')')));\n }\n\n var html = '
        • ' + text + '
        • ';\n $list.append($(html));\n });\n\n $container.append($list);\n $list.hide();\n\n $($list.find('li')).click(function (event) {\n var $target = $(event.target);\n var value = $target.data('value');\n\n if (typeof value !== 'undefined') {\n $select.find('option').removeAttr('selected');\n $select.find('option[value=\"' + value + '\"]').attr('selected', 'selected');\n $select.find('option').removeProp('selected');\n $select.find('option[value=\"' + value + '\"]').prop('selected', 'selected');\n } else {\n value = $target.html().replace(/\\//gi, '\\\\n');\n $select.val(value);\n }\n\n if ($select.attr('ng-model')) {\n if ($select.attr('ng-options') || $select.find('[ng-repeat]').length) {\n /* This parses the 'ng-options' directive and returns the options model.\n For example: If you have: ng-options='opt as opt.label for opt in options'\n Here it will parse this attribute and return 'options */\n var model = getModel();\n\n ngModel.$setViewValue(model[value]);\n } else {\n ngModel.$setViewValue(value);\n }\n }\n updateCover();\n hideList();\n });\n\n var $innerContainer = $container.find('.innerContainer');\n\n $container.click(function () {\n if (isListVisible) {\n hideList();\n $container.focus();\n } else {\n showList();\n }\n });\n\n $container.keydown(function (event) {\n return processContainerKeypress(event);\n });\n $innerContainer.keydown(function (event) {\n return processContainerKeypress(event);\n });\n\n $list.find('li').keydown(function (event) {\n var keyCode = event && event.keyCode;\n var $target = $(event.target);\n\n if (keyCode === 13) {\n // enter\n $target.click();\n event.stopPropagation();\n } else if (keyCode === 27) {\n // escape\n if (isListVisible) {\n hideList();\n $container.focus();\n event.stopPropagation();\n }\n } else if (keyCode === 40) {\n // down arrow\n if (!$target.is(':last-of-type')) {\n $target.next().focus();\n event.preventDefault();\n event.stopPropagation();\n }\n } else if (keyCode === 38) {\n // up arrow\n if (!$target.is(':first-of-type')) {\n $target.prev().focus();\n }\n event.preventDefault();\n event.stopPropagation();\n }\n });\n\n $(window).resize(function () {\n if (isListVisible) {\n positionList();\n }\n });\n\n $(window).bind('hashchange', function () {\n if (isListVisible) {\n hideList();\n }\n });\n\n $(document).click(function (event) {\n var $target = $(event.target);\n\n if (!($target.is($container) || $.contains($container.get()[0], $target.get()[0])) && isListVisible) {\n hideList();\n }\n });\n\n $container.blur(function (event) {\n // The setTimeout here is to ensure activeElement is set before our function executes\n $timeout(function () {\n var $newTarget = $(event.explicitOriginalTarget || document.activeElement);\n\n if (!($.contains($container.get()[0], $newTarget.get()[0]) || $.contains($list.get()[0], $newTarget.get()[0]))) {\n hideList(event);\n }\n }, 1);\n });\n\n listCreated = true;\n updateCover();\n }\n\n function render() {\n var options = $select.find('option');\n\n if (!listCreated) {\n createList(options);\n }\n }\n\n $select.wrap($container);\n $container = $select.parent();\n\n // Change class names to enable styling of hover/focus states\n $select.bind('mouseenter focus', function () {\n return $span.addClass('active');\n });\n // Change class names to enable styling of hover/focus states\n $select.bind('mouseleave blur', function () {\n return $span.removeClass('active');\n });\n $select.after($span);\n $select.addClass('replaced');\n $select.attr('tabindex', '-1');\n\n if (attrs['default']) {\n var defaultOption = document.createElement('option');\n\n defaultOption.innerText = attrs['default'];\n $select.append(defaultOption);\n }\n\n if ($select.attr('ng-options')) {\n $scope.$watch(attrs.ngModel, function () {\n render();\n });\n } else {\n $timeout(function () {\n return $scope.$broadcast('pageRendered');\n });\n }\n\n $scope.$on('pageRendered', function () {\n return render();\n });\n }\n };\n }]);\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-ui-components/src/dropdown-multiline/directive.js\n// module id = ../node_modules/xo-ui-components/src/dropdown-multiline/directive.js\n// module chunks = 0","\n\ndefine(['squid/index', 'jquery'], function (squid, $) {\n $.fn.dropdown = function () {\n console.warn('Dropdown deprecated');\n };\n squid.module('xo-dropdown.directive', ['squid']).directive('xoDropdown', ['$parse', '$window', '$timeout', '$util', '$compile', function ($parse, $window, $timeout, $util, $compile) {\n var userAgent = ($window.navigator || {}).userAgent;\n var isWinOS = Boolean(userAgent.match(/\\(win/i));\n\n return {\n restrict: 'A',\n scope: {\n dropdownTextBindVar: '=?'\n },\n link: function link($scope, $element, attrs) {\n var $parentScope = $scope.$parent;\n var $select = $($element);\n // TODO: This html should be refactored out into a template.\n var $span = $('');\n var selectInitialValue = '';\n var ngChange = '';\n\n $select.parent().addClass('custom-select-container');\n // Change class names to enable styling of hover/focus states\n $select.bind('mouseenter', function () {\n return $span.addClass('active');\n });\n $select.bind('mouseleave', function () {\n return $span.removeClass('active');\n });\n // Change class names to enable styling of hover/focus states\n $select.bind('focus', function () {\n selectInitialValue = $parse(attrs.ngModel)($parentScope);\n $span.addClass('active');\n });\n\n function executeSelectChange() {\n // setTimeout here is to ensure activeElement is set before our function executes\n $timeout(function () {\n var val = $parse(attrs.ngModel)($parentScope);\n\n if (selectInitialValue !== val) {\n if (ngChange) {\n ngChange($parentScope);\n }\n selectInitialValue = val;\n }\n }, 5);\n }\n\n if (isWinOS) {\n if (attrs['ngChange']) {\n ngChange = $parse(attrs.ngChange);\n attrs['ngChange'] = '';\n }\n\n $select.bind('blur', function () {\n executeSelectChange();\n $span.removeClass('active');\n });\n $select.bind('click', function () {\n return executeSelectChange();\n });\n } else {\n $select.bind('blur', function () {\n return $span.removeClass('active');\n });\n }\n\n $select.after($span);\n $select.addClass('replaced');\n\n if (attrs['default']) {\n var defaultOption = document.createElement('option');\n\n defaultOption.innerText = attrs['default'];\n $select.append(defaultOption);\n }\n\n var match = (attrs.ngOptions || '').match(/in ([\\w\\.]+)/);\n // Text Update Method 1(new): ng-bind on variable passed in directive and that is updated in parent/sibling scope\n if (angular.isDefined($scope.dropdownTextBindVar)) {\n var selectTextElement = $span.find('span span');\n\n if (selectTextElement.length) {\n $(selectTextElement).attr('ng-bind', 'dropdownTextBindVar');\n $(selectTextElement).html($compile(selectTextElement[0])($scope));\n }\n\n $scope.$watch('dropdownTextBindVar', function (newVal) {\n if (document.documentElement.getAttribute('dir') === 'rtl') {\n $span.toggleClass('ltrOverride', !$util.hasRTL(newVal));\n }\n });\n }\n // Text Update Method 2(old): jQuery text update on various conditions (not as reliable for me, ran into timing edge cases)\n else {\n var updateCover = function updateCover() {\n $timeout(function () {\n var text = $select.find(':selected').text().trim();\n\n $span.find('span span').text(text);\n if (document.documentElement.getAttribute('dir') === 'rtl') {\n $span.toggleClass('ltrOverride', !$util.hasRTL(text));\n }\n }, 5);\n };\n\n $parentScope.$watch(attrs.ngModel, updateCover);\n $scope.$on('contentChange', updateCover);\n if (match) {\n $parentScope.$watch(match[1], updateCover);\n }\n // Update cover on arrow key press, for case where menu is not open\n // but user is interacting with dropdown (eg. Firefox)\n $select.bind('keyup', function (event) {\n // Arrow keys are 37 - 40\n if (event.which >= 37 || event.which <= 40) {\n updateCover();\n }\n });\n }\n\n toggleOptionsLTROverride();\n if (match) {\n $parentScope.$watch(match[1], function (newVal) {\n toggleOptionsLTROverride();\n });\n }\n\n function toggleOptionsLTROverride() {\n if (document.documentElement.getAttribute('dir') === 'rtl') {\n $timeout(function () {\n var options = $select.find('option');\n\n for (var i = 0; i < options.length; i++) {\n $(options.get(i)).toggleClass('ltrOverride', !$util.hasRTL(options.get(i).text));\n }\n });\n }\n }\n }\n };\n }]);\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-ui-components/src/dropdown/directive.js\n// module id = ../node_modules/xo-ui-components/src/dropdown/directive.js\n// module chunks = 0","\n\nvar _squid = require('squid');\n\nvar _angular = require('angular');\n\nvar _angularAria = require('angularAria');\n\n// Configure angular aria.\n// Note that aria configuration applies globally\n_angularAria.$ariaProvider.config({ // eslint-disable-line angular/di\n // Remove bindRoleForClick since we use ngClick for several items that shouldn't be treated as buttons.\n bindRoleForClick: false,\n\n // Remove ariaInvalid and ariaRequired as we want to handle them ourselves.\n // These attributes should only be set once the form is submitted, to match what\n // visually what we display\n ariaInvalid: false,\n ariaRequired: false,\n // Removing aria-hidden attribute for hidden elements\n ariaHidden: false\n});\n\n(0, _squid.$registerDirective)('xo-error-tooltip', function () {\n return {\n restrict: 'A',\n require: ['?^form', '?ngModel'],\n link: function link(scope, element, attrs, ctrls) {\n var formCtrl = ctrls[0],\n modelCtrl = ctrls[1];\n\n\n function shouldBeRequired() {\n if (formCtrl) {\n // If input is a checkbox and has error-text or error-key, show the error text instead of the required text.\n // error-text is a legacy thing for backward compatibility, we can get rid of this once all teams\n // adopt error-key in all input tags\n var showCheckboxRequired = !(element.attr('type') === 'checkbox' && (attrs.errorText || attrs.errorKey));\n\n return formCtrl.$submitted && modelCtrl.$error.required && showCheckboxRequired;\n } else {\n return modelCtrl.$error.required;\n }\n }\n\n function shouldBeInvalid() {\n if (formCtrl) {\n return formCtrl.$submitted && modelCtrl.$invalid;\n } else {\n return modelCtrl.$invalid;\n }\n }\n\n // Add or remove a string into a space split string (eg. aria-describedby ids, class names)\n function formatSpaceSplitString(str, id, add) {\n var strArray = void 0;\n\n if (str) {\n strArray = str.split(' ');\n } else {\n strArray = [];\n }\n\n var idIndex = strArray.indexOf(id);\n\n if (~idIndex && !add) {\n strArray.splice(idIndex, 1);\n } else if (!~idIndex && add) {\n strArray.push(id);\n }\n\n return strArray.join(' ');\n }\n\n // Add tooltip behavior after DOM settles\n (0, _angular.$timeout)(function () {\n var generateId = function generateId() {\n return Math.random().toString(36).replace(/[^a-z]+/g, '').substr(0, 7);\n };\n var requiredId = generateId();\n var invalidId = generateId();\n var requiredError = void 0;\n var invalidError = void 0;\n\n if (attrs.errorKey) {\n element.addClass('hasErrorTooltipRuleSpecific');\n invalidError = (0, _angular.$compile)('
          {{content(\"' + attrs.errorKey + '\")}}
          ')(scope);\n element.after(invalidError);\n } else if (attrs.errorText) {\n // errorText if case is for backward compatibility, we can get rid of this once\n // all teams adopt error-key in all input tags for tooltip message display\n element.addClass('hasErrorTooltipRuleSpecific');\n invalidError = $('
          ' + attrs.errorText + '
          ');\n element.after(invalidError);\n }\n\n if (attrs.required || (0, _angular.$parse)(attrs.ngRequired)(scope)) {\n element.addClass('hasErrorTooltipRequired');\n requiredError = (0, _angular.$compile)('
          {{content(\"validation.required\")}}
          ')(scope);\n element.after(requiredError);\n element.removeAttr('aria-required');\n }\n\n function setAriaAttributes() {\n var addTooltips = {\n required: false,\n invalid: false\n };\n\n // Do not associate \"Required\" error with aria-describedby\n // because this should already be read out either by \"required\"\n // attribute or \"aria-required\"=true, and only associate \"Invalid\"\n // error if \"Required\" is not showing to match visuals\n if (shouldBeRequired()) {\n addTooltips.required = true;\n } else if (shouldBeInvalid()) {\n addTooltips.invalid = true;\n }\n\n var describedby = element.attr('aria-describedby');\n\n describedby = formatSpaceSplitString(describedby, requiredId, addTooltips.required);\n describedby = formatSpaceSplitString(describedby, invalidId, addTooltips.invalid);\n element.attr('aria-describedby', describedby);\n }\n\n scope.$watch(shouldBeRequired, function (newVal) {\n setAriaAttributes();\n });\n scope.$watch(shouldBeInvalid, function (newVal) {\n element.attr('aria-invalid', newVal);\n setAriaAttributes();\n });\n\n // Set scroll so that the error message is in view when element receives focus\n element.on('focus', function (event) {\n var windowBot = $(window).scrollTop() + $(window).height();\n var requiredBot = requiredError ? requiredError.offset().top + requiredError.outerHeight() : 0;\n var invalidBot = invalidError ? invalidError.offset().top + invalidError.outerHeight() : 0;\n\n if (windowBot < Math.max(requiredBot, invalidBot)) {\n $(window).scrollTop(Math.max(requiredBot, invalidBot) - $(window).height());\n }\n });\n });\n }\n };\n});\n\n_squid.$registerDirective;\n\n_angular.$parse;\n\n_angular.$compile;\n\n_angular.$timeout;\n\n_angularAria.$ariaProvider;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-ui-components/src/error-tooltip/directive.js\n// module id = ../node_modules/xo-ui-components/src/error-tooltip/directive.js\n// module chunks = 0","\n\nvar _index = require('xo-return-to-merchant/dist/index');\n\ndefine(['squid/index', 'text!./template.html', 'xo-models/src/user/index'], function (squid, template) {\n\n squid.module('xo-escape-hatch.closeFrame.directive', ['squid', 'xomodel.user']).directive('xoCloseFrame', [function () {\n return {\n template: template,\n\n restrict: 'E',\n\n scope: {\n redirectiframe: '=?',\n redirectLightbox: '=?'\n },\n\n controller: ['$scope', '$rootScope', '$populate', '$CheckoutInputDataModel', '$window', '$CheckoutAppDataModel', '$util', '$injector', '$logger', function ($scope, $rootScope, $populate, $CheckoutInputDataModel, $window, $CheckoutAppDataModel, $util, $injector, $logger) {\n\n $populate($scope, {\n checkoutAppData: $CheckoutAppDataModel.instance($rootScope.token)\n }).then(function () {\n var cancel_url = $scope.checkoutAppData.urls.cancel_url;\n\n $scope.checkoutInputData = $CheckoutInputDataModel.instance($scope.token);\n $scope.isIFrame = $util.isIFrame();\n\n $scope.closeFrame = function (event) {\n event.preventDefault();\n event.stopPropagation();\n\n if (window.xchild) {\n if (window.xprops.onCancel) {\n return window.xprops.onCancel({\n token: $scope.token,\n cancelUrl: cancel_url\n });\n } else {\n return window.xchild.close();\n }\n }\n\n if ($scope.redirectLightbox) {\n var result = _index.$ReturnToMerchant.postToMerchant({\n operation: 'return_to_merchant',\n returnUrl: cancel_url,\n updateParent: true\n });\n\n // Otherwise we have no choice but to return to the merchant\n if (!result) {\n $util.redirect(cancel_url);\n }\n\n // TODO - Move out helios specific logic. Apps should provide a callback instead.\n } else if ($scope.redirectiframe) {\n $window.location.replace(cancel_url);\n\n // TODO - Move out helios specific logic. Apps should provide a callback instead.\n } else {\n\n var iFrameFlow = $injector.get('$IFrameFlow');\n\n $logger.info('HELIOS_FLOW_FALLBACK'); // overall fallbacks\n $logger.info('HELIOS_FALLBACK_TO_MERCHANT');\n $logger.info('HELIOS_FALLBACK_MERCHANT_USER_CANCELLED');\n\n var url = $scope.checkoutInputData.errorUrl('user_cancelled');\n\n if ($scope.auth && $scope.auth.code) {\n url += '&code=' + $scope.auth.code;\n }\n\n iFrameFlow.findWindowAndRedirect($scope.checkoutInputData, url);\n }\n $scope.$emit('exitFrame');\n };\n });\n }]\n };\n }]);\n});\n\n_index.$ReturnToMerchant;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-ui-components/src/escape-hatch/closeFrame/directive.js\n// module id = ../node_modules/xo-ui-components/src/escape-hatch/closeFrame/directive.js\n// module chunks = 0","\n\ndefine(['squid/index', 'text!./template.html'], function (squid, template) {\n\n squid.module('xo-escape-hatch.escapeHatch.directive', ['squid']).directive('xoEscapeHatch', [function () {\n return {\n template: template,\n\n restrict: 'E',\n\n controller: ['$scope', '$rootScope', '$window', '$util', '$logger', function ($scope, $rootScope, $window, $util, $logger) {\n $scope.isIFrame = $util.isIFrame();\n $scope.closeFrame = function (event) {\n var url = $window.location.href && $window.location.href.split('#')[0] || '';\n\n if (url.indexOf('proxflow') > -1) {\n url = url.replace('proxflow', 'webapps/helios');\n }\n\n url += url.slice(-1) === '&' ? 'escape_hatch=1' : '&escape_hatch=1';\n\n if (url.indexOf('hermes') > -1 || url.indexOf('checkoutnow')) {\n $logger.info('HERMES_ESCAPE_HATCH_CLICKED');\n } else {\n $logger.info('HELIOS_ESCAPE_HATCH_CLICKED');\n }\n\n $window.top.location = url;\n $scope.$emit('exitFrame');\n };\n }]\n };\n }]);\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-ui-components/src/escape-hatch/escapeHatch/directive.js\n// module id = ../node_modules/xo-ui-components/src/escape-hatch/escapeHatch/directive.js\n// module chunks = 0","\n\nvar _angular = require('angular');\n\nvar _squid = require('squid');\n\nrequire('./styles');\n\nvar treatmentType = void 0;\nvar newLocale = void 0;\nvar oldLocale = void 0;\n\nfunction getTreatment() {\n if (treatmentType !== undefined) {\n return treatmentType;\n }\n if ((0, _squid.$feature)('floatingLabels')) {\n return true;\n }\n var token = _angular.$rootScope.token;\n var throttle = _squid.$config['floatingLabelLocales'] && _squid.$config['floatingLabelLocales'][_squid.$locale.country] && _squid.$config['floatingLabelLocales'][_squid.$locale.country][_squid.$locale.lang];\n var id = _squid.$locale.lang + '_' + _squid.$locale.country + token;\n\n treatmentType = throttle && (0, _squid.$experiment)('floating_label_exp', throttle, id, {}) ? true : false;\n return treatmentType;\n}\n\n(0, _squid.$registerDirective)('floating-label', function () {\n return {\n restrict: 'A',\n link: function link(scope, element, attrs) {\n scope.$on('localeChange', function () {\n newLocale = _squid.$locale.country + '_' + _squid.$locale.lang;\n\n if (oldLocale !== newLocale) {\n treatmentType = undefined;\n oldLocale = newLocale;\n }\n scope.showFloatingLabels = getTreatment();\n });\n\n (0, _angular.$timeout)(function () {\n scope.showFloatingLabels = getTreatment();\n\n scope.$watch('showFloatingLabels', function (val) {\n // remove else block after experimentation is complete\n if (val) {\n element.addClass('floatingLabel');\n element.removeClass('noFloatingLabel');\n } else {\n element.removeClass('floatingLabel');\n element.addClass('noFloatingLabel');\n }\n });\n\n var input = element.find('input');\n\n if (input.attr('placeholder')) {\n input.addClass('hasPlaceholder');\n }\n\n // To hide the placeholder labels for pre-populated input fields\n scope.$watch(input.attr('ng-model'), function (value) {\n input.toggleClass('focused', !!value);\n });\n\n // We're using this as an alternative to watching 'ng-model' since this properly triggers the focused CSS property on email input.\n input.on('keyup', function (event) {\n var val = event.target.value;\n\n input.toggleClass('focused', !!val);\n });\n\n input.on('focus blur click', function (event) {\n if (scope.showFloatingLabels) {\n input.toggleClass('focused', event.type === 'focus' || this.value.length > 0);\n }\n });\n\n if (!('disableAutoblur' in attrs)) {\n input.trigger('blur');\n }\n });\n }\n };\n});\n\n(0, _squid.$registerDirective)('floating-label-dropdown', function () {\n return {\n restrict: 'A',\n link: function link(scope, element, attrs) {\n scope.$on('localeChange', function () {\n newLocale = _squid.$locale.country + '_' + _squid.$locale.lang;\n\n if (oldLocale !== newLocale) {\n treatmentType = undefined;\n oldLocale = newLocale;\n }\n scope.showFloatingLabels = getTreatment();\n });\n\n (0, _angular.$timeout)(function () {\n scope.showFloatingLabels = getTreatment();\n scope.$watch('showFloatingLabels', function (val) {\n // remove else block after experimentation is complete\n if (val) {\n element.addClass('floatingLabel');\n element.removeClass('noFloatingLabel');\n } else {\n element.removeClass('floatingLabel');\n element.addClass('noFloatingLabel');\n }\n });\n\n var select = element.find('select');\n var label = element.find('label');\n var flSpan = element.find('.custom-select span span');\n\n select.on('change mouseenter mouseleave blur', function (event) {\n var value = event.currentTarget.value;\n\n select.toggleClass('focused', event.type === 'change' || value.length > 0);\n flSpan.toggleClass('noValue', value.length < 1);\n label.toggleClass('hide', value.length < 1);\n }).trigger('mouseleave');\n });\n }\n };\n});\n\n_angular.$timeout;\n\n_angular.$rootScope;\n\n_squid.$locale;\n\n_squid.$experiment;\n\n_squid.$config;\n\n_squid.$feature;\n\n_squid.$registerDirective;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-ui-components/src/floating-label/directive.js\n// module id = ../node_modules/xo-ui-components/src/floating-label/directive.js\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _jquery = require('jquery');\n\nvar _jquery2 = _interopRequireDefault(_jquery);\n\nvar _angular = require('angular');\n\nvar _uiRouter = require('uiRouter');\n\nvar _logger = require('xo-beaver/dist/logger');\n\nvar _index = require('xo-models/src/auth/index');\n\nvar _app = require('xo-models/src/app');\n\nvar _index2 = require('xo-return-to-merchant/dist/index');\n\nvar _squid = require('squid');\n\nvar _index3 = require('xo-models/src/checkout/index');\n\nrequire('../banner/directive');\n\nvar _template = require('./template.html');\n\nvar _template2 = _interopRequireDefault(_template);\n\nrequire('./styles');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar TITLE_KEY_MAPPING = {\n BLOCK_NON_DOMESTIC_SHIPPING: 'blockNonDomesticShippingTitle',\n BLOCK_PPC_INELIGIBLE_USER: 'blockPPCIneligibleTitle',\n COMPLIANCE_VIOLATION: 'transactionRefusedTitle',\n DOMESTIC_TRANSACTION_REQUIRED: 'domesticTransactionRequiredTitle',\n GAMER_LOGIN_OUT_OF_COUNTRY: 'sorry',\n GAMER_RESIDENCE_OUT_OF_COUNTRY: 'sorry',\n HERMES_PAYER_COUNTRY_NOT_ALLOWED_DCF: 'payerCountryNotAllowedTitleMemberDCF',\n INTERNAL_SERVICE_ERROR: 'transactionRefusedTitle',\n NEGATIVE_BALANCE_TRANSACTION_REFUSED: 'negativeBalanceRefusedTitle',\n PAYEE_ACCOUNT_LOCKED_OR_CLOSED: 'payeeAccountLockedOrClosedTitle',\n PAYER_COUNTRY_NOT_ALLOWED: 'payerCountryNotAllowedTitle',\n PAYER_COUNTRY_NOT_ENABLED: 'payerCountryNotAllowedTitle',\n PAYER_LOGIN_COUNTRY_NOT_ALLOWED: 'payerCountryNotAllowedTitle',\n PAYMENT_PROCESS_ERROR: 'paymentProcessError',\n RETRY: 'sorry',\n SENDING_LIMIT_EXCEEDED: 'genericErrorMessageTitle',\n STUDENT_ACCOUNT: 'studentAccountTitle',\n TRANSACTION_REFUSED: 'transactionRefusedTitle',\n XOON_PAYER_COUNTRY_NOT_ALLOWED_DCF: 'payerCountryNotAllowedTitleSignupDCF',\n CREDIT_CARD_AUTH_FAILED: 'smartDollarAuthFailedMsg'\n};\n\nvar CONTENT_KEY_MAPPING = {\n ACCOUNT_CANNOT_BE_FETCHED: 'genericError',\n AGREEMENT_ALREADY_CREATED: 'agreementAlreadyCreated',\n // TODO: rename to a common one, e.g TOKENIZED_WALLET_ELIGIBILITY_ERROR later\n ANDROID_PAY_ALREADY_PROVISIONED: 'tokenizedWalletAlreadyProvisioned',\n ANDROID_PAY_ELIGIBILITY_ERROR: 'tokenizedWalletGenericError',\n // end of TODO\n BLOCK_NON_DOMESTIC_SHIPPING: 'blockNonDomesticShippingMessage',\n BLOCK_PPC_INELIGIBLE_USER: 'blockPPCIneligibleMessage',\n COMPLIANCE_VIOLATION: 'complianceViolationMessage',\n DEFAULT_TOKENIZED_WALLET_ERROR: 'tokenizedWalletGenericError',\n DEFAULT: 'genericError',\n DOMESTIC_TRANSACTION_REQUIRED: 'domesticTransactionRequiredMessage',\n DUPLICATE_INVOICE_ID: 'duplicateInvoiceId',\n EINVALIDCSRF_JWT_EXPIRED: 'csrfTokenExpired',\n EXPIRED_SESSION: 'expiredOrTokenNotFoundError',\n GAMER_ACCOUNT_UNVERIFIED: 'accountUnverified',\n GAMER_INELIGIBLE: 'transactionRefusedTitle',\n GAMER_FI_INELIGIBLE: 'fiIneligible',\n GAMER_FI_UNCONFIRMED: 'fiUnconfirmed',\n GAMER_INVALID_ACCOUNT_TYPE: 'invalidAccountType',\n GAMER_LOGIN_OUT_OF_COUNTRY: 'unauthorizedCountryLogin',\n GAMER_NO_VALID_FUNDING_INSTRUMENT: 'fiIneligible',\n GAMER_RESIDENCE_OUT_OF_COUNTRY: 'unauthorizedCountryAccountRegistered',\n GAMING_FUNDING_SOURCE_VALIDATION_FAILED: 'unauthorizedCountryAccountRegistered',\n GUEST_UPGRADE_ERROR: 'guestUpgradeError',\n GUEST_UPGRADE_SESSION_ERROR: 'guestUpgradeSessionError',\n HERMES_PAYER_COUNTRY_NOT_ALLOWED_DCF: 'unauthorizedCountryAccountMemberDCF',\n INTERNAL_SERVICE_ERROR: 'transactionRefusedMessage',\n INVALID_RESOURCE_ID: 'expiredOrTokenNotFoundError',\n NEGATIVE_BALANCE_TRANSACTION_REFUSED: 'negativeBalanceRefusedMessage',\n PAYEE_ACCOUNT_LOCKED_OR_CLOSED: 'payeeAccountLockedOrClosed',\n PAYEE_BLOCKED_TRANSACTION: 'paymentDeniedError',\n PAYER_CANNOT_PAY: 'paymentDeniedError',\n PAYER_COUNTRY_NOT_ALLOWED: 'unauthorizedCountryAccountRegistered',\n PAYER_COUNTRY_NOT_ENABLED: 'rpUnauthorizedCountryMessage',\n PAYER_LOGIN_COUNTRY_NOT_ALLOWED: 'unauthorizedCountryLogin',\n PAYMENT_ALREADY_DONE: 'paymentAlreadyCompletedError',\n PAYMENT_DENIED: 'paymentDeniedError',\n PAYMENT_PROCESS_ERROR: 'chooseOtherWayToPay',\n RESTRICTED_USER: 'buyerRestrictedError',\n RETRY: 'thingsNotWorking',\n SENDING_LIMIT_EXCEEDED: 'sendingLimitExceeded',\n STUDENT_ACCOUNT: 'studentAccountMessage',\n TRANSACTION_LIMIT_EXCEEDED: 'transactionLimitExceeded',\n TRANSACTION_REFUSED: 'transactionRefusedMessage',\n CREDIT_CARD_AUTH_FAILED: 'transactionRefusedMessage',\n UNSUPPORTED_COUNTRY: 'unsupportedCountry',\n UNSUPPORTED_DUE_TO_RECEIVER_PREFERENCE: 'unsupportedReceiverPreferences',\n UNSUPPORTED_PAYEE_CURRENCY: 'unsupportedPayeeCurrency',\n XOON_PAYER_COUNTRY_NOT_ALLOWED_DCF: 'unauthorizedCountryAccountSignupDCF'\n};\n\n// pass merchantName attribute, if undefined, then suffix 'Default' to key\nvar renderContentWithMerchantName = function renderContentWithMerchantName(key) {\n var merchantNameFromProps = this.props.merchant;\n\n // we may not get merchantName as props, look for models also\n var merchantNameFromModels = void 0;\n if (this.models && this.models.checkoutAppData && this.models.checkoutAppData.merchant) {\n var merchant = this.models.checkoutAppData.merchant;\n\n merchantNameFromModels = merchant.brand_name || merchant.merchant_name;\n }\n\n var merchantName = merchantNameFromProps || merchantNameFromModels;\n\n if (merchantName) {\n return (0, _squid.$renderContent)(key, { merchantName: merchantName });\n }\n\n return (0, _squid.$renderContent)(key + 'Default');\n};\n\nvar renderContentWithWalletTokenizationName = function renderContentWithWalletTokenizationName(key) {\n var brandName = this.models.tokenizedWalletInfoModel.brandName();\n\n return (0, _squid.$renderContent)(key, { type: brandName });\n};\n\n// handle non-standard merchant error title strings\nvar TITLE_KEY_HANDLER = {\n DOMESTIC_TRANSACTION_REQUIRED: renderContentWithMerchantName,\n HERMES_PAYER_COUNTRY_NOT_ALLOWED_DCF: renderContentWithMerchantName,\n XOON_PAYER_COUNTRY_NOT_ALLOWED_DCF: renderContentWithMerchantName\n};\n\n// handle non-standard merchant error content strings\nvar CONTENT_KEY_HANDLER = {\n AGREEMENT_ALREADY_CREATED: renderContentWithMerchantName,\n ANDROID_PAY_ALREADY_PROVISIONED: renderContentWithWalletTokenizationName,\n DEFAULT_TOKENIZED_WALLET_ERROR: renderContentWithWalletTokenizationName,\n DOMESTIC_TRANSACTION_REQUIRED: renderContentWithMerchantName,\n HERMES_PAYER_COUNTRY_NOT_ALLOWED_DCF: renderContentWithMerchantName,\n XOON_PAYER_COUNTRY_NOT_ALLOWED_DCF: renderContentWithMerchantName\n};\n\nvar SHOW_LOGOUT_LINK_CODES = ['HERMES_PAYER_COUNTRY_NOT_ALLOWED_DCF', 'ANDROID_PAY_COUNTRY_NOT_SUPPORTED', 'ANDROID_PAY_ALREADY_PROVISIONED', 'GAMER_INVALID_ACCOUNT_TYPE'];\n\nvar HIDE_CANCEL_LINK_CODES = ['PAYER_COUNTRY_NOT_ALLOWED', 'GAMING_FUNDING_SOURCE_VALIDATION_FAILED', 'PAYER_LOGIN_COUNTRY_NOT_ALLOWED'];\n\nvar RETRY_LINK = ['EINVALIDCSRF_JWT_EXPIRED', 'GUEST_CHECKOUT_NOT_ALLOWED', 'RETRY'];\n\nvar TRANSACTION_REFUSED_BA_TITLE_MSG = {\n BA_NO_PURCHASE: 'transactionRefusedBAnoPurchaseTitle',\n BA_WITH_PURCHASE: 'transactionRefusedBAPurchaseTitle'\n};\n\n/* eslint-disable fasec/no-unsafe-regex */\nvar base64regex = new RegExp('^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$');\n\nexports['default'] = _squid.$Component.extend('$xoGenericErrorComponent', {\n tag: 'xo-generic-error',\n template: _template2['default'],\n props: {\n token: {\n type: 'var',\n required: false\n },\n logout: {\n type: 'var',\n required: false\n },\n isUnbranded: {\n type: 'var',\n required: false\n },\n cancelUrl: {\n type: 'str',\n required: false\n },\n merchant: {\n type: 'str',\n required: false\n }\n },\n resolve: {\n models: function models() {\n if (this.props.token) {\n return {\n checkoutAppData: _index3.$CheckoutAppDataModel.instance(this.props.token).retrieve()['catch'](angular.noop),\n cart: _index3.$CheckoutCartModel.instance(this.props.token).retrieve()['catch'](angular.noop),\n checkoutPayee: _index3.$CheckoutPayeeModel.instance(this.props.token).retrieve()['catch'](angular.noop),\n auth: _index.$AuthModel.instance().retrieve()['catch'](angular.noop),\n tokenizedWalletInfoModel: _app.$TokenizedWalletInfoModel.instance(this.props.token).retrieve()['catch'](angular.noop)\n };\n }\n }\n },\n lifecycle: {\n enter: function enter() {\n var _this = this;\n\n var cancelPreventStateChange = _angular.$rootScope.$on('$stateChangeStart', function (event, toState, toParams, fromState, fromParams) {\n event.preventDefault();\n });\n\n this.$on('$destroy', cancelPreventStateChange);\n\n var self = this;\n\n // to not break other application's error integration, we'll still support base64 decoded code parameters\n if (_uiRouter.$stateParams.code && base64regex.test(_uiRouter.$stateParams.code)) {\n self.errorCode = _squid.$util.base64Decode(_uiRouter.$stateParams.code);\n } else {\n self.errorCode = _uiRouter.$stateParams.code;\n }\n\n self.hideCancelLink = HIDE_CANCEL_LINK_CODES.indexOf(self.errorCode) > -1;\n self.retryLink = RETRY_LINK.indexOf(self.errorCode) > -1;\n\n _angular.$rootScope.allowUnload = true;\n self.cancelLink = self.props.cancelUrl;\n\n self.cancelRedirect = function ($event) {\n $event.preventDefault();\n var redirectUrl = self.cancelLink;\n\n if (_angular.$rootScope.partnerIntegration) {\n _logger.$logger.info('genericerror_partner_integration');\n redirectUrl = _squid.$util.buildURL(self.cancelLink, { error: 'true' });\n }\n\n _index2.$ReturnToMerchant.goTo(redirectUrl);\n };\n\n self.retryCheckout = function ($event) {\n $event.preventDefault();\n _squid.$util.reload();\n };\n\n self.isMessengerBAIntegration = _squid.$integration.getConfig('IS_MESSENGER_BA_INTEGRATION');\n\n self.loggingOut = function ($event) {\n $event.preventDefault();\n cancelPreventStateChange();\n self.props.logout();\n };\n\n (0, _jquery2['default'])('.paypalHeaderWrapper').hide();\n // Cancel link should be shown for \"Credit Ineligible\" page for DE\n if (self.errorCode !== 'BLOCK_PPC_INELIGIBLE_USER') {\n (0, _jquery2['default'])('#defaultCancelLink').hide();\n }\n (0, _jquery2['default'])('.footerWrapper').addClass('genericError');\n\n self.$on('$destroy', function (event) {\n (0, _jquery2['default'])('.paypalHeaderWrapper').show();\n if (self.errorCode !== 'BLOCK_PPC_INELIGIBLE_USER') {\n (0, _jquery2['default'])('#defaultCancelLink').show();\n }\n (0, _jquery2['default'])('.footerWrapper').removeClass('genericError');\n });\n\n // Returns the title string, based on custom key handler\n self.getTitle = function () {\n var key = self.titleKey;\n\n if (TITLE_KEY_HANDLER.hasOwnProperty(self.errorCode)) {\n return TITLE_KEY_HANDLER[self.errorCode].call(_this, key);\n }\n return (0, _squid.$renderContent)(key);\n };\n\n // Returns the content string, based on custom key handler\n self.getContent = function () {\n var key = self.contentKey;\n\n if (CONTENT_KEY_HANDLER.hasOwnProperty(self.errorCode)) {\n return CONTENT_KEY_HANDLER[self.errorCode].call(_this, key);\n }\n return (0, _squid.$renderContent)(key);\n };\n\n // Returns the cancel button label, based on presence of brand/merchant name\n self.getCancelLabel = function () {\n if (self.walletTokenization) {\n var brandName = _this.models.tokenizedWalletInfoModel.brandName();\n\n return (0, _squid.$renderContent)('common.backToTokenizedWalletB', { type: brandName });\n } else {\n var merchantName = _this.props.merchant;\n\n return (0, _index2.formatReturnContent)(_squid.$renderContent, merchantName);\n }\n };\n\n this.personalizedBanner = {\n show: false\n };\n\n _logger.$logger.info('checkout_fpti', {\n landing_page: 'error_page',\n int_error_code: '1',\n int_error_description: _uiRouter.$stateParams.code\n });\n },\n populate: function populate() {\n var _models = this.models,\n checkoutAppData = _models.checkoutAppData,\n checkoutPayee = _models.checkoutPayee,\n cart = _models.cart,\n auth = _models.auth;\n\n\n this.walletTokenization = cart && cart.isWalletTokenization();\n this.personalizedBanner.show = auth && auth.rememberedOT() && (0, _squid.$feature)('oneTouchPersonalization');\n\n if (checkoutAppData) {\n this.cancelLink = checkoutAppData.urls.cancel_url;\n }\n\n if (checkoutPayee) {\n var merchant = checkoutPayee.merchant;\n\n\n if (merchant.id && !this.hideCancelLink) {\n var hcl = _squid.$config.hideCancelLinkForMerchant;\n\n var shouldHide = hcl && hcl.indexOf(merchant.id) !== -1;\n\n if (shouldHide) {\n this.hideCancelLink = true;\n }\n }\n }\n\n if (auth) {\n this.showLogoutLink = _squid.$util.param('source') !== 'consumerApp' && this.props.logout && SHOW_LOGOUT_LINK_CODES.indexOf(this.errorCode) > -1 && !auth.disallow_login_switch; // disallow_login_switch is used for Google Pay - acount linking to hide \"not you\" button (see xo-hercules/auth/outputMapper)\n\n this.formattedNameInformal = (0, _squid.formatNameInformal)({\n first_name: auth.first_name,\n last_name: auth.last_name\n }) || auth.email;\n }\n\n // Map error code for Android Pay\n if (this.walletTokenization) {\n // For Android Pay, map all errors to generic Android Pay error except for\n // ANDROID_PAY_ALREADY_PROVISIONED\n if (this.errorCode !== 'ANDROID_PAY_ALREADY_PROVISIONED') {\n this.errorCode = 'DEFAULT_TOKENIZED_WALLET_ERROR';\n }\n }\n\n var titleKey = this.errorCode && TITLE_KEY_MAPPING[this.errorCode];\n\n if (titleKey) {\n if (titleKey === 'transactionRefusedTitle' && cart && cart.isBillingNoPurchase()) {\n this.titleKey = 'genericError.' + TRANSACTION_REFUSED_BA_TITLE_MSG['BA_NO_PURCHASE'];\n } else if (titleKey === 'transactionRefusedTitle' && cart && cart.isBillingPurchase()) {\n this.titleKey = 'genericError.' + TRANSACTION_REFUSED_BA_TITLE_MSG['BA_WITH_PURCHASE'];\n } else {\n this.titleKey = 'genericError.' + titleKey;\n }\n }\n\n var contentKey = this.errorCode && CONTENT_KEY_MAPPING[this.errorCode] || CONTENT_KEY_MAPPING.DEFAULT;\n this.contentKey = 'genericError.' + contentKey;\n }\n }\n});\n\n\n_angular.$rootScope;\n\n_uiRouter.$stateParams;\n\n_logger.$logger;\n\n_index.$AuthModel;\n\n_app.$TokenizedWalletInfoModel;\n\n_index2.$ReturnToMerchant;\n\n_index2.formatReturnContent;\n\n_squid.$Component;\n\n_squid.$util;\n\n_squid.$renderContent;\n\n_squid.$config;\n\n_squid.formatNameInformal;\n\n_squid.$integration;\n\n_squid.$feature;\n\n_index3.$CheckoutAppDataModel;\n\n_index3.$CheckoutCartModel;\n\n_index3.$CheckoutPayeeModel;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-ui-components/src/generic-error/directive.js\n// module id = ../node_modules/xo-ui-components/src/generic-error/directive.js\n// module chunks = 0","module.exports = \"
          \\n
          \\n
          \\n\\n \\n

          \\n {{ content('memberReview.loggedInWithOneTouch', {userName: formattedNameInformal, lastName: models.auth.last_name, firstName: models.auth.first_name}) }}\\n {{ content('memberReview.notYou')}}\\n

          \\n
          \\n
          \\n

          \\n {{ content('creditcard.hi', {userName: formattedNameInformal}) }}\\n {{ content('memberReview.notYou')}}\\n

          \\n
          \\n\\n
          \\n {{ getTitle() }}\\n
          \\n
          \\n
          \\n

          \\n \\n {{ content('genericError.tryAgain') }}\\n \\n

          \\n

          \\n \\n {{ getCancelLabel() }}\\n \\n

          \\n
          \\n
          \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-ui-components/src/generic-error/template.html\n// module id = ../node_modules/xo-ui-components/src/generic-error/template.html\n// module chunks = 0","\n\nvar _app = require('xo-models/src/app');\n\nvar _index = require('xo-models/src/checkout/index');\n\nvar _squid = require('squid');\n\ndefine(['jquery', 'angular', 'squid/index', 'text!./template.html'], function ($, angular, squid, template) {\n\n return angular.module('xo-generic-message.directive', ['squid']).directive('xoGenericMessage', ['$rootScope', function ($rootScope) {\n\n return {\n template: template,\n\n scope: {\n token: '=?'\n },\n\n controller: ['$scope', '$rootScope', '$stateParams', '$state', '$logger', '$CheckoutAppDataModel', '$DeviceInfo', '$window', '$populate', function ($scope, $rootScope, // eslint-disable-line no-shadow\n $stateParams, $state, $logger, $CheckoutAppDataModel, $DeviceInfo, $window, $populate) {\n\n $rootScope.$on('$stateChangeStart', function (event, toState, toParams, fromState, fromParams) {\n event.preventDefault();\n });\n\n $('.paypalHeaderWrapper').hide();\n $('.footerWrapper').addClass('genericMessage');\n\n var titleKeyMapping = {\n PAYMENT_SUCCESS: 'paymentSuccessTitle',\n DEFAULT: 'paymentSuccessTitle'\n };\n\n $scope.titleKey = 'genericMessage.' + ($stateParams.code && titleKeyMapping[$stateParams.code]) || titleKeyMapping.DEFAULT;\n\n var contentKeyMapping = {\n PAYMENT_SUCCESS: 'paymentSuccessMessage',\n DEFAULT: 'paymentSuccessMessage'\n };\n\n var contentKey = $stateParams.code && contentKeyMapping[$stateParams.code];\n\n if (contentKey) {\n $scope.contentKey = 'genericMessage.' + contentKey;\n }\n\n $populate($scope, {\n checkoutAppData: $CheckoutAppDataModel.instance($scope.token),\n tokenizedWalletInfoModel: _app.$TokenizedWalletInfoModel.instance($scope.token),\n cart: _index.$CheckoutCartModel.instance($scope.token)\n }).then(function () {\n var merchant = $scope.checkoutAppData.merchant;\n\n $scope.merchant = merchant.brand_name || merchant.merchant_name || merchant.merchant_email;\n\n var _$stateParams$returnU = $stateParams.returnUrl,\n returnUrl = _$stateParams$returnU === undefined ? $scope.checkoutAppData.urls.return_url : _$stateParams$returnU;\n\n var isHTTPUrl = Boolean(returnUrl.indexOf('http') === 0 || returnUrl.indexOf('www') === 0);\n var enableSuccessReturnButton = Boolean($DeviceInfo.isDevice() && !isHTTPUrl);\n\n if (enableSuccessReturnButton) {\n $scope.enableSuccessReturnUrl = true;\n var contentWithButtonKeyMapping = {\n PAYMENT_SUCCESS: 'successMessage',\n DEFAULT: 'paymentSuccessMessage'\n };\n var contentWithButtonKey = $stateParams.code && contentWithButtonKeyMapping[$stateParams.code];\n\n if (contentWithButtonKey) {\n $scope.contentKey = '';\n }\n $scope.returnButtonLabel = (0, _squid.$renderContent)('genericMessage.continueButton');\n var walletTokenization = $scope.cart && $scope.cart.isWalletTokenization();\n\n if (walletTokenization) {\n var brandName = $scope.tokenizedWalletInfoModel.brandName();\n\n $scope.returnButtonLabel = (0, _squid.$renderContent)('common.backToTokenizedWalletB', { type: brandName });\n }\n $scope.goToMerchant = function () {\n $logger.info('checkout_fpti', {\n 'from': 'POST_3DS',\n 'to': 'checkout_end',\n 'message': 'REDIRECT_TO_MERCHANT_ON_BUTTON_CLICK',\n 'returnUrl': returnUrl\n });\n $window.onunload = $window.onbeforeunload = function () {};\n $window.location = returnUrl;\n };\n }\n });\n\n $scope.$on('$destroy', function (event) {\n $('.paypalHeaderWrapper').show();\n $('.footerWrapper').removeClass('genericMessage');\n });\n }]\n };\n }]);\n});\n\n_app.$TokenizedWalletInfoModel;\n\n_index.$CheckoutCartModel;\n\n_squid.$renderContent;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-ui-components/src/generic-message/directive.js\n// module id = ../node_modules/xo-ui-components/src/generic-message/directive.js\n// module chunks = 0","\n\ndefine(['squid/index', 'text!./template.html'], function (squid, template) {\n squid.module('xo-message.directive', ['squid']).directive('xoMessage', ['$timeout', '$loader', '$rootScope', function ($timeout, $loader, $rootScope) {\n return {\n scope: {\n message: '=?', // Expected type - {msgs: [], type: \"info|error|success|warning\"}\n isgreyheader: '=?'\n },\n template: template,\n link: function link(scope, element, attrs) {\n\n // Hide and show the alerts so that messages can be registered by\n // screen reader even if they are repeats. Uses $timeout to\n // wait for DOM before showing alerts again.\n var toggleAlert = function toggleAlert() {\n var $alert = element.find('ul');\n $alert.detach();\n $timeout(function () {\n element.find('#pageLevelErrors').append($alert);\n });\n };\n\n // Toggle the alert whenever message changes by removing it and reappending it\n // to the DOM. Should fire even if message\n // is changed to the same, as assumes that the message should be reapplied.\n var cancel;\n scope.$watchCollection('message', function () {\n if ($loader.isLoading() && !cancel) {\n // If loading, toggle the alert after all loading calls have been made.\n // This is so that the alert can be read by screen reader after focus\n cancel = $rootScope.$on('allLoaded', function () {\n cancel();\n toggleAlert();\n\n cancel = null;\n });\n } else {\n toggleAlert();\n }\n });\n\n scope.$on('$destroy', function () {\n if (cancel) {\n cancel();\n }\n });\n }\n };\n }]);\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-ui-components/src/message/directive.js\n// module id = ../node_modules/xo-ui-components/src/message/directive.js\n// module chunks = 0","\n\nrequire('../accessibility/directive');\n\nvar _squid = require('squid');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n// Directives used in the template\n(0, _squid.$registerDirective)('xoModal', function () {\n return {\n template: _template2['default'],\n restrict: 'E',\n replace: true,\n transclude: true,\n scope: {\n show: '=?',\n showCloseButton: '=?',\n enableCloseOnEscape: '=?',\n onClose: '=?',\n enableMobileInterstitial: '@?',\n overrideDefaultContainer: '@?' // Boolean to determine if default styling should be applied to container\n },\n controller: ['$scope', function ($scope) {\n $scope.animate = false; // Don't animate until triggered\n $scope.showOverlay = $scope.show;\n\n var escapeKeyHandler = function escapeKeyHandler($event) {\n if ($event.keyCode === 27) {\n // Escape key maps to keycode 27\n $scope.hideModal();\n }\n };\n\n if ($scope.enableCloseOnEscape) {\n // Handle escape button as close button click\n $(document).bind('keyup', escapeKeyHandler);\n }\n\n $scope.hideModal = function ($event) {\n if ($event) {\n $event.preventDefault();\n }\n\n $scope.show = false;\n $(document).unbind('keyup', escapeKeyHandler);\n if ($scope.onClose) {\n $scope.onClose();\n }\n };\n }],\n\n link: function link($scope, elem, attrs) {\n // HACK: without this check, the modal slides down/fades out upon it being rendered\n $scope.$watch('show', function (newVal, oldVal) {\n if (oldVal !== newVal) {\n // When the show prop changes\n $scope.animate = true; // Ensure the modal is animated\n }\n });\n }\n };\n});\n\n_squid.$registerDirective;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-ui-components/src/modal/directive.js\n// module id = ../node_modules/xo-ui-components/src/modal/directive.js\n// module chunks = 0","module.exports = \"
          \\n\\t
          \\n\\t
          \\n\\t\\t
          \\n\\t\\t\\t
          \\n\\t\\t\\t
          \\n\\t\\t\\t{{ content('common.back') }}\\n\\t\\t
          \\n\\t
          \\n
          \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-ui-components/src/modal/template.html\n// module id = ../node_modules/xo-ui-components/src/modal/template.html\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _squid = require('squid');\n\nexports['default'] = (0, _squid.$registerDirective)('prefix-attrs-with', function () {\n return {\n restrict: 'A',\n link: function link(scope, elem, attrs) {\n var prefix = attrs.prefixAttrsWith;\n\n if (prefix && prefix.length) {\n ['id', 'for', 'name'].forEach(function (attrName) {\n var base = attrs[attrName];\n\n if (base) {\n elem.attr(attrName, _squid.$util.dasherizeToCamel(prefix + '-' + base));\n }\n });\n }\n }\n };\n});\n\n\n_squid.$util;\n\n_squid.$registerDirective;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-ui-components/src/prefix-attrs-with/directive.js\n// module id = ../node_modules/xo-ui-components/src/prefix-attrs-with/directive.js\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _squid = require('squid');\n\nvar _angular = require('angular');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nrequire('./styles');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n/**\n * xo-ui-select-simple\n * Full directive/template for the dropdown UI component (http://paypal-ui/components/forms/dropdowns)\n *\n * props:\n * - options: Array
          \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-ui-components/src/select-simple/template.html\n// module id = ../node_modules/xo-ui-components/src/select-simple/template.html\n// module chunks = 0","\n\ndefine(['angular', 'text!./template.html'], function (angular, template) {\n return angular.module('xo-spinner-button.directive', []).directive('xoSpinnerButton', [function () {\n return {\n template: template,\n scope: {\n token: '=?',\n track: '@?',\n onClick: '=?',\n buttonText: '@?',\n isProcessing: '=?',\n validate: '=?'\n },\n controller: ['$scope', function ($scope) {\n\n $scope.submit = function () {\n if ($scope.onClick) {\n $scope.onClick();\n } else {\n $scope.validate = true;\n }\n };\n }]\n };\n }]);\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-ui-components/src/spinner-button/directive.js\n// module id = ../node_modules/xo-ui-components/src/spinner-button/directive.js\n// module chunks = 0","\n\ndefine(['jquery', 'squid/index', 'text!./template.html', 'xo-beaver/dist/logger'], function ($, squid, template) {\n\n squid.module('xo-spinner.directive', ['squid', 'beaver']).directive('xoSpinner', [function () {\n\n return {\n scope: {},\n template: template,\n controller: ['$scope', '$element', '$rootScope', '$locale', '$logger', '$loader', '$timeout', function ($scope, $element, $rootScope, $locale, $logger, $loader, $timeout) {\n var $body = angular.element(document.getElementsByTagName('body'));\n var $priorActiveElement = $();\n var $capturedElement = $();\n var $header = $('header');\n var $slidingArea = $('#main');\n var $footer = $('footer');\n\n /**\n * This hides page content from any screen readers.\n * When the spinner's active, the only thing that should be read out is the \"Loading...\" text.\n *\n * The only crappy thing here is the spinner's nested deep in the content, so please excuse this jQuery crap.\n * At the very least, let's cache these selectors :|\n */\n function hidePageContentFromScreenReader(toggle) {\n $header.attr('aria-disabled', toggle);\n $slidingArea.attr('aria-disabled', toggle);\n $footer.attr('aria-disabled', toggle);\n }\n\n function preventDefault(event) {\n var _event$target = event.target;\n _event$target = _event$target === undefined ? {} : _event$target;\n var targetId = _event$target.id;\n\n // Only call preventDefault if the target is not a captcha input.\n // If the target is a captcha input we don't want to prevent the\n // user from entering the captcha code.\n\n if (targetId !== 'captchaCode') {\n event.preventDefault();\n }\n }\n\n function captureFocus(event) {\n if (!$element.has(event.target).length) {\n $capturedElement = $(event.target);\n }\n }\n\n function setLoadingMessage(message) {\n if (angular.isObject(message)) {\n $scope.message = message.heading;\n $('#spinnerMessage').css('font-size', '17.5px');\n $('#spinnerMessage').html(message.heading);\n $('#spinnerSubHeading').html(message.subHeading);\n } else {\n $scope.message = message;\n $('#spinnerMessage').html(message);\n }\n }\n\n function showSpinner() {\n $scope.loading = true;\n $logger.info('show_loading_spinner');\n $body.addClass('loading');\n\n // remember what was previously focused\n $priorActiveElement = $(':focus');\n\n $(':input, a').blur();\n\n hidePageContentFromScreenReader(true);\n\n if ($loader.firstLoad()) {\n setLoadingMessage($locale.content.get('base.processing'));\n }\n\n // focus on the message so that screen readers will let the user know the page is loading\n $(document).on('keydown', preventDefault);\n $(document).on('focusin', captureFocus);\n $timeout(function () {\n $('#spinner-message').focus();\n });\n }\n\n function hideSpinner() {\n $scope.loading = false;\n $logger.info('hide_loading_spinner');\n $('#preloaderSpinner').hide();\n $body.removeClass('loading');\n $(document).off('keydown', preventDefault);\n $(document).off('focusin', captureFocus);\n\n hidePageContentFromScreenReader(false);\n\n // Focus captured element if focus was given to an element while spinner was active.\n if ($capturedElement.length && $(document.body).has($capturedElement).length) {\n $capturedElement.focus();\n // Focus element that had focus before if it is still within the document\n } else if ($priorActiveElement.length && $(document.body).has($priorActiveElement).length) {\n $priorActiveElement.focus();\n } else {\n // If focus is not managed, default to focusing sliding area. Fixes FF and IE bug where tab focus starts from\n // the element last clicked, rather than top of page.\n $slidingArea.focus();\n }\n $priorActiveElement = $();\n $capturedElement = $();\n }\n\n var cancelStartLoad = $rootScope.$on('startLoad', showSpinner);\n var cancelAllLoaded = $rootScope.$on('allLoaded', hideSpinner);\n\n var cancelSetLoadingMessage = $rootScope.$on('loadingMessage', function (event, text) {\n setLoadingMessage(text);\n });\n\n $scope.$on('$destroy', function () {\n hideSpinner();\n cancelStartLoad();\n cancelAllLoaded();\n cancelSetLoadingMessage();\n });\n\n if ($loader.isLoading()) {\n showSpinner();\n }\n }]\n };\n }]);\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-ui-components/src/spinner/directive.js\n// module id = ../node_modules/xo-ui-components/src/spinner/directive.js\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _squid = require('squid');\n\nvar _angular = require('angular');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nrequire('./styles');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n/**\n * THIS IS A WIP\n * At this point, only pass 2 tabs!\n *\n * xo-ui-tabs\n * props:\n * - tabs: Array ([{id: 1, label: content('string')}, {id: 2, label: content('otherString')}])\n * - onSelect: Function, gets called when a tab is selected\n * - selectedTab: Tab ({id: 1, label: content('string')})\n */\n\nexports['default'] = _squid.$Component.extend('$xoUiTabsComponent', {\n tag: 'xo-ui-tabs',\n template: _template2['default'],\n props: {\n tabs: {\n type: 'var',\n required: true\n },\n onSelect: {\n type: 'var',\n required: false\n },\n selectedTab: {\n type: 'var',\n required: false\n }\n },\n actions: {\n getTabIsActive: function getTabIsActive(tab) {\n return this.compSelectedTab && tab.id === this.compSelectedTab.id;\n }\n },\n lifecycle: {\n enter: function enter() {\n var _this = this;\n\n var isValidSelected = function isValidSelected() {\n var inTabs = function inTabs() {\n return Boolean(_this.tabs.filter(function (tab) {\n return _this.selectedTab.id === tab.id && _this.selectedTab.label === tab.label;\n }).length);\n };\n\n return _this.selectedTab && inTabs();\n };\n\n var updateComputedSelected = function updateComputedSelected() {\n if (_this.tabs.length <= 1) {\n return;\n }\n\n if (isValidSelected()) {\n _this.compSelectedTab = (0, _angular.extend)({}, _this.selectedTab);\n return;\n } else {\n _this.compSelectedTab = (0, _angular.extend)({}, _this.tabs[0]);\n _this.onSelect(_this.compSelectedTab);\n }\n };\n\n this.$watch('selectedTab', updateComputedSelected);\n }\n }\n});\n\n\n_squid.$Component;\n\n_angular.extend;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-ui-components/src/tabs/directive.js\n// module id = ../node_modules/xo-ui-components/src/tabs/directive.js\n// module chunks = 0","module.exports = \"
          1\\\" class=\\\"tabContainer\\\">\\n
          \\n
          \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-ui-components/src/tabs/template.html\n// module id = ../node_modules/xo-ui-components/src/tabs/template.html\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _angular = require('angular');\n\nvar _squid = require('squid');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nfunction getDefaultShowEvent($el) {\n return $el.is('a') || $el.is('button') ? 'click' : 'focus';\n}\n\n// Modify the aria-describedby property to include the id when showing the element so contents are properly read\nfunction addDescribedById($el, id) {\n var describedByIds = $el.attr('aria-describedby') ? $el.attr('aria-describedby').split(' ') : [];\n\n if (!~describedByIds.indexOf(id)) {\n describedByIds.push(id);\n }\n\n $el.attr('aria-describedby', describedByIds.join(' '));\n}\n\n// Modify the aria-describedby attribute to remove the id when hiding the element so contents are no longer read\nfunction removeDescribedById($el, id) {\n var describedByIds = $el.attr('aria-describedby') || '';\n\n $el.attr('aria-describedby', describedByIds.split(' ').filter(function (existingId) {\n return existingId !== id;\n }).join(' '));\n}\n\nvar isMouseTypeEvent = function isMouseTypeEvent(type) {\n return (/mouse/.test(type)\n );\n};\n\nfunction debounceOnMouseTrigger(type, fn) {\n var isMouseType = isMouseTypeEvent(type);\n\n return function () {\n var _arguments = arguments;\n\n if (isMouseType) {\n (0, _angular.$timeout)(function () {\n return fn.apply(null, _arguments);\n }, 250);\n } else {\n fn.apply(null, arguments);\n }\n };\n}\n\nexports['default'] = _squid.$Component.extend('xoTooltip', {\n tag: 'xo-tooltip',\n template: _template2['default'],\n transclude: true,\n props: {\n trigger: {\n type: 'str',\n required: false\n },\n showEvent: {\n type: 'str',\n required: false\n },\n hideEvent: {\n type: 'str',\n required: false\n },\n displayInline: {\n type: 'var',\n required: false\n },\n align: {\n type: 'str',\n required: false\n }\n },\n lifecycle: {\n populate: function populate() {\n var $element = this.$element,\n trigger = this.trigger;\n\n var $trigger = $(trigger);\n var toolTip = $element.find('.toolTip');\n var toolTipID = this.toolTipID = 'toolTip_' + Math.random().toString(36).replace(/[^a-z]+/g, '').substr(0, 7);\n var isMouseOver = false;\n\n /**\n * Toggle the show/hide state of the tooltip\n */\n var toggle = function toggle(event) {\n if (toolTip.length && toolTip.is(':visible')) {\n close(event);\n } else {\n show(event);\n }\n };\n\n /**\n * Show the tooltip, if not already shown.\n */\n var show = function show(event) {\n if (event) {\n event.stopPropagation();\n event.preventDefault();\n }\n\n addDescribedById($trigger, toolTipID);\n\n // Show the tooltip and position the page scroll to include the element on page\n $element.show();\n toolTip.slideDown({\n progress: function progress() {\n var windowBot = $(window).scrollTop() + $(window).height();\n var toolTipBot = toolTip.offset().top + toolTip.outerHeight();\n if (toolTipBot > windowBot) {\n $(window).scrollTop(toolTipBot - $(window).height());\n }\n }\n });\n };\n\n /**\n * Hide the tooltip\n */\n var close = function close(event) {\n if (event) {\n event.stopPropagation();\n event.preventDefault();\n }\n\n if (!isMouseOver) {\n if (toolTip.length && toolTip.is(':visible')) {\n toolTip.slideUp(100, function () {\n $element.hide();\n });\n } else {\n $element.hide();\n }\n\n removeDescribedById($trigger, toolTipID);\n }\n };\n\n /**\n * Setting up the DOM behavior for this component\n */\n // Set defaults for showEvent and hideEvent if not provided\n this.showEvent = this.showEvent || getDefaultShowEvent($element);\n this.hideEvent = this.hideEvent || 'blur';\n\n var SHOW_EVENT = this.showEvent + '.toolTip';\n var HIDE_EVENT = this.hideEvent + '.toolTip';\n\n // Initially hide the tooltip\n $element.hide();\n\n // If tooltip is clicked, don't bubble up and trigger parent handlers\n $element.on('click', function (event) {\n return event.stopPropagation();\n });\n\n // If the tooltip contains an element with a \"close\" class, treat it as a close button\n $element.on('click', '.close', close);\n\n // Track whether the mouse is on the tooltip or not\n $element.on('mouseover', function () {\n isMouseOver = true;\n });\n $element.on('mouseleave', function () {\n isMouseOver = false;\n });\n\n // Clicking anywhere on the document not on the tooltip will close the tooltip.\n // Event is not passed so that other actions are not prevented\n $(document).on('click.toolTip', function (e) {\n // Needed because when the trigger is clicked, this click handler will also be fired.\n // So without this check the tooltip will open due to the trigger click and then this\n // document event handler would immediately close it\n if (!$trigger.is(e.target)) {\n close();\n } else {\n show();\n }\n });\n\n // Register the handlers to show and hide the tooltip\n if (this.showEvent === this.hideEvent) {\n $trigger.on(SHOW_EVENT, toggle);\n $element.on(SHOW_EVENT, toggle);\n } else {\n $trigger.on(SHOW_EVENT, show);\n $trigger.on(HIDE_EVENT, debounceOnMouseTrigger(this.hideEvent, close));\n // Also allow close event to happen on the tooltip itself, for mouse type events\n $element.on(HIDE_EVENT, debounceOnMouseTrigger(this.hideEvent, close));\n }\n\n // Clean up external listeners on exit\n this.$on('$destroy', function () {\n $(document).off('click.toolTip');\n $trigger.off(SHOW_EVENT);\n $trigger.off(HIDE_EVENT);\n close();\n });\n }\n }\n});\n\n\n_angular.$timeout;\n\n_squid.$Component;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-ui-components/src/tooltip/directive.js\n// module id = ../node_modules/xo-ui-components/src/tooltip/directive.js\n// module chunks = 0","module.exports = \"
          \\n
          \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-ui-components/src/tooltip/template.html\n// module id = ../node_modules/xo-ui-components/src/tooltip/template.html\n// module chunks = 0","\n\nvar _angular = require('angular');\n\nvar _squid = require('squid');\n\nvar _jquery = require('jquery');\n\nvar _jquery2 = _interopRequireDefault(_jquery);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n// Generic scroll top.\n(0, _squid.$registerDirective)('scrollTop', function () {\n return {\n link: function link(scope, element, attr) {\n var targetId = attr['scrollTop'];\n\n (0, _jquery2['default'])(element).on('focus', function () {\n (0, _jquery2['default'])('#' + targetId).scrollTop((0, _jquery2['default'])(element).offset().top);\n });\n }\n };\n});\n\n// Element types that accept disabled attribute\n// See https://www.w3.org/TR/html5/disabled-elements.html#disabled-elements\n//\n// Usage:\n// Provide expression to be evaluated to determine if form needs to be disabled\n// Form will be disabled when the expression evaluates to true\n//
          \nvar ACCEPT_DISABLED = 'button, input, select, textarea, optgroup, option, fieldset';\n(0, _squid.$registerDirective)('disable-form', function () {\n return {\n link: function link(scope, element, attrs) {\n var toggleDisabled = function toggleDisabled(disable) {\n var collection = element.find(ACCEPT_DISABLED);\n\n if (disable) {\n collection.attr('disabled', true);\n } else {\n collection.removeAttr('disabled');\n }\n };\n\n // Watch number of elements to get a rough idea of if any new inputs are\n // added that also need to be disabled.\n scope.$watch(function checkIfDisabled() {\n return (0, _angular.$parse)(attrs['disableForm'])(scope) && element.find(ACCEPT_DISABLED).length;\n }, toggleDisabled);\n }\n };\n});\n\n_angular.$parse;\n\n_squid.$registerDirective;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-ui-components/src/ui-utils/directive.js\n// module id = ../node_modules/xo-ui-components/src/ui-utils/directive.js\n// module chunks = 0","\n\nvar _angular = require('angular');\n\nvar _angular2 = _interopRequireDefault(_angular);\n\nvar _jquery = require('jquery');\n\nvar _jquery2 = _interopRequireDefault(_jquery);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n_angular2['default'].module().directive('xoValidation', function () {\n return {\n template: '',\n restrict: 'A',\n require: 'ngModel',\n link: function link(scope, elem, attr, ngModel) {\n var validationUtil = {\n // because IE8 doesnt have String.prototype.trim()\n trim: function trim(value) {\n var rtrim = /^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g;\n\n return value.replace(rtrim, '');\n },\n\n\n /**\n * Generic function that runs a given input against\n * a given regular expression\n *\n * @param {String} value input to test\n * @param {String/RegExp} regex Regular expression to test against\n * @returns {Boolean} matches or does not match given pattern\n */\n valid: function valid(value, regex) {\n if (this.empty(value)) {\n return false;\n }\n\n if (_angular2['default'].isString(regex)) {\n regex = new RegExp(regex);\n }\n\n return regex ? regex.test(value) : true;\n },\n\n\n // returns whether empty or not\n empty: function empty(value) {\n if (!value) {\n return true;\n }\n\n // IE8 and below doesn't have native .trim()\n return !this.trim(value);\n },\n\n\n // returns whether alphabetic or not\n alphabetic: function alphabetic(value) {\n return this.valid(value, /[A-Za-z]+$/);\n },\n\n\n // returns whether numeric or not\n numeric: function numeric(value) {\n var NUMERIC_REGEX = new RegExp('^[0-9]+$');\n\n return this.valid(value, NUMERIC_REGEX);\n },\n validBankAccount: function validBankAccount(value) {\n if (!scope.showIBAN) {\n return this.numeric(value);\n }\n\n return true;\n },\n validRouting: function validRouting(value) {\n if (!scope.showIBAN) {\n return this.valid(value, /^\\d{8}$/);\n }\n return true;\n },\n validIBANCode: function validIBANCode(value) {\n if (scope.showIBAN) {\n value = value && value.replace(/ +/g, '');\n return this.valid(value, /^([A-Z]){2}\\d{2}[A-Z0-9]{1,30}$/);\n }\n return true;\n },\n validIBAN: function validIBAN(value) {\n if (scope.showIBAN) {\n value = value && value.replace(/ +/g, '');\n return this.valid(value, /^DE\\d{20}$/);\n }\n\n return true;\n },\n validIBANCountry: function validIBANCountry(value) {\n value = value && value.replace(/ +/g, '');\n return !this.valid(value, /^([^D0-9][E]|[D][^E0-9]|[^D0-9][^E0-9])\\d{2}[A-Z0-9]{1,30}$/i);\n },\n\n\n // @Deprecated: This function is deprecated.\n // first two letters are the country code the rest are the bank account numbers max length 32\n validIBANWithValidCountryCode: function validIBANWithValidCountryCode(value) {\n value = value && value.replace(/ +/g, '');\n return this.valid(value, /^(AT|BE|CY|EE|FI|FR|DE|EL|IE|IT|LV|LT|LU|MT|MC|NL|PT|SK|SI|ES)\\d{3,32}$/i);\n },\n validLast4: function validLast4(value) {\n // @TODO - Unsafe regular expression, need to fix.\n var LAST_4 = /^([0-9]{4})?$/; // eslint-disable-line fasec/no-unsafe-regex\n\n return this.valid(value, LAST_4);\n },\n validStreet: function validStreet(value) {\n return this.valid(value, /^([A-Za-z0-9-. ]*)$/);\n },\n\n\n // Validating phone format with metadata from griffin\n validPhone: function validPhone(value) {\n var regex = scope.pattern;\n\n /*\n * User can enter phone format in various manner according to griffin mask\n * (00) 0000-0000\n * 00 000 0000\n * Since the griffin pattern only validates against numbers, need to trim the input\n * to only validate the numbers\n */\n value = value && value.replace(/[^0-9]/gi, '');\n return this.valid(value, regex);\n },\n validDobYear: function validDobYear(value) {\n return value !== 'YYYY';\n },\n validDobDay: function validDobDay(value) {\n return value !== 'DD';\n },\n validDobMonth: function validDobMonth(value) {\n return value !== 'MM';\n },\n validPoBox: function validPoBox(value) {\n // @TODO - Unsafe regular expression, need to fix.\n var boxRE = /\\b(((general\\s+)?post\\s+(office|mail)?)|((g\\.?)?p[-\\.]?\\s?[om][\\.-]?))\\s?(b(ox|\\.)?)?(\\s+\\d+)\\b/i; // eslint-disable-line fasec/no-unsafe-regex\n\n if (boxRE.test(value)) {\n return true;\n }\n\n return false;\n },\n validAddressSansPoBox: function validAddressSansPoBox(value) {\n var boxRE = /(p[-.]? ?[om]?[-.]? ?|post ?(office|mail)?)? ?b(.|ox)[^,]*\\d+/i;\n var cassRE = /(drawer|locker|bin|firm caller)\\s?#?[0-9]+/i;\n\n if (boxRE.test(value) || cassRE.test(value)) {\n return false;\n }\n return true;\n },\n validEmailOrPhone: function validEmailOrPhone(value) {\n if (!value) {\n return false;\n }\n\n return this.validEmail(value) || this.validPhone(value);\n },\n validEmail: function validEmail(value) {\n if (!value) {\n return false;\n }\n var trimmedValue = this.trim(value); // Trim leading and trailing whitespace\n // @TODO - Unsafe regular expression, need to fix.\n var EMAIL_REGEX = /^((([a-z]|\\d|[!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+(\\.([a-z]|\\d|[!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+)*)|((\\x22)((((\\x20|\\x09)*(\\x0d\\x0a))?(\\x20|\\x09)+)?(([\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x7f]|\\x21|[\\x23-\\x5b]|[\\x5d-\\x7e]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(\\\\([\\x01-\\x09\\x0b\\x0c\\x0d-\\x7f]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]))))*(((\\x20|\\x09)*(\\x0d\\x0a))?(\\x20|\\x09)+)?(\\x22)))@((([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))\\.)+(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))\\.?$/i; // eslint-disable-line\n\n return this.valid(trimmedValue, EMAIL_REGEX) && !this.highAscii(trimmedValue);\n },\n highAscii: function highAscii(value) {\n var trimmedValue = this.trim(value);\n // @TODO - Unsafe regular expression, need to fix.\n var HIGH_ASCII_REGEX = /[^\\x00-\\x7F]/; // eslint-disable-line no-control-regex\n\n return this.valid(trimmedValue, HIGH_ASCII_REGEX);\n },\n\n\n // expected format: MM/DD/YYYY\n validDate: function validDate(value) {\n var re = /^\\d{1,2}\\/\\d{1,2}\\/\\d{4}$/;\n var dArr = value.split('/');\n var d = new Date(value);\n var isValid = false;\n\n if (re.test(value)) {\n isValid = d.getMonth() + 1 === dArr[0] && d.getDate() === dArr[1] && d.getFullYear() === dArr[2];\n }\n\n return isValid;\n },\n\n\n /* Expects value and state. state can be \"past\" or \"future\".\n NOTE: This function validates only month and year, not day!\n Please use validDate() if you need to validate the whole date. */\n validDateWithoutDay: function validDateWithoutDay(value, options) {\n // eslint-disable-line max-statements\n var state = options.state;\n\n value = value.replace(/\\s/g, '');\n\n if (value === '') {\n return true;\n }\n\n var split = value.split('/');\n var month = split[0];\n var year = split[1];\n var currentYear = parseInt(new Date().getFullYear().toString().substr(2, 2), 10);\n var currentMonth = parseInt(new Date().getMonth(), 10) + 1;\n var validYear = true;\n var validMonth = true;\n\n if (value.length < 5) {\n return false;\n }\n\n if (!this.validDobMonth(month)) {\n return false;\n }\n\n month = parseInt(month, 10);\n year = parseInt(year, 10);\n\n if (state === 'past') {\n validYear = year <= currentYear;\n if (!validYear) {\n return false;\n }\n if (year === currentYear) {\n validMonth = month <= currentMonth;\n }\n } else if (state === 'future') {\n validYear = year >= currentYear;\n if (!validYear) {\n return false;\n }\n if (year === currentYear) {\n validMonth = month >= currentMonth;\n }\n }\n\n if (!validYear || !validMonth) {\n return false;\n }\n\n return true;\n },\n\n\n // formats to MM/DD/YYYY\n mmddyyyy: function mmddyyyy(day, month, year) {\n if (year.length < 4) {\n year = '20' + year;\n }\n\n return this.twoDigits(month) + '/' + this.twoDigits(day) + '/' + this.twoDigits(year);\n },\n\n\n // formats to YY-MMM-DDDD\n yyyymmdd: function yyyymmdd(day, month, year) {\n if (year.length < 4) {\n year = '20' + year;\n }\n\n return year + '-' + this.twoDigits(month) + '-' + this.twoDigits(day);\n },\n\n\n // pads a number to two digits\n twoDigits: function twoDigits(value) {\n return value < 10 ? '0' + value : '' + value;\n },\n\n\n // expects YYYY-MM-DD\n legalAge: function legalAge(value) {\n if (this.empty(value)) {\n return false;\n }\n\n var dateParts = value.split('-'); // expecting YYYY-MM-DD\n var birthDate = new Date(dateParts[0], dateParts[1] - 1, dateParts[2]);\n var yr = 365.25 * 24 * 60 * 60 * 1000; // milliseconds in a year\n var validBD = new Date(new Date() - 18 * yr);\n\n return validBD >= birthDate;\n },\n validZip: function validZip(value, options) {\n\n var postalCodeRegex = {\n // TODO: Once this is removed from the xo-add-address template, we can remove it...\n GB: /[A-Z]{1,2}[0-9][0-9A-Z]?\\s?[0-9][A-Z]{2}/,\n /**\n * Note: These are \"nice to have\".\n * Once we add support for these countries, we can remove these.\n */\n BA: /^\\d{5}$/,\n CY: /^\\d{4}$/,\n EE: /^\\d{5}$/,\n HR: /^\\d{5}$/,\n LU: /^\\d{4}$/,\n LV: /^\\d{4}$/,\n MT: /^\\d{3,4}$/,\n SI: /^\\d{4}$/,\n SK: /^[0-9]{3}[\\s][0-9]{2}$/,\n NZ: /^\\d{4}$/,\n LT: /^\\d{5}$/,\n BG: /^\\d{4}$/,\n CZ: /^\\d{5}$/,\n GR: /^\\d{3}[\\s]\\d{2}$/,\n HU: /^\\d{4}$/,\n MX: /^\\d{5}$/\n };\n\n var country = options && options.country;\n var regex = scope.zipEntry && scope.zipEntry.validationPattern || postalCodeRegex[country];\n var isRequired = scope.zipEntry && scope.zipEntry.required;\n\n if (!isRequired && this.empty(value)) {\n return true;\n }\n\n // If there is no regex, or it's not populated yet...\n if (!regex || _angular2['default'].isString(regex) && regex.indexOf('validationPattern') > -1) {\n return !this.empty(value);\n }\n\n value = value && value.toUpperCase();\n\n if (_angular2['default'].isString(regex)) {\n if (regex.charAt(0) !== '^') {\n regex = '^' + regex;\n }\n if (regex.charAt(regex.length - 1) !== '$') {\n regex += '$';\n }\n }\n\n return this.valid(value, regex);\n },\n validExpiry: function validExpiry(value, options) {\n var $monthEl = (0, _jquery2['default'])('[ng-model=\"card.expiry_month\"]');\n var $yearEl = (0, _jquery2['default'])('[ng-model=\"card.expiry_year\"]');\n var month = $monthEl.val();\n var year = $yearEl.val();\n var isValid = false;\n var monthElName = 'card.expiry_month';\n var yearElName = 'card.expiry_year';\n var cardType = options.cardType;\n\n if (month) {\n month = $monthEl.find('option')[$monthEl.val() * 1 + 1].label;\n }\n\n if (year) {\n year = $yearEl.find('option')[$yearEl.val() * 1 + 1].label;\n }\n\n if (month && year) {\n isValid = this.validExpires(month, year);\n }\n\n var formName = $monthEl.closest('form').attr('id');\n var form = scope[formName] || scope.$parent[formName];\n var monthFieldName = monthElName;\n var yearFieldName = yearElName;\n\n if (monthFieldName.indexOf('.') !== -1) {\n monthFieldName = monthFieldName.split('.')[1];\n }\n\n if (yearFieldName.indexOf('.') !== -1) {\n yearFieldName = yearFieldName.split('.')[1];\n }\n\n var cardsDontNeedExpiry = ['COFIDIS', 'COFINOGA', 'CETELEM'];\n\n if (cardType && cardsDontNeedExpiry.indexOf(cardType) !== -1) {\n isValid = true;\n }\n\n if (form) {\n form[monthFieldName].$setValidity('validExpiry', isValid);\n form[yearFieldName].$setValidity('validExpiry', isValid);\n }\n\n return isValid;\n },\n validExpires: function validExpires(month, year) {\n var date = new Date();\n var currentYear = parseInt(date.getFullYear().toString().substr(2, 2), 10);\n var currentMonth;\n\n if (year < currentYear) {\n return false;\n } else if (year > currentYear) {\n return this.validDobMonth(month);\n }\n\n // account for display date vs. system date\n currentMonth = date.getMonth() + 1;\n return this.validDobMonth(month) && month >= currentMonth;\n },\n startDate: function startDate(value, options) {\n var valueOptions = {\n cardType: scope.card.type\n };\n\n valueOptions[elem.attr('id')] = value;\n\n return this.setStartDateValidity(valueOptions);\n },\n\n\n setExpiryValidity: function setExpiryValidity(options) {\n if (!options) {\n return true;\n }\n\n var cardType = options.cardType || '';\n var expiryValidity = this.validExpiry(null, {\n cardType: cardType\n });\n\n return expiryValidity;\n },\n\n // start date validation for Maestro card\n setStartDateValidity: function setStartDateValidity(options) {\n if (!options) {\n return true;\n }\n\n var cardType = options.cardType || '';\n var startDateValidity = true;\n var $monthEl = (0, _jquery2['default'])('#startmonth');\n var $yearEl = (0, _jquery2['default'])('#startyear');\n var month = $monthEl.val();\n var year = $yearEl.val();\n\n if (cardType === 'MAESTRO') {\n if (!month || !year) {\n startDateValidity = false;\n }\n }\n\n var formName = $monthEl.closest('form').attr('id'),\n form = scope[formName] || scope.$parent[formName];\n\n if (form) {\n form.startmonth.$setValidity('startDate', startDateValidity);\n form.startyear.$setValidity('startDate', startDateValidity);\n }\n\n return startDateValidity;\n },\n dobField: function dobField(value, options) {\n var valueOptions = {};\n var fieldMap = {\n dobDayCC: 'day',\n dobMonthCC: 'month',\n dobYearCC: 'year'\n };\n\n valueOptions.cardType = scope.card.type;\n valueOptions[fieldMap[elem.attr('id')]] = value;\n\n return this.setDOBValidity(valueOptions);\n },\n setDOBValidity: function setDOBValidity(options) {\n if (!options) {\n return true;\n }\n\n var dobEnabledCards = ['COFIDIS', 'COFINOGA', 'CETELEM'];\n var dobValidity = true;\n\n var $monthEl = (0, _jquery2['default'])('#dobMonthCC');\n var $dayEl = (0, _jquery2['default'])('#dobDayCC');\n var $yearEl = (0, _jquery2['default'])('#dobYearCC');\n\n var month = options.month || $monthEl.val();\n var year = options.year || $yearEl.val();\n var day = options.day || $dayEl.val();\n\n if (month) {\n month = $monthEl.find('option')[$monthEl.val() * 1 + 1].label;\n }\n\n if (day) {\n day = $dayEl.find('option')[$dayEl.val() * 1 + 1].label;\n }\n\n if (year) {\n year = $yearEl.find('option')[$yearEl.val() * 1 + 1].label;\n }\n\n var cardType = options.cardType;\n\n if (cardType && dobEnabledCards.indexOf(cardType) !== -1) {\n if (!month || !year || !day) {\n dobValidity = false;\n // invalidate if < 18 y/o.\n } else if (!this.legalAge(this.yyyymmdd(day, month, year))) {\n dobValidity = false;\n } else if (!this.validDate(this.mmddyyyy(day, month, year))) {\n dobValidity = false;\n }\n }\n\n var formName = $monthEl.closest('form').attr('id');\n var form = scope[formName] || scope.$parent[formName];\n\n if (form) {\n form.dobMonthCC.$setValidity('dobField', dobValidity);\n form.dobDayCC.$setValidity('dobField', dobValidity);\n form.dobYearCC.$setValidity('dobField', dobValidity);\n }\n\n return dobValidity;\n },\n validName: function validName(value) {\n return this.valid(value, /^([a-zA-Z,\\xC0-\\xFF,\\u00C0-\\u017F\\,\\-\\s\\,\\'])*$/);\n },\n isChecked: function isChecked(value, options) {\n // $.is does not exist in $\n // eslint-disable-line angular/ng_angularelement\n var $el = (0, _jquery2['default'])(options.el);\n\n return $el.is(':checked');\n },\n validRUPassport: function validRUPassport(value, options) {\n if (scope.user.countryOfResidence === 'RU') {\n return this.valid(value, /^\\d{10}$/);\n }\n return true;\n }\n };\n\n var customValidator = function customValidator(value) {\n var ruleJson = _angular2['default'].fromJson(elem.attr('xo-validation'));\n var validator = ruleJson.validator;\n var options = ruleJson.options;\n\n ngModel.$setValidity(validator, validationUtil[validator](value, options));\n\n return value;\n };\n\n ngModel.$parsers.unshift(customValidator);\n ngModel.$formatters.unshift(customValidator);\n }\n };\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-validation/dist/directive.js\n// module id = ../node_modules/xo-validation/dist/directive.js\n// module chunks = 0","\n\ndefine(['jquery', 'angular', 'text!./template.html'], function ($, angular, template) {\n return angular.module('xo-3ds.directive', ['squid']).directive('xo3ds', [function () {\n return {\n template: template,\n scope: {\n token: '=?',\n data: '=?',\n onComplete3dsHandler: '=?'\n },\n controller: ['$scope', '$rootScope', '$timeout', '$window', '$Resolve3DS', '$DeviceInfo', '$CheckoutAppDataModel', '$config', '$locale', '$logger', function ($scope, $rootScope, $timeout, $window, $Resolve3DS, $DeviceInfo, $CheckoutAppDataModel, $config, $locale, $logger) {\n var resolve3DS = $Resolve3DS.instance($scope.token);\n\n $scope.termUrl = window.location.origin + $config.urls.baseUrl + '/process3DS';\n\n $scope.data = $scope.data || {};\n\n var isIos = $DeviceInfo.getiOSVersion();\n\n var timeout3DSConfig = $config.timeout3DS || { DEFAULT: 30000 };\n\n var lightBoxTimeout = isIos && $locale.country === 'IN' ? 0 : timeout3DSConfig[$locale.country] || timeout3DSConfig.DEFAULT;\n\n var threeDSIframe = document.getElementById('threeDSFrame');\n\n function show3DSLightBox() {\n if ($scope.show3DS) {\n var lightbox = angular.element(document.getElementById('light-box'));\n\n lightbox.addClass('open');\n $scope.show3DS = false;\n $rootScope.$emit('loaded');\n threeDSIframe.removeEventListener('load', show3DSLightBox);\n }\n }\n\n function handleInitFailure(message) {\n // Since init3DS call failed. We disable the feature and proceed to checkout.\n $CheckoutAppDataModel.instance($rootScope.token).action('updatePaymentExperience', {\n data: {\n payment_experience: 'HERMESNODE',\n '3d_secure_authentication_supported': false\n },\n silent: true,\n transientError: true\n }).then(function () {\n $logger.info('checkout_fpti', {\n from: '3DS_CHALLENGE',\n to: 'process_3ds_challenge',\n int_error_description: message,\n error_type: 'soft_decline',\n error_source: 'fiLifecycle'\n });\n\n $scope.onComplete3dsHandler('success');\n });\n }\n\n function init3DSApi() {\n $rootScope.$emit('loadingMessage', $locale.content.get('threeDS.processing'));\n\n return resolve3DS.action('init3DS', {\n data: {\n cc_id: $scope.data.cc_id,\n flow_id: $scope.data.flow_id,\n merchant_id: $scope.data.merchant_id,\n merchant_country: $scope.data.merchant_country_code,\n currency: $scope.data.transaction_amount_currency,\n transaction_amount: $scope.data.transaction_amount_value\n },\n success: function success(response) {\n if (response.status === 'SUCCESS' && response.acsUrl) {\n $logger.info('checkout_fpti', { from: '3DS_CHALLENGE', to: 'prepare_3ds_challenge' });\n\n $scope.acsUrl = response.acsUrl;\n $scope.acsMethod = response.acsMethod || 'POST';\n $scope.acsPaReq = response.acsPaReq;\n\n var form = $('
          ', {\n action: $scope.acsUrl,\n method: $scope.acsMethod,\n id: 'iFrameForm',\n target: 'threeDSFrame'\n });\n\n form.append($('', {\n type: 'hidden',\n name: 'TermUrl',\n value: $scope.termUrl\n }));\n\n form.append($('', {\n type: 'hidden',\n name: 'PaReq',\n value: $scope.acsPaReq\n }));\n $('#lightBoxAcsWrapper').append(form);\n $('#iFrameForm').submit();\n\n // wait for 3DS page to load with a timeout\n\n // The $scope.show3DS in the line below is set true when the 3DS modal is eligible to be shown to user when the\n // bank page loads in its iframe, i.e., after init3DS success\n $scope.show3DS = true;\n threeDSIframe.addEventListener('load', show3DSLightBox);\n $rootScope.$emit('loading');\n $rootScope.$emit('loadingMessage', $locale.content.get('threeDS.processing'));\n $timeout(function () {\n if ($scope.show3DS) {\n $logger.info('checkout_fpti', {\n from: '3DS_CHALLENGE',\n to: '3DS_CHALLENGE',\n int_error_description: 'load_3ds_issuer_page_content_timeout',\n error_type: 'soft_decline',\n error_source: 'fiLifecycle'\n });\n }\n show3DSLightBox();\n }, lightBoxTimeout);\n } else {\n $logger.info('checkout_fpti', {\n from: '3DS_CHALLENGE',\n to: 'process_3ds_challenge',\n int_error_description: 'acsUrl_not_presented_on_init',\n error_type: 'soft_decline',\n error_source: 'fiLifecycle'\n });\n\n // When there is no 3DS challenge page to be shown, we return success to the caller\n $scope.onComplete3dsHandler('success');\n }\n },\n error: function error() {\n handleInitFailure('unknown_error_on_init3DS');\n },\n validation: function validation() {\n handleInitFailure('validation_error_on_init3DS');\n },\n contingencies: {\n DEFAULT: function DEFAULT() {\n handleInitFailure('contingency_presented_on_init3DS');\n }\n }\n });\n }\n\n function complete3DSApi(paRes) {\n return resolve3DS.action('complete3DS', {\n data: {\n third_party_response: paRes,\n cc_id: $scope.data.cc_id,\n flow_id: $scope.data.flow_id\n },\n success: function success(response) {\n var status = void 0;\n\n if (response.status === 'SUCCESS') {\n status = 'success';\n\n $logger.info('checkout_fpti', {\n from: '3DS_CHALLENGE',\n to: 'process_3ds_challenge'\n });\n } else {\n status = 'decline';\n\n $logger.info('checkout_fpti', {\n from: '3DS_CHALLENGE',\n to: 'process_3ds_challenge',\n int_error_description: 'complete3DS_decline',\n error_type: 'soft_decline',\n error_source: 'fiLifecycle'\n });\n }\n\n $scope.onComplete3dsHandler(status);\n }\n });\n }\n\n $scope.close3DSFrame = function () {\n $logger.info('checkout_fpti', { from: '3DS_CHALLENGE', to: 'process_user_close' });\n $logger.flush();\n\n var lightbox = angular.element(document.getElementById('light-box'));\n\n lightbox.removeClass('open');\n\n $timeout(function () {\n var lightboxMask = angular.element(document.getElementById('mask'));\n\n lightboxMask.remove();\n $scope.onComplete3dsHandler('close');\n }, 200);\n };\n\n init3DSApi();\n\n $scope.complete3DS = function (paRes) {\n complete3DSApi(paRes);\n };\n\n $window.complete3DSFrame = function (paRes) {\n $scope.complete3DS(paRes);\n };\n\n // when the esc key is pressed\n $('html').on('keyup', function (ev) {\n if (ev.which === 27) {\n $scope.close3DSFrame();\n }\n });\n }]\n };\n }]);\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-wallet-components/src/3ds/directive.js\n// module id = ../node_modules/xo-wallet-components/src/3ds/directive.js\n// module chunks = 0","\n\nvar _showCartDecision = require('xo-page-components/src/cart/lib/showCartDecision');\n\nvar _logger = require('xo-beaver/dist/logger');\n\nrequire('jqueryMask');\n\ndefine(['jquery', 'squid/index', 'text!./template.html', './styles.less', 'xo-models/src/fi/index', 'xo-models/src/checkout/index', 'xo-ui-components/src/dropdown/directive', 'xo-ui-components/src/error-tooltip/directive'], function ($, squid, template) {\n\n return squid.module('xo-add-bank.bank-input.directive', ['squid', 'xomodel.fi', 'xomodel.checkout', 'xo-dropdown.directive', 'xo-error-tooltip.directive']).directive('xoBankInput', ['$rootScope', function ($rootScope) {\n return {\n template: template,\n\n scope: {\n token: '=?',\n user: '=?',\n bank: '=?',\n isUnbranded: '=?'\n },\n\n /* auto formatting the user entered IBAN input */\n link: function link(scope, element, attr) {\n var IBANMask = 'AA00 0000 0000 0000 0000 0000 0000 0000 00';\n\n element.on('keyup', function (event) {\n\n $('#ibanNumber').mask(IBANMask, {\n 'translation': {\n 0: { pattern: /[A-Za-z0-9]/ }\n }\n });\n });\n },\n\n controller: ['$scope', '$populate', '$locale', '$pxp', '$AddBankModel', '$CheckoutCartModel', '$CheckoutAppDataModel', '$CheckoutPayeeModel', '$CurrencyConversionModel', function ($scope, $populate, $locale, $pxp, $AddBankModel, $CheckoutCartModel, $CheckoutAppDataModel, $CheckoutPayeeModel, $CurrencyConversionModel) {\n\n $populate($scope, {\n checkoutCart: $CheckoutCartModel.instance($scope.token),\n checkoutAppData: $CheckoutAppDataModel.instance($scope.token),\n payee: $CheckoutPayeeModel.instance($scope.token)\n }).then(function () {\n\n // TODO: In the future, automate this information\n var BANK_CURRENCY = 'EUR';\n var BANK_COUNTRY = 'DE';\n var showDCCTreatmentName = 'xo_xoonboarding_bank_dcc_test';\n var UTC = 'UTC';\n\n $scope.showIBAN = true;\n\n var days = [];\n var months = [];\n var years = [];\n\n var i = void 0;\n\n for (i = 1; i <= 31; i += 1) {\n var d = i < 10 ? '0' + i : i.toString();\n\n days.push(d);\n }\n\n for (i = 1; i <= 12; i += 1) {\n var m = i < 10 ? '0' + i : i.toString();\n\n months.push(m);\n }\n\n var year = new Date().getFullYear();\n\n for (i = year - 17; i >= year - 100; i -= 1) {\n years.push(i);\n }\n\n $scope.days = days;\n $scope.months = months;\n $scope.years = years;\n\n $scope.toggleIBAN = function () {\n $scope.showIBAN = !$scope.showIBAN;\n };\n\n $scope.onibanKeyup = function () {\n $scope.bank.iban_number = $scope.bank.iban_number.toUpperCase();\n };\n\n var merchantID = $scope.payee.get('merchant.id', '');\n\n // check if currency conversion is needed by comparing cart's currency code with EUR\n var sourceCurrency = $scope.checkoutCart.get('purchase.amounts.total.currency_code');\n var sourceValue = $scope.checkoutCart.get('purchase.amounts.total.amount');\n\n if (!(sourceCurrency && sourceValue)) {\n return;\n }\n\n // Check if currency conversion is required\n if (sourceCurrency !== BANK_CURRENCY) {\n return $pxp('xo_xoonboarding_bank_dcc', {\n 'uid': merchantID\n }, showDCCTreatmentName).then(function () {\n var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n treatment_name = _ref.treatment_name;\n\n if (treatment_name === showDCCTreatmentName) {\n\n $CurrencyConversionModel.instance().retrieve({\n params: {\n sourceCurrency: sourceCurrency,\n sourceValue: sourceValue,\n targetCurrency: BANK_CURRENCY,\n countryCode: BANK_COUNTRY,\n language: $locale.lang\n }\n }).then(function (pricing) {\n if (pricing) {\n // If pricing object is true, currency conversion is valid\n $scope.isCurrencyConversionValid = true;\n\n var emptyCart = $scope.checkoutCart.get('purchase.items.length', 0) <= 0;\n var userAction = $scope.checkoutAppData.useraction();\n var noLineItemDetails = !(userAction && userAction.toLowerCase() === 'commit') && emptyCart;\n\n var total = $scope.checkoutCart.get('purchase.amounts.total');\n\n (0, _showCartDecision.showCartDecision)($scope.checkoutAppData.is_wps_subscription_flow(), total, $scope.checkoutAppData.get('merchant.merchant_country'), merchantID, noLineItemDetails, $scope.checkoutCart.isPurchase()).then(function (result) {\n $scope.showTotalAmount = result.showAmountInCartIcon;\n if ($scope.showTotalAmount) {\n $scope.targetFormatStr = pricing.from.currencyFormatSymbolISOCurrency;\n } else {\n $scope.sourceCurrencyCode = pricing.to.currencyCode;\n }\n });\n\n // Exchange Spread is the entire conversion spread. Eg: 1 USD = 1.5194 EUR\n $scope.exchangeSpreadFormatStr = pricing.spread;\n // griffin's dateTimeShort does not return timezone, so concatenate TZ\n $scope.fxDate = pricing.issuedDate.dateTimeShort + ' ' + UTC;\n } else {\n _logger.$logger.warn('Currency conversion API returned empty pricing object');\n $scope.isCurrencyConversionValid = false;\n }\n })['catch'](function (err) {\n _logger.$logger.warn('currency_conversion_error', {\n reason: 'Error retrieving currency conversion rates for the source amount',\n error: err\n });\n $scope.isCurrencyConversionValid = false;\n });\n }\n });\n }\n });\n }]\n };\n }]);\n});\n\n_showCartDecision.showCartDecision;\n\n_logger.$logger;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-wallet-components/src/add-bank/bank-input/directive.js\n// module id = ../node_modules/xo-wallet-components/src/add-bank/bank-input/directive.js\n// module chunks = 0","\n\nrequire('uiUtils');\n\ndefine(['angular', 'text!./template.html', 'squid/index', 'xo-models/src/address/index', 'xo-form-components/src/zipcode/directive'], function (angular, template) {\n return angular.module('xo-add-card.addcep.directive', ['squid', 'xomodel.address', 'xo-zipcode.directive']).directive('xoAddCep', [function () {\n return {\n template: template,\n\n scope: {\n token: '=?',\n sidebar: '=?',\n prefillAddress: '=?',\n doneFn: '=?'\n },\n\n controller: ['$scope', '$populate', '$state', '$PrefillAddressModel', '$locale', function ($scope, $populate, $state, $PrefillAddressModel, $locale) {\n $scope.country = $locale.country;\n $scope.address = {};\n\n $scope.onSubmit = function () {\n $scope.prefillAddress.address = {\n country: $locale.country,\n postal_code: $scope.address.postal_code\n };\n\n $scope.prefillAddress.save({\n data: $scope.prefillAddress,\n\n success: function success(result) {\n $scope.prefillAddress.address = result;\n $scope.doneFn();\n }\n });\n };\n }]\n };\n }]);\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-wallet-components/src/add-card/addCep/directive.js\n// module id = ../node_modules/xo-wallet-components/src/add-card/addCep/directive.js\n// module chunks = 0","\n\ndefine(['squid/index', './directive'], function (squid) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n squid.module('xo-add-card.addcep.route', ['squid', 'xo-add-card.addcep.directive']).factory('$AddCepRoute', ['$ComponentRoute', function ($ComponentRoute) {\n\n return $ComponentRoute.extend('AddCepRoute', {\n\n name: 'addCep',\n directive: 'xo-add-cep',\n titleContent: 'addBillingAddress.title',\n loginRequired: true,\n children: []\n });\n }]);\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-wallet-components/src/add-card/addCep/route.js\n// module id = ../node_modules/xo-wallet-components/src/add-card/addCep/route.js\n// module chunks = 0","\n\nrequire('uiUtils');\n\ndefine(['jquery', 'squid', 'text!./template.html', 'xo-models/src/checkout/index', 'xo-models/src/fi/index', 'xo-models/src/address/index', 'xo-address-components/src/add-address/directive', 'xo-page-components/src/aside-header/directive', 'xo-ui-components/src/error-tooltip/directive', 'xo-ui-components/src/accessibility/directive'], function ($, squid, template) {\n\n return squid.module('xo-add-card.addbilling.directive', ['squid', 'xomodel.checkout', 'xomodel.fi', 'xomodel.address', 'xo-add-address.directive', 'xo-aside-header.directive', 'xo-error-tooltip.directive', 'xo-accessibility.directive']).directive('xoAddBilling', [function () {\n\n return {\n template: template,\n\n scope: {\n auth: '=?',\n token: '=?',\n doneFn: '=?',\n parentCallbacks: '=?',\n sidebar: '=?',\n showmeftsection: '=?',\n hideparenthead: '=?',\n billingaddressupdated: '=?',\n prefillAddress: '=?'\n },\n\n controller: ['$scope', '$populate', '$BillingAddressesModel', '$BillingAddressModel', '$PrefillAddressModel', '$feature', '$state', '$element', '$config', '$locale', '$timeout', function ($scope, $populate, $BillingAddressesModel, $BillingAddressModel, $PrefillAddressModel, $feature, $state, $element, $config, $locale, $timeout) {\n var country = $locale.getCountryCodeISO();\n\n $scope.billing = true; // to denote its billing address page still\n $scope.normalize = $feature('addressNormalization');\n $scope.country = country;\n var $el = $($element);\n\n if ($scope.showmeftsection) {\n $scope.showmeftsection.toggle = false;\n }\n\n if ($scope.hideparenthead) {\n $scope.hideparenthead.toggle = true;\n }\n\n function isUserInputtedAddress(address) {\n return address.id === '0';\n }\n\n // Label fields has having error if needed to, and focus the first error if needed\n function handleValidation(res) {\n if (res && res.fields && res.fields.length) {\n res.fields.forEach(function (field) {\n if (field.field) {\n var $field = $($el.find('[name=\"' + field.field + '\"]'));\n\n if ($field.length === 0 && field.field === 'zip') {\n $field = $($el.find('[ng-model=\"address.postal_code\"], [ng-model=\"zipCode\"]'));\n }\n\n $field.addClass('backendError');\n $field.attr('aria-invalid', true);\n }\n });\n }\n\n $el.find('form').find('.backendError, .ng-invalid').first().focus();\n }\n\n var prefilledAddress = $scope.prefillAddress && $scope.prefillAddress.address;\n\n if (prefilledAddress) {\n $scope.prefilled = true;\n }\n\n $scope.address = $scope.address || prefilledAddress || { country: country };\n\n $populate($scope, {\n billingAddresses: $BillingAddressesModel.instance()\n }).then(function () {\n\n $scope.cancelFn = function () {\n $state.go('^.addCard');\n };\n\n $scope.onSubmit = function () {\n $scope.updateAddress();\n };\n\n $scope.prefill = function () {\n $scope.address.country = $scope.country;\n $scope.prefillAddress = new $PrefillAddressModel({\n id: $scope.token,\n address: $scope.address\n });\n\n $scope.prefillAddress.save({\n data: $scope.prefillAddress,\n\n success: function success(result) {\n $scope.address = result;\n $scope.prefilled = true;\n $scope.showAddressFields = true;\n\n $timeout(function () {\n var value = $scope.address.state;\n\n var $option = $el.find('[value=\"' + value + '\"]');\n\n $option.prop('selected', 'selected');\n $option.trigger('change');\n\n value = $option.attr('label');\n }, 1000);\n }\n });\n };\n\n $scope.updateAddress = function () {\n\n var newBilling = new $BillingAddressModel({\n line1: $scope.address.line1,\n line2: $scope.address.line2,\n city: $scope.address.city,\n state: $scope.address.state,\n postal_code: $scope.address.postal_code,\n normalization_status: $scope.address.normalization_status,\n country: country,\n id: '0'\n });\n\n newBilling.save({\n data: $scope.billingAddress,\n\n success: function success() {\n if ($scope.normalize) {\n // set to false so that html related to billing address is hidden when child is shown\n $scope.billing = false;\n $scope.address.full_address = newBilling.full_address;\n $state.go('.addressNormalization');\n } else {\n $scope.updateBillingAddressAndReturn('^.addCard', newBilling);\n }\n },\n\n validation: function validation(res) {\n handleValidation(res);\n }\n\n });\n };\n\n $scope.uponNormalization = function (normalizedAddress, isBack) {\n if (isBack) {\n $scope.billing = true;\n $state.go('^');\n } else {\n $scope.updateBillingAddressAndReturn('^.^.addCard', normalizedAddress);\n }\n };\n\n $scope.updateBillingAddressAndReturn = function (target, address) {\n var newBillingAddress;\n\n if (address && address instanceof $BillingAddressModel) {\n newBillingAddress = address;\n } else {\n newBillingAddress = new $BillingAddressModel({\n line1: address.line1,\n line2: address.line2,\n city: address.city,\n state: address.state,\n postal_code: address.postal_code,\n normalization_status: address.normalization_status,\n country: address.country || $scope.country,\n full_address: address.full_address || $scope.address.full_address,\n id: '0'\n });\n }\n\n var addresses = $scope.billingAddresses.addresses;\n\n if (!isUserInputtedAddress(addresses[0])) {\n addresses.unshift(newBillingAddress);\n } else {\n addresses[0] = newBillingAddress;\n }\n $scope.billingaddressupdated.value = true;\n\n $state.go(target);\n };\n });\n }]\n };\n }]);\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-wallet-components/src/add-card/addbilling/directive.js\n// module id = ../node_modules/xo-wallet-components/src/add-card/addbilling/directive.js\n// module chunks = 0","\n\ndefine(['squid/index', './directive', 'xo-address-components/src/add-address/directive', 'xo-address-components/src/address-normalization/route'], function (squid) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n squid.module('xo-add-card.addbilling.route', ['squid', 'xo-add-card.addbilling.directive', 'xo-add-address.directive', 'xo-address-normalization.route']).factory('$AddBillingRoute', ['$ComponentRoute', function ($ComponentRoute) {\n\n return $ComponentRoute.extend('AddBillingRoute', {\n\n name: 'addBilling',\n directive: 'xo-add-billing',\n titleContent: 'addBillingAddress.title',\n\n trackingData: {\n fptiState: 'edit_billing'\n },\n loginRequired: true,\n children: [{\n name: '$AddressNormalizationRoute',\n attributes: {\n id: 'token',\n sidebar: 'sidebar',\n address: 'address',\n 'done-fn': 'uponNormalization'\n }\n }]\n\n });\n }]);\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-wallet-components/src/add-card/addbilling/route.js\n// module id = ../node_modules/xo-wallet-components/src/add-card/addbilling/route.js\n// module chunks = 0","\n\nvar _cardMetaData = require('../cardMetaData');\n\nrequire('uiUtils');\n\ndefine(['angular', 'squid', 'text!./template.html', 'jquery', 'xo-models/src/checkout/index', 'xo-models/src/auth/index', 'xo-models/src/fi/index', '../creditcard-input/directive', 'xo-ui-components/src/dropdown/directive', 'xo-tray-height/dist/directive', 'xo-page-components/src/aside-header/directive', 'xo-ui-components/src/message/directive', 'xo-ui-components/src/error-tooltip/directive', 'xo-ui-components/src/accessibility/directive', '../../fi-contingency-list/util'], function (angular, squid, template, $) {\n\n return squid.module('xo-add-card.addcard.directive', ['squid', 'xomodel.checkout', 'xomodel.auth', 'xomodel.fi', 'xo-add-card.creditcard-input.directive', 'xo-dropdown.directive', 'xo-tray-height.directive', 'xo-aside-header.directive', 'xo-message.directive', 'xo-error-tooltip.directive', 'xo-accessibility.directive', 'fi.errorUtil']).directive('xoAddCard', [function () {\n\n return {\n template: template,\n\n scope: {\n token: '=?',\n done: '=?',\n message: '=?',\n pagetitle: '=?',\n sidebar: '=?',\n showmeftsection: '=?',\n hideparenthead: '=?',\n billingaddressupdated: '=?',\n cardmodel: '=?',\n parentCallbacks: '=?',\n selectedPromotionCardType: '=?',\n promotion: '=?',\n pageLevel: '=?',\n logout: '=?',\n phone: '=?',\n manageCardFlow: '=?',\n onSuccess: '=?',\n backUri: '=?'\n },\n controller: ['$scope', '$populate', '$state', '$BillingAddressesModel', '$CardTypesModel', '$CheckoutSessionModel', '$AuthModel', '$CheckoutCartModel', '$timeout', '$element', '$rootScope', '$locale', '$util', '$feature', '$ResolveOTP', '$Class', '$fiErrorUtil', '$renderContent', function ($scope, $populate, $state, $BillingAddressesModel, $CardTypesModel, $CheckoutSessionModel, $AuthModel, $CheckoutCartModel, $timeout, $element, $rootScope, $locale, $util, $feature, $ResolveOTP, $Class, $fiErrorUtil, $renderContent) {\n\n $populate($scope, {\n cart: $CheckoutCartModel.instance($scope.token),\n auth: $AuthModel.instance(),\n billingAddresses: $BillingAddressesModel.instance(),\n checkoutSession: $CheckoutSessionModel.instance($scope.token).retrieve({\n contingencies: {\n NEED_CREDIT_CARD: angular.noop,\n EXPIRED_CREDIT_CARD: angular.noop\n }\n })\n }).then(function () {\n\n // Set up the back url if passed down from the parent or else use the default review route\n $scope.backUri = $scope.backUri || 'checkout.review.sidebar.wallet';\n\n if ($scope.showmeftsection) {\n $scope.showmeftsection.toggle = true;\n }\n\n if ($scope.hideparenthead) {\n $scope.hideparenthead.toggle = false;\n }\n\n $scope.manageCardFlow = $scope.sidebar && $scope.cardmodel.card.isExisting();\n\n var type = $scope.selectedPromotionCardType && $scope.selectedPromotionCardType.type;\n\n if ($scope.checkoutSession.plccOffer && !type && $scope.promotion) {\n $state.go('^.selectCard');\n }\n\n $scope.showplcc = type === 'plcc';\n $scope.country = $locale.country;\n\n $scope.showNotYou = $scope.auth.is_auth_api_call && $util.param('source') !== 'consumerApp' && $scope.logout;\n\n $scope.cardmodel.cardType = 'creditCard';\n\n if ($scope.checkoutSession.plccOffer && $scope.showplcc) {\n $scope.cardmodel.cardType = 'privateLabel';\n $scope.cardmodel.sponsor_id = $scope.checkoutSession.plccOffer.sponsor_id;\n }\n\n $scope.cardmodel.user = {\n first_name: $scope.auth.first_name,\n last_name: $scope.auth.last_name\n };\n\n $scope.cardmodel.address = $scope.billingAddresses.addresses[0];\n\n if ($scope.billingaddressupdated.value) {\n $scope.billingaddressupdated = {\n msgs: [$locale.content.get('editCard.newAddressAdded')],\n type: 'success',\n value: true\n };\n }\n\n $scope.gotoBilling = function (address) {\n if ($scope.pageLevel) {\n $scope.pageLevel.message = null;\n }\n if (!address) {\n if ($locale.country === 'BR') {\n $scope.parentCallbacks.showCep();\n } else {\n $state.go('^.addBilling');\n }\n }\n };\n\n $scope.isUPOP = function () {\n /*\n * we do have a BIN lookup for C2 country to FIMS\n * if that fails\n * a) buyer selects card type from dropdown and it could be CUP\n * b) and we are not going to get isUpop from FIMS , but C2 CUP is always upop card\n * if that success\n * a) card can be of type VISA or CUP for dual cards\n * b) and we need to show dropdown for buyer to choose the card, eventhough we default to VISA\n * c) even though VISA selected , it is UPOP card\n * if that success\n * a) card be of type CUP and AMEX for dual cards\n * b) we don't show dropdown but default to CUP\n * c) here both CUP and UPOP is true\n *\n * so checking either CUP or UPOP (for VISA)\n * and yes only for OTP enabled country (C2 for now)\n */\n var needOTPForAddCard = $feature('needOTPForAddCard');\n var isCUP = $scope.cardmodel.card && $scope.cardmodel.card.type && $scope.cardmodel.card.type === 'CUP';\n var isUpop = $scope.cardmodel.card && $scope.cardmodel.card.isUpop;\n return needOTPForAddCard && isCUP && isUpop;\n };\n\n $scope.flag = function (field) {\n // passing country code to differentiate CUP for C2 and ROW\n return _cardMetaData.$CardMetaData.getMetaData($scope.cardmodel.card, field, $locale.country);\n };\n\n $scope.buttonText = function () {\n var contentString = 'creditcard.addBtn';\n\n if ($scope.cardmodel.card.isExisting()) {\n contentString = 'creditcard.updateBtn';\n } else if ($scope.isUPOP()) {\n contentString = 'creditcard.continuetext';\n }\n return contentString;\n };\n\n $scope.cardTypeChanged = function () {\n $scope.phone.phoneType = $scope.flag('phoneType');\n };\n\n function addErrorMessage(contentKey) {\n if (contentKey) {\n contentKey = angular.isArray(contentKey) ? contentKey[0] : contentKey;\n var message = $locale.content.get('creditcard.' + contentKey);\n\n $scope.message.msgs.push(message);\n }\n }\n\n function handleContingencies(result, contentBundle, defaultErrorKey, prop) {\n var errorData;\n\n if (result.errorCodes) {\n errorData = result;\n } else {\n errorData = {\n errorCodes: result && [result['0']]\n };\n }\n $scope.message = $fiErrorUtil.addPageErrors(errorData, contentBundle, prop, defaultErrorKey);\n\n if (window.scrollTo) {\n window.scrollTo(0, 0);\n }\n }\n\n $scope.cancelFn = function () {\n if ($scope.sidebar) {\n if (!$scope.checkoutSession.plccOffer) {\n $state.go('checkout.review.sidebar.wallet');\n } else {\n $state.go('^.selectCard');\n }\n } else {\n $scope.done();\n }\n };\n\n function initiateOTP() {\n var resolveOTP = new $ResolveOTP({ id: $scope.cardmodel.id });\n\n resolveOTP.action('init', {\n data: {\n phone: {\n country_code: $scope.phone.IntDialingCountryCode,\n number: $scope.phone.telephone\n }\n },\n resultModel: {},\n success: function success() {\n $scope.message = {};\n $state.go('.confirmUpop');\n },\n\n error: function error() {\n handleContingencies({}, 'confirmUpop', 'declineMessage');\n },\n\n contingencies: {\n INIT_OTP_CONTINGENCY: function INIT_OTP_CONTINGENCY(name, result) {\n // prop for last 4 digits of card in error message\n var prop = {\n number: $scope.cardmodel && $scope.cardmodel.card && $scope.cardmodel.card.last4()\n };\n\n handleContingencies(result, 'confirmUpop', 'declineMessage', prop);\n $fiErrorUtil.addFieldErrors(result, $element);\n },\n DEFAULT: function DEFAULT() {\n handleContingencies({}, 'confirmUpop', 'declineMessage');\n }\n }\n });\n }\n\n $scope.onSubmit = function () {\n if ($scope.pageLevel) {\n $scope.pageLevel.message = null;\n }\n var isNewCard = !$scope.cardmodel.card.isExisting();\n\n if (isNewCard) {\n delete $scope.cardmodel.id;\n }\n\n if ($('#plccAgree').is(':checked')) {\n $scope.cardmodel.preference = true;\n }\n\n // Only initiateOTP needs to be called for unconfirmed CUP contingency. Add card call does not need to be made.\n if ($scope.isUPOP() && $scope.cardmodel.id && ($scope.checkoutSession.get('errorData.cause') === 'NEED_AUTHENTICATED_CARD' || $scope.checkoutSession.get('errorData.cause') === 'EXPIRED_CREDIT_CARD')) {\n\n initiateOTP();\n } else {\n $scope.cardmodel.save({\n\n success: function success() {\n if ($scope.isUPOP()) {\n initiateOTP();\n } else {\n\n $scope.checkoutSession.fundingOptions.action('update', {\n\n resultModel: $scope.checkoutSession,\n\n data: {\n planId: $scope.cardmodel.id\n },\n success: function success(result) {\n if ($scope.cardmodel && $scope.cardmodel.cardType === 'privateLabel') {\n delete $scope.checkoutSession.plccOffer;\n }\n\n delete $scope.checkoutSession.errorData;\n\n var cardAdded = $scope.cardmodel && $scope.cardmodel.card;\n var numberAdded;\n var cardTypeAdded;\n\n if (cardAdded) {\n numberAdded = angular.isString(cardAdded.number) && cardAdded.number.replace(/\\s/g, '');\n cardTypeAdded = cardAdded.type;\n }\n\n var last4Added = angular.isString(numberAdded) && numberAdded.substr(numberAdded.length - 4);\n var cvvData = $scope.checkoutSession.cvvData;\n var last4ToUse;\n var cardTypeToUse;\n\n if (cvvData) {\n last4ToUse = cvvData.number;\n cardTypeToUse = cvvData.type;\n }\n\n if (last4ToUse === last4Added && cardTypeAdded === cardTypeToUse) {\n $scope.checkoutSession.set('cvvData.security_code', $scope.cardmodel.get('card.security_code'));\n }\n\n var updateCardSidebarMessage = $renderContent('wallet.cardUpdated', {\n type: cardTypeAdded,\n number: last4Added\n });\n var updateCardPageMessage = $renderContent('smallToolTip.cardUpdated');\n var addCardMessage = $renderContent('smallToolTip.cardAdded');\n\n var msgs = [addCardMessage];\n\n if (!isNewCard) {\n msgs = $scope.manageCardFlow ? [updateCardSidebarMessage] : [updateCardPageMessage];\n }\n\n $scope.checkoutSession.message = {\n type: 'success',\n msgs: msgs\n };\n\n $scope.done();\n },\n\n contingencies: {\n TRANSACTION_REFUSED: function TRANSACTION_REFUSED(name) {\n $scope.message.msgs = [];\n $scope.message.type = 'info';\n addErrorMessage('addedButCannotUse');\n }\n }\n });\n }\n },\n\n contingencies: {\n ADD_CARD_CONTINGENCY: function ADD_CARD_CONTINGENCY(name, result) {\n if ($scope.sidebar) {\n $scope.$emit('SidebarError');\n }\n $scope.billingaddressupdated.value = false;\n if (result && result.errorCodes) {\n handleContingencies(result, 'creditcard', 'errorInvalidData');\n $fiErrorUtil.addFieldErrors(result, $element);\n } else if (result && result['0']) {\n handleContingencies(result, 'creditcard');\n } else {\n handleContingencies({}, 'creditcard', 'errorInternalError');\n }\n },\n DISALLOWED_CUPSECURE_ADDITION: function DISALLOWED_CUPSECURE_ADDITION(name, result) {\n handleContingencies({}, 'creditcard', 'errorInternalError');\n },\n VALIDATION_ERROR: function VALIDATION_ERROR(name, result) {\n var $field = $($element).find('[ng-model=\"card.number\"]');\n\n $field.addClass('backendError');\n $field.attr('aria-invalid', true);\n $field.focus();\n },\n DEFAULT: function DEFAULT(name, result) {\n handleContingencies({ errorCodes: [name] }, 'creditcard', 'errorInternalError');\n }\n\n },\n\n error: function error() {\n handleContingencies({}, 'creditcard', 'errorInternalError');\n },\n\n validation: function validation(res) {// eslint-disable-line no-empty-function\n }\n });\n }\n };\n });\n }]\n };\n }]);\n});\n\n_cardMetaData.$CardMetaData;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-wallet-components/src/add-card/addcard/directive.js\n// module id = ../node_modules/xo-wallet-components/src/add-card/addcard/directive.js\n// module chunks = 0","\n\nvar _route = require('../../confirm-upop/route');\n\nvar _route2 = _interopRequireDefault(_route);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\ndefine(['squid/index', './directive'], function (squid) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n squid.module('xo-add-card.addcard.route', ['squid', 'xo-add-card.addcard.directive']).factory('$AddCardRoute', ['$ComponentRoute', function ($ComponentRoute) {\n\n return $ComponentRoute.extend('AddCardRoute', {\n\n name: 'addCard',\n directive: 'xo-add-card',\n titleContent: 'asideHeader.addCard',\n\n trackingData: {\n fptiState: 'add_or_update_cc'\n },\n loginRequired: true,\n children: [{\n route: _route2['default'],\n attributes: {\n token: 'token',\n phone: 'phone',\n cardmodel: 'cardmodel',\n 'on-success': 'onSuccess'\n }\n }]\n });\n }]);\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-wallet-components/src/add-card/addcard/route.js\n// module id = ../node_modules/xo-wallet-components/src/add-card/addcard/route.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$xoCardExpiryDirective = undefined;\n\nvar _squid = require('squid');\n\nvar _logger = require('xo-beaver/dist/logger');\n\nrequire('xo-ui-components/src/tooltip/directive');\n\nrequire('xo-ui-components/src/error-tooltip/directive');\n\nrequire('xo-ui-components/src/floating-label/directive');\n\nrequire('xo-ui-components/src/directionality/directive');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar $xoCardExpiryDirective = exports.$xoCardExpiryDirective = _squid.$Component.extend('$xoCardExpiryDirective', {\n tag: 'xo-card-expiry',\n template: _template2['default'],\n\n props: {\n expiryMonth: {\n type: 'var',\n required: false\n },\n expiryYear: {\n type: 'var',\n required: false\n }\n },\n\n resolve: {\n experiments: function experiments() {\n return {\n showNumericKeypad: (0, _squid.$pxp)('xo_xoon_numeric_keypad_expirydob', { 'ctx.COUNTRY': _squid.$locale.country }, 'xo_xoon_numeric_keypad_expirydob_test')\n };\n }\n },\n\n lifecycle: {\n enter: function enter() {\n var _this = this;\n\n this.focusAndBlurHandler = function ($event) {\n _logger.$logger.info('credit_card_expiry_' + $event.type + '_event');\n };\n this.expiryFormat = (0, _squid.$feature)('ccExpiryDateFormat', 'MMYY', _squid.$locale.country);\n\n if (this.expiryMonth && this.expiryYear) {\n if (this.expiryFormat === 'MMYY') {\n this.expiryDate = this.expiryMonth + '/' + this.expiryYear.substring(2, 4);\n } else if (this.expiryFormat === 'MMYYYY') {\n this.expiryDate = this.expiryMonth + '/' + this.expiryYear;\n }\n }\n\n if (this.expiryFormat === 'MMYY') {\n this.maxlength = 5;\n this.expiryMask = '99/99';\n } else {\n this.maxlength = 7;\n this.expiryMask = '99/9999';\n }\n\n this.formatExpiry = function (event) {\n var key = event.keyCode || event.charCode;\n var $el = $(event.target);\n var val = $el.val().replace(/[^0-9\\/]/gi, '');\n var strokes = val.length;\n\n // Ignore delete keys\n if (key === 8 || key === 46) {\n return;\n }\n\n // after two characters add a slash char\n if (strokes === 2) {\n val += '/';\n }\n\n _this.expiryDate = val;\n $el.mask(_this.expiryMask);\n };\n\n var currentYear = new Date().getFullYear().toString();\n var validMonths = _squid.$util.map(_squid.$util.range(1, 13), function (num) {\n return ('0' + num).substr(-2);\n });\n\n this.validate = function (expiryDate) {\n if (!expiryDate) {\n return;\n }\n\n var month = void 0,\n year = void 0,\n unformatted = void 0;\n var isValid = false;\n\n unformatted = expiryDate.replace(/[^0-9]/gi, '');\n if (unformatted.length > 3) {\n month = unformatted.substring(0, 2);\n if (_this.expiryFormat === 'MMYY') {\n year = currentYear.substring(0, 2) + unformatted.substring(2, 4);\n } else if (_this.expiryFormat === 'MMYYYY') {\n year = unformatted.substring(2, 6);\n }\n\n isValid = validMonths.indexOf(month) > -1 && year >= currentYear;\n }\n\n _this.expiryYear = year;\n _this.expiryMonth = month;\n\n return isValid;\n };\n },\n populate: function populate() {\n // We are controlling card-expiry field through PXP.\n // Note: If locale is 'JP', then we always use keyType as 'tel' (jquery-mask-fix)\n if (this.experiments && this.experiments.showNumericKeypad || _squid.$locale.country === 'JP') {\n this.keyType = 'tel';\n } else {\n this.keyType = 'text';\n }\n }\n }\n});\n\nangular.value(\"$xoCardExpiryDirective\", $xoCardExpiryDirective);\n_squid.$Component;\n\n_squid.$locale;\n\n_squid.$feature;\n\n_squid.$util;\n\n_squid.$pxp;\n\n_logger.$logger;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-wallet-components/src/add-card/cardExpiry/directive.js\n// module id = ../node_modules/xo-wallet-components/src/add-card/cardExpiry/directive.js\n// module chunks = 0","module.exports = \"
          \\n
          \\n \\n \\n \\n
          \\n
          \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-wallet-components/src/add-card/cardExpiry/template.html\n// module id = ../node_modules/xo-wallet-components/src/add-card/cardExpiry/template.html\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$CardMetaData = undefined;\n\nvar _angular = require('angular');\n\nvar _angular2 = _interopRequireDefault(_angular);\n\nvar _squid = require('squid');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar CARD_META_DATA = {\n DEFAULT: {\n fields: {\n address: true,\n cvv: true,\n dob: false,\n expiry: true,\n issue: false,\n phone: false\n },\n length: {\n cvv: 3,\n min: 16,\n max: 16\n },\n luhn: true,\n phoneType: 'Mobile',\n spaces: '4,8,12'\n },\n\n PLCC: {\n fields: {\n expiry: false,\n cvv: false,\n address: false\n },\n length: {\n min: 10,\n max: 16\n }\n },\n\n MAESTRO: {\n pattern: /^(5018|5020|5038|4903|4911|4936|564182|545250|504834|503615|6333|6304|6759|676[1-3]|0604)/,\n length: {\n min: 12,\n max: 19\n },\n spaces: '4,8,12,16'\n },\n\n SWITCH: {\n pattern: /^(5018|5020|5038|4903|4911|4936|564182|545250|504834|503615|6333|6304|6759|676[1-3]|0604)/,\n fields: {\n issue: true\n },\n length: {\n min: 12,\n max: 19\n },\n spaces: '4,8,12,16'\n },\n\n DINERSCLUB: {\n pattern: /^(36|38|30[0-5])/,\n length: {\n min: 14,\n max: 14\n }\n },\n\n DISCOVER: {\n pattern: /^(6011|65|64[4-9]|622|36|38|30[0-5])/,\n length: {\n min: 14\n }\n },\n\n MASTERCARD: {\n pattern: /^(5[1-5]|2(2(2[1-9]|[3-9]\\d)|[3-6]\\d\\d|7[0-1]\\d|720))/\n },\n\n AMEX: {\n pattern: /^3[47]/,\n length: {\n cvv: 4,\n min: 15,\n max: 15\n },\n spaces: '4,10'\n },\n\n VISA: {\n pattern: /^4/,\n length: {\n min: 13\n },\n subTypes: {\n QIWI: {\n pattern: /^(428122|489049|469395|446942|462012)/\n }\n }\n },\n\n JCB: {\n pattern: /^(?:2131|1800|35[0-9]{3})/,\n length: {\n min: 15\n }\n },\n\n CBNATIONALE: {},\n\n CETELEM: {\n fields: {\n dob: true\n },\n length: {\n max: 19\n },\n spaces: '4,8,12,16'\n },\n\n COFIDIS: {\n fields: {\n dob: true,\n expiry: false,\n cvv: false\n },\n length: {\n min: 8,\n max: 9\n },\n spaces: '4,8',\n luhn: false\n },\n\n COFINOGA: {\n fields: {\n dob: true,\n cvv: false\n },\n length: {\n min: 17,\n max: 17\n },\n spaces: '4,8,12,16'\n },\n\n ELO: {\n pattern: /^9/,\n length: {\n min: 13\n }\n },\n\n HIPER: {\n pattern: /^6/,\n length: {\n min: 13\n }\n },\n\n HIPERCARD: {\n pattern: /^7/,\n length: {\n min: 13\n }\n },\n\n // C2 CUP Credit Card - not a dual brand\n CUPC2CREDIT: {\n fields: {\n address: false,\n phone: true\n },\n length: {\n max: 19\n }\n },\n\n // C2 CUP AMEX Dual Credit Card - force Cup as primary card\n CUPC2AMEXCREDIT: {\n fields: {\n address: false,\n phone: true\n },\n length: {\n cvv: 4,\n min: 15,\n max: 15\n }\n },\n\n // C2 CUP non dual Debit Card\n CUPC2DEBIT: {\n fields: {\n address: false,\n cvv: false,\n expiry: false,\n phone: true\n },\n length: {\n max: 19\n }\n },\n\n // C2 CUP Amex Dual Debit Card - force cup as primary card\n CUPC2AMEXDEBIT: {\n fields: {\n address: false,\n cvv: false,\n expiry: false,\n phone: true\n },\n length: {\n min: 15,\n max: 15\n }\n },\n\n // C2 VISA CUP Dual Debit Card - force visa as primary card\n VISACUPDEBIT: {},\n // C2 VISA CUP Dual Credit Card - force Visa as primary card\n VISACUPCREDIT: {},\n // CUP for non C2 countries\n CUPCREDIT: {},\n CUPDEBIT: {}\n};\n\nObject.keys(CARD_META_DATA).forEach(function (key) {\n CARD_META_DATA[key] = $.extend(true, {}, CARD_META_DATA.DEFAULT, CARD_META_DATA[key]);\n});\n\nObject.keys(CARD_META_DATA).forEach(function (key) {\n CARD_META_DATA[key].spaces = CARD_META_DATA[key].spaces.split(',').map(Number);\n});\n\nfunction getTypeByPattern(cardMetaData, types, number) {\n var result = void 0;\n\n types.some(function (type) {\n var metaData = cardMetaData[type];\n\n if (metaData && metaData.pattern && metaData.pattern.test(number)) {\n result = type;\n return true;\n }\n return false;\n });\n return result;\n}\n\nvar $CardMetaData = exports.$CardMetaData = {\n getMetaData: function getMetaData(card, field, country) {\n var cardType = card && card.type || 'DEFAULT';\n var cardDualType = card && card.dualType;\n\n if (cardType === 'CUP') {\n /* append the country code to differentiate C2 and ROW CUP cards\n * at the end cardType is going be look like\n * CUPC2AMEXDEBIT / CUPC2AMEXCREDIT for dual brands\n * CUPC2CREDIT / CUPC2DEBIT for c2 non dual brands\n * CUPCREDIT / CUPDEBIT for ROW\n */\n var dualType = cardDualType === 'AMEX' ? cardDualType : '';\n var cardCountry = country === 'C2' ? 'C2' : '';\n var productType = ['DEBIT', 'DEBITCARD'].indexOf(card.productType) > -1 ? 'DEBIT' : 'CREDIT';\n cardType = '' + cardType + cardCountry + dualType + productType;\n } else if (cardType === 'VISA' && cardDualType === 'CUP') {\n /*\n * VISA & CUP is applicable for China WorldWide\n * at the end cardType is going to be\n * we don't have any other country in this combination\n * so don't use country passed into this method\n * VISACUPCREDIT / VISACUPDEBIT\n */\n var _productType = ['DEBIT', 'DEBITCARD'].indexOf(card.productType) > -1 ? 'DEBIT' : 'CREDIT';\n cardType = '' + cardType + cardDualType + _productType;\n }\n\n return _squid.$Class.get(CARD_META_DATA[cardType], field);\n },\n getCardType: function getCardType(types, number) {\n var cardType = {};\n\n if (_angular2['default'].isArray(types) && number) {\n cardType.type = getTypeByPattern(CARD_META_DATA, types, number);\n var metaData = CARD_META_DATA[cardType.type];\n\n if (metaData && metaData.subTypes) {\n cardType.subType = getTypeByPattern(metaData.subTypes, types, number);\n }\n }\n return cardType;\n }\n};\n\n_angular2['default'].value(\"$CardMetaData\", $CardMetaData);\n_squid.$Class;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-wallet-components/src/add-card/cardMetaData/index.js\n// module id = ../node_modules/xo-wallet-components/src/add-card/cardMetaData/index.js\n// module chunks = 0","\n\nvar _cardMetaData = require('../cardMetaData');\n\nvar _utils = require('./utils');\n\nrequire('xo-ui-components/src/tooltip/directive');\n\nrequire('xo-ui-components/src/error-tooltip/directive');\n\nrequire('xo-ui-components/src/floating-label/directive');\n\nrequire('xo-ui-components/src/directionality/directive');\n\nrequire('../cardExpiry/directive');\n\nrequire('../cvv/directive');\n\nrequire('../dob/directive');\n\nrequire('uiUtils');\n\nvar _index = require('xo-device-info/dist/index');\n\nvar _squid = require('squid');\n\ndefine(['squid/index', 'text!./template.html', 'jquery', 'xo-models/src/checkout/index', 'xo-models/src/fi/index', 'xo-form-components/src/name-input/directive'], function (squid, template, $) {\n\n squid.module('xo-add-card.creditcard-input.directive', ['squid', 'xomodel.checkout', 'xomodel.fi', 'xo-tooltip.directive', 'xo-error-tooltip.directive', 'xo-name-input.directive']).directive('scrollToTop', [function () {\n return {\n link: function link(scope, element, attr) {\n $(element).on('focus', function () {\n if ($('#mxCardTitle').is(':visible')) {\n $('#creditCardForm').scrollTop($(element).offset().top);\n }\n });\n }\n };\n }]).directive('jsOnchange', [function () {\n /**\n * The 'jsOnchange' directive uses JavaScript's native 'onchange'\n * event instead of Angular's 'ng-change' directive. We need\n * this because 'ng-change' gets fired every time the input changes\n * but we want to fire the event until the users focuses out of the input,\n * which is how JavaScript's 'onchange' event works.\n */\n return {\n restrict: 'A',\n link: function link(scope, element, attrs) {\n var jsChangeHandler = scope.$eval(attrs.jsOnchange);\n\n element.on('change', jsChangeHandler);\n element.on('$destroy', function () {\n element.off('change');\n });\n }\n };\n }]).directive('xoCreditCard', ['$timeout', '$util', function ($timeout, $util) {\n return {\n template: template,\n restrict: 'E',\n scope: {\n token: '=?',\n card: '=?',\n user: '=?',\n selectedPromotionCardType: '=?',\n promotion: '=?',\n cardTypeChanged: '=?',\n cardNumberChanged: '=?',\n manageCardFlow: '=?',\n setBuyerFxFlag: '=?'\n },\n controller: ['$scope', '$populate', '$CardTypesModel', '$Class', '$locale', '$CardTypeFromBinModel', '$config', '$feature', '$pxp', '$logger', '$CheckoutAppDataModel', '$CheckoutCartModel', '$FlowEligibilityModel', '$meta', function ($scope, $populate, $CardTypesModel, $Class, $locale, $CardTypeFromBinModel, $config, $feature, $pxp, $logger, $CheckoutAppDataModel, $CheckoutCartModel, $FlowEligibilityModel, $meta) {\n $scope.locale = $locale;\n $scope.country = $scope.locale.country;\n\n var isUnsupportedCard;\n var lastVerifiedBin = '';\n var lastRequestedBin = ''; // bin requested to service to fetch card type and pending response.\n\n function updateBuyerFXCurrencyConversion() {\n return $pxp('xo_xoon_dcc_popup_content', { 'ctx.COUNTRY': $scope.locale.country }, '(xo_xoon_dcc_popup_content_)(.*)').then(function () {\n var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n treatment = _ref.treatment_name;\n\n if (treatment) {\n var isControl = treatment.includes('control');\n\n $scope.setBuyerFxFlag({ treatment: treatment });\n if (!isControl) {\n $scope.isBuyerFxApplicable = true;\n }\n }\n });\n }\n\n function logConversionDataToFPTI(isChangeable) {\n var _$scope$card$currency = $scope.card.currencyConvData;\n _$scope$card$currency = _$scope$card$currency === undefined ? {} : _$scope$card$currency;\n var from_code = _$scope$card$currency.from_code,\n to_code = _$scope$card$currency.to_code,\n spread = _$scope$card$currency.spread;\n\n /**\n * If conversion is not chnagable because of our agreement with\n * the card issuer we will not have conversion data. In that\n * case we will get the from code from the metadata and the\n * to code from the cart.\n */\n\n if (!from_code) {\n from_code = $util.getProperty($scope, 'locale.metadata.currency.code');\n to_code = $scope.checkoutCart.get('purchase.amounts.total.currency_code');\n }\n\n /**\n * FPTI event #3 for Buyer FX guest experience\n * https://engineering.paypalcorp.com/confluence/display/EDS/Buyer+FX+Instrumentation+Specs\n */\n $logger.info('checkout_fpti', {\n from: 'CURRENCY_CONVERSION',\n to: 'prepare_currency_conversion_pre_plan',\n conversion_type: (0, _utils.getDefaultCoversionSelection)($scope.card),\n is_conversion_shown: isChangeable ? 1 : 0,\n currency_conversion_from_curr: from_code,\n currency_conversion_to_curr: to_code,\n currency_conversion_spread: spread,\n locale: $locale.country\n });\n }\n\n function setConversionData(data) {\n /**\n * We want to enter this conditional if both of the\n * following conditions are met:\n * 1. The PXP `xo_xoon_dcc_popup_content` returns a\n * treatment or control value\n * 2. Either:\n * a. `data` is present, in which case this\n * function is being called after a successful\n * call to the `calculateCurrencyConversion` API\n * and we need to set `card.currencyConvData` and\n * log to FPTI\n * b. `card.currencyConvData` is NOT `undefined`, which\n * occurs when a user has prevously entered a card and\n * a successful call the the currency conversion API\n * has occurred and the user is now deleting/changing\n * the card number for some reason\n */\n if ($scope.isBuyerFxApplicable && (data || $scope.card.currencyConvData)) {\n $scope.card.currencyConvData = data;\n $logger.info('setting_currency_conversion_data', { hasConversionData: Boolean(data) });\n $scope.setBuyerFxFlag({ hasBuyerFxPrePlanData: Boolean(data) });\n\n /**\n * If data is `undefined` then we are resetting\n * conversion data and therefore need to reset the\n * default conversion selection to 'PAYPAL'\n */\n if (!data) {\n $scope.card.ppconversion = 'PAYPAL';\n } else {\n /**\n * If we have data the getCurrencyConversion() call\n * was successful and the conversion selection is\n * changeable.\n */\n logConversionDataToFPTI(true);\n }\n }\n }\n\n function conversionErrorHandler(key) {\n /**\n * Set `$scope.card.currencyConvData` to `undefined` so that if this isn't\n * the first card the user entered and the previous card got a 200 response\n * from the API, then we don't want the conversion data for that card to be\n * used for the newly entered card.\n */\n setConversionData();\n $logger.warn('Contingency encountered during calculateCurrencyConversion call.');\n return;\n }\n\n function getCurrencyConversion(number) {\n $scope.checkoutCart.action('calculateCurrencyConversion', {\n data: {\n cardNumber: number,\n country: $locale.country\n },\n success: setConversionData,\n contingencies: {\n DEFAULT: conversionErrorHandler\n },\n error: conversionErrorHandler\n });\n }\n\n function currencyConvCardTypeChangeHandler() {\n $scope.card.ppconversion = 'PAYPAL';\n }\n\n $scope.checkCardForDccCall = function checkCardForDccCall() {\n var _$scope$card = $scope.card;\n _$scope$card = _$scope$card === undefined ? {} : _$scope$card;\n var number = _$scope$card.number;\n\n /**\n * If the cart currency and the currency for the user's billing address are the\n * same or we are not showing the BuyerFX PXP then we don't need to make the\n * API call to get conversion information since no conversion is necessary\n */\n\n if (!$scope.isBuyerFxApplicable || !(0, _utils.isConversionApplicable)($scope)) {\n return;\n }\n\n var cardNumber = (0, _utils.removeNonNumericCharsAndTruncate)(number, $scope.maxLength());\n var isCardLenValid = $scope.cardLengthValid(cardNumber);\n var isCardLuhnValid = $scope.cardLuhnValid(cardNumber);\n\n // If the card has changed, we want to wipe out the currency conversion data\n // associated with the previous card number that the user had entered.\n setConversionData();\n\n /**\n * If the card length or luhn isn't valid, we return because we are in the\n * process of entering in new card number or because the card number isn't\n * valid and we don't want to make the API call until it is.\n */\n if (!isCardLenValid || !isCardLuhnValid) {\n return;\n }\n\n var _$scope$card2 = $scope.card;\n _$scope$card2 = _$scope$card2 === undefined ? {} : _$scope$card2;\n var type = _$scope$card2.type,\n currencyConvData = _$scope$card2.currencyConvData;\n\n /**\n * Combined check for all conditions for a getCurrencyConversion call\n * 1. Card type is defined\n * 2. If we haven't fetched conversion data for this card yet\n * 3. If card allows for conversion selection\n * (i.e. card type is not AMEX, CUP, DISCOVER, or JCB)\n */\n\n if (type && !currencyConvData) {\n /**\n * If conversion is not changeable we log to FPTI now since we aren't\n * calling getCurrencyConversion(), which logs in the success callback.\n */\n if (_utils.unchangeableCardTypes.includes(type)) {\n logConversionDataToFPTI(false);\n return;\n }\n\n getCurrencyConversion(cardNumber);\n }\n };\n\n $scope.$watch('card.type', function () {\n currencyConvCardTypeChangeHandler();\n if ($scope.cardTypeChanged) {\n $scope.cardTypeChanged();\n }\n });\n\n $scope.mxDebitCards = ['BANAMEX', 'BANCOARFACA', 'BBVA', 'BANORTE', 'HSBC', 'INBURSA', 'SANTANDER'];\n\n $scope.cardLengthValid = function (number) {\n if ($scope.card && $scope.card.isExisting()) {\n return true;\n }\n\n number = (0, _utils.removeNonNumericCharsAndTruncate)(number);\n\n return number.length >= $scope.flag('length.min') && number.length <= $scope.flag('length.max');\n };\n\n $scope.cardLuhnValid = function (input) {\n if (!$scope.flag('luhn') || $scope.card && $scope.card.isExisting()) {\n return true;\n }\n\n input = (0, _utils.removeNonNumericCharsAndTruncate)(input);\n\n var sum = 0;\n var numdigits = input.length;\n var parity = numdigits % 2;\n var i = 0;\n var digit = void 0;\n\n for (; i < numdigits; i++) {\n\n digit = parseInt(input.charAt(i), 10);\n\n if (i % 2 === parity) {\n digit *= 2;\n }\n\n if (digit > 9) {\n digit -= 9;\n }\n\n sum += digit;\n }\n\n return sum % 10 === 0;\n };\n\n var _ref2 = $scope.selectedPromotionCardType || {},\n promotionType = _ref2.type;\n\n $scope.isPlcc = promotionType === 'plcc';\n\n $scope.flag = function (field) {\n if ($scope.isPlcc && !$scope.card.type) {\n $scope.card.type = 'PLCC';\n }\n // passing country to differentiate CUP for C2 and ROW\n return _cardMetaData.$CardMetaData.getMetaData($scope.card, field, $locale.country);\n };\n\n $scope.maxLength = function () {\n if ($scope.card && $scope.card.isExisting()) {\n return 30;\n }\n\n return $scope.flag('length.max') + $scope.flag('spaces.length');\n };\n\n if ($scope.card && $scope.card.number) {\n $scope.unformattedCardNumber = (0, _utils.removeNonNumericCharsAndTruncate)($scope.card.number, $scope.maxLength());\n }\n\n $scope.showMXCardLogos = function () {\n return $locale.country === 'MX';\n };\n\n function pxpMXCardLabels() {\n if ($scope.showMXCardLogos()) {\n $pxp('xo_hermes_mx_cardlogo', {}, 'xo_hermes_mx_cardlogo_treatment').then(function () {\n var _ref3 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n treatment_name = _ref3.treatment_name;\n\n $scope.showLabels = treatment_name === 'xo_hermes_mx_cardlogo_treatment';\n });\n } else {\n $scope.showLabels = false;\n }\n }\n\n $populate($scope, {\n cardTypes: $CardTypesModel.instance($scope.token + ':' + $locale.country, {\n token: $scope.token,\n country: $locale.country\n }),\n checkoutAppData: $CheckoutAppDataModel.instance($scope.token).retrieve(),\n checkoutCart: $CheckoutCartModel.instance($scope.token),\n flowEligibility: $FlowEligibilityModel.instance($scope.token).retrieve({\n params: {\n geolocation: $meta.geolocation,\n localeCountry: $locale.country\n }\n })\n }).then(function () {\n if ((0, _utils.isConversionApplicable)($scope)) {\n return updateBuyerFXCurrencyConversion();\n }\n }).then(function () {\n $scope.debitCardFlow = angular.isArray($scope.flowEligibility.paymentCardProductClass) && $scope.flowEligibility.paymentCardProductClass[0] === 'DEBIT';\n var cardTypeServiceCall = $feature('cardTypeServiceCallRequired', false, $scope.country) || $scope.debitCardFlow;\n\n $scope.cardProductValid = function () {\n return $scope.debitCardFlow ? $scope.card.productType === 'DEBIT' : true;\n };\n\n var forceDropDown = false;\n\n function str(item) {\n var s = item.toString();\n\n return item < 10 ? '0' + s : s;\n }\n\n var scanCardExperimentEligibility = function scanCardExperimentEligibility() {\n if (!_index.$DeviceInfo.isSafariiOSBrowserView()) {\n return _squid.$promise.resolve(false);\n }\n // Scan credit card feature is only available in iosVersion 8+\n if (_index.$DeviceInfo.isSafariiOSBrowserView() && _index.$DeviceInfo.getiOSVersion()[0] < 8) {\n return _squid.$promise.resolve(false);\n }\n\n return (0, _squid.$elmo)('xo_hermes_addcard_camera_icon', { 'ctx.COUNTRY': $locale.country }, 'xo_hermes_addcard_camera_icon_show');\n };\n\n scanCardExperimentEligibility().then(function (result) {\n $scope.showScanCardExperiment = result || false;\n });\n\n $scope.supportedCardNamesCommaSeparated = $scope.cardTypes.supportedNames().join(', ');\n $scope.disallowedCardMessageFeature = $feature('disallowedCards', undefined, $scope.country);\n if ($scope.disallowedCardMessageFeature) {\n $scope.showUnsupportedCardMessage = true;\n $scope.unsupportedCardNamesCommaSeparated = $scope.cardTypes.unsupportedNames().join(', ');\n }\n\n $scope.$on('localeChange', function () {\n $scope.cardTypes = $CardTypesModel.instance($scope.token + ':' + $locale.country, {\n token: $scope.token,\n country: $locale.country\n });\n\n $scope.cardTypes.retrieve().then(function () {\n if ($scope.card.type && $scope.cardTypes.allowed.indexOf($scope.card.type) === -1) {\n delete $scope.card.type;\n forceDropDown = false;\n $scope.changeCardNumber(true);\n }\n });\n\n $scope.country = $locale.country;\n\n pxpMXCardLabels();\n });\n\n pxpMXCardLabels();\n\n $scope.cvvShown = function () {\n if ($scope.card.type === 'CETELEM' && $scope.locale.country === 'FR') {\n return false;\n }\n\n if ($scope.card.type === 'CUP' && $scope.card.productType === 'DEBITCARD') {\n return false;\n }\n\n if ($scope.isPlcc && $scope.card.type) {\n return true;\n }\n\n return $scope.flag('fields.cvv');\n };\n\n $scope.expiryShown = function () {\n if ($scope.isPlcc && $scope.card.type) {\n return true;\n }\n if ($scope.card.type === 'CUP' && $scope.card.productType === 'DEBITCARD') {\n return false;\n }\n\n return $scope.flag('fields.expiry');\n };\n\n $scope.enableDropDown = function () {\n // for VISA CUP dual card, force show dropdown for buyer to choose card type\n return Boolean(['ES', 'FR', 'GB', 'IT'].indexOf($scope.locale.country) > -1) || forceDropDown || $scope.card && $scope.card.type === 'VISA' && $scope.card && $scope.card.dualType === 'CUP';\n };\n\n $scope.showDropDown = function () {\n if ($scope.enableDropDown()) {\n return true;\n }\n\n if (!$scope.card.type && $scope.card.number && $scope.card.number.length >= 4 && !cardTypeServiceCall && !$scope.isPlcc) {\n return true;\n }\n\n if (!$scope.card.type && $scope.card.number && $scope.card.number.length >= 7 && cardTypeServiceCall && isUnsupportedCard) {\n return true;\n }\n\n return false;\n };\n\n $scope.showAcceptedCardLogos = function () {\n return !$scope.showDropDown() && $feature('showAcceptedCardLogos', false, $scope.country);\n };\n\n $scope.getCardTypeByNumber = function (types, number) {\n if ($scope.isPlcc && number.length > 6 || !$scope.isPlcc) {\n return _cardMetaData.$CardMetaData.getCardType(types, number);\n }\n };\n\n function formatCardNumber(number) {\n var spaces = $scope.flag('spaces');\n var formatted = [];\n\n for (var i = 0; i < number.length; i++) {\n if (spaces.indexOf(i) > -1) {\n formatted.push(' ');\n }\n\n formatted.push(number.charAt(i));\n }\n\n return formatted.join('');\n }\n\n $scope.$watch('country', function (newValue, oldValue) {\n cardTypeServiceCall = $feature('cardTypeServiceCallRequired', false, $scope.country) || $scope.debitCardFlow;\n });\n\n /**\n * Hit Callback(unformatted cc no) when user gets out of the cardNumber field.\n */\n $scope.focusAndBlurHandler = function ($event) {\n var type = $event.type;\n\n $logger.info('credit_card_number_' + type + '_event');\n if (type !== 'focus' && $scope.cardNumberChanged) {\n $scope.cardNumberChanged($scope.unformattedCardNumber);\n }\n };\n\n // e.g for a dual brand = ['CUP' ,'VISA'], select VISA or CUP based\n // on regex defined for card type. If not regex was defined, pick one\n // of the allowed card type.\n function selectCardTypeForDualBrands(result) {\n var dualCardTypes = $feature('dualCardTypes', {});\n var match;\n\n Object.keys(dualCardTypes).some(function (key) {\n return result.some(function (cardType) {\n if (cardType.type === key) {\n match = key;\n return true;\n }\n return false;\n });\n });\n\n if (match) {\n var regex = new RegExp(dualCardTypes[match]);\n var selected = $util.find(result, function (cardType) {\n if (regex.test(cardType.type)) {\n return true;\n }\n });\n\n // if selected card based on regexp is CUP\n // then we can test for AMEX as subtype (a dualType card)\n if (selected && selected.type === 'CUP') {\n $util.some(result, function (cardType) {\n if (/^AMEX$/.test(cardType.type)) {\n selected.dualType = cardType.type;\n return true;\n }\n });\n }\n\n // if selected card based on regexp is VISA\n // then we can test for CUP as subtype (a dualType card)\n if (selected && selected.type === 'VISA') {\n $util.some(result, function (cardType) {\n if (/^CUP$/.test(cardType.type)) {\n selected.dualType = cardType.type;\n return true;\n }\n });\n }\n\n return selected;\n } else {\n return $util.find(result, function (cardType) {\n return $scope.cardTypes.allowed.indexOf(cardType.type) > -1;\n });\n }\n }\n\n function selectCardType(result) {\n if (angular.isArray(result)) {\n if (result.length >= 2) {\n result = selectCardTypeForDualBrands(result);\n } else {\n result = result[0];\n }\n }\n\n return result || {};\n }\n\n function clearCardType() {\n $scope.card.type = '';\n $scope.card.isUpop = false;\n $scope.card.dualType = '';\n $scope.card.productType = '';\n }\n\n function getCardTypeByNumberServiceCall(number) {\n if (number.length >= 9) {\n /*\n * We have BIN numbers of different lengths - 6, 8, 9\n * For a 9 digit BIN number, when users enter 6 digits,\n * we might get a response different from what is expected out\n * of 9 digit BIN number.\n * So, we decided to call fims only when user entered card number\n * length is greater than or equal to 9.\n * This will also avoid multiple calls to fims at different length\n * of card (i.e. calling fims at every new digit after 6th digit until 9th digit)\n */\n var bin = number.slice(0, 9);\n\n if (lastVerifiedBin && lastVerifiedBin.bin === bin) {\n $scope.card.type = lastVerifiedBin.type;\n $scope.card.dualType = lastVerifiedBin.dualType;\n $scope.card.productType = lastVerifiedBin.productType;\n $scope.card.isUpop = lastVerifiedBin.isUpop;\n return;\n }\n\n if (isUnsupportedCard === bin || bin === lastRequestedBin) {\n return;\n }\n\n // protect against requesting substring of already requested bin\n if (bin.length <= lastRequestedBin.length && lastRequestedBin.indexOf(bin) > -1) {\n return;\n }\n\n lastRequestedBin = bin;\n\n $CardTypeFromBinModel.instance().save({\n data: {\n user_country: $scope.country,\n bin: bin\n },\n silent: true,\n success: function success(result) {\n\n // Log card brands returned from fims\n if (result) {\n var logObj = {\n totalItems: result.length,\n brands: []\n };\n\n result.forEach(function (brandObj) {\n logObj.brands.push(brandObj.type);\n });\n\n $logger.info('fims_card_type_from_bin_response', logObj);\n }\n\n result = selectCardType(result);\n var type = result.type;\n\n var disallowedCard = false;\n\n if ($scope.cardTypes.allowed.indexOf(type) === -1) {\n disallowedCard = true;\n } else if ($scope.debitCardFlow) {\n if (result.productType !== 'DEBIT') {\n disallowedCard = true;\n }\n }\n\n // if we get upop in the response from BIN lookup\n // set into the cardModel to trigger OTP\n // this should not only be set if dropdown is not shown\n $scope.card.isUpop = result.isUpop;\n\n if (disallowedCard) {\n clearCardType();\n isUnsupportedCard = bin;\n $scope.allowedCardsTooltip = true;\n return;\n }\n\n isUnsupportedCard = undefined;\n forceDropDown = false;\n if (!$scope.showDropDown()) {\n $scope.card.type = type;\n $scope.card.dualType = result.dualType;\n $scope.card.productType = result.productType;\n }\n\n // check for shorter version of bin coming back after longer version, protect against overwrite\n if (!lastVerifiedBin.bin || lastVerifiedBin.bin.indexOf(bin) === -1) {\n lastVerifiedBin = {\n bin: bin,\n type: type,\n dualType: result.dualType,\n productType: result.productType,\n isUpop: result.isUpop\n };\n }\n\n // This logic is to handle copy paste case when all numbers are entered at once\n if ($scope.card.type && number.length >= $scope.flag('length.min')) {\n if (/android/i.test(navigator.userAgent)) {\n return;\n }\n\n var ccNumber = (0, _utils.removeNonNumericCharsAndTruncate)($scope.card.number, $scope.maxLength());\n\n if (ccNumber.indexOf(number) >= 0) {\n $scope.card.number = formatCardNumber(ccNumber);\n }\n }\n\n return;\n },\n contingencies: {\n GET_FI_ISSUER_DETAILS_ERR: function GET_FI_ISSUER_DETAILS_ERR(name, result) {\n clearCardType();\n isUnsupportedCard = bin;\n lastRequestedBin = undefined;\n }\n },\n error: function error() {\n clearCardType();\n isUnsupportedCard = bin;\n }\n });\n } else {\n isUnsupportedCard = undefined;\n forceDropDown = false;\n clearCardType();\n }\n }\n\n $scope.getAllowedCardTypeByNumber = function (number) {\n return $scope.getCardTypeByNumber($scope.cardTypes.allowed, number);\n };\n\n $scope.getDisallowedCardTypeByNumber = function (number) {\n return $scope.getCardTypeByNumber($scope.cardTypes.disallowed, number);\n };\n\n $scope.enableAddMode = function () {\n if ($scope.card.isExisting()) {\n $scope.card.number = '';\n }\n };\n\n $scope.changeType = function () {\n forceDropDown = true;\n\n $scope.changeCardNumber(true);\n\n // If the card type dropdown changes we want to\n // check to see if we need to call the DCC API\n // and if it is then make a call\n $scope.checkCardForDccCall();\n\n // Blank out unsupported fields\n\n if (!$scope.flag('fields.expiry')) {\n delete $scope.card.expiry_month;\n delete $scope.card.expiry_year;\n }\n\n if (!$scope.flag('fields.issue')) {\n delete $scope.card.start_month;\n delete $scope.card.start_year;\n delete $scope.card.issue_number;\n }\n\n if (!$scope.flag('fields.dob')) {\n delete $scope.card.dob_day;\n delete $scope.card.dob_month;\n delete $scope.card.dob_year;\n }\n\n if (!$scope.flag('fields.cvv')) {\n delete $scope.card.security_code;\n }\n };\n\n $scope.changeCardNumber = function (isCardTypeChanged) {\n // If buyer tries to modify an update card number. We remove the whole string\n // so buyer can add a card instead.\n $scope.enableAddMode();\n $scope.allowedCardsTooltip = false;\n\n var regex = /[0-9]/;\n\n if ($feature('disableFullWidthCharacters') && regex.test($scope.card.number)) {\n $logger.info('checkout_fpti', {\n 'is_fullwidth_character': true\n });\n }\n\n var number = (0, _utils.removeNonNumericCharsAndTruncate)($scope.card.number, $scope.maxLength());\n var formattedNumber = void 0;\n\n $scope.unformattedCardNumber = number;\n\n // Attempt to determine the card type\n var cardType = void 0;\n\n if (cardTypeServiceCall) {\n if (!isCardTypeChanged) {\n getCardTypeByNumberServiceCall(number);\n }\n\n if (isUnsupportedCard) {\n $scope.allowedCardsTooltip = true;\n }\n } else {\n if (!isCardTypeChanged) {\n // Hide dropdown and trigger bin matching when the cc number is < 4 digits\n if (number.length < 4) {\n forceDropDown = false;\n }\n\n if (!$scope.enableDropDown()) {\n cardType = $scope.getAllowedCardTypeByNumber(number);\n $scope.card.type = cardType.type;\n $scope.card.subType = cardType.subType;\n }\n }\n\n if ($scope.isPlcc && $scope.card.type) {\n $scope.cvvShown();\n $scope.expiryShown();\n }\n\n if (!$scope.card.type && !$scope.isPlcc && (number.length >= 4 || $scope.getDisallowedCardTypeByNumber(number).type)) {\n $scope.allowedCardsTooltip = true;\n }\n }\n\n // Format the card number\n\n /*\n * PPPLMER-1563 commented out to fix this bug\n if (/android/i.test(navigator.userAgent)) {\n return;\n }\n */\n\n formattedNumber = formatCardNumber(number);\n\n // If the card is already formatted correctly, we can leave the user to continue in peace.\n if ($scope.card.number === formattedNumber) {\n return;\n }\n\n // Wait for the user's input to be reflected on the page (necessary for safari 5 otherwise selectionStart is incorrect)\n $timeout(function () {\n\n // re-formatting the number, since the card type may not have resolved before the first call\n $scope.card.number = formatCardNumber(number);\n\n // Save the current cursor positions\n var ccField = document.getElementById('cc');\n\n if (!ccField) {\n return;\n }\n var inputLength = ccField.value.length;\n var cursorStart = ccField.selectionStart;\n\n // Wait for the formatted card to be reflected on the page\n $timeout(function () {\n\n // If the cursor was at the end of the input field, keep it at the end\n if (cursorStart === inputLength) {\n ccField.selectionStart = ccField.selectionEnd = ccField.value.length;\n // Otherwise place the cursor to the position it was in before we replaced with the formatted number\n } else {\n ccField.selectionStart = ccField.selectionEnd = cursorStart;\n }\n });\n });\n };\n\n var year = new Date().getFullYear();\n\n $scope.months = $util.map($util.range(1, 13), str);\n $scope.startYears = $util.map($util.range(year - 10, year), str);\n });\n }]\n };\n }]);\n});\n\n_cardMetaData.$CardMetaData;\n\n_utils.unchangeableCardTypes;\n\n_utils.getDefaultCoversionSelection;\n\n_utils.isConversionApplicable;\n\n_utils.removeNonNumericCharsAndTruncate;\n\n_index.$DeviceInfo;\n\n_squid.$promise;\n\n_squid.$elmo;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-wallet-components/src/add-card/creditcard-input/directive.js\n// module id = ../node_modules/xo-wallet-components/src/add-card/creditcard-input/directive.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.removeNonNumericCharsAndTruncate = exports.isConversionApplicable = exports.getDefaultCoversionSelection = exports.unchangeableCardTypes = undefined;\n\nvar _squid = require('squid');\n\nvar getForcedCards = function getForcedCards(type) {\n return _squid.$util.getProperty(_squid.$config, 'currencyConversion.cards.forced' + type, { 'default': [] });\n}; /* eslint-disable no-arrow-condition, no-confusing-arrow, angular/typecheck-string */\nvar unchangeableCardTypes = exports.unchangeableCardTypes = [].concat(getForcedCards('PayPal'), getForcedCards('Vendor'));\n\nvar getDefaultCoversionSelection = exports.getDefaultCoversionSelection = function getDefaultCoversionSelection() {\n var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n type = _ref.type;\n\n return getForcedCards('Vendor').includes(type) ? 'VENDOR' : 'PAYPAL';\n};\n\n/**\n * @function isConversionApplicable\n * @description checks to see if currency conversion is needed for the transaction\n * @param {object} scope - Angular scope\n * @returns {boolean}\n */\nvar isConversionApplicable = exports.isConversionApplicable = function isConversionApplicable(scope) {\n var cartCurrency = scope.checkoutCart.get('purchase.amounts.total.currency_code');\n var billingCurrency = _squid.$util.getProperty(scope, 'locale.metadata.currency.code');\n\n // If the cart currency and the currency for the user's billing address\n // are both presetn and different then currency conversion is applicable\n var hasDifferentCurrency = Boolean(cartCurrency && billingCurrency && cartCurrency !== billingCurrency);\n\n /**\n * Certain countries (e.g. IN) only allow domestic transactions, transactions between\n * a buyer and merchant both from that country (e.g. IN buyer & IN merchant), to be\n * done in the domestic currency (e.g. INR). For these countries we should not show\n * the conversion information, even if the cart currency is different from the countries\n * domestic currency. (See PPPLMER-63051)\n */\n var ineligibleDomesticCountriesList = _squid.$util.getProperty(_squid.$config, 'currencyConversion.domesticTransactionsIneligibleCountries', { 'default': [] });\n var merchantCountry = scope.checkoutAppData.get('merchant.merchant_country');\n var isForcedDomesticConversion = _squid.$locale.country === merchantCountry && ineligibleDomesticCountriesList.includes(_squid.$locale.country);\n\n return hasDifferentCurrency && !isForcedDomesticConversion;\n};\n\n/**\n * @function removeNonNumericCharsAndTruncate\n * @description removes non-numeric chars and optionally truncates\n * the string based on the provided `maxLen` param\n * @param {string} str\n * @param {number} maxLen\n * @returns {string}\n */\nvar removeNonNumericCharsAndTruncate = exports.removeNonNumericCharsAndTruncate = function removeNonNumericCharsAndTruncate(str, maxLen) {\n if (typeof str !== 'string') {\n return '';\n }\n\n var replacedStr = str.replace(/[^0-9]+/g, '');\n\n return maxLen ? replacedStr.slice(0, maxLen) : replacedStr;\n};\n\n_squid.$config;\n\n_squid.$locale;\n\n_squid.$util;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-wallet-components/src/add-card/creditcard-input/utils.js\n// module id = ../node_modules/xo-wallet-components/src/add-card/creditcard-input/utils.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$xoCvvDirective = undefined;\n\nvar _squid = require('squid');\n\nvar _cardMetaData = require('../cardMetaData');\n\nvar _logger = require('xo-beaver/dist/logger');\n\nrequire('xo-ui-components/src/floating-label/directive');\n\nrequire('xo-ui-components/src/directionality/directive');\n\nvar _template = require('./template.html');\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar $xoCvvDirective = exports.$xoCvvDirective = _squid.$Component.extend('$xoCvvDirective', {\n tag: 'xo-cvv',\n template: _template2['default'],\n\n props: {\n card: {\n type: 'var',\n required: false\n },\n showLabel: {\n type: 'var',\n required: false\n }\n },\n\n lifecycle: {\n enter: function enter() {\n var _this = this;\n\n this.focusAndBlurHandler = function ($event) {\n _logger.$logger.info('credit_card_cvv_' + $event.type + '_event');\n };\n this.maskCVV = (0, _squid.$feature)('maskCVV', false, _squid.$locale.country);\n this.cvvLength = function () {\n // passing country to differentiate CUP for C2 and ROW\n return _cardMetaData.$CardMetaData.getMetaData(_this.props.card, 'length.cvv', _squid.$locale.country);\n };\n this.cvvRequired = function () {\n return _this.props.card.type !== 'MAESTRO' || (0, _squid.$feature)('maestroCvvRequired', false, _squid.$locale.country);\n };\n }\n }\n});\n\nangular.value(\"$xoCvvDirective\", $xoCvvDirective);\n_squid.$Component;\n\n_squid.$locale;\n\n_squid.$feature;\n\n_cardMetaData.$CardMetaData;\n\n_logger.$logger;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-wallet-components/src/add-card/cvv/directive.js\n// module id = ../node_modules/xo-wallet-components/src/add-card/cvv/directive.js\n// module chunks = 0","module.exports = \"
          \\n
          \\n \\n\\n \\n \\n \\n \\n
          \\n
          \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-wallet-components/src/add-card/cvv/template.html\n// module id = ../node_modules/xo-wallet-components/src/add-card/cvv/template.html\n// module chunks = 0","\n\ndefine(['angular', 'squid/index', 'text!./template.html', 'xo-models/src/checkout/index', 'xo-models/src/fi/index', 'xo-models/src/address/index'], function (angular, squid, template) {\n\n return squid.module('xo-add-card.directive', ['squid', 'xomodel.checkout', 'xomodel.fi', 'xomodel.address']).directive('xoAddCardFlow', [function () {\n return {\n template: template,\n\n scope: {\n token: '=?',\n parentCallbacks: '=?',\n message: '=?',\n pagetitle: '=?',\n sidebar: '=?',\n showmeftsection: '=?',\n hideparenthead: '=?',\n promotion: '=?',\n pageLevel: '=?',\n logout: '=?',\n phone: '=?',\n fundingid: '=?',\n onSuccess: '=?',\n backUri: '=?'\n },\n\n controller: ['$scope', '$state', '$populate', '$AddCardModel', '$CardModel', '$CheckoutSessionModel', '$PrefillAddressModel', '$util', '$renderContent', function ($scope, $state, $populate, $AddCardModel, $CardModel, $CheckoutSessionModel, $PrefillAddressModel, $util, $renderContent) {\n\n $scope.addCCDone = function () {\n $scope.parentCallbacks.finish();\n };\n\n $scope.callbacks = {\n done: function done() {\n $scope.parentCallbacks.finish();\n },\n\n showCep: function showCep() {\n $scope.prefillAddress = new $PrefillAddressModel({\n id: $scope.token\n });\n\n $state.go('^.addCep');\n },\n\n cardTypeSelected: function cardTypeSelected(type) {\n $scope.selectedPromotionCardType = {\n type: type\n };\n $state.go('^.addCard');\n }\n };\n\n $scope.cepDone = function () {\n $state.go('^.addBilling');\n };\n\n $scope.selectedPromotionCardType = {\n type: $scope.promotion && $scope.promotion.type\n };\n\n if ($scope.promotion) {\n $scope.promotion.type = null;\n }\n\n $scope.billingaddressupdated = {\n value: false\n };\n\n $scope.phone = {\n hide_type: true\n };\n\n $scope.cardmodel = new $AddCardModel({\n card: new $CardModel()\n });\n\n $populate($scope, {\n checkoutSession: $CheckoutSessionModel.instance($scope.token).retrieve({\n contingencies: {\n NEED_CREDIT_CARD: angular.noop,\n EXPIRED_CREDIT_CARD: angular.noop\n }\n })\n }).then(function () {\n\n if ($scope.checkoutSession.errorData && $scope.checkoutSession.errorData.resolution) {\n var card = $scope.checkoutSession.errorData.resolution.data;\n\n if (card.fundingId && card.fi && card.fi.type) {\n $scope.cardmodel.id = card.fundingId;\n $scope.cardmodel.card = new $CardModel({\n number: 'xxxx-xxxx-xxxx-' + card.fi.number,\n type: card.fi.type.toUpperCase(),\n productType: card.fi.productType\n });\n }\n }\n if ($scope.fundingid) {\n var fundingSource = $util.find($scope.checkoutSession.fundingOptions.instruments, function (funding) {\n if (funding && funding.id === $scope.fundingid) {\n return funding;\n }\n });\n\n if (fundingSource) {\n $scope.cardmodel.id = fundingSource.id;\n $scope.cardmodel.card = new $CardModel({\n number: 'xxxx-xxxx-xxxx-' + fundingSource.lastDigits,\n lastDigits: fundingSource.lastDigits,\n type: fundingSource.name,\n name: $renderContent('fsMappings.' + fundingSource.name)\n });\n }\n }\n });\n }]\n };\n }]);\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-wallet-components/src/add-card/directive.js\n// module id = ../node_modules/xo-wallet-components/src/add-card/directive.js\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _squid = require('squid');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nrequire('xo-ui-components/src/dropdown/directive');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _squid.$Component.extend('$xoDobCardInputDirective', {\n tag: 'xo-dob-card-input',\n template: _template2['default'],\n\n props: {\n user: {\n type: 'var',\n required: false\n }\n },\n\n lifecycle: {\n enter: function enter() {\n function pad() {\n var length = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 2;\n\n return function (num) {\n return (new Array(length + 1).join('0') + num).substr(-length);\n };\n }\n\n var year = new Date().getFullYear();\n\n this.days = _squid.$util.map(_squid.$util.range(1, 32), pad());\n this.months = _squid.$util.map(_squid.$util.range(1, 13), pad());\n this.years = _squid.$util.map(_squid.$util.range(year - 100, year), pad(4)).reverse();\n }\n }\n});\n\n\n_squid.$Component;\n\n_squid.$util;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-wallet-components/src/add-card/dob/directive.js\n// module id = ../node_modules/xo-wallet-components/src/add-card/dob/directive.js\n// module chunks = 0","module.exports = \"
          \\n \\n\\n
          \\n \\n
          \\n\\n
          \\n \\n
          \\n\\n
          \\n \\n
          \\n
          \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-wallet-components/src/add-card/dob/template.html\n// module id = ../node_modules/xo-wallet-components/src/add-card/dob/template.html\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _directive = require('./cardExpiry/directive');\n\nObject.keys(_directive).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _directive[key];\n }\n });\n});\n\nvar _cardMetaData = require('./cardMetaData');\n\nObject.keys(_cardMetaData).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _cardMetaData[key];\n }\n });\n});\n\nvar _directive2 = require('./cvv/directive');\n\nObject.keys(_directive2).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _directive2[key];\n }\n });\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-wallet-components/src/add-card/index.js\n// module id = ../node_modules/xo-wallet-components/src/add-card/index.js\n// module chunks = 0","\n\ndefine(['squid/index', './directive', './addcard/route', './selectcard/route', './addbilling/route', './addCep/route', '../confirm-upop/route'], function (squid) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n squid.module('xo-add-card.route', ['squid', 'xo-add-card.directive', 'xo-add-card.addcard.route', 'xo-add-card.selectcard.route', 'xo-add-card.addbilling.route', 'xo-add-card.addcep.route', 'xo-confirm-upop.route']).factory('$AddCardFlowRoute', ['$ComponentRoute', function ($ComponentRoute) {\n\n return $ComponentRoute.extend('CardRoute', {\n\n name: 'addCardFlow',\n directive: 'xo-add-card-flow',\n titleContent: 'asideHeader.addCard',\n children: [{\n name: '$AddCardRoute',\n attributes: {\n token: 'token',\n cardmodel: 'cardmodel',\n done: 'addCCDone',\n message: 'message',\n pagetitle: 'pagetitle',\n sidebar: 'sidebar',\n showmeftsection: 'showmeftsection',\n hideparenthead: 'hideparenthead',\n billingaddressupdated: 'billingaddressupdated',\n isupdatecard: 'isupdatecard',\n 'parent-callbacks': 'callbacks',\n 'selected-promotion-card-type': 'selectedPromotionCardType',\n promotion: 'promotion',\n 'page-level': 'pageLevel',\n logout: 'logout',\n phone: 'phone',\n 'on-success': 'onSuccess',\n 'back-uri': 'backUri'\n }\n\n }, {\n name: '$SelectCardRoute',\n attributes: {\n token: 'token',\n 'parent-callbacks': 'callbacks',\n message: 'message',\n pagetitle: 'pagetitle',\n sidebar: 'sidebar',\n 'selected-promotion-card-type': 'selectedPromotionCardType',\n promotion: 'promotion'\n }\n }, {\n name: '$AddBillingRoute',\n attributes: {\n token: 'token',\n sidebar: 'sidebar',\n showmeftsection: 'showmeftsection',\n 'parent-callbacks': 'callbacks',\n hideparenthead: 'hideparenthead',\n billingaddressupdated: 'billingaddressupdated',\n 'prefill-address': 'prefillAddress'\n }\n }, {\n name: '$AddCepRoute',\n attributes: {\n token: 'token',\n sidebar: 'sidebar',\n 'done-fn': 'cepDone',\n 'prefill-address': 'prefillAddress'\n }\n }]\n });\n }]);\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-wallet-components/src/add-card/route.js\n// module id = ../node_modules/xo-wallet-components/src/add-card/route.js\n// module chunks = 0","\n\ndefine(['angular', 'text!./template.html'], function (angular, template) {\n\n return angular.module('xo-add-card.selectcard.directive', []).directive('xoSelectCard', [function () {\n\n return {\n template: template,\n\n scope: {\n parentCallbacks: '=?',\n token: '=?',\n promotion: '=?'\n },\n\n controller: ['$scope', '$populate', '$CheckoutSessionModel', function ($scope, $populate, $CheckoutSessionModel) {\n\n $populate($scope, {\n checkoutSession: $CheckoutSessionModel.instance($scope.token)\n }).then(function () {\n $scope.selectCardType = function (type) {\n // card type is either 'cc' or 'plcc'\n $scope.parentCallbacks.cardTypeSelected(type);\n };\n });\n }]\n };\n }]);\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-wallet-components/src/add-card/selectcard/directive.js\n// module id = ../node_modules/xo-wallet-components/src/add-card/selectcard/directive.js\n// module chunks = 0","\n\ndefine(['angular', './directive'], function (angular) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n angular.module('xo-add-card.selectcard.route', ['xo-add-card.selectcard.directive']).factory('$SelectCardRoute', ['$ComponentRoute', function ($ComponentRoute) {\n\n return $ComponentRoute.extend('SelectCardRoute', {\n\n name: 'selectCard',\n directive: 'xo-select-card',\n titleContent: 'asideHeader.selectCard',\n children: []\n });\n }]);\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-wallet-components/src/add-card/selectcard/route.js\n// module id = ../node_modules/xo-wallet-components/src/add-card/selectcard/route.js\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _angular = require('angular');\n\nvar _angular2 = _interopRequireDefault(_angular);\n\nvar _squid = require('squid');\n\nvar _util = require('../../fi-contingency-list/util');\n\nvar _index = require('xo-models/src/fi/index');\n\nrequire('xo-ui-components/src/spinner-button/directive');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar VERIFICATION_CODE_COUNTDOWN_IN_SECS = 180; // 3 minutes\nvar RESEND_CODE_LINK_TIMEOUT_MILLI_SECS = 60000; // 1 minute\nvar ONE_MINUTE_IN_SECS = 60;\n\nexports['default'] = _squid.$Component.extend('$xoConfirmOtpDirective', {\n tag: 'xo-confirm-otp',\n template: _template2['default'],\n\n props: {\n token: {\n type: 'var',\n required: false\n },\n phone: {\n type: 'var',\n required: false\n },\n cardModel: {\n type: 'var',\n required: false\n },\n onSuccess: {\n type: 'var',\n required: false\n },\n message: {\n type: 'var',\n required: false\n },\n buttonTextKey: {\n type: 'var',\n required: false\n }\n },\n actions: {\n addMessage: function addMessage(type, contentKey) {\n if (contentKey) {\n this.message({\n msgKeys: [_angular2['default'].isArray(contentKey) ? contentKey[0] : contentKey],\n type: type || 'error'\n });\n }\n },\n stopConfirmCodeTimer: function stopConfirmCodeTimer() {\n if (this.confirmCodeTimer) {\n _angular.$interval.cancel(this.confirmCodeTimer);\n }\n this.countdown = 0;\n },\n stopResendCodeTimer: function stopResendCodeTimer() {\n if (this.resendCodeTimer) {\n _angular.$timeout.cancel(this.resendCodeTimer);\n }\n this.showResendLink = false;\n },\n updateCountdown: function updateCountdown() {\n if (this.countdown > 0) {\n this.countdown--;\n this.timer = Math.floor(this.countdown / ONE_MINUTE_IN_SECS) + ':' + ('0' + this.countdown % ONE_MINUTE_IN_SECS).slice(-2);\n } else {\n if (!this.isConfirmProcessing) {\n this.actions.addMessage('warning', 'confirmUpop.codeExpired');\n }\n this.actions.stopConfirmCodeTimer();\n this.actions.stopResendCodeTimer();\n }\n },\n startCountdown: function startCountdown(resetTimer) {\n var _this = this;\n\n if (resetTimer) {\n this.actions.stopConfirmCodeTimer();\n this.countdown = VERIFICATION_CODE_COUNTDOWN_IN_SECS;\n this.actions.updateCountdown();\n this.confirmCodeTimer = (0, _angular.$interval)(this.actions.updateCountdown, 1000);\n }\n\n this.actions.stopResendCodeTimer();\n this.showResendLink = false;\n this.resendCodeTimer = (0, _angular.$timeout)(function () {\n _this.showResendLink = true;\n }, RESEND_CODE_LINK_TIMEOUT_MILLI_SECS);\n this.actions.addMessage('success', 'confirmUpop.codeSent');\n },\n processed: function processed() {\n if (!this.countdown && this.isConfirmProcessing) {\n this.actions.addMessage('warning', 'confirmUpop.codeExpired');\n }\n this.isProcessing = this.isConfirmProcessing = false;\n },\n handleContingencies: function handleContingencies() {\n var result = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var prop = arguments[1];\n\n var errorData = void 0;\n\n if (result.errorCodes) {\n errorData = result;\n } else {\n errorData = {\n errorCodes: [result['0'] || 'ISSUER_DECLINE']\n };\n }\n\n this.message(_util.$fiErrorUtil.addPageErrors(errorData, 'confirmUpop', prop, 'error'));\n\n if (window.scrollTo) {\n window.scrollTo(0, 0);\n }\n },\n sendNewCode: function sendNewCode() {\n // reset the code field.\n if (this.cardModel) {\n this.cardModel.otp_code = '';\n }\n this.actions.resendCode(true);\n },\n resendCode: function resendCode(resetTimer) {\n var _this2 = this;\n\n this.isProcessing = true;\n\n this.resolveOTP.action('init', {\n silent: true,\n data: {\n phone: {\n country_code: this.phone.IntDialingCountryCode,\n number: this.phone.telephone\n }\n },\n resultModel: {},\n success: function success() {\n _this2.actions.startCountdown(resetTimer);\n },\n\n error: function error() {\n _this2.actions.handleContingencies();\n },\n\n contingencies: {\n INIT_OTP_CONTINGENCY: function INIT_OTP_CONTINGENCY(name, result) {\n // prop for last 4 digits of card in error message\n var prop = {\n number: _this2.cardLast4\n };\n\n _this2.actions.handleContingencies(result, prop);\n _util.$fiErrorUtil.addFieldErrors(result, _this2.$element);\n },\n DEFAULT: function DEFAULT() {\n _this2.actions.handleContingencies();\n }\n }\n })['finally'](this.actions.processed);\n },\n confirmOTP: function confirmOTP() {\n var _this3 = this;\n\n this.isProcessing = this.isConfirmProcessing = true;\n\n this.resolveOTP.action('complete', {\n silent: true,\n data: {\n code: this.cardModel.otp_code,\n phone: {\n country_code: this.phone.IntDialingCountryCode,\n number: this.phone.telephone\n },\n card_data: {\n expiration_time: {\n month: this.cardModel.expiry_month,\n year: this.cardModel.expiry_year\n },\n card_verification_code: this.cardModel.security_code\n }\n },\n\n success: this.onSuccess,\n\n error: function error() {\n _this3.actions.handleContingencies({}, 'confirmUpop');\n _this3.actions.processed();\n },\n\n contingencies: {\n COMPLETE_OTP_CONTINGENCY: function COMPLETE_OTP_CONTINGENCY(name, result) {\n // prop for last 4 digits of card in error message\n var prop = {\n number: _this3.cardLast4\n };\n\n _this3.actions.handleContingencies(result, prop);\n _util.$fiErrorUtil.addFieldErrors(result, _this3.$element);\n _this3.actions.processed();\n }\n }\n })['catch'](function () {\n _this3.actions.handleContingencies();\n _this3.actions.processed();\n });\n }\n },\n lifecycle: {\n enter: function enter() {\n var _this4 = this;\n\n this.resolveOTP = new _index.$ResolveOTP({ id: this.cardModel.id });\n this.isProcessing = this.showResendLink = false;\n this.cardLast4 = this.cardModel.last4();\n this.phoneLast4 = this.phone && this.phone.telephone && this.phone.telephone.slice(-4);\n this.actions.startCountdown(true);\n\n if (!this.buttonTextKey) {\n this.buttonTextKey = 'common.confirm';\n }\n\n this.$watch('isProcessing', function (isProcessing) {\n if (isProcessing) {\n _this4.$element.addClass('processing');\n } else {\n _this4.$element.removeClass('processing');\n }\n });\n $('#upopConfirmation .modalContainer').focus();\n }\n }\n});\n\n\n_angular.$interval;\n\n_angular.$timeout;\n\n_squid.$Component;\n\n_util.$fiErrorUtil;\n\n_index.$ResolveOTP;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-wallet-components/src/confirm-upop/confirm/directive.js\n// module id = ../node_modules/xo-wallet-components/src/confirm-upop/confirm/directive.js\n// module chunks = 0","module.exports = \"
          \\n
          \\n\\n
          \\n {{content('confirmUpop.timeRemaining')}}\\n {{timer}} {{content('confirmUpop.minutes')}}\\n {{content('confirmUpop.resendCode')}}\\n
          \\n\\n \\n\\n
          \\n
          \\n \\n\\n
          \\n \\n
          \\n \\n
          \\n \\n
          \\n
          \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-wallet-components/src/confirm-upop/confirm/template.html\n// module id = ../node_modules/xo-wallet-components/src/confirm-upop/confirm/template.html\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _angular = require('angular');\n\nvar _squid = require('squid');\n\nvar _uiRouter = require('uiRouter');\n\nvar _addCard = require('../add-card');\n\nvar _util = require('../fi-contingency-list/util');\n\nvar _jquery = require('jquery');\n\nvar _jquery2 = _interopRequireDefault(_jquery);\n\nrequire('./init/directive');\n\nrequire('./confirm/directive');\n\nrequire('./styles');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nvar _index = require('xo-models/src/checkout/index');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _squid.$Component.extend('$xoConfirmUpopDirective', {\n tag: 'xo-confirm-upop',\n template: _template2['default'],\n\n props: {\n token: {\n type: 'var',\n required: false\n },\n phone: {\n type: 'var',\n required: false\n },\n cardModel: {\n type: 'var',\n required: false\n },\n onSuccess: {\n type: 'var',\n required: false\n },\n onCancel: {\n type: 'var',\n required: false\n },\n buttonTextKey: {\n type: 'var',\n required: false\n },\n onInitError: {\n type: 'var',\n required: false\n }\n },\n\n actions: {\n initSuccess: function initSuccess() {\n this.showCollectOtpScreen = true;\n }\n },\n\n lifecycle: {\n enter: function enter() {\n var _this = this;\n\n this.phone = this.props.phone || {};\n this.cardLast4 = this.cardModel.last4();\n\n // Set only from Login page\n this.fromLoginOverlay = _uiRouter.$stateParams.fromLoginOverlay;\n\n (0, _angular.$timeout)(function () {\n (0, _jquery2['default'])('#upopConfirmation .upopConfirm').addClass('upopOpen');\n if (_this.fromLoginOverlay) {\n (0, _angular.$timeout)(function () {\n (0, _jquery2['default'])('#upopConfirmation .modalWrapper').addClass('modalWrapperAnimation');\n });\n }\n });\n\n var hideModal = function hideModal() {\n (0, _jquery2['default'])('#upopConfirmation .upopConfirm').removeClass('upopOpen');\n };\n\n var done = function done(handler, target, errorData) {\n hideModal();\n (0, _angular.$timeout)(function () {\n return handler ? handler(errorData) : _this.goto(target);\n }, 300);\n };\n\n var _success = function _success() {\n done(_this.props.onSuccess, 'checkout.review');\n };\n\n this.closeModal = function (event) {\n if (event) {\n event.preventDefault();\n }\n\n done(_this.props.onCancel, '^');\n };\n\n this.confirmed = function () {\n if (_this.props.onSuccess) {\n // Make sure Guest/Signup always passes the onSuccess callback method.\n return _success();\n }\n\n // Update is only applicable for Hermes Member flow.\n var checkoutSession = _index.$CheckoutSessionModel.instance(_this.token);\n\n checkoutSession.fundingOptions.action('update', {\n resultModel: checkoutSession,\n silent: true,\n data: {\n planId: _this.cardModel.id\n },\n success: function success() {\n if (checkoutSession.cvvData) {\n checkoutSession.set('cvvData.security_code', _this.cardModel.security_code);\n }\n var isNewCard = !_this.cardModel.isExisting();\n\n var msg = isNewCard ? ['smallToolTip.cardAddedConfirmed'] : ['smallToolTip.cardConfirmed'];\n\n checkoutSession.message = {\n type: 'success',\n msgKeys: msg\n };\n\n _success();\n },\n contingencies: {\n TRANSACTION_REFUSED: function TRANSACTION_REFUSED(name) {\n checkoutSession.message = {\n type: 'info',\n msgKeys: 'creditcard.addedButCannotUse'\n };\n\n _success();\n }\n }\n });\n };\n\n this.flag = function (field) {\n // passing country to differentiate CUP for C2 and ROW\n return _addCard.$CardMetaData.getMetaData(_this.cardModel, field, _squid.$locale.country);\n };\n\n this.setMessage = function (message) {\n _this.message = message;\n };\n\n this.setInitErrorData = function (errorData) {\n if (_this.props.onInitError) {\n // Pass on the errorData to onInitError callback function for client specific content adaptation.\n done(_this.props.onInitError, '^', errorData);\n } else {\n\n // prop for last 4 digits of card in error message\n var prop = {\n number: _this.cardModel.last4()\n };\n\n // Build the content message from errorData\n _this.setMessage(_util.$fiErrorUtil.addPageErrors(errorData, 'confirmUpop', prop, 'error'));\n }\n };\n }\n }\n});\n\n\n_angular.$timeout;\n\n_squid.$Component;\n\n_squid.$locale;\n\n_uiRouter.$stateParams;\n\n_addCard.$CardMetaData;\n\n_util.$fiErrorUtil;\n\n_index.$CheckoutSessionModel;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-wallet-components/src/confirm-upop/directive.js\n// module id = ../node_modules/xo-wallet-components/src/confirm-upop/directive.js\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _squid = require('squid');\n\nvar _util = require('../../fi-contingency-list/util');\n\nvar _index = require('xo-models/src/fi/index');\n\nrequire('xo-ui-components/src/spinner-button/directive');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _squid.$Component.extend('$xoInitOtpDirective', {\n tag: 'xo-init-otp',\n template: _template2['default'],\n\n props: {\n token: {\n type: 'var',\n required: false\n },\n phone: {\n type: 'var',\n required: false\n },\n cardModel: {\n type: 'var',\n required: false\n },\n onSuccess: {\n type: 'var',\n required: false\n },\n flag: {\n type: 'var',\n required: false\n },\n setErrorData: {\n type: 'var',\n required: false\n }\n },\n\n actions: {\n initOtp: function initOtp() {\n var _this = this;\n\n var handleContingencies = function handleContingencies() {\n var result = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var prop = arguments[1];\n\n var errorData = void 0;\n\n if (result.errorCodes) {\n errorData = result;\n } else {\n errorData = {\n errorCodes: [result['0'] || 'ISSUER_DECLINE']\n };\n }\n\n _this.setErrorData(errorData);\n\n if (window.scrollTo) {\n window.scrollTo(0, 0);\n }\n };\n\n this.isProcessing = true;\n\n var resolveOTP = new _index.$ResolveOTP({ id: this.cardModel.id });\n\n resolveOTP.action('init', {\n data: {\n phone: {\n country_code: this.phone.IntDialingCountryCode,\n number: this.phone.telephone\n }\n },\n resultModel: {},\n success: function success() {\n _this.onSuccess();\n },\n\n error: function error() {\n handleContingencies();\n },\n\n contingencies: {\n INIT_OTP_CONTINGENCY: function INIT_OTP_CONTINGENCY(name, result) {\n\n handleContingencies(result);\n _util.$fiErrorUtil.addFieldErrors(result, _this.$element);\n },\n DEFAULT: function DEFAULT() {\n handleContingencies();\n }\n }\n })['finally'](function () {\n _this.isProcessing = false;\n });\n }\n },\n\n lifecycle: {\n enter: function enter() {\n var _this2 = this;\n\n this.$watch('isProcessing', function (isProcessing) {\n if (isProcessing) {\n _this2.$element.addClass('processing');\n } else {\n _this2.$element.removeClass('processing');\n }\n });\n\n if (this.flag('fields.expiry') && !this.cardModel.get('expiry_month') || this.flag('fields.cvv') && !this.cardModel.get('security_code') || this.flag('fields.phone') && !(this.phone && this.phone.telephone)) {\n\n this.showInitScreen = true;\n } else {\n this.actions.initOtp();\n }\n\n $('#upopConfirmation .modalContainer').focus();\n }\n }\n});\n\n\n_squid.$Component;\n\n_util.$fiErrorUtil;\n\n_index.$ResolveOTP;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-wallet-components/src/confirm-upop/init/directive.js\n// module id = ../node_modules/xo-wallet-components/src/confirm-upop/init/directive.js\n// module chunks = 0","module.exports = \"
          \\n
          \\n\\n
          \\n
          \\n \\n \\n
          \\n \\n\\n \\n
          \\n
          \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-wallet-components/src/confirm-upop/init/template.html\n// module id = ../node_modules/xo-wallet-components/src/confirm-upop/init/template.html\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _index = require('squid/index');\n\nvar _directive = require('./directive');\n\nvar _directive2 = _interopRequireDefault(_directive);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _index.$Route.extend('$xoConfirmUpopRoute', {\n path: 'confirmUpop',\n directive: _directive2['default'],\n titleContent: 'confirmUpop.confirm',\n trackingData: {\n fptiState: 'confirm_upop'\n },\n query: ['fromLoginOverlay'],\n loginRequired: true,\n pageOnOverlay: true,\n children: []\n});\n\n\n_index.$Route;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-wallet-components/src/confirm-upop/route.js\n// module id = ../node_modules/xo-wallet-components/src/confirm-upop/route.js\n// module chunks = 0","module.exports = \"
          \\n
          \\n
          \\n
          \\n
          \\n \\n \\n
          \\n\\n \\n \\n
          \\n
          \\n
          \\n
          \\n
          \\n
          \\n
          \\n
          \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-wallet-components/src/confirm-upop/template.html\n// module id = ../node_modules/xo-wallet-components/src/confirm-upop/template.html\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _squid = require('squid');\n\nvar _checkout = require('xo-models/src/checkout');\n\nvar _logger = require('xo-beaver/dist/logger');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _squid.$Component.extend('$xoCurrencyConversionOptions', {\n tag: 'xo-currency-conversion-options',\n\n template: _template2['default'],\n\n props: {\n card: {\n type: 'var',\n required: false\n },\n token: {\n type: 'var',\n required: false\n },\n treatment: {\n type: 'var',\n required: false\n },\n isPrePlan: {\n type: 'str',\n required: false\n },\n updateConversionSelection: {\n type: 'var',\n required: false\n },\n openModal: {\n type: 'var',\n required: false\n }\n },\n\n resolve: {\n models: function models() {\n var modelsObj = {\n checkoutCart: _checkout.$CheckoutCartModel.instance(this.props.token).retrieve()\n };\n\n if (!this.isPrePlan) {\n modelsObj.checkoutSession = _checkout.$CheckoutSessionModel.instance(this.props.token).retrieve();\n }\n\n return modelsObj;\n }\n },\n\n actions: {\n onConversionOptionChange: function onConversionOptionChange() {\n if (this.isPrePlan) {\n this.card.ppconversion = this.models.ppconversion;\n } else {\n // For post-plan conversion we need to update the chosen conversion\n // selection in the guest currency conversion interstitial component\n this.updateConversionSelection(this.models.ppconversion);\n }\n\n /**\n * FPTI event #4 for Buyer FX guest experience\n * https://engineering.paypalcorp.com/confluence/display/EDS/Buyer+FX+Instrumentation+Specs\n */\n var planType = this.isPrePlan ? 'pre' : 'post';\n\n _logger.$logger.info('checkout_fpti', {\n from: 'CURRENCY_CONVERSION',\n to: 'changed_currency_conversion_' + planType + '_plan',\n currency_conversion_selected: this.models.ppconversion,\n currency_conversion_from_curr: this.conversion.from_code,\n currency_conversion_to_curr: this.conversion.to_code,\n currency_conversion_spread: this.conversion.spread\n });\n\n this.conversionIsPayPal = this.models.ppconversion === this.conversionOptions.PAYPAL;\n }\n },\n\n lifecycle: {\n enter: function enter() {\n this.conversionOptions = _squid.$config.currencyConversion.options;\n this.isPrePlan = this.props.isPrePlan === 'true';\n var _props$treatment = this.props.treatment,\n treatment = _props$treatment === undefined ? '' : _props$treatment;\n\n\n this.isTreatment1 = treatment.includes('treatment_1');\n this.conversionIsPayPal = true;\n },\n populate: function populate() {\n this.models.ppconversion = this.conversionOptions.PAYPAL;\n\n /**\n * In the pre-plan case the conversion data will be located at\n * this.card.currencyConvData, whereas in the post-plan caes it\n * will be located at this.models.checkoutSession.plan.converison\n */\n var modelWithConversion = this.isPrePlan ? this.card : this.models.checkoutSession;\n var conversionKey = this.isPrePlan ? 'currencyConvData' : 'plan.conversion';\n\n this.conversion = modelWithConversion.get(conversionKey);\n\n var _models$checkoutCart$ = this.models.checkoutCart.get('grossTotalAmount', {}),\n toValue = _models$checkoutCart$.value,\n toCurrency = _models$checkoutCart$.currency;\n\n var _conversion = this.conversion,\n fullString = _conversion.to,\n amount = _conversion.to_amount,\n amountForex = _conversion.to_amount_forex,\n fromCurrency = _conversion.from_code;\n\n var formattedToStr = (0, _squid.truncateCurrencyConversionString)({\n fullString: fullString,\n amount: amount,\n amountForex: amountForex\n });\n\n this.paypalRate = '1 ' + fromCurrency + ' = ' + formattedToStr;\n this.spread = this.conversion.spread;\n\n // Get formatted currency amounts to display\n var paypalTotalPath = this.isPrePlan ? 'currencyConvData.payment_amt.value' : 'plan.sources.0.amount.amount_formatted_currency';\n\n this.paypalConversionTotal = this.isPrePlan ? (0, _squid.formatCurrency)(this.card.get(paypalTotalPath), fromCurrency, false) : this.models.checkoutSession.get(paypalTotalPath);\n this.issuerConversionTotal = (0, _squid.formatCurrency)(toValue, toCurrency, false);\n\n // Currency codes are used as labels for treatment 2\n this.toCurrency = toCurrency;\n this.fromCurrency = fromCurrency;\n\n // New Zealand departed from the other non-localized APAC countries and is not\n // showing the PayPal rate disclosure but instead is showing the spread disclosure\n this.showRateDisclosure = _squid.$locale.country !== 'NZ';\n this.showBRDisclosure = _squid.$locale.country === 'BR';\n var _$config$AMLRuleCount = _squid.$config.AMLRuleCountries,\n AMLRuleCountries = _$config$AMLRuleCount === undefined ? [] : _$config$AMLRuleCount;\n\n\n this.showAMLDisclosure = AMLRuleCountries.includes(_squid.$locale.country);\n\n // When the pre-plan API fails we show the conversion options\n // in an interstitial after the user submits the form.\n if (!this.isPrePlan && typeof this.openModal === 'function') {\n // eslint-disable-line angular/typecheck-function\n this.openModal();\n }\n }\n }\n});\n\n\n_squid.$Component;\n\n_squid.$locale;\n\n_squid.formatCurrency;\n\n_squid.$config;\n\n_squid.truncateCurrencyConversionString;\n\n_checkout.$CheckoutCartModel;\n\n_checkout.$CheckoutSessionModel;\n\n_logger.$logger;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-wallet-components/src/currency-conversion-options/directive.js\n// module id = ../node_modules/xo-wallet-components/src/currency-conversion-options/directive.js\n// module chunks = 0","module.exports = \"
          \\n
            \\n \\n
          • \\n \\n \\n
          • \\n\\n \\n
          • \\n \\n \\n
          • \\n
          \\n\\n
          \\n \\n
          \\n {{ content('currencyOptions.bfxConversionPayPalTotal') }}\\n
          \\n
          \\n {{ paypalConversionTotal }}\\n
          \\n\\n \\n
          \\n {{ content('currencyOptions.bfxConversionIssuerTotal') }}\\n
          \\n
          \\n {{ issuerConversionTotal }}\\n
          \\n
          \\n\\n
            \\n \\n
          • \\n {{ content('currencyOptions.bfxConversionPayPalRate') }} {{ paypalRate }}\\n
          • \\n
          • \\n {{ content('currencyOptions.bfxConversionPayPalSpreadDisclosureGuest', { spread: spread }) }}\\n
          • \\n
          • \\n {{ content('currencyOptions.bfxConversionPayPalRateDisclosure') }}\\n
          • \\n
          • \\n {{ content('currencyOptions.bfxConversionAMLRulesDisclosure') }}\\n
          • \\n\\n \\n
          • \\n {{ content('currencyOptions.bfxConversionIssuerDisclosure') }}\\n
          • \\n\\n \\n
          • \\n {{ content('currencyOptions.bfxConversionBRIOFRateDisclosure') }}\\n
          • \\n
          \\n
          \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-wallet-components/src/currency-conversion-options/template.html\n// module id = ../node_modules/xo-wallet-components/src/currency-conversion-options/template.html\n// module chunks = 0","\n\ndefine([], function () {\n\n // When adding a key, please keep list in alphabetical order\n var contingencyList = {\n ACCOUNT_RESTRICTED: ['errorAccountRestricted', 'errorGeneral'],\n ADD_REFUSED_DUE_TO_EXCEEDING_MAX_DUPLICATE_INSTRUMENT_LIMIT: 'errorInstrumentUnavailable',\n ADDRESS_MISMATCH: 'errorInstrumentBillingAddressNotMatch',\n BANK_ACCOUNT_NUMBER_IS_EMPTY: 'invalidPINumber',\n BANK_ADDRESS_IS_EMPTY: 'errorGeneral',\n BANK_ROUTING_NUMBER_IS_EMPTY: 'invalidPINumber',\n BILL_ADDR_NOT_ALLOWED: ['errorInstrumentBillingAddressNotAccepted', 'errorAddressNotAllowed'],\n BILL_ADDR_UNAVAILABLE: ['errorInstrumentBillingAddressUnavailable', 'errorInstrumentBillingAddressNotAccepted'],\n BILL_ADDR_UNAVAILABLE_GLOBAL: ['errorInstrumentBillingAddressUnavailableIntl', 'errorInstrumentBillingAddressNotAccepted'],\n BILL_ADDR_UNAVAILABLE_INTL: ['errorInstrumentBillingAddressUnavailableIntl', 'errorInstrumentBillingAddressNotAccepted'],\n BILL_ADDR_UNSUPPORTED: ['errorInstrumentBillingAddressUnsupported', 'errorInstrumentBillingAddressNotAccepted'],\n BILLING_ADDRESS1: 'errorInstrumentBillingAddressNotAccepted',\n BILLING_CITY: 'errorInstrumentBillingAddressNotAccepted',\n BILLING_COUNTRY: 'errorInstrumentBillingAddressNotAccepted',\n BILLING_DIFFERENT_COUNTRY: ['errorInstrumentBillingAddressUnavailableIntl', 'errorInstrumentBillingAddressNotAccepted'],\n CARD_NOT_ACTIVATED_FOR_UPOP: 'cardNotActivatedUpop',\n CC_INVALID_CSC: ['errorCheckDigits', 'errorGeneral'],\n CHECK_DIGITS_NOT_PRESENT: ['errorCheckDigitsNotPresent', 'errorGeneral'],\n CHECK_DIGITS_NOT_PROC: ['errorCheckDigitsNotPresent', 'errorGeneral'],\n CHECK_DIGITS_UNAVAILABLE: ['errorCheckDigits', 'errorGeneral'],\n CHECK_DIGITS_UNSUPPORTED: ['errorCheckDigits', 'errorGeneral'],\n CONFIRMATION_RESEND_COUNT_EXCEEDED: 'resendValExceeded',\n CONTACT_CARD_ISSUER_TO_VERIFY: 'issuerVerify',\n COUNTRY_NOT_SUPPORTED: 'complianceDecline',\n DUPLICATED_TRANSACTION: 'duplicateTransaction',\n EMPTY_DATA: 'errorGeneral',\n EXCESSIVE_REJECTIONS: ['errorExcessiveRejectGuest', 'errorInstrumentRefused'],\n FREQUENT_REQUEST_VERIFICATION_CODE: 'frequentVerificationCodeReq',\n INSTRUMENT_ALREADY_EXISTS: 'errorInstrumentAlreadyExists',\n INSTRUMENT_BILLING_ADDRESS_NOT_ACCEPTED: 'errorInstrumentBillingAddressNotAccepted',\n INSTRUMENT_COUNT_EXCEEDED: 'errorInstrumentCountExceeded',\n INSTRUMENT_COUNT_EXCEEDED_VERIFIED: 'errorInstrumentCountExceeded',\n INSTRUMENT_COUNT_LIMIT_EXCEEDED: 'errorInstrumentCountExceeded',\n INSTRUMENT_COUNT_LIMIT_EXCEEDED_VERIFIED: 'errorInstrumentCountExceeded',\n INSTRUMENT_DISABLED: 'errorInstrumentRefused',\n INSTRUMENT_DUPLICATE_LIMIT_REACHED: 'errorInstrumentRefused',\n INSTRUMENT_INTERNATIONAL: 'errorIssuerRejectIntl',\n INSTRUMENT_REFUSED: 'errorInstrumentRefused',\n INSTRUMENT_REFUSED_DUE_TO_MAX_LIMIT: 'errorInstrumentRefused',\n INSTRUMENT_REFUSED_DUE_TO_MAX_SHARED_INSTRUMENT_LIMIT: ['errorInstrumentUnavailable', 'errorInstrumentRefused'],\n INSTRUMENT_UNAVAILABLE: 'errorInstrumentUnavailable',\n INSTRUMENT_UPDATE_NO_CHANGE: 'errorInstrumentUpdateNoChange',\n INTERNAL_ERROR: 'errorInternalError',\n INVALID_ACCOUNT: ['errorInvalidAccount', 'errorGeneral'],\n INVALID_BANK_ACCOUNT_NUMBER: 'invalidPINumber',\n INVALID_BANK_ADDRESS: 'errorGeneral',\n INVALID_BANK_BENEFICIARY_NUMBER: 'errorGeneral',\n INVALID_BANK_BRANCH_NUMBER: 'errorGeneral',\n INVALID_BANK_IBAN: 'invalidPINumber',\n INVALID_BANK_IBAN_CONVERSION_ERROR: 'invalidPINumber',\n INVALID_BANK_ROUTING_NUMBER: 'invalidRoutingNumber',\n INVALID_BENEFICIARY_FIRST_NAME: 'errorInvalidFirstName',\n INVALID_BENEFICIARY_NAME: 'errorInvalidFirstName',\n INVALID_CARD_NUMBER: 'errorInvalidCCNumberOrType',\n INVALID_CARD_TYPE: 'errorInvalidCCNumberOrType',\n INVALID_DATA: ['errorInvalidData', 'errorGeneral'],\n INVALID_EXPIRATION_DATE: 'errorInvalidExpirationDate',\n INVALID_EXPIRY: 'errorInvalidExpirationDate',\n INVALID_FIRST_NAME: 'errorInvalidFirstName',\n INVALID_IBAN_CODE: 'invalidPINumber',\n INVALID_INSTRUMENT_ID: ['errorInvalidAccount', 'errorGeneral'],\n INVALID_LAST_NAME: 'errorInvalidLastName',\n INVALID_ONE_TIME_PASSWORD: 'errorInvalidOtpCode',\n INVALID_PARAMETERS: ['errorInvalidData', 'errorGeneral'],\n INVALID_PHONE: 'errorInvalidPhone',\n INVALID_SECURITY_CODE: 'errorInvalidCSC',\n ISSUER_DECLINE: 'errorIssuerReject',\n ISSUER_ERROR: ['errorIssuerDenied', 'errorInstrumentRefused'],\n ISSUER_REJECTED: ['errorIssuerReject', 'errorGeneral'],\n ISSUER_RESTRICTED: ['errorIssuerReject', 'errorGeneral'],\n MAX_AMOUNT_EXCEEDED: ['errorMaxAmountExceeded', 'errorInstrumentRefused'],\n MISSING_FIELD: ['errorInvalidData', 'errorGeneral'],\n NOT_CONFIRMED: 'notConfirmed',\n NOT_ELIGIBLE_TO_EDIT_CARD: 'notEligibleToEditCard',\n PAYPAL_CARD_REFUSED: ['errorPaypalRefused', 'errorGeneral'],\n PAYPAL_CREDIT_CARD_REFUSED: ['errorPaypalCreditRefused', 'errorGeneral'],\n PAYPAL_DEBIT_CARD_REFUSED: ['errorPaypalDebitRefused', 'errorGeneral'],\n PI_TYPE_NOT_SUPPORTED: 'errorInvalidCCNumberOrType_global',\n REJECT_AMEX_ADULT: ['errorAmexAdult', 'errorGeneral'],\n REJECT_REFUSED: ['errorIssuerReject', 'errorInstrumentRefused'],\n REJECT_UNKNOWN: ['errorIssuerReject', 'errorInstrumentRefused'],\n RESTRICTED_CARD: 'cardRestricted',\n RESTRICTED_CARD_GUEST: 'cardRestrictedGuest',\n SETTLEMENT_DENIED: 'errorInstrumentRefused',\n TRANSACTION_TIMEOUT: 'transactionTimeout',\n WRONG_CONFIRMATION_VALUES: 'wrongConfirmationValue'\n };\n\n return contingencyList;\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-wallet-components/src/fi-contingency-list/contingencies.js\n// module id = ../node_modules/xo-wallet-components/src/fi-contingency-list/contingencies.js\n// module chunks = 0","\n\ndefine(['jquery', 'angular', 'squid/index', './contingencies'], function ($, angular, squid, contingencyList) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n squid.module('fi.errorUtil', ['squid']).factory('$fiErrorUtil', ['$renderContent', function ($renderContent) {\n return {\n addPageErrors: function addPageErrors(errorData, contentBundle, prop, defaultKey) {\n\n // error handling for filifecycle and fimanagement. \n if (!errorData.errorCodes) {\n errorData.errorCodes = errorData && [errorData['0']];\n }\n\n var messages = [];\n\n if (errorData.errorCodes && errorData.errorCodes.length) {\n errorData.errorCodes.forEach(function (errorCode) {\n var contentKey = contingencyList[errorCode] || defaultKey || 'errorGeneral';\n var message;\n\n if (angular.isArray(contentKey)) {\n for (var i = 0; i < contentKey.length; i++) {\n message = $renderContent(contentBundle + '.' + contentKey[i], prop);\n if (message && message.string) {\n break;\n }\n }\n } else {\n message = $renderContent(contentBundle + '.' + contentKey, prop);\n }\n\n messages.push(message);\n });\n\n return {\n msgs: messages,\n type: 'error'\n };\n }\n },\n\n /**\n * Highlight the Error Fields by ng-model\n * @param errorData\n * @param element\n * @param modelPrefix\n */\n addFieldErrors: function addFieldErrors(errorData, element, modelPrefix) {\n\n if (errorData.fields && errorData.fields.length) {\n errorData.fields.forEach(function (field) {\n var $field = $(element).find('[ng-model=\"' + (modelPrefix ? modelPrefix : '') + field.field + '\"]');\n\n $field.addClass('backendError');\n $field.attr('aria-invalid', true);\n });\n }\n $(element).find('.backendError:first').focus();\n },\n\n /**\n * Highlight the Error Fields by element name\n * @param errorData\n * @param element\n * @param modelPrefix\n */\n addFieldErrorsByName: function addFieldErrorsByName(errorData, element, modelPrefix) {\n\n if (errorData.fields && errorData.fields.length) {\n errorData.fields.forEach(function (field) {\n var fieldName = void 0;\n\n if (modelPrefix && field.field && field.field.length > 0) {\n // Add prefix with CamelCase of field name\n fieldName = modelPrefix + field.field[0].toUpperCase() + field.field.substring(1);\n } else {\n fieldName = field.field;\n }\n var $field = $(element).find('[name=\"' + fieldName + '\"]');\n\n $field.addClass('backendError');\n $field.attr('aria-invalid', true);\n });\n }\n $(element).find('.backendError:first').focus();\n }\n };\n }]);\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-wallet-components/src/fi-contingency-list/util.js\n// module id = ../node_modules/xo-wallet-components/src/fi-contingency-list/util.js\n// module chunks = 0","\n\ndefine(['squid/index', 'text!./template.html', 'xo-models/src/checkout/index', 'xo-models/src/auth/index', 'xo-tray-height/dist/directive'], function (squid, template) {\n squid.module('xo-installment-options.directive', ['squid', 'xomodel.checkout', 'xomodel.auth', 'xo-tray-height.directive']).directive('xoInstallmentOptions', [function () {\n return {\n template: template,\n\n scope: {\n token: '=?',\n doneFn: '=?',\n cardNumber: '=?'\n },\n\n controller: ['$AuthModel', '$scope', '$populate', '$CheckoutSessionModel', '$InstallmentOptionsModel', '$CheckoutPayeeModel', '$CheckoutCartModel', '$CheckoutAppDataModel', function ($AuthModel, $scope, $populate, $CheckoutSessionModel, $InstallmentOptionsModel, $CheckoutPayeeModel, $CheckoutCartModel, $CheckoutAppDataModel) {\n\n $populate($scope, {\n auth: $AuthModel.instance($scope.token)\n }).then(function () {\n\n if ($scope.auth.logged_in) {\n\n // Installment support for authenticated user\n $populate($scope, {\n checkoutSession: $CheckoutSessionModel.instance($scope.token)\n }).then(function () {\n $scope.cardInfo = $scope.checkoutSession.plan.sources[0];\n $scope.installments = $scope.checkoutSession.installments;\n });\n } else {\n // Installment support added for not authenticated user, e.g. BR signup flow\n var installmentsModel = $InstallmentOptionsModel.instance($scope.token);\n\n installmentsModel.save({\n data: {\n cc: $scope.cardNumber,\n payee: $CheckoutPayeeModel.instance($scope.token),\n checkoutCart: $CheckoutCartModel.instance($scope.token),\n checkoutAppData: $CheckoutAppDataModel.instance($scope.token)\n },\n\n success: function success(result) {\n $scope.cardInfo = result.cardInfo;\n $scope.installments = result.installment_options;\n }\n });\n }\n });\n\n $scope.onSelect = function (index) {\n var selectedInstallmentData = $scope.installments[index];\n\n $scope.installmentsModel = $InstallmentOptionsModel.instance($scope.token);\n\n var param = {\n term: selectedInstallmentData.term,\n payment_value: selectedInstallmentData.monthly_payment.value,\n payment_currency: selectedInstallmentData.monthly_payment.currency\n };\n\n if (selectedInstallmentData.total_cost) {\n param.total_cost_value = selectedInstallmentData.total_cost.value;\n param.total_cost_currency = selectedInstallmentData.total_cost.currency;\n }\n\n if (selectedInstallmentData.discount_amount) {\n param.discount_value = selectedInstallmentData.discount_amount.value;\n param.discount_currency = selectedInstallmentData.monthly_payment.currency;\n }\n\n if (selectedInstallmentData.discount_percentage) {\n param.discount_percentage = selectedInstallmentData.discount_percentage;\n }\n\n return $scope.installmentsModel.action('select', {\n data: param,\n\n success: function success(result) {\n if ($scope.auth.logged_in) {\n $scope.checkoutSession.selectedInstallmentData = selectedInstallmentData;\n }\n $scope.doneFn(result);\n }\n });\n };\n }]\n };\n }]);\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-wallet-components/src/installment-options/directive.js\n// module id = ../node_modules/xo-wallet-components/src/installment-options/directive.js\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _angular = require('angular');\n\nvar _index = require('squid/index');\n\nvar _index2 = require('xo-models/src/checkout/index');\n\nvar _index3 = require('xo-models/src/onboard/index');\n\nvar _index4 = require('xo-models/src/fi/index');\n\nvar _util = require('xo-wallet-components/src/fi-contingency-list/util');\n\nvar _index5 = require('xo-models/src/auth/index');\n\nvar _logger = require('xo-beaver/dist/logger');\n\nvar _uiRouter = require('uiRouter');\n\nvar _index6 = require('xo-models/src/address/index');\n\nrequire('xo-address-components/src/add-address/directive.js');\n\nrequire('xo-form-components/src/name-input/directive.js');\n\nrequire('xo-form-components/src/dob-input/directive.js');\n\nrequire('xo-guest-components/src/guest/emailInput/directive.js');\n\nrequire('xo-form-components/src/phone/phoneInput/directive.js');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _index.$Component.extend('xoPayUponInvoice', {\n tag: 'xo-pay-upon-invoice',\n template: _template2['default'],\n\n props: {\n token: {\n type: 'var',\n required: false\n },\n isUnbranded: {\n type: 'var',\n required: false\n }\n },\n\n resolve: {\n models: function models() {\n return {\n auth: _index5.$AuthModel.instance(this.token).retrieve(),\n checkoutAppData: _index2.$CheckoutAppDataModel.instance(this.props.token).retrieve(),\n checkoutCart: _index2.$CheckoutCartModel.instance(this.token).retrieve()\n };\n }\n },\n\n lifecycle: {\n enter: function enter() {\n this.locale = _index.$locale;\n var days = [];\n var months = [];\n var years = [];\n\n var i = void 0;\n\n for (i = 1; i <= 31; i += 1) {\n var d = i < 10 ? '0' + i : i.toString();\n\n days.push(d);\n }\n\n for (i = 1; i <= 12; i += 1) {\n var m = i < 10 ? '0' + i : i.toString();\n\n months.push(m);\n }\n\n var year = new Date().getFullYear();\n\n for (i = year - 17; i >= year - 100; i -= 1) {\n years.push(i);\n }\n\n this.dobDays = days;\n this.dobMonths = months;\n this.dobYears = years;\n\n this.hideHelper = true;\n\n this.onboard = new _index3.$OnboardModel({\n user: new _index3.$OnboardUserModel({\n country: _index.$locale.country\n }),\n billing_address: _index4.$BillingAddressModel.create(this.token, {\n country: _index.$locale.country\n }),\n shipping_address: _index2.$ShippingAddressModel.create(this.token, {\n country: _index.$locale.country\n }),\n\n phone: new _index3.$OnboardPhoneModel()\n });\n },\n populate: function populate() {\n var _this = this;\n\n // logout the user before user clicks on submit button\n // User might be logged into paypal on another tab, in which case\n // createPUI to PAPS fails (if we dont logout the user)\n this.models.auth.action('logout');\n\n var shippingAddress = this.models.checkoutCart.get('purchase.shipping_address');\n var billingAddress = this.models.checkoutCart.get('billing_address') || {};\n\n billingAddress.first_name = this.models.checkoutCart.get('payer.first_name');\n billingAddress.last_name = this.models.checkoutCart.get('payer.last_name');\n\n // basic validation to check if any data is missing\n var validateAddress = function validateAddress(address) {\n return address && address.line1 && address.city && address.postal_code;\n };\n\n /**\n /* Set prefill billing address. By default set to merchant passed billing address if its valid\n * Otherwise prefill valid shipping address as billing address\n */\n\n var getDefaultAddress = function getDefaultAddress() {\n var isValidBilling = validateAddress(billingAddress);\n var isValidShipping = validateAddress(shippingAddress);\n var defaultAddress = billingAddress;\n\n _logger.$logger.info('pay_upon_invoice_is_billing_valid_' + isValidBilling);\n if (!isValidBilling && isValidShipping) {\n defaultAddress = shippingAddress;\n _logger.$logger.info('pay_upon_invoice_set_shipping_as_default');\n }\n return defaultAddress || {};\n };\n\n var prefilledAddress = getDefaultAddress();\n\n this.isPrefilledAddress = validateAddress(prefilledAddress) && prefilledAddress.first_name && prefilledAddress.last_name;\n if (this.isPrefilledAddress) {\n this.shipping = prefilledAddress;\n this.shipping.recipientName = prefilledAddress.first_name + ' ' + prefilledAddress.last_name;\n this.shipping.zipAndCity = prefilledAddress.postal_code + ' ' + prefilledAddress.city;\n }\n\n var getPayButtonText = function getPayButtonText() {\n _this.useraction = _this.models.checkoutAppData.useraction();\n\n var payButtonText = _index.$locale.content.get('common.agreeAndContinue');\n\n if (_this.useraction && _this.useraction.toLowerCase() === 'commit') {\n payButtonText = _index.$locale.content.get('common.agreeAndPay');\n }\n return payButtonText;\n };\n\n this.payButtonText = getPayButtonText();\n\n /**\n /* Set the prefilled Phone Number either from shipping address or billing address which merchants pass while making create payment call\n * If both are present shipping address take the preference over billing address.\n */\n var prefilledNumber = this.models.checkoutCart.get('purchase.phone_fields') || this.models.checkoutCart.get('billing.phone_fields');\n\n if (prefilledNumber && prefilledNumber.telephone_country === _index.$locale.country) {\n this.onboard.phone.telephone = prefilledNumber.normalized_phone_number;\n }\n\n this.onboard.shipping_address = _index2.$ShippingAddressModel.create(this.token, { country: _index.$locale.country }, prefilledAddress);\n\n this.onboard.billing_address = _index4.$BillingAddressModel.create(this.token, {\n country: _index.$locale.country\n }, prefilledAddress);\n\n // saving in to user object so that email field pre-populate if its passed in from setEc.\n this.onboard.user.email = this.models.checkoutCart.payer && this.models.checkoutCart.payer.email;\n }\n },\n\n actions: {\n changeShipping: function changeShipping() {\n this.isPrefilledAddress = !this.isPrefilledAddress;\n },\n onSubmit: function onSubmit() {\n var _this2 = this;\n\n this.onboard.billing_address.country = _index.$locale.country;\n this.addressNormalization = new _index6.$AddressNormalizationModel({\n address: this.onboard.billing_address\n });\n\n var handleValidation = function handleValidation() {\n\n var data = {\n errorCodes: ['BILL_ADDR_NOT_ALLOWED']\n };\n\n _this2.errorMessage = _util.$fiErrorUtil.addPageErrors(data, 'payUponInvoice');\n\n if (window.scrollTo) {\n window.scrollTo(0, 0);\n }\n\n return _angular.$q.reject();\n };\n\n this.addressNormalization.save({\n\n data: this.addressNormalization,\n\n contingencies: {\n VALIDATION_ERROR: function VALIDATION_ERROR() {\n handleValidation()['catch'](function (error) {\n _logger.$logger.info('PUI_addressNormalization_validation_rejection_captured');\n });\n }\n\n },\n error: function error() {\n _uiRouter.$state.go('checkout.genericError', { code: 'PAYMENT_PROCESS_ERROR' });\n },\n success: function success(result) {\n var loginDataGsid = {\n user: {\n email: _this2.onboard.user.email\n },\n pui_flow: true\n };\n\n // Adding login call to get the Global session ID\n // by passing email and actorinfovo(just with actor type) to STS.\n // auth_state will be anonymous after the below passive login call.\n // since account is not created yet.\n return _angular.$q.when().then(function () {\n _logger.$logger.info('PUI_Invoking_login_call_to_get_GSID');\n return _this2.models.auth.action('login', {\n data: loginDataGsid,\n success: function success() {\n _logger.$logger.info('PUI_login_call_succeeded');\n },\n error: function error() {\n _logger.$logger.info('PUI_login_call_failed_to_get_GSID');\n _uiRouter.$state.go('checkout.genericError', { code: 'PAYMENT_PROCESS_ERROR' });\n }\n }).then(function () {\n _this2.normalizedAddress = result;\n\n var checkoutSession = _index2.$CheckoutSessionModel.instance(_this2.token);\n\n checkoutSession.action('createPUI', {\n data: {\n user: _this2.onboard.user,\n address: _this2.onboard.billing_address,\n isPayerRequired: true,\n paymentMethod: 'pay_upon_invoice',\n phone: _this2.onboard.phone || ''\n\n },\n contingencies: {\n PAYMENT_METHOD_UNUSABLE: function PAYMENT_METHOD_UNUSABLE() {\n _uiRouter.$state.go('checkout.genericError', {\n code: 'PAYMENT_PROCESS_ERROR'\n });\n }\n },\n error: function error() {\n _logger.$logger.info('PUI: checkout session creation failed');\n _uiRouter.$state.go('checkout.genericError', {\n code: 'PAYMENT_PROCESS_ERROR'\n });\n },\n success: function success(successResult) {\n var loginData = {\n user: {\n account_number: successResult.payer.account_number,\n email: successResult.payer.email\n }\n };\n\n return _angular.$q.when().then(function () {\n return _this2.models.auth.action('login', {\n data: loginData,\n success: function success() {\n _logger.$logger.info('PUI: guest login', {\n from: 'LOGIN',\n to: 'process_login'\n });\n },\n error: function error() {\n _logger.$logger.info('PUI: login guest user failed');\n _uiRouter.$state.go('checkout.genericError', { code: 'PAYMENT_PROCESS_ERROR' });\n }\n }).then(function () {\n return checkoutSession.action('authorize', {\n error: function error() {\n _logger.$logger.info('PUI: authorize payment failed');\n _uiRouter.$state.go('checkout.genericError', {\n code: 'PAYMENT_PROCESS_ERROR'\n });\n },\n success: function success() {\n _uiRouter.$state.go('checkout.end');\n }\n });\n });\n });\n },\n VALIDATION_ERROR: function VALIDATION_ERROR() {\n _uiRouter.$state.go('checkout.genericError', {\n code: 'PAYMENT_PROCESS_ERROR'\n });\n }\n });\n });\n });\n }\n });\n }\n }\n});\n\n\n_angular.$q;\n\n_index.$Component;\n\n_index.$locale;\n\n_index2.$CheckoutSessionModel;\n\n_index2.$CheckoutAppDataModel;\n\n_index2.$CheckoutCartModel;\n\n_index2.$ShippingAddressModel;\n\n_index3.$OnboardModel;\n\n_index3.$OnboardUserModel;\n\n_index3.$OnboardPhoneModel;\n\n_index4.$BillingAddressModel;\n\n_util.$fiErrorUtil;\n\n_index5.$AuthModel;\n\n_logger.$logger;\n\n_uiRouter.$state;\n\n_index6.$AddressNormalizationModel;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-wallet-components/src/pay-upon-invoice/directive.js\n// module id = ../node_modules/xo-wallet-components/src/pay-upon-invoice/directive.js\n// module chunks = 0","module.exports = \"
          \\n\\n\\n
          {{content('payUponInvoice.title')}}
          \\n \\n\\n
          \\n\\n
          \\n \\n
          \\n
          \\n
          \\n {{shipping.recipientName}}\\n
          \\n\\n
          \\n {{shipping.line1}}\\n
          \\n\\n
          \\n {{shipping.line2}}\\n
          \\n\\n
          \\n {{shipping.zipAndCity}}\\n
          \\n
          \\n
          \\n \\n {{ content('common.change') }}\\n \\n
          \\n\\n
          \\n
          {{content('payUponInvoice.notification')}}
          \\n \\n
          \\n\\n
          \\n \\n
          \\n\\n \\n\\n \\n \\n
          \\n \\n\\n \\n \\n \\n \\n\\n \\n
          \\n {{ content('payUponInvoice.dobTooltip') }}\\n
          \\n
          \\n
          \\n \\n
          \\n\\n
          \\n \\n
          \\n\\n
          \\n \\n
          \\n
          \\n
          \\n \\n \\n
          \\n\\n
          \\n \\n
          \\n
          \\n
          \\n\\n\\n\\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-wallet-components/src/pay-upon-invoice/template.html\n// module id = ../node_modules/xo-wallet-components/src/pay-upon-invoice/template.html\n// module chunks = 0","// array\nrequire('core-js/fn/array/find');\nrequire('core-js/fn/array/includes');\n\n// string\nrequire('core-js/fn/string/includes');\n\n\n// object\nrequire('core-js/fn/object/entries');\nrequire('core-js/fn/object/values');\nrequire('core-js/fn/object/assign');\n\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/xo-webpack-config/polyfills.js\n// module id = ../node_modules/xo-webpack-config/polyfills.js\n// module chunks = 0","\n\nrequire('../css/app.less');\n\nvar _logger = require('xo-beaver/dist/logger');\n\nvar _route = require('pages/xo-checkout/route');\n\nvar _route2 = require('pages/xo-guest-upgrade/route');\n\nvar _middleware = require('js/lib/middleware');\n\nvar _index = require('squid/dist/index');\n\n_logger.$logger.info('app_bootstrap', {\n hash: window.location.hash\n});\n\nif (_index.$util.param('data')) {\n var guestUpgradeRoute = new _route2.$GuestUpgradeRoute();\n\n guestUpgradeRoute.bootstrap('guestupgrade', _middleware.$Middleware);\n} else {\n var baseRoute = new _route.$BaseRoute();\n\n baseRoute.bootstrap('checkout.landing', _middleware.$Middleware);\n}\n\nwindow.bootstrap = true;\n\n_logger.$logger;\n\n_route.$BaseRoute;\n\n_route2.$GuestUpgradeRoute;\n\n_middleware.$Middleware;\n\n_index.$util;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./js/app.js\n// module id = ./js/app.js\n// module chunks = 0","\n\nwindow.main = true;\n\n// Angular 1.6.9 adds a `!` as a hash prefix to the url by default.\n// This is different behavior than Angular 1.4.7 which didn't add\n// a hash prefix. The code snippet below will prevent the hash prefix\n// from being added so that after the Angular 1.6.9 upgrade the url\n// hash will remain the same.\n// Angular 1.4.7: http://.../xoonboarding?token=EC-9CC38595EA0236714#/checkout/signup\n// Angular 1.6.9 with out setting the `hashPrefix` to an empty string:\n// http://.../xoonboarding?token=EC-9CC38595EA0236714#!/checkout/signup\nangular.module('app').config(['$locationProvider', function ($locationProvider) {\n $locationProvider.hashPrefix('');\n}]);\n\nif (!window.prefetch) {\n angular.bootstrap(document.body, ['app']);\n require('./app.js');\n}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./js/bootstrap.js\n// module id = ./js/bootstrap.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$contingencyHandler = $contingencyHandler;\n\nvar _uiRouter = require('uiRouter');\n\nvar _logger = require('xo-beaver/dist/logger');\n\nvar _squid = require('squid');\n\nfunction showGenericError(code) {\n return function (errCode) {\n errCode = code || errCode;\n // Encode error text\n errCode = errCode ? window.btoa(errCode) : errCode;\n _uiRouter.$state.go('checkout.genericError', {\n code: errCode\n });\n };\n}\n\n/**\n * Route with default parameters unless special handler implemented otherwise\n *\n * To satisfy url: '/pageAddCard/:country/:fiType' in the route definition.\n * {country: ..., fiType: ...} must be passed for ui.router..\n *\n */\nfunction route(path, params) {\n return function () {\n _uiRouter.$state.go(path, params);\n };\n}\n\nvar routeToAddCC = function routeToAddCC(msg, contingency) {\n var gamblingCauses = ['PAYER_FUNDING_INSTRUMENT_INELIGIBLE', 'PAYER_FINANCIAL_INSTRUMENT_OUT_OF_COUNTRY', 'PAYER_FINANCIAL_INSTRUMENT_UNDER_AGE'];\n var isGambling = gamblingCauses.indexOf(contingency.cause) > -1;\n var param = isGambling ? {\n gaming: '1'\n } : {};\n\n return route('checkout.pageAddCard.addCardFlow.addCard', param);\n};\n\nfunction forbidden(err) {\n throw new _squid.$Forbidden(err);\n}\n\nfunction fallback(product) {\n return function (err) {\n throw new _squid.$FallbackError({\n reason: err,\n product: product\n });\n };\n}\n\nfunction $contingencyHandler(contingency) {\n if (contingency instanceof _squid.$Contingency) {\n\n // Leave a footprint here. The subsequent state where log how it goes..\n _logger.$logger.warn('contingency_handler', contingency);\n\n return contingency.handle({\n // TODO : modify these routes\n // Route\n NEED_CREDIT_CARD: routeToAddCC,\n NEED_CONFIRMED_CARD: routeToAddCC,\n NEED_CREDIT_CARD_OR_BANK_ACCOUNT: routeToAddCC,\n EXPIRED_CREDIT_CARD: routeToAddCC,\n\n // Generic Error Pages\n CURRENCY_COMPLIANCE: showGenericError(),\n INVALID_RESOURCE_ID: showGenericError(),\n PAYMENT_ALREADY_DONE: showGenericError(),\n PAYEE_BLOCKED_TRANSACTION: showGenericError(),\n RESTRICTED_USER: showGenericError(),\n PAYMENT_DENIED: showGenericError(),\n PAYER_CANNOT_PAY: showGenericError(),\n PAYEE_ACCOUNT_RESTRICTED: showGenericError(),\n PAYER_COUNTRY_NOT_ALLOWED: showGenericError(),\n PAYER_COUNTRY_NOT_ALLOWED_DCF: showGenericError('XOON_PAYER_COUNTRY_NOT_ALLOWED_DCF'),\n PAYER_COUNTRY_NOT_ENABLED: showGenericError(),\n PAYER_LOGIN_COUNTRY_NOT_ALLOWED: showGenericError(),\n GAMING_FUNDING_SOURCE_VALIDATION_FAILED: showGenericError(),\n GUEST_CHECKOUT_NOT_ALLOWED: showGenericError(),\n EINVALIDCSRF_JWT_EXPIRED: showGenericError(),\n\n // Fallbacks\n TRANSACTION_REFUSED: fallback('ux'),\n VERIFY_USER_IDENTITY: fallback('ux'),\n SENDING_LIMIT_EXCEEDED: fallback('ux'),\n PAYER_INVALID_FOR_PAYMENT: fallback('ux'),\n PAYMENT_CANNOT_BE_INITIATED: fallback('ux'),\n PERMISSION_DENIED: fallback('ux'),\n NEGATIVE_BALANCE_TRANSACTION_REFUSED: fallback('ux'),\n INVALID_TOKEN: fallback('ux'),\n INVALID_FUNDING_OPTION: fallback('ux'),\n INTERNAL_SERVICE_ERROR: fallback('ux'),\n VALIDATION_ERROR: fallback('ux'),\n SHIPPING_ADDRESS_INVALID: fallback('ux'),\n RISK_DENIED: fallback('ux'),\n DOMESTIC_TRANSACTION_REQUIRED: fallback('ux'),\n INVALID_ARGUMENT: fallback('ux'),\n CREDIT_PAYMENT_NOT_ALLOWED: fallback('ux'),\n UNSUPPORTED_PAYEE_CURRENCY: fallback('ux'),\n PAYEE_ACCOUNT_LOCKED_OR_CLOSED: fallback('ux'),\n CANNOT_PAY_SELF: fallback('hermes'),\n\n // Forbidden\n BUYER_NOT_SET: forbidden,\n\n // TODO: duplicate - PAYER_INVALID_FOR_PAYMENT: forbidden,\n // Default\n DEFAULT: function logUnhandledContingency() {\n _logger.$logger.warn('ui_unhandled_contingency_' + this.message);\n\n throw new _squid.$FallbackError({\n reason: 'unhandled_contingency',\n product: 'ux'\n });\n }\n });\n }\n}\n\nangular.value(\"$contingencyHandler\", $contingencyHandler);\n_uiRouter.$state;\n\n_logger.$logger;\n\n_squid.$Forbidden;\n\n_squid.$FallbackError;\n\n_squid.$Contingency;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./js/lib/contingency.js\n// module id = ./js/lib/contingency.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$apiErrorHandler = $apiErrorHandler;\nexports.$forbiddenHandler = $forbiddenHandler;\nexports.$exceptionHandler = $exceptionHandler;\n\nvar _angular = require('angular');\n\nvar _uiRouter = require('uiRouter');\n\nvar _squid = require('squid');\n\nvar _index = require('xo-models/src/auth/index');\n\nvar _logger = require('xo-beaver/dist/logger');\n\nvar _fallback = require('./fallback');\n\nvar _contingency = require('./contingency');\n\nvar ERROR_STATE = void 0;\nvar ERROR_PREVENTED = void 0;\n\nfunction $apiErrorHandler(err) {\n if (err instanceof _squid.$ApiError) {\n _logger.$logger.error('api_error', {\n error: err.toString()\n });\n\n throw new _squid.$FallbackError({\n reason: 'api_error',\n product: 'ux'\n });\n\n // @TODO - wtf?\n return true; // eslint-disable-line no-unreachable\n }\n}\n\nfunction $forbiddenHandler(err) {\n if (err instanceof _squid.$Forbidden) {\n _logger.$logger.warn('forbidden_handler');\n _index.$AuthModel.instance().invalidate();\n\n throw new _squid.$FallbackError({\n reason: 'user_not_logged_in',\n product: 'ux'\n });\n }\n}\n\nvar handlers = [{\n type: _squid.$FallbackError,\n handle: _fallback.$fallbackErrorHandler\n}, {\n type: _squid.$Contingency,\n handle: _contingency.$contingencyHandler\n}, {\n type: _squid.$Forbidden,\n handle: $forbiddenHandler\n}];\n\nfunction $exceptionHandler(err, cause) {\n if (ERROR_STATE) {\n if (ERROR_PREVENTED) {\n throw err;\n }\n\n return;\n }\n\n // non token based Guest Upgrade Flow\n if (_squid.$util.param('data')) {\n _logger.$logger.error('guest_upgrade_error', {\n error: err\n });\n _uiRouter.$state.go('guestupgrade.genericError', {\n code: 'GUEST_UPGRADE_ERROR'\n });\n return;\n }\n\n var handled = handlers.some(function (handler) {\n if (err instanceof handler.type) {\n handler.handle(err);\n return true;\n }\n\n return false;\n });\n\n if (handled) {\n return;\n } else if (!err.transient) {\n ERROR_STATE = err;\n }\n\n var errType = (err.constructor.name || 'error').toLowerCase();\n var errName = 'ui_unhandled_' + errType;\n var errMsg = err.message || '';\n\n if (errMsg.indexOf('infdig') > -1) {\n errName = 'infinite_digest';\n } else if (errMsg.indexOf('inprog') > -1) {\n errName = 'digest_inprog';\n } else if (errMsg.indexOf('badparse') > -1) {\n errName = 'sanitize_badparse';\n } else if (errMsg.match(/^[\\w_]+$/) && !(err instanceof _squid.$Error)) {\n errName = errMsg;\n }\n\n if (['ui_unhandled_error', 'ui_unhandled_typeerror'].indexOf(errName) > -1) {\n if (err.stack && err.stack.indexOf('framework') > -1 && err.stack.indexOf('main.js') === -1) {\n errName = 'ui_unhandled_framework_error';\n }\n }\n\n var errObj = {\n error: err.stack || err.toString(),\n message: errMsg,\n cause: cause && cause.toString(),\n state: _uiRouter.$state.current.name,\n url: _angular.$window.location.toString()\n };\n\n _logger.$logger.error(errName, errObj);\n\n // emit the error object for subscribers like xo-tracking\n var event = _angular.$rootScope.$emit('unhandled_error', {\n route: (_uiRouter.$state || {}).current,\n message: errObj.error,\n code: errObj.cause,\n currentRoute: _uiRouter.$state.current\n });\n\n if (event.defaultPrevented) {\n ERROR_PREVENTED = true;\n throw err;\n } else if (!err.transient) {\n return (0, _fallback.$fallbackErrorHandler)(new _squid.$FallbackError({\n reason: errName\n }));\n }\n}\n\nfunction constructEventName(toState, fromState) {\n var fromStateFormatted = fromState.name.replace(/\\./g, '_') || 'start';\n var toStateFormatted = toState.name.replace(/\\./g, '_') || 'end';\n\n return 'state_change_' + fromStateFormatted + '_to_' + toStateFormatted;\n}\n\nvar stateChangeError = _angular.$rootScope.$on('$stateChangeError', function (event, toState, toParams, fromState, fromParams, err) {\n // Set prevent default to avoid angular UI router to keep looping back to same state\n event.preventDefault();\n $exceptionHandler(err, constructEventName(toState, fromState));\n});\nvar windowError = _angular.$rootScope.$on('$windowError', function (event, details) {\n _logger.$logger.error('window_error', details, {\n debounceFactor: details.message,\n debounceInterval: 1000\n });\n});\n\n_angular.$rootScope.$on('$destroy', stateChangeError);\n_angular.$rootScope.$on('$destroy', windowError);\n\nangular.value(\"$apiErrorHandler\", $apiErrorHandler);\nangular.value(\"$forbiddenHandler\", $forbiddenHandler);\nangular.value(\"$exceptionHandlerLazy\", $exceptionHandler);\n_angular.$rootScope;\n\n_angular.$window;\n\n_uiRouter.$state;\n\n_squid.$Forbidden;\n\n_squid.$ApiError;\n\n_squid.$FallbackError;\n\n_squid.$util;\n\n_squid.$Error;\n\n_squid.$Contingency;\n\n_index.$AuthModel;\n\n_logger.$logger;\n\n_fallback.$fallbackErrorHandler;\n\n_contingency.$contingencyHandler;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./js/lib/error.js\n// module id = ./js/lib/error.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$fallbackErrorHandler = $fallbackErrorHandler;\n\nvar _angular = require('angular');\n\nvar _uiRouter = require('uiRouter');\n\nvar _index = require('xo-return-to-merchant/dist/index');\n\nvar _squid = require('squid');\n\nvar _index2 = require('xo-models/src/user/index');\n\nvar _index3 = require('xo-models/src/checkout/index');\n\nvar _logger = require('xo-beaver/dist/logger');\n\nfunction goToUrl(url, wpsParams, xoAppData) {\n if (xoAppData.is_wps_flow()) {\n return _index.$ReturnToMerchant.postTo(url, wpsParams);\n }\n\n return _index.$ReturnToMerchant.goTo(url);\n}\n\n/**\n * This function contains an additional determination of fallback url in case of an UX fallback\n *\n * @param {object} checkoutAppDataModel\n * @param {string} fallbackUrl\n * @returns {string}\n */\nfunction determineUrlForUxFallback(checkoutAppDataModel, fallbackUrl) {\n var experienceInitiator = checkoutAppDataModel.get('flags.payment_experience_initiator');\n\n // For UX fallback during a PPPlus transaction the fallback url\n // is merchants cancel_url with added parameter ppp_msg = 1\n if (experienceInitiator === 'PAYPAL_PLUS') {\n return _squid.$util.buildURL(checkoutAppDataModel.get('urls.cancel_url'), { ppp_msg: '1' });\n }\n\n return fallbackUrl;\n}\n\nfunction goToGenericError() {\n var code = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'DEFAULT';\n\n _uiRouter.$state.go('checkout.genericError', { code: code });\n return true;\n}\n\nfunction $fallbackErrorHandler() {\n var err = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var reason = err.reason;\n\n var models = {};\n\n return (0, _squid.$populate)(models, {\n checkoutAppData: _index3.$CheckoutAppDataModel.instance(_angular.$rootScope.token),\n checkoutCart: _index3.$CheckoutCartModel.instance(_angular.$rootScope.token),\n checkoutInputData: _index2.$CheckoutInputDataModel.instance(_angular.$rootScope.token),\n payeeModel: _index3.$CheckoutPayeeModel.instance(_angular.$rootScope.token)\n }).then(function () {\n var checkoutAppData = models.checkoutAppData,\n checkoutCart = models.checkoutCart,\n checkoutInputData = models.checkoutInputData;\n\n\n if (checkoutCart.isWalletTokenization()) {\n return goToGenericError();\n }\n\n if (checkoutAppData.doec_on_approve() && _angular.$rootScope.paymentComplete) {\n // Do not fallback. UX has no context of hermes token and will result in duplicate payment\n _logger.$logger.info('wps_error_payment_already_done', { reason: reason });\n return goToGenericError('PAYMENT_ALREADY_DONE');\n }\n\n var _$config$fallbackWhit = _squid.$config.fallbackWhitelist;\n _$config$fallbackWhit = _$config$fallbackWhit === undefined ? {} : _$config$fallbackWhit;\n var _$config$fallbackWhit2 = _$config$fallbackWhit.whitelist,\n whitelist = _$config$fallbackWhit2 === undefined ? [] : _$config$fallbackWhit2;\n\n\n if (err instanceof _squid.$FallbackError) {\n var _err$product = err.product,\n product = _err$product === undefined ? 'ux' : _err$product;\n var entry_point = err.entry_point;\n\n\n if (checkoutInputData.requiresOAuth()) {\n // there is no fallback for flows that require oauth code return (ex:PROX Signup),\n // so we show a generic error page\n _logger.$logger.error('fallback_inhibited_for_oauth_return_flows', { reason: reason });\n return goToGenericError(reason);\n }\n\n if (product === 'ux' && _angular.$rootScope.partnerIntegration) {\n _logger.$logger.info('partner_integration_fallback_to_UX');\n _angular.$window.resizeTo(screen.availWidth, screen.availHeight);\n }\n\n // For checkout-order tokens symphony sets checkoutAppData.flags.disable_legacy_fallback flag to 'true'.\n // In such cases we disable fallback to UX and show the generic error page.\n if (checkoutAppData.get('flags.disable_legacy_fallback')) {\n _logger.$logger.error('fallback_inhibited_for_checkout_order_tokens', { reason: reason });\n return goToGenericError(reason);\n }\n\n _squid.$util.assert(reason, 'expected fallback reason');\n\n _logger.$logger.log(product ? 'info' : 'error', 'fallback', {\n reason: reason,\n product: product,\n entry_point: entry_point\n });\n\n var country = _squid.$locale.country;\n\n var paymentAction = checkoutCart.payment_action;\n\n _logger.$logger.info('fallback_reason_' + reason);\n if (checkoutAppData.is_wps_flow()) {\n _logger.$logger.log('info', 'wps_fallback', {\n token: _squid.$meta.token,\n reason: reason\n });\n _logger.$logger.info('wps_fallback_reason_' + reason, { reason: reason });\n }\n\n if (!_squid.$config.fallbackEnabled && !entry_point) {\n _logger.$logger.info('fallback_disabled_by_config');\n return goToGenericError();\n }\n\n /**\n * CONFIG BASED WHITELIST:\n * Determines if we should fallback or instead redirect to generic error page.\n * We go to generic error page if the reason is not in the whitelist\n * If the users' browser supports session storage they will be shown the retry link\n * in generic error page.\n */\n var fallbackNotWhitelisted = whitelist.indexOf(reason) === -1;\n\n // We can add countries to the config param to enable fallback to UX\n // If fallback reason not whitelisted\n if (fallbackNotWhitelisted) {\n _logger.$logger.info('fallback_reason_not_whitelisted', { reason: reason, product: product, country: country, paymentAction: paymentAction });\n\n // We're using sessionStorage for retry detection\n if (_squid.$util.sessionStorageEnabled()) {\n var RETRY_KEY = 'retry_page_shown';\n var RETRY_PAGE_LIMIT = 3; // Only show the retry page at most 3 times\n var timesSeen = Number(sessionStorage.getItem(RETRY_KEY));\n var destination = 'RETRY';\n\n // Reset if there's an invalid value for timesSeen for some reason\n if (!timesSeen || timesSeen < 0) {\n timesSeen = 0;\n }\n\n // Only try to go to retry page if we're within retry attempts\n if (timesSeen < RETRY_PAGE_LIMIT) {\n timesSeen++;\n sessionStorage.setItem(RETRY_KEY, timesSeen);\n } else {\n destination = 'DEFAULT';\n }\n\n _logger.$logger.info('checkout_fpti', {\n 'enable_refresh_prompt': reason\n });\n\n return goToGenericError(destination);\n }\n return goToGenericError();\n }\n\n _logger.$logger.info('fallback_reason_whitelisted', { reason: reason, product: product, country: country, paymentAction: paymentAction });\n\n if (_squid.$config.deploy.isLocal() && !entry_point) {\n return _angular.$log.info('Fallback inhibited in local mode. Please refresh to re-enable error logging');\n }\n\n _angular.$rootScope.$emit('loading');\n\n var urlParams = {\n token: _squid.$meta.token,\n fallback: 1,\n landing: entry_point,\n useraction: _squid.$util.param('useraction')\n };\n\n if (_angular.$rootScope.partnerIntegration) {\n urlParams.incontext = '1';\n urlParams.nolegacy = '1';\n } else if (_angular.$rootScope.miniBrowser) {\n urlParams.incontext = '1';\n }\n\n var _checkoutAppData$flag = checkoutAppData.flags,\n appDataFlags = _checkoutAppData$flag === undefined ? {} : _checkoutAppData$flag;\n\n var base = _squid.$config.urls.fallbackUrl[product];\n var wpsParams = void 0;\n\n if (checkoutAppData.is_wps_subscription_flow()) {\n base = _squid.$config.urls.fallbackUrl['wpsSubscription'];\n wpsParams = _squid.$util.decodeAndParse(_squid.$meta.xclickParams);\n wpsParams.cmd = wpsParams.hosted_button_id ? '_s-xclick' : '_xclick-subscriptions';\n } else if (checkoutAppData.is_wps_flow()) {\n base = appDataFlags.is_cart_upload_flow || appDataFlags.is_shopping_cart_flow ? _squid.$config.urls.fallbackUrl['cartUpload'] : _squid.$config.urls.fallbackUrl['buyNow'];\n wpsParams = _squid.$util.decodeAndParse(_squid.$meta.xclickParams);\n }\n\n if (appDataFlags.is_invoice_flow) {\n urlParams.id = checkoutAppData.invoice_id;\n base = _squid.$config.urls.fallbackUrl['invoice'];\n }\n\n var hostname = _squid.$meta.stage ? _squid.$meta.stage : _angular.$window.location.hostname;\n var url = _squid.$util.buildURL('https://' + hostname + base, urlParams);\n\n if (checkoutAppData.is_wps_flow() || appDataFlags.is_invoice_flow) {\n goToUrl(url, wpsParams, checkoutAppData);\n return true;\n }\n\n if (product === 'ux') {\n var uxUrl = determineUrlForUxFallback(checkoutAppData, url);\n\n // Otherwise we can make a decision based on whether we're in the minibrowser or not\n return checkoutAppData.action('updateFallbackAction', {\n data: {\n fallback_action: 'CA_FALLBACK_USER_ACTION_LOGIN_GUEST_TAB_SELECTION'\n },\n success: function success() {\n _index.$ReturnToMerchant.goTo(uxUrl);\n return true;\n },\n\n contingencies: {\n DEFAULT: function DEFAULT() {\n _index.$ReturnToMerchant.goTo(uxUrl);\n return true;\n }\n }\n })['catch'](function () {\n _index.$ReturnToMerchant.goTo(uxUrl);\n return true;\n });\n }\n\n // Safe to always return to Aries\n _squid.$util.redirect(url);\n }\n\n return goToGenericError();\n })['catch'](function (modelLoadErr) {\n _logger.$logger.info('fallback_model_load_error', { reason: modelLoadErr });\n return goToGenericError(modelLoadErr);\n });\n}\n\nangular.value(\"$fallbackErrorHandler\", $fallbackErrorHandler);\n_angular.$window;\n\n_angular.$log;\n\n_angular.$rootScope;\n\n_uiRouter.$state;\n\n_index.$ReturnToMerchant;\n\n_squid.$FallbackError;\n\n_squid.$config;\n\n_squid.$meta;\n\n_squid.$util;\n\n_squid.$locale;\n\n_squid.$populate;\n\n_index2.$CheckoutInputDataModel;\n\n_index3.$CheckoutAppDataModel;\n\n_index3.$CheckoutCartModel;\n\n_index3.$CheckoutPayeeModel;\n\n_logger.$logger;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./js/lib/fallback.js\n// module id = ./js/lib/fallback.js\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _contingency = require('./contingency');\n\nObject.keys(_contingency).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _contingency[key];\n }\n });\n});\n\nvar _error = require('./error');\n\nObject.keys(_error).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _error[key];\n }\n });\n});\n\nvar _fallback = require('./fallback');\n\nObject.keys(_fallback).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _fallback[key];\n }\n });\n});\n\nvar _metaBuilder = require('./metaBuilder');\n\nObject.keys(_metaBuilder).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _metaBuilder[key];\n }\n });\n});\n\nvar _middleware = require('./middleware');\n\nObject.keys(_middleware).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _middleware[key];\n }\n });\n});\n\nvar _miniBrowser = require('./miniBrowser');\n\nObject.keys(_miniBrowser).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function get() {\n return _miniBrowser[key];\n }\n });\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./js/lib/index.js\n// module id = ./js/lib/index.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$CONTEXT = exports.$integration = exports.$FLOWS = undefined;\n\nvar _$DEFAULT, _$CONTEXT$FULLPAGE, _$integration$init;\n\nvar _squid = require('squid');\n\nObject.defineProperty(exports, '$integration', {\n enumerable: true,\n get: function get() {\n return _squid.$integration;\n }\n});\nObject.defineProperty(exports, '$CONTEXT', {\n enumerable: true,\n get: function get() {\n return _squid.$CONTEXT;\n }\n});\nvar $FLOWS = exports.$FLOWS = {\n // Regular end-to-end checkout flow with one entry and one exit point\n CHECKOUT: 'CHECKOUT',\n\n // Partner flow [ TODO: FACTOR THIS OUT ]\n PARTNER: 'PARTNER',\n\n // Native checkout flow\n NATIVE_CHECKOUT: 'NATIVE_CHECKOUT'\n};\n\n_squid.$integration.init($FLOWS.CHECKOUT, (_$integration$init = {}, _$integration$init[_squid.$DEFAULT] = (_$DEFAULT = {\n REDIRECT_TOP: true,\n REDIRECT_QUERY_PARAM: false\n\n}, _$DEFAULT[$FLOWS.PARTNER] = {\n REDIRECT_TOP: false,\n REDIRECT_QUERY_PARAM: true\n}, _$DEFAULT), _$integration$init[_squid.$CONTEXT.FULLPAGE] = (_$CONTEXT$FULLPAGE = {}, _$CONTEXT$FULLPAGE[$FLOWS.NATIVE_CHECKOUT] = {\n REDIRECT_QUERY_PARAM: true\n}, _$CONTEXT$FULLPAGE), _$integration$init[_squid.$CONTEXT.LIGHTBOX] = {\n REDIRECT_TOP: false\n}, _$integration$init));\n\nangular.value(\"$FLOWS\", $FLOWS);\n_squid.$integration;\n\n_squid.$DEFAULT;\n\n_squid.$CONTEXT;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./js/lib/integration.js\n// module id = ./js/lib/integration.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$metaBuilder = undefined;\n\nvar _angular = require('angular');\n\nvar _model = require('xo-tracking/dist/model');\n\nvar _squid = require('squid');\n\nfunction buildMeta() {\n return {\n token: _angular.$rootScope.token || _squid.$config.token || _squid.$meta.token || _squid.$util.param('token'),\n cartId: _squid.$util.param('cart_id'),\n calc: _model.$CalDataModel.getCalCorrId(),\n csci: _model.$CalDataModel.getUUID(),\n locale: {\n country: _squid.$locale && _squid.$locale.country,\n language: _squid.$locale && _squid.$locale.lang\n },\n state: 'ui_' + (_angular.$rootScope.currentState || 'checkout_init'),\n app_name: 'xoonboardingnodeweb'\n };\n}\n\n_squid.$Api.registerMetaBuilder(buildMeta);\n\nvar $metaBuilder = exports.$metaBuilder = {\n build: buildMeta\n};\n\nangular.value(\"$metaBuilder\", $metaBuilder);\n_angular.$rootScope;\n\n_model.$CalDataModel;\n\n_squid.$util;\n\n_squid.$meta;\n\n_squid.$Api;\n\n_squid.$locale;\n\n_squid.$config;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./js/lib/metaBuilder.js\n// module id = ./js/lib/metaBuilder.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$Middleware = undefined;\n\nvar _angular = require('angular');\n\nvar _logger = require('xo-beaver/dist/logger');\n\nvar _index = require('xo-models/src/user/index');\n\nvar _index2 = require('xo-models/src/checkout/index');\n\nvar _miniBrowser = require('./miniBrowser');\n\nvar _xoAPayUtils = require('xo-models/src/auth/lib/xoAPayUtils');\n\nvar _index3 = require('xo-models/src/onboard/index');\n\nvar _index4 = require('xo-models/src/auth/index');\n\nvar _squid = require('squid');\n\nvar noop = function noop() {\n return undefined;\n};\n\nvar $Middleware = exports.$Middleware = [function checkToken() {\n var urlToken = _squid.$util.param('token');\n var bodyToken = _squid.$meta.token;\n\n if (urlToken !== _squid.$meta.token) {\n _logger.$logger.error('token_mismatch', {\n server: _squid.$meta.token,\n client: urlToken\n });\n }\n\n if (!urlToken && !bodyToken && !_squid.$util.param('data')) {\n throw new Error('No token or data found in page url');\n }\n\n // first set regular token (EC transactions)\n _angular.$rootScope.token = bodyToken || urlToken;\n\n _angular.$window.root = _angular.$rootScope;\n}, function resolveLocale() {\n var models = {};\n\n if (_angular.$rootScope.token) {\n return (0, _squid.$populate)(models, {\n appData: _index2.$CheckoutAppDataModel.instance(_angular.$rootScope.token).retrieve({\n contingencies: {\n DEFAULT: noop\n }\n }),\n cart: _index2.$CheckoutCartModel.instance(_angular.$rootScope.token)\n })['finally'](function () {\n // We need to have finally here instead of then, as we always want\n // locale to be resolved no matter failure of getCart or getAppData call\n return _squid.$locale.retrieve({\n params: {\n ipCountry: _squid.$meta.ipcountry,\n localeTestUrlParam: _squid.$util.param('locale.test'),\n checkoutBillingCountry: models.cart && models.cart.get('payer_info.billing_address.country_code'),\n checkoutShippingCountry: models.cart && models.cart.get('purchase.shipping_address.country_code'),\n merchantCountry: models.appData && models.appData.get('merchant.merchant_country'),\n checkoutSessionLocale: models.appData && models.appData.get('merchant.merchant_locale'),\n countryParam: _squid.$util.param('country.x') || _squid.$meta.query && _squid.$meta.query['country.x'],\n localeParam: _squid.$util.param('locale.x') || _squid.$meta.query && _squid.$meta.query['locale.x']\n }\n });\n });\n } else if (_squid.$util.param('data')) {\n var options = {\n params: {\n data: _squid.$util.param('data')\n }\n };\n\n return (0, _squid.$populate)(models, {\n guestAccountData: _index3.$GuestUpgradeModel.instance().retrieve({\n options: options,\n contingencies: {\n MAYFLY_ERROR: noop,\n DEFAULT: noop\n }\n })\n }).then(function () {\n return _squid.$locale.retrieve({\n params: {\n ipCountry: _squid.$meta.ipcountry,\n localeTestUrlParam: _squid.$util.param('locale.test'),\n countryParam: models.guestAccountData.get('user.country')\n }\n });\n });\n }\n},\n\n/*\n * checkFlowType: this function checks the flow type and adds call info logs\n *\n * We moved this fn from checkToken to a separate middleware, as we found an issue\n * when checkoutAppData call fails\n *\n * ISSUE FIXED: when checkoutAppData call fails with INVALID_RESOURCE_ID,\n * we redirect user to generie error page, and error page was shown without any\n * content/text, as resolveLocale middleware was never executed due to error thrown\n * in checkToken middleware function (error thrown by checkoutAppData failure)\n */\nfunction checkFlowType() {\n // wps tokens are not preceeded with 'EC-'\n var wpsPattern = /^[0-9A-Z]{17}$/;\n\n // now test for WPS, set flags as necessary and log.\n // make sure ebay transactions aren't counted\n var isEbay = _index.$CheckoutInputDataModel.instance(_angular.$rootScope.token).isEbayTxn();\n\n // identify WPS vs checkout-order token\n if (!isEbay && wpsPattern.test(_angular.$rootScope.token)) {\n return _index2.$CheckoutAppDataModel.instance(_angular.$rootScope.token).retrieve().then(function (appData) {\n // For WPS tokens appData.is_wps_flow() will always return 'true'.\n var isWPS = appData.is_wps_flow();\n\n _logger.$logger.info('xoon_' + (isWPS ? 'wps' : 'xo_order') + '_flow', {\n token: _angular.$rootScope.token\n });\n });\n }\n}, function logout() {\n if (!_squid.$config.clientSideLogout) {\n return;\n }\n\n return _index4.$AuthModel.instance().retrieve().then(function (auth) {\n if (auth.logged_in || auth.email) {\n return auth.action('logout');\n }\n });\n},\n\n/**\n * Redirect back to Hermes if Android user with PayPal available through Android pay who\n * landed on Xoon due to BASL. 2 checks need to be done to determine if user has PayPal\n * in Android pay wallet: 1. chrome version >=58 (this version support payment api)\n * 2. call canMakePayment api call to validate if PayPal is already available in Android pay\n */\nfunction checkAPayBASLRedirect() {\n if (!_squid.$config.apayEnabled) {\n return;\n }\n // Check if browser supports PaymentRequest API.\n if (!_xoAPayUtils.$xoAPayUtils.isAPayAPISupported()) {\n return;\n }\n\n var models = {};\n\n return (0, _squid.$populate)(models, {\n cart: _index2.$CheckoutCartModel.instance(_angular.$rootScope.token).retrieve()\n }).then(function () {\n // Do nothing for APay onboarding flow.\n if (models.cart.isWalletTokenization()) {\n return;\n }\n\n // Call PaymentRequest API to check if paypal as payment available\n return _xoAPayUtils.$xoAPayUtils.canMakeAPayPayment().then(function (result) {\n if (result) {\n return (0, _squid.$dispatch)('hermes', {\n token: _angular.$rootScope.token,\n hermesLoginRedirect: 'xoon',\n 'locale.x': _squid.$locale.lang + '_' + _squid.$locale.country,\n 'country.x': _squid.$locale.country\n });\n }\n });\n });\n}, function xcomponent() {\n if (window.xprops && window.xprops.init) {\n return _angular.$q.all([_index2.$CheckoutAppDataModel.instance(_angular.$rootScope.token).retrieve(), _index2.$CheckoutPayeeModel.instance(_angular.$rootScope.token).retrieve()]).then(function (_ref) {\n var checkoutAppData = _ref[0],\n checkoutPayee = _ref[1];\n\n return window.xprops.init({\n paymentToken: _angular.$rootScope.token,\n merchantID: checkoutPayee.merchant.id,\n cancelUrl: checkoutAppData.urls.cancel_url\n });\n });\n }\n}, function updateMerchantData() {\n if (_index.$CheckoutInputDataModel.instance(_angular.$rootScope.token).isEbayTxn()) {\n return _index2.$CheckoutAppDataModel.instance(_angular.$rootScope.token).retrieve().then(function (appData) {\n return _index.$CheckoutClientDataModel.instance(_angular.$rootScope.token).retrieve().then(function (clientData) {\n var checkoutInputData = _index.$CheckoutInputDataModel.instance(_angular.$rootScope.token);\n var identityData = clientData.merchantIdentityData();\n\n appData.merchant = {\n brand_name: identityData.brand_name,\n logo_url: identityData.logo_uri\n };\n\n appData.urls = {\n cancel_url: checkoutInputData.errorUrl('user_cancelled')\n };\n });\n });\n }\n}, function checkJavaScriptInjection() {\n if (_index.$CheckoutInputDataModel.instance(_angular.$rootScope.token).isEbayTxn()) {\n _logger.$logger.info('prox_signup_start', { cart_id: _angular.$rootScope.token });\n var redirectUri = _squid.$util.param('redirect_uri');\n\n if (redirectUri && redirectUri.indexOf('http') !== 0) {\n _logger.$logger.warn('XOON_FLOW_INVALID_REDIRECT_URI_JAVASCRIPT_INJECTION', {\n uri: redirectUri\n });\n return _angular.$q.reject(new _squid.$FallbackError({\n reason: 'invalidRedirectURI',\n product: 'ux'\n }));\n }\n }\n}, function verifyRedirectURI() {\n if (_index.$CheckoutInputDataModel.instance(_angular.$rootScope.token).isEbayTxn()) {\n var redirectUri = _squid.$util.param('redirect_uri');\n\n return _index.$CheckoutClientDataModel.instance(_angular.$rootScope.token).retrieve().then(function (clientData) {\n var isValidUri = clientData.validateRedirectUri(redirectUri) || {};\n\n if (!isValidUri.success) {\n _logger.$logger.warn('XOON_FLOW_INVALID_REDIRECT_URI', {\n uri: redirectUri\n });\n return _angular.$q.reject(new _squid.$FallbackError({\n reason: 'invalidRedirectURI',\n product: 'ux'\n }));\n }\n });\n }\n},\n\n// allow PROX to support country content separate from Hermes\nfunction proxFallbackManager() {\n if (_index.$CheckoutInputDataModel.instance(_angular.$rootScope.token).isEbayTxn()) {\n (0, _squid.$featureCountries)('guestFallback').forEach(function (country, index) {\n _squid.$config.features[country].guestFallback = false;\n });\n }\n}, function handleTagManager() {\n _angular.$window.dataLayer = {\n // Two letter country code of the current page's content\n contentCountry: _squid.$locale.country.toLowerCase(),\n // Two letter locale\n contentLanguage: _squid.$locale.lang.toLowerCase()\n };\n\n var tagManagerUrl = '//www.paypalobjects.com/tagmgmt/bs-chunk.js';\n\n // Based on the environment, Tag Manager end point can be changed. For now the local and stage end points are same.\n if (_angular.$window.location.href.indexOf('qa.paypal.com') > -1 || _angular.$window.location.href.indexOf('localhost') > -1) {\n tagManagerUrl = '//nexus.ensighten.com/paypal/stage/Bootstrap.js';\n }\n\n // Defer loading of the script when the spinner is done.\n _angular.$rootScope.$on('allLoaded', function () {\n // Defer to the end of the callstack.\n var scriptTag = createTagManagerScript(tagManagerUrl);\n\n scriptTag.defer = true;\n insertScript(scriptTag);\n });\n\n function createTagManagerScript(url) {\n var tagManagerObjec = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'tagManager';\n\n _angular.$window.tagManagerObjec = tagManagerObjec;\n\n _angular.$window[tagManagerObjec] = _angular.$window[tagManagerObjec] || function () {\n (_angular.$window[tagManagerObjec].q = _angular.$window[tagManagerObjec].q || []).push(arguments);\n };\n\n _angular.$window[tagManagerObjec].l = 1 * new Date();\n\n var scriptElement = document.createElement('script');\n scriptElement.src = url;\n\n return scriptElement;\n }\n\n function insertScript(scriptElement) {\n var firstScript = document.getElementsByTagName('script')[0];\n firstScript.parentNode.insertBefore(scriptElement, firstScript);\n }\n}, function setupMiniBrowser() {\n if (_squid.$util.param('data')) {\n return _miniBrowser.$MiniBrowser.initialize(_squid.$util.param('cancel_url'));\n }\n\n return _index2.$CheckoutAppDataModel.instance(_angular.$rootScope.token).retrieve().then(function (appData) {\n return _miniBrowser.$MiniBrowser.initialize(appData.urls.cancel_url);\n });\n}, function logStart() {\n _logger.$logger.info('app_start_design', {\n is_directintegration: _miniBrowser.$MiniBrowser.isDirectIntegration ? 1 : 0,\n is_incontext: _miniBrowser.$MiniBrowser.isMiniBrowser || _miniBrowser.$MiniBrowser.isFrame ? 1 : 0\n });\n}, function checkForSDK() {\n var isSDKintegration = window.name && window.name.indexOf('xcomponent__ppcheckout') === 0 || window.name.indexOf('zoid__ppcheckout') === 0 || _squid.$util.param('xcomponent') || _squid.$util.param('zoid');\n\n var sdkLoaded = window.paypal && window.xprops && window.paypal.Checkout && window.paypal.Checkout.isChild();\n\n if (isSDKintegration && !sdkLoaded) {\n throw new Error('Checkout loaded in an SDK integration, but no xprops found. Maybe the sdk script failed to load in the child window.');\n }\n}];\n\nangular.value(\"$Middleware\", $Middleware);\n_angular.$q;\n\n_angular.$rootScope;\n\n_angular.$window;\n\n_logger.$logger;\n\n_index.$CheckoutInputDataModel;\n\n_index2.$CheckoutAppDataModel;\n\n_index2.$CheckoutCartModel;\n\n_index2.$CheckoutPayeeModel;\n\n_miniBrowser.$MiniBrowser;\n\n_xoAPayUtils.$xoAPayUtils;\n\n_index.$CheckoutClientDataModel;\n\n_index3.$GuestUpgradeModel;\n\n_index4.$AuthModel;\n\n_squid.$FallbackError;\n\n_squid.$config;\n\n_squid.$meta;\n\n_squid.$util;\n\n_squid.$locale;\n\n_squid.$populate;\n\n_squid.$dispatch;\n\n_squid.$featureCountries;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./js/lib/middleware.js\n// module id = ./js/lib/middleware.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$MiniBrowser = undefined;\n\nvar _angular = require('angular');\n\nvar _index = require('xo-return-to-merchant/dist/index');\n\nvar _integration = require('./integration');\n\nvar _squid = require('squid');\n\nvar _logger = require('xo-beaver/dist/logger');\n\nvar MiniBrowser = _squid.$Class.extend('MiniBrowser', {\n isMiniBrowser: false,\n partnerIntegration: false,\n isDirectIntegration: false,\n\n _isMiniBrowser: function _isMiniBrowser() {\n return window.name && window.name.indexOf('PPFrame') === 0 && _squid.$util.isPopup() || _squid.$util.param('incontext') === '1' || window.xchild && _squid.$util.isPopup();\n },\n _isFrame: function _isFrame() {\n return _squid.$util.isIFrame();\n },\n initialize: function initialize(cancel_url) {\n this.isMiniBrowser = _angular.$rootScope.miniBrowser = this._isMiniBrowser();\n this.isFrame = this._isFrame();\n this.partnerIntegration = _angular.$rootScope.partnerIntegration = _angular.$window.name === 'PPFrameRedirect' || _squid.$util.param('nolegacy') === '1';\n\n // this.nativeIntegration is true, whenever the query param native_xo=1 when hermes was launched\n this.nativeIntegration = _squid.$util.param('native_xo') === '1';\n\n this.isDirectIntegration = this.isMiniBrowser || this.partnerIntegration || Boolean(_squid.$util.param('incontext')) || _angular.$window.location.pathname.indexOf('/checkoutnow') > -1;\n\n _integration.$integration.setFlow(_integration.$FLOWS.CHECKOUT);\n\n if (this.partnerIntegration) {\n _integration.$integration.setFlow(_integration.$FLOWS.PARTNER);\n _logger.$logger.info('partner_integration_flow');\n } else if (this.nativeIntegration && (0, _squid.$feature)('nativexoSupport')) {\n // we are setting the flow to be native checkout type\n // whenever the nativeIntegration flag is on\n // setting this flow will enable the redirect_uri query param\n // passed to hermes to override the merchant's redirect url\n // on cancel or redirect after a successful payment\n _integration.$integration.setFlow(_integration.$FLOWS.NATIVE_CHECKOUT);\n _logger.$logger.info('nativexo_integration_flow');\n }\n\n if (this.isMiniBrowser && !this.partnerIntegration) {\n var msg = void 0;\n\n try {\n msg = {\n cancelUrl: cancel_url,\n landingUrl: _angular.$window.location.href,\n secureWindowmsg: _squid.$locale.content.scripts.secureWindowmsg\n };\n } catch (error) {\n return _logger.$logger.error('minibrowser_msg_construction_failed', { error: error });\n }\n\n if (!_index.$ReturnToMerchant.postToMerchant(msg)) {\n _logger.$logger.error('minibrowser_post_failed');\n }\n }\n }\n});\n\nvar $MiniBrowser = exports.$MiniBrowser = new MiniBrowser();\n\nangular.value(\"$MiniBrowser\", $MiniBrowser);\n_angular.$rootScope;\n\n_angular.$window;\n\n_index.$ReturnToMerchant;\n\n_integration.$integration;\n\n_integration.$FLOWS;\n\n_squid.$Class;\n\n_squid.$feature;\n\n_squid.$locale;\n\n_squid.$util;\n\n_logger.$logger;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./js/lib/miniBrowser.js\n// module id = ./js/lib/miniBrowser.js\n// module chunks = 0","\n\nvar _angular = require('angular');\n\ndefine(['angular', 'squid/module', 'text!./template.html', 'xo-models/src/fi/lib/fiApis', 'xo-beaver/dist/logger', 'xo-wallet-components/src/add-card/directive', 'xo-validation/dist/directive', 'xo-ui-components/src/tooltip/directive', 'xo-ui-components/src/dropdown/directive', 'xo-page-components/src/value-props/directive', 'xo-page-components/src/done/directive'], function (angular, module, template) {\n\n return angular.module('hermes.page.xo-add-card.directive', ['squid', 'fi.apis', 'beaver', 'xo-add-card.directive', 'xo-validation.directive', 'xo-tooltip.directive', 'xo-dropdown.directive', 'xo-value-props.directive', 'xo-done.directive']).directive('xoPageAddCardPage', function ($rootScope) {\n\n return {\n template: template,\n\n scope: {\n token: '=?'\n },\n\n controller: function controller($scope, $rootScope, $state, $stateParams, $CheckoutSessionModel, $CheckoutAppDataModel, $CheckoutCartModel, // eslint-disable-line no-shadow\n $ShippingAddressModel, $locale, $fiApis, $logger) {\n\n function populateInfoMessage() {\n var msg = void 0;\n\n if ($stateParams.gaming === '1') {\n msg = $locale.content.get('creditcard.noEligibleFI');\n } else if ($stateParams.country === 'DE') {\n if ($stateParams.fiType === 'BANK') {\n msg = $locale.content.get('creditcard.cannotUseBank');\n } else {\n msg = $locale.content.get('creditcard.cannotUseCard');\n }\n } else {\n msg = $locale.content.get('creditcard.noFIContingency');\n }\n\n $scope.message = {\n msgs: [msg],\n type: 'error'\n };\n }\n\n populateInfoMessage();\n\n $scope.pagetitle = $locale.content.get('addCard.addACard');\n\n $scope.callbacks = {\n finish: function finish() {\n var checkoutSession = $CheckoutSessionModel.instance($rootScope.token);\n var checkoutAppData = $CheckoutAppDataModel.instance($rootScope.token);\n var checkoutCart = $CheckoutCartModel.instance($rootScope.token);\n var shippingAddress = $ShippingAddressModel.instance('123');\n\n var showGenericError = function showGenericError(code) {\n return function () {\n $state.go('checkout.genericError', { code: code });\n };\n };\n\n var makePayment = function makePayment() {\n return checkoutSession.action('createPayment', {\n data: {\n payer_id: checkoutSession.payer.id,\n intent: checkoutCart.payment_action\n },\n\n success: function success(result) {\n $rootScope.paymentComplete = true;\n $logger.info('wps_cart_to_txn_mapping', {\n cart_id: $rootScope.token,\n txn_id: result.transactionDetails && result.transactionDetails.id,\n txn_receipt_id: result.transactionDetails && result.transactionDetails.receipt_id\n });\n return $state.go('checkout.done');\n },\n\n contingencies: {\n TRANSACTION_REFUSED: showGenericError('TRANSACTION_REFUSED'),\n PAYEE_BLOCKED_TRANSACTION: showGenericError('PAYMENT_DENIED'),\n DUPLICATE_TRANSACTION: showGenericError('PAYMENT_ALREADY_DONE')\n }\n });\n };\n\n var authorize = function authorize() {\n checkoutSession.action('authorize', {\n success: function success() {\n if (checkoutAppData.doec_on_approve()) {\n return makePayment();\n } else {\n $state.go('checkout.end');\n }\n }\n });\n };\n\n var setStickyInstrument = function setStickyInstrument() {\n\n if ($stateParams.mode !== 'signup') {\n return;\n }\n var stickyInstrument = checkoutSession.selectedFuturePaymentInstrument ? undefined : checkoutSession.getSelectedStickyInstrument();\n\n if (stickyInstrument) {\n return checkoutSession.action('setStickyFI', {\n data: {\n instrument_id: stickyInstrument.instrument_id\n }\n });\n }\n };\n\n if (shippingAddress.isNew) {\n shippingAddress.save({\n data: shippingAddress,\n success: function success() {\n _angular.$q.when(setStickyInstrument())['catch'](function (err) {\n $logger.info('setStickyFI Failed', err);\n }).then(function () {\n return authorize();\n });\n }\n });\n } else {\n _angular.$q.when(setStickyInstrument())['catch'](function (err) {\n $logger.info('setStickyFI Failed', err);\n }).then($fiApis.patchCvv(checkoutSession)).then(authorize(), function (err) {\n $logger.error('patchCvv error', err);\n });\n }\n }\n };\n }\n };\n });\n});\n\n_angular.$q;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./pages/xo-add-card/directive.js\n// module id = ./pages/xo-add-card/directive.js\n// module chunks = 0","\n\ndefine(['angular', 'squid/index', 'xo-wallet-components/src/add-card/route', './directive'], function (angular, squid) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n angular.module('hermes.page.xo-add-card.route', ['squid', 'xo-add-card.route', 'hermes.page.xo-add-card.directive']).factory('$AddCardPageRoute', function ($ComponentRoute) {\n\n return $ComponentRoute.extend('AddCardPageRoute', {\n name: 'pageAddCard',\n directive: 'xo-page-add-card-page',\n titleContent: 'asideHeader.addCard',\n query: ['gaming', 'country', 'fiType', 'mode'],\n trackingData: {\n templateName: 'addCard.dust',\n pageGoal: 'Add Card',\n buzname: {\n 'fullpage': {\n 'pagename': '%::fullpage-add-cc',\n 'pagename2': '%::fullpage-add-cc:guest:hermes:',\n 'version': 'guest:%:'\n // More page qualifiers come here...\n } }\n },\n children: [{\n name: '$AddCardFlowRoute',\n attributes: {\n token: 'token',\n message: 'message',\n pagetitle: 'pagetitle',\n 'parent-callbacks': 'callbacks'\n }\n }]\n });\n });\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./pages/xo-add-card/route.js\n// module id = ./pages/xo-add-card/route.js\n// module chunks = 0","\n\nvar _fn = require('xo-guest-components/src/fraudnet/fn');\n\nvar _gdprCookieBanner = require('xo-models/src/gdprCookieBanner');\n\nvar _logger = require('xo-beaver/dist/logger');\n\ndefine(['angular', 'squid/index', 'text!./template.html', 'xo-ui-components/src/spinner/directive', 'xo-page-components/src/merchant-header/directive', 'xo-page-components/src/header/directive', 'xo-page-components/src/footer/directive', 'xo-page-components/src/cart/directive', 'xo-ui-components/src/error-tooltip/directive', 'xo-validation/dist/directive', 'xo-device-info/dist/index', 'xo-models/src/shippingMethod/index', 'xo-page-components/src/gdprCookieBanner/directive'], function (angular, squid, template) {\n\n return angular.module('hermes.page.xo-checkout.directive', ['squid', 'xo-spinner.directive', 'xo-merchant-header.directive', 'xo-header.directive', 'xo-footer.directive', 'xo-cart.directive', 'xo-error-tooltip.directive', 'xo-validation.directive', 'xo-device-info', 'xo-gdpr-cookie-banner.directive']).directive('xoCheckout', function ($document, $config, $util) {\n\n return {\n template: template,\n scope: {},\n\n controller: function controller($scope, $rootScope, $state, $renderContent, $locale, $LocaleResolver, $DeviceInfo, $FallbackError, $feature, $populate, $CheckoutAppDataModel, $CheckoutCartModel, $CheckoutPayeeModel, $ShippingRuleSummaryModel) {\n\n $scope.token = $rootScope.token;\n $scope.locale = $locale;\n\n _fn.$fn.trigger();\n $scope.isGdprValid = _gdprCookieBanner.isGdprValid;\n\n function setLanguageToggleFlags() {\n var landingPage = $scope.checkoutAppData.get('flags.landing_page');\n var hermesLoginRedirectParam = $util.param('hermesLoginRedirect');\n var languageToggleFeature = $feature('languageToggle');\n\n // Language Toggle - header\n if (landingPage === 'BILLING' && !hermesLoginRedirectParam) {\n $scope.languageSwitchHeader = { show: languageToggleFeature };\n } else {\n $scope.languageSwitchFooter = { show: languageToggleFeature };\n }\n }\n\n function checkShippingRulesExist() {\n return $populate($scope, {\n shippingRulesSummary: $ShippingRuleSummaryModel.instance($rootScope.token).retrieve({\n params: {\n merchant_id: $scope.checkoutPayee.merchant.id,\n currency_code: $scope.checkoutCart.purchase.amounts.total.currency_code\n }\n })\n });\n }\n\n $populate($scope, {\n checkoutAppData: $CheckoutAppDataModel.instance($scope.token),\n checkoutCart: $CheckoutCartModel.instance($scope.token),\n checkoutPayee: $CheckoutPayeeModel.instance($scope.token)\n }).then(function () {\n setLanguageToggleFlags();\n\n var isSntSupported = $scope.checkoutAppData.is_snt_supported();\n\n // call checkShippingRulesExist only if the token is WPS and not WPS subscription flow, or the token\n // is instant update flow\n // We have instant update flow check here to avoid making unnecessary calls to shippingRulesSummary\n if (isSntSupported || $scope.checkoutCart.instantUpdateIntegration) {\n checkShippingRulesExist().then(function () {\n\n // We need instant update flow check here again, because all instant update flows will\n // not have SnTEnabled in shippingRulesSummary\n if ($scope.shippingRulesSummary && $scope.shippingRulesSummary.isSnTEnabled || $scope.checkoutCart.instantUpdateIntegration) {\n // preserve these cart amount values passed from the merchant\n // since they could get changed after SnT from profile/callback (in case instant update) is applied\n // TODO: get rid of buttonParams and start using checkoutCart in SnT module\n $scope.buttonParams = {\n shipping: $scope.checkoutCart.purchase.amounts.shipping,\n tax: $scope.checkoutCart.purchase.amounts.tax,\n total: $scope.checkoutCart.purchase.amounts.total\n };\n }\n });\n }\n });\n\n // Change html dir attribute for RTL/LTR, append RTL styling if needed.\n function setDirectionality() {\n $document.prop('documentElement').setAttribute('dir', $locale.metadata.directionality);\n }\n\n // Change html lang attribute and document title\n function localizeHead() {\n $document.prop('documentElement').setAttribute('lang', $locale.lang);\n setDirectionality();\n\n var content = $renderContent('base.payPal');\n\n if (content) {\n $document.title = content;\n }\n }\n\n function getPaymentMethod() {\n var paymentMethodViaUrl = $util.param('paymentMethod');\n var paymentMethodViaCheckoutAppData = $scope.checkoutAppData.get('user_selected_funding_source_type') === 'PAY_UPON_INVOICE' ? 'invoice' : undefined;\n\n return paymentMethodViaCheckoutAppData || paymentMethodViaUrl;\n }\n\n function checkUnbranded() {\n var paymentMethod = getPaymentMethod();\n\n if (!paymentMethod || !$config.allowedUnbrandedPayments) {\n return false;\n }\n\n // If paymentMethod in URL is NOT in the list of allowed payment methods, return false\n if ($config.allowedUnbrandedPayments.indexOf(paymentMethod) === -1) {\n return false;\n }\n\n return true;\n }\n\n $scope.isUnbranded = checkUnbranded();\n\n $scope.paymentMethod = '';\n\n if ($scope.isUnbranded) {\n $scope.paymentMethod = getPaymentMethod();\n\n if ($scope.paymentMethod === 'invoice') {\n $scope.unbrandedTitle = 'payUponInvoice.header';\n $scope.unbrandedSubTitle = 'payUponInvoice.processedBy';\n }\n }\n\n $scope.isApp = $DeviceInfo.isApp();\n\n var contentChange = $rootScope.$on('contentChange', localizeHead);\n\n localizeHead();\n\n var cancel = $rootScope.$on('allLoaded', function () {\n angular.element('#preloaderSpinner').hide();\n\n // Opera for Andriod has support for window.performance.timing but\n // not for window.performance.now()\n var loadTime = 'N/A';\n if ('now' in performance) {\n loadTime = performance.now();\n } else if (['timeOrigin', 'timing'].some(function (key) {\n return key in performance;\n })) {\n var _performance = performance,\n timeOrigin = _performance.timeOrigin,\n _performance$timing = _performance.timing,\n timing = _performance$timing === undefined ? {} : _performance$timing;\n\n var start = timeOrigin || timing.navigationStart;\n loadTime = Date.now() - start;\n }\n\n _logger.$logger.info('checkout_fpti', {\n from: 'BILLING',\n to: 'prepare_billing_page_loaded',\n page_load_time: loadTime\n });\n cancel();\n });\n\n $scope.$on('localeChange', function () {\n localizeHead();\n setLanguageToggleFlags();\n });\n\n $scope.$on('$destroy', function () {\n cancel();\n contentChange();\n });\n\n $document.bind('click', function (event) {\n $scope.$broadcast('clickBody', event.target);\n });\n }\n };\n });\n});\n\n_fn.$fn;\n\n_gdprCookieBanner.isGdprValid;\n\n_logger.$logger;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./pages/xo-checkout/directive.js\n// module id = ./pages/xo-checkout/directive.js\n// module chunks = 0","\n\nrequire('jquery');\n\nrequire('angularPlaceHolderShim');\n\nvar _index = require('js/lib/index');\n\nrequire('xo-tracking/dist/index');\n\ndefine(['angular', 'squid/index', './directive', 'pages/xo-landing/route', 'pages/xo-generic-error/route', 'pages/xo-generic-message/route', 'pages/xo-end/route', 'pages/xo-guest/route', 'pages/xo-signup/route', 'pages/xo-add-card/route', 'xo-guest-components/src/multistep-signup/route', 'pages/xo-pay-upon-invoice/route', 'xo-page-components/src/done/route', 'xo-page-components/src/route-to-complete/route', 'xo-form-components/src/inventory-soldout/route'], function (angular, squid) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n angular.module('hermes.page.xo-checkout.route', ['squid', 'hermes.page.xo-landing.route', 'hermes.page.xo-checkout.directive', 'hermes.page.xo-generic-error.route', 'hermes.page.xo-generic-message.route', 'hermes.page.xo-end.route', 'hermes.page.xo-guest.route', 'hermes.page.xo-signup.route', 'hermes.page.xo-add-card.route', 'xo-multistep-signup.route', 'hermes.page.xo-pay-upon-invoice.route', 'xo-done', 'xo-route-to-complete']).factory('$BaseRoute', function ($ComponentRoute) {\n\n return $ComponentRoute.extend('CheckoutRoute', {\n\n defaultState: 'checkout.landing',\n middleware: _index.$Middleware,\n\n name: 'checkout',\n directive: 'xo-checkout',\n titleContent: 'base.payPal',\n children: [{\n name: '$LandingRoute',\n attributes: {\n 'is-unbranded': 'isUnbranded'\n }\n }, {\n name: '$GuestRoute',\n attributes: {\n token: 'token',\n 'is-unbranded': 'isUnbranded',\n 'payment-method': 'paymentMethod',\n 'button-params': 'buttonParams'\n }\n }, {\n name: '$SignupRoute',\n attributes: {\n token: 'token',\n 'button-params': 'buttonParams'\n }\n\n }, {\n name: '$AddCardPageRoute',\n attributes: {\n token: 'token'\n }\n\n }, {\n name: '$xoSoldOutPageRoute'\n }, {\n name: '$GenericErrorRoute'\n }, {\n name: '$GenericMessageRoute'\n }, {\n name: '$EndRoute'\n }, {\n name: '$MultistepSignupRoute',\n attributes: {\n token: 'token',\n 'button-params': 'buttonParams'\n }\n }, {\n name: '$PayUponInvoiceRoute',\n attributes: {\n token: 'token',\n 'is-unbranded': 'isUnbranded'\n }\n }, {\n name: '$DoneRoute'\n }, {\n name: '$RouteToCompleteRoute',\n attributes: {\n token: 'token'\n }\n }]\n });\n });\n});\n\n_index.$Middleware;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./pages/xo-checkout/route.js\n// module id = ./pages/xo-checkout/route.js\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _angular = require('angular');\n\nvar _index = require('squid/index');\n\nvar _index2 = require('xo-device-info/dist/index');\n\nvar _logger = require('xo-beaver/dist/logger');\n\nvar _uiRouter = require('uiRouter');\n\nvar _index3 = require('xo-models/src/checkout/index');\n\nvar _index4 = require('xo-models/src/user/index');\n\nvar _index5 = require('xo-models/src/auth/index');\n\nvar _index6 = require('xo-models/src/prox/index');\n\nvar _index7 = require('xo-models/src/profilemanagement/index');\n\nvar _index8 = require('xo-return-to-merchant/dist/index');\n\nvar _returnParams = require('xo-page-components/src/returnParams');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nexports['default'] = _index.$Component.extend('xoEnd', {\n\n tag: 'xo-end',\n\n template: _template2['default'],\n\n props: {},\n\n resolve: {\n models: function models() {\n return {\n payee: _index3.$CheckoutPayeeModel.instance(_angular.$rootScope.token).retrieve(),\n checkoutAppData: _index3.$CheckoutAppDataModel.instance(_angular.$rootScope.token).retrieve(),\n checkoutCart: _index3.$CheckoutCartModel.instance(_angular.$rootScope.token).retrieve(),\n checkoutSession: _index3.$CheckoutSessionModel.instance(_angular.$rootScope.token).retrieve()\n };\n },\n dependentModels: function dependentModels(resolvers) {\n return resolvers.models.then(function (models) {\n return {\n merchantPreferences: _index7.$MerchantPreferenceModel.instance(models.payee.merchant.id).retrieve()\n };\n });\n }\n },\n\n lifecycle: {\n enter: function enter() {\n angular.element('#outerWrapper').addClass('xo-end');\n _angular.$rootScope.$emit('startLoad');\n },\n exit: function exit() {\n // If there is any error in this directive, then we need to hide spinner\n // so that when user reaches generic error page, he can return to merchant\n // by clicking on \"return to merchant\" button\n _angular.$rootScope.$emit('allLoaded');\n },\n populate: function populate() {\n var _this = this;\n\n function returnMethod(merchantPreferences) {\n if (merchantPreferences) {\n return merchantPreferences.returnMethod();\n }\n return 'GET';\n }\n\n function returnUrl(checkoutAppData, merchantPreferences) {\n if (checkoutAppData.is_wps_flow() && merchantPreferences) {\n return checkoutAppData.urls.return_url || merchantPreferences.returnUrl();\n } else {\n return checkoutAppData.urls.return_url;\n }\n }\n\n function postToMerchant(wpsURL, wpsData) {\n _index8.$ReturnToMerchant.postTo(wpsURL, wpsData);\n }\n\n var goToMerchant = function goToMerchant(wpsURL, wpsData) {\n // if PDT is disabled don't send params in the url\n if (_this.dependentModels.merchantPreferences && !_this.dependentModels.merchantPreferences.pdtEnabled()) {\n return _index8.$ReturnToMerchant.goTo(wpsURL);\n }\n return _index8.$ReturnToMerchant.goTo(_index.$util.buildURL(wpsURL, wpsData));\n };\n\n _angular.$q.when().then(function () {\n\n /*\n If we're in an in-context flow, the parent button\n iframe may need the access token to continue running\n and execute the payment (e.g. in 3rd party cookies\n disabled mode)\n We reload the auth model, since after the user is\n onboarded this model is not updated, then pass the\n access token up. The token will only be passed if\n we're on the same-domain as the parent button.\n */\n\n if (window.xprops && window.xprops.onAuth) {\n var auth = _index5.$AuthModel.instance();\n\n return auth.reload().then(function () {\n window.xprops.onAuth({ accessToken: auth.access_token });\n });\n }\n }).then(function () {\n\n // handle the return url with post and get , with and without PDT for WPS alone\n // PDT - Payment Data Transfer\n if (_this.models.checkoutAppData.is_wps_flow()) {\n var wpsURL = returnUrl(_this.models.checkoutAppData, _this.dependentModels.merchantPreferences);\n var returnToMerchantMethod = returnMethod(_this.dependentModels.merchantPreferences);\n var isWPSCart = _this.models.checkoutAppData.flags.is_cart_upload_flow || _this.models.checkoutAppData.flags.is_shopping_cart_flow;\n var wpsParams = (0, _returnParams.$returnParams)(_this.models.checkoutCart, _this.models.checkoutSession, returnToMerchantMethod, 'WPS', isWPSCart);\n\n return returnToMerchantMethod === 'POST' ? postToMerchant(wpsURL, wpsParams) : goToMerchant(wpsURL, wpsParams);\n }\n\n var params = {};\n // Creating the checkoutInputData here so that it would not make payer-id call.\n var checkoutInputData = _index4.$CheckoutInputDataModel.instance(_angular.$rootScope.token);\n\n // Don't post PayerID for RT without purchase\n if (!_this.models.checkoutCart.isBillingNoPurchase()) {\n params.PayerID = _this.models.checkoutSession.payer.id;\n }\n\n var billingData = _this.models.checkoutCart.billing;\n\n // exclude BA token in the returnUrl for external merchant - (merchant not calling BEAM directly)\n if (billingData && billingData.ba_token && !_this.models.checkoutAppData.legacy_billing_integration) {\n params.ba_token = billingData.ba_token;\n }\n\n // When \"redirect_uri\" is passed as a query param\n if (_index.$integration.getConfig('REDIRECT_QUERY_PARAM') && _index.$util.param('redirect_uri')) {\n params.return_uri = _this.models.checkoutAppData.urls.return_url ? _index.$util.buildURL(_this.models.checkoutAppData.urls.return_url, params) : null;\n\n // Add these params after building `return_uri` to ensure they are not added into the final url\n params.intent = _this.models.checkoutCart.payment_action;\n params.opType = 'payment';\n params.paymentId = _this.models.checkoutAppData.payment_id;\n params.token = _angular.$rootScope.token;\n }\n\n var handleRedirection = function handleRedirection(url) {\n var isHTTPUrl = Boolean(url.indexOf('http') === 0 || url.indexOf('www') === 0);\n var isMobileDevice = Boolean(_index2.$DeviceInfo.isDevice() && !isHTTPUrl);\n\n /* Webview to App view switching is not happening properly\n * so to handle , adding a work around by adding cancel / return to merchant url\n * on success page\n * routeToComplete is the route which shows cancel / return to merchant url*/\n if (isMobileDevice) {\n _logger.$logger.info('Switching_Webview_To_App_view', {\n url: url\n });\n _angular.$window.onunload = _angular.$window.onbeforeunload = function () {\n // leave this blank , having this comment for lint warning - Unexpected Empty Function\n };\n _angular.$window.location = url;\n\n return _uiRouter.$state.go('checkout.routeToComplete', {\n url: url,\n urlType: 'success'\n });\n } else {\n _index8.$ReturnToMerchant.goTo(url);\n }\n\n return _index.$unresolved;\n };\n\n function finishProxFlow() {\n // for Prox Signup flow (eBay), generate auth code\n var auth = _index5.$AuthModel.instance();\n\n _logger.$logger.info('prox_exit_login_code_start');\n\n return auth.action('loginCode', {\n data: {\n user: {},\n client: {\n client_id: _index.$config.proxStsClientId,\n redirect_uri: checkoutInputData.redirect_uri,\n scope: checkoutInputData.scope,\n id_token: '',\n nonce: auth.nonce,\n response_type: 'code',\n skip_oauth: false,\n skip_consent: true,\n target_client_id: _index.$util.base64Decode(checkoutInputData.client_id),\n visitor_id: auth.visitor_id,\n scope_consent_context: 'access_token'\n }\n }\n\n })['catch'](function (err) {\n _logger.$logger.error('prox_exit_login_code_error', err);\n _index8.$ReturnToMerchant.goTo(checkoutInputData.errorUrl(err.message));\n\n return _index.$unresolved;\n }).then(function (loginCodeResult) {\n if (loginCodeResult && loginCodeResult.data && loginCodeResult.data.code) {\n _logger.$logger.info('prox_exit_login_code_success');\n return handleRedirection(checkoutInputData.successUrl(loginCodeResult.data.code));\n } else {\n _logger.$logger.error('prox_exit_login_code_not_found');\n _index8.$ReturnToMerchant.goTo(checkoutInputData.errorUrl('auth_code_error'));\n\n return _index.$unresolved;\n }\n });\n }\n\n if (!checkoutInputData.isEbayTxn()) {\n // non-Ebay/xoon flow\n return _angular.$q.when().then(function () {\n if (window.xprops && window.xprops.onAuthorize) {\n _logger.$logger.done();\n _angular.$rootScope.$emit('loading');\n\n var xparams = {\n paymentToken: _angular.$rootScope.token,\n orderID: _angular.$rootScope.token,\n billingToken: params['ba_token'],\n payerID: params['PayerID'],\n paymentID: params['paymentId'] || _this.models.checkoutAppData.payment_id,\n intent: _this.models.checkoutCart.payment_action\n };\n\n if (_this.models.checkoutAppData.get('urls.return_url')) {\n xparams.returnUrl = _index.$util.buildURL(_this.models.checkoutAppData.get('urls.return_url'), params);\n }\n\n return window.xprops.onAuthorize(xparams);\n } else if (_index.$integration.getConfig('REDIRECT_QUERY_PARAM') && _index.$util.param('redirect_uri')) {\n var redirect = _index.$util.buildURL(_index.$util.param('redirect_uri'));\n\n _logger.$logger.info('Nativeapp_Redirection', {\n redirect: redirect\n });\n return handleRedirection(_index.$util.buildURL(redirect, params));\n } else {\n return handleRedirection(_index.$util.buildURL(_this.models.checkoutAppData.get('urls.return_url'), params));\n }\n });\n } else {\n // PrOX flow only\n return _angular.$q.when().then(function () {\n _logger.$logger.info('prox_exit_for_authcode_start');\n if (_index.$util.param('fromLipp') === 'true') {\n var lippParamList = {\n client_id: _index.$util.param('client_id'),\n scope: _index.$util.param('scope'),\n state: _index.$util.param('state'),\n redirect_uri: _index.$util.param('redirect_uri'),\n metadata_id: _index.$util.param('cart_id')\n };\n var lippUrl = _index.$util.buildURL(_angular.$window.location.protocol + '//' + _angular.$window.location.host + _index.$config.urls.lippRedirectUrl, lippParamList);\n\n // reroute to LIPP to generate authcode if send from lipp\n _logger.$logger.info('XOON_REDIRECT_TO_LIPP_FOR_AUTHCODE');\n return _index8.$ReturnToMerchant.goTo(lippUrl, true);\n }if (_index.$util.param('ctxId')) {\n // for UL flow\n return _index6.$ContextualLoginModel.instance(_angular.$rootScope.token).retrieve().then(function (response) {\n if (response.success) {\n _logger.$logger.info('XOON_REDIRECT_TO_UL_FOR_AUTHCODE');\n _logger.$logger.info('checkout_fpti', { from: 'xoon_ul_auth_code', to: 'ul_auth_code' });\n var clUrl = _angular.$window.location.protocol + '//' + _angular.$window.location.host + _index.$config.urls.contextualLoginRedirectUrl + _index.$util.param('ctxId');\n\n return _index8.$ReturnToMerchant.goTo(clUrl, true);\n } else {\n _logger.$logger.error('XOON_UNABLE_TO_UPDATE_PAYLOAD_TO_UL_FOR_AUTHCODE');\n _logger.$logger.info('checkout_fpti', { from: 'xoon_ul_auth_code', to: 'regular_prox_ul_payload_update_error' });\n return finishProxFlow();\n }\n });\n } else {\n return finishProxFlow();\n }\n });\n }\n }); // end of then function\n } // populate\n\n }\n\n});\n\n\n_angular.$q;\n\n_angular.$rootScope;\n\n_angular.$window;\n\n_index.$Component;\n\n_index.$config;\n\n_index.$util;\n\n_index.$unresolved;\n\n_index.$integration;\n\n_index2.$DeviceInfo;\n\n_logger.$logger;\n\n_uiRouter.$state;\n\n_index3.$CheckoutSessionModel;\n\n_index3.$CheckoutAppDataModel;\n\n_index3.$CheckoutPayeeModel;\n\n_index3.$CheckoutCartModel;\n\n_index4.$CheckoutInputDataModel;\n\n_index5.$AuthModel;\n\n_index6.$ContextualLoginModel;\n\n_index7.$MerchantPreferenceModel;\n\n_index8.$ReturnToMerchant;\n\n_returnParams.$returnParams;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./pages/xo-end/directive.js\n// module id = ./pages/xo-end/directive.js\n// module chunks = 0","\n\nrequire('./directive.js');\n\ndefine(['angular', 'squid/index'], function (angular, squid) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n angular.module('hermes.page.xo-end.route', ['squid']).factory('$EndRoute', function ($ComponentRoute) {\n\n return $ComponentRoute.extend('EndRoute', {\n name: 'end',\n directive: 'xo-end'\n });\n });\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./pages/xo-end/route.js\n// module id = ./pages/xo-end/route.js\n// module chunks = 0","module.exports = \"
          \\n \\n
          \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./pages/xo-end/template.html\n// module id = ./pages/xo-end/template.html\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$xoGenericErrorPageComponent = undefined;\n\nvar _squid = require('squid');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nrequire('xo-models/src/checkout/index');\n\nrequire('xo-ui-components/src/generic-error/directive');\n\nrequire('xo-ui-components/src/message/directive');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar $xoGenericErrorPageComponent = exports.$xoGenericErrorPageComponent = _squid.$Component.extend('$xoGenericErrorPageComponent', {\n tag: 'xo-generic-error-page',\n template: _template2['default'],\n\n controller: function controller($scope, $rootScope, // eslint-disable-line no-shadow\n $locale, $CheckoutInputDataModel, $util, $logger, $state) {\n\n $scope.token = $rootScope.token;\n var terminalKey = 'terminal-error-' + $scope.token,\n refreshKey = 'has-seen-error-' + $scope.token;\n\n function renderErrorPage() {\n // prevent render flicker\n $scope.shouldRender = true;\n\n if ($CheckoutInputDataModel.instance($scope.token).isEbayTxn()) {\n $scope.cancelUrl = $util.param('redirect_uri');\n $scope.merchant = $locale.content.get('signup.ebay');\n }\n }\n\n if (!$util.sessionStorageEnabled() || !$scope.token || sessionStorage.getItem(terminalKey)) {\n return renderErrorPage();\n }\n\n // is not a refresh, user landing for the first time on generic error page.\n if (!sessionStorage.getItem(refreshKey)) {\n sessionStorage.setItem(refreshKey, '1');\n return renderErrorPage();\n } else {\n // This is a refresh. Go to guest page if a refresh happens, don't show generic error page\n $logger.info('checkout_fpti', {\n user_refresh: 1\n });\n // delete the refresh key, so that next time renders the error page.\n sessionStorage.removeItem(refreshKey);\n // go guest page if a refresh happens\n $state.go('checkout.landing')['catch'](function () {\n // don't try to do this again\n sessionStorage.setItem(terminalKey, '1');\n });\n }\n }\n});\n\nangular.value(\"$xoGenericErrorPageComponent\", $xoGenericErrorPageComponent);\n_squid.$Component;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./pages/xo-generic-error/directive.js\n// module id = ./pages/xo-generic-error/directive.js\n// module chunks = 0","\n\ndefine(['angular', 'squid/index', './directive'], function (angular, squid) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n angular.module('hermes.page.xo-generic-error.route', ['squid', 'hermes.page.xo-generic-error.directive']).factory('$GenericErrorRoute', function ($ComponentRoute) {\n\n return $ComponentRoute.extend('GenericErrorRoute', {\n name: 'genericError',\n directive: 'xo-generic-error-page',\n titleContent: 'genericError.pleaseTryAgain',\n query: ['code'],\n // need to find these values\n trackingData: {\n templateName: 'genericError.dust',\n pageGoal: 'Generic Error',\n buzname: {\n 'fullpage': {\n 'pagename': '%::fullpage-generic-error',\n 'pagename2': '%::fullpage-generic-error:member:hermes:',\n 'version': 'member:%:'\n }\n }\n },\n children: []\n });\n });\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./pages/xo-generic-error/route.js\n// module id = ./pages/xo-generic-error/route.js\n// module chunks = 0","module.exports = \"\\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./pages/xo-generic-error/template.html\n// module id = ./pages/xo-generic-error/template.html\n// module chunks = 0","\n\ndefine(['angular', 'squid/index', 'text!./template.html', 'xo-models/src/checkout/index', 'xo-ui-components/src/generic-message/directive'], function (angular, squid, template) {\n return angular.module('hermes.page.xo-generic-message.directive', ['squid', 'xomodel.checkout', 'xo-generic-message.directive']).directive('xoGenericMessagePage', function ($rootScope) {\n\n return {\n template: template,\n\n controller: function controller($scope, $rootScope, // eslint-disable-line no-shadow\n $stateParams, $state, $logger, $CheckoutAppDataModel, $util, $q, $populate) {\n\n $scope.token = $rootScope.token;\n angular.element('#defaultCancelLink').hide();\n\n var stateChangeStart = $rootScope.$on('$stateChangeStart', function (event, toState, toParams, fromState, fromParams) {\n event.preventDefault();\n });\n\n $rootScope.$on('$destroy', stateChangeStart);\n }\n };\n });\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./pages/xo-generic-message/directive.js\n// module id = ./pages/xo-generic-message/directive.js\n// module chunks = 0","\n\ndefine(['angular', 'squid/index', './directive'], function (angular, squid) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n angular.module('hermes.page.xo-generic-message.route', ['squid', 'hermes.page.xo-generic-message.directive']).factory('$GenericMessageRoute', function ($ComponentRoute) {\n\n return $ComponentRoute.extend('GenericMessageRoute', {\n name: 'genericMessage',\n directive: 'xo-generic-message-page',\n titleContent: 'genericError.pleaseTryAgain',\n query: ['code', 'returnUrl'],\n // need to find these values\n trackingData: {},\n children: []\n });\n });\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./pages/xo-generic-message/route.js\n// module id = ./pages/xo-generic-message/route.js\n// module chunks = 0","\n\nrequire('jquery');\n\nrequire('angularPlaceHolderShim');\n\nrequire('js/lib/index');\n\nrequire('xo-tracking/dist/index');\n\nvar _middleware = require('js/lib/middleware');\n\ndefine(['angular', 'squid/index', 'pages/xo-generic-error/route', 'xo-guest-components/src/guest-upgrade/directive'], function (angular, squid) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n angular.module('hermes.page.xo-guest-upgrade.route', ['squid', 'hermes.page.xo-generic-error.route', 'xo-guest-upgrade.directive']).factory('$GuestUpgradeRoute', function ($ComponentRoute) {\n\n return $ComponentRoute.extend('GuestUpgradeRoute', {\n\n defaultState: 'guestupgrade',\n middleware: _middleware.$Middleware,\n\n name: 'guestupgrade',\n directive: 'xo-guest-upgrade',\n\n // Uncomment the following line to suffix content to\n // the title of the page\n // Base title is 'PayPal Checkout'\n // titleContent: 'accountCreationGuest.heading',\n\n trackingData: {\n templateName: 'xoguestupgrade.dust',\n pageGoal: 'guest upgrade',\n pageQualifier: 'guestupgrade',\n buzname: {\n 'guestupgrade': {\n 'pagename': '%::guestupgrade',\n 'pagename2': '%::guestupgrade:prox-guest-upgrade',\n 'version': 'version-1:%:'\n }\n }\n },\n children: [{\n name: '$GenericErrorRoute'\n }]\n });\n });\n});\n\n_middleware.$Middleware;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./pages/xo-guest-upgrade/route.js\n// module id = ./pages/xo-guest-upgrade/route.js\n// module chunks = 0","\n\ndefine(['angular', 'squid/module', 'text!./template.html', 'xo-page-components/src/value-props/directive', 'xo-guest-components/src/guest/directive'], function (angular, module, template) {\n\n return angular.module('hermes.page.xo-guest.directive', ['squid', 'xo-value-props.directive', 'xo-onboard.payment.directive']).directive('xoGuest', function ($rootScope, $SingleStepModel) {\n\n return {\n template: template,\n\n scope: {\n token: '=?',\n parentCallbacks: '=?',\n isUnbranded: '=?',\n paymentMethod: '=?',\n buttonParams: '=?'\n },\n\n controller: function controller($scope, $state) {\n $scope.mode = 'guest';\n $scope.backUri = 'checkout.guest';\n $scope.singleStepModel = new $SingleStepModel();\n\n $scope.onComplete = function () {\n $state.go('checkout.end');\n };\n }\n };\n });\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./pages/xo-guest/directive.js\n// module id = ./pages/xo-guest/directive.js\n// module chunks = 0","\n\ndefine(['angular', 'squid/index', './directive', 'pages/xo-sidebar/route', 'xo-guest-components/src/guest-upgrade-interstitial/route'], function (angular, squid) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n angular.module('hermes.page.xo-guest.route', ['squid', 'hermes.page.xo-guest.directive', 'hermes.page.xo-sidebar.route']).factory('$GuestRoute', function ($ComponentRoute) {\n\n return $ComponentRoute.extend('GuestRoute', {\n name: 'guest',\n directive: 'xo-guest',\n\n // Uncomment the following line to suffix content to\n // the title of the page\n // Base title is 'PayPal Checkout'\n // titleContent: 'accountCreationGuest.heading',\n\n trackingData: {\n fptiState: 'guest_xo',\n trackStateExit: false,\n templateName: 'guest.dust',\n pageGoal: 'Payment Start',\n pageQualifier: 'guest',\n buzname: {\n 'guest': {\n 'pagename': '%::fullpage-guest',\n 'pagename2': '%::fullpage-guest:member:hermes:',\n 'version': 'guest:%:'\n },\n 'signup': {\n 'pagename': '%::fullpage-guestSignup',\n 'pagename2': '%::fullpage-guestSignup:member:hermes:',\n 'version': 'guestSignup:%:'\n // More page qualifiers come here...\n } }\n },\n children: [{\n name: '$SidebarRoute',\n attributes: {\n 'back-uri': 'backUri',\n 'parent-model': 'singleStepModel'\n }\n }, {\n name: '$GuestUpgradeInterstitialRoute',\n attributes: {\n token: 'token',\n 'parent-model': 'singleStepModel'\n }\n }]\n });\n });\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./pages/xo-guest/route.js\n// module id = ./pages/xo-guest/route.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.landingPageResolver = undefined;\n\nvar _paypalSdkConstants = require('paypal-sdk-constants');\n\nvar _squid = require('squid');\n\nvar _index = require('xo-models/src/checkout/index');\n\nvar _logger = require('xo-beaver/dist/logger');\n\nvar _angular = require('angular');\n\nvar landingFlow = function landingFlow(models) {\n var merchantCountry = models.checkoutAppData.get('merchant.merchant_country');\n var merchantId = models.checkoutPayeeModel.getId();\n var paymentMethodViaUrl = _squid.$util.param('paymentMethod');\n var paymentMethodViaCheckoutAppData = models.checkoutAppData.get('user_selected_funding_source_type') === 'PAY_UPON_INVOICE' ? 'invoice' : undefined;\n var paymentMethod = paymentMethodViaCheckoutAppData || paymentMethodViaUrl;\n var isUnbranded = paymentMethod !== undefined;\n\n function getProcessedRoute(appRoute) {\n var isForcedSignup = void 0;\n\n switch (appRoute) {\n case 'checkout.guest':\n isForcedSignup = 0;\n break;\n case 'checkout.signup':\n case 'checkout.multistepsignup':\n isForcedSignup = 1;\n break;\n default:\n isForcedSignup = -1;\n break;\n }\n\n _logger.$logger.info('checkout_fpti', {\n from: 'LANDING_PAGE_PARAM',\n forced_signup_offered: isForcedSignup,\n landing_page: 'Billing',\n locale: _squid.$locale.lang + '_' + _squid.$locale.country\n });\n\n return appRoute;\n }\n\n function callEPM() {\n return _index.$FlowEligibilityModel.instance(_angular.$rootScope.token).retrieve({\n params: {\n localeCountry: _squid.$locale.country,\n fundingSource: window.xprops && window.xprops.fundingSource,\n merchantId: merchantId,\n merchantCountry: merchantCountry\n }\n }).then(function (flowEligibility) {\n var mode = flowEligibility.guest ? 'guest' : 'signup';\n _logger.$logger.info(mode + '_flow_offered_by_epm_at_route');\n var appRoute = mode === 'signup' ? 'checkout.signup' : 'checkout.guest';\n return getProcessedRoute(appRoute);\n });\n }\n\n if (_squid.$config.deploy.isLocal() || _squid.$config.deploy.isStage()) {\n var passedInExp = _squid.$util.param('showExp');\n\n if ('guest'.includes(passedInExp)) {\n return getProcessedRoute('checkout.guest');\n }\n\n if ('signup'.includes(passedInExp)) {\n return getProcessedRoute('checkout.signup');\n }\n }\n\n var _ref = window.xprops || {},\n _ref$fundingSource = _ref.fundingSource,\n fundingSourceFromXprops = _ref$fundingSource === undefined ? '' : _ref$fundingSource,\n _ref$fundingOffered = _ref.fundingOffered,\n fundingOfferedFromXprops = _ref$fundingOffered === undefined ? [] : _ref$fundingOffered;\n\n function isSPBSignEligible() {\n // fundingOfferedFromXprops is already an array from xprops.\n if (fundingSourceFromXprops === _paypalSdkConstants.FUNDING.PAYPAL && fundingOfferedFromXprops.includes(_paypalSdkConstants.FUNDING.CARD)) {\n return (0, _squid.$pxp)('xo_xoon_spb_signup', 'xo_xoon_spb_signup_test', undefined, false, true).then(function (result) {\n var treatmentName = result && result.treatment_name;\n return treatmentName === 'xo_xoon_spb_signup_test';\n });\n }\n return _angular.$q.resolve(false);\n }\n\n return isSPBSignEligible().then(function (spbSignupEligible) {\n if (spbSignupEligible) {\n return getProcessedRoute('checkout.signup');\n } else if (isUnbranded) {\n var isUnbrandedAllowed = (0, _squid.$feature)('unbranded', true, merchantCountry);\n var isPuiAllowed = (0, _squid.$feature)('invoicePayment', true, merchantCountry);\n\n if (isUnbrandedAllowed && isPuiAllowed && paymentMethod === 'invoice') {\n return getProcessedRoute('checkout.pay-upon-invoice');\n }\n return getProcessedRoute('checkout.guest');\n } else if (models.checkoutAppData.get('flags.payment_experience_initiator') === 'PAYPAL_PLUS' && _squid.$util.param('exp') === 'signup') {\n return getProcessedRoute('checkout.signup');\n } else if ((0, _squid.$feature)('multiStepSignup', false, _squid.$locale.country)) {\n return getProcessedRoute('checkout.multistepsignup');\n } else if (models.checkoutInputData.isEbayTxn()) {\n // force signup for eBay users\n _logger.$logger.info('ebay_flow_signup');\n return getProcessedRoute('checkout.signup');\n } else {\n // if you here means, now we need to determine the route based on symphony EPM call.\n return callEPM();\n }\n });\n};\n\nvar landingPageResolver = {\n landingFlow: landingFlow\n};\n\nexports.landingPageResolver = landingPageResolver;\n\n\n_paypalSdkConstants.FUNDING;\n\n_squid.$util;\n\n_squid.$feature;\n\n_squid.$config;\n\n_squid.$locale;\n\n_squid.$pxp;\n\n_index.$FlowEligibilityModel;\n\n_logger.$logger;\n\n_angular.$q;\n\n_angular.$rootScope;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./pages/xo-landing/helper.js\n// module id = ./pages/xo-landing/helper.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$LandingRoute = undefined;\n\nvar _angular = require('angular');\n\nvar _squid = require('squid');\n\nvar _logger = require('xo-beaver/dist/logger');\n\nvar _index = require('xo-models/src/user/index');\n\nvar _index2 = require('xo-models/src/checkout/index');\n\nvar _index3 = require('xo-models/src/inventory/index');\n\nvar _helper = require('./helper');\n\nvar $LandingRoute = exports.$LandingRoute = _squid.$ComponentRoute.extend('LandingRoute', {\n name: 'landing',\n\n // Uncomment the following line to suffix content to\n // the title of the page\n // Base title is 'PayPal Checkout'\n // titleContent: 'accountCreationGuest.heading',\n\n scope: {\n isUnbranded: '=?'\n },\n\n trackingData: {\n fptiState: 'landing',\n trackStateExit: true\n },\n\n init: function init() {\n this._super.init.apply(this);\n\n _squid.$event.on('countryChange', function () {\n _index2.$FlowEligibilityModel.instance(_angular.$rootScope.token).invalidate();\n });\n },\n\n\n resolve: {\n action: function action() {\n var models = {};\n\n return (0, _squid.$populate)(models, {\n checkoutCart: _index2.$CheckoutCartModel.instance(_angular.$rootScope.token),\n checkoutPayeeModel: _index2.$CheckoutPayeeModel.instance(_angular.$rootScope.token),\n checkoutAppData: _index2.$CheckoutAppDataModel.instance(_angular.$rootScope.token),\n checkoutInputData: _index.$CheckoutInputDataModel.instance(_angular.$rootScope.token)\n }).then(function () {\n // C2 ramp - force CN country code to C2 upon landing\n if (_squid.$locale.country === 'CN') {\n _squid.$locale.change('C2', _squid.$locale.lang);\n _logger.$logger.info('CN_locale_forced_to_C2');\n }\n }).then(function () {\n\n var cartHasInventory = models.checkoutCart.get('cartHasInventory');\n\n if (_squid.$config.enableInventoryWPS && cartHasInventory) {\n var inventoryModel = _index3.$InventoryModel.instance(_angular.$rootScope.token);\n var inventoryInput = {\n items: models.checkoutCart.get('purchase.items'),\n merchantId: models.checkoutPayeeModel.getId()\n };\n\n return inventoryModel.action('getInventory', {\n data: inventoryInput,\n success: function success(inventoryResponse) {\n if (inventoryResponse.showSoldoutPage) {\n return {\n to: 'checkout.soldout',\n params: {\n items: encodeURIComponent(inventoryResponse.soldoutItems),\n soldOutUrl: encodeURIComponent(inventoryResponse.soldoutUrl)\n }\n };\n } else {\n inventoryModel.setInvetoryItems(inventoryResponse);\n return _helper.landingPageResolver.landingFlow(models);\n }\n }\n });\n } else {\n return _helper.landingPageResolver.landingFlow(models);\n }\n });\n }\n }\n});\n\nangular.value(\"$LandingRoute\", $LandingRoute);\n_angular.$rootScope;\n\n_squid.$ComponentRoute;\n\n_squid.$config;\n\n_squid.$event;\n\n_squid.$locale;\n\n_squid.$populate;\n\n_logger.$logger;\n\n_index.$CheckoutInputDataModel;\n\n_index2.$CheckoutAppDataModel;\n\n_index2.$CheckoutPayeeModel;\n\n_index2.$CheckoutCartModel;\n\n_index2.$FlowEligibilityModel;\n\n_index3.$InventoryModel;\n\n_helper.landingPageResolver;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./pages/xo-landing/route.js\n// module id = ./pages/xo-landing/route.js\n// module chunks = 0","\n\ndefine(['angular', 'squid/module', 'text!./template.html', 'xo-beaver/dist/logger', 'xo-page-components/src/value-props/directive', 'xo-wallet-components/src/pay-upon-invoice/directive'], function (angular, module, template) {\n\n return angular.module('hermes.page.xo-pay-upon-invoice.directive', ['squid', 'xo-value-props.directive', 'xo-pay-upon-invoice.directive']).directive('xoPayUponInvoicePage', function ($rootScope, $logger) {\n\n return {\n template: template,\n\n scope: {\n token: '=?',\n isUnbranded: '=?'\n },\n\n controller: function controller($scope, $rootScope, $state, $locale) {// eslint-disable-line no-shadow\n\n }\n };\n });\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./pages/xo-pay-upon-invoice/directive.js\n// module id = ./pages/xo-pay-upon-invoice/directive.js\n// module chunks = 0","\n\ndefine(['angular', 'squid/index', './directive'], function (angular, squid) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n angular.module('hermes.page.xo-pay-upon-invoice.route', ['squid', 'hermes.page.xo-pay-upon-invoice.directive']).factory('$PayUponInvoiceRoute', function ($ComponentRoute) {\n\n return $ComponentRoute.extend('PayUponInvoiceRoute', {\n name: 'pay-upon-invoice',\n directive: 'xo-pay-upon-invoice-page',\n\n // Uncomment the following line to suffix content to\n // the title of the page\n // Base title is 'PayPal Checkout'\n // titleContent: 'payment.payWithCard',\n\n trackingData: {\n templateName: 'pay-upon-invoice.dust',\n pageGoal: 'Payment Start',\n pageQualifier: 'pay-upon-invoice',\n buzname: {\n 'pay-upon-invoice': {\n 'pagename': '%::fullpage-pay-upon-invoice',\n 'pagename2': '%::fullpage-pay-upon-invoice:guest:hermes:',\n 'version': 'pay-upon-invoice:%:'\n // More page qualifiers come here...\n } }\n },\n children: []\n });\n });\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./pages/xo-pay-upon-invoice/route.js\n// module id = ./pages/xo-pay-upon-invoice/route.js\n// module chunks = 0","\n\ndefine(['angular', 'squid/index', 'text!./template.html', 'xo-page-components/src/aside-header/directive', 'xo-wallet-components/src/installment-options/directive', 'xo-tray-height/dist/directive'], function (angular, squid, template) {\n\n return angular.module('hermes.page.xo-sidebar-installment-options.directive', ['squid', 'xo-aside-header.directive', 'xo-installment-options.directive', 'xo-tray-height.directive']).directive('xoSidebarInstallmentOptionsPage', function () {\n\n return {\n template: template,\n\n scope: {\n backUri: '=?',\n parentModel: '=?'\n },\n\n controller: function controller($scope, $rootScope, $state) {\n $scope.token = $rootScope.token;\n\n $scope.cardInfo = {\n number: $scope.parentModel.onboard.card.number.replace(/ /g, ''),\n type: $scope.parentModel.onboard.card.type\n };\n\n $scope.onComplete = function (result) {\n $scope.parentModel.setProperties({\n selectedInstallmentData: result\n });\n\n angular.element('#paymentMethod').removeClass('ng-invalid'); // FIXME : setup a callback in xo-multistep-signup\n\n $state.go($scope.backUri);\n };\n\n $scope.$emit('populated');\n }\n };\n });\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./pages/xo-sidebar-installment-options/directive.js\n// module id = ./pages/xo-sidebar-installment-options/directive.js\n// module chunks = 0","\n\ndefine(['angular', 'squid/index', './directive'], function (angular, squid) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n angular.module('hermes.page.xo-sidebar-installment-options.route', ['squid', 'hermes.page.xo-sidebar-installment-options.directive']).factory('$SidebarInstallmentOptionsRoute', function ($ComponentRoute) {\n\n return $ComponentRoute.extend('InstallmentOptionsRoute', {\n name: 'installmentOptions',\n directive: 'xo-sidebar-installment-options-page',\n\n // Uncomment the following line to suffix content to\n // the title of the page\n // Base title is 'PayPal Checkout'\n // titleContent: 'accountCreationGuest.heading',\n\n trackingData: {\n templateName: 'tray/installmentOptions.dust',\n pageGoal: 'Installment Options',\n buzname: {\n 'fullpage': {\n 'pagename': '%::fullpage-installment-options',\n 'pagename2': '%::fullpage-installment-options::hermes:',\n 'version': ':%:'\n }\n }\n },\n children: []\n });\n });\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./pages/xo-sidebar-installment-options/route.js\n// module id = ./pages/xo-sidebar-installment-options/route.js\n// module chunks = 0","\n\ndefine(['angular', 'squid/index', 'text!./template.html'], function (angular, index, template) {\n\n return angular.module('hermes.page.xo-sidebar.directive', ['squid']).directive('xoSidebar', function () {\n\n return {\n template: template,\n\n scope: {\n backUri: '=?',\n parentModel: '=?'\n },\n\n link: function link($scope, element, attr) {\n\n $scope.$on('populated', function () {\n angular.element('body').addClass('trayOpen');\n angular.element('#wrapper').addClass('maskMember');\n\n var payButton = angular.element('.confirmButton');\n\n if (payButton) {\n payButton.attr('disabled', true);\n }\n });\n\n $scope.$on('$destroy', function () {\n angular.element('body').removeClass('trayOpen');\n\n var payButton = angular.element('.confirmButton');\n\n if (payButton) {\n payButton.attr('disabled', false);\n }\n });\n },\n controller: function controller($scope, $rootScope, $window, $state, $util, $populate) {\n\n $util.assert($scope.backUri, 'Expected backUri');\n\n $populate($scope);\n\n $scope.token = $rootScope.token;\n\n $scope.onPageClick = function ($event) {\n $event.stopPropagation();\n };\n\n $scope.close = function () {\n $state.go($scope.backUri);\n };\n\n $scope.callbacks = {\n done: function done() {\n $state.go($scope.backUri);\n }\n };\n }\n };\n });\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./pages/xo-sidebar/directive.js\n// module id = ./pages/xo-sidebar/directive.js\n// module chunks = 0","\n\ndefine(['angular', 'squid/index', './directive', 'pages/xo-sidebar-installment-options/route'], function (angular, squid) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n angular.module('hermes.page.xo-sidebar.route', ['squid', 'hermes.page.xo-sidebar.directive', 'hermes.page.xo-sidebar-installment-options.route']).factory('$SidebarRoute', function ($ComponentRoute) {\n\n return $ComponentRoute.extend('SidebarRoute', {\n name: 'sidebar',\n directive: 'xo-sidebar',\n\n // Uncomment the following line to suffix content to\n // the title of the page\n // Base title is 'PayPal Checkout'\n // titleContent: 'accountCreationGuest.heading',\n\n children: [{\n name: '$SidebarInstallmentOptionsRoute',\n attributes: {\n 'back-uri': 'backUri',\n 'parent-model': 'parentModel'\n }\n }]\n });\n });\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./pages/xo-sidebar/route.js\n// module id = ./pages/xo-sidebar/route.js\n// module chunks = 0","\n\ndefine(['angular', 'squid/module', 'text!./template.html', 'xo-page-components/src/value-props/directive', 'xo-guest-components/src/guest/directive'], function (angular, module, template) {\n\n return angular.module('hermes.page.xo-signup.directive', ['squid', 'xo-value-props.directive', 'xo-onboard.payment.directive']).directive('xoSignup', function ($rootScope, $SingleStepModel) {\n\n return {\n template: template,\n\n scope: {\n token: '=?',\n parentCallbacks: '=?',\n buttonParams: '=?'\n },\n\n controller: function controller($scope, $rootScope, $state, $locale) {\n // eslint-disable-line no-shadow\n $scope.mode = 'signup';\n $scope.backUri = 'checkout.signup';\n $scope.singleStepModel = new $SingleStepModel();\n\n $scope.onComplete = function () {\n $state.go('checkout.end');\n };\n }\n };\n });\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./pages/xo-signup/directive.js\n// module id = ./pages/xo-signup/directive.js\n// module chunks = 0","\n\ndefine(['angular', 'squid/index', './directive', 'pages/xo-sidebar/route', 'xo-guest-components/src/guest-upgrade-interstitial/route'], function (angular, squid) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n angular.module('hermes.page.xo-signup.route', ['squid', 'hermes.page.xo-signup.directive', 'hermes.page.xo-sidebar.route']).factory('$SignupRoute', function ($ComponentRoute) {\n\n return $ComponentRoute.extend('SignupRoute', {\n name: 'signup',\n directive: 'xo-signup',\n\n // Uncomment the following line to suffix content to\n // the title of the page\n // Base title is 'PayPal Checkout'\n // titleContent: 'accountCreationGuest.heading',\n\n trackingData: {\n fptiState: 'signup',\n trackStateExit: true,\n templateName: 'signup.dust',\n pageGoal: 'Signup Start',\n pageQualifier: 'signup',\n buzname: {\n 'signup': {\n 'pagename': '%::fullpage-signup',\n 'pagename2': '%::fullpage-signup:member:hermes:',\n 'version': 'guest:%:'\n // More page qualifiers come here...\n } }\n },\n children: [{\n name: '$SidebarRoute',\n attributes: {\n 'back-uri': 'backUri',\n 'parent-model': 'singleStepModel'\n }\n }, {\n name: '$GuestUpgradeInterstitialRoute',\n attributes: {\n token: 'token',\n 'parent-model': 'singleStepModel'\n }\n }]\n });\n });\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./pages/xo-signup/route.js\n// module id = ./pages/xo-signup/route.js\n// module chunks = 0"],"sourceRoot":""}