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.43 kB
import{CardElement as t}from"./Card.js";import{CVC_POLICY_HIDDEN as r}from"../internal/SecuredFields/lib/constants.js";import{TxVariants as e}from"../tx-variants.js";function o(t,r,e){return r in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function n(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{},n=Object.keys(e);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(e).filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.forEach(function(r){o(t,r,e[r])})}return t}function c(t,r){return r=null!=r?r:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):function(t){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);r.push.apply(r,e)}return r}(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t}class s extends t{formatData(){const t=super.formatData();return t.paymentMethod.type=this.constructor.type,t}formatProps(t){return c(n({},super.formatProps(t)),{type:e.bcmc,brand:e.bcmc,cvcPolicy:r})}constructor(t,r){super(t,r),o(this,"onBrand",t=>{this.props.onBrand&&this.props.onBrand(t)})}}o(s,"type",e.bcmc),o(s,"defaultProps",c(n({},t.defaultProps),{brands:["bcmc","maestro","visa"]}));export{s as default}; //# sourceMappingURL=Bancontact.js.map