{"version":3,"sources":["webpack:///js/main.js","webpack:///../node_modules/core-js/fn/array/every.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/array/some.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/_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-dp.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/_strict-method.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.every.js","webpack:///../node_modules/core-js/modules/es6.array.find.js","webpack:///../node_modules/core-js/modules/es6.array.some.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:///./components/xo-address-components/src/add-address/template.html?ff90","webpack:///./components/xo-address-components/src/address-normalization/template.html","webpack:///./components/xo-form-components/src/dob-input/template.html","webpack:///./components/xo-form-components/src/language-options/template.html","webpack:///./components/xo-form-components/src/national-id-input/template.html","webpack:///./components/xo-form-components/src/phone/phoneInputA/template.html","webpack:///./components/xo-form-components/src/phone/template.html","webpack:///./components/xo-guest-components/src/guest-upgrade/occupation/template.html","webpack:///./components/xo-guest-components/src/login-button/template.html","webpack:///./components/xo-guest-components/src/multistep-signup/addCard/template.html","webpack:///./components/xo-guest-components/src/multistep-signup/addShipping/template.html","webpack:///./components/xo-guest-components/src/multistep-signup/addressNormalization/template.html","webpack:///./components/xo-guest-components/src/multistep-signup/createAccount/template.html","webpack:///./components/xo-guest-components/src/multistep-signup/template.html","webpack:///./components/xo-page-components/src/aside-header/template.html","webpack:///./components/xo-page-components/src/cart/cartWrapper/template.html","webpack:///./components/xo-page-components/src/cart/itemDetails/template.html","webpack:///./components/xo-page-components/src/cart/template.html","webpack:///./components/xo-page-components/src/footer/template.html","webpack:///./components/xo-page-components/src/header/template.html","webpack:///./components/xo-page-components/src/marketingOffers/template.html","webpack:///./components/xo-page-components/src/route-to-complete/template.html","webpack:///./components/xo-page-components/src/value-props/template.html","webpack:///./components/xo-title/dist/template.html","webpack:///./components/xo-ui-components/src/escape-hatch/closeFrame/template.html","webpack:///./components/xo-ui-components/src/escape-hatch/escapeHatch/template.html","webpack:///./components/xo-ui-components/src/generic-message/template.html","webpack:///./components/xo-ui-components/src/message/template.html","webpack:///./components/xo-ui-components/src/spinner-button/template.html","webpack:///./components/xo-ui-components/src/spinner/template.html","webpack:///./components/xo-wallet-components/src/3ds/template.html","webpack:///./components/xo-wallet-components/src/add-bank/bank-input/template.html","webpack:///./components/xo-wallet-components/src/add-card/addCep/template.html","webpack:///./components/xo-wallet-components/src/add-card/addbilling/template.html","webpack:///./components/xo-wallet-components/src/add-card/addcard/template.html","webpack:///./components/xo-wallet-components/src/add-card/creditcard-input/template.html","webpack:///./components/xo-wallet-components/src/add-card/selectcard/template.html","webpack:///./components/xo-wallet-components/src/add-card/template.html","webpack:///./components/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/object-assign/index.js","webpack:///../node_modules/xo-webpack-config/polyfills.js","webpack:///./components/base64/base64.min.js","webpack:///./components/jquery-mask-plugin/dist/jquery.mask.js","webpack:///./components/node-uuid/uuid.js","webpack:///./components/squid/dist/core/api.js","webpack:///./components/squid/dist/core/class.js","webpack:///./components/squid/dist/core/config.js","webpack:///./components/squid/dist/core/dom.js","webpack:///./components/squid/dist/core/error.js","webpack:///./components/squid/dist/core/event.js","webpack:///./components/squid/dist/core/index.js","webpack:///./components/squid/dist/core/integration.js","webpack:///./components/squid/dist/core/loader.js","webpack:///./components/squid/dist/core/model.js","webpack:///./components/squid/dist/core/promise.js","webpack:///./components/squid/dist/core/util.js","webpack:///./components/squid/dist/index.js","webpack:///./components/squid/dist/locale/currency.js","webpack:///./components/squid/dist/locale/feature.js","webpack:///./components/squid/dist/locale/index.js","webpack:///./components/squid/dist/locale/locale.js","webpack:///./components/squid/dist/locale/name.js","webpack:///./components/squid/dist/locale/quantity.js","webpack:///./components/squid/dist/module.js","webpack:///./components/squid/dist/ng/component.js","webpack:///./components/squid/dist/ng/core.js","webpack:///./components/squid/dist/ng/directive.js","webpack:///./components/squid/dist/ng/events.js","webpack:///./components/squid/dist/ng/feature.js","webpack:///./components/squid/dist/ng/index.js","webpack:///./components/squid/dist/ng/locale.js","webpack:///./components/squid/dist/ng/module.js","webpack:///./components/squid/dist/ng/ng.js","webpack:///./components/squid/dist/ng/pxp.js","webpack:///./components/squid/dist/ng/route.js","webpack:///./components/squid/dist/paypal/config.js","webpack:///./components/squid/dist/paypal/env.js","webpack:///./components/squid/dist/paypal/index.js","webpack:///./components/squid/dist/paypal/pxp.js","webpack:///./components/xo-address-components/src/add-address/directive.js","webpack:///./components/xo-address-components/src/add-address/template.html","webpack:///./components/xo-address-components/src/address-normalization/directive.js","webpack:///./components/xo-address-components/src/address-normalization/route.js","webpack:///./components/xo-beaver/dist/level.js","webpack:///./components/xo-beaver/dist/logger.js","webpack:///./components/xo-device-info/dist/index.js","webpack:///./components/xo-form-components/src/dob-input/directive.js","webpack:///./components/xo-form-components/src/gender-type/directive.js","webpack:///./components/xo-form-components/src/gender-type/template.html","webpack:///./components/xo-form-components/src/inventory-soldout/directive.js","webpack:///./components/xo-form-components/src/inventory-soldout/route.js","webpack:///./components/xo-form-components/src/inventory-soldout/template.html","webpack:///./components/xo-form-components/src/language-options/directive.js","webpack:///./components/xo-form-components/src/name-input/directive.js","webpack:///./components/xo-form-components/src/name-input/template.html","webpack:///./components/xo-form-components/src/national-id-input/directive.js","webpack:///./components/xo-form-components/src/phone/directive.js","webpack:///./components/xo-form-components/src/phone/lib/territoriesByCode.js","webpack:///./components/xo-form-components/src/phone/phoneInput/directive.js","webpack:///./components/xo-form-components/src/phone/phoneInput/template.html","webpack:///./components/xo-form-components/src/phone/phoneInputA/directive.js","webpack:///./components/xo-form-components/src/phone/phoneInputB/directive.js","webpack:///./components/xo-form-components/src/phone/phoneInputB/template.html","webpack:///./components/xo-form-components/src/place-of-birth/directive.js","webpack:///./components/xo-form-components/src/place-of-birth/template.html","webpack:///./components/xo-form-components/src/select-shipping-country/directive.js","webpack:///./components/xo-form-components/src/select-shipping-country/template.html","webpack:///./components/xo-form-components/src/travel-rule/directive.js","webpack:///./components/xo-form-components/src/travel-rule/template.html","webpack:///./components/xo-form-components/src/travel-rule/utilFunctions.js","webpack:///./components/xo-form-components/src/zipcode/directive.js","webpack:///./components/xo-form-components/src/zipcode/template.html","webpack:///./components/xo-guest-components/src/fraudnet/fn.js","webpack:///./components/xo-guest-components/src/guest-upgrade-interstitial/constants/pxpExperimentConstants.js","webpack:///./components/xo-guest-components/src/guest-upgrade-interstitial/directive.js","webpack:///./components/xo-guest-components/src/guest-upgrade-interstitial/route.js","webpack:///./components/xo-guest-components/src/guest-upgrade-interstitial/template.html","webpack:///./components/xo-guest-components/src/guest-upgrade/directive.js","webpack:///./components/xo-guest-components/src/guest-upgrade/lib/mapper.js","webpack:///./components/xo-guest-components/src/guest-upgrade/occupation/directive.js","webpack:///./components/xo-guest-components/src/guest-upgrade/template.html","webpack:///./components/xo-guest-components/src/guest/constants/constants.js","webpack:///./components/xo-guest-components/src/guest/constants/errorHandlerConstants.js","webpack:///./components/xo-guest-components/src/guest/constants/pxpExperimentConstants.js","webpack:///./components/xo-guest-components/src/guest/countryList/directive.js","webpack:///./components/xo-guest-components/src/guest/countryList/template.html","webpack:///./components/xo-guest-components/src/guest/currencyConversion/directive.js","webpack:///./components/xo-guest-components/src/guest/currencyConversion/route.js","webpack:///./components/xo-guest-components/src/guest/currencyConversion/template.html","webpack:///./components/xo-guest-components/src/guest/currencyConversion/utils.js","webpack:///./components/xo-guest-components/src/guest/directive.js","webpack:///./components/xo-guest-components/src/guest/emailInput/directive.js","webpack:///./components/xo-guest-components/src/guest/emailInput/template.html","webpack:///./components/xo-guest-components/src/guest/lib/commonLib.js","webpack:///./components/xo-guest-components/src/guest/lib/errorHandlerHelper.js","webpack:///./components/xo-guest-components/src/guest/lib/pageProps.js","webpack:///./components/xo-guest-components/src/guest/nationality/directive.js","webpack:///./components/xo-guest-components/src/guest/nationality/template.html","webpack:///./components/xo-guest-components/src/guest/onboardOptions/directive.js","webpack:///./components/xo-guest-components/src/guest/onboardOptions/guest/directive.js","webpack:///./components/xo-guest-components/src/guest/onboardOptions/guest/template.html","webpack:///./components/xo-guest-components/src/guest/onboardOptions/lib/helper.js","webpack:///./components/xo-guest-components/src/guest/onboardOptions/signup/directive.js","webpack:///./components/xo-guest-components/src/guest/onboardOptions/signup/template.html","webpack:///./components/xo-guest-components/src/guest/onboardOptions/template.html","webpack:///./components/xo-guest-components/src/guest/passwordInput/directive.js","webpack:///./components/xo-guest-components/src/guest/passwordInput/template.html","webpack:///./components/xo-guest-components/src/guest/redirectingFromXoonWarning/directive.js","webpack:///./components/xo-guest-components/src/guest/redirectingFromXoonWarning/template.html","webpack:///./components/xo-guest-components/src/guest/select-shipping-method/directive.js","webpack:///./components/xo-guest-components/src/guest/select-shipping-method/shipping-method-dropdown/directive.js","webpack:///./components/xo-guest-components/src/guest/select-shipping-method/template.html","webpack:///./components/xo-guest-components/src/guest/sepa/directive.js","webpack:///./components/xo-guest-components/src/guest/sepa/template.html","webpack:///./components/xo-guest-components/src/guest/sticky.js","webpack:///./components/xo-guest-components/src/guest/template.html","webpack:///./components/xo-guest-components/src/guest/travelRuleLightbox/directive.js","webpack:///./components/xo-guest-components/src/guest/travelRuleLightbox/template.html","webpack:///./components/xo-guest-components/src/guest/xoonHeader/constants.js","webpack:///./components/xo-guest-components/src/guest/xoonHeader/directive.js","webpack:///./components/xo-guest-components/src/guest/xoonHeader/lib.js","webpack:///./components/xo-guest-components/src/guest/xoonHeader/template.html","webpack:///./components/xo-guest-components/src/lib/contentKeys.js","webpack:///./components/xo-guest-components/src/lib/util.js","webpack:///./components/xo-guest-components/src/login-button/directive.js","webpack:///./components/xo-guest-components/src/multistep-signup/addCard/directive.js","webpack:///./components/xo-guest-components/src/multistep-signup/addCard/route.js","webpack:///./components/xo-guest-components/src/multistep-signup/addShipping/directive.js","webpack:///./components/xo-guest-components/src/multistep-signup/addShipping/route.js","webpack:///./components/xo-guest-components/src/multistep-signup/addressNormalization/directive.js","webpack:///./components/xo-guest-components/src/multistep-signup/addressNormalization/route.js","webpack:///./components/xo-guest-components/src/multistep-signup/apiCalls/factory.js","webpack:///./components/xo-guest-components/src/multistep-signup/createAccount/directive.js","webpack:///./components/xo-guest-components/src/multistep-signup/createAccount/route.js","webpack:///./components/xo-guest-components/src/multistep-signup/directive.js","webpack:///./components/xo-guest-components/src/multistep-signup/index.js","webpack:///./components/xo-guest-components/src/multistep-signup/lib/util.js","webpack:///./components/xo-guest-components/src/multistep-signup/route.js","webpack:///./components/xo-locale/dist/country.js","webpack:///./components/xo-locale/dist/helper.js","webpack:///./components/xo-locale/dist/index.js","webpack:///./components/xo-locale/dist/language.js","webpack:///./components/xo-locale/dist/resolvers.js","webpack:///./components/xo-login-components/src/unified-login/ul.js","webpack:///./components/xo-models/src/address/index.js","webpack:///./components/xo-models/src/app/index.js","webpack:///./components/xo-models/src/auth/index.js","webpack:///./components/xo-models/src/auth/lib/xoAPayUtils.js","webpack:///./components/xo-models/src/checkout/index.js","webpack:///./components/xo-models/src/fi/index.js","webpack:///./components/xo-models/src/fi/lib/fiApis.js","webpack:///./components/xo-models/src/frs/index.js","webpack:///./components/xo-models/src/gdprCookieBanner/index.js","webpack:///./components/xo-models/src/inventory/index.js","webpack:///./components/xo-models/src/marketingoffer/index.js","webpack:///./components/xo-models/src/onboard/index.js","webpack:///./components/xo-models/src/processorDecline/index.js","webpack:///./components/xo-models/src/profilemanagement/index.js","webpack:///./components/xo-models/src/prox/index.js","webpack:///./components/xo-models/src/shippingMethod/index.js","webpack:///./components/xo-models/src/shoppingcart/index.js","webpack:///./components/xo-models/src/subscription/index.js","webpack:///./components/xo-models/src/user/index.js","webpack:///./components/xo-page-components/src/aside-header/directive.js","webpack:///./components/xo-page-components/src/cart/cartWrapper/directive.js","webpack:///./components/xo-page-components/src/cart/directive.js","webpack:///./components/xo-page-components/src/cart/itemDetails/directive.js","webpack:///./components/xo-page-components/src/cart/lib/decode_entities.js","webpack:///./components/xo-page-components/src/cart/lib/pxp.js","webpack:///./components/xo-page-components/src/cart/lib/showCartDecision.js","webpack:///./components/xo-page-components/src/cart/lib/ui.js","webpack:///./components/xo-page-components/src/cart/subscription/directive.js","webpack:///./components/xo-page-components/src/cart/subscription/template.html","webpack:///./components/xo-page-components/src/constants/fbMessenger.js","webpack:///./components/xo-page-components/src/done/directive.js","webpack:///./components/xo-page-components/src/done/route.js","webpack:///./components/xo-page-components/src/done/template.html","webpack:///./components/xo-page-components/src/footer/directive.js","webpack:///./components/xo-page-components/src/footer/footerMap.js","webpack:///./components/xo-page-components/src/footer/opinionlab.js","webpack:///./components/xo-page-components/src/gdprCookieBanner/directive.js","webpack:///./components/xo-page-components/src/gdprCookieBanner/template.html","webpack:///./components/xo-page-components/src/header/directive.js","webpack:///./components/xo-page-components/src/marketingOffers/directive.js","webpack:///./components/xo-page-components/src/merchant-header/directive.js","webpack:///./components/xo-page-components/src/merchant-header/template.html","webpack:///./components/xo-page-components/src/returnParams/index.js","webpack:///./components/xo-page-components/src/route-to-complete/directive.js","webpack:///./components/xo-page-components/src/route-to-complete/route.js","webpack:///./components/xo-page-components/src/subscription-terms/index.js","webpack:///./components/xo-page-components/src/subscription-terms/subscriptionTerms.js","webpack:///./components/xo-page-components/src/utils/index.js","webpack:///./components/xo-page-components/src/value-props/directive.js","webpack:///./components/xo-return-to-merchant/dist/formatReturnContent.js","webpack:///./components/xo-return-to-merchant/dist/index.js","webpack:///./components/xo-return-to-merchant/dist/util.js","webpack:///./components/xo-third-party-components/src/thirdParty-info/index.js","webpack:///./components/xo-third-party-components/src/thirdParty-info/sessionStorage.js","webpack:///./components/xo-title/dist/directive.js","webpack:///./components/xo-tracking/dist/builder.js","webpack:///./components/xo-tracking/dist/button.js","webpack:///./components/xo-tracking/dist/directive.js","webpack:///./components/xo-tracking/dist/fpti.js","webpack:///./components/xo-tracking/dist/index.js","webpack:///./components/xo-tracking/dist/listener.js","webpack:///./components/xo-tracking/dist/model.js","webpack:///./components/xo-tray-height/dist/directive.js","webpack:///./components/xo-ui-components/src/accessibility/directive.js","webpack:///./components/xo-ui-components/src/accessibility/ui.js","webpack:///./components/xo-ui-components/src/banner/directive.js","webpack:///./components/xo-ui-components/src/banner/template.html","webpack:///./components/xo-ui-components/src/directionality/directive.js","webpack:///./components/xo-ui-components/src/dropdown-multiline/directive.js","webpack:///./components/xo-ui-components/src/dropdown/directive.js","webpack:///./components/xo-ui-components/src/error-tooltip/directive.js","webpack:///./components/xo-ui-components/src/escape-hatch/closeFrame/directive.js","webpack:///./components/xo-ui-components/src/escape-hatch/escapeHatch/directive.js","webpack:///./components/xo-ui-components/src/floating-label/directive.js","webpack:///./components/xo-ui-components/src/generic-error/directive.js","webpack:///./components/xo-ui-components/src/generic-error/template.html","webpack:///./components/xo-ui-components/src/generic-message/directive.js","webpack:///./components/xo-ui-components/src/message/directive.js","webpack:///./components/xo-ui-components/src/modal/directive.js","webpack:///./components/xo-ui-components/src/modal/template.html","webpack:///./components/xo-ui-components/src/prefix-attrs-with/directive.js","webpack:///./components/xo-ui-components/src/spinner-button/directive.js","webpack:///./components/xo-ui-components/src/spinner/directive.js","webpack:///./components/xo-ui-components/src/tooltip/directive.js","webpack:///./components/xo-ui-components/src/tooltip/template.html","webpack:///./components/xo-ui-components/src/ui-utils/directive.js","webpack:///./components/xo-validation/dist/directive.js","webpack:///./components/xo-wallet-components/src/3ds/directive.js","webpack:///./components/xo-wallet-components/src/add-bank/bank-input/directive.js","webpack:///./components/xo-wallet-components/src/add-card/addCep/directive.js","webpack:///./components/xo-wallet-components/src/add-card/addCep/route.js","webpack:///./components/xo-wallet-components/src/add-card/addbilling/directive.js","webpack:///./components/xo-wallet-components/src/add-card/addbilling/route.js","webpack:///./components/xo-wallet-components/src/add-card/addcard/directive.js","webpack:///./components/xo-wallet-components/src/add-card/addcard/route.js","webpack:///./components/xo-wallet-components/src/add-card/cardExpiry/directive.js","webpack:///./components/xo-wallet-components/src/add-card/cardExpiry/template.html","webpack:///./components/xo-wallet-components/src/add-card/cardMetaData/index.js","webpack:///./components/xo-wallet-components/src/add-card/creditcard-input/directive.js","webpack:///./components/xo-wallet-components/src/add-card/cvv/directive.js","webpack:///./components/xo-wallet-components/src/add-card/cvv/template.html","webpack:///./components/xo-wallet-components/src/add-card/directive.js","webpack:///./components/xo-wallet-components/src/add-card/dob/directive.js","webpack:///./components/xo-wallet-components/src/add-card/dob/template.html","webpack:///./components/xo-wallet-components/src/add-card/index.js","webpack:///./components/xo-wallet-components/src/add-card/route.js","webpack:///./components/xo-wallet-components/src/add-card/selectcard/directive.js","webpack:///./components/xo-wallet-components/src/add-card/selectcard/route.js","webpack:///./components/xo-wallet-components/src/confirm-upop/confirm/directive.js","webpack:///./components/xo-wallet-components/src/confirm-upop/confirm/template.html","webpack:///./components/xo-wallet-components/src/confirm-upop/directive.js","webpack:///./components/xo-wallet-components/src/confirm-upop/init/directive.js","webpack:///./components/xo-wallet-components/src/confirm-upop/init/template.html","webpack:///./components/xo-wallet-components/src/confirm-upop/route.js","webpack:///./components/xo-wallet-components/src/confirm-upop/template.html","webpack:///./components/xo-wallet-components/src/fi-contingency-list/contingencies.js","webpack:///./components/xo-wallet-components/src/fi-contingency-list/util.js","webpack:///./components/xo-wallet-components/src/installment-options/directive.js","webpack:///./components/xo-wallet-components/src/pay-upon-invoice/directive.js","webpack:///./components/xo-wallet-components/src/pay-upon-invoice/template.html","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/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/every.js","module","exports","__webpack_require__","Array","every","../node_modules/core-js/fn/array/find.js","find","../node_modules/core-js/fn/array/includes.js","includes","../node_modules/core-js/fn/array/some.js","some","../node_modules/core-js/fn/object/entries.js","Object","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/_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","../node_modules/core-js/modules/_is-regexp.js","isRegExp","../node_modules/core-js/modules/_library.js","../node_modules/core-js/modules/_object-dp.js","anObject","IE8_DOM_DEFINE","toPrimitive","Attributes","../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","keys","../node_modules/core-js/modules/_object-pie.js","../node_modules/core-js/modules/_object-to-array.js","getKeys","isEnum","isEntries","../node_modules/core-js/modules/_property-desc.js","bitmap","enumerable","configurable","writable","../node_modules/core-js/modules/_redefine.js","SRC","TO_STRING","$toString","TPL","inspectSource","safe","isFunction","join","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/_strict-method.js","fails","method","../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","concat","../node_modules/core-js/modules/_wks.js","Symbol","USE_SYMBOL","$exports","../node_modules/core-js/modules/es6.array.every.js","$every","../node_modules/core-js/modules/es6.array.find.js","$find","forced","../node_modules/core-js/modules/es6.array.some.js","$some","../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/noop-loader/index.js!./components/xo-address-components/src/add-address/template.html","../node_modules/noop-loader/index.js!./components/xo-address-components/src/address-normalization/template.html","../node_modules/noop-loader/index.js!./components/xo-form-components/src/dob-input/template.html","../node_modules/noop-loader/index.js!./components/xo-form-components/src/language-options/template.html","../node_modules/noop-loader/index.js!./components/xo-form-components/src/national-id-input/template.html","../node_modules/noop-loader/index.js!./components/xo-form-components/src/phone/phoneInputA/template.html","../node_modules/noop-loader/index.js!./components/xo-form-components/src/phone/template.html","../node_modules/noop-loader/index.js!./components/xo-guest-components/src/guest-upgrade/occupation/template.html","../node_modules/noop-loader/index.js!./components/xo-guest-components/src/login-button/template.html","../node_modules/noop-loader/index.js!./components/xo-guest-components/src/multistep-signup/addCard/template.html","../node_modules/noop-loader/index.js!./components/xo-guest-components/src/multistep-signup/addShipping/template.html","../node_modules/noop-loader/index.js!./components/xo-guest-components/src/multistep-signup/addressNormalization/template.html","../node_modules/noop-loader/index.js!./components/xo-guest-components/src/multistep-signup/createAccount/template.html","../node_modules/noop-loader/index.js!./components/xo-guest-components/src/multistep-signup/template.html","../node_modules/noop-loader/index.js!./components/xo-page-components/src/aside-header/template.html","../node_modules/noop-loader/index.js!./components/xo-page-components/src/cart/cartWrapper/template.html","../node_modules/noop-loader/index.js!./components/xo-page-components/src/cart/itemDetails/template.html","../node_modules/noop-loader/index.js!./components/xo-page-components/src/cart/template.html","../node_modules/noop-loader/index.js!./components/xo-page-components/src/footer/template.html","../node_modules/noop-loader/index.js!./components/xo-page-components/src/header/template.html","../node_modules/noop-loader/index.js!./components/xo-page-components/src/marketingOffers/template.html","../node_modules/noop-loader/index.js!./components/xo-page-components/src/route-to-complete/template.html","../node_modules/noop-loader/index.js!./components/xo-page-components/src/value-props/template.html","../node_modules/noop-loader/index.js!./components/xo-title/dist/template.html","../node_modules/noop-loader/index.js!./components/xo-ui-components/src/escape-hatch/closeFrame/template.html","../node_modules/noop-loader/index.js!./components/xo-ui-components/src/escape-hatch/escapeHatch/template.html","../node_modules/noop-loader/index.js!./components/xo-ui-components/src/generic-message/template.html","../node_modules/noop-loader/index.js!./components/xo-ui-components/src/message/template.html","../node_modules/noop-loader/index.js!./components/xo-ui-components/src/spinner-button/template.html","../node_modules/noop-loader/index.js!./components/xo-ui-components/src/spinner/template.html","../node_modules/noop-loader/index.js!./components/xo-wallet-components/src/3ds/template.html","../node_modules/noop-loader/index.js!./components/xo-wallet-components/src/add-bank/bank-input/template.html","../node_modules/noop-loader/index.js!./components/xo-wallet-components/src/add-card/addCep/template.html","../node_modules/noop-loader/index.js!./components/xo-wallet-components/src/add-card/addbilling/template.html","../node_modules/noop-loader/index.js!./components/xo-wallet-components/src/add-card/addcard/template.html","../node_modules/noop-loader/index.js!./components/xo-wallet-components/src/add-card/creditcard-input/template.html","../node_modules/noop-loader/index.js!./components/xo-wallet-components/src/add-card/selectcard/template.html","../node_modules/noop-loader/index.js!./components/xo-wallet-components/src/add-card/template.html","../node_modules/noop-loader/index.js!./components/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/object-assign/index.js","getOwnPropertySymbols","propIsEnumerable","shouldUseNative","assign","test1","getOwnPropertyNames","test2","fromCharCode","order2","map","n","test3","forEach","letter","err","from","to","symbols","s","../node_modules/xo-webpack-config/polyfills.js","./components/base64/base64.min.js","t","message","r","Error","btoa","o","d","charAt","charCodeAt","atob","replace","./components/jquery-mask-plugin/dist/jquery.mask.js","__webpack_provided_window_dot_jQuery","__WEBPACK_AMD_DEFINE_FACTORY__","__WEBPACK_AMD_DEFINE_ARRAY__","__WEBPACK_AMD_DEFINE_RESULT__","jquery","factory","jQuery","Zepto","require","$","Mask","mask","options","p","invalid","getCaret","sel","pos","ctrl","dSel","selection","cSelStart","selectionStart","navigator","appVersion","createRange","moveStart","text","setCaret","range","setSelectionRange","createTextRange","collapse","moveEnd","select","events","on","data","keyCode","which","maskDigitPosMapOld","maskDigitPosMap","jMaskGlobals","useInput","behaviour","setTimeout","keydown","keyup","oldValue","trigger","selectOnFocus","clearIfNotMatch","regexMask","test","getRegexMask","maskChunks","translation","pattern","optional","recursive","oRecursive","jMask","digit","RegExp","destroyEvents","off","v","isInput","calculateCaretPosition","oldVal","newVal","getMasked","caretPosNew","caretPosOld","newValL","oldValL","maskDigitsBeforeCaret","maskDigitsAfterCaret","maskDigitsBeforeCaretAll","maskDigitsBeforeCaretAllOld","caretPos","event","inArray","byPassKeys","callbacks","skipMaskChars","buf","m","maskLen","valLen","offset","addMethod","resetPos","maskDigitCount","maskDigitPosArr","lastMaskChar","check","reverse","lastUntranslatedMaskChar","maskDigit","valDigit","match","fallback","lastMaskCharDigit","mapMaskdigitPositions","maskDiff","changed","defaultArgs","callback","criteria","args","remove","caret","getCleanVal","getMaskedVal","init","onlyMask","extend","placeholder","attr","maxlength","maskWatchers","HTMLAttributes","input","prefix","notSameMaskObject","field","maskObject","stringify","JSON","eventSupported","eventName","isSupported","setAttribute","selector","globals","interval","watchInterval","watchInputs","maskFunction","each","clearInterval","setInterval","masked","unmask","dataMask","removeData","cleanVal","applyDataMask","maskElements","$selector","filter","dataMaskAttr","userAgent","watchDataMask","0","9","#","A","./components/node-uuid/uuid.js","console","_window","_rng","_mathRNG","_nodeRNG","_whatwgRNG","_previousRoot","setupBrowser","_crypto","crypto","msCrypto","getRandomValues","_rnds8","Uint8Array","whatwgRNG","_rnds","warn","setupNode","_rb","webpackMissingModule","code","randomBytes","BufferClass","Buffer","_byteToHex","_hexToByte","substr","parse","ii","toLowerCase","oct","unparse","bth","_seedBytes","_nodeId","_clockseq","_lastMSecs","_lastNSecs","v1","clockseq","msecs","Date","getTime","nsecs","dt","tl","tmh","node","v4","rnds","rng","uuid","noConflict","./components/squid/dist/core/api.js","__esModule","$Api","_typeof","iterator","obj","$getLatestCorrelationID","_jquery","_jquery2","_interopRequireDefault","_logger","_event","_class","_util","_promise","_config","_error","_loader","default","$meta","headers","cookiesEnabled","$util","location","hostname","cache","standardHeaders","latestCorrelationID","correlationId","windowLoad","memoize","$promise","resolver","resolve","readyState","addEventListener","batchQueue","pre","transientCache","transientCacheResolvers","metaBuilder","preload","url","uri","resolvers","pop","preloadComplete","$logger","info","$Class","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","$BatchShortCircuit","reject","handleErrorResponse","assert","buildBatchRequest","results","debounce","batchIds","batchData","batchId","opts","dependencies","$batchApi","handleBatchResponse","promises","run","depsPresent","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","httpJQuery","getRes","getResponseHeader","success","responseJSON","noop","statusText","ajax","loggerName","resultModel","populate","fetchChildren","children","failSilently","$Contingency","errorData","handler","contingencies","validation","properties","reason","$Forbidden","relative","substring","component","ext","baseURI","urls","baseUrl","apiName","reopenClass","clearCache","registerMetaBuilder","builder","addHeader","angular","./components/squid/dist/core/class.js","EmptyConstructor","instance","_extend","isobject","transpose","recipient","ob","item","__name__","construct","reopen","__classmethods__","isChild","Cls","className","argsLength","startIndex","eval","_super","_get","path","def","_set","_keys","set","setProperties","./components/squid/dist/core/config.js","$cookies","cookies","config","./components/squid/dist/core/dom.js","$dom","elementReady","getElementById","loadScript","src","attributes","script","loadTimeout","clearScriptLoadTimeout","clearTimeout","onload","onreadystatechange","onerror","_iterator","_isArray","_i","_ref","next","done","attribute","body","appendChild","cssReady","styleSheets","stylesheet","href","./components/squid/dist/core/error.js","$FallbackError","$Error","monkeyPatch","file","line","col","payload","handle","handlers","product","entryPoint","./components/squid/dist/core/event.js","customEventEmitter","use","eventEmitter","_iterator2","_isArray2","_i2","_ref2","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","./components/squid/dist/core/index.js","_api","_integration","_model","_dom","./components/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","./components/squid/dist/core/loader.js","_firstLoad","loader","isLoading","./components/squid/dist/core/model.js","$Model","onPopulate","_cache","_modelCache","populated","invalidated","onInvalidate","fetchMock","retriever","save","serialize","reload","log","invalidate","child","_child","parent","_children","modelCache","retrieveInstance","fetch","bulkInvalidate","invalidationKey","modelInstance","instanceId","./components/squid/dist/core/promise.js","Promise","CustomPromise","sequential","methods","prom","sleep","items","all","hash","collection","condition","until","pollTime","alwaysResolve","handlerResult","./components/squid/dist/core/util.js","$unresolved","isUnsafeRedirect","$getRedirectUrl","$dispatch","$experiment","_base","base64","_interopRequireWildcard","_angular","newObj","redirected","paramCache","idleTimeout","redirect","frameBust","redir","onunload","onbeforeunload","flush","cookie","storageEnabled","setItem","removeItem","sessionStorageEnabled","localStorageEnabled","string","queryString","pair","decodeURIComponent","search","idx","rIdx","lastIndexOf","queryStringSplice","qs","insert","paramToQueryString","sort","encodeURIComponent","param","$param","hashParam","base64Decode","encodedString","base64Encode","decodedString","decodeAndParse","$assert","$map","array","$filter","deploy","isLocal","isStage","$log","findIndex","pad","$pad","char","padding","reduce","$reduce","intial","_len","_key","paramKeys","paypalURL","stage","host","override","methodName","existing","called","memoized","enablePerformance","parseInt","bindObject","bind","hashStr","str","chr","len","abs","popup","win","open","checkWindowClosed","closed","close","unique","mod","prop","_this","_arguments","camelToDasherize","g","camelToCapsUnderscore","toUpperCase","dasherizeToCamel","parentWindow","hasRTL","oAsString","getProperty","_options$splitOn","splitOn","defaultValue","pathArray","shift","catch","urlParams","dispatch","fallbackUrl","cmd","stateChange","fromState","toState","sample","throttle","group","pxp_exp_id","pxp_trtmnt_id","./components/squid/dist/index.js","_ng","_core","_locale","_paypal","./components/squid/dist/locale/currency.js","roundingAndSeparators","formatCurrency","ALL_NON_BREAKING_SPACE","CODE_IN_FRONT","ENDS_IN_WHITESPACE","THOUSANDS_SPLITTER","HUNDREDS_SPLITTER","STYLE_EXCEPTION","tr TR TRY","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","./components/squid/dist/locale/feature.js","$feature","$featureCountries","features","regions","region","DEFAULT","allCountries","countries","./components/squid/dist/locale/index.js","_currency","_feature","_name","_quantity","./components/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","PP_SPECIAL_COUNTRIES_ISO_CODES","C2","staticUrl","countryCode","change","_this2","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","./components/squid/dist/locale/name.js","formatNameInformal","SUBSTITUTED_FIELDS","givenName","surname","isLatin","layoutMetadata","nameInformal","layout","first_name","last_name","formattedName","namePart","_","./components/squid/dist/locale/quantity.js","formatQuantity","quantity","_ref$number","./components/squid/dist/module.js","./components/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","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","./components/squid/dist/ng/core.js","$broadcast","$q","./components/squid/dist/ng/directive.js","_angular2","definition","directiveName","./components/squid/dist/ng/events.js","_uiRouter","startLoadTime","currentState","currentStateName","$state","current","timing","connectEnd","navigationStart","newState","./components/squid/dist/ng/feature.js","enabled","feature","unlessFeature","./components/squid/dist/ng/index.js","_route","_component","_module","_events","_pxp","./components/squid/dist/ng/locale.js","__dirname","__filename","htmlContent","$watch","bindHtmlCompile","contents","format","amount_formatted","$sce","trustAsHtml","newValue","exportProviders","./components/squid/dist/ng/module.js","./components/squid/dist/ng/ng.js","$angularInvoke","$once","rootScope","autoCleanupEventHandlers","eventHandlers","eventCancelers","autoCleanedUpCancel","reference","canceler","eventHandler","./components/squid/dist/ng/pxp.js","pxpRes","trackingData","pxpData","./components/squid/dist/ng/route.js","$ComponentRoute","$Route","query","hasResolver","view","$location","go","routeName","isString","ChildRoute","childName","absolutePath","bootstrap","defaultState","middleware","injector","load","unfoundState","fromParams","register","$urlRouterProvider","otherwise","runMiddleware","targetState","targetParams","stateName","priority","_this3","constructTemplate","childAttributes","$stateProvider","state","childRoute","paramString","auth","assertActive","isState","getPageTitle","titleContent","changePageTitle","documentElement","fullStateTitle","stateTitle","title","./components/squid/dist/paypal/config.js","_env","$env","./components/squid/dist/paypal/env.js","isSandbox","./components/squid/dist/paypal/index.js","./components/squid/dist/paypal/pxp.js","$PXPModel","$getPxpTreatments","$pxp","$pxpMatch","$pxpFactors","logPxp","logPayload","exp_name","xe","xt","treatments","treatment","treatment_name","experiment","pagename","experiment_id","treatment_id","loc_country","loc_lang","forceApiCall","pxp","forceTreatments","cached","pxpResponse","factors","patterns","pxpFactors","./components/xo-address-components/src/add-address/directive.js","$xoAddAddressComponent","_squid","_template","_template2","address","isShipping","hideButtonHandler","hideCep","hideName","triggerZipCodeBlur","triggerZipCodeKeyPress","renderBillingAddCheckbox","$window","$PrefillAddressModel","sortStates","setMetadata","onCountryChange","getSortedStateList","attrPrefix","normalizeCountry","isAddPreferred","isAddressLookupEnabled","isShowLookupFields","states","statesList","sname","localeCompare","sortedStatesList","formatZip","unformatted","postal_code","formatted","x","getAddress","COMMA","SPACE","line1","line2","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","token","findAddress","lookupAddress","house_number","building_name","querySelector","classList","add","isLookupProcessing","INTERNAL_ERROR","changeAddressDropDown","selectedAddress","showFullAddress","stateNamesInGroup","retrieveStateNamesInGroup","groups","groupName","common","zipCodeBlur","zipCodeKeyPress","./components/xo-address-components/src/add-address/template.html","./components/xo-address-components/src/address-normalization/directive.js","squid","doneFn","sidebar","hideBackButton","$AddressNormalizationModel","$timeout","showNormalization","normalize","userEnteredAddress","addrFormat","addressSelected","transitionName","fromJson","toJson","streetNumber","servAddress","normalization_status","addressNormalization","centerLightBox","windowElement","lboxContainerElem","css","height","outerHeight","computedLeft","width","outerWidth","leftBound","left","elementLeft","trinityResponseCallback","resize","VALIDATION_ERROR","normalizedAddress","streetName","isEqual","preferred_address","desensitizedAddress","trim","address1","address2","addressOne","addressTwo","isLine2First","onBack","onContinue","addressNormalizationForm","$modelValue","isBack","./components/xo-address-components/src/address-normalization/route.js","fptiState","buzname","fullpage","pagename2","loginRequired","./components/xo-address-components/src/address-normalization/styles.less","./components/xo-beaver/dist/level.js","INFO","DEBUG","ERROR","WARN","ALERT","debug","alert","./components/xo-beaver/dist/logger.js","$http","$interval","$logLevel","$consoleLogLevel","logger","HERMES_DEV_COOKIE","level","settings","uniqueEvents","autoLog","WARNING","flushInterval","heartbeatInterval","sizeLimit","debounceInterval","hearbeatMaxThreshold","buffer","previousBeforeUnloadHandler","isDone","previousUnloadHandler","_flush","heartbeat","daemon","timestamp","perf","howBusy","lastSampledTime","lastLag","maxLag","dampendedLag","toFixed","noConsole","addPerformanceData","clientStartTime","isUndefined","client_elapsed","req_elapsed","addLocaleData","buildContext","site_cntry","pageID","print","enqueue","getTimestamp","logOffset","shouldPrintLogsToConsole","warning","immediate","when","debouncer_timeout","debouncer_resolver","debouncer_promise","build","req","logURL","json","XRequest","XMLHttpRequest","ActiveXObject","logAppName","setRequestHeader","send","timer","Logger","$Logger","beaconQueue","beacon","./components/xo-device-info/dist/index.js","standalone","DEVICE_PATTERN","TABLET_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","./components/xo-form-components/src/dob-input/directive.js","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","dateMask","Z","onComplete","dobTester","$parsers","DateManager","griffinDateEntry","_init_","dateEntry","getDateSeparator","getDateFormat","dateRegex","getDateRegex","getDateMask","getDobNumericCheck","griffinDateFormat","dateFormatComponents","dIdx","mIdx","formatComponentMap","getFormatComponentIdxMappings","setDobTextPlaceHolder","dobTextPlaceholder","dobTextKeyupHandler","updateDobBindings","ctx.COUNTRY","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","./components/xo-form-components/src/gender-type/directive.js","_index","./components/xo-form-components/src/gender-type/styles.less","./components/xo-form-components/src/gender-type/template.html","./components/xo-form-components/src/inventory-soldout/directive.js","continueShoppingHandler","$ReturnToMerchant","goTo","soldOutUrl","landing_page","int_error_code","int_error_description","item_name","./components/xo-form-components/src/inventory-soldout/route.js","$xoSoldOutPageRoute","_directive2","templateName","pageGoal","./components/xo-form-components/src/inventory-soldout/template.html","./components/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","./components/xo-form-components/src/name-input/directive.js","handleCountryChange","./components/xo-form-components/src/name-input/template.html","./components/xo-form-components/src/national-id-input/directive.js","cpfValidator","v2","dv1","dv2","j","nricFinValidator","idType","nationalIdModel","nationalId","validateSNILSChunk","sum","checksum","remainder","validateSNILS","Number","snilsNumber","multiplier","validateINNChecksum","factor","valueLength","sumn","validateINN","unshift","validateOMS","idValidator","secondaryType","secondaryIdType","passportMask","countryOfResidence","$CheckoutCartModel","$NationalIdModel","checkoutCart","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","./components/xo-form-components/src/phone/directive.js","$UserInfoModel","$CheckoutSessionModel","$AuthModel","showPhoneDisclosure","phoneConsent","consentContentKey","errorMessage","msgKeys","userInfo","phone","CONTENT_KEY","INVALID_PHONE_NUMBER","numberError","typeError","contentKey","msg","validationErrorHandler","logout","showNotYou","is_auth_api_call","onSubmit","consent","agreed","contentId","NEED_CREDIT_CARD","EXPIRED_CREDIT_CARD","./components/xo-form-components/src/phone/lib/territoriesByCode.js","AC","phoneCountryCode","showCountryCodeList","AD","AE","AF","AG","AI","AL","AM","AN","AO","AQ","AR","AS","AT","AU","AW","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","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","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","hideInOtherCountries","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW","./components/xo-form-components/src/phone/phoneInput/directive.js","showPhoneType","hideWork","exclude","hidePhoneType","getTreatment","./components/xo-form-components/src/phone/phoneInput/template.html","./components/xo-form-components/src/phone/phoneInputA/directive.js","countryPhoneCode","IntDialingCodes","defaultCountryPhoneCode","hideCountry","dropdownCountry","phoneType","IntDialingCountryCode","getPhoneMask","phoneEntry","defaultMask","masks","mobileMask","MOBILE","fixedLineMask","FIXED_LINE","getPhonePattern","defaultPattern","GENERAL","populatePhoneMetadata","copy","phoneTypeChanged","showWork","./components/xo-form-components/src/phone/phoneInputA/styles.less","./components/xo-form-components/src/phone/phoneInputB/directive.js","KEYS","ENTER","UP","DOWN","TAB","ESC","queryTimer","DEFAULT_PATTERN","DEFAULT_MASK","updatePhoneMaskAndPattern","applyMaskOnPhoneInput","getPhoneDialingCode","overrides","regionalOverrides","internationalDialingCode","updateDialingCodeAndCountry","phoneCountry","updatePhoneFieldMetadata","listVisible","collapseListAndFocusOnParent","getTerritoryDataFromMetadata","dialingCodeList","showDialingCodeContainer","expandList","show","collapseList","toggleList","highlightListItem","listItem","removeClass","selectListItem","searchForCountry","startsWith","updateAngularModel","ispreFill","telephone","handleListMouseover","handleKeyboardInputForDropdown","handleKeyboardInputForList","$listItems","$selected","$current","eq","last","prev","addressChangeEvent","./components/xo-form-components/src/phone/phoneInputB/styles.less","./components/xo-form-components/src/phone/phoneInputB/template.html","./components/xo-form-components/src/place-of-birth/directive.js","populateCountryList","guestBlockedCountries","placeOfBirth","countriesList","selectedPlaceOfBirth","placeofbirth","updatePlaceOfBirth","country_code","./components/xo-form-components/src/place-of-birth/template.html","./components/xo-form-components/src/select-shipping-country/directive.js","shippingAddress","disableChangeShippingCountry","getList","defaultCountryCode","countryList","isDefaultCountry","defaultCountry","./components/xo-form-components/src/select-shipping-country/template.html","./components/xo-form-components/src/travel-rule/directive.js","_index2","_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","./components/xo-form-components/src/travel-rule/styles.less","./components/xo-form-components/src/travel-rule/template.html","./components/xo-form-components/src/travel-rule/utilFunctions.js","./components/xo-form-components/src/zipcode/directive.js","reqiured","keyPressFn","postalCodeLabel","zipEntry","zipErrorKey","zipLabel","zipRequired","formatRegex","inputParams","formatPattern","formatZipWithDash","zipcode","changeZip","doneFunction","keyPressHandler","./components/xo-form-components/src/zipcode/template.html","./components/xo-guest-components/src/fraudnet/fn.js","$DeviceInfo","fncls","getFnCorrId","fnCorrId","fraudNetId","fnSessionId","sourceId","allowsCustomEvent","CustomEvent","fnUrl","fraudnetUrl","passive","injectScript","injectIframe","beaconOptions","iframe","dom","doc","where","role","frameElement","cssText","getElementsByTagName","parentNode","insertBefore","contentWindow","domain","_l","js","write","_injectConfig","configOptions","removeChild","_loadBeacon","fnLoaded","fnCallback","./components/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","./components/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","./components/xo-guest-components/src/guest-upgrade-interstitial/route.js","trackStateExit","pageQualifier","guest","./components/xo-guest-components/src/guest-upgrade-interstitial/template.html","./components/xo-guest-components/src/guest-upgrade/directive.js","_index4","_mapper","_mapper2","_fpti","_gdprCookieBanner","_helper","preloadedData","experiments","GDPRTermsAndMarketing","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","GDPRTermsAndMarketingTreatment","isGDPRCountry","signupLib","getIsGDPRCountry","getMarketingOptinIsChecked","marketingOptinContentKey","getMarketingOptinContentKey","getContentIdentifier","setTCPAFlags","tcpa_content","tcpa","content_identifier","contentIdentifier","experience_identifier","experienceIdentifier","guestUpgradeNewAppRedirect","redirectUrl","transactionId","getFormattedAddress","specialFields","getSpecialFieldsFor","hasDialingCodeOverride","marketing","card","receiptId","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","charCode","strokes","expiryDate","expDate","today","./components/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","proxSignupTitleTreatment","proxSinglePasswordTreatment","pageTitle","signup","eBayTitle","./components/xo-guest-components/src/guest-upgrade/occupation/directive.js","occupations","occupationList","./components/xo-guest-components/src/guest-upgrade/template.html","./components/xo-guest-components/src/guest/constants/constants.js","_submitButtonGuestTextKeyMap","commit","notCommit","_submitButtonSignupTextKeyMap","submitButtonTextKeyMap","ROW","pomaSignup","RTRAmount","./components/xo-guest-components/src/guest/constants/errorHandlerConstants.js","validationErrorMap","errorElementMap","loginRedirectUrl","hermesLoginRedirect","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","compileMessageWith","scrollToTop","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","./components/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","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","./components/xo-guest-components/src/guest/countryList/directive.js","showMask","checkoutInputData","$CheckoutInputDataModel","payee","$CheckoutPayeeModel","checkoutAppData","$CheckoutAppDataModel","proxSignUpFlow","isEbayTxn","merchantCountry","merchantComplianceRestricted","fallbackOnUnsupportedCountry","selectedCountry","isMerchantCountrySameAsSelectedCountry","countriesWithMultipleCodes","merchantCountryList","populateSupportedCountries","selectedCountryObj","proxSupportedCountries","defaultOption","blockNonDomesticPayer","disableCountryList","isWalletTokenization","resolvedCountry","showMessage","ariaDescribedBy","resolveLang","merchantLocale","supportedLocales","defaultLanguageException","defaultExceptionLang","defaultCountryLang","selectedLang","resolvedLang","./components/xo-guest-components/src/guest/countryList/template.html","./components/xo-guest-components/src/guest/currencyConversion/directive.js","_utils","_constants","constants","isPrePlan","dccPopupContent","isPrePlanVal","ppconversion","dccType","closeModal","complete","conversionType","planId","plan","postPlanUpdateConversionVendor","_payload","fundingOptions","conversionOptions","PAYPAL","VENDOR","activeEl","activeElement","modalOpen","showClose","continueButton","unformattedAmount","merchantCurrencyCode","merchantTotal","showLATAMDisclosure","localization","countryRegion","_ref$treatment_name","contentPxpTreatmentName","isEMEA3PLCountry","isNewContentExperience","dccTitle","dccContentUtils","getDccTitle","ppRateLabel","getPPRateLabel","dccPPRate","getDccPPRate","dccPPTotal","dccPPExchange","vendorRateLabel","getVendorRateLabel","dccVendorExchange","dccVendorTotal","getDccVendorTotal","isRTRAmount","conversion","paypalConversionTotal","_ref2$onboard","_ref2$onboard$card","currencyConvData","_conversion$payment_a","payment_amt","convertedTotal","currency_code","formattedFromStr","formattedToStr","truncateCurrencyConversionStr","from_amount","to_amount","isInvoicingFlow","isUSBuyer","merchant","showInvoicingRegEMsg","merchant_country","fullStr","amtStr","fixedPrecision","formattedStr","./components/xo-guest-components/src/guest/currencyConversion/route.js","./components/xo-guest-components/src/guest/currencyConversion/styles.less","./components/xo-guest-components/src/guest/currencyConversion/template.html","./components/xo-guest-components/src/guest/currencyConversion/utils.js","./components/xo-guest-components/src/guest/directive.js","_ul","_index5","_index6","_index7","_index8","_index9","_fiApis","_index10","_index11","_index12","_sticky","_util2","_errorHandlerHelper","errorHandlerHelper","_pageProps","$pageProps","_index13","isUnbranded","paymentMethod","singleStepModel","buttonParams","shippingRule","is_snt_supported","profileRulesSummary","$ShippingRuleSummaryModel","merchant_id","purchase","amounts","total","merchantPreferences","$MerchantPreferenceModel","sepaExperiment","isSepaOverlayRequired","fiMode","sepaOverlay","nonVisaDcc","shipToBilling","allowEditShipping","showSingleAddress","showShippingLabel","cupDetected","hideShippingAddress","allowPayWithSnT","allowSnTCall","instantUpdateShippingRegionSupported","showRedirectWarningPrompt","titleSubtitlePxpTreatment","sepa","sepaGuestAgree","sepaAgree","getSplitScreenFlags","page","currentRoute","transition","sectionElement","triggerPageDesignFPTILog","pageContext","design","getPresetPaymentMethod","getFundingSource","fundingSource","xprops","showFISwitchTab","getDefaultFIMode","presetPayMentMethod","allowRevisedEpmCallJson","allowRevisedEpmCall","allowSpb","$OnboardModel","$CardModel","bank","$BankModel","shipping_address","$ShippingAddressModel","shipping_address_validation","poma_flow","frs_optin_flow_applicable","wps_SnT_flow","isSnTEnabled","setAllowShipToBilling","allow","disallowShipToBilling","checkProcessorDecline","processorDeclined","checkLatinumRedirect","latinumRedirect","topErrorMessage","alternativeFunding","setChangeShippingCountryAlertMsg","countryName","infoMessage","shippingCountry","changeShippingCountryAlert","updateShippingAndBillingAddress","billingAddress","showGenericError","handlePrefillShippingAndBillingAddress","allowPrefillShippingAddress","prefilledAddress","prefilledBillingAddress","supplementary_data","supplementary","buyer_set_in_session","testParams","oas","cardCandidate","setBackButtonForWebview","signupClickedStartTime","showContactInfo","allowChoice","showSplitScreenExp","displayEmailInContactInfo","showingEmailInSignup","locale.x","country.x","formatAddress","storePickUpSelected","showErrorFields","toggleAddressFieldsValidation","hideErrorFields","useraction","billing_page_button_text","wpsFlow","is_wps_flow","showShippingAddress","hide_shipping_address","shipping_address_required","isInstantUpdateFlow","instantUpdateIntegration","trackSntReq","prefillEmailFromCookie","upopConfirmButtonTextKey","backButtonWebview","floatThrottle","landingAbTestCheck","abTestThrottle","prefilledNumber","telephone_country","normalized_phone_number","brand_name","merchant_name","merchant_email","block_non_domestic_shipping","allow_change_shipping","setec_shipping_country_code","handleCardTypeBasedInstallments","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","resolve_3ds_data","cc_id","flow_id","merchant_country_code","transaction_amount_currency","transaction_amount_value","launch3DSResolver","isDCCEligible","isGuest","hasCurrencyConversion","dccCountryEligibility","finalRoute","wpsInterstitialEligible","buyerMode","CC_LINKED","EXISTING_MEMBER","CC_LINKED_TO_FULL_ACCOUNT","authorize","wpsSubscriptionFlow","is_wps_subscription_flow","doEcOnApprove","doec_on_approve","redirectToSubscriptionFinalRoute","checkInventoryAndPay","setStickyFIAndAuthorize","setStickyInstrument","postCheckoutSessionOperations","dccComplete","launchCurrencyConversionLightbox","resolve_3ds","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","paymentStatus","cartHasInventory","inventoryModel","$InventoryModel","inventoryItems","getInventoryItems","purchaseItems","cartItems","inventoryPatchInput","item_list","merchantId","patchResponse","showSoldoutPage","soldoutpage","soldoutItems","soldoutUrl","patchCart","purchase_unit","patchCartPayload","patchEntities","shoppingCartModel","$ShoppingCartModel","payee_email","mapValidationErrors","property","handleFIContingencies","fundingInstrument","$fiErrorUtil","addPageErrors","scrollToElement","handleAddFIContingencies","tcpaIdentifier","onBoardAccount","skipInitiateAuth","tcpa_identifier","prox_flow","frs_optin_active_flow","_merchantPreferences","merchant_preferences","flow_eligibility_data","is_unbranded","locale_code","locale_country","$ul","optInToOneTouch","subject","placementId","$fireMORSBeacon","fireBeacon","clickURL","fundingId","launchUpopScreen","createXO","getPageError","BANK_LINKED_TO_FULL_ACCOUNT","EXISTING_ACCOUNT_RESTRICTED","TOO_MANY_REQUESTS","VALIDATE_BANK_CONTINGENCY","addFieldErrors","ADD_CARD_CONTINGENCY","ADD_BANK_CONTINGENCY","RISK_DISALLOWED","errorMsgs","errorHandler","positionToErrorField","addShippingAddress","recipient_name","fraudnet_id","risk_correlation_id","cc_login_account_number","email_login_account_number","conversionPayPalAndChangeable","isSignupWithNoConversion","conversionIsVendor","$FundingOptionsModel","$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","updateAddressOnSubmit","billingState","shippingState","billingCity","shippingCity","billingZip","shippingZip","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","submitButtonText","submitButtonTextKey","openAndContinueSepaOverlay","handleInvoicingRegE","currConvData","payerCountry","_currConvData$payment","amountInPayerCurrency","hasCurrConversion","_currency_code","amount_formatted_currency","amountInInvCurrency","setInvoicingRegEDetails","cardType","setInvoicingRegEDetailsWithConversion","toggleFIMode","goBack","editShippingAddress","logWebviewBackButtonClick","updatePageLevelErrorMessage","removeAttr","currentShippingAddress","hasAddressChanged","nationalIdFlag","password","isCupSecureCard","merchantPassedShipping","shipping_cnty","is_billing_present","is_shipping_present","addressNormalizationModel","_this4","errorFields","firstErrorField","ignoreValidationTheFirstTime","./components/xo-guest-components/src/guest/emailInput/directive.js","disabled","hideHelper","setEmailToolTip","emailToolTip","./components/xo-guest-components/src/guest/emailInput/styles.less","./components/xo-guest-components/src/guest/emailInput/template.html","./components/xo-guest-components/src/guest/lib/commonLib.js","SplitScreen","getSplitScreenExperience","ulPage","ulPageOptions","source_decisioning","isULSplitScreenExp","isAccountMatched","userChoseGuest","./components/xo-guest-components/src/guest/lib/errorHandlerHelper.js","addFieldError","_errorHandlerConstants","SECTION_ELEMENT","fieldName","notifications","logo","focusDiv","resolve3DS","cardLast4","modelPrefix","addFieldErrorsByName","errCode","validationPageError","errElMap","errorCode","details","./components/xo-guest-components/src/guest/lib/pageProps.js","constantsLib","_commonLib","buttonTextKey","getCommitOrContinueText","show_poma_ui","splitScreenExp","ssFlags","showSplitScreenFGAWarning","isSplitScreenUserChoseGuest","./components/xo-guest-components/src/guest/nationality/directive.js","bindLocalizedCountries","./components/xo-guest-components/src/guest/nationality/styles.less","./components/xo-guest-components/src/guest/nationality/template.html","./components/xo-guest-components/src/guest/onboardOptions/directive.js","_contentKeys","singlePagePaymentForm","flowEligibility","$FlowEligibilityModel","pomaExperiment","poma","populateFlags","_ref$merchant","flowFLags","isWpsFlow","isEcFlow","isInvoiceFlow","isWpsSubscription","isRP","showBAContent","flowName","pilotCountries","EMEA","optionalSignupContent","dccEligibility","freeReturnShippingExperiments","ecSignupWalletTokenization","tokenWalletization","wpsAutoreturnPdtEnabled","autoReturn","pdtEnabled","pageName","showBillingAgreementText","showRpAgreementText","contentKeys","showMarketingOffers","setUnbrandedContent","onboardTitleLine1","paypalSubTitle","guestSignup1","guestSignup2","contentOpts","cart","appData","baContentKey","getBAContentKey","rpContentKey","getRPContentKey","setDCCEligibilityFlag","_experiments$dccEligi","checkWPSInterstitialEligibility","autoReturnEnabled","setEcPomaFlag","_pomaExperiment$poma","_pomaExperiment$poma$","is_poma","showPomaUi","POMAContentType","setOptionalSignupPromotionContent","optionSignupContentPXP","checkMerchantApplicabilityForFRS","passedInVal","frsMerchantApplicabilityModel","$FreeReturnShippingApplicabilityModel","merchantApplicabilityRequest","frsApplicabilityResponse","eligibility_reason","applicable","FRS_APPLICABILITY_ERROR","checkFrsFlowApplicability","flowType","frsApplicableTreatments","isTreatmentApplicable","isFrsApplicable","isFlowApplicable","setFreeReturnShippingEligibilityFlags","frsExp","frsFlowApplicable","frsNonWpsInterstitalFlow","setSplitScreenGuestOnlyEligibility","setFlagsPostFlowEligibility","trackingModes","track_submit_transition","signupEnabled","showDisabledPasswordField","setBuyerModeFlags","accountCreationSectionErrorMessage","triggerTimerForSignupClicked","onCheckedSavedMyInfo","checked","scrollTo","./components/xo-guest-components/src/guest/onboardOptions/guest/directive.js","openSepa","./components/xo-guest-components/src/guest/onboardOptions/guest/template.html","./components/xo-guest-components/src/guest/onboardOptions/lib/helper.js","getMarketingOptinShowHide","GDPRpxpTreatment","getSignupTermsContentKey","_ref$country","./components/xo-guest-components/src/guest/onboardOptions/signup/directive.js","guestUpgrade","nationalityThrottle","nationalIdRequiredCountries","isGenderFieldEnabled","showNationalityField","showMarketingOptin","eConsentTermsContent","pxpTreatments","./components/xo-guest-components/src/guest/onboardOptions/signup/template.html","./components/xo-guest-components/src/guest/onboardOptions/template.html","./components/xo-guest-components/src/guest/passwordInput/directive.js","isDisabled","passwordToolTip","passwordMismatch","requirementLength","requirementNumberSymbol","setScopeProp","getScopeProp","enableSinglePassword","showRawPassword","showPasswordTextToggleLink","toggleShowRawPassword","$passwordEl","valLength","onPasswordFocusBlur","focused","passwordValLength","elem","ngModel","passwordInputScope","fourSequence","sequences","viewValue","lcViewVal","firstName","lastName","requirements","restrictions","cPass","confirmPassword","passwordVal","./components/xo-guest-components/src/guest/passwordInput/template.html","./components/xo-guest-components/src/guest/redirectingFromXoonWarning/directive.js","$ccField","hasClass","showPrompt","isRedirectConfirmationShown","redirectLogType","clearCookies","loginEmail","rmuc","triggerRedirect","closePopupModal","./components/xo-guest-components/src/guest/redirectingFromXoonWarning/styles.less","./components/xo-guest-components/src/guest/redirectingFromXoonWarning/template.html","./components/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","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","shipping","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","shipping_amount","formattedAmount","shippingCurrency","shippingDeliveryTime","delivery_time","displayShippingMethod","displayCurrency","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","option","is_default","default_method","is_selected","optionsSource","updateShippingTaxChargeWithDefaultOption","processShippingAndTaxResponse","shipping_region_supported","msgsArray","show_shipping_options","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","is_buy_now_flow","is_cart_upload_flow","cartDiscount","./components/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","click","$target","nodeName","removeProp","$setViewValue","$innerContainer","contains","wrap","after","innerText","./components/xo-guest-components/src/guest/select-shipping-method/styles.less","./components/xo-guest-components/src/guest/select-shipping-method/template.html","./components/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","./components/xo-guest-components/src/guest/sepa/template.html","./components/xo-guest-components/src/guest/sticky.js","selectedFuturePaymentInstrument","stickyInstrument","getSelectedStickyInstrument","instrument_id","./components/xo-guest-components/src/guest/template.html","./components/xo-guest-components/src/guest/travelRuleLightbox/directive.js","./components/xo-guest-components/src/guest/travelRuleLightbox/template.html","./components/xo-guest-components/src/guest/xoonHeader/constants.js","defaultSignupTitleContentKey","defaultGuestTitleContentKey","titleTreatmentKeyToContentKeyMapping","ebay","walletTokenization","signupSplitScreen","guestSplitScreen","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","defaultSignupTitlePropsContentKey","defaultGuestTitlePropsContentKey","titlePropsTreatmentKeyToContentKeyMapping","google","samsung","./components/xo-guest-components/src/guest/xoonHeader/directive.js","_lib","tokenizedWalletInfoModel","$TokenizedWalletInfoModel","showEmailCheckInfoBox","titleSubtitleContentExp","currentCountryName","emailCheckInfo","splitScreenFGAWarningMsg","compileWith","setTitleSubtitleContentAndFlags","getSubject","titleSubtitleContentExpTreatment","pageTitleFlowContextKey","getPageTitleContextKey","pageTitlePropsFlowContextKey","getPageTitlePropsContextKey","pageTitleContentKey","pageTitlePropsContentKey","setSplitScreenPXPFlags","setInitialFlags","redirectWarningPromptInit","./components/xo-guest-components/src/guest/xoonHeader/lib.js","WALLET_RESPONSE","./components/xo-guest-components/src/guest/xoonHeader/styles.less","./components/xo-guest-components/src/guest/xoonHeader/template.html","./components/xo-guest-components/src/lib/contentKeys.js","consentCode","isCIB","keySuffix","./components/xo-guest-components/src/lib/util.js","areAddressFieldsEqual","address1Field","address2Field","addressFields","ENTITY_ELEM","converter","textContent","protocol","stageUrl","subscriptionReturnUri","wpsSubscriptionReturnUrl","mfid","./components/xo-guest-components/src/login-button/directive.js","opinionlab","./components/xo-guest-components/src/multistep-signup/addCard/directive.js","util","multistepSignupModel","$invalid","parentCallbacks","backState","backendError","clearBackendError","normalizeAddress","prefillAddressCommon","cardNumberChangeHandler","cardTypeChangeHandler","eligibilityModel","backUri","componentsFlag","componentsMap","onCurrencyConversionDone","zipMasking","postalCode","maskingUtil","maskZip","checkShippingRulesExist","wps_flow","snt_supported_flow","shippingRulesSummary","merchant_has_snt_profile","ue_billing_address","installmentDisabled","merchantSuppliedAddress","merchantSuppliedNumber","basl_hermes_xoon_redirect","hermesXoonRedirect","basl_abtest_throttle","showLogin","changeCountry","shippingCountryChanged","ue_shipping_address","shippingAddressPage","./components/xo-guest-components/src/multistep-signup/addCard/route.js","back-uri","parent-model","is-pre-plan","done-fn","./components/xo-guest-components/src/multistep-signup/addShipping/directive.js","prefillDone","./components/xo-guest-components/src/multistep-signup/addShipping/route.js","./components/xo-guest-components/src/multistep-signup/addressNormalization/directive.js","./components/xo-guest-components/src/multistep-signup/addressNormalization/route.js","./components/xo-guest-components/src/multistep-signup/apiCalls/factory.js","$MultistepSignupModel","processFieldMap","errorCategory","fieldMap","contingencyMap","redirectTohermesCC","port","hermes","authorizeSession","is3ds","createSession","multiStepFunctions","multistepsignupaddcard","multistepsignupaddshipping","multistepsignupcreateaccount","ADD_KYC_FAILED","ISSUER_DECLINE","errors","compileVars","objKey","actualValue","handleContingency","./components/xo-guest-components/src/multistep-signup/createAccount/directive.js","$MultistepApiCalls","formatFiLast4","ccNum","formatFiName","ccType","tmp","fiName","fiFormatLast4","isCommit","brPxp","pxpExperiments","xo_br_hermesnode_createaccount_design","pgName","createAccountDesignExp","isNameCyrillic","regexCyrillic","validInput","validateLegalAge","legalAgreeToolTip","agree","showTooltip","addCard","addShipping","createAcc","./components/xo-guest-components/src/multistep-signup/createAccount/route.js","./components/xo-guest-components/src/multistep-signup/directive.js","normalizeCallback","lastPrefillCall","sanitizeZip","addrPrefilled","sortCountryList","scrollTop","history","back","modelErrors","pageErrors","toBeNormalizedAddress","flag","addressType","nameUtil","splitName","isInstallmentEligible","./components/xo-guest-components/src/multistep-signup/index.js","./components/xo-guest-components/src/multistep-signup/lib/util.js","fullName","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","./components/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","./components/xo-locale/dist/country.js","$AppDataModel","viaCountryPreference","viaLocaleTestUrlParam","desc","viaMerchantParam","viaUserProfile","viaCheckoutSession","merchant_locale","viaCheckoutBilling","viaCheckoutShipping","viaMerchantCountry","viaGuestAccountCountry","viaCountryCoBrand","viaLangCookie","viaBrowserPref","viaIP","ipcountry","viaDefault","./components/xo-locale/dist/helper.js","./components/xo-locale/dist/index.js","./components/xo-locale/dist/language.js","browserPrefCountries","viaLanguagePreference","viaMerchantLocale","lang_cookie","./components/xo-locale/dist/resolvers.js","service","$CountryResolvers","$LanguageResolvers","LocaleResolver","registerCountryResolver","registerLangResolver","resolvePromiseChain","validator","resolved","resolveCountry","resolveLanguage","setUserPreferredCountry","userPreferredCountry","setUserPreferredLanguage","userPreferredLanguage","preventContentLoad","./components/xo-login-components/src/unified-login/ul.js","_auth","fptiData","ulTimeOutValue","ulTimeoutPromise","logSubmit","fptiPayload","transInfix","error_type","error_source","failureHandler","startTimer","stopTimer","ulEventHandlers","oneTouchInterstitialOptInLoaded","oneTouchInterstitialOptInAttempted","oneTouchInterstitialOptInSuccess","refresh_token","oneTouchInterstitialOptInFailed","oneTouchInterstitialOptInNotAuthorized","postMessageHandler","eventId","loadOneTouchUpsell","ulTargetAttribute","margin","targetElement","queryParams","flowId","$CalDataModel","getCalCorrId","iframePathname","onPostMessage","origin","onboarding","unifiedLogin","inject","./components/xo-models/src/address/index.js","./components/xo-models/src/app/index.js","invalidateOnLogout","platform","isEligible","eligible","_brandNames","_disclaimerLinks","_msbDisclaimerLinks","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","./components/xo-models/src/auth/index.js","$ULoginModel","$AuthApi","loggedIn","logged_in","visitorId","visitor_id","accessToken","access_token","accessTokenPresent","access_token_present","refreshToken","rememberedOT","remembered","remembered_device_token","isSessionTimeout","isAuthApiCall","isConsumerApp","isUlReturnLoggedIn","auth_state","disallow_login_switch","logoutAndRedirect","redirectToLogin","ulClientRedirect","updatedQs","ulAsLandingUrl","pathname","./components/xo-models/src/auth/lib/xoAPayUtils.js","_jwtToken","_authenticated","createPaymentRequest","supportedInstruments","supportedMethods","minGooglePlayServicesVersion","paymentMethodTokenizationParameters","tokenizationType","parameters","gateway","label","PaymentRequest","updateCookie","isPaymentRequestAPISupported","currentVersionMatch","vendor","isAPayAPISupported","canMakeAPayPayment","paymentRequest","appPaymentRequest","canMakePayment","authenticateAPay","forceAuthenticate","param_type","paymentMethodToken","authJwt","getAPayAuthToken","setAPayCookie","tokenizedWalletCookieURL","op","clearAPayCookie","setOTAPayCookie","./components/xo-models/src/checkout/index.js","$CardBackupModel","$CheckoutPlanModel","$CheckoutShippingAddressesModel","$CreditOptionsModel","$CheckoutShippingAddressModel","serializeInstallmentsOptionsData","$FundingSourceModel","_processorDecline","isPurchase","getBaToken","isBillingPurchase","isBillingNoPurchase","getBillingDescription","description","isMultiSellerPurchase","purchaseUnits","isShippingMethodStorePickUp","incontext_integration","xchild","rest_integration","user_action","is_invoice_flow","formatLast4","isAuthRequired","eachPlan","plans","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","isPreferred","iachPlan","_iachPlan$primaryFs","_iachPlan$primaryFs$i","_isPreferred","_plan$primaryFs4","_plan$primaryFs4$isPr","getMsbByPlanId","incentive","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","hasConversion","resetIfDoesNotApply","reevaluateEligibility","getPlan","isAllowed","setPlan","forPlan","getCheckoutSessionPlan","allowCardBackup","getProcessorDeclineRetryEligibility","eligibility","validBackups","getKey","planKey","forKey","currentPlanKey","newPlan","cardBackup","futurePaymentInstruments","selectedInstrumentId","fi","getPlanList","isMultipleBalancePlan","matchingBalancePlans","getDisallowedInstruments","disallowedInstruments","getDisallowedPreferred","disallowedInstrument","isDisallowedInstrumentInPlanList","instrumentID","expiredInstruments","disallowedPreferred","declineReason","getShippingAddressMinimalDetails","./components/xo-models/src/fi/index.js","BILLING_ADDRESS_FORMAT",","," ","he","security_code","expiry_month","expiry_year","issue_number","start_month","start_year","cardNumber","isExisting","sponsor_id","preference","clearId","allowed","supportedNames","cardTypes","bank_account_number","bank_routing_number","iban_number","candidate_id","getUiChannel","uiChannel","preferred","langConfig","space","topup","direct","autoload_minimum_threshold","INSTRUMENT_MAP","AMSOUTH","BOFA","CAPITAL","CHASE","CITI","FIFTHTHIRD","HUNTINGTON","INGDIRECT","NATIONALCITY","PNC","REGIONS","SUNTRUST","TDWATERHOUSE","USAA","USBANK","VISA","WAMUTUAL","WELLSFARGO","INSTRUMENT_NAMES","getInstrumentNameNormalized","fsName","instName","./components/xo-models/src/fi/lib/fiApis.js","cvvData","cvv","./components/xo-models/src/frs/index.js","./components/xo-models/src/gdprCookieBanner/index.js","$GDPRCookieBannerModel","testGdprBannerCookie","getBanner","lastResult","lastCountry","lastLang","shown","hasBanner","./components/xo-models/src/inventory/index.js","setInvetoryItems","./components/xo-models/src/marketingoffer/index.js","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","targetPlacements","wallet_instruments","walletInstruments","addl_property_installments_not_allowed","installmentsNotAllowed","img","getMemberSegment","memberSegment","getCreditOffer","creditOffer","showCreditOffer","authModel","buyer_id","useCEPResponse","isNewMember","isExistingMember","isEligibleForExperimentation","eligibleMemberSegments","memberSegments","./components/xo-models/src/onboard/index.js","$SingleStepModel","onboardUserModel","occupation","gender_type","gendertype","place_of_birth","middle_name","country_prefix","./components/xo-models/src/processorDecline/index.js","_thirdPartyInfo","_checkout","INELIGIBLE","lastBuyerId","cardPlans","acc","duplicateCardPlans","numCardPlans","numNonCardPlans","isNotSale","isThirdParty","thirdPartyExperience","isThirdPartyExperience","isWpsOrInvoice","hasInstallments","involvedCurrencies","currencies","hasBuyerPromoEmail","ineligibilityCriteria","hasDisallowedCards","doesNotHave2Cards","hasSplitBalance","hasNonCardPlans","currencyConversion","ineligibleReasons","reasons","featureEligible","buyerId","sameBuyer","pxpIneligible","eligibleWithPxp","./components/xo-models/src/profilemanagement/index.js","rm","return_url","auto_return","pdt","returnUrl","returnMethod","returnMethodSupported","postPaymentData","charSet","charset","./components/xo-models/src/prox/index.js","./components/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","OVERNIGHT_FLAT_RATE_SHIPPING","PICKUP","PRIORITY","RUSH_DELIVERY","STANDARD_DOMESTIC","STANDARD_EXPEDITED","STANDARD_FLAT_RATE_SHIPPING","STANDARD_INTERNATIONAL","STANDARD_SHIPPING","STORE_PICKUP","TWO_DAY_SHIPPING","WORLDWIDE_SHIPPING","TWO_DAY_AIR","./components/xo-models/src/shoppingcart/index.js","./components/xo-models/src/subscription/index.js","$SubscriptionModel","$CreateBAModel","./components/xo-models/src/user/index.js","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","./components/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","./components/xo-page-components/src/cart/cartWrapper/directive.js","showAmt","showArrow","./components/xo-page-components/src/cart/directive.js","_showCartDecision","showCartTotal","renderCartContainer","loadCartData","emptyCart","cartDesc","note","hasItems","showCartDetails","hide_cart_details","notMultiSellerPurchase","wpsSubscription","addDetails","price","item_option_selections","hasSelections","sku","hasDetails","hasMore","amountHeaders","userAction","noLineItemDetails","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","./components/xo-page-components/src/cart/itemDetails/directive.js","onClickLess","./components/xo-page-components/src/cart/lib/decode_entities.js","decodeEntitiesAngularFilter","./components/xo-page-components/src/cart/lib/pxp.js","showAmtBlacklistTreatment","showAmtTreatment","ctx.merchantID","showAmtBlacklist","./components/xo-page-components/src/cart/lib/showCartDecision.js","isWpsSubscriptionFlow","$pxpCartAmt","showAmount","./components/xo-page-components/src/cart/lib/ui.js","_decode_entities","_decode_entities2","$filterProvider","getVisibleWidth","elemRect","getBoundingClientRect","right","getNaturalWidth","old","overflow","getStyle","getComputedStyle","currentStyle","hasEllipsis","overflowHidden","textOverflowEllipsis","whiteSpaceNowrap","invokeSubscriber","$parse","onEllipsis","resizeContainer","parentHeight","siblings","getOuterHeights","siblingsHeight","spaceAvailable","dynamicMaxheight","./components/xo-page-components/src/cart/subscription/directive.js","_subscriptionTerms","_subscriptionTerms2","subscriptionData","itemName","getItemName","itemOptions","getItemOptions","getFirstAmount","getFormattedFirstAmount","getTermsText","./components/xo-page-components/src/cart/subscription/styles.less","./components/xo-page-components/src/cart/subscription/template.html","./components/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","PRECHECKED_COUNTRIES","PXP_MESSENGER_EXPT","PXP_SHOW_MESSENGER_PLUGIN_TREATMENT","PXP_MESSENGER_IN","PXP_MESSENGER_PLUGIN_TREATMENT_IN","./components/xo-page-components/src/done/directive.js","_fbMessenger","_fbMessenger2","_profilemanagement","AUTORETURN_TIMEOUT","WHITELISTED_ROUTES","$stateParams","isGuestSignup","addPageMessage","CONTENT_KEY_MAPPING","NO_UPGRADE","isThirdPartyFlow","merchantPreferenceModel","isAutoReturn","autoreturn_url","autoReturnContentKey","guestSignupKey","itemList","itemsList","pxpContext","getMessengerPXPContext","_$scope$checkoutSessi","_results$","_results$2","in_treatment_name","buyer_country","pxpMessengerIntegrationEnabled","expansion","maxHeight","getElementsByClassName","scrollHeight","autoReturnStatementClick","returnToMerchant","onExitListeners","removeClassListener","newParams","oldState","preventBackListener","./components/xo-page-components/src/done/route.js","./components/xo-page-components/src/done/template.html","./components/xo-page-components/src/footer/directive.js","footerMap","escapeHatchIncontext","languageSwitch","showVenmoLegalLinks","showEscapeHatch","getRegion","isDESecondButtonFlow","is_second_button_txn","footerLinks","APAC","showPolicyInfo","cancelRedirect","cancelUri","redirectUri","opType","return_uri","isIndiaLegalEntity","legalEntity","hcl","hideCancelLinkForMerchant","shouldHide","hideCancel","cancel_url","cancelShowModal","popupUrl","showOL","opVars","rlogId","csci","calc","custId","languageCode","showFeedback","hideReturnCancelUrl","showVenmoLinks","showPaypalLinks","./components/xo-page-components/src/footer/footerMap.js","EM","LATAM","DESecondButton","venmoContent","./components/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","./components/xo-page-components/src/gdprCookieBanner/directive.js","$gdprCookieBannerComponent","refreshGDPR","gdprModel","banner","cleanup","div","bindGdprEvents","empty","./components/xo-page-components/src/gdprCookieBanner/styles.less","./components/xo-page-components/src/gdprCookieBanner/template.html","./components/xo-page-components/src/header/directive.js","unbrandedTitle","unbrandedSubTitle","redirectiframe","redirectLightbox","isVenmoFlow","$SetHeaderText","isMessengerBAIntegration","subscribe","headerText","setText","getText","./components/xo-page-components/src/header/styles.less","./components/xo-page-components/src/marketingOffers/directive.js","placementCode","titleTxtProperty","subtitleProperty","backgroundImage","xoTitleTag","xoTitleClass","$MarketingOfferModel","morsOfferFlag","populateObj","setDefaultValues","ad","Title","Body","imageUrl","propImg","isRetina","matchMedia","matches","background-image","margin-top","presentation_types","pxpInfo","marketingOfferData","placement_code","ads_arr","ads","adFound","adunit_id","campaign","nvp","tracking","impression_url","click_url","impressionUrl","clickUrl","./components/xo-page-components/src/merchant-header/directive.js","MAX_WIDTH","MAX_HEIGHT","ratio","./components/xo-page-components/src/merchant-header/template.html","./components/xo-page-components/src/returnParams/index.js","addValidParam","returnWPSParams","returnToMerchantMethod","customData","postbackData","transactionDetail","itemDetail","$returnParams","./components/xo-page-components/src/route-to-complete/directive.js","urlType","enableSuccessReturnUrl","enableCancelReturnUrl","goToMerchant","./components/xo-page-components/src/route-to-complete/route.js","./components/xo-page-components/src/route-to-complete/styles.less","./components/xo-page-components/src/subscription-terms/index.js","getCurrencyCode","getEffectiveDate","./components/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","regularAmount","firstTrialAmount","eachTerm","cycles","eachMappedTerm","frequency","frequency_interval","firstAmount","subscriptionDetails","termTextList","itemDetails","effective_date","./components/xo-page-components/src/utils/index.js","overrideMobileUserFlag","channelVal","ctx.CHANNEL","ctx.LANGUAGE","./components/xo-page-components/src/value-props/directive.js","$observe","background-size","./components/xo-return-to-merchant/dist/formatReturnContent.js","formatReturnContent","MAX_MERCHANT_NAME_LENGTH","merchantName","./components/xo-return-to-merchant/dist/index.js","_formatReturnContent","./components/xo-return-to-merchant/dist/util.js","postTo","forceRedirect","paymentToken","orderID","billingToken","paymentID","payment_id","onCancel","isHTTPUrl","showPaymentSuccess","isVZeroIframe","partnerIntegration","redirectImmediateParent","operation","updateParent","userStatus","postMessage","bridge","frames","PayPalBridge","returnToParent","./components/xo-third-party-components/src/thirdParty-info/index.js","venmoExperience","thirdPartyInfo","_sessionStorage","_sessionStorage2","PWV_COOKIE","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","VENMO","BAIDU","THIRD_PARTY_NAMESPSACE","setAsVenmoExperience","_JSON$stringify","setAsBaiduExperience","_JSON$stringify2","availableExperiences","currentExperience","getExperience","resetThirdPartyExperience","./components/xo-third-party-components/src/thirdParty-info/sessionStorage.js","getSessionStorage","./components/xo-title/dist/directive.js","titleTxt","tagName","newEl","./components/xo-tracking/dist/builder.js","$FptiConstants","$FptiDataModel","resolvePageQualifier","_dataObj","decorate","productOverride","getUUID","transition_time","cust","dc","az","comp","getDataObject","isInContext","dataAry","k","./components/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","./components/xo-tracking/dist/directive.js","trackSubmit","elementId","elementName","errorKey","errorText","elementModel","trackLink","trackClick","trackInput","./components/xo-tracking/dist/fpti.js","$FptiBuilder","fptiBeaconUrl","getPageTrackingData","routeParent","merge","analytics","setup","pta","stringifyErrorMessage","cause","./components/xo-tracking/dist/index.js","./components/xo-tracking/dist/listener.js","$fptiError","$ButtonTrackingService","appName","addTrackingData","cplSettings","enableCPL","passesCplThrottle","cplEnabled","forceEnableCPL","logTransition","suppressTransitionLog","logStateExit","getBeaconUrl","fptiCustomRecordClick","analyticsInstance","fptiDataObj","Analytics","setRequestData","recordClick","route_name","fptiTransition","fptiFieldErrors","form_field_errors","toParams","generateMetaIds","fpti_landing_page","getHash","oldHash","oldURL","newURL","fptiserverurl","firstInvocation","trackPageStart","startCPLTracking","firstDone","trackDone","beaconData","endCPLTracking","pageData","inferStart","buildParams","fptiProductOverride","legacyFptiData","pgrp","flid","./components/xo-tracking/dist/model.js","constant","buznameMap","placeHolder","fptiKey","flowgatename","flowname","hier1","inout","fptiKeys","businessType","countryOfPage","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","pxptrackingdata","qt","qc","trackInfo","tracking_tags","decorator","uuid_v4_mask","uuid_v1_mask","_generateCorrelationId","uidRandomArr","uidTime","_generateUUID","CalModel","_calCorrId","_uuid","generateCalCorrId","generateUUID","./components/xo-tray-height/dist/directive.js","topClass","topSelector","topElem","inScope","useNewFlow","calculate","curElem","position","deprecatedCalculate","headerHeight","mainHeight","trayMinheight","asideContentHeight","$aside","$asideContent","minHeight","./components/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","selectOption","locateAndFocus","$elementToFocus","directiveElementFocusable","focusable","focusElement","filterAll","focusRefreshOn","focusWhen","FOCUS_EVENT_NAME","startState","focusWhenState","endState","transitionsTo","transitionMessage","unregisterEventFn","focusSelector","$allFocusable","setFocusable","./components/xo-ui-components/src/accessibility/ui.js","visible","expr","filters","addBack","isTabIndexNotNaN","mapName","tabIndex","isTabIndexNaN","filterFn","container","./components/xo-ui-components/src/banner/directive.js","isNmj","userPhoto","photoData","$UserPhotoModel","min_size","avatarElement","showInitials","photo_url","initials","./components/xo-ui-components/src/banner/styles.less","./components/xo-ui-components/src/banner/template.html","./components/xo-ui-components/src/directionality/directive.js","currentWatchDeregister","listenForInputRendered","checkDOMNodeInserted","unbind","setDirectionality","toggleClass","$document","getAttribute","jqueryOnKeyupHandler","resetDirectionalityListener","directionalityText","./components/xo-ui-components/src/directionality/styles.less","./components/xo-ui-components/src/dropdown-multiline/directive.js","blur","$newTarget","explicitOriginalTarget","./components/xo-ui-components/src/dropdown/directive.js","dropdown","isWinOS","dropdownTextBindVar","$parentScope","selectInitialValue","ngChange","executeSelectChange","ngOptions","selectTextElement","toggleOptionsLTROverride","./components/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","./components/xo-ui-components/src/escape-hatch/closeFrame/directive.js","closeFrame","iFrameFlow","findWindowAndRedirect","./components/xo-ui-components/src/escape-hatch/escapeHatch/directive.js","./components/xo-ui-components/src/floating-label/directive.js","treatmentType","newLocale","oldLocale","showFloatingLabels","flSpan","./components/xo-ui-components/src/floating-label/styles.less","./components/xo-ui-components/src/generic-error/directive.js","_app","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_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","getContent","getCancelLabel","personalizedBanner","showLogoutLink","formattedNameInformal","./components/xo-ui-components/src/generic-error/styles.less","./components/xo-ui-components/src/generic-error/template.html","./components/xo-ui-components/src/generic-message/directive.js","titleKeyMapping","PAYMENT_SUCCESS","contentKeyMapping","./components/xo-ui-components/src/message/directive.js","isgreyheader","toggleAlert","$alert","detach","$watchCollection","./components/xo-ui-components/src/modal/directive.js","showCloseButton","enableCloseOnEscape","onClose","overrideDefaultContainer","escapeKeyHandler","hideModal","./components/xo-ui-components/src/modal/template.html","./components/xo-ui-components/src/prefix-attrs-with/directive.js","prefixAttrsWith","attrName","base","./components/xo-ui-components/src/spinner-button/directive.js","onClick","buttonText","isProcessing","./components/xo-ui-components/src/spinner/directive.js","$body","$priorActiveElement","$capturedElement","$header","$slidingArea","$footer","hidePageContentFromScreenReader","_event$target","targetId","captureFocus","setLoadingMessage","subHeading","showSpinner","loading","hideSpinner","cancelStartLoad","cancelAllLoaded","cancelSetLoadingMessage","./components/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","./components/xo-ui-components/src/tooltip/template.html","./components/xo-ui-components/src/ui-utils/directive.js","ACCEPT_DISABLED","toggleDisabled","disable","checkIfDisabled","./components/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","startDate","valueOptions","setStartDateValidity","setExpiryValidity","expiryValidity","startDateValidity","startmonth","startyear","dobField","dobDayCC","dobMonthCC","dobYearCC","setDOBValidity","dobEnabledCards","dobValidity","$dayEl","validName","isChecked","validRUPassport","customValidator","ruleJson","$formatters","./components/xo-wallet-components/src/3ds/directive.js","onComplete3dsHandler","$Resolve3DS","termUrl","timeout3DSConfig","timeout3DS","lightBoxTimeout","show3DSLightBox","show3DS","lightbox","handleInitFailure","payment_experience","3d_secure_authentication_supported","init3DSApi","acsUrl","acsMethod","acsPaReq","complete3DSApi","paRes","third_party_response","close3DSFrame","lightboxMask","complete3DS","complete3DSFrame","on3DSPageLoad","ev","./components/xo-wallet-components/src/add-bank/bank-input/directive.js","IBANMask","setShowIBAN","days","months","years","toggleIBAN","./components/xo-wallet-components/src/add-card/addCep/directive.js","./components/xo-wallet-components/src/add-card/addCep/route.js","./components/xo-wallet-components/src/add-card/addbilling/directive.js","showmeftsection","hideparenthead","billingaddressupdated","$BillingAddressesModel","isUserInputtedAddress","handleValidation","prefilled","billingAddresses","updateAddress","showAddressFields","full_address","updateBillingAddressAndReturn","newBillingAddress","./components/xo-wallet-components/src/add-card/addbilling/route.js","./components/xo-wallet-components/src/add-card/addcard/directive.js","_cardMetaData","pagetitle","cardmodel","selectedPromotionCardType","promotion","pageLevel","manageCardFlow","onSuccess","$CardTypesModel","$ResolveOTP","plccOffer","showplcc","gotoBilling","showCep","isCUP","$CardMetaData","getMetaData","contentString","cardTypeChanged","addErrorMessage","handleContingencies","contentBundle","defaultErrorKey","initiateOTP","resolveOTP","INIT_OTP_CONTINGENCY","isNewCard","cardAdded","numberAdded","cardTypeAdded","last4Added","last4ToUse","cardTypeToUse","updateCardSidebarMessage","updateCardPageMessage","addCardMessage","DISALLOWED_CUPSECURE_ADDITION","./components/xo-wallet-components/src/add-card/addcard/route.js","_route2","on-success","./components/xo-wallet-components/src/add-card/cardExpiry/directive.js","$xoCardExpiryDirective","expiryMonth","expiryYear","showNumericKeypad","expiryFormat","expiryMask","keyType","./components/xo-wallet-components/src/add-card/cardExpiry/template.html","./components/xo-wallet-components/src/add-card/cardMetaData/index.js","CARD_META_DATA","expiry","issue","spaces","PLCC","MAESTRO","SWITCH","DINERSCLUB","DISCOVER","MASTERCARD","AMEX","subTypes","QIWI","JCB","CBNATIONALE","CETELEM","COFIDIS","COFINOGA","ELO","HIPER","HIPERCARD","CUPCREDIT","CUPAMEXCREDIT","CUPDEBIT","CUPAMEXDEBIT","getTypeByPattern","cardMetaData","types","metaData","dualType","productType","getCardType","./components/xo-wallet-components/src/add-card/creditcard-input/directive.js","$CardTypeFromBinModel","CARD_TYPE_VISA","isUnsupportedCard","lastVerifiedBin","lastRequestedBin","updateNonVisaCurrencyConversion","nonVisaDCCFlag","checkCardForDccCall","setConversionData","getCurrencyConversion","conversionErrorHandler","currencyConvCardTypeChangeHandler","cartCurrency","billingCurrency","isCardLenValid","cardLengthValid","isCardTypeValid","isCurrencyConversionUncalled","mxDebitCards","cardLuhnValid","numdigits","parity","isPlcc","showMXCardLogos","pxpMXCardLabels","showLabels","debitCardFlow","paymentCardProductClass","cardTypeServiceCall","cardProductValid","forceDropDown","supportedCardNamesCommaSeparated","changeCardNumber","cvvShown","expiryShown","showDropDown","showAcceptedCardLogos","getCardTypeByNumber","formatCardNumber","ccOnBlur","selectCardTypeForDualBrands","dualCardTypes","selected","selectCardType","clearCardType","getCardTypeByNumberServiceCall","bin","user_country","logObj","totalItems","brands","brandObj","disallowedCard","allowedCardsTooltip","isUpop","ccNumber","GET_FI_ISSUER_DETAILS_ERR","isNonVisaCurrencyConversionEnabled","isPPConversion","isVendorConversion","showCardIssuerRateAvailable","getAllowedCardTypeByNumber","getDisallowedCardTypeByNumber","disallowed","enableAddMode","changeType","isCardTypeChanged","is_fullwidth_character","formattedNumber","ccField","inputLength","cursorStart","selectionEnd","startYears","./components/xo-wallet-components/src/add-card/cvv/directive.js","$xoCvvDirective","showLabel","maskCVV","cvvLength","cvvRequired","./components/xo-wallet-components/src/add-card/cvv/template.html","./components/xo-wallet-components/src/add-card/directive.js","fundingid","$AddCardModel","addCCDone","cardTypeSelected","cepDone","hide_type","resolution","funding","lastDigits","./components/xo-wallet-components/src/add-card/dob/directive.js","./components/xo-wallet-components/src/add-card/dob/template.html","./components/xo-wallet-components/src/add-card/index.js","./components/xo-wallet-components/src/add-card/route.js","isupdatecard","parent-callbacks","selected-promotion-card-type","page-level","prefill-address","./components/xo-wallet-components/src/add-card/selectcard/directive.js","./components/xo-wallet-components/src/add-card/selectcard/route.js","./components/xo-wallet-components/src/confirm-upop/confirm/directive.js","VERIFICATION_CODE_COUNTDOWN_IN_SECS","RESEND_CODE_LINK_TIMEOUT_MILLI_SECS","ONE_MINUTE_IN_SECS","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","./components/xo-wallet-components/src/confirm-upop/confirm/template.html","./components/xo-wallet-components/src/confirm-upop/directive.js","_addCard","onInitError","initSuccess","showCollectOtpScreen","fromLoginOverlay","_success","confirmed","setMessage","setInitErrorData","./components/xo-wallet-components/src/confirm-upop/init/directive.js","setErrorData","initOtp","showInitScreen","./components/xo-wallet-components/src/confirm-upop/init/template.html","./components/xo-wallet-components/src/confirm-upop/route.js","pageOnOverlay","./components/xo-wallet-components/src/confirm-upop/styles.less","./components/xo-wallet-components/src/confirm-upop/template.html","./components/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","./components/xo-wallet-components/src/fi-contingency-list/util.js","defaultKey","./components/xo-wallet-components/src/installment-options/directive.js","installmentsModel","onSelect","term","payment_value","monthly_payment","payment_currency","total_cost","total_cost_value","total_cost_currency","discount_amount","discount_value","discount_currency","discount_percentage","./components/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","./components/xo-wallet-components/src/pay-upon-invoice/template.html","./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","errMsg","errObj","constructEventName","fromStateFormatted","toStateFormatted","stateChangeError","windowError","debounceFactor","./js/lib/fallback.js","goToUrl","xoAppData","determineUrlForUxFallback","checkoutAppDataModel","ppp_msg","goToGenericError","payeeModel","_$config$fallbackWhit","fallbackWhitelist","_$config$fallbackWhit2","exceptions","_$config$fallbackWhit3","whitelist","entry_point","resizeTo","availWidth","availHeight","fallbackToUx","fallbackAriesUnsupportedToUx","fallbackEnabled","fallbacksDisabled","fallbackNotWhitelisted","showRetryLink","RETRY_KEY","RETRY_PAGE_LIMIT","timesSeen","destination","enable_refresh_prompt","landing","incontext","nolegacy","_checkoutAppData$flag","hosted_button_id","invoice_id","uxUrl","fallback_action","pxpErr","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","root","resolveLocale","ipCountry","localeTestUrlParam","checkoutBillingCountry","checkoutShippingCountry","checkoutSessionLocale","countryParam","localeParam","guestAccountData","MAYFLY_ERROR","checkFlowType","wpsPattern","isEbay","isWPS","clientSideLogout","checkTransactionEligibility","transactionEligibility","$TransactionEligibilityModel","checkAPayBASLRedirect","apayEnabled","$xoAPayUtils","xcomponent","merchantID","updateMerchantData","$CheckoutClientDataModel","clientData","identityData","logo_url","checkJavaScriptInjection","cart_id","verifyRedirectURI","isValidUri","proxFallbackManager","guestFallback","handleTagManager","dataLayer","contentCountry","contentLanguage","tagManagerUrl","scriptTag","createTagManagerScript","defer","insertScript","async","tagManagerObjec","q","l","scriptElement","firstScript","setupMiniBrowser","$MiniBrowser","initialize","logStart","is_directintegration","isDirectIntegration","is_incontext","isMiniBrowser","isFrame","checkWpsSubscriptionEligibility","./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","./pages/xo-checkout/route.js","is-unbranded","payment-method","./pages/xo-end/directive.js","_returnParams","dependentModels","wpsURL","wpsData","onAuth","isWPSCart","PayerID","billingData","legacy_billing_integration","handleRedirection","isMobileDevice","xparams","payerID","onAuthorize","finishProxFlow","proxStsClientId","response_type","skip_oauth","skip_consent","target_client_id","scope_consent_context","loginCodeResult","lippParamList","metadata_id","lippUrl","lippRedirectUrl","$ContextualLoginModel","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/route.js","$LandingRoute","checkoutPayeeModel","landingFlow","getProcessedRoute","appRoute","isForcedSignup","forced_signup_offered","callEPM","passedInExp","isUnbrandedAllowed","isPuiAllowed","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,6CACA,SAAUC,QAAQC,SAASC;QCHjCA,oBAAA;QACAF,OAAAC,UAAAC,oBAAA,4CAAAC,MAAAC;;IDUMC,4CACA,SAAUL,QAAQC,SAASC;QEZjCA,oBAAA;QACAF,OAAAC,UAAAC,oBAAA,4CAAAC,MAAAG;;IFmBMC,gDACA,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BAEA94B,IAAA;gBACA84B,SAAA;;gBAEA94B,IAAA;gBACA84B,SAAA;;YAEAo2G;gBACAlvI,IAAA;gBACA84B,SAAA;;gBAEA94B,IAAA;gBACA84B,SAAA;;gBAEA94B,IAAA;gBACA84B,SAAA;;YAEAq2G;gBACAnvI,IAAA;gBACA84B,SAAA;;gBAEA94B,IAAA;gBACA84B,SAAA;;gBAEA94B,IAAA;gBACA84B,SAAA;;YAGAkxB;gBACAhqD,IAAA;gBACA84B,SAAA;;gBAEA94B,IAAA;gBACA84B,SAAA;;YAEAixB;gBACA/pD,IAAA;gBACA84B,SAAA;;gBAEA94B,IAAA;gBACA84B,SAAA;;gBAEA94B,IAAA;gBACA84B,SAAA;;YAEA+yB;gBACA7rD,IAAA;gBACA84B,SAAA;;gBAEA94B,IAAA;gBACA84B,SAAA;;gBAEA94B,IAAA;gBACA84B,SAAA;;YAEA+zB;gBACA7sD,IAAA;gBACA84B,SAAA;;gBAEA94B,IAAA;gBACA84B,SAAA;;YAEAy8B;gBACAv1D,IAAA;gBACA84B,SAAA;;gBAEA94B,IAAA;gBACA84B,SAAA;;YAEAu7B;gBACAr0D,IAAA;gBACA84B,SAAA;;gBAEA94B,IAAA;gBACA84B,SAAA;;YAEA26B;gBACAzzD,IAAA;gBACA84B,SAAA;;gBAEA94B,IAAA;gBACA84B,SAAA;;YAEAq+B;gBACAn3D,IAAA;gBACA84B,SAAA;;gBAEA94B,IAAA;gBACA84B,SAAA;;YAEAmyB;gBACAjrD,IAAA;gBACA84B,SAAA;;gBAEA94B,IAAA;gBACA84B,SAAA;;gBAEA94B,IAAA;gBACA84B,SAAA;;YAEAi6B;gBACA/yD,IAAA;gBACA84B,SAAA;;gBAEA94B,IAAA;gBACA84B,SAAA;;gBAEA94B,IAAA;gBACA84B,SAAA;;YAEAm8B;gBACAj1D,IAAA;gBACA84B,SAAA;;gBAEA94B,IAAA;gBACA84B,SAAA;;YAGAs2G;gBACApvI,IAAA;gBACA84B,SAAA;;gBAEA94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gBAAA;gCACAC,eAAA;gCACAC,WAAA;;;;;cAKC9/G,MAAApF,SAAAmU,+BAAAC,kCAAA5S,cAAAzB,OAAAC,UAAAoU;WrZ8l2C4B5P,KAAKxE,SAASC,oBAAoB,6CAA6CF,SAAS,mBAAmB;;IAIlI6d,GACA,SAAU7d,QAAQC,SAASC;QAEjCA,oBAAoB;QACpBF,OAAOC,UAAUC,oBAAoB;;KAKlC","file":"js/main.js","sourcesContent":["webpackJsonp([0],{\n\n/***/ \"../node_modules/core-js/fn/array/every.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n__webpack_require__(\"../node_modules/core-js/modules/es6.array.every.js\");\nmodule.exports = __webpack_require__(\"../node_modules/core-js/modules/_core.js\").Array.every;\n\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/fn/array/find.js\":\n/***/ (function(module, exports, __webpack_require__) {\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\n/***/ \"../node_modules/core-js/fn/array/includes.js\":\n/***/ (function(module, exports, __webpack_require__) {\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\n/***/ \"../node_modules/core-js/fn/array/some.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n__webpack_require__(\"../node_modules/core-js/modules/es6.array.some.js\");\nmodule.exports = __webpack_require__(\"../node_modules/core-js/modules/_core.js\").Array.some;\n\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/fn/object/entries.js\":\n/***/ (function(module, exports, __webpack_require__) {\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\n/***/ \"../node_modules/core-js/fn/object/values.js\":\n/***/ (function(module, exports, __webpack_require__) {\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\n/***/ \"../node_modules/core-js/fn/string/includes.js\":\n/***/ (function(module, exports, __webpack_require__) {\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\n/***/ \"../node_modules/core-js/modules/_a-function.js\":\n/***/ (function(module, exports) {\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\n/***/ \"../node_modules/core-js/modules/_add-to-unscopables.js\":\n/***/ (function(module, exports, __webpack_require__) {\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\n/***/ \"../node_modules/core-js/modules/_an-object.js\":\n/***/ (function(module, exports, __webpack_require__) {\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\n/***/ \"../node_modules/core-js/modules/_array-includes.js\":\n/***/ (function(module, exports, __webpack_require__) {\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++) if (IS_INCLUDES || index in O) {\n if (O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_array-methods.js\":\n/***/ (function(module, exports, __webpack_require__) {\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++) 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: return true; // some\n case 5: return val; // find\n case 6: return index; // findIndex\n case 2: 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\n/***/ \"../node_modules/core-js/modules/_array-species-constructor.js\":\n/***/ (function(module, exports, __webpack_require__) {\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\n/***/ \"../node_modules/core-js/modules/_array-species-create.js\":\n/***/ (function(module, exports, __webpack_require__) {\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\n/***/ \"../node_modules/core-js/modules/_cof.js\":\n/***/ (function(module, exports) {\n\nvar toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_core.js\":\n/***/ (function(module, exports) {\n\nvar core = module.exports = { version: '2.5.7' };\nif (typeof __e == 'number') __e = core; // eslint-disable-line no-undef\n\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_ctx.js\":\n/***/ (function(module, exports, __webpack_require__) {\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: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: 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\n/***/ \"../node_modules/core-js/modules/_defined.js\":\n/***/ (function(module, exports) {\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\n/***/ \"../node_modules/core-js/modules/_descriptors.js\":\n/***/ (function(module, exports, __webpack_require__) {\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 () { return 7; } }).a != 7;\n});\n\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_dom-create.js\":\n/***/ (function(module, exports, __webpack_require__) {\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\n/***/ \"../node_modules/core-js/modules/_enum-bug-keys.js\":\n/***/ (function(module, exports) {\n\n// IE 8- don't enum bug keys\nmodule.exports = (\n 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'\n).split(',');\n\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_export.js\":\n/***/ (function(module, exports, __webpack_require__) {\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 (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\n/***/ \"../node_modules/core-js/modules/_fails-is-regexp.js\":\n/***/ (function(module, exports, __webpack_require__) {\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\n/***/ \"../node_modules/core-js/modules/_fails.js\":\n/***/ (function(module, exports) {\n\nmodule.exports = function (exec) {\n try {\n return !!exec();\n } catch (e) {\n return true;\n }\n};\n\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_global.js\":\n/***/ (function(module, exports) {\n\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? 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\n/***/ \"../node_modules/core-js/modules/_has.js\":\n/***/ (function(module, exports) {\n\nvar hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_hide.js\":\n/***/ (function(module, exports, __webpack_require__) {\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\n/***/ \"../node_modules/core-js/modules/_ie8-dom-define.js\":\n/***/ (function(module, exports, __webpack_require__) {\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 () { return 7; } }).a != 7;\n});\n\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_iobject.js\":\n/***/ (function(module, exports, __webpack_require__) {\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\n/***/ \"../node_modules/core-js/modules/_is-array.js\":\n/***/ (function(module, exports, __webpack_require__) {\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\n/***/ \"../node_modules/core-js/modules/_is-object.js\":\n/***/ (function(module, exports) {\n\nmodule.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_is-regexp.js\":\n/***/ (function(module, exports, __webpack_require__) {\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\n/***/ \"../node_modules/core-js/modules/_library.js\":\n/***/ (function(module, exports) {\n\nmodule.exports = false;\n\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_object-dp.js\":\n/***/ (function(module, exports, __webpack_require__) {\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\n/***/ \"../node_modules/core-js/modules/_object-keys-internal.js\":\n/***/ (function(module, exports, __webpack_require__) {\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) if (key != IE_PROTO) has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (has(O, key = names[i++])) {\n ~arrayIndexOf(result, key) || result.push(key);\n }\n return result;\n};\n\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_object-keys.js\":\n/***/ (function(module, exports, __webpack_require__) {\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\n/***/ \"../node_modules/core-js/modules/_object-pie.js\":\n/***/ (function(module, exports) {\n\nexports.f = {}.propertyIsEnumerable;\n\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_object-to-array.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\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) if (isEnum.call(O, key = keys[i++])) {\n result.push(isEntries ? [key, O[key]] : O[key]);\n } return result;\n };\n};\n\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_property-desc.js\":\n/***/ (function(module, exports) {\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\n/***/ \"../node_modules/core-js/modules/_redefine.js\":\n/***/ (function(module, exports, __webpack_require__) {\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 TO_STRING = 'toString';\nvar $toString = Function[TO_STRING];\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\n/***/ \"../node_modules/core-js/modules/_shared-key.js\":\n/***/ (function(module, exports, __webpack_require__) {\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\n/***/ \"../node_modules/core-js/modules/_shared.js\":\n/***/ (function(module, exports, __webpack_require__) {\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: '© 2018 Denis Pushkarev (zloirock.ru)'\n});\n\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_strict-method.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\nvar fails = __webpack_require__(\"../node_modules/core-js/modules/_fails.js\");\n\nmodule.exports = function (method, arg) {\n return !!method && fails(function () {\n // eslint-disable-next-line no-useless-call\n arg ? method.call(null, function () { /* empty */ }, 1) : method.call(null);\n });\n};\n\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/_string-context.js\":\n/***/ (function(module, exports, __webpack_require__) {\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\n/***/ \"../node_modules/core-js/modules/_to-absolute-index.js\":\n/***/ (function(module, exports, __webpack_require__) {\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\n/***/ \"../node_modules/core-js/modules/_to-integer.js\":\n/***/ (function(module, exports) {\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\n/***/ \"../node_modules/core-js/modules/_to-iobject.js\":\n/***/ (function(module, exports, __webpack_require__) {\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\n/***/ \"../node_modules/core-js/modules/_to-length.js\":\n/***/ (function(module, exports, __webpack_require__) {\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\n/***/ \"../node_modules/core-js/modules/_to-object.js\":\n/***/ (function(module, exports, __webpack_require__) {\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\n/***/ \"../node_modules/core-js/modules/_to-primitive.js\":\n/***/ (function(module, exports, __webpack_require__) {\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\n/***/ \"../node_modules/core-js/modules/_uid.js\":\n/***/ (function(module, exports) {\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\n/***/ \"../node_modules/core-js/modules/_wks.js\":\n/***/ (function(module, exports, __webpack_require__) {\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] =\n USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));\n};\n\n$exports.store = store;\n\n\n/***/ }),\n\n/***/ \"../node_modules/core-js/modules/es6.array.every.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\nvar $export = __webpack_require__(\"../node_modules/core-js/modules/_export.js\");\nvar $every = __webpack_require__(\"../node_modules/core-js/modules/_array-methods.js\")(4);\n\n$export($export.P + $export.F * !__webpack_require__(\"../node_modules/core-js/modules/_strict-method.js\")([].every, true), 'Array', {\n // 22.1.3.5 / 15.4.4.16 Array.prototype.every(callbackfn [, thisArg])\n every: function every(callbackfn /* , thisArg */) {\n return $every(this, callbackfn, arguments[1]);\n }\n});\n\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)\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 () { forced = false; });\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\n/***/ \"../node_modules/core-js/modules/es6.array.some.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\nvar $export = __webpack_require__(\"../node_modules/core-js/modules/_export.js\");\nvar $some = __webpack_require__(\"../node_modules/core-js/modules/_array-methods.js\")(3);\n\n$export($export.P + $export.F * !__webpack_require__(\"../node_modules/core-js/modules/_strict-method.js\")([].some, true), 'Array', {\n // 22.1.3.23 / 15.4.4.17 Array.prototype.some(callbackfn [, thisArg])\n some: function some(callbackfn /* , thisArg */) {\n return $some(this, callbackfn, arguments[1]);\n }\n});\n\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\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)\n .indexOf(searchString, arguments.length > 1 ? arguments[1] : undefined);\n }\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\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\n/***/ \"../node_modules/core-js/modules/es7.object.entries.js\":\n/***/ (function(module, exports, __webpack_require__) {\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\n/***/ \"../node_modules/core-js/modules/es7.object.values.js\":\n/***/ (function(module, exports, __webpack_require__) {\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\n/***/ \"../node_modules/noop-loader/index.js!./components/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
\\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/noop-loader/index.js!./components/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/noop-loader/index.js!./components/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/noop-loader/index.js!./components/xo-form-components/src/language-options/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n {{languageList[currentLanguage]}}\\n
\\n
\\n
\\n
\\n \\n
\\n
\\n
\"\n\n/***/ }),\n\n/***/ \"../node_modules/noop-loader/index.js!./components/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/noop-loader/index.js!./components/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/noop-loader/index.js!./components/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/noop-loader/index.js!./components/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!./components/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!./components/xo-guest-components/src/multistep-signup/addCard/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n
\\n \\n \\n

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

\\n

{{content('largeScreenPayment.titleProp')}}

\\n\\n
\\n\\n \\n
\\n \\n\\n \\n\\n \\n\\n \\n\\n
\\n
\\n\\n \\n \\n
\\n\\n\\n
\\n \\n
\\n\\n
\\n \\n
\\n
\\n\\n \\n\\n
\\n \\n \\n
\\n\\n
\\n
\\n \\n\\n \\n\\n \\n
\\n \\n \\n
\\n
\\n\\n \\n
\\n
\\n\\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!./components/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!./components/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!./components/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\"\n\n/***/ }),\n\n/***/ \"../node_modules/noop-loader/index.js!./components/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!./components/xo-page-components/src/aside-header/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n

{{ content(heading) }}

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

{{ content(subHead) }}

\\n \\n \\n {{ content(subHeaderLeft) }}\\n \\n \\n \\n {{ content(subHeaderRight) }}\\n \\n
\\n
\\n
\\n \\n
\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/noop-loader/index.js!./components/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/noop-loader/index.js!./components/xo-page-components/src/cart/itemDetails/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"\\n\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/noop-loader/index.js!./components/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 {{ content(amountHeaders[breakdown.field_name]) }}\\n \\n \\n \\n
  • \\n \\n
\\n
\\n\\n
\\n {{ userAction === 'commit' || showCartTotal === true ? content('header.total') : content('header.subTotal') }}\\n \\n \\n \\n
\\n\\n
\\n
\\n
\\n
\\n
\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/noop-loader/index.js!./components/xo-page-components/src/footer/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/noop-loader/index.js!./components/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
\\n \\\"PayPal\\n
\\n
\\n \\\"PayPal\\n
\\n
\\n \\n\\n \\n\\n
{{subTitle}}
\\n \\n
\\n
\"\n\n/***/ }),\n\n/***/ \"../node_modules/noop-loader/index.js!./components/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/noop-loader/index.js!./components/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/noop-loader/index.js!./components/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!./components/xo-title/dist/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"

\\n {{ titleTxt }}\\n

\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/noop-loader/index.js!./components/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!./components/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!./components/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/***/ \"../node_modules/noop-loader/index.js!./components/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!./components/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!./components/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!./components/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!./components/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 {{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!./components/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!./components/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!./components/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!./components/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

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

\\n
\\n

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

\\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
\\n {{ !debitCardFlow ? content('creditcard.acceptableCards') : content('creditcard.acceptDebitCardOnly') }}\\n \\n {{supportedCardNamesCommaSeparated}}\\n \\n
\\n
\\n\\n \\n\\n \\n
\\n\\n
\\n
\\n
\\n {{ content('currencyOptions.dccPPRateNonVisaTitle') }}\\n \\n \\n {{ content('currencyOptions.cardIssuerRateTitle') }}\\n
\\n
\\n \\n {{ content('currencyOptions.cardIssuerRateAvailable') }}\\n \\n \\n
\\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!./components/xo-wallet-components/src/add-card/selectcard/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n\\t\\n\\n\\t\\n
\\n\"\n\n/***/ }),\n\n/***/ \"../node_modules/noop-loader/index.js!./components/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!./components/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/object-assign/index.js\":\n/***/ (function(module, exports) {\n\n/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n\n\n/***/ }),\n\n/***/ \"../node_modules/xo-webpack-config/polyfills.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n// It will use the native implementation if it's present and isn't buggy.\nObject.assign = __webpack_require__(\"../node_modules/object-assign/index.js\");\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__webpack_require__(\"../node_modules/core-js/fn/array/some.js\");\n__webpack_require__(\"../node_modules/core-js/fn/array/every.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\n\n/***/ }),\n\n/***/ \"./components/base64/base64.min.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n!function(){function t(t){this.message=t}var r= true?exports:this,e=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\";t.prototype=new Error,t.prototype.name=\"InvalidCharacterError\",r.btoa||(r.btoa=function(r){for(var o,n,a=String(r),i=0,c=e,d=\"\";a.charAt(0|i)||(c=\"=\",i%1);d+=c.charAt(63&o>>8-i%1*8)){if(n=a.charCodeAt(i+=.75),n>255)throw new t(\"'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.\");o=o<<8|n}return d}),r.atob||(r.atob=function(r){var o=String(r).replace(/=+$/,\"\");if(o.length%4==1)throw new t(\"'atob' failed: The string to be decoded is not correctly encoded.\");for(var n,a,i=0,c=0,d=\"\";a=o.charAt(c++);~a&&(n=i%4?64*n+a:a,i++%4)?d+=String.fromCharCode(255&n>>(-2*i&6)):0)a=e.indexOf(a);return d})}();\n\n\n/***/ }),\n\n/***/ \"./components/jquery-mask-plugin/dist/jquery.mask.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(__webpack_provided_window_dot_jQuery) {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/**\n * jquery.mask.js\n * @version: v1.14.11\n * @author: Igor Escobar\n *\n * Created by Igor Escobar on 2012-03-10. Please report any bug at http://blog.igorescobar.com\n *\n * Copyright (c) 2012 Igor Escobar http://blog.igorescobar.com\n *\n * The MIT License (http://www.opensource.org/licenses/mit-license.php)\n *\n * Permission is hereby granted, free of charge, to any person\n * obtaining a copy of this software and associated documentation\n * files (the \"Software\"), to deal in the Software without\n * restriction, including without limitation the rights to use,\n * copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the\n * Software is furnished to do so, subject to the following\n * conditions:\n *\n * The above copyright notice and this permission notice shall be\n * included in all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES\n * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\n * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\n * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\n * OTHER DEALINGS IN THE SOFTWARE.\n */\n\n/* jshint laxbreak: true */\n/* jshint maxcomplexity:17 */\n/* global define */\n\n\n\n// UMD (Universal Module Definition) patterns for JavaScript modules that work everywhere.\n// https://github.com/umdjs/umd/blob/master/jqueryPluginCommonjs.js\n(function (factory, jQuery, Zepto) {\n\n if (true) {\n !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"./components/jquery/dist/jquery.min.js\")], __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__));\n } else if (typeof exports === 'object') {\n module.exports = factory(require('jquery'));\n } else {\n factory(jQuery || Zepto);\n }\n\n}(function ($) {\n\n var Mask = function (el, mask, options) {\n\n var p = {\n invalid: [],\n getCaret: function () {\n try {\n var sel,\n pos = 0,\n ctrl = el.get(0),\n dSel = document.selection,\n cSelStart = ctrl.selectionStart;\n\n // IE Support\n if (dSel && navigator.appVersion.indexOf('MSIE 10') === -1) {\n sel = dSel.createRange();\n sel.moveStart('character', -p.val().length);\n pos = sel.text.length;\n }\n // Firefox support\n else if (cSelStart || cSelStart === '0') {\n pos = cSelStart;\n }\n\n return pos;\n } catch (e) {}\n },\n setCaret: function(pos) {\n try {\n if (el.is(':focus')) {\n var range, ctrl = el.get(0);\n\n // Firefox, WebKit, etc..\n if (ctrl.setSelectionRange) {\n ctrl.setSelectionRange(pos, pos);\n } else { // IE\n range = ctrl.createTextRange();\n range.collapse(true);\n range.moveEnd('character', pos);\n range.moveStart('character', pos);\n range.select();\n }\n }\n } catch (e) {}\n },\n events: function() {\n el\n .on('keydown.mask', function(e) {\n el.data('mask-keycode', e.keyCode || e.which);\n el.data('mask-previus-value', el.val());\n el.data('mask-previus-caret-pos', p.getCaret());\n p.maskDigitPosMapOld = p.maskDigitPosMap;\n })\n .on($.jMaskGlobals.useInput ? 'input.mask' : 'keyup.mask', p.behaviour)\n .on('paste.mask drop.mask', function() {\n setTimeout(function() {\n el.keydown().keyup();\n }, 100);\n })\n .on('change.mask', function(){\n el.data('changed', true);\n })\n .on('blur.mask', function(){\n if (oldValue !== p.val() && !el.data('changed')) {\n el.trigger('change');\n }\n el.data('changed', false);\n })\n // it's very important that this callback remains in this position\n // otherwhise oldValue it's going to work buggy\n .on('blur.mask', function() {\n oldValue = p.val();\n })\n // select all text on focus\n .on('focus.mask', function (e) {\n if (options.selectOnFocus === true) {\n $(e.target).select();\n }\n })\n // clear the value if it not complete the mask\n .on('focusout.mask', function() {\n if (options.clearIfNotMatch && !regexMask.test(p.val())) {\n p.val('');\n }\n });\n },\n getRegexMask: function() {\n var maskChunks = [], translation, pattern, optional, recursive, oRecursive, r;\n\n for (var i = 0; i < mask.length; i++) {\n translation = jMask.translation[mask.charAt(i)];\n\n if (translation) {\n\n pattern = translation.pattern.toString().replace(/.{1}$|^.{1}/g, '');\n optional = translation.optional;\n recursive = translation.recursive;\n\n if (recursive) {\n maskChunks.push(mask.charAt(i));\n oRecursive = {digit: mask.charAt(i), pattern: pattern};\n } else {\n maskChunks.push(!optional && !recursive ? pattern : (pattern + '?'));\n }\n\n } else {\n maskChunks.push(mask.charAt(i).replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g, '\\\\$&'));\n }\n }\n\n r = maskChunks.join('');\n\n if (oRecursive) {\n r = r.replace(new RegExp('(' + oRecursive.digit + '(.*' + oRecursive.digit + ')?)'), '($1)?')\n .replace(new RegExp(oRecursive.digit, 'g'), oRecursive.pattern);\n }\n\n return new RegExp(r);\n },\n destroyEvents: function() {\n el.off(['input', 'keydown', 'keyup', 'paste', 'drop', 'blur', 'focusout', ''].join('.mask '));\n },\n val: function(v) {\n var isInput = el.is('input'),\n method = isInput ? 'val' : 'text',\n r;\n\n if (arguments.length > 0) {\n if (el[method]() !== v) {\n el[method](v);\n }\n r = el;\n } else {\n r = el[method]();\n }\n\n return r;\n },\n calculateCaretPosition: function() {\n var oldVal = el.data('mask-previus-value') || '',\n newVal = p.getMasked(),\n caretPosNew = p.getCaret();\n if (oldVal !== newVal) {\n var caretPosOld = el.data('mask-previus-caret-pos') || 0,\n newValL = newVal.length,\n oldValL = oldVal.length,\n maskDigitsBeforeCaret = 0,\n maskDigitsAfterCaret = 0,\n maskDigitsBeforeCaretAll = 0,\n maskDigitsBeforeCaretAllOld = 0,\n i = 0;\n\n for (i = caretPosNew; i < newValL; i++) {\n if (!p.maskDigitPosMap[i]) {\n break;\n }\n maskDigitsAfterCaret++;\n }\n\n for (i = caretPosNew - 1; i >= 0; i--) {\n if (!p.maskDigitPosMap[i]) {\n break;\n }\n maskDigitsBeforeCaret++;\n }\n\n for (i = caretPosNew - 1; i >= 0; i--) {\n if (p.maskDigitPosMap[i]) {\n maskDigitsBeforeCaretAll++;\n }\n }\n\n for (i = caretPosOld - 1; i >= 0; i--) {\n if (p.maskDigitPosMapOld[i]) {\n maskDigitsBeforeCaretAllOld++;\n }\n }\n\n if (caretPosNew > oldValL) {\n // if the cursor is at the end keep it there\n caretPosNew = newValL;\n }\n else if (caretPosOld >= caretPosNew && caretPosOld !== oldValL) {\n if (!p.maskDigitPosMapOld[caretPosNew]) {\n var caretPos = caretPosNew;\n caretPosNew -= maskDigitsBeforeCaretAllOld - maskDigitsBeforeCaretAll;\n caretPosNew -= maskDigitsBeforeCaret;\n if (p.maskDigitPosMap[caretPosNew]) {\n caretPosNew = caretPos;\n }\n }\n }\n else if (caretPosNew > caretPosOld) {\n caretPosNew += maskDigitsBeforeCaretAll - maskDigitsBeforeCaretAllOld;\n caretPosNew += maskDigitsAfterCaret;\n }\n }\n return caretPosNew;\n },\n behaviour: function(e) {\n e = e || window.event;\n p.invalid = [];\n\n var keyCode = el.data('mask-keycode');\n\n if ($.inArray(keyCode, jMask.byPassKeys) === -1) {\n var newVal = p.getMasked();\n\n setTimeout(function() {\n p.setCaret(p.calculateCaretPosition());\n }, 10);\n\n p.val(newVal);\n p.setCaret(newVal.length);\n return p.callbacks(e);\n }\n },\n getMasked: function(skipMaskChars, val) {\n var buf = [],\n value = val === undefined ? p.val() : val + '',\n m = 0, maskLen = mask.length,\n v = 0, valLen = value.length,\n offset = 1, addMethod = 'push',\n resetPos = -1,\n maskDigitCount = 0,\n maskDigitPosArr = [],\n lastMaskChar,\n check;\n\n if (options.reverse) {\n addMethod = 'unshift';\n offset = -1;\n lastMaskChar = 0;\n m = maskLen - 1;\n v = valLen - 1;\n check = function () {\n return m > -1 && v > -1;\n };\n } else {\n lastMaskChar = maskLen - 1;\n check = function () {\n return m < maskLen && v < valLen;\n };\n }\n\n var lastUntranslatedMaskChar;\n while (check()) {\n var maskDigit = mask.charAt(m),\n valDigit = value.charAt(v),\n translation = jMask.translation[maskDigit];\n\n if (translation) {\n if (valDigit.match(translation.pattern)) {\n buf[addMethod](valDigit);\n if (translation.recursive) {\n if (resetPos === -1) {\n resetPos = m;\n } else if (m === lastMaskChar) {\n m = resetPos - offset;\n }\n\n if (lastMaskChar === resetPos) {\n m -= offset;\n }\n }\n m += offset;\n } else if (valDigit === lastUntranslatedMaskChar) {\n // matched the last untranslated (raw) mask character that we encountered\n // likely an insert offset the mask character from the last entry; fall\n // through and only increment v\n maskDigitCount--;\n lastUntranslatedMaskChar = undefined;\n } else if (translation.optional) {\n m += offset;\n v -= offset;\n } else if (translation.fallback) {\n buf[addMethod](translation.fallback);\n m += offset;\n v -= offset;\n } else {\n p.invalid.push({p: v, v: valDigit, e: translation.pattern});\n }\n v += offset;\n } else {\n if (!skipMaskChars) {\n buf[addMethod](maskDigit);\n }\n\n if (valDigit === maskDigit) {\n maskDigitPosArr.push(v);\n v += offset;\n } else {\n lastUntranslatedMaskChar = maskDigit;\n maskDigitPosArr.push(v + maskDigitCount);\n maskDigitCount++;\n }\n\n m += offset;\n }\n }\n\n var lastMaskCharDigit = mask.charAt(lastMaskChar);\n if (maskLen === valLen + 1 && !jMask.translation[lastMaskCharDigit]) {\n buf.push(lastMaskCharDigit);\n }\n\n var newVal = buf.join('');\n p.mapMaskdigitPositions(newVal, maskDigitPosArr, valLen);\n return newVal;\n },\n mapMaskdigitPositions: function(newVal, maskDigitPosArr, valLen) {\n var maskDiff = options.reverse ? newVal.length - valLen : 0;\n p.maskDigitPosMap = {};\n for (var i = 0; i < maskDigitPosArr.length; i++) {\n p.maskDigitPosMap[maskDigitPosArr[i] + maskDiff] = 1;\n }\n },\n callbacks: function (e) {\n var val = p.val(),\n changed = val !== oldValue,\n defaultArgs = [val, e, el, options],\n callback = function(name, criteria, args) {\n if (typeof options[name] === 'function' && criteria) {\n options[name].apply(this, args);\n }\n };\n\n callback('onChange', changed === true, defaultArgs);\n callback('onKeyPress', changed === true, defaultArgs);\n callback('onComplete', val.length === mask.length, defaultArgs);\n callback('onInvalid', p.invalid.length > 0, [val, e, el, p.invalid, options]);\n }\n };\n\n el = $(el);\n var jMask = this, oldValue = p.val(), regexMask;\n\n mask = typeof mask === 'function' ? mask(p.val(), undefined, el, options) : mask;\n\n // public methods\n jMask.mask = mask;\n jMask.options = options;\n jMask.remove = function() {\n var caret = p.getCaret();\n p.destroyEvents();\n p.val(jMask.getCleanVal());\n p.setCaret(caret);\n return el;\n };\n\n // get value without mask\n jMask.getCleanVal = function() {\n return p.getMasked(true);\n };\n\n // get masked value without the value being in the input or element\n jMask.getMaskedVal = function(val) {\n return p.getMasked(false, val);\n };\n\n jMask.init = function(onlyMask) {\n onlyMask = onlyMask || false;\n options = options || {};\n\n jMask.clearIfNotMatch = $.jMaskGlobals.clearIfNotMatch;\n jMask.byPassKeys = $.jMaskGlobals.byPassKeys;\n jMask.translation = $.extend({}, $.jMaskGlobals.translation, options.translation);\n\n jMask = $.extend(true, {}, jMask, options);\n\n regexMask = p.getRegexMask();\n\n if (onlyMask) {\n p.events();\n p.val(p.getMasked());\n } else {\n if (options.placeholder) {\n el.attr('placeholder' , options.placeholder);\n }\n\n // this is necessary, otherwise if the user submit the form\n // and then press the \"back\" button, the autocomplete will erase\n // the data. Works fine on IE9+, FF, Opera, Safari.\n if (el.data('mask')) {\n el.attr('autocomplete', 'off');\n }\n\n // detect if is necessary let the user type freely.\n // for is a lot faster than forEach.\n for (var i = 0, maxlength = true; i < mask.length; i++) {\n var translation = jMask.translation[mask.charAt(i)];\n if (translation && translation.recursive) {\n maxlength = false;\n break;\n }\n }\n\n if (maxlength) {\n el.attr('maxlength', mask.length);\n }\n\n p.destroyEvents();\n p.events();\n\n p.val(p.getMasked());\n p.setCaret(p.getMasked().length);\n }\n };\n\n jMask.init(!el.is('input'));\n };\n\n $.maskWatchers = {};\n var HTMLAttributes = function () {\n var input = $(this),\n options = {},\n prefix = 'data-mask-',\n mask = input.attr('data-mask');\n\n if (input.attr(prefix + 'reverse')) {\n options.reverse = true;\n }\n\n if (input.attr(prefix + 'clearifnotmatch')) {\n options.clearIfNotMatch = true;\n }\n\n if (input.attr(prefix + 'selectonfocus') === 'true') {\n options.selectOnFocus = true;\n }\n\n if (notSameMaskObject(input, mask, options)) {\n return input.data('mask', new Mask(this, mask, options));\n }\n },\n notSameMaskObject = function(field, mask, options) {\n options = options || {};\n var maskObject = $(field).data('mask'),\n stringify = JSON.stringify,\n value = $(field).val() || $(field).text();\n try {\n if (typeof mask === 'function') {\n mask = mask(value);\n }\n return typeof maskObject !== 'object' || stringify(maskObject.options) !== stringify(options) || maskObject.mask !== mask;\n } catch (e) {}\n },\n eventSupported = function(eventName) {\n var el = document.createElement('div'), isSupported;\n\n eventName = 'on' + eventName;\n isSupported = (eventName in el);\n\n if ( !isSupported ) {\n el.setAttribute(eventName, 'return;');\n isSupported = typeof el[eventName] === 'function';\n }\n el = null;\n\n return isSupported;\n };\n\n $.fn.mask = function(mask, options) {\n options = options || {};\n var selector = this.selector,\n globals = $.jMaskGlobals,\n interval = globals.watchInterval,\n watchInputs = options.watchInputs || globals.watchInputs,\n maskFunction = function() {\n if (notSameMaskObject(this, mask, options)) {\n return $(this).data('mask', new Mask(this, mask, options));\n }\n };\n\n $(this).each(maskFunction);\n\n if (selector && selector !== '' && watchInputs) {\n clearInterval($.maskWatchers[selector]);\n $.maskWatchers[selector] = setInterval(function(){\n $(document).find(selector).each(maskFunction);\n }, interval);\n }\n return this;\n };\n\n $.fn.masked = function(val) {\n return this.data('mask').getMaskedVal(val);\n };\n\n $.fn.unmask = function() {\n clearInterval($.maskWatchers[this.selector]);\n delete $.maskWatchers[this.selector];\n return this.each(function() {\n var dataMask = $(this).data('mask');\n if (dataMask) {\n dataMask.remove().removeData('mask');\n }\n });\n };\n\n $.fn.cleanVal = function() {\n return this.data('mask').getCleanVal();\n };\n\n $.applyDataMask = function(selector) {\n selector = selector || $.jMaskGlobals.maskElements;\n var $selector = (selector instanceof $) ? selector : $(selector);\n $selector.filter($.jMaskGlobals.dataMaskAttr).each(HTMLAttributes);\n };\n\n var globals = {\n maskElements: 'input,td,span,div',\n dataMaskAttr: '*[data-mask]',\n dataMask: true,\n watchInterval: 300,\n watchInputs: true,\n // old versions of chrome dont work great with input event\n useInput: !/Chrome\\/[2-4][0-9]|SamsungBrowser/.test(window.navigator.userAgent) && eventSupported('input'),\n watchDataMask: false,\n byPassKeys: [9, 16, 17, 18, 36, 37, 38, 39, 40, 91],\n translation: {\n '0': {pattern: /\\d/},\n '9': {pattern: /\\d/, optional: true},\n '#': {pattern: /\\d/, recursive: true},\n 'A': {pattern: /[a-zA-Z0-9]/},\n 'S': {pattern: /[a-zA-Z]/}\n }\n };\n\n $.jMaskGlobals = $.jMaskGlobals || {};\n globals = $.jMaskGlobals = $.extend(true, {}, globals, $.jMaskGlobals);\n\n // looking for inputs with data-mask attribute\n if (globals.dataMask) {\n $.applyDataMask();\n }\n\n setInterval(function() {\n if ($.jMaskGlobals.watchDataMask) {\n $.applyDataMask();\n }\n }, globals.watchInterval);\n}, __webpack_provided_window_dot_jQuery, window.Zepto));\n\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"./components/jquery/dist/jquery.min.js\")))\n\n/***/ }),\n\n/***/ \"./components/node-uuid/uuid.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(console) {var __WEBPACK_AMD_DEFINE_RESULT__;\n\n// 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\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 _rng() {\n for (var i = 0, r; i < 16; i++) {\n if ((i & 0x03) === 0) {\n r = Math.random() * 0x100000000;\n }\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 () {\n return _rb(16);\n };\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,\n ii = 0;\n\n buf = buf || [];\n s.toLowerCase().replace(/[0-9a-f]{2}/g, function (oct) {\n if (ii < 16) {\n // 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,\n bth = _byteToHex;\n return bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]] + '-' + bth[buf[i++]] + bth[buf[i++]] + '-' + bth[buf[i++]] + bth[buf[i++]] + '-' + bth[buf[i++]] + bth[buf[i++]] + '-' + bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]] + 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 = [_seedBytes[0] | 0x01, _seedBytes[1], _seedBytes[2], _seedBytes[3], _seedBytes[4], _seedBytes[5]];\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,\n _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 () {\n return uuid;\n }).call(exports, __webpack_require__, exports, module),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\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/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/console-browserify/index.js\")))\n\n/***/ }),\n\n/***/ \"./components/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__(\"./components/jquery/dist/jquery.min.js\");\n\nvar _jquery2 = _interopRequireDefault(_jquery);\n\nvar _logger = __webpack_require__(\"./components/xo-beaver/dist/logger.js\");\n\nvar _event = __webpack_require__(\"./components/squid/dist/core/event.js\");\n\nvar _class = __webpack_require__(\"./components/squid/dist/core/class.js\");\n\nvar _util = __webpack_require__(\"./components/squid/dist/core/util.js\");\n\nvar _promise = __webpack_require__(\"./components/squid/dist/core/promise.js\");\n\nvar _config = __webpack_require__(\"./components/squid/dist/core/config.js\");\n\nvar _error = __webpack_require__(\"./components/squid/dist/core/error.js\");\n\nvar _loader = __webpack_require__(\"./components/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/***/ \"./components/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/***/ \"./components/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/***/ \"./components/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__(\"./components/xo-beaver/dist/logger.js\");\n\nvar _promise = __webpack_require__(\"./components/squid/dist/core/promise.js\");\n\nvar _util = __webpack_require__(\"./components/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/***/ \"./components/squid/dist/core/error.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.$FallbackError = exports.$BatchShortCircuit = exports.$ApiError = exports.$Forbidden = exports.$Contingency = exports.$Error = undefined;\n\nvar _event = __webpack_require__(\"./components/squid/dist/core/event.js\");\n\nvar _class = __webpack_require__(\"./components/squid/dist/core/class.js\");\n\nvar _util = __webpack_require__(\"./components/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 $BatchShortCircuit = exports.$BatchShortCircuit = $Error.extend('$BatchShortCircuit');\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\nangular.value(\"$Error\", $Error);\nangular.value(\"$Contingency\", $Contingency);\nangular.value(\"$Forbidden\", $Forbidden);\nangular.value(\"$ApiError\", $ApiError);\nangular.value(\"$BatchShortCircuit\", $BatchShortCircuit);\nangular.value(\"$FallbackError\", $FallbackError);\n_event.$event;\n\n_class.$Class;\n\n_util.$util;\n\n/***/ }),\n\n/***/ \"./components/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__(\"./components/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/***/ \"./components/squid/dist/core/index.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _api = __webpack_require__(\"./components/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__(\"./components/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__(\"./components/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__(\"./components/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__(\"./components/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__(\"./components/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__(\"./components/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__(\"./components/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__(\"./components/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__(\"./components/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__(\"./components/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/***/ \"./components/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__(\"./components/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/***/ \"./components/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__(\"./components/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/***/ \"./components/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__(\"./components/squid/dist/core/class.js\");\n\nvar _util = __webpack_require__(\"./components/squid/dist/core/util.js\");\n\nvar _promise = __webpack_require__(\"./components/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/***/ \"./components/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__(\"./components/squid/dist/core/util.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 },\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\nangular.value(\"$promise\", $promise);\n_util.$util;\n\n/***/ }),\n\n/***/ \"./components/squid/dist/core/util.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.$unresolved = exports.$util = exports.isUnsafeRedirect = undefined;\nexports.$getRedirectUrl = $getRedirectUrl;\nexports.$dispatch = $dispatch;\nexports.$experiment = $experiment;\n\nvar _event = __webpack_require__(\"./components/squid/dist/core/event.js\");\n\nvar _logger = __webpack_require__(\"./components/xo-beaver/dist/logger.js\");\n\nvar _base = __webpack_require__(\"./components/base64/base64.min.js\");\n\nvar base64 = _interopRequireWildcard(_base);\n\nvar _config = __webpack_require__(\"./components/squid/dist/core/config.js\");\n\nvar _integration = __webpack_require__(\"./components/squid/dist/core/integration.js\");\n\nvar _angular = __webpack_require__(\"./components/angular/angular.min.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\nvar redirected = false;\nvar paramCache = {};\n\n// incase base64 has been CJS packed, it will export itself\nif (typeof window.atob === 'undefined' || typeof window.btoa === 'undefined') {\n window.atob = base64.atob;\n window.btoa = base64.btoa;\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 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 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: 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: 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 window.top.location = 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 var result = void 0;\n var called = false;\n\n function memoized() {\n if (!called) {\n result = method.apply(this, arguments);\n }\n called = true;\n return result;\n }\n\n memoized.flush = function () {\n called = false;\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 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/***/ \"./components/squid/dist/index.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _ng = __webpack_require__(\"./components/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__(\"./components/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__(\"./components/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__(\"./components/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/***/ \"./components/squid/dist/locale/currency.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.roundingAndSeparators = roundingAndSeparators;\nexports.formatCurrency = formatCurrency;\n\nvar _locale = __webpack_require__(\"./components/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\n// Griffin exceptions for separators at hundreds- xx,xx,xxx format\nvar HUNDREDS_SEPARATOR_EXCEPTION = ['IN', 'BT', 'MV', 'NP'];\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\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\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\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\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\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 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\nfunction formatCurrency(amount, code, wrapCodeInSpan) {\n var style = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'SymbolISOCurrency';\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 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_locale.$locale;\n\n/***/ }),\n\n/***/ \"./components/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__(\"./components/squid/dist/core/index.js\");\n\nvar _locale = __webpack_require__(\"./components/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/***/ \"./components/squid/dist/locale/index.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _locale = __webpack_require__(\"./components/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__(\"./components/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__(\"./components/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__(\"./components/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__(\"./components/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/***/ \"./components/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__(\"./components/xo-beaver/dist/logger.js\");\n\nvar _core = __webpack_require__(\"./components/squid/dist/core/index.js\");\n\n/* eslint-disable no-use-before-define */\nfunction sanitize(html) {\n return html && html.toString().replace(/&/g, '&').replace(//g, '>').replace(/\"/g, '"').replace(/'/g, ''').replace(/\\//g, '/');\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] === undefined) {\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 countryCache = metadataCache[country] = metadataCache[country] || {};\n\n countryCache[lang] = 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/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 if (metadataCache[model.country] && metadataCache[model.country][model.lang]) {\n _logger.$logger.info('cached_metadata');\n return metadataCache[model.country][model.lang];\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]) {\n _logger.$logger.info('metadata_retrieved', {\n uri: uri\n });\n return metadataCache[model.country][model.lang];\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 change: function change(country, lang) {\n var _this2 = this;\n\n this.country = country;\n this.lang = lang;\n\n return this.reload().then(function () {\n if (!_this2.noBroadcast) {\n _core.$event.broadcast('metadataChange');\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/***/ }),\n\n/***/ \"./components/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__(\"./components/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/***/ \"./components/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__(\"./components/squid/dist/locale/locale.js\");\n\nvar _currency = __webpack_require__(\"./components/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/***/ \"./components/squid/dist/module.js\":\n/***/ (function(module, exports) {\n\n\n\nmodule.exports = angular.module;\n\n/***/ }),\n\n/***/ \"./components/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__(\"./components/angular/angular.min.js\");\n\nvar _core = __webpack_require__(\"./components/squid/dist/core/index.js\");\n\nvar _ng = __webpack_require__(\"./components/squid/dist/ng/ng.js\");\n\nvar _directive = __webpack_require__(\"./components/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': '@'\n }[spec.type || 'var'];\n });\n }\n\n var originalController = this.controller || angular.noop;\n\n this.controller = 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 = 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/***/ \"./components/squid/dist/ng/core.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nvar _angular = __webpack_require__(\"./components/angular/angular.min.js\");\n\nvar _core = __webpack_require__(\"./components/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/***/ \"./components/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__(\"./components/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/***/ \"./components/squid/dist/ng/events.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nvar _uiRouter = __webpack_require__(\"./components/angular-ui-router/release/angular-ui-router.min.js\");\n\nvar _logger = __webpack_require__(\"./components/xo-beaver/dist/logger.js\");\n\nvar _core = __webpack_require__(\"./components/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/***/ \"./components/squid/dist/ng/feature.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nvar _directive = __webpack_require__(\"./components/squid/dist/ng/directive.js\");\n\nvar _locale = __webpack_require__(\"./components/squid/dist/locale/index.js\");\n\nvar _core = __webpack_require__(\"./components/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/***/ \"./components/squid/dist/ng/index.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _core = __webpack_require__(\"./components/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__(\"./components/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__(\"./components/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__(\"./components/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__(\"./components/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__(\"./components/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__(\"./components/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__(\"./components/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__(\"./components/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__(\"./components/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\n/***/ }),\n\n/***/ \"./components/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__(\"./components/angular/angular.min.js\");\n\nvar _core = __webpack_require__(\"./components/squid/dist/core/index.js\");\n\nvar _locale = __webpack_require__(\"./components/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: function controller($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), \"components/squid/dist/ng\", \"components/squid/dist/ng/locale.js\"))\n\n/***/ }),\n\n/***/ \"./components/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__(\"./components/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/***/ \"./components/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__(\"./components/angular/angular.min.js\");\n\nvar _core = __webpack_require__(\"./components/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/***/ \"./components/squid/dist/ng/pxp.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nvar _uiRouter = __webpack_require__(\"./components/angular-ui-router/release/angular-ui-router.min.js\");\n\nvar _core = __webpack_require__(\"./components/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/***/ \"./components/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__(\"./components/angular/angular.min.js\");\n\nvar _uiRouter = __webpack_require__(\"./components/angular-ui-router/release/angular-ui-router.min.js\");\n\nvar _logger = __webpack_require__(\"./components/xo-beaver/dist/logger.js\");\n\nvar _core = __webpack_require__(\"./components/squid/dist/core/index.js\");\n\nvar _locale = __webpack_require__(\"./components/squid/dist/locale/index.js\");\n\nvar _component = __webpack_require__(\"./components/squid/dist/ng/component.js\");\n\nvar _ng = __webpack_require__(\"./components/squid/dist/ng/ng.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 = 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 = 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 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 (0, _ng.$once)('$stateNotFound', function (event, unfoundState, fromState, fromParams) {\n event.preventDefault();\n\n _logger.$logger.error('state_not_found', {\n name: unfoundState.to,\n from: fromState.name,\n fromParams: fromParams,\n hash: window.location.hash\n });\n\n throw new Error('state_not_found: ' + unfoundState.to);\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 if (targetState) {\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 }\n\n _logger.$logger.info('unknown_state', {\n stateName: targetState\n });\n }\n\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 })['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\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\n_uiRouter.$stateProvider.state('default', {\n auth: false\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.$once;\n\n_ng.$angularInvoke;\n\n/***/ }),\n\n/***/ \"./components/squid/dist/paypal/config.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nvar _core = __webpack_require__(\"./components/squid/dist/core/index.js\");\n\nvar _env = __webpack_require__(\"./components/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/***/ \"./components/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/***/ \"./components/squid/dist/paypal/index.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _env = __webpack_require__(\"./components/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__(\"./components/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__(\"./components/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/***/ \"./components/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;\n\nvar _logger = __webpack_require__(\"./components/xo-beaver/dist/logger.js\");\n\nvar _core = __webpack_require__(\"./components/squid/dist/core/index.js\");\n\nvar _locale = __webpack_require__(\"./components/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\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 }, 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 }, 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 });\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\n\n return _core.$promise.run(function () {\n var pxp = $PXPModel.instance(_core.$util.buildURL(id, params), { pagename: id });\n var forceTreatments = _core.$util.param('pxp_' + 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 });\n }).then(function (pxp) {\n\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\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).then(function (pxpResponse) {\n var result = void 0;\n\n (pxpResponse.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\nwindow.$pxp = $pxp;\n\nangular.value(\"$PXPModel\", $PXPModel);\nangular.value(\"$getPxpTreatments\", $getPxpTreatments);\nangular.value(\"$pxp\", $pxp);\nangular.value(\"$pxpMatch\", $pxpMatch);\nangular.value(\"$pxpFactors\", $pxpFactors);\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/***/ \"./components/xo-address-components/src/add-address/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.$xoAddAddressComponent = undefined;\n\nvar _angular = __webpack_require__(\"./components/angular/angular.min.js\");\n\nvar _angular2 = _interopRequireDefault(_angular);\n\nvar _squid = __webpack_require__(\"./components/squid/dist/index.js\");\n\nvar _template = __webpack_require__(\"./components/xo-address-components/src/add-address/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\n__webpack_require__(\"./components/jquery/dist/jquery.min.js\");\n\n__webpack_require__(\"../node_modules/noop-loader/index.js!./components/xo-address-components/src/add-address/template.html\");\n\n__webpack_require__(\"./components/xo-ui-components/src/dropdown/directive.js\");\n\n__webpack_require__(\"./components/xo-ui-components/src/dropdown-multiline/directive.js\");\n\n__webpack_require__(\"./components/xo-ui-components/src/error-tooltip/directive.js\");\n\n__webpack_require__(\"./components/xo-ui-components/src/prefix-attrs-with/directive.js\");\n\n__webpack_require__(\"./components/xo-form-components/src/name-input/directive.js\");\n\n__webpack_require__(\"./components/xo-models/src/address/index.js\");\n\n__webpack_require__(\"./components/xo-form-components/src/zipcode/directive.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar $xoAddAddressComponent = exports.$xoAddAddressComponent = _squid.$Component.extend('$xoAddAddressComponent', {\n\n tag: 'xo-add-address',\n template: _template2['default'],\n\n props: {\n address: {\n type: 'var',\n required: false\n },\n isShipping: {\n type: 'var',\n required: false\n },\n country: {\n type: 'var',\n required: false\n },\n metadata: {\n type: 'str',\n required: false\n },\n hideButtonHandler: {\n type: 'var',\n required: false\n },\n hideCep: {\n type: 'var',\n required: false\n },\n hideName: {\n type: 'var',\n required: false\n },\n triggerZipCodeBlur: {\n type: 'var',\n required: false\n },\n triggerZipCodeKeyPress: {\n type: 'var',\n required: false\n },\n renderBillingAddCheckbox: {\n type: 'var',\n required: false\n }\n },\n\n controller: function controller($scope, $populate, $rootScope, $locale, $window, $feature, $PrefillAddressModel, $MetadataModel) {\n // eslint-disable-line max-statements\n var sortStates;\n var country = $scope.country || $scope.address && $scope.address.country;\n\n $scope.country = country;\n $scope.locale = $locale;\n $scope.metadata = $MetadataModel.create();\n\n // If the user changes their shipping/billing address country, fetch that metadata (if needed) and re-render.\n $scope.$watch('country', function setMetadata() {\n $scope.metadata.choose($scope.country, $scope.locale.lang);\n onCountryChange();\n });\n\n function onCountryChange() {\n sortStates = $feature('sortStatesForAddress', false, $scope.country);\n\n if (sortStates) {\n getSortedStateList();\n }\n }\n\n onCountryChange();\n\n // If the user changes languagle toggle, fetch that metadata (if needed) and re-render.\n $scope.$on('contentChange', function setMetadata() {\n $scope.metadata.choose($scope.country, $scope.locale.lang);\n });\n\n /**\n * Prefix to use for `id`, `name`, and `for` attributes. This is needed because Xoon will sometimes display both billing\n * and shipping address forms on the same page and without a prefix there will be duplicte `id`s and `name`s on the page.\n */\n $scope.attrPrefix = $scope.isShipping ? 'shipping' : 'billing';\n\n $scope.$watch('address.state', function () {\n $rootScope.$emit($scope.attrPrefix + 'AddressStateChange', $scope.address);\n });\n\n $scope.normalizeCountry = function (countryCode) {\n return $feature('AddressFormat', countryCode, countryCode) || countryCode;\n };\n\n $scope.isAddPreferred = $feature('preferredShipping', false, $scope.country) && $scope.isShipping;\n\n $scope.isAddressLookupEnabled = $feature('addressLookup', false, $scope.country);\n\n $scope.isShowLookupFields = $scope.isAddressLookupEnabled;\n\n if ($scope.isShowLookupFields) {\n // Show the Address Lookup Fields only when the hideButtonHandler function is passed by the caller.\n if ($scope.hideButtonHandler) {\n $scope.hideButtonHandler(true);\n } else {\n $scope.isShowLookupFields = false;\n }\n }\n\n function getSortedStateList() {\n var states = $locale.content.get(sortStates, {});\n var statesList = [];\n _angular2['default'].forEach(states, function (key, value) {\n statesList.push({\n code: value,\n sname: key\n });\n });\n\n statesList.sort(function (a, b) {\n return a.sname.localeCompare(b.sname);\n });\n $scope.sortedStatesList = statesList;\n }\n\n $scope.formatZip = function () {\n var unformatted = $scope.address.postal_code.replace(/[^0-9]/gi, '');\n var formatted = [['', unformatted.slice(0, 3)], ['-', unformatted.slice(3)]].map(function (x) {\n return x[1] && x[0] + x[1] || '';\n }).join('');\n $scope.address.postal_code = formatted;\n };\n\n function getAddress(address) {\n var COMMA = ', ';\n var SPACE = ' ';\n var line1, line2;\n\n function prefix(str, prefixStr) {\n if (str) {\n return (prefixStr ? prefixStr : '') + str;\n }\n return '';\n }\n\n if (!address.deliveryAddresses || _angular2['default'].isArray(address.deliveryAddresses) && address.deliveryAddresses.length === 0) {\n // if deliveryAddresses is not an array or is empty\n // line would be empty, hence return to caller.\n return;\n }\n\n var array = address.deliveryAddresses;\n if (array.length > 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\n displayLine1: displayLine1,\n displayLine2: displayLine2,\n displayLine3: displayLine3,\n\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 messages.push($scope.locale.content.get('addressBook.lookupError'));\n\n $scope.lookupFailureMessage = {\n msgs: messages,\n type: 'warning'\n };\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 $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 $scope.prefill = function () {\n var cepPattern = /^(\\d{5}-\\d{3}|\\d{5}|\\d{8})$/;\n var first_name;\n var last_name;\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 $PrefillAddressModel({\n id: $scope.token,\n address: {\n country: $scope.address.country,\n postal_code: $scope.address.postal_code\n }\n });\n\n $scope.prefillAddress.save({\n data: $scope.prefillAddress,\n\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 = $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\n success: function success(result) {\n processLookupResult(result);\n $scope.hideButtonHandler(false);\n },\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 $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 = $locale.content;\n _angular2['default'].forEach(groups, function (group) {\n var groupName = content.common[group];\n var statesList = content[group];\n _angular2['default'].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 $rootScope.$emit('zip_code_blur');\n }\n };\n\n $scope.zipCodeKeyPress = function (event) {\n if ($scope.triggerZipCodeKeyPress) {\n $rootScope.$emit('zip_code_keypress', { event: event });\n }\n };\n }\n});\n\n_angular2['default'].value(\"$xoAddAddressComponent\", $xoAddAddressComponent);\n_squid.$Component;\n\n/***/ }),\n\n/***/ \"./components/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
\\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/***/ \"./components/xo-address-components/src/address-normalization/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function($) {var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\n__webpack_require__(\"./components/xo-address-components/src/address-normalization/styles.less\");\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"./components/squid/dist/index.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!./components/xo-address-components/src/address-normalization/template.html\"), __webpack_require__(\"./components/xo-models/src/address/index.js\"), __webpack_require__(\"./components/xo-tray-height/dist/directive.js\"), __webpack_require__(\"./components/xo-page-components/src/aside-header/directive.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (squid, template) {\n\n squid.module('xo-address-normalization.directive', ['squid', 'xomodel.address', 'xo-aside-header.directive', 'xomodel.address', 'xo-tray-height.directive']).directive('xoAddressNormalization', function () {\n return {\n template: template,\n scope: {\n id: '=?',\n address: '=?',\n doneFn: '=?',\n sidebar: '=?',\n hideBackButton: '=?'\n },\n controller: function controller($scope, $populate, $feature, $util, $AddressNormalizationModel, $timeout) {\n $util.assert($scope.address, 'Original Address cannot be empty');\n\n $scope.showNormalization = false;\n\n var normalize = $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 = $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 $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 $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}).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__(\"./components/jquery/dist/jquery.min.js\")))\n\n/***/ }),\n\n/***/ \"./components/xo-address-components/src/address-normalization/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__(\"./components/squid/dist/index.js\"), __webpack_require__(\"./components/xo-address-components/src/address-normalization/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-address-normalization.route', ['squid', 'xo-address-normalization.directive']).factory('$AddressNormalizationRoute', function ($ComponentRoute) {\n\n return $ComponentRoute.extend('AddressNormalizationRoute', {\n\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 });\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), \"components/xo-address-components/src/address-normalization\", \"components/xo-address-components/src/address-normalization/route.js\"))\n\n/***/ }),\n\n/***/ \"./components/xo-address-components/src/address-normalization/styles.less\":\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ \"./components/xo-beaver/dist/level.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__(\"./components/angular/angular.min.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('beaver.level', []).factory('$logLevel', function () {\n\n return {\n INFO: 'info',\n DEBUG: 'debug',\n ERROR: 'error',\n WARN: 'warn',\n ALERT: 'alert'\n };\n }).factory('$consoleLogLevel', function () {\n\n return {\n info: 'info',\n debug: 'debug',\n error: 'error',\n warn: 'warn',\n alert: 'info'\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), \"components/xo-beaver/dist\", \"components/xo-beaver/dist/level.js\"))\n\n/***/ }),\n\n/***/ \"./components/xo-beaver/dist/logger.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__(\"./components/angular/angular.min.js\"), __webpack_require__(\"./components/xo-beaver/dist/level.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('beaver', ['beaver.level']).factory('$Logger', function ($injector, $http, $window, $interval, $timeout, $log, $q, $rootScope, $logLevel, $consoleLogLevel) {\n\n var logger = {};\n var HERMES_DEV_COOKIE = 'hermesdev';\n\n angular.forEach($logLevel, function (level) {\n logger[level] = function (event, payload, settings) {\n return this.log(level, event, payload, settings);\n };\n });\n\n var hostname = $window.location && $window.location.hostname || '';\n\n var uniqueEvents = [];\n\n angular.extend(logger, {\n\n autoLog: [$logLevel.WARNING, $logLevel.ERROR],\n flushInterval: 10 * 60 * 1000,\n heartbeatInterval: 5000,\n sizeLimit: 300,\n debounceInterval: 10,\n uri: '/api/log',\n hearbeatMaxThreshold: 50,\n\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 = $window.onbeforeunload;\n\n $window.onbeforeunload = function (event) {\n\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 = $window.onunload;\n\n $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 $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 && angular.isUndefined(payload.client_elapsed)) {\n payload.client_elapsed = parseInt(now - window.clientStartTime, 10);\n }\n\n if (timing.connectEnd && timing.navigationStart && angular.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 = $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\n var self = this;\n\n payload = payload || {};\n\n if (angular.isArray(payload) || !angular.isObject(payload)) {\n payload = {\n payload: payload\n };\n }\n settings = settings || {};\n\n if (settings.unique) {\n var hash = event + ':' + angular.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('info', '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\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 $log[$consoleLogLevel[level] || 'info'].apply($log, args);\n },\n\n flush: function flush(immediate) {\n var self = this;\n\n if (!this.buffer.length) {\n return $q.when();\n }\n\n if (immediate) {\n return $q.when(this._flush());\n }\n\n if (self.debouncer_timeout) {\n $timeout.cancel(self.debouncer_timeout);\n }\n\n self.debouncer_timeout = $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 || $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 $q.when();\n }\n\n var meta = {};\n\n try {\n meta = $injector.get('$metaBuilder').build();\n } catch (err) {\n // @TODO - Log error\n }\n\n var req = this.ajax('post', $window.meta.logURL || $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\n return $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 = $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(angular.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 = $interval(function () {\n self.flush();\n }, this.flushInterval);\n },\n\n stop: function stop() {\n if (this.timer) {\n $interval.cancel(this.timer);\n }\n }\n });\n\n function Logger(val) {\n angular.extend(this, val);\n this.init();\n }\n\n Logger.prototype = logger;\n Logger.prototype.constructor = Logger;\n\n return Logger;\n }).factory('$logger', function ($Logger) {\n return new $Logger();\n }).run(function ($logger) {\n angular.forEach(window.beaconQueue, function (payload) {\n $logger.log(payload.level, payload.event, payload);\n });\n\n window.beacon = function (level, events, payload) {\n angular.forEach(events, function (event) {\n $logger.log(level, event, payload);\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), \"components/xo-beaver/dist\", \"components/xo-beaver/dist/logger.js\"))\n\n/***/ }),\n\n/***/ \"./components/xo-device-info/dist/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__;/* eslint-disable no-use-before-define */\n\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"./components/angular/angular.min.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-device-info', ['squid']).factory('$DeviceInfo', function ($window, $meta, $logger) {\n var userAgent = $window.navigator.userAgent;\n var standalone = $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\n function getIntegrationContext(integrationKey) {\n // additonal context sent via partners in regards to integration\n var integrationContext = $meta.integrationCTX || {};\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 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 = $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.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 (angular.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 (angular.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 (angular.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 (angular.isString(userAgent)) {\n var ios = /iphone|ipod|ipad/i.test(userAgent);\n\n return ios && $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 device = DEVICE_PATTERN.test(userAgent),\n tablet = TABLET_PATTERN.test(userAgent),\n app = isApp(userAgent);\n\n if (angular.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\n return capabilities;\n }\n\n /**\n * Get various AppIntegrationType\n */\n function getAppIntegrationType() {\n var app_int_type;\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 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 };\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), \"components/xo-device-info/dist\", \"components/xo-device-info/dist/index.js\"))\n\n/***/ }),\n\n/***/ \"./components/xo-form-components/src/dob-input/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\n__webpack_require__(\"./components/xo-ui-components/src/directionality/directive.js\");\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"./components/jquery/dist/jquery.min.js\"), __webpack_require__(\"./components/squid/dist/index.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!./components/xo-form-components/src/dob-input/template.html\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function ($, squid, template) {\n\n squid.module('xo-dob-input.directive', ['squid']).directive('dobValidation', function () {\n\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: template,\n restrict: 'E',\n scope: {\n user: '=?'\n },\n controller: function controller($scope, $locale, $pxp) {\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 = $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 = $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 $pxp('xo_xoon_numeric_keypad_expirydob', { 'ctx.COUNTRY': $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}).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/***/ \"./components/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__(\"./components/squid/dist/index.js\");\n\n__webpack_require__(\"./components/xo-ui-components/src/floating-label/directive.js\");\n\n__webpack_require__(\"./components/xo-form-components/src/gender-type/styles.less\");\n\nvar _template = __webpack_require__(\"./components/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/***/ \"./components/xo-form-components/src/gender-type/styles.less\":\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ \"./components/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/***/ \"./components/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__(\"./components/squid/dist/index.js\");\n\nvar _util = __webpack_require__(\"./components/xo-return-to-merchant/dist/util.js\");\n\n__webpack_require__(\"./components/xo-ui-components/src/modal/directive.js\");\n\nvar _template = __webpack_require__(\"./components/xo-form-components/src/inventory-soldout/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\nvar _uiRouter = __webpack_require__(\"./components/angular-ui-router/release/angular-ui-router.min.js\");\n\nvar _logger = __webpack_require__(\"./components/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/***/ \"./components/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__(\"./components/squid/dist/index.js\");\n\nvar _directive = __webpack_require__(\"./components/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/***/ \"./components/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/***/ \"./components/xo-form-components/src/language-options/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\nexports.__esModule = true;\nvar VALID_DIRECTION = exports.VALID_DIRECTION = ['top', 'bottom'];\nvar isValidDirection = function isValidDirection(n) {\n return VALID_DIRECTION.includes(n);\n};\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"./components/jquery/dist/jquery.min.js\"), __webpack_require__(\"./components/squid/dist/index.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!./components/xo-form-components/src/language-options/template.html\"), __webpack_require__(\"./components/xo-ui-components/src/accessibility/directive.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function ($, squid, template) {\n squid.module('xo-language-options.directive', ['squid', 'xo-accessibility.directive']).directive('xoLanguageOptions', function () {\n return {\n template: template,\n\n scope: {\n direction: '@?'\n },\n\n controller: function controller($scope, $populate, $locale, $Class, $config, $meta) {\n $scope.direction = isValidDirection($scope.direction) ? $scope.direction : 'bottom';\n $scope.showLanguages = false;\n\n function setLanguageVars() {\n $scope.localeModel = $locale;\n $scope.currentLanguage = $scope.localeModel.lang;\n $scope.currentCountry = $scope.localeModel.country;\n $scope.languageList = $scope.localeModel.metadata.languageLabel;\n $scope.supportedLanguages = $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 $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}).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/***/ \"./components/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__(\"./components/squid/dist/index.js\");\n\n__webpack_require__(\"./components/xo-ui-components/src/error-tooltip/directive.js\");\n\n__webpack_require__(\"./components/xo-ui-components/src/floating-label/directive.js\");\n\n__webpack_require__(\"./components/xo-ui-components/src/prefix-attrs-with/directive.js\");\n\nvar _template = __webpack_require__(\"./components/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: true,\n type: 'str'\n },\n user: {\n required: true,\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/***/ \"./components/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/***/ \"./components/xo-form-components/src/national-id-input/directive.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__(\"./components/xo-ui-components/src/directionality/directive.js\");\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"./components/jquery/dist/jquery.min.js\"), __webpack_require__(\"./components/squid/dist/index.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!./components/xo-form-components/src/national-id-input/template.html\"), __webpack_require__(\"./components/xo-ui-components/src/tooltip/directive.js\"), __webpack_require__(\"./components/xo-form-components/src/dob-input/directive.js\"), __webpack_require__(\"./components/xo-models/src/checkout/index.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function ($, squid, template) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n squid.module('xo-national-id-input.directive', ['squid', 'xo-tooltip.directive', 'xo-dob-input.directive', 'xomodel.checkout']).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: template,\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: function controller($scope, $feature, $locale, $rootScope, $CheckoutCartModel, $NationalIdModel, $util) {\n\n $scope.nationalIdModel = $NationalIdModel.instance($rootScope.token);\n $scope.checkoutCart = $CheckoutCartModel.instance($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: $locale.content.addTaxId.passport }\n };\n\n // National ID is not shown for South Korea\n if ($locale.country !== 'KR') {\n $scope.nationalIds.NATID = { name: 'NATIONAL_ID', value: $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 ($locale.country === 'HK' && $feature('driverLicenseToTempNationalID', false, $locale.country)) {\n $scope.nationalIds.TNID = { name: 'TEMPORARY_NATIONAL_ID', value: $locale.content.addTaxId.tnid };\n } else {\n $scope.nationalIds.DL = { name: 'DRIVERS_LICENSE', value: $locale.content.addTaxId.dl };\n }\n }\n\n function setLocalizedRUContent() {\n $scope.countries = $locale.metadata.territory;\n $scope.secondaryIds = {\n 'INN': { name: 'INN', value: $locale.content.addTaxId.INN, length: 12 },\n 'SNILS': { name: 'SNILS', value: $locale.content.addTaxId.SNILS, length: 14, maskCharLength: 3 },\n 'OMS': { name: 'OMS', value: $locale.content.addTaxId.OMS, length: 16, minlength: 11 }\n };\n }\n\n if ($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: $locale.content.addTaxId.passport },\n 'DL': { name: 'DRIVERS_LICENSE', value: $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 ($Model) {\n\n return $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}).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), \"components/xo-form-components/src/national-id-input\", \"components/xo-form-components/src/national-id-input/directive.js\"))\n\n/***/ }),\n\n/***/ \"./components/xo-form-components/src/phone/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__(\"./components/squid/dist/index.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!./components/xo-form-components/src/phone/template.html\"), __webpack_require__(\"./components/xo-form-components/src/phone/phoneInput/directive.js\"), __webpack_require__(\"./components/xo-models/src/checkout/index.js\"), __webpack_require__(\"./components/xo-models/src/user/index.js\"), __webpack_require__(\"./components/xo-ui-components/src/message/directive.js\"), __webpack_require__(\"./components/xo-models/src/auth/index.js\"), __webpack_require__(\"./components/xo-title/dist/directive.js\"), __webpack_require__(\"./components/xo-page-components/src/value-props/directive.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (squid, template) {\n\n squid.module('xo-phone.directive', ['squid', 'xo-phone.phoneInput', 'xomodel.checkout', 'xomodel.user', 'xomodel.auth', 'xo-message.directive', 'xo-title.directive', 'xo-value-props.directive']).directive('xoAddPhone', function () {\n return {\n template: template,\n scope: {},\n controller: function controller($scope, $rootScope, $location, $populate, $contentVersion, $UserInfoModel, $state, $locale, $featureCountries, $CheckoutSessionModel, $util, $logger, $AuthModel, $feature) {\n\n $scope.showPhoneDisclosure = $featureCountries('showPhoneDisclosure').indexOf($locale.country) > -1;\n $scope.phoneConsent = $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 = $UserInfoModel.instance($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 ? $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 $populate($scope, {\n auth: $AuthModel.instance()\n }).then(function () {\n\n $scope.logout = function () {\n $logger.info('not_you_logout');\n $scope.auth.action('logout').then(function () {\n $state.go('checkout.login');\n });\n };\n\n $scope.showNotYou = $scope.auth.is_auth_api_call && $util.param('source') !== 'consumerApp' && $scope.logout;\n\n $scope.onSubmit = function () {\n if ($scope.phoneConsent) {\n $scope.phone.consent = {\n agreed: true,\n contentId: $locale.country + ':' + $locale.lang + ':' + $scope.consentContentKey + ':' + $contentVersion()\n };\n }\n $scope.userInfo.action('addPhone', {\n\n data: $scope.phone,\n\n success: function success(data) {\n return $CheckoutSessionModel.instance($rootScope.token).action('create', {\n success: function success() {\n $state.go('checkout.review');\n }\n });\n },\n\n contingencies: {\n NEED_CREDIT_CARD: function NEED_CREDIT_CARD() {\n $location.path('/checkout/addCard');\n },\n\n EXPIRED_CREDIT_CARD: function EXPIRED_CREDIT_CARD() {\n $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}).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/***/ \"./components/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/***/ \"./components/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__(\"./components/angular/angular.min.js\");\n\nvar _squid = __webpack_require__(\"./components/squid/dist/index.js\");\n\nvar _template = __webpack_require__(\"./components/xo-form-components/src/phone/phoneInput/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\n__webpack_require__(\"./components/xo-form-components/src/phone/phoneInputB/directive.js\");\n\n__webpack_require__(\"./components/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 optional: 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_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/***/ \"./components/xo-form-components/src/phone/phoneInput/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"\\n\\n\"\n\n/***/ }),\n\n/***/ \"./components/xo-form-components/src/phone/phoneInputA/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\n__webpack_require__(\"./components/xo-form-components/src/phone/phoneInputA/styles.less\");\n\n__webpack_require__(\"./components/xo-ui-components/src/directionality/directive.js\");\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"./components/jquery/dist/jquery.min.js\"), __webpack_require__(\"./components/angular/angular.min.js\"), __webpack_require__(\"./components/squid/dist/index.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!./components/xo-form-components/src/phone/phoneInputA/template.html\"), __webpack_require__(\"./components/xo-form-components/src/phone/lib/territoriesByCode.js\"), __webpack_require__(\"./components/xo-ui-components/src/dropdown/directive.js\"), __webpack_require__(\"./components/xo-ui-components/src/error-tooltip/directive.js\"), __webpack_require__(\"./components/xo-ui-components/src/floating-label/directive.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function ($, angular, squid, template, countryPhoneCode) {\n\n angular.module('xo-phone.phoneInput', ['squid', 'xo-dropdown.directive', 'xo-error-tooltip.directive', 'floating-label.directive']).directive('xoPhoneInputA', function () {\n return {\n template: template,\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: function controller($scope, $feature, $locale, $MetadataModel) {\n $scope.locale = $locale;\n $scope.IntDialingCodes = countryPhoneCode;\n $scope.defaultCountryPhoneCode = countryPhoneCode[$locale.country];\n $scope.showPhoneType = $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 $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: $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 !== $locale.metadata.country) {\n $scope.metadata = angular.copy($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 = countryPhoneCode[newValue].phoneCountryCode;\n });\n\n $scope.$on('localeChange', function () {\n $scope.defaultCountryPhoneCode = countryPhoneCode[$locale.country];\n $scope.phone.phoneCountryCode = $locale.country;\n if (!$scope.metadata || $scope.metadata.country !== $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 = countryPhoneCode[$scope.country];\n $scope.phone.phoneCountryCode = $scope.country;\n\n if (!$scope.metadata || $scope.metadata.country !== $scope.country) {\n\n $scope.metadata = $MetadataModel.create();\n $scope.metadata.choose($scope.country, $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}).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/***/ \"./components/xo-form-components/src/phone/phoneInputA/styles.less\":\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ \"./components/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__(\"./components/angular/angular.min.js\");\n\nvar _jquery = __webpack_require__(\"./components/jquery/dist/jquery.min.js\");\n\nvar _jquery2 = _interopRequireDefault(_jquery);\n\nvar _squid = __webpack_require__(\"./components/squid/dist/index.js\");\n\nvar _logger = __webpack_require__(\"./components/xo-beaver/dist/logger.js\");\n\nvar _template = __webpack_require__(\"./components/xo-form-components/src/phone/phoneInputB/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\n__webpack_require__(\"./components/xo-form-components/src/phone/phoneInputB/styles.less\");\n\n__webpack_require__(\"./components/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 optional: false\n },\n\n hidePhoneType: {\n type: 'var',\n optional: true\n },\n\n hideWork: {\n type: 'var',\n optional: true,\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 phoneEntry = this.metadata.phoneEntry;\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\n var territory = _squid.$util.find(this.dialingCodeList, function (obj) {\n return obj.code === country;\n });\n\n return territory;\n },\n\n\n // set the stage on first load or on locale change\n init: function init(country) {\n\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 this.dialingCodeList = _squid.$locale.metadata.territory;\n\n var territory = this.actions.getTerritoryDataFromMetadata(this.phone.phoneCountry || country);\n\n this.actions.updatePhoneFieldMetadata(territory);\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_logger.$logger;\nmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ \"./components/xo-form-components/src/phone/phoneInputB/styles.less\":\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ \"./components/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/***/ \"./components/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__(\"./components/angular/angular.min.js\");\n\nvar _angular2 = _interopRequireDefault(_angular);\n\nvar _index = __webpack_require__(\"./components/squid/dist/index.js\");\n\n__webpack_require__(\"./components/xo-ui-components/src/floating-label/directive.js\");\n\nvar _template = __webpack_require__(\"./components/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/***/ \"./components/xo-form-components/src/place-of-birth/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n \\n \\n
\\n\"\n\n/***/ }),\n\n/***/ \"./components/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__(\"./components/xo-ui-components/src/dropdown/directive.js\");\n\n__webpack_require__(\"./components/xo-ui-components/src/error-tooltip/directive.js\");\n\nvar _template = __webpack_require__(\"./components/xo-form-components/src/select-shipping-country/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\nvar _squid = __webpack_require__(\"./components/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: true\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/***/ \"./components/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/***/ \"./components/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__(\"./components/squid/dist/index.js\");\n\nvar _index2 = __webpack_require__(\"./components/xo-models/src/checkout/index.js\");\n\nvar _index3 = __webpack_require__(\"./components/xo-models/src/user/index.js\");\n\n__webpack_require__(\"./components/xo-ui-components/src/dropdown/directive.js\");\n\n__webpack_require__(\"./components/xo-ui-components/src/error-tooltip/directive.js\");\n\nvar _utilFunctions = __webpack_require__(\"./components/xo-form-components/src/travel-rule/utilFunctions.js\");\n\nvar _template = __webpack_require__(\"./components/xo-form-components/src/travel-rule/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\n__webpack_require__(\"./components/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: true\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/***/ \"./components/xo-form-components/src/travel-rule/styles.less\":\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ \"./components/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/***/ \"./components/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/***/ \"./components/xo-form-components/src/zipcode/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _squid = __webpack_require__(\"./components/squid/dist/index.js\");\n\n__webpack_require__(\"./components/xo-ui-components/src/error-tooltip/directive.js\");\n\n__webpack_require__(\"./components/xo-ui-components/src/prefix-attrs-with/directive.js\");\n\nvar _template = __webpack_require__(\"./components/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: true,\n type: 'var'\n },\n attrPrefix: {\n required: false,\n type: 'var'\n },\n country: {\n required: true,\n type: 'str'\n },\n doneFn: {\n required: true,\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: true,\n type: 'str'\n },\n zipLabel: {\n required: true,\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/***/ \"./components/xo-form-components/src/zipcode/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n \\n \\n
\\n\"\n\n/***/ }),\n\n/***/ \"./components/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__(\"./components/angular/angular.min.js\");\n\nvar _angular2 = _interopRequireDefault(_angular);\n\n__webpack_require__(\"./components/squid/dist/index.js\");\n\n__webpack_require__(\"./components/xo-device-info/dist/index.js\");\n\n__webpack_require__(\"./components/xo-beaver/dist/logger.js\");\n\nvar _squid = __webpack_require__(\"./components/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', function ($populate, $rootScope, $window, $DeviceInfo, $logger, $config, $util, $meta, $q) {\n\n var fncls = 'fnparams-dede7cc5-15fd-4c75-a9f4-36c430ee3a99';\n\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 var options = {\n fnSessionId: getFnCorrId(),\n sourceId: 'XOONBOARDINGNODEWEB',\n allowsCustomEvent: typeof CustomEvent !== 'undefined' && _angular2['default'].isFunction(CustomEvent),\n fnUrl: $config.urls.fraudnetUrl.passive,\n passive: true\n };\n\n $logger.info('FN_Initialised', {\n 'allowsCustomEvent': options.allowsCustomEvent\n });\n\n function injectScript(fnUrl) {\n var script = document.createElement('script');\n script.id = 'js-sync';\n script.src = fnUrl;\n document.body.appendChild(script);\n }\n\n function injectIframe(beaconOptions) {\n var iframe = document.createElement('iframe');\n var dom = void 0;\n var doc = void 0;\n var where = void 0;\n\n iframe.src = 'javascript:false'; // eslint-disable-line no-script-url\n iframe.title = '';\n iframe.role = 'presentation';\n (iframe.frameElement || iframe).style.cssText = 'width: 0; height: 0; border: 0; display: none;';\n\n where = document.getElementsByTagName('script');\n where = where[where.length - 1];\n where.parentNode.insertBefore(iframe, where);\n\n try {\n doc = iframe.contentWindow.document;\n } catch (e) {\n dom = document.domain;\n iframe.src = 'javascript:var d=document.open();d.domain=\"' + dom + '\";void(0);'; // eslint-disable-line no-script-url\n doc = iframe.contentWindow.document;\n }\n\n doc.open()._l = function () {\n var js = this.createElement('script');\n if (dom) {\n this.domain = dom;\n }\n js.id = 'js-iframe-async';\n js.src = beaconOptions.fnUrl;\n this.body.appendChild(js);\n };\n\n doc.write('');\n doc.close();\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 * Loads the fraudnet beacons (triggers 2 image beacons to c.paypal.com and c6.paypal.com)\n *\n * Integration pattern ripped from the Fraudnet Integration guide:\n * https://confluence.paypal.com/display/RiskDataAcquisition/FraudNet+Client+System+Integration+Guide+3.0#FraudNetClientSystemIntegrationGuide3.0-IntegrationCode\n */\n function _loadBeacon(beaconOptions) {\n if ($DeviceInfo.isApp()) {\n injectScript(beaconOptions.fnUrl);\n } else {\n injectIframe(beaconOptions);\n }\n }\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 $window.fnCallback = function () {\n if (scope) {\n scope.$emit('fnCallback');\n }\n };\n _injectConfig(options);\n _loadBeacon(options);\n $rootScope.fnLoaded = true;\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), \"components/xo-guest-components/src/fraudnet\", \"components/xo-guest-components/src/fraudnet/fn.js\"))\n\n/***/ }),\n\n/***/ \"./components/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/***/ \"./components/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__(\"./components/angular/angular.min.js\");\n\nvar _squid = __webpack_require__(\"./components/squid/dist/index.js\");\n\nvar _index = __webpack_require__(\"./components/xo-models/src/onboard/index.js\");\n\nvar _directive = __webpack_require__(\"./components/xo-form-components/src/national-id-input/directive.js\");\n\nvar _index2 = __webpack_require__(\"./components/xo-models/src/frs/index.js\");\n\nvar _logger = __webpack_require__(\"./components/xo-beaver/dist/logger.js\");\n\nvar _uiRouter = __webpack_require__(\"./components/angular-ui-router/release/angular-ui-router.min.js\");\n\nvar _template = __webpack_require__(\"./components/xo-guest-components/src/guest-upgrade-interstitial/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\nvar _pxpExperimentConstants = __webpack_require__(\"./components/xo-guest-components/src/guest-upgrade-interstitial/constants/pxpExperimentConstants.js\");\n\nvar _pxpExperimentConstants2 = _interopRequireDefault(_pxpExperimentConstants);\n\n__webpack_require__(\"./components/xo-guest-components/src/guest/onboardOptions/signup/directive.js\");\n\n__webpack_require__(\"./components/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 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/***/ \"./components/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__(\"./components/angular/angular.min.js\"), __webpack_require__(\"./components/squid/dist/index.js\"), __webpack_require__(\"./components/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', 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), \"components/xo-guest-components/src/guest-upgrade-interstitial\", \"components/xo-guest-components/src/guest-upgrade-interstitial/route.js\"))\n\n/***/ }),\n\n/***/ \"./components/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/***/ \"./components/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__(\"./components/xo-return-to-merchant/dist/index.js\");\n\nvar _index2 = __webpack_require__(\"./components/squid/dist/index.js\");\n\nvar _angular = __webpack_require__(\"./components/angular/angular.min.js\");\n\nvar _util = __webpack_require__(\"./components/xo-guest-components/src/lib/util.js\");\n\nvar _template = __webpack_require__(\"./components/xo-guest-components/src/guest-upgrade/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\nvar _index3 = __webpack_require__(\"./components/xo-models/src/fi/index.js\");\n\nvar _uiRouter = __webpack_require__(\"./components/angular-ui-router/release/angular-ui-router.min.js\");\n\nvar _logger = __webpack_require__(\"./components/xo-beaver/dist/logger.js\");\n\nvar _directive = __webpack_require__(\"./components/xo-form-components/src/national-id-input/directive.js\");\n\nvar _index4 = __webpack_require__(\"./components/xo-models/src/onboard/index.js\");\n\nvar _mapper = __webpack_require__(\"./components/xo-guest-components/src/guest-upgrade/lib/mapper.js\");\n\nvar _mapper2 = _interopRequireDefault(_mapper);\n\n__webpack_require__(\"./components/xo-form-components/src/place-of-birth/directive.js\");\n\n__webpack_require__(\"./components/xo-form-components/src/gender-type/directive.js\");\n\n__webpack_require__(\"./components/xo-form-components/src/phone/directive.js\");\n\n__webpack_require__(\"./components/xo-form-components/src/dob-input/directive.js\");\n\n__webpack_require__(\"./components/xo-guest-components/src/guest-upgrade/occupation/directive.js\");\n\n__webpack_require__(\"./components/xo-guest-components/src/guest/nationality/directive.js\");\n\nvar _fpti = __webpack_require__(\"./components/xo-tracking/dist/fpti.js\");\n\n__webpack_require__(\"./components/xo-page-components/src/footer/directive.js\");\n\n__webpack_require__(\"./components/xo-ui-components/src/tooltip/directive.js\");\n\n__webpack_require__(\"./components/xo-ui-components/src/message/directive.js\");\n\n__webpack_require__(\"./components/xo-ui-components/src/spinner/directive.js\");\n\n__webpack_require__(\"./components/xo-address-components/src/add-address/directive.js\");\n\n__webpack_require__(\"./components/xo-page-components/src/value-props/directive.js\");\n\n__webpack_require__(\"./components/xo-return-to-merchant/dist/util.js\");\n\n__webpack_require__(\"./components/xo-guest-components/src/guest/emailInput/directive.js\");\n\n__webpack_require__(\"./components/xo-guest-components/src/guest/passwordInput/directive.js\");\n\n__webpack_require__(\"./components/xo-address-components/src/address-normalization/directive.js\");\n\nvar _gdprCookieBanner = __webpack_require__(\"./components/xo-models/src/gdprCookieBanner/index.js\");\n\nvar _helper = __webpack_require__(\"./components/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 return {\n preloadedData: _index4.$GuestUpgradeModel.instance().retrieve(options)\n };\n },\n experiments: function experiments() {\n return {\n // refer to config.GDPR for countries list\n GDPRTermsAndMarketing: (0, _index2.$pxp)('xo_xoon_GDPR_terms_marketing_checkbox', { 'ctx.COUNTRY': _index2.$locale.country }, '(xo_xoon_GDPR_terms_marketing_checkbox_)(.*)')\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 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 GDPRTermsAndMarketingTreatment = _index2.$util.getProperty(this.experiments, 'GDPRTermsAndMarketing.treatment_name', { 'default': '' });\n var isGDPRCountry = _helper.signupLib.getIsGDPRCountry(this.locale.country);\n\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, GDPRTermsAndMarketingTreatment);\n\n var getContentIdentifier = function getContentIdentifier() {\n return [_index2.$locale.country, _index2.$locale.lang, (0, _index2.$contentVersion)(), 'signupTerms.easySignupTCPA'].join(':');\n };\n\n var setTCPAFlags = function setTCPAFlags() {\n _this.flags.tcpa_content = false;\n\n if (_this.locale.country === 'US') {\n _this.flags.tcpa_content = true;\n }\n\n _logger.$logger.info('guest_upgrade_tcpa', {\n tcpa: _this.flags.tcpa_content,\n content_identifier: _this.onboard.contentIdentifier,\n experience_identifier: _this.onboard.experienceIdentifier\n });\n };\n\n var preloadedData = this.models.preloadedData;\n\n if (preloadedData.guestUpgradeNewAppRedirect === true) {\n var redirectUrl = window.location.href.replace('xoonboarding', 'prox');\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 // GDPR country only has GDPR marketing content. Hide the section if under control treatment since marketing content isn't in place\n if (isGDPRCountry && this.specialFields.marketing && GDPRTermsAndMarketingTreatment.indexOf('control') > -1) {\n this.specialFields.marketing = false;\n }\n\n setTCPAFlags();\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 if (element) {\n var $fields = $(element);\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 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_index2.$pxp;\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__(\"./components/jquery/dist/jquery.min.js\")))\n\n/***/ }),\n\n/***/ \"./components/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.set5,\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.map(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 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/***/ \"./components/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__(\"./components/angular/angular.min.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!./components/xo-guest-components/src/guest-upgrade/occupation/template.html\"), __webpack_require__(\"./components/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: function controller($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/***/ \"./components/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

\\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/***/ \"./components/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};\n\nvar _submitButtonSignupTextKeyMap = {\n commit: 'common.createAccountAndPayNow',\n notCommit: 'common.agreeAndCreateAccount'\n};\n\nvar submitButtonTextKeyMap = exports.submitButtonTextKeyMap = {\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 RTRAmount = exports.RTRAmount = 15;\n\n/***/ }),\n\n/***/ \"./components/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__(\"./components/squid/dist/index.js\");\n\nvar loginRedirectUrl = (0, _squid.$getRedirectUrl)('hermes', {\n hermesLoginRedirect: 'xoon'\n});\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' }],\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 },\n compileMessageWith: {\n href: loginRedirectUrl\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/***/ }),\n\n/***/ \"./components/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 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 }\n};\nmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ \"./components/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__(\"./components/angular/angular.min.js\");\n\nvar _angular2 = _interopRequireDefault(_angular);\n\nvar _index = __webpack_require__(\"./components/squid/dist/index.js\");\n\nvar _index2 = __webpack_require__(\"./components/xo-models/src/checkout/index.js\");\n\nvar _index3 = __webpack_require__(\"./components/xo-models/src/user/index.js\");\n\nvar _logger = __webpack_require__(\"./components/xo-beaver/dist/logger.js\");\n\nvar _uiRouter = __webpack_require__(\"./components/angular-ui-router/release/angular-ui-router.min.js\");\n\n__webpack_require__(\"./components/xo-ui-components/src/error-tooltip/directive.js\");\n\n__webpack_require__(\"./components/xo-ui-components/src/floating-label/directive.js\");\n\nvar _template = __webpack_require__(\"./components/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: true\n },\n showMask: {\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 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 var guestBlockedCountries = _index.$config.guestBlockedCountries || [];\n _this.metadata = _angular2['default'].copy(_index.$locale.metadata);\n\n if (proxSignUpFlow) {\n // only show the countries that are in $config.proxSupportedCountries\n _this.supportedCountries = _this.metadata.territory.filter(function (c) {\n if (c.code === _index.$locale.country) {\n _this.selectedCountryObj = c;\n }\n return _index.$config.proxSupportedCountries.indexOf(c.code) > -1;\n });\n } else {\n _this.supportedCountries = _this.metadata.territory.filter(function (c) {\n if (c.code === _index.$locale.country) {\n _this.selectedCountryObj = c;\n }\n return !(guestBlockedCountries.indexOf(c.code) > -1);\n });\n\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 _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 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 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/***/ \"./components/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/***/ \"./components/xo-guest-components/src/guest/currencyConversion/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function($) {\n\nexports.__esModule = true;\n\nvar _squid = __webpack_require__(\"./components/squid/dist/index.js\");\n\nvar _logger = __webpack_require__(\"./components/xo-beaver/dist/logger.js\");\n\nvar _index = __webpack_require__(\"./components/xo-models/src/checkout/index.js\");\n\nvar _angular = __webpack_require__(\"./components/angular/angular.min.js\");\n\nvar _utils = __webpack_require__(\"./components/xo-guest-components/src/guest/currencyConversion/utils.js\");\n\n__webpack_require__(\"./components/xo-guest-components/src/guest/currencyConversion/styles.less\");\n\nvar _template = __webpack_require__(\"./components/xo-guest-components/src/guest/currencyConversion/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\nvar _constants = __webpack_require__(\"./components/xo-guest-components/src/guest/constants/constants.js\");\n\nvar constants = _interopRequireWildcard(_constants);\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('$xoCurrencyConversionLightbox', {\n tag: 'xo-currency-conversion-lightbox',\n template: _template2['default'],\n\n props: {\n isPrePlan: {\n type: 'str',\n required: false\n },\n parentModel: {\n type: 'var',\n required: false\n },\n token: {\n type: 'var',\n required: false\n },\n doneFn: {\n type: 'var',\n required: false\n }\n },\n\n resolve: {\n experiments: function experiments() {\n return {\n dccPopupContent: (0, _squid.$pxp)('xo_xoon_dcc_popup_content', { 'ctx.COUNTRY': _squid.$locale.country }, '(xo_xoon_dcc_popup_content_treatment_)(.*)')\n };\n },\n models: function models() {\n this.isPrePlanVal = this.isPrePlan === 'true';\n return {\n checkoutSession: this.isPrePlanVal ? undefined : _index.$CheckoutSessionModel.instance(this.props.token).retrieve(),\n checkoutCart: _index.$CheckoutCartModel.instance(this.props.token).retrieve(),\n checkoutAppData: _index.$CheckoutAppDataModel.instance(this.props.token).retrieve()\n };\n }\n },\n\n actions: {\n onSubmit: function onSubmit() {\n var _this = this;\n\n if (!this.models.ppconversion) {\n this.message = {\n msgKeys: ['currencyOptions.noneSelected'],\n type: 'error'\n };\n return;\n }\n\n _logger.$logger.info('checkout_fpti', { from: 'CURRENCY_CONVERSION', to: 'process_currency_conversion' });\n\n if (this.parentModel) {\n this.parentModel.onboard.card.ppconversion = this.models.ppconversion;\n }\n\n /*\n * This check cuts off flow to the updateConversion service call in postPlanUpdateConversionVendor function for:\n * 1. Pre-Planning (Non-Visa DCC) for both PAYPAL and VENDOR selections, since service call done on createXO\n * 2. Post-Plan (Visa DCC) PAYPAL selection, since no updateConversion call needed.\n * Only will allow Post-Plan (Visa DCC) VENDOR selection to go through to updateConversion call below.\n */\n if (this.isPrePlanVal || this.models.ppconversion === 'PAYPAL') {\n var dccType = this.isPrePlanVal ? 'nonvisa_dcc' : 'visa_dcc';\n var toState = 'process_' + this.models.ppconversion.toLowerCase() + '_conversion_' + dccType;\n _logger.$logger.info('checkout_fpti', { from: 'CURRENCY_CONVERSION', to: toState });\n\n this.closeModal({ complete: true });\n return;\n }\n\n var payload = {\n conversionType: this.models.ppconversion,\n planId: this.models.checkoutSession && this.models.checkoutSession.plan.id\n };\n\n var postPlanUpdateConversionVendor = function postPlanUpdateConversionVendor(_payload) {\n if (_payload.planId) {\n _this.models.checkoutSession.fundingOptions.action('updateConversion', {\n\n data: _payload,\n\n success: function success(result) {\n _logger.$logger.info('checkout_fpti', { from: 'CURRENCY_CONVERSION', to: 'process_vendor_conversion_visa_dcc' });\n _this.closeModal({ complete: true });\n },\n error: function error() {\n _this.message = {\n msgKeys: ['genericError.genericError'],\n type: 'error'\n };\n return;\n },\n contingency: function contingency() {\n _this.message = {\n msgKeys: ['genericError.genericError'],\n type: 'error'\n };\n return;\n }\n });\n }\n };\n\n // Post-Plan Visa DCC call to update slection to VENDOR\n postPlanUpdateConversionVendor(payload);\n }\n },\n\n lifecycle: {\n enter: function enter() {\n var _this2 = this;\n\n _logger.$logger.info('checkout_fpti', { from: 'CURRENCY_CONVERSION', to: 'prepare_currency_conversion' });\n\n this.conversionOptions = {\n PAYPAL: 'PAYPAL',\n VENDOR: 'VENDOR'\n };\n\n this.locale = _squid.$locale;\n this.activeEl = document.activeElement;\n\n // Javascript for interstitial opening\n (0, _angular.$timeout)(function () {\n _this2.modalOpen = true;\n });\n },\n populate: function populate() {\n var _this3 = this;\n\n this.showClose = this.isPrePlanVal ? true : false;\n this.continueButton = this.isPrePlanVal ? _squid.$locale.content.get('buttons.agree') : _squid.$locale.content.get('common.payLabel');\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.metadata = angular.copy(_squid.$locale.metadata);\n this.merchantTotal = (0, _squid.formatCurrency)(unformattedAmount, merchantCurrencyCode, false);\n\n // LATAM Disclosure check\n this.showLATAMDisclosure = this.isPrePlanVal && this.metadata.localization && this.metadata.localization.countryRegion === 'LATAM';\n\n // Set constants needed for content keys\n\n var _ref = this.experiments.dccPopupContent || {},\n _ref$treatment_name = _ref.treatment_name,\n contentPxpTreatmentName = _ref$treatment_name === undefined ? '' : _ref$treatment_name;\n\n var isEMEA3PLCountry = _squid.$util.getProperty(this.metadata, 'localization.isEMEA3PLCountry', { 'default': false });\n\n // Set pxp experience returned on 'this'\n this.isNewContentExperience = !!contentPxpTreatmentName;\n\n this.dccTitle = _utils.dccContentUtils.getDccTitle({ isPrePlanVal: this.isPrePlanVal, contentPxpTreatmentName: contentPxpTreatmentName });\n this.ppRateLabel = _utils.dccContentUtils.getPPRateLabel({ isPrePlanVal: this.isPrePlanVal, contentPxpTreatmentName: contentPxpTreatmentName });\n this.dccPPRate = _utils.dccContentUtils.getDccPPRate({ isPrePlanVal: this.isPrePlanVal, contentPxpTreatmentName: contentPxpTreatmentName, isEMEA3PLCountry: isEMEA3PLCountry });\n this.dccPPTotal = this.isNewContentExperience ? 'currencyOptions.dccPPTotalTreatment1' : 'currencyOptions.dccPPTotal';\n this.dccPPExchange = this.isNewContentExperience ? 'currencyOptions.dccPPExchangeTreatment1' : 'currencyOptions.dccPPExchange';\n\n this.vendorRateLabel = _utils.dccContentUtils.getVendorRateLabel({ isPrePlanVal: this.isPrePlanVal, contentPxpTreatmentName: contentPxpTreatmentName });\n this.dccVendorExchange = this.isNewContentExperience ? 'currencyOptions.dccVendorExchangeTreatment1' : 'currencyOptions.dccVendorExchange';\n\n // LATAM countries have unique disclosure requirements for vendor option\n this.dccVendorTotal = _utils.dccContentUtils.getDccVendorTotal({ showLATAMDisclosure: this.showLATAMDisclosure, contentPxpTreatmentName: contentPxpTreatmentName });\n\n var isRTRAmount = void 0;\n\n if (this.models.checkoutSession) {\n // Post-Plan Case - for Visa & when non-Visa PXP isn't active\n this.conversion = this.models.checkoutSession.plan.conversion;\n this.paypalConversionTotal = this.models.checkoutSession.get('plan.sources.0.amount.amount_formatted_currency');\n\n // Set default currency conversion option to PayPal in both visa and non-visa cases\n this.models.ppconversion = 'PAYPAL';\n\n isRTRAmount = Number(this.models.checkoutSession.get('plan.sources.0.amount.amount')) > constants.RTRAmount;\n } else {\n // Pre-Plan Case - for non-Visa PXP\n var _ref2 = this.parentModel || {},\n _ref2$onboard = _ref2.onboard;\n\n _ref2$onboard = _ref2$onboard === undefined ? {} : _ref2$onboard;\n var _ref2$onboard$card = _ref2$onboard.card,\n card = _ref2$onboard$card === undefined ? {} : _ref2$onboard$card;\n\n\n this.conversion = card.currencyConvData || {};\n var _conversion$payment_a = this.conversion.payment_amt,\n convertedTotal = _conversion$payment_a === undefined ? {} : _conversion$payment_a;\n\n\n this.paypalConversionTotal = (0, _squid.formatCurrency)(convertedTotal.value, convertedTotal.currency_code, false);\n\n // Set the default selection, this.models.ppconversion, to the currently selected option\n // or if there isn't a currently selected option then use 'PAYPAL' as the default\n this.models.ppconversion = card.ppconversion || 'PAYPAL';\n\n isRTRAmount = convertedTotal.value > constants.RTRAmount;\n }\n\n if (!this.conversion.formattedFromStr || !this.conversion.formattedToStr) {\n this.conversion.formattedFromStr = truncateCurrencyConversionStr(this.conversion.from, this.conversion.from_amount);\n this.conversion.formattedToStr = truncateCurrencyConversionStr(this.conversion.to, this.conversion.to_amount);\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 of greater than $15 USD or equivalent.\n var isInvoicingFlow = this.models.checkoutAppData.get('flags.is_invoice_flow') === true;\n\n if (isInvoicingFlow) {\n var isUSBuyer = this.locale.country === 'US';\n this.merchant = this.models.checkoutAppData.get('merchant');\n this.showInvoicingRegEMsg = isUSBuyer && isRTRAmount && this.merchant && this.merchant.merchant_country !== 'US';\n }\n\n this.closeModal = function (event) {\n // Prevent ESC keydown event from triggering modal close in post-plan case\n if (!_this3.isPrePlanVal && (!event || !event.complete)) {\n return;\n }\n\n if (event && event.preventDefault) {\n event.preventDefault();\n }\n\n var onComplete = _squid.$util.once(function () {\n _logger.$logger.info('close_currency_conversion_lightbox');\n return _this3.isPrePlanVal ? _this3.props.doneFn('close') : _this3.props.doneFn();\n });\n\n // Return focus to element that was active before modal was opened in pre-plan case\n if (_this3.activeEl) {\n if (_this3.isPrePlanVal) {\n _this3.activeEl.focus();\n }\n\n _this3.activeEl = null;\n }\n\n _this3.modalOpen = false;\n // Hook css transition completion event 'transitionend' to call onComplete function, guarentees best timing\n $('#conversionSection .conversion').on('transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd', function (e) {\n $(_this3).off(e);\n onComplete();\n });\n // transitionend event not supported fallback\n // if browser doesn't support transitionend event callback, we call onComplete after 350ms as fallback\n (0, _angular.$timeout)(onComplete, 350);\n };\n }\n }\n});\n\n/* @params\n * fullStr: The full formatted currency or number format conversion string returned from downstream service.\n * amtStr: Just the currency conversion amount portion of the full string returned from downstream.\n */\n\nfunction truncateCurrencyConversionStr(fullStr, amtStr) {\n try {\n var fixedPrecision = Number(amtStr).toFixed(4);\n var formattedStr = fullStr.replace(amtStr, fixedPrecision);\n if (fixedPrecision == 0) {\n // eslint-disable-line\n throw new Error('Currency conversion truncation error encountered, defaulting to full unformatted currencyConversion string.');\n }\n return formattedStr;\n } catch (e) {\n _logger.$logger.warn('currency_conversion_error', {\n reason: 'Error formatting currency conversion data to formatted str in guest/currencyConversion/directive',\n error: e\n });\n return fullStr;\n }\n}\n\n_squid.$Component;\n\n_squid.$locale;\n\n_squid.$pxp;\n\n_squid.formatCurrency;\n\n_squid.$util;\n\n_logger.$logger;\n\n_index.$CheckoutSessionModel;\n\n_index.$CheckoutCartModel;\n\n_index.$CheckoutAppDataModel;\n\n_angular.$timeout;\n\n_utils.dccContentUtils;\nmodule.exports = exports['default'];\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"./components/jquery/dist/jquery.min.js\")))\n\n/***/ }),\n\n/***/ \"./components/xo-guest-components/src/guest/currencyConversion/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__(\"./components/angular/angular.min.js\"), __webpack_require__(\"./components/squid/dist/index.js\"), __webpack_require__(\"./components/xo-guest-components/src/guest/currencyConversion/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-currency-conversion-lightbox.route', ['squid', 'xo-currency-conversion-lightbox.directive']).factory('$CurrencyConversionOptionsRoute', function ($ComponentRoute) {\n\n return $ComponentRoute.extend('CurrencyConversionOptionsRoute', {\n\n name: 'currencyConversionOptions',\n directive: 'xo-currency-conversion-lightbox',\n trackingData: {\n fptiState: 'guest_currency_conversion_lightbox',\n trackStateExit: false,\n pageQualifier: 'guest',\n buzname: {\n 'guest': {\n 'pagename': '%::fullpage-guest-currency-conversion-lightbox',\n 'pagename2': '%::fullpage-guest:member:hermes:',\n 'version': 'guest:%:'\n }\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), \"components/xo-guest-components/src/guest/currencyConversion\", \"components/xo-guest-components/src/guest/currencyConversion/route.js\"))\n\n/***/ }),\n\n/***/ \"./components/xo-guest-components/src/guest/currencyConversion/styles.less\":\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ \"./components/xo-guest-components/src/guest/currencyConversion/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n
\\n
\\n
\\n \\n \\n\\n
\\n\\n

{{ content(dccTitle) }}

\\n\\n
    \\n

    \\n
  • \\n
    \\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
    • \\n {{ content('currencyOptions.exchangeRate') }} {{ content('currencyOptions.dccVendorRateNonVisa') }}\\n
    • \\n
    • \\n
    \\n
  • \\n
  • {{ content('currencyOptions.dccCommonRateNonVisa') }}
  • \\n
\\n\\n
\\n {{content('currencyOptions.invoicingRegEMsg', {merchantName: merchant.brand_name || merchant.merchant_email, amountInInvoiceCurrency: merchantTotal})}}\\n
\\n\\n
\\n \\n
\\n\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n\"\n\n/***/ }),\n\n/***/ \"./components/xo-guest-components/src/guest/currencyConversion/utils.js\":\n/***/ (function(module, exports) {\n\n\n\nexports.__esModule = true;\nvar getDccTitle = function getDccTitle(_ref) {\n var isPrePlanVal = _ref.isPrePlanVal,\n contentPxpTreatmentName = _ref.contentPxpTreatmentName;\n\n\n if (contentPxpTreatmentName.includes('treatment_1')) {\n return 'currencyOptions.dccTitleTreatment1';\n }\n\n if (contentPxpTreatmentName.includes('treatment_2')) {\n return 'currencyOptions.dccTitleTreatment2';\n }\n\n if (isPrePlanVal) {\n return 'currencyOptions.dccPPRateNonVisa';\n }\n\n return 'currencyOptions.dccTitle';\n};\n\nvar getPPRateLabel = function getPPRateLabel(_ref2) {\n var isPrePlanVal = _ref2.isPrePlanVal,\n contentPxpTreatmentName = _ref2.contentPxpTreatmentName;\n\n if (contentPxpTreatmentName) {\n return 'currencyOptions.dccPPDescTreatment1';\n }\n\n if (isPrePlanVal) {\n return 'currencyOptions.convertPayPal';\n }\n\n return 'currencyOptions.dccPPDesc';\n};\n\nvar getVendorRateLabel = function getVendorRateLabel(_ref3) {\n var isPrePlanVal = _ref3.isPrePlanVal,\n contentPxpTreatmentName = _ref3.contentPxpTreatmentName;\n\n if (contentPxpTreatmentName) {\n return 'currencyOptions.dccVendorDescTreatment1';\n }\n\n if (isPrePlanVal) {\n return 'currencyOptions.convertIssuer';\n }\n\n return 'currencyOptions.dccVendorDesc';\n};\n\nvar getDccPPRate = function getDccPPRate(_ref4) {\n var isPrePlanVal = _ref4.isPrePlanVal,\n contentPxpTreatmentName = _ref4.contentPxpTreatmentName,\n isEMEA3PLCountry = _ref4.isEMEA3PLCountry;\n\n if (contentPxpTreatmentName) {\n return 'currencyOptions.dccPPRateTreatment1';\n }\n\n if (isPrePlanVal) {\n return 'currencyOptions.dccPPRateNonVisa';\n }\n\n return isEMEA3PLCountry ? 'currencyOptions.dccPPRate3PL' : 'currencyOptions.dccPPRate';\n};\n\nvar getDccVendorTotal = function getDccVendorTotal(_ref5) {\n var showLATAMDisclosure = _ref5.showLATAMDisclosure,\n contentPxpTreatmentName = _ref5.contentPxpTreatmentName;\n\n if (contentPxpTreatmentName) {\n return 'currencyOptions.dccVendorTotalTreatment1';\n }\n\n return showLATAMDisclosure ? 'currencyOptions.dccNonVisaVendorTotalLATAM' : 'currencyOptions.dccVendorTotal';\n};\n\nvar dccContentUtils = {\n getDccTitle: getDccTitle,\n getPPRateLabel: getPPRateLabel,\n getVendorRateLabel: getVendorRateLabel,\n getDccPPRate: getDccPPRate,\n getDccVendorTotal: getDccVendorTotal\n};\n\nexports.dccContentUtils = dccContentUtils;\n\n/***/ }),\n\n/***/ \"./components/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__(\"./components/angular/angular.min.js\");\n\nvar _ul = __webpack_require__(\"./components/xo-login-components/src/unified-login/ul.js\");\n\nvar _squid = __webpack_require__(\"./components/squid/dist/index.js\");\n\nvar _index = __webpack_require__(\"./components/squid/dist/index.js\");\n\nvar _index2 = __webpack_require__(\"./components/xo-models/src/checkout/index.js\");\n\nvar _index3 = __webpack_require__(\"./components/xo-models/src/user/index.js\");\n\nvar _index4 = __webpack_require__(\"./components/xo-models/src/shoppingcart/index.js\");\n\nvar _index5 = __webpack_require__(\"./components/xo-models/src/shippingMethod/index.js\");\n\nvar _index6 = __webpack_require__(\"./components/xo-models/src/inventory/index.js\");\n\nvar _index7 = __webpack_require__(\"./components/xo-models/src/onboard/index.js\");\n\nvar _index8 = __webpack_require__(\"./components/xo-models/src/fi/index.js\");\n\nvar _index9 = __webpack_require__(\"./components/xo-models/src/address/index.js\");\n\nvar _fiApis = __webpack_require__(\"./components/xo-models/src/fi/lib/fiApis.js\");\n\nvar _index10 = __webpack_require__(\"./components/xo-models/src/auth/index.js\");\n\nvar _logger = __webpack_require__(\"./components/xo-beaver/dist/logger.js\");\n\nvar _uiRouter = __webpack_require__(\"./components/angular-ui-router/release/angular-ui-router.min.js\");\n\nvar _index11 = __webpack_require__(\"./components/xo-device-info/dist/index.js\");\n\nvar _index12 = __webpack_require__(\"./components/xo-models/src/marketingoffer/index.js\");\n\nvar _directive = __webpack_require__(\"./components/xo-form-components/src/national-id-input/directive.js\");\n\nvar _util = __webpack_require__(\"./components/xo-wallet-components/src/fi-contingency-list/util.js\");\n\nvar _sticky = __webpack_require__(\"./components/xo-guest-components/src/guest/sticky.js\");\n\nvar _util2 = __webpack_require__(\"./components/xo-guest-components/src/lib/util.js\");\n\nvar _errorHandlerHelper = __webpack_require__(\"./components/xo-guest-components/src/guest/lib/errorHandlerHelper.js\");\n\nvar errorHandlerHelper = _interopRequireWildcard(_errorHandlerHelper);\n\nvar _pageProps = __webpack_require__(\"./components/xo-guest-components/src/guest/lib/pageProps.js\");\n\nvar $pageProps = _interopRequireWildcard(_pageProps);\n\nvar _constants = __webpack_require__(\"./components/xo-guest-components/src/guest/constants/constants.js\");\n\nvar constants = _interopRequireWildcard(_constants);\n\nvar _template = __webpack_require__(\"./components/xo-guest-components/src/guest/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\nvar _index13 = __webpack_require__(\"./components/xo-models/src/profilemanagement/index.js\");\n\n__webpack_require__(\"./components/xo-guest-components/src/guest/countryList/directive.js\");\n\n__webpack_require__(\"./components/xo-guest-components/src/guest/emailInput/directive.js\");\n\n__webpack_require__(\"./components/xo-guest-components/src/guest/passwordInput/directive.js\");\n\n__webpack_require__(\"./components/xo-guest-components/src/guest/onboardOptions/directive.js\");\n\n__webpack_require__(\"./components/xo-guest-components/src/guest/currencyConversion/directive.js\");\n\n__webpack_require__(\"./components/xo-guest-components/src/guest/select-shipping-method/directive.js\");\n\n__webpack_require__(\"./components/xo-guest-components/src/guest/xoonHeader/directive.js\");\n\n__webpack_require__(\"./components/xo-guest-components/src/guest/redirectingFromXoonWarning/directive.js\");\n\n__webpack_require__(\"./components/xo-guest-components/src/guest/sepa/directive.js\");\n\n__webpack_require__(\"./components/xo-guest-components/src/guest/travelRuleLightbox/directive.js\");\n\n__webpack_require__(\"./components/xo-form-components/src/select-shipping-country/directive.js\");\n\n__webpack_require__(\"./components/xo-address-components/src/add-address/directive.js\");\n\n__webpack_require__(\"./components/xo-form-components/src/phone/phoneInput/directive.js\");\n\n__webpack_require__(\"./components/xo-form-components/src/name-input/directive.js\");\n\n__webpack_require__(\"./components/xo-wallet-components/src/add-bank/bank-input/directive.js\");\n\n__webpack_require__(\"./components/xo-address-components/src/address-normalization/directive.js\");\n\n__webpack_require__(\"./components/xo-wallet-components/src/3ds/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: _index10.$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: _index13.$MerchantPreferenceModel.instance(models.payee.merchant.id).retrieve()\n };\n });\n },\n sepaExperiment: function sepaExperiment() {\n var isSepaOverlayRequired = this.isUnbranded && this.onboard.fiMode === 'bank';\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 return {\n nonVisaDcc: (0, _squid.$pxp)('xo_xoonboarding_dcc_nonvisa', { 'ctx.COUNTRY': _index.$locale.country }, 'xo_xoonboarding_dcc_nonvisa_test')\n };\n }\n },\n\n lifecycle: {\n enter: function enter() {\n var _this2 = 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 };\n\n this.sepa = {\n sepaGuestAgree: false,\n sepaAgree: false,\n show: false\n };\n\n // Update SplitScreen flags onto this.flags\n // new flags - showSplitScreenExp, showSplitScreenFGAWarning, prefillEmailFromCookie\n // If prefillEmailFromCookie is set, then we prefill email into user model in\n // populate function\n angular.extend(this.flags, $pageProps.getSplitScreenFlags(this.mode));\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 = _index11.$DeviceInfo.isWebView() ? 'WebView' : _index11.$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 this.$watch('onboard.card.type', function (newVal) {\n _this2.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: $(_this2).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 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 triggerPageDesignFPTILog();\n // Trigger Design FPTI Log on Page Design Change\n _angular.$rootScope.$watch('miniBrowser', triggerPageDesignFPTILog);\n\n var getPresetPaymentMethod = function getPresetPaymentMethod() {\n\n var paymentMethod = _this2.paymentMethod && _this2.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 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 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\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 poma_flow: false,\n frs_optin_flow_applicable: false\n });\n\n this.onboard.card.ppconversion = 'PAYPAL';\n },\n populate: function populate() {\n var _this3 = this;\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.payer && this.models.checkoutCart.payer.first_name;\n this.onboard.user.last_name = this.models.checkoutCart.payer && this.models.checkoutCart.payer.last_name;\n\n var setAllowShipToBilling = function setAllowShipToBilling(allow) {\n // Toggle checkbox\n _this3.flags.disallowShipToBilling = !allow;\n // Show/Hide shipping address section\n _this3.flags.shipToBilling = allow;\n };\n\n var checkProcessorDecline = function checkProcessorDecline() {\n var processorDeclined = _this3.models.checkoutAppData.get('flags.processor_declined');\n if (processorDeclined) {\n _this3.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 _this3.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.' + _this3.merchantCountry);\n var infoMessage = (0, _squid.$renderContent)('largeScreenPayment.blockNonDomesticShippingAlert', { shippingCountry: countryName });\n _this3.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 // pre-fill billing address with shipping address\n _this3.onboard.shipping_address = _index2.$ShippingAddressModel.create(_this3.token, {\n country: shippingAddress.country_code || _index.$locale.country\n }, shippingAddress);\n\n // pre-fill provided billing address\n _this3.onboard.billing_address = _index8.$BillingAddressModel.create(_this3.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 = _this3.models.checkoutCart.supplementary;\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 _this3.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 _this3.onboard.user.first_name = prefilledAddress.first_name;\n _this3.onboard.user.last_name = prefilledAddress.last_name;\n\n updateShippingAndBillingAddress(prefilledAddress, prefilledAddress);\n if (!_this3.flags.allowEditShipping) {\n _this3.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 _this3.onboard.fiMode = _this3.getDefaultFIMode();\n _this3.onboard.billing_address.country = _index.$locale.country;\n _this3.onboard.user.country = _index.$locale.country;\n _this3.onboard.user.nationality = _index.$locale.country;\n _this3.setBackButtonForWebview();\n\n if (_this3.flags.disableChangeShippingCountry) {\n if (_this3.flags.allowEditShipping) {\n setAllowShipToBilling(_index.$locale.country === _this3.merchantCountry);\n }\n } else {\n _this3.onboard.shipping_address.country = _index.$locale.country;\n }\n });\n\n this.$on('contentChange', function () {\n if (_this3.flags.disableChangeShippingCountry) {\n setChangeShippingCountryAlertMsg();\n }\n });\n\n this.$on('signupClickedTimerStarted', function (event, time) {\n _this3.signupClickedStartTime = time;\n });\n\n this.hasDialingCodeOverride = _util2.hasDialingCodeOverride;\n this.showContactInfo = function () {\n return _this3.hasDialingCodeOverride() || _this3.flags.allowChoice && !_this3.flags.showSplitScreenExp;\n };\n\n this.displayEmailInContactInfo = function () {\n\n if (!_this3.flags.showSplitScreenExp && !(0, _util2.hasDialingCodeOverride)()) {\n return true;\n }\n\n var showingEmailInSignup = !_this3.flags.allowChoice && !_this3.flags.showSplitScreenExp;\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: _this3.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 && _this3.flags.allowEditShipping) {\n $.each(_this3.onboard.billing_address, function (key, val) {\n if (angular.isString(_this3.onboard.billing_address[key]) && !_this3.onboard.shipping_address[key]) {\n _this3.onboard.shipping_address[key] = val;\n }\n });\n\n _this3.onboard.shipping_address.first_name = _this3.onboard.shipping_address.first_name || _this3.onboard.user.first_name;\n _this3.onboard.shipping_address.last_name = _this3.onboard.shipping_address.last_name || _this3.onboard.user.last_name;\n }\n });\n\n // Format address to display when store pick is selected\n var formatAddress = function formatAddress(address) {\n\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 if (_this3.flags.shipToBilling) {\n _this3.shippingAddress = formatAddress(_this3.onboard.billing_address);\n } else {\n _this3.shippingAddress = formatAddress(_this3.onboard.shipping_address);\n }\n });\n\n this.$on('$destroy', storePickUpSelected);\n\n var showErrorFields = _angular.$rootScope.$on('showErrorFields', function (event) {\n _this3.toggleAddressFieldsValidation(true);\n });\n\n this.$on('$destroy', showErrorFields);\n\n var hideErrorFields = _angular.$rootScope.$on('hideErrorFields', function (event) {\n _this3.toggleAddressFieldsValidation(false);\n });\n\n this.$on('$destroy', hideErrorFields);\n\n // useraction flag\n var useraction = this.models.checkoutAppData.useraction();\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 // UL SplitScreen account match - prefill email from login_email cookie\n if (this.flags.prefillEmailFromCookie) {\n // Prefill email into user model from login_email cookie\n this.onboard.user.email = this.models.auth.email;\n } else {\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 this.upopConfirmButtonTextKey = $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 (_index11.$DeviceInfo.isWebView(false)) {\n var floatThrottle = parseFloat((0, _index.$feature)('webviewBackButtonThrottle', 0, _index.$locale.country));\n if (isNaN(floatThrottle)) {\n return;\n }\n\n _this3.flags.backButtonWebview = floatThrottle && (0, _squid.$experiment)('webview_backbutton_throttle', floatThrottle, _angular.$rootScope.token, {}) ? true : false;\n if (_this3.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 // 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 if (prefilledNumber && prefilledNumber.telephone_country === _index.$locale.country) {\n this.onboard.phone.telephone = prefilledNumber.normalized_phone_number;\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 var merchant = this.models.checkoutAppData.merchant;\n this.merchant = merchant.brand_name || merchant.merchant_name || merchant.merchant_email;\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\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\n _this3.$watch('singlePagePaymentForm.$valid', function (newVal, oldVal) {\n var cardModel = _this3.onboard.card;\n\n if (newVal.luhn && newVal.luhn[0].$name === 'cardNumber') {\n cardModel.valid = false;\n } else {\n cardModel.valid = true;\n }\n });\n\n _this3.$watch(_this3.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 if (newValue && _this3.installments && _this3.installments.length > 0) {\n\n _this3.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 });\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 _this3.singleStepModel.selectedInstallmentData = {\n installment_option_selected: cardNetwork.installment_options[0],\n preventChange: true\n };\n }\n\n _this3.singleStepModel.allowInstallments = true;\n } else {\n // Card network does not exists Or No installment found\n _this3.singleStepModel.allowInstallments = false;\n }\n } else {\n _this3.singleStepModel.allowInstallments = false;\n }\n });\n var installments = _index2.$InstallmentOptionsModel.instance(_this3.token);\n installments.save({\n data: {\n payee: _this3.models.payee,\n checkoutCart: _this3.models.checkoutCart,\n checkoutAppData: _this3.models.checkoutAppData\n },\n success: function success(result) {\n _this3.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\n _this3.cardNumberChanged = function (unformattedCardNumber) {\n\n if (unformattedCardNumber && unformattedCardNumber !== _this3.prevCardNumber) {\n\n // Make sure the Installments server is hit only once for a cardNumber\n _this3.prevCardNumber = unformattedCardNumber;\n var installments = _index2.$InstallmentOptionsModel.instance(_this3.token);\n installments.save({\n silent: true,\n data: {\n payee: _this3.models.payee,\n checkoutCart: _this3.models.checkoutCart,\n checkoutAppData: _this3.models.checkoutAppData,\n cc: unformattedCardNumber\n },\n success: function success(result) {\n\n _this3.installments = result;\n\n if (result.installment_options && result.installment_options.length > 0) {\n\n _this3.issuerBasedInstallmentsRetrieved = true;\n\n // reset the previously selected installment\n _this3.singleStepModel.selectedInstallmentData = undefined;\n if (result.installment_options.length === 1) {\n _this3.singleStepModel.selectedInstallmentData = {\n installment_option_selected: result.installment_options[0],\n preventChange: true\n };\n }\n\n _this3.singleStepModel.allowInstallments = true;\n } else {\n _this3.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\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 (!_this3.singleStepModel) {\n return false;\n }\n _this3.singleStepModel.onboard = _this3.onboard;\n\n var model = _this3.onboard;\n var hasConditionMet = _this3.singleStepModel.allowInstallments && model.card.number && (model.card.valid || _this3.issuerBasedInstallmentsRetrieved);\n var isBilling = _this3.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 this.onboard.payment_experience_initiator = experienceInitiator;\n\n this.isApac = function () {\n return _index.$config.apacCountries && _index.$config.apacCountries.indexOf(_this3.locale.country) > -1;\n };\n\n this.$on('MORSDisplayed', function (event, args) {\n _this3.MORSDisplayed = args;\n });\n\n this.$on('MORSNotDisplayed', function (event, args) {\n _this3.MORSDisplayed = {};\n });\n\n var handleCardContingencySignup = function handleCardContingencySignup(errorData) {\n if (_this3.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 (0, _squid.$dispatch)('hermes', {\n redirectToHermes: true,\n addFIContingency: fieldError ? 'retry' : 'noretry',\n avsRetry: avsRetry,\n token: _this3.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 (_this3.models.payee.isGambling()) {\n msg = _index.$locale.content.get('creditcard.noEligibleFI');\n } else if (_this3.onboard.billing_address.country === 'DE') {\n if (_this3.onboard.fiMode === 'bank') {\n delete _this3.onboard.bank;\n msg = _index.$locale.content.get('creditcard.cannotUseBank');\n _this3.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 _this3.errorMessage = {\n msgs: [msg],\n type: 'error'\n };\n return _angular.$q.reject();\n };\n\n var handleCardContingency = function handleCardContingency(action) {\n return _this3.flags.mode === 'signup' ? handleCardContingencySignup() : handleCardContingencyGuest();\n };\n\n var show3DSLightbox = function show3DSLightbox(checkoutSession) {\n\n _this3.resolve_3ds_data = {\n cc_id: checkoutSession.get('resolve_3ds.ccId'),\n flow_id: 'HERMES',\n merchant_id: _this3.models.payee.get('merchant.id'),\n merchant_country_code: _this3.models.checkoutAppData.get('merchant.merchant_country'),\n transaction_amount_currency: _this3.models.checkoutCart.get('purchase.amounts.total.currency_code'),\n transaction_amount_value: _this3.models.checkoutCart.get('purchase.amounts.total.amount')\n\n };\n _this3.launch3DSResolver = true;\n };\n\n var isDCCEligible = function isDCCEligible(checkoutSession) {\n var isGuest = _this3.flags.mode !== 'signup';\n var hasCurrencyConversion = checkoutSession.get('plan.conversion.paypal') && checkoutSession.get('plan.conversion.changeable');\n\n if (!(isGuest && hasCurrencyConversion)) {\n return false;\n }\n\n return _this3.flags.dccCountryEligibility;\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\n if (_this3.flags.wpsFlow) {\n _this3.singleStepModel.onboard = _this3.onboard;\n _this3.singleStepModel.flags = _this3.flags;\n // set signup/guest flag so done page\n // renders the proper content\n _angular.$rootScope.mode = _this3.flags && _this3.flags.mode;\n if (_this3.flags.wpsInterstitialEligible) {\n if (_this3.flags.buyerMode === 'signup') {\n return _uiRouter.$state.go('checkout.done');\n }\n return _this3.onboard.action('upgradeValidate', {\n\n data: _this3.onboard.serialize(),\n\n success: function success() {\n return _uiRouter.$state.go('checkout.guest.guestUpgradeInterstitial');\n },\n contingencies: {\n CC_LINKED: function CC_LINKED() {\n _logger.$logger.info('wps_interstitial_ineligible_CC_LINKED');\n return _uiRouter.$state.go('checkout.done'); // guest done page\n },\n EXISTING_MEMBER: function EXISTING_MEMBER() {\n _logger.$logger.info('wps_interstitial_ineligible_EXISTING_MEMBER');\n return _uiRouter.$state.go('checkout.done'); // guest done page\n },\n CC_LINKED_TO_FULL_ACCOUNT: function CC_LINKED_TO_FULL_ACCOUNT() {\n _logger.$logger.info('wps_interstitial_ineligible_CC_LINKED_TO_FULL_ACCOUNT');\n return _uiRouter.$state.go('checkout.done');\n },\n VALIDATION_ERROR: function VALIDATION_ERROR() {\n _logger.$logger.info('wps_interstitial_ineligible_VALIDATION_ERROR');\n return _uiRouter.$state.go('checkout.done');\n },\n DEFAULT: function DEFAULT() {\n _logger.$logger.info('wps_interstitial_ineligible - Unhandled contingency');\n return _uiRouter.$state.go('checkout.done');\n }\n },\n validation: function validation(res) {\n _logger.$logger.info('wps_interstitial_ineligible_SERVICE_VALIDATION_ERROR');\n return _uiRouter.$state.go('checkout.done');\n },\n error: function error(res) {\n _logger.$logger.info('wps_interstitial_ineligible_SERVICE_ERROR');\n return _uiRouter.$state.go('checkout.done');\n }\n });\n } else {\n if (_this3.flags.poma_flow) {\n _logger.$logger.info('LOGGING_OUT_WPS_POMA_FLOW_FOR_CLEARING_COOKIES');\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 _this3.models.auth.action('logout').then(function () {\n return _uiRouter.$state.go('checkout.done');\n });\n }\n // wps done route\n return _uiRouter.$state.go('checkout.done');\n }\n } else {\n if (_this3.flags.poma_flow) {\n _logger.$logger.info('LOGGING_OUT_POMA_FLOW_FOR_CLEARING_COOKIES');\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 _this3.models.auth.action('logout').then(function () {\n return _uiRouter.$state.go('checkout.end');\n });\n }\n // end otherwise\n return _uiRouter.$state.go('checkout.end');\n }\n };\n\n var authorize = function authorize() {\n var checkoutSession = _index2.$CheckoutSessionModel.instance(_this3.token);\n var checkoutAppData = _this3.models.checkoutAppData;\n var wpsSubscriptionFlow = checkoutAppData.is_wps_subscription_flow();\n var doEcOnApprove = checkoutAppData.doec_on_approve();\n\n return checkoutSession.action('authorize', {\n success: function success() {\n if (wpsSubscriptionFlow) {\n return (0, _util2.redirectToSubscriptionFinalRoute)(_this3.flags.mode);\n } else if (doEcOnApprove) {\n return checkInventoryAndPay(checkoutSession);\n } else {\n return finalRoute();\n }\n }\n });\n };\n\n var setStickyFIAndAuthorize = function setStickyFIAndAuthorize() {\n var checkoutSession = _index2.$CheckoutSessionModel.instance(_this3.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 var postCheckoutSessionOperations = function postCheckoutSessionOperations(dccComplete) {\n var checkoutSession = _index2.$CheckoutSessionModel.instance(_this3.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 && _this3.onboard.card && !_this3.onboard.card.currencyConvData) {\n _logger.$logger.info('render_currency_conversion_lightbox');\n if (_this3.flags.wpsInterstitialEligible) {\n _logger.$logger.info('wps_interstitial_render_dcc');\n }\n _this3.launchCurrencyConversionLightbox = true;\n return;\n }\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 this.onCompleteDCC = function (result) {\n // TODO: this if condition never gets hit, refine the code\n if (result === 'close') {\n _logger.$logger.info('BUG_not_calling_setStickyFI_here');\n _this3.launchCurrencyConversionLightbox = false;\n return;\n } else {\n _this3.launchCurrencyConversionLightbox = false;\n return postCheckoutSessionOperations(true);\n }\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.payer && checkoutSession.payer.id,\n intent: _this3.models.checkoutCart.payment_action,\n wa_type: wpsParams && wpsParams.wa_type,\n correlation_id: _squid.$meta.correlationId,\n merchant_id: _this3.models.payee.get('merchant.id'),\n custom: _this3.models.checkoutCart.get('purchase.custom'),\n invoice: _this3.models.checkoutCart.get('purchase.invoice')\n },\n\n success: function success(result) {\n _angular.$rootScope.paymentComplete = true;\n _this3.onboard.payerId = checkoutSession.payer && checkoutSession.payer.id;\n _this3.onboard.transaction = result.transactionDetails && result.transactionDetails.id;\n if (_index.$config.enableShoppingCartWPS && _this3.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: _this3.flags.mode\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 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 = _this3.models.checkoutCart.get('cartHasInventory');\n if (cartHasInventory) {\n var inventoryModel = _index6.$InventoryModel.instance(_angular.$rootScope.token);\n var inventoryItems = inventoryModel.getInventoryItems();\n var purchaseItems = _this3.models.checkoutCart.get('purchaseUnits');\n var cartItems = void 0,\n inventoryPatchInput = {};\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: _this3.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 = _this3.models.checkoutCart.get('purchaseUnits')[0];\n purchase_unit.item_list.items = patchResponse.cartItems;\n var patchCartPayload = {\n id: _this3.token,\n patchEntities: [{\n field: 'inventoryItems',\n value: purchase_unit.item_list.items\n }]\n };\n\n return _this3.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 return shoppingCartModel.action('cartCheckedOut', {\n data: {\n payee_email: _this3.models.checkoutAppData.get('merchant.merchant_email')\n },\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 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 // 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 _this3.errorMessage = _util.$fiErrorUtil.addPageErrors(data, fundingInstrument);\n\n if (!_this3.errorMessage) {\n _this3.errorMessage = {\n msgs: [_index.$locale.content.get(fundingInstrument + '.errorGeneral')],\n type: 'error'\n };\n }\n\n errorHandlerHelper.scrollToElement();\n };\n\n this.handleAddFIContingencies = function (data, fundingInstrument, action) {\n if (action === 'signup') {\n handleCardContingencySignup(data);\n } else {\n _this3.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\n // remove the page level errors\n _this3.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 _this3.onboard.shipping_address_validation = _this3.flags.allowEditShipping && !_this3.flags.shipToBilling;\n _this3.onboard.billing_address.country = _index.$locale.country;\n\n _this3.onboard.skipInitiateAuth = true;\n\n _this3.onboard.poma_flow = _this3.flags.poma_flow;\n _this3.onboard.content_identifier = getContentIdentifier(_this3.flags.tcpa_identifier);\n _this3.onboard.prox_flow = _this3.models.checkoutInputData.isEbayTxn();\n\n // Set Free Return Shipping Opt-in flow applicability flag\n _this3.onboard.frs_optin_flow_applicable = _this3.flags.freeReturnShippingOptInFlowApplicable;\n _this3.onboard.frs_optin_active_flow = _this3.flags.freeReturnShippingOptInActiveFlow;\n\n // merchantCountry, merchantPreferences, and isUnbranded are needed to check for guest eligibility\n var _merchantPreferences = _this3.merchantPreferences;\n _merchantPreferences = _merchantPreferences === undefined ? {} : _merchantPreferences;\n var merchant_preferences = _merchantPreferences.model;\n\n\n _this3.onboard.flow_eligibility_data = {\n is_unbranded: _this3.isUnbranded,\n merchant_preferences: merchant_preferences,\n merchant_country: _this3.merchantCountry\n };\n\n var action = void 0;\n // POMA should go in Singup rails, because poma usecase is passwordless member\n if (_this3.flags.poma_flow) {\n action = 'signup';\n } else {\n action = _this3.flags.mode === 'signup' ? 'signup' : 'guest';\n }\n\n return _this3.onboard.action(action, {\n\n data: _this3.onboard.serialize(),\n\n success: function success() {\n return _angular.$q.when().then(function () {\n if (_this3.flags.poma_flow) {\n var locale_code = _index.$locale.lang + '_' + _index.$locale.country;\n var locale_country = _index.$locale.country;\n return _ul.$ul.optInToOneTouch(_this3.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 (_this3.models.checkoutCart.isWalletTokenization()) {\n _logger.$logger.info('REDIRECT_' + _this3.subject + '_WALLET_TOKENIZATION');\n (0, _squid.$dispatch)('hermes', {\n token: _this3.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 (_this3.MORSDisplayed && _this3.MORSDisplayed.placementId === '202002') {\n _index12.$fireMORSBeacon.fireBeacon(_this3.MORSDisplayed.clickURL);\n }\n\n if (_this3.onboard.card && _this3.onboard.card.type === 'CUP' && _this3.onboard.fundingId) {\n _this3.onboard.card.id = _this3.onboard.fundingId;\n _this3.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 _this3.errorMessage = {\n msgs: errorHandlerHelper.getPageError('creditcard.linkedCardToAddNewCard'),\n type: 'error'\n };\n },\n BANK_LINKED_TO_FULL_ACCOUNT: function BANK_LINKED_TO_FULL_ACCOUNT() {\n _this3.errorMessage = {\n msgs: errorHandlerHelper.getPageError('bank.linkedBankError'),\n type: 'error'\n };\n },\n EXISTING_ACCOUNT_RESTRICTED: function EXISTING_ACCOUNT_RESTRICTED() {\n _this3.errorMessage = {\n msgs: errorHandlerHelper.getPageError('creditcard.riskDisallowed'),\n type: 'error'\n };\n },\n TOO_MANY_REQUESTS: function TOO_MANY_REQUESTS() {\n _this3.errorMessage = {\n msgs: errorHandlerHelper.getPageError('genericError.genericError'),\n type: 'error'\n };\n },\n VALIDATE_BANK_CONTINGENCY: function VALIDATE_BANK_CONTINGENCY(name, data) {\n _this3.errorMessage = _util.$fiErrorUtil.addPageErrors(data, _this3.locale, 'bank');\n _util.$fiErrorUtil.addFieldErrors(data, _this3.sectionElement);\n },\n ADD_CARD_CONTINGENCY: function ADD_CARD_CONTINGENCY(result, err) {\n _this3.handleAddFIContingencies(err, 'creditcard', action);\n },\n ADD_BANK_CONTINGENCY: function ADD_BANK_CONTINGENCY(result, err) {\n _this3.handleAddFIContingencies(err, 'bank', action);\n },\n RISK_DISALLOWED: function RISK_DISALLOWED() {\n _this3.errorMessage = {\n msgs: errorHandlerHelper.getPageError('creditcard.riskDisallowed'),\n type: 'error'\n };\n },\n COUNTRY_NOT_SUPPORTED: function COUNTRY_NOT_SUPPORTED() {\n _this3.errorMessage = {\n msgs: errorHandlerHelper.getPageError('creditcard.complianceDecline'),\n type: 'error'\n };\n },\n VALIDATION_ERROR: function VALIDATION_ERROR(message, errorData) {\n var errorMsgs = errorHandlerHelper.errorHandler(message, errorData, _this3.actions.positionToErrorField);\n\n if (errorMsgs && errorMsgs.length > 0) {\n _this3.errorMessage = {\n msgs: errorMsgs,\n type: 'error'\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), _this3.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 (_this3.flags.allowEditShipping) {\n var shippingAddress = _this3.onboard.shipping_address;\n shippingAddress.recipient_name = shippingAddress.first_name + ' ' + shippingAddress.last_name;\n return shippingAddress.save({\n data: _this3.onboard.shipping_address.serialize(),\n validation: function validation(message, errorData) {\n var errorMsgs = errorHandlerHelper.errorHandler(message, errorData, _this3.actions.positionToErrorField);\n\n if (errorMsgs && errorMsgs.length > 0) {\n _this3.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(_this3.token);\n\n return checkoutSession.action('create', {\n data: {\n fraudnet_id: _this3.models.checkoutCart.supplementary && _this3.models.checkoutCart.supplementary.risk_correlation_id,\n baToken: _this3.models.checkoutCart.billing && _this3.models.checkoutCart.billing.ba_token,\n cc_login_account_number: _this3.onboard.cc_login_account_number,\n email_login_account_number: _this3.onboard.email_login_account_number\n },\n\n success: function success() {\n return _angular.$q.when().then(addShippingAddress).then(function () {\n /*\n * If checkoutSession has DCC enabled, then we do updateConversion call and upate to VENDOR if:\n * 1. Pre-Plan (Non-Visa DCC) if VENDOR was selected in interstitial from link on Billing page,\n * otherwise PAYPAL is default selection.\n * 2. Post-Plan (Visa DCC) default selection to VENDOR for signup case, since we don't show DCC\n * interstitial for signup experience.\n */\n var conversionPayPalAndChangeable = checkoutSession.get('plan.conversion.paypal') && checkoutSession.get('plan.conversion.changeable');\n var isSignupWithNoConversion = _this3.flags.mode === 'signup' && !_this3.onboard.card.currencyConvData;\n var conversionIsVendor = _this3.onboard.card.ppconversion === 'VENDOR';\n\n if (conversionPayPalAndChangeable && (isSignupWithNoConversion || conversionIsVendor)) {\n return _index2.$FundingOptionsModel.instance(_this3.token).action('updateConversion', {\n data: {\n conversionType: 'VENDOR',\n planId: checkoutSession.plan.id\n }\n })['catch'](function (err) {\n return err;\n });\n }\n }).then(function () {\n if (checkoutSession.get('cvvData')) {\n checkoutSession.set('cvvData.security_code', _this3.onboard.get('card.security_code'));\n }\n\n return _fiApis.$fiApis.patchCvv(checkoutSession).then(postCheckoutSessionOperations, function (err) {\n _logger.$logger.error('patchCvv error', err);\n });\n });\n },\n\n contingencies: {\n TRANSACTION_REFUSED: showGenericError('TRANSACTION_REFUSED'),\n NEED_SHIPPING_ADDRESS: function NEED_SHIPPING_ADDRESS() {\n return _this3.onboard.shipping_address.save({\n data: _this3.onboard.shipping_address.serialize(),\n validation: function validation(message, errorData) {\n var errorMsgs = errorHandlerHelper.errorHandler(message, errorData, _this3.actions.positionToErrorField);\n\n if (errorMsgs && errorMsgs.length > 0) {\n _this3.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') && _this3.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: _this3.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 _this3.launchTravelRuleLightbox = true;\n }\n }\n });\n };\n\n this.onTravelRuleSuccess = function () {\n // Close travel rule lightbox if it is open\n _this3.launchTravelRuleLightbox = false;\n return createXO();\n };\n\n this.onUpopSuccess = function () {\n _this3.launchUpopScreen = false;\n return createXO();\n };\n\n this.onUpopCancel = function (errorData) {\n _this3.launchUpopScreen = false;\n\n if (_this3.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\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: _this3.onboard.card.last4()\n };\n _this3.errorMessage = _util.$fiErrorUtil.addPageErrors(errorData, 'confirmUpop', prop, 'error');\n }\n };\n\n this.uponNormalization = function (normalizedAddress, isBack) {\n _this3.showAddressNormalizationLightbox = false;\n\n var newBilling = _index8.$BillingAddressModel.create(_this3.token, normalizedAddress, {\n id: '0'\n });\n\n _this3.onboard.billing_address = newBilling;\n\n if (_this3.flags.shipToBilling) {\n _this3.onboard.shipping_address.first_name = _this3.onboard.user.first_name;\n _this3.onboard.shipping_address.last_name = _this3.onboard.user.last_name;\n }\n\n return _this3.onBoardAccount();\n };\n\n this.toggleAddressFieldsValidation = function (toggle) {\n\n if (_this3.flags.shipToBilling) {\n _this3.billingAddressValidated = toggle;\n } else {\n _this3.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 (_this3.onboard.phone.telephone) {\n _this3.onboard.phone.telephone = _this3.$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\n // Before submit the onboarding request, we need to make sure billing address country code is user selected country\n _this3.onboard.billing_address.country = _index.$locale.country;\n\n if (!billingCity) {\n delete _this3.onboard.billing_address.city;\n }\n\n if (!billingState) {\n delete _this3.onboard.billing_address.state;\n }\n\n if (!billingZip) {\n delete _this3.onboard.billing_address.postal_code;\n }\n\n if (_this3.flags.shipToBilling) {\n _this3.onboard.shipping_address = _index2.$ShippingAddressModel.create(_this3.token, _this3.onboard.billing_address, {\n first_name: _this3.onboard.user.first_name,\n last_name: _this3.onboard.user.last_name\n });\n } else {\n _this3.onboard.shipping_address.first_name = _this3.onboard.shipping_address.first_name || _this3.onboard.user.first_name;\n _this3.onboard.shipping_address.last_name = _this3.onboard.shipping_address.last_name || _this3.onboard.user.last_name;\n\n if (!shippingState) {\n delete _this3.onboard.shipping_address.state;\n }\n\n if (!shippingCity) {\n delete _this3.onboard.shipping_address.city;\n }\n\n if (!shippingZip) {\n delete _this3.onboard.shipping_address.postal_code;\n }\n\n // Shipping / Billing Address Difference Detection\n _this3.addrDiffDetected = compareShippingBillingAddrs(_this3.onboard.shipping_address, _this3.onboard.billing_address);\n if (_this3.addrDiffDetected) {\n var addrDiff = {\n is_ship_addr_diff: 1,\n page: 'main:ec:hermes::fullpage-billing:guest:hermes:'\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 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 (_this3.flags.wps_SnT_flow && !_this3.flags.allowSnTCall) {\n // SnT should be allowed if there is an contingency during OnBoard.\n _this3.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: _this3.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(_this3.token);\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 _this3.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 (_this3.flags.mode === 'signup') {\n // route to member review page upon patch xo throws contingency for signup\n routeToHermesOn3DSDeclineForSignUp();\n } else {\n _this3.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 _this3.launch3DSResolver = false;\n var checkoutSession = _index2.$CheckoutSessionModel.instance(_this3.token);\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 (_this3.flags.mode === 'signup') {\n routeToHermesOn3DSDeclineForSignUp();\n } else {\n // guest case\n _this3.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 (_this3.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 = _this3.sepaExperiment.sepaOverlay && _this3.sepaExperiment.sepaOverlay.treatment_name === 'XO_XOONBOARDING_SEPA_OVERLAY_TEST';\n if (sepaOverlayPXP) {\n _logger.$logger.info('checkout_fpti', { is_sepaOverlay: 1 });\n\n _this3.flags.show_sepa_overlay = true;\n } else {\n _logger.$logger.info('checkout_fpti', { is_sepaOverlay: 0 });\n _this3.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 var setSubmitButtonText = function setSubmitButtonText() {\n _this3.submitButtonText = $pageProps.submitButtonTextKey(_this3.flags, _this3.showNewSignupComplianceExp);\n };\n\n this.$watch('flags.mode', setSubmitButtonText);\n this.$watch('flags.poma_flow', setSubmitButtonText);\n\n this.openAndContinueSepaOverlay = function () {\n if (_this3.flags.show_sepa_overlay && !_this3.sepa.sepaGuestAgree) {\n _this3.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 = _this3.models.checkoutAppData.get('flags.is_invoice_flow') === true;\n\n if (isInvoicingFlow) {\n var merchantCountry = _this3.models.checkoutAppData.get('merchant.merchant_country');\n var payerCountry = _this3.locale.country;\n\n var isRTRAmount = void 0;\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 if (value && currency_code) {\n isRTRAmount = Number(value) > constants.RTRAmount;\n _this3.amountInPayerCurrency = (0, _squid.formatCurrency)(value, currency_code);\n _this3.hasCurrConversion = true;\n }\n } else {\n _this3.hasCurrConversion = false;\n\n var _ref = _this3.models.checkoutCart.get('purchase.amounts.total') || {},\n amount = _ref.amount,\n _currency_code = _ref.currency_code;\n\n isRTRAmount = Number(amount) > constants.RTRAmount && _currency_code === 'USD';\n }\n\n _this3.showInvoicingRegEMsg = isRTRAmount && merchantCountry !== 'US' && payerCountry === 'US';\n _this3.merchant = _this3.models.checkoutAppData.get('merchant');\n\n var _ref2 = _this3.models.checkoutCart.get('purchase.amounts.total') || {},\n amount_formatted_currency = _ref2.amount_formatted_currency;\n\n _this3.amountInInvCurrency = amount_formatted_currency;\n }\n };\n\n var setInvoicingRegEDetails = function setInvoicingRegEDetails(cardType) {\n if (cardType !== undefined && cardType !== 'VISA') {\n handleInvoicingRegE();\n } else {\n _this3.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 _this3.showInvoicingRegEMsg = false;\n }\n };\n this.$watch('onboard.card.currencyConvData', setInvoicingRegEDetailsWithConversion);\n } // populate\n\n },\n\n actions: {\n toggleFIMode: function toggleFIMode(event, mode) {\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\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 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.onboard.card.type === 'CUP' && this.onboard.card.isCupSecureCard) {\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 _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\n var addressNormalizationModel = new _index9.$AddressNormalizationModel({\n address: this.onboard.shipping_address\n });\n\n addressNormalizationModel.save({\n data: addressNormalizationModel,\n success: function success() {},\n contingencies: {\n VALIDATION_ERROR: function VALIDATION_ERROR() {}\n }\n });\n\n return this.onBoardAccount();\n }\n },\n positionToErrorField: function positionToErrorField() {\n var _this4 = 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 $(_this4).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_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_index9.$AddressNormalizationModel;\n\n_fiApis.$fiApis;\n\n_index10.$AuthModel;\n\n_logger.$logger;\n\n_uiRouter.$state;\n\n_index11.$DeviceInfo;\n\n_index12.$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_index13.$MerchantPreferenceModel;\nmodule.exports = exports['default'];\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"./components/jquery/dist/jquery.min.js\")))\n\n/***/ }),\n\n/***/ \"./components/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__(\"./components/squid/dist/index.js\");\n\n__webpack_require__(\"./components/xo-ui-components/src/directionality/directive.js\");\n\n__webpack_require__(\"./components/xo-ui-components/src/error-tooltip/directive.js\");\n\n__webpack_require__(\"./components/xo-validation/dist/directive.js\");\n\n__webpack_require__(\"./components/xo-guest-components/src/guest/emailInput/styles.less\");\n\nvar _template = __webpack_require__(\"./components/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: true\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 this.$watch('flags.mode', setEmailToolTip);\n }\n }\n});\n\n\n_squid.$Component;\nmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ \"./components/xo-guest-components/src/guest/emailInput/styles.less\":\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ \"./components/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\n/***/ \"./components/xo-guest-components/src/guest/lib/commonLib.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.SplitScreen = undefined;\n\nvar _squid = __webpack_require__(\"./components/squid/dist/index.js\");\n\nvar _logger = __webpack_require__(\"./components/xo-beaver/dist/logger.js\");\n\n/*\n * This function decides the experience on xoon based on url parameters\n * passed by UL/hermes team\n * return value meaning\n * isULSplitScreenExp - UL page was on split screen experience - pxp treatment\n * isAccountMatched - UL triggered accountMatch on user entered email and\n * they found a valid member account\n * userChoseGuest - user directly clicked on \"continue as guest\" button on\n * respective UL page - ulPage=email/pwd\n */\nvar SplitScreen = exports.SplitScreen = {\n getSplitScreenExperience: function getSplitScreenExperience() {\n /*\n * Values - email/pwd/noMatch\n * email - redirect from Split Screen first page - enter email page\n * user clicked on 'create as guest' button on email page\n * pwd - redirect from Split Screen second page - enter password page\n * user clicked on 'create as guest' button on password page\n * noMatch - redirect from Split Screen first page - enter email page\n * user entered email and there was no matching member account found\n * So, user got redirected to xoon automatically from UL\n */\n var ulPage = _squid.$util.param('ulPage');\n var ulPageOptions = ['noMatch', 'pwd'];\n\n // check for all possible values, as we dont want some random\n // value on ulPage to enable splitscreen flow\n if (ulPage && ulPageOptions.indexOf(ulPage) > -1) {\n\n _logger.$logger.info('checkout_fpti', {\n source_decisioning: ulPage\n });\n\n // userChoseGuest Param Description\n // If not equal to noMatch - means the user is not automatically\n // redirected to xoon, but user clicked on a button or link to\n // land on xoon, which means userChoseGuest\n return {\n isULSplitScreenExp: true,\n isAccountMatched: ulPage === 'pwd' ? true : false,\n userChoseGuest: ulPage !== 'noMatch' ? true : false\n };\n }\n\n // Default return values which disables all splitscreen features\n return {\n isULSplitScreenExp: false,\n isAccountMatched: false,\n userChoseGuest: false\n };\n }\n};\n\n_squid.$util;\n\n_logger.$logger;\n\n/***/ }),\n\n/***/ \"./components/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.errorHandler = exports.addFieldError = exports.get3dsPageWarning = exports.getPageError = exports.scrollToElement = undefined;\n\nvar _errorHandlerConstants = __webpack_require__(\"./components/xo-guest-components/src/guest/constants/errorHandlerConstants.js\");\n\nvar _squid = __webpack_require__(\"./components/squid/dist/index.js\");\n\nvar _logger = __webpack_require__(\"./components/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 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 $field.addClass('backendError');\n });\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 $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 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 $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) {\n var sectionElement = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : SECTION_ELEMENT;\n\n var messages = [];\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 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 if (errElMap) {\n var element = sectionElement + (errElMap.element ? ' ' + errElMap.element : '');\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 messages = getPageError(errElMap.pageError.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;\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__(\"./components/jquery/dist/jquery.min.js\")))\n\n/***/ }),\n\n/***/ \"./components/xo-guest-components/src/guest/lib/pageProps.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.getSplitScreenFlags = exports.submitButtonTextKey = exports.upopConfirmButtonTextKey = undefined;\n\nvar _constants = __webpack_require__(\"./components/xo-guest-components/src/guest/constants/constants.js\");\n\nvar constantsLib = _interopRequireWildcard(_constants);\n\nvar _logger = __webpack_require__(\"./components/xo-beaver/dist/logger.js\");\n\nvar _commonLib = __webpack_require__(\"./components/xo-guest-components/src/guest/lib/commonLib.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\nvar upopConfirmButtonTextKey = function upopConfirmButtonTextKey(flags) {\n var buttonTextKey = 'confirmUpop.confirmAndContinueToMerch';\n if (flags.wpsFlow) {\n buttonTextKey = 'confirmUpop.confirmAndContinue';\n } else if (flags.commit) {\n buttonTextKey = 'confirmUpop.confirmAndPay';\n }\n return buttonTextKey;\n};\n\nvar submitButtonTextKey = function submitButtonTextKey(flags, showNewSignupComplianceExp) {\n var getCommitOrContinueText = function getCommitOrContinueText(mode) {\n return constantsLib.submitButtonTextKeyMap[mode][showNewSignupComplianceExp ? 'US' : 'ROW'][flags.commit ? 'commit' : 'notCommit'];\n };\n\n var buttonTextKey = void 0;\n\n if (flags.show_poma_ui) {\n buttonTextKey = getCommitOrContinueText(flags.poma_flow ? 'pomaSignup' : 'guest');\n } else {\n buttonTextKey = getCommitOrContinueText(flags.mode === 'signup' ? 'signup' : 'guest');\n }\n\n return buttonTextKey;\n};\n\nvar getSplitScreenFlags = function getSplitScreenFlags(mode) {\n\n var splitScreenExp = _commonLib.SplitScreen.getSplitScreenExperience();\n\n // Initial values - SplitScreenFlags\n var ssFlags = {\n showSplitScreenExp: false,\n prefillEmailFromCookie: false,\n showSplitScreenFGAWarning: false,\n isSplitScreenUserChoseGuest: splitScreenExp.userChoseGuest\n };\n\n // If we do not find ulPage param in the url\n if (!splitScreenExp.isULSplitScreenExp) {\n return ssFlags;\n }\n\n // Enable forced signup only for \"optional Signup\" (mode = guest) flow\n if (splitScreenExp.isAccountMatched && mode === 'guest') {\n\n // We use flags.mode to change view, where as this.mode is a static\n // value throughout lifecycle of app\n // this.mode is carried from pages/xo-guest and pages/xo-signup\n ssFlags.prefillEmailFromCookie = true;\n } else if (splitScreenExp.isAccountMatched && mode === 'signup') {\n /*\n * This case can only be hit when user changes his default selected country\n * DETAILS:\n * User should not be given an option to redirect to xoon on UL, when UL has\n * detected that the user has a matching member account and the token is\n * only eligible for signup.\n * HOW TO HIT THIS CASE:\n * So, when user lands on xoon with a matching member account on UL, and the\n * token is eligible for optional signup, we show forced guest - mode=guestonly\n * But, when user changes his default selected country to a different country,\n * and the new country FGA rule says the token is eligible for forced signup,\n * then we need to show a specific error message to user.\n */\n\n _logger.$logger.info('checkout_fpti', {\n from: mode,\n to: 'process_change_cntry',\n int_error_code: '0',\n int_error_description: 'FGA_splitscreen_warning_msg_shown'\n });\n\n ssFlags.showSplitScreenFGAWarning = true;\n } else {\n ssFlags.showSplitScreenExp = true;\n ssFlags.prefillEmailFromCookie = true;\n }\n\n return ssFlags;\n};\n\nexports.upopConfirmButtonTextKey = upopConfirmButtonTextKey;\nexports.submitButtonTextKey = submitButtonTextKey;\nexports.getSplitScreenFlags = getSplitScreenFlags;\n\n\n_logger.$logger;\n\n_commonLib.SplitScreen;\n\n/***/ }),\n\n/***/ \"./components/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__(\"./components/squid/dist/index.js\");\n\n__webpack_require__(\"./components/xo-ui-components/src/error-tooltip/directive.js\");\n\n__webpack_require__(\"./components/xo-guest-components/src/guest/nationality/styles.less\");\n\nvar _template = __webpack_require__(\"./components/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 _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/***/ \"./components/xo-guest-components/src/guest/nationality/styles.less\":\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ \"./components/xo-guest-components/src/guest/nationality/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n \\n \\n
\"\n\n/***/ }),\n\n/***/ \"./components/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__(\"./components/squid/dist/index.js\");\n\nvar _angular = __webpack_require__(\"./components/angular/angular.min.js\");\n\nvar _index2 = __webpack_require__(\"./components/xo-models/src/user/index.js\");\n\nvar _index3 = __webpack_require__(\"./components/xo-models/src/checkout/index.js\");\n\nvar _index4 = __webpack_require__(\"./components/xo-models/src/profilemanagement/index.js\");\n\nvar _index5 = __webpack_require__(\"./components/xo-models/src/frs/index.js\");\n\nvar _logger = __webpack_require__(\"./components/xo-beaver/dist/logger.js\");\n\nvar _uiRouter = __webpack_require__(\"./components/angular-ui-router/release/angular-ui-router.min.js\");\n\nvar _index6 = __webpack_require__(\"./components/xo-device-info/dist/index.js\");\n\nvar _contentKeys = __webpack_require__(\"./components/xo-guest-components/src/lib/contentKeys.js\");\n\nvar _pxpExperimentConstants = __webpack_require__(\"./components/xo-guest-components/src/guest/constants/pxpExperimentConstants.js\");\n\nvar _pxpExperimentConstants2 = _interopRequireDefault(_pxpExperimentConstants);\n\n__webpack_require__(\"./components/xo-guest-components/src/guest/onboardOptions/guest/directive.js\");\n\n__webpack_require__(\"./components/xo-guest-components/src/guest/onboardOptions/signup/directive.js\");\n\n__webpack_require__(\"./components/xo-page-components/src/marketingOffers/directive.js\");\n\nvar _template = __webpack_require__(\"./components/xo-guest-components/src/guest/onboardOptions/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\nvar _commonLib = __webpack_require__(\"./components/xo-guest-components/src/guest/lib/commonLib.js\");\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: _index3.$CheckoutPayeeModel.instance(this.token).retrieve(),\n checkoutAppData: _index3.$CheckoutAppDataModel.instance(this.token).retrieve(),\n checkoutCart: _index3.$CheckoutCartModel.instance(this.token).retrieve(),\n flowEligibility: _index3.$FlowEligibilityModel.instance(this.token).retrieve()\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 isRP: models.checkoutCart.get('billing.type') === 'RECURRING_PAYMENTS',\n showBAContent: models.checkoutCart.isBilling() && !models.checkoutCart.isWalletTokenization()\n };\n\n Object.assign(_this.flags, flowFLags);\n _this.flags.flowName = flowFLags.isEcFlow ? 'ec' : 'wps';\n\n return _index4.$MerchantPreferenceModel.instance(id).retrieve().then(function (merchantPreferences) {\n _this.flags.merchantPreferences = merchantPreferences;\n });\n });\n },\n experiments: function experiments() {\n var experiment = 'xo_xoonboarding_dcc_';\n var pilotCountries = ['US', 'GB', 'CA', 'AU'];\n\n if (pilotCountries.includes(_index.$locale.country)) {\n experiment += 'pilot';\n } else if (_index.$config.regions.EMEA.includes(_index.$locale.country)) {\n experiment += 'emea';\n } else {\n experiment += 'row';\n }\n\n return {\n optionalSignupContent: (0, _index.$pxp)('xoon_optional_signup_content_change', { 'ctx.COUNTRY': _index.$locale.country }, '(xoon_optional_signup_content_change_)(.*)'),\n dccEligibility: (0, _index.$pxp)(experiment, { 'ctx.COUNTRY': _index.$locale.country }, experiment + '_treatment')\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 var splitScreenExp = _this2.splitScreenExp.isAccountMatched;\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 (!splitScreenExp && !wpsAutoreturnPdtEnabled && !ecSignupWalletTokenization && (_this2.flags.isWpsFlow || _this2.flags.isEcFlow)) {\n var pageName = _pxpExperimentConstants2['default'].test['frsPageName'][_this2.flags.flowName][_this2.mode];\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 this.splitScreenExp = _commonLib.SplitScreen.getSplitScreenExperience();\n },\n populate: function populate() {\n var _this3 = this;\n\n this.showBillingAgreementText = this.flags.showBAContent && !this.flags.isRP && !this.flags.isWpsSubscription;\n this.showRpAgreementText = this.flags.showBAContent && (this.flags.isRP || this.flags.isWpsSubscription);\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.showSplitScreenExp && !_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 };\n\n this.baContentKey = (0, _contentKeys.getBAContentKey)(contentOpts);\n this.rpContentKey = (0, _contentKeys.getRPContentKey)(contentOpts);\n\n var setDCCEligibilityFlag = function setDCCEligibilityFlag() {\n if (_this3.mode !== 'signup') {\n var _experiments$dccEligi = _this3.experiments.dccEligibility;\n _experiments$dccEligi = _experiments$dccEligi === undefined ? {} : _experiments$dccEligi;\n var treatment_name = _experiments$dccEligi.treatment_name;\n\n\n _this3.flags.dccCountryEligibility = treatment_name;\n }\n };\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 && !_this3.flags.isInvoiceFlow) {\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 if (_this3.splitScreenExp.isAccountMatched) {\n _logger.$logger.info('wps_interstitial_not_eligible_splitscreen_account_matched');\n return;\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 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 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 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 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 _index5.$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 _this3.frsContentKeys = treatmentContentKeys ? treatmentContentKeys : {};\n }\n }\n });\n }\n };\n\n var setSplitScreenGuestOnlyEligibility = function setSplitScreenGuestOnlyEligibility() {\n if (_this3.mode === 'guest' && _this3.flags.isSplitScreenUserChoseGuest) {\n _logger.$logger.info('splitscreen_user_chose_guest_on_ul_page_xoon_guest_only_eligible');\n _this3.mode = 'guestonly';\n }\n };\n\n var setFlagsPostFlowEligibility = function setFlagsPostFlowEligibility() {\n var trackingModes = ['guest', 'guestonly'];\n _this3.flags.track_submit_transition = trackingModes.includes(_this3.mode) ? 'guest_xo' : 'signup';\n\n checkWPSInterstitialEligibility();\n setDCCEligibilityFlag();\n setOptionalSignupPromotionContent();\n setSplitScreenGuestOnlyEligibility();\n\n // POMA - Passwordless Onboarding of Member Accounts\n if (_this3.mode === 'guest' && _index.$locale.country === 'US' && !_index6.$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.$CheckoutAppDataModel;\n\n_index3.$CheckoutPayeeModel;\n\n_index3.$CheckoutCartModel;\n\n_index3.$FlowEligibilityModel;\n\n_index4.$MerchantPreferenceModel;\n\n_index5.$FreeReturnShippingApplicabilityModel;\n\n_logger.$logger;\n\n_uiRouter.$state;\n\n_index6.$DeviceInfo;\n\n_contentKeys.getBAContentKey;\n\n_contentKeys.getRPContentKey;\n\n_commonLib.SplitScreen;\nmodule.exports = exports['default'];\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"./components/jquery/dist/jquery.min.js\")))\n\n/***/ }),\n\n/***/ \"./components/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__(\"./components/squid/dist/index.js\");\n\nvar _template = __webpack_require__(\"./components/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: true\n },\n onboard: {\n type: 'var',\n required: true\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 lifecycle: {\n enter: function enter() {\n this.locale = _squid.$locale;\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;\nmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ \"./components/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
{{ content('largeScreenAccountCreation.agrementError') }}
\\n \\n \\n
\\n
\\n
{{ content('largeScreenAccountCreation.agrementError') }}
\\n \\n \\n
\\n
\\n
\\n\"\n\n/***/ }),\n\n/***/ \"./components/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__(\"./components/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 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 var GDPRpxpTreatment = arguments[2];\n\n if (isGDPRCountry) {\n // We need this check after isGDPRCountry check, as pxp is not\n // having in-context rule to handle country settings\n return GDPRpxpTreatment.indexOf('control') === -1;\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 var GDPRpxpTreatment = arguments[2];\n\n if (isGDPRCountry) {\n // We need to check only for 'treatment' as other two variants\n // 'force_GDPR' and 'control' do not display the checkbox to users\n if (GDPRpxpTreatment.indexOf('treatment_a') > -1) {\n return 'signupTerms.agreeMarketingV1';\n } else if (GDPRpxpTreatment.indexOf('treatment_b') > -1) {\n return 'signupTerms.agreeMarketingV2';\n }\n }\n\n // GDPR config overrides all country specific config\n return 'signupTerms.agreeMarketing';\n};\n\nvar getSignupTermsContentKey = function getSignupTermsContentKey(_ref) {\n var _ref$country = _ref.country,\n country = _ref$country === undefined ? _squid.$locale.country : _ref$country,\n isUnbranded = _ref.isUnbranded,\n fiMode = _ref.fiMode,\n isGDPRCountry = _ref.isGDPRCountry,\n GDPRpxpTreatment = _ref.GDPRTermsAndMarketingTreatment;\n\n\n if (country === 'US') {\n return 'signupTerms.signupTCPA3';\n }\n\n // GDPR pxp treatment check\n if (isGDPRCountry && GDPRpxpTreatment.indexOf('treatment') > -1) {\n return 'signupTerms.GDPRAgreeTerms';\n }\n\n if (isUnbranded) {\n return fiMode === 'bank' ? 'signupTerms.signupBankUnBranded' : 'signupTerms.signupC';\n }\n\n return fiMode === 'bank' ? 'signupTerms.signupBank' : '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/***/ \"./components/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__(\"./components/squid/dist/index.js\");\n\nvar _template = __webpack_require__(\"./components/xo-guest-components/src/guest/onboardOptions/signup/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\n__webpack_require__(\"./components/xo-form-components/src/place-of-birth/directive.js\");\n\n__webpack_require__(\"./components/xo-form-components/src/gender-type/directive.js\");\n\nvar _helper = __webpack_require__(\"./components/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 // refer to config.GDPR for countries list\n GDPRTermsAndMarketing: (0, _index.$pxp)('xo_xoon_GDPR_terms_marketing_checkbox', { 'ctx.COUNTRY': _index.$locale.country }, '(xo_xoon_GDPR_terms_marketing_checkbox_)(.*)'),\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 GDPRTermsAndMarketingTreatment = _index.$util.getProperty(this.experiments, 'GDPRTermsAndMarketing.treatment_name', { 'default': '' });\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, GDPRTermsAndMarketingTreatment);\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 if (!this.showMarketingOptin) {\n this.onboard.marketingOptin = true;\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, GDPRTermsAndMarketingTreatment);\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({\n country: _this.locale.country,\n isUnbranded: _this.isUnbranded,\n fiMode: _this.onboard.fiMode,\n isGDPRCountry: isGDPRCountry,\n GDPRTermsAndMarketingTreatment: GDPRTermsAndMarketingTreatment\n });\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 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_index.$util;\n\n_helper.signupLib;\nmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ \"./components/xo-guest-components/src/guest/onboardOptions/signup/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
\\n
\\n \\n
\\n
\\n {{ onboard.user.email }}\\n \\n \\n\\n \\n
\\n \\n \\n \\n \\n \\n \\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/***/ \"./components/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

{{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\"\n\n/***/ }),\n\n/***/ \"./components/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__(\"./components/squid/dist/index.js\");\n\nvar _angular = __webpack_require__(\"./components/angular/angular.min.js\");\n\nvar _jquery = __webpack_require__(\"./components/jquery/dist/jquery.min.js\");\n\nvar _jquery2 = _interopRequireDefault(_jquery);\n\n__webpack_require__(\"./components/xo-ui-components/src/directionality/directive.js\");\n\n__webpack_require__(\"./components/xo-ui-components/src/error-tooltip/directive.js\");\n\nvar _template = __webpack_require__(\"./components/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: true\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 if (this.singlePassword) {\n if (focused) {\n this.showPasswordTextToggleLink = true;\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 for (var i = 0; i < len - 3; i++) {\n if (sequences.indexOf(value.substr(i, 4)) > -1) {\n return false;\n }\n }\n return true;\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 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);\n passwordInputScope.setScopeProp('restrictionFourSequence', viewValue.length > 3 && !fourSequence(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'));\n\n ngModel.$setValidity('password', requirements && restrictions);\n passwordInputScope.setScopeProp('passwordToolTip', requirements && restrictions ? 'hide' : 'show');\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 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/***/ \"./components/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
\\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/***/ \"./components/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__(\"./components/squid/dist/index.js\");\n\nvar _logger = __webpack_require__(\"./components/xo-beaver/dist/logger.js\");\n\nvar _index = __webpack_require__(\"./components/xo-models/src/auth/index.js\");\n\n__webpack_require__(\"./components/xo-ui-components/src/modal/directive.js\");\n\n__webpack_require__(\"./components/xo-guest-components/src/guest/redirectingFromXoonWarning/styles.less\");\n\nvar _template = __webpack_require__(\"./components/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__(\"./components/jquery/dist/jquery.min.js\")))\n\n/***/ }),\n\n/***/ \"./components/xo-guest-components/src/guest/redirectingFromXoonWarning/styles.less\":\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ \"./components/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/***/ \"./components/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__(\"./components/angular/angular.min.js\");\n\nvar _index = __webpack_require__(\"./components/squid/dist/index.js\");\n\nvar _logger = __webpack_require__(\"./components/xo-beaver/dist/logger.js\");\n\nvar _errorHandlerHelper = __webpack_require__(\"./components/xo-guest-components/src/guest/lib/errorHandlerHelper.js\");\n\nvar errorHandlerHelper = _interopRequireWildcard(_errorHandlerHelper);\n\nvar _index2 = __webpack_require__(\"./components/xo-models/src/shippingMethod/index.js\");\n\nvar _index3 = __webpack_require__(\"./components/xo-models/src/checkout/index.js\");\n\nvar _template = __webpack_require__(\"./components/xo-guest-components/src/guest/select-shipping-method/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\n__webpack_require__(\"./components/xo-ui-components/src/error-tooltip/directive.js\");\n\n__webpack_require__(\"./components/xo-guest-components/src/guest/select-shipping-method/shipping-method-dropdown/directive.js\");\n\n__webpack_require__(\"./components/xo-guest-components/src/guest/select-shipping-method/styles.less\");\n\nvar _util = __webpack_require__(\"./components/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: true\n },\n billingAddress: {\n type: 'var',\n required: true\n },\n shippingAddress: {\n type: 'var',\n required: true\n },\n isShippingSameAsBilling: {\n type: 'var',\n required: true\n },\n showShipping: {\n type: 'var',\n required: false\n },\n buttonParams: {\n type: 'var',\n required: true\n },\n updatePageLevelErrorMessage: {\n type: 'var',\n required: false\n },\n flags: {\n type: 'var',\n required: true\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 Object.keys(patchableAmountEntities).forEach(function (key) {\n var detail = patchableAmountEntities[key];\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 newTotal += difference;\n });\n amounts.total = newTotal.toFixed(decimalDigits);\n Object.keys(constantAmountEntities).forEach(function (key) {\n var detail = constantAmountEntities[key];\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 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 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 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 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 _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 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 _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 _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 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 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 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 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 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 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 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 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 amount = (parseInt(charge.shipping_charge.shipping_amount.value, 10) / 100).toFixed(2);\n\n var currencyCode = charge.shipping_charge.shipping_amount.currency_code;\n\n var formattedAmount = (0, _index.formatCurrency)(amount, currencyCode);\n\n var 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 displayCurrency = shippingCurrency;\n\n var displayShippingDeliveryTime = prefix(shippingDeliveryTime, ' \\\\n ');\n\n // Format insurance if available\n var insuranceCurrency = '';\n if (charge.shipping_charge.insurance_amount) {\n var insuranceAmount = (parseInt(charge.shipping_charge.insurance_amount.value, 10) / 100).toFixed(2);\n\n var insuranceCurrencyCode = charge.shipping_charge.insurance_amount.currency_code;\n\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: displayCurrency,\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 _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 _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 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 taxAmt = void 0,\n insuranceAmt = void 0,\n methodType = void 0;\n // SnT service always returns FALLBACK response when no_shipping = 1\n if (_this.response.shipping_options_source === 'FALLBACK' && !isNaN(_this.defaultFallbackOptionIndex)) {\n var defaultOption = _this.fallbackShippingOptions[_this.defaultFallbackOptionIndex];\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.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.merchantId });\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 applicableShippingAmt = safeConvert(_this.response.charges[0].shipping_charge.shipping_amount.value);\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.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 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 var merchant = this.models.checkoutAppData && this.models.checkoutAppData.merchant;\n this.merchantId = merchant.brand_name || merchant.merchant_name || merchant.merchant_email;\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__(\"./components/jquery/dist/jquery.min.js\")))\n\n/***/ }),\n\n/***/ \"./components/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__(\"./components/squid/dist/index.js\"), __webpack_require__(\"./components/jquery/dist/jquery.min.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (squid, $) {\n\n squid.module('xo-shipping-method-dropdown.directive', ['squid']).directive('xoShippingMethodDropDown', 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 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 $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 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 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/***/ \"./components/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/***/ \"./components/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/***/ \"./components/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__(\"./components/squid/dist/index.js\");\n\nvar _errorHandlerHelper = __webpack_require__(\"./components/xo-guest-components/src/guest/lib/errorHandlerHelper.js\");\n\nvar errorHandlerHelper = _interopRequireWildcard(_errorHandlerHelper);\n\nvar _util = __webpack_require__(\"./components/xo-wallet-components/src/fi-contingency-list/util.js\");\n\nvar _index = __webpack_require__(\"./components/xo-models/src/fi/index.js\");\n\nvar _angular = __webpack_require__(\"./components/angular/angular.min.js\");\n\nvar _template = __webpack_require__(\"./components/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 _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/***/ \"./components/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/***/ \"./components/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__(\"./components/squid/dist/index.js\");\n\nvar _logger = __webpack_require__(\"./components/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/***/ \"./components/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

    {{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

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

    \\n

    \\n \\n \\n
    \\n\\n \\n\\n
    \\n
    \\n {{ content('billingAgreement.invoicingRegEMsg', {merchantName: merchant.brand_name || merchant.merchant_email, amountInInvCurrency: amountInInvCurrency}) }}\\n
    \\n
    \\n {{ content('billingAgreement.invoicingRegEMsgWithCurrConversion', {amountInPayerCurrency: amountInPayerCurrency, merchantName: merchant.brand_name || merchant.merchant_email, 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/***/ \"./components/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__(\"./components/squid/dist/index.js\");\n\nvar _angular = __webpack_require__(\"./components/angular/angular.min.js\");\n\nvar _template = __webpack_require__(\"./components/xo-guest-components/src/guest/travelRuleLightbox/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\n__webpack_require__(\"./components/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: true\n },\n doneFn: {\n type: 'var',\n required: true\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/***/ \"./components/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/***/ \"./components/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 signupSplitScreen: 'splitScreenExp.signupOnboardTitle',\n guestSplitScreen: defaultGuestTitleContentKey,\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};\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 signupSplitScreen: 'common.buyerProtectionSignup',\n guestSplitScreen: defaultGuestTitlePropsContentKey,\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};\n\nexports.titleTreatmentKeyToContentKeyMapping = titleTreatmentKeyToContentKeyMapping;\nexports.titlePropsTreatmentKeyToContentKeyMapping = titlePropsTreatmentKeyToContentKeyMapping;\n\n/***/ }),\n\n/***/ \"./components/xo-guest-components/src/guest/xoonHeader/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\n__webpack_require__(\"./components/xo-guest-components/src/guest/xoonHeader/styles.less\");\n\nvar _template = __webpack_require__(\"./components/xo-guest-components/src/guest/xoonHeader/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\nvar _squid = __webpack_require__(\"./components/squid/dist/index.js\");\n\nvar _lib = __webpack_require__(\"./components/xo-guest-components/src/guest/xoonHeader/lib.js\");\n\nvar _constants = __webpack_require__(\"./components/xo-guest-components/src/guest/xoonHeader/constants.js\");\n\nvar _index = __webpack_require__(\"./components/xo-models/src/app/index.js\");\n\nvar _index2 = __webpack_require__(\"./components/xo-models/src/checkout/index.js\");\n\nvar _index3 = __webpack_require__(\"./components/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 };\n },\n experiments: function experiments() {\n return {\n showEmailCheckInfoBox: (0, _squid.$pxp)('xo_split_screen_header_email_change', { 'ctx.COUNTRY': _squid.$locale.country }, 'xo_split_screen_header_email_change_treatment_b'),\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 },\n\n lifecycle: {\n enter: function enter() {\n var loginRedirectUrl = (0, _squid.$getRedirectUrl)('hermes', {\n hermesLoginRedirect: 'xoon'\n });\n\n this.locale = _squid.$locale;\n this.currentCountryName = _squid.$util.getProperty(this.locale, 'metadata.localization.countryName', { 'default': this.locale.country });\n\n // email check information message - variant 2 on split screen exp\n // exp name - xo_split_screen_header_email_change\n this.emailCheckInfo = {\n msgKeys: ['splitScreenExp.changeEmailInfo'],\n type: 'info'\n };\n\n /*\n * This key is valid in Country Change case\n * Country 1 config - Optional signup - UL found a account match in splitscreen\n * In Country 1, user sees forced guest as UL found a matching account for\n * user's account (As part of split screen account match)\n *\n * NOW USER CHANGE COUNTRY\n *\n * Country 2 config - Forced signup - UL already found an account match in splitscreen\n * In country 2, as we have already found a matching account for user entered\n * email address in UL Split Screen flow, we want to show a specific warning message\n * to user, as the email they entered in split screen first page, already has a\n * member account\n */\n this.splitScreenFGAWarningMsg = {\n msgKeys: ['splitScreenExp.FGAWarningMsg'],\n type: 'warning',\n compileWith: {\n href: loginRedirectUrl\n }\n };\n },\n populate: function populate() {\n var _this = this;\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) || titleSubtitleContentExpTreatment || _this.props.mode;\n var pageTitlePropsFlowContextKey = (0, _lib.getPageTitlePropsContextKey)(_this.models, _this.subject) || 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 setSplitScreenPXPFlags = function setSplitScreenPXPFlags() {\n\n // Set splitscreen title and subtitle content key\n _this.pageTitleContentKey = _constants.titleTreatmentKeyToContentKeyMapping[_this.props.mode + 'SplitScreen'] || _this.props.mode;\n _this.pageTitlePropsContentKey = _constants.titlePropsTreatmentKeyToContentKeyMapping[_this.props.mode + 'SplitScreen'] || _this.props.mode;\n\n if (_this.experiments.showEmailCheckInfoBox) {\n // This enables diplay of a message to user right above email id\n // about checking their email address before proceeding further\n _this.showEmailCheckInfoBox = true;\n }\n };\n\n var setInitialFlags = function setInitialFlags() {\n if (_this.flags.showSplitScreenExp) {\n setSplitScreenPXPFlags();\n } else {\n setTitleSubtitleContentAndFlags();\n }\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\n_squid.$Component;\n\n_squid.$locale;\n\n_squid.$getRedirectUrl;\n\n_squid.$pxp;\n\n_squid.$util;\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_index3.$CheckoutInputDataModel;\nmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ \"./components/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__(\"./components/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) {\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 (mode === 'guest') {\n return 'guest';\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) {\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\nexports.getPageTitleContextKey = getPageTitleContextKey;\nexports.getPageTitlePropsContextKey = getPageTitlePropsContextKey;\n\n\n_logger.$logger;\n\n/***/ }),\n\n/***/ \"./components/xo-guest-components/src/guest/xoonHeader/styles.less\":\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ \"./components/xo-guest-components/src/guest/xoonHeader/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
    \\n \\n\\n

    \\n

    \\n\\n \\n\\n
    \\n {{ user.email }}\\n \\n
    \\n
    \\n\"\n\n/***/ }),\n\n/***/ \"./components/xo-guest-components/src/lib/contentKeys.js\":\n/***/ (function(module, exports) {\n\n\n\nexports.__esModule = true;\n/**\n * Returns the appropriate billing agreement xo-content key.\n *\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\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 keySuffix = type + 'Sticky' + 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\n/***/ }),\n\n/***/ \"./components/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__(\"./components/angular/angular.min.js\");\n\nvar _squid = __webpack_require__(\"./components/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\n var protocol = _angular.$window.location.protocol + '//';\n var stageUrl = _squid.$meta.stage || _angular.$window.location.hostname;\n var subscriptionReturnUri = _squid.$config.urls.wpsSubscriptionReturnUrl;\n var params = {\n token: _squid.$meta.token,\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/***/ \"./components/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__(\"./components/squid/dist/index.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!./components/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: function controller($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/***/ \"./components/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\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"./components/angular/angular.min.js\"), __webpack_require__(\"./components/squid/dist/index.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!./components/xo-guest-components/src/multistep-signup/addCard/template.html\"), __webpack_require__(\"./components/xo-guest-components/src/multistep-signup/lib/util.js\"), __webpack_require__(\"./components/xo-page-components/src/value-props/directive.js\"), __webpack_require__(\"./components/xo-form-components/src/phone/phoneInput/directive.js\"), __webpack_require__(\"./components/xo-form-components/src/name-input/directive.js\"), __webpack_require__(\"./components/xo-guest-components/src/guest/emailInput/directive.js\"), __webpack_require__(\"./components/xo-guest-components/src/guest/passwordInput/directive.js\"), __webpack_require__(\"./components/xo-guest-components/src/guest/countryList/directive.js\"), __webpack_require__(\"./components/xo-guest-components/src/guest/sepa/directive.js\"), // TODO: Check if its used\n__webpack_require__(\"./components/xo-guest-components/src/guest/select-shipping-method/directive.js\"), __webpack_require__(\"./components/xo-models/src/onboard/index.js\"), __webpack_require__(\"./components/xo-guest-components/src/login-button/directive.js\"), __webpack_require__(\"./components/xo-locale/dist/index.js\"), __webpack_require__(\"./components/xo-locale/dist/helper.js\"), __webpack_require__(\"./components/xo-models/src/address/index.js\"), __webpack_require__(\"./components/xo-models/src/checkout/index.js\"), __webpack_require__(\"./components/xo-models/src/shippingMethod/index.js\"), __webpack_require__(\"./components/xo-ui-components/src/ui-utils/directive.js\"), __webpack_require__(\"./components/xo-ui-components/src/accessibility/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', 'xomodel.onboard', 'xo-login-button.directive', 'locale.helper', 'xomodel.address', 'xomodel.checkout', 'xo-ui-utils.directive', 'xo-accessibility.directive']).directive('formErrorDetect', function () {\n\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\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\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\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 });\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: function controller($scope, $rootScope, $populate, $state, $util, $locale, $feature, $q, $CheckoutAppDataModel, $ShippingRuleSummaryModel, $CheckoutPayeeModel, $CheckoutCartModel, $BillingAddressModel, $ShippingAddressModel, $PrefillAddressModel, $pxpFactors, $config, $dispatch, $localeHelper, $location, $meta) {\n\n $scope.locale = $locale;\n $scope.formattedValues = {};\n $scope.backUri = 'checkout.multistepsignup.multistepsignupaddcard';\n $scope.normalize = $feature('addressNormalization', false, $locale.country);\n $scope.componentsFlag = util.componentsMap($locale.country);\n\n $scope.onCurrencyConversionDone = function () {\n $state.go($scope.backUri);\n };\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 (newValue) {\n $scope.formattedValues.postalCode = util.maskingUtil.maskZip(newValue);\n $scope.multistepSignupModel.onboard.billing_address.postal_code = $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 $populate($scope, {\n checkoutAppData: $CheckoutAppDataModel.instance($scope.token),\n payee: $CheckoutPayeeModel.instance($scope.token),\n checkoutCart: $CheckoutCartModel.instance($scope.token)\n }).then(function () {\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/***/ }),\n\n/***/ \"./components/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__(\"./components/angular/angular.min.js\"), __webpack_require__(\"./components/squid/dist/index.js\"), __webpack_require__(\"./components/xo-guest-components/src/multistep-signup/addCard/directive.js\"), __webpack_require__(\"./pages/xo-sidebar/route.js\"), __webpack_require__(\"./components/xo-guest-components/src/guest/currencyConversion/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', 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 name: '$CurrencyConversionOptionsRoute',\n attributes: {\n token: 'token',\n 'parent-model': 'multistepSignupModel',\n 'is-pre-plan': 'true',\n 'done-fn': 'onCurrencyConversionDone'\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), \"components/xo-guest-components/src/multistep-signup/addCard\", \"components/xo-guest-components/src/multistep-signup/addCard/route.js\"))\n\n/***/ }),\n\n/***/ \"./components/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__(\"./components/angular/angular.min.js\"), __webpack_require__(\"./components/squid/dist/index.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!./components/xo-guest-components/src/multistep-signup/addShipping/template.html\"), __webpack_require__(\"./components/xo-guest-components/src/multistep-signup/lib/util.js\"), __webpack_require__(\"./components/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: function controller($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 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/***/ \"./components/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__(\"./components/angular/angular.min.js\"), __webpack_require__(\"./components/squid/dist/index.js\"), __webpack_require__(\"./components/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', 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), \"components/xo-guest-components/src/multistep-signup/addShipping\", \"components/xo-guest-components/src/multistep-signup/addShipping/route.js\"))\n\n/***/ }),\n\n/***/ \"./components/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__(\"./components/angular/angular.min.js\"), __webpack_require__(\"./components/squid/dist/index.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!./components/xo-guest-components/src/multistep-signup/addressNormalization/template.html\"), __webpack_require__(\"./js/lib/index.js\"), __webpack_require__(\"./components/xo-page-components/src/value-props/directive.js\"), __webpack_require__(\"./components/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', function ($rootScope) {\n\n return {\n template: template,\n\n scope: {\n id: '=?',\n address: '=?',\n doneFn: '=?'\n },\n\n controller: function controller($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/***/ \"./components/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__(\"./components/angular/angular.min.js\"), __webpack_require__(\"./components/squid/dist/index.js\"), __webpack_require__(\"./components/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', 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), \"components/xo-guest-components/src/multistep-signup/addressNormalization\", \"components/xo-guest-components/src/multistep-signup/addressNormalization/route.js\"))\n\n/***/ }),\n\n/***/ \"./components/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__(\"./components/xo-guest-components/src/lib/util.js\");\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"./components/angular/angular.min.js\"), __webpack_require__(\"./components/squid/dist/index.js\"), __webpack_require__(\"./components/xo-guest-components/src/multistep-signup/lib/util.js\"), __webpack_require__(\"./components/xo-guest-components/src/lib/util.js\"), __webpack_require__(\"./components/xo-models/src/inventory/index.js\"), __webpack_require__(\"./components/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', function ($MultistepSignupModel, $CheckoutSessionModel, $CheckoutAppDataModel, $CheckoutPayeeModel, $InventoryModel, $ShoppingCartModel, $CheckoutCartModel, $rootScope, $state, $config, $locale, $logger, $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.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 return shoppingCartModel.action('cartCheckedOut', {\n data: {\n payee_email: checkoutAppData.get('merchant.merchant_email')\n },\n success: function success(result) {\n $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.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 DEFAULT: handlePaymentContingencies(checkoutCart, payee, 'DEFAULT')\n },\n error: function error(err) {\n $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 multistepSignupModel.resolve_3ds_data = {\n cc_id: checkoutSession.get('resolve_3ds.ccId'),\n flow_id: 'HERMES',\n merchant_id: payee.get('merchant.id'),\n merchant_country_code: checkoutAppData.get('merchant.merchant_country'),\n transaction_amount_currency: checkoutCart.get('purchase.amounts.total.currency_code'),\n transaction_amount_value: checkoutCart.get('purchase.amounts.total.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.info('setStickyFI Failed', err);\n })['finally'](function () {\n return checkoutSession.action('authorize', {\n success: function success() {\n if (checkoutAppData.is_wps_subscription_flow()) {\n (0, _util.redirectToSubscriptionFinalRoute)(multistepSignupModel.flags.mode);\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 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 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 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 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.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.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 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 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 $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 Object.keys(errors).forEach(function (key, index, array) {\n\n var errorCategory = errors[key];\n // errorCategory sanity checks\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 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.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.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 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.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/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/webpack/buildin/module.js\")(module), \"components/xo-guest-components/src/multistep-signup/apiCalls\", \"components/xo-guest-components/src/multistep-signup/apiCalls/factory.js\", __webpack_require__(\"./components/jquery/dist/jquery.min.js\")))\n\n/***/ }),\n\n/***/ \"./components/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__(\"./components/xo-guest-components/src/lib/contentKeys.js\");\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"./components/jquery/dist/jquery.min.js\"), __webpack_require__(\"./components/angular/angular.min.js\"), __webpack_require__(\"./components/squid/dist/index.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!./components/xo-guest-components/src/multistep-signup/createAccount/template.html\"), __webpack_require__(\"./components/xo-guest-components/src/multistep-signup/lib/util.js\"), __webpack_require__(\"./components/xo-page-components/src/value-props/directive.js\"), __webpack_require__(\"./components/xo-models/src/onboard/index.js\"), __webpack_require__(\"./components/xo-models/src/fi/index.js\"), __webpack_require__(\"./components/xo-form-components/src/dob-input/directive.js\"), __webpack_require__(\"./components/xo-form-components/src/national-id-input/directive.js\"), __webpack_require__(\"./components/xo-models/src/user/index.js\"), __webpack_require__(\"./components/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: function controller($scope, $rootScope, $populate, $state, $util, $locale, $ShippingAddressModel, $logger, $CheckoutSessionModel, $CheckoutAppDataModel, $CheckoutCartModel, $UserInfoModel, $dispatch, $pxpFactors, $config, $MultistepApiCalls, $pxp) {\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\n if ($scope.checkoutAppData && $scope.checkoutAppData.merchant) {\n var merchant = $scope.checkoutAppData.merchant;\n $scope.merchant = merchant.brand_name || merchant.merchant_name || merchant.merchant_email;\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 return tmp.charAt(0).toUpperCase() + tmp.slice(1);\n }\n\n var contentOpts = {\n cart: $scope.checkoutCart,\n appData: $scope.checkoutAppData\n };\n\n $scope.isWpsSubscription = $scope.checkoutAppData.is_wps_subscription_flow();\n $scope.baContentKey = (0, _contentKeys.getBAContentKey)(contentOpts);\n $scope.rpContentKey = (0, _contentKeys.getRPContentKey)(contentOpts);\n\n $scope.fiName = formatFiName($scope.multistepSignupModel.onboard.card.type);\n $scope.fiFormatLast4 = formatFiLast4($scope.multistepSignupModel.onboard.card.number);\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 $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 (!$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 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 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 if ($scope.multistepSignupModel.onboard.user.countryOfResidence === 'RU') {\n validInput = isNameCyrillic();\n }\n\n if (!util.validateLegalAge($scope.multistepSignupModel.onboard.user.dob_month, $scope.multistepSignupModel.onboard.user.dob_day, $scope.multistepSignupModel.onboard.user.dob_year)) {\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.getBAContentKey;\n\n_contentKeys.getRPContentKey;\n\n/***/ }),\n\n/***/ \"./components/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__(\"./components/angular/angular.min.js\"), __webpack_require__(\"./components/squid/dist/index.js\"), __webpack_require__(\"./components/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', 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), \"components/xo-guest-components/src/multistep-signup/createAccount\", \"components/xo-guest-components/src/multistep-signup/createAccount/route.js\"))\n\n/***/ }),\n\n/***/ \"./components/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__(\"./components/jquery/dist/jquery.min.js\"), __webpack_require__(\"./components/angular/angular.min.js\"), __webpack_require__(\"./components/squid/dist/module.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!./components/xo-guest-components/src/multistep-signup/template.html\"), __webpack_require__(\"./components/xo-guest-components/src/multistep-signup/index.js\"), __webpack_require__(\"./components/xo-models/src/onboard/index.js\"), __webpack_require__(\"./components/xo-models/src/checkout/index.js\"), __webpack_require__(\"./components/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', function ($rootScope) {\n\n return {\n template: template,\n\n scope: {\n token: '=?',\n parentCallbacks: '=?',\n buttonParams: '=?'\n },\n\n controller: function controller($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 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 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 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 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/***/ \"./components/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__(\"./components/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', 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), \"components/xo-guest-components/src/multistep-signup\", \"components/xo-guest-components/src/multistep-signup/index.js\"))\n\n/***/ }),\n\n/***/ \"./components/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 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 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 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/***/ \"./components/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__(\"./components/angular/angular.min.js\"), __webpack_require__(\"./components/squid/dist/index.js\"), __webpack_require__(\"./components/xo-guest-components/src/multistep-signup/directive.js\"), __webpack_require__(\"./components/xo-guest-components/src/multistep-signup/addCard/route.js\"), __webpack_require__(\"./components/xo-guest-components/src/multistep-signup/addShipping/route.js\"), __webpack_require__(\"./components/xo-guest-components/src/multistep-signup/createAccount/route.js\"), __webpack_require__(\"./components/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', 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), \"components/xo-guest-components/src/multistep-signup\", \"components/xo-guest-components/src/multistep-signup/route.js\"))\n\n/***/ }),\n\n/***/ \"./components/xo-locale/dist/country.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__(\"./components/angular/angular.min.js\"), __webpack_require__(\"./components/squid/dist/index.js\"), __webpack_require__(\"./components/xo-locale/dist/helper.js\"), __webpack_require__(\"./components/xo-models/src/checkout/index.js\"), __webpack_require__(\"./components/xo-models/src/auth/index.js\"), __webpack_require__(\"./components/xo-models/src/app/index.js\"), __webpack_require__(\"./components/xo-models/src/onboard/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('locale.resolvers.country', ['squid', 'locale.helper', 'xomodel.checkout', 'xomodel.auth', 'xomodel.app', 'xomodel.onboard']).factory('$CountryResolvers', function ($q, $rootScope, $populate, $util, $meta, $localeHelper, $locale, $AuthModel, $CheckoutCartModel, $AppDataModel, $CheckoutAppDataModel, $GuestUpgradeModel) {\n\n return {\n\n viaCountryPreference: {\n method: function method() {\n return $locale.chosenCountry;\n }\n },\n\n viaLocaleTestUrlParam: {\n desc: 'For non-LIVE test, read from locale.test url param, e.g. http://localhost.com:3000/?locale.test=fr_FR',\n method: function method() {\n var locale = $util.param('locale.test');\n\n if (locale) {\n return $localeHelper.normalizeLocale(locale).country;\n }\n }\n },\n\n viaMerchantParam: {\n desc: 'As part of url merchants can pass the locale.x=en_FR or country.x=FR. Here we extract the country param',\n method: function method() {\n var country = $util.param('country.x');\n\n if (country) {\n return country;\n }\n\n var locale = $util.param('locale.x');\n\n return $localeHelper.normalizeLocale(locale).country;\n }\n },\n\n viaUserProfile: {\n desc: 'From AuthModel. Country comes as \"US\", \"FR\" etc. ',\n method: function method() {\n var data = {};\n\n return $populate(data, {\n auth: $AuthModel.instance()\n }).then(function () {\n return data.auth.country;\n });\n }\n },\n\n viaCheckoutSession: {\n desc: 'From Merchant locale in CheckoutAppDataModel. merchant_locale comes as en_US etc.',\n method: function method() {\n // check before creating $CheckoutAppDataModel\n if (!$rootScope.token) {\n return;\n }\n\n var data = {};\n\n return $populate(data, {\n checkoutAppData: $CheckoutAppDataModel.instance($rootScope.token)\n }).then(function () {\n var merchant_locale = data.checkoutAppData.get('merchant.merchant_locale');\n\n if (!merchant_locale) {\n return;\n }\n\n if (merchant_locale.match(/^\\w{2}_\\w{2}$/)) {\n return $localeHelper.normalizeLocale(merchant_locale).country;\n }\n\n return merchant_locale;\n });\n }\n },\n\n viaCheckoutBilling: {\n desc: 'From Merchant passed billingAddress in CheckoutCart.',\n method: function method() {\n // check before creating $CheckoutCartModel\n if (!$rootScope.token) {\n return;\n }\n\n var data = {};\n\n return $populate(data, {\n checkoutCart: $CheckoutCartModel.instance($rootScope.token)\n }).then(function () {\n return data.checkoutCart.get('payer_info.billing_address.country_code');\n });\n }\n },\n\n viaCheckoutShipping: {\n method: function method() {\n // check before creating $CheckoutCartModel\n if (!$rootScope.token) {\n return;\n }\n\n var data = {};\n\n return $populate(data, {\n checkoutCart: $CheckoutCartModel.instance($rootScope.token)\n }).then(function () {\n return data.checkoutCart.get('purchase.shipping_address.country_code');\n });\n }\n },\n\n viaMerchantCountry: {\n method: function method() {\n // check before creating $CheckoutAppDataModel\n if (!$rootScope.token) {\n return;\n }\n\n var data = {};\n\n return $populate(data, {\n checkoutAppData: $CheckoutAppDataModel.instance($rootScope.token)\n }).then(function () {\n return data.checkoutAppData.get('merchant.merchant_country');\n });\n }\n },\n\n viaGuestAccountCountry: {\n desc: 'From Guest account legal country in ISO country code format (e.g. US, AU)',\n method: function method() {\n // only perform this resolver for guest-upgrade flow (has data param)\n if (!$util.param('data')) {\n return;\n }\n\n return $GuestUpgradeModel.instance().retrieve({\n error: angular.noop,\n transientError: true\n }).then(function (model) {\n return model.get('user.country');\n });\n }\n },\n\n viaCountryCoBrand: {\n method: function method() {\n return $AppDataModel.instance($rootScope.token).retrieve().then(function (appData) {\n return appData.get('locale_info.cobrand');\n });\n }\n },\n\n viaLangCookie: {\n method: function method() {\n return $AppDataModel.instance($rootScope.token).retrieve().then(function (appData) {\n return appData.get('locale_info.lang_cookie.country');\n });\n }\n },\n\n viaBrowserPref: {\n method: function method() {\n return $AppDataModel.instance($rootScope.token).retrieve().then(function (appData) {\n return appData.get('locale_info.browser_lang.country');\n });\n }\n },\n\n viaIP: {\n method: function method() {\n return $meta.ipcountry;\n }\n },\n\n viaDefault: {\n method: function method() {\n return 'US';\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), \"components/xo-locale/dist\", \"components/xo-locale/dist/country.js\"))\n\n/***/ }),\n\n/***/ \"./components/xo-locale/dist/helper.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__(\"./components/angular/angular.min.js\"), __webpack_require__(\"./components/squid/dist/index.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('locale.helper', ['squid']).factory('$localeHelper', function () {\n return {\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;\n var language;\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 });\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), \"components/xo-locale/dist\", \"components/xo-locale/dist/helper.js\"))\n\n/***/ }),\n\n/***/ \"./components/xo-locale/dist/index.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__(\"./components/angular/angular.min.js\"), __webpack_require__(\"./components/squid/dist/index.js\"), __webpack_require__(\"./components/xo-beaver/dist/logger.js\"), __webpack_require__(\"./components/xo-locale/dist/resolvers.js\"), __webpack_require__(\"./components/xo-locale/dist/language.js\"), __webpack_require__(\"./components/xo-locale/dist/helper.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (angular, squid) {\n\n return angular.module('xolocale', ['squid', 'beaver', 'locale.resolvers', 'locale.resolvers.language', 'locale.helper']);\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/***/ \"./components/xo-locale/dist/language.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__(\"./components/angular/angular.min.js\"), __webpack_require__(\"./components/squid/dist/index.js\"), __webpack_require__(\"./components/xo-locale/dist/helper.js\"), __webpack_require__(\"./components/xo-models/src/checkout/index.js\"), __webpack_require__(\"./components/xo-models/src/auth/index.js\"), __webpack_require__(\"./components/xo-models/src/app/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('locale.resolvers.language', ['squid', 'locale.helper', 'xomodel.checkout', 'xomodel.auth', 'xomodel.app']).factory('$LanguageResolvers', function ($q, $rootScope, $populate, $util, $AuthModel, $config, $locale, $localeHelper, $CheckoutCartModel, $AppDataModel, $CheckoutAppDataModel) {\n\n var browserPrefCountries = ['US', 'GB', 'CA'];\n\n return {\n viaLanguagePreference: {\n method: function method(country) {\n return $locale.chosenLang;\n }\n },\n\n viaLocaleTestUrlParam: {\n desc: 'For non-LIVE test, read from locale.test url param, e.g. http://localhost.com:3000/?locale.test=fr_FR',\n method: function method() {\n var locale = $util.param('locale.test');\n\n if (locale) {\n return $localeHelper.normalizeLocale(locale).language;\n }\n }\n },\n\n viaMerchantParam: {\n desc: 'As part of url merchants can pass the locale.x=en_FR, were we extract the language param',\n method: function method() {\n var locale = $util.param('locale.x');\n\n if (locale) {\n return $localeHelper.normalizeLocale(locale).language;\n }\n }\n },\n\n viaUserProfile: {\n method: function method(country) {\n var data = {};\n\n return $populate(data, {\n auth: $AuthModel.instance()\n }).then(function () {\n var locale = $localeHelper.normalizeLocale(data.auth.language);\n\n return locale && locale.language;\n });\n }\n },\n\n viaMerchantLocale: {\n method: function method() {\n // check before creating $CheckoutAppDataModel\n if (!$rootScope.token) {\n return;\n }\n\n var data = {};\n\n return $populate(data, {\n checkoutAppData: $CheckoutAppDataModel.instance($rootScope.token)\n }).then(function () {\n var merchant_locale = data.checkoutAppData.get('merchant.merchant_locale');\n\n if (!merchant_locale) {\n return;\n }\n\n if (!merchant_locale.match(/^\\w{2}_\\w{2}$/)) {\n return;\n }\n\n return $localeHelper.normalizeLocale(merchant_locale && merchant_locale).language;\n });\n }\n },\n\n viaLangCookie: {\n method: function method(country) {\n return $AppDataModel.instance($rootScope.token).retrieve().then(function (appData) {\n var lang_cookie = appData.get('locale_info.lang_cookie', {});\n\n if (lang_cookie.country === country) {\n return lang_cookie.language;\n }\n });\n }\n },\n\n viaBrowserPref: {\n method: function method(country) {\n if (browserPrefCountries.indexOf(country) === -1) {\n return $q.when();\n }\n\n return $AppDataModel.instance($rootScope.token).retrieve().then(function (appData) {\n return appData.get('locale_info.browser_lang.language');\n });\n }\n },\n\n viaDefault: {\n method: function method(country) {\n return $config.supportedCountries[country][0];\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), \"components/xo-locale/dist\", \"components/xo-locale/dist/language.js\"))\n\n/***/ }),\n\n/***/ \"./components/xo-locale/dist/resolvers.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__(\"./components/angular/angular.min.js\"), __webpack_require__(\"./components/squid/dist/index.js\"), __webpack_require__(\"./components/xo-locale/dist/country.js\"), __webpack_require__(\"./components/xo-locale/dist/language.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('locale.resolvers', [// eslint-disable-line angular/no-service-method\n 'locale.resolvers.country', 'locale.resolvers.language']).service('$LocaleResolver', function ($locale, $Class, $util, $logger, $CountryResolvers, $LanguageResolvers, $config, $q) {\n\n var LocaleResolver = $Class.extend('LocaleResolver', {\n\n registerCountryResolver: function registerCountryResolver(name, resolver) {\n $CountryResolvers[name] = resolver;\n },\n\n registerLangResolver: function registerLangResolver(name, resolver) {\n $LanguageResolvers[name] = resolver;\n },\n\n resolvePromiseChain: function resolvePromiseChain(resolvers, validator, args) {\n\n var self = this;\n var promise = $q.when();\n var result;\n\n angular.forEach(resolvers, function (resolver) {\n\n promise = promise.then(function () {\n\n if (result) {\n return result;\n }\n\n return $q.when(resolver.method.apply(self, args || [])).then(function (resolved) {\n\n if (resolved && validator(resolved)) {\n result = {\n resolver: resolver.name,\n resolved: resolved\n };\n return result;\n }\n });\n }, angular.noop);\n });\n\n return promise;\n },\n\n resolveCountry: function resolveCountry() {\n\n var validator = function validator(country) {\n return Boolean(country && $config.supportedCountries[country]);\n };\n\n var resolvers = $util.map($config.locale.country.resolvers, function (name) {\n $CountryResolvers[name].name = name;\n return $CountryResolvers[name];\n });\n\n return this.resolvePromiseChain(resolvers, validator).then(function (resolved) {\n $logger.debug('resolve_country', {\n country: resolved.resolved,\n resolver: resolved.resolver\n });\n return resolved.resolved;\n });\n },\n\n resolveLanguage: function resolveLanguage(country) {\n\n var validator = function validator(language) {\n return Boolean($config.supportedCountries[country].indexOf(language) > -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), \"components/xo-locale/dist\", \"components/xo-locale/dist/resolvers.js\"))\n\n/***/ }),\n\n/***/ \"./components/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__(\"./components/angular/angular.min.js\");\n\nvar _logger = __webpack_require__(\"./components/xo-beaver/dist/logger.js\");\n\nvar _config = __webpack_require__(\"./components/squid/dist/core/config.js\");\n\nvar _model = __webpack_require__(\"./components/xo-tracking/dist/model.js\");\n\nvar _auth = __webpack_require__(\"./components/xo-models/src/auth/index.js\");\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.onboarding.url.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 * Created by upigilam on 4/8/16.\n * UL handler is to exchange ST to RT exchanges.\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/***/ \"./components/xo-models/src/address/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__(\"./components/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('xomodel.address', ['squid']).factory('$AddressNormalizationModel', function ($Model, $Api) {\n return $Model.extend('AddressNormalizationModel', {\n api: new $Api({\n uri: '/api/address/normalize'\n })\n });\n }).factory('$PrefillAddressModel', function ($Model, $Api) {\n return $Model.extend('PrefillAddressModel', {\n api: new $Api({\n uri: '/api/address/prefill'\n })\n });\n }).factory('$ValidateAddressModel', function ($Model, $Api) {\n return $Model.extend('ValidateAddressModel', {\n api: new $Api({\n uri: '/api/address/validate'\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), \"components/xo-models/src/address\", \"components/xo-models/src/address/index.js\"))\n\n/***/ }),\n\n/***/ \"./components/xo-models/src/app/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\nvar _squid = __webpack_require__(\"./components/squid/dist/index.js\");\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"./components/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('xomodel.app', ['squid']).factory('$TransactionEligibilityModel', function ($Model, $Api) {\n return $Model.extend('TransactionEligibilityModel', {\n api: new $Api({\n uri: '/api/eligibility/transaction/:id'\n })\n });\n }).factory('$BuyerEligibilityModel', function ($Model, $Api) {\n return $Model.extend('BuyerEligibilityModel', {\n api: new $Api({\n uri: '/api/eligibility/buyer/:id'\n }),\n\n invalidateOnLogout: true // invalidate this model when auth.logout() gets called\n });\n }).factory('$PXPModel', function ($Model, $Api) {\n return $Model.extend({\n api: new $Api({\n uri: '/api/pxp/:id'\n })\n });\n }).factory('$LocaleConfigModel', function ($Model, $Api) {\n return $Model.extend({\n api: new $Api({\n uri: '/api/localeConfig'\n })\n });\n }).factory('$AppDataModel', function ($Model, $Api) {\n return $Model.extend('AppDataModel', {\n api: new $Api({\n uri: '/api/app'\n }),\n\n isMobile: function isMobile() {\n return this.platform === 'mobile';\n }\n });\n }).factory('$MessengerIntegrationDataModel', function ($Model, $Api) {\n return $Model.extend('MessengerIntegrationDataModel', {\n api: new $Api({\n uri: '/api/messenger'\n })\n });\n }).factory('$TokenizedWalletEligibilityModel', function ($Model, $Api) {\n return $Model.extend('TokenizedWalletEligibilityModel', {\n api: new $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 }).factory('$TokenizedWalletInfoModel', function ($Model, $Api) {\n var _brandNames, _disclaimerLinks, _msbDisclaimerLinks;\n\n var subjectTypes = {\n SAMSUNG_PAY: 'Samsung',\n ANDROID_PAY: 'google'\n };\n\n var brandNames = (_brandNames = {}, _brandNames[subjectTypes.SAMSUNG_PAY] = 'Samsung Pay', _brandNames[subjectTypes.ANDROID_PAY] = 'Google Pay', _brandNames);\n\n // disclaimer links used on the *pay review page\n var disclaimerLinks = (_disclaimerLinks = {}, _disclaimerLinks[subjectTypes.SAMSUNG_PAY] = 'https://www.paypal.com/us/webapps/mpp/ua/ppsamsungpay-tnc', _disclaimerLinks[subjectTypes.ANDROID_PAY] = 'https://www.paypal.com/us/webapps/mpp/ua/ppandroidpay-tnc', _disclaimerLinks);\n\n // disclaimer links used on Msb offer popup\n var 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 return $Model.extend('TokenizedWalletInfoModel', {\n\n api: new $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 return disclaimerLinks[this.subject] || disclaimerLinks[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 }).factory('$TokenizedFundingCapabilitiesModel', function ($Model, $Api) {\n\n return $Model.extend('TokenizedFundingCapabilitiesModel', {\n\n api: new $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 }).factory('$TokenizedWalletPinModel', function ($Model, $Api) {\n return $Model.extend('TokenizedWalletPinModel', {\n api: new $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 }).factory('$TokenizedWalletMsbOfferModel', function ($Model, $Api) {\n return $Model.extend('TokenizedWalletMsbOfferModel', {\n api: new $Api({\n uri: '/api/msb/tokenizedWallet/:id'\n }),\n invalidateOnLogout: true\n });\n }).factory('$PXPBlacklist', function () {\n return {\n isMerchantBlacklisted: function isMerchantBlacklisted(merchantId) {\n return _squid.$config.pxpBlacklist && _squid.$config.pxpBlacklist.merchant && _squid.$config.pxpBlacklist.merchant.indexOf(merchantId) !== -1;\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_squid.$config;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/webpack/buildin/module.js\")(module), \"components/xo-models/src/app\", \"components/xo-models/src/app/index.js\"))\n\n/***/ }),\n\n/***/ \"./components/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 _squid = __webpack_require__(\"./components/squid/dist/index.js\");\n\nvar _logger = __webpack_require__(\"./components/xo-beaver/dist/logger.js\");\n\nvar _angular = __webpack_require__(\"./components/angular/angular.min.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 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 // disallow_login_switch is used for Google Pay - acount linking to hide \"not you\" button (see xo-hercules/auth/outputMapper)\n return isAuthApiCall && !isConsumerApp && !redirectToHermesOn3DSDecline && !isUlReturnLoggedIn && !this.disallow_login_switch;\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 return this.logout().then(function () {\n return _this.redirectToLogin(reason);\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 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_squid.$Model;\n\n_squid.$Api;\n\n_squid.$util;\n\n_logger.$logger;\n\n_angular.$rootScope;\n\n/***/ }),\n\n/***/ \"./components/xo-models/src/auth/lib/xoAPayUtils.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__(\"./components/angular/angular.min.js\"), __webpack_require__(\"./components/squid/dist/index.js\"), __webpack_require__(\"./components/xo-beaver/dist/logger.js\"), __webpack_require__(\"./components/xo-device-info/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 squid.module('xoAPayUtils', ['squid']).factory('$xoAPayUtils', function ($q, $logger, $DeviceInfo, $config, $http) {\n var _jwtToken = '';\n var _authenticated;\n\n // Call browser PaymentRequest API that returns a promise\n function 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.info('PAYMENT_REQUEST_NOT_SUPPORTED');\n }\n }\n\n function updateCookie(url, params) {\n $http({\n method: 'GET',\n url: url,\n params: params\n });\n }\n\n function isPaymentRequestAPISupported() {\n var currentVersionMatch = navigator.userAgent.match(/Chrome\\/([0-9]+)\\./i);\n\n return $DeviceInfo.isMobile() && window.navigator.vendor === 'Google Inc.' && 'PaymentRequest' in window && navigator.userAgent.match(/Android/i) && currentVersionMatch && Number(currentVersionMatch[1]) >= 58;\n }\n\n return {\n isAPayAPISupported: function isAPayAPISupported() {\n return isPaymentRequestAPISupported();\n },\n\n canMakeAPayPayment: function canMakeAPayPayment() {\n if (!isPaymentRequestAPISupported()) {\n return $q.resolve(false);\n }\n\n var paymentRequest = window.appPaymentRequest || createPaymentRequest();\n\n if (paymentRequest && paymentRequest.canMakePayment) {\n $logger.info('APAY_CHECK_CAN_MAKE_PAYMENT');\n $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.info('APAY_CAN_MAKE_PAYMENT');\n $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.info('APAY_CAN_NOT_MAKE_PAYMENT_NO_PAYMENT');\n $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.info('APAY_CAN_NOT_MAKE_PAYMENT_SOFT_DECLINE', {\n msg: err && err.message,\n name: err && err.name\n });\n\n $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 $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 $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 $q.resolve(false);\n }\n\n var paymentRequest = window.appPaymentRequest || createPaymentRequest();\n\n if (paymentRequest) {\n $logger.info('APAY_AUTHENTICATION_BEGIN');\n $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.info('APAY_AUTHENTICATION_SUCCEEDED');\n $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.info('APAY_AUTHENTICATION_FAILED', {\n msg: err && err.message,\n name: err && err.name\n });\n\n $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 $q.resolve(false);\n }\n },\n\n getAPayAuthToken: function getAPayAuthToken() {\n return _jwtToken;\n },\n\n setAPayCookie: function setAPayCookie(token) {\n if ($config.tokenizedWalletCookieURL) {\n updateCookie($config.tokenizedWalletCookieURL, {\n op: 'set',\n token: token\n });\n }\n },\n\n clearAPayCookie: function clearAPayCookie(token) {\n if ($config.tokenizedWalletCookieURL) {\n updateCookie($config.tokenizedWalletCookieURL, {\n op: 'clear',\n token: token\n });\n }\n },\n\n setOTAPayCookie: function setOTAPayCookie(token) {\n if ($config.tokenizedWalletCookieURL) {\n updateCookie($config.tokenizedWalletCookieURL, {\n op: 'setot',\n token: token\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), \"components/xo-models/src/auth/lib\", \"components/xo-models/src/auth/lib/xoAPayUtils.js\"))\n\n/***/ }),\n\n/***/ \"./components/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__(\"./components/squid/dist/index.js\");\n\nvar _processorDecline = __webpack_require__(\"./components/xo-models/src/processorDecline/index.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 isBilling: function isBilling() {\n return Boolean(this.billing);\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 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 isInvoiceFlow: function isInvoiceFlow() {\n return Boolean(this.flags && this.flags.is_invoice_flow);\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 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(_ref) {\n var plan = _ref.plan,\n isPadToggleSelected = _ref.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 return _squid.$util.find(this.plans, function (plan) {\n return plan.primaryFs.isPreferred;\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// Map the data needed for the installmentsOptions endpoint\nvar serializeInstallmentsOptionsData = exports.serializeInstallmentsOptionsData = function serializeInstallmentsOptionsData(_ref2) {\n var merchant_country = _ref2.checkoutAppData.merchant.merchant_country,\n checkoutCart = _ref2.checkoutCart,\n country = _ref2.country,\n id = _ref2.payee.merchant.id,\n isMemberCredit = _ref2.isMemberCredit,\n cc = _ref2.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 api: new _squid.$Api({\n uri: '/api/checkout/:id/installmentOptions/',\n postAttempts: 2\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 return this.allowCardBackup;\n },\n getCheckoutSessionPlan: function getCheckoutSessionPlan() {\n return this.get('parent.fundingOptions.plans.0');\n },\n reevaluateEligibility: function reevaluateEligibility() {\n var _this2 = this;\n\n (0, _processorDecline.getProcessorDeclineRetryEligibility)(this.id, this.parent).then(function (eligibility) {\n _this2.allowCardBackup = eligibility;\n\n return eligibility;\n });\n },\n reset: function reset(forPlan) {\n var validBackups = (this.get('parent.fundingOptions.plans') || []).filter(function (p) {\n return p !== forPlan;\n });\n\n this.setPlan(validBackups[0], 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 = 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\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 },\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 return this.fundingOptions && this.fundingOptions.plans;\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 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 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});\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.$Model;\n\n_squid.$Api;\n\n_squid.$util;\n\n_squid.$config;\n\n_processorDecline.getProcessorDeclineRetryEligibility;\n\n/***/ }),\n\n/***/ \"./components/xo-models/src/fi/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\nvar _index = __webpack_require__(\"./components/xo-device-info/dist/index.js\");\n\nvar BILLING_ADDRESS_FORMAT = {\n DEFAULT: {\n ',': ', ',\n ' ': ' '\n },\n IL: {\n he: {\n ',': '‏, ‏',\n ' ': '‏ ‏'\n }\n }\n};\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"./components/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('xomodel.fi', ['squid']).factory('$CardModel', function ($Model, $util) {\n return $Model.extend('CardModel', {\n\n serialize: function serialize() {\n\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 && $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 ? $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 }).factory('$AddCardModel', function ($Model, $Api, $CardModel) {\n return $Model.extend('AddCardModel', {\n\n api: new $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 }).factory('$UnavailableCardModel', function ($Model, $Api) {\n return $Model.extend('UnavailableCardModel', {\n\n api: new $Api({\n uri: '/api/fi/unavailable/card'\n })\n });\n }).factory('$CardTypesModel', function ($Model, $Api, $locale, $util, $feature) {\n return $Model.extend('CardTypesModel', {\n\n api: new $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 // QIWI is VISA cobranded card supported currently in Russia.\n if ($feature('qiwiCardSupported') && result.allowed && result.allowed.indexOf('VISA') > -1 && result.allowed.indexOf('QIWI') === -1) {\n result.allowed.push('QIWI');\n }\n return result;\n });\n },\n\n supportedNames: function supportedNames() {\n return $util.map(this.allowed, function (type) {\n return $locale.content.cardTypes[type];\n });\n }\n });\n }).factory('$BankModel', function ($Model) {\n return $Model.extend('BankModel', {\n\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 }).factory('$AddBankModel', function ($Model, $Api, $BankModel) {\n\n return $Model.extend('AddBankModel', {\n\n api: new $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 }).factory('$PreferredFi', function ($Model, $Api) {\n return $Model.extend('PreferredFi', {\n api: new $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 }).factory('$SepaModel', function ($Model, $Api) {\n return $Model.extend('SepaModel', {\n api: new $Api({\n uri: '/api/fi/bank'\n })\n });\n }).factory('$DeleteCardModel', function ($Model, $Api) {\n return $Model.extend('DeleteCardModel', {\n api: new $Api({\n uri: '/api/fi/card/:id/delete'\n })\n });\n }).factory('$AddBillingAddressModel', function ($Model, $Api) {\n return $Model.extend('AddBillingAddressModel', {\n api: new $Api({\n uri: '/api/fi/:instrumentid/addbillingaddress'\n })\n });\n }).factory('$BillingAddressModel', function ($Model, $Api, $config, $util, $locale) {\n return $Model.extend('BillingAddressModel', {\n api: new $Api({\n uri: '/api/fi/billingaddress/validate'\n }),\n\n format: function format() {\n\n var langConfig = (BILLING_ADDRESS_FORMAT[$locale.country] || {})[$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 $util.filter([this.line1, this.line2, this.city, this.state, this.country]).join(comma) + space + $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 }).factory('$CurrencyConversionModel', function ($Model, $Api) {\n return $Model.extend('$CurrencyConversionModel', {\n api: new $Api({\n uri: '/api/fi/currencyConversion'\n })\n });\n }).factory('$BillingAddressesModel', function ($Model, $BillingAddressModel, $Api, $config, $util) {\n return $Model.extend('BillingAddressesModel', {\n api: new $Api({\n uri: '/api/fi/billingaddress'\n }),\n\n onPopulate: function onPopulate() {\n this.addresses = this.children($BillingAddressModel, this.addresses);\n }\n });\n }).factory('$CardTypeFromBinModel', function ($Model, $Api) {\n return $Model.extend('CardTypeFromBinModel', {\n api: new $Api({\n uri: '/api/fi/cardTypeFromBin'\n })\n });\n }).factory('$Resolve3DS', function ($Model, $Api) {\n return $Model.extend('Resolve3DS', {\n api: new $Api({\n uri: '/api/fi/3ds/:id'\n })\n });\n }).factory('$ResolveOTP', function ($Model, $Api) {\n return $Model.extend('ResolveOTP', {\n api: new $Api({\n uri: '/api/fi/otp/:id'\n })\n });\n }).factory('$WalletPreferences', function ($Model, $Api, $config, $locale) {\n return $Model.extend('WalletPreferences', {\n api: new $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 if (this.topup.amount) {\n // Set the Topup funding instrument in the wallet preference api, which will be used by future Topup transactions\n data.topup = {\n amount: this.topup.amount,\n instrument_id: this.topup.fundingSource.instrument_id,\n autoload_minimum_threshold: $config.topup.autoload_minimum_threshold\n };\n } else {\n // Set the Direct funding instrument in the wallet preference api, which will be used by future Direct funding transactions\n data.direct = {\n instrument_id: this.direct.fundingSource.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 }).factory('$WalletInstrumentNameMapping', function ($Model, $util) {\n return $Model.extend('WalletInstrumentNameMapping', {\n\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 $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 }).factory('$CardInfoModel', function ($Model, $Api) {\n return $Model.extend('$CardInfoModel', {\n api: new $Api({\n uri: '/api/fi/card/:id'\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.$DeviceInfo;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/webpack/buildin/module.js\")(module), \"components/xo-models/src/fi\", \"components/xo-models/src/fi/index.js\"))\n\n/***/ }),\n\n/***/ \"./components/xo-models/src/fi/lib/fiApis.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__(\"./components/angular/angular.min.js\"), __webpack_require__(\"./components/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 squid.module('fi.apis', ['squid']).factory('$fiApis', function ($q) {\n return {\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 $q.when();\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), \"components/xo-models/src/fi/lib\", \"components/xo-models/src/fi/lib/fiApis.js\"))\n\n/***/ }),\n\n/***/ \"./components/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__(\"./components/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/***/ \"./components/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__(\"./components/squid/dist/index.js\");\n\nvar _logger = __webpack_require__(\"./components/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/***/ \"./components/xo-models/src/inventory/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__(\"./components/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('xomodel.inventory', ['squid']).factory('$InventoryModel', function ($Model, $Api) {\n return $Model.extend('$InventoryModel', {\n api: new $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 });\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), \"components/xo-models/src/inventory\", \"components/xo-models/src/inventory/index.js\"))\n\n/***/ }),\n\n/***/ \"./components/xo-models/src/marketingoffer/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\nvar _squid = __webpack_require__(\"./components/squid/dist/index.js\");\n\nvar _auth = __webpack_require__(\"./components/xo-models/src/auth/index.js\");\n\nvar _logger = __webpack_require__(\"./components/xo-beaver/dist/logger.js\");\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"./components/squid/dist/index.js\"), __webpack_require__(\"./components/node-uuid/uuid.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (squid, uuid) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n squid.module('xomodel.marketingoffer', [// eslint-disable-line angular/no-service-method\n 'squid']).factory('$MarketingOfferModel', function ($Model, $Api) {\n return $Model.extend('$MarketingOfferModel', {\n api: new $Api({\n uri: '/api/checkout/offer/search-ads',\n postAttempts: 1\n\n }),\n\n serialize: function serialize() {\n var data = {\n 'site': this.site,\n 'locale': this.locale,\n 'si': this.si,\n 'visit_id': uuid.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 return data;\n }\n });\n }).factory('$MessageDiscoverModel', function ($Model, $Api) {\n return $Model.extend('$MessageDiscoverModel', {\n api: new $Api({\n uri: '/api/checkout/offer/discover-messages',\n postAttempts: 1\n })\n });\n }).service('$fireMORSBeacon', function ($q) {\n this.fireBeacon = function (uri) {\n var img = document.createElement('img');\n\n img.setAttribute('src', uri);\n document.body.appendChild(img);\n\n return;\n };\n }).factory('$MemberSegmentModel', function ($Model, $Api) {\n return $Model.extend('$MemberSegmentModel', {\n api: new $Api({\n uri: '/api/segment/memberSegment',\n postAttempts: 1\n }),\n\n invalidateOnLogout: true, // invalidate this model when auth.logout() gets called\n\n getMemberSegment: function getMemberSegment() {\n return this.memberSegment;\n },\n\n getCreditOffer: function getCreditOffer() {\n return this.creditOffer;\n },\n\n /**\n * showCreditOffer - Uses CEP to determine if a Credit Offer needs to be shown.\n * Currently under experimentation.\n * Control / Default Behavior : Show Offer\n * Treatment : Show / Hide based on the CEP response\n */\n\n showCreditOffer: function showCreditOffer() {\n var _this = this;\n\n var models = {};\n return (0, _squid.$populate)(models, {\n authModel: _auth.$AuthModel.instance()\n }).then(function () {\n var authModel = models.authModel || {};\n return (0, _squid.$pxp)('xo_hermes_use_cep_credit_offer', {\n 'uid': authModel.buyer_id,\n 'ctx.COUNTRY': authModel.country }, 'xo_hermes_use_cep_credit_offer_treatment').then(function (useCEPResponse) {\n if (useCEPResponse) {\n var show = !!_this.creditOffer;\n _logger.$logger.info('cep_creditofferdisplay_' + (show ? 'show' : 'hide'));\n return show;\n } else {\n // Show by Default\n _logger.$logger.info('cep_creditofferdisplay_default');\n return true;\n }\n });\n })['catch'](function () {\n // Default to show for unknown errors - safer route\n _logger.$logger.info('cep_creditofferdisplay_error');\n return true;\n });\n },\n\n isNewMember: function isNewMember() {\n return this.memberSegment === 'NEW_MEMBER' || this.memberSegment === 'YOUNG_MEMBER';\n },\n\n isExistingMember: function isExistingMember() {\n return this.memberSegment === 'EXISTING_MEMBER';\n },\n\n // Member Segments that are eligble for the New Experience\n isEligibleForExperimentation: function isEligibleForExperimentation() {\n var eligibleMemberSegments = _squid.$config.memberSegments;\n return eligibleMemberSegments.indexOf(this.memberSegment) > -1;\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_squid.$config;\n\n_squid.$pxp;\n\n_squid.$populate;\n\n_auth.$AuthModel;\n\n_logger.$logger;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/webpack/buildin/module.js\")(module), \"components/xo-models/src/marketingoffer\", \"components/xo-models/src/marketingoffer/index.js\"))\n\n/***/ }),\n\n/***/ \"./components/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__(\"./components/squid/dist/index.js\");\n\nvar _index = __webpack_require__(\"./components/xo-models/src/fi/index.js\");\n\nvar _directive = __webpack_require__(\"./components/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 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 };\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/***/ \"./components/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__(\"./components/squid/dist/index.js\");\n\nvar _logger = __webpack_require__(\"./components/xo-beaver/dist/logger.js\");\n\nvar _thirdPartyInfo = __webpack_require__(\"./components/xo-third-party-components/src/thirdParty-info/index.js\");\n\nvar _checkout = __webpack_require__(\"./components/xo-models/src/checkout/index.js\");\n\nvar _auth = __webpack_require__(\"./components/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 disallowedInstruments = checkoutSession.get('fundingOptions.disallowedInstruments') || [];\n var plans = checkoutSession.get('fundingOptions.plans') || [];\n\n // See https://engineering.paypalcorp.com/confluence/display/HellsKitchen/Hermes+Processor+Decline+Retry for eligibility reasons\n var isGambling = checkoutPayee.isGambling();\n var cardPlans = plans.reduce(function (acc, fi) {\n if (fi.primaryFs.type === 'CARD') {\n acc[fi.primaryFs.id] = (acc[fi.primaryFs.id] || 0) + 1;\n }\n\n return acc;\n }, {});\n // If there are two plans with same primaryFs, this indicates split balance is available\n var duplicateCardPlans = Object.keys(cardPlans).filter(function (id) {\n return cardPlans[id] > 1;\n }).length > 0;\n var numCardPlans = Object.keys(cardPlans).length;\n var numNonCardPlans = plans.filter(function (fi) {\n return fi.primaryFs.type !== 'CARD';\n }).length;\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 hasDisallowedCards: disallowedInstruments.length > 0,\n isGambling: isGambling,\n doesNotHave2Cards: numCardPlans !== 2,\n hasSplitBalance: duplicateCardPlans,\n hasNonCardPlans: numNonCardPlans > 0,\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\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).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\n if (eligibleWithPxp) {\n _logger.$logger.info('processor_decline_retry_eligible');\n }\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/***/ \"./components/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__(\"./components/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/***/ \"./components/xo-models/src/prox/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__(\"./components/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('model.app', ['squid']).factory('$ContextualLoginModel', function ($Model, $Api, $util) {\n\n return $Model.extend('$ContextualLoginModel', {\n init: function init() {\n this._super.init.apply(this);\n this.setProperties({\n key: $util.param('ctxId')\n });\n },\n api: new $Api({\n uri: '/api/contextualLogin/:key'\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), \"components/xo-models/src/prox\", \"components/xo-models/src/prox/index.js\"))\n\n/***/ }),\n\n/***/ \"./components/xo-models/src/shippingMethod/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__(\"./components/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('xomodel.shippingMethod', ['squid']).factory('$ShippingMethodModel', function ($Model, $Api) {\n return $Model.extend('ShippingMethodModel', {\n api: new $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 }).factory('$ShippingRuleSummaryModel', function ($Model, $Api) {\n return $Model.extend('ShippingRuleSummaryModel', {\n api: new $Api({\n uri: '/api/shippingtax/:id/rulesSummary'\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), \"components/xo-models/src/shippingMethod\", \"components/xo-models/src/shippingMethod/index.js\"))\n\n/***/ }),\n\n/***/ \"./components/xo-models/src/shoppingcart/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__(\"./components/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('xomodel.shoppingcart', ['squid']).factory('$ShoppingCartModel', function ($Model, $Api) {\n return $Model.extend('$ShoppingCartModel', {\n api: new $Api({\n uri: '/api/shoppingcart/:id',\n postAttempts: 2,\n cache: false\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), \"components/xo-models/src/shoppingcart\", \"components/xo-models/src/shoppingcart/index.js\"))\n\n/***/ }),\n\n/***/ \"./components/xo-models/src/subscription/index.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.$SubscriptionModel = exports.$CreateBAModel = undefined;\n\nvar _squid = __webpack_require__(\"./components/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\nangular.value(\"$CreateBAModel\", $CreateBAModel);\nangular.value(\"$SubscriptionModel\", $SubscriptionModel);\n_squid.$Model;\n\n_squid.$Api;\n\n/***/ }),\n\n/***/ \"./components/xo-models/src/user/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__(\"./components/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('xomodel.user', ['squid']).factory('$CheckoutClientDataModel', function ($Model, $Api) {\n\n return $Model.extend('CheckoutClientDataModel', {\n\n api: new $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 }).factory('$CheckoutInputDataModel', function ($Model, $Api, $config, $util) {\n\n var 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\n return $Model.extend('CheckoutInputDataModel', {\n\n init: function init() {\n this._super.init.apply(this);\n this.setProperties({\n client_id: $util.param('client_id'),\n action: $util.param('action'),\n redirect_uri: $util.param('redirect_uri'),\n scope: $util.param('scope'),\n state: $util.param('state'),\n flow: $util.param('flow'),\n payer_id: $util.param('payer_id'),\n mandate_reference_number: $util.param('mandate_reference_number'),\n funding_option_id: $util.param('funding_option_id'),\n locale: $util.param('locale'),\n logout: $util.param('logout'),\n refresh_parent: $util.param('refresh_parent'),\n escape_hatch: $util.param('escape_hatch'),\n failedBecause: $util.param('failedBecause'),\n redirectReferrer: $util.param('redirectReferrer'),\n id_token: $util.param('prox_id'),\n nonce: $util.param('nonce'),\n hide_rm: $util.param('hideRM'),\n payloadEnc: $util.param('payloadEnc'),\n xcancel: $util.param('x-cancel'),\n xsuccess: $util.param('x-success')\n });\n },\n\n api: new $Api({\n baseURI: $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 }).factory('$UserInfoModel', function ($Model, $Api) {\n return $Model.extend('UserInfoModel', {\n api: new $Api({\n uri: '/api/user/:id/session'\n })\n });\n }).factory('$ValidatePhoneModel', function ($Model, $Api) {\n\n return $Model.extend('validatePhoneModel', {\n api: new $Api({\n uri: '/api/user/:token/session/validatePhone',\n cache: false\n })\n });\n }).factory('$AddKYCModel', function ($Model, $Api) {\n return $Model.extend('AddKYCModel', {\n api: new $Api({\n uri: '/api/user/:token/session/addKYC'\n })\n });\n }).factory('$PatchPhoneModel', function ($Model, $Api) {\n\n return $Model.extend('patchPhoneModel', {\n api: new $Api({\n uri: '/api/checkout/:token/session/patch',\n cache: false\n })\n });\n }).factory('$WaxUserModel', function ($Model, $Api) {\n return $Model.extend('WaxUserModel', {\n api: new $Api({\n uri: '/api/user/:id/waxUser'\n })\n });\n }).factory('$EConsentModel', function ($Model, $Api) {\n return $Model.extend('EConsentModel', {\n api: new $Api({\n uri: '/api/user/eConsent'\n }),\n\n invalidateOnLogout: true // invalidate this model when auth.logout() gets called\n });\n }).factory('$UserPhotoModel', function ($Model, $Api, $config) {\n return $Model.extend('UserPhotoModel', {\n api: new $Api({\n baseURI: $config.urls.baseUrl,\n uri: 'api/user/photo'\n }),\n\n invalidateOnLogout: true // invalidate this model when auth.logout() gets called\n });\n }).factory('$AuthConsentModel', function ($Model, $Api) {\n return $Model.extend('AuthConsentModel', {\n api: new $Api({\n uri: '/api/user/authConsent'\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), \"components/xo-models/src/user\", \"components/xo-models/src/user/index.js\"))\n\n/***/ }),\n\n/***/ \"./components/xo-page-components/src/aside-header/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__(\"./components/jquery/dist/jquery.min.js\"), __webpack_require__(\"./components/squid/dist/index.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!./components/xo-page-components/src/aside-header/template.html\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function ($, squid, template) {\n\n squid.module('xo-aside-header.directive', ['squid']).directive('xoAsideHeader', function () {\n return {\n template: template,\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: function controller($scope, $element, $state, $timeout) {\n $timeout(function () {\n $element.find('.header').focus();\n });\n\n if (angular.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 (angular.isFunction(target)) {\n target();\n } else {\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/***/ \"./components/xo-page-components/src/cart/cartWrapper/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__(\"./components/squid/dist/index.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!./components/xo-page-components/src/cart/cartWrapper/template.html\"), __webpack_require__(\"./components/xo-models/src/checkout/index.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (squid, template) {\n squid.module('xo-cart.cart-wrapper.directive', ['squid', 'xomodel.checkout']).directive('cartWrapper', function () {\n return {\n template: template,\n restrict: 'E',\n scope: {\n showAmt: '=?',\n showArrow: '=?',\n token: '=?'\n },\n controller: function controller($scope, $populate, $util, $CheckoutCartModel) {\n\n $util.assert($scope.token, 'Expected token');\n\n $populate($scope, {\n checkoutCart: $CheckoutCartModel.instance($scope.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/***/ }),\n\n/***/ \"./components/xo-page-components/src/cart/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\nvar _showCartDecision = __webpack_require__(\"./components/xo-page-components/src/cart/lib/showCartDecision.js\");\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"./components/jquery/dist/jquery.min.js\"), __webpack_require__(\"./components/squid/dist/index.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!./components/xo-page-components/src/cart/template.html\"), __webpack_require__(\"./components/xo-page-components/src/cart/lib/ui.js\"), __webpack_require__(\"./components/xo-models/src/checkout/index.js\"), __webpack_require__(\"./components/xo-ui-components/src/accessibility/directive.js\"), __webpack_require__(\"./components/xo-page-components/src/cart/cartWrapper/directive.js\"), __webpack_require__(\"./components/xo-page-components/src/cart/itemDetails/directive.js\"), __webpack_require__(\"./components/xo-page-components/src/cart/subscription/directive.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function ($, squid, template) {\n\n squid.module('xo-cart.directive', ['squid', 'xomodel.checkout', 'xo-cart.ui', 'xo-cart.cart-wrapper.directive', 'xo-cart.item-details.directive', 'xo-accessibility.directive', 'subscription-terms']).directive('xoCart', function () {\n\n return {\n template: template,\n restrict: 'E',\n scope: {\n showCartTotal: '=?',\n renderCartContainer: '=?',\n token: '=?'\n },\n controller: function controller( // eslint-disable-line max-params\n $scope, $populate, $rootScope, $util, $state, $CheckoutCartModel, $CheckoutAppDataModel, $CheckoutPayeeModel) {\n\n $util.assert($scope.token, 'Expected token');\n\n $populate($scope, {\n checkoutAppData: $CheckoutAppDataModel.instance($scope.token),\n checkoutCart: $CheckoutCartModel.instance($scope.token),\n payee: $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\n $scope.showArrow = wpsSubscription || showCartDetails && (cartDesc || $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 = 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 return (0, _showCartDecision.showCartDecision)($scope.checkoutAppData.is_wps_subscription_flow(), 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 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) {\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($state.current.name);\n\n // TODO: Must we really couple this so tightly with the state transition names?\n var openCartListener = $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 $scope.$emit('dataLoaded');\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/***/ }),\n\n/***/ \"./components/xo-page-components/src/cart/itemDetails/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__(\"./components/squid/dist/index.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!./components/xo-page-components/src/cart/itemDetails/template.html\"), __webpack_require__(\"./components/xo-ui-components/src/accessibility/directive.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (squid, template) {\n squid.module('xo-cart.item-details.directive', ['squid', 'xo-accessibility.directive']).directive('itemDetails', function () {\n return {\n template: template,\n restrict: 'E',\n scope: {\n details: '=?',\n sku: '=?',\n currencyCode: '=?',\n onClickLess: '&?'\n },\n controller: function controller() {/* dumb component */}\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/***/ \"./components/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/***/ \"./components/xo-page-components/src/cart/lib/pxp.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__(\"./components/angular/angular.min.js\"), __webpack_require__(\"./components/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 squid.module('xo-cart.pxp', ['squid.pxp']).factory('$pxpCartAmt', function ($pxp, $q) {\n return function (merchantCountry, merchantId, noLineItemDetails, isPurchase) {\n\n if (merchantCountry !== 'AU' && noLineItemDetails && isPurchase) {\n\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 $q.all([$pxp(pageName, {\n 'ctx.merchantID': merchantId,\n uid: merchantId\n }, showAmtBlacklistTreatment), $pxp(pageName, {\n 'ctx.merchantID': merchantId,\n uid: merchantId\n }, showAmtTreatment)]).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 $q.when(!noLineItemDetails && isPurchase);\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), \"components/xo-page-components/src/cart/lib\", \"components/xo-page-components/src/cart/lib/pxp.js\"))\n\n/***/ }),\n\n/***/ \"./components/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__(\"./components/xo-page-components/src/cart/lib/pxp.js\");\n\nfunction showCartDecision(isWpsSubscriptionFlow, total, merchantCountry, merchantId, noLineItemDetails, isPurchase) {\n\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\n return {\n showAmt: showAmount,\n showCartSubTotal: showAmount && total && !isWpsSubscriptionFlow,\n showAmountInCartIcon: showAmount && +total.amount !== 0\n };\n });\n}\n\n_pxp.$pxpCartAmt;\n\n/***/ }),\n\n/***/ \"./components/xo-page-components/src/cart/lib/ui.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nvar _jquery = __webpack_require__(\"./components/jquery/dist/jquery.min.js\");\n\nvar _jquery2 = _interopRequireDefault(_jquery);\n\nvar _decode_entities = __webpack_require__(\"./components/xo-page-components/src/cart/lib/decode_entities.js\");\n\nvar _decode_entities2 = _interopRequireDefault(_decode_entities);\n\nvar _angular = __webpack_require__(\"./components/angular/angular.min.js\");\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;\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 ?\n// modern browsers\nfunction (elem, style) {\n return _angular.$window.getComputedStyle(elem)[style];\n} :\n// IE\nfunction (elem, style) {\n return elem.currentStyle[style];\n};\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, _angular.$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, _angular.$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;\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_angular.$registerDirective;\n\n_angular.$filterProvider;\n\n_angular.$parse;\n\n_angular.$timeout;\n\n_angular.$window;\n\n/***/ }),\n\n/***/ \"./components/xo-page-components/src/cart/subscription/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _squid = __webpack_require__(\"./components/squid/dist/index.js\");\n\n__webpack_require__(\"./components/squid/dist/index.js\");\n\nvar _template = __webpack_require__(\"./components/xo-page-components/src/cart/subscription/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\nvar _subscriptionTerms = __webpack_require__(\"./components/xo-page-components/src/subscription-terms/index.js\");\n\nvar _subscriptionTerms2 = _interopRequireDefault(_subscriptionTerms);\n\nvar _index = __webpack_require__(\"./components/xo-models/src/subscription/index.js\");\n\n__webpack_require__(\"./components/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 })\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_squid.$Component;\n\n_index.$SubscriptionModel;\nmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ \"./components/xo-page-components/src/cart/subscription/styles.less\":\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ \"./components/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/***/ \"./components/xo-page-components/src/constants/fbMessenger.js\":\n/***/ (function(module, exports) {\n\n\n\n/* Constants for FB messenger related components */\n\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 PRECHECKED_COUNTRIES: ['US', 'AU', 'HK', 'JP', 'NZ', 'PH', 'SG', 'ZA'],\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/***/ \"./components/xo-page-components/src/done/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nvar _fbMessenger = __webpack_require__(\"./components/xo-page-components/src/constants/fbMessenger.js\");\n\nvar _fbMessenger2 = _interopRequireDefault(_fbMessenger);\n\nvar _index = __webpack_require__(\"./components/xo-page-components/src/utils/index.js\");\n\nvar _index2 = _interopRequireDefault(_index);\n\nvar _thirdPartyInfo = __webpack_require__(\"./components/xo-third-party-components/src/thirdParty-info/index.js\");\n\nvar _profilemanagement = __webpack_require__(\"./components/xo-models/src/profilemanagement/index.js\");\n\nvar _jquery = __webpack_require__(\"./components/jquery/dist/jquery.min.js\");\n\nvar _jquery2 = _interopRequireDefault(_jquery);\n\nvar _angular = __webpack_require__(\"./components/angular/angular.min.js\");\n\nvar _squid = __webpack_require__(\"./components/squid/dist/index.js\");\n\nvar _template = __webpack_require__(\"./components/xo-page-components/src/done/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\n__webpack_require__(\"./components/xo-beaver/dist/logger.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar AUTORETURN_TIMEOUT = 5000;\n\n\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: function controller($rootScope, $scope, $populate, $logger, $promise, $CheckoutAppDataModel, $CheckoutSessionModel, $CheckoutPayeeModel, $CheckoutCartModel, $DeviceInfo, $state, $window, $stateParams, $pxp, $timeout) {\n\n $scope.isGuestSignup = $rootScope.mode && $rootScope.mode === 'signup';\n $scope.locale = _squid.$locale;\n\n function addPageMessage(code) {\n var CONTENT_KEY_MAPPING = {\n NO_UPGRADE: 'accountUpgradeFailed'\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($rootScope.token);\n }\n\n $populate($scope, {\n checkoutAppData: $CheckoutAppDataModel.instance($scope.token),\n checkoutSession: $CheckoutSessionModel.instance($scope.token),\n checkoutCart: $CheckoutCartModel.instance($scope.token),\n payee: $CheckoutPayeeModel.instance($scope.token)\n }).then(function () {\n\n return $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\n $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 = $DeviceInfo.isMobile() || $DeviceInfo.isTablet() ? 'done.autoReturnStatement' : 'done.autoReturnStatementWeb';\n $scope.guestSignupKey = $scope.isGuestSignup ? 'done.paymentGuest' : 'done.payment';\n if ($stateParams.code) {\n addPageMessage($stateParams.code);\n }\n var amount = $scope.checkoutSession.transactionDetails.amount.total;\n var code = $scope.checkoutSession.transactionDetails.amount.currency;\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 = _index2['default'].getMessengerPXPContext();\n\n $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 $promise.all([$pxp(_fbMessenger2['default'].PXP_MESSENGER_EXPT, pxpContext, _fbMessenger2['default'].PXP_SHOW_MESSENGER_PLUGIN_TREATMENT), $pxp(_fbMessenger2['default'].PXP_MESSENGER_IN, pxpContext, _fbMessenger2['default'].PXP_MESSENGER_PLUGIN_TREATMENT_IN)]).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.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.info('messenger_done_page_test_traffic');\n $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.info('messenger_done_page_control_traffic');\n $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 (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.info('autoreturn_statement_clicked');\n $scope.returnToMerchant();\n }\n };\n\n if ($scope.isAutoReturn) {\n $logger.info('autoreturn_to_merchant');\n $timeout($scope.returnToMerchant, AUTORETURN_TIMEOUT);\n }\n });\n\n $scope.$on('localeChange', function () {\n if ($stateParams.code) {\n addPageMessage($stateParams.code);\n }\n });\n\n $scope.returnToMerchant = function () {\n $logger.info('return_to_merchant_clicked');\n return $state.go('checkout.end');\n };\n\n var onExitListeners = function onExitListeners() {\n var removeClassListener = $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 = $rootScope.$on('$stateChangeStart', function (event, newState) {\n if (!~WHITELISTED_ROUTES.indexOf(newState.name)) {\n $logger.info('done_page_prevent_routing', {\n to: newState.name\n });\n event.preventDefault();\n preventBackListener();\n\n return $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_thirdPartyInfo.thirdPartyExperience;\n\n_profilemanagement.$MerchantPreferenceModel;\n\n_angular.$registerDirective;\n\n_squid.formatCurrency;\n\n_squid.formatQuantity;\n\n_squid.$locale;\n\n/***/ }),\n\n/***/ \"./components/xo-page-components/src/done/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__(\"./components/angular/angular.min.js\"), __webpack_require__(\"./components/squid/dist/index.js\"), __webpack_require__(\"./components/xo-models/src/checkout/index.js\"), __webpack_require__(\"./components/xo-page-components/src/done/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-done', ['squid', 'xo-done.directive']).factory('$DoneRoute', function ($ComponentRoute) {\n\n return $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 });\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), \"components/xo-page-components/src/done\", \"components/xo-page-components/src/done/route.js\"))\n\n/***/ }),\n\n/***/ \"./components/xo-page-components/src/done/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
    \\n
    \\n
    \\n
    \\n
    \\n
    {{content('done.payment_target', {merchantName: (checkoutAppData.merchant.brand_name || checkoutAppData.merchant.merchant_email)})}}
    \\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
    {{checkoutSession.shipping.full_address}}
    \\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

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

    \\n
    \\n
    {{checkoutAppData.merchant.brand_name}}
    \\n
    {{checkoutAppData.merchant.phone}}
    \\n
    {{checkoutAppData.merchant.merchant_email}}
    \\n
    \\n
    \\n \\n
    \\n
    \\n
    \\n
    {{content('done.paymentCompleted')}}
    \\n
    \\n
    \\n
    \\n\"\n\n/***/ }),\n\n/***/ \"./components/xo-page-components/src/footer/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\nvar _index = __webpack_require__(\"./components/xo-return-to-merchant/dist/index.js\");\n\nvar _index2 = __webpack_require__(\"./components/xo-models/src/checkout/index.js\");\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"./components/squid/dist/index.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!./components/xo-page-components/src/footer/template.html\"), __webpack_require__(\"./components/xo-page-components/src/footer/opinionlab.js\"), __webpack_require__(\"./components/xo-page-components/src/footer/footerMap.js\"), __webpack_require__(\"./components/xo-ui-components/src/modal/directive.js\"), __webpack_require__(\"./components/xo-ui-components/src/escape-hatch/escapeHatch/directive.js\"), __webpack_require__(\"./components/xo-device-info/dist/index.js\"), __webpack_require__(\"./components/xo-form-components/src/language-options/directive.js\"), __webpack_require__(\"./components/xo-models/src/user/index.js\"), __webpack_require__(\"./components/xo-models/src/auth/index.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (squid, template, opinionlab, footerMap) {\n squid.module('xo-footer.directive', ['squid', 'xo-modal.directive', 'xo-escape-hatch.escapeHatch.directive', 'xo-device-info', 'xo-language-options.directive', 'xomodel.user']).directive('xoFooter', function () {\n return {\n template: template,\n restrict: 'EA',\n scope: {\n token: '=?',\n escapeHatchIncontext: '=?',\n cancel: '@?',\n merchant: '@?',\n languageSwitch: '=?',\n showVenmoLegalLinks: '=?'\n },\n controller: function controller($scope, $populate, $rootScope, $util, $integration, $locale, $window, $DeviceInfo, $feature, $config, $state, $CheckoutInputDataModel, $AuthModel) {\n $scope.isIFrame = $util.isIFrame();\n if ($scope.escapeHatchIncontext) {\n $scope.showEscapeHatch = $scope.isIFrame;\n }\n $scope.locale = $locale;\n $scope.proxSignUpFlow = $CheckoutInputDataModel.instance($scope.token).isEbayTxn();\n $scope.year = new Date().getFullYear();\n\n $scope.isApac = function () {\n return $config.apacCountries && $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 = $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 footerMap.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 footerMap['DESecondButton'];\n }\n\n return footerMap[$scope.locale.country] || footerMap[getRegion($scope.locale.country)] || footerMap.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;\n\n // \"redirect_uri\" as a query param overrides the cancel url in the checkout session\n if ($integration.getConfig('REDIRECT_QUERY_PARAM')) {\n redirectUri = $util.param('redirect_uri');\n\n cancelUri = $util.buildURL(redirectUri, {\n opType: 'cancel',\n return_uri: $scope.cancel,\n token: $scope.token\n });\n }\n\n _index.$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 $populate($scope, {\n checkoutAppData: _index2.$CheckoutAppDataModel.instance($scope.token),\n checkoutPayee: _index2.$CheckoutPayeeModel.instance($scope.token),\n auth: $AuthModel.instance()\n }).then(function () {\n var merchant = $scope.checkoutAppData.merchant;\n\n var payee = $scope.checkoutPayee;\n\n if (payee && payee.merchant && payee.merchant.id) {\n var hcl = $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 = merchant.brand_name || merchant.merchant_name || merchant.merchant_email;\n });\n }\n\n var cancelShowModal = $rootScope.$on('showModal', function (event, config) {\n $scope.popupUrl = config && config.popupUrl;\n $scope.show = true;\n $scope.$digest(); // eslint-disable-line angular/ng_no_digest\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 = $state.current.get('trackingData.buzname.fullpage.pagename2', 'unknown').replace('%', placeholder);\n\n var data = {\n opVars: {\n rlogId: $window.meta.rlogId || '',\n page: page || window.location.hash,\n csci: 'Unknown',\n calc: $window.meta.correlationId,\n custId: 'Unknown',\n merchantId: 'Unknown',\n token: $scope.token || 'Unknown'\n },\n locale: {\n country: $locale.country,\n languageCode: $locale.lang + '_' + $locale.country\n }\n };\n\n opinionlab(data);\n };\n\n $scope.showFeedback = function () {\n return !$DeviceInfo.isDevice() && !isDESecondButtonFlow();\n };\n\n $scope.hideReturnCancelUrl = function () {\n return !$scope.cancel || $state.current && $state.current.name === 'checkout.done';\n };\n\n $scope.showVenmoLinks = function () {\n // if on payWithSelection State, always show it, else we choose whatever 'checkout' directive says.\n if ($state.current && $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\n if ($state.current && $state.current.name === 'checkout.payWithSelection') {\n return true;\n }\n return !$scope.showVenmoLegalLinks;\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_index2.$CheckoutAppDataModel;\n\n_index2.$CheckoutPayeeModel;\n\n/***/ }),\n\n/***/ \"./components/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/***/ \"./components/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/***/ \"./components/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__(\"./components/squid/dist/index.js\");\n\nvar _gdprCookieBanner = __webpack_require__(\"./components/xo-models/src/gdprCookieBanner/index.js\");\n\nvar _angular = __webpack_require__(\"./components/angular/angular.min.js\");\n\nvar _logger = __webpack_require__(\"./components/xo-beaver/dist/logger.js\");\n\nvar _template = __webpack_require__(\"./components/xo-page-components/src/gdprCookieBanner/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\n__webpack_require__(\"./components/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 */\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_gdprCookieBanner.$GDPRCookieBannerModel;\n\n_angular.isFunction;\n\n_logger.$logger;\n\n/***/ }),\n\n/***/ \"./components/xo-page-components/src/gdprCookieBanner/styles.less\":\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ \"./components/xo-page-components/src/gdprCookieBanner/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"\\n\"\n\n/***/ }),\n\n/***/ \"./components/xo-page-components/src/header/directive.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__(\"./components/xo-page-components/src/header/styles.less\");\n\nvar _squid = __webpack_require__(\"./components/squid/dist/index.js\");\n\nvar _index = __webpack_require__(\"./components/xo-device-info/dist/index.js\");\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"./components/squid/dist/index.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!./components/xo-page-components/src/header/template.html\"), __webpack_require__(\"./components/xo-page-components/src/cart/directive.js\"), __webpack_require__(\"./components/xo-ui-components/src/escape-hatch/closeFrame/directive.js\"), __webpack_require__(\"./components/xo-form-components/src/language-options/directive.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (squid, template) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n squid.module('xo-header.directive', ['squid', 'xo-cart.directive', 'xo-escape-hatch.closeFrame.directive', 'xo-language-options.directive']).directive('xoHeader', function () {\n return {\n template: template,\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: function controller($scope, $rootScope, $renderContent, $SetHeaderText) {\n $scope.isMessengerBAIntegration = _squid.$integration.getConfig('IS_MESSENGER_BA_INTEGRATION');\n $scope.isMobile = _index.$DeviceInfo.isMobile() || _index.$DeviceInfo.isTablet();\n // $util.assert($scope.token, 'Expected token');\n $scope.title = $renderContent($scope.unbrandedTitle);\n $scope.subTitle = $renderContent($scope.unbrandedSubTitle);\n\n $SetHeaderText.subscribe($scope, function (event, text) {\n $scope.unbrandedTitle = text;\n $scope.title = $renderContent($scope.unbrandedTitle);\n });\n }\n };\n }).factory('$SetHeaderText', function ($rootScope) {\n var headerText = '';\n\n return {\n setText: function setText(text) {\n headerText = text;\n $rootScope.$emit('update_header_text', text);\n },\n getText: function getText() {\n return headerText;\n },\n subscribe: function subscribe($scope, callback) {\n var handler = $rootScope.$on('update_header_text', callback);\n $scope.$on('$destroy', handler);\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_squid.$integration;\n\n_index.$DeviceInfo;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"../node_modules/webpack/buildin/module.js\")(module), \"components/xo-page-components/src/header\", \"components/xo-page-components/src/header/directive.js\"))\n\n/***/ }),\n\n/***/ \"./components/xo-page-components/src/header/styles.less\":\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ \"./components/xo-page-components/src/marketingOffers/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"./components/angular/angular.min.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!./components/xo-page-components/src/marketingOffers/template.html\"), __webpack_require__(\"./components/xo-title/dist/directive.js\"), __webpack_require__(\"./components/xo-models/src/marketingoffer/index.js\"), __webpack_require__(\"./components/xo-models/src/checkout/index.js\"), __webpack_require__(\"./components/xo-models/src/auth/index.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (angular, template) {\n\n return angular.module('xo-page-components.marketingOffers', ['squid', 'xo-title.directive', 'xomodel.marketingoffer', 'xomodel.checkout', 'xomodel.auth']).directive('xoMarketingOffers', function () {\n return {\n template: template,\n\n scope: {\n placementCode: '=?',\n titleTxtProperty: '=?',\n subtitleProperty: '=?',\n token: '=?',\n pageName: '=?',\n backgroundImage: '=?',\n xoTitleTag: '@?',\n xoTitleClass: '@?'\n },\n\n controller: function controller($scope, $sce, $rootScope, $populate, $state, $locale, $renderContent, $logger, $pxp, $config, $CheckoutCartModel, $MarketingOfferModel, $fireMORSBeacon, $element, $feature, $CheckoutSessionModel, $CheckoutPayeeModel, $AuthModel) {\n var morsOfferFlag = $scope.placementCode === '202003' && $feature('morsValuePropOffers');\n var populateObj;\n if (morsOfferFlag) {\n populateObj = {\n checkoutCart: $CheckoutCartModel.instance($scope.token),\n checkoutSession: $CheckoutSessionModel.instance($scope.token),\n payee: $CheckoutPayeeModel.instance($scope.token),\n auth: $AuthModel.instance()\n };\n } else {\n populateObj = {\n checkoutCart: $CheckoutCartModel.instance($scope.token)\n };\n }\n $populate($scope, populateObj).then(function () {\n $scope.locale = $locale;\n $scope.token = $rootScope.token;\n function setDefaultValues() {\n $scope.ad = {\n Title: $renderContent($scope.titleTxtProperty),\n Body: $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 ($locale.country === 'US' && $locale.lang === 'en' && $scope.placementCode && $feature('morsValuePropOffers')) {\n $scope.marketingOfferData = new $MarketingOfferModel({\n countryCode: $scope.locale.country,\n page: $scope.pageName,\n puType: $scope.pu_type,\n locale: $locale.lang + '_' + $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 $pxp($scope.pxpInfo.name, { 'ctx.COUNTRY': $locale.country }, $scope.pxpInfo.pattern).then(function (res) {\n\n $logger.info('MO treatment: ' + (res ? res.treatment_name : '[no pxp response!]'));\n if (res && res.treatment_name === $scope.pxpInfo.treatment) {\n\n return $MarketingOfferModel.instance($scope.token).save({\n\n silent: true,\n data: $scope.marketingOfferData.serialize(),\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.info('MORS_ad_displayed');\n $fireMORSBeacon.fireBeacon($scope.ad.impressionUrl);\n\n $rootScope.$broadcast('MORSDisplayed', {\n clickUrl: $scope.ad.clickUrl,\n placementId: $scope.placementCode\n });\n } else {\n $logger.info('MORS_ad_not_found');\n setDefaultValues();\n $rootScope.$broadcast('MORSNotDisplayed');\n }\n },\n\n error: function error(err) {\n setDefaultValues();\n $logger.error('MORS_api_failure', { error: err });\n }\n });\n } else {\n setDefaultValues();\n $rootScope.$broadcast('MORSNotDisplayed');\n }\n });\n } else {\n setDefaultValues();\n $rootScope.$broadcast('MORSNotDisplayed');\n }\n $scope.$on('localeChange', function () {\n setDefaultValues();\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/***/ \"./components/xo-page-components/src/merchant-header/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _squid = __webpack_require__(\"./components/squid/dist/index.js\");\n\nvar _index = __webpack_require__(\"./components/xo-models/src/checkout/index.js\");\n\nvar _index2 = __webpack_require__(\"./components/xo-models/src/user/index.js\");\n\nvar _template = __webpack_require__(\"./components/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 },\n\n resolve: {\n models: function models() {\n if (this.props.token) {\n return {\n checkoutAppData: _index.$CheckoutAppDataModel.instance(this.props.token).retrieve()\n };\n }\n }\n },\n\n lifecycle: {\n populate: function populate() {\n if (this.props.token && !_index2.$CheckoutInputDataModel.instance(this.props.token).isEbayTxn()) {\n this.merchant = this.models.checkoutAppData.merchant;\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_squid.$Component;\n\n_squid.$registerDirective;\n\n_index.$CheckoutAppDataModel;\n\n_index2.$CheckoutInputDataModel;\nmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ \"./components/xo-page-components/src/merchant-header/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
    \\n
    \\n
    \\n \\n {{ merchant.brand_name || merchant.merchant_name || merchant.merchant_email }}\\n \\t\\n \\\"{{\\n
    \\n
    \\n
    \\n\"\n\n/***/ }),\n\n/***/ \"./components/xo-page-components/src/returnParams/index.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nvar addValidParam = __webpack_require__(\"./components/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/***/ \"./components/xo-page-components/src/route-to-complete/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\n__webpack_require__(\"./components/xo-page-components/src/route-to-complete/styles.less\");\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"./components/jquery/dist/jquery.min.js\"), __webpack_require__(\"./components/angular/angular.min.js\"), __webpack_require__(\"./components/squid/dist/index.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!./components/xo-page-components/src/route-to-complete/template.html\"), __webpack_require__(\"./components/xo-models/src/checkout/index.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function ($, angular, squid, template) {\n\n return angular.module('xo-route-to-complete.directive', ['squid', 'xomodel.checkout']).directive('xoRouteToComplete', function ($rootScope) {\n\n return {\n template: template,\n\n scope: {\n token: '=?'\n },\n\n controller: function controller($scope, $rootScope, // eslint-disable-line no-shadow\n $stateParams, $state, $logger, $CheckoutAppDataModel, $populate, $locale, $window) {\n\n /* hide the footer cancel link */\n angular.element('#defaultCancelLink').hide();\n\n $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 = $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 $window.onunload = $window.onbeforeunload = function () {};\n $window.location = $stateParams.url;\n };\n\n $populate($scope, {\n checkoutAppData: $CheckoutAppDataModel.instance($scope.token)\n }).then(function () {\n var merchant = $scope.checkoutAppData.merchant;\n $scope.merchant = merchant.brand_name || merchant.merchant_name || merchant.merchant_email;\n });\n\n $scope.$on('$destroy', function (event) {\n $('.paypalHeaderWrapper').show();\n $('.footerWrapper').removeClass('routecss');\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/***/ \"./components/xo-page-components/src/route-to-complete/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__(\"./components/angular/angular.min.js\"), __webpack_require__(\"./components/squid/dist/index.js\"), __webpack_require__(\"./components/xo-page-components/src/route-to-complete/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-route-to-complete', ['squid', 'xo-route-to-complete.directive']).factory('$RouteToCompleteRoute', function ($ComponentRoute) {\n\n return $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\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), \"components/xo-page-components/src/route-to-complete\", \"components/xo-page-components/src/route-to-complete/route.js\"))\n\n/***/ }),\n\n/***/ \"./components/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/***/ \"./components/xo-page-components/src/subscription-terms/index.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nvar _subscriptionTerms = __webpack_require__(\"./components/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 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};\n\n/***/ }),\n\n/***/ \"./components/xo-page-components/src/subscription-terms/subscriptionTerms.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nvar _squid = __webpack_require__(\"./components/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';\n\nvar TRIAL_SUBSCRIPTION = 'TRIAL';\nvar REGULAR_SUBSCRIPTION = 'REGULAR';\n\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\n var timeUnit = void 0;\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\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\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\n var key = 'regularSubscriptionPeriod';\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\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\n var mappedSubscriptionDetails = {};\n var plan = baResponseData && baResponseData.plan;\n var allTerms = plan && plan.payment_definitions;\n var mappedTerms = [];\n var regularAmount = void 0,\n firstTrialAmount = null;\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 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 for (var i = 0; i < subscriptionTerms.length; 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 return subscriptionDetails.firstAmount;\n}\n\n/**\n * Returns the currency code\n */\nfunction getCurrencyCode(baResponseData) {\n var plan = baResponseData && baResponseData.plan;\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 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 return itemDetails.options;\n}\n\n/**\n * Retrieve item name\n */\nfunction getItemName(baResponseData) {\n var itemDetails = baResponseData && baResponseData.items && baResponseData.items[0];\n return itemDetails.name;\n}\n\nfunction getEffectiveDate(baResponseData) {\n return baResponseData && baResponseData.effective_date;\n}\n\nmodule.exports = {\n getFirstAmount: getFirstAmount,\n getFormattedFirstAmount: getFormattedFirstAmount,\n getItemOptions: getItemOptions,\n getItemName: getItemName,\n getCurrencyCode: getCurrencyCode,\n getTermsText: getTermsText,\n getEffectiveDate: getEffectiveDate\n};\n\n_squid.formatCurrency;\n\n_squid.Content;\n\n/***/ }),\n\n/***/ \"./components/xo-page-components/src/utils/index.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\n/* eslint-disable angular/typecheck-string */\n\nvar _fbMessenger = __webpack_require__(\"./components/xo-page-components/src/constants/fbMessenger.js\");\n\nvar _fbMessenger2 = _interopRequireDefault(_fbMessenger);\n\nvar _squid = __webpack_require__(\"./components/squid/dist/index.js\");\n\nvar _index = __webpack_require__(\"./components/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\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_squid.$util;\n\n_squid.$locale;\n\n_index.$DeviceInfo;\n\n/***/ }),\n\n/***/ \"./components/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__(\"./components/squid/dist/index.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!./components/xo-page-components/src/value-props/template.html\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (squid, template) {\n\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/***/ \"./components/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/***/ \"./components/xo-return-to-merchant/dist/index.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _util = __webpack_require__(\"./components/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__(\"./components/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/***/ \"./components/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__(\"./components/angular/angular.min.js\");\n\nvar _angular2 = _interopRequireDefault(_angular);\n\nvar _index = __webpack_require__(\"./components/xo-device-info/dist/index.js\");\n\nvar _logger = __webpack_require__(\"./components/xo-beaver/dist/logger.js\");\n\nvar _uiRouter = __webpack_require__(\"./components/angular-ui-router/release/angular-ui-router.min.js\");\n\nvar _squid = __webpack_require__(\"./components/squid/dist/index.js\");\n\nvar _index2 = __webpack_require__(\"./components/xo-models/src/checkout/index.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nfunction goTo(url, forceRedirect) {\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 _angular.$window.location = url;\n return _uiRouter.$state.go('checkout.genericMessage', {\n code: 'PAYMENT_SUCCESS'\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/***/ \"./components/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;\n\nvar _angular = __webpack_require__(\"./components/angular/angular.min.js\");\n\nvar _index = __webpack_require__(\"./components/xo-device-info/dist/index.js\");\n\nvar _squid = __webpack_require__(\"./components/squid/dist/index.js\");\n\nvar _auth = __webpack_require__(\"./components/xo-models/src/auth/index.js\");\n\nvar _checkout = __webpack_require__(\"./components/xo-models/src/checkout/index.js\");\n\nvar _sessionStorage = __webpack_require__(\"./components/xo-third-party-components/src/thirdParty-info/sessionStorage.js\");\n\nvar _sessionStorage2 = _interopRequireDefault(_sessionStorage);\n\nvar _logger = __webpack_require__(\"./components/xo-beaver/dist/logger.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';\n\nvar readCookie = function readCookie(name) {\n var nameEQ = name + '=';\n var ca = document.cookie.split(';');\n for (var i = 0; i < ca.length; i++) {\n var c = ca[i];\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 isThirdPartyEligible: function isThirdPartyEligible() {\n var _this = this;\n\n // This utility returns a promise\n\n return this.isBaiduEligible().then(function (baiduEligibility) {\n return _this.isVenmoEligible() || baiduEligibility;\n });\n },\n isBaiduEligible: function isBaiduEligible() {\n // This utility return a promise\n\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 // Handler to call to determine if user can use Venmo\n isVenmoEligible: function isVenmoEligible() {\n\n var appData = _checkout.$CheckoutAppDataModel.instance(_angular.$rootScope.token);\n var cart = _checkout.$CheckoutCartModel.instance(_angular.$rootScope.token);\n\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\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\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 isVenmoCookiePresent: function isVenmoCookiePresent() {\n var cookieValue = readCookie(PWV_COOKIE);\n return Boolean(cookieValue);\n },\n\n\n // Build the venmo URL scheme\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\n var cartModel = _checkout.$CheckoutCartModel.instance(_angular.$rootScope.token);\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': _angular.$rootScope.token,\n 'total': cartModel.purchase.amounts.total.amount,\n 'currency': cartModel.purchase.amounts.total.currency_code,\n 'intent': cartModel.payment_action\n });\n\n return SCHEME + 'paypal/checkout?' + 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 sessionStorage.setItem(venmoExperienceKey, token);\n },\n get: function get(token) {\n var auth = _auth.$AuthModel.instance();\n var sessionStorage = (0, _sessionStorage2['default'])();\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\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\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\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 return payload && payload[token] || 'MEMBER_EXPERIENCE';\n } else {\n\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 sessionStorage.removeItem(THIRD_PARTY_NAMESPSACE);\n }\n};\n\n_angular.$rootScope;\n\n_angular.$window;\n\n_angular.$location;\n\n_angular.$httpParamSerializer;\n\n_index.$DeviceInfo;\n\n_squid.$config;\n\n_squid.$util;\n\n_squid.$meta;\n\n_auth.$AuthModel;\n\n_checkout.$CheckoutPayeeModel;\n\n_checkout.$CheckoutCartModel;\n\n_checkout.$CheckoutAppDataModel;\n\n_checkout.$FlowEligibilityModel;\n\n_logger.$logger;\n\n/***/ }),\n\n/***/ \"./components/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/***/ \"./components/xo-title/dist/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;\n\nvar _angular = __webpack_require__(\"./components/angular/angular.min.js\");\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"./components/squid/dist/index.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!./components/xo-title/dist/template.html\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (squid, template) {\n\n squid.module('xo-title.directive', ['squid']).directive('xoTitle', function () {\n return {\n template: template,\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}).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.$compile;\n\n/***/ }),\n\n/***/ \"./components/xo-tracking/dist/builder.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__(\"./components/angular/angular.min.js\"), __webpack_require__(\"./components/squid/dist/index.js\"), __webpack_require__(\"./components/xo-tracking/dist/model.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('tracking.builder', ['squid', 'tracking.model']).factory('$FptiBuilder', function ($Class, $locale, $rootScope, $FptiConstants, $FptiDataModel, $CalDataModel, $util, $getLatestCorrelationID) {\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 $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 $FptiDataModel().decorate('buzname', this.trackingData, this.pageQualifier, undefined, this.productOverride).decorate('templateName', this.trackingData, this.pageQualifier).decorate('locale', $locale).decorate('pageGoal', this.trackingData.pageGoal).decorate('ecToken', this.trackingData.token).decorate('correlationId', $getLatestCorrelationID()).decorate('uuid', $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 angular.forEach(this._dataObj, function (v, k) {\n dataAry.push(k + '=' + v);\n });\n\n return dataAry.join('&');\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), \"components/xo-tracking/dist\", \"components/xo-tracking/dist/builder.js\"))\n\n/***/ }),\n\n/***/ \"./components/xo-tracking/dist/button.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__(\"./components/angular/angular.min.js\"), __webpack_require__(\"./components/squid/dist/index.js\"), __webpack_require__(\"./components/xo-models/src/checkout/index.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('button.tracking', ['squid', 'xomodel.checkout']).factory('$ButtonTrackingService', function ($rootScope, $http, $populate, $CheckoutAppDataModel, $CheckoutPayeeModel, $meta, $cookies) {\n\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($cookies && $cookies.ts));\n url += buildParam('WWW_AKA_MVT_BUTTONS', $cookies && $cookies.WWW_AKA_MVT_BUTTONS);\n url += buildParam('WWW_AKA_MVT_ID', $cookies && $cookies.WWW_AKA_MVT_ID);\n url += buildParam('ip', $meta && $meta.ipaddress);\n\n if ($rootScope.token) {\n $populate(xoData, {\n payee: $CheckoutPayeeModel.instance($rootScope.token),\n appData: $CheckoutAppDataModel.instance($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\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}).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), \"components/xo-tracking/dist\", \"components/xo-tracking/dist/button.js\"))\n\n/***/ }),\n\n/***/ \"./components/xo-tracking/dist/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__(\"./components/jquery/dist/jquery.min.js\"), __webpack_require__(\"./components/angular/angular.min.js\"), __webpack_require__(\"./components/angular-ui-router/release/angular-ui-router.min.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function ($, angular) {\n\n angular.module('tracking.directive', ['ui.router']).directive('trackSubmit', function ($state, $rootScope) {\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: $state.current,\n transition: transition,\n errors: []\n };\n\n angular.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 $rootScope.$broadcast('trackSubmit', trackSubmit);\n });\n }\n };\n }).directive('trackLink', function ($state, $rootScope) {\n return {\n restrict: 'AE',\n link: function link($scope, element, attr) {\n element.on('mousedown', function (event) {\n\n var state = attr && attr.trackLink;\n\n if (state) {\n var trackLink = {\n currentRoute: $state.current,\n transition: state\n };\n\n $rootScope.$broadcast('trackLink', trackLink);\n }\n });\n }\n };\n }).directive('trackClick', function ($state, $rootScope) {\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: $state.current,\n transition: state\n };\n\n $rootScope.$broadcast('trackClick', trackClick);\n }\n });\n }\n };\n }).directive('trackInput', function ($state, $rootScope) {\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\n var state;\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: $state.current,\n page: 'main:ec:hermes::fullpage-billing:guest:aries:'\n };\n\n if (state) {\n trackInput.transition = state;\n }\n\n $rootScope.$broadcast('trackInput', trackInput);\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/***/ \"./components/xo-tracking/dist/fpti.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__(\"./components/angular/angular.min.js\"), __webpack_require__(\"./components/squid/dist/index.js\"), __webpack_require__(\"./components/xo-tracking/dist/builder.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('tracking.fpti', ['squid', 'tracking.builder']).factory('$fpti', function ($config, $FptiBuilder, $rootScope, $window, $util) {\n\n var _beaconUrl;\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 ($config.deploy.isLocal() || $config.deploy.isStage()) {\n _beaconUrl = 'https://tracking.qa.paypal.com/webapps/tracking/ts'; // stage url\n } else {\n _beaconUrl = $config.urls && $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 = $rootScope.token;\n\n while (routeParent) {\n trackingData = angular.merge({}, routeParent.trackingData || {}, trackingData);\n routeParent = routeParent.parent;\n }\n return trackingData;\n },\n\n setupDataString: function setupDataString(route, err, data) {\n\n var trackingData = this.getPageTrackingData(route);\n var fptiData;\n\n var PAYPAL = window.PAYPAL;\n\n if (PAYPAL && typeof PAYPAL.analytics !== 'undefined') {\n PAYPAL.core = PAYPAL.core || {};\n\n var payload = {\n trackingData: trackingData,\n error: err,\n isInContext: $rootScope.miniBrowser\n };\n\n angular.extend(payload, data || {});\n\n fptiData = new $FptiBuilder(payload).build().toString();\n\n // FPTI client side tracking only if we have template\n if (route && route.template && angular.isFunction(PAYPAL.analytics.setup)) {\n PAYPAL.core.pta = PAYPAL.analytics.setup({\n data: fptiData,\n url: _beaconUrl\n });\n }\n }\n\n return fptiData;\n }\n };\n }).factory('$fptiError', function ($Error) {\n function stringifyErrorMessage(msg) {\n return encodeURIComponent(angular.isString(msg) ? msg.split('\\n').slice(0, 2).join('@') // Get the first two lines of stack\n : (angular.toJson(msg) || 'undefined').substring(0, 128));\n }\n\n return $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}).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), \"components/xo-tracking/dist\", \"components/xo-tracking/dist/fpti.js\"))\n\n/***/ }),\n\n/***/ \"./components/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 */\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"./components/angular/angular.min.js\"), __webpack_require__(\"./components/xo-tracking/dist/listener.js\"), __webpack_require__(\"./components/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/***/ \"./components/xo-tracking/dist/listener.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__(\"./components/angular/angular.min.js\"), __webpack_require__(\"./components/jquery/dist/jquery.min.js\"), __webpack_require__(\"./components/xo-beaver/dist/logger.js\"), __webpack_require__(\"./components/xo-tracking/dist/fpti.js\"), __webpack_require__(\"./components/xo-tracking/dist/button.js\"), __webpack_require__(\"./components/xo-models/src/auth/index.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (angular, $) {\n angular.module('tracking.listener', ['beaver', 'tracking.fpti', 'button.tracking']).run(function ($rootScope, $logger, $CalDataModel, $AuthModel, $fpti, $fptiError, $FptiConstants, $ButtonTrackingService, $timeout, $FptiBuilder, $meta, $config, $experiment, $util) {\n // eslint-disable-line max-statements\n\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 = $meta.logAppName || 'appNameNotDefined';\n\n var addTrackingData = function addTrackingData(object) {\n return $util.extend(object, {\n dc: $meta.dc,\n az: $meta.az,\n cust: $AuthModel.instance().buyer_id || '',\n comp: appName\n });\n };\n\n var cplSettings = $config.enableCPL;\n\n var passesCplThrottle = cplSettings && (typeof cplSettings.throttle === 'undefined' || $experiment('cpl_tracking', cplSettings.throttle, token));\n\n var cplEnabled = passesCplThrottle || $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 $config.deploy.isLocal() || $config.deploy.isStage() ? 'https://tracking.qa.paypal.com/webapps/tracking/ts' // stage url\n : $config.urls && $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 $FptiBuilder({\n trackingData: route.trackingData,\n isInContext: $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 $rootScope.$on('trackInput', function (event, trackInput) {\n if (!trackInput) {\n return;\n }\n var customData = {\n link: trackInput.transition,\n page: trackInput.page\n };\n\n fptiCustomRecordClick(trackInput.currentRoute, customData);\n });\n\n $rootScope.$on('trackClick', function (event, trackClick) {\n if (!trackClick) {\n return;\n }\n\n var customData = {\n link: trackClick.transition\n };\n\n fptiCustomRecordClick(trackClick.currentRoute, customData);\n });\n\n $rootScope.$on('trackSubmit', function (event, trackSubmit) {\n if (!trackSubmit) {\n return;\n }\n var currentRoute = trackSubmit.currentRoute;\n var routeName = currentRoute ? currentRoute.name : 'noRoute';\n\n $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.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.info('checkout_fpti', {\n form_field_errors: fptiFieldErrors\n });\n }\n\n var errors = trackSubmit.errors;\n\n if (angular.isArray(errors)) {\n errors.forEach(function (err) {\n $logger.debug('track_submit_error', err);\n if ($fpti) {\n $fpti.setupDataString(currentRoute, new $fptiError({\n type: 'fieldError',\n field: err.fieldName,\n code: err.errorMessage\n }));\n }\n });\n\n if (errors.length) {\n $logger.flush(true);\n }\n }\n });\n\n $rootScope.$on('unhandled_error', function (event, exception) {\n if ($fpti) {\n $fpti.setupDataString(exception.currentRoute, new $fptiError({\n type: 'pageError',\n message: exception.message,\n code: exception.cause\n }));\n }\n });\n\n $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.info(routeName + '_exit', {\n fptiState: state,\n fptiTransition: trackLink.transition\n });\n });\n\n $rootScope.$on('$transition', function (event, data) {\n\n $timeout(function () {\n if ($fpti) {\n var fptiData = $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 $ButtonTrackingService.fireBeacon(fptiData);\n }\n }\n });\n });\n\n $rootScope.$on('$stateChangeStart', function (event, toState, toParams, fromState) {\n\n var from = fromState.name.replace(/\\./g, '_');\n var to = toState.name.replace(/\\./g, '_');\n\n if (from && logTransition(fromState) && logStateExit(fromState)) {\n var trackingData = fromState.trackingData && fromState.trackingData || {};\n\n $logger.info(from + '_exit', { fptiState: trackingData.fptiState || from, fptiTransition: trackingData.fptiState || from });\n }\n\n $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 $CalDataModel.generateMetaIds();\n }\n\n $rootScope.currentState = to;\n\n if (to && logTransition(toState)) {\n $logger.info(to + '_enter', { fptiState: toState.trackingData && toState.trackingData.fptiState || to });\n }\n });\n\n $rootScope.$on('page_loaded', function (event, from, to) {\n if (from !== 'checkout_init') {\n return;\n }\n var key = $FptiConstants.stateName[to] || 'review';\n var landing_page = $FptiConstants.landing_page[key];\n\n $logger.info('landing_page', {\n 'from': landing_page,\n 'to': 'process_page_loaded',\n fpti_landing_page: landing_page\n });\n });\n\n $rootScope.$on('page_reloaded', function () {\n $logger.flush(true);\n $CalDataModel.generateMetaIds();\n });\n\n $rootScope.$on('$stateChangeSuccess', function (event, toState) {\n var to = toState.name.replace(/\\./g, '_');\n\n if (toState.hasResolver && to) {\n $logger.info(to + '_load');\n } else if (to) {\n $logger.info(to + '_rendering');\n }\n });\n\n $rootScope.$on('addrDiff', function (event, addrDiff) {\n if (!addrDiff) {\n return;\n }\n\n $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.info('hashchange', {\n from: getHash(event.oldURL || oldHash),\n to: getHash(event.newURL || window.location.hash)\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.info('click', {\n el: name\n });\n }\n });\n\n if (cplEnabled) {\n\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 $rootScope.$on('startLoad', function () {\n return trackPageStart();\n });\n\n $rootScope.$on('$stateChangeSuccess', function (e, route) {\n currentRoute = route;\n });\n\n $rootScope.$on('allLoaded', function () {\n try {\n var buildParams = {\n productOverride: window.fptiProductOverride,\n trackingData: $fpti.getPageTrackingData(currentRoute)\n };\n\n var legacyFptiData = new $FptiBuilder(buildParams).build()._dataObj;\n\n var product = window.fptiProductOverride || 'ec';\n\n legacyFptiData.pgrp = 'main:' + product + ':hermes';\n\n legacyFptiData.flid = token;\n\n trackDone(legacyFptiData);\n } catch (e) {\n console.log('error tracking CPL data', e);\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/***/ \"./components/xo-tracking/dist/model.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__(\"./components/angular/angular.min.js\"), __webpack_require__(\"./components/squid/dist/index.js\"), __webpack_require__(\"./components/node-uuid/uuid.js\") // Using the same module as used in NodeInfra\n], __WEBPACK_AMD_DEFINE_RESULT__ = (function (angular, squid, uuid) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n angular.module('tracking.model', ['squid']).constant('$FptiConstants', {\n // The prototype of buzname data object\n buznameMap: {\n country: {\n placeHolder: 'glb',\n fptiKey: 'ccpg'\n },\n\n flowgatename: {\n placeHolder: '',\n fptiKey: 'fltp'\n },\n\n 'flowname': {\n placeHolder: 'ec:hermes:',\n fptiKey: 'flnm'\n },\n 'hier1': {\n placeHolder: 'main_ec_hermes_',\n fptiKey: 'shir'\n },\n /*\n * No key defined in FPTI\n */\n // 'hier2': '',\n // 'hier3': '',\n // 'hier4': '',\n // 'hier5': '',\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 * Deprecated SiteCatalyst keys\n */\n // 'feature': 'ec',\n // 'oldpagename': '',\n // 'product': ';ec',\n // 'subfeature1': 'hermes',\n // 'subfeature2': '',\n // 'website': 'main'\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 'countryOfPage': 'ccpg', // buzname\n 'cust': 'cust',\n 'errorCode': 'eccd',\n 'fieldError': 'erfd',\n 'flowgatename': 'fltp', // buzname\n 'flowname': 'flnm', // buzname\n 'locale': 'rsta', // LocaleModel\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\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\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', function ($Class, $FptiConstants, $util, $config) {\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 $Class.extend('FptiDataModel', {\n init: function init() {\n this._dataObj = angular.extend({}, productConfig);\n this._decoratorList = [];\n },\n decorators: {\n buzname: function buzname(trackingData, pageQualifier, isInContext, productOverride) {\n\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 = $config && $config.fpti && $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 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 $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 $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 (angular.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 (angular.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 ($Model) {\n\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 = (uuid.v4() || uuid_v4_mask).split('-');\n var uidTime = (uuid.v1() || uuid_v1_mask).split('-');\n\n return uidTime[0] + uidRandomArr[0].substr(0, 5);\n }\n\n function _generateUUID() {\n return (uuid.v4() || uuid_v4_mask).replace(/-/g, '');\n }\n\n var CalModel = $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}).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), \"components/xo-tracking/dist\", \"components/xo-tracking/dist/model.js\"))\n\n/***/ }),\n\n/***/ \"./components/xo-tray-height/dist/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/* global define:true */\n\n\n/* grab the logger so we can warn about being in the fallback mode */\n\nvar _logger = __webpack_require__(\"./components/xo-beaver/dist/logger.js\");\n\n/** Name: Tray height helper */\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"./components/squid/dist/index.js\"), __webpack_require__(\"./components/jquery/dist/jquery.min.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (squid, $) {\n squid.module('xo-tray-height.directive', ['squid']).directive('xoTrayHeight', function ($timeout) {\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 $timeout(deprecatedCalculate, 1);\n\n $scope.$on('SidebarError', function () {\n deprecatedCalculate();\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/***/ \"./components/xo-ui-components/src/accessibility/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nvar _angular = __webpack_require__(\"./components/angular/angular.min.js\");\n\nvar _ui = __webpack_require__(\"./components/xo-ui-components/src/accessibility/ui.js\");\n\nvar _jquery = __webpack_require__(\"./components/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, _angular.$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, _angular.$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, _angular.$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, _angular.$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, _angular.$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, _angular.$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, _angular.$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, _angular.$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, _angular.$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, _angular.$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, _angular.$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_angular.$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/***/ \"./components/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__(\"./components/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/***/ \"./components/xo-ui-components/src/banner/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _squid = __webpack_require__(\"./components/squid/dist/index.js\");\n\nvar _auth = __webpack_require__(\"./components/xo-models/src/auth/index.js\");\n\nvar _index = __webpack_require__(\"./components/xo-models/src/user/index.js\");\n\nvar _logger = __webpack_require__(\"./components/xo-beaver/dist/logger.js\");\n\nvar _template = __webpack_require__(\"./components/xo-ui-components/src/banner/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\n__webpack_require__(\"./components/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/***/ \"./components/xo-ui-components/src/banner/styles.less\":\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ \"./components/xo-ui-components/src/banner/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
    \\n
    {{ initials }}
    \\n
    \\n
    \"\n\n/***/ }),\n\n/***/ \"./components/xo-ui-components/src/directionality/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function($) {\n\nvar _angular = __webpack_require__(\"./components/angular/angular.min.js\");\n\nvar _squid = __webpack_require__(\"./components/squid/dist/index.js\");\n\n__webpack_require__(\"./components/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, _angular.$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 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, _angular.$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_angular.$document;\n\n_angular.$parse;\n\n_angular.$registerDirective;\n\n_angular.$timeout;\n\n_squid.$util;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"./components/jquery/dist/jquery.min.js\")))\n\n/***/ }),\n\n/***/ \"./components/xo-ui-components/src/directionality/styles.less\":\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ \"./components/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__(\"./components/squid/dist/index.js\"), __webpack_require__(\"./components/jquery/dist/jquery.min.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (squid, $) {\n\n squid.module('xo-dropdown-multiline.directive', ['squid']).directive('xoDropdownMultiline', 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 $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;\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 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 $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 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\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 $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 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 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 $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/***/ \"./components/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__(\"./components/squid/dist/index.js\"), __webpack_require__(\"./components/jquery/dist/jquery.min.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (squid, $) {\n\n $.fn.dropdown = function () {\n console.warn('Dropdown deprecated');\n };\n\n squid.module('xo-dropdown.directive', ['squid']).directive('xoDropdown', function ($parse, $window, $timeout, $injector, $rootScope, $config, $locale, $experiment, $util, $compile) {\n\n var userAgent = ($window.navigator || {}).userAgent;\n var isWinOS = Boolean(userAgent.match(/\\(win/i));\n\n return {\n\n restrict: 'A',\n\n scope: {\n dropdownTextBindVar: '=?'\n },\n\n link: function link($scope, $element, attrs) {\n var $parentScope = $scope.$parent;\n\n var $select = $($element);\n\n var selectInitialValue = '';\n\n var ngChange = '';\n // TODO: This html should be refactored out into a template.\n var $span = $('');\n\n $select.parent().addClass('custom-select-container');\n\n // Change class names to enable styling of hover/focus states\n $select.bind('mouseenter', function () {\n $span.addClass('active');\n });\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 // Change class names to enable styling of hover/focus states\n $select.bind('mouseleave', function () {\n $span.removeClass('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 if (selectInitialValue !== val) {\n if (ngChange) {\n ngChange($parentScope);\n }\n selectInitialValue = val;\n }\n }, 10);\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\n $select.bind('click', function () {\n executeSelectChange();\n });\n } else {\n $select.bind('blur', function () {\n $span.removeClass('active');\n });\n }\n\n $select.after($span);\n\n $select.addClass('replaced');\n\n if (attrs['default']) {\n var defaultOption = document.createElement('option');\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 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 $span.find('span span').text(text);\n if (document.documentElement.getAttribute('dir') === 'rtl') {\n $span.toggleClass('ltrOverride', !$util.hasRTL(text));\n }\n }, 10);\n };\n\n $parentScope.$watch(attrs.ngModel, updateCover);\n\n $scope.$on('contentChange', updateCover);\n\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 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/***/ \"./components/xo-ui-components/src/error-tooltip/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function($) {\n\nvar _angular = __webpack_require__(\"./components/angular/angular.min.js\");\n\nvar _angularAria = __webpack_require__(\"./components/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, _angular.$registerDirective)('xo-error-tooltip', function () {\n\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 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;\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\n var requiredId = generateId();\n var invalidId = generateId();\n var requiredError;\n var invalidError;\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\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 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 if (windowBot < Math.max(requiredBot, invalidBot)) {\n $(window).scrollTop(Math.max(requiredBot, invalidBot) - $(window).height());\n }\n });\n });\n }\n };\n});\n\n_angular.$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__(\"./components/jquery/dist/jquery.min.js\")))\n\n/***/ }),\n\n/***/ \"./components/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__(\"./components/xo-return-to-merchant/dist/index.js\");\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"./components/squid/dist/index.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!./components/xo-ui-components/src/escape-hatch/closeFrame/template.html\"), __webpack_require__(\"./components/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: function controller($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/***/ \"./components/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__(\"./components/squid/dist/index.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!./components/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: function controller($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/***/ \"./components/xo-ui-components/src/floating-label/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nvar _angular = __webpack_require__(\"./components/angular/angular.min.js\");\n\nvar _squid = __webpack_require__(\"./components/squid/dist/index.js\");\n\n__webpack_require__(\"./components/xo-ui-components/src/floating-label/styles.less\");\n\nvar treatmentType;\nvar newLocale;\nvar oldLocale;\n\nfunction getTreatment() {\n\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 treatmentType = throttle && (0, _squid.$experiment)('floating_label_exp', throttle, id, {}) ? true : false;\n return treatmentType;\n}\n\n(0, _angular.$registerDirective)('floating-label', function () {\n return {\n restrict: 'A',\n link: function link(scope, element, attrs) {\n\n scope.$on('localeChange', function () {\n newLocale = _squid.$locale.country + '_' + _squid.$locale.lang;\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 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, _angular.$registerDirective)('floating-label-dropdown', function () {\n return {\n restrict: 'A',\n link: function link(scope, element, attrs) {\n\n scope.$on('localeChange', function () {\n newLocale = _squid.$locale.country + '_' + _squid.$locale.lang;\n if (oldLocale !== newLocale) {\n treatmentType = undefined;\n oldLocale = newLocale;\n }\n scope.showFloatingLabels = getTreatment();\n });\n\n (0, _angular.$timeout)(function () {\n\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 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 select.toggleClass('focused', event.type === 'change' || this.value.length > 0);\n flSpan.toggleClass('noValue', this.value.length < 1);\n label.toggleClass('hide', this.value.length < 1);\n }).trigger('mouseleave');\n });\n }\n };\n});\n\n_angular.$timeout;\n\n_angular.$rootScope;\n\n_angular.$registerDirective;\n\n_squid.$locale;\n\n_squid.$experiment;\n\n_squid.$config;\n\n_squid.$feature;\n\n/***/ }),\n\n/***/ \"./components/xo-ui-components/src/floating-label/styles.less\":\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ \"./components/xo-ui-components/src/generic-error/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _angular = __webpack_require__(\"./components/angular/angular.min.js\");\n\nvar _uiRouter = __webpack_require__(\"./components/angular-ui-router/release/angular-ui-router.min.js\");\n\nvar _squid = __webpack_require__(\"./components/squid/dist/index.js\");\n\nvar _logger = __webpack_require__(\"./components/xo-beaver/dist/logger.js\");\n\nvar _index = __webpack_require__(\"./components/xo-models/src/checkout/index.js\");\n\nvar _index2 = __webpack_require__(\"./components/xo-models/src/auth/index.js\");\n\nvar _index3 = __webpack_require__(\"./components/xo-return-to-merchant/dist/index.js\");\n\nvar _jquery = __webpack_require__(\"./components/jquery/dist/jquery.min.js\");\n\nvar _jquery2 = _interopRequireDefault(_jquery);\n\nvar _app = __webpack_require__(\"./components/xo-models/src/app/index.js\");\n\n__webpack_require__(\"./components/xo-ui-components/src/banner/directive.js\");\n\nvar _template = __webpack_require__(\"./components/xo-ui-components/src/generic-error/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\n__webpack_require__(\"./components/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_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;\n if (this.models && this.models.checkoutAppData && this.models.checkoutAppData.merchant) {\n var merchant = this.models.checkoutAppData.merchant;\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\n tag: 'xo-generic-error',\n template: _template2['default'],\n\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\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 cart: _index.$CheckoutCartModel.instance(this.props.token).retrieve()['catch'](angular.noop),\n checkoutPayee: _index.$CheckoutPayeeModel.instance(this.props.token).retrieve()['catch'](angular.noop),\n auth: _index2.$AuthModel.instance().retrieve()['catch'](angular.noop),\n tokenizedWalletInfoModel: _app.$TokenizedWalletInfoModel.instance(this.props.token).retrieve()['catch'](angular.noop)\n };\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 _index3.$ReturnToMerchant.goTo(redirectUrl);\n };\n\n self.retryCheckout = function ($event) {\n $event.preventDefault();\n\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\n return (0, _squid.$renderContent)(key);\n };\n\n // Returns the content string, based on custom key handler\n self.getContent = function () {\n\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\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 if (self.errorCode === 'ANDROID_PAY_ALREADY_PROVISIONED') {\n return (0, _squid.$renderContent)('common.backToTokenizedWalletB', { type: brandName });\n } else {\n return (0, _squid.$renderContent)('common.backToTokenizedWallet', { type: brandName });\n }\n } else {\n var merchantName = _this.props.merchant;\n\n return (0, _index3.formatReturnContent)(_squid.$renderContent, merchantName);\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 if (this.models.checkoutAppData) {\n this.cancelLink = this.models.checkoutAppData.urls.cancel_url;\n }\n\n if (this.models.checkoutPayee) {\n var merchant = this.models.checkoutPayee.merchant;\n\n if (merchant.id && !this.hideCancelLink) {\n var hcl = _squid.$config.hideCancelLinkForMerchant;\n\n var shouldHide = hcl && hcl.indexOf(merchant.id) !== -1;\n if (shouldHide) {\n this.hideCancelLink = true;\n }\n }\n }\n\n if (this.models.cart) {\n this.walletTokenization = this.models.cart.isWalletTokenization();\n }\n\n this.personalizedBanner.show = this.models.auth && this.models.auth.rememberedOT() && (0, _squid.$feature)('oneTouchPersonalization');\n\n if (this.models.auth) {\n this.showLogoutLink = _squid.$util.param('source') !== 'consumerApp' && this.props.logout && SHOW_LOGOUT_LINK_CODES.indexOf(this.errorCode) > -1 && !this.models.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: this.models.auth.first_name,\n last_name: this.models.auth.last_name\n }) || this.models.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 if (titleKey) {\n if (titleKey === 'transactionRefusedTitle' && this.models.cart && this.models.cart.isBillingNoPurchase()) {\n this.titleKey = 'genericError.' + TRANSACTION_REFUSED_BA_TITLE_MSG['BA_NO_PURCHASE'];\n } else if (titleKey === 'transactionRefusedTitle' && this.models.cart && this.models.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\n_angular.$rootScope;\n\n_uiRouter.$stateParams;\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_logger.$logger;\n\n_index.$CheckoutAppDataModel;\n\n_index.$CheckoutCartModel;\n\n_index.$CheckoutPayeeModel;\n\n_index2.$AuthModel;\n\n_index3.$ReturnToMerchant;\n\n_index3.formatReturnContent;\n\n_app.$TokenizedWalletInfoModel;\nmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ \"./components/xo-ui-components/src/generic-error/styles.less\":\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ \"./components/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/***/ \"./components/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\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"./components/jquery/dist/jquery.min.js\"), __webpack_require__(\"./components/angular/angular.min.js\"), __webpack_require__(\"./components/squid/dist/index.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!./components/xo-ui-components/src/generic-message/template.html\"), __webpack_require__(\"./components/xo-models/src/checkout/index.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function ($, angular, squid, template) {\n\n return angular.module('xo-generic-message.directive', ['squid', 'xomodel.checkout']).directive('xoGenericMessage', function ($rootScope) {\n\n return {\n template: template,\n\n scope: {\n token: '=?'\n },\n\n controller: function controller($scope, $rootScope, // eslint-disable-line no-shadow\n $stateParams, $state, $logger, $CheckoutAppDataModel, $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 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 }).then(function () {\n var merchant = $scope.checkoutAppData.merchant;\n $scope.merchant = merchant.brand_name || merchant.merchant_name || merchant.merchant_email;\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/***/ }),\n\n/***/ \"./components/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__(\"./components/squid/dist/index.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!./components/xo-ui-components/src/message/template.html\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (squid, template) {\n\n squid.module('xo-message.directive', ['squid']).directive('xoMessage', 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/***/ \"./components/xo-ui-components/src/modal/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function($) {\n\n__webpack_require__(\"./components/xo-ui-components/src/accessibility/directive.js\");\n\nvar _squid = __webpack_require__(\"./components/squid/dist/index.js\");\n\nvar _template = __webpack_require__(\"./components/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\n scope: {\n show: '=?',\n showCloseButton: '=?',\n enableCloseOnEscape: '=?',\n onClose: '=?',\n overrideDefaultContainer: '@?' // Boolean to determine if default styling should be applied to container\n },\n\n controller: function controller($scope) {\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\n if ($scope.onClose) {\n $scope.onClose();\n }\n };\n }\n };\n});\n\n_squid.$registerDirective;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"./components/jquery/dist/jquery.min.js\")))\n\n/***/ }),\n\n/***/ \"./components/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/***/ \"./components/xo-ui-components/src/prefix-attrs-with/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\n\nvar _angular = __webpack_require__(\"./components/angular/angular.min.js\");\n\nvar _squid = __webpack_require__(\"./components/squid/dist/index.js\");\n\nexports['default'] = (0, _angular.$registerDirective)('prefix-attrs-with', function () {\n return {\n restrict: 'A',\n link: function link(scope, elem, attrs, controller) {\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_angular.$registerDirective;\n\n_squid.$util;\nmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ \"./components/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__(\"./components/angular/angular.min.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!./components/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: function controller($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/***/ \"./components/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__(\"./components/jquery/dist/jquery.min.js\"), __webpack_require__(\"./components/squid/dist/index.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!./components/xo-ui-components/src/spinner/template.html\"), __webpack_require__(\"./components/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: function controller($scope, $element, $rootScope, $Api, $locale, $logger, $loader, $timeout) {\n\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/***/ \"./components/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__(\"./components/angular/angular.min.js\");\n\nvar _squid = __webpack_require__(\"./components/squid/dist/index.js\");\n\nvar _template = __webpack_require__(\"./components/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 }\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__(\"./components/jquery/dist/jquery.min.js\")))\n\n/***/ }),\n\n/***/ \"./components/xo-ui-components/src/tooltip/template.html\":\n/***/ (function(module, exports) {\n\nmodule.exports = \"
      \\n
      \\n\"\n\n/***/ }),\n\n/***/ \"./components/xo-ui-components/src/ui-utils/directive.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nvar _angular = __webpack_require__(\"./components/angular/angular.min.js\");\n\nvar _jquery = __webpack_require__(\"./components/jquery/dist/jquery.min.js\");\n\nvar _jquery2 = _interopRequireDefault(_jquery);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n(0, _angular.$registerDirective)('scrollTop', function () {\n // Generic scroll top.\n return {\n link: function link(scope, element, attr) {\n var targetId = attr['scrollTop'];\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, _angular.$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 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.$registerDirective;\n\n_angular.$parse;\n\n/***/ }),\n\n/***/ \"./components/xo-validation/dist/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__(\"./components/jquery/dist/jquery.min.js\"), __webpack_require__(\"./components/angular/angular.min.js\"), __webpack_require__(\"./components/squid/dist/index.js\")], __WEBPACK_AMD_DEFINE_RESULT__ = (function ($, angular, squid) {\n squid.module('xo-validation.directive', ['squid']).directive('xoValidation', function () {\n return {\n template: '',\n restrict: 'A',\n require: 'ngModel',\n\n link: function link(scope, elem, attr, ngModel) {\n\n var validationUtil = {\n\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 * 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 (angular.isString(regex)) {\n regex = new RegExp(regex);\n }\n\n return regex ? regex.test(value) : true;\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 // returns whether alphabetic or not\n alphabetic: function alphabetic(value) {\n return this.valid(value, /[A-Za-z]+$/);\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\n validBankAccount: function validBankAccount(value) {\n if (!scope.showIBAN) {\n return this.numeric(value);\n }\n\n return true;\n },\n\n validRouting: function validRouting(value) {\n if (!scope.showIBAN) {\n return this.valid(value, /^\\d{8}$/);\n }\n return true;\n },\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\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 return true;\n },\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 // @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\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\n validStreet: function validStreet(value) {\n return this.valid(value, /^([A-Za-z0-9-. ]*)$/);\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\n validDobYear: function validDobYear(value) {\n return value !== 'YYYY';\n },\n\n validDobDay: function validDobDay(value) {\n return value !== 'DD';\n },\n\n validDobMonth: function validDobMonth(value) {\n return value !== 'MM';\n },\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 return false;\n },\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\n validEmailOrPhone: function validEmailOrPhone(value) {\n if (!value) {\n return false;\n }\n\n return this.validEmail(value) || this.validPhone(value);\n },\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\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 // 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 /* 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 month = parseInt(month, 10);\n } else {\n return false;\n }\n\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 // 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 // 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 // pads a number to two digits\n twoDigits: function twoDigits(value) {\n return value < 10 ? '0' + value : '' + value;\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\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 || angular.isString(regex) && regex.indexOf('validationPattern') > -1) {\n return !this.empty(value);\n }\n\n value = value && value.toUpperCase();\n\n if (angular.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\n validExpiry: function validExpiry(value, options) {\n var $monthEl = $('[ng-model=\"card.expiry_month\"]');\n var $yearEl = $('[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\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\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 setExpiryValidity: function setExpiryValidity(options) {\n if (!options) {\n return true;\n }\n\n var cardType = options.cardType || '',\n 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 = $('#startmonth');\n var $yearEl = $('#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\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\n setDOBValidity: function setDOBValidity(options) {\n if (!options) {\n return true;\n }\n\n var dobEnabledCards = ['COFIDIS', 'COFINOGA', 'CETELEM'];\n\n var dobValidity = true;\n\n var $monthEl = $('#dobMonthCC');\n var $dayEl = $('#dobDayCC');\n var $yearEl = $('#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\n validName: function validName(value) {\n return this.valid(value, /^([a-zA-Z,\\xC0-\\xFF,\\u00C0-\\u017F\\,\\-\\s\\,\\'])*$/);\n // ' this comment is to un-confuse editors on synax coloring because of the single quote above\n },\n\n isChecked: function isChecked(value, options) {\n // $.is does not exist in $\n // eslint-disable-line angular/ng_angularelement\n var $el = $(options.el);\n\n return $el.is(':checked');\n },\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 = angular.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}).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/***/ \"./components/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__(\"./components/jquery/dist/jquery.min.js\"), __webpack_require__(\"./components/angular/angular.min.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!./components/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: function controller($scope, $rootScope, $timeout, $window, $Resolve3DS, $CheckoutAppDataModel, $config, $locale, $logger) {\n\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 timeout3DSConfig = $config.timeout3DS || { 'DEFAULT': 30000 };\n\n var lightBoxTimeout = timeout3DSConfig[$locale.country] || timeout3DSConfig['DEFAULT'];\n\n function show3DSLightBox() {\n if ($scope.show3DS) {\n var lightbox = angular.element(document.getElementById('light-box'));\n lightbox.addClass('open');\n $scope.show3DS = false;\n $rootScope.$emit('loaded');\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\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\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 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 $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\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\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 lightbox.removeClass('open');\n\n $timeout(function () {\n var lightboxMask = angular.element(document.getElementById('mask'));\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 $scope.on3DSPageLoad = show3DSLightBox;\n\n $window.on3DSPageLoad = $scope.on3DSPageLoad;\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/***/ \"./components/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\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"./components/jquery/dist/jquery.min.js\"), __webpack_require__(\"./components/squid/dist/index.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!./components/xo-wallet-components/src/add-bank/bank-input/template.html\"), __webpack_require__(\"./components/jquery-mask-plugin/dist/jquery.mask.js\"), __webpack_require__(\"./components/xo-models/src/fi/index.js\"), __webpack_require__(\"./components/xo-ui-components/src/dropdown/directive.js\"), __webpack_require__(\"./components/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', 'xo-dropdown.directive', 'xo-error-tooltip.directive']).directive('xoBankInput', function ($rootScope) {\n return {\n template: template,\n\n scope: {\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: function controller($scope, $AddBankModel, $pxp, $locale) {\n\n function setShowIBAN() {\n $scope.showIBAN = $scope.isUnbranded ? true : false;\n return $pxp('xo_xoonboarding_iban_throttle', { 'ctx.COUNTRY': $locale.country }, 'xo_xoonboarding_iban_throttle_test').then(function (result) {\n if (result) {\n // US1009498: default to IBAN on billing page when its test\n $scope.showIBAN = true;\n }\n });\n }\n\n setShowIBAN();\n\n var days = [];\n var months = [];\n var years = [];\n\n var i;\n for (i = 1; i <= 31; i += 1) {\n var d = i < 10 ? '0' + i : i.toString();\n days.push(d);\n }\n\n for (i = 1; i <= 12; i += 1) {\n var m = i < 10 ? '0' + i : i.toString();\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 };\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/***/ \"./components/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_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"./components/angular/angular.min.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!./components/xo-wallet-components/src/add-card/addCep/template.html\"), __webpack_require__(\"./components/angular-ui-utils/ui-utils.min.js\"), __webpack_require__(\"./components/squid/dist/index.js\"), __webpack_require__(\"./components/xo-models/src/address/index.js\"), __webpack_require__(\"./components/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', 'ui.validate', '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: function controller($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/***/ \"./components/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__(\"./components/squid/dist/index.js\"), __webpack_require__(\"./components/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', 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), \"components/xo-wallet-components/src/add-card/addCep\", \"components/xo-wallet-components/src/add-card/addCep/route.js\"))\n\n/***/ }),\n\n/***/ \"./components/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_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"./components/jquery/dist/jquery.min.js\"), __webpack_require__(\"./components/squid/dist/index.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!./components/xo-wallet-components/src/add-card/addbilling/template.html\"), __webpack_require__(\"./components/angular-ui-utils/ui-utils.min.js\"), __webpack_require__(\"./components/xo-models/src/checkout/index.js\"), __webpack_require__(\"./components/xo-models/src/fi/index.js\"), __webpack_require__(\"./components/xo-models/src/address/index.js\"), __webpack_require__(\"./components/xo-address-components/src/add-address/directive.js\"), __webpack_require__(\"./components/xo-page-components/src/aside-header/directive.js\"), __webpack_require__(\"./components/xo-ui-components/src/error-tooltip/directive.js\"), __webpack_require__(\"./components/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', 'ui.validate', '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: function controller($scope, $populate, $BillingAddressesModel, $BillingAddressModel, $PrefillAddressModel, $feature, $state, $element, $config, $locale, $timeout) {\n var country = $locale.getCountryCodeISO();\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 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 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 $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 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 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/***/ \"./components/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__(\"./components/squid/dist/index.js\"), __webpack_require__(\"./components/xo-wallet-components/src/add-card/addbilling/directive.js\"), __webpack_require__(\"./components/xo-address-components/src/add-address/directive.js\"), __webpack_require__(\"./components/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', 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), \"components/xo-wallet-components/src/add-card/addbilling\", \"components/xo-wallet-components/src/add-card/addbilling/route.js\"))\n\n/***/ }),\n\n/***/ \"./components/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__(\"./components/xo-wallet-components/src/add-card/cardMetaData/index.js\");\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"./components/angular/angular.min.js\"), __webpack_require__(\"./components/squid/dist/index.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!./components/xo-wallet-components/src/add-card/addcard/template.html\"), __webpack_require__(\"./components/jquery/dist/jquery.min.js\"), __webpack_require__(\"./components/xo-models/src/checkout/index.js\"), __webpack_require__(\"./components/xo-models/src/auth/index.js\"), __webpack_require__(\"./components/xo-models/src/fi/index.js\"), __webpack_require__(\"./components/xo-wallet-components/src/add-card/creditcard-input/directive.js\"), __webpack_require__(\"./components/xo-ui-components/src/dropdown/directive.js\"), __webpack_require__(\"./components/xo-tray-height/dist/directive.js\"), __webpack_require__(\"./components/xo-page-components/src/aside-header/directive.js\"), __webpack_require__(\"./components/xo-ui-components/src/message/directive.js\"), __webpack_require__(\"./components/xo-ui-components/src/error-tooltip/directive.js\"), __webpack_require__(\"./components/angular-ui-utils/ui-utils.min.js\"), __webpack_require__(\"./components/xo-ui-components/src/accessibility/directive.js\"), __webpack_require__(\"./components/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', 'ui.validate', '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: function controller($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.isCUP = function () {\n return $scope.cardmodel.card && $scope.cardmodel.card.type && $scope.cardmodel.card.type === 'CUP';\n };\n\n $scope.flag = function (field) {\n return _cardMetaData.$CardMetaData.getMetaData($scope.cardmodel.card, field);\n };\n\n $scope.buttonText = function () {\n var contentString = 'creditcard.addBtn';\n if ($scope.cardmodel.card.isExisting()) {\n contentString = 'creditcard.updateBtn';\n } else if ($scope.isCUP()) {\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 $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 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.isCUP() && $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.isCUP()) {\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 $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) {}\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/***/ \"./components/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__(\"./components/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__(\"./components/squid/dist/index.js\"), __webpack_require__(\"./components/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', 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), \"components/xo-wallet-components/src/add-card/addcard\", \"components/xo-wallet-components/src/add-card/addcard/route.js\"))\n\n/***/ }),\n\n/***/ \"./components/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__(\"./components/squid/dist/index.js\");\n\n__webpack_require__(\"./components/xo-ui-components/src/tooltip/directive.js\");\n\n__webpack_require__(\"./components/xo-ui-components/src/error-tooltip/directive.js\");\n\n__webpack_require__(\"./components/xo-ui-components/src/floating-label/directive.js\");\n\n__webpack_require__(\"./components/xo-ui-components/src/directionality/directive.js\");\n\nvar _template = __webpack_require__(\"./components/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.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/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"./components/jquery/dist/jquery.min.js\")))\n\n/***/ }),\n\n/***/ \"./components/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/***/ \"./components/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__(\"./components/angular/angular.min.js\");\n\nvar _angular2 = _interopRequireDefault(_angular);\n\nvar _squid = __webpack_require__(\"./components/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 CUPCREDIT: {\n fields: {\n address: false,\n phone: true\n },\n length: {\n max: 19\n }\n },\n\n CUPAMEXCREDIT: {\n fields: {\n address: false,\n phone: true\n },\n length: {\n cvv: 4,\n min: 15,\n max: 15\n }\n },\n\n CUPDEBIT: {\n fields: {\n address: false,\n cvv: false,\n expiry: false,\n phone: true\n },\n length: {\n max: 19\n }\n },\n\n CUPAMEXDEBIT: {\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\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 types.some(function (type) {\n var metaData = cardMetaData[type];\n if (metaData && metaData.pattern && metaData.pattern.test(number)) {\n result = type;\n return true;\n }\n });\n return result;\n}\n\nvar $CardMetaData = exports.$CardMetaData = {\n getMetaData: function getMetaData(card, field) {\n var cardType = card && card.type || 'DEFAULT';\n if (cardType === 'CUP') {\n cardType = cardType + (card.dualType ? card.dualType : '');\n cardType = cardType + (['DEBIT', 'DEBITCARD'].indexOf(card.productType) > -1 ? 'DEBIT' : 'CREDIT');\n }\n return _squid.$Class.get(CARD_META_DATA[cardType], field);\n },\n getCardType: function getCardType(types, number) {\n var cardType = {};\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 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__(\"./components/jquery/dist/jquery.min.js\")))\n\n/***/ }),\n\n/***/ \"./components/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__(\"./components/xo-wallet-components/src/add-card/cardMetaData/index.js\");\n\n__webpack_require__(\"./components/xo-ui-components/src/tooltip/directive.js\");\n\n__webpack_require__(\"./components/xo-ui-components/src/error-tooltip/directive.js\");\n\n__webpack_require__(\"./components/xo-ui-components/src/floating-label/directive.js\");\n\n__webpack_require__(\"./components/xo-ui-components/src/directionality/directive.js\");\n\n__webpack_require__(\"./components/xo-wallet-components/src/add-card/cardExpiry/directive.js\");\n\n__webpack_require__(\"./components/xo-wallet-components/src/add-card/cvv/directive.js\");\n\n__webpack_require__(\"./components/xo-wallet-components/src/add-card/dob/directive.js\");\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"./components/squid/dist/index.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!./components/xo-wallet-components/src/add-card/creditcard-input/template.html\"), __webpack_require__(\"./components/jquery/dist/jquery.min.js\"), __webpack_require__(\"./components/xo-models/src/fi/index.js\"), __webpack_require__(\"./components/angular-ui-utils/ui-utils.min.js\"), __webpack_require__(\"./components/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.fi', 'xo-tooltip.directive', 'xo-error-tooltip.directive', 'xo-name-input.directive', 'ui.validate']).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('xoCreditCard', function ($timeout, $util) {\n return {\n template: template,\n restrict: 'E',\n\n scope: {\n token: '=?',\n card: '=?',\n user: '=?',\n selectedPromotionCardType: '=?',\n promotion: '=?',\n cardTypeChanged: '=?',\n cardNumberChanged: '=?',\n manageCardFlow: '=?'\n },\n controller: function controller($scope, $populate, $CardTypesModel, $Class, $locale, $CardTypeFromBinModel, $config, $feature, $pxp, $logger, $CheckoutCartModel, $FlowEligibilityModel, $meta) {\n $scope.locale = $locale;\n $scope.country = $scope.locale.country;\n\n var CARD_TYPE_VISA = 'VISA';\n var isUnsupportedCard;\n var lastVerifiedBin = '';\n var lastRequestedBin = ''; // bin requested to service to fetch card type and pending response.\n\n function updateNonVisaCurrencyConversion() {\n $scope.nonVisaDCCFlag = undefined;\n return $pxp('xo_xoonboarding_dcc_nonvisa', { 'ctx.COUNTRY': $scope.locale.country }, 'xo_xoonboarding_dcc_nonvisa_test').then(function (result) {\n if (result) {\n $scope.nonVisaDCCFlag = true;\n checkCardForDccCall();\n }\n });\n }\n\n updateNonVisaCurrencyConversion();\n\n function setConversionData(data) {\n $scope.card.currencyConvData = data;\n $scope.conversion = data;\n }\n\n function getCurrencyConversion(number) {\n $scope.checkoutCart.action('calculateCurrencyConversion', {\n data: {\n cardNumber: number,\n country: $locale.country\n },\n success: function success(result) {\n setConversionData(result);\n\n if (!result) {\n return;\n }\n\n $scope.conversion.formattedFromStr = truncateCurrencyConversionStr(result.from, result.from_amount);\n $scope.conversion.formattedToStr = truncateCurrencyConversionStr(result.to, result.to_amount);\n },\n contingencies: {\n DEFAULT: conversionErrorHandler\n },\n error: conversionErrorHandler\n });\n\n function conversionErrorHandler(key) {\n /**\n * Set $scope.card.currencyConvData && $scope.conversion to `undefined` so that\n * if this isn't the first card the user entered and the previous card got a 200\n * response from the API, then we don't want the conversion data for that card to\n * be used for the newly entered card.\n */\n setConversionData();\n $logger.warn('Contingency encountered during calculateCurrencyConversion call.');\n return;\n }\n }\n\n /* @params\n * fullStr: The full formatted currency conversion string returned from downstream service.\n * amtStr: Just the currency conversion amount portion of the full string returned from downstream.\n */\n function truncateCurrencyConversionStr(fullStr, amtStr) {\n try {\n var fixedPrecision = Number(amtStr).toFixed(4);\n var formattedStr = fullStr.replace(amtStr, fixedPrecision);\n if (fixedPrecision == 0) {\n // eslint-disable-line\n throw new Error('Currency conversion truncation error encountered, defaulting to full unformatted currencyConversion string.');\n }\n return formattedStr;\n } catch (e) {\n $logger.warn('currency_conversion_error', {\n reason: 'Error formatting currency conversion data to formatted str in wallet/add-card/creditcard-input directive',\n error: e\n });\n return fullStr;\n }\n }\n\n function currencyConvCardTypeChangeHandler() {\n $scope.card.ppconversion = 'PAYPAL';\n\n // Reset `this.conversion` and `this.card.currencyConvData` since card has changed\n setConversionData();\n checkCardForDccCall();\n }\n\n function checkCardForDccCall() {\n var cartCurrency = $scope.checkoutCart.get('purchase.amounts.total.currency_code');\n var billingCurrency = $util.getProperty($scope, 'locale.metadata.currency.code');\n\n // If the cart currency and the currency for the user's billing address are the same then we\n // don't need to show the loading spinner or call the DCC API since no conversion is necessary\n if (cartCurrency && billingCurrency && cartCurrency === billingCurrency) {\n return;\n }\n\n var number = ($scope.card.number || '').replace(/[^0-9]+/g, '').slice(0, $scope.maxLength());\n var isCardLenValid = $scope.cardLengthValid(number);\n\n // If the card length isn't valid, we reset `$scope.conversion` and `$scope.card.currencyConvData\n // because card length has been reset, and we are in the process of entering in new valid card number.\n if (!isCardLenValid) {\n setConversionData();\n }\n\n // Combined check for all conditions for a getCurrencyConversion call\n if (isCardLenValid && isCardTypeValid() && isCurrencyConversionUncalled() && $scope.nonVisaDCCFlag) {\n getCurrencyConversion(number);\n }\n\n // if getCurrencyConversion has already been called for card type, don't call it again\n function isCurrencyConversionUncalled() {\n return $scope.conversion === undefined;\n }\n\n // non-visa and not undefined\n function isCardTypeValid() {\n return $scope.card.type !== CARD_TYPE_VISA && $scope.card.type !== undefined;\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 = (number || '').replace(/[^0-9]+/g, '');\n\n return number.length >= $scope.flag('length.min') && number.length <= $scope.flag('length.max');\n };\n\n $scope.cardLuhnValid = function (input) {\n\n if (!$scope.flag('luhn')) {\n return true;\n }\n\n if ($scope.card && $scope.card.isExisting()) {\n return true;\n }\n\n input = (input || '').replace(/[^0-9]+/g, '');\n\n var sum = 0;\n var numdigits = input.length;\n var parity = numdigits % 2;\n var i = 0;\n var digit;\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 $scope.isPlcc = $scope.selectedPromotionCardType && $scope.selectedPromotionCardType.type === 'plcc' ? true : false;\n\n $scope.flag = function (field) {\n if ($scope.isPlcc && !$scope.card.type) {\n $scope.card.type = 'PLCC';\n }\n return _cardMetaData.$CardMetaData.getMetaData($scope.card, field);\n };\n\n $scope.maxLength = function () {\n\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 = ($scope.card.number || '').replace(/[^0-9]+/g, '').slice(0, $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 (result) {\n $scope.showLabels = result && result.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 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 $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 return item < 10 ? '0' + s : s;\n }\n\n $scope.supportedCardNamesCommaSeparated = $scope.cardTypes.supportedNames().join(', ');\n\n $scope.$on('localeChange', function () {\n\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\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 return Boolean(['ES', 'FR', 'GB', 'IT'].indexOf($scope.locale.country) > -1) || forceDropDown;\n };\n\n $scope.showDropDown = function () {\n\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 number = formatted.join('');\n return number;\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.ccOnBlur = function () {\n if ($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 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 });\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 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 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.isCupSecureCard = 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.isCupSecureCard = lastVerifiedBin.isCupSecureCard;\n $scope.card.dualType = lastVerifiedBin.dualType;\n $scope.card.productType = lastVerifiedBin.productType;\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 // Make sure isCupSecureCard is set to false, as there is a possibility the next\n // retrieve could indicate it as a CUP UPOP card.\n $scope.card.isCupSecureCard = false;\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 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 (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 // CUP Non Upop card is a CUP Secure Card.\n $scope.card.isCupSecureCard = type === 'CUP' && !result.isUpop;\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 isCupSecureCard: type === 'CUP' && !result.isUpop,\n dualType: result.dualType,\n productType: result.productType\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 = ($scope.card.number || '').replace(/[^0-9]+/g, '').slice(0, $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.isNonVisaCurrencyConversionEnabled = function () {\n return $scope.conversion && $scope.card && $scope.card.type && $scope.card.type !== CARD_TYPE_VISA;\n };\n\n $scope.isPPConversion = function () {\n return $scope.card && $scope.card.ppconversion === 'PAYPAL';\n };\n\n $scope.isVendorConversion = function () {\n return $scope.card && $scope.card.ppconversion === 'VENDOR';\n };\n\n $scope.showCardIssuerRateAvailable = function () {\n return $scope.isPPConversion() && ['CA', 'US'].indexOf($scope.country) > -1;\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\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 // 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 if ($feature('disableFullWidthCharacters') && regex.test($scope.card.number)) {\n $logger.info('checkout_fpti', {\n 'is_fullwidth_character': true\n });\n }\n\n var number = ($scope.card.number || '').replace(/[^0-9]+/g, '').slice(0, $scope.maxLength());\n var formattedNumber;\n\n $scope.unformattedCardNumber = number;\n\n // check to see if DCC service call necessary\n checkCardForDccCall();\n\n // Attempt to determine the card type\n var cardType;\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 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 $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/***/ }),\n\n/***/ \"./components/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__(\"./components/squid/dist/index.js\");\n\nvar _cardMetaData = __webpack_require__(\"./components/xo-wallet-components/src/add-card/cardMetaData/index.js\");\n\n__webpack_require__(\"./components/xo-ui-components/src/floating-label/directive.js\");\n\n__webpack_require__(\"./components/xo-ui-components/src/directionality/directive.js\");\n\nvar _template = __webpack_require__(\"./components/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.maskCVV = (0, _squid.$feature)('maskCVV', false, _squid.$locale.country);\n this.cvvLength = function () {\n return _cardMetaData.$CardMetaData.getMetaData(_this.props.card, 'length.cvv');\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/***/ }),\n\n/***/ \"./components/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/***/ \"./components/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__(\"./components/angular/angular.min.js\"), __webpack_require__(\"./components/squid/dist/index.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!./components/xo-wallet-components/src/add-card/template.html\"), __webpack_require__(\"./components/xo-models/src/checkout/index.js\"), __webpack_require__(\"./components/xo-models/src/fi/index.js\"), __webpack_require__(\"./components/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: function controller($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/***/ \"./components/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__(\"./components/squid/dist/index.js\");\n\nvar _template = __webpack_require__(\"./components/xo-wallet-components/src/add-card/dob/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\n__webpack_require__(\"./components/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 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/***/ \"./components/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/***/ \"./components/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__(\"./components/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__(\"./components/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__(\"./components/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/***/ \"./components/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__(\"./components/squid/dist/index.js\"), __webpack_require__(\"./components/xo-wallet-components/src/add-card/directive.js\"), __webpack_require__(\"./components/xo-wallet-components/src/add-card/addcard/route.js\"), __webpack_require__(\"./components/xo-wallet-components/src/add-card/selectcard/route.js\"), __webpack_require__(\"./components/xo-wallet-components/src/add-card/addbilling/route.js\"), __webpack_require__(\"./components/xo-wallet-components/src/add-card/addCep/route.js\"), __webpack_require__(\"./components/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', 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), \"components/xo-wallet-components/src/add-card\", \"components/xo-wallet-components/src/add-card/route.js\"))\n\n/***/ }),\n\n/***/ \"./components/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__(\"./components/angular/angular.min.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!./components/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: function controller($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/***/ \"./components/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__(\"./components/angular/angular.min.js\"), __webpack_require__(\"./components/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', 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), \"components/xo-wallet-components/src/add-card/selectcard\", \"components/xo-wallet-components/src/add-card/selectcard/route.js\"))\n\n/***/ }),\n\n/***/ \"./components/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__(\"./components/angular/angular.min.js\");\n\nvar _angular2 = _interopRequireDefault(_angular);\n\nvar _squid = __webpack_require__(\"./components/squid/dist/index.js\");\n\nvar _util = __webpack_require__(\"./components/xo-wallet-components/src/fi-contingency-list/util.js\");\n\nvar _index = __webpack_require__(\"./components/xo-models/src/fi/index.js\");\n\n__webpack_require__(\"./components/xo-ui-components/src/spinner-button/directive.js\");\n\nvar _template = __webpack_require__(\"./components/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: true\n },\n phone: {\n type: 'var',\n required: false\n },\n cardModel: {\n type: 'var',\n required: true\n },\n onSuccess: {\n type: 'var',\n required: true\n },\n message: {\n type: 'var',\n required: true\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 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__(\"./components/jquery/dist/jquery.min.js\")))\n\n/***/ }),\n\n/***/ \"./components/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/***/ \"./components/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__(\"./components/angular/angular.min.js\");\n\nvar _squid = __webpack_require__(\"./components/squid/dist/index.js\");\n\nvar _uiRouter = __webpack_require__(\"./components/angular-ui-router/release/angular-ui-router.min.js\");\n\nvar _addCard = __webpack_require__(\"./components/xo-wallet-components/src/add-card/index.js\");\n\nvar _util = __webpack_require__(\"./components/xo-wallet-components/src/fi-contingency-list/util.js\");\n\nvar _jquery = __webpack_require__(\"./components/jquery/dist/jquery.min.js\");\n\nvar _jquery2 = _interopRequireDefault(_jquery);\n\n__webpack_require__(\"./components/xo-wallet-components/src/confirm-upop/init/directive.js\");\n\n__webpack_require__(\"./components/xo-wallet-components/src/confirm-upop/confirm/directive.js\");\n\n__webpack_require__(\"./components/xo-wallet-components/src/confirm-upop/styles.less\");\n\nvar _template = __webpack_require__(\"./components/xo-wallet-components/src/confirm-upop/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\nvar _index = __webpack_require__(\"./components/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: true\n },\n phone: {\n type: 'var',\n required: false\n },\n cardModel: {\n type: 'var',\n required: true\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 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 return _addCard.$CardMetaData.getMetaData(_this.cardModel, field);\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_uiRouter.$stateParams;\n\n_addCard.$CardMetaData;\n\n_util.$fiErrorUtil;\n\n_index.$CheckoutSessionModel;\nmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ \"./components/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__(\"./components/squid/dist/index.js\");\n\nvar _util = __webpack_require__(\"./components/xo-wallet-components/src/fi-contingency-list/util.js\");\n\nvar _index = __webpack_require__(\"./components/xo-models/src/fi/index.js\");\n\n__webpack_require__(\"./components/xo-ui-components/src/spinner-button/directive.js\");\n\nvar _template = __webpack_require__(\"./components/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: true\n },\n phone: {\n type: 'var',\n required: false\n },\n cardModel: {\n type: 'var',\n required: true\n },\n onSuccess: {\n type: 'var',\n required: true\n },\n flag: {\n type: 'var',\n required: true\n },\n setErrorData: {\n type: 'var',\n required: true\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 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__(\"./components/jquery/dist/jquery.min.js\")))\n\n/***/ }),\n\n/***/ \"./components/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/***/ \"./components/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__(\"./components/squid/dist/index.js\");\n\nvar _directive = __webpack_require__(\"./components/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/***/ \"./components/xo-wallet-components/src/confirm-upop/styles.less\":\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ \"./components/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/***/ \"./components/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/***/ \"./components/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__(\"./components/jquery/dist/jquery.min.js\"), __webpack_require__(\"./components/angular/angular.min.js\"), __webpack_require__(\"./components/squid/dist/index.js\"), __webpack_require__(\"./components/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', 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 if (errorData.errorCodes && errorData.errorCodes.length) {\n errorData.errorCodes.forEach(function (errorCode) {\n var contentKey = contingencyList[errorCode] || defaultKey || 'errorGeneral';\n var message;\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 $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 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 $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), \"components/xo-wallet-components/src/fi-contingency-list\", \"components/xo-wallet-components/src/fi-contingency-list/util.js\"))\n\n/***/ }),\n\n/***/ \"./components/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__(\"./components/squid/dist/index.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!./components/xo-wallet-components/src/installment-options/template.html\"), __webpack_require__(\"./components/xo-models/src/checkout/index.js\"), __webpack_require__(\"./components/xo-models/src/auth/index.js\"), __webpack_require__(\"./components/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: function controller($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 $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/***/ \"./components/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__(\"./components/angular/angular.min.js\");\n\nvar _index = __webpack_require__(\"./components/squid/dist/index.js\");\n\nvar _index2 = __webpack_require__(\"./components/xo-models/src/checkout/index.js\");\n\nvar _index3 = __webpack_require__(\"./components/xo-models/src/onboard/index.js\");\n\nvar _index4 = __webpack_require__(\"./components/xo-models/src/fi/index.js\");\n\nvar _util = __webpack_require__(\"./components/xo-wallet-components/src/fi-contingency-list/util.js\");\n\nvar _index5 = __webpack_require__(\"./components/xo-models/src/auth/index.js\");\n\nvar _logger = __webpack_require__(\"./components/xo-beaver/dist/logger.js\");\n\nvar _uiRouter = __webpack_require__(\"./components/angular-ui-router/release/angular-ui-router.min.js\");\n\nvar _index6 = __webpack_require__(\"./components/xo-models/src/address/index.js\");\n\n__webpack_require__(\"./components/xo-address-components/src/add-address/directive.js\");\n\n__webpack_require__(\"./components/xo-form-components/src/name-input/directive.js\");\n\n__webpack_require__(\"./components/xo-form-components/src/dob-input/directive.js\");\n\n__webpack_require__(\"./components/xo-guest-components/src/guest/emailInput/directive.js\");\n\n__webpack_require__(\"./components/xo-form-components/src/phone/phoneInput/directive.js\");\n\nvar _template = __webpack_require__(\"./components/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 days.push(d);\n }\n\n for (i = 1; i <= 12; i += 1) {\n var m = i < 10 ? '0' + i : i.toString();\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 var shippingAddress = this.models.checkoutCart.get('purchase.shipping_address');\n var billingAddress = this.models.checkoutCart.get('billing_address') || {};\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 _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 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();\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 // 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/***/ \"./components/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\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__(\"./components/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__(\"./components/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__(\"./components/angular-ui-router/release/angular-ui-router.min.js\");\n\nvar _logger = __webpack_require__(\"./components/xo-beaver/dist/logger.js\");\n\nvar _squid = __webpack_require__(\"./components/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__(\"./components/angular/angular.min.js\");\n\nvar _uiRouter = __webpack_require__(\"./components/angular-ui-router/release/angular-ui-router.min.js\");\n\nvar _squid = __webpack_require__(\"./components/squid/dist/index.js\");\n\nvar _index = __webpack_require__(\"./components/xo-models/src/auth/index.js\");\n\nvar _logger = __webpack_require__(\"./components/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__(\"./components/angular/angular.min.js\");\n\nvar _uiRouter = __webpack_require__(\"./components/angular-ui-router/release/angular-ui-router.min.js\");\n\nvar _index = __webpack_require__(\"./components/xo-return-to-merchant/dist/index.js\");\n\nvar _squid = __webpack_require__(\"./components/squid/dist/index.js\");\n\nvar _index2 = __webpack_require__(\"./components/xo-models/src/user/index.js\");\n\nvar _index3 = __webpack_require__(\"./components/xo-models/src/checkout/index.js\");\n\nvar _logger = __webpack_require__(\"./components/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 payeeModel = models.payeeModel;\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 merchantId = payeeModel.getId();\n var _$config$fallbackWhit = _squid.$config.fallbackWhitelist;\n _$config$fallbackWhit = _$config$fallbackWhit === undefined ? {} : _$config$fallbackWhit;\n var _$config$fallbackWhit2 = _$config$fallbackWhit.exceptions,\n exceptions = _$config$fallbackWhit2 === undefined ? {} : _$config$fallbackWhit2,\n throttle = _$config$fallbackWhit.throttle,\n _$config$fallbackWhit3 = _$config$fallbackWhit.whitelist,\n whitelist = _$config$fallbackWhit3 === undefined ? [] : _$config$fallbackWhit3;\n\n // Merchant is in the exceptions list -- fallbacks not allowed\n\n if (exceptions.hasOwnProperty(merchantId)) {\n _logger.$logger.info('fallback_inhibited_for_merchant', { merchantId: merchantId, reason: reason });\n return goToGenericError();\n }\n\n if (err instanceof _squid.$FallbackError) {\n var product = 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 fallbackToUx = (_squid.$config.fallbackAriesUnsupportedToUx || []).indexOf(country) > -1;\n\n product = fallbackToUx ? 'ux' : product || 'ux';\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 return (0, _squid.$pxp)('xo_xoon_fallback_eligibility', { 'ctx.COUNTRY': _squid.$locale.country }, '(xo_xoon_fallback_eligibility_)(.*)').then(function () {\n var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n treatment_name = _ref.treatment_name;\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 and random\n * is below the throttle value.\n *\n * PXP OVERRIDE - TAKES PRECEDENCE OVER CONFIG WHITELIST:\n * When the 'xo_xoon_fallback_eligibility' PXP returns 'xo_xoon_fallback_eligibility_disabled'\n * then the error will result in the user being redirected to the generic error page. If the\n * users' browser supports session storage they will be shown the retry link.\n */\n var fallbacksDisabled = treatment_name === 'xo_xoon_fallback_eligibility_disabled';\n var fallbackNotWhitelisted = throttle > 0 && whitelist.indexOf(reason) === -1;\n\n if (fallbacksDisabled || fallbackNotWhitelisted) {\n var showRetryLink = fallbacksDisabled || (0, _squid.$experiment)('fallback_reason_not_whitelisted', throttle, _angular.$rootScope.token, { reason: reason });\n\n // We're using sessionStorage for retry detection\n if (_squid.$util.sessionStorageEnabled() && showRetryLink) {\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 } else if (fallbacksDisabled) {\n // If fallbacks are disabled and sessionStorage isn't enabled\n // then show generic error page without retry link\n return goToGenericError();\n }\n }\n\n _logger.$logger.info('fallback_reason_whitelisted', { reason: reason, product: product });\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 })['catch'](function (pxpErr) {\n _logger.$logger.info('fallback_pxp_error', { reason: pxpErr });\n return goToGenericError(pxpErr);\n });\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.$experiment;\n\n_squid.$util;\n\n_squid.$locale;\n\n_squid.$populate;\n\n_squid.$pxp;\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__(\"./components/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}, _$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__(\"./components/angular/angular.min.js\");\n\nvar _model = __webpack_require__(\"./components/xo-tracking/dist/model.js\");\n\nvar _squid = __webpack_require__(\"./components/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__(\"./components/angular/angular.min.js\");\n\nvar _logger = __webpack_require__(\"./components/xo-beaver/dist/logger.js\");\n\nvar _index = __webpack_require__(\"./components/xo-models/src/user/index.js\");\n\nvar _index2 = __webpack_require__(\"./components/xo-models/src/checkout/index.js\");\n\nvar _miniBrowser = __webpack_require__(\"./js/lib/miniBrowser.js\");\n\nvar _xoAPayUtils = __webpack_require__(\"./components/xo-models/src/auth/lib/xoAPayUtils.js\");\n\nvar _index3 = __webpack_require__(\"./components/xo-models/src/app/index.js\");\n\nvar _index4 = __webpack_require__(\"./components/xo-models/src/onboard/index.js\");\n\nvar _index5 = __webpack_require__(\"./components/xo-models/src/auth/index.js\");\n\nvar _squid = __webpack_require__(\"./components/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'),\n localeParam: _squid.$util.param('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: _index4.$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 _index5.$AuthModel.instance().retrieve().then(function (auth) {\n if (auth.logged_in || auth.email) {\n return auth.action('logout');\n }\n });\n}, function checkTransactionEligibility() {\n if (_squid.$util.param('data')) {\n return _squid.$promise.resolve(_logger.$logger.info('prox_upgrade_transaction_ignore_XOE_CALL'));\n }\n\n return _squid.$promise.hash({\n transactionEligibility: _index3.$TransactionEligibilityModel.instance(_angular.$rootScope.token).retrieve()\n }).then(function (data) {\n if (data.transactionEligibility.eligible) {\n return _squid.$promise.resolve(_logger.$logger.info('transaction_eligible'));\n }\n\n _logger.$logger.info('transaction_ineligible');\n\n return _angular.$q.reject(new _squid.$FallbackError({\n reason: 'transaction_ineligible',\n product: 'ux'\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 merchant_email: identityData.email,\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 return (0, _squid.$pxp)('xo_xoon_defer_tagManager', { 'ctx.COUNTRY': _squid.$locale.country }, 'xo_xoon_defer_tagManager_treatment').then(function (result) {\n if (result) {\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 scriptTag.defer = true;\n insertScript(scriptTag);\n });\n } else {\n var scriptTag = createTagManagerScript(tagManagerUrl);\n scriptTag.async = true;\n insertScript(scriptTag);\n }\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 checkWpsSubscriptionEligibility() {\n // in the the guest upgrade flow, the $rootScope.token is undefined, so this will skip the check if so\n if (_angular.$rootScope.token) {\n return _index2.$CheckoutAppDataModel.instance(_angular.$rootScope.token).retrieve().then(function (appData) {\n if (appData && appData.is_wps_subscription_flow()) {\n return (0, _squid.$pxp)('xo_subscription_hermes_xoon', { 'ctx.COUNTRY': _squid.$locale.country }, 'xo_subscription_treatment_xoon').then(function () {\n var result = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n var treatmentName = result.treatment_name;\n\n if (treatmentName !== 'xo_subscription_treatment_xoon') {\n return _angular.$q.reject(new _squid.$FallbackError({\n reason: 'fallback_wps_subscription_pxp_control',\n product: 'ux'\n }));\n }\n });\n }\n });\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_index3.$TransactionEligibilityModel;\n\n_index.$CheckoutClientDataModel;\n\n_index4.$GuestUpgradeModel;\n\n_index5.$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.$pxp;\n\n_squid.$promise;\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__(\"./components/angular/angular.min.js\");\n\nvar _index = __webpack_require__(\"./components/xo-return-to-merchant/dist/index.js\");\n\nvar _integration = __webpack_require__(\"./js/lib/integration.js\");\n\nvar _squid = __webpack_require__(\"./components/squid/dist/index.js\");\n\nvar _logger = __webpack_require__(\"./components/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 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__(\"./components/angular/angular.min.js\");\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"./components/angular/angular.min.js\"), __webpack_require__(\"./components/squid/dist/module.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!./pages/xo-add-card/template.html\"), __webpack_require__(\"./components/xo-models/src/fi/lib/fiApis.js\"), __webpack_require__(\"./components/xo-beaver/dist/logger.js\"), __webpack_require__(\"./components/xo-wallet-components/src/add-card/directive.js\"), __webpack_require__(\"./components/xo-validation/dist/directive.js\"), __webpack_require__(\"./components/xo-ui-components/src/tooltip/directive.js\"), __webpack_require__(\"./components/xo-ui-components/src/dropdown/directive.js\"), __webpack_require__(\"./components/xo-page-components/src/value-props/directive.js\"), __webpack_require__(\"./components/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__(\"./components/angular/angular.min.js\"), __webpack_require__(\"./components/squid/dist/index.js\"), __webpack_require__(\"./components/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__(\"./components/xo-guest-components/src/fraudnet/fn.js\");\n\nvar _gdprCookieBanner = __webpack_require__(\"./components/xo-models/src/gdprCookieBanner/index.js\");\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"./components/angular/angular.min.js\"), __webpack_require__(\"./components/squid/dist/index.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!./pages/xo-checkout/template.html\"), __webpack_require__(\"./components/xo-ui-components/src/spinner/directive.js\"), __webpack_require__(\"./components/xo-page-components/src/merchant-header/directive.js\"), __webpack_require__(\"./components/xo-page-components/src/header/directive.js\"), __webpack_require__(\"./components/xo-page-components/src/footer/directive.js\"), __webpack_require__(\"./components/xo-page-components/src/cart/directive.js\"), __webpack_require__(\"./components/xo-ui-components/src/error-tooltip/directive.js\"), __webpack_require__(\"./components/xo-validation/dist/directive.js\"), __webpack_require__(\"./components/xo-device-info/dist/index.js\"), __webpack_require__(\"./components/xo-models/src/shippingMethod/index.js\"), __webpack_require__(\"./components/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 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/***/ }),\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__(\"./components/jquery/dist/jquery.min.js\");\n\n__webpack_require__(\"./components/angular-shims-placeholder/dist/angular-shims-placeholder.min.js\");\n\nvar _index = __webpack_require__(\"./js/lib/index.js\");\n\n__webpack_require__(\"./components/xo-tracking/dist/index.js\");\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"./components/angular/angular.min.js\"), __webpack_require__(\"./components/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__(\"./components/xo-guest-components/src/multistep-signup/route.js\"), __webpack_require__(\"./pages/xo-pay-upon-invoice/route.js\"), __webpack_require__(\"./components/xo-page-components/src/done/route.js\"), __webpack_require__(\"./components/xo-page-components/src/route-to-complete/route.js\"), __webpack_require__(\"./components/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__(\"./components/angular/angular.min.js\");\n\nvar _index = __webpack_require__(\"./components/squid/dist/index.js\");\n\nvar _index2 = __webpack_require__(\"./components/xo-device-info/dist/index.js\");\n\nvar _logger = __webpack_require__(\"./components/xo-beaver/dist/logger.js\");\n\nvar _uiRouter = __webpack_require__(\"./components/angular-ui-router/release/angular-ui-router.min.js\");\n\nvar _index3 = __webpack_require__(\"./components/xo-models/src/checkout/index.js\");\n\nvar _index4 = __webpack_require__(\"./components/xo-models/src/user/index.js\");\n\nvar _index5 = __webpack_require__(\"./components/xo-models/src/auth/index.js\");\n\nvar _index6 = __webpack_require__(\"./components/xo-models/src/prox/index.js\");\n\nvar _index7 = __webpack_require__(\"./components/xo-models/src/profilemanagement/index.js\");\n\nvar _index8 = __webpack_require__(\"./components/xo-return-to-merchant/dist/index.js\");\n\nvar _returnParams = __webpack_require__(\"./components/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(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')) {\n // this is specifically for nativexo where redirect_uri is passed in query param\n // the following query params need to be appended to the redirect_uri\n params.return_uri = _this.models.checkoutAppData.get('urls.return_url');\n params.opType = 'payment';\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 if (window.xchild) {\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 xparams.returnUrl = url;\n return window.xprops.onAuthorize(xparams);\n }\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 (_index.$integration.getConfig('REDIRECT_QUERY_PARAM')) {\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__(\"./components/angular/angular.min.js\"), __webpack_require__(\"./components/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__(\"./components/squid/dist/index.js\");\n\nvar _template = __webpack_require__(\"./pages/xo-generic-error/template.html\");\n\nvar _template2 = _interopRequireDefault(_template);\n\n__webpack_require__(\"./components/xo-models/src/checkout/index.js\");\n\n__webpack_require__(\"./components/xo-ui-components/src/generic-error/directive.js\");\n\n__webpack_require__(\"./components/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__(\"./components/angular/angular.min.js\"), __webpack_require__(\"./components/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__(\"./components/angular/angular.min.js\"), __webpack_require__(\"./components/squid/dist/index.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!./pages/xo-generic-message/template.html\"), __webpack_require__(\"./components/xo-models/src/checkout/index.js\"), __webpack_require__(\"./components/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__(\"./components/angular/angular.min.js\"), __webpack_require__(\"./components/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'],\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__(\"./components/jquery/dist/jquery.min.js\");\n\n__webpack_require__(\"./components/angular-shims-placeholder/dist/angular-shims-placeholder.min.js\");\n\n__webpack_require__(\"./js/lib/index.js\");\n\n__webpack_require__(\"./components/xo-tracking/dist/index.js\");\n\nvar _middleware = __webpack_require__(\"./js/lib/middleware.js\");\n\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(\"./components/angular/angular.min.js\"), __webpack_require__(\"./components/squid/dist/index.js\"), __webpack_require__(\"./pages/xo-generic-error/route.js\"), __webpack_require__(\"./components/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__(\"./components/angular/angular.min.js\"), __webpack_require__(\"./components/squid/dist/module.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!./pages/xo-guest/template.html\"), __webpack_require__(\"./components/xo-page-components/src/value-props/directive.js\"), __webpack_require__(\"./components/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 $scope.onCurrencyConversionDone = function () {\n $state.go($scope.backUri);\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__(\"./components/angular/angular.min.js\"), __webpack_require__(\"./components/squid/dist/index.js\"), __webpack_require__(\"./pages/xo-guest/directive.js\"), __webpack_require__(\"./pages/xo-sidebar/route.js\"), __webpack_require__(\"./components/xo-guest-components/src/guest-upgrade-interstitial/route.js\"), __webpack_require__(\"./components/xo-guest-components/src/guest/currencyConversion/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 name: '$CurrencyConversionOptionsRoute',\n attributes: {\n token: 'token',\n 'parent-model': 'singleStepModel',\n 'is-pre-plan': 'true',\n 'done-fn': 'onCurrencyConversionDone'\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/route.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nexports.__esModule = true;\nexports.$LandingRoute = undefined;\n\nvar _angular = __webpack_require__(\"./components/angular/angular.min.js\");\n\nvar _squid = __webpack_require__(\"./components/squid/dist/index.js\");\n\nvar _logger = __webpack_require__(\"./components/xo-beaver/dist/logger.js\");\n\nvar _index = __webpack_require__(\"./components/xo-models/src/user/index.js\");\n\nvar _index2 = __webpack_require__(\"./components/xo-models/src/checkout/index.js\");\n\nvar _index3 = __webpack_require__(\"./components/xo-models/src/inventory/index.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($util) {\n // eslint-disable-line no-shadow\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 landingFlow = function landingFlow() {\n var merchantCountry = models.checkoutAppData.get('merchant.merchant_country');\n var merchantId = models.checkoutPayeeModel.getId();\n var paymentMethodViaUrl = $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 /*\n * This function is called on final route returned by this router file\n * Description:\n * Currently the scope of this function is limited to logging\n * In future we can extend this scope and update the docs\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 var fundingSource = void 0;\n\n if (_squid.$config.deploy.isLocal() || _squid.$config.deploy.isStage()) {\n var passedInExp = $util.param('showExp');\n\n fundingSource = $util.param('fundingSource');\n if ('guest'.indexOf(passedInExp) > -1) {\n return 'checkout.guest';\n }\n\n if ('signup'.indexOf(passedInExp) > -1) {\n return 'checkout.signup';\n }\n }\n\n return _index2.$FlowEligibilityModel.instance(_angular.$rootScope.token).retrieve({\n params: {\n 'localeCountry': _squid.$locale.country,\n 'fundingSource': window.xprops && window.xprops.fundingSource || fundingSource,\n 'merchantId': merchantId,\n 'merchantCountry': merchantCountry\n }\n }).then(function (flowEligibility) {\n var mode = flowEligibility.guest ? 'guest' : 'signup';\n\n _logger.$logger.info(mode + '_flow_offered_by_epm_at_route');\n\n var appRoute = mode === 'signup' ? 'checkout.signup' : 'checkout.guest';\n\n return getProcessedRoute(appRoute);\n });\n }\n\n 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' && $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 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 landingFlow();\n }\n }\n });\n } else {\n return landingFlow();\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.$feature;\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/***/ }),\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__(\"./components/angular/angular.min.js\"), __webpack_require__(\"./components/squid/dist/module.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!./pages/xo-pay-upon-invoice/template.html\"), __webpack_require__(\"./components/xo-beaver/dist/logger.js\"), __webpack_require__(\"./components/xo-page-components/src/value-props/directive.js\"), __webpack_require__(\"./components/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__(\"./components/angular/angular.min.js\"), __webpack_require__(\"./components/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__(\"./components/angular/angular.min.js\"), __webpack_require__(\"./components/squid/dist/index.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!./pages/xo-sidebar-installment-options/template.html\"), __webpack_require__(\"./components/xo-page-components/src/aside-header/directive.js\"), __webpack_require__(\"./components/xo-wallet-components/src/installment-options/directive.js\"), __webpack_require__(\"./components/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__(\"./components/angular/angular.min.js\"), __webpack_require__(\"./components/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__(\"./components/angular/angular.min.js\"), __webpack_require__(\"./components/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__(\"./components/angular/angular.min.js\"), __webpack_require__(\"./components/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__(\"./components/angular/angular.min.js\"), __webpack_require__(\"./components/squid/dist/module.js\"), __webpack_require__(\"../node_modules/noop-loader/index.js!./pages/xo-signup/template.html\"), __webpack_require__(\"./components/xo-page-components/src/value-props/directive.js\"), __webpack_require__(\"./components/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 $scope.onCurrencyConversionDone = function () {\n $state.go($scope.backUri);\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__(\"./components/angular/angular.min.js\"), __webpack_require__(\"./components/squid/dist/index.js\"), __webpack_require__(\"./pages/xo-signup/directive.js\"), __webpack_require__(\"./pages/xo-sidebar/route.js\"), __webpack_require__(\"./components/xo-guest-components/src/guest-upgrade-interstitial/route.js\"), __webpack_require__(\"./components/xo-guest-components/src/guest/currencyConversion/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 name: '$CurrencyConversionOptionsRoute',\n attributes: {\n token: 'token',\n 'parent-model': 'singleStepModel',\n 'is-pre-plan': 'true',\n 'done-fn': 'onCurrencyConversionDone'\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","require('../../modules/es6.array.every');\nmodule.exports = require('../../modules/_core').Array.every;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/fn/array/every.js\n// module id = ../node_modules/core-js/fn/array/every.js\n// module chunks = 0","require('../../modules/es6.array.find');\nmodule.exports = require('../../modules/_core').Array.find;\n\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","require('../../modules/es7.array.includes');\nmodule.exports = require('../../modules/_core').Array.includes;\n\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","require('../../modules/es6.array.some');\nmodule.exports = require('../../modules/_core').Array.some;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/fn/array/some.js\n// module id = ../node_modules/core-js/fn/array/some.js\n// module chunks = 0","require('../../modules/es7.object.entries');\nmodule.exports = require('../../modules/_core').Object.entries;\n\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","require('../../modules/es7.object.values');\nmodule.exports = require('../../modules/_core').Object.values;\n\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","require('../../modules/es6.string.includes');\nmodule.exports = require('../../modules/_core').String.includes;\n\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","module.exports = function (it) {\n if (typeof it != 'function') throw TypeError(it + ' is not a function!');\n return it;\n};\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","// 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//////////////////\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","var 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//////////////////\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","// 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++) if (IS_INCLUDES || index in O) {\n if (O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\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","// 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++) 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: return true; // some\n case 5: return val; // find\n case 6: return index; // findIndex\n case 2: 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//////////////////\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","var 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//////////////////\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","// 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//////////////////\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","var toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\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","var core = module.exports = { version: '2.5.7' };\nif (typeof __e == 'number') __e = core; // eslint-disable-line no-undef\n\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","// 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: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: 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//////////////////\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","// 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//////////////////\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","// Thank's IE8 for his funny defineProperty\nmodule.exports = !require('./_fails')(function () {\n return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;\n});\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","var 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//////////////////\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","// IE 8- don't enum bug keys\nmodule.exports = (\n 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'\n).split(',');\n\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","var 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 (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//////////////////\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","var 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//////////////////\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","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (e) {\n return true;\n }\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","// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? 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//////////////////\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","var hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\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","var 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//////////////////\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","module.exports = !require('./_descriptors') && !require('./_fails')(function () {\n return Object.defineProperty(require('./_dom-create')('div'), 'a', { get: function () { return 7; } }).a != 7;\n});\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","// 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//////////////////\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","// 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//////////////////\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","module.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\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","// 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//////////////////\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","module.exports = false;\n\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","var 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//////////////////\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","var 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) if (key != IE_PROTO) has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (has(O, key = names[i++])) {\n ~arrayIndexOf(result, key) || result.push(key);\n }\n return result;\n};\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","// 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//////////////////\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","exports.f = {}.propertyIsEnumerable;\n\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","var 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) if (isEnum.call(O, key = keys[i++])) {\n result.push(isEntries ? [key, O[key]] : O[key]);\n } return result;\n };\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","module.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//////////////////\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","var global = require('./_global');\nvar hide = require('./_hide');\nvar has = require('./_has');\nvar SRC = require('./_uid')('src');\nvar TO_STRING = 'toString';\nvar $toString = Function[TO_STRING];\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//////////////////\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","var 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//////////////////\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","var 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: '© 2018 Denis Pushkarev (zloirock.ru)'\n});\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","\nvar fails = require('./_fails');\n\nmodule.exports = function (method, arg) {\n return !!method && fails(function () {\n // eslint-disable-next-line no-useless-call\n arg ? method.call(null, function () { /* empty */ }, 1) : method.call(null);\n });\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/modules/_strict-method.js\n// module id = ../node_modules/core-js/modules/_strict-method.js\n// module chunks = 0","// 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//////////////////\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","var 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//////////////////\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","// 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//////////////////\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","// 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//////////////////\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","// 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//////////////////\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","// 7.1.13 ToObject(argument)\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return Object(defined(it));\n};\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","// 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//////////////////\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","var 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//////////////////\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","var 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] =\n USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));\n};\n\n$exports.store = store;\n\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","\nvar $export = require('./_export');\nvar $every = require('./_array-methods')(4);\n\n$export($export.P + $export.F * !require('./_strict-method')([].every, true), 'Array', {\n // 22.1.3.5 / 15.4.4.16 Array.prototype.every(callbackfn [, thisArg])\n every: function every(callbackfn /* , thisArg */) {\n return $every(this, callbackfn, arguments[1]);\n }\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/modules/es6.array.every.js\n// module id = ../node_modules/core-js/modules/es6.array.every.js\n// module chunks = 0","\n// 22.1.3.8 Array.prototype.find(predicate, thisArg = undefined)\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 () { forced = false; });\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//////////////////\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","\nvar $export = require('./_export');\nvar $some = require('./_array-methods')(3);\n\n$export($export.P + $export.F * !require('./_strict-method')([].some, true), 'Array', {\n // 22.1.3.23 / 15.4.4.17 Array.prototype.some(callbackfn [, thisArg])\n some: function some(callbackfn /* , thisArg */) {\n return $some(this, callbackfn, arguments[1]);\n }\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/core-js/modules/es6.array.some.js\n// module id = ../node_modules/core-js/modules/es6.array.some.js\n// module chunks = 0","// 21.1.3.7 String.prototype.includes(searchString, position = 0)\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)\n .indexOf(searchString, arguments.length > 1 ? arguments[1] : undefined);\n }\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\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//////////////////\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","// 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//////////////////\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","// 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//////////////////\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","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 {{ 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/noop-loader!./components/xo-address-components/src/add-address/template.html\n// module id = ../node_modules/noop-loader/index.js!./components/xo-address-components/src/add-address/template.html\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/noop-loader!./components/xo-address-components/src/address-normalization/template.html\n// module id = ../node_modules/noop-loader/index.js!./components/xo-address-components/src/address-normalization/template.html\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/noop-loader!./components/xo-form-components/src/dob-input/template.html\n// module id = ../node_modules/noop-loader/index.js!./components/xo-form-components/src/dob-input/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!./components/xo-form-components/src/language-options/template.html\n// module id = ../node_modules/noop-loader/index.js!./components/xo-form-components/src/language-options/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 {{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/noop-loader!./components/xo-form-components/src/national-id-input/template.html\n// module id = ../node_modules/noop-loader/index.js!./components/xo-form-components/src/national-id-input/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// WEBPACK FOOTER\n// ../node_modules/noop-loader!./components/xo-form-components/src/phone/phoneInputA/template.html\n// module id = ../node_modules/noop-loader/index.js!./components/xo-form-components/src/phone/phoneInputA/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/noop-loader!./components/xo-form-components/src/phone/template.html\n// module id = ../node_modules/noop-loader/index.js!./components/xo-form-components/src/phone/template.html\n// module chunks = 0","module.exports = \"
      \\n \\n \\n
      \"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/noop-loader!./components/xo-guest-components/src/guest-upgrade/occupation/template.html\n// module id = ../node_modules/noop-loader/index.js!./components/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!./components/xo-guest-components/src/login-button/template.html\n// module id = ../node_modules/noop-loader/index.js!./components/xo-guest-components/src/login-button/template.html\n// module chunks = 0","module.exports = \"
      \\n
      \\n
      \\n \\n \\n

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

      \\n

      {{content('largeScreenPayment.titleProp')}}

      \\n\\n
      \\n\\n \\n
      \\n \\n\\n \\n\\n \\n\\n \\n\\n
      \\n
      \\n\\n \\n \\n
      \\n\\n\\n
      \\n \\n
      \\n\\n
      \\n \\n
      \\n
      \\n\\n \\n\\n
      \\n \\n \\n
      \\n\\n
      \\n
      \\n \\n\\n \\n\\n \\n
      \\n \\n \\n
      \\n
      \\n\\n \\n
      \\n
      \\n\\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!./components/xo-guest-components/src/multistep-signup/addCard/template.html\n// module id = ../node_modules/noop-loader/index.js!./components/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!./components/xo-guest-components/src/multistep-signup/addShipping/template.html\n// module id = ../node_modules/noop-loader/index.js!./components/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!./components/xo-guest-components/src/multistep-signup/addressNormalization/template.html\n// module id = ../node_modules/noop-loader/index.js!./components/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\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/noop-loader!./components/xo-guest-components/src/multistep-signup/createAccount/template.html\n// module id = ../node_modules/noop-loader/index.js!./components/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!./components/xo-guest-components/src/multistep-signup/template.html\n// module id = ../node_modules/noop-loader/index.js!./components/xo-guest-components/src/multistep-signup/template.html\n// module chunks = 0","module.exports = \"\\n\\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/noop-loader!./components/xo-page-components/src/aside-header/template.html\n// module id = ../node_modules/noop-loader/index.js!./components/xo-page-components/src/aside-header/template.html\n// module chunks = 0","module.exports = \"\\n \\n \\n \\n \\n \\n \\n \\n\\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/noop-loader!./components/xo-page-components/src/cart/cartWrapper/template.html\n// module id = ../node_modules/noop-loader/index.js!./components/xo-page-components/src/cart/cartWrapper/template.html\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 {{ content('header.less') }}\\n
      • \\n
      \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/noop-loader!./components/xo-page-components/src/cart/itemDetails/template.html\n// module id = ../node_modules/noop-loader/index.js!./components/xo-page-components/src/cart/itemDetails/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 {{ content(amountHeaders[breakdown.field_name]) }}\\n \\n \\n \\n
      • \\n \\n
      \\n
      \\n\\n
      \\n {{ userAction === 'commit' || showCartTotal === true ? content('header.total') : content('header.subTotal') }}\\n \\n \\n \\n
      \\n\\n
      \\n
      \\n
      \\n
      \\n
      \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/noop-loader!./components/xo-page-components/src/cart/template.html\n// module id = ../node_modules/noop-loader/index.js!./components/xo-page-components/src/cart/template.html\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

      {{ content('footer.openLinks') }}

      \\n

      {{popupUrl}}

      \\n \\n
      \\n
      \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/noop-loader!./components/xo-page-components/src/footer/template.html\n// module id = ../node_modules/noop-loader/index.js!./components/xo-page-components/src/footer/template.html\n// module chunks = 0","module.exports = \"
      \\n
      \\n
      \\n \\n
      \\n {{title}}\\n
      {{ content('base.payPal') }}
      \\n
      Venmo Checkout
      \\n
      \\n
      \\n \\\"PayPal\\n
      \\n
      \\n \\\"PayPal\\n
      \\n
      \\n \\n\\n \\n\\n
      {{subTitle}}
      \\n \\n
      \\n
      \"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/noop-loader!./components/xo-page-components/src/header/template.html\n// module id = ../node_modules/noop-loader/index.js!./components/xo-page-components/src/header/template.html\n// module chunks = 0","module.exports = \"
      \\n
      \\n \\n

      \\n
      \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/noop-loader!./components/xo-page-components/src/marketingOffers/template.html\n// module id = ../node_modules/noop-loader/index.js!./components/xo-page-components/src/marketingOffers/template.html\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/noop-loader!./components/xo-page-components/src/route-to-complete/template.html\n// module id = ../node_modules/noop-loader/index.js!./components/xo-page-components/src/route-to-complete/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!./components/xo-page-components/src/value-props/template.html\n// module id = ../node_modules/noop-loader/index.js!./components/xo-page-components/src/value-props/template.html\n// module chunks = 0","module.exports = \"

      \\n {{ titleTxt }}\\n

      \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/noop-loader!./components/xo-title/dist/template.html\n// module id = ../node_modules/noop-loader/index.js!./components/xo-title/dist/template.html\n// module chunks = 0","module.exports = \"{{ content('base.closePayPalCheckoutLabel') }}\\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/noop-loader!./components/xo-ui-components/src/escape-hatch/closeFrame/template.html\n// module id = ../node_modules/noop-loader/index.js!./components/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!./components/xo-ui-components/src/escape-hatch/escapeHatch/template.html\n// module id = ../node_modules/noop-loader/index.js!./components/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// WEBPACK FOOTER\n// ../node_modules/noop-loader!./components/xo-ui-components/src/generic-message/template.html\n// module id = ../node_modules/noop-loader/index.js!./components/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!./components/xo-ui-components/src/message/template.html\n// module id = ../node_modules/noop-loader/index.js!./components/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!./components/xo-ui-components/src/spinner-button/template.html\n// module id = ../node_modules/noop-loader/index.js!./components/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!./components/xo-ui-components/src/spinner/template.html\n// module id = ../node_modules/noop-loader/index.js!./components/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!./components/xo-wallet-components/src/3ds/template.html\n// module id = ../node_modules/noop-loader/index.js!./components/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 {{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!./components/xo-wallet-components/src/add-bank/bank-input/template.html\n// module id = ../node_modules/noop-loader/index.js!./components/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!./components/xo-wallet-components/src/add-card/addCep/template.html\n// module id = ../node_modules/noop-loader/index.js!./components/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!./components/xo-wallet-components/src/add-card/addbilling/template.html\n// module id = ../node_modules/noop-loader/index.js!./components/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!./components/xo-wallet-components/src/add-card/addcard/template.html\n// module id = ../node_modules/noop-loader/index.js!./components/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

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

      \\n
      \\n

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

      \\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
      \\n {{ !debitCardFlow ? content('creditcard.acceptableCards') : content('creditcard.acceptDebitCardOnly') }}\\n \\n {{supportedCardNamesCommaSeparated}}\\n \\n
      \\n
      \\n\\n \\n\\n \\n
      \\n\\n
      \\n
      \\n
      \\n {{ content('currencyOptions.dccPPRateNonVisaTitle') }}\\n \\n \\n {{ content('currencyOptions.cardIssuerRateTitle') }}\\n
      \\n
      \\n \\n {{ content('currencyOptions.cardIssuerRateAvailable') }}\\n \\n \\n
      \\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!./components/xo-wallet-components/src/add-card/creditcard-input/template.html\n// module id = ../node_modules/noop-loader/index.js!./components/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!./components/xo-wallet-components/src/add-card/selectcard/template.html\n// module id = ../node_modules/noop-loader/index.js!./components/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!./components/xo-wallet-components/src/add-card/template.html\n// module id = ../node_modules/noop-loader/index.js!./components/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!./components/xo-wallet-components/src/installment-options/template.html\n// module id = ../node_modules/noop-loader/index.js!./components/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","/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ../node_modules/object-assign/index.js\n// module id = ../node_modules/object-assign/index.js\n// module chunks = 0","// It will use the native implementation if it's present and isn't buggy.\nObject.assign = require('object-assign');\n\n// array\nrequire('core-js/fn/array/find');\nrequire('core-js/fn/array/includes');\nrequire('core-js/fn/array/some');\nrequire('core-js/fn/array/every');\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');\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","!function(){function t(t){this.message=t}var r=\"undefined\"!=typeof exports?exports:this,e=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\";t.prototype=new Error,t.prototype.name=\"InvalidCharacterError\",r.btoa||(r.btoa=function(r){for(var o,n,a=String(r),i=0,c=e,d=\"\";a.charAt(0|i)||(c=\"=\",i%1);d+=c.charAt(63&o>>8-i%1*8)){if(n=a.charCodeAt(i+=.75),n>255)throw new t(\"'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.\");o=o<<8|n}return d}),r.atob||(r.atob=function(r){var o=String(r).replace(/=+$/,\"\");if(o.length%4==1)throw new t(\"'atob' failed: The string to be decoded is not correctly encoded.\");for(var n,a,i=0,c=0,d=\"\";a=o.charAt(c++);~a&&(n=i%4?64*n+a:a,i++%4)?d+=String.fromCharCode(255&n>>(-2*i&6)):0)a=e.indexOf(a);return d})}();\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/base64/base64.min.js\n// module id = ./components/base64/base64.min.js\n// module chunks = 0","/*** IMPORTS FROM imports-loader ***/\nvar jquery = window.jQuery;\n\n/**\n * jquery.mask.js\n * @version: v1.14.11\n * @author: Igor Escobar\n *\n * Created by Igor Escobar on 2012-03-10. Please report any bug at http://blog.igorescobar.com\n *\n * Copyright (c) 2012 Igor Escobar http://blog.igorescobar.com\n *\n * The MIT License (http://www.opensource.org/licenses/mit-license.php)\n *\n * Permission is hereby granted, free of charge, to any person\n * obtaining a copy of this software and associated documentation\n * files (the \"Software\"), to deal in the Software without\n * restriction, including without limitation the rights to use,\n * copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the\n * Software is furnished to do so, subject to the following\n * conditions:\n *\n * The above copyright notice and this permission notice shall be\n * included in all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES\n * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\n * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\n * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\n * OTHER DEALINGS IN THE SOFTWARE.\n */\n\n/* jshint laxbreak: true */\n/* jshint maxcomplexity:17 */\n/* global define */\n\n\n\n// UMD (Universal Module Definition) patterns for JavaScript modules that work everywhere.\n// https://github.com/umdjs/umd/blob/master/jqueryPluginCommonjs.js\n(function (factory, jQuery, Zepto) {\n\n if (typeof define === 'function' && define.amd) {\n define(['jquery'], factory);\n } else if (typeof exports === 'object') {\n module.exports = factory(require('jquery'));\n } else {\n factory(jQuery || Zepto);\n }\n\n}(function ($) {\n\n var Mask = function (el, mask, options) {\n\n var p = {\n invalid: [],\n getCaret: function () {\n try {\n var sel,\n pos = 0,\n ctrl = el.get(0),\n dSel = document.selection,\n cSelStart = ctrl.selectionStart;\n\n // IE Support\n if (dSel && navigator.appVersion.indexOf('MSIE 10') === -1) {\n sel = dSel.createRange();\n sel.moveStart('character', -p.val().length);\n pos = sel.text.length;\n }\n // Firefox support\n else if (cSelStart || cSelStart === '0') {\n pos = cSelStart;\n }\n\n return pos;\n } catch (e) {}\n },\n setCaret: function(pos) {\n try {\n if (el.is(':focus')) {\n var range, ctrl = el.get(0);\n\n // Firefox, WebKit, etc..\n if (ctrl.setSelectionRange) {\n ctrl.setSelectionRange(pos, pos);\n } else { // IE\n range = ctrl.createTextRange();\n range.collapse(true);\n range.moveEnd('character', pos);\n range.moveStart('character', pos);\n range.select();\n }\n }\n } catch (e) {}\n },\n events: function() {\n el\n .on('keydown.mask', function(e) {\n el.data('mask-keycode', e.keyCode || e.which);\n el.data('mask-previus-value', el.val());\n el.data('mask-previus-caret-pos', p.getCaret());\n p.maskDigitPosMapOld = p.maskDigitPosMap;\n })\n .on($.jMaskGlobals.useInput ? 'input.mask' : 'keyup.mask', p.behaviour)\n .on('paste.mask drop.mask', function() {\n setTimeout(function() {\n el.keydown().keyup();\n }, 100);\n })\n .on('change.mask', function(){\n el.data('changed', true);\n })\n .on('blur.mask', function(){\n if (oldValue !== p.val() && !el.data('changed')) {\n el.trigger('change');\n }\n el.data('changed', false);\n })\n // it's very important that this callback remains in this position\n // otherwhise oldValue it's going to work buggy\n .on('blur.mask', function() {\n oldValue = p.val();\n })\n // select all text on focus\n .on('focus.mask', function (e) {\n if (options.selectOnFocus === true) {\n $(e.target).select();\n }\n })\n // clear the value if it not complete the mask\n .on('focusout.mask', function() {\n if (options.clearIfNotMatch && !regexMask.test(p.val())) {\n p.val('');\n }\n });\n },\n getRegexMask: function() {\n var maskChunks = [], translation, pattern, optional, recursive, oRecursive, r;\n\n for (var i = 0; i < mask.length; i++) {\n translation = jMask.translation[mask.charAt(i)];\n\n if (translation) {\n\n pattern = translation.pattern.toString().replace(/.{1}$|^.{1}/g, '');\n optional = translation.optional;\n recursive = translation.recursive;\n\n if (recursive) {\n maskChunks.push(mask.charAt(i));\n oRecursive = {digit: mask.charAt(i), pattern: pattern};\n } else {\n maskChunks.push(!optional && !recursive ? pattern : (pattern + '?'));\n }\n\n } else {\n maskChunks.push(mask.charAt(i).replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g, '\\\\$&'));\n }\n }\n\n r = maskChunks.join('');\n\n if (oRecursive) {\n r = r.replace(new RegExp('(' + oRecursive.digit + '(.*' + oRecursive.digit + ')?)'), '($1)?')\n .replace(new RegExp(oRecursive.digit, 'g'), oRecursive.pattern);\n }\n\n return new RegExp(r);\n },\n destroyEvents: function() {\n el.off(['input', 'keydown', 'keyup', 'paste', 'drop', 'blur', 'focusout', ''].join('.mask '));\n },\n val: function(v) {\n var isInput = el.is('input'),\n method = isInput ? 'val' : 'text',\n r;\n\n if (arguments.length > 0) {\n if (el[method]() !== v) {\n el[method](v);\n }\n r = el;\n } else {\n r = el[method]();\n }\n\n return r;\n },\n calculateCaretPosition: function() {\n var oldVal = el.data('mask-previus-value') || '',\n newVal = p.getMasked(),\n caretPosNew = p.getCaret();\n if (oldVal !== newVal) {\n var caretPosOld = el.data('mask-previus-caret-pos') || 0,\n newValL = newVal.length,\n oldValL = oldVal.length,\n maskDigitsBeforeCaret = 0,\n maskDigitsAfterCaret = 0,\n maskDigitsBeforeCaretAll = 0,\n maskDigitsBeforeCaretAllOld = 0,\n i = 0;\n\n for (i = caretPosNew; i < newValL; i++) {\n if (!p.maskDigitPosMap[i]) {\n break;\n }\n maskDigitsAfterCaret++;\n }\n\n for (i = caretPosNew - 1; i >= 0; i--) {\n if (!p.maskDigitPosMap[i]) {\n break;\n }\n maskDigitsBeforeCaret++;\n }\n\n for (i = caretPosNew - 1; i >= 0; i--) {\n if (p.maskDigitPosMap[i]) {\n maskDigitsBeforeCaretAll++;\n }\n }\n\n for (i = caretPosOld - 1; i >= 0; i--) {\n if (p.maskDigitPosMapOld[i]) {\n maskDigitsBeforeCaretAllOld++;\n }\n }\n\n if (caretPosNew > oldValL) {\n // if the cursor is at the end keep it there\n caretPosNew = newValL;\n }\n else if (caretPosOld >= caretPosNew && caretPosOld !== oldValL) {\n if (!p.maskDigitPosMapOld[caretPosNew]) {\n var caretPos = caretPosNew;\n caretPosNew -= maskDigitsBeforeCaretAllOld - maskDigitsBeforeCaretAll;\n caretPosNew -= maskDigitsBeforeCaret;\n if (p.maskDigitPosMap[caretPosNew]) {\n caretPosNew = caretPos;\n }\n }\n }\n else if (caretPosNew > caretPosOld) {\n caretPosNew += maskDigitsBeforeCaretAll - maskDigitsBeforeCaretAllOld;\n caretPosNew += maskDigitsAfterCaret;\n }\n }\n return caretPosNew;\n },\n behaviour: function(e) {\n e = e || window.event;\n p.invalid = [];\n\n var keyCode = el.data('mask-keycode');\n\n if ($.inArray(keyCode, jMask.byPassKeys) === -1) {\n var newVal = p.getMasked();\n\n setTimeout(function() {\n p.setCaret(p.calculateCaretPosition());\n }, 10);\n\n p.val(newVal);\n p.setCaret(newVal.length);\n return p.callbacks(e);\n }\n },\n getMasked: function(skipMaskChars, val) {\n var buf = [],\n value = val === undefined ? p.val() : val + '',\n m = 0, maskLen = mask.length,\n v = 0, valLen = value.length,\n offset = 1, addMethod = 'push',\n resetPos = -1,\n maskDigitCount = 0,\n maskDigitPosArr = [],\n lastMaskChar,\n check;\n\n if (options.reverse) {\n addMethod = 'unshift';\n offset = -1;\n lastMaskChar = 0;\n m = maskLen - 1;\n v = valLen - 1;\n check = function () {\n return m > -1 && v > -1;\n };\n } else {\n lastMaskChar = maskLen - 1;\n check = function () {\n return m < maskLen && v < valLen;\n };\n }\n\n var lastUntranslatedMaskChar;\n while (check()) {\n var maskDigit = mask.charAt(m),\n valDigit = value.charAt(v),\n translation = jMask.translation[maskDigit];\n\n if (translation) {\n if (valDigit.match(translation.pattern)) {\n buf[addMethod](valDigit);\n if (translation.recursive) {\n if (resetPos === -1) {\n resetPos = m;\n } else if (m === lastMaskChar) {\n m = resetPos - offset;\n }\n\n if (lastMaskChar === resetPos) {\n m -= offset;\n }\n }\n m += offset;\n } else if (valDigit === lastUntranslatedMaskChar) {\n // matched the last untranslated (raw) mask character that we encountered\n // likely an insert offset the mask character from the last entry; fall\n // through and only increment v\n maskDigitCount--;\n lastUntranslatedMaskChar = undefined;\n } else if (translation.optional) {\n m += offset;\n v -= offset;\n } else if (translation.fallback) {\n buf[addMethod](translation.fallback);\n m += offset;\n v -= offset;\n } else {\n p.invalid.push({p: v, v: valDigit, e: translation.pattern});\n }\n v += offset;\n } else {\n if (!skipMaskChars) {\n buf[addMethod](maskDigit);\n }\n\n if (valDigit === maskDigit) {\n maskDigitPosArr.push(v);\n v += offset;\n } else {\n lastUntranslatedMaskChar = maskDigit;\n maskDigitPosArr.push(v + maskDigitCount);\n maskDigitCount++;\n }\n\n m += offset;\n }\n }\n\n var lastMaskCharDigit = mask.charAt(lastMaskChar);\n if (maskLen === valLen + 1 && !jMask.translation[lastMaskCharDigit]) {\n buf.push(lastMaskCharDigit);\n }\n\n var newVal = buf.join('');\n p.mapMaskdigitPositions(newVal, maskDigitPosArr, valLen);\n return newVal;\n },\n mapMaskdigitPositions: function(newVal, maskDigitPosArr, valLen) {\n var maskDiff = options.reverse ? newVal.length - valLen : 0;\n p.maskDigitPosMap = {};\n for (var i = 0; i < maskDigitPosArr.length; i++) {\n p.maskDigitPosMap[maskDigitPosArr[i] + maskDiff] = 1;\n }\n },\n callbacks: function (e) {\n var val = p.val(),\n changed = val !== oldValue,\n defaultArgs = [val, e, el, options],\n callback = function(name, criteria, args) {\n if (typeof options[name] === 'function' && criteria) {\n options[name].apply(this, args);\n }\n };\n\n callback('onChange', changed === true, defaultArgs);\n callback('onKeyPress', changed === true, defaultArgs);\n callback('onComplete', val.length === mask.length, defaultArgs);\n callback('onInvalid', p.invalid.length > 0, [val, e, el, p.invalid, options]);\n }\n };\n\n el = $(el);\n var jMask = this, oldValue = p.val(), regexMask;\n\n mask = typeof mask === 'function' ? mask(p.val(), undefined, el, options) : mask;\n\n // public methods\n jMask.mask = mask;\n jMask.options = options;\n jMask.remove = function() {\n var caret = p.getCaret();\n p.destroyEvents();\n p.val(jMask.getCleanVal());\n p.setCaret(caret);\n return el;\n };\n\n // get value without mask\n jMask.getCleanVal = function() {\n return p.getMasked(true);\n };\n\n // get masked value without the value being in the input or element\n jMask.getMaskedVal = function(val) {\n return p.getMasked(false, val);\n };\n\n jMask.init = function(onlyMask) {\n onlyMask = onlyMask || false;\n options = options || {};\n\n jMask.clearIfNotMatch = $.jMaskGlobals.clearIfNotMatch;\n jMask.byPassKeys = $.jMaskGlobals.byPassKeys;\n jMask.translation = $.extend({}, $.jMaskGlobals.translation, options.translation);\n\n jMask = $.extend(true, {}, jMask, options);\n\n regexMask = p.getRegexMask();\n\n if (onlyMask) {\n p.events();\n p.val(p.getMasked());\n } else {\n if (options.placeholder) {\n el.attr('placeholder' , options.placeholder);\n }\n\n // this is necessary, otherwise if the user submit the form\n // and then press the \"back\" button, the autocomplete will erase\n // the data. Works fine on IE9+, FF, Opera, Safari.\n if (el.data('mask')) {\n el.attr('autocomplete', 'off');\n }\n\n // detect if is necessary let the user type freely.\n // for is a lot faster than forEach.\n for (var i = 0, maxlength = true; i < mask.length; i++) {\n var translation = jMask.translation[mask.charAt(i)];\n if (translation && translation.recursive) {\n maxlength = false;\n break;\n }\n }\n\n if (maxlength) {\n el.attr('maxlength', mask.length);\n }\n\n p.destroyEvents();\n p.events();\n\n p.val(p.getMasked());\n p.setCaret(p.getMasked().length);\n }\n };\n\n jMask.init(!el.is('input'));\n };\n\n $.maskWatchers = {};\n var HTMLAttributes = function () {\n var input = $(this),\n options = {},\n prefix = 'data-mask-',\n mask = input.attr('data-mask');\n\n if (input.attr(prefix + 'reverse')) {\n options.reverse = true;\n }\n\n if (input.attr(prefix + 'clearifnotmatch')) {\n options.clearIfNotMatch = true;\n }\n\n if (input.attr(prefix + 'selectonfocus') === 'true') {\n options.selectOnFocus = true;\n }\n\n if (notSameMaskObject(input, mask, options)) {\n return input.data('mask', new Mask(this, mask, options));\n }\n },\n notSameMaskObject = function(field, mask, options) {\n options = options || {};\n var maskObject = $(field).data('mask'),\n stringify = JSON.stringify,\n value = $(field).val() || $(field).text();\n try {\n if (typeof mask === 'function') {\n mask = mask(value);\n }\n return typeof maskObject !== 'object' || stringify(maskObject.options) !== stringify(options) || maskObject.mask !== mask;\n } catch (e) {}\n },\n eventSupported = function(eventName) {\n var el = document.createElement('div'), isSupported;\n\n eventName = 'on' + eventName;\n isSupported = (eventName in el);\n\n if ( !isSupported ) {\n el.setAttribute(eventName, 'return;');\n isSupported = typeof el[eventName] === 'function';\n }\n el = null;\n\n return isSupported;\n };\n\n $.fn.mask = function(mask, options) {\n options = options || {};\n var selector = this.selector,\n globals = $.jMaskGlobals,\n interval = globals.watchInterval,\n watchInputs = options.watchInputs || globals.watchInputs,\n maskFunction = function() {\n if (notSameMaskObject(this, mask, options)) {\n return $(this).data('mask', new Mask(this, mask, options));\n }\n };\n\n $(this).each(maskFunction);\n\n if (selector && selector !== '' && watchInputs) {\n clearInterval($.maskWatchers[selector]);\n $.maskWatchers[selector] = setInterval(function(){\n $(document).find(selector).each(maskFunction);\n }, interval);\n }\n return this;\n };\n\n $.fn.masked = function(val) {\n return this.data('mask').getMaskedVal(val);\n };\n\n $.fn.unmask = function() {\n clearInterval($.maskWatchers[this.selector]);\n delete $.maskWatchers[this.selector];\n return this.each(function() {\n var dataMask = $(this).data('mask');\n if (dataMask) {\n dataMask.remove().removeData('mask');\n }\n });\n };\n\n $.fn.cleanVal = function() {\n return this.data('mask').getCleanVal();\n };\n\n $.applyDataMask = function(selector) {\n selector = selector || $.jMaskGlobals.maskElements;\n var $selector = (selector instanceof $) ? selector : $(selector);\n $selector.filter($.jMaskGlobals.dataMaskAttr).each(HTMLAttributes);\n };\n\n var globals = {\n maskElements: 'input,td,span,div',\n dataMaskAttr: '*[data-mask]',\n dataMask: true,\n watchInterval: 300,\n watchInputs: true,\n // old versions of chrome dont work great with input event\n useInput: !/Chrome\\/[2-4][0-9]|SamsungBrowser/.test(window.navigator.userAgent) && eventSupported('input'),\n watchDataMask: false,\n byPassKeys: [9, 16, 17, 18, 36, 37, 38, 39, 40, 91],\n translation: {\n '0': {pattern: /\\d/},\n '9': {pattern: /\\d/, optional: true},\n '#': {pattern: /\\d/, recursive: true},\n 'A': {pattern: /[a-zA-Z0-9]/},\n 'S': {pattern: /[a-zA-Z]/}\n }\n };\n\n $.jMaskGlobals = $.jMaskGlobals || {};\n globals = $.jMaskGlobals = $.extend(true, {}, globals, $.jMaskGlobals);\n\n // looking for inputs with data-mask attribute\n if (globals.dataMask) {\n $.applyDataMask();\n }\n\n setInterval(function() {\n if ($.jMaskGlobals.watchDataMask) {\n $.applyDataMask();\n }\n }, globals.watchInterval);\n}, window.jQuery, window.Zepto));\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/jquery-mask-plugin/dist/jquery.mask.js\n// module id = ./components/jquery-mask-plugin/dist/jquery.mask.js\n// module chunks = 0","\n\n// 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\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 _rng() {\n for (var i = 0, r; i < 16; i++) {\n if ((i & 0x03) === 0) {\n r = Math.random() * 0x100000000;\n }\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 () {\n return _rb(16);\n };\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,\n ii = 0;\n\n buf = buf || [];\n s.toLowerCase().replace(/[0-9a-f]{2}/g, function (oct) {\n if (ii < 16) {\n // 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,\n bth = _byteToHex;\n return bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]] + '-' + bth[buf[i++]] + bth[buf[i++]] + '-' + bth[buf[i++]] + bth[buf[i++]] + '-' + bth[buf[i++]] + bth[buf[i++]] + '-' + bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]] + 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 = [_seedBytes[0] | 0x01, _seedBytes[1], _seedBytes[2], _seedBytes[3], _seedBytes[4], _seedBytes[5]];\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,\n _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 () {\n return uuid;\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// WEBPACK FOOTER\n// ./components/node-uuid/uuid.js\n// module id = ./components/node-uuid/uuid.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// ./components/squid/dist/core/api.js\n// module id = ./components/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// ./components/squid/dist/core/class.js\n// module id = ./components/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// ./components/squid/dist/core/config.js\n// module id = ./components/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// ./components/squid/dist/core/dom.js\n// module id = ./components/squid/dist/core/dom.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$FallbackError = exports.$BatchShortCircuit = 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 $BatchShortCircuit = exports.$BatchShortCircuit = $Error.extend('$BatchShortCircuit');\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\nangular.value(\"$Error\", $Error);\nangular.value(\"$Contingency\", $Contingency);\nangular.value(\"$Forbidden\", $Forbidden);\nangular.value(\"$ApiError\", $ApiError);\nangular.value(\"$BatchShortCircuit\", $BatchShortCircuit);\nangular.value(\"$FallbackError\", $FallbackError);\n_event.$event;\n\n_class.$Class;\n\n_util.$util;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/squid/dist/core/error.js\n// module id = ./components/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// ./components/squid/dist/core/event.js\n// module id = ./components/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// ./components/squid/dist/core/index.js\n// module id = ./components/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// ./components/squid/dist/core/integration.js\n// module id = ./components/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// ./components/squid/dist/core/loader.js\n// module id = ./components/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// ./components/squid/dist/core/model.js\n// module id = ./components/squid/dist/core/model.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$promise = $promise;\n\nvar _util = require('./util');\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 },\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\nangular.value(\"$promise\", $promise);\n_util.$util;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/squid/dist/core/promise.js\n// module id = ./components/squid/dist/core/promise.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$unresolved = exports.$util = exports.isUnsafeRedirect = undefined;\nexports.$getRedirectUrl = $getRedirectUrl;\nexports.$dispatch = $dispatch;\nexports.$experiment = $experiment;\n\nvar _event = require('./event');\n\nvar _logger = require('xo-beaver/dist/logger');\n\nvar _base = require('base64/base64.min');\n\nvar base64 = _interopRequireWildcard(_base);\n\nvar _config = require('./config');\n\nvar _integration = require('./integration');\n\nvar _angular = require('angular');\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\nvar redirected = false;\nvar paramCache = {};\n\n// incase base64 has been CJS packed, it will export itself\nif (typeof window.atob === 'undefined' || typeof window.btoa === 'undefined') {\n window.atob = base64.atob;\n window.btoa = base64.btoa;\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 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 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: 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: 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 window.top.location = 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 var result = void 0;\n var called = false;\n\n function memoized() {\n if (!called) {\n result = method.apply(this, arguments);\n }\n called = true;\n return result;\n }\n\n memoized.flush = function () {\n called = false;\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 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// ./components/squid/dist/core/util.js\n// module id = ./components/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// ./components/squid/dist/index.js\n// module id = ./components/squid/dist/index.js\n// module chunks = 0","\n\nexports.__esModule = true;\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\n// Griffin exceptions for separators at hundreds- xx,xx,xxx format\nvar HUNDREDS_SEPARATOR_EXCEPTION = ['IN', 'BT', 'MV', 'NP'];\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\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\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\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\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\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 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\nfunction formatCurrency(amount, code, wrapCodeInSpan) {\n var style = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'SymbolISOCurrency';\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 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_locale.$locale;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/squid/dist/locale/currency.js\n// module id = ./components/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// ./components/squid/dist/locale/feature.js\n// module id = ./components/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// ./components/squid/dist/locale/index.js\n// module id = ./components/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\n/* eslint-disable no-use-before-define */\nfunction sanitize(html) {\n return html && html.toString().replace(/&/g, '&').replace(//g, '>').replace(/\"/g, '"').replace(/'/g, ''').replace(/\\//g, '/');\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] === undefined) {\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 countryCache = metadataCache[country] = metadataCache[country] || {};\n\n countryCache[lang] = 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/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 if (metadataCache[model.country] && metadataCache[model.country][model.lang]) {\n _logger.$logger.info('cached_metadata');\n return metadataCache[model.country][model.lang];\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]) {\n _logger.$logger.info('metadata_retrieved', {\n uri: uri\n });\n return metadataCache[model.country][model.lang];\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 change: function change(country, lang) {\n var _this2 = this;\n\n this.country = country;\n this.lang = lang;\n\n return this.reload().then(function () {\n if (!_this2.noBroadcast) {\n _core.$event.broadcast('metadataChange');\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\n//////////////////\n// WEBPACK FOOTER\n// ./components/squid/dist/locale/locale.js\n// module id = ./components/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// ./components/squid/dist/locale/name.js\n// module id = ./components/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// ./components/squid/dist/locale/quantity.js\n// module id = ./components/squid/dist/locale/quantity.js\n// module chunks = 0","\n\nmodule.exports = angular.module;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/squid/dist/module.js\n// module id = ./components/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': '@'\n }[spec.type || 'var'];\n });\n }\n\n var originalController = this.controller || angular.noop;\n\n this.controller = 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 = 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// ./components/squid/dist/ng/component.js\n// module id = ./components/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// ./components/squid/dist/ng/core.js\n// module id = ./components/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// ./components/squid/dist/ng/directive.js\n// module id = ./components/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// ./components/squid/dist/ng/events.js\n// module id = ./components/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// ./components/squid/dist/ng/feature.js\n// module id = ./components/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\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/squid/dist/ng/index.js\n// module id = ./components/squid/dist/ng/index.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: function controller($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// ./components/squid/dist/ng/locale.js\n// module id = ./components/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// ./components/squid/dist/ng/module.js\n// module id = ./components/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// ./components/squid/dist/ng/ng.js\n// module id = ./components/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// ./components/squid/dist/ng/pxp.js\n// module id = ./components/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 $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 = 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 = 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 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 (0, _ng.$once)('$stateNotFound', function (event, unfoundState, fromState, fromParams) {\n event.preventDefault();\n\n _logger.$logger.error('state_not_found', {\n name: unfoundState.to,\n from: fromState.name,\n fromParams: fromParams,\n hash: window.location.hash\n });\n\n throw new Error('state_not_found: ' + unfoundState.to);\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 if (targetState) {\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 }\n\n _logger.$logger.info('unknown_state', {\n stateName: targetState\n });\n }\n\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 })['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\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\n_uiRouter.$stateProvider.state('default', {\n auth: false\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.$once;\n\n_ng.$angularInvoke;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/squid/dist/ng/route.js\n// module id = ./components/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// ./components/squid/dist/paypal/config.js\n// module id = ./components/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// ./components/squid/dist/paypal/env.js\n// module id = ./components/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// ./components/squid/dist/paypal/index.js\n// module id = ./components/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;\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\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 }, 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 }, 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 });\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\n\n return _core.$promise.run(function () {\n var pxp = $PXPModel.instance(_core.$util.buildURL(id, params), { pagename: id });\n var forceTreatments = _core.$util.param('pxp_' + 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 });\n }).then(function (pxp) {\n\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\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).then(function (pxpResponse) {\n var result = void 0;\n\n (pxpResponse.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\nwindow.$pxp = $pxp;\n\nangular.value(\"$PXPModel\", $PXPModel);\nangular.value(\"$getPxpTreatments\", $getPxpTreatments);\nangular.value(\"$pxp\", $pxp);\nangular.value(\"$pxpMatch\", $pxpMatch);\nangular.value(\"$pxpFactors\", $pxpFactors);\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// ./components/squid/dist/paypal/pxp.js\n// module id = ./components/squid/dist/paypal/pxp.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$xoAddAddressComponent = undefined;\n\nvar _angular = require('angular');\n\nvar _angular2 = _interopRequireDefault(_angular);\n\nvar _squid = require('squid');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nrequire('jquery');\n\nrequire('text!./template.html');\n\nrequire('xo-ui-components/src/dropdown/directive');\n\nrequire('xo-ui-components/src/dropdown-multiline/directive');\n\nrequire('xo-ui-components/src/error-tooltip/directive');\n\nrequire('xo-ui-components/src/prefix-attrs-with/directive');\n\nrequire('xo-form-components/src/name-input/directive');\n\nrequire('xo-models/src/address/index');\n\nrequire('xo-form-components/src/zipcode/directive');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar $xoAddAddressComponent = exports.$xoAddAddressComponent = _squid.$Component.extend('$xoAddAddressComponent', {\n\n tag: 'xo-add-address',\n template: _template2['default'],\n\n props: {\n address: {\n type: 'var',\n required: false\n },\n isShipping: {\n type: 'var',\n required: false\n },\n country: {\n type: 'var',\n required: false\n },\n metadata: {\n type: 'str',\n required: false\n },\n hideButtonHandler: {\n type: 'var',\n required: false\n },\n hideCep: {\n type: 'var',\n required: false\n },\n hideName: {\n type: 'var',\n required: false\n },\n triggerZipCodeBlur: {\n type: 'var',\n required: false\n },\n triggerZipCodeKeyPress: {\n type: 'var',\n required: false\n },\n renderBillingAddCheckbox: {\n type: 'var',\n required: false\n }\n },\n\n controller: function controller($scope, $populate, $rootScope, $locale, $window, $feature, $PrefillAddressModel, $MetadataModel) {\n // eslint-disable-line max-statements\n var sortStates;\n var country = $scope.country || $scope.address && $scope.address.country;\n\n $scope.country = country;\n $scope.locale = $locale;\n $scope.metadata = $MetadataModel.create();\n\n // If the user changes their shipping/billing address country, fetch that metadata (if needed) and re-render.\n $scope.$watch('country', function setMetadata() {\n $scope.metadata.choose($scope.country, $scope.locale.lang);\n onCountryChange();\n });\n\n function onCountryChange() {\n sortStates = $feature('sortStatesForAddress', false, $scope.country);\n\n if (sortStates) {\n getSortedStateList();\n }\n }\n\n onCountryChange();\n\n // If the user changes languagle toggle, fetch that metadata (if needed) and re-render.\n $scope.$on('contentChange', function setMetadata() {\n $scope.metadata.choose($scope.country, $scope.locale.lang);\n });\n\n /**\n * Prefix to use for `id`, `name`, and `for` attributes. This is needed because Xoon will sometimes display both billing\n * and shipping address forms on the same page and without a prefix there will be duplicte `id`s and `name`s on the page.\n */\n $scope.attrPrefix = $scope.isShipping ? 'shipping' : 'billing';\n\n $scope.$watch('address.state', function () {\n $rootScope.$emit($scope.attrPrefix + 'AddressStateChange', $scope.address);\n });\n\n $scope.normalizeCountry = function (countryCode) {\n return $feature('AddressFormat', countryCode, countryCode) || countryCode;\n };\n\n $scope.isAddPreferred = $feature('preferredShipping', false, $scope.country) && $scope.isShipping;\n\n $scope.isAddressLookupEnabled = $feature('addressLookup', false, $scope.country);\n\n $scope.isShowLookupFields = $scope.isAddressLookupEnabled;\n\n if ($scope.isShowLookupFields) {\n // Show the Address Lookup Fields only when the hideButtonHandler function is passed by the caller.\n if ($scope.hideButtonHandler) {\n $scope.hideButtonHandler(true);\n } else {\n $scope.isShowLookupFields = false;\n }\n }\n\n function getSortedStateList() {\n var states = $locale.content.get(sortStates, {});\n var statesList = [];\n _angular2['default'].forEach(states, function (key, value) {\n statesList.push({\n code: value,\n sname: key\n });\n });\n\n statesList.sort(function (a, b) {\n return a.sname.localeCompare(b.sname);\n });\n $scope.sortedStatesList = statesList;\n }\n\n $scope.formatZip = function () {\n var unformatted = $scope.address.postal_code.replace(/[^0-9]/gi, '');\n var formatted = [['', unformatted.slice(0, 3)], ['-', unformatted.slice(3)]].map(function (x) {\n return x[1] && x[0] + x[1] || '';\n }).join('');\n $scope.address.postal_code = formatted;\n };\n\n function getAddress(address) {\n var COMMA = ', ';\n var SPACE = ' ';\n var line1, line2;\n\n function prefix(str, prefixStr) {\n if (str) {\n return (prefixStr ? prefixStr : '') + str;\n }\n return '';\n }\n\n if (!address.deliveryAddresses || _angular2['default'].isArray(address.deliveryAddresses) && address.deliveryAddresses.length === 0) {\n // if deliveryAddresses is not an array or is empty\n // line would be empty, hence return to caller.\n return;\n }\n\n var array = address.deliveryAddresses;\n if (array.length > 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\n displayLine1: displayLine1,\n displayLine2: displayLine2,\n displayLine3: displayLine3,\n\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 messages.push($scope.locale.content.get('addressBook.lookupError'));\n\n $scope.lookupFailureMessage = {\n msgs: messages,\n type: 'warning'\n };\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 $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 $scope.prefill = function () {\n var cepPattern = /^(\\d{5}-\\d{3}|\\d{5}|\\d{8})$/;\n var first_name;\n var last_name;\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 $PrefillAddressModel({\n id: $scope.token,\n address: {\n country: $scope.address.country,\n postal_code: $scope.address.postal_code\n }\n });\n\n $scope.prefillAddress.save({\n data: $scope.prefillAddress,\n\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 = $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\n success: function success(result) {\n processLookupResult(result);\n $scope.hideButtonHandler(false);\n },\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 $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 = $locale.content;\n _angular2['default'].forEach(groups, function (group) {\n var groupName = content.common[group];\n var statesList = content[group];\n _angular2['default'].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 $rootScope.$emit('zip_code_blur');\n }\n };\n\n $scope.zipCodeKeyPress = function (event) {\n if ($scope.triggerZipCodeKeyPress) {\n $rootScope.$emit('zip_code_keypress', { event: event });\n }\n };\n }\n});\n\n_angular2['default'].value(\"$xoAddAddressComponent\", $xoAddAddressComponent);\n_squid.$Component;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-address-components/src/add-address/directive.js\n// module id = ./components/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
      \\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// ./components/xo-address-components/src/add-address/template.html\n// module id = ./components/xo-address-components/src/add-address/template.html\n// module chunks = 0","\n\nrequire('./styles');\n\ndefine(['squid/index', 'text!./template.html', 'xo-models/src/address/index', 'xo-tray-height/dist/directive', 'xo-page-components/src/aside-header/directive'], function (squid, template) {\n\n squid.module('xo-address-normalization.directive', ['squid', 'xomodel.address', 'xo-aside-header.directive', 'xomodel.address', 'xo-tray-height.directive']).directive('xoAddressNormalization', function () {\n return {\n template: template,\n scope: {\n id: '=?',\n address: '=?',\n doneFn: '=?',\n sidebar: '=?',\n hideBackButton: '=?'\n },\n controller: function controller($scope, $populate, $feature, $util, $AddressNormalizationModel, $timeout) {\n $util.assert($scope.address, 'Original Address cannot be empty');\n\n $scope.showNormalization = false;\n\n var normalize = $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 = $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 $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 $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\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-address-components/src/address-normalization/directive.js\n// module id = ./components/xo-address-components/src/address-normalization/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-address-normalization.route', ['squid', 'xo-address-normalization.directive']).factory('$AddressNormalizationRoute', function ($ComponentRoute) {\n\n return $ComponentRoute.extend('AddressNormalizationRoute', {\n\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 });\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-address-components/src/address-normalization/route.js\n// module id = ./components/xo-address-components/src/address-normalization/route.js\n// module chunks = 0","\n\ndefine(['angular'], function (angular) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n angular.module('beaver.level', []).factory('$logLevel', function () {\n\n return {\n INFO: 'info',\n DEBUG: 'debug',\n ERROR: 'error',\n WARN: 'warn',\n ALERT: 'alert'\n };\n }).factory('$consoleLogLevel', function () {\n\n return {\n info: 'info',\n debug: 'debug',\n error: 'error',\n warn: 'warn',\n alert: 'info'\n };\n });\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-beaver/dist/level.js\n// module id = ./components/xo-beaver/dist/level.js\n// module chunks = 0","\n\ndefine(['angular', './level'], function (angular) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n angular.module('beaver', ['beaver.level']).factory('$Logger', function ($injector, $http, $window, $interval, $timeout, $log, $q, $rootScope, $logLevel, $consoleLogLevel) {\n\n var logger = {};\n var HERMES_DEV_COOKIE = 'hermesdev';\n\n angular.forEach($logLevel, function (level) {\n logger[level] = function (event, payload, settings) {\n return this.log(level, event, payload, settings);\n };\n });\n\n var hostname = $window.location && $window.location.hostname || '';\n\n var uniqueEvents = [];\n\n angular.extend(logger, {\n\n autoLog: [$logLevel.WARNING, $logLevel.ERROR],\n flushInterval: 10 * 60 * 1000,\n heartbeatInterval: 5000,\n sizeLimit: 300,\n debounceInterval: 10,\n uri: '/api/log',\n hearbeatMaxThreshold: 50,\n\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 = $window.onbeforeunload;\n\n $window.onbeforeunload = function (event) {\n\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 = $window.onunload;\n\n $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 $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 && angular.isUndefined(payload.client_elapsed)) {\n payload.client_elapsed = parseInt(now - window.clientStartTime, 10);\n }\n\n if (timing.connectEnd && timing.navigationStart && angular.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 = $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\n var self = this;\n\n payload = payload || {};\n\n if (angular.isArray(payload) || !angular.isObject(payload)) {\n payload = {\n payload: payload\n };\n }\n settings = settings || {};\n\n if (settings.unique) {\n var hash = event + ':' + angular.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('info', '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\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 $log[$consoleLogLevel[level] || 'info'].apply($log, args);\n },\n\n flush: function flush(immediate) {\n var self = this;\n\n if (!this.buffer.length) {\n return $q.when();\n }\n\n if (immediate) {\n return $q.when(this._flush());\n }\n\n if (self.debouncer_timeout) {\n $timeout.cancel(self.debouncer_timeout);\n }\n\n self.debouncer_timeout = $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 || $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 $q.when();\n }\n\n var meta = {};\n\n try {\n meta = $injector.get('$metaBuilder').build();\n } catch (err) {\n // @TODO - Log error\n }\n\n var req = this.ajax('post', $window.meta.logURL || $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\n return $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 = $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(angular.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 = $interval(function () {\n self.flush();\n }, this.flushInterval);\n },\n\n stop: function stop() {\n if (this.timer) {\n $interval.cancel(this.timer);\n }\n }\n });\n\n function Logger(val) {\n angular.extend(this, val);\n this.init();\n }\n\n Logger.prototype = logger;\n Logger.prototype.constructor = Logger;\n\n return Logger;\n }).factory('$logger', function ($Logger) {\n return new $Logger();\n }).run(function ($logger) {\n angular.forEach(window.beaconQueue, function (payload) {\n $logger.log(payload.level, payload.event, payload);\n });\n\n window.beacon = function (level, events, payload) {\n angular.forEach(events, function (event) {\n $logger.log(level, event, payload);\n });\n };\n });\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-beaver/dist/logger.js\n// module id = ./components/xo-beaver/dist/logger.js\n// module chunks = 0","/* eslint-disable no-use-before-define */\n\n\ndefine(['angular'], function (angular) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n angular.module('xo-device-info', ['squid']).factory('$DeviceInfo', function ($window, $meta, $logger) {\n var userAgent = $window.navigator.userAgent;\n var standalone = $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\n function getIntegrationContext(integrationKey) {\n // additonal context sent via partners in regards to integration\n var integrationContext = $meta.integrationCTX || {};\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 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 = $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.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 (angular.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 (angular.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 (angular.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 (angular.isString(userAgent)) {\n var ios = /iphone|ipod|ipad/i.test(userAgent);\n\n return ios && $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 device = DEVICE_PATTERN.test(userAgent),\n tablet = TABLET_PATTERN.test(userAgent),\n app = isApp(userAgent);\n\n if (angular.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\n return capabilities;\n }\n\n /**\n * Get various AppIntegrationType\n */\n function getAppIntegrationType() {\n var app_int_type;\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 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 };\n });\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-device-info/dist/index.js\n// module id = ./components/xo-device-info/dist/index.js\n// module chunks = 0","\n\nrequire('xo-ui-components/src/directionality/directive');\n\ndefine(['jquery', 'squid/index', 'text!./template.html'], function ($, squid, template) {\n\n squid.module('xo-dob-input.directive', ['squid']).directive('dobValidation', function () {\n\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: template,\n restrict: 'E',\n scope: {\n user: '=?'\n },\n controller: function controller($scope, $locale, $pxp) {\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 = $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 = $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 $pxp('xo_xoon_numeric_keypad_expirydob', { 'ctx.COUNTRY': $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\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-form-components/src/dob-input/directive.js\n// module id = ./components/xo-form-components/src/dob-input/directive.js\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// ./components/xo-form-components/src/gender-type/directive.js\n// module id = ./components/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// ./components/xo-form-components/src/gender-type/template.html\n// module id = ./components/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// ./components/xo-form-components/src/inventory-soldout/directive.js\n// module id = ./components/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// ./components/xo-form-components/src/inventory-soldout/route.js\n// module id = ./components/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// ./components/xo-form-components/src/inventory-soldout/template.html\n// module id = ./components/xo-form-components/src/inventory-soldout/template.html\n// module chunks = 0","\n\nexports.__esModule = true;\nvar VALID_DIRECTION = exports.VALID_DIRECTION = ['top', 'bottom'];\nvar isValidDirection = function isValidDirection(n) {\n return VALID_DIRECTION.includes(n);\n};\n\ndefine(['jquery', 'squid/index', 'text!./template.html', 'xo-ui-components/src/accessibility/directive'], function ($, squid, template) {\n squid.module('xo-language-options.directive', ['squid', 'xo-accessibility.directive']).directive('xoLanguageOptions', function () {\n return {\n template: template,\n\n scope: {\n direction: '@?'\n },\n\n controller: function controller($scope, $populate, $locale, $Class, $config, $meta) {\n $scope.direction = isValidDirection($scope.direction) ? $scope.direction : 'bottom';\n $scope.showLanguages = false;\n\n function setLanguageVars() {\n $scope.localeModel = $locale;\n $scope.currentLanguage = $scope.localeModel.lang;\n $scope.currentCountry = $scope.localeModel.country;\n $scope.languageList = $scope.localeModel.metadata.languageLabel;\n $scope.supportedLanguages = $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 $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\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-form-components/src/language-options/directive.js\n// module id = ./components/xo-form-components/src/language-options/directive.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/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: true,\n type: 'str'\n },\n user: {\n required: true,\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// ./components/xo-form-components/src/name-input/directive.js\n// module id = ./components/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// ./components/xo-form-components/src/name-input/template.html\n// module id = ./components/xo-form-components/src/name-input/template.html\n// module chunks = 0","\n\nrequire('xo-ui-components/src/directionality/directive');\n\ndefine(['jquery', 'squid/index', 'text!./template.html', 'xo-ui-components/src/tooltip/directive', '../dob-input/directive', 'xo-models/src/checkout/index'], function ($, squid, template) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n squid.module('xo-national-id-input.directive', ['squid', 'xo-tooltip.directive', 'xo-dob-input.directive', 'xomodel.checkout']).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: template,\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: function controller($scope, $feature, $locale, $rootScope, $CheckoutCartModel, $NationalIdModel, $util) {\n\n $scope.nationalIdModel = $NationalIdModel.instance($rootScope.token);\n $scope.checkoutCart = $CheckoutCartModel.instance($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: $locale.content.addTaxId.passport }\n };\n\n // National ID is not shown for South Korea\n if ($locale.country !== 'KR') {\n $scope.nationalIds.NATID = { name: 'NATIONAL_ID', value: $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 ($locale.country === 'HK' && $feature('driverLicenseToTempNationalID', false, $locale.country)) {\n $scope.nationalIds.TNID = { name: 'TEMPORARY_NATIONAL_ID', value: $locale.content.addTaxId.tnid };\n } else {\n $scope.nationalIds.DL = { name: 'DRIVERS_LICENSE', value: $locale.content.addTaxId.dl };\n }\n }\n\n function setLocalizedRUContent() {\n $scope.countries = $locale.metadata.territory;\n $scope.secondaryIds = {\n 'INN': { name: 'INN', value: $locale.content.addTaxId.INN, length: 12 },\n 'SNILS': { name: 'SNILS', value: $locale.content.addTaxId.SNILS, length: 14, maskCharLength: 3 },\n 'OMS': { name: 'OMS', value: $locale.content.addTaxId.OMS, length: 16, minlength: 11 }\n };\n }\n\n if ($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: $locale.content.addTaxId.passport },\n 'DL': { name: 'DRIVERS_LICENSE', value: $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 ($Model) {\n\n return $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\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-form-components/src/national-id-input/directive.js\n// module id = ./components/xo-form-components/src/national-id-input/directive.js\n// module chunks = 0","\n\ndefine(['squid/index', 'text!./template.html', './phoneInput/directive', 'xo-models/src/checkout/index', 'xo-models/src/user/index', 'xo-ui-components/src/message/directive', 'xo-models/src/auth/index', 'xo-title/dist/directive', 'xo-page-components/src/value-props/directive'], function (squid, template) {\n\n squid.module('xo-phone.directive', ['squid', 'xo-phone.phoneInput', 'xomodel.checkout', 'xomodel.user', 'xomodel.auth', 'xo-message.directive', 'xo-title.directive', 'xo-value-props.directive']).directive('xoAddPhone', function () {\n return {\n template: template,\n scope: {},\n controller: function controller($scope, $rootScope, $location, $populate, $contentVersion, $UserInfoModel, $state, $locale, $featureCountries, $CheckoutSessionModel, $util, $logger, $AuthModel, $feature) {\n\n $scope.showPhoneDisclosure = $featureCountries('showPhoneDisclosure').indexOf($locale.country) > -1;\n $scope.phoneConsent = $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 = $UserInfoModel.instance($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 ? $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 $populate($scope, {\n auth: $AuthModel.instance()\n }).then(function () {\n\n $scope.logout = function () {\n $logger.info('not_you_logout');\n $scope.auth.action('logout').then(function () {\n $state.go('checkout.login');\n });\n };\n\n $scope.showNotYou = $scope.auth.is_auth_api_call && $util.param('source') !== 'consumerApp' && $scope.logout;\n\n $scope.onSubmit = function () {\n if ($scope.phoneConsent) {\n $scope.phone.consent = {\n agreed: true,\n contentId: $locale.country + ':' + $locale.lang + ':' + $scope.consentContentKey + ':' + $contentVersion()\n };\n }\n $scope.userInfo.action('addPhone', {\n\n data: $scope.phone,\n\n success: function success(data) {\n return $CheckoutSessionModel.instance($rootScope.token).action('create', {\n success: function success() {\n $state.go('checkout.review');\n }\n });\n },\n\n contingencies: {\n NEED_CREDIT_CARD: function NEED_CREDIT_CARD() {\n $location.path('/checkout/addCard');\n },\n\n EXPIRED_CREDIT_CARD: function EXPIRED_CREDIT_CARD() {\n $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\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-form-components/src/phone/directive.js\n// module id = ./components/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// ./components/xo-form-components/src/phone/lib/territoriesByCode.js\n// module id = ./components/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 optional: 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_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// ./components/xo-form-components/src/phone/phoneInput/directive.js\n// module id = ./components/xo-form-components/src/phone/phoneInput/directive.js\n// module chunks = 0","module.exports = \"\\n\\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-form-components/src/phone/phoneInput/template.html\n// module id = ./components/xo-form-components/src/phone/phoneInput/template.html\n// module chunks = 0","\n\nrequire('./styles');\n\nrequire('xo-ui-components/src/directionality/directive');\n\ndefine(['jquery', 'angular', 'squid/index', 'text!./template.html', '../lib/territoriesByCode', 'xo-ui-components/src/dropdown/directive', 'xo-ui-components/src/error-tooltip/directive', 'xo-ui-components/src/floating-label/directive'], function ($, angular, squid, template, countryPhoneCode) {\n\n angular.module('xo-phone.phoneInput', ['squid', 'xo-dropdown.directive', 'xo-error-tooltip.directive', 'floating-label.directive']).directive('xoPhoneInputA', function () {\n return {\n template: template,\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: function controller($scope, $feature, $locale, $MetadataModel) {\n $scope.locale = $locale;\n $scope.IntDialingCodes = countryPhoneCode;\n $scope.defaultCountryPhoneCode = countryPhoneCode[$locale.country];\n $scope.showPhoneType = $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 $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: $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 !== $locale.metadata.country) {\n $scope.metadata = angular.copy($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 = countryPhoneCode[newValue].phoneCountryCode;\n });\n\n $scope.$on('localeChange', function () {\n $scope.defaultCountryPhoneCode = countryPhoneCode[$locale.country];\n $scope.phone.phoneCountryCode = $locale.country;\n if (!$scope.metadata || $scope.metadata.country !== $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 = countryPhoneCode[$scope.country];\n $scope.phone.phoneCountryCode = $scope.country;\n\n if (!$scope.metadata || $scope.metadata.country !== $scope.country) {\n\n $scope.metadata = $MetadataModel.create();\n $scope.metadata.choose($scope.country, $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\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-form-components/src/phone/phoneInputA/directive.js\n// module id = ./components/xo-form-components/src/phone/phoneInputA/directive.js\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('jquery-mask-plugin/dist/jquery.mask.min');\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 optional: false\n },\n\n hidePhoneType: {\n type: 'var',\n optional: true\n },\n\n hideWork: {\n type: 'var',\n optional: true,\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 phoneEntry = this.metadata.phoneEntry;\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\n var territory = _squid.$util.find(this.dialingCodeList, function (obj) {\n return obj.code === country;\n });\n\n return territory;\n },\n\n\n // set the stage on first load or on locale change\n init: function init(country) {\n\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 this.dialingCodeList = _squid.$locale.metadata.territory;\n\n var territory = this.actions.getTerritoryDataFromMetadata(this.phone.phoneCountry || country);\n\n this.actions.updatePhoneFieldMetadata(territory);\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_logger.$logger;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-form-components/src/phone/phoneInputB/directive.js\n// module id = ./components/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// ./components/xo-form-components/src/phone/phoneInputB/template.html\n// module id = ./components/xo-form-components/src/phone/phoneInputB/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// ./components/xo-form-components/src/place-of-birth/directive.js\n// module id = ./components/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// ./components/xo-form-components/src/place-of-birth/template.html\n// module id = ./components/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: true\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// ./components/xo-form-components/src/select-shipping-country/directive.js\n// module id = ./components/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// ./components/xo-form-components/src/select-shipping-country/template.html\n// module id = ./components/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: true\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// ./components/xo-form-components/src/travel-rule/directive.js\n// module id = ./components/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// ./components/xo-form-components/src/travel-rule/template.html\n// module id = ./components/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// ./components/xo-form-components/src/travel-rule/utilFunctions.js\n// module id = ./components/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: true,\n type: 'var'\n },\n attrPrefix: {\n required: false,\n type: 'var'\n },\n country: {\n required: true,\n type: 'str'\n },\n doneFn: {\n required: true,\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: true,\n type: 'str'\n },\n zipLabel: {\n required: true,\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// ./components/xo-form-components/src/zipcode/directive.js\n// module id = ./components/xo-form-components/src/zipcode/directive.js\n// module chunks = 0","module.exports = \"
      \\n \\n \\n
      \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-form-components/src/zipcode/template.html\n// module id = ./components/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-device-info/dist/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', function ($populate, $rootScope, $window, $DeviceInfo, $logger, $config, $util, $meta, $q) {\n\n var fncls = 'fnparams-dede7cc5-15fd-4c75-a9f4-36c430ee3a99';\n\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 var options = {\n fnSessionId: getFnCorrId(),\n sourceId: 'XOONBOARDINGNODEWEB',\n allowsCustomEvent: typeof CustomEvent !== 'undefined' && _angular2['default'].isFunction(CustomEvent),\n fnUrl: $config.urls.fraudnetUrl.passive,\n passive: true\n };\n\n $logger.info('FN_Initialised', {\n 'allowsCustomEvent': options.allowsCustomEvent\n });\n\n function injectScript(fnUrl) {\n var script = document.createElement('script');\n script.id = 'js-sync';\n script.src = fnUrl;\n document.body.appendChild(script);\n }\n\n function injectIframe(beaconOptions) {\n var iframe = document.createElement('iframe');\n var dom = void 0;\n var doc = void 0;\n var where = void 0;\n\n iframe.src = 'javascript:false'; // eslint-disable-line no-script-url\n iframe.title = '';\n iframe.role = 'presentation';\n (iframe.frameElement || iframe).style.cssText = 'width: 0; height: 0; border: 0; display: none;';\n\n where = document.getElementsByTagName('script');\n where = where[where.length - 1];\n where.parentNode.insertBefore(iframe, where);\n\n try {\n doc = iframe.contentWindow.document;\n } catch (e) {\n dom = document.domain;\n iframe.src = 'javascript:var d=document.open();d.domain=\"' + dom + '\";void(0);'; // eslint-disable-line no-script-url\n doc = iframe.contentWindow.document;\n }\n\n doc.open()._l = function () {\n var js = this.createElement('script');\n if (dom) {\n this.domain = dom;\n }\n js.id = 'js-iframe-async';\n js.src = beaconOptions.fnUrl;\n this.body.appendChild(js);\n };\n\n doc.write('');\n doc.close();\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 * Loads the fraudnet beacons (triggers 2 image beacons to c.paypal.com and c6.paypal.com)\n *\n * Integration pattern ripped from the Fraudnet Integration guide:\n * https://confluence.paypal.com/display/RiskDataAcquisition/FraudNet+Client+System+Integration+Guide+3.0#FraudNetClientSystemIntegrationGuide3.0-IntegrationCode\n */\n function _loadBeacon(beaconOptions) {\n if ($DeviceInfo.isApp()) {\n injectScript(beaconOptions.fnUrl);\n } else {\n injectIframe(beaconOptions);\n }\n }\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 $window.fnCallback = function () {\n if (scope) {\n scope.$emit('fnCallback');\n }\n };\n _injectConfig(options);\n _loadBeacon(options);\n $rootScope.fnLoaded = true;\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// ./components/xo-guest-components/src/fraudnet/fn.js\n// module id = ./components/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// ./components/xo-guest-components/src/guest-upgrade-interstitial/constants/pxpExperimentConstants.js\n// module id = ./components/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 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// ./components/xo-guest-components/src/guest-upgrade-interstitial/directive.js\n// module id = ./components/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', 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// ./components/xo-guest-components/src/guest-upgrade-interstitial/route.js\n// module id = ./components/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// ./components/xo-guest-components/src/guest-upgrade-interstitial/template.html\n// module id = ./components/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 return {\n preloadedData: _index4.$GuestUpgradeModel.instance().retrieve(options)\n };\n },\n experiments: function experiments() {\n return {\n // refer to config.GDPR for countries list\n GDPRTermsAndMarketing: (0, _index2.$pxp)('xo_xoon_GDPR_terms_marketing_checkbox', { 'ctx.COUNTRY': _index2.$locale.country }, '(xo_xoon_GDPR_terms_marketing_checkbox_)(.*)')\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 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 GDPRTermsAndMarketingTreatment = _index2.$util.getProperty(this.experiments, 'GDPRTermsAndMarketing.treatment_name', { 'default': '' });\n var isGDPRCountry = _helper.signupLib.getIsGDPRCountry(this.locale.country);\n\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, GDPRTermsAndMarketingTreatment);\n\n var getContentIdentifier = function getContentIdentifier() {\n return [_index2.$locale.country, _index2.$locale.lang, (0, _index2.$contentVersion)(), 'signupTerms.easySignupTCPA'].join(':');\n };\n\n var setTCPAFlags = function setTCPAFlags() {\n _this.flags.tcpa_content = false;\n\n if (_this.locale.country === 'US') {\n _this.flags.tcpa_content = true;\n }\n\n _logger.$logger.info('guest_upgrade_tcpa', {\n tcpa: _this.flags.tcpa_content,\n content_identifier: _this.onboard.contentIdentifier,\n experience_identifier: _this.onboard.experienceIdentifier\n });\n };\n\n var preloadedData = this.models.preloadedData;\n\n if (preloadedData.guestUpgradeNewAppRedirect === true) {\n var redirectUrl = window.location.href.replace('xoonboarding', 'prox');\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 // GDPR country only has GDPR marketing content. Hide the section if under control treatment since marketing content isn't in place\n if (isGDPRCountry && this.specialFields.marketing && GDPRTermsAndMarketingTreatment.indexOf('control') > -1) {\n this.specialFields.marketing = false;\n }\n\n setTCPAFlags();\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 if (element) {\n var $fields = $(element);\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 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_index2.$pxp;\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// ./components/xo-guest-components/src/guest-upgrade/directive.js\n// module id = ./components/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.set5,\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.map(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 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// ./components/xo-guest-components/src/guest-upgrade/lib/mapper.js\n// module id = ./components/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: function controller($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// ./components/xo-guest-components/src/guest-upgrade/occupation/directive.js\n// module id = ./components/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

      \\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// WEBPACK FOOTER\n// ./components/xo-guest-components/src/guest-upgrade/template.html\n// module id = ./components/xo-guest-components/src/guest-upgrade/template.html\n// module chunks = 0","\n\nexports.__esModule = true;\nvar _submitButtonGuestTextKeyMap = {\n commit: 'common.payLabel',\n notCommit: 'common.continueLabel'\n};\n\nvar _submitButtonSignupTextKeyMap = {\n commit: 'common.createAccountAndPayNow',\n notCommit: 'common.agreeAndCreateAccount'\n};\n\nvar submitButtonTextKeyMap = exports.submitButtonTextKeyMap = {\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 RTRAmount = exports.RTRAmount = 15;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-guest-components/src/guest/constants/constants.js\n// module id = ./components/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 loginRedirectUrl = (0, _squid.$getRedirectUrl)('hermes', {\n hermesLoginRedirect: 'xoon'\n});\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' }],\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 },\n compileMessageWith: {\n href: loginRedirectUrl\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\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-guest-components/src/guest/constants/errorHandlerConstants.js\n// module id = ./components/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 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 }\n};\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-guest-components/src/guest/constants/pxpExperimentConstants.js\n// module id = ./components/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: true\n },\n showMask: {\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 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 var guestBlockedCountries = _index.$config.guestBlockedCountries || [];\n _this.metadata = _angular2['default'].copy(_index.$locale.metadata);\n\n if (proxSignUpFlow) {\n // only show the countries that are in $config.proxSupportedCountries\n _this.supportedCountries = _this.metadata.territory.filter(function (c) {\n if (c.code === _index.$locale.country) {\n _this.selectedCountryObj = c;\n }\n return _index.$config.proxSupportedCountries.indexOf(c.code) > -1;\n });\n } else {\n _this.supportedCountries = _this.metadata.territory.filter(function (c) {\n if (c.code === _index.$locale.country) {\n _this.selectedCountryObj = c;\n }\n return !(guestBlockedCountries.indexOf(c.code) > -1);\n });\n\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 _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 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 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// ./components/xo-guest-components/src/guest/countryList/directive.js\n// module id = ./components/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// ./components/xo-guest-components/src/guest/countryList/template.html\n// module id = ./components/xo-guest-components/src/guest/countryList/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/checkout/index');\n\nvar _angular = require('angular');\n\nvar _utils = require('./utils');\n\nrequire('./styles');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nvar _constants = require('../constants/constants');\n\nvar constants = _interopRequireWildcard(_constants);\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('$xoCurrencyConversionLightbox', {\n tag: 'xo-currency-conversion-lightbox',\n template: _template2['default'],\n\n props: {\n isPrePlan: {\n type: 'str',\n required: false\n },\n parentModel: {\n type: 'var',\n required: false\n },\n token: {\n type: 'var',\n required: false\n },\n doneFn: {\n type: 'var',\n required: false\n }\n },\n\n resolve: {\n experiments: function experiments() {\n return {\n dccPopupContent: (0, _squid.$pxp)('xo_xoon_dcc_popup_content', { 'ctx.COUNTRY': _squid.$locale.country }, '(xo_xoon_dcc_popup_content_treatment_)(.*)')\n };\n },\n models: function models() {\n this.isPrePlanVal = this.isPrePlan === 'true';\n return {\n checkoutSession: this.isPrePlanVal ? undefined : _index.$CheckoutSessionModel.instance(this.props.token).retrieve(),\n checkoutCart: _index.$CheckoutCartModel.instance(this.props.token).retrieve(),\n checkoutAppData: _index.$CheckoutAppDataModel.instance(this.props.token).retrieve()\n };\n }\n },\n\n actions: {\n onSubmit: function onSubmit() {\n var _this = this;\n\n if (!this.models.ppconversion) {\n this.message = {\n msgKeys: ['currencyOptions.noneSelected'],\n type: 'error'\n };\n return;\n }\n\n _logger.$logger.info('checkout_fpti', { from: 'CURRENCY_CONVERSION', to: 'process_currency_conversion' });\n\n if (this.parentModel) {\n this.parentModel.onboard.card.ppconversion = this.models.ppconversion;\n }\n\n /*\n * This check cuts off flow to the updateConversion service call in postPlanUpdateConversionVendor function for:\n * 1. Pre-Planning (Non-Visa DCC) for both PAYPAL and VENDOR selections, since service call done on createXO\n * 2. Post-Plan (Visa DCC) PAYPAL selection, since no updateConversion call needed.\n * Only will allow Post-Plan (Visa DCC) VENDOR selection to go through to updateConversion call below.\n */\n if (this.isPrePlanVal || this.models.ppconversion === 'PAYPAL') {\n var dccType = this.isPrePlanVal ? 'nonvisa_dcc' : 'visa_dcc';\n var toState = 'process_' + this.models.ppconversion.toLowerCase() + '_conversion_' + dccType;\n _logger.$logger.info('checkout_fpti', { from: 'CURRENCY_CONVERSION', to: toState });\n\n this.closeModal({ complete: true });\n return;\n }\n\n var payload = {\n conversionType: this.models.ppconversion,\n planId: this.models.checkoutSession && this.models.checkoutSession.plan.id\n };\n\n var postPlanUpdateConversionVendor = function postPlanUpdateConversionVendor(_payload) {\n if (_payload.planId) {\n _this.models.checkoutSession.fundingOptions.action('updateConversion', {\n\n data: _payload,\n\n success: function success(result) {\n _logger.$logger.info('checkout_fpti', { from: 'CURRENCY_CONVERSION', to: 'process_vendor_conversion_visa_dcc' });\n _this.closeModal({ complete: true });\n },\n error: function error() {\n _this.message = {\n msgKeys: ['genericError.genericError'],\n type: 'error'\n };\n return;\n },\n contingency: function contingency() {\n _this.message = {\n msgKeys: ['genericError.genericError'],\n type: 'error'\n };\n return;\n }\n });\n }\n };\n\n // Post-Plan Visa DCC call to update slection to VENDOR\n postPlanUpdateConversionVendor(payload);\n }\n },\n\n lifecycle: {\n enter: function enter() {\n var _this2 = this;\n\n _logger.$logger.info('checkout_fpti', { from: 'CURRENCY_CONVERSION', to: 'prepare_currency_conversion' });\n\n this.conversionOptions = {\n PAYPAL: 'PAYPAL',\n VENDOR: 'VENDOR'\n };\n\n this.locale = _squid.$locale;\n this.activeEl = document.activeElement;\n\n // Javascript for interstitial opening\n (0, _angular.$timeout)(function () {\n _this2.modalOpen = true;\n });\n },\n populate: function populate() {\n var _this3 = this;\n\n this.showClose = this.isPrePlanVal ? true : false;\n this.continueButton = this.isPrePlanVal ? _squid.$locale.content.get('buttons.agree') : _squid.$locale.content.get('common.payLabel');\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.metadata = angular.copy(_squid.$locale.metadata);\n this.merchantTotal = (0, _squid.formatCurrency)(unformattedAmount, merchantCurrencyCode, false);\n\n // LATAM Disclosure check\n this.showLATAMDisclosure = this.isPrePlanVal && this.metadata.localization && this.metadata.localization.countryRegion === 'LATAM';\n\n // Set constants needed for content keys\n\n var _ref = this.experiments.dccPopupContent || {},\n _ref$treatment_name = _ref.treatment_name,\n contentPxpTreatmentName = _ref$treatment_name === undefined ? '' : _ref$treatment_name;\n\n var isEMEA3PLCountry = _squid.$util.getProperty(this.metadata, 'localization.isEMEA3PLCountry', { 'default': false });\n\n // Set pxp experience returned on 'this'\n this.isNewContentExperience = !!contentPxpTreatmentName;\n\n this.dccTitle = _utils.dccContentUtils.getDccTitle({ isPrePlanVal: this.isPrePlanVal, contentPxpTreatmentName: contentPxpTreatmentName });\n this.ppRateLabel = _utils.dccContentUtils.getPPRateLabel({ isPrePlanVal: this.isPrePlanVal, contentPxpTreatmentName: contentPxpTreatmentName });\n this.dccPPRate = _utils.dccContentUtils.getDccPPRate({ isPrePlanVal: this.isPrePlanVal, contentPxpTreatmentName: contentPxpTreatmentName, isEMEA3PLCountry: isEMEA3PLCountry });\n this.dccPPTotal = this.isNewContentExperience ? 'currencyOptions.dccPPTotalTreatment1' : 'currencyOptions.dccPPTotal';\n this.dccPPExchange = this.isNewContentExperience ? 'currencyOptions.dccPPExchangeTreatment1' : 'currencyOptions.dccPPExchange';\n\n this.vendorRateLabel = _utils.dccContentUtils.getVendorRateLabel({ isPrePlanVal: this.isPrePlanVal, contentPxpTreatmentName: contentPxpTreatmentName });\n this.dccVendorExchange = this.isNewContentExperience ? 'currencyOptions.dccVendorExchangeTreatment1' : 'currencyOptions.dccVendorExchange';\n\n // LATAM countries have unique disclosure requirements for vendor option\n this.dccVendorTotal = _utils.dccContentUtils.getDccVendorTotal({ showLATAMDisclosure: this.showLATAMDisclosure, contentPxpTreatmentName: contentPxpTreatmentName });\n\n var isRTRAmount = void 0;\n\n if (this.models.checkoutSession) {\n // Post-Plan Case - for Visa & when non-Visa PXP isn't active\n this.conversion = this.models.checkoutSession.plan.conversion;\n this.paypalConversionTotal = this.models.checkoutSession.get('plan.sources.0.amount.amount_formatted_currency');\n\n // Set default currency conversion option to PayPal in both visa and non-visa cases\n this.models.ppconversion = 'PAYPAL';\n\n isRTRAmount = Number(this.models.checkoutSession.get('plan.sources.0.amount.amount')) > constants.RTRAmount;\n } else {\n // Pre-Plan Case - for non-Visa PXP\n var _ref2 = this.parentModel || {},\n _ref2$onboard = _ref2.onboard;\n\n _ref2$onboard = _ref2$onboard === undefined ? {} : _ref2$onboard;\n var _ref2$onboard$card = _ref2$onboard.card,\n card = _ref2$onboard$card === undefined ? {} : _ref2$onboard$card;\n\n\n this.conversion = card.currencyConvData || {};\n var _conversion$payment_a = this.conversion.payment_amt,\n convertedTotal = _conversion$payment_a === undefined ? {} : _conversion$payment_a;\n\n\n this.paypalConversionTotal = (0, _squid.formatCurrency)(convertedTotal.value, convertedTotal.currency_code, false);\n\n // Set the default selection, this.models.ppconversion, to the currently selected option\n // or if there isn't a currently selected option then use 'PAYPAL' as the default\n this.models.ppconversion = card.ppconversion || 'PAYPAL';\n\n isRTRAmount = convertedTotal.value > constants.RTRAmount;\n }\n\n if (!this.conversion.formattedFromStr || !this.conversion.formattedToStr) {\n this.conversion.formattedFromStr = truncateCurrencyConversionStr(this.conversion.from, this.conversion.from_amount);\n this.conversion.formattedToStr = truncateCurrencyConversionStr(this.conversion.to, this.conversion.to_amount);\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 of greater than $15 USD or equivalent.\n var isInvoicingFlow = this.models.checkoutAppData.get('flags.is_invoice_flow') === true;\n\n if (isInvoicingFlow) {\n var isUSBuyer = this.locale.country === 'US';\n this.merchant = this.models.checkoutAppData.get('merchant');\n this.showInvoicingRegEMsg = isUSBuyer && isRTRAmount && this.merchant && this.merchant.merchant_country !== 'US';\n }\n\n this.closeModal = function (event) {\n // Prevent ESC keydown event from triggering modal close in post-plan case\n if (!_this3.isPrePlanVal && (!event || !event.complete)) {\n return;\n }\n\n if (event && event.preventDefault) {\n event.preventDefault();\n }\n\n var onComplete = _squid.$util.once(function () {\n _logger.$logger.info('close_currency_conversion_lightbox');\n return _this3.isPrePlanVal ? _this3.props.doneFn('close') : _this3.props.doneFn();\n });\n\n // Return focus to element that was active before modal was opened in pre-plan case\n if (_this3.activeEl) {\n if (_this3.isPrePlanVal) {\n _this3.activeEl.focus();\n }\n\n _this3.activeEl = null;\n }\n\n _this3.modalOpen = false;\n // Hook css transition completion event 'transitionend' to call onComplete function, guarentees best timing\n $('#conversionSection .conversion').on('transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd', function (e) {\n $(_this3).off(e);\n onComplete();\n });\n // transitionend event not supported fallback\n // if browser doesn't support transitionend event callback, we call onComplete after 350ms as fallback\n (0, _angular.$timeout)(onComplete, 350);\n };\n }\n }\n});\n\n/* @params\n * fullStr: The full formatted currency or number format conversion string returned from downstream service.\n * amtStr: Just the currency conversion amount portion of the full string returned from downstream.\n */\n\nfunction truncateCurrencyConversionStr(fullStr, amtStr) {\n try {\n var fixedPrecision = Number(amtStr).toFixed(4);\n var formattedStr = fullStr.replace(amtStr, fixedPrecision);\n if (fixedPrecision == 0) {\n // eslint-disable-line\n throw new Error('Currency conversion truncation error encountered, defaulting to full unformatted currencyConversion string.');\n }\n return formattedStr;\n } catch (e) {\n _logger.$logger.warn('currency_conversion_error', {\n reason: 'Error formatting currency conversion data to formatted str in guest/currencyConversion/directive',\n error: e\n });\n return fullStr;\n }\n}\n\n_squid.$Component;\n\n_squid.$locale;\n\n_squid.$pxp;\n\n_squid.formatCurrency;\n\n_squid.$util;\n\n_logger.$logger;\n\n_index.$CheckoutSessionModel;\n\n_index.$CheckoutCartModel;\n\n_index.$CheckoutAppDataModel;\n\n_angular.$timeout;\n\n_utils.dccContentUtils;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-guest-components/src/guest/currencyConversion/directive.js\n// module id = ./components/xo-guest-components/src/guest/currencyConversion/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-currency-conversion-lightbox.route', ['squid', 'xo-currency-conversion-lightbox.directive']).factory('$CurrencyConversionOptionsRoute', function ($ComponentRoute) {\n\n return $ComponentRoute.extend('CurrencyConversionOptionsRoute', {\n\n name: 'currencyConversionOptions',\n directive: 'xo-currency-conversion-lightbox',\n trackingData: {\n fptiState: 'guest_currency_conversion_lightbox',\n trackStateExit: false,\n pageQualifier: 'guest',\n buzname: {\n 'guest': {\n 'pagename': '%::fullpage-guest-currency-conversion-lightbox',\n 'pagename2': '%::fullpage-guest:member:hermes:',\n 'version': 'guest:%:'\n }\n }\n },\n\n children: []\n });\n });\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-guest-components/src/guest/currencyConversion/route.js\n// module id = ./components/xo-guest-components/src/guest/currencyConversion/route.js\n// module chunks = 0","module.exports = \"
      \\n
      \\n
      \\n
      \\n
      \\n \\n \\n\\n
      \\n\\n

      {{ content(dccTitle) }}

      \\n\\n
        \\n

        \\n
      • \\n
        \\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
        • \\n {{ content('currencyOptions.exchangeRate') }} {{ content('currencyOptions.dccVendorRateNonVisa') }}\\n
        • \\n
        • \\n
        \\n
      • \\n
      • {{ content('currencyOptions.dccCommonRateNonVisa') }}
      • \\n
      \\n\\n
      \\n {{content('currencyOptions.invoicingRegEMsg', {merchantName: merchant.brand_name || merchant.merchant_email, amountInInvoiceCurrency: merchantTotal})}}\\n
      \\n\\n
      \\n \\n
      \\n\\n
      \\n
      \\n
      \\n
      \\n
      \\n
      \\n
      \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-guest-components/src/guest/currencyConversion/template.html\n// module id = ./components/xo-guest-components/src/guest/currencyConversion/template.html\n// module chunks = 0","\n\nexports.__esModule = true;\nvar getDccTitle = function getDccTitle(_ref) {\n var isPrePlanVal = _ref.isPrePlanVal,\n contentPxpTreatmentName = _ref.contentPxpTreatmentName;\n\n\n if (contentPxpTreatmentName.includes('treatment_1')) {\n return 'currencyOptions.dccTitleTreatment1';\n }\n\n if (contentPxpTreatmentName.includes('treatment_2')) {\n return 'currencyOptions.dccTitleTreatment2';\n }\n\n if (isPrePlanVal) {\n return 'currencyOptions.dccPPRateNonVisa';\n }\n\n return 'currencyOptions.dccTitle';\n};\n\nvar getPPRateLabel = function getPPRateLabel(_ref2) {\n var isPrePlanVal = _ref2.isPrePlanVal,\n contentPxpTreatmentName = _ref2.contentPxpTreatmentName;\n\n if (contentPxpTreatmentName) {\n return 'currencyOptions.dccPPDescTreatment1';\n }\n\n if (isPrePlanVal) {\n return 'currencyOptions.convertPayPal';\n }\n\n return 'currencyOptions.dccPPDesc';\n};\n\nvar getVendorRateLabel = function getVendorRateLabel(_ref3) {\n var isPrePlanVal = _ref3.isPrePlanVal,\n contentPxpTreatmentName = _ref3.contentPxpTreatmentName;\n\n if (contentPxpTreatmentName) {\n return 'currencyOptions.dccVendorDescTreatment1';\n }\n\n if (isPrePlanVal) {\n return 'currencyOptions.convertIssuer';\n }\n\n return 'currencyOptions.dccVendorDesc';\n};\n\nvar getDccPPRate = function getDccPPRate(_ref4) {\n var isPrePlanVal = _ref4.isPrePlanVal,\n contentPxpTreatmentName = _ref4.contentPxpTreatmentName,\n isEMEA3PLCountry = _ref4.isEMEA3PLCountry;\n\n if (contentPxpTreatmentName) {\n return 'currencyOptions.dccPPRateTreatment1';\n }\n\n if (isPrePlanVal) {\n return 'currencyOptions.dccPPRateNonVisa';\n }\n\n return isEMEA3PLCountry ? 'currencyOptions.dccPPRate3PL' : 'currencyOptions.dccPPRate';\n};\n\nvar getDccVendorTotal = function getDccVendorTotal(_ref5) {\n var showLATAMDisclosure = _ref5.showLATAMDisclosure,\n contentPxpTreatmentName = _ref5.contentPxpTreatmentName;\n\n if (contentPxpTreatmentName) {\n return 'currencyOptions.dccVendorTotalTreatment1';\n }\n\n return showLATAMDisclosure ? 'currencyOptions.dccNonVisaVendorTotalLATAM' : 'currencyOptions.dccVendorTotal';\n};\n\nvar dccContentUtils = {\n getDccTitle: getDccTitle,\n getPPRateLabel: getPPRateLabel,\n getVendorRateLabel: getVendorRateLabel,\n getDccPPRate: getDccPPRate,\n getDccVendorTotal: getDccVendorTotal\n};\n\nexports.dccContentUtils = dccContentUtils;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-guest-components/src/guest/currencyConversion/utils.js\n// module id = ./components/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 _index9 = require('xo-models/src/address/index');\n\nvar _fiApis = require('xo-models/src/fi/lib/fiApis');\n\nvar _index10 = require('xo-models/src/auth/index');\n\nvar _logger = require('xo-beaver/dist/logger');\n\nvar _uiRouter = require('uiRouter');\n\nvar _index11 = require('xo-device-info/dist/index');\n\nvar _index12 = 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 _pageProps = require('./lib/pageProps');\n\nvar $pageProps = _interopRequireWildcard(_pageProps);\n\nvar _constants = require('./constants/constants');\n\nvar constants = _interopRequireWildcard(_constants);\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nvar _index13 = require('xo-models/src/profilemanagement/index');\n\nrequire('./countryList/directive.js');\n\nrequire('./emailInput/directive.js');\n\nrequire('./passwordInput/directive.js');\n\nrequire('./onboardOptions/directive.js');\n\nrequire('./currencyConversion/directive.js');\n\nrequire('./select-shipping-method/directive.js');\n\nrequire('./xoonHeader/directive.js');\n\nrequire('./redirectingFromXoonWarning/directive.js');\n\nrequire('./sepa/directive.js');\n\nrequire('./travelRuleLightbox/directive.js');\n\nrequire('xo-form-components/src/select-shipping-country/directive.js');\n\nrequire('xo-address-components/src/add-address/directive.js');\n\nrequire('xo-form-components/src/phone/phoneInput/directive.js');\n\nrequire('xo-form-components/src/name-input/directive.js');\n\nrequire('xo-wallet-components/src/add-bank/bank-input/directive.js');\n\nrequire('xo-address-components/src/address-normalization/directive.js');\n\nrequire('xo-wallet-components/src/3ds/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: _index10.$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: _index13.$MerchantPreferenceModel.instance(models.payee.merchant.id).retrieve()\n };\n });\n },\n sepaExperiment: function sepaExperiment() {\n var isSepaOverlayRequired = this.isUnbranded && this.onboard.fiMode === 'bank';\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 return {\n nonVisaDcc: (0, _squid.$pxp)('xo_xoonboarding_dcc_nonvisa', { 'ctx.COUNTRY': _index.$locale.country }, 'xo_xoonboarding_dcc_nonvisa_test')\n };\n }\n },\n\n lifecycle: {\n enter: function enter() {\n var _this2 = 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 };\n\n this.sepa = {\n sepaGuestAgree: false,\n sepaAgree: false,\n show: false\n };\n\n // Update SplitScreen flags onto this.flags\n // new flags - showSplitScreenExp, showSplitScreenFGAWarning, prefillEmailFromCookie\n // If prefillEmailFromCookie is set, then we prefill email into user model in\n // populate function\n angular.extend(this.flags, $pageProps.getSplitScreenFlags(this.mode));\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 = _index11.$DeviceInfo.isWebView() ? 'WebView' : _index11.$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 this.$watch('onboard.card.type', function (newVal) {\n _this2.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: $(_this2).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 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 triggerPageDesignFPTILog();\n // Trigger Design FPTI Log on Page Design Change\n _angular.$rootScope.$watch('miniBrowser', triggerPageDesignFPTILog);\n\n var getPresetPaymentMethod = function getPresetPaymentMethod() {\n\n var paymentMethod = _this2.paymentMethod && _this2.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 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 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\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 poma_flow: false,\n frs_optin_flow_applicable: false\n });\n\n this.onboard.card.ppconversion = 'PAYPAL';\n },\n populate: function populate() {\n var _this3 = this;\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.payer && this.models.checkoutCart.payer.first_name;\n this.onboard.user.last_name = this.models.checkoutCart.payer && this.models.checkoutCart.payer.last_name;\n\n var setAllowShipToBilling = function setAllowShipToBilling(allow) {\n // Toggle checkbox\n _this3.flags.disallowShipToBilling = !allow;\n // Show/Hide shipping address section\n _this3.flags.shipToBilling = allow;\n };\n\n var checkProcessorDecline = function checkProcessorDecline() {\n var processorDeclined = _this3.models.checkoutAppData.get('flags.processor_declined');\n if (processorDeclined) {\n _this3.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 _this3.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.' + _this3.merchantCountry);\n var infoMessage = (0, _squid.$renderContent)('largeScreenPayment.blockNonDomesticShippingAlert', { shippingCountry: countryName });\n _this3.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 // pre-fill billing address with shipping address\n _this3.onboard.shipping_address = _index2.$ShippingAddressModel.create(_this3.token, {\n country: shippingAddress.country_code || _index.$locale.country\n }, shippingAddress);\n\n // pre-fill provided billing address\n _this3.onboard.billing_address = _index8.$BillingAddressModel.create(_this3.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 = _this3.models.checkoutCart.supplementary;\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 _this3.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 _this3.onboard.user.first_name = prefilledAddress.first_name;\n _this3.onboard.user.last_name = prefilledAddress.last_name;\n\n updateShippingAndBillingAddress(prefilledAddress, prefilledAddress);\n if (!_this3.flags.allowEditShipping) {\n _this3.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 _this3.onboard.fiMode = _this3.getDefaultFIMode();\n _this3.onboard.billing_address.country = _index.$locale.country;\n _this3.onboard.user.country = _index.$locale.country;\n _this3.onboard.user.nationality = _index.$locale.country;\n _this3.setBackButtonForWebview();\n\n if (_this3.flags.disableChangeShippingCountry) {\n if (_this3.flags.allowEditShipping) {\n setAllowShipToBilling(_index.$locale.country === _this3.merchantCountry);\n }\n } else {\n _this3.onboard.shipping_address.country = _index.$locale.country;\n }\n });\n\n this.$on('contentChange', function () {\n if (_this3.flags.disableChangeShippingCountry) {\n setChangeShippingCountryAlertMsg();\n }\n });\n\n this.$on('signupClickedTimerStarted', function (event, time) {\n _this3.signupClickedStartTime = time;\n });\n\n this.hasDialingCodeOverride = _util2.hasDialingCodeOverride;\n this.showContactInfo = function () {\n return _this3.hasDialingCodeOverride() || _this3.flags.allowChoice && !_this3.flags.showSplitScreenExp;\n };\n\n this.displayEmailInContactInfo = function () {\n\n if (!_this3.flags.showSplitScreenExp && !(0, _util2.hasDialingCodeOverride)()) {\n return true;\n }\n\n var showingEmailInSignup = !_this3.flags.allowChoice && !_this3.flags.showSplitScreenExp;\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: _this3.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 && _this3.flags.allowEditShipping) {\n $.each(_this3.onboard.billing_address, function (key, val) {\n if (angular.isString(_this3.onboard.billing_address[key]) && !_this3.onboard.shipping_address[key]) {\n _this3.onboard.shipping_address[key] = val;\n }\n });\n\n _this3.onboard.shipping_address.first_name = _this3.onboard.shipping_address.first_name || _this3.onboard.user.first_name;\n _this3.onboard.shipping_address.last_name = _this3.onboard.shipping_address.last_name || _this3.onboard.user.last_name;\n }\n });\n\n // Format address to display when store pick is selected\n var formatAddress = function formatAddress(address) {\n\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 if (_this3.flags.shipToBilling) {\n _this3.shippingAddress = formatAddress(_this3.onboard.billing_address);\n } else {\n _this3.shippingAddress = formatAddress(_this3.onboard.shipping_address);\n }\n });\n\n this.$on('$destroy', storePickUpSelected);\n\n var showErrorFields = _angular.$rootScope.$on('showErrorFields', function (event) {\n _this3.toggleAddressFieldsValidation(true);\n });\n\n this.$on('$destroy', showErrorFields);\n\n var hideErrorFields = _angular.$rootScope.$on('hideErrorFields', function (event) {\n _this3.toggleAddressFieldsValidation(false);\n });\n\n this.$on('$destroy', hideErrorFields);\n\n // useraction flag\n var useraction = this.models.checkoutAppData.useraction();\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 // UL SplitScreen account match - prefill email from login_email cookie\n if (this.flags.prefillEmailFromCookie) {\n // Prefill email into user model from login_email cookie\n this.onboard.user.email = this.models.auth.email;\n } else {\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 this.upopConfirmButtonTextKey = $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 (_index11.$DeviceInfo.isWebView(false)) {\n var floatThrottle = parseFloat((0, _index.$feature)('webviewBackButtonThrottle', 0, _index.$locale.country));\n if (isNaN(floatThrottle)) {\n return;\n }\n\n _this3.flags.backButtonWebview = floatThrottle && (0, _squid.$experiment)('webview_backbutton_throttle', floatThrottle, _angular.$rootScope.token, {}) ? true : false;\n if (_this3.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 // 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 if (prefilledNumber && prefilledNumber.telephone_country === _index.$locale.country) {\n this.onboard.phone.telephone = prefilledNumber.normalized_phone_number;\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 var merchant = this.models.checkoutAppData.merchant;\n this.merchant = merchant.brand_name || merchant.merchant_name || merchant.merchant_email;\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\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\n _this3.$watch('singlePagePaymentForm.$valid', function (newVal, oldVal) {\n var cardModel = _this3.onboard.card;\n\n if (newVal.luhn && newVal.luhn[0].$name === 'cardNumber') {\n cardModel.valid = false;\n } else {\n cardModel.valid = true;\n }\n });\n\n _this3.$watch(_this3.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 if (newValue && _this3.installments && _this3.installments.length > 0) {\n\n _this3.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 });\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 _this3.singleStepModel.selectedInstallmentData = {\n installment_option_selected: cardNetwork.installment_options[0],\n preventChange: true\n };\n }\n\n _this3.singleStepModel.allowInstallments = true;\n } else {\n // Card network does not exists Or No installment found\n _this3.singleStepModel.allowInstallments = false;\n }\n } else {\n _this3.singleStepModel.allowInstallments = false;\n }\n });\n var installments = _index2.$InstallmentOptionsModel.instance(_this3.token);\n installments.save({\n data: {\n payee: _this3.models.payee,\n checkoutCart: _this3.models.checkoutCart,\n checkoutAppData: _this3.models.checkoutAppData\n },\n success: function success(result) {\n _this3.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\n _this3.cardNumberChanged = function (unformattedCardNumber) {\n\n if (unformattedCardNumber && unformattedCardNumber !== _this3.prevCardNumber) {\n\n // Make sure the Installments server is hit only once for a cardNumber\n _this3.prevCardNumber = unformattedCardNumber;\n var installments = _index2.$InstallmentOptionsModel.instance(_this3.token);\n installments.save({\n silent: true,\n data: {\n payee: _this3.models.payee,\n checkoutCart: _this3.models.checkoutCart,\n checkoutAppData: _this3.models.checkoutAppData,\n cc: unformattedCardNumber\n },\n success: function success(result) {\n\n _this3.installments = result;\n\n if (result.installment_options && result.installment_options.length > 0) {\n\n _this3.issuerBasedInstallmentsRetrieved = true;\n\n // reset the previously selected installment\n _this3.singleStepModel.selectedInstallmentData = undefined;\n if (result.installment_options.length === 1) {\n _this3.singleStepModel.selectedInstallmentData = {\n installment_option_selected: result.installment_options[0],\n preventChange: true\n };\n }\n\n _this3.singleStepModel.allowInstallments = true;\n } else {\n _this3.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\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 (!_this3.singleStepModel) {\n return false;\n }\n _this3.singleStepModel.onboard = _this3.onboard;\n\n var model = _this3.onboard;\n var hasConditionMet = _this3.singleStepModel.allowInstallments && model.card.number && (model.card.valid || _this3.issuerBasedInstallmentsRetrieved);\n var isBilling = _this3.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 this.onboard.payment_experience_initiator = experienceInitiator;\n\n this.isApac = function () {\n return _index.$config.apacCountries && _index.$config.apacCountries.indexOf(_this3.locale.country) > -1;\n };\n\n this.$on('MORSDisplayed', function (event, args) {\n _this3.MORSDisplayed = args;\n });\n\n this.$on('MORSNotDisplayed', function (event, args) {\n _this3.MORSDisplayed = {};\n });\n\n var handleCardContingencySignup = function handleCardContingencySignup(errorData) {\n if (_this3.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 (0, _squid.$dispatch)('hermes', {\n redirectToHermes: true,\n addFIContingency: fieldError ? 'retry' : 'noretry',\n avsRetry: avsRetry,\n token: _this3.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 (_this3.models.payee.isGambling()) {\n msg = _index.$locale.content.get('creditcard.noEligibleFI');\n } else if (_this3.onboard.billing_address.country === 'DE') {\n if (_this3.onboard.fiMode === 'bank') {\n delete _this3.onboard.bank;\n msg = _index.$locale.content.get('creditcard.cannotUseBank');\n _this3.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 _this3.errorMessage = {\n msgs: [msg],\n type: 'error'\n };\n return _angular.$q.reject();\n };\n\n var handleCardContingency = function handleCardContingency(action) {\n return _this3.flags.mode === 'signup' ? handleCardContingencySignup() : handleCardContingencyGuest();\n };\n\n var show3DSLightbox = function show3DSLightbox(checkoutSession) {\n\n _this3.resolve_3ds_data = {\n cc_id: checkoutSession.get('resolve_3ds.ccId'),\n flow_id: 'HERMES',\n merchant_id: _this3.models.payee.get('merchant.id'),\n merchant_country_code: _this3.models.checkoutAppData.get('merchant.merchant_country'),\n transaction_amount_currency: _this3.models.checkoutCart.get('purchase.amounts.total.currency_code'),\n transaction_amount_value: _this3.models.checkoutCart.get('purchase.amounts.total.amount')\n\n };\n _this3.launch3DSResolver = true;\n };\n\n var isDCCEligible = function isDCCEligible(checkoutSession) {\n var isGuest = _this3.flags.mode !== 'signup';\n var hasCurrencyConversion = checkoutSession.get('plan.conversion.paypal') && checkoutSession.get('plan.conversion.changeable');\n\n if (!(isGuest && hasCurrencyConversion)) {\n return false;\n }\n\n return _this3.flags.dccCountryEligibility;\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\n if (_this3.flags.wpsFlow) {\n _this3.singleStepModel.onboard = _this3.onboard;\n _this3.singleStepModel.flags = _this3.flags;\n // set signup/guest flag so done page\n // renders the proper content\n _angular.$rootScope.mode = _this3.flags && _this3.flags.mode;\n if (_this3.flags.wpsInterstitialEligible) {\n if (_this3.flags.buyerMode === 'signup') {\n return _uiRouter.$state.go('checkout.done');\n }\n return _this3.onboard.action('upgradeValidate', {\n\n data: _this3.onboard.serialize(),\n\n success: function success() {\n return _uiRouter.$state.go('checkout.guest.guestUpgradeInterstitial');\n },\n contingencies: {\n CC_LINKED: function CC_LINKED() {\n _logger.$logger.info('wps_interstitial_ineligible_CC_LINKED');\n return _uiRouter.$state.go('checkout.done'); // guest done page\n },\n EXISTING_MEMBER: function EXISTING_MEMBER() {\n _logger.$logger.info('wps_interstitial_ineligible_EXISTING_MEMBER');\n return _uiRouter.$state.go('checkout.done'); // guest done page\n },\n CC_LINKED_TO_FULL_ACCOUNT: function CC_LINKED_TO_FULL_ACCOUNT() {\n _logger.$logger.info('wps_interstitial_ineligible_CC_LINKED_TO_FULL_ACCOUNT');\n return _uiRouter.$state.go('checkout.done');\n },\n VALIDATION_ERROR: function VALIDATION_ERROR() {\n _logger.$logger.info('wps_interstitial_ineligible_VALIDATION_ERROR');\n return _uiRouter.$state.go('checkout.done');\n },\n DEFAULT: function DEFAULT() {\n _logger.$logger.info('wps_interstitial_ineligible - Unhandled contingency');\n return _uiRouter.$state.go('checkout.done');\n }\n },\n validation: function validation(res) {\n _logger.$logger.info('wps_interstitial_ineligible_SERVICE_VALIDATION_ERROR');\n return _uiRouter.$state.go('checkout.done');\n },\n error: function error(res) {\n _logger.$logger.info('wps_interstitial_ineligible_SERVICE_ERROR');\n return _uiRouter.$state.go('checkout.done');\n }\n });\n } else {\n if (_this3.flags.poma_flow) {\n _logger.$logger.info('LOGGING_OUT_WPS_POMA_FLOW_FOR_CLEARING_COOKIES');\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 _this3.models.auth.action('logout').then(function () {\n return _uiRouter.$state.go('checkout.done');\n });\n }\n // wps done route\n return _uiRouter.$state.go('checkout.done');\n }\n } else {\n if (_this3.flags.poma_flow) {\n _logger.$logger.info('LOGGING_OUT_POMA_FLOW_FOR_CLEARING_COOKIES');\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 _this3.models.auth.action('logout').then(function () {\n return _uiRouter.$state.go('checkout.end');\n });\n }\n // end otherwise\n return _uiRouter.$state.go('checkout.end');\n }\n };\n\n var authorize = function authorize() {\n var checkoutSession = _index2.$CheckoutSessionModel.instance(_this3.token);\n var checkoutAppData = _this3.models.checkoutAppData;\n var wpsSubscriptionFlow = checkoutAppData.is_wps_subscription_flow();\n var doEcOnApprove = checkoutAppData.doec_on_approve();\n\n return checkoutSession.action('authorize', {\n success: function success() {\n if (wpsSubscriptionFlow) {\n return (0, _util2.redirectToSubscriptionFinalRoute)(_this3.flags.mode);\n } else if (doEcOnApprove) {\n return checkInventoryAndPay(checkoutSession);\n } else {\n return finalRoute();\n }\n }\n });\n };\n\n var setStickyFIAndAuthorize = function setStickyFIAndAuthorize() {\n var checkoutSession = _index2.$CheckoutSessionModel.instance(_this3.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 var postCheckoutSessionOperations = function postCheckoutSessionOperations(dccComplete) {\n var checkoutSession = _index2.$CheckoutSessionModel.instance(_this3.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 && _this3.onboard.card && !_this3.onboard.card.currencyConvData) {\n _logger.$logger.info('render_currency_conversion_lightbox');\n if (_this3.flags.wpsInterstitialEligible) {\n _logger.$logger.info('wps_interstitial_render_dcc');\n }\n _this3.launchCurrencyConversionLightbox = true;\n return;\n }\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 this.onCompleteDCC = function (result) {\n // TODO: this if condition never gets hit, refine the code\n if (result === 'close') {\n _logger.$logger.info('BUG_not_calling_setStickyFI_here');\n _this3.launchCurrencyConversionLightbox = false;\n return;\n } else {\n _this3.launchCurrencyConversionLightbox = false;\n return postCheckoutSessionOperations(true);\n }\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.payer && checkoutSession.payer.id,\n intent: _this3.models.checkoutCart.payment_action,\n wa_type: wpsParams && wpsParams.wa_type,\n correlation_id: _squid.$meta.correlationId,\n merchant_id: _this3.models.payee.get('merchant.id'),\n custom: _this3.models.checkoutCart.get('purchase.custom'),\n invoice: _this3.models.checkoutCart.get('purchase.invoice')\n },\n\n success: function success(result) {\n _angular.$rootScope.paymentComplete = true;\n _this3.onboard.payerId = checkoutSession.payer && checkoutSession.payer.id;\n _this3.onboard.transaction = result.transactionDetails && result.transactionDetails.id;\n if (_index.$config.enableShoppingCartWPS && _this3.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: _this3.flags.mode\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 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 = _this3.models.checkoutCart.get('cartHasInventory');\n if (cartHasInventory) {\n var inventoryModel = _index6.$InventoryModel.instance(_angular.$rootScope.token);\n var inventoryItems = inventoryModel.getInventoryItems();\n var purchaseItems = _this3.models.checkoutCart.get('purchaseUnits');\n var cartItems = void 0,\n inventoryPatchInput = {};\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: _this3.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 = _this3.models.checkoutCart.get('purchaseUnits')[0];\n purchase_unit.item_list.items = patchResponse.cartItems;\n var patchCartPayload = {\n id: _this3.token,\n patchEntities: [{\n field: 'inventoryItems',\n value: purchase_unit.item_list.items\n }]\n };\n\n return _this3.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 return shoppingCartModel.action('cartCheckedOut', {\n data: {\n payee_email: _this3.models.checkoutAppData.get('merchant.merchant_email')\n },\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 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 // 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 _this3.errorMessage = _util.$fiErrorUtil.addPageErrors(data, fundingInstrument);\n\n if (!_this3.errorMessage) {\n _this3.errorMessage = {\n msgs: [_index.$locale.content.get(fundingInstrument + '.errorGeneral')],\n type: 'error'\n };\n }\n\n errorHandlerHelper.scrollToElement();\n };\n\n this.handleAddFIContingencies = function (data, fundingInstrument, action) {\n if (action === 'signup') {\n handleCardContingencySignup(data);\n } else {\n _this3.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\n // remove the page level errors\n _this3.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 _this3.onboard.shipping_address_validation = _this3.flags.allowEditShipping && !_this3.flags.shipToBilling;\n _this3.onboard.billing_address.country = _index.$locale.country;\n\n _this3.onboard.skipInitiateAuth = true;\n\n _this3.onboard.poma_flow = _this3.flags.poma_flow;\n _this3.onboard.content_identifier = getContentIdentifier(_this3.flags.tcpa_identifier);\n _this3.onboard.prox_flow = _this3.models.checkoutInputData.isEbayTxn();\n\n // Set Free Return Shipping Opt-in flow applicability flag\n _this3.onboard.frs_optin_flow_applicable = _this3.flags.freeReturnShippingOptInFlowApplicable;\n _this3.onboard.frs_optin_active_flow = _this3.flags.freeReturnShippingOptInActiveFlow;\n\n // merchantCountry, merchantPreferences, and isUnbranded are needed to check for guest eligibility\n var _merchantPreferences = _this3.merchantPreferences;\n _merchantPreferences = _merchantPreferences === undefined ? {} : _merchantPreferences;\n var merchant_preferences = _merchantPreferences.model;\n\n\n _this3.onboard.flow_eligibility_data = {\n is_unbranded: _this3.isUnbranded,\n merchant_preferences: merchant_preferences,\n merchant_country: _this3.merchantCountry\n };\n\n var action = void 0;\n // POMA should go in Singup rails, because poma usecase is passwordless member\n if (_this3.flags.poma_flow) {\n action = 'signup';\n } else {\n action = _this3.flags.mode === 'signup' ? 'signup' : 'guest';\n }\n\n return _this3.onboard.action(action, {\n\n data: _this3.onboard.serialize(),\n\n success: function success() {\n return _angular.$q.when().then(function () {\n if (_this3.flags.poma_flow) {\n var locale_code = _index.$locale.lang + '_' + _index.$locale.country;\n var locale_country = _index.$locale.country;\n return _ul.$ul.optInToOneTouch(_this3.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 (_this3.models.checkoutCart.isWalletTokenization()) {\n _logger.$logger.info('REDIRECT_' + _this3.subject + '_WALLET_TOKENIZATION');\n (0, _squid.$dispatch)('hermes', {\n token: _this3.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 (_this3.MORSDisplayed && _this3.MORSDisplayed.placementId === '202002') {\n _index12.$fireMORSBeacon.fireBeacon(_this3.MORSDisplayed.clickURL);\n }\n\n if (_this3.onboard.card && _this3.onboard.card.type === 'CUP' && _this3.onboard.fundingId) {\n _this3.onboard.card.id = _this3.onboard.fundingId;\n _this3.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 _this3.errorMessage = {\n msgs: errorHandlerHelper.getPageError('creditcard.linkedCardToAddNewCard'),\n type: 'error'\n };\n },\n BANK_LINKED_TO_FULL_ACCOUNT: function BANK_LINKED_TO_FULL_ACCOUNT() {\n _this3.errorMessage = {\n msgs: errorHandlerHelper.getPageError('bank.linkedBankError'),\n type: 'error'\n };\n },\n EXISTING_ACCOUNT_RESTRICTED: function EXISTING_ACCOUNT_RESTRICTED() {\n _this3.errorMessage = {\n msgs: errorHandlerHelper.getPageError('creditcard.riskDisallowed'),\n type: 'error'\n };\n },\n TOO_MANY_REQUESTS: function TOO_MANY_REQUESTS() {\n _this3.errorMessage = {\n msgs: errorHandlerHelper.getPageError('genericError.genericError'),\n type: 'error'\n };\n },\n VALIDATE_BANK_CONTINGENCY: function VALIDATE_BANK_CONTINGENCY(name, data) {\n _this3.errorMessage = _util.$fiErrorUtil.addPageErrors(data, _this3.locale, 'bank');\n _util.$fiErrorUtil.addFieldErrors(data, _this3.sectionElement);\n },\n ADD_CARD_CONTINGENCY: function ADD_CARD_CONTINGENCY(result, err) {\n _this3.handleAddFIContingencies(err, 'creditcard', action);\n },\n ADD_BANK_CONTINGENCY: function ADD_BANK_CONTINGENCY(result, err) {\n _this3.handleAddFIContingencies(err, 'bank', action);\n },\n RISK_DISALLOWED: function RISK_DISALLOWED() {\n _this3.errorMessage = {\n msgs: errorHandlerHelper.getPageError('creditcard.riskDisallowed'),\n type: 'error'\n };\n },\n COUNTRY_NOT_SUPPORTED: function COUNTRY_NOT_SUPPORTED() {\n _this3.errorMessage = {\n msgs: errorHandlerHelper.getPageError('creditcard.complianceDecline'),\n type: 'error'\n };\n },\n VALIDATION_ERROR: function VALIDATION_ERROR(message, errorData) {\n var errorMsgs = errorHandlerHelper.errorHandler(message, errorData, _this3.actions.positionToErrorField);\n\n if (errorMsgs && errorMsgs.length > 0) {\n _this3.errorMessage = {\n msgs: errorMsgs,\n type: 'error'\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), _this3.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 (_this3.flags.allowEditShipping) {\n var shippingAddress = _this3.onboard.shipping_address;\n shippingAddress.recipient_name = shippingAddress.first_name + ' ' + shippingAddress.last_name;\n return shippingAddress.save({\n data: _this3.onboard.shipping_address.serialize(),\n validation: function validation(message, errorData) {\n var errorMsgs = errorHandlerHelper.errorHandler(message, errorData, _this3.actions.positionToErrorField);\n\n if (errorMsgs && errorMsgs.length > 0) {\n _this3.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(_this3.token);\n\n return checkoutSession.action('create', {\n data: {\n fraudnet_id: _this3.models.checkoutCart.supplementary && _this3.models.checkoutCart.supplementary.risk_correlation_id,\n baToken: _this3.models.checkoutCart.billing && _this3.models.checkoutCart.billing.ba_token,\n cc_login_account_number: _this3.onboard.cc_login_account_number,\n email_login_account_number: _this3.onboard.email_login_account_number\n },\n\n success: function success() {\n return _angular.$q.when().then(addShippingAddress).then(function () {\n /*\n * If checkoutSession has DCC enabled, then we do updateConversion call and upate to VENDOR if:\n * 1. Pre-Plan (Non-Visa DCC) if VENDOR was selected in interstitial from link on Billing page,\n * otherwise PAYPAL is default selection.\n * 2. Post-Plan (Visa DCC) default selection to VENDOR for signup case, since we don't show DCC\n * interstitial for signup experience.\n */\n var conversionPayPalAndChangeable = checkoutSession.get('plan.conversion.paypal') && checkoutSession.get('plan.conversion.changeable');\n var isSignupWithNoConversion = _this3.flags.mode === 'signup' && !_this3.onboard.card.currencyConvData;\n var conversionIsVendor = _this3.onboard.card.ppconversion === 'VENDOR';\n\n if (conversionPayPalAndChangeable && (isSignupWithNoConversion || conversionIsVendor)) {\n return _index2.$FundingOptionsModel.instance(_this3.token).action('updateConversion', {\n data: {\n conversionType: 'VENDOR',\n planId: checkoutSession.plan.id\n }\n })['catch'](function (err) {\n return err;\n });\n }\n }).then(function () {\n if (checkoutSession.get('cvvData')) {\n checkoutSession.set('cvvData.security_code', _this3.onboard.get('card.security_code'));\n }\n\n return _fiApis.$fiApis.patchCvv(checkoutSession).then(postCheckoutSessionOperations, function (err) {\n _logger.$logger.error('patchCvv error', err);\n });\n });\n },\n\n contingencies: {\n TRANSACTION_REFUSED: showGenericError('TRANSACTION_REFUSED'),\n NEED_SHIPPING_ADDRESS: function NEED_SHIPPING_ADDRESS() {\n return _this3.onboard.shipping_address.save({\n data: _this3.onboard.shipping_address.serialize(),\n validation: function validation(message, errorData) {\n var errorMsgs = errorHandlerHelper.errorHandler(message, errorData, _this3.actions.positionToErrorField);\n\n if (errorMsgs && errorMsgs.length > 0) {\n _this3.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') && _this3.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: _this3.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 _this3.launchTravelRuleLightbox = true;\n }\n }\n });\n };\n\n this.onTravelRuleSuccess = function () {\n // Close travel rule lightbox if it is open\n _this3.launchTravelRuleLightbox = false;\n return createXO();\n };\n\n this.onUpopSuccess = function () {\n _this3.launchUpopScreen = false;\n return createXO();\n };\n\n this.onUpopCancel = function (errorData) {\n _this3.launchUpopScreen = false;\n\n if (_this3.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\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: _this3.onboard.card.last4()\n };\n _this3.errorMessage = _util.$fiErrorUtil.addPageErrors(errorData, 'confirmUpop', prop, 'error');\n }\n };\n\n this.uponNormalization = function (normalizedAddress, isBack) {\n _this3.showAddressNormalizationLightbox = false;\n\n var newBilling = _index8.$BillingAddressModel.create(_this3.token, normalizedAddress, {\n id: '0'\n });\n\n _this3.onboard.billing_address = newBilling;\n\n if (_this3.flags.shipToBilling) {\n _this3.onboard.shipping_address.first_name = _this3.onboard.user.first_name;\n _this3.onboard.shipping_address.last_name = _this3.onboard.user.last_name;\n }\n\n return _this3.onBoardAccount();\n };\n\n this.toggleAddressFieldsValidation = function (toggle) {\n\n if (_this3.flags.shipToBilling) {\n _this3.billingAddressValidated = toggle;\n } else {\n _this3.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 (_this3.onboard.phone.telephone) {\n _this3.onboard.phone.telephone = _this3.$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\n // Before submit the onboarding request, we need to make sure billing address country code is user selected country\n _this3.onboard.billing_address.country = _index.$locale.country;\n\n if (!billingCity) {\n delete _this3.onboard.billing_address.city;\n }\n\n if (!billingState) {\n delete _this3.onboard.billing_address.state;\n }\n\n if (!billingZip) {\n delete _this3.onboard.billing_address.postal_code;\n }\n\n if (_this3.flags.shipToBilling) {\n _this3.onboard.shipping_address = _index2.$ShippingAddressModel.create(_this3.token, _this3.onboard.billing_address, {\n first_name: _this3.onboard.user.first_name,\n last_name: _this3.onboard.user.last_name\n });\n } else {\n _this3.onboard.shipping_address.first_name = _this3.onboard.shipping_address.first_name || _this3.onboard.user.first_name;\n _this3.onboard.shipping_address.last_name = _this3.onboard.shipping_address.last_name || _this3.onboard.user.last_name;\n\n if (!shippingState) {\n delete _this3.onboard.shipping_address.state;\n }\n\n if (!shippingCity) {\n delete _this3.onboard.shipping_address.city;\n }\n\n if (!shippingZip) {\n delete _this3.onboard.shipping_address.postal_code;\n }\n\n // Shipping / Billing Address Difference Detection\n _this3.addrDiffDetected = compareShippingBillingAddrs(_this3.onboard.shipping_address, _this3.onboard.billing_address);\n if (_this3.addrDiffDetected) {\n var addrDiff = {\n is_ship_addr_diff: 1,\n page: 'main:ec:hermes::fullpage-billing:guest:hermes:'\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 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 (_this3.flags.wps_SnT_flow && !_this3.flags.allowSnTCall) {\n // SnT should be allowed if there is an contingency during OnBoard.\n _this3.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: _this3.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(_this3.token);\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 _this3.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 (_this3.flags.mode === 'signup') {\n // route to member review page upon patch xo throws contingency for signup\n routeToHermesOn3DSDeclineForSignUp();\n } else {\n _this3.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 _this3.launch3DSResolver = false;\n var checkoutSession = _index2.$CheckoutSessionModel.instance(_this3.token);\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 (_this3.flags.mode === 'signup') {\n routeToHermesOn3DSDeclineForSignUp();\n } else {\n // guest case\n _this3.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 (_this3.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 = _this3.sepaExperiment.sepaOverlay && _this3.sepaExperiment.sepaOverlay.treatment_name === 'XO_XOONBOARDING_SEPA_OVERLAY_TEST';\n if (sepaOverlayPXP) {\n _logger.$logger.info('checkout_fpti', { is_sepaOverlay: 1 });\n\n _this3.flags.show_sepa_overlay = true;\n } else {\n _logger.$logger.info('checkout_fpti', { is_sepaOverlay: 0 });\n _this3.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 var setSubmitButtonText = function setSubmitButtonText() {\n _this3.submitButtonText = $pageProps.submitButtonTextKey(_this3.flags, _this3.showNewSignupComplianceExp);\n };\n\n this.$watch('flags.mode', setSubmitButtonText);\n this.$watch('flags.poma_flow', setSubmitButtonText);\n\n this.openAndContinueSepaOverlay = function () {\n if (_this3.flags.show_sepa_overlay && !_this3.sepa.sepaGuestAgree) {\n _this3.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 = _this3.models.checkoutAppData.get('flags.is_invoice_flow') === true;\n\n if (isInvoicingFlow) {\n var merchantCountry = _this3.models.checkoutAppData.get('merchant.merchant_country');\n var payerCountry = _this3.locale.country;\n\n var isRTRAmount = void 0;\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 if (value && currency_code) {\n isRTRAmount = Number(value) > constants.RTRAmount;\n _this3.amountInPayerCurrency = (0, _squid.formatCurrency)(value, currency_code);\n _this3.hasCurrConversion = true;\n }\n } else {\n _this3.hasCurrConversion = false;\n\n var _ref = _this3.models.checkoutCart.get('purchase.amounts.total') || {},\n amount = _ref.amount,\n _currency_code = _ref.currency_code;\n\n isRTRAmount = Number(amount) > constants.RTRAmount && _currency_code === 'USD';\n }\n\n _this3.showInvoicingRegEMsg = isRTRAmount && merchantCountry !== 'US' && payerCountry === 'US';\n _this3.merchant = _this3.models.checkoutAppData.get('merchant');\n\n var _ref2 = _this3.models.checkoutCart.get('purchase.amounts.total') || {},\n amount_formatted_currency = _ref2.amount_formatted_currency;\n\n _this3.amountInInvCurrency = amount_formatted_currency;\n }\n };\n\n var setInvoicingRegEDetails = function setInvoicingRegEDetails(cardType) {\n if (cardType !== undefined && cardType !== 'VISA') {\n handleInvoicingRegE();\n } else {\n _this3.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 _this3.showInvoicingRegEMsg = false;\n }\n };\n this.$watch('onboard.card.currencyConvData', setInvoicingRegEDetailsWithConversion);\n } // populate\n\n },\n\n actions: {\n toggleFIMode: function toggleFIMode(event, mode) {\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\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 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.onboard.card.type === 'CUP' && this.onboard.card.isCupSecureCard) {\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 _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\n var addressNormalizationModel = new _index9.$AddressNormalizationModel({\n address: this.onboard.shipping_address\n });\n\n addressNormalizationModel.save({\n data: addressNormalizationModel,\n success: function success() {},\n contingencies: {\n VALIDATION_ERROR: function VALIDATION_ERROR() {}\n }\n });\n\n return this.onBoardAccount();\n }\n },\n positionToErrorField: function positionToErrorField() {\n var _this4 = 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 $(_this4).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_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_index9.$AddressNormalizationModel;\n\n_fiApis.$fiApis;\n\n_index10.$AuthModel;\n\n_logger.$logger;\n\n_uiRouter.$state;\n\n_index11.$DeviceInfo;\n\n_index12.$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_index13.$MerchantPreferenceModel;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-guest-components/src/guest/directive.js\n// module id = ./components/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: true\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 this.$watch('flags.mode', setEmailToolTip);\n }\n }\n});\n\n\n_squid.$Component;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-guest-components/src/guest/emailInput/directive.js\n// module id = ./components/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//////////////////\n// WEBPACK FOOTER\n// ./components/xo-guest-components/src/guest/emailInput/template.html\n// module id = ./components/xo-guest-components/src/guest/emailInput/template.html\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.SplitScreen = undefined;\n\nvar _squid = require('squid');\n\nvar _logger = require('xo-beaver/dist/logger');\n\n/*\n * This function decides the experience on xoon based on url parameters\n * passed by UL/hermes team\n * return value meaning\n * isULSplitScreenExp - UL page was on split screen experience - pxp treatment\n * isAccountMatched - UL triggered accountMatch on user entered email and\n * they found a valid member account\n * userChoseGuest - user directly clicked on \"continue as guest\" button on\n * respective UL page - ulPage=email/pwd\n */\nvar SplitScreen = exports.SplitScreen = {\n getSplitScreenExperience: function getSplitScreenExperience() {\n /*\n * Values - email/pwd/noMatch\n * email - redirect from Split Screen first page - enter email page\n * user clicked on 'create as guest' button on email page\n * pwd - redirect from Split Screen second page - enter password page\n * user clicked on 'create as guest' button on password page\n * noMatch - redirect from Split Screen first page - enter email page\n * user entered email and there was no matching member account found\n * So, user got redirected to xoon automatically from UL\n */\n var ulPage = _squid.$util.param('ulPage');\n var ulPageOptions = ['noMatch', 'pwd'];\n\n // check for all possible values, as we dont want some random\n // value on ulPage to enable splitscreen flow\n if (ulPage && ulPageOptions.indexOf(ulPage) > -1) {\n\n _logger.$logger.info('checkout_fpti', {\n source_decisioning: ulPage\n });\n\n // userChoseGuest Param Description\n // If not equal to noMatch - means the user is not automatically\n // redirected to xoon, but user clicked on a button or link to\n // land on xoon, which means userChoseGuest\n return {\n isULSplitScreenExp: true,\n isAccountMatched: ulPage === 'pwd' ? true : false,\n userChoseGuest: ulPage !== 'noMatch' ? true : false\n };\n }\n\n // Default return values which disables all splitscreen features\n return {\n isULSplitScreenExp: false,\n isAccountMatched: false,\n userChoseGuest: false\n };\n }\n};\n\n_squid.$util;\n\n_logger.$logger;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-guest-components/src/guest/lib/commonLib.js\n// module id = ./components/xo-guest-components/src/guest/lib/commonLib.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.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 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 $field.addClass('backendError');\n });\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 $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 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 $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) {\n var sectionElement = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : SECTION_ELEMENT;\n\n var messages = [];\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 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 if (errElMap) {\n var element = sectionElement + (errElMap.element ? ' ' + errElMap.element : '');\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 messages = getPageError(errElMap.pageError.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;\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// ./components/xo-guest-components/src/guest/lib/errorHandlerHelper.js\n// module id = ./components/xo-guest-components/src/guest/lib/errorHandlerHelper.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.getSplitScreenFlags = exports.submitButtonTextKey = exports.upopConfirmButtonTextKey = undefined;\n\nvar _constants = require('../constants/constants');\n\nvar constantsLib = _interopRequireWildcard(_constants);\n\nvar _logger = require('xo-beaver/dist/logger');\n\nvar _commonLib = require('../lib/commonLib');\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\nvar upopConfirmButtonTextKey = function upopConfirmButtonTextKey(flags) {\n var buttonTextKey = 'confirmUpop.confirmAndContinueToMerch';\n if (flags.wpsFlow) {\n buttonTextKey = 'confirmUpop.confirmAndContinue';\n } else if (flags.commit) {\n buttonTextKey = 'confirmUpop.confirmAndPay';\n }\n return buttonTextKey;\n};\n\nvar submitButtonTextKey = function submitButtonTextKey(flags, showNewSignupComplianceExp) {\n var getCommitOrContinueText = function getCommitOrContinueText(mode) {\n return constantsLib.submitButtonTextKeyMap[mode][showNewSignupComplianceExp ? 'US' : 'ROW'][flags.commit ? 'commit' : 'notCommit'];\n };\n\n var buttonTextKey = void 0;\n\n if (flags.show_poma_ui) {\n buttonTextKey = getCommitOrContinueText(flags.poma_flow ? 'pomaSignup' : 'guest');\n } else {\n buttonTextKey = getCommitOrContinueText(flags.mode === 'signup' ? 'signup' : 'guest');\n }\n\n return buttonTextKey;\n};\n\nvar getSplitScreenFlags = function getSplitScreenFlags(mode) {\n\n var splitScreenExp = _commonLib.SplitScreen.getSplitScreenExperience();\n\n // Initial values - SplitScreenFlags\n var ssFlags = {\n showSplitScreenExp: false,\n prefillEmailFromCookie: false,\n showSplitScreenFGAWarning: false,\n isSplitScreenUserChoseGuest: splitScreenExp.userChoseGuest\n };\n\n // If we do not find ulPage param in the url\n if (!splitScreenExp.isULSplitScreenExp) {\n return ssFlags;\n }\n\n // Enable forced signup only for \"optional Signup\" (mode = guest) flow\n if (splitScreenExp.isAccountMatched && mode === 'guest') {\n\n // We use flags.mode to change view, where as this.mode is a static\n // value throughout lifecycle of app\n // this.mode is carried from pages/xo-guest and pages/xo-signup\n ssFlags.prefillEmailFromCookie = true;\n } else if (splitScreenExp.isAccountMatched && mode === 'signup') {\n /*\n * This case can only be hit when user changes his default selected country\n * DETAILS:\n * User should not be given an option to redirect to xoon on UL, when UL has\n * detected that the user has a matching member account and the token is\n * only eligible for signup.\n * HOW TO HIT THIS CASE:\n * So, when user lands on xoon with a matching member account on UL, and the\n * token is eligible for optional signup, we show forced guest - mode=guestonly\n * But, when user changes his default selected country to a different country,\n * and the new country FGA rule says the token is eligible for forced signup,\n * then we need to show a specific error message to user.\n */\n\n _logger.$logger.info('checkout_fpti', {\n from: mode,\n to: 'process_change_cntry',\n int_error_code: '0',\n int_error_description: 'FGA_splitscreen_warning_msg_shown'\n });\n\n ssFlags.showSplitScreenFGAWarning = true;\n } else {\n ssFlags.showSplitScreenExp = true;\n ssFlags.prefillEmailFromCookie = true;\n }\n\n return ssFlags;\n};\n\nexports.upopConfirmButtonTextKey = upopConfirmButtonTextKey;\nexports.submitButtonTextKey = submitButtonTextKey;\nexports.getSplitScreenFlags = getSplitScreenFlags;\n\n\n_logger.$logger;\n\n_commonLib.SplitScreen;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-guest-components/src/guest/lib/pageProps.js\n// module id = ./components/xo-guest-components/src/guest/lib/pageProps.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 _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// ./components/xo-guest-components/src/guest/nationality/directive.js\n// module id = ./components/xo-guest-components/src/guest/nationality/directive.js\n// module chunks = 0","module.exports = \"
      \\n \\n \\n
      \"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-guest-components/src/guest/nationality/template.html\n// module id = ./components/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/checkout/index');\n\nvar _index4 = require('xo-models/src/profilemanagement/index');\n\nvar _index5 = require('xo-models/src/frs/index');\n\nvar _logger = require('xo-beaver/dist/logger');\n\nvar _uiRouter = require('uiRouter');\n\nvar _index6 = 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\nvar _commonLib = require('../lib/commonLib');\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: _index3.$CheckoutPayeeModel.instance(this.token).retrieve(),\n checkoutAppData: _index3.$CheckoutAppDataModel.instance(this.token).retrieve(),\n checkoutCart: _index3.$CheckoutCartModel.instance(this.token).retrieve(),\n flowEligibility: _index3.$FlowEligibilityModel.instance(this.token).retrieve()\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 isRP: models.checkoutCart.get('billing.type') === 'RECURRING_PAYMENTS',\n showBAContent: models.checkoutCart.isBilling() && !models.checkoutCart.isWalletTokenization()\n };\n\n Object.assign(_this.flags, flowFLags);\n _this.flags.flowName = flowFLags.isEcFlow ? 'ec' : 'wps';\n\n return _index4.$MerchantPreferenceModel.instance(id).retrieve().then(function (merchantPreferences) {\n _this.flags.merchantPreferences = merchantPreferences;\n });\n });\n },\n experiments: function experiments() {\n var experiment = 'xo_xoonboarding_dcc_';\n var pilotCountries = ['US', 'GB', 'CA', 'AU'];\n\n if (pilotCountries.includes(_index.$locale.country)) {\n experiment += 'pilot';\n } else if (_index.$config.regions.EMEA.includes(_index.$locale.country)) {\n experiment += 'emea';\n } else {\n experiment += 'row';\n }\n\n return {\n optionalSignupContent: (0, _index.$pxp)('xoon_optional_signup_content_change', { 'ctx.COUNTRY': _index.$locale.country }, '(xoon_optional_signup_content_change_)(.*)'),\n dccEligibility: (0, _index.$pxp)(experiment, { 'ctx.COUNTRY': _index.$locale.country }, experiment + '_treatment')\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 var splitScreenExp = _this2.splitScreenExp.isAccountMatched;\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 (!splitScreenExp && !wpsAutoreturnPdtEnabled && !ecSignupWalletTokenization && (_this2.flags.isWpsFlow || _this2.flags.isEcFlow)) {\n var pageName = _pxpExperimentConstants2['default'].test['frsPageName'][_this2.flags.flowName][_this2.mode];\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 this.splitScreenExp = _commonLib.SplitScreen.getSplitScreenExperience();\n },\n populate: function populate() {\n var _this3 = this;\n\n this.showBillingAgreementText = this.flags.showBAContent && !this.flags.isRP && !this.flags.isWpsSubscription;\n this.showRpAgreementText = this.flags.showBAContent && (this.flags.isRP || this.flags.isWpsSubscription);\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.showSplitScreenExp && !_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 };\n\n this.baContentKey = (0, _contentKeys.getBAContentKey)(contentOpts);\n this.rpContentKey = (0, _contentKeys.getRPContentKey)(contentOpts);\n\n var setDCCEligibilityFlag = function setDCCEligibilityFlag() {\n if (_this3.mode !== 'signup') {\n var _experiments$dccEligi = _this3.experiments.dccEligibility;\n _experiments$dccEligi = _experiments$dccEligi === undefined ? {} : _experiments$dccEligi;\n var treatment_name = _experiments$dccEligi.treatment_name;\n\n\n _this3.flags.dccCountryEligibility = treatment_name;\n }\n };\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 && !_this3.flags.isInvoiceFlow) {\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 if (_this3.splitScreenExp.isAccountMatched) {\n _logger.$logger.info('wps_interstitial_not_eligible_splitscreen_account_matched');\n return;\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 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 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 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 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 _index5.$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 _this3.frsContentKeys = treatmentContentKeys ? treatmentContentKeys : {};\n }\n }\n });\n }\n };\n\n var setSplitScreenGuestOnlyEligibility = function setSplitScreenGuestOnlyEligibility() {\n if (_this3.mode === 'guest' && _this3.flags.isSplitScreenUserChoseGuest) {\n _logger.$logger.info('splitscreen_user_chose_guest_on_ul_page_xoon_guest_only_eligible');\n _this3.mode = 'guestonly';\n }\n };\n\n var setFlagsPostFlowEligibility = function setFlagsPostFlowEligibility() {\n var trackingModes = ['guest', 'guestonly'];\n _this3.flags.track_submit_transition = trackingModes.includes(_this3.mode) ? 'guest_xo' : 'signup';\n\n checkWPSInterstitialEligibility();\n setDCCEligibilityFlag();\n setOptionalSignupPromotionContent();\n setSplitScreenGuestOnlyEligibility();\n\n // POMA - Passwordless Onboarding of Member Accounts\n if (_this3.mode === 'guest' && _index.$locale.country === 'US' && !_index6.$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.$CheckoutAppDataModel;\n\n_index3.$CheckoutPayeeModel;\n\n_index3.$CheckoutCartModel;\n\n_index3.$FlowEligibilityModel;\n\n_index4.$MerchantPreferenceModel;\n\n_index5.$FreeReturnShippingApplicabilityModel;\n\n_logger.$logger;\n\n_uiRouter.$state;\n\n_index6.$DeviceInfo;\n\n_contentKeys.getBAContentKey;\n\n_contentKeys.getRPContentKey;\n\n_commonLib.SplitScreen;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-guest-components/src/guest/onboardOptions/directive.js\n// module id = ./components/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: true\n },\n onboard: {\n type: 'var',\n required: true\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 lifecycle: {\n enter: function enter() {\n this.locale = _squid.$locale;\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;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-guest-components/src/guest/onboardOptions/guest/directive.js\n// module id = ./components/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
      {{ content('largeScreenAccountCreation.agrementError') }}
      \\n \\n \\n
      \\n
      \\n
      {{ content('largeScreenAccountCreation.agrementError') }}
      \\n \\n \\n
      \\n
      \\n
      \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-guest-components/src/guest/onboardOptions/guest/template.html\n// module id = ./components/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 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 var GDPRpxpTreatment = arguments[2];\n\n if (isGDPRCountry) {\n // We need this check after isGDPRCountry check, as pxp is not\n // having in-context rule to handle country settings\n return GDPRpxpTreatment.indexOf('control') === -1;\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 var GDPRpxpTreatment = arguments[2];\n\n if (isGDPRCountry) {\n // We need to check only for 'treatment' as other two variants\n // 'force_GDPR' and 'control' do not display the checkbox to users\n if (GDPRpxpTreatment.indexOf('treatment_a') > -1) {\n return 'signupTerms.agreeMarketingV1';\n } else if (GDPRpxpTreatment.indexOf('treatment_b') > -1) {\n return 'signupTerms.agreeMarketingV2';\n }\n }\n\n // GDPR config overrides all country specific config\n return 'signupTerms.agreeMarketing';\n};\n\nvar getSignupTermsContentKey = function getSignupTermsContentKey(_ref) {\n var _ref$country = _ref.country,\n country = _ref$country === undefined ? _squid.$locale.country : _ref$country,\n isUnbranded = _ref.isUnbranded,\n fiMode = _ref.fiMode,\n isGDPRCountry = _ref.isGDPRCountry,\n GDPRpxpTreatment = _ref.GDPRTermsAndMarketingTreatment;\n\n\n if (country === 'US') {\n return 'signupTerms.signupTCPA3';\n }\n\n // GDPR pxp treatment check\n if (isGDPRCountry && GDPRpxpTreatment.indexOf('treatment') > -1) {\n return 'signupTerms.GDPRAgreeTerms';\n }\n\n if (isUnbranded) {\n return fiMode === 'bank' ? 'signupTerms.signupBankUnBranded' : 'signupTerms.signupC';\n }\n\n return fiMode === 'bank' ? 'signupTerms.signupBank' : '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// ./components/xo-guest-components/src/guest/onboardOptions/lib/helper.js\n// module id = ./components/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 // refer to config.GDPR for countries list\n GDPRTermsAndMarketing: (0, _index.$pxp)('xo_xoon_GDPR_terms_marketing_checkbox', { 'ctx.COUNTRY': _index.$locale.country }, '(xo_xoon_GDPR_terms_marketing_checkbox_)(.*)'),\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 GDPRTermsAndMarketingTreatment = _index.$util.getProperty(this.experiments, 'GDPRTermsAndMarketing.treatment_name', { 'default': '' });\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, GDPRTermsAndMarketingTreatment);\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 if (!this.showMarketingOptin) {\n this.onboard.marketingOptin = true;\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, GDPRTermsAndMarketingTreatment);\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({\n country: _this.locale.country,\n isUnbranded: _this.isUnbranded,\n fiMode: _this.onboard.fiMode,\n isGDPRCountry: isGDPRCountry,\n GDPRTermsAndMarketingTreatment: GDPRTermsAndMarketingTreatment\n });\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 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_index.$util;\n\n_helper.signupLib;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-guest-components/src/guest/onboardOptions/signup/directive.js\n// module id = ./components/xo-guest-components/src/guest/onboardOptions/signup/directive.js\n// module chunks = 0","module.exports = \"
      \\n
      \\n \\n
      \\n
      \\n {{ onboard.user.email }}\\n \\n \\n\\n \\n
      \\n \\n \\n \\n \\n \\n \\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// ./components/xo-guest-components/src/guest/onboardOptions/signup/template.html\n// module id = ./components/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

      {{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\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-guest-components/src/guest/onboardOptions/template.html\n// module id = ./components/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: true\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 if (this.singlePassword) {\n if (focused) {\n this.showPasswordTextToggleLink = true;\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 for (var i = 0; i < len - 3; i++) {\n if (sequences.indexOf(value.substr(i, 4)) > -1) {\n return false;\n }\n }\n return true;\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 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);\n passwordInputScope.setScopeProp('restrictionFourSequence', viewValue.length > 3 && !fourSequence(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'));\n\n ngModel.$setValidity('password', requirements && restrictions);\n passwordInputScope.setScopeProp('passwordToolTip', requirements && restrictions ? 'hide' : 'show');\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 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// ./components/xo-guest-components/src/guest/passwordInput/directive.js\n// module id = ./components/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
      \\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// ./components/xo-guest-components/src/guest/passwordInput/template.html\n// module id = ./components/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// ./components/xo-guest-components/src/guest/redirectingFromXoonWarning/directive.js\n// module id = ./components/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// ./components/xo-guest-components/src/guest/redirectingFromXoonWarning/template.html\n// module id = ./components/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: true\n },\n billingAddress: {\n type: 'var',\n required: true\n },\n shippingAddress: {\n type: 'var',\n required: true\n },\n isShippingSameAsBilling: {\n type: 'var',\n required: true\n },\n showShipping: {\n type: 'var',\n required: false\n },\n buttonParams: {\n type: 'var',\n required: true\n },\n updatePageLevelErrorMessage: {\n type: 'var',\n required: false\n },\n flags: {\n type: 'var',\n required: true\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 Object.keys(patchableAmountEntities).forEach(function (key) {\n var detail = patchableAmountEntities[key];\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 newTotal += difference;\n });\n amounts.total = newTotal.toFixed(decimalDigits);\n Object.keys(constantAmountEntities).forEach(function (key) {\n var detail = constantAmountEntities[key];\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 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 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 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 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 _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 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 _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 _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 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 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 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 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 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 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 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 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 amount = (parseInt(charge.shipping_charge.shipping_amount.value, 10) / 100).toFixed(2);\n\n var currencyCode = charge.shipping_charge.shipping_amount.currency_code;\n\n var formattedAmount = (0, _index.formatCurrency)(amount, currencyCode);\n\n var 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 displayCurrency = shippingCurrency;\n\n var displayShippingDeliveryTime = prefix(shippingDeliveryTime, ' \\\\n ');\n\n // Format insurance if available\n var insuranceCurrency = '';\n if (charge.shipping_charge.insurance_amount) {\n var insuranceAmount = (parseInt(charge.shipping_charge.insurance_amount.value, 10) / 100).toFixed(2);\n\n var insuranceCurrencyCode = charge.shipping_charge.insurance_amount.currency_code;\n\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: displayCurrency,\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 _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 _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 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 taxAmt = void 0,\n insuranceAmt = void 0,\n methodType = void 0;\n // SnT service always returns FALLBACK response when no_shipping = 1\n if (_this.response.shipping_options_source === 'FALLBACK' && !isNaN(_this.defaultFallbackOptionIndex)) {\n var defaultOption = _this.fallbackShippingOptions[_this.defaultFallbackOptionIndex];\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.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.merchantId });\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 applicableShippingAmt = safeConvert(_this.response.charges[0].shipping_charge.shipping_amount.value);\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.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 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 var merchant = this.models.checkoutAppData && this.models.checkoutAppData.merchant;\n this.merchantId = merchant.brand_name || merchant.merchant_name || merchant.merchant_email;\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// ./components/xo-guest-components/src/guest/select-shipping-method/directive.js\n// module id = ./components/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', 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 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 $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 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 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// ./components/xo-guest-components/src/guest/select-shipping-method/shipping-method-dropdown/directive.js\n// module id = ./components/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// ./components/xo-guest-components/src/guest/select-shipping-method/template.html\n// module id = ./components/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 _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// ./components/xo-guest-components/src/guest/sepa/directive.js\n// module id = ./components/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// ./components/xo-guest-components/src/guest/sepa/template.html\n// module id = ./components/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// ./components/xo-guest-components/src/guest/sticky.js\n// module id = ./components/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

        {{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

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

        \\n

        \\n \\n \\n
        \\n\\n \\n\\n
        \\n
        \\n {{ content('billingAgreement.invoicingRegEMsg', {merchantName: merchant.brand_name || merchant.merchant_email, amountInInvCurrency: amountInInvCurrency}) }}\\n
        \\n
        \\n {{ content('billingAgreement.invoicingRegEMsgWithCurrConversion', {amountInPayerCurrency: amountInPayerCurrency, merchantName: merchant.brand_name || merchant.merchant_email, 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// WEBPACK FOOTER\n// ./components/xo-guest-components/src/guest/template.html\n// module id = ./components/xo-guest-components/src/guest/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: true\n },\n doneFn: {\n type: 'var',\n required: true\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// ./components/xo-guest-components/src/guest/travelRuleLightbox/directive.js\n// module id = ./components/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// ./components/xo-guest-components/src/guest/travelRuleLightbox/template.html\n// module id = ./components/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 signupSplitScreen: 'splitScreenExp.signupOnboardTitle',\n guestSplitScreen: defaultGuestTitleContentKey,\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};\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 signupSplitScreen: 'common.buyerProtectionSignup',\n guestSplitScreen: defaultGuestTitlePropsContentKey,\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};\n\nexports.titleTreatmentKeyToContentKeyMapping = titleTreatmentKeyToContentKeyMapping;\nexports.titlePropsTreatmentKeyToContentKeyMapping = titlePropsTreatmentKeyToContentKeyMapping;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-guest-components/src/guest/xoonHeader/constants.js\n// module id = ./components/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 };\n },\n experiments: function experiments() {\n return {\n showEmailCheckInfoBox: (0, _squid.$pxp)('xo_split_screen_header_email_change', { 'ctx.COUNTRY': _squid.$locale.country }, 'xo_split_screen_header_email_change_treatment_b'),\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 },\n\n lifecycle: {\n enter: function enter() {\n var loginRedirectUrl = (0, _squid.$getRedirectUrl)('hermes', {\n hermesLoginRedirect: 'xoon'\n });\n\n this.locale = _squid.$locale;\n this.currentCountryName = _squid.$util.getProperty(this.locale, 'metadata.localization.countryName', { 'default': this.locale.country });\n\n // email check information message - variant 2 on split screen exp\n // exp name - xo_split_screen_header_email_change\n this.emailCheckInfo = {\n msgKeys: ['splitScreenExp.changeEmailInfo'],\n type: 'info'\n };\n\n /*\n * This key is valid in Country Change case\n * Country 1 config - Optional signup - UL found a account match in splitscreen\n * In Country 1, user sees forced guest as UL found a matching account for\n * user's account (As part of split screen account match)\n *\n * NOW USER CHANGE COUNTRY\n *\n * Country 2 config - Forced signup - UL already found an account match in splitscreen\n * In country 2, as we have already found a matching account for user entered\n * email address in UL Split Screen flow, we want to show a specific warning message\n * to user, as the email they entered in split screen first page, already has a\n * member account\n */\n this.splitScreenFGAWarningMsg = {\n msgKeys: ['splitScreenExp.FGAWarningMsg'],\n type: 'warning',\n compileWith: {\n href: loginRedirectUrl\n }\n };\n },\n populate: function populate() {\n var _this = this;\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) || titleSubtitleContentExpTreatment || _this.props.mode;\n var pageTitlePropsFlowContextKey = (0, _lib.getPageTitlePropsContextKey)(_this.models, _this.subject) || 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 setSplitScreenPXPFlags = function setSplitScreenPXPFlags() {\n\n // Set splitscreen title and subtitle content key\n _this.pageTitleContentKey = _constants.titleTreatmentKeyToContentKeyMapping[_this.props.mode + 'SplitScreen'] || _this.props.mode;\n _this.pageTitlePropsContentKey = _constants.titlePropsTreatmentKeyToContentKeyMapping[_this.props.mode + 'SplitScreen'] || _this.props.mode;\n\n if (_this.experiments.showEmailCheckInfoBox) {\n // This enables diplay of a message to user right above email id\n // about checking their email address before proceeding further\n _this.showEmailCheckInfoBox = true;\n }\n };\n\n var setInitialFlags = function setInitialFlags() {\n if (_this.flags.showSplitScreenExp) {\n setSplitScreenPXPFlags();\n } else {\n setTitleSubtitleContentAndFlags();\n }\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\n_squid.$Component;\n\n_squid.$locale;\n\n_squid.$getRedirectUrl;\n\n_squid.$pxp;\n\n_squid.$util;\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_index3.$CheckoutInputDataModel;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-guest-components/src/guest/xoonHeader/directive.js\n// module id = ./components/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) {\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 (mode === 'guest') {\n return 'guest';\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) {\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\nexports.getPageTitleContextKey = getPageTitleContextKey;\nexports.getPageTitlePropsContextKey = getPageTitlePropsContextKey;\n\n\n_logger.$logger;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-guest-components/src/guest/xoonHeader/lib.js\n// module id = ./components/xo-guest-components/src/guest/xoonHeader/lib.js\n// module chunks = 0","module.exports = \"
        \\n \\n\\n

        \\n

        \\n\\n \\n\\n
        \\n {{ user.email }}\\n \\n
        \\n
        \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-guest-components/src/guest/xoonHeader/template.html\n// module id = ./components/xo-guest-components/src/guest/xoonHeader/template.html\n// module chunks = 0","\n\nexports.__esModule = true;\n/**\n * Returns the appropriate billing agreement xo-content key.\n *\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\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 keySuffix = type + 'Sticky' + 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\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-guest-components/src/lib/contentKeys.js\n// module id = ./components/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\n var protocol = _angular.$window.location.protocol + '//';\n var stageUrl = _squid.$meta.stage || _angular.$window.location.hostname;\n var subscriptionReturnUri = _squid.$config.urls.wpsSubscriptionReturnUrl;\n var params = {\n token: _squid.$meta.token,\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// ./components/xo-guest-components/src/lib/util.js\n// module id = ./components/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: function controller($scope) {}\n };\n });\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-guest-components/src/login-button/directive.js\n// module id = ./components/xo-guest-components/src/login-button/directive.js\n// module chunks = 0","\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', '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'], 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', 'xomodel.onboard', 'xo-login-button.directive', 'locale.helper', 'xomodel.address', 'xomodel.checkout', 'xo-ui-utils.directive', 'xo-accessibility.directive']).directive('formErrorDetect', function () {\n\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\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\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\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 });\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: function controller($scope, $rootScope, $populate, $state, $util, $locale, $feature, $q, $CheckoutAppDataModel, $ShippingRuleSummaryModel, $CheckoutPayeeModel, $CheckoutCartModel, $BillingAddressModel, $ShippingAddressModel, $PrefillAddressModel, $pxpFactors, $config, $dispatch, $localeHelper, $location, $meta) {\n\n $scope.locale = $locale;\n $scope.formattedValues = {};\n $scope.backUri = 'checkout.multistepsignup.multistepsignupaddcard';\n $scope.normalize = $feature('addressNormalization', false, $locale.country);\n $scope.componentsFlag = util.componentsMap($locale.country);\n\n $scope.onCurrencyConversionDone = function () {\n $state.go($scope.backUri);\n };\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 (newValue) {\n $scope.formattedValues.postalCode = util.maskingUtil.maskZip(newValue);\n $scope.multistepSignupModel.onboard.billing_address.postal_code = $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 $populate($scope, {\n checkoutAppData: $CheckoutAppDataModel.instance($scope.token),\n payee: $CheckoutPayeeModel.instance($scope.token),\n checkoutCart: $CheckoutCartModel.instance($scope.token)\n }).then(function () {\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\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-guest-components/src/multistep-signup/addCard/directive.js\n// module id = ./components/xo-guest-components/src/multistep-signup/addCard/directive.js\n// module chunks = 0","\n\ndefine(['angular', 'squid/index', './directive', 'pages/xo-sidebar/route', '../../guest/currencyConversion/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', 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 name: '$CurrencyConversionOptionsRoute',\n attributes: {\n token: 'token',\n 'parent-model': 'multistepSignupModel',\n 'is-pre-plan': 'true',\n 'done-fn': 'onCurrencyConversionDone'\n }\n }]\n });\n });\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-guest-components/src/multistep-signup/addCard/route.js\n// module id = ./components/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: function controller($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 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// ./components/xo-guest-components/src/multistep-signup/addShipping/directive.js\n// module id = ./components/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', 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// ./components/xo-guest-components/src/multistep-signup/addShipping/route.js\n// module id = ./components/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', function ($rootScope) {\n\n return {\n template: template,\n\n scope: {\n id: '=?',\n address: '=?',\n doneFn: '=?'\n },\n\n controller: function controller($scope, $locale, $config) {}\n };\n });\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-guest-components/src/multistep-signup/addressNormalization/directive.js\n// module id = ./components/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', 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// ./components/xo-guest-components/src/multistep-signup/addressNormalization/route.js\n// module id = ./components/xo-guest-components/src/multistep-signup/addressNormalization/route.js\n// module chunks = 0","\n\nvar _util = require('../../lib/util');\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', function ($MultistepSignupModel, $CheckoutSessionModel, $CheckoutAppDataModel, $CheckoutPayeeModel, $InventoryModel, $ShoppingCartModel, $CheckoutCartModel, $rootScope, $state, $config, $locale, $logger, $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.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 return shoppingCartModel.action('cartCheckedOut', {\n data: {\n payee_email: checkoutAppData.get('merchant.merchant_email')\n },\n success: function success(result) {\n $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.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 DEFAULT: handlePaymentContingencies(checkoutCart, payee, 'DEFAULT')\n },\n error: function error(err) {\n $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 multistepSignupModel.resolve_3ds_data = {\n cc_id: checkoutSession.get('resolve_3ds.ccId'),\n flow_id: 'HERMES',\n merchant_id: payee.get('merchant.id'),\n merchant_country_code: checkoutAppData.get('merchant.merchant_country'),\n transaction_amount_currency: checkoutCart.get('purchase.amounts.total.currency_code'),\n transaction_amount_value: checkoutCart.get('purchase.amounts.total.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.info('setStickyFI Failed', err);\n })['finally'](function () {\n return checkoutSession.action('authorize', {\n success: function success() {\n if (checkoutAppData.is_wps_subscription_flow()) {\n (0, _util.redirectToSubscriptionFinalRoute)(multistepSignupModel.flags.mode);\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 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 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 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 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.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.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 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 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 $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 Object.keys(errors).forEach(function (key, index, array) {\n\n var errorCategory = errors[key];\n // errorCategory sanity checks\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 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.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.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 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.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\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-guest-components/src/multistep-signup/apiCalls/factory.js\n// module id = ./components/xo-guest-components/src/multistep-signup/apiCalls/factory.js\n// module chunks = 0","\n\nvar _contentKeys = require('../../lib/contentKeys');\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: function controller($scope, $rootScope, $populate, $state, $util, $locale, $ShippingAddressModel, $logger, $CheckoutSessionModel, $CheckoutAppDataModel, $CheckoutCartModel, $UserInfoModel, $dispatch, $pxpFactors, $config, $MultistepApiCalls, $pxp) {\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\n if ($scope.checkoutAppData && $scope.checkoutAppData.merchant) {\n var merchant = $scope.checkoutAppData.merchant;\n $scope.merchant = merchant.brand_name || merchant.merchant_name || merchant.merchant_email;\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 return tmp.charAt(0).toUpperCase() + tmp.slice(1);\n }\n\n var contentOpts = {\n cart: $scope.checkoutCart,\n appData: $scope.checkoutAppData\n };\n\n $scope.isWpsSubscription = $scope.checkoutAppData.is_wps_subscription_flow();\n $scope.baContentKey = (0, _contentKeys.getBAContentKey)(contentOpts);\n $scope.rpContentKey = (0, _contentKeys.getRPContentKey)(contentOpts);\n\n $scope.fiName = formatFiName($scope.multistepSignupModel.onboard.card.type);\n $scope.fiFormatLast4 = formatFiLast4($scope.multistepSignupModel.onboard.card.number);\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 $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 (!$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 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 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 if ($scope.multistepSignupModel.onboard.user.countryOfResidence === 'RU') {\n validInput = isNameCyrillic();\n }\n\n if (!util.validateLegalAge($scope.multistepSignupModel.onboard.user.dob_month, $scope.multistepSignupModel.onboard.user.dob_day, $scope.multistepSignupModel.onboard.user.dob_year)) {\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.getBAContentKey;\n\n_contentKeys.getRPContentKey;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-guest-components/src/multistep-signup/createAccount/directive.js\n// module id = ./components/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', 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// ./components/xo-guest-components/src/multistep-signup/createAccount/route.js\n// module id = ./components/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', function ($rootScope) {\n\n return {\n template: template,\n\n scope: {\n token: '=?',\n parentCallbacks: '=?',\n buttonParams: '=?'\n },\n\n controller: function controller($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 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 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 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 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// ./components/xo-guest-components/src/multistep-signup/directive.js\n// module id = ./components/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', function ($Model) {\n return $Model.extend('MultistepSignupModel', {});\n });\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-guest-components/src/multistep-signup/index.js\n// module id = ./components/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 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 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 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// ./components/xo-guest-components/src/multistep-signup/lib/util.js\n// module id = ./components/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', 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// ./components/xo-guest-components/src/multistep-signup/route.js\n// module id = ./components/xo-guest-components/src/multistep-signup/route.js\n// module chunks = 0","\n\ndefine(['angular', 'squid/index', './helper', 'xo-models/src/checkout/index', 'xo-models/src/auth/index', 'xo-models/src/app/index', 'xo-models/src/onboard/index'], function (angular, squid) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n angular.module('locale.resolvers.country', ['squid', 'locale.helper', 'xomodel.checkout', 'xomodel.auth', 'xomodel.app', 'xomodel.onboard']).factory('$CountryResolvers', function ($q, $rootScope, $populate, $util, $meta, $localeHelper, $locale, $AuthModel, $CheckoutCartModel, $AppDataModel, $CheckoutAppDataModel, $GuestUpgradeModel) {\n\n return {\n\n viaCountryPreference: {\n method: function method() {\n return $locale.chosenCountry;\n }\n },\n\n viaLocaleTestUrlParam: {\n desc: 'For non-LIVE test, read from locale.test url param, e.g. http://localhost.com:3000/?locale.test=fr_FR',\n method: function method() {\n var locale = $util.param('locale.test');\n\n if (locale) {\n return $localeHelper.normalizeLocale(locale).country;\n }\n }\n },\n\n viaMerchantParam: {\n desc: 'As part of url merchants can pass the locale.x=en_FR or country.x=FR. Here we extract the country param',\n method: function method() {\n var country = $util.param('country.x');\n\n if (country) {\n return country;\n }\n\n var locale = $util.param('locale.x');\n\n return $localeHelper.normalizeLocale(locale).country;\n }\n },\n\n viaUserProfile: {\n desc: 'From AuthModel. Country comes as \"US\", \"FR\" etc. ',\n method: function method() {\n var data = {};\n\n return $populate(data, {\n auth: $AuthModel.instance()\n }).then(function () {\n return data.auth.country;\n });\n }\n },\n\n viaCheckoutSession: {\n desc: 'From Merchant locale in CheckoutAppDataModel. merchant_locale comes as en_US etc.',\n method: function method() {\n // check before creating $CheckoutAppDataModel\n if (!$rootScope.token) {\n return;\n }\n\n var data = {};\n\n return $populate(data, {\n checkoutAppData: $CheckoutAppDataModel.instance($rootScope.token)\n }).then(function () {\n var merchant_locale = data.checkoutAppData.get('merchant.merchant_locale');\n\n if (!merchant_locale) {\n return;\n }\n\n if (merchant_locale.match(/^\\w{2}_\\w{2}$/)) {\n return $localeHelper.normalizeLocale(merchant_locale).country;\n }\n\n return merchant_locale;\n });\n }\n },\n\n viaCheckoutBilling: {\n desc: 'From Merchant passed billingAddress in CheckoutCart.',\n method: function method() {\n // check before creating $CheckoutCartModel\n if (!$rootScope.token) {\n return;\n }\n\n var data = {};\n\n return $populate(data, {\n checkoutCart: $CheckoutCartModel.instance($rootScope.token)\n }).then(function () {\n return data.checkoutCart.get('payer_info.billing_address.country_code');\n });\n }\n },\n\n viaCheckoutShipping: {\n method: function method() {\n // check before creating $CheckoutCartModel\n if (!$rootScope.token) {\n return;\n }\n\n var data = {};\n\n return $populate(data, {\n checkoutCart: $CheckoutCartModel.instance($rootScope.token)\n }).then(function () {\n return data.checkoutCart.get('purchase.shipping_address.country_code');\n });\n }\n },\n\n viaMerchantCountry: {\n method: function method() {\n // check before creating $CheckoutAppDataModel\n if (!$rootScope.token) {\n return;\n }\n\n var data = {};\n\n return $populate(data, {\n checkoutAppData: $CheckoutAppDataModel.instance($rootScope.token)\n }).then(function () {\n return data.checkoutAppData.get('merchant.merchant_country');\n });\n }\n },\n\n viaGuestAccountCountry: {\n desc: 'From Guest account legal country in ISO country code format (e.g. US, AU)',\n method: function method() {\n // only perform this resolver for guest-upgrade flow (has data param)\n if (!$util.param('data')) {\n return;\n }\n\n return $GuestUpgradeModel.instance().retrieve({\n error: angular.noop,\n transientError: true\n }).then(function (model) {\n return model.get('user.country');\n });\n }\n },\n\n viaCountryCoBrand: {\n method: function method() {\n return $AppDataModel.instance($rootScope.token).retrieve().then(function (appData) {\n return appData.get('locale_info.cobrand');\n });\n }\n },\n\n viaLangCookie: {\n method: function method() {\n return $AppDataModel.instance($rootScope.token).retrieve().then(function (appData) {\n return appData.get('locale_info.lang_cookie.country');\n });\n }\n },\n\n viaBrowserPref: {\n method: function method() {\n return $AppDataModel.instance($rootScope.token).retrieve().then(function (appData) {\n return appData.get('locale_info.browser_lang.country');\n });\n }\n },\n\n viaIP: {\n method: function method() {\n return $meta.ipcountry;\n }\n },\n\n viaDefault: {\n method: function method() {\n return 'US';\n }\n }\n\n };\n });\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-locale/dist/country.js\n// module id = ./components/xo-locale/dist/country.js\n// module chunks = 0","\n\ndefine(['angular', 'squid/index'], function (angular) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n angular.module('locale.helper', ['squid']).factory('$localeHelper', function () {\n return {\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;\n var language;\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 });\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-locale/dist/helper.js\n// module id = ./components/xo-locale/dist/helper.js\n// module chunks = 0","\n\ndefine(['angular', 'squid/index', 'xo-beaver/dist/logger', './resolvers', './language', './helper'], function (angular, squid) {\n\n return angular.module('xolocale', ['squid', 'beaver', 'locale.resolvers', 'locale.resolvers.language', 'locale.helper']);\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-locale/dist/index.js\n// module id = ./components/xo-locale/dist/index.js\n// module chunks = 0","\n\ndefine(['angular', 'squid/index', './helper', 'xo-models/src/checkout/index', 'xo-models/src/auth/index', 'xo-models/src/app/index'], function (angular, squid) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n angular.module('locale.resolvers.language', ['squid', 'locale.helper', 'xomodel.checkout', 'xomodel.auth', 'xomodel.app']).factory('$LanguageResolvers', function ($q, $rootScope, $populate, $util, $AuthModel, $config, $locale, $localeHelper, $CheckoutCartModel, $AppDataModel, $CheckoutAppDataModel) {\n\n var browserPrefCountries = ['US', 'GB', 'CA'];\n\n return {\n viaLanguagePreference: {\n method: function method(country) {\n return $locale.chosenLang;\n }\n },\n\n viaLocaleTestUrlParam: {\n desc: 'For non-LIVE test, read from locale.test url param, e.g. http://localhost.com:3000/?locale.test=fr_FR',\n method: function method() {\n var locale = $util.param('locale.test');\n\n if (locale) {\n return $localeHelper.normalizeLocale(locale).language;\n }\n }\n },\n\n viaMerchantParam: {\n desc: 'As part of url merchants can pass the locale.x=en_FR, were we extract the language param',\n method: function method() {\n var locale = $util.param('locale.x');\n\n if (locale) {\n return $localeHelper.normalizeLocale(locale).language;\n }\n }\n },\n\n viaUserProfile: {\n method: function method(country) {\n var data = {};\n\n return $populate(data, {\n auth: $AuthModel.instance()\n }).then(function () {\n var locale = $localeHelper.normalizeLocale(data.auth.language);\n\n return locale && locale.language;\n });\n }\n },\n\n viaMerchantLocale: {\n method: function method() {\n // check before creating $CheckoutAppDataModel\n if (!$rootScope.token) {\n return;\n }\n\n var data = {};\n\n return $populate(data, {\n checkoutAppData: $CheckoutAppDataModel.instance($rootScope.token)\n }).then(function () {\n var merchant_locale = data.checkoutAppData.get('merchant.merchant_locale');\n\n if (!merchant_locale) {\n return;\n }\n\n if (!merchant_locale.match(/^\\w{2}_\\w{2}$/)) {\n return;\n }\n\n return $localeHelper.normalizeLocale(merchant_locale && merchant_locale).language;\n });\n }\n },\n\n viaLangCookie: {\n method: function method(country) {\n return $AppDataModel.instance($rootScope.token).retrieve().then(function (appData) {\n var lang_cookie = appData.get('locale_info.lang_cookie', {});\n\n if (lang_cookie.country === country) {\n return lang_cookie.language;\n }\n });\n }\n },\n\n viaBrowserPref: {\n method: function method(country) {\n if (browserPrefCountries.indexOf(country) === -1) {\n return $q.when();\n }\n\n return $AppDataModel.instance($rootScope.token).retrieve().then(function (appData) {\n return appData.get('locale_info.browser_lang.language');\n });\n }\n },\n\n viaDefault: {\n method: function method(country) {\n return $config.supportedCountries[country][0];\n }\n }\n\n };\n });\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-locale/dist/language.js\n// module id = ./components/xo-locale/dist/language.js\n// module chunks = 0","\n\ndefine(['angular', 'squid/index', './country', './language'], function (angular, squid) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n angular.module('locale.resolvers', [// eslint-disable-line angular/no-service-method\n 'locale.resolvers.country', 'locale.resolvers.language']).service('$LocaleResolver', function ($locale, $Class, $util, $logger, $CountryResolvers, $LanguageResolvers, $config, $q) {\n\n var LocaleResolver = $Class.extend('LocaleResolver', {\n\n registerCountryResolver: function registerCountryResolver(name, resolver) {\n $CountryResolvers[name] = resolver;\n },\n\n registerLangResolver: function registerLangResolver(name, resolver) {\n $LanguageResolvers[name] = resolver;\n },\n\n resolvePromiseChain: function resolvePromiseChain(resolvers, validator, args) {\n\n var self = this;\n var promise = $q.when();\n var result;\n\n angular.forEach(resolvers, function (resolver) {\n\n promise = promise.then(function () {\n\n if (result) {\n return result;\n }\n\n return $q.when(resolver.method.apply(self, args || [])).then(function (resolved) {\n\n if (resolved && validator(resolved)) {\n result = {\n resolver: resolver.name,\n resolved: resolved\n };\n return result;\n }\n });\n }, angular.noop);\n });\n\n return promise;\n },\n\n resolveCountry: function resolveCountry() {\n\n var validator = function validator(country) {\n return Boolean(country && $config.supportedCountries[country]);\n };\n\n var resolvers = $util.map($config.locale.country.resolvers, function (name) {\n $CountryResolvers[name].name = name;\n return $CountryResolvers[name];\n });\n\n return this.resolvePromiseChain(resolvers, validator).then(function (resolved) {\n $logger.debug('resolve_country', {\n country: resolved.resolved,\n resolver: resolved.resolver\n });\n return resolved.resolved;\n });\n },\n\n resolveLanguage: function resolveLanguage(country) {\n\n var validator = function validator(language) {\n return Boolean($config.supportedCountries[country].indexOf(language) > -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// ./components/xo-locale/dist/resolvers.js\n// module id = ./components/xo-locale/dist/resolvers.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\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.onboarding.url.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 * Created by upigilam on 4/8/16.\n * UL handler is to exchange ST to RT exchanges.\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// ./components/xo-login-components/src/unified-login/ul.js\n// module id = ./components/xo-login-components/src/unified-login/ul.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('xomodel.address', ['squid']).factory('$AddressNormalizationModel', function ($Model, $Api) {\n return $Model.extend('AddressNormalizationModel', {\n api: new $Api({\n uri: '/api/address/normalize'\n })\n });\n }).factory('$PrefillAddressModel', function ($Model, $Api) {\n return $Model.extend('PrefillAddressModel', {\n api: new $Api({\n uri: '/api/address/prefill'\n })\n });\n }).factory('$ValidateAddressModel', function ($Model, $Api) {\n return $Model.extend('ValidateAddressModel', {\n api: new $Api({\n uri: '/api/address/validate'\n })\n });\n });\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-models/src/address/index.js\n// module id = ./components/xo-models/src/address/index.js\n// module chunks = 0","\n\nvar _squid = require('squid');\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('xomodel.app', ['squid']).factory('$TransactionEligibilityModel', function ($Model, $Api) {\n return $Model.extend('TransactionEligibilityModel', {\n api: new $Api({\n uri: '/api/eligibility/transaction/:id'\n })\n });\n }).factory('$BuyerEligibilityModel', function ($Model, $Api) {\n return $Model.extend('BuyerEligibilityModel', {\n api: new $Api({\n uri: '/api/eligibility/buyer/:id'\n }),\n\n invalidateOnLogout: true // invalidate this model when auth.logout() gets called\n });\n }).factory('$PXPModel', function ($Model, $Api) {\n return $Model.extend({\n api: new $Api({\n uri: '/api/pxp/:id'\n })\n });\n }).factory('$LocaleConfigModel', function ($Model, $Api) {\n return $Model.extend({\n api: new $Api({\n uri: '/api/localeConfig'\n })\n });\n }).factory('$AppDataModel', function ($Model, $Api) {\n return $Model.extend('AppDataModel', {\n api: new $Api({\n uri: '/api/app'\n }),\n\n isMobile: function isMobile() {\n return this.platform === 'mobile';\n }\n });\n }).factory('$MessengerIntegrationDataModel', function ($Model, $Api) {\n return $Model.extend('MessengerIntegrationDataModel', {\n api: new $Api({\n uri: '/api/messenger'\n })\n });\n }).factory('$TokenizedWalletEligibilityModel', function ($Model, $Api) {\n return $Model.extend('TokenizedWalletEligibilityModel', {\n api: new $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 }).factory('$TokenizedWalletInfoModel', function ($Model, $Api) {\n var _brandNames, _disclaimerLinks, _msbDisclaimerLinks;\n\n var subjectTypes = {\n SAMSUNG_PAY: 'Samsung',\n ANDROID_PAY: 'google'\n };\n\n var brandNames = (_brandNames = {}, _brandNames[subjectTypes.SAMSUNG_PAY] = 'Samsung Pay', _brandNames[subjectTypes.ANDROID_PAY] = 'Google Pay', _brandNames);\n\n // disclaimer links used on the *pay review page\n var disclaimerLinks = (_disclaimerLinks = {}, _disclaimerLinks[subjectTypes.SAMSUNG_PAY] = 'https://www.paypal.com/us/webapps/mpp/ua/ppsamsungpay-tnc', _disclaimerLinks[subjectTypes.ANDROID_PAY] = 'https://www.paypal.com/us/webapps/mpp/ua/ppandroidpay-tnc', _disclaimerLinks);\n\n // disclaimer links used on Msb offer popup\n var 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 return $Model.extend('TokenizedWalletInfoModel', {\n\n api: new $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 return disclaimerLinks[this.subject] || disclaimerLinks[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 }).factory('$TokenizedFundingCapabilitiesModel', function ($Model, $Api) {\n\n return $Model.extend('TokenizedFundingCapabilitiesModel', {\n\n api: new $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 }).factory('$TokenizedWalletPinModel', function ($Model, $Api) {\n return $Model.extend('TokenizedWalletPinModel', {\n api: new $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 }).factory('$TokenizedWalletMsbOfferModel', function ($Model, $Api) {\n return $Model.extend('TokenizedWalletMsbOfferModel', {\n api: new $Api({\n uri: '/api/msb/tokenizedWallet/:id'\n }),\n invalidateOnLogout: true\n });\n }).factory('$PXPBlacklist', function () {\n return {\n isMerchantBlacklisted: function isMerchantBlacklisted(merchantId) {\n return _squid.$config.pxpBlacklist && _squid.$config.pxpBlacklist.merchant && _squid.$config.pxpBlacklist.merchant.indexOf(merchantId) !== -1;\n }\n };\n });\n});\n\n_squid.$config;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-models/src/app/index.js\n// module id = ./components/xo-models/src/app/index.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$ULoginModel = exports.$AuthModel = exports.$AuthApi = undefined;\n\nvar _squid = require('squid');\n\nvar _logger = require('xo-beaver/dist/logger');\n\nvar _angular = require('angular');\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 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 // disallow_login_switch is used for Google Pay - acount linking to hide \"not you\" button (see xo-hercules/auth/outputMapper)\n return isAuthApiCall && !isConsumerApp && !redirectToHermesOn3DSDecline && !isUlReturnLoggedIn && !this.disallow_login_switch;\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 return this.logout().then(function () {\n return _this.redirectToLogin(reason);\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 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_squid.$Model;\n\n_squid.$Api;\n\n_squid.$util;\n\n_logger.$logger;\n\n_angular.$rootScope;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-models/src/auth/index.js\n// module id = ./components/xo-models/src/auth/index.js\n// module chunks = 0","\n\ndefine(['angular', 'squid/index', 'xo-beaver/dist/logger', 'xo-device-info/dist/index'], function (angular, squid) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n squid.module('xoAPayUtils', ['squid']).factory('$xoAPayUtils', function ($q, $logger, $DeviceInfo, $config, $http) {\n var _jwtToken = '';\n var _authenticated;\n\n // Call browser PaymentRequest API that returns a promise\n function 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.info('PAYMENT_REQUEST_NOT_SUPPORTED');\n }\n }\n\n function updateCookie(url, params) {\n $http({\n method: 'GET',\n url: url,\n params: params\n });\n }\n\n function isPaymentRequestAPISupported() {\n var currentVersionMatch = navigator.userAgent.match(/Chrome\\/([0-9]+)\\./i);\n\n return $DeviceInfo.isMobile() && window.navigator.vendor === 'Google Inc.' && 'PaymentRequest' in window && navigator.userAgent.match(/Android/i) && currentVersionMatch && Number(currentVersionMatch[1]) >= 58;\n }\n\n return {\n isAPayAPISupported: function isAPayAPISupported() {\n return isPaymentRequestAPISupported();\n },\n\n canMakeAPayPayment: function canMakeAPayPayment() {\n if (!isPaymentRequestAPISupported()) {\n return $q.resolve(false);\n }\n\n var paymentRequest = window.appPaymentRequest || createPaymentRequest();\n\n if (paymentRequest && paymentRequest.canMakePayment) {\n $logger.info('APAY_CHECK_CAN_MAKE_PAYMENT');\n $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.info('APAY_CAN_MAKE_PAYMENT');\n $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.info('APAY_CAN_NOT_MAKE_PAYMENT_NO_PAYMENT');\n $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.info('APAY_CAN_NOT_MAKE_PAYMENT_SOFT_DECLINE', {\n msg: err && err.message,\n name: err && err.name\n });\n\n $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 $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 $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 $q.resolve(false);\n }\n\n var paymentRequest = window.appPaymentRequest || createPaymentRequest();\n\n if (paymentRequest) {\n $logger.info('APAY_AUTHENTICATION_BEGIN');\n $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.info('APAY_AUTHENTICATION_SUCCEEDED');\n $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.info('APAY_AUTHENTICATION_FAILED', {\n msg: err && err.message,\n name: err && err.name\n });\n\n $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 $q.resolve(false);\n }\n },\n\n getAPayAuthToken: function getAPayAuthToken() {\n return _jwtToken;\n },\n\n setAPayCookie: function setAPayCookie(token) {\n if ($config.tokenizedWalletCookieURL) {\n updateCookie($config.tokenizedWalletCookieURL, {\n op: 'set',\n token: token\n });\n }\n },\n\n clearAPayCookie: function clearAPayCookie(token) {\n if ($config.tokenizedWalletCookieURL) {\n updateCookie($config.tokenizedWalletCookieURL, {\n op: 'clear',\n token: token\n });\n }\n },\n\n setOTAPayCookie: function setOTAPayCookie(token) {\n if ($config.tokenizedWalletCookieURL) {\n updateCookie($config.tokenizedWalletCookieURL, {\n op: 'setot',\n token: token\n });\n }\n }\n };\n });\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-models/src/auth/lib/xoAPayUtils.js\n// module id = ./components/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 $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 isBilling: function isBilling() {\n return Boolean(this.billing);\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 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 isInvoiceFlow: function isInvoiceFlow() {\n return Boolean(this.flags && this.flags.is_invoice_flow);\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 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(_ref) {\n var plan = _ref.plan,\n isPadToggleSelected = _ref.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 return _squid.$util.find(this.plans, function (plan) {\n return plan.primaryFs.isPreferred;\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// Map the data needed for the installmentsOptions endpoint\nvar serializeInstallmentsOptionsData = exports.serializeInstallmentsOptionsData = function serializeInstallmentsOptionsData(_ref2) {\n var merchant_country = _ref2.checkoutAppData.merchant.merchant_country,\n checkoutCart = _ref2.checkoutCart,\n country = _ref2.country,\n id = _ref2.payee.merchant.id,\n isMemberCredit = _ref2.isMemberCredit,\n cc = _ref2.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 api: new _squid.$Api({\n uri: '/api/checkout/:id/installmentOptions/',\n postAttempts: 2\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 return this.allowCardBackup;\n },\n getCheckoutSessionPlan: function getCheckoutSessionPlan() {\n return this.get('parent.fundingOptions.plans.0');\n },\n reevaluateEligibility: function reevaluateEligibility() {\n var _this2 = this;\n\n (0, _processorDecline.getProcessorDeclineRetryEligibility)(this.id, this.parent).then(function (eligibility) {\n _this2.allowCardBackup = eligibility;\n\n return eligibility;\n });\n },\n reset: function reset(forPlan) {\n var validBackups = (this.get('parent.fundingOptions.plans') || []).filter(function (p) {\n return p !== forPlan;\n });\n\n this.setPlan(validBackups[0], 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 = 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\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 },\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 return this.fundingOptions && this.fundingOptions.plans;\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 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 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});\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.$Model;\n\n_squid.$Api;\n\n_squid.$util;\n\n_squid.$config;\n\n_processorDecline.getProcessorDeclineRetryEligibility;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-models/src/checkout/index.js\n// module id = ./components/xo-models/src/checkout/index.js\n// module chunks = 0","\n\nvar _index = require('xo-device-info/dist/index');\n\nvar BILLING_ADDRESS_FORMAT = {\n DEFAULT: {\n ',': ', ',\n ' ': ' '\n },\n IL: {\n he: {\n ',': '‏, ‏',\n ' ': '‏ ‏'\n }\n }\n};\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('xomodel.fi', ['squid']).factory('$CardModel', function ($Model, $util) {\n return $Model.extend('CardModel', {\n\n serialize: function serialize() {\n\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 && $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 ? $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 }).factory('$AddCardModel', function ($Model, $Api, $CardModel) {\n return $Model.extend('AddCardModel', {\n\n api: new $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 }).factory('$UnavailableCardModel', function ($Model, $Api) {\n return $Model.extend('UnavailableCardModel', {\n\n api: new $Api({\n uri: '/api/fi/unavailable/card'\n })\n });\n }).factory('$CardTypesModel', function ($Model, $Api, $locale, $util, $feature) {\n return $Model.extend('CardTypesModel', {\n\n api: new $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 // QIWI is VISA cobranded card supported currently in Russia.\n if ($feature('qiwiCardSupported') && result.allowed && result.allowed.indexOf('VISA') > -1 && result.allowed.indexOf('QIWI') === -1) {\n result.allowed.push('QIWI');\n }\n return result;\n });\n },\n\n supportedNames: function supportedNames() {\n return $util.map(this.allowed, function (type) {\n return $locale.content.cardTypes[type];\n });\n }\n });\n }).factory('$BankModel', function ($Model) {\n return $Model.extend('BankModel', {\n\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 }).factory('$AddBankModel', function ($Model, $Api, $BankModel) {\n\n return $Model.extend('AddBankModel', {\n\n api: new $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 }).factory('$PreferredFi', function ($Model, $Api) {\n return $Model.extend('PreferredFi', {\n api: new $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 }).factory('$SepaModel', function ($Model, $Api) {\n return $Model.extend('SepaModel', {\n api: new $Api({\n uri: '/api/fi/bank'\n })\n });\n }).factory('$DeleteCardModel', function ($Model, $Api) {\n return $Model.extend('DeleteCardModel', {\n api: new $Api({\n uri: '/api/fi/card/:id/delete'\n })\n });\n }).factory('$AddBillingAddressModel', function ($Model, $Api) {\n return $Model.extend('AddBillingAddressModel', {\n api: new $Api({\n uri: '/api/fi/:instrumentid/addbillingaddress'\n })\n });\n }).factory('$BillingAddressModel', function ($Model, $Api, $config, $util, $locale) {\n return $Model.extend('BillingAddressModel', {\n api: new $Api({\n uri: '/api/fi/billingaddress/validate'\n }),\n\n format: function format() {\n\n var langConfig = (BILLING_ADDRESS_FORMAT[$locale.country] || {})[$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 $util.filter([this.line1, this.line2, this.city, this.state, this.country]).join(comma) + space + $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 }).factory('$CurrencyConversionModel', function ($Model, $Api) {\n return $Model.extend('$CurrencyConversionModel', {\n api: new $Api({\n uri: '/api/fi/currencyConversion'\n })\n });\n }).factory('$BillingAddressesModel', function ($Model, $BillingAddressModel, $Api, $config, $util) {\n return $Model.extend('BillingAddressesModel', {\n api: new $Api({\n uri: '/api/fi/billingaddress'\n }),\n\n onPopulate: function onPopulate() {\n this.addresses = this.children($BillingAddressModel, this.addresses);\n }\n });\n }).factory('$CardTypeFromBinModel', function ($Model, $Api) {\n return $Model.extend('CardTypeFromBinModel', {\n api: new $Api({\n uri: '/api/fi/cardTypeFromBin'\n })\n });\n }).factory('$Resolve3DS', function ($Model, $Api) {\n return $Model.extend('Resolve3DS', {\n api: new $Api({\n uri: '/api/fi/3ds/:id'\n })\n });\n }).factory('$ResolveOTP', function ($Model, $Api) {\n return $Model.extend('ResolveOTP', {\n api: new $Api({\n uri: '/api/fi/otp/:id'\n })\n });\n }).factory('$WalletPreferences', function ($Model, $Api, $config, $locale) {\n return $Model.extend('WalletPreferences', {\n api: new $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 if (this.topup.amount) {\n // Set the Topup funding instrument in the wallet preference api, which will be used by future Topup transactions\n data.topup = {\n amount: this.topup.amount,\n instrument_id: this.topup.fundingSource.instrument_id,\n autoload_minimum_threshold: $config.topup.autoload_minimum_threshold\n };\n } else {\n // Set the Direct funding instrument in the wallet preference api, which will be used by future Direct funding transactions\n data.direct = {\n instrument_id: this.direct.fundingSource.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 }).factory('$WalletInstrumentNameMapping', function ($Model, $util) {\n return $Model.extend('WalletInstrumentNameMapping', {\n\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 $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 }).factory('$CardInfoModel', function ($Model, $Api) {\n return $Model.extend('$CardInfoModel', {\n api: new $Api({\n uri: '/api/fi/card/:id'\n })\n });\n });\n});\n\n_index.$DeviceInfo;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-models/src/fi/index.js\n// module id = ./components/xo-models/src/fi/index.js\n// module chunks = 0","\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 squid.module('fi.apis', ['squid']).factory('$fiApis', function ($q) {\n return {\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 $q.when();\n }\n };\n });\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-models/src/fi/lib/fiApis.js\n// module id = ./components/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// ./components/xo-models/src/frs/index.js\n// module id = ./components/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// ./components/xo-models/src/gdprCookieBanner/index.js\n// module id = ./components/xo-models/src/gdprCookieBanner/index.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('xomodel.inventory', ['squid']).factory('$InventoryModel', function ($Model, $Api) {\n return $Model.extend('$InventoryModel', {\n api: new $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 });\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-models/src/inventory/index.js\n// module id = ./components/xo-models/src/inventory/index.js\n// module chunks = 0","\n\nvar _squid = require('squid');\n\nvar _auth = require('../auth');\n\nvar _logger = require('xo-beaver/dist/logger');\n\ndefine(['squid/index', 'node-uuid/uuid'], function (squid, uuid) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n squid.module('xomodel.marketingoffer', [// eslint-disable-line angular/no-service-method\n 'squid']).factory('$MarketingOfferModel', function ($Model, $Api) {\n return $Model.extend('$MarketingOfferModel', {\n api: new $Api({\n uri: '/api/checkout/offer/search-ads',\n postAttempts: 1\n\n }),\n\n serialize: function serialize() {\n var data = {\n 'site': this.site,\n 'locale': this.locale,\n 'si': this.si,\n 'visit_id': uuid.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 return data;\n }\n });\n }).factory('$MessageDiscoverModel', function ($Model, $Api) {\n return $Model.extend('$MessageDiscoverModel', {\n api: new $Api({\n uri: '/api/checkout/offer/discover-messages',\n postAttempts: 1\n })\n });\n }).service('$fireMORSBeacon', function ($q) {\n this.fireBeacon = function (uri) {\n var img = document.createElement('img');\n\n img.setAttribute('src', uri);\n document.body.appendChild(img);\n\n return;\n };\n }).factory('$MemberSegmentModel', function ($Model, $Api) {\n return $Model.extend('$MemberSegmentModel', {\n api: new $Api({\n uri: '/api/segment/memberSegment',\n postAttempts: 1\n }),\n\n invalidateOnLogout: true, // invalidate this model when auth.logout() gets called\n\n getMemberSegment: function getMemberSegment() {\n return this.memberSegment;\n },\n\n getCreditOffer: function getCreditOffer() {\n return this.creditOffer;\n },\n\n /**\n * showCreditOffer - Uses CEP to determine if a Credit Offer needs to be shown.\n * Currently under experimentation.\n * Control / Default Behavior : Show Offer\n * Treatment : Show / Hide based on the CEP response\n */\n\n showCreditOffer: function showCreditOffer() {\n var _this = this;\n\n var models = {};\n return (0, _squid.$populate)(models, {\n authModel: _auth.$AuthModel.instance()\n }).then(function () {\n var authModel = models.authModel || {};\n return (0, _squid.$pxp)('xo_hermes_use_cep_credit_offer', {\n 'uid': authModel.buyer_id,\n 'ctx.COUNTRY': authModel.country }, 'xo_hermes_use_cep_credit_offer_treatment').then(function (useCEPResponse) {\n if (useCEPResponse) {\n var show = !!_this.creditOffer;\n _logger.$logger.info('cep_creditofferdisplay_' + (show ? 'show' : 'hide'));\n return show;\n } else {\n // Show by Default\n _logger.$logger.info('cep_creditofferdisplay_default');\n return true;\n }\n });\n })['catch'](function () {\n // Default to show for unknown errors - safer route\n _logger.$logger.info('cep_creditofferdisplay_error');\n return true;\n });\n },\n\n isNewMember: function isNewMember() {\n return this.memberSegment === 'NEW_MEMBER' || this.memberSegment === 'YOUNG_MEMBER';\n },\n\n isExistingMember: function isExistingMember() {\n return this.memberSegment === 'EXISTING_MEMBER';\n },\n\n // Member Segments that are eligble for the New Experience\n isEligibleForExperimentation: function isEligibleForExperimentation() {\n var eligibleMemberSegments = _squid.$config.memberSegments;\n return eligibleMemberSegments.indexOf(this.memberSegment) > -1;\n }\n\n });\n });\n});\n\n_squid.$config;\n\n_squid.$pxp;\n\n_squid.$populate;\n\n_auth.$AuthModel;\n\n_logger.$logger;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-models/src/marketingoffer/index.js\n// module id = ./components/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 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 };\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// ./components/xo-models/src/onboard/index.js\n// module id = ./components/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 disallowedInstruments = checkoutSession.get('fundingOptions.disallowedInstruments') || [];\n var plans = checkoutSession.get('fundingOptions.plans') || [];\n\n // See https://engineering.paypalcorp.com/confluence/display/HellsKitchen/Hermes+Processor+Decline+Retry for eligibility reasons\n var isGambling = checkoutPayee.isGambling();\n var cardPlans = plans.reduce(function (acc, fi) {\n if (fi.primaryFs.type === 'CARD') {\n acc[fi.primaryFs.id] = (acc[fi.primaryFs.id] || 0) + 1;\n }\n\n return acc;\n }, {});\n // If there are two plans with same primaryFs, this indicates split balance is available\n var duplicateCardPlans = Object.keys(cardPlans).filter(function (id) {\n return cardPlans[id] > 1;\n }).length > 0;\n var numCardPlans = Object.keys(cardPlans).length;\n var numNonCardPlans = plans.filter(function (fi) {\n return fi.primaryFs.type !== 'CARD';\n }).length;\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 hasDisallowedCards: disallowedInstruments.length > 0,\n isGambling: isGambling,\n doesNotHave2Cards: numCardPlans !== 2,\n hasSplitBalance: duplicateCardPlans,\n hasNonCardPlans: numNonCardPlans > 0,\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\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).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\n if (eligibleWithPxp) {\n _logger.$logger.info('processor_decline_retry_eligible');\n }\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// ./components/xo-models/src/processorDecline/index.js\n// module id = ./components/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// ./components/xo-models/src/profilemanagement/index.js\n// module id = ./components/xo-models/src/profilemanagement/index.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('model.app', ['squid']).factory('$ContextualLoginModel', function ($Model, $Api, $util) {\n\n return $Model.extend('$ContextualLoginModel', {\n init: function init() {\n this._super.init.apply(this);\n this.setProperties({\n key: $util.param('ctxId')\n });\n },\n api: new $Api({\n uri: '/api/contextualLogin/:key'\n })\n });\n });\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-models/src/prox/index.js\n// module id = ./components/xo-models/src/prox/index.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('xomodel.shippingMethod', ['squid']).factory('$ShippingMethodModel', function ($Model, $Api) {\n return $Model.extend('ShippingMethodModel', {\n api: new $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 }).factory('$ShippingRuleSummaryModel', function ($Model, $Api) {\n return $Model.extend('ShippingRuleSummaryModel', {\n api: new $Api({\n uri: '/api/shippingtax/:id/rulesSummary'\n })\n });\n });\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-models/src/shippingMethod/index.js\n// module id = ./components/xo-models/src/shippingMethod/index.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('xomodel.shoppingcart', ['squid']).factory('$ShoppingCartModel', function ($Model, $Api) {\n return $Model.extend('$ShoppingCartModel', {\n api: new $Api({\n uri: '/api/shoppingcart/:id',\n postAttempts: 2,\n cache: false\n })\n });\n });\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-models/src/shoppingcart/index.js\n// module id = ./components/xo-models/src/shoppingcart/index.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$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\nangular.value(\"$CreateBAModel\", $CreateBAModel);\nangular.value(\"$SubscriptionModel\", $SubscriptionModel);\n_squid.$Model;\n\n_squid.$Api;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-models/src/subscription/index.js\n// module id = ./components/xo-models/src/subscription/index.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('xomodel.user', ['squid']).factory('$CheckoutClientDataModel', function ($Model, $Api) {\n\n return $Model.extend('CheckoutClientDataModel', {\n\n api: new $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 }).factory('$CheckoutInputDataModel', function ($Model, $Api, $config, $util) {\n\n var 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\n return $Model.extend('CheckoutInputDataModel', {\n\n init: function init() {\n this._super.init.apply(this);\n this.setProperties({\n client_id: $util.param('client_id'),\n action: $util.param('action'),\n redirect_uri: $util.param('redirect_uri'),\n scope: $util.param('scope'),\n state: $util.param('state'),\n flow: $util.param('flow'),\n payer_id: $util.param('payer_id'),\n mandate_reference_number: $util.param('mandate_reference_number'),\n funding_option_id: $util.param('funding_option_id'),\n locale: $util.param('locale'),\n logout: $util.param('logout'),\n refresh_parent: $util.param('refresh_parent'),\n escape_hatch: $util.param('escape_hatch'),\n failedBecause: $util.param('failedBecause'),\n redirectReferrer: $util.param('redirectReferrer'),\n id_token: $util.param('prox_id'),\n nonce: $util.param('nonce'),\n hide_rm: $util.param('hideRM'),\n payloadEnc: $util.param('payloadEnc'),\n xcancel: $util.param('x-cancel'),\n xsuccess: $util.param('x-success')\n });\n },\n\n api: new $Api({\n baseURI: $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 }).factory('$UserInfoModel', function ($Model, $Api) {\n return $Model.extend('UserInfoModel', {\n api: new $Api({\n uri: '/api/user/:id/session'\n })\n });\n }).factory('$ValidatePhoneModel', function ($Model, $Api) {\n\n return $Model.extend('validatePhoneModel', {\n api: new $Api({\n uri: '/api/user/:token/session/validatePhone',\n cache: false\n })\n });\n }).factory('$AddKYCModel', function ($Model, $Api) {\n return $Model.extend('AddKYCModel', {\n api: new $Api({\n uri: '/api/user/:token/session/addKYC'\n })\n });\n }).factory('$PatchPhoneModel', function ($Model, $Api) {\n\n return $Model.extend('patchPhoneModel', {\n api: new $Api({\n uri: '/api/checkout/:token/session/patch',\n cache: false\n })\n });\n }).factory('$WaxUserModel', function ($Model, $Api) {\n return $Model.extend('WaxUserModel', {\n api: new $Api({\n uri: '/api/user/:id/waxUser'\n })\n });\n }).factory('$EConsentModel', function ($Model, $Api) {\n return $Model.extend('EConsentModel', {\n api: new $Api({\n uri: '/api/user/eConsent'\n }),\n\n invalidateOnLogout: true // invalidate this model when auth.logout() gets called\n });\n }).factory('$UserPhotoModel', function ($Model, $Api, $config) {\n return $Model.extend('UserPhotoModel', {\n api: new $Api({\n baseURI: $config.urls.baseUrl,\n uri: 'api/user/photo'\n }),\n\n invalidateOnLogout: true // invalidate this model when auth.logout() gets called\n });\n }).factory('$AuthConsentModel', function ($Model, $Api) {\n return $Model.extend('AuthConsentModel', {\n api: new $Api({\n uri: '/api/user/authConsent'\n })\n });\n });\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-models/src/user/index.js\n// module id = ./components/xo-models/src/user/index.js\n// module chunks = 0","\n\ndefine(['jquery', 'squid/index', 'text!./template.html'], function ($, squid, template) {\n\n squid.module('xo-aside-header.directive', ['squid']).directive('xoAsideHeader', function () {\n return {\n template: template,\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: function controller($scope, $element, $state, $timeout) {\n $timeout(function () {\n $element.find('.header').focus();\n });\n\n if (angular.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 (angular.isFunction(target)) {\n target();\n } else {\n $state.go(target);\n }\n };\n }\n };\n });\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-page-components/src/aside-header/directive.js\n// module id = ./components/xo-page-components/src/aside-header/directive.js\n// module chunks = 0","\n\ndefine(['squid/index', 'text!./template.html', 'xo-models/src/checkout/index'], function (squid, template) {\n squid.module('xo-cart.cart-wrapper.directive', ['squid', 'xomodel.checkout']).directive('cartWrapper', function () {\n return {\n template: template,\n restrict: 'E',\n scope: {\n showAmt: '=?',\n showArrow: '=?',\n token: '=?'\n },\n controller: function controller($scope, $populate, $util, $CheckoutCartModel) {\n\n $util.assert($scope.token, 'Expected token');\n\n $populate($scope, {\n checkoutCart: $CheckoutCartModel.instance($scope.token)\n });\n }\n };\n });\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-page-components/src/cart/cartWrapper/directive.js\n// module id = ./components/xo-page-components/src/cart/cartWrapper/directive.js\n// module chunks = 0","\n\nvar _showCartDecision = require('./lib/showCartDecision');\n\ndefine(['jquery', 'squid/index', 'text!./template.html', './lib/ui', 'xo-models/src/checkout/index', 'xo-ui-components/src/accessibility/directive', './cartWrapper/directive', './itemDetails/directive', './subscription/directive'], function ($, squid, template) {\n\n squid.module('xo-cart.directive', ['squid', 'xomodel.checkout', 'xo-cart.ui', 'xo-cart.cart-wrapper.directive', 'xo-cart.item-details.directive', 'xo-accessibility.directive', 'subscription-terms']).directive('xoCart', function () {\n\n return {\n template: template,\n restrict: 'E',\n scope: {\n showCartTotal: '=?',\n renderCartContainer: '=?',\n token: '=?'\n },\n controller: function controller( // eslint-disable-line max-params\n $scope, $populate, $rootScope, $util, $state, $CheckoutCartModel, $CheckoutAppDataModel, $CheckoutPayeeModel) {\n\n $util.assert($scope.token, 'Expected token');\n\n $populate($scope, {\n checkoutAppData: $CheckoutAppDataModel.instance($scope.token),\n checkoutCart: $CheckoutCartModel.instance($scope.token),\n payee: $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\n $scope.showArrow = wpsSubscription || showCartDetails && (cartDesc || $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 = 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 return (0, _showCartDecision.showCartDecision)($scope.checkoutAppData.is_wps_subscription_flow(), 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 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) {\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($state.current.name);\n\n // TODO: Must we really couple this so tightly with the state transition names?\n var openCartListener = $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 $scope.$emit('dataLoaded');\n });\n }\n };\n });\n});\n\n_showCartDecision.showCartDecision;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-page-components/src/cart/directive.js\n// module id = ./components/xo-page-components/src/cart/directive.js\n// module chunks = 0","\n\ndefine(['squid/index', 'text!./template.html', 'xo-ui-components/src/accessibility/directive'], function (squid, template) {\n squid.module('xo-cart.item-details.directive', ['squid', 'xo-accessibility.directive']).directive('itemDetails', function () {\n return {\n template: template,\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//////////////////\n// WEBPACK FOOTER\n// ./components/xo-page-components/src/cart/itemDetails/directive.js\n// module id = ./components/xo-page-components/src/cart/itemDetails/directive.js\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// ./components/xo-page-components/src/cart/lib/decode_entities.js\n// module id = ./components/xo-page-components/src/cart/lib/decode_entities.js\n// module chunks = 0","\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 squid.module('xo-cart.pxp', ['squid.pxp']).factory('$pxpCartAmt', function ($pxp, $q) {\n return function (merchantCountry, merchantId, noLineItemDetails, isPurchase) {\n\n if (merchantCountry !== 'AU' && noLineItemDetails && isPurchase) {\n\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 $q.all([$pxp(pageName, {\n 'ctx.merchantID': merchantId,\n uid: merchantId\n }, showAmtBlacklistTreatment), $pxp(pageName, {\n 'ctx.merchantID': merchantId,\n uid: merchantId\n }, showAmtTreatment)]).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 $q.when(!noLineItemDetails && isPurchase);\n };\n });\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-page-components/src/cart/lib/pxp.js\n// module id = ./components/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(isWpsSubscriptionFlow, total, merchantCountry, merchantId, noLineItemDetails, isPurchase) {\n\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\n return {\n showAmt: showAmount,\n showCartSubTotal: showAmount && total && !isWpsSubscriptionFlow,\n showAmountInCartIcon: showAmount && +total.amount !== 0\n };\n });\n}\n\n_pxp.$pxpCartAmt;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-page-components/src/cart/lib/showCartDecision.js\n// module id = ./components/xo-page-components/src/cart/lib/showCartDecision.js\n// module chunks = 0","\n\nvar _jquery = require('jquery');\n\nvar _jquery2 = _interopRequireDefault(_jquery);\n\nvar _decode_entities = require('./decode_entities');\n\nvar _decode_entities2 = _interopRequireDefault(_decode_entities);\n\nvar _angular = require('angular');\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;\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 ?\n// modern browsers\nfunction (elem, style) {\n return _angular.$window.getComputedStyle(elem)[style];\n} :\n// IE\nfunction (elem, style) {\n return elem.currentStyle[style];\n};\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, _angular.$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, _angular.$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;\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_angular.$registerDirective;\n\n_angular.$filterProvider;\n\n_angular.$parse;\n\n_angular.$timeout;\n\n_angular.$window;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-page-components/src/cart/lib/ui.js\n// module id = ./components/xo-page-components/src/cart/lib/ui.js\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _squid = require('squid');\n\nrequire('squid/index');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nvar _subscriptionTerms = require('../../subscription-terms');\n\nvar _subscriptionTerms2 = _interopRequireDefault(_subscriptionTerms);\n\nvar _index = require('xo-models/src/subscription/index');\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 })\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_squid.$Component;\n\n_index.$SubscriptionModel;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-page-components/src/cart/subscription/directive.js\n// module id = ./components/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// ./components/xo-page-components/src/cart/subscription/template.html\n// module id = ./components/xo-page-components/src/cart/subscription/template.html\n// module chunks = 0","\n\n/* Constants for FB messenger related components */\n\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 PRECHECKED_COUNTRIES: ['US', 'AU', 'HK', 'JP', 'NZ', 'PH', 'SG', 'ZA'],\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// ./components/xo-page-components/src/constants/fbMessenger.js\n// module id = ./components/xo-page-components/src/constants/fbMessenger.js\n// module chunks = 0","\n\nvar _fbMessenger = require('../constants/fbMessenger');\n\nvar _fbMessenger2 = _interopRequireDefault(_fbMessenger);\n\nvar _index = require('../utils/index');\n\nvar _index2 = _interopRequireDefault(_index);\n\nvar _thirdPartyInfo = require('xo-third-party-components/src/thirdParty-info');\n\nvar _profilemanagement = require('xo-models/src/profilemanagement');\n\nvar _jquery = require('jquery');\n\nvar _jquery2 = _interopRequireDefault(_jquery);\n\nvar _angular = require('angular');\n\nvar _squid = require('squid');\n\nvar _template = require('./template');\n\nvar _template2 = _interopRequireDefault(_template);\n\nrequire('xo-beaver/dist/logger');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar AUTORETURN_TIMEOUT = 5000;\n\n\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: function controller($rootScope, $scope, $populate, $logger, $promise, $CheckoutAppDataModel, $CheckoutSessionModel, $CheckoutPayeeModel, $CheckoutCartModel, $DeviceInfo, $state, $window, $stateParams, $pxp, $timeout) {\n\n $scope.isGuestSignup = $rootScope.mode && $rootScope.mode === 'signup';\n $scope.locale = _squid.$locale;\n\n function addPageMessage(code) {\n var CONTENT_KEY_MAPPING = {\n NO_UPGRADE: 'accountUpgradeFailed'\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($rootScope.token);\n }\n\n $populate($scope, {\n checkoutAppData: $CheckoutAppDataModel.instance($scope.token),\n checkoutSession: $CheckoutSessionModel.instance($scope.token),\n checkoutCart: $CheckoutCartModel.instance($scope.token),\n payee: $CheckoutPayeeModel.instance($scope.token)\n }).then(function () {\n\n return $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\n $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 = $DeviceInfo.isMobile() || $DeviceInfo.isTablet() ? 'done.autoReturnStatement' : 'done.autoReturnStatementWeb';\n $scope.guestSignupKey = $scope.isGuestSignup ? 'done.paymentGuest' : 'done.payment';\n if ($stateParams.code) {\n addPageMessage($stateParams.code);\n }\n var amount = $scope.checkoutSession.transactionDetails.amount.total;\n var code = $scope.checkoutSession.transactionDetails.amount.currency;\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 = _index2['default'].getMessengerPXPContext();\n\n $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 $promise.all([$pxp(_fbMessenger2['default'].PXP_MESSENGER_EXPT, pxpContext, _fbMessenger2['default'].PXP_SHOW_MESSENGER_PLUGIN_TREATMENT), $pxp(_fbMessenger2['default'].PXP_MESSENGER_IN, pxpContext, _fbMessenger2['default'].PXP_MESSENGER_PLUGIN_TREATMENT_IN)]).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.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.info('messenger_done_page_test_traffic');\n $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.info('messenger_done_page_control_traffic');\n $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 (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.info('autoreturn_statement_clicked');\n $scope.returnToMerchant();\n }\n };\n\n if ($scope.isAutoReturn) {\n $logger.info('autoreturn_to_merchant');\n $timeout($scope.returnToMerchant, AUTORETURN_TIMEOUT);\n }\n });\n\n $scope.$on('localeChange', function () {\n if ($stateParams.code) {\n addPageMessage($stateParams.code);\n }\n });\n\n $scope.returnToMerchant = function () {\n $logger.info('return_to_merchant_clicked');\n return $state.go('checkout.end');\n };\n\n var onExitListeners = function onExitListeners() {\n var removeClassListener = $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 = $rootScope.$on('$stateChangeStart', function (event, newState) {\n if (!~WHITELISTED_ROUTES.indexOf(newState.name)) {\n $logger.info('done_page_prevent_routing', {\n to: newState.name\n });\n event.preventDefault();\n preventBackListener();\n\n return $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_thirdPartyInfo.thirdPartyExperience;\n\n_profilemanagement.$MerchantPreferenceModel;\n\n_angular.$registerDirective;\n\n_squid.formatCurrency;\n\n_squid.formatQuantity;\n\n_squid.$locale;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-page-components/src/done/directive.js\n// module id = ./components/xo-page-components/src/done/directive.js\n// module chunks = 0","\n\ndefine(['angular', 'squid/index', 'xo-models/src/checkout/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-done', ['squid', 'xo-done.directive']).factory('$DoneRoute', function ($ComponentRoute) {\n\n return $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 });\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-page-components/src/done/route.js\n// module id = ./components/xo-page-components/src/done/route.js\n// module chunks = 0","module.exports = \"
        \\n
        \\n
        \\n
        \\n
        \\n
        {{content('done.payment_target', {merchantName: (checkoutAppData.merchant.brand_name || checkoutAppData.merchant.merchant_email)})}}
        \\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
        {{checkoutSession.shipping.full_address}}
        \\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

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

        \\n
        \\n
        {{checkoutAppData.merchant.brand_name}}
        \\n
        {{checkoutAppData.merchant.phone}}
        \\n
        {{checkoutAppData.merchant.merchant_email}}
        \\n
        \\n
        \\n \\n
        \\n
        \\n
        \\n
        {{content('done.paymentCompleted')}}
        \\n
        \\n
        \\n
        \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-page-components/src/done/template.html\n// module id = ./components/xo-page-components/src/done/template.html\n// module chunks = 0","\n\nvar _index = require('xo-return-to-merchant/dist/index');\n\nvar _index2 = require('xo-models/src/checkout/index');\n\ndefine(['squid/index', 'text!./template.html', './opinionlab', './footerMap', 'xo-ui-components/src/modal/directive', 'xo-ui-components/src/escape-hatch/escapeHatch/directive', 'xo-device-info/dist/index', 'xo-form-components/src/language-options/directive', 'xo-models/src/user/index', 'xo-models/src/auth/index'], function (squid, template, opinionlab, footerMap) {\n squid.module('xo-footer.directive', ['squid', 'xo-modal.directive', 'xo-escape-hatch.escapeHatch.directive', 'xo-device-info', 'xo-language-options.directive', 'xomodel.user']).directive('xoFooter', function () {\n return {\n template: template,\n restrict: 'EA',\n scope: {\n token: '=?',\n escapeHatchIncontext: '=?',\n cancel: '@?',\n merchant: '@?',\n languageSwitch: '=?',\n showVenmoLegalLinks: '=?'\n },\n controller: function controller($scope, $populate, $rootScope, $util, $integration, $locale, $window, $DeviceInfo, $feature, $config, $state, $CheckoutInputDataModel, $AuthModel) {\n $scope.isIFrame = $util.isIFrame();\n if ($scope.escapeHatchIncontext) {\n $scope.showEscapeHatch = $scope.isIFrame;\n }\n $scope.locale = $locale;\n $scope.proxSignUpFlow = $CheckoutInputDataModel.instance($scope.token).isEbayTxn();\n $scope.year = new Date().getFullYear();\n\n $scope.isApac = function () {\n return $config.apacCountries && $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 = $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 footerMap.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 footerMap['DESecondButton'];\n }\n\n return footerMap[$scope.locale.country] || footerMap[getRegion($scope.locale.country)] || footerMap.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;\n\n // \"redirect_uri\" as a query param overrides the cancel url in the checkout session\n if ($integration.getConfig('REDIRECT_QUERY_PARAM')) {\n redirectUri = $util.param('redirect_uri');\n\n cancelUri = $util.buildURL(redirectUri, {\n opType: 'cancel',\n return_uri: $scope.cancel,\n token: $scope.token\n });\n }\n\n _index.$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 $populate($scope, {\n checkoutAppData: _index2.$CheckoutAppDataModel.instance($scope.token),\n checkoutPayee: _index2.$CheckoutPayeeModel.instance($scope.token),\n auth: $AuthModel.instance()\n }).then(function () {\n var merchant = $scope.checkoutAppData.merchant;\n\n var payee = $scope.checkoutPayee;\n\n if (payee && payee.merchant && payee.merchant.id) {\n var hcl = $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 = merchant.brand_name || merchant.merchant_name || merchant.merchant_email;\n });\n }\n\n var cancelShowModal = $rootScope.$on('showModal', function (event, config) {\n $scope.popupUrl = config && config.popupUrl;\n $scope.show = true;\n $scope.$digest(); // eslint-disable-line angular/ng_no_digest\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 = $state.current.get('trackingData.buzname.fullpage.pagename2', 'unknown').replace('%', placeholder);\n\n var data = {\n opVars: {\n rlogId: $window.meta.rlogId || '',\n page: page || window.location.hash,\n csci: 'Unknown',\n calc: $window.meta.correlationId,\n custId: 'Unknown',\n merchantId: 'Unknown',\n token: $scope.token || 'Unknown'\n },\n locale: {\n country: $locale.country,\n languageCode: $locale.lang + '_' + $locale.country\n }\n };\n\n opinionlab(data);\n };\n\n $scope.showFeedback = function () {\n return !$DeviceInfo.isDevice() && !isDESecondButtonFlow();\n };\n\n $scope.hideReturnCancelUrl = function () {\n return !$scope.cancel || $state.current && $state.current.name === 'checkout.done';\n };\n\n $scope.showVenmoLinks = function () {\n // if on payWithSelection State, always show it, else we choose whatever 'checkout' directive says.\n if ($state.current && $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\n if ($state.current && $state.current.name === 'checkout.payWithSelection') {\n return true;\n }\n return !$scope.showVenmoLegalLinks;\n };\n }\n };\n });\n});\n\n_index.$ReturnToMerchant;\n\n_index2.$CheckoutAppDataModel;\n\n_index2.$CheckoutPayeeModel;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-page-components/src/footer/directive.js\n// module id = ./components/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// ./components/xo-page-components/src/footer/footerMap.js\n// module id = ./components/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// ./components/xo-page-components/src/footer/opinionlab.js\n// module id = ./components/xo-page-components/src/footer/opinionlab.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$gdprCookieBannerComponent = undefined;\n\nvar _squid = require('squid');\n\nvar _gdprCookieBanner = require('xo-models/src/gdprCookieBanner');\n\nvar _angular = require('angular');\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 */\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_gdprCookieBanner.$GDPRCookieBannerModel;\n\n_angular.isFunction;\n\n_logger.$logger;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-page-components/src/gdprCookieBanner/directive.js\n// module id = ./components/xo-page-components/src/gdprCookieBanner/directive.js\n// module chunks = 0","module.exports = \"\\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-page-components/src/gdprCookieBanner/template.html\n// module id = ./components/xo-page-components/src/gdprCookieBanner/template.html\n// module chunks = 0","\n\nrequire('./styles');\n\nvar _squid = require('squid');\n\nvar _index = require('xo-device-info/dist/index');\n\ndefine(['squid/index', 'text!./template.html', '../cart/directive', 'xo-ui-components/src/escape-hatch/closeFrame/directive', 'xo-form-components/src/language-options/directive'], function (squid, template) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n squid.module('xo-header.directive', ['squid', 'xo-cart.directive', 'xo-escape-hatch.closeFrame.directive', 'xo-language-options.directive']).directive('xoHeader', function () {\n return {\n template: template,\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: function controller($scope, $rootScope, $renderContent, $SetHeaderText) {\n $scope.isMessengerBAIntegration = _squid.$integration.getConfig('IS_MESSENGER_BA_INTEGRATION');\n $scope.isMobile = _index.$DeviceInfo.isMobile() || _index.$DeviceInfo.isTablet();\n // $util.assert($scope.token, 'Expected token');\n $scope.title = $renderContent($scope.unbrandedTitle);\n $scope.subTitle = $renderContent($scope.unbrandedSubTitle);\n\n $SetHeaderText.subscribe($scope, function (event, text) {\n $scope.unbrandedTitle = text;\n $scope.title = $renderContent($scope.unbrandedTitle);\n });\n }\n };\n }).factory('$SetHeaderText', function ($rootScope) {\n var headerText = '';\n\n return {\n setText: function setText(text) {\n headerText = text;\n $rootScope.$emit('update_header_text', text);\n },\n getText: function getText() {\n return headerText;\n },\n subscribe: function subscribe($scope, callback) {\n var handler = $rootScope.$on('update_header_text', callback);\n $scope.$on('$destroy', handler);\n }\n };\n });\n});\n\n_squid.$integration;\n\n_index.$DeviceInfo;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-page-components/src/header/directive.js\n// module id = ./components/xo-page-components/src/header/directive.js\n// module chunks = 0","\n\n\ndefine(['angular', 'text!./template.html', 'xo-title/dist/directive', 'xo-models/src/marketingoffer/index', 'xo-models/src/checkout/index', 'xo-models/src/auth/index'], function (angular, template) {\n\n return angular.module('xo-page-components.marketingOffers', ['squid', 'xo-title.directive', 'xomodel.marketingoffer', 'xomodel.checkout', 'xomodel.auth']).directive('xoMarketingOffers', function () {\n return {\n template: template,\n\n scope: {\n placementCode: '=?',\n titleTxtProperty: '=?',\n subtitleProperty: '=?',\n token: '=?',\n pageName: '=?',\n backgroundImage: '=?',\n xoTitleTag: '@?',\n xoTitleClass: '@?'\n },\n\n controller: function controller($scope, $sce, $rootScope, $populate, $state, $locale, $renderContent, $logger, $pxp, $config, $CheckoutCartModel, $MarketingOfferModel, $fireMORSBeacon, $element, $feature, $CheckoutSessionModel, $CheckoutPayeeModel, $AuthModel) {\n var morsOfferFlag = $scope.placementCode === '202003' && $feature('morsValuePropOffers');\n var populateObj;\n if (morsOfferFlag) {\n populateObj = {\n checkoutCart: $CheckoutCartModel.instance($scope.token),\n checkoutSession: $CheckoutSessionModel.instance($scope.token),\n payee: $CheckoutPayeeModel.instance($scope.token),\n auth: $AuthModel.instance()\n };\n } else {\n populateObj = {\n checkoutCart: $CheckoutCartModel.instance($scope.token)\n };\n }\n $populate($scope, populateObj).then(function () {\n $scope.locale = $locale;\n $scope.token = $rootScope.token;\n function setDefaultValues() {\n $scope.ad = {\n Title: $renderContent($scope.titleTxtProperty),\n Body: $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 ($locale.country === 'US' && $locale.lang === 'en' && $scope.placementCode && $feature('morsValuePropOffers')) {\n $scope.marketingOfferData = new $MarketingOfferModel({\n countryCode: $scope.locale.country,\n page: $scope.pageName,\n puType: $scope.pu_type,\n locale: $locale.lang + '_' + $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 $pxp($scope.pxpInfo.name, { 'ctx.COUNTRY': $locale.country }, $scope.pxpInfo.pattern).then(function (res) {\n\n $logger.info('MO treatment: ' + (res ? res.treatment_name : '[no pxp response!]'));\n if (res && res.treatment_name === $scope.pxpInfo.treatment) {\n\n return $MarketingOfferModel.instance($scope.token).save({\n\n silent: true,\n data: $scope.marketingOfferData.serialize(),\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.info('MORS_ad_displayed');\n $fireMORSBeacon.fireBeacon($scope.ad.impressionUrl);\n\n $rootScope.$broadcast('MORSDisplayed', {\n clickUrl: $scope.ad.clickUrl,\n placementId: $scope.placementCode\n });\n } else {\n $logger.info('MORS_ad_not_found');\n setDefaultValues();\n $rootScope.$broadcast('MORSNotDisplayed');\n }\n },\n\n error: function error(err) {\n setDefaultValues();\n $logger.error('MORS_api_failure', { error: err });\n }\n });\n } else {\n setDefaultValues();\n $rootScope.$broadcast('MORSNotDisplayed');\n }\n });\n } else {\n setDefaultValues();\n $rootScope.$broadcast('MORSNotDisplayed');\n }\n $scope.$on('localeChange', function () {\n setDefaultValues();\n });\n });\n }\n };\n });\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-page-components/src/marketingOffers/directive.js\n// module id = ./components/xo-page-components/src/marketingOffers/directive.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 _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 },\n\n resolve: {\n models: function models() {\n if (this.props.token) {\n return {\n checkoutAppData: _index.$CheckoutAppDataModel.instance(this.props.token).retrieve()\n };\n }\n }\n },\n\n lifecycle: {\n populate: function populate() {\n if (this.props.token && !_index2.$CheckoutInputDataModel.instance(this.props.token).isEbayTxn()) {\n this.merchant = this.models.checkoutAppData.merchant;\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_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// ./components/xo-page-components/src/merchant-header/directive.js\n// module id = ./components/xo-page-components/src/merchant-header/directive.js\n// module chunks = 0","module.exports = \"
        \\n
        \\n
        \\n \\n {{ merchant.brand_name || merchant.merchant_name || merchant.merchant_email }}\\n \\t\\n \\\"{{\\n
        \\n
        \\n
        \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-page-components/src/merchant-header/template.html\n// module id = ./components/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// ./components/xo-page-components/src/returnParams/index.js\n// module id = ./components/xo-page-components/src/returnParams/index.js\n// module chunks = 0","\n\nrequire('./styles');\n\ndefine(['jquery', 'angular', 'squid/index', 'text!./template.html', 'xo-models/src/checkout/index'], function ($, angular, squid, template) {\n\n return angular.module('xo-route-to-complete.directive', ['squid', 'xomodel.checkout']).directive('xoRouteToComplete', function ($rootScope) {\n\n return {\n template: template,\n\n scope: {\n token: '=?'\n },\n\n controller: function controller($scope, $rootScope, // eslint-disable-line no-shadow\n $stateParams, $state, $logger, $CheckoutAppDataModel, $populate, $locale, $window) {\n\n /* hide the footer cancel link */\n angular.element('#defaultCancelLink').hide();\n\n $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 = $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 $window.onunload = $window.onbeforeunload = function () {};\n $window.location = $stateParams.url;\n };\n\n $populate($scope, {\n checkoutAppData: $CheckoutAppDataModel.instance($scope.token)\n }).then(function () {\n var merchant = $scope.checkoutAppData.merchant;\n $scope.merchant = merchant.brand_name || merchant.merchant_name || merchant.merchant_email;\n });\n\n $scope.$on('$destroy', function (event) {\n $('.paypalHeaderWrapper').show();\n $('.footerWrapper').removeClass('routecss');\n });\n }\n };\n });\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-page-components/src/route-to-complete/directive.js\n// module id = ./components/xo-page-components/src/route-to-complete/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-route-to-complete', ['squid', 'xo-route-to-complete.directive']).factory('$RouteToCompleteRoute', function ($ComponentRoute) {\n\n return $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\n children: []\n });\n });\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-page-components/src/route-to-complete/route.js\n// module id = ./components/xo-page-components/src/route-to-complete/route.js\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 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};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-page-components/src/subscription-terms/index.js\n// module id = ./components/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';\n\nvar TRIAL_SUBSCRIPTION = 'TRIAL';\nvar REGULAR_SUBSCRIPTION = 'REGULAR';\n\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\n var timeUnit = void 0;\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\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\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\n var key = 'regularSubscriptionPeriod';\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\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\n var mappedSubscriptionDetails = {};\n var plan = baResponseData && baResponseData.plan;\n var allTerms = plan && plan.payment_definitions;\n var mappedTerms = [];\n var regularAmount = void 0,\n firstTrialAmount = null;\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 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 for (var i = 0; i < subscriptionTerms.length; 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 return subscriptionDetails.firstAmount;\n}\n\n/**\n * Returns the currency code\n */\nfunction getCurrencyCode(baResponseData) {\n var plan = baResponseData && baResponseData.plan;\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 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 return itemDetails.options;\n}\n\n/**\n * Retrieve item name\n */\nfunction getItemName(baResponseData) {\n var itemDetails = baResponseData && baResponseData.items && baResponseData.items[0];\n return itemDetails.name;\n}\n\nfunction getEffectiveDate(baResponseData) {\n return baResponseData && baResponseData.effective_date;\n}\n\nmodule.exports = {\n getFirstAmount: getFirstAmount,\n getFormattedFirstAmount: getFormattedFirstAmount,\n getItemOptions: getItemOptions,\n getItemName: getItemName,\n getCurrencyCode: getCurrencyCode,\n getTermsText: getTermsText,\n getEffectiveDate: getEffectiveDate\n};\n\n_squid.formatCurrency;\n\n_squid.Content;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-page-components/src/subscription-terms/subscriptionTerms.js\n// module id = ./components/xo-page-components/src/subscription-terms/subscriptionTerms.js\n// module chunks = 0","\n\n/* eslint-disable angular/typecheck-string */\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\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_squid.$util;\n\n_squid.$locale;\n\n_index.$DeviceInfo;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-page-components/src/utils/index.js\n// module id = ./components/xo-page-components/src/utils/index.js\n// module chunks = 0","\n\ndefine(['squid/index', 'text!./template.html'], function (squid, template) {\n\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// ./components/xo-page-components/src/value-props/directive.js\n// module id = ./components/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// ./components/xo-return-to-merchant/dist/formatReturnContent.js\n// module id = ./components/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// ./components/xo-return-to-merchant/dist/index.js\n// module id = ./components/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\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 _angular.$window.location = url;\n return _uiRouter.$state.go('checkout.genericMessage', {\n code: 'PAYMENT_SUCCESS'\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// ./components/xo-return-to-merchant/dist/util.js\n// module id = ./components/xo-return-to-merchant/dist/util.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.thirdPartyExperience = exports.venmoExperience = exports.thirdPartyInfo = undefined;\n\nvar _angular = require('angular');\n\nvar _index = require('xo-device-info/dist/index');\n\nvar _squid = require('squid');\n\nvar _auth = require('xo-models/src/auth');\n\nvar _checkout = require('xo-models/src/checkout');\n\nvar _sessionStorage = require('./sessionStorage');\n\nvar _sessionStorage2 = _interopRequireDefault(_sessionStorage);\n\nvar _logger = require('xo-beaver/dist/logger');\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';\n\nvar readCookie = function readCookie(name) {\n var nameEQ = name + '=';\n var ca = document.cookie.split(';');\n for (var i = 0; i < ca.length; i++) {\n var c = ca[i];\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 isThirdPartyEligible: function isThirdPartyEligible() {\n var _this = this;\n\n // This utility returns a promise\n\n return this.isBaiduEligible().then(function (baiduEligibility) {\n return _this.isVenmoEligible() || baiduEligibility;\n });\n },\n isBaiduEligible: function isBaiduEligible() {\n // This utility return a promise\n\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 // Handler to call to determine if user can use Venmo\n isVenmoEligible: function isVenmoEligible() {\n\n var appData = _checkout.$CheckoutAppDataModel.instance(_angular.$rootScope.token);\n var cart = _checkout.$CheckoutCartModel.instance(_angular.$rootScope.token);\n\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\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\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 isVenmoCookiePresent: function isVenmoCookiePresent() {\n var cookieValue = readCookie(PWV_COOKIE);\n return Boolean(cookieValue);\n },\n\n\n // Build the venmo URL scheme\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\n var cartModel = _checkout.$CheckoutCartModel.instance(_angular.$rootScope.token);\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': _angular.$rootScope.token,\n 'total': cartModel.purchase.amounts.total.amount,\n 'currency': cartModel.purchase.amounts.total.currency_code,\n 'intent': cartModel.payment_action\n });\n\n return SCHEME + 'paypal/checkout?' + 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 sessionStorage.setItem(venmoExperienceKey, token);\n },\n get: function get(token) {\n var auth = _auth.$AuthModel.instance();\n var sessionStorage = (0, _sessionStorage2['default'])();\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\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\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\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 return payload && payload[token] || 'MEMBER_EXPERIENCE';\n } else {\n\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 sessionStorage.removeItem(THIRD_PARTY_NAMESPSACE);\n }\n};\n\n_angular.$rootScope;\n\n_angular.$window;\n\n_angular.$location;\n\n_angular.$httpParamSerializer;\n\n_index.$DeviceInfo;\n\n_squid.$config;\n\n_squid.$util;\n\n_squid.$meta;\n\n_auth.$AuthModel;\n\n_checkout.$CheckoutPayeeModel;\n\n_checkout.$CheckoutCartModel;\n\n_checkout.$CheckoutAppDataModel;\n\n_checkout.$FlowEligibilityModel;\n\n_logger.$logger;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-third-party-components/src/thirdParty-info/index.js\n// module id = ./components/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// ./components/xo-third-party-components/src/thirdParty-info/sessionStorage.js\n// module id = ./components/xo-third-party-components/src/thirdParty-info/sessionStorage.js\n// module chunks = 0","\n\nvar _angular = require('angular');\n\ndefine(['squid/index', 'text!./template.html'], function (squid, template) {\n\n squid.module('xo-title.directive', ['squid']).directive('xoTitle', function () {\n return {\n template: template,\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_angular.$compile;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-title/dist/directive.js\n// module id = ./components/xo-title/dist/directive.js\n// module chunks = 0","\n\ndefine(['angular', 'squid/index', './model'], function (angular) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n angular.module('tracking.builder', ['squid', 'tracking.model']).factory('$FptiBuilder', function ($Class, $locale, $rootScope, $FptiConstants, $FptiDataModel, $CalDataModel, $util, $getLatestCorrelationID) {\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 $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 $FptiDataModel().decorate('buzname', this.trackingData, this.pageQualifier, undefined, this.productOverride).decorate('templateName', this.trackingData, this.pageQualifier).decorate('locale', $locale).decorate('pageGoal', this.trackingData.pageGoal).decorate('ecToken', this.trackingData.token).decorate('correlationId', $getLatestCorrelationID()).decorate('uuid', $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 angular.forEach(this._dataObj, function (v, k) {\n dataAry.push(k + '=' + v);\n });\n\n return dataAry.join('&');\n }\n });\n });\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-tracking/dist/builder.js\n// module id = ./components/xo-tracking/dist/builder.js\n// module chunks = 0","\n\ndefine(['angular', 'squid/index', 'xo-models/src/checkout/index'], function (angular) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n angular.module('button.tracking', ['squid', 'xomodel.checkout']).factory('$ButtonTrackingService', function ($rootScope, $http, $populate, $CheckoutAppDataModel, $CheckoutPayeeModel, $meta, $cookies) {\n\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($cookies && $cookies.ts));\n url += buildParam('WWW_AKA_MVT_BUTTONS', $cookies && $cookies.WWW_AKA_MVT_BUTTONS);\n url += buildParam('WWW_AKA_MVT_ID', $cookies && $cookies.WWW_AKA_MVT_ID);\n url += buildParam('ip', $meta && $meta.ipaddress);\n\n if ($rootScope.token) {\n $populate(xoData, {\n payee: $CheckoutPayeeModel.instance($rootScope.token),\n appData: $CheckoutAppDataModel.instance($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\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\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-tracking/dist/button.js\n// module id = ./components/xo-tracking/dist/button.js\n// module chunks = 0","\n\ndefine(['jquery', 'angular', 'uiRouter'], function ($, angular) {\n\n angular.module('tracking.directive', ['ui.router']).directive('trackSubmit', function ($state, $rootScope) {\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: $state.current,\n transition: transition,\n errors: []\n };\n\n angular.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 $rootScope.$broadcast('trackSubmit', trackSubmit);\n });\n }\n };\n }).directive('trackLink', function ($state, $rootScope) {\n return {\n restrict: 'AE',\n link: function link($scope, element, attr) {\n element.on('mousedown', function (event) {\n\n var state = attr && attr.trackLink;\n\n if (state) {\n var trackLink = {\n currentRoute: $state.current,\n transition: state\n };\n\n $rootScope.$broadcast('trackLink', trackLink);\n }\n });\n }\n };\n }).directive('trackClick', function ($state, $rootScope) {\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: $state.current,\n transition: state\n };\n\n $rootScope.$broadcast('trackClick', trackClick);\n }\n });\n }\n };\n }).directive('trackInput', function ($state, $rootScope) {\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\n var state;\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: $state.current,\n page: 'main:ec:hermes::fullpage-billing:guest:aries:'\n };\n\n if (state) {\n trackInput.transition = state;\n }\n\n $rootScope.$broadcast('trackInput', trackInput);\n });\n }\n };\n });\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-tracking/dist/directive.js\n// module id = ./components/xo-tracking/dist/directive.js\n// module chunks = 0","\n\ndefine(['angular', 'squid/index', './builder'], function (angular) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n angular.module('tracking.fpti', ['squid', 'tracking.builder']).factory('$fpti', function ($config, $FptiBuilder, $rootScope, $window, $util) {\n\n var _beaconUrl;\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 ($config.deploy.isLocal() || $config.deploy.isStage()) {\n _beaconUrl = 'https://tracking.qa.paypal.com/webapps/tracking/ts'; // stage url\n } else {\n _beaconUrl = $config.urls && $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 = $rootScope.token;\n\n while (routeParent) {\n trackingData = angular.merge({}, routeParent.trackingData || {}, trackingData);\n routeParent = routeParent.parent;\n }\n return trackingData;\n },\n\n setupDataString: function setupDataString(route, err, data) {\n\n var trackingData = this.getPageTrackingData(route);\n var fptiData;\n\n var PAYPAL = window.PAYPAL;\n\n if (PAYPAL && typeof PAYPAL.analytics !== 'undefined') {\n PAYPAL.core = PAYPAL.core || {};\n\n var payload = {\n trackingData: trackingData,\n error: err,\n isInContext: $rootScope.miniBrowser\n };\n\n angular.extend(payload, data || {});\n\n fptiData = new $FptiBuilder(payload).build().toString();\n\n // FPTI client side tracking only if we have template\n if (route && route.template && angular.isFunction(PAYPAL.analytics.setup)) {\n PAYPAL.core.pta = PAYPAL.analytics.setup({\n data: fptiData,\n url: _beaconUrl\n });\n }\n }\n\n return fptiData;\n }\n };\n }).factory('$fptiError', function ($Error) {\n function stringifyErrorMessage(msg) {\n return encodeURIComponent(angular.isString(msg) ? msg.split('\\n').slice(0, 2).join('@') // Get the first two lines of stack\n : (angular.toJson(msg) || 'undefined').substring(0, 128));\n }\n\n return $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\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-tracking/dist/fpti.js\n// module id = ./components/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 *\n */\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// ./components/xo-tracking/dist/index.js\n// module id = ./components/xo-tracking/dist/index.js\n// module chunks = 0","\n\ndefine(['angular', 'jquery', 'xo-beaver/dist/logger', './fpti', './button', 'xo-models/src/auth'], function (angular, $) {\n angular.module('tracking.listener', ['beaver', 'tracking.fpti', 'button.tracking']).run(function ($rootScope, $logger, $CalDataModel, $AuthModel, $fpti, $fptiError, $FptiConstants, $ButtonTrackingService, $timeout, $FptiBuilder, $meta, $config, $experiment, $util) {\n // eslint-disable-line max-statements\n\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 = $meta.logAppName || 'appNameNotDefined';\n\n var addTrackingData = function addTrackingData(object) {\n return $util.extend(object, {\n dc: $meta.dc,\n az: $meta.az,\n cust: $AuthModel.instance().buyer_id || '',\n comp: appName\n });\n };\n\n var cplSettings = $config.enableCPL;\n\n var passesCplThrottle = cplSettings && (typeof cplSettings.throttle === 'undefined' || $experiment('cpl_tracking', cplSettings.throttle, token));\n\n var cplEnabled = passesCplThrottle || $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 $config.deploy.isLocal() || $config.deploy.isStage() ? 'https://tracking.qa.paypal.com/webapps/tracking/ts' // stage url\n : $config.urls && $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 $FptiBuilder({\n trackingData: route.trackingData,\n isInContext: $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 $rootScope.$on('trackInput', function (event, trackInput) {\n if (!trackInput) {\n return;\n }\n var customData = {\n link: trackInput.transition,\n page: trackInput.page\n };\n\n fptiCustomRecordClick(trackInput.currentRoute, customData);\n });\n\n $rootScope.$on('trackClick', function (event, trackClick) {\n if (!trackClick) {\n return;\n }\n\n var customData = {\n link: trackClick.transition\n };\n\n fptiCustomRecordClick(trackClick.currentRoute, customData);\n });\n\n $rootScope.$on('trackSubmit', function (event, trackSubmit) {\n if (!trackSubmit) {\n return;\n }\n var currentRoute = trackSubmit.currentRoute;\n var routeName = currentRoute ? currentRoute.name : 'noRoute';\n\n $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.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.info('checkout_fpti', {\n form_field_errors: fptiFieldErrors\n });\n }\n\n var errors = trackSubmit.errors;\n\n if (angular.isArray(errors)) {\n errors.forEach(function (err) {\n $logger.debug('track_submit_error', err);\n if ($fpti) {\n $fpti.setupDataString(currentRoute, new $fptiError({\n type: 'fieldError',\n field: err.fieldName,\n code: err.errorMessage\n }));\n }\n });\n\n if (errors.length) {\n $logger.flush(true);\n }\n }\n });\n\n $rootScope.$on('unhandled_error', function (event, exception) {\n if ($fpti) {\n $fpti.setupDataString(exception.currentRoute, new $fptiError({\n type: 'pageError',\n message: exception.message,\n code: exception.cause\n }));\n }\n });\n\n $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.info(routeName + '_exit', {\n fptiState: state,\n fptiTransition: trackLink.transition\n });\n });\n\n $rootScope.$on('$transition', function (event, data) {\n\n $timeout(function () {\n if ($fpti) {\n var fptiData = $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 $ButtonTrackingService.fireBeacon(fptiData);\n }\n }\n });\n });\n\n $rootScope.$on('$stateChangeStart', function (event, toState, toParams, fromState) {\n\n var from = fromState.name.replace(/\\./g, '_');\n var to = toState.name.replace(/\\./g, '_');\n\n if (from && logTransition(fromState) && logStateExit(fromState)) {\n var trackingData = fromState.trackingData && fromState.trackingData || {};\n\n $logger.info(from + '_exit', { fptiState: trackingData.fptiState || from, fptiTransition: trackingData.fptiState || from });\n }\n\n $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 $CalDataModel.generateMetaIds();\n }\n\n $rootScope.currentState = to;\n\n if (to && logTransition(toState)) {\n $logger.info(to + '_enter', { fptiState: toState.trackingData && toState.trackingData.fptiState || to });\n }\n });\n\n $rootScope.$on('page_loaded', function (event, from, to) {\n if (from !== 'checkout_init') {\n return;\n }\n var key = $FptiConstants.stateName[to] || 'review';\n var landing_page = $FptiConstants.landing_page[key];\n\n $logger.info('landing_page', {\n 'from': landing_page,\n 'to': 'process_page_loaded',\n fpti_landing_page: landing_page\n });\n });\n\n $rootScope.$on('page_reloaded', function () {\n $logger.flush(true);\n $CalDataModel.generateMetaIds();\n });\n\n $rootScope.$on('$stateChangeSuccess', function (event, toState) {\n var to = toState.name.replace(/\\./g, '_');\n\n if (toState.hasResolver && to) {\n $logger.info(to + '_load');\n } else if (to) {\n $logger.info(to + '_rendering');\n }\n });\n\n $rootScope.$on('addrDiff', function (event, addrDiff) {\n if (!addrDiff) {\n return;\n }\n\n $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.info('hashchange', {\n from: getHash(event.oldURL || oldHash),\n to: getHash(event.newURL || window.location.hash)\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.info('click', {\n el: name\n });\n }\n });\n\n if (cplEnabled) {\n\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 $rootScope.$on('startLoad', function () {\n return trackPageStart();\n });\n\n $rootScope.$on('$stateChangeSuccess', function (e, route) {\n currentRoute = route;\n });\n\n $rootScope.$on('allLoaded', function () {\n try {\n var buildParams = {\n productOverride: window.fptiProductOverride,\n trackingData: $fpti.getPageTrackingData(currentRoute)\n };\n\n var legacyFptiData = new $FptiBuilder(buildParams).build()._dataObj;\n\n var product = window.fptiProductOverride || 'ec';\n\n legacyFptiData.pgrp = 'main:' + product + ':hermes';\n\n legacyFptiData.flid = token;\n\n trackDone(legacyFptiData);\n } catch (e) {\n console.log('error tracking CPL data', e);\n }\n });\n }\n });\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-tracking/dist/listener.js\n// module id = ./components/xo-tracking/dist/listener.js\n// module chunks = 0","\n\ndefine(['angular', 'squid/index', 'node-uuid/uuid' // Using the same module as used in NodeInfra\n], function (angular, squid, uuid) {\n\n (function exportProviders(angular) {\n angular && angular.exportProviders(module, exports, __dirname, __filename);\n })(window.angular);\n\n angular.module('tracking.model', ['squid']).constant('$FptiConstants', {\n // The prototype of buzname data object\n buznameMap: {\n country: {\n placeHolder: 'glb',\n fptiKey: 'ccpg'\n },\n\n flowgatename: {\n placeHolder: '',\n fptiKey: 'fltp'\n },\n\n 'flowname': {\n placeHolder: 'ec:hermes:',\n fptiKey: 'flnm'\n },\n 'hier1': {\n placeHolder: 'main_ec_hermes_',\n fptiKey: 'shir'\n },\n /*\n * No key defined in FPTI\n */\n // 'hier2': '',\n // 'hier3': '',\n // 'hier4': '',\n // 'hier5': '',\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 * Deprecated SiteCatalyst keys\n */\n // 'feature': 'ec',\n // 'oldpagename': '',\n // 'product': ';ec',\n // 'subfeature1': 'hermes',\n // 'subfeature2': '',\n // 'website': 'main'\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 'countryOfPage': 'ccpg', // buzname\n 'cust': 'cust',\n 'errorCode': 'eccd',\n 'fieldError': 'erfd',\n 'flowgatename': 'fltp', // buzname\n 'flowname': 'flnm', // buzname\n 'locale': 'rsta', // LocaleModel\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\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\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', function ($Class, $FptiConstants, $util, $config) {\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 $Class.extend('FptiDataModel', {\n init: function init() {\n this._dataObj = angular.extend({}, productConfig);\n this._decoratorList = [];\n },\n decorators: {\n buzname: function buzname(trackingData, pageQualifier, isInContext, productOverride) {\n\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 = $config && $config.fpti && $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 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 $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 $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 (angular.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 (angular.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 ($Model) {\n\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 = (uuid.v4() || uuid_v4_mask).split('-');\n var uidTime = (uuid.v1() || uuid_v1_mask).split('-');\n\n return uidTime[0] + uidRandomArr[0].substr(0, 5);\n }\n\n function _generateUUID() {\n return (uuid.v4() || uuid_v4_mask).replace(/-/g, '');\n }\n\n var CalModel = $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\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-tracking/dist/model.js\n// module id = ./components/xo-tracking/dist/model.js\n// module chunks = 0","/* global define:true */\n\n\n/* grab the logger so we can warn about being in the fallback mode */\n\nvar _logger = require('xo-beaver/dist/logger');\n\n/** Name: Tray height helper */\ndefine(['squid/index', 'jquery'], function (squid, $) {\n squid.module('xo-tray-height.directive', ['squid']).directive('xoTrayHeight', function ($timeout) {\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 $timeout(deprecatedCalculate, 1);\n\n $scope.$on('SidebarError', function () {\n deprecatedCalculate();\n });\n }\n }\n };\n });\n});\n\n_logger.$logger;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-tray-height/dist/directive.js\n// module id = ./components/xo-tray-height/dist/directive.js\n// module chunks = 0","\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, _angular.$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, _angular.$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, _angular.$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, _angular.$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, _angular.$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, _angular.$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, _angular.$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, _angular.$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, _angular.$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, _angular.$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, _angular.$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_angular.$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// ./components/xo-ui-components/src/accessibility/directive.js\n// module id = ./components/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// ./components/xo-ui-components/src/accessibility/ui.js\n// module id = ./components/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// ./components/xo-ui-components/src/banner/directive.js\n// module id = ./components/xo-ui-components/src/banner/directive.js\n// module chunks = 0","module.exports = \"
        \\n
        {{ initials }}
        \\n
        \\n
        \"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-ui-components/src/banner/template.html\n// module id = ./components/xo-ui-components/src/banner/template.html\n// module chunks = 0","\n\nvar _angular = require('angular');\n\nvar _squid = require('squid');\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, _angular.$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 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, _angular.$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_angular.$document;\n\n_angular.$parse;\n\n_angular.$registerDirective;\n\n_angular.$timeout;\n\n_squid.$util;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-ui-components/src/directionality/directive.js\n// module id = ./components/xo-ui-components/src/directionality/directive.js\n// module chunks = 0","\n\ndefine(['squid/index', 'jquery'], function (squid, $) {\n\n squid.module('xo-dropdown-multiline.directive', ['squid']).directive('xoDropdownMultiline', 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 $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;\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 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 $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 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\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 $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 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 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 $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// ./components/xo-ui-components/src/dropdown-multiline/directive.js\n// module id = ./components/xo-ui-components/src/dropdown-multiline/directive.js\n// module chunks = 0","\n\ndefine(['squid/index', 'jquery'], function (squid, $) {\n\n $.fn.dropdown = function () {\n console.warn('Dropdown deprecated');\n };\n\n squid.module('xo-dropdown.directive', ['squid']).directive('xoDropdown', function ($parse, $window, $timeout, $injector, $rootScope, $config, $locale, $experiment, $util, $compile) {\n\n var userAgent = ($window.navigator || {}).userAgent;\n var isWinOS = Boolean(userAgent.match(/\\(win/i));\n\n return {\n\n restrict: 'A',\n\n scope: {\n dropdownTextBindVar: '=?'\n },\n\n link: function link($scope, $element, attrs) {\n var $parentScope = $scope.$parent;\n\n var $select = $($element);\n\n var selectInitialValue = '';\n\n var ngChange = '';\n // TODO: This html should be refactored out into a template.\n var $span = $('');\n\n $select.parent().addClass('custom-select-container');\n\n // Change class names to enable styling of hover/focus states\n $select.bind('mouseenter', function () {\n $span.addClass('active');\n });\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 // Change class names to enable styling of hover/focus states\n $select.bind('mouseleave', function () {\n $span.removeClass('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 if (selectInitialValue !== val) {\n if (ngChange) {\n ngChange($parentScope);\n }\n selectInitialValue = val;\n }\n }, 10);\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\n $select.bind('click', function () {\n executeSelectChange();\n });\n } else {\n $select.bind('blur', function () {\n $span.removeClass('active');\n });\n }\n\n $select.after($span);\n\n $select.addClass('replaced');\n\n if (attrs['default']) {\n var defaultOption = document.createElement('option');\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 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 $span.find('span span').text(text);\n if (document.documentElement.getAttribute('dir') === 'rtl') {\n $span.toggleClass('ltrOverride', !$util.hasRTL(text));\n }\n }, 10);\n };\n\n $parentScope.$watch(attrs.ngModel, updateCover);\n\n $scope.$on('contentChange', updateCover);\n\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 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// ./components/xo-ui-components/src/dropdown/directive.js\n// module id = ./components/xo-ui-components/src/dropdown/directive.js\n// module chunks = 0","\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, _angular.$registerDirective)('xo-error-tooltip', function () {\n\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 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;\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\n var requiredId = generateId();\n var invalidId = generateId();\n var requiredError;\n var invalidError;\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\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 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 if (windowBot < Math.max(requiredBot, invalidBot)) {\n $(window).scrollTop(Math.max(requiredBot, invalidBot) - $(window).height());\n }\n });\n });\n }\n };\n});\n\n_angular.$registerDirective;\n\n_angular.$parse;\n\n_angular.$compile;\n\n_angular.$timeout;\n\n_angularAria.$ariaProvider;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-ui-components/src/error-tooltip/directive.js\n// module id = ./components/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: function controller($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// ./components/xo-ui-components/src/escape-hatch/closeFrame/directive.js\n// module id = ./components/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: function controller($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// ./components/xo-ui-components/src/escape-hatch/escapeHatch/directive.js\n// module id = ./components/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;\nvar newLocale;\nvar oldLocale;\n\nfunction getTreatment() {\n\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 treatmentType = throttle && (0, _squid.$experiment)('floating_label_exp', throttle, id, {}) ? true : false;\n return treatmentType;\n}\n\n(0, _angular.$registerDirective)('floating-label', function () {\n return {\n restrict: 'A',\n link: function link(scope, element, attrs) {\n\n scope.$on('localeChange', function () {\n newLocale = _squid.$locale.country + '_' + _squid.$locale.lang;\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 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, _angular.$registerDirective)('floating-label-dropdown', function () {\n return {\n restrict: 'A',\n link: function link(scope, element, attrs) {\n\n scope.$on('localeChange', function () {\n newLocale = _squid.$locale.country + '_' + _squid.$locale.lang;\n if (oldLocale !== newLocale) {\n treatmentType = undefined;\n oldLocale = newLocale;\n }\n scope.showFloatingLabels = getTreatment();\n });\n\n (0, _angular.$timeout)(function () {\n\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 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 select.toggleClass('focused', event.type === 'change' || this.value.length > 0);\n flSpan.toggleClass('noValue', this.value.length < 1);\n label.toggleClass('hide', this.value.length < 1);\n }).trigger('mouseleave');\n });\n }\n };\n});\n\n_angular.$timeout;\n\n_angular.$rootScope;\n\n_angular.$registerDirective;\n\n_squid.$locale;\n\n_squid.$experiment;\n\n_squid.$config;\n\n_squid.$feature;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-ui-components/src/floating-label/directive.js\n// module id = ./components/xo-ui-components/src/floating-label/directive.js\n// module chunks = 0","\n\nexports.__esModule = true;\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 _index = require('xo-models/src/checkout/index');\n\nvar _index2 = require('xo-models/src/auth/index');\n\nvar _index3 = require('xo-return-to-merchant/dist/index');\n\nvar _jquery = require('jquery');\n\nvar _jquery2 = _interopRequireDefault(_jquery);\n\nvar _app = require('xo-models/src/app');\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_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;\n if (this.models && this.models.checkoutAppData && this.models.checkoutAppData.merchant) {\n var merchant = this.models.checkoutAppData.merchant;\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\n tag: 'xo-generic-error',\n template: _template2['default'],\n\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\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 cart: _index.$CheckoutCartModel.instance(this.props.token).retrieve()['catch'](angular.noop),\n checkoutPayee: _index.$CheckoutPayeeModel.instance(this.props.token).retrieve()['catch'](angular.noop),\n auth: _index2.$AuthModel.instance().retrieve()['catch'](angular.noop),\n tokenizedWalletInfoModel: _app.$TokenizedWalletInfoModel.instance(this.props.token).retrieve()['catch'](angular.noop)\n };\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 _index3.$ReturnToMerchant.goTo(redirectUrl);\n };\n\n self.retryCheckout = function ($event) {\n $event.preventDefault();\n\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\n return (0, _squid.$renderContent)(key);\n };\n\n // Returns the content string, based on custom key handler\n self.getContent = function () {\n\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\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 if (self.errorCode === 'ANDROID_PAY_ALREADY_PROVISIONED') {\n return (0, _squid.$renderContent)('common.backToTokenizedWalletB', { type: brandName });\n } else {\n return (0, _squid.$renderContent)('common.backToTokenizedWallet', { type: brandName });\n }\n } else {\n var merchantName = _this.props.merchant;\n\n return (0, _index3.formatReturnContent)(_squid.$renderContent, merchantName);\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 if (this.models.checkoutAppData) {\n this.cancelLink = this.models.checkoutAppData.urls.cancel_url;\n }\n\n if (this.models.checkoutPayee) {\n var merchant = this.models.checkoutPayee.merchant;\n\n if (merchant.id && !this.hideCancelLink) {\n var hcl = _squid.$config.hideCancelLinkForMerchant;\n\n var shouldHide = hcl && hcl.indexOf(merchant.id) !== -1;\n if (shouldHide) {\n this.hideCancelLink = true;\n }\n }\n }\n\n if (this.models.cart) {\n this.walletTokenization = this.models.cart.isWalletTokenization();\n }\n\n this.personalizedBanner.show = this.models.auth && this.models.auth.rememberedOT() && (0, _squid.$feature)('oneTouchPersonalization');\n\n if (this.models.auth) {\n this.showLogoutLink = _squid.$util.param('source') !== 'consumerApp' && this.props.logout && SHOW_LOGOUT_LINK_CODES.indexOf(this.errorCode) > -1 && !this.models.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: this.models.auth.first_name,\n last_name: this.models.auth.last_name\n }) || this.models.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 if (titleKey) {\n if (titleKey === 'transactionRefusedTitle' && this.models.cart && this.models.cart.isBillingNoPurchase()) {\n this.titleKey = 'genericError.' + TRANSACTION_REFUSED_BA_TITLE_MSG['BA_NO_PURCHASE'];\n } else if (titleKey === 'transactionRefusedTitle' && this.models.cart && this.models.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\n_angular.$rootScope;\n\n_uiRouter.$stateParams;\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_logger.$logger;\n\n_index.$CheckoutAppDataModel;\n\n_index.$CheckoutCartModel;\n\n_index.$CheckoutPayeeModel;\n\n_index2.$AuthModel;\n\n_index3.$ReturnToMerchant;\n\n_index3.formatReturnContent;\n\n_app.$TokenizedWalletInfoModel;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-ui-components/src/generic-error/directive.js\n// module id = ./components/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// ./components/xo-ui-components/src/generic-error/template.html\n// module id = ./components/xo-ui-components/src/generic-error/template.html\n// module chunks = 0","\n\ndefine(['jquery', 'angular', 'squid/index', 'text!./template.html', 'xo-models/src/checkout/index'], function ($, angular, squid, template) {\n\n return angular.module('xo-generic-message.directive', ['squid', 'xomodel.checkout']).directive('xoGenericMessage', function ($rootScope) {\n\n return {\n template: template,\n\n scope: {\n token: '=?'\n },\n\n controller: function controller($scope, $rootScope, // eslint-disable-line no-shadow\n $stateParams, $state, $logger, $CheckoutAppDataModel, $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 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 }).then(function () {\n var merchant = $scope.checkoutAppData.merchant;\n $scope.merchant = merchant.brand_name || merchant.merchant_name || merchant.merchant_email;\n });\n\n $scope.$on('$destroy', function (event) {\n $('.paypalHeaderWrapper').show();\n $('.footerWrapper').removeClass('genericMessage');\n });\n }\n };\n });\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-ui-components/src/generic-message/directive.js\n// module id = ./components/xo-ui-components/src/generic-message/directive.js\n// module chunks = 0","\n\ndefine(['squid/index', 'text!./template.html'], function (squid, template) {\n\n squid.module('xo-message.directive', ['squid']).directive('xoMessage', 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// ./components/xo-ui-components/src/message/directive.js\n// module id = ./components/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\n scope: {\n show: '=?',\n showCloseButton: '=?',\n enableCloseOnEscape: '=?',\n onClose: '=?',\n overrideDefaultContainer: '@?' // Boolean to determine if default styling should be applied to container\n },\n\n controller: function controller($scope) {\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\n if ($scope.onClose) {\n $scope.onClose();\n }\n };\n }\n };\n});\n\n_squid.$registerDirective;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-ui-components/src/modal/directive.js\n// module id = ./components/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// ./components/xo-ui-components/src/modal/template.html\n// module id = ./components/xo-ui-components/src/modal/template.html\n// module chunks = 0","\n\nexports.__esModule = true;\n\nvar _angular = require('angular');\n\nvar _squid = require('squid');\n\nexports['default'] = (0, _angular.$registerDirective)('prefix-attrs-with', function () {\n return {\n restrict: 'A',\n link: function link(scope, elem, attrs, controller) {\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_angular.$registerDirective;\n\n_squid.$util;\nmodule.exports = exports['default'];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-ui-components/src/prefix-attrs-with/directive.js\n// module id = ./components/xo-ui-components/src/prefix-attrs-with/directive.js\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: function controller($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// ./components/xo-ui-components/src/spinner-button/directive.js\n// module id = ./components/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: function controller($scope, $element, $rootScope, $Api, $locale, $logger, $loader, $timeout) {\n\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// ./components/xo-ui-components/src/spinner/directive.js\n// module id = ./components/xo-ui-components/src/spinner/directive.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\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 }\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// ./components/xo-ui-components/src/tooltip/directive.js\n// module id = ./components/xo-ui-components/src/tooltip/directive.js\n// module chunks = 0","module.exports = \"
          \\n
          \\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-ui-components/src/tooltip/template.html\n// module id = ./components/xo-ui-components/src/tooltip/template.html\n// module chunks = 0","\n\nvar _angular = require('angular');\n\nvar _jquery = require('jquery');\n\nvar _jquery2 = _interopRequireDefault(_jquery);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n(0, _angular.$registerDirective)('scrollTop', function () {\n // Generic scroll top.\n return {\n link: function link(scope, element, attr) {\n var targetId = attr['scrollTop'];\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, _angular.$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 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.$registerDirective;\n\n_angular.$parse;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-ui-components/src/ui-utils/directive.js\n// module id = ./components/xo-ui-components/src/ui-utils/directive.js\n// module chunks = 0","\n\ndefine(['jquery', 'angular', 'squid/index'], function ($, angular, squid) {\n squid.module('xo-validation.directive', ['squid']).directive('xoValidation', function () {\n return {\n template: '',\n restrict: 'A',\n require: 'ngModel',\n\n link: function link(scope, elem, attr, ngModel) {\n\n var validationUtil = {\n\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 * 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 (angular.isString(regex)) {\n regex = new RegExp(regex);\n }\n\n return regex ? regex.test(value) : true;\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 // returns whether alphabetic or not\n alphabetic: function alphabetic(value) {\n return this.valid(value, /[A-Za-z]+$/);\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\n validBankAccount: function validBankAccount(value) {\n if (!scope.showIBAN) {\n return this.numeric(value);\n }\n\n return true;\n },\n\n validRouting: function validRouting(value) {\n if (!scope.showIBAN) {\n return this.valid(value, /^\\d{8}$/);\n }\n return true;\n },\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\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 return true;\n },\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 // @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\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\n validStreet: function validStreet(value) {\n return this.valid(value, /^([A-Za-z0-9-. ]*)$/);\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\n validDobYear: function validDobYear(value) {\n return value !== 'YYYY';\n },\n\n validDobDay: function validDobDay(value) {\n return value !== 'DD';\n },\n\n validDobMonth: function validDobMonth(value) {\n return value !== 'MM';\n },\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 return false;\n },\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\n validEmailOrPhone: function validEmailOrPhone(value) {\n if (!value) {\n return false;\n }\n\n return this.validEmail(value) || this.validPhone(value);\n },\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\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 // 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 /* 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 month = parseInt(month, 10);\n } else {\n return false;\n }\n\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 // 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 // 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 // pads a number to two digits\n twoDigits: function twoDigits(value) {\n return value < 10 ? '0' + value : '' + value;\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\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 || angular.isString(regex) && regex.indexOf('validationPattern') > -1) {\n return !this.empty(value);\n }\n\n value = value && value.toUpperCase();\n\n if (angular.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\n validExpiry: function validExpiry(value, options) {\n var $monthEl = $('[ng-model=\"card.expiry_month\"]');\n var $yearEl = $('[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\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\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 setExpiryValidity: function setExpiryValidity(options) {\n if (!options) {\n return true;\n }\n\n var cardType = options.cardType || '',\n 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 = $('#startmonth');\n var $yearEl = $('#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\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\n setDOBValidity: function setDOBValidity(options) {\n if (!options) {\n return true;\n }\n\n var dobEnabledCards = ['COFIDIS', 'COFINOGA', 'CETELEM'];\n\n var dobValidity = true;\n\n var $monthEl = $('#dobMonthCC');\n var $dayEl = $('#dobDayCC');\n var $yearEl = $('#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\n validName: function validName(value) {\n return this.valid(value, /^([a-zA-Z,\\xC0-\\xFF,\\u00C0-\\u017F\\,\\-\\s\\,\\'])*$/);\n // ' this comment is to un-confuse editors on synax coloring because of the single quote above\n },\n\n isChecked: function isChecked(value, options) {\n // $.is does not exist in $\n // eslint-disable-line angular/ng_angularelement\n var $el = $(options.el);\n\n return $el.is(':checked');\n },\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 = angular.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//////////////////\n// WEBPACK FOOTER\n// ./components/xo-validation/dist/directive.js\n// module id = ./components/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: function controller($scope, $rootScope, $timeout, $window, $Resolve3DS, $CheckoutAppDataModel, $config, $locale, $logger) {\n\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 timeout3DSConfig = $config.timeout3DS || { 'DEFAULT': 30000 };\n\n var lightBoxTimeout = timeout3DSConfig[$locale.country] || timeout3DSConfig['DEFAULT'];\n\n function show3DSLightBox() {\n if ($scope.show3DS) {\n var lightbox = angular.element(document.getElementById('light-box'));\n lightbox.addClass('open');\n $scope.show3DS = false;\n $rootScope.$emit('loaded');\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\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\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 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 $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\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\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 lightbox.removeClass('open');\n\n $timeout(function () {\n var lightboxMask = angular.element(document.getElementById('mask'));\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 $scope.on3DSPageLoad = show3DSLightBox;\n\n $window.on3DSPageLoad = $scope.on3DSPageLoad;\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// ./components/xo-wallet-components/src/3ds/directive.js\n// module id = ./components/xo-wallet-components/src/3ds/directive.js\n// module chunks = 0","\n\ndefine(['jquery', 'squid/index', 'text!./template.html', 'jquery-mask-plugin', 'xo-models/src/fi/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', 'xo-dropdown.directive', 'xo-error-tooltip.directive']).directive('xoBankInput', function ($rootScope) {\n return {\n template: template,\n\n scope: {\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: function controller($scope, $AddBankModel, $pxp, $locale) {\n\n function setShowIBAN() {\n $scope.showIBAN = $scope.isUnbranded ? true : false;\n return $pxp('xo_xoonboarding_iban_throttle', { 'ctx.COUNTRY': $locale.country }, 'xo_xoonboarding_iban_throttle_test').then(function (result) {\n if (result) {\n // US1009498: default to IBAN on billing page when its test\n $scope.showIBAN = true;\n }\n });\n }\n\n setShowIBAN();\n\n var days = [];\n var months = [];\n var years = [];\n\n var i;\n for (i = 1; i <= 31; i += 1) {\n var d = i < 10 ? '0' + i : i.toString();\n days.push(d);\n }\n\n for (i = 1; i <= 12; i += 1) {\n var m = i < 10 ? '0' + i : i.toString();\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 };\n });\n});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-wallet-components/src/add-bank/bank-input/directive.js\n// module id = ./components/xo-wallet-components/src/add-bank/bank-input/directive.js\n// module chunks = 0","\n\ndefine(['angular', 'text!./template.html', 'angular-ui-utils/ui-utils.min', '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', 'ui.validate', '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: function controller($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// ./components/xo-wallet-components/src/add-card/addCep/directive.js\n// module id = ./components/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', 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// ./components/xo-wallet-components/src/add-card/addCep/route.js\n// module id = ./components/xo-wallet-components/src/add-card/addCep/route.js\n// module chunks = 0","\n\ndefine(['jquery', 'squid', 'text!./template.html', 'angular-ui-utils/ui-utils.min', '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', 'ui.validate', '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: function controller($scope, $populate, $BillingAddressesModel, $BillingAddressModel, $PrefillAddressModel, $feature, $state, $element, $config, $locale, $timeout) {\n var country = $locale.getCountryCodeISO();\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 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 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 $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 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 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// ./components/xo-wallet-components/src/add-card/addbilling/directive.js\n// module id = ./components/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', 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// ./components/xo-wallet-components/src/add-card/addbilling/route.js\n// module id = ./components/xo-wallet-components/src/add-card/addbilling/route.js\n// module chunks = 0","\n\nvar _cardMetaData = require('../cardMetaData');\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', 'angular-ui-utils/ui-utils.min', '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', 'ui.validate', '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: function controller($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.isCUP = function () {\n return $scope.cardmodel.card && $scope.cardmodel.card.type && $scope.cardmodel.card.type === 'CUP';\n };\n\n $scope.flag = function (field) {\n return _cardMetaData.$CardMetaData.getMetaData($scope.cardmodel.card, field);\n };\n\n $scope.buttonText = function () {\n var contentString = 'creditcard.addBtn';\n if ($scope.cardmodel.card.isExisting()) {\n contentString = 'creditcard.updateBtn';\n } else if ($scope.isCUP()) {\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 $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 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.isCUP() && $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.isCUP()) {\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 $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) {}\n });\n }\n };\n });\n }\n };\n });\n});\n\n_cardMetaData.$CardMetaData;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-wallet-components/src/add-card/addcard/directive.js\n// module id = ./components/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', 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// ./components/xo-wallet-components/src/add-card/addcard/route.js\n// module id = ./components/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\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.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\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-wallet-components/src/add-card/cardExpiry/directive.js\n// module id = ./components/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// ./components/xo-wallet-components/src/add-card/cardExpiry/template.html\n// module id = ./components/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 CUPCREDIT: {\n fields: {\n address: false,\n phone: true\n },\n length: {\n max: 19\n }\n },\n\n CUPAMEXCREDIT: {\n fields: {\n address: false,\n phone: true\n },\n length: {\n cvv: 4,\n min: 15,\n max: 15\n }\n },\n\n CUPDEBIT: {\n fields: {\n address: false,\n cvv: false,\n expiry: false,\n phone: true\n },\n length: {\n max: 19\n }\n },\n\n CUPAMEXDEBIT: {\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\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 types.some(function (type) {\n var metaData = cardMetaData[type];\n if (metaData && metaData.pattern && metaData.pattern.test(number)) {\n result = type;\n return true;\n }\n });\n return result;\n}\n\nvar $CardMetaData = exports.$CardMetaData = {\n getMetaData: function getMetaData(card, field) {\n var cardType = card && card.type || 'DEFAULT';\n if (cardType === 'CUP') {\n cardType = cardType + (card.dualType ? card.dualType : '');\n cardType = cardType + (['DEBIT', 'DEBITCARD'].indexOf(card.productType) > -1 ? 'DEBIT' : 'CREDIT');\n }\n return _squid.$Class.get(CARD_META_DATA[cardType], field);\n },\n getCardType: function getCardType(types, number) {\n var cardType = {};\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 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// ./components/xo-wallet-components/src/add-card/cardMetaData/index.js\n// module id = ./components/xo-wallet-components/src/add-card/cardMetaData/index.js\n// module chunks = 0","\n\nvar _cardMetaData = require('../cardMetaData');\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\ndefine(['squid/index', 'text!./template.html', 'jquery', 'xo-models/src/fi/index', 'angular-ui-utils/ui-utils.min', 'xo-form-components/src/name-input/directive'], function (squid, template, $) {\n\n squid.module('xo-add-card.creditcard-input.directive', ['squid', 'xomodel.fi', 'xo-tooltip.directive', 'xo-error-tooltip.directive', 'xo-name-input.directive', 'ui.validate']).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('xoCreditCard', function ($timeout, $util) {\n return {\n template: template,\n restrict: 'E',\n\n scope: {\n token: '=?',\n card: '=?',\n user: '=?',\n selectedPromotionCardType: '=?',\n promotion: '=?',\n cardTypeChanged: '=?',\n cardNumberChanged: '=?',\n manageCardFlow: '=?'\n },\n controller: function controller($scope, $populate, $CardTypesModel, $Class, $locale, $CardTypeFromBinModel, $config, $feature, $pxp, $logger, $CheckoutCartModel, $FlowEligibilityModel, $meta) {\n $scope.locale = $locale;\n $scope.country = $scope.locale.country;\n\n var CARD_TYPE_VISA = 'VISA';\n var isUnsupportedCard;\n var lastVerifiedBin = '';\n var lastRequestedBin = ''; // bin requested to service to fetch card type and pending response.\n\n function updateNonVisaCurrencyConversion() {\n $scope.nonVisaDCCFlag = undefined;\n return $pxp('xo_xoonboarding_dcc_nonvisa', { 'ctx.COUNTRY': $scope.locale.country }, 'xo_xoonboarding_dcc_nonvisa_test').then(function (result) {\n if (result) {\n $scope.nonVisaDCCFlag = true;\n checkCardForDccCall();\n }\n });\n }\n\n updateNonVisaCurrencyConversion();\n\n function setConversionData(data) {\n $scope.card.currencyConvData = data;\n $scope.conversion = data;\n }\n\n function getCurrencyConversion(number) {\n $scope.checkoutCart.action('calculateCurrencyConversion', {\n data: {\n cardNumber: number,\n country: $locale.country\n },\n success: function success(result) {\n setConversionData(result);\n\n if (!result) {\n return;\n }\n\n $scope.conversion.formattedFromStr = truncateCurrencyConversionStr(result.from, result.from_amount);\n $scope.conversion.formattedToStr = truncateCurrencyConversionStr(result.to, result.to_amount);\n },\n contingencies: {\n DEFAULT: conversionErrorHandler\n },\n error: conversionErrorHandler\n });\n\n function conversionErrorHandler(key) {\n /**\n * Set $scope.card.currencyConvData && $scope.conversion to `undefined` so that\n * if this isn't the first card the user entered and the previous card got a 200\n * response from the API, then we don't want the conversion data for that card to\n * be used for the newly entered card.\n */\n setConversionData();\n $logger.warn('Contingency encountered during calculateCurrencyConversion call.');\n return;\n }\n }\n\n /* @params\n * fullStr: The full formatted currency conversion string returned from downstream service.\n * amtStr: Just the currency conversion amount portion of the full string returned from downstream.\n */\n function truncateCurrencyConversionStr(fullStr, amtStr) {\n try {\n var fixedPrecision = Number(amtStr).toFixed(4);\n var formattedStr = fullStr.replace(amtStr, fixedPrecision);\n if (fixedPrecision == 0) {\n // eslint-disable-line\n throw new Error('Currency conversion truncation error encountered, defaulting to full unformatted currencyConversion string.');\n }\n return formattedStr;\n } catch (e) {\n $logger.warn('currency_conversion_error', {\n reason: 'Error formatting currency conversion data to formatted str in wallet/add-card/creditcard-input directive',\n error: e\n });\n return fullStr;\n }\n }\n\n function currencyConvCardTypeChangeHandler() {\n $scope.card.ppconversion = 'PAYPAL';\n\n // Reset `this.conversion` and `this.card.currencyConvData` since card has changed\n setConversionData();\n checkCardForDccCall();\n }\n\n function checkCardForDccCall() {\n var cartCurrency = $scope.checkoutCart.get('purchase.amounts.total.currency_code');\n var billingCurrency = $util.getProperty($scope, 'locale.metadata.currency.code');\n\n // If the cart currency and the currency for the user's billing address are the same then we\n // don't need to show the loading spinner or call the DCC API since no conversion is necessary\n if (cartCurrency && billingCurrency && cartCurrency === billingCurrency) {\n return;\n }\n\n var number = ($scope.card.number || '').replace(/[^0-9]+/g, '').slice(0, $scope.maxLength());\n var isCardLenValid = $scope.cardLengthValid(number);\n\n // If the card length isn't valid, we reset `$scope.conversion` and `$scope.card.currencyConvData\n // because card length has been reset, and we are in the process of entering in new valid card number.\n if (!isCardLenValid) {\n setConversionData();\n }\n\n // Combined check for all conditions for a getCurrencyConversion call\n if (isCardLenValid && isCardTypeValid() && isCurrencyConversionUncalled() && $scope.nonVisaDCCFlag) {\n getCurrencyConversion(number);\n }\n\n // if getCurrencyConversion has already been called for card type, don't call it again\n function isCurrencyConversionUncalled() {\n return $scope.conversion === undefined;\n }\n\n // non-visa and not undefined\n function isCardTypeValid() {\n return $scope.card.type !== CARD_TYPE_VISA && $scope.card.type !== undefined;\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 = (number || '').replace(/[^0-9]+/g, '');\n\n return number.length >= $scope.flag('length.min') && number.length <= $scope.flag('length.max');\n };\n\n $scope.cardLuhnValid = function (input) {\n\n if (!$scope.flag('luhn')) {\n return true;\n }\n\n if ($scope.card && $scope.card.isExisting()) {\n return true;\n }\n\n input = (input || '').replace(/[^0-9]+/g, '');\n\n var sum = 0;\n var numdigits = input.length;\n var parity = numdigits % 2;\n var i = 0;\n var digit;\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 $scope.isPlcc = $scope.selectedPromotionCardType && $scope.selectedPromotionCardType.type === 'plcc' ? true : false;\n\n $scope.flag = function (field) {\n if ($scope.isPlcc && !$scope.card.type) {\n $scope.card.type = 'PLCC';\n }\n return _cardMetaData.$CardMetaData.getMetaData($scope.card, field);\n };\n\n $scope.maxLength = function () {\n\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 = ($scope.card.number || '').replace(/[^0-9]+/g, '').slice(0, $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 (result) {\n $scope.showLabels = result && result.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 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 $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 return item < 10 ? '0' + s : s;\n }\n\n $scope.supportedCardNamesCommaSeparated = $scope.cardTypes.supportedNames().join(', ');\n\n $scope.$on('localeChange', function () {\n\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\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 return Boolean(['ES', 'FR', 'GB', 'IT'].indexOf($scope.locale.country) > -1) || forceDropDown;\n };\n\n $scope.showDropDown = function () {\n\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 number = formatted.join('');\n return number;\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.ccOnBlur = function () {\n if ($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 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 });\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 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 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.isCupSecureCard = 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.isCupSecureCard = lastVerifiedBin.isCupSecureCard;\n $scope.card.dualType = lastVerifiedBin.dualType;\n $scope.card.productType = lastVerifiedBin.productType;\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 // Make sure isCupSecureCard is set to false, as there is a possibility the next\n // retrieve could indicate it as a CUP UPOP card.\n $scope.card.isCupSecureCard = false;\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 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 (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 // CUP Non Upop card is a CUP Secure Card.\n $scope.card.isCupSecureCard = type === 'CUP' && !result.isUpop;\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 isCupSecureCard: type === 'CUP' && !result.isUpop,\n dualType: result.dualType,\n productType: result.productType\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 = ($scope.card.number || '').replace(/[^0-9]+/g, '').slice(0, $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.isNonVisaCurrencyConversionEnabled = function () {\n return $scope.conversion && $scope.card && $scope.card.type && $scope.card.type !== CARD_TYPE_VISA;\n };\n\n $scope.isPPConversion = function () {\n return $scope.card && $scope.card.ppconversion === 'PAYPAL';\n };\n\n $scope.isVendorConversion = function () {\n return $scope.card && $scope.card.ppconversion === 'VENDOR';\n };\n\n $scope.showCardIssuerRateAvailable = function () {\n return $scope.isPPConversion() && ['CA', 'US'].indexOf($scope.country) > -1;\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\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 // 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 if ($feature('disableFullWidthCharacters') && regex.test($scope.card.number)) {\n $logger.info('checkout_fpti', {\n 'is_fullwidth_character': true\n });\n }\n\n var number = ($scope.card.number || '').replace(/[^0-9]+/g, '').slice(0, $scope.maxLength());\n var formattedNumber;\n\n $scope.unformattedCardNumber = number;\n\n // check to see if DCC service call necessary\n checkCardForDccCall();\n\n // Attempt to determine the card type\n var cardType;\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 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 $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\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-wallet-components/src/add-card/creditcard-input/directive.js\n// module id = ./components/xo-wallet-components/src/add-card/creditcard-input/directive.js\n// module chunks = 0","\n\nexports.__esModule = true;\nexports.$xoCvvDirective = undefined;\n\nvar _squid = require('squid');\n\nvar _cardMetaData = require('../cardMetaData');\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.maskCVV = (0, _squid.$feature)('maskCVV', false, _squid.$locale.country);\n this.cvvLength = function () {\n return _cardMetaData.$CardMetaData.getMetaData(_this.props.card, 'length.cvv');\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\n//////////////////\n// WEBPACK FOOTER\n// ./components/xo-wallet-components/src/add-card/cvv/directive.js\n// module id = ./components/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// ./components/xo-wallet-components/src/add-card/cvv/template.html\n// module id = ./components/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: function controller($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// ./components/xo-wallet-components/src/add-card/directive.js\n// module id = ./components/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 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// ./components/xo-wallet-components/src/add-card/dob/directive.js\n// module id = ./components/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// ./components/xo-wallet-components/src/add-card/dob/template.html\n// module id = ./components/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// ./components/xo-wallet-components/src/add-card/index.js\n// module id = ./components/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', 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// ./components/xo-wallet-components/src/add-card/route.js\n// module id = ./components/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: function controller($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// ./components/xo-wallet-components/src/add-card/selectcard/directive.js\n// module id = ./components/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', 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// ./components/xo-wallet-components/src/add-card/selectcard/route.js\n// module id = ./components/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: true\n },\n phone: {\n type: 'var',\n required: false\n },\n cardModel: {\n type: 'var',\n required: true\n },\n onSuccess: {\n type: 'var',\n required: true\n },\n message: {\n type: 'var',\n required: true\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 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// ./components/xo-wallet-components/src/confirm-upop/confirm/directive.js\n// module id = ./components/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// ./components/xo-wallet-components/src/confirm-upop/confirm/template.html\n// module id = ./components/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: true\n },\n phone: {\n type: 'var',\n required: false\n },\n cardModel: {\n type: 'var',\n required: true\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 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 return _addCard.$CardMetaData.getMetaData(_this.cardModel, field);\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_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// ./components/xo-wallet-components/src/confirm-upop/directive.js\n// module id = ./components/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: true\n },\n phone: {\n type: 'var',\n required: false\n },\n cardModel: {\n type: 'var',\n required: true\n },\n onSuccess: {\n type: 'var',\n required: true\n },\n flag: {\n type: 'var',\n required: true\n },\n setErrorData: {\n type: 'var',\n required: true\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 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// ./components/xo-wallet-components/src/confirm-upop/init/directive.js\n// module id = ./components/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// ./components/xo-wallet-components/src/confirm-upop/init/template.html\n// module id = ./components/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// ./components/xo-wallet-components/src/confirm-upop/route.js\n// module id = ./components/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// ./components/xo-wallet-components/src/confirm-upop/template.html\n// module id = ./components/xo-wallet-components/src/confirm-upop/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// ./components/xo-wallet-components/src/fi-contingency-list/contingencies.js\n// module id = ./components/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', 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 if (errorData.errorCodes && errorData.errorCodes.length) {\n errorData.errorCodes.forEach(function (errorCode) {\n var contentKey = contingencyList[errorCode] || defaultKey || 'errorGeneral';\n var message;\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 $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 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 $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// ./components/xo-wallet-components/src/fi-contingency-list/util.js\n// module id = ./components/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: function controller($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 $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// ./components/xo-wallet-components/src/installment-options/directive.js\n// module id = ./components/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 days.push(d);\n }\n\n for (i = 1; i <= 12; i += 1) {\n var m = i < 10 ? '0' + i : i.toString();\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 var shippingAddress = this.models.checkoutCart.get('purchase.shipping_address');\n var billingAddress = this.models.checkoutCart.get('billing_address') || {};\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 _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 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();\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 // 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// ./components/xo-wallet-components/src/pay-upon-invoice/directive.js\n// module id = ./components/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//////////////////\n// WEBPACK FOOTER\n// ./components/xo-wallet-components/src/pay-upon-invoice/template.html\n// module id = ./components/xo-wallet-components/src/pay-upon-invoice/template.html\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 payeeModel = models.payeeModel;\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 merchantId = payeeModel.getId();\n var _$config$fallbackWhit = _squid.$config.fallbackWhitelist;\n _$config$fallbackWhit = _$config$fallbackWhit === undefined ? {} : _$config$fallbackWhit;\n var _$config$fallbackWhit2 = _$config$fallbackWhit.exceptions,\n exceptions = _$config$fallbackWhit2 === undefined ? {} : _$config$fallbackWhit2,\n throttle = _$config$fallbackWhit.throttle,\n _$config$fallbackWhit3 = _$config$fallbackWhit.whitelist,\n whitelist = _$config$fallbackWhit3 === undefined ? [] : _$config$fallbackWhit3;\n\n // Merchant is in the exceptions list -- fallbacks not allowed\n\n if (exceptions.hasOwnProperty(merchantId)) {\n _logger.$logger.info('fallback_inhibited_for_merchant', { merchantId: merchantId, reason: reason });\n return goToGenericError();\n }\n\n if (err instanceof _squid.$FallbackError) {\n var product = 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 fallbackToUx = (_squid.$config.fallbackAriesUnsupportedToUx || []).indexOf(country) > -1;\n\n product = fallbackToUx ? 'ux' : product || 'ux';\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 return (0, _squid.$pxp)('xo_xoon_fallback_eligibility', { 'ctx.COUNTRY': _squid.$locale.country }, '(xo_xoon_fallback_eligibility_)(.*)').then(function () {\n var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n treatment_name = _ref.treatment_name;\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 and random\n * is below the throttle value.\n *\n * PXP OVERRIDE - TAKES PRECEDENCE OVER CONFIG WHITELIST:\n * When the 'xo_xoon_fallback_eligibility' PXP returns 'xo_xoon_fallback_eligibility_disabled'\n * then the error will result in the user being redirected to the generic error page. If the\n * users' browser supports session storage they will be shown the retry link.\n */\n var fallbacksDisabled = treatment_name === 'xo_xoon_fallback_eligibility_disabled';\n var fallbackNotWhitelisted = throttle > 0 && whitelist.indexOf(reason) === -1;\n\n if (fallbacksDisabled || fallbackNotWhitelisted) {\n var showRetryLink = fallbacksDisabled || (0, _squid.$experiment)('fallback_reason_not_whitelisted', throttle, _angular.$rootScope.token, { reason: reason });\n\n // We're using sessionStorage for retry detection\n if (_squid.$util.sessionStorageEnabled() && showRetryLink) {\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 } else if (fallbacksDisabled) {\n // If fallbacks are disabled and sessionStorage isn't enabled\n // then show generic error page without retry link\n return goToGenericError();\n }\n }\n\n _logger.$logger.info('fallback_reason_whitelisted', { reason: reason, product: product });\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 })['catch'](function (pxpErr) {\n _logger.$logger.info('fallback_pxp_error', { reason: pxpErr });\n return goToGenericError(pxpErr);\n });\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.$experiment;\n\n_squid.$util;\n\n_squid.$locale;\n\n_squid.$populate;\n\n_squid.$pxp;\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}, _$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/app/index');\n\nvar _index4 = require('xo-models/src/onboard/index');\n\nvar _index5 = 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'),\n localeParam: _squid.$util.param('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: _index4.$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 _index5.$AuthModel.instance().retrieve().then(function (auth) {\n if (auth.logged_in || auth.email) {\n return auth.action('logout');\n }\n });\n}, function checkTransactionEligibility() {\n if (_squid.$util.param('data')) {\n return _squid.$promise.resolve(_logger.$logger.info('prox_upgrade_transaction_ignore_XOE_CALL'));\n }\n\n return _squid.$promise.hash({\n transactionEligibility: _index3.$TransactionEligibilityModel.instance(_angular.$rootScope.token).retrieve()\n }).then(function (data) {\n if (data.transactionEligibility.eligible) {\n return _squid.$promise.resolve(_logger.$logger.info('transaction_eligible'));\n }\n\n _logger.$logger.info('transaction_ineligible');\n\n return _angular.$q.reject(new _squid.$FallbackError({\n reason: 'transaction_ineligible',\n product: 'ux'\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 merchant_email: identityData.email,\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 return (0, _squid.$pxp)('xo_xoon_defer_tagManager', { 'ctx.COUNTRY': _squid.$locale.country }, 'xo_xoon_defer_tagManager_treatment').then(function (result) {\n if (result) {\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 scriptTag.defer = true;\n insertScript(scriptTag);\n });\n } else {\n var scriptTag = createTagManagerScript(tagManagerUrl);\n scriptTag.async = true;\n insertScript(scriptTag);\n }\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 checkWpsSubscriptionEligibility() {\n // in the the guest upgrade flow, the $rootScope.token is undefined, so this will skip the check if so\n if (_angular.$rootScope.token) {\n return _index2.$CheckoutAppDataModel.instance(_angular.$rootScope.token).retrieve().then(function (appData) {\n if (appData && appData.is_wps_subscription_flow()) {\n return (0, _squid.$pxp)('xo_subscription_hermes_xoon', { 'ctx.COUNTRY': _squid.$locale.country }, 'xo_subscription_treatment_xoon').then(function () {\n var result = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n var treatmentName = result.treatment_name;\n\n if (treatmentName !== 'xo_subscription_treatment_xoon') {\n return _angular.$q.reject(new _squid.$FallbackError({\n reason: 'fallback_wps_subscription_pxp_control',\n product: 'ux'\n }));\n }\n });\n }\n });\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_index3.$TransactionEligibilityModel;\n\n_index.$CheckoutClientDataModel;\n\n_index4.$GuestUpgradeModel;\n\n_index5.$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.$pxp;\n\n_squid.$promise;\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 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\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 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\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(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')) {\n // this is specifically for nativexo where redirect_uri is passed in query param\n // the following query params need to be appended to the redirect_uri\n params.return_uri = _this.models.checkoutAppData.get('urls.return_url');\n params.opType = 'payment';\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 if (window.xchild) {\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 xparams.returnUrl = url;\n return window.xprops.onAuthorize(xparams);\n }\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 (_index.$integration.getConfig('REDIRECT_QUERY_PARAM')) {\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'],\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 $scope.onCurrencyConversionDone = function () {\n $state.go($scope.backUri);\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', 'xo-guest-components/src/guest/currencyConversion/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 name: '$CurrencyConversionOptionsRoute',\n attributes: {\n token: 'token',\n 'parent-model': 'singleStepModel',\n 'is-pre-plan': 'true',\n 'done-fn': 'onCurrencyConversionDone'\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.$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 $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($util) {\n // eslint-disable-line no-shadow\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 landingFlow = function landingFlow() {\n var merchantCountry = models.checkoutAppData.get('merchant.merchant_country');\n var merchantId = models.checkoutPayeeModel.getId();\n var paymentMethodViaUrl = $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 /*\n * This function is called on final route returned by this router file\n * Description:\n * Currently the scope of this function is limited to logging\n * In future we can extend this scope and update the docs\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 var fundingSource = void 0;\n\n if (_squid.$config.deploy.isLocal() || _squid.$config.deploy.isStage()) {\n var passedInExp = $util.param('showExp');\n\n fundingSource = $util.param('fundingSource');\n if ('guest'.indexOf(passedInExp) > -1) {\n return 'checkout.guest';\n }\n\n if ('signup'.indexOf(passedInExp) > -1) {\n return 'checkout.signup';\n }\n }\n\n return _index2.$FlowEligibilityModel.instance(_angular.$rootScope.token).retrieve({\n params: {\n 'localeCountry': _squid.$locale.country,\n 'fundingSource': window.xprops && window.xprops.fundingSource || fundingSource,\n 'merchantId': merchantId,\n 'merchantCountry': merchantCountry\n }\n }).then(function (flowEligibility) {\n var mode = flowEligibility.guest ? 'guest' : 'signup';\n\n _logger.$logger.info(mode + '_flow_offered_by_epm_at_route');\n\n var appRoute = mode === 'signup' ? 'checkout.signup' : 'checkout.guest';\n\n return getProcessedRoute(appRoute);\n });\n }\n\n 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' && $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 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 landingFlow();\n }\n }\n });\n } else {\n return landingFlow();\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.$feature;\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\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 $scope.onCurrencyConversionDone = function () {\n $state.go($scope.backUri);\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', 'xo-guest-components/src/guest/currencyConversion/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 name: '$CurrencyConversionOptionsRoute',\n attributes: {\n token: 'token',\n 'parent-model': 'singleStepModel',\n 'is-pre-plan': 'true',\n 'done-fn': 'onCurrencyConversionDone'\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":""}