ng-easycommerce 0.0.600 → 0.0.602
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +938 -934
- package/assets/bamboo.html +145 -145
- package/assets/bancardCatastro.html +49 -49
- package/assets/bancardFrameBase.html +104 -104
- package/assets/cecaFrameRedirectBase.html +172 -172
- package/assets/decidirFormEc.html +516 -516
- package/assets/docs/COOKIES.md +158 -158
- package/assets/docs/Parametros-Frontend.md +56 -56
- package/assets/ec-i18n/ct.json +290 -290
- package/assets/ec-i18n/en.json +0 -0
- package/assets/ec-i18n/es.json +400 -400
- package/assets/ec-i18n/fr.json +0 -0
- package/assets/ec-i18n/gl.json +290 -290
- package/assets/ec-i18n/pr.json +290 -290
- package/assets/images/whatsapp.png +0 -0
- package/assets/mpFrameRedirectBase.html +114 -114
- package/assets/recaptcha/recaptcha-site-keys.json +3 -3
- package/assets/recaptcha/recaptcha-sites-prod.json +38 -38
- package/assets/recaptcha/recaptcha-sites.json +52 -52
- package/assets/redirect.html +62 -62
- package/assets/redsysAuthVdosBase.html +78 -78
- package/assets/redsysAuthVunoBase.html +84 -84
- package/assets/redsysFrameRedirectBase.html +102 -102
- package/assets/redsysFrameRedirectOutBase.html +102 -102
- package/assets/redsysFrameSendBase.html +71 -71
- package/assets/redsysProBase.html +399 -399
- package/assets/redsysStateBase.html +63 -63
- package/assets/scss/_colors.scss +17 -17
- package/assets/scss/_styles.scss +22 -22
- package/assets/svg/chevron-left-black.svg +61 -61
- package/assets/svg/chevron-right-black.svg +61 -61
- package/bundles/ng-easycommerce.umd.js +19404 -19390
- package/bundles/ng-easycommerce.umd.js.map +1 -1
- package/bundles/ng-easycommerce.umd.min.js +1 -1
- package/bundles/ng-easycommerce.umd.min.js.map +1 -1
- package/esm2015/lib/api/connection.service.js +77 -77
- package/esm2015/lib/classes/checkout/step-service.js +39 -39
- package/esm2015/lib/classes/checkout/step.js +22 -22
- package/esm2015/lib/classes/checkout-process-state.js +2 -2
- package/esm2015/lib/classes/component-helper.js +14 -14
- package/esm2015/lib/classes/filters/AttributesFilter.js +61 -61
- package/esm2015/lib/classes/filters/CategoryFilter.js +54 -54
- package/esm2015/lib/classes/filters/DinamycsFilter.js +58 -58
- package/esm2015/lib/classes/filters/Filter.js +75 -75
- package/esm2015/lib/classes/filters/PriceRangeFilter.js +51 -51
- package/esm2015/lib/classes/filters/SortFilter.js +79 -79
- package/esm2015/lib/classes/user-role-type.js +1 -1
- package/esm2015/lib/classes/user.js +108 -108
- package/esm2015/lib/core.consts.js +414 -414
- package/esm2015/lib/ec-component/account-ec/account-ec.component.js +45 -45
- package/esm2015/lib/ec-component/account-ec/order-ec/order-ec.component.js +119 -119
- package/esm2015/lib/ec-component/account-ec/orders-list-ec/orders-list-ec.component.js +196 -196
- package/esm2015/lib/ec-component/auth-ec/auth-ec.component.js +115 -115
- package/esm2015/lib/ec-component/auth-ec/confirm-account-ec/confirm-account-ec.component.js +44 -44
- package/esm2015/lib/ec-component/auth-ec/forgot-password-ec/forgot-password-ec.component.js +58 -58
- package/esm2015/lib/ec-component/auth-ec/login-form-ec/login-form-ec.component.js +108 -108
- package/esm2015/lib/ec-component/auth-ec/register-form-ec/register-form-ec.component.js +166 -166
- package/esm2015/lib/ec-component/auth-ec/register-wholesaler-form-ec/register-wholesaler-form-ec.component.js +165 -165
- package/esm2015/lib/ec-component/auth-ec/select-channel-ec/select-channel-ec.component.js +78 -78
- package/esm2015/lib/ec-component/blocks-ec/block-banner-boxes-ec/block-banner-boxes-ec.component.js +138 -138
- package/esm2015/lib/ec-component/blocks-ec/block-banner-full-ec/block-banner-full-ec.component.js +110 -110
- package/esm2015/lib/ec-component/blocks-ec/block-form-contact-ec/block-form-contact-ec.component.js +138 -138
- package/esm2015/lib/ec-component/blocks-ec/block-html-ec/block-html-ec.component.js +38 -38
- package/esm2015/lib/ec-component/blocks-ec/block-newsletter-ec/contact-form-news-ec.component.js +152 -152
- package/esm2015/lib/ec-component/blocks-ec/block-products-ec/block-products-ec.component.js +119 -119
- package/esm2015/lib/ec-component/blocks-ec/blocks-ec.component.js +70 -70
- package/esm2015/lib/ec-component/build-your-ec/build-your-ec.component.js +305 -305
- package/esm2015/lib/ec-component/build-your-ec/product-found-ec/product-found-ec.component.js +85 -85
- package/esm2015/lib/ec-component/cart-ec/cart-ec.component.js +398 -398
- package/esm2015/lib/ec-component/checkout-ec/checkout-ec.component.js +152 -152
- package/esm2015/lib/ec-component/checkout-ec/dataform-ec/dataform-ec.component.js +424 -423
- package/esm2015/lib/ec-component/checkout-ec/detail-checkout-block-ec/detail-checkout-block-ec.component.js +88 -88
- package/esm2015/lib/ec-component/checkout-ec/payment-ec/payment-ec.component.js +127 -127
- package/esm2015/lib/ec-component/checkout-ec/shipment-ec/shipment-ec.component.js +112 -112
- package/esm2015/lib/ec-component/checkout-ec/step-ec/step-ec.component.js +53 -53
- package/esm2015/lib/ec-component/checkout-ec/success-ec/success-ec.component.js +65 -65
- package/esm2015/lib/ec-component/checkout-error-ec/checkout-error-ec.component.js +80 -80
- package/esm2015/lib/ec-component/collection-ec/collection-ec.component.js +220 -220
- package/esm2015/lib/ec-component/compared-products-ec/compared-products-ec.component.js +186 -186
- package/esm2015/lib/ec-component/cookies-ec/cookies-ec.component.js +109 -109
- package/esm2015/lib/ec-component/cookies-ec/modal-config-ec/modal-config-ec.component.js +32 -32
- package/esm2015/lib/ec-component/cookies-ec/modal-cookies-ec/modal-cookies-ec.component.js +34 -34
- package/esm2015/lib/ec-component/cookies-ec/sidebar-cookies-ec/sidebar-cookies-ec.component.js +34 -34
- package/esm2015/lib/ec-component/cookies-ec/toast-cookies-ec/toast-cookies-ec.component.js +35 -35
- package/esm2015/lib/ec-component/coupon-ec/coupon-ec.component.js +53 -53
- package/esm2015/lib/ec-component/faqs-content-ec/faqs-content-ec.component.js +49 -49
- package/esm2015/lib/ec-component/filters-ec/filters-ec.component.js +152 -152
- package/esm2015/lib/ec-component/filters-top-ec/filters-top-ec.component.js +102 -102
- package/esm2015/lib/ec-component/footer-ec/footer-ec.component.js +80 -80
- package/esm2015/lib/ec-component/header-ec/header-ec.component.js +191 -191
- package/esm2015/lib/ec-component/home-ec/home-ec.component.js +37 -37
- package/esm2015/lib/ec-component/index.js +241 -241
- package/esm2015/lib/ec-component/login-ec/login-ec.component.js +102 -102
- package/esm2015/lib/ec-component/multiple-items-to-cart-ec/multiple-items-to-cart-ec.component.js +90 -90
- package/esm2015/lib/ec-component/password-reset-ec/password-reset-ec.component.js +103 -103
- package/esm2015/lib/ec-component/product-detail-ec/product-detail-ec.component.js +168 -168
- package/esm2015/lib/ec-component/product-ec/product-ec.component.js +133 -133
- package/esm2015/lib/ec-component/related-products-ec/related-products-ec.component.js +94 -94
- package/esm2015/lib/ec-component/reviews-ec/reviews-ec.component.js +69 -69
- package/esm2015/lib/ec-component/reviews-form-ec/reviews-form-ec.component.js +138 -138
- package/esm2015/lib/ec-component/section-container-ec/section-container-ec.component.js +86 -86
- package/esm2015/lib/ec-component/seller-dashboard-container-ec/seller-dashboard-container-ec.component.js +130 -130
- package/esm2015/lib/ec-component/share-block-ec/share-block-ec.component.js +149 -149
- package/esm2015/lib/ec-component/sidebar-ec/sidebar-ec.component.js +127 -127
- package/esm2015/lib/ec-component/stores-ec/stores-ec.component.js +192 -192
- package/esm2015/lib/ec-component/variants-ec/variants-ec.component.js +56 -56
- package/esm2015/lib/ec-component/widgets-ec/bamboo-ec/bamboo-ec.component.js +205 -205
- package/esm2015/lib/ec-component/widgets-ec/bancard-catastro-ec/bancard-catastro-ec.component.js +296 -296
- package/esm2015/lib/ec-component/widgets-ec/bancard-ec/bancard-ec.component.js +154 -154
- package/esm2015/lib/ec-component/widgets-ec/bancard-redirect-ec/bancard-redirect-ec.component.js +144 -144
- package/esm2015/lib/ec-component/widgets-ec/cart-load-ec/cart-load-ec.component.js +49 -49
- package/esm2015/lib/ec-component/widgets-ec/ceca-redirect-ec/ceca-redirect-ec.component.js +133 -133
- package/esm2015/lib/ec-component/widgets-ec/culqi-ec/culqi-ec.component.js +152 -152
- package/esm2015/lib/ec-component/widgets-ec/decidir-ec/decidir-ec.component.js +175 -175
- package/esm2015/lib/ec-component/widgets-ec/loading-full-ec/loading-full-ec.component.js +30 -30
- package/esm2015/lib/ec-component/widgets-ec/loading-inline-ec/loading-inline-ec.component.js +26 -26
- package/esm2015/lib/ec-component/widgets-ec/loading-section-ec/loading-section-ec.component.js +21 -21
- package/esm2015/lib/ec-component/widgets-ec/mercadopago-ec/mp-redirect-ec/mp-redirect-ec.component.js +156 -156
- package/esm2015/lib/ec-component/widgets-ec/mercadopago-ec/mpcredit-ec/mpcredit-ec.component.js +368 -368
- package/esm2015/lib/ec-component/widgets-ec/mobbex-ec/mobbex-ec.component.js +151 -151
- package/esm2015/lib/ec-component/widgets-ec/paypal-express-ec/paypal-express-ec.component.js +178 -178
- package/esm2015/lib/ec-component/widgets-ec/price-ec/price-ec.component.js +44 -44
- package/esm2015/lib/ec-component/widgets-ec/rating-ec/rating-ec.component.js +83 -83
- package/esm2015/lib/ec-component/widgets-ec/re-captcha-ec/re-captcha-ec.component.js +50 -50
- package/esm2015/lib/ec-component/widgets-ec/redsys-catch-ec/redsys-catch-ec.component.js +90 -90
- package/esm2015/lib/ec-component/widgets-ec/redsys-pro-ec/redsys-pro-ec.component.js +143 -143
- package/esm2015/lib/ec-component/widgets-ec/redsys-redirect-ec/redsys-redirect-ec.component.js +128 -128
- package/esm2015/lib/ec-component/widgets-ec/redsys-redirect-out-ec/redsys-redirect-out-ec.component.js +145 -145
- package/esm2015/lib/ec-component/widgets-ec/zoom-ec/magnizoom.component.js +167 -167
- package/esm2015/lib/ec-directive/add-action-redirect.directive.js +85 -85
- package/esm2015/lib/ec-directive/auth-wholesaler.directive.js +54 -54
- package/esm2015/lib/ec-directive/index.js +36 -36
- package/esm2015/lib/ec-directive/product-mini-standard.directive.js +65 -65
- package/esm2015/lib/ec-directive/product-off.directive.js +144 -144
- package/esm2015/lib/ec-directive/product-stock.directive.js +75 -75
- package/esm2015/lib/ec-directive/reload-view.directive.js +34 -34
- package/esm2015/lib/ec-pipe/ec-currency-symbol.pipe.js +72 -72
- package/esm2015/lib/ec-pipe/ec-sanitizer-html.pipe.js +26 -26
- package/esm2015/lib/ec-pipe/ec-sanitizer-url.pipe.js +26 -26
- package/esm2015/lib/ec-pipe/index.js +13 -13
- package/esm2015/lib/guards/able-buyer-guard.service.js +36 -36
- package/esm2015/lib/guards/auth-guard.service.js +36 -36
- package/esm2015/lib/guards/checkout-ready.service.js +36 -36
- package/esm2015/lib/guards/loggedin-guard.service.js +36 -36
- package/esm2015/lib/guards/user-role-guard.service.js +38 -38
- package/esm2015/lib/interceptors/auth.interceptor.js +55 -55
- package/esm2015/lib/interceptors/customer.interceptor.js +48 -48
- package/esm2015/lib/interfaces/Script.js +1 -1
- package/esm2015/lib/interfaces/analytics/event-key.model.js +1 -1
- package/esm2015/lib/interfaces/analytics/facebook-pixel/facebook-pixel-model.js +1 -1
- package/esm2015/lib/interfaces/analytics/gtm-config.js +1 -1
- package/esm2015/lib/interfaces/analytics/metricool-pixel.js +1 -1
- package/esm2015/lib/interfaces/block.js +1 -1
- package/esm2015/lib/interfaces/cart/cart-affordable.js +1 -1
- package/esm2015/lib/interfaces/checkout/checkout-error.js +1 -1
- package/esm2015/lib/interfaces/checkout-data.js +1 -1
- package/esm2015/lib/interfaces/choose-options/filter-option.js +6 -6
- package/esm2015/lib/interfaces/choose-options/options-of-product-list.js +1 -1
- package/esm2015/lib/interfaces/cookies.js +1 -1
- package/esm2015/lib/interfaces/core.interfaces.js +1 -1
- package/esm2015/lib/interfaces/coupon.js +1 -1
- package/esm2015/lib/interfaces/deserializable.js +1 -1
- package/esm2015/lib/interfaces/faqs.js +1 -1
- package/esm2015/lib/interfaces/filter.js +1 -1
- package/esm2015/lib/interfaces/filterStep.js +1 -1
- package/esm2015/lib/interfaces/observable-error.interface.js +1 -1
- package/esm2015/lib/interfaces/paginate.js +1 -1
- package/esm2015/lib/interfaces/parameters.js +1 -1
- package/esm2015/lib/interfaces/selection.js +4 -4
- package/esm2015/lib/interfaces/step.js +1 -1
- package/esm2015/lib/interfaces/store.js +1 -1
- package/esm2015/lib/ng-easycommerce.module.js +179 -179
- package/esm2015/lib/pipes/order-by.pipe.js +101 -101
- package/esm2015/lib/services/account/orders.service.js +102 -102
- package/esm2015/lib/services/analytics.service.js +57 -57
- package/esm2015/lib/services/auth.service.js +352 -339
- package/esm2015/lib/services/banner.service.js +72 -72
- package/esm2015/lib/services/blocks/blocks-repository.service.js +62 -62
- package/esm2015/lib/services/blocks/blocks.service.js +71 -71
- package/esm2015/lib/services/captcha.service.js +130 -130
- package/esm2015/lib/services/cart.service.js +571 -571
- package/esm2015/lib/services/channel-config.service.js +105 -105
- package/esm2015/lib/services/checkout/addressing.service.js +222 -222
- package/esm2015/lib/services/checkout/checkout.service.js +233 -233
- package/esm2015/lib/services/checkout/error-handler.service.js +81 -81
- package/esm2015/lib/services/checkout/payment.service.js +77 -77
- package/esm2015/lib/services/checkout/shipment.service.js +183 -183
- package/esm2015/lib/services/concatenated-associations.service.js +120 -120
- package/esm2015/lib/services/cookies.service.js +208 -208
- package/esm2015/lib/services/currency.service.js +161 -161
- package/esm2015/lib/services/dataform.service.js +46 -46
- package/esm2015/lib/services/filters.service.js +122 -122
- package/esm2015/lib/services/gift-card.service.js +61 -61
- package/esm2015/lib/services/ip-address.service.js +34 -34
- package/esm2015/lib/services/options.service.js +275 -275
- package/esm2015/lib/services/pagination.service.js +73 -73
- package/esm2015/lib/services/parameters.service.js +72 -72
- package/esm2015/lib/services/products/product-detail.service.js +429 -429
- package/esm2015/lib/services/products/products.service.js +287 -287
- package/esm2015/lib/services/reviews.service.js +107 -107
- package/esm2015/lib/services/stores.service.js +37 -37
- package/esm2015/lib/services/windows.service.js +52 -52
- package/esm2015/lib/services/wishlist.service.js +70 -70
- package/esm2015/lib/strategies/standard.strategy.js +43 -43
- package/esm2015/lib/utils/analytics/doppler.service.js +37 -37
- package/esm2015/lib/utils/analytics/facebook-pixel.service.js +141 -141
- package/esm2015/lib/utils/analytics/google-analytics.service.js +265 -265
- package/esm2015/lib/utils/analytics/gtm.service.js +341 -341
- package/esm2015/lib/utils/analytics/metricool-pixel.service.js +48 -48
- package/esm2015/lib/utils/options-of-product-list-data.service.js +96 -96
- package/esm2015/lib/utils/order-util.service.js +72 -72
- package/esm2015/lib/utils/payment-utils.service.js +35 -35
- package/esm2015/lib/utils/shipment-transformer.service.js +66 -66
- package/esm2015/lib/utils/toast.service.js +42 -42
- package/esm2015/lib/utils/utils.service.js +20 -20
- package/esm2015/ng-easycommerce.js +33 -33
- package/esm2015/public-api.js +146 -146
- package/esm5/lib/api/connection.service.js +90 -90
- package/esm5/lib/classes/checkout/step-service.js +74 -74
- package/esm5/lib/classes/checkout/step.js +25 -25
- package/esm5/lib/classes/checkout-process-state.js +2 -2
- package/esm5/lib/classes/component-helper.js +18 -18
- package/esm5/lib/classes/filters/AttributesFilter.js +79 -79
- package/esm5/lib/classes/filters/CategoryFilter.js +72 -72
- package/esm5/lib/classes/filters/DinamycsFilter.js +76 -76
- package/esm5/lib/classes/filters/Filter.js +78 -78
- package/esm5/lib/classes/filters/PriceRangeFilter.js +68 -68
- package/esm5/lib/classes/filters/SortFilter.js +97 -97
- package/esm5/lib/classes/user-role-type.js +1 -1
- package/esm5/lib/classes/user.js +120 -120
- package/esm5/lib/core.consts.js +434 -434
- package/esm5/lib/ec-component/account-ec/account-ec.component.js +62 -62
- package/esm5/lib/ec-component/account-ec/order-ec/order-ec.component.js +173 -173
- package/esm5/lib/ec-component/account-ec/orders-list-ec/orders-list-ec.component.js +213 -213
- package/esm5/lib/ec-component/auth-ec/auth-ec.component.js +132 -132
- package/esm5/lib/ec-component/auth-ec/confirm-account-ec/confirm-account-ec.component.js +60 -60
- package/esm5/lib/ec-component/auth-ec/forgot-password-ec/forgot-password-ec.component.js +74 -74
- package/esm5/lib/ec-component/auth-ec/login-form-ec/login-form-ec.component.js +125 -125
- package/esm5/lib/ec-component/auth-ec/register-form-ec/register-form-ec.component.js +183 -183
- package/esm5/lib/ec-component/auth-ec/register-wholesaler-form-ec/register-wholesaler-form-ec.component.js +182 -182
- package/esm5/lib/ec-component/auth-ec/select-channel-ec/select-channel-ec.component.js +106 -106
- package/esm5/lib/ec-component/blocks-ec/block-banner-boxes-ec/block-banner-boxes-ec.component.js +166 -166
- package/esm5/lib/ec-component/blocks-ec/block-banner-full-ec/block-banner-full-ec.component.js +138 -138
- package/esm5/lib/ec-component/blocks-ec/block-form-contact-ec/block-form-contact-ec.component.js +165 -165
- package/esm5/lib/ec-component/blocks-ec/block-html-ec/block-html-ec.component.js +54 -54
- package/esm5/lib/ec-component/blocks-ec/block-newsletter-ec/contact-form-news-ec.component.js +180 -180
- package/esm5/lib/ec-component/blocks-ec/block-products-ec/block-products-ec.component.js +146 -146
- package/esm5/lib/ec-component/blocks-ec/blocks-ec.component.js +90 -90
- package/esm5/lib/ec-component/build-your-ec/build-your-ec.component.js +327 -327
- package/esm5/lib/ec-component/build-your-ec/product-found-ec/product-found-ec.component.js +112 -112
- package/esm5/lib/ec-component/cart-ec/cart-ec.component.js +482 -482
- package/esm5/lib/ec-component/checkout-ec/checkout-ec.component.js +169 -169
- package/esm5/lib/ec-component/checkout-ec/dataform-ec/dataform-ec.component.js +509 -508
- package/esm5/lib/ec-component/checkout-ec/detail-checkout-block-ec/detail-checkout-block-ec.component.js +105 -105
- package/esm5/lib/ec-component/checkout-ec/payment-ec/payment-ec.component.js +217 -217
- package/esm5/lib/ec-component/checkout-ec/shipment-ec/shipment-ec.component.js +162 -162
- package/esm5/lib/ec-component/checkout-ec/step-ec/step-ec.component.js +69 -69
- package/esm5/lib/ec-component/checkout-ec/success-ec/success-ec.component.js +82 -82
- package/esm5/lib/ec-component/checkout-error-ec/checkout-error-ec.component.js +97 -97
- package/esm5/lib/ec-component/collection-ec/collection-ec.component.js +261 -261
- package/esm5/lib/ec-component/compared-products-ec/compared-products-ec.component.js +209 -209
- package/esm5/lib/ec-component/cookies-ec/cookies-ec.component.js +126 -126
- package/esm5/lib/ec-component/cookies-ec/modal-config-ec/modal-config-ec.component.js +34 -34
- package/esm5/lib/ec-component/cookies-ec/modal-cookies-ec/modal-cookies-ec.component.js +36 -36
- package/esm5/lib/ec-component/cookies-ec/sidebar-cookies-ec/sidebar-cookies-ec.component.js +36 -36
- package/esm5/lib/ec-component/cookies-ec/toast-cookies-ec/toast-cookies-ec.component.js +37 -37
- package/esm5/lib/ec-component/coupon-ec/coupon-ec.component.js +71 -71
- package/esm5/lib/ec-component/faqs-content-ec/faqs-content-ec.component.js +66 -66
- package/esm5/lib/ec-component/filters-ec/filters-ec.component.js +168 -168
- package/esm5/lib/ec-component/filters-top-ec/filters-top-ec.component.js +118 -118
- package/esm5/lib/ec-component/footer-ec/footer-ec.component.js +109 -109
- package/esm5/lib/ec-component/header-ec/header-ec.component.js +250 -250
- package/esm5/lib/ec-component/home-ec/home-ec.component.js +53 -53
- package/esm5/lib/ec-component/index.js +241 -241
- package/esm5/lib/ec-component/login-ec/login-ec.component.js +118 -118
- package/esm5/lib/ec-component/multiple-items-to-cart-ec/multiple-items-to-cart-ec.component.js +106 -106
- package/esm5/lib/ec-component/password-reset-ec/password-reset-ec.component.js +119 -119
- package/esm5/lib/ec-component/product-detail-ec/product-detail-ec.component.js +195 -195
- package/esm5/lib/ec-component/product-ec/product-ec.component.js +151 -151
- package/esm5/lib/ec-component/related-products-ec/related-products-ec.component.js +111 -111
- package/esm5/lib/ec-component/reviews-ec/reviews-ec.component.js +85 -85
- package/esm5/lib/ec-component/reviews-form-ec/reviews-form-ec.component.js +155 -155
- package/esm5/lib/ec-component/section-container-ec/section-container-ec.component.js +103 -103
- package/esm5/lib/ec-component/seller-dashboard-container-ec/seller-dashboard-container-ec.component.js +149 -149
- package/esm5/lib/ec-component/share-block-ec/share-block-ec.component.js +166 -166
- package/esm5/lib/ec-component/sidebar-ec/sidebar-ec.component.js +130 -130
- package/esm5/lib/ec-component/stores-ec/stores-ec.component.js +214 -214
- package/esm5/lib/ec-component/variants-ec/variants-ec.component.js +72 -72
- package/esm5/lib/ec-component/widgets-ec/bamboo-ec/bamboo-ec.component.js +221 -221
- package/esm5/lib/ec-component/widgets-ec/bancard-catastro-ec/bancard-catastro-ec.component.js +313 -313
- package/esm5/lib/ec-component/widgets-ec/bancard-ec/bancard-ec.component.js +170 -170
- package/esm5/lib/ec-component/widgets-ec/bancard-redirect-ec/bancard-redirect-ec.component.js +160 -160
- package/esm5/lib/ec-component/widgets-ec/cart-load-ec/cart-load-ec.component.js +83 -83
- package/esm5/lib/ec-component/widgets-ec/ceca-redirect-ec/ceca-redirect-ec.component.js +149 -149
- package/esm5/lib/ec-component/widgets-ec/culqi-ec/culqi-ec.component.js +156 -156
- package/esm5/lib/ec-component/widgets-ec/decidir-ec/decidir-ec.component.js +192 -192
- package/esm5/lib/ec-component/widgets-ec/loading-full-ec/loading-full-ec.component.js +46 -46
- package/esm5/lib/ec-component/widgets-ec/loading-inline-ec/loading-inline-ec.component.js +42 -42
- package/esm5/lib/ec-component/widgets-ec/loading-section-ec/loading-section-ec.component.js +23 -23
- package/esm5/lib/ec-component/widgets-ec/mercadopago-ec/mp-redirect-ec/mp-redirect-ec.component.js +174 -174
- package/esm5/lib/ec-component/widgets-ec/mercadopago-ec/mpcredit-ec/mpcredit-ec.component.js +396 -396
- package/esm5/lib/ec-component/widgets-ec/mobbex-ec/mobbex-ec.component.js +167 -167
- package/esm5/lib/ec-component/widgets-ec/paypal-express-ec/paypal-express-ec.component.js +231 -231
- package/esm5/lib/ec-component/widgets-ec/price-ec/price-ec.component.js +60 -60
- package/esm5/lib/ec-component/widgets-ec/rating-ec/rating-ec.component.js +100 -100
- package/esm5/lib/ec-component/widgets-ec/re-captcha-ec/re-captcha-ec.component.js +53 -53
- package/esm5/lib/ec-component/widgets-ec/redsys-catch-ec/redsys-catch-ec.component.js +124 -124
- package/esm5/lib/ec-component/widgets-ec/redsys-pro-ec/redsys-pro-ec.component.js +159 -159
- package/esm5/lib/ec-component/widgets-ec/redsys-redirect-ec/redsys-redirect-ec.component.js +144 -144
- package/esm5/lib/ec-component/widgets-ec/redsys-redirect-out-ec/redsys-redirect-out-ec.component.js +162 -162
- package/esm5/lib/ec-component/widgets-ec/zoom-ec/magnizoom.component.js +181 -181
- package/esm5/lib/ec-directive/add-action-redirect.directive.js +104 -104
- package/esm5/lib/ec-directive/auth-wholesaler.directive.js +60 -60
- package/esm5/lib/ec-directive/index.js +36 -36
- package/esm5/lib/ec-directive/product-mini-standard.directive.js +72 -72
- package/esm5/lib/ec-directive/product-off.directive.js +163 -163
- package/esm5/lib/ec-directive/product-stock.directive.js +81 -81
- package/esm5/lib/ec-directive/reload-view.directive.js +35 -35
- package/esm5/lib/ec-pipe/ec-currency-symbol.pipe.js +74 -74
- package/esm5/lib/ec-pipe/ec-sanitizer-html.pipe.js +27 -27
- package/esm5/lib/ec-pipe/ec-sanitizer-url.pipe.js +27 -27
- package/esm5/lib/ec-pipe/index.js +13 -13
- package/esm5/lib/guards/able-buyer-guard.service.js +37 -37
- package/esm5/lib/guards/auth-guard.service.js +37 -37
- package/esm5/lib/guards/checkout-ready.service.js +37 -37
- package/esm5/lib/guards/loggedin-guard.service.js +37 -37
- package/esm5/lib/guards/user-role-guard.service.js +39 -39
- package/esm5/lib/interceptors/auth.interceptor.js +57 -57
- package/esm5/lib/interceptors/customer.interceptor.js +50 -50
- package/esm5/lib/interfaces/Script.js +1 -1
- package/esm5/lib/interfaces/analytics/event-key.model.js +1 -1
- package/esm5/lib/interfaces/analytics/facebook-pixel/facebook-pixel-model.js +1 -1
- package/esm5/lib/interfaces/analytics/gtm-config.js +1 -1
- package/esm5/lib/interfaces/analytics/metricool-pixel.js +1 -1
- package/esm5/lib/interfaces/block.js +1 -1
- package/esm5/lib/interfaces/cart/cart-affordable.js +1 -1
- package/esm5/lib/interfaces/checkout/checkout-error.js +1 -1
- package/esm5/lib/interfaces/checkout-data.js +1 -1
- package/esm5/lib/interfaces/choose-options/filter-option.js +6 -6
- package/esm5/lib/interfaces/choose-options/options-of-product-list.js +1 -1
- package/esm5/lib/interfaces/cookies.js +1 -1
- package/esm5/lib/interfaces/core.interfaces.js +1 -1
- package/esm5/lib/interfaces/coupon.js +1 -1
- package/esm5/lib/interfaces/deserializable.js +1 -1
- package/esm5/lib/interfaces/faqs.js +1 -1
- package/esm5/lib/interfaces/filter.js +1 -1
- package/esm5/lib/interfaces/filterStep.js +1 -1
- package/esm5/lib/interfaces/observable-error.interface.js +1 -1
- package/esm5/lib/interfaces/paginate.js +1 -1
- package/esm5/lib/interfaces/parameters.js +1 -1
- package/esm5/lib/interfaces/selection.js +4 -4
- package/esm5/lib/interfaces/step.js +1 -1
- package/esm5/lib/interfaces/store.js +1 -1
- package/esm5/lib/ng-easycommerce.module.js +183 -183
- package/esm5/lib/pipes/order-by.pipe.js +106 -106
- package/esm5/lib/services/account/orders.service.js +120 -120
- package/esm5/lib/services/analytics.service.js +60 -60
- package/esm5/lib/services/auth.service.js +426 -413
- package/esm5/lib/services/banner.service.js +81 -81
- package/esm5/lib/services/blocks/blocks-repository.service.js +94 -94
- package/esm5/lib/services/blocks/blocks.service.js +79 -79
- package/esm5/lib/services/captcha.service.js +132 -132
- package/esm5/lib/services/cart.service.js +700 -700
- package/esm5/lib/services/channel-config.service.js +107 -107
- package/esm5/lib/services/checkout/addressing.service.js +280 -280
- package/esm5/lib/services/checkout/checkout.service.js +316 -316
- package/esm5/lib/services/checkout/error-handler.service.js +83 -83
- package/esm5/lib/services/checkout/payment.service.js +125 -125
- package/esm5/lib/services/checkout/shipment.service.js +265 -265
- package/esm5/lib/services/concatenated-associations.service.js +162 -162
- package/esm5/lib/services/cookies.service.js +222 -222
- package/esm5/lib/services/currency.service.js +205 -205
- package/esm5/lib/services/dataform.service.js +48 -48
- package/esm5/lib/services/filters.service.js +125 -125
- package/esm5/lib/services/gift-card.service.js +63 -63
- package/esm5/lib/services/ip-address.service.js +35 -35
- package/esm5/lib/services/options.service.js +376 -376
- package/esm5/lib/services/pagination.service.js +79 -79
- package/esm5/lib/services/parameters.service.js +74 -74
- package/esm5/lib/services/products/product-detail.service.js +494 -494
- package/esm5/lib/services/products/products.service.js +345 -345
- package/esm5/lib/services/reviews.service.js +116 -116
- package/esm5/lib/services/stores.service.js +39 -39
- package/esm5/lib/services/windows.service.js +79 -79
- package/esm5/lib/services/wishlist.service.js +71 -71
- package/esm5/lib/strategies/standard.strategy.js +44 -44
- package/esm5/lib/utils/analytics/doppler.service.js +39 -39
- package/esm5/lib/utils/analytics/facebook-pixel.service.js +145 -145
- package/esm5/lib/utils/analytics/google-analytics.service.js +280 -280
- package/esm5/lib/utils/analytics/gtm.service.js +358 -358
- package/esm5/lib/utils/analytics/metricool-pixel.service.js +40 -40
- package/esm5/lib/utils/options-of-product-list-data.service.js +98 -98
- package/esm5/lib/utils/order-util.service.js +75 -75
- package/esm5/lib/utils/payment-utils.service.js +37 -37
- package/esm5/lib/utils/shipment-transformer.service.js +78 -78
- package/esm5/lib/utils/toast.service.js +61 -61
- package/esm5/lib/utils/utils.service.js +22 -22
- package/esm5/ng-easycommerce.js +33 -33
- package/esm5/public-api.js +146 -146
- package/fesm2015/ng-easycommerce.js +16415 -16401
- package/fesm2015/ng-easycommerce.js.map +1 -1
- package/fesm5/ng-easycommerce.js +19408 -19394
- package/fesm5/ng-easycommerce.js.map +1 -1
- package/lib/api/connection.service.d.ts +28 -28
- package/lib/classes/checkout/step-service.d.ts +28 -28
- package/lib/classes/checkout/step.d.ts +14 -14
- package/lib/classes/checkout-process-state.d.ts +12 -12
- package/lib/classes/component-helper.d.ts +8 -8
- package/lib/classes/filters/AttributesFilter.d.ts +18 -18
- package/lib/classes/filters/CategoryFilter.d.ts +17 -17
- package/lib/classes/filters/DinamycsFilter.d.ts +15 -15
- package/lib/classes/filters/Filter.d.ts +19 -19
- package/lib/classes/filters/PriceRangeFilter.d.ts +18 -18
- package/lib/classes/filters/SortFilter.d.ts +15 -15
- package/lib/classes/user-role-type.d.ts +5 -5
- package/lib/classes/user.d.ts +68 -68
- package/lib/core.consts.d.ts +216 -216
- package/lib/ec-component/account-ec/account-ec.component.d.ts +13 -13
- package/lib/ec-component/account-ec/order-ec/order-ec.component.d.ts +34 -34
- package/lib/ec-component/account-ec/orders-list-ec/orders-list-ec.component.d.ts +85 -85
- package/lib/ec-component/auth-ec/auth-ec.component.d.ts +35 -35
- package/lib/ec-component/auth-ec/confirm-account-ec/confirm-account-ec.component.d.ts +13 -13
- package/lib/ec-component/auth-ec/forgot-password-ec/forgot-password-ec.component.d.ts +16 -16
- package/lib/ec-component/auth-ec/login-form-ec/login-form-ec.component.d.ts +26 -26
- package/lib/ec-component/auth-ec/register-form-ec/register-form-ec.component.d.ts +34 -34
- package/lib/ec-component/auth-ec/register-wholesaler-form-ec/register-wholesaler-form-ec.component.d.ts +42 -42
- package/lib/ec-component/auth-ec/select-channel-ec/select-channel-ec.component.d.ts +23 -23
- package/lib/ec-component/blocks-ec/block-banner-boxes-ec/block-banner-boxes-ec.component.d.ts +34 -34
- package/lib/ec-component/blocks-ec/block-banner-full-ec/block-banner-full-ec.component.d.ts +27 -27
- package/lib/ec-component/blocks-ec/block-form-contact-ec/block-form-contact-ec.component.d.ts +34 -34
- package/lib/ec-component/blocks-ec/block-html-ec/block-html-ec.component.d.ts +10 -10
- package/lib/ec-component/blocks-ec/block-newsletter-ec/contact-form-news-ec.component.d.ts +40 -40
- package/lib/ec-component/blocks-ec/block-products-ec/block-products-ec.component.d.ts +25 -25
- package/lib/ec-component/blocks-ec/blocks-ec.component.d.ts +24 -24
- package/lib/ec-component/build-your-ec/build-your-ec.component.d.ts +122 -122
- package/lib/ec-component/build-your-ec/product-found-ec/product-found-ec.component.d.ts +41 -41
- package/lib/ec-component/cart-ec/cart-ec.component.d.ts +57 -57
- package/lib/ec-component/checkout-ec/checkout-ec.component.d.ts +43 -43
- package/lib/ec-component/checkout-ec/dataform-ec/dataform-ec.component.d.ts +100 -100
- package/lib/ec-component/checkout-ec/detail-checkout-block-ec/detail-checkout-block-ec.component.d.ts +24 -24
- package/lib/ec-component/checkout-ec/payment-ec/payment-ec.component.d.ts +51 -51
- package/lib/ec-component/checkout-ec/shipment-ec/shipment-ec.component.d.ts +34 -34
- package/lib/ec-component/checkout-ec/step-ec/step-ec.component.d.ts +18 -18
- package/lib/ec-component/checkout-ec/success-ec/success-ec.component.d.ts +32 -32
- package/lib/ec-component/checkout-error-ec/checkout-error-ec.component.d.ts +25 -25
- package/lib/ec-component/collection-ec/collection-ec.component.d.ts +67 -67
- package/lib/ec-component/compared-products-ec/compared-products-ec.component.d.ts +70 -70
- package/lib/ec-component/cookies-ec/cookies-ec.component.d.ts +44 -44
- package/lib/ec-component/cookies-ec/modal-config-ec/modal-config-ec.component.d.ts +10 -10
- package/lib/ec-component/cookies-ec/modal-cookies-ec/modal-cookies-ec.component.d.ts +8 -8
- package/lib/ec-component/cookies-ec/sidebar-cookies-ec/sidebar-cookies-ec.component.d.ts +9 -9
- package/lib/ec-component/cookies-ec/toast-cookies-ec/toast-cookies-ec.component.d.ts +9 -9
- package/lib/ec-component/coupon-ec/coupon-ec.component.d.ts +17 -17
- package/lib/ec-component/faqs-content-ec/faqs-content-ec.component.d.ts +15 -15
- package/lib/ec-component/filters-ec/filters-ec.component.d.ts +33 -33
- package/lib/ec-component/filters-top-ec/filters-top-ec.component.d.ts +23 -23
- package/lib/ec-component/footer-ec/footer-ec.component.d.ts +30 -30
- package/lib/ec-component/header-ec/header-ec.component.d.ts +66 -66
- package/lib/ec-component/home-ec/home-ec.component.d.ts +13 -13
- package/lib/ec-component/index.d.ts +80 -80
- package/lib/ec-component/login-ec/login-ec.component.d.ts +26 -26
- package/lib/ec-component/multiple-items-to-cart-ec/multiple-items-to-cart-ec.component.d.ts +28 -28
- package/lib/ec-component/password-reset-ec/password-reset-ec.component.d.ts +27 -27
- package/lib/ec-component/product-detail-ec/product-detail-ec.component.d.ts +59 -59
- package/lib/ec-component/product-ec/product-ec.component.d.ts +49 -49
- package/lib/ec-component/related-products-ec/related-products-ec.component.d.ts +22 -22
- package/lib/ec-component/reviews-ec/reviews-ec.component.d.ts +29 -29
- package/lib/ec-component/reviews-form-ec/reviews-form-ec.component.d.ts +61 -61
- package/lib/ec-component/section-container-ec/section-container-ec.component.d.ts +22 -22
- package/lib/ec-component/seller-dashboard-container-ec/seller-dashboard-container-ec.component.d.ts +37 -37
- package/lib/ec-component/share-block-ec/share-block-ec.component.d.ts +26 -26
- package/lib/ec-component/sidebar-ec/sidebar-ec.component.d.ts +27 -27
- package/lib/ec-component/stores-ec/stores-ec.component.d.ts +54 -54
- package/lib/ec-component/variants-ec/variants-ec.component.d.ts +14 -14
- package/lib/ec-component/widgets-ec/bamboo-ec/bamboo-ec.component.d.ts +60 -60
- package/lib/ec-component/widgets-ec/bancard-catastro-ec/bancard-catastro-ec.component.d.ts +105 -105
- package/lib/ec-component/widgets-ec/bancard-ec/bancard-ec.component.d.ts +46 -46
- package/lib/ec-component/widgets-ec/bancard-redirect-ec/bancard-redirect-ec.component.d.ts +44 -44
- package/lib/ec-component/widgets-ec/cart-load-ec/cart-load-ec.component.d.ts +14 -14
- package/lib/ec-component/widgets-ec/ceca-redirect-ec/ceca-redirect-ec.component.d.ts +38 -38
- package/lib/ec-component/widgets-ec/culqi-ec/culqi-ec.component.d.ts +38 -38
- package/lib/ec-component/widgets-ec/decidir-ec/decidir-ec.component.d.ts +53 -53
- package/lib/ec-component/widgets-ec/loading-full-ec/loading-full-ec.component.d.ts +6 -6
- package/lib/ec-component/widgets-ec/loading-inline-ec/loading-inline-ec.component.d.ts +5 -5
- package/lib/ec-component/widgets-ec/loading-section-ec/loading-section-ec.component.d.ts +5 -5
- package/lib/ec-component/widgets-ec/mercadopago-ec/mp-redirect-ec/mp-redirect-ec.component.d.ts +43 -43
- package/lib/ec-component/widgets-ec/mercadopago-ec/mpcredit-ec/mpcredit-ec.component.d.ts +64 -64
- package/lib/ec-component/widgets-ec/mobbex-ec/mobbex-ec.component.d.ts +46 -46
- package/lib/ec-component/widgets-ec/paypal-express-ec/paypal-express-ec.component.d.ts +41 -41
- package/lib/ec-component/widgets-ec/price-ec/price-ec.component.d.ts +12 -12
- package/lib/ec-component/widgets-ec/rating-ec/rating-ec.component.d.ts +28 -28
- package/lib/ec-component/widgets-ec/re-captcha-ec/re-captcha-ec.component.d.ts +24 -24
- package/lib/ec-component/widgets-ec/redsys-catch-ec/redsys-catch-ec.component.d.ts +14 -14
- package/lib/ec-component/widgets-ec/redsys-pro-ec/redsys-pro-ec.component.d.ts +44 -44
- package/lib/ec-component/widgets-ec/redsys-redirect-ec/redsys-redirect-ec.component.d.ts +38 -38
- package/lib/ec-component/widgets-ec/redsys-redirect-out-ec/redsys-redirect-out-ec.component.d.ts +42 -42
- package/lib/ec-component/widgets-ec/zoom-ec/magnizoom.component.d.ts +66 -66
- package/lib/ec-directive/add-action-redirect.directive.d.ts +26 -26
- package/lib/ec-directive/auth-wholesaler.directive.d.ts +17 -17
- package/lib/ec-directive/index.d.ts +6 -6
- package/lib/ec-directive/product-mini-standard.directive.d.ts +19 -19
- package/lib/ec-directive/product-off.directive.d.ts +22 -22
- package/lib/ec-directive/product-stock.directive.d.ts +15 -15
- package/lib/ec-directive/reload-view.directive.d.ts +8 -8
- package/lib/ec-pipe/ec-currency-symbol.pipe.d.ts +19 -19
- package/lib/ec-pipe/ec-sanitizer-html.pipe.d.ts +7 -7
- package/lib/ec-pipe/ec-sanitizer-url.pipe.d.ts +7 -7
- package/lib/ec-pipe/index.d.ts +4 -4
- package/lib/guards/able-buyer-guard.service.d.ts +8 -8
- package/lib/guards/auth-guard.service.d.ts +8 -8
- package/lib/guards/checkout-ready.service.d.ts +8 -8
- package/lib/guards/loggedin-guard.service.d.ts +8 -8
- package/lib/guards/user-role-guard.service.d.ts +8 -8
- package/lib/interceptors/auth.interceptor.d.ts +9 -9
- package/lib/interceptors/customer.interceptor.d.ts +9 -9
- package/lib/interfaces/Script.d.ts +5 -5
- package/lib/interfaces/analytics/event-key.model.d.ts +1 -1
- package/lib/interfaces/analytics/facebook-pixel/facebook-pixel-model.d.ts +5 -5
- package/lib/interfaces/analytics/gtm-config.d.ts +6 -6
- package/lib/interfaces/analytics/metricool-pixel.d.ts +3 -3
- package/lib/interfaces/block.d.ts +33 -33
- package/lib/interfaces/cart/cart-affordable.d.ts +8 -8
- package/lib/interfaces/cart-item.d.ts +8 -8
- package/lib/interfaces/checkout/checkout-error.d.ts +7 -7
- package/lib/interfaces/checkout-data.d.ts +6 -6
- package/lib/interfaces/choose-options/filter-option.d.ts +16 -16
- package/lib/interfaces/choose-options/options-of-product-list.d.ts +5 -5
- package/lib/interfaces/cookies.d.ts +49 -49
- package/lib/interfaces/core.interfaces.d.ts +4 -4
- package/lib/interfaces/coupon.d.ts +5 -5
- package/lib/interfaces/currencyConfig.d.ts +10 -10
- package/lib/interfaces/deserializable.d.ts +3 -3
- package/lib/interfaces/faqs.d.ts +12 -12
- package/lib/interfaces/filter.d.ts +51 -51
- package/lib/interfaces/filterStep.d.ts +29 -29
- package/lib/interfaces/navbar-items.d.ts +9 -9
- package/lib/interfaces/observable-error.interface.d.ts +5 -5
- package/lib/interfaces/paginate.d.ts +1 -1
- package/lib/interfaces/parameters.d.ts +10 -10
- package/lib/interfaces/paramsInterfaces/paramsProductsWithUniqueVariant.d.ts +6 -6
- package/lib/interfaces/product.d.ts +46 -46
- package/lib/interfaces/selection.d.ts +10 -10
- package/lib/interfaces/step.d.ts +8 -8
- package/lib/interfaces/store.d.ts +17 -17
- package/lib/ng-easycommerce.module.d.ts +5 -5
- package/lib/pipes/order-by.pipe.d.ts +5 -5
- package/lib/services/account/orders.service.d.ts +29 -29
- package/lib/services/analytics.service.d.ts +21 -21
- package/lib/services/auth.service.d.ts +116 -116
- package/lib/services/banner.service.d.ts +26 -26
- package/lib/services/blocks/blocks-repository.service.d.ts +19 -19
- package/lib/services/blocks/blocks.service.d.ts +25 -25
- package/lib/services/captcha.service.d.ts +76 -76
- package/lib/services/cart.service.d.ts +139 -139
- package/lib/services/channel-config.service.d.ts +35 -35
- package/lib/services/checkout/addressing.service.d.ts +239 -239
- package/lib/services/checkout/checkout.service.d.ts +71 -71
- package/lib/services/checkout/error-handler.service.d.ts +19 -19
- package/lib/services/checkout/payment.service.d.ts +32 -32
- package/lib/services/checkout/shipment.service.d.ts +58 -58
- package/lib/services/concatenated-associations.service.d.ts +57 -57
- package/lib/services/cookies.service.d.ts +66 -66
- package/lib/services/currency.service.d.ts +65 -65
- package/lib/services/dataform.service.d.ts +13 -13
- package/lib/services/filters.service.d.ts +48 -48
- package/lib/services/gift-card.service.d.ts +19 -19
- package/lib/services/ip-address.service.d.ts +10 -10
- package/lib/services/options.service.d.ts +61 -61
- package/lib/services/pagination.service.d.ts +30 -30
- package/lib/services/parameters.service.d.ts +18 -18
- package/lib/services/products/product-detail.service.d.ts +115 -115
- package/lib/services/products/products.service.d.ts +101 -101
- package/lib/services/reviews.service.d.ts +71 -71
- package/lib/services/stores.service.d.ts +11 -11
- package/lib/services/windows.service.d.ts +13 -13
- package/lib/services/wishlist.service.d.ts +13 -13
- package/lib/strategies/standard.strategy.d.ts +12 -12
- package/lib/utils/analytics/doppler.service.d.ts +9 -9
- package/lib/utils/analytics/facebook-pixel.service.d.ts +23 -23
- package/lib/utils/analytics/google-analytics.service.d.ts +30 -30
- package/lib/utils/analytics/gtm.service.d.ts +34 -34
- package/lib/utils/analytics/metricool-pixel.service.d.ts +9 -9
- package/lib/utils/options-of-product-list-data.service.d.ts +5 -5
- package/lib/utils/order-util.service.d.ts +12 -12
- package/lib/utils/payment-utils.service.d.ts +5 -5
- package/lib/utils/shipment-transformer.service.d.ts +8 -8
- package/lib/utils/toast.service.d.ts +15 -15
- package/lib/utils/utils.service.d.ts +4 -4
- package/ng-easycommerce.d.ts +33 -33
- package/ng-easycommerce.metadata.json +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +144 -144
package/esm5/lib/ec-component/widgets-ec/bancard-redirect-ec/bancard-redirect-ec.component.js
CHANGED
|
@@ -1,160 +1,160 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
extendStatics(d, b);
|
|
10
|
-
function __() { this.constructor = d; }
|
|
11
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
-
};
|
|
13
|
-
})();
|
|
14
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
18
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
-
};
|
|
20
|
-
import { Component, Output, OnInit, ViewChild, ElementRef, Input, Renderer2, Inject, OnChanges, EventEmitter, OnDestroy, TemplateRef } from '@angular/core';
|
|
21
|
-
import { ActivatedRoute } from '@angular/router';
|
|
22
|
-
import { ComponentHelper } from "../../../classes/component-helper";
|
|
23
|
-
import { ConnectionService } from '../../../api/connection.service';
|
|
24
|
-
import { ToastService } from '../../../utils/toast.service';
|
|
25
|
-
import { Constants } from '../../../core.consts';
|
|
26
|
-
import { CartService } from '../../../services/cart.service';
|
|
27
|
-
import { DomSanitizer, SafeResourceUrl, SafeUrl } from '@angular/platform-browser';
|
|
28
|
-
var BancardRedirectEcComponent = /** @class */ (function (_super) {
|
|
29
|
-
__extends(BancardRedirectEcComponent, _super);
|
|
30
|
-
function BancardRedirectEcComponent(renderer, connection, toastrService, consts, cartService, toastr, activedRoute, sanitizer) {
|
|
31
|
-
var _this = _super.call(this) || this;
|
|
32
|
-
_this.renderer = renderer;
|
|
33
|
-
_this.connection = connection;
|
|
34
|
-
_this.toastrService = toastrService;
|
|
35
|
-
_this.consts = consts;
|
|
36
|
-
_this.cartService = cartService;
|
|
37
|
-
_this.toastr = toastr;
|
|
38
|
-
_this.activedRoute = activedRoute;
|
|
39
|
-
_this.sanitizer = sanitizer;
|
|
40
|
-
_this.method = null;
|
|
41
|
-
_this.total_amount = 0;
|
|
42
|
-
_this.user_data = null;
|
|
43
|
-
_this.ready = new EventEmitter();
|
|
44
|
-
_this.loading = false;
|
|
45
|
-
_this.isDobleAuth = false;
|
|
46
|
-
_this.urls = [];
|
|
47
|
-
_this.closeModal = '';
|
|
48
|
-
_this.dataRedirect = function () { return _this.consts.getUrlBase() + 'shop-api/' + _this.consts.getChannel() + '/redsys/redirect/' + _this.cartService.cart_token + '/process-payment'; };
|
|
49
|
-
_this.iniciar = function () {
|
|
50
|
-
_this.closeModal = '';
|
|
51
|
-
_this.clearStorageState();
|
|
52
|
-
_this.ventana = window.open(_this.url);
|
|
53
|
-
_this.callState();
|
|
54
|
-
};
|
|
55
|
-
_this.clearStorageState = function () {
|
|
56
|
-
sessionStorage.removeItem('state');
|
|
57
|
-
localStorage.removeItem('state');
|
|
58
|
-
};
|
|
59
|
-
_this.clickClose = function () {
|
|
60
|
-
var _a;
|
|
61
|
-
_this.closeModal = 'cancel';
|
|
62
|
-
(_a = _this.ventana) === null || _a === void 0 ? void 0 : _a.close();
|
|
63
|
-
};
|
|
64
|
-
_this.callState = function () {
|
|
65
|
-
var _a;
|
|
66
|
-
var state = _this.closeModal != '' ? _this.closeModal : localStorage.getItem('state');
|
|
67
|
-
!state && _this.ventana.closed && (state = 'cancel');
|
|
68
|
-
_this.loading = true;
|
|
69
|
-
state && console.log(state);
|
|
70
|
-
if (state) {
|
|
71
|
-
_this.loading = false;
|
|
72
|
-
sessionStorage.removeItem('state');
|
|
73
|
-
localStorage.removeItem('state');
|
|
74
|
-
if (state == 'success') {
|
|
75
|
-
_this.ready.emit(true);
|
|
76
|
-
}
|
|
77
|
-
if (state == 'cancel') {
|
|
78
|
-
return;
|
|
79
|
-
}
|
|
80
|
-
if (state == 'failure') {
|
|
81
|
-
_this.processError('');
|
|
82
|
-
}
|
|
83
|
-
(_a = _this.ventana) === null || _a === void 0 ? void 0 : _a.close();
|
|
84
|
-
return;
|
|
85
|
-
}
|
|
86
|
-
setTimeout(function () {
|
|
87
|
-
_this.callState();
|
|
88
|
-
}, 4000);
|
|
89
|
-
};
|
|
90
|
-
_this.processError = function (err) {
|
|
91
|
-
_this.toastrService.show(err != '' ? err : 'payment-error');
|
|
92
|
-
console.log("ERROR ENVIO BACK ", err);
|
|
93
|
-
};
|
|
94
|
-
_this.setError = function (message) {
|
|
95
|
-
};
|
|
96
|
-
_this.getCheckoutBancard = function () {
|
|
97
|
-
_this.loading = true;
|
|
98
|
-
_this.paymentServiceInst.getCheckoutBancard(_this.allData).then(function (res) {
|
|
99
|
-
var _a, _b, _c;
|
|
100
|
-
_this.dataBancard = res;
|
|
101
|
-
_this.url = ((_a = res) === null || _a === void 0 ? void 0 : _a.iframe_link) && ((_b = res) === null || _b === void 0 ? void 0 : _b.iframe_link);
|
|
102
|
-
((_c = res) === null || _c === void 0 ? void 0 : _c.iframe_link) || (_this.url = null) && _this.processError('operation-error');
|
|
103
|
-
_this.loading = false;
|
|
104
|
-
}, function (err) {
|
|
105
|
-
_this.processError('operation-error');
|
|
106
|
-
_this.loading = false;
|
|
107
|
-
});
|
|
108
|
-
};
|
|
109
|
-
_this.ecOnConstruct();
|
|
110
|
-
return _this;
|
|
111
|
-
}
|
|
112
|
-
BancardRedirectEcComponent.prototype.ngOnInit = function () {
|
|
113
|
-
this.getCheckoutBancard();
|
|
114
|
-
this.ecOnInit();
|
|
115
|
-
};
|
|
116
|
-
BancardRedirectEcComponent.prototype.ngOnDestroy = function () {
|
|
117
|
-
// console.log("SE DESTROZA");
|
|
118
|
-
};
|
|
119
|
-
BancardRedirectEcComponent.prototype.ngOnChanges = function () {
|
|
120
|
-
// console.log("SE CAMBIO");
|
|
121
|
-
};
|
|
122
|
-
BancardRedirectEcComponent.ctorParameters = function () { return [
|
|
123
|
-
{ type: Renderer2 },
|
|
124
|
-
{ type: ConnectionService },
|
|
125
|
-
{ type: ToastService },
|
|
126
|
-
{ type: Constants },
|
|
127
|
-
{ type: CartService },
|
|
128
|
-
{ type: ToastService },
|
|
129
|
-
{ type: ActivatedRoute },
|
|
130
|
-
{ type: DomSanitizer }
|
|
131
|
-
]; };
|
|
132
|
-
__decorate([
|
|
133
|
-
Input()
|
|
134
|
-
], BancardRedirectEcComponent.prototype, "method", void 0);
|
|
135
|
-
__decorate([
|
|
136
|
-
Input()
|
|
137
|
-
], BancardRedirectEcComponent.prototype, "total_amount", void 0);
|
|
138
|
-
__decorate([
|
|
139
|
-
Input()
|
|
140
|
-
], BancardRedirectEcComponent.prototype, "user_data", void 0);
|
|
141
|
-
__decorate([
|
|
142
|
-
Input()
|
|
143
|
-
], BancardRedirectEcComponent.prototype, "paymentServiceInst", void 0);
|
|
144
|
-
__decorate([
|
|
145
|
-
Input()
|
|
146
|
-
], BancardRedirectEcComponent.prototype, "allData", void 0);
|
|
147
|
-
__decorate([
|
|
148
|
-
Output()
|
|
149
|
-
], BancardRedirectEcComponent.prototype, "ready", void 0);
|
|
150
|
-
BancardRedirectEcComponent = __decorate([
|
|
151
|
-
Component({
|
|
152
|
-
selector: 'app-bancard-redirect-ec',
|
|
153
|
-
template: "<div class=\"text-center\">\n <h4>Continuar con el pago con Bancard</h4>\n <p *ngIf=\"method\" class=\"px-5\">{{ method?.description }}</p>\n <p *ngIf=\"method\" class=\"px-5\">{{ method?.instructions }}</p>\n <ng-container *ngIf=\"url;else loadingUrl\">\n <ng-container *ngIf=\"!loading;else loadingTemp\">\n <button (click)=\"iniciar()\" class=\"btn btn-outline-secondary comprar\">Pagar</button>\n </ng-container>\n </ng-container>\n</div>\n\n<ng-template #loadingUrl>\n <div class=\"d-flex flex-column jusitfy-content-center align-items-center mt-2\">\n <app-loading-full-ec></app-loading-full-ec>\n </div>\n</ng-template>\n\n<ng-template #loadingTemp>\n <div class=\"d-flex flex-column jusitfy-content-center align-items-center mt-2\">\n <h3>Procesando el pago por Bancard</h3>\n <h5>Recuerde hacer click en \"Finalizar\" desde Bancard para finalizar la compra.</h5>\n <app-loading-full-ec></app-loading-full-ec>\n </div>\n <div class=\"container-fluid\">\n <div class=\"row\">\n <div class=\"col-5\">\n <hr>\n </div>\n <div class=\"col-2 text-center\">\n <label for=\"\">o</label>\n </div>\n <div class=\"col-5\">\n <hr>\n </div>\n </div>\n </div>\n <div class=\"d-flex flex-column jusitfy-content-center align-items-center mt-2\">\n <button (click)=\"clickClose()\" class=\"btn btn-outline-secondary rounded-0 comprar\">Cancelar pago</button>\n </div>\n</ng-template>",
|
|
154
|
-
styles: [".half-width{width:49%!important}.ml-1{margin-left:1%}#card-form{height:450px}.iframeStyle{height:800px;width:100%;max-height:800px}"]
|
|
155
|
-
})
|
|
156
|
-
], BancardRedirectEcComponent);
|
|
157
|
-
return BancardRedirectEcComponent;
|
|
158
|
-
}(ComponentHelper));
|
|
159
|
-
export { BancardRedirectEcComponent };
|
|
160
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFuY2FyZC1yZWRpcmVjdC1lYy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZy1lYXN5Y29tbWVyY2UvIiwic291cmNlcyI6WyJsaWIvZWMtY29tcG9uZW50L3dpZGdldHMtZWMvYmFuY2FyZC1yZWRpcmVjdC1lYy9iYW5jYXJkLXJlZG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HtcbiAgICAgICAgICAgICAgICB0aGlzLnByb2Nlc3NFcnJvcignJylcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHRoaXMudmVudGFuYT8uY2xvc2UoKVxuICAgICAgICAgICAgcmV0dXJuXG4gICAgICAgIH1cbiAgICAgICAgc2V0VGltZW91dCgoKSA9PiB7XG4gICAgICAgICAgICB0aGlzLmNhbGxTdGF0ZSgpXG4gICAgICAgIH0sIDQwMDApOyAgICBcbiAgICB9XG5cbiAgICBwcm9jZXNzRXJyb3IgPSAoZXJyKSA9PiB7XG4gICAgICAgIHRoaXMudG9hc3RyU2VydmljZS5zaG93KGVyciAhPSAnJyA/IGVyciA6ICdwYXltZW50LWVycm9yJyk7XG4gICAgICAgIGNvbnNvbGUubG9nKFwiRVJST1IgRU5WSU8gQkFDSyAgXCIsIGVycik7XG4gICAgfVxuXG4gICAgc2V0RXJyb3IgPSAobWVzc2FnZSkgPT4ge1xuICAgICAgICBcbiAgICB9XG5cbiAgICBnZXRDaGVja291dEJhbmNhcmQgPSAoKSA9PiB7XG4gICAgICAgIHRoaXMubG9hZGluZyA9IHRydWVcbiAgICAgICAgdGhpcy5wYXltZW50U2VydmljZUluc3QuZ2V0Q2hlY2tvdXRCYW5jYXJkKHRoaXMuYWxsRGF0YSkudGhlbihcbiAgICAgICAgICAgIHJlcyA9PiB7XG4gICAgICAgICAgICAgICAgdGhpcy5kYXRhQmFuY2FyZCA9IHJlcztcbiAgICAgICAgICAgICAgICB0aGlzLnVybCA9IHJlcz8uaWZyYW1lX2xpbmsgJiYgcmVzPy5pZnJhbWVfbGlua1xuICAgICAgICAgICAgICAgIHJlcz8uaWZyYW1lX2xpbmsgfHwgKHRoaXMudXJsID0gbnVsbCkgJiYgdGhpcy5wcm9jZXNzRXJyb3IoJ29wZXJhdGlvbi1lcnJvcicpXG4gICAgICAgICAgICAgICAgdGhpcy5sb2FkaW5nID0gZmFsc2VcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBlcnIgPT4ge1xuICAgICAgICAgICAgICAgIHRoaXMucHJvY2Vzc0Vycm9yKCdvcGVyYXRpb24tZXJyb3InKVxuICAgICAgICAgICAgICAgIHRoaXMubG9hZGluZyA9IGZhbHNlXG4gICAgICAgICAgICB9XG4gICAgICAgICk7XG4gICAgfVxuXG59XG5cbiJdfQ==
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
18
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
+
};
|
|
20
|
+
import { Component, Output, OnInit, ViewChild, ElementRef, Input, Renderer2, Inject, OnChanges, EventEmitter, OnDestroy, TemplateRef } from '@angular/core';
|
|
21
|
+
import { ActivatedRoute } from '@angular/router';
|
|
22
|
+
import { ComponentHelper } from "../../../classes/component-helper";
|
|
23
|
+
import { ConnectionService } from '../../../api/connection.service';
|
|
24
|
+
import { ToastService } from '../../../utils/toast.service';
|
|
25
|
+
import { Constants } from '../../../core.consts';
|
|
26
|
+
import { CartService } from '../../../services/cart.service';
|
|
27
|
+
import { DomSanitizer, SafeResourceUrl, SafeUrl } from '@angular/platform-browser';
|
|
28
|
+
var BancardRedirectEcComponent = /** @class */ (function (_super) {
|
|
29
|
+
__extends(BancardRedirectEcComponent, _super);
|
|
30
|
+
function BancardRedirectEcComponent(renderer, connection, toastrService, consts, cartService, toastr, activedRoute, sanitizer) {
|
|
31
|
+
var _this = _super.call(this) || this;
|
|
32
|
+
_this.renderer = renderer;
|
|
33
|
+
_this.connection = connection;
|
|
34
|
+
_this.toastrService = toastrService;
|
|
35
|
+
_this.consts = consts;
|
|
36
|
+
_this.cartService = cartService;
|
|
37
|
+
_this.toastr = toastr;
|
|
38
|
+
_this.activedRoute = activedRoute;
|
|
39
|
+
_this.sanitizer = sanitizer;
|
|
40
|
+
_this.method = null;
|
|
41
|
+
_this.total_amount = 0;
|
|
42
|
+
_this.user_data = null;
|
|
43
|
+
_this.ready = new EventEmitter();
|
|
44
|
+
_this.loading = false;
|
|
45
|
+
_this.isDobleAuth = false;
|
|
46
|
+
_this.urls = [];
|
|
47
|
+
_this.closeModal = '';
|
|
48
|
+
_this.dataRedirect = function () { return _this.consts.getUrlBase() + 'shop-api/' + _this.consts.getChannel() + '/redsys/redirect/' + _this.cartService.cart_token + '/process-payment'; };
|
|
49
|
+
_this.iniciar = function () {
|
|
50
|
+
_this.closeModal = '';
|
|
51
|
+
_this.clearStorageState();
|
|
52
|
+
_this.ventana = window.open(_this.url);
|
|
53
|
+
_this.callState();
|
|
54
|
+
};
|
|
55
|
+
_this.clearStorageState = function () {
|
|
56
|
+
sessionStorage.removeItem('state');
|
|
57
|
+
localStorage.removeItem('state');
|
|
58
|
+
};
|
|
59
|
+
_this.clickClose = function () {
|
|
60
|
+
var _a;
|
|
61
|
+
_this.closeModal = 'cancel';
|
|
62
|
+
(_a = _this.ventana) === null || _a === void 0 ? void 0 : _a.close();
|
|
63
|
+
};
|
|
64
|
+
_this.callState = function () {
|
|
65
|
+
var _a;
|
|
66
|
+
var state = _this.closeModal != '' ? _this.closeModal : localStorage.getItem('state');
|
|
67
|
+
!state && _this.ventana.closed && (state = 'cancel');
|
|
68
|
+
_this.loading = true;
|
|
69
|
+
state && console.log(state);
|
|
70
|
+
if (state) {
|
|
71
|
+
_this.loading = false;
|
|
72
|
+
sessionStorage.removeItem('state');
|
|
73
|
+
localStorage.removeItem('state');
|
|
74
|
+
if (state == 'success') {
|
|
75
|
+
_this.ready.emit(true);
|
|
76
|
+
}
|
|
77
|
+
if (state == 'cancel') {
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
if (state == 'failure') {
|
|
81
|
+
_this.processError('');
|
|
82
|
+
}
|
|
83
|
+
(_a = _this.ventana) === null || _a === void 0 ? void 0 : _a.close();
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
setTimeout(function () {
|
|
87
|
+
_this.callState();
|
|
88
|
+
}, 4000);
|
|
89
|
+
};
|
|
90
|
+
_this.processError = function (err) {
|
|
91
|
+
_this.toastrService.show(err != '' ? err : 'payment-error');
|
|
92
|
+
console.log("ERROR ENVIO BACK ", err);
|
|
93
|
+
};
|
|
94
|
+
_this.setError = function (message) {
|
|
95
|
+
};
|
|
96
|
+
_this.getCheckoutBancard = function () {
|
|
97
|
+
_this.loading = true;
|
|
98
|
+
_this.paymentServiceInst.getCheckoutBancard(_this.allData).then(function (res) {
|
|
99
|
+
var _a, _b, _c;
|
|
100
|
+
_this.dataBancard = res;
|
|
101
|
+
_this.url = ((_a = res) === null || _a === void 0 ? void 0 : _a.iframe_link) && ((_b = res) === null || _b === void 0 ? void 0 : _b.iframe_link);
|
|
102
|
+
((_c = res) === null || _c === void 0 ? void 0 : _c.iframe_link) || (_this.url = null) && _this.processError('operation-error');
|
|
103
|
+
_this.loading = false;
|
|
104
|
+
}, function (err) {
|
|
105
|
+
_this.processError('operation-error');
|
|
106
|
+
_this.loading = false;
|
|
107
|
+
});
|
|
108
|
+
};
|
|
109
|
+
_this.ecOnConstruct();
|
|
110
|
+
return _this;
|
|
111
|
+
}
|
|
112
|
+
BancardRedirectEcComponent.prototype.ngOnInit = function () {
|
|
113
|
+
this.getCheckoutBancard();
|
|
114
|
+
this.ecOnInit();
|
|
115
|
+
};
|
|
116
|
+
BancardRedirectEcComponent.prototype.ngOnDestroy = function () {
|
|
117
|
+
// console.log("SE DESTROZA");
|
|
118
|
+
};
|
|
119
|
+
BancardRedirectEcComponent.prototype.ngOnChanges = function () {
|
|
120
|
+
// console.log("SE CAMBIO");
|
|
121
|
+
};
|
|
122
|
+
BancardRedirectEcComponent.ctorParameters = function () { return [
|
|
123
|
+
{ type: Renderer2 },
|
|
124
|
+
{ type: ConnectionService },
|
|
125
|
+
{ type: ToastService },
|
|
126
|
+
{ type: Constants },
|
|
127
|
+
{ type: CartService },
|
|
128
|
+
{ type: ToastService },
|
|
129
|
+
{ type: ActivatedRoute },
|
|
130
|
+
{ type: DomSanitizer }
|
|
131
|
+
]; };
|
|
132
|
+
__decorate([
|
|
133
|
+
Input()
|
|
134
|
+
], BancardRedirectEcComponent.prototype, "method", void 0);
|
|
135
|
+
__decorate([
|
|
136
|
+
Input()
|
|
137
|
+
], BancardRedirectEcComponent.prototype, "total_amount", void 0);
|
|
138
|
+
__decorate([
|
|
139
|
+
Input()
|
|
140
|
+
], BancardRedirectEcComponent.prototype, "user_data", void 0);
|
|
141
|
+
__decorate([
|
|
142
|
+
Input()
|
|
143
|
+
], BancardRedirectEcComponent.prototype, "paymentServiceInst", void 0);
|
|
144
|
+
__decorate([
|
|
145
|
+
Input()
|
|
146
|
+
], BancardRedirectEcComponent.prototype, "allData", void 0);
|
|
147
|
+
__decorate([
|
|
148
|
+
Output()
|
|
149
|
+
], BancardRedirectEcComponent.prototype, "ready", void 0);
|
|
150
|
+
BancardRedirectEcComponent = __decorate([
|
|
151
|
+
Component({
|
|
152
|
+
selector: 'app-bancard-redirect-ec',
|
|
153
|
+
template: "<div class=\"text-center\">\r\n <h4>Continuar con el pago con Bancard</h4>\r\n <p *ngIf=\"method\" class=\"px-5\">{{ method?.description }}</p>\r\n <p *ngIf=\"method\" class=\"px-5\">{{ method?.instructions }}</p>\r\n <ng-container *ngIf=\"url;else loadingUrl\">\r\n <ng-container *ngIf=\"!loading;else loadingTemp\">\r\n <button (click)=\"iniciar()\" class=\"btn btn-outline-secondary comprar\">Pagar</button>\r\n </ng-container>\r\n </ng-container>\r\n</div>\r\n\r\n<ng-template #loadingUrl>\r\n <div class=\"d-flex flex-column jusitfy-content-center align-items-center mt-2\">\r\n <app-loading-full-ec></app-loading-full-ec>\r\n </div>\r\n</ng-template>\r\n\r\n<ng-template #loadingTemp>\r\n <div class=\"d-flex flex-column jusitfy-content-center align-items-center mt-2\">\r\n <h3>Procesando el pago por Bancard</h3>\r\n <h5>Recuerde hacer click en \"Finalizar\" desde Bancard para finalizar la compra.</h5>\r\n <app-loading-full-ec></app-loading-full-ec>\r\n </div>\r\n <div class=\"container-fluid\">\r\n <div class=\"row\">\r\n <div class=\"col-5\">\r\n <hr>\r\n </div>\r\n <div class=\"col-2 text-center\">\r\n <label for=\"\">o</label>\r\n </div>\r\n <div class=\"col-5\">\r\n <hr>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"d-flex flex-column jusitfy-content-center align-items-center mt-2\">\r\n <button (click)=\"clickClose()\" class=\"btn btn-outline-secondary rounded-0 comprar\">Cancelar pago</button>\r\n </div>\r\n</ng-template>",
|
|
154
|
+
styles: [".half-width{width:49%!important}.ml-1{margin-left:1%}#card-form{height:450px}.iframeStyle{height:800px;width:100%;max-height:800px}"]
|
|
155
|
+
})
|
|
156
|
+
], BancardRedirectEcComponent);
|
|
157
|
+
return BancardRedirectEcComponent;
|
|
158
|
+
}(ComponentHelper));
|
|
159
|
+
export { BancardRedirectEcComponent };
|
|
160
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJ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YWxzZVxyXG4gICAgICAgICAgICBzZXNzaW9uU3RvcmFnZS5yZW1vdmVJdGVtKCdzdGF0ZScpXHJcbiAgICAgICAgICAgIGxvY2FsU3RvcmFnZS5yZW1vdmVJdGVtKCdzdGF0ZScpXHJcbiAgICAgICAgICAgIGlmIChzdGF0ZSA9PSAnc3VjY2VzcycpIHtcclxuICAgICAgICAgICAgICAgIHRoaXMucmVhZHkuZW1pdCh0cnVlKVxyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgICAgIGlmIChzdGF0ZSA9PSAnY2FuY2VsJykge1xyXG4gICAgICAgICAgICAgICAgcmV0dXJuXHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgaWYgKHN0YXRlID09ICdmYWlsdXJlJykge1xyXG4gICAgICAgICAgICAgICAgdGhpcy5wcm9jZXNzRXJyb3IoJycpXHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgdGhpcy52ZW50YW5hPy5jbG9zZSgpXHJcbiAgICAgICAgICAgIHJldHVyblxyXG4gICAgICAgIH1cclxuICAgICAgICBzZXRUaW1lb3V0KCgpID0+IHtcclxuICAgICAgICAgICAgdGhpcy5jYWxsU3RhdGUoKVxyXG4gICAgICAgIH0sIDQwMDApOyAgICBcclxuICAgIH1cclxuXHJcbiAgICBwcm9jZXNzRXJyb3IgPSAoZXJyKSA9PiB7XHJcbiAgICAgICAgdGhpcy50b2FzdHJTZXJ2aWNlLnNob3coZXJyICE9ICcnID8gZXJyIDogJ3BheW1lbnQtZXJyb3InKTtcclxuICAgICAgICBjb25zb2xlLmxvZyhcIkVSUk9SIEVOVklPIEJBQ0sgIFwiLCBlcnIpO1xyXG4gICAgfVxyXG5cclxuICAgIHNldEVycm9yID0gKG1lc3NhZ2UpID0+IHtcclxuICAgICAgICBcclxuICAgIH1cclxuXHJcbiAgICBnZXRDaGVja291dEJhbmNhcmQgPSAoKSA9PiB7XHJcbiAgICAgICAgdGhpcy5sb2FkaW5nID0gdHJ1ZVxyXG4gICAgICAgIHRoaXMucGF5bWVudFNlcnZpY2VJbnN0LmdldENoZWNrb3V0QmFuY2FyZCh0aGlzLmFsbERhdGEpLnRoZW4oXHJcbiAgICAgICAgICAgIHJlcyA9PiB7XHJcbiAgICAgICAgICAgICAgICB0aGlzLmRhdGFCYW5jYXJkID0gcmVzO1xyXG4gICAgICAgICAgICAgICAgdGhpcy51cmwgPSByZXM/LmlmcmFtZV9saW5rICYmIHJlcz8uaWZyYW1lX2xpbmtcclxuICAgICAgICAgICAgICAgIHJlcz8uaWZyYW1lX2xpbmsgfHwgKHRoaXMudXJsID0gbnVsbCkgJiYgdGhpcy5wcm9jZXNzRXJyb3IoJ29wZXJhdGlvbi1lcnJvcicpXHJcbiAgICAgICAgICAgICAgICB0aGlzLmxvYWRpbmcgPSBmYWxzZVxyXG4gICAgICAgICAgICB9LFxyXG4gICAgICAgICAgICBlcnIgPT4ge1xyXG4gICAgICAgICAgICAgICAgdGhpcy5wcm9jZXNzRXJyb3IoJ29wZXJhdGlvbi1lcnJvcicpXHJcbiAgICAgICAgICAgICAgICB0aGlzLmxvYWRpbmcgPSBmYWxzZVxyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgKTtcclxuICAgIH1cclxuXHJcbn1cclxuXHJcbiJdfQ==
|
|
@@ -1,83 +1,83 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
extendStatics(d, b);
|
|
10
|
-
function __() { this.constructor = d; }
|
|
11
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
-
};
|
|
13
|
-
})();
|
|
14
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
18
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
-
};
|
|
20
|
-
var __read = (this && this.__read) || function (o, n) {
|
|
21
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
22
|
-
if (!m) return o;
|
|
23
|
-
var i = m.call(o), r, ar = [], e;
|
|
24
|
-
try {
|
|
25
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
26
|
-
}
|
|
27
|
-
catch (error) { e = { error: error }; }
|
|
28
|
-
finally {
|
|
29
|
-
try {
|
|
30
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
31
|
-
}
|
|
32
|
-
finally { if (e) throw e.error; }
|
|
33
|
-
}
|
|
34
|
-
return ar;
|
|
35
|
-
};
|
|
36
|
-
import { Component } from '@angular/core';
|
|
37
|
-
import { ActivatedRoute, Router } from '@angular/router';
|
|
38
|
-
import { combineLatest } from 'rxjs';
|
|
39
|
-
import { ComponentHelper } from '../../../classes/component-helper';
|
|
40
|
-
import { CartService } from '../../../services/cart.service';
|
|
41
|
-
import { CheckoutService } from '../../../services/checkout/checkout.service';
|
|
42
|
-
var CartLoadEcComponent = /** @class */ (function (_super) {
|
|
43
|
-
__extends(CartLoadEcComponent, _super);
|
|
44
|
-
function CartLoadEcComponent(activedRoute, router, checkoutService, cartService) {
|
|
45
|
-
var _this = _super.call(this) || this;
|
|
46
|
-
_this.activedRoute = activedRoute;
|
|
47
|
-
_this.router = router;
|
|
48
|
-
_this.checkoutService = checkoutService;
|
|
49
|
-
_this.cartService = cartService;
|
|
50
|
-
_this.message = '';
|
|
51
|
-
_this.ecOnConstruct();
|
|
52
|
-
return _this;
|
|
53
|
-
}
|
|
54
|
-
CartLoadEcComponent.prototype.ngOnInit = function () {
|
|
55
|
-
var _this = this;
|
|
56
|
-
var token;
|
|
57
|
-
combineLatest([this.activedRoute.params, this.activedRoute.queryParams]).subscribe(function (_a) {
|
|
58
|
-
var _b = __read(_a, 2), queryRouter = _b[0], queryParams = _b[1];
|
|
59
|
-
token = queryRouter.token;
|
|
60
|
-
console.log('PARAMETROS token -> ', token);
|
|
61
|
-
_this.cartService.loadCartByToken(token).then(function (res) {
|
|
62
|
-
_this.router.navigateByUrl('/cart');
|
|
63
|
-
});
|
|
64
|
-
});
|
|
65
|
-
this.ecOnInit();
|
|
66
|
-
};
|
|
67
|
-
CartLoadEcComponent.ctorParameters = function () { return [
|
|
68
|
-
{ type: ActivatedRoute },
|
|
69
|
-
{ type: Router },
|
|
70
|
-
{ type: CheckoutService },
|
|
71
|
-
{ type: CartService }
|
|
72
|
-
]; };
|
|
73
|
-
CartLoadEcComponent = __decorate([
|
|
74
|
-
Component({
|
|
75
|
-
selector: 'app-cart-load-ec',
|
|
76
|
-
template: "<div class=\"container\">\n <div class=\"row\">\n <div class=\"col align-self-center\">\n <h4 class=\"titpage center-block text-center font-nexa font-lg my-3\">{{ 'retrieve-cart' | translate | uppercase }}</h4>\n </div>\n </div>\n <div class=\"row\">\n <div class=\"col align-self-center mt-2\">\n <div class=\"d-flex flex-column jusitfy-content-center align-items-center\">\n <app-loading-full-ec></app-loading-full-ec>\n </div>\n </div>\n </div>\n</div>",
|
|
77
|
-
styles: [".loader{border:16px solid #f3f3f3;border-top:16px solid #dc3545;border-radius:50%;width:50px;height:50px;-webkit-animation:2s linear infinite spin;animation:2s linear infinite spin}@-webkit-keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.flex-container{display:flex;justify-content:center;align-items:center;height:80vh;width:100%}.flex-container>div{width:90%;height:100px}"]
|
|
78
|
-
})
|
|
79
|
-
], CartLoadEcComponent);
|
|
80
|
-
return CartLoadEcComponent;
|
|
81
|
-
}(ComponentHelper));
|
|
82
|
-
export { CartLoadEcComponent };
|
|
83
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
18
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
+
};
|
|
20
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
21
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
22
|
+
if (!m) return o;
|
|
23
|
+
var i = m.call(o), r, ar = [], e;
|
|
24
|
+
try {
|
|
25
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
26
|
+
}
|
|
27
|
+
catch (error) { e = { error: error }; }
|
|
28
|
+
finally {
|
|
29
|
+
try {
|
|
30
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
31
|
+
}
|
|
32
|
+
finally { if (e) throw e.error; }
|
|
33
|
+
}
|
|
34
|
+
return ar;
|
|
35
|
+
};
|
|
36
|
+
import { Component } from '@angular/core';
|
|
37
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
38
|
+
import { combineLatest } from 'rxjs';
|
|
39
|
+
import { ComponentHelper } from '../../../classes/component-helper';
|
|
40
|
+
import { CartService } from '../../../services/cart.service';
|
|
41
|
+
import { CheckoutService } from '../../../services/checkout/checkout.service';
|
|
42
|
+
var CartLoadEcComponent = /** @class */ (function (_super) {
|
|
43
|
+
__extends(CartLoadEcComponent, _super);
|
|
44
|
+
function CartLoadEcComponent(activedRoute, router, checkoutService, cartService) {
|
|
45
|
+
var _this = _super.call(this) || this;
|
|
46
|
+
_this.activedRoute = activedRoute;
|
|
47
|
+
_this.router = router;
|
|
48
|
+
_this.checkoutService = checkoutService;
|
|
49
|
+
_this.cartService = cartService;
|
|
50
|
+
_this.message = '';
|
|
51
|
+
_this.ecOnConstruct();
|
|
52
|
+
return _this;
|
|
53
|
+
}
|
|
54
|
+
CartLoadEcComponent.prototype.ngOnInit = function () {
|
|
55
|
+
var _this = this;
|
|
56
|
+
var token;
|
|
57
|
+
combineLatest([this.activedRoute.params, this.activedRoute.queryParams]).subscribe(function (_a) {
|
|
58
|
+
var _b = __read(_a, 2), queryRouter = _b[0], queryParams = _b[1];
|
|
59
|
+
token = queryRouter.token;
|
|
60
|
+
console.log('PARAMETROS token -> ', token);
|
|
61
|
+
_this.cartService.loadCartByToken(token).then(function (res) {
|
|
62
|
+
_this.router.navigateByUrl('/cart');
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
this.ecOnInit();
|
|
66
|
+
};
|
|
67
|
+
CartLoadEcComponent.ctorParameters = function () { return [
|
|
68
|
+
{ type: ActivatedRoute },
|
|
69
|
+
{ type: Router },
|
|
70
|
+
{ type: CheckoutService },
|
|
71
|
+
{ type: CartService }
|
|
72
|
+
]; };
|
|
73
|
+
CartLoadEcComponent = __decorate([
|
|
74
|
+
Component({
|
|
75
|
+
selector: 'app-cart-load-ec',
|
|
76
|
+
template: "<div class=\"container\">\r\n <div class=\"row\">\r\n <div class=\"col align-self-center\">\r\n <h4 class=\"titpage center-block text-center font-nexa font-lg my-3\">{{ 'retrieve-cart' | translate | uppercase }}</h4>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col align-self-center mt-2\">\r\n <div class=\"d-flex flex-column jusitfy-content-center align-items-center\">\r\n <app-loading-full-ec></app-loading-full-ec>\r\n </div>\r\n </div>\r\n </div>\r\n</div>",
|
|
77
|
+
styles: [".loader{border:16px solid #f3f3f3;border-top:16px solid #dc3545;border-radius:50%;width:50px;height:50px;-webkit-animation:2s linear infinite spin;animation:2s linear infinite spin}@-webkit-keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.flex-container{display:flex;justify-content:center;align-items:center;height:80vh;width:100%}.flex-container>div{width:90%;height:100px}"]
|
|
78
|
+
})
|
|
79
|
+
], CartLoadEcComponent);
|
|
80
|
+
return CartLoadEcComponent;
|
|
81
|
+
}(ComponentHelper));
|
|
82
|
+
export { CartLoadEcComponent };
|
|
83
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FydC1sb2FkLWVjLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25nLWVhc3ljb21tZXJjZS8iLCJzb3VyY2VzIjpbImxpYi9lYy1jb21wb25lbnQvd2lkZ2V0cy1lYy9jYXJ0LWxvYWQtZWMvY2FydC1sb2FkLWVjLmNvbXBvbmVudC50cyJdLCJu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