@adyen/adyen-web
Version:
[](https://www.npmjs.com/package/@adyen/adyen-web)
3 lines (2 loc) • 1.83 kB
JavaScript
import{GiftcardElement as e}from"../Giftcard/Giftcard.js";import{MealVoucherFields as t}from"./components/MealVoucherFields.js";import{TxVariants as r}from"../tx-variants.js";function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){o(e,t,r[t])})}return e}function a(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 i extends e{formatProps(e){return n({brand:e.type},e)}formatData(){var e,t,r,o;return{paymentMethod:{type:this.constructor.type,brand:this.props.brand,encryptedCardNumber:null===(e=this.state.data)||void 0===e?void 0:e.encryptedCardNumber,encryptedSecurityCode:null===(t=this.state.data)||void 0===t?void 0:t.encryptedSecurityCode,encryptedExpiryMonth:null===(r=this.state.data)||void 0===r?void 0:r.encryptedExpiryMonth,encryptedExpiryYear:null===(o=this.state.data)||void 0===o?void 0:o.encryptedExpiryYear}}}constructor(e,r){super(e,a(n({},r),{pinRequired:!0,expiryDateRequired:!0,fieldsLayoutComponent:t}))}}o(i,"type",r.mealVoucher_FR),o(i,"txVariants",[r.mealVoucher_FR,r.mealVoucher_FR_natixis,r.mealVoucher_FR_sodexo,r.mealVoucher_FR_groupeup]);export{i as MealVoucherFRElement,i as default};
//# sourceMappingURL=MealVoucherFR.js.map