ng-easycommerce 0.0.612 → 0.0.613
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 +969 -964
- 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 +8 -1
- package/assets/ec-i18n/es.json +411 -404
- 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 -19658
- 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 -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 +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 -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 +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 -99
- 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 -80
- package/esm2015/lib/ec-component/header-ec/header-ec.component.js +199 -197
- 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 +125 -125
- package/esm2015/lib/ec-component/widgets-ec/price-ec/price-ec.component.js +99 -99
- 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 +574 -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 -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 +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 -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 +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 -116
- 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 -109
- package/esm5/lib/ec-component/header-ec/header-ec.component.js +260 -256
- 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 +143 -143
- package/esm5/lib/ec-component/widgets-ec/price-ec/price-ec.component.js +120 -120
- 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 +705 -702
- 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 -16644
- package/fesm2015/ng-easycommerce.js.map +1 -1
- package/fesm5/ng-easycommerce.js +19685 -19662
- 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 -26
- 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 -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 +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,146 +1,146 @@
|
|
|
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 __assign = (this && this.__assign) || function () {
|
|
15
|
-
__assign = Object.assign || function(t) {
|
|
16
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
17
|
-
s = arguments[i];
|
|
18
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
19
|
-
t[p] = s[p];
|
|
20
|
-
}
|
|
21
|
-
return t;
|
|
22
|
-
};
|
|
23
|
-
return __assign.apply(this, arguments);
|
|
24
|
-
};
|
|
25
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
26
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
27
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
28
|
-
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;
|
|
29
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
30
|
-
};
|
|
31
|
-
import { Component, Input } from '@angular/core';
|
|
32
|
-
import { ComponentHelper } from '../../../classes/component-helper';
|
|
33
|
-
import { Constants } from '../../../core.consts';
|
|
34
|
-
import { AnalyticsService } from '../../../services/analytics.service';
|
|
35
|
-
var BlockProductsEcComponent = /** @class */ (function (_super) {
|
|
36
|
-
__extends(BlockProductsEcComponent, _super);
|
|
37
|
-
function BlockProductsEcComponent(consts, analyticsService) {
|
|
38
|
-
var _this = _super.call(this) || this;
|
|
39
|
-
_this.consts = consts;
|
|
40
|
-
_this.analyticsService = analyticsService;
|
|
41
|
-
_this.dots = false;
|
|
42
|
-
_this.nav = false;
|
|
43
|
-
_this.loop = false;
|
|
44
|
-
_this.margin = 10;
|
|
45
|
-
_this.optionsOwl = {
|
|
46
|
-
loop: false,
|
|
47
|
-
autoplay: false,
|
|
48
|
-
smartSpeed: 950,
|
|
49
|
-
margin: 10,
|
|
50
|
-
dots: false,
|
|
51
|
-
navText: ["<i class='fas fa-angle-left'></i>", "<i class='fas fa-angle-right'></i>"],
|
|
52
|
-
responsive: {
|
|
53
|
-
0: {
|
|
54
|
-
items: 4,
|
|
55
|
-
nav: true,
|
|
56
|
-
},
|
|
57
|
-
400: {
|
|
58
|
-
items: 4,
|
|
59
|
-
nav: true,
|
|
60
|
-
},
|
|
61
|
-
1000: {
|
|
62
|
-
items: 4,
|
|
63
|
-
nav: true,
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
_this.boxesInlcudesCode = function (box) { return _this.meta.code.toUpperCase().includes(box.toUpperCase()); };
|
|
68
|
-
_this.ecOnConstruct();
|
|
69
|
-
return _this;
|
|
70
|
-
}
|
|
71
|
-
BlockProductsEcComponent.prototype.ngOnInit = function () {
|
|
72
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
73
|
-
this.meta = __assign(__assign({}, this.meta), (this.meta.translations ? this.meta.translations[this.consts.getLocale()] : { name: null }));
|
|
74
|
-
this.analyticsService.callEvent('view_item_list', { products: this.products, item_list_name: this.meta.name || 'Block Products', item_list_id: ((_b = (_a = this.meta.name) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === null || _b === void 0 ? void 0 : _b.replace(' ', '-')) || 'block-products' });
|
|
75
|
-
this.optionsOwl = {
|
|
76
|
-
loop: this.loop,
|
|
77
|
-
autoplay: false,
|
|
78
|
-
smartSpeed: 950,
|
|
79
|
-
margin: this.margin,
|
|
80
|
-
dots: this.dots,
|
|
81
|
-
navText: ["<i class='fas fa-angle-left'></i>", "<i class='fas fa-angle-right'></i>"],
|
|
82
|
-
nav: this.nav,
|
|
83
|
-
responsive: {
|
|
84
|
-
0: {
|
|
85
|
-
items: ((_c = this.meta) === null || _c === void 0 ? void 0 : _c.styles.carrousel) ? (((_e = (_d = this.meta) === null || _d === void 0 ? void 0 : _d.styles) === null || _e === void 0 ? void 0 : _e.items) ? (_f = this.meta) === null || _f === void 0 ? void 0 : _f.styles.items.sm : 1) : 1,
|
|
86
|
-
nav: true,
|
|
87
|
-
},
|
|
88
|
-
400: {
|
|
89
|
-
items: ((_g = this.meta) === null || _g === void 0 ? void 0 : _g.styles.carrousel) ? (((_j = (_h = this.meta) === null || _h === void 0 ? void 0 : _h.styles) === null || _j === void 0 ? void 0 : _j.items) ? (_k = this.meta) === null || _k === void 0 ? void 0 : _k.styles.items.md : 2) : 2,
|
|
90
|
-
nav: true,
|
|
91
|
-
},
|
|
92
|
-
1000: {
|
|
93
|
-
items: ((_l = this.meta) === null || _l === void 0 ? void 0 : _l.styles.carrousel) ? (((_o = (_m = this.meta) === null || _m === void 0 ? void 0 : _m.styles) === null || _o === void 0 ? void 0 : _o.items) ? (_p = this.meta) === null || _p === void 0 ? void 0 : _p.styles.items.lg : 4) : 4,
|
|
94
|
-
nav: true,
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
this.ecOnInit();
|
|
99
|
-
};
|
|
100
|
-
BlockProductsEcComponent.prototype.ngOnChanges = function () {
|
|
101
|
-
};
|
|
102
|
-
BlockProductsEcComponent.prototype.getKeyByValue = function (object, value) {
|
|
103
|
-
return Object.keys(object).find(function (key) { return object[key] === value; });
|
|
104
|
-
};
|
|
105
|
-
BlockProductsEcComponent.prototype.trimClassBlock = function (code) {
|
|
106
|
-
return (code.split('-').length > 1) ? code.split('-')[1].toLowerCase() : '';
|
|
107
|
-
};
|
|
108
|
-
BlockProductsEcComponent.prototype.selectPromotion = function (banner) {
|
|
109
|
-
this.analyticsService.callEvent('select_promotion', banner);
|
|
110
|
-
};
|
|
111
|
-
BlockProductsEcComponent.ctorParameters = function () { return [
|
|
112
|
-
{ type: Constants },
|
|
113
|
-
{ type: AnalyticsService }
|
|
114
|
-
]; };
|
|
115
|
-
__decorate([
|
|
116
|
-
Input()
|
|
117
|
-
], BlockProductsEcComponent.prototype, "appProduct", void 0);
|
|
118
|
-
__decorate([
|
|
119
|
-
Input()
|
|
120
|
-
], BlockProductsEcComponent.prototype, "products", void 0);
|
|
121
|
-
__decorate([
|
|
122
|
-
Input()
|
|
123
|
-
], BlockProductsEcComponent.prototype, "meta", void 0);
|
|
124
|
-
__decorate([
|
|
125
|
-
Input()
|
|
126
|
-
], BlockProductsEcComponent.prototype, "dots", void 0);
|
|
127
|
-
__decorate([
|
|
128
|
-
Input()
|
|
129
|
-
], BlockProductsEcComponent.prototype, "nav", void 0);
|
|
130
|
-
__decorate([
|
|
131
|
-
Input()
|
|
132
|
-
], BlockProductsEcComponent.prototype, "loop", void 0);
|
|
133
|
-
__decorate([
|
|
134
|
-
Input()
|
|
135
|
-
], BlockProductsEcComponent.prototype, "margin", void 0);
|
|
136
|
-
BlockProductsEcComponent = __decorate([
|
|
137
|
-
Component({
|
|
138
|
-
selector: 'app-block-products-ec',
|
|
139
|
-
template: "<!-- <div class=\"row\">\n <div class=\"col-12 text-center mt-4\">\n <h1 class=\"ff-source-bold color-golden\">\n {{ meta.name || 'NOVEDADES'}}\n </h1>\n </div>\n <div class=\"col-12 p-0\">\n <div class=\"container\">\n <owl-carousel-o [options]=\"options\" class=\" py-3 px-md-5 px-0\">\n <ng-container *ngFor=\"let product of products\">\n <ng-template carouselSlide>\n <div class=\"px-4 py-0 text-center\">\n <app-product [product]=\"product\"></app-product>\n </div>\n </ng-template>\n </ng-container>\n </owl-carousel-o>\n </div>\n </div>\n</div> -->\n<section [ngClass]=\"trimClassBlock(meta.code) + ' container-fluid'\">\n\n\n <div class=\"blockProduct block-product\">\n <div *ngIf=\"meta.name\" class=\"row\">\n <div class=\"col-12 mt-4\">\n <h2 class=\"font-weight-normal font-gd\">\n <span>{{meta.name}}</span>\n </h2>\n </div>\n </div>\n\n <ng-container *ngIf=\"meta.styles && meta.styles.carrousel == false ; else carrousel\">\n\n <div class=\"row \">\n <div [class]=\"'item '+ ' col-'+ (meta.styles.items.sm) + ' col-md-' + (meta.styles.items.md) + ' col-lg-' + (meta.styles.items.lg) + ' px-2'\"\n *ngFor=\"let product of products; let i = index\" [id]=\"i\">\n\n\n <!-- verifica que si vienen un template para un custom appProduct llamado \"appProduct\" con un objeto \"product\"- sino usa por defecto el del core -->\n <ng-container [ngTemplateOutlet]=\"appProduct ? appProduct : defaultAppProduct\" [ngTemplateOutletContext]=\"{product:product}\" ></ng-container>\n \n \n </div>\n </div>\n\n </ng-container>\n\n <ng-template #carrousel>\n\n\n <owl-carousel-o [options]=\"optionsOwl\">\n <ng-template carouselSlide *ngFor=\"let product of products; let i = index\" [id]=\"i\">\n\n <ng-container [ngTemplateOutlet]=\"appProduct ? appProduct : defaultAppProduct\" [ngTemplateOutletContext]=\"{product:product}\" ></ng-container>\n\n <!-- <app-product-ec [product]=\"product\"></app-product-ec> -->\n </ng-template>\n </owl-carousel-o>\n\n\n </ng-template>\n </div>\n</section>\n\n\n<!-- componente por defecto (tomara como producto el contexto pasado como \"product\") -->\n<ng-template #defaultAppProduct let-product=\"product\" > \n <!-- <app-product [product]=\"product\"></app-product> -->\n <app-product-ec [product]=\"product\"></app-product-ec>\n</ng-template>",
|
|
140
|
-
styles: [".item{position:relative}.item-title{top:30%}.item-title-full{top:50%}.item-subtitle-full{top:60%}.item-subtitle{top:40%}.item-button{top:60%}.item-button.item-position-vertical-center{left:50%;transform:translate(-50%)}.item-button.item-position-vertical-left{left:10%}.item-button.item-position-vertical-right{right:5%;transform:translate(-50%)}.item-button-full{top:70%}.item-button-full.item-position-vertical-center{left:50%;transform:translate(-50%)}.item-button-full.item-position-vertical-left{left:10%}.item-button-full.item-position-vertical-right{right:5%;transform:translate(-50%)}.item-position-vertical-left{text-align:left}.item-position-vertical-center{text-align:center}.item-position-vertical-right{text-align:right}h2.item-title-full::after{content:none}"]
|
|
141
|
-
})
|
|
142
|
-
], BlockProductsEcComponent);
|
|
143
|
-
return BlockProductsEcComponent;
|
|
144
|
-
}(ComponentHelper));
|
|
145
|
-
export { BlockProductsEcComponent };
|
|
146
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmxvY2stcHJvZHVjdHMtZWMuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmctZWFzeWNvbW1lcmNlLyIsInNvdXJjZXMiOlsibGliL2VjLWNvbXBvbmVudC9ibG9ja3MtZWMvYmxvY2stcHJvZHVjdHMtZWMvYmxvY2stcHJvZHVjdHMtZWMuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQVUsS0FBSyxFQUEwQixNQUFNLGVBQWUsQ0FBQztBQUNqRixPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sbUNBQW1DLENBQUM7QUFDcEUsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLHNCQUFzQixDQUFDO0FBRWpELE9B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gICAgICAgICB9LFxuICAgICAgICAgICAgMTAwMDoge1xuICAgICAgICAgICAgICAgIGl0ZW1zOiA0LFxuICAgICAgICAgICAgICAgIG5hdjogdHJ1ZSxcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cblxuICAgIGNvbnN0cnVjdG9yKHByb3RlY3RlZCBjb25zdHM6IENvbnN0YW50cyxcbiAgICAgICAgcHJpdmF0ZSBhbmFseXRpY3NTZXJ2aWNlOiBBbmFseXRpY3NTZXJ2aWNlLFxuICAgICkge1xuICAgICAgICBzdXBlcigpO1xuICAgICAgICB0aGlzLmVjT25Db25zdHJ1Y3QoKVxuICAgIH1cblxuICAgIG5nT25Jbml0KCk6IHZvaWQge1xuICAgICAgICB0aGlzLm1ldGEgPSB7IC4uLnRoaXMubWV0YSwgLi4uKHRoaXMubWV0YS50cmFuc2xhdGlvbnMgPyB0aGlzLm1ldGEudHJhbnNsYXRpb25zW3RoaXMuY29uc3RzLmdldExvY2FsZSgpXSA6IHsgbmFtZTogbnVsbCB9KSB9XG4gICAgICAgIHRoaXMuYW5hbHl0aWNzU2VydmljZS5jYWxsRXZlbnQoJ3ZpZXdfaXRlbV9saXN0JywgeyBwcm9kdWN0czogdGhpcy5wcm9kdWN0cywgaXRlbV9saXN0X25hbWU6IHRoaXMubWV0YS5uYW1lIHx8ICdCbG9jayBQcm9kdWN0cycsIGl0ZW1fbGlzdF9pZDogdGhpcy5tZXRhLm5hbWU/LnRvTG93ZXJDYXNlKCk/LnJlcGxhY2UoJyAnLCAnLScpIHx8ICdibG9jay1wcm9kdWN0cycgfSlcblxuICAgICAgICB0aGlzLm9wdGlvbnNPd2wgPSB7XG4gICAgICAgICAgICBsb29wOiB0aGlzLmxvb3AsXG4gICAgICAgICAgICBhdXRvcGxheTogZmFsc2UsXG4gICAgICAgICAgICBzbWFydFNwZWVkOiA5NTAsXG4gICAgICAgICAgICBtYXJnaW46IHRoaXMubWFyZ2luLFxuICAgICAgICAgICAgZG90czogdGhp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cygpOiB2b2lkIHtcblxuICAgIH1cblxuICAgIGJveGVzSW5sY3VkZXNDb2RlID0gKGJveDogc3RyaW5nKSA9PiB0aGlzLm1ldGEuY29kZS50b1VwcGVyQ2FzZSgpLmluY2x1ZGVzKGJveC50b1VwcGVyQ2FzZSgpKVxuXG5cbiAgICBnZXRLZXlCeVZhbHVlKG9iamVjdCwgdmFsdWUpIHtcbiAgICAgICAgcmV0dXJuIE9iamVjdC5rZXlzKG9iamVjdCkuZmluZChrZXkgPT4gb2JqZWN0W2tleV0gPT09IHZhbHVlKTtcbiAgICB9XG5cblxuICAgIHRyaW1DbGFzc0Jsb2NrIChjb2RlOnN0cmluZykge1xuICAgICAgICByZXR1cm4gKGNvZGUuc3BsaXQoJy0nKS5sZW5ndGggPiAxKSA/IGNvZGUuc3BsaXQoJy0nKVsxXS50b0xvd2VyQ2FzZSgpIDogJydcbiAgICB9XG5cbiAgICBzZWxlY3RQcm9tb3Rpb24oYmFubmVyKTp2b2lkIHtcbiAgICAgICAgdGhpcy5hbmFseXRpY3NTZXJ2aWNlLmNhbGxFdmVudCgnc2VsZWN0X3Byb21vdGlvbicsIGJhbm5lcilcbiAgICB9XG5cbn1cbiJdfQ==
|
|
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 __assign = (this && this.__assign) || function () {
|
|
15
|
+
__assign = Object.assign || function(t) {
|
|
16
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
17
|
+
s = arguments[i];
|
|
18
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
19
|
+
t[p] = s[p];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
return __assign.apply(this, arguments);
|
|
24
|
+
};
|
|
25
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
26
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
27
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
28
|
+
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;
|
|
29
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
30
|
+
};
|
|
31
|
+
import { Component, Input } from '@angular/core';
|
|
32
|
+
import { ComponentHelper } from '../../../classes/component-helper';
|
|
33
|
+
import { Constants } from '../../../core.consts';
|
|
34
|
+
import { AnalyticsService } from '../../../services/analytics.service';
|
|
35
|
+
var BlockProductsEcComponent = /** @class */ (function (_super) {
|
|
36
|
+
__extends(BlockProductsEcComponent, _super);
|
|
37
|
+
function BlockProductsEcComponent(consts, analyticsService) {
|
|
38
|
+
var _this = _super.call(this) || this;
|
|
39
|
+
_this.consts = consts;
|
|
40
|
+
_this.analyticsService = analyticsService;
|
|
41
|
+
_this.dots = false;
|
|
42
|
+
_this.nav = false;
|
|
43
|
+
_this.loop = false;
|
|
44
|
+
_this.margin = 10;
|
|
45
|
+
_this.optionsOwl = {
|
|
46
|
+
loop: false,
|
|
47
|
+
autoplay: false,
|
|
48
|
+
smartSpeed: 950,
|
|
49
|
+
margin: 10,
|
|
50
|
+
dots: false,
|
|
51
|
+
navText: ["<i class='fas fa-angle-left'></i>", "<i class='fas fa-angle-right'></i>"],
|
|
52
|
+
responsive: {
|
|
53
|
+
0: {
|
|
54
|
+
items: 4,
|
|
55
|
+
nav: true,
|
|
56
|
+
},
|
|
57
|
+
400: {
|
|
58
|
+
items: 4,
|
|
59
|
+
nav: true,
|
|
60
|
+
},
|
|
61
|
+
1000: {
|
|
62
|
+
items: 4,
|
|
63
|
+
nav: true,
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
_this.boxesInlcudesCode = function (box) { return _this.meta.code.toUpperCase().includes(box.toUpperCase()); };
|
|
68
|
+
_this.ecOnConstruct();
|
|
69
|
+
return _this;
|
|
70
|
+
}
|
|
71
|
+
BlockProductsEcComponent.prototype.ngOnInit = function () {
|
|
72
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
73
|
+
this.meta = __assign(__assign({}, this.meta), (this.meta.translations ? this.meta.translations[this.consts.getLocale()] : { name: null }));
|
|
74
|
+
this.analyticsService.callEvent('view_item_list', { products: this.products, item_list_name: this.meta.name || 'Block Products', item_list_id: ((_b = (_a = this.meta.name) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === null || _b === void 0 ? void 0 : _b.replace(' ', '-')) || 'block-products' });
|
|
75
|
+
this.optionsOwl = {
|
|
76
|
+
loop: this.loop,
|
|
77
|
+
autoplay: false,
|
|
78
|
+
smartSpeed: 950,
|
|
79
|
+
margin: this.margin,
|
|
80
|
+
dots: this.dots,
|
|
81
|
+
navText: ["<i class='fas fa-angle-left'></i>", "<i class='fas fa-angle-right'></i>"],
|
|
82
|
+
nav: this.nav,
|
|
83
|
+
responsive: {
|
|
84
|
+
0: {
|
|
85
|
+
items: ((_c = this.meta) === null || _c === void 0 ? void 0 : _c.styles.carrousel) ? (((_e = (_d = this.meta) === null || _d === void 0 ? void 0 : _d.styles) === null || _e === void 0 ? void 0 : _e.items) ? (_f = this.meta) === null || _f === void 0 ? void 0 : _f.styles.items.sm : 1) : 1,
|
|
86
|
+
nav: true,
|
|
87
|
+
},
|
|
88
|
+
400: {
|
|
89
|
+
items: ((_g = this.meta) === null || _g === void 0 ? void 0 : _g.styles.carrousel) ? (((_j = (_h = this.meta) === null || _h === void 0 ? void 0 : _h.styles) === null || _j === void 0 ? void 0 : _j.items) ? (_k = this.meta) === null || _k === void 0 ? void 0 : _k.styles.items.md : 2) : 2,
|
|
90
|
+
nav: true,
|
|
91
|
+
},
|
|
92
|
+
1000: {
|
|
93
|
+
items: ((_l = this.meta) === null || _l === void 0 ? void 0 : _l.styles.carrousel) ? (((_o = (_m = this.meta) === null || _m === void 0 ? void 0 : _m.styles) === null || _o === void 0 ? void 0 : _o.items) ? (_p = this.meta) === null || _p === void 0 ? void 0 : _p.styles.items.lg : 4) : 4,
|
|
94
|
+
nav: true,
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
this.ecOnInit();
|
|
99
|
+
};
|
|
100
|
+
BlockProductsEcComponent.prototype.ngOnChanges = function () {
|
|
101
|
+
};
|
|
102
|
+
BlockProductsEcComponent.prototype.getKeyByValue = function (object, value) {
|
|
103
|
+
return Object.keys(object).find(function (key) { return object[key] === value; });
|
|
104
|
+
};
|
|
105
|
+
BlockProductsEcComponent.prototype.trimClassBlock = function (code) {
|
|
106
|
+
return (code.split('-').length > 1) ? code.split('-')[1].toLowerCase() : '';
|
|
107
|
+
};
|
|
108
|
+
BlockProductsEcComponent.prototype.selectPromotion = function (banner) {
|
|
109
|
+
this.analyticsService.callEvent('select_promotion', banner);
|
|
110
|
+
};
|
|
111
|
+
BlockProductsEcComponent.ctorParameters = function () { return [
|
|
112
|
+
{ type: Constants },
|
|
113
|
+
{ type: AnalyticsService }
|
|
114
|
+
]; };
|
|
115
|
+
__decorate([
|
|
116
|
+
Input()
|
|
117
|
+
], BlockProductsEcComponent.prototype, "appProduct", void 0);
|
|
118
|
+
__decorate([
|
|
119
|
+
Input()
|
|
120
|
+
], BlockProductsEcComponent.prototype, "products", void 0);
|
|
121
|
+
__decorate([
|
|
122
|
+
Input()
|
|
123
|
+
], BlockProductsEcComponent.prototype, "meta", void 0);
|
|
124
|
+
__decorate([
|
|
125
|
+
Input()
|
|
126
|
+
], BlockProductsEcComponent.prototype, "dots", void 0);
|
|
127
|
+
__decorate([
|
|
128
|
+
Input()
|
|
129
|
+
], BlockProductsEcComponent.prototype, "nav", void 0);
|
|
130
|
+
__decorate([
|
|
131
|
+
Input()
|
|
132
|
+
], BlockProductsEcComponent.prototype, "loop", void 0);
|
|
133
|
+
__decorate([
|
|
134
|
+
Input()
|
|
135
|
+
], BlockProductsEcComponent.prototype, "margin", void 0);
|
|
136
|
+
BlockProductsEcComponent = __decorate([
|
|
137
|
+
Component({
|
|
138
|
+
selector: 'app-block-products-ec',
|
|
139
|
+
template: "<!-- <div class=\"row\">\r\n <div class=\"col-12 text-center mt-4\">\r\n <h1 class=\"ff-source-bold color-golden\">\r\n {{ meta.name || 'NOVEDADES'}}\r\n </h1>\r\n </div>\r\n <div class=\"col-12 p-0\">\r\n <div class=\"container\">\r\n <owl-carousel-o [options]=\"options\" class=\" py-3 px-md-5 px-0\">\r\n <ng-container *ngFor=\"let product of products\">\r\n <ng-template carouselSlide>\r\n <div class=\"px-4 py-0 text-center\">\r\n <app-product [product]=\"product\"></app-product>\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n </owl-carousel-o>\r\n </div>\r\n </div>\r\n</div> -->\r\n<section [ngClass]=\"trimClassBlock(meta.code) + ' container-fluid'\">\r\n\r\n\r\n <div class=\"blockProduct block-product\">\r\n <div *ngIf=\"meta.name\" class=\"row\">\r\n <div class=\"col-12 mt-4\">\r\n <h2 class=\"font-weight-normal font-gd\">\r\n <span>{{meta.name}}</span>\r\n </h2>\r\n </div>\r\n </div>\r\n\r\n <ng-container *ngIf=\"meta.styles && meta.styles.carrousel == false ; else carrousel\">\r\n\r\n <div class=\"row \">\r\n <div [class]=\"'item '+ ' col-'+ (meta.styles.items.sm) + ' col-md-' + (meta.styles.items.md) + ' col-lg-' + (meta.styles.items.lg) + ' px-2'\"\r\n *ngFor=\"let product of products; let i = index\" [id]=\"i\">\r\n\r\n\r\n <!-- verifica que si vienen un template para un custom appProduct llamado \"appProduct\" con un objeto \"product\"- sino usa por defecto el del core -->\r\n <ng-container [ngTemplateOutlet]=\"appProduct ? appProduct : defaultAppProduct\" [ngTemplateOutletContext]=\"{product:product}\" ></ng-container>\r\n \r\n \r\n </div>\r\n </div>\r\n\r\n </ng-container>\r\n\r\n <ng-template #carrousel>\r\n\r\n\r\n <owl-carousel-o [options]=\"optionsOwl\">\r\n <ng-template carouselSlide *ngFor=\"let product of products; let i = index\" [id]=\"i\">\r\n\r\n <ng-container [ngTemplateOutlet]=\"appProduct ? appProduct : defaultAppProduct\" [ngTemplateOutletContext]=\"{product:product}\" ></ng-container>\r\n\r\n <!-- <app-product-ec [product]=\"product\"></app-product-ec> -->\r\n </ng-template>\r\n </owl-carousel-o>\r\n\r\n\r\n </ng-template>\r\n </div>\r\n</section>\r\n\r\n\r\n<!-- componente por defecto (tomara como producto el contexto pasado como \"product\") -->\r\n<ng-template #defaultAppProduct let-product=\"product\" > \r\n <!-- <app-product [product]=\"product\"></app-product> -->\r\n <app-product-ec [product]=\"product\"></app-product-ec>\r\n</ng-template>",
|
|
140
|
+
styles: [".item{position:relative}.item-title{top:30%}.item-title-full{top:50%}.item-subtitle-full{top:60%}.item-subtitle{top:40%}.item-button{top:60%}.item-button.item-position-vertical-center{left:50%;transform:translate(-50%)}.item-button.item-position-vertical-left{left:10%}.item-button.item-position-vertical-right{right:5%;transform:translate(-50%)}.item-button-full{top:70%}.item-button-full.item-position-vertical-center{left:50%;transform:translate(-50%)}.item-button-full.item-position-vertical-left{left:10%}.item-button-full.item-position-vertical-right{right:5%;transform:translate(-50%)}.item-position-vertical-left{text-align:left}.item-position-vertical-center{text-align:center}.item-position-vertical-right{text-align:right}h2.item-title-full::after{content:none}"]
|
|
141
|
+
})
|
|
142
|
+
], BlockProductsEcComponent);
|
|
143
|
+
return BlockProductsEcComponent;
|
|
144
|
+
}(ComponentHelper));
|
|
145
|
+
export { BlockProductsEcComponent };
|
|
146
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmxvY2stcHJvZHVjdHMtZWMuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmctZWFzeWNvbW1lcmNlLyIsInNvdXJjZXMiOlsibGliL2VjLWNvbXBvbmVudC9ibG9ja3MtZWMvYmxvY2stcHJvZHVjdHMtZWMvYmxvY2stcHJvZHVjdHMtZWMuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQVUsS0FBSyxFQUEwQixNQUFNLGVBQWUsQ0FBQztBQUNqRixPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sbUNBQW1DLENBQUM7QUFDcEUsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLHNCQUFzQixDQUFDO0FBRWpELE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLHFDQUFxQyxDQUFDO0FBU3ZFO0lBQThDLDRDQUFlO0lBdUN6RCxrQ0FBc0IsTUFBaUIsRUFDM0IsZ0JBQWtDO1FBRDlDLFlBR0ksaUJBQU8sU0FFVjtRQUxxQixZQUFNLEdBQU4sTUFBTSxDQUFXO1FBQzNCLHNCQUFnQixHQUFoQixnQkFBZ0IsQ0FBa0I7UUE5QnJDLFVBQUksR0FBVyxLQUFLLENBQUM7UUFFckIsU0FBRyxHQUFXLEtBQUssQ0FBQztRQUNwQixVQUFJLEdBQVcsS0FBSyxDQUFDO1FBQ3JCLFlBQU0sR0FBVSxFQUFFLENBQUM7UUFFNUIsZ0JBQVUsR0FBZTtZQUNyQixJQUFJLEVBQUUsS0FBSztZQUNYLFFBQ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O1xyXG5cclxuICAgIEBJbnB1dCgpIG5hdjpib29sZWFuID0gZmFsc2U7XHJcbiAgICBASW5wdXQoKSBsb29wOmJvb2xlYW4gPSBmYWxzZTtcclxuICAgIEBJbnB1dCgpIG1hcmdpbjpudW1iZXIgPSAxMDtcclxuXHJcbiAgICBvcHRpb25zT3dsOiBPd2xPcHRpb25zID0ge1xyXG4gICAgICAgIGxvb3A6IGZhbHNlLFxyXG4gICAgICAgIGF1dG9wbGF5OiBmYWxzZSxcclxuICAgICAgICBzbWFydFNwZWVkOiA5NTAsXHJcbiAgICAgICAgbWFyZ2luOiAxMCxcclxuICAgICAgICBkb3RzOiBmYWxzZSxcclxuICAgICAgICBuYXZUZXh0OiBbXCI8aSBjbGFzcz0nZmFzIGZhLWFuZ2xlLWxlZnQnPjwvaT5cIiwgXCI8aSBjbGFzcz0nZmFzIGZhLWFuZ2xlLXJpZ2h0Jz48L2k+XCJdLFxyXG4gICAgICAgIHJlc3BvbnNpdmU6IHtcclxuICAgICAgICAgICAgMDoge1xyXG4gICAgICAgICAgICAgICAgaXRlbXM6NCxcclxuICAgICAgICAgICAgICAgIG5hdjogdHJ1ZSxcclxuICAgICAgICAgICAgfSxcclxuICAgICAgICAgICAgNDAwOiB7XHJcbiAgICAgICAgICAgICAgICBpdGVtczogNCxcclxuICAgICAgICAgICAgICAgIG5hdjogdHJ1ZSxcclxuICAgICAgICAgICAgfSxcclxuICAgICAgICAgICAgMTAwMDoge1xyXG4gICAgICAgICAgICAgICAgaXRlbXM6IDQsXHJcbiAgICAgICAgICAgICAgICBuYXY6IHRydWUsXHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICB9XHJcbiAgICB9XHJcblxyXG4gICAgY29uc3RydWN0b3IocHJvdGVjdGVkIGNvbnN0czogQ29uc3RhbnRzLFxyXG4gICAgICAgIHByaXZhdGUgYW5hbHl0aWNzU2VydmljZTogQW5hbHl0aWNzU2VydmljZSxcclxuICAgICkge1xyXG4gICAgICAgIHN1cGVyKCk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ICAgICAgICAgICAgICAgaXRlbXM6ICh0aGlzLm1ldGE/LnN0eWxlcy5jYXJyb3VzZWwpID8gKHRoaXMubWV0YT8uc3R5bGVzPy5pdGVtcyA/IHRoaXMubWV0YT8uc3R5bGVzLml0ZW1zLnNtIDogMSkgOiAxLFxyXG4gICAgICAgICAgICAgICAgICAgIG5hdjogdHJ1ZSxcclxuICAgICAgICAgICAgICAgIH0sXHJcbiAgICAgICAgICAgICAgICA0MDA6IHtcclxuICAgICAgICAgICAgICAgICAgICBpdGVtczogKHRoaXMubWV0YT8uc3R5bGVzLmNhcnJvdXNlbCkgPyAodGhpcy5tZXRhPy5zdHlsZXM/Lml0ZW1zID8gdGhpcy5tZXRhPy5zdHlsZXMuaXRlbXMubWQgOiAyKSA6IDIsXHJcbiAgICAgICAgICAgICAgICAgICAgbmF2OiB0cnVlLFxyXG4gICAgICAgICAgICAgICAgfSxcclxuICAgICAgICAgICAgICAgIDEwMDA6IHtcclxuICAgICAgICAgICAgICAgICAgICBpdGVtczogKHRoaXMubWV0YT8uc3R5bGVzLmNhcnJvdXNlbCkgPyAodGhpcy5tZXRhPy5zdHlsZXM/Lml0ZW1zID8gdGhpcy5tZXRhPy5zdHlsZXMuaXRlbXMubGcgOiA0KSA6IDQsXHJcbiAgICAgICAgICAgICAgICAgICAgbmF2OiB0cnVlLFxyXG4gICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICB0aGlzLmVjT25Jbml0KClcclxuICAgIH1cclxuXHJcbiAgICBuZ09uQ2hhbmdlcygpOiB2b2lkIHtcclxuXHJcbiAgICB9XHJcblxyXG4gICAgYm94ZXNJbmxjdWRlc0NvZGUgPSAoYm94OiBzdHJpbmcpID0+IHRoaXMubWV0YS5jb2RlLnRvVXBwZXJDYXNlKCkuaW5jbHVkZXMoYm94LnRvVXBwZXJDYXNlKCkpXHJcblxyXG5cclxuICAgIGdldEtleUJ5VmFsdWUob2JqZWN0LCB2YWx1ZSkge1xyXG4gICAgICAgIHJldHVybiBPYmplY3Qua2V5cyhvYmplY3QpLmZpbmQoa2V5ID0+IG9iamVjdFtrZXldID09PSB2YWx1ZSk7XHJcbiAgICB9XHJcblxyXG5cclxuICAgIHRyaW1DbGFzc0Jsb2NrIChjb2RlOnN0cmluZykge1xyXG4gICAgICAgIHJldHVybiAoY29kZS5zcGxpdCgnLScpLmxlbmd0aCA+IDEpID8gY29kZS5zcGxpdCgnLScpWzFdLnRvTG93ZXJDYXNlKCkgOiAnJ1xyXG4gICAgfVxyXG5cclxuICAgIHNlbGVjdFByb21vdGlvbihiYW5uZXIpOnZvaWQge1xyXG4gICAgICAgIHRoaXMuYW5hbHl0aWNzU2VydmljZS5jYWxsRXZlbnQoJ3NlbGVjdF9wcm9tb3Rpb24nLCBiYW5uZXIpXHJcbiAgICB9XHJcblxyXG59XHJcbiJdfQ==
|
|
@@ -1,90 +1,90 @@
|
|
|
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, Input } from '@angular/core';
|
|
21
|
-
import { ComponentHelper } from '../../classes/component-helper';
|
|
22
|
-
import { Constants } from '../../core.consts';
|
|
23
|
-
import { BlocksService } from '../../services/blocks/blocks.service';
|
|
24
|
-
import { AnalyticsService } from '../../services/analytics.service';
|
|
25
|
-
var BlocksEcComponent = /** @class */ (function (_super) {
|
|
26
|
-
__extends(BlocksEcComponent, _super);
|
|
27
|
-
function BlocksEcComponent(blocksService, consts, analyticsService) {
|
|
28
|
-
var _this = _super.call(this) || this;
|
|
29
|
-
_this.blocksService = blocksService;
|
|
30
|
-
_this.consts = consts;
|
|
31
|
-
_this.analyticsService = analyticsService;
|
|
32
|
-
_this.strsection = null;
|
|
33
|
-
_this.show_loading = true;
|
|
34
|
-
_this.getHTMLContent = function (block) { return block.translations[_this.consts.getLocale()].content; };
|
|
35
|
-
_this.showBlock = function (block) { return _this.blockFilters ? _this.blockFilters.includes(block.code) : true; };
|
|
36
|
-
_this.isNewsletter = function (block) { return block.contactForm.code.includes('news'); };
|
|
37
|
-
_this.ecOnConstruct();
|
|
38
|
-
return _this;
|
|
39
|
-
}
|
|
40
|
-
Object.defineProperty(BlocksEcComponent.prototype, "section", {
|
|
41
|
-
set: function (paramsstrsection) {
|
|
42
|
-
this.strsection = paramsstrsection;
|
|
43
|
-
this.strsection && this.blocksService.getBlocks(this.strsection);
|
|
44
|
-
},
|
|
45
|
-
enumerable: true,
|
|
46
|
-
configurable: true
|
|
47
|
-
});
|
|
48
|
-
BlocksEcComponent.prototype.ngOnInit = function () {
|
|
49
|
-
// this.blocksService.getBlocks(this.section);
|
|
50
|
-
this.ecOnInit();
|
|
51
|
-
};
|
|
52
|
-
BlocksEcComponent.prototype.trimClassBlock = function (code) {
|
|
53
|
-
return (code.split('-').length > 1) ? code.split('-')[1].toLowerCase() : '';
|
|
54
|
-
};
|
|
55
|
-
BlocksEcComponent.prototype.selectPromotion = function (block) {
|
|
56
|
-
console.log('hola');
|
|
57
|
-
this.analyticsService.callEvent('select_promotion', block);
|
|
58
|
-
};
|
|
59
|
-
BlocksEcComponent.ctorParameters = function () { return [
|
|
60
|
-
{ type: BlocksService },
|
|
61
|
-
{ type: Constants },
|
|
62
|
-
{ type: AnalyticsService }
|
|
63
|
-
]; };
|
|
64
|
-
__decorate([
|
|
65
|
-
Input()
|
|
66
|
-
], BlocksEcComponent.prototype, "appProduct", void 0);
|
|
67
|
-
__decorate([
|
|
68
|
-
Input()
|
|
69
|
-
], BlocksEcComponent.prototype, "templates", void 0);
|
|
70
|
-
__decorate([
|
|
71
|
-
Input()
|
|
72
|
-
], BlocksEcComponent.prototype, "blockFilters", void 0);
|
|
73
|
-
__decorate([
|
|
74
|
-
Input()
|
|
75
|
-
], BlocksEcComponent.prototype, "section", null);
|
|
76
|
-
__decorate([
|
|
77
|
-
Input()
|
|
78
|
-
], BlocksEcComponent.prototype, "show_loading", void 0);
|
|
79
|
-
BlocksEcComponent = __decorate([
|
|
80
|
-
Component({
|
|
81
|
-
selector: 'app-blocks-ec',
|
|
82
|
-
template: "<div *ngIf=\"blocksService.blocks | async as blocks\">\n <div *ngIf=\"blocks\">\n <div class=\"container-fluid px-0\" *ngIf=\"blocks.length >= 1; else loading\">\n <div class=\"row\">\n\n <ng-container *ngFor=\"let block of blocks\">\n <ng-container [ngSwitch]=\"block.contentType\">\n <!-- Block Banner-->\n <ng-container *ngSwitchCase=\"'banner'\">\n <!--Banner Full-->\n <ng-template #appBlockBannerFullEc let-block=\"block\">\n <app-block-banner-full-ec\n [class]=\"block.styles && block.styles?.items ? ('col-sm-' + block.styles?.items.sm + ' col-md-' + block.styles?.items.md + ' col-lg-' + block.styles?.items.lg) : ' col-12'\"\n [banners]=\"block.banners\" [margin]=\"0\" [meta]=\"block\">\n </app-block-banner-full-ec>\n </ng-template>\n <ng-container *ngIf=\"block.design == 'full'\"\n [ngTemplateOutlet]=\"templates && templates.appBlockBannerFull ? templates.appBlockBannerFull : appBlockBannerFullEc\"\n [ngTemplateOutletContext]=\"{block:block}\">\n </ng-container>\n <!---->\n <!--Banner Box-->\n <ng-template #appBlockBannerBoxesEc let-block=\"block\">\n <app-block-banner-boxes-ec\n [class]=\"block.styles && block.styles?.items ? ('col-sm-' + block.styles?.items.sm + ' col-md-' + block.styles?.items.md + ' col-lg-' + block.styles?.items.lg) : ' col-12'\"\n [banners]=\"block.banners\" [meta]=\"block\">\n </app-block-banner-boxes-ec>\n </ng-template>\n <ng-container *ngIf=\"block.design == 'boxes'\"\n [ngTemplateOutlet]=\"templates && templates.appBlockBannerBoxes? templates.appBlockBannerBoxes : appBlockBannerBoxesEc\"\n [ngTemplateOutletContext]=\"{block:block}\">\n </ng-container>\n <!---->\n </ng-container>\n <!-- End Block Banner -->\n\n <!--Block Html -->\n <ng-template #appBlockHtmlEc let-block=\"block\">\n <app-block-html-ec class=\"col-12\" [html_content]=\"getHTMLContent(block)\">\n </app-block-html-ec>\n </ng-template>\n <ng-container *ngSwitchCase=\"'html'\">\n <ng-container *ngIf=\"showBlock(block)\"\n [ngTemplateOutlet]=\"templates && templates.appBlockHtml ? templates.appBlockHtml : appBlockHtmlEc\"\n [ngTemplateOutletContext]=\"{block:block}\">\n </ng-container>\n </ng-container>\n <!--End Block Html-->\n\n <!--Block Products-->\n <ng-template #appBlockProductsEc let-block=\"block\">\n <app-block-products-ec\n [class]=\"block.styles && block.styles?.items ? ('col-sm-' + block.styles?.items.sm + ' col-md-' + block.styles?.items.md + ' col-lg-' + block.styles?.items.lg) : ' col-12'\"\n [products]=\"block.products.items\" [meta]=\"block\" [appProduct]=\"appProduct\">\n </app-block-products-ec>\n </ng-template>\n\n <ng-container *ngSwitchCase=\"'products'\"\n [ngTemplateOutlet]=\"templates && templates.appBlockProducts ? templates.appBlockProducts : appBlockProductsEc\"\n [ngTemplateOutletContext]=\"{block:block}\"></ng-container>\n <!--End Blocks Products-->\n\n <!-- Contact Form/Newsletter -->\n <ng-container *ngSwitchCase=\"'contact_form'\">\n <!--Newsletter-->\n <ng-container *ngIf=\"isNewsletter(block); else completeForm\">\n <ng-template #appContactFormNewsEc let-block=\"block\">\n <app-contact-form-news-ec [block]=\"block.contactForm\">\n </app-contact-form-news-ec>\n </ng-template>\n <ng-container\n [ngTemplateOutlet]=\"templates && templates.appContactFormNews ? templates.appContactFormNews : appContactFormNewsEc\"\n [ngTemplateOutletContext]=\"{block:block}\"></ng-container>\n </ng-container>\n <!---->\n <!--Contact Form-->\n <ng-template #completeForm>\n <ng-template #appBlockFormContactEc let-block=\"block\">\n <app-block-form-contact-ec [block]=\"block.contactForm\"></app-block-form-contact-ec>\n </ng-template>\n <ng-container\n [ngTemplateOutlet]=\"templates && templates.appBlockFormContact ? templates.appBlockFormContact : appBlockFormContactEc\"\n [ngTemplateOutletContext]=\"{block:block}\"></ng-container>\n </ng-template>\n <!---->\n </ng-container>\n <!-- End Contact Form/Newsletter-->\n </ng-container>\n </ng-container>\n </div>\n </div>\n <ng-template #loading>\n <div *ngIf=\"show_loading\">\n <div class=\"loading-container\">\n <app-loading-full-ec [hole_height]=\"true\"></app-loading-full-ec>\n </div>\n </div>\n </ng-template>\n </div>\n</div>",
|
|
83
|
-
providers: [BlocksService],
|
|
84
|
-
styles: [".item{position:relative}.item-title{top:30%}.item-title-full{top:50%}.item-subtitle-full{top:60%}.item-subtitle{top:40%}.item-button{top:60%}.item-button.item-position-vertical-center{left:50%;transform:translate(-50%)}.item-button.item-position-vertical-left{left:10%}.item-button.item-position-vertical-right{right:5%;transform:translate(-50%)}.item-button-full{top:70%}.item-button-full.item-position-vertical-center{left:50%;transform:translate(-50%)}.item-button-full.item-position-vertical-left{left:10%}.item-button-full.item-position-vertical-right{right:5%;transform:translate(-50%)}.item-position-vertical-left{text-align:left}.item-position-vertical-center{text-align:center}.item-position-vertical-right{text-align:right}h2.item-title-full::after{content:none}"]
|
|
85
|
-
})
|
|
86
|
-
], BlocksEcComponent);
|
|
87
|
-
return BlocksEcComponent;
|
|
88
|
-
}(ComponentHelper));
|
|
89
|
-
export { BlocksEcComponent };
|
|
90
|
-
//# 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
|
+
import { Component, Input } from '@angular/core';
|
|
21
|
+
import { ComponentHelper } from '../../classes/component-helper';
|
|
22
|
+
import { Constants } from '../../core.consts';
|
|
23
|
+
import { BlocksService } from '../../services/blocks/blocks.service';
|
|
24
|
+
import { AnalyticsService } from '../../services/analytics.service';
|
|
25
|
+
var BlocksEcComponent = /** @class */ (function (_super) {
|
|
26
|
+
__extends(BlocksEcComponent, _super);
|
|
27
|
+
function BlocksEcComponent(blocksService, consts, analyticsService) {
|
|
28
|
+
var _this = _super.call(this) || this;
|
|
29
|
+
_this.blocksService = blocksService;
|
|
30
|
+
_this.consts = consts;
|
|
31
|
+
_this.analyticsService = analyticsService;
|
|
32
|
+
_this.strsection = null;
|
|
33
|
+
_this.show_loading = true;
|
|
34
|
+
_this.getHTMLContent = function (block) { return block.translations[_this.consts.getLocale()].content; };
|
|
35
|
+
_this.showBlock = function (block) { return _this.blockFilters ? _this.blockFilters.includes(block.code) : true; };
|
|
36
|
+
_this.isNewsletter = function (block) { return block.contactForm.code.includes('news'); };
|
|
37
|
+
_this.ecOnConstruct();
|
|
38
|
+
return _this;
|
|
39
|
+
}
|
|
40
|
+
Object.defineProperty(BlocksEcComponent.prototype, "section", {
|
|
41
|
+
set: function (paramsstrsection) {
|
|
42
|
+
this.strsection = paramsstrsection;
|
|
43
|
+
this.strsection && this.blocksService.getBlocks(this.strsection);
|
|
44
|
+
},
|
|
45
|
+
enumerable: true,
|
|
46
|
+
configurable: true
|
|
47
|
+
});
|
|
48
|
+
BlocksEcComponent.prototype.ngOnInit = function () {
|
|
49
|
+
// this.blocksService.getBlocks(this.section);
|
|
50
|
+
this.ecOnInit();
|
|
51
|
+
};
|
|
52
|
+
BlocksEcComponent.prototype.trimClassBlock = function (code) {
|
|
53
|
+
return (code.split('-').length > 1) ? code.split('-')[1].toLowerCase() : '';
|
|
54
|
+
};
|
|
55
|
+
BlocksEcComponent.prototype.selectPromotion = function (block) {
|
|
56
|
+
console.log('hola');
|
|
57
|
+
this.analyticsService.callEvent('select_promotion', block);
|
|
58
|
+
};
|
|
59
|
+
BlocksEcComponent.ctorParameters = function () { return [
|
|
60
|
+
{ type: BlocksService },
|
|
61
|
+
{ type: Constants },
|
|
62
|
+
{ type: AnalyticsService }
|
|
63
|
+
]; };
|
|
64
|
+
__decorate([
|
|
65
|
+
Input()
|
|
66
|
+
], BlocksEcComponent.prototype, "appProduct", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
Input()
|
|
69
|
+
], BlocksEcComponent.prototype, "templates", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
Input()
|
|
72
|
+
], BlocksEcComponent.prototype, "blockFilters", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
Input()
|
|
75
|
+
], BlocksEcComponent.prototype, "section", null);
|
|
76
|
+
__decorate([
|
|
77
|
+
Input()
|
|
78
|
+
], BlocksEcComponent.prototype, "show_loading", void 0);
|
|
79
|
+
BlocksEcComponent = __decorate([
|
|
80
|
+
Component({
|
|
81
|
+
selector: 'app-blocks-ec',
|
|
82
|
+
template: "<div *ngIf=\"blocksService.blocks | async as blocks\">\r\n <div *ngIf=\"blocks\">\r\n <div class=\"container-fluid px-0\" *ngIf=\"blocks.length >= 1; else loading\">\r\n <div class=\"row\">\r\n\r\n <ng-container *ngFor=\"let block of blocks\">\r\n <ng-container [ngSwitch]=\"block.contentType\">\r\n <!-- Block Banner-->\r\n <ng-container *ngSwitchCase=\"'banner'\">\r\n <!--Banner Full-->\r\n <ng-template #appBlockBannerFullEc let-block=\"block\">\r\n <app-block-banner-full-ec\r\n [class]=\"block.styles && block.styles?.items ? ('col-sm-' + block.styles?.items.sm + ' col-md-' + block.styles?.items.md + ' col-lg-' + block.styles?.items.lg) : ' col-12'\"\r\n [banners]=\"block.banners\" [margin]=\"0\" [meta]=\"block\">\r\n </app-block-banner-full-ec>\r\n </ng-template>\r\n <ng-container *ngIf=\"block.design == 'full'\"\r\n [ngTemplateOutlet]=\"templates && templates.appBlockBannerFull ? templates.appBlockBannerFull : appBlockBannerFullEc\"\r\n [ngTemplateOutletContext]=\"{block:block}\">\r\n </ng-container>\r\n <!---->\r\n <!--Banner Box-->\r\n <ng-template #appBlockBannerBoxesEc let-block=\"block\">\r\n <app-block-banner-boxes-ec\r\n [class]=\"block.styles && block.styles?.items ? ('col-sm-' + block.styles?.items.sm + ' col-md-' + block.styles?.items.md + ' col-lg-' + block.styles?.items.lg) : ' col-12'\"\r\n [banners]=\"block.banners\" [meta]=\"block\">\r\n </app-block-banner-boxes-ec>\r\n </ng-template>\r\n <ng-container *ngIf=\"block.design == 'boxes'\"\r\n [ngTemplateOutlet]=\"templates && templates.appBlockBannerBoxes? templates.appBlockBannerBoxes : appBlockBannerBoxesEc\"\r\n [ngTemplateOutletContext]=\"{block:block}\">\r\n </ng-container>\r\n <!---->\r\n </ng-container>\r\n <!-- End Block Banner -->\r\n\r\n <!--Block Html -->\r\n <ng-template #appBlockHtmlEc let-block=\"block\">\r\n <app-block-html-ec class=\"col-12\" [html_content]=\"getHTMLContent(block)\">\r\n </app-block-html-ec>\r\n </ng-template>\r\n <ng-container *ngSwitchCase=\"'html'\">\r\n <ng-container *ngIf=\"showBlock(block)\"\r\n [ngTemplateOutlet]=\"templates && templates.appBlockHtml ? templates.appBlockHtml : appBlockHtmlEc\"\r\n [ngTemplateOutletContext]=\"{block:block}\">\r\n </ng-container>\r\n </ng-container>\r\n <!--End Block Html-->\r\n\r\n <!--Block Products-->\r\n <ng-template #appBlockProductsEc let-block=\"block\">\r\n <app-block-products-ec\r\n [class]=\"block.styles && block.styles?.items ? ('col-sm-' + block.styles?.items.sm + ' col-md-' + block.styles?.items.md + ' col-lg-' + block.styles?.items.lg) : ' col-12'\"\r\n [products]=\"block.products.items\" [meta]=\"block\" [appProduct]=\"appProduct\">\r\n </app-block-products-ec>\r\n </ng-template>\r\n\r\n <ng-container *ngSwitchCase=\"'products'\"\r\n [ngTemplateOutlet]=\"templates && templates.appBlockProducts ? templates.appBlockProducts : appBlockProductsEc\"\r\n [ngTemplateOutletContext]=\"{block:block}\"></ng-container>\r\n <!--End Blocks Products-->\r\n\r\n <!-- Contact Form/Newsletter -->\r\n <ng-container *ngSwitchCase=\"'contact_form'\">\r\n <!--Newsletter-->\r\n <ng-container *ngIf=\"isNewsletter(block); else completeForm\">\r\n <ng-template #appContactFormNewsEc let-block=\"block\">\r\n <app-contact-form-news-ec [block]=\"block.contactForm\">\r\n </app-contact-form-news-ec>\r\n </ng-template>\r\n <ng-container\r\n [ngTemplateOutlet]=\"templates && templates.appContactFormNews ? templates.appContactFormNews : appContactFormNewsEc\"\r\n [ngTemplateOutletContext]=\"{block:block}\"></ng-container>\r\n </ng-container>\r\n <!---->\r\n <!--Contact Form-->\r\n <ng-template #completeForm>\r\n <ng-template #appBlockFormContactEc let-block=\"block\">\r\n <app-block-form-contact-ec [block]=\"block.contactForm\"></app-block-form-contact-ec>\r\n </ng-template>\r\n <ng-container\r\n [ngTemplateOutlet]=\"templates && templates.appBlockFormContact ? templates.appBlockFormContact : appBlockFormContactEc\"\r\n [ngTemplateOutletContext]=\"{block:block}\"></ng-container>\r\n </ng-template>\r\n <!---->\r\n </ng-container>\r\n <!-- End Contact Form/Newsletter-->\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n </div>\r\n <ng-template #loading>\r\n <div *ngIf=\"show_loading\">\r\n <div class=\"loading-container\">\r\n <app-loading-full-ec [hole_height]=\"true\"></app-loading-full-ec>\r\n </div>\r\n </div>\r\n </ng-template>\r\n </div>\r\n</div>",
|
|
83
|
+
providers: [BlocksService],
|
|
84
|
+
styles: [".item{position:relative}.item-title{top:30%}.item-title-full{top:50%}.item-subtitle-full{top:60%}.item-subtitle{top:40%}.item-button{top:60%}.item-button.item-position-vertical-center{left:50%;transform:translate(-50%)}.item-button.item-position-vertical-left{left:10%}.item-button.item-position-vertical-right{right:5%;transform:translate(-50%)}.item-button-full{top:70%}.item-button-full.item-position-vertical-center{left:50%;transform:translate(-50%)}.item-button-full.item-position-vertical-left{left:10%}.item-button-full.item-position-vertical-right{right:5%;transform:translate(-50%)}.item-position-vertical-left{text-align:left}.item-position-vertical-center{text-align:center}.item-position-vertical-right{text-align:right}h2.item-title-full::after{content:none}"]
|
|
85
|
+
})
|
|
86
|
+
], BlocksEcComponent);
|
|
87
|
+
return BlocksEcComponent;
|
|
88
|
+
}(ComponentHelper));
|
|
89
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