ng-easycommerce 0.0.615 → 0.0.617
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 +979 -973
- 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 +519 -519
- package/assets/docs/COOKIES.md +158 -158
- package/assets/docs/Parametros-Frontend.md +56 -56
- package/assets/ec-i18n/ct.json +295 -295
- package/assets/ec-i18n/en.json +0 -0
- package/assets/ec-i18n/es.json +412 -411
- package/assets/ec-i18n/fr.json +0 -0
- package/assets/ec-i18n/gl.json +295 -295
- package/assets/ec-i18n/pr.json +295 -295
- 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 +19681 -19681
- 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 +16 -16
- 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 +115 -115
- package/esm2015/lib/ec-component/account-ec/orders-list-ec/orders-list-ec.component.js +192 -192
- 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 +168 -168
- 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 +140 -140
- 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 +404 -404
- 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 -424
- package/esm2015/lib/ec-component/checkout-ec/detail-checkout-block-ec/detail-checkout-block-ec.component.js +103 -103
- package/esm2015/lib/ec-component/checkout-ec/payment-ec/payment-ec.component.js +146 -146
- 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 +66 -66
- 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 +82 -82
- package/esm2015/lib/ec-component/header-ec/header-ec.component.js +199 -199
- package/esm2015/lib/ec-component/home-ec/home-ec.component.js +37 -37
- package/esm2015/lib/ec-component/index.js +244 -244
- 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 +172 -172
- package/esm2015/lib/ec-component/product-ec/product-ec.component.js +140 -140
- 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 +133 -133
- 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/place-to-pay-ec/place-to-pay-ec.component.js +126 -126
- package/esm2015/lib/ec-component/widgets-ec/price-ec/price-ec.component.js +98 -98
- 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 +181 -181
- 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 -352
- 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 +573 -573
- 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 +79 -79
- 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 +432 -432
- 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 +34 -34
- 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 +22 -22
- 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 +169 -169
- package/esm5/lib/ec-component/account-ec/orders-list-ec/orders-list-ec.component.js +209 -209
- 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 +185 -185
- 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 +170 -170
- 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 +488 -488
- 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 -509
- package/esm5/lib/ec-component/checkout-ec/detail-checkout-block-ec/detail-checkout-block-ec.component.js +120 -120
- package/esm5/lib/ec-component/checkout-ec/payment-ec/payment-ec.component.js +236 -236
- 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 +83 -83
- 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 +113 -113
- package/esm5/lib/ec-component/header-ec/header-ec.component.js +260 -260
- package/esm5/lib/ec-component/home-ec/home-ec.component.js +53 -53
- package/esm5/lib/ec-component/index.js +244 -244
- 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 +199 -199
- package/esm5/lib/ec-component/product-ec/product-ec.component.js +158 -158
- 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 +136 -136
- 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/place-to-pay-ec/place-to-pay-ec.component.js +144 -144
- package/esm5/lib/ec-component/widgets-ec/price-ec/price-ec.component.js +119 -119
- 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 +185 -185
- 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 -426
- 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 +704 -704
- 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 +129 -129
- 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 +497 -497
- 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 +34 -34
- package/esm5/public-api.js +146 -146
- package/fesm2015/ng-easycommerce.js +16657 -16657
- package/fesm2015/ng-easycommerce.js.map +1 -1
- package/fesm5/ng-easycommerce.js +19685 -19685
- 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 +33 -33
- package/lib/ec-component/account-ec/orders-list-ec/orders-list-ec.component.d.ts +84 -84
- 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 +59 -59
- 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 +27 -27
- package/lib/ec-component/checkout-ec/payment-ec/payment-ec.component.d.ts +57 -57
- 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 +33 -33
- 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 +81 -81
- 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 +60 -60
- package/lib/ec-component/product-ec/product-ec.component.d.ts +52 -52
- 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 +29 -29
- 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/place-to-pay-ec/place-to-pay-ec.component.d.ts +34 -34
- package/lib/ec-component/widgets-ec/price-ec/price-ec.component.d.ts +31 -31
- 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 +140 -140
- 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 +34 -34
- 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 +34 -34
- package/ng-easycommerce.metadata.json +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +144 -144
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
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;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
8
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
9
|
-
};
|
|
10
|
-
import { Inject, Injectable, Renderer2, RendererFactory2 } from '@angular/core';
|
|
11
|
-
import { DOCUMENT } from '@angular/common';
|
|
12
|
-
import * as i0 from "@angular/core";
|
|
13
|
-
import * as i1 from "@angular/common";
|
|
14
|
-
let MetricoolPixelService = class MetricoolPixelService {
|
|
15
|
-
constructor(rendererFactory, document) {
|
|
16
|
-
this.rendererFactory = rendererFactory;
|
|
17
|
-
this.document = document;
|
|
18
|
-
this.isLoaded = false;
|
|
19
|
-
this.initialize = (pixel_hash) => {
|
|
20
|
-
let new_analityc_script = this.renderer.createElement('script');
|
|
21
|
-
new_analityc_script.type = 'text/javascript';
|
|
22
|
-
new_analityc_script.text = `
|
|
23
|
-
function loadScript(a) {
|
|
24
|
-
var b = document.getElementsByTagName("head")[0], c = document.createElement("script");
|
|
25
|
-
c.type = "text/javascript",
|
|
26
|
-
c.src = "https://tracker.metricool.com/resources/be.js",
|
|
27
|
-
c.onreadystatechange = a,
|
|
28
|
-
c.onload = a, b.appendChild(c)
|
|
29
|
-
} loadScript(function () {
|
|
30
|
-
beTracker.t({ hash: "${pixel_hash}" })
|
|
31
|
-
});
|
|
32
|
-
`;
|
|
33
|
-
this.renderer.appendChild(this.document.body, new_analityc_script);
|
|
34
|
-
};
|
|
35
|
-
this.renderer = this.rendererFactory.createRenderer(null, null);
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
MetricoolPixelService.ctorParameters = () => [
|
|
39
|
-
{ type: RendererFactory2 },
|
|
40
|
-
{ type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }
|
|
41
|
-
];
|
|
42
|
-
MetricoolPixelService.ɵprov = i0.ɵɵdefineInjectable({ factory: function MetricoolPixelService_Factory() { return new MetricoolPixelService(i0.ɵɵinject(i0.RendererFactory2), i0.ɵɵinject(i1.DOCUMENT)); }, token: MetricoolPixelService, providedIn: "root" });
|
|
43
|
-
MetricoolPixelService = __decorate([
|
|
44
|
-
Injectable({ providedIn: 'root' }),
|
|
45
|
-
__param(1, Inject(DOCUMENT))
|
|
46
|
-
], MetricoolPixelService);
|
|
47
|
-
export { MetricoolPixelService };
|
|
48
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
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;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
8
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
9
|
+
};
|
|
10
|
+
import { Inject, Injectable, Renderer2, RendererFactory2 } from '@angular/core';
|
|
11
|
+
import { DOCUMENT } from '@angular/common';
|
|
12
|
+
import * as i0 from "@angular/core";
|
|
13
|
+
import * as i1 from "@angular/common";
|
|
14
|
+
let MetricoolPixelService = class MetricoolPixelService {
|
|
15
|
+
constructor(rendererFactory, document) {
|
|
16
|
+
this.rendererFactory = rendererFactory;
|
|
17
|
+
this.document = document;
|
|
18
|
+
this.isLoaded = false;
|
|
19
|
+
this.initialize = (pixel_hash) => {
|
|
20
|
+
let new_analityc_script = this.renderer.createElement('script');
|
|
21
|
+
new_analityc_script.type = 'text/javascript';
|
|
22
|
+
new_analityc_script.text = `
|
|
23
|
+
function loadScript(a) {
|
|
24
|
+
var b = document.getElementsByTagName("head")[0], c = document.createElement("script");
|
|
25
|
+
c.type = "text/javascript",
|
|
26
|
+
c.src = "https://tracker.metricool.com/resources/be.js",
|
|
27
|
+
c.onreadystatechange = a,
|
|
28
|
+
c.onload = a, b.appendChild(c)
|
|
29
|
+
} loadScript(function () {
|
|
30
|
+
beTracker.t({ hash: "${pixel_hash}" })
|
|
31
|
+
});
|
|
32
|
+
`;
|
|
33
|
+
this.renderer.appendChild(this.document.body, new_analityc_script);
|
|
34
|
+
};
|
|
35
|
+
this.renderer = this.rendererFactory.createRenderer(null, null);
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
MetricoolPixelService.ctorParameters = () => [
|
|
39
|
+
{ type: RendererFactory2 },
|
|
40
|
+
{ type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }
|
|
41
|
+
];
|
|
42
|
+
MetricoolPixelService.ɵprov = i0.ɵɵdefineInjectable({ factory: function MetricoolPixelService_Factory() { return new MetricoolPixelService(i0.ɵɵinject(i0.RendererFactory2), i0.ɵɵinject(i1.DOCUMENT)); }, token: MetricoolPixelService, providedIn: "root" });
|
|
43
|
+
MetricoolPixelService = __decorate([
|
|
44
|
+
Injectable({ providedIn: 'root' }),
|
|
45
|
+
__param(1, Inject(DOCUMENT))
|
|
46
|
+
], MetricoolPixelService);
|
|
47
|
+
export { MetricoolPixelService };
|
|
48
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWV0cmljb29sLXBpeGVsLnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZy1lYXN5Y29tbWVyY2UvIiwic291cmNlcyI6WyJsaWIvdXRpbHMvYW5hbHl0aWNzL21ldHJpY29vbC1waXhlbC5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7OztBQUFBLE9BQU8sRUFBRSxNQUFNLEVBQUUsVUFBVSxFQUFFLFNBQVMsRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUdoRixPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0saUJBQWlCLENBQUM7OztBQUczQyxJQUFhLHFCQUFxQixHQUFsQyxNQUFhLHFCQUFxQjtJQVM5QixZQUFvQixlQUFpQyxFQUE0QixRQUFhO1FBQTFFLG9CQUFlLEdBQWYsZUFBZSxDQUFrQjtRQUE0QixhQUFRLEdBQVIsUUFBUSxDQUFLO1FBUnRGLGFBQVEsR0FBRyxLQUFLLENBQUM7UUFZekIsZUFBVSxHQUFHLENBQUMsVUFBVSxFQUFFLEVBQUU7WUFDeEIsSUFBSSxtQkFBbUIsR0FBRyxJQUFJLENBQUMsUUFBUSxDQUFDLGFBQWEsQ0FBQyxRQUFRLENBQUMsQ0FBQztZQUNoRSxtQkFBbUIsQ0FBQyxJQUFJLEdBQUcsaUJBQWlCLENBQUM7WUFDN0MsbUJBQW1CLENBQUMsSUFBSSxHQUFHOzs7Ozs7OzttQ0FRQSxVQUFVOztTQUVwQyxDQUFDO1lBQ0YsSUFBSSxDQUFDLFFBQVEsQ0FBQyxXQUFXLENBQUMsSUFBSSxDQUFDLFFBQVEsQ0FBQy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JHtwaXhlbF9oYXNofVwiIH0pXHJcbiAgICAgICAgfSk7XHJcbiAgICAgICAgYDtcclxuICAgICAgICB0aGlzLnJlbmRlcmVyLmFwcGVuZENoaWxkKHRoaXMuZG9jdW1lbnQuYm9keSwgbmV3X2FuYWxpdHljX3NjcmlwdCk7XHJcbiAgICB9XHJcbiAgIFxyXG59XHJcbiJdfQ==
|
|
@@ -1,96 +1,96 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
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;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
import { Injectable } from '@angular/core';
|
|
8
|
-
import { FilterOptionTypes } from '../interfaces/choose-options/filter-option';
|
|
9
|
-
let OptionsOfProductListDataReceiverService = class OptionsOfProductListDataReceiverService {
|
|
10
|
-
constructor() { }
|
|
11
|
-
getData() {
|
|
12
|
-
return {
|
|
13
|
-
sortOptions: [
|
|
14
|
-
{
|
|
15
|
-
name: 'Alphabetical order',
|
|
16
|
-
value: 'name',
|
|
17
|
-
type: FilterOptionTypes.oneSelect,
|
|
18
|
-
selectedOption: null,
|
|
19
|
-
options: [
|
|
20
|
-
{
|
|
21
|
-
name: 'Ascendancy',
|
|
22
|
-
value: 'asc',
|
|
23
|
-
selected: false,
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
name: 'Descendant',
|
|
27
|
-
value: 'desc',
|
|
28
|
-
selected: false,
|
|
29
|
-
}
|
|
30
|
-
]
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
name: 'Created date',
|
|
34
|
-
value: 'createdAt',
|
|
35
|
-
type: FilterOptionTypes.oneSelect,
|
|
36
|
-
selectedOption: null,
|
|
37
|
-
options: [
|
|
38
|
-
{
|
|
39
|
-
name: 'Oldest first',
|
|
40
|
-
value: 'asc',
|
|
41
|
-
selected: false,
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
name: 'Newest first',
|
|
45
|
-
value: 'desc',
|
|
46
|
-
selected: false,
|
|
47
|
-
}
|
|
48
|
-
]
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
name: 'Price',
|
|
52
|
-
value: 'price',
|
|
53
|
-
type: FilterOptionTypes.oneSelect,
|
|
54
|
-
selectedOption: null,
|
|
55
|
-
options: [
|
|
56
|
-
{
|
|
57
|
-
name: 'Cheapest first',
|
|
58
|
-
value: 'asc',
|
|
59
|
-
selected: false,
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
name: 'Most expensive first',
|
|
63
|
-
value: 'desc',
|
|
64
|
-
selected: false,
|
|
65
|
-
}
|
|
66
|
-
]
|
|
67
|
-
},
|
|
68
|
-
],
|
|
69
|
-
filterOptions: [
|
|
70
|
-
{
|
|
71
|
-
name: 'Vigencia',
|
|
72
|
-
value: 'enabled',
|
|
73
|
-
type: FilterOptionTypes.oneSelect,
|
|
74
|
-
selectedOption: null,
|
|
75
|
-
options: [
|
|
76
|
-
{
|
|
77
|
-
name: 'Habilitados',
|
|
78
|
-
value: 'true',
|
|
79
|
-
selected: false,
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
name: 'Deshabilitados',
|
|
83
|
-
value: 'false',
|
|
84
|
-
selected: false,
|
|
85
|
-
}
|
|
86
|
-
]
|
|
87
|
-
}
|
|
88
|
-
],
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
};
|
|
92
|
-
OptionsOfProductListDataReceiverService = __decorate([
|
|
93
|
-
Injectable()
|
|
94
|
-
], OptionsOfProductListDataReceiverService);
|
|
95
|
-
export { OptionsOfProductListDataReceiverService };
|
|
96
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
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;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { Injectable } from '@angular/core';
|
|
8
|
+
import { FilterOptionTypes } from '../interfaces/choose-options/filter-option';
|
|
9
|
+
let OptionsOfProductListDataReceiverService = class OptionsOfProductListDataReceiverService {
|
|
10
|
+
constructor() { }
|
|
11
|
+
getData() {
|
|
12
|
+
return {
|
|
13
|
+
sortOptions: [
|
|
14
|
+
{
|
|
15
|
+
name: 'Alphabetical order',
|
|
16
|
+
value: 'name',
|
|
17
|
+
type: FilterOptionTypes.oneSelect,
|
|
18
|
+
selectedOption: null,
|
|
19
|
+
options: [
|
|
20
|
+
{
|
|
21
|
+
name: 'Ascendancy',
|
|
22
|
+
value: 'asc',
|
|
23
|
+
selected: false,
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: 'Descendant',
|
|
27
|
+
value: 'desc',
|
|
28
|
+
selected: false,
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
name: 'Created date',
|
|
34
|
+
value: 'createdAt',
|
|
35
|
+
type: FilterOptionTypes.oneSelect,
|
|
36
|
+
selectedOption: null,
|
|
37
|
+
options: [
|
|
38
|
+
{
|
|
39
|
+
name: 'Oldest first',
|
|
40
|
+
value: 'asc',
|
|
41
|
+
selected: false,
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
name: 'Newest first',
|
|
45
|
+
value: 'desc',
|
|
46
|
+
selected: false,
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
name: 'Price',
|
|
52
|
+
value: 'price',
|
|
53
|
+
type: FilterOptionTypes.oneSelect,
|
|
54
|
+
selectedOption: null,
|
|
55
|
+
options: [
|
|
56
|
+
{
|
|
57
|
+
name: 'Cheapest first',
|
|
58
|
+
value: 'asc',
|
|
59
|
+
selected: false,
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
name: 'Most expensive first',
|
|
63
|
+
value: 'desc',
|
|
64
|
+
selected: false,
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
filterOptions: [
|
|
70
|
+
{
|
|
71
|
+
name: 'Vigencia',
|
|
72
|
+
value: 'enabled',
|
|
73
|
+
type: FilterOptionTypes.oneSelect,
|
|
74
|
+
selectedOption: null,
|
|
75
|
+
options: [
|
|
76
|
+
{
|
|
77
|
+
name: 'Habilitados',
|
|
78
|
+
value: 'true',
|
|
79
|
+
selected: false,
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
name: 'Deshabilitados',
|
|
83
|
+
value: 'false',
|
|
84
|
+
selected: false,
|
|
85
|
+
}
|
|
86
|
+
]
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
OptionsOfProductListDataReceiverService = __decorate([
|
|
93
|
+
Injectable()
|
|
94
|
+
], OptionsOfProductListDataReceiverService);
|
|
95
|
+
export { OptionsOfProductListDataReceiverService };
|
|
96
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3B0aW9ucy1vZi1wcm9kdWN0LWxpc3QtZGF0YS5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmctZWFzeWNvbW1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NDb250ZW50IjpbImltcG9ydCB7IEluamVjdGFibGUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcclxuaW1wb3J0IHsgT3B0aW9uc09mUHJvZHVjdExpc3RJbnRlcmZhY2UgfSBmcm9tICcuLi9pbnRlcmZhY2VzL2Nob29zZS1vcHRpb25zL29wdGlvbnMtb2YtcHJvZHVjdC1saXN0JztcclxuaW1wb3J0IHsgRmlsdGVyT3B0aW9uVHlwZXMgfSBmcm9tICcuLi9pbnRlcmZhY2VzL2Nob29zZS1vcHRpb25zL2ZpbHRlci1vcHRpb24nO1xyXG5cclxuQEluamVjdGFibGUoKVxyXG5leHBvcnQgY2xhc3MgT3B0aW9uc09mUHJvZHVjdExpc3REYXRhUmVjZWl2ZXJTZXJ2aWNlIHtcclxuICBjb25zdHJ1Y3RvcigpIHsgfVxyXG5cclxuICBnZXREYXRhKCk6IE9wdGlvbnNPZlByb2R1Y3RMaXN0SW50ZXJmYWNlIHtcclxuICAgIHJldHVybiB7XHJcbiAgICAgIHNvcnRPcHRpb25zOiBbXHJcbiAgICAgICAge1xyXG4gICAgICAgICAgbmFtZTogJ0FscGhhYmV0aWNhbCBvcmRlcicsXHJcbiAgICAgICAgICB2YWx1ZTogJ25hbWUnLFxyXG4gICAgICAgICAgdHlwZTogRmlsdGVyT3B0aW9uVHlwZXMub25lU2VsZWN0LFxyXG4gICAgICAgICAgc2VsZWN0ZWRPcHRpb246IG51bGwsXHJcbiAgICAgICAgICBvcHRpb25zOiBbXHJcbiAgICAgICAgICAgIHtcclxuICAgICAgICAgICAgICBuYW1lOiAnQXNjZW5kYW5jeScsXHJcbiAgICAgICAgICAgICAgdmFsdWU6ICdhc2MnLFxyXG4gICAgICAgICAgICAgIHNlbGVjdGVkOiBmYWxzZSxcclxuICAgICAgICAgICAgfSxcclxuICAgICAgICAgICAge1xyXG4gICAgICAgICAgICAgIG5hbWU6ICdEZXNjZW5kYW50JyxcclxuICAgICAgICAgICAgICB2YWx1ZTogJ2Rlc2MnLFxyXG4gICAgICAgICAgICAgIHNlbGVjdGVkOiBmYWxzZSxcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgICAgXVxyXG4gICAgICAgIH0sXHJcbiAgICAgICAge1xyXG4gICAgICAgICAgbmFtZTogJ0NyZWF0ZWQgZGF0ZScsXHJcbiAgICAgICAgICB2YWx1ZTogJ2NyZWF0ZWRBdCcsXHJcbiAgICAgICAgICB0eXBlOiBGaWx0ZXJPcHRpb25UeXBlcy5vbmVTZWxlY3QsXHJcbiAgICAgICAgICBzZWxlY3RlZE9wdGlvbjogbnVsbCxcclxuICAgICAgICAgIG9wdGlvbnM6IFtcclxuICAgICAgICAgICAge1xyXG4gICAgICAgICAgICAgIG5hbWU6ICdPbGRlc3QgZmlyc3QnLFxyXG4gICAgICAgICAgICAgIHZhbHVlOiAnYXNjJyxcclxuICAgICAgICAgICAgICBzZWxlY3RlZDogZmFsc2UsXHJcbiAgICAgICAgICAgIH0sXHJcbiAgICAgICAgICAgIHtcclxuICAgICAgICAgICAgICBuYW1lOiAnTmV3ZXN0IGZpcnN0JyxcclxuICAgICAgICAgICAgICB2YWx1ZTogJ2Rlc2MnLFxyXG4gICAgICAgICAgICAgIHNlbGVjdGVkOiBmYWxzZSxcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgICAgXVxyXG4gICAgICAgIH0sXHJcbiAgICAgICAge1xyXG4gICAgICAgICAgbmFtZTogJ1ByaWNlJyxcclxuICAgICAgICAgIHZhbHVlOiAncHJpY2UnLFxyXG4gICAgICAgICAgdHlwZTogRmlsdGVyT3B0aW9uVHlwZXMub25lU2VsZWN0LFxyXG4gICAgICAgICAgc2VsZWN0ZWRPcHRpb246IG51bGwsXHJcbiAgICAgICAgICBvcHRpb25zOiBbXHJcbiAgICAgICAgICAgIHtcclxuICAgICAgICAgICAgICBuYW1lOiAnQ2hlYXBlc3QgZmlyc3QnLFxyXG4gICAgICAgICAgICAgIHZhbHVlOiAnYXNjJyxcclxuICAgICAgICAgICAgICBzZWxlY3RlZDogZmFsc2UsXHJcbiAgICAgICAgICAgIH0sXHJcbiAgICAgICAgICAgIHtcclxuICAgICAgICAgICAgICBuYW1lOiAnTW9zdCBleHBlbnNpdmUgZmlyc3QnLFxyXG4gICAgICAgICAgICAgIHZhbHVlOiAnZGVzYycsXHJcbiAgICAgICAgICAgICAgc2VsZWN0ZWQ6IGZhbHNlLFxyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgICBdXHJcbiAgICAgICAgfSxcclxuICAgICAgXSxcclxuICAgICAgZmlsdGVyT3B0aW9uczogW1xyXG4gICAgICAgIHtcclxuICAgICAgICAgIG5hbWU6ICdWaWdlbmNpYScsXHJcbiAgICAgICAgICB2YWx1ZTogJ2VuYWJsZWQnLFxyXG4gICAgICAgICAgdHlwZTogRmlsdGVyT3B0aW9uVHlwZXMub25lU2VsZWN0LFxyXG4gICAgICAgICAgc2VsZWN0ZWRPcHRpb246IG51bGwsXHJcbiAgICAgICAgICBvcHRpb25zOiBbXHJcbiAgICAgICAgICAgIHtcclxuICAgICAgICAgICAgICBuYW1lOiAnSGFiaWxpdGFkb3MnLFxyXG4gICAgICAgICAgICAgIHZhbHVlOiAndHJ1ZScsXHJcbiAgICAgICAgICAgICAgc2VsZWN0ZWQ6IGZhbHNlLFxyXG4gICAgICAgICAgICB9LFxyXG4gICAgICAgICAgICB7XHJcbiAgICAgICAgICAgICAgbmFtZTogJ0Rlc2hhYmlsaXRhZG9zJyxcclxuICAgICAgICAgICAgICB2YWx1ZTogJ2ZhbHNlJyxcclxuICAgICAgICAgICAgICBzZWxlY3RlZDogZmFsc2UsXHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICAgIF1cclxuICAgICAgICB9XHJcbiAgICAgIF0sXHJcbiAgICB9XHJcbiAgfVxyXG59XHJcbiJdfQ==
|
|
@@ -1,72 +1,72 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
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;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
import { Injectable } from '@angular/core';
|
|
8
|
-
let OrderUtilityService = class OrderUtilityService {
|
|
9
|
-
constructor() {
|
|
10
|
-
/**
|
|
11
|
-
* @param cart Objeto carrito o orden, indistintamente, ya que poseen el mismo formato
|
|
12
|
-
* @param forCart Si la solicitud de promociones proviene del carrito, suprime el subtotal y el total
|
|
13
|
-
* @description Devuelve un listado con todas las promociones que posee el carro/orden
|
|
14
|
-
*/
|
|
15
|
-
this.getPromotions = (cart, forCart = false) => {
|
|
16
|
-
if (cart.checkoutState && cart.checkoutState == "completed")
|
|
17
|
-
return;
|
|
18
|
-
let new_state = [];
|
|
19
|
-
let subtotal = { type: 'subtotal', name: 'subtotal', amount: cart.totals.subtotal };
|
|
20
|
-
let total = { type: 'total', name: 'total', amount: cart.totals.total };
|
|
21
|
-
!forCart && new_state.push(subtotal);
|
|
22
|
-
// console.log(cart.cartDiscounts);
|
|
23
|
-
for (let index = 0; index < cart.cartDiscounts.length; index++) {
|
|
24
|
-
cart.cartDiscounts[index].type = this.formatType(cart.cartDiscounts[index].type);
|
|
25
|
-
new_state.push({
|
|
26
|
-
type: cart.cartDiscounts[index].type,
|
|
27
|
-
name: (cart.cartDiscounts[index].type != 'coupon') ? cart.cartDiscounts[index].name : 'coupon',
|
|
28
|
-
amount: this.getAmount(cart.cartDiscounts[index], cart)
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
// cart.cartDiscounts.forEach(cartDiscount => {
|
|
32
|
-
// cartDiscount.type = this.formatType(cartDiscount.type);
|
|
33
|
-
// new_state.push({
|
|
34
|
-
// type: cartDiscount.type,
|
|
35
|
-
// name: (cartDiscount.type != 'coupon') ? cartDiscount.name : 'coupon',
|
|
36
|
-
// amount: this.getAmount(cartDiscount, cart)
|
|
37
|
-
// });
|
|
38
|
-
// });
|
|
39
|
-
!forCart && new_state.push(total);
|
|
40
|
-
return new_state;
|
|
41
|
-
};
|
|
42
|
-
this.getAmount = (discount, cart) => {
|
|
43
|
-
if (discount.type != 'shipment')
|
|
44
|
-
return discount.amount;
|
|
45
|
-
return cart.totals.shipping;
|
|
46
|
-
};
|
|
47
|
-
this.formatType = (type) => {
|
|
48
|
-
let result;
|
|
49
|
-
switch (type) {
|
|
50
|
-
case 'order_promotion':
|
|
51
|
-
result = 'discount';
|
|
52
|
-
break;
|
|
53
|
-
case 'order_shipping_promotion':
|
|
54
|
-
result = 'shipment';
|
|
55
|
-
break;
|
|
56
|
-
case 'order_coupon_promotion':
|
|
57
|
-
result = 'coupon';
|
|
58
|
-
break;
|
|
59
|
-
case 'order_unit_promotion':
|
|
60
|
-
result = 'discount';
|
|
61
|
-
break;
|
|
62
|
-
}
|
|
63
|
-
!result && (result = type.includes('promotion') || type.includes('discount') ? 'discount' : type);
|
|
64
|
-
return result || type;
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
OrderUtilityService = __decorate([
|
|
69
|
-
Injectable()
|
|
70
|
-
], OrderUtilityService);
|
|
71
|
-
export { OrderUtilityService };
|
|
72
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
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;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { Injectable } from '@angular/core';
|
|
8
|
+
let OrderUtilityService = class OrderUtilityService {
|
|
9
|
+
constructor() {
|
|
10
|
+
/**
|
|
11
|
+
* @param cart Objeto carrito o orden, indistintamente, ya que poseen el mismo formato
|
|
12
|
+
* @param forCart Si la solicitud de promociones proviene del carrito, suprime el subtotal y el total
|
|
13
|
+
* @description Devuelve un listado con todas las promociones que posee el carro/orden
|
|
14
|
+
*/
|
|
15
|
+
this.getPromotions = (cart, forCart = false) => {
|
|
16
|
+
if (cart.checkoutState && cart.checkoutState == "completed")
|
|
17
|
+
return;
|
|
18
|
+
let new_state = [];
|
|
19
|
+
let subtotal = { type: 'subtotal', name: 'subtotal', amount: cart.totals.subtotal };
|
|
20
|
+
let total = { type: 'total', name: 'total', amount: cart.totals.total };
|
|
21
|
+
!forCart && new_state.push(subtotal);
|
|
22
|
+
// console.log(cart.cartDiscounts);
|
|
23
|
+
for (let index = 0; index < cart.cartDiscounts.length; index++) {
|
|
24
|
+
cart.cartDiscounts[index].type = this.formatType(cart.cartDiscounts[index].type);
|
|
25
|
+
new_state.push({
|
|
26
|
+
type: cart.cartDiscounts[index].type,
|
|
27
|
+
name: (cart.cartDiscounts[index].type != 'coupon') ? cart.cartDiscounts[index].name : 'coupon',
|
|
28
|
+
amount: this.getAmount(cart.cartDiscounts[index], cart)
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
// cart.cartDiscounts.forEach(cartDiscount => {
|
|
32
|
+
// cartDiscount.type = this.formatType(cartDiscount.type);
|
|
33
|
+
// new_state.push({
|
|
34
|
+
// type: cartDiscount.type,
|
|
35
|
+
// name: (cartDiscount.type != 'coupon') ? cartDiscount.name : 'coupon',
|
|
36
|
+
// amount: this.getAmount(cartDiscount, cart)
|
|
37
|
+
// });
|
|
38
|
+
// });
|
|
39
|
+
!forCart && new_state.push(total);
|
|
40
|
+
return new_state;
|
|
41
|
+
};
|
|
42
|
+
this.getAmount = (discount, cart) => {
|
|
43
|
+
if (discount.type != 'shipment')
|
|
44
|
+
return discount.amount;
|
|
45
|
+
return cart.totals.shipping;
|
|
46
|
+
};
|
|
47
|
+
this.formatType = (type) => {
|
|
48
|
+
let result;
|
|
49
|
+
switch (type) {
|
|
50
|
+
case 'order_promotion':
|
|
51
|
+
result = 'discount';
|
|
52
|
+
break;
|
|
53
|
+
case 'order_shipping_promotion':
|
|
54
|
+
result = 'shipment';
|
|
55
|
+
break;
|
|
56
|
+
case 'order_coupon_promotion':
|
|
57
|
+
result = 'coupon';
|
|
58
|
+
break;
|
|
59
|
+
case 'order_unit_promotion':
|
|
60
|
+
result = 'discount';
|
|
61
|
+
break;
|
|
62
|
+
}
|
|
63
|
+
!result && (result = type.includes('promotion') || type.includes('discount') ? 'discount' : type);
|
|
64
|
+
return result || type;
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
OrderUtilityService = __decorate([
|
|
69
|
+
Injectable()
|
|
70
|
+
], OrderUtilityService);
|
|
71
|
+
export { OrderUtilityService };
|
|
72
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3JkZXItdXRpbC5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmctZWFzeWNvbW1lcmNlLyIsInNvdXJjZXMiOlsibGliL3V0aWxzL29yZGVyLXV0aWwuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBSTNDLElBQWEsbUJBQW1CLEdBQWhDLE1BQWEsbUJBQW1CO0lBRTVCO1FBRUE7Ozs7V0FJRztRQUNILGtCQUFhLEdBQUcsQ0FBQyxJQUFTLEVBQUUsVUFBbUIsS0FBSyxFQUFrQixFQUFF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xcclxuICAgICAgICAgICAgICAgICBuYW1lOiAoY2FydC5jYXJ0RGlzY291bnRzW2luZGV4XS50eXBlICE9ICdjb3Vwb24nKSA/IGNhcnQuY2FydERpc2NvdW50c1tpbmRleF0ubmFtZSA6ICdjb3Vwb24nLFxyXG4gICAgICAgICAgICAgICAgIGFtb3VudDogdGhpcy5nZXRBbW91bnQoY2FydC5jYXJ0RGlzY291bnRzW2luZGV4XSwgY2FydClcclxuICAgICAgICAgICAgIH0pO1xyXG5cclxuICAgICAgICB9XHJcbiAgICAgLy8gICAgY2FydC5jYXJ0RGlzY291bnRzLmZvckVhY2goY2FydERpc2NvdW50ID0+IHtcclxuICAgICAvLyAgICAgICAgY2FydERpc2NvdW50LnR5cGUgPSB0aGlzLmZvcm1hdFR5cGUoY2FydERpc2NvdW50LnR5cGUpO1xyXG4gICAgIC8vICAgICAgICBuZXdfc3RhdGUucHVzaCh7XHJcbiAgICAgLy8gICAgICAgICAgICB0eXBlOiBjYXJ0RGlzY291bnQudHlwZSxcclxuICAgICAvLyAgICAgICAgICAgIG5hbWU6IChjYXJ0RGlzY291bnQudHlwZSAhPSAnY291cG9uJykgPyBjYXJ0RGlzY291bnQubmFtZSA6ICdjb3Vwb24nLFxyXG4gICAgIC8vICAgICAgICAgICAgYW1vdW50OiB0aGlzLmdldEFtb3VudChjYXJ0RGlzY291bnQsIGNhcnQpXHJcbiAgICAgLy8gICAgICAgIH0pO1xyXG4gICAgIC8vICAgIH0pO1xyXG4gICAgICAgICFmb3JDYXJ0ICYmIG5ld19zdGF0ZS5wdXNoKHRvdGFsKTtcclxuICAgICAgICByZXR1cm4gbmV3X3N0YXRlO1xyXG4gICAgfVxyXG5cclxuICAgIGdldEFtb3VudCA9IChkaXNjb3VudCwgY2FydCk6IG51bWJlciA9PiB7XHJcbiAgICAgICAgaWYgKGRpc2NvdW50LnR5cGUgIT0gJ3NoaXBtZW50JykgcmV0dXJuIGRpc2NvdW50LmFtb3VudDtcclxuICAgICAgICByZXR1cm4gY2FydC50b3RhbHMuc2hpcHBpbmc7XHJcbiAgICB9XHJcblxyXG4gICAgZm9ybWF0VHlwZSA9ICh0eXBlOiBzdHJpbmcpOiBDaGVja291dERhdGFUeXBlID0+IHtcclxuICAgICAgICBsZXQgcmVzdWx0O1xyXG4gICAgICAgIHN3aXRjaCAodHlwZSkge1xyXG4gICAgICAgICAgICBjYXNlICdvcmRlcl9wcm9tb3Rpb24nOiByZXN1bHQgPSAnZGlzY291bnQnOyBicmVhaztcclxuICAgICAgICAgICAgY2FzZSAnb3JkZXJfc2hpcHBpbmdfcHJvbW90aW9uJzogcmVzdWx0ID0gJ3NoaXBtZW50JzsgYnJlYWs7XHJcbiAgICAgICAgICAgIGNhc2UgJ29yZGVyX2NvdXBvbl9wcm9tb3Rpb24nOiByZXN1bHQgPSAnY291cG9uJzsgYnJlYWs7XHJcbiAgICAgICAgICAgIGNhc2UgJ29yZGVyX3VuaXRfcHJvbW90aW9uJzogcmVzdWx0ID0gJ2Rpc2NvdW50JzsgYnJlYWs7XHJcbiAgICAgICAgfVxyXG4gICAgICAgICFyZXN1bHQgJiYgKHJlc3VsdCA9IHR5cGUuaW5jbHVkZXMoJ3Byb21vdGlvbicpIHx8IHR5cGUuaW5jbHVkZXMoJ2Rpc2NvdW50JykgPyAnZGlzY291bnQnIDogdHlwZSApXHJcbiAgICAgICAgcmV0dXJuIHJlc3VsdCB8fCB0eXBlO1xyXG4gICAgfVxyXG59XHJcbiJdfQ==
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
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;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
import { Injectable } from '@angular/core';
|
|
8
|
-
let PaymentUtils = class PaymentUtils {
|
|
9
|
-
constructor() {
|
|
10
|
-
this.mp_error_codes = {
|
|
11
|
-
'pending_contingency': 'Estamos procesando el pago. En menos de 2 días hábiles te enviaremos por e-mail el resultado.',
|
|
12
|
-
'pending_review_manual': 'Estamos procesando el pago. En menos de 2 días hábiles te diremos por e-mail si se acreditó o si necesitamos más información.',
|
|
13
|
-
'cc_rejected_bad_filled_card_number': 'Revisa el número de tarjeta.',
|
|
14
|
-
'cc_rejected_bad_filled_date': 'Revisa la fecha de vencimiento.',
|
|
15
|
-
'cc_rejected_bad_filled_other': 'Revisa los datos.',
|
|
16
|
-
'cc_rejected_bad_filled_security_code': 'Revisa el código de seguridad.',
|
|
17
|
-
'cc_rejected_blacklist': 'No pudimos procesar tu pago.',
|
|
18
|
-
'cc_rejected_call_for_authorize': 'Debes autorizar ante payment_method_id el pago de amount a Mercado Pago',
|
|
19
|
-
'cc_rejected_card_disabled': 'Llama a payment_method_id para que active tu tarjeta. El teléfono está al dorso de tu tarjeta.',
|
|
20
|
-
'cc_rejected_card_error': 'No pudimos procesar tu pago.',
|
|
21
|
-
'cc_rejected_duplicated_payment': 'Ya hiciste un pago por ese valor. Si necesitas volver a pagar usa otra tarjeta u otro medio de pago.',
|
|
22
|
-
'cc_rejected_high_risk': 'Tu pago fue rechazado. Elige otro de los medios de pago, te recomendamos con medios en efectivo.',
|
|
23
|
-
'cc_rejected_insufficient_amount': 'Tu payment_method_id no tiene fondos suficientes.',
|
|
24
|
-
'cc_rejected_invalid_installments': 'El metodo de pago no procesa pagos en cuotas.',
|
|
25
|
-
'cc_rejected_max_attempts': 'Llegaste al límite de intentos permitidos. Elige otra tarjeta u otro medio de pago.',
|
|
26
|
-
'cc_rejected_other_reason': 'No procesó el pago.'
|
|
27
|
-
};
|
|
28
|
-
this.getErrorMessage = (code) => this.mp_error_codes[code];
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
PaymentUtils = __decorate([
|
|
32
|
-
Injectable()
|
|
33
|
-
], PaymentUtils);
|
|
34
|
-
export { PaymentUtils };
|
|
35
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
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;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { Injectable } from '@angular/core';
|
|
8
|
+
let PaymentUtils = class PaymentUtils {
|
|
9
|
+
constructor() {
|
|
10
|
+
this.mp_error_codes = {
|
|
11
|
+
'pending_contingency': 'Estamos procesando el pago. En menos de 2 días hábiles te enviaremos por e-mail el resultado.',
|
|
12
|
+
'pending_review_manual': 'Estamos procesando el pago. En menos de 2 días hábiles te diremos por e-mail si se acreditó o si necesitamos más información.',
|
|
13
|
+
'cc_rejected_bad_filled_card_number': 'Revisa el número de tarjeta.',
|
|
14
|
+
'cc_rejected_bad_filled_date': 'Revisa la fecha de vencimiento.',
|
|
15
|
+
'cc_rejected_bad_filled_other': 'Revisa los datos.',
|
|
16
|
+
'cc_rejected_bad_filled_security_code': 'Revisa el código de seguridad.',
|
|
17
|
+
'cc_rejected_blacklist': 'No pudimos procesar tu pago.',
|
|
18
|
+
'cc_rejected_call_for_authorize': 'Debes autorizar ante payment_method_id el pago de amount a Mercado Pago',
|
|
19
|
+
'cc_rejected_card_disabled': 'Llama a payment_method_id para que active tu tarjeta. El teléfono está al dorso de tu tarjeta.',
|
|
20
|
+
'cc_rejected_card_error': 'No pudimos procesar tu pago.',
|
|
21
|
+
'cc_rejected_duplicated_payment': 'Ya hiciste un pago por ese valor. Si necesitas volver a pagar usa otra tarjeta u otro medio de pago.',
|
|
22
|
+
'cc_rejected_high_risk': 'Tu pago fue rechazado. Elige otro de los medios de pago, te recomendamos con medios en efectivo.',
|
|
23
|
+
'cc_rejected_insufficient_amount': 'Tu payment_method_id no tiene fondos suficientes.',
|
|
24
|
+
'cc_rejected_invalid_installments': 'El metodo de pago no procesa pagos en cuotas.',
|
|
25
|
+
'cc_rejected_max_attempts': 'Llegaste al límite de intentos permitidos. Elige otra tarjeta u otro medio de pago.',
|
|
26
|
+
'cc_rejected_other_reason': 'No procesó el pago.'
|
|
27
|
+
};
|
|
28
|
+
this.getErrorMessage = (code) => this.mp_error_codes[code];
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
PaymentUtils = __decorate([
|
|
32
|
+
Injectable()
|
|
33
|
+
], PaymentUtils);
|
|
34
|
+
export { PaymentUtils };
|
|
35
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGF5bWVudC11dGlscy5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmctZWFzeWNvbW1lcmNlLyIsInNvdXJjZXMiOlsibGliL3V0aWxzL3BheW1lbnQtdXRpbHMuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRzNDLElBQWEsWUFBWSxHQUF6QixNQUFhLFlBQVk7SUFFcEI7UUFFUSxtQkFBYyxHQUFHO1lBQ3BCLHFCQUFxQixFQUFFLCtGQUErRjtZQUN0SCx1QkFBdUIsRUFBRSwrSEFBK0g7WUFDeEosb0NBQW9DLEVBQUUsOEJBQThCO1lBQ3BFLDZCQUE2QixFQU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