UNPKG

@adyen/adyen-web

Version:

[![npm](https://img.shields.io/npm/v/@adyen/adyen-web.svg)](https://www.npmjs.com/package/@adyen/adyen-web)

3 lines (2 loc) 1.56 kB
import{createElement as e}from"../../external/preact/dist/preact.js";import t from"../helpers/OpenInvoiceContainer/OpenInvoiceContainer.js";import r from"../internal/ConsentCheckboxLabel/ConsentCheckboxLabel.js";import{ALLOWED_COUNTRIES as o,rivertyConsentUrlMap as n}from"./config.js";import{getConsentUrl as c}from"../../utils/getConsentUrl.js";import{TxVariants as a}from"../tx-variants.js";function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}class s extends t{formatProps(t){var a;return p(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),o.forEach(function(t){i(e,t,r[t])})}return e}({},super.formatProps(t)),{allowedCountries:t.countryCode?[t.countryCode]:o,consentCheckboxLabel:e(r,{url:c(t.countryCode,null===(a=t.i18n)||void 0===a?void 0:a.locale,n)})})}}i(s,"type",a.afterpay_default),i(s,"txVariants",[a.afterpay_default,a.afterpay]);export{s as default}; //# sourceMappingURL=AfterPay.js.map