ng-easycommerce-v18 0.2.16 → 0.2.17
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 +3 -0
- package/assets/decidirFormEc.html +7 -7
- package/esm2022/lib/ec-components/account-ec/order-ec/order-ec.component.mjs +2 -2
- package/esm2022/lib/ec-components/auth-ec/register-form-ec/register-form-ec.component.mjs +2 -2
- package/esm2022/lib/ec-components/blocks-ec/block-banner-full-ec/block-banner-full-ec.component.mjs +11 -11
- package/esm2022/lib/ec-components/blocks-ec/block-newsletter-ec/block-newsletter-ec.component.mjs +2 -2
- package/esm2022/lib/ec-components/blocks-ec/block-products-ec/block-products-ec.component.mjs +12 -12
- package/esm2022/lib/ec-components/cart-ec/cart-ec.component.mjs +2 -2
- package/esm2022/lib/ec-components/cart-ec/cart-item-ec/cart-item-ec.component.mjs +2 -2
- package/esm2022/lib/ec-components/checkout-ec/dataform-ec/dataform-ec.component.mjs +2 -2
- package/esm2022/lib/ec-components/checkout-ec/payment-ec/payment-ec.component.mjs +2 -2
- package/esm2022/lib/ec-components/checkout-ec/payment-ec/payment-methods/mp-redirect-ec/mp-redirect-ec.component.mjs +2 -2
- package/esm2022/lib/ec-components/checkout-ec/shipment-ec/shipment-ec.component.mjs +2 -2
- package/esm2022/lib/ec-components/checkout-ec/step-container-ec/step-container-ec.component.mjs +2 -2
- package/esm2022/lib/ec-components/faqs-ec/faqs-ec.component.mjs +2 -2
- package/esm2022/lib/ec-components/filters-ec/filters-ec.component.mjs +2 -2
- package/esm2022/lib/ec-components/header-ec/header-ec.component.mjs +4 -4
- package/esm2022/lib/ec-components/related-products-ec/related-products-ec.component.mjs +4 -4
- package/esm2022/lib/ec-components/section-container-ec/section-container-ec.component.mjs +2 -2
- package/esm2022/lib/ec-components/stores-ec/stores-ec.component.mjs +3 -3
- package/esm2022/lib/ec-components/widgets-ec/decidir-ec/decidir-ec.component.mjs +4 -4
- package/esm2022/lib/ec-components/widgets-ec/re-captcha-ec/re-captcha-ec.component.mjs +2 -2
- package/esm2022/lib/ec-pipe/ec-safe-html.pipe.mjs +24 -0
- package/esm2022/lib/ec-pipe/index.mjs +2 -1
- package/esm2022/lib/ec-services/cart.service.mjs +2 -2
- package/esm2022/lib/ec-services/checkout.service.mjs +3 -3
- package/esm2022/lib/ec-services/currency.service.mjs +2 -2
- package/esm2022/lib/ec-services/test.service.mjs +2 -2
- package/fesm2022/ng-easycommerce-v18.mjs +78 -57
- package/fesm2022/ng-easycommerce-v18.mjs.map +1 -1
- package/lib/ec-pipe/ec-safe-html.pipe.d.ts +10 -0
- package/lib/ec-pipe/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -17,7 +17,7 @@ import * as i1$3 from '@angular/forms';
|
|
|
17
17
|
import { Validators, FormBuilder, NG_VALUE_ACCESSOR, ReactiveFormsModule, FormsModule } from '@angular/forms';
|
|
18
18
|
import { register } from 'swiper/element/bundle';
|
|
19
19
|
import { register as register$1 } from 'swiper/element';
|
|
20
|
-
import * as
|
|
20
|
+
import * as i1$4 from '@angular/platform-browser';
|
|
21
21
|
import { DomSanitizer, Meta, Title } from '@angular/platform-browser';
|
|
22
22
|
import * as i1$2 from 'ng-recaptcha-2';
|
|
23
23
|
import { RecaptchaModule } from 'ng-recaptcha-2';
|
|
@@ -2157,7 +2157,7 @@ class CurrencyService {
|
|
|
2157
2157
|
baseCurrency = 'USD';
|
|
2158
2158
|
}
|
|
2159
2159
|
}
|
|
2160
|
-
console.log("BC", baseCurrency);
|
|
2160
|
+
// console.log("BC", baseCurrency);
|
|
2161
2161
|
if (currency.code == baseCurrency) {
|
|
2162
2162
|
this.loadCurrency(currency);
|
|
2163
2163
|
}
|
|
@@ -4550,7 +4550,7 @@ class CartService {
|
|
|
4550
4550
|
}
|
|
4551
4551
|
changeHaveToUpdate = (value) => this._haveToUpdate = value;
|
|
4552
4552
|
clearAndResetCustomerCart() {
|
|
4553
|
-
console.log("Clearing and reseting...")
|
|
4553
|
+
// console.log("Clearing and reseting...")
|
|
4554
4554
|
this.resetCart(this.getCartByCustomer);
|
|
4555
4555
|
}
|
|
4556
4556
|
getCartByCustomer = async () => this._connection.post(this.cartItemsApi()).subscribe(res => this.initializeCart(res));
|
|
@@ -5063,7 +5063,7 @@ class CheckoutService {
|
|
|
5063
5063
|
if (final_steps.length == 1) {
|
|
5064
5064
|
this._lastStepSubject.next(true);
|
|
5065
5065
|
}
|
|
5066
|
-
console.log(final_steps);
|
|
5066
|
+
// console.log(final_steps);
|
|
5067
5067
|
firstValueFrom(this._connection.get(this.getHasPurchaseConditions())).then(res => {
|
|
5068
5068
|
this._analyticsService.callEvent('checkout_init', { ...this.cartLocal, currency: this.cartLocal?.currency, value: this.cartLocal?.total });
|
|
5069
5069
|
});
|
|
@@ -5090,7 +5090,7 @@ class CheckoutService {
|
|
|
5090
5090
|
}
|
|
5091
5091
|
this._loadingStepSubject.next(false);
|
|
5092
5092
|
}, err => {
|
|
5093
|
-
console.log(err)
|
|
5093
|
+
// console.log(err)
|
|
5094
5094
|
this._loadingStepSubject.next(false);
|
|
5095
5095
|
this._toastService.show('operation-error');
|
|
5096
5096
|
});
|
|
@@ -5577,7 +5577,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
5577
5577
|
|
|
5578
5578
|
class TestService {
|
|
5579
5579
|
constructor() {
|
|
5580
|
-
console.log('hola');
|
|
5580
|
+
// console.log('hola');
|
|
5581
5581
|
}
|
|
5582
5582
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TestService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5583
5583
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TestService, providedIn: 'root' });
|
|
@@ -5913,10 +5913,10 @@ class HeaderEcComponent extends MenuEcComponent {
|
|
|
5913
5913
|
constructor() {
|
|
5914
5914
|
super();
|
|
5915
5915
|
this._channelService.channel$.subscribe(cfg => {
|
|
5916
|
-
console.log('Channel configuration:', cfg);
|
|
5916
|
+
// console.log('Channel configuration:', cfg);
|
|
5917
5917
|
this.showPricesOnlyToLoggedUsers = !!cfg.showPricesOnlyToLoggedUsers;
|
|
5918
5918
|
this.hidePrices = !!cfg.hidePrices;
|
|
5919
|
-
console.log('hidePrices:', this.hidePrices);
|
|
5919
|
+
// console.log('hidePrices:', this.hidePrices);
|
|
5920
5920
|
});
|
|
5921
5921
|
}
|
|
5922
5922
|
coreConstantsService = inject(CoreConstantsService);
|
|
@@ -5998,7 +5998,7 @@ class HeaderEcComponent extends MenuEcComponent {
|
|
|
5998
5998
|
this.getCollectionSearch();
|
|
5999
5999
|
}
|
|
6000
6000
|
setupMobileMenu() {
|
|
6001
|
-
console.log('setupMobileMenu called');
|
|
6001
|
+
// console.log('setupMobileMenu called');
|
|
6002
6002
|
const menuMobile = document.querySelector('.menuMobile');
|
|
6003
6003
|
if (!(menuMobile instanceof HTMLElement))
|
|
6004
6004
|
return;
|
|
@@ -6180,19 +6180,19 @@ class BlockBannerFullEcComponent extends BlockEcComponent {
|
|
|
6180
6180
|
const nextButton = this.document?.getElementById(`${this.meta?.code}-next`);
|
|
6181
6181
|
const swiperElement = this.document?.getElementById(this.meta?.code);
|
|
6182
6182
|
if (prevButton && nextButton && swiperElement) {
|
|
6183
|
-
console.log('Configurando navegación personalizada para banners:', this.meta?.code);
|
|
6183
|
+
// console.log('Configurando navegación personalizada para banners:', this.meta?.code);
|
|
6184
6184
|
// Actualizar configuración del Swiper existente
|
|
6185
6185
|
this.updateSwiperForBanners(swiperElement);
|
|
6186
6186
|
// Configurar los event listeners para los botones
|
|
6187
6187
|
this.setupBannerNavigationEventListeners(prevButton, nextButton, swiperElement);
|
|
6188
|
-
console.log('Event listeners configurados para navegación de banners');
|
|
6188
|
+
// console.log('Event listeners configurados para navegación de banners');
|
|
6189
6189
|
}
|
|
6190
6190
|
else {
|
|
6191
|
-
console.log('No se pudieron encontrar los elementos de navegación para banners:', {
|
|
6192
|
-
|
|
6193
|
-
|
|
6194
|
-
|
|
6195
|
-
});
|
|
6191
|
+
// console.log('No se pudieron encontrar los elementos de navegación para banners:', {
|
|
6192
|
+
// prevButton: !!prevButton,
|
|
6193
|
+
// nextButton: !!nextButton,
|
|
6194
|
+
// swiperElement: !!swiperElement
|
|
6195
|
+
// });
|
|
6196
6196
|
}
|
|
6197
6197
|
}
|
|
6198
6198
|
/**
|
|
@@ -6200,7 +6200,7 @@ class BlockBannerFullEcComponent extends BlockEcComponent {
|
|
|
6200
6200
|
*/
|
|
6201
6201
|
updateSwiperForBanners(swiperElement) {
|
|
6202
6202
|
if (swiperElement.swiper) {
|
|
6203
|
-
console.log('Actualizando configuración de Swiper para banners');
|
|
6203
|
+
// console.log('Actualizando configuración de Swiper para banners');
|
|
6204
6204
|
// Configuración específica para banners
|
|
6205
6205
|
swiperElement.swiper.params.slidesPerGroup = 1;
|
|
6206
6206
|
swiperElement.swiper.allowSlideNext = true;
|
|
@@ -6227,7 +6227,7 @@ class BlockBannerFullEcComponent extends BlockEcComponent {
|
|
|
6227
6227
|
prevClone.addEventListener('click', (e) => {
|
|
6228
6228
|
e.preventDefault();
|
|
6229
6229
|
e.stopPropagation();
|
|
6230
|
-
console.log('Click en botón anterior (banners)');
|
|
6230
|
+
// console.log('Click en botón anterior (banners)');
|
|
6231
6231
|
if (swiperElement.swiper) {
|
|
6232
6232
|
swiperElement.swiper.slidePrev();
|
|
6233
6233
|
}
|
|
@@ -6235,7 +6235,7 @@ class BlockBannerFullEcComponent extends BlockEcComponent {
|
|
|
6235
6235
|
nextClone.addEventListener('click', (e) => {
|
|
6236
6236
|
e.preventDefault();
|
|
6237
6237
|
e.stopPropagation();
|
|
6238
|
-
console.log('Click en botón siguiente (banners)');
|
|
6238
|
+
// console.log('Click en botón siguiente (banners)');
|
|
6239
6239
|
if (swiperElement.swiper) {
|
|
6240
6240
|
swiperElement.swiper.slideNext();
|
|
6241
6241
|
}
|
|
@@ -6780,7 +6780,7 @@ class BlockProductsEcComponent extends BlockEcComponent {
|
|
|
6780
6780
|
const nextButton = document.getElementById(`${this.meta?.code}-next`);
|
|
6781
6781
|
const swiperElement = document.getElementById(this.meta?.code);
|
|
6782
6782
|
if (prevButton && nextButton && swiperElement) {
|
|
6783
|
-
console.log('Configurando navegación personalizada para:', this.meta?.code);
|
|
6783
|
+
// console.log('Configurando navegación personalizada para:', this.meta?.code);
|
|
6784
6784
|
const swiperConfig = this.getSwiperConfiguration();
|
|
6785
6785
|
// Verificar si el Swiper ya está inicializado
|
|
6786
6786
|
if (!swiperElement.swiper) {
|
|
@@ -6791,14 +6791,14 @@ class BlockProductsEcComponent extends BlockEcComponent {
|
|
|
6791
6791
|
}
|
|
6792
6792
|
// Configurar los event listeners para los botones
|
|
6793
6793
|
this.setupNavigationEventListeners(prevButton, nextButton, swiperElement);
|
|
6794
|
-
console.log('Event listeners configurados para los botones de navegación');
|
|
6794
|
+
// console.log('Event listeners configurados para los botones de navegación');
|
|
6795
6795
|
}
|
|
6796
6796
|
else {
|
|
6797
|
-
console.log('No se pudieron encontrar los elementos:', {
|
|
6798
|
-
|
|
6799
|
-
|
|
6800
|
-
|
|
6801
|
-
});
|
|
6797
|
+
// console.log('No se pudieron encontrar los elementos:', {
|
|
6798
|
+
// prevButton: !!prevButton,
|
|
6799
|
+
// nextButton: !!nextButton,
|
|
6800
|
+
// swiperElement: !!swiperElement
|
|
6801
|
+
// });
|
|
6802
6802
|
}
|
|
6803
6803
|
}
|
|
6804
6804
|
/**
|
|
@@ -6847,13 +6847,13 @@ class BlockProductsEcComponent extends BlockEcComponent {
|
|
|
6847
6847
|
Object.assign(swiperElement, config);
|
|
6848
6848
|
// Inicializar el Swiper
|
|
6849
6849
|
swiperElement.initialize();
|
|
6850
|
-
console.log('Swiper inicializado con configuración personalizada');
|
|
6850
|
+
// console.log('Swiper inicializado con configuración personalizada');
|
|
6851
6851
|
}
|
|
6852
6852
|
/**
|
|
6853
6853
|
* Actualiza un Swiper existente para asegurar la configuración correcta.
|
|
6854
6854
|
*/
|
|
6855
6855
|
updateExistingSwiper(swiperElement) {
|
|
6856
|
-
console.log('Actualizando configuración de Swiper existente');
|
|
6856
|
+
// console.log('Actualizando configuración de Swiper existente');
|
|
6857
6857
|
// Forzar slidesPerGroup a 1
|
|
6858
6858
|
swiperElement.swiper.params.slidesPerGroup = 1;
|
|
6859
6859
|
swiperElement.swiper.allowSlideNext = true;
|
|
@@ -6873,7 +6873,7 @@ class BlockProductsEcComponent extends BlockEcComponent {
|
|
|
6873
6873
|
prevButton.addEventListener('click', (e) => {
|
|
6874
6874
|
e.preventDefault();
|
|
6875
6875
|
e.stopPropagation();
|
|
6876
|
-
console.log('Click en botón anterior');
|
|
6876
|
+
// console.log('Click en botón anterior');
|
|
6877
6877
|
if (swiperElement.swiper) {
|
|
6878
6878
|
swiperElement.swiper.slidePrev();
|
|
6879
6879
|
}
|
|
@@ -6881,7 +6881,7 @@ class BlockProductsEcComponent extends BlockEcComponent {
|
|
|
6881
6881
|
nextButton.addEventListener('click', (e) => {
|
|
6882
6882
|
e.preventDefault();
|
|
6883
6883
|
e.stopPropagation();
|
|
6884
|
-
console.log('Click en botón siguiente');
|
|
6884
|
+
// console.log('Click en botón siguiente');
|
|
6885
6885
|
if (swiperElement.swiper) {
|
|
6886
6886
|
swiperElement.swiper.slideNext();
|
|
6887
6887
|
}
|
|
@@ -6943,7 +6943,7 @@ class BlockNewsletterEcComponent {
|
|
|
6943
6943
|
this.sendForm(this.newsletter_form, 'inquiry-sent');
|
|
6944
6944
|
}
|
|
6945
6945
|
sendForm(form, success_message) {
|
|
6946
|
-
console.log('form', this.newsletter_form);
|
|
6946
|
+
// console.log('form', this.newsletter_form);
|
|
6947
6947
|
if (form.valid && (form.value.email.includes('@'))) {
|
|
6948
6948
|
const formData = new FormData();
|
|
6949
6949
|
// formData.append('mailText', form.value.body)
|
|
@@ -7042,7 +7042,7 @@ class ReCaptchaEcComponent {
|
|
|
7042
7042
|
onTouched;
|
|
7043
7043
|
ngOnInit() {
|
|
7044
7044
|
this._recaptchaService.recaptcha$.subscribe(res => {
|
|
7045
|
-
console.log('recaptcha', res);
|
|
7045
|
+
// console.log('recaptcha', res);
|
|
7046
7046
|
this.captcha = res;
|
|
7047
7047
|
this.updateSiteKey();
|
|
7048
7048
|
});
|
|
@@ -7763,7 +7763,7 @@ class RegisterFormEcComponent {
|
|
|
7763
7763
|
register(event) {
|
|
7764
7764
|
event.preventDefault();
|
|
7765
7765
|
this.loading = true;
|
|
7766
|
-
console.log('registerForm', this.registerForm);
|
|
7766
|
+
// console.log('registerForm', this.registerForm);
|
|
7767
7767
|
if (!this.registerForm.valid) {
|
|
7768
7768
|
this._toastService.show('fields-incomplete');
|
|
7769
7769
|
this.loading = false;
|
|
@@ -8092,7 +8092,7 @@ class FiltersEcComponent {
|
|
|
8092
8092
|
/*Obtiene el filtro elegido en el select, lo pasa al setSelect
|
|
8093
8093
|
para que se marque seleccionado*/
|
|
8094
8094
|
onSelect(event, filter) {
|
|
8095
|
-
console.log(filter)
|
|
8095
|
+
// console.log(filter)
|
|
8096
8096
|
/* const selectedOption = filter
|
|
8097
8097
|
.flatMap(category => category.children)
|
|
8098
8098
|
.filter(option => option?.code === event.target.value)
|
|
@@ -8396,7 +8396,7 @@ class CartEcComponent {
|
|
|
8396
8396
|
});
|
|
8397
8397
|
}
|
|
8398
8398
|
removeCoupon() {
|
|
8399
|
-
console.log(this.couponCode$)
|
|
8399
|
+
// console.log(this.couponCode$)
|
|
8400
8400
|
this._cartService.removeCoupon();
|
|
8401
8401
|
}
|
|
8402
8402
|
redirectCheckout() {
|
|
@@ -8438,6 +8438,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
8438
8438
|
args: [{ selector: 'lib-cart-ec', standalone: true, imports: [], template: "<p>cart-ec works!</p>\r\n" }]
|
|
8439
8439
|
}], ctorParameters: () => [] });
|
|
8440
8440
|
|
|
8441
|
+
class EcSafeHtmlPipe {
|
|
8442
|
+
sanitizer;
|
|
8443
|
+
constructor(sanitizer) {
|
|
8444
|
+
this.sanitizer = sanitizer;
|
|
8445
|
+
}
|
|
8446
|
+
transform(value) {
|
|
8447
|
+
if (!value)
|
|
8448
|
+
return '';
|
|
8449
|
+
return this.sanitizer.bypassSecurityTrustHtml(value);
|
|
8450
|
+
}
|
|
8451
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: EcSafeHtmlPipe, deps: [{ token: i1$4.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
8452
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: EcSafeHtmlPipe, isStandalone: true, name: "ecSafeHtml" });
|
|
8453
|
+
}
|
|
8454
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: EcSafeHtmlPipe, decorators: [{
|
|
8455
|
+
type: Pipe,
|
|
8456
|
+
args: [{
|
|
8457
|
+
name: 'ecSafeHtml',
|
|
8458
|
+
standalone: true
|
|
8459
|
+
}]
|
|
8460
|
+
}], ctorParameters: () => [{ type: i1$4.DomSanitizer }] });
|
|
8461
|
+
|
|
8441
8462
|
class CartItemEcComponent {
|
|
8442
8463
|
item;
|
|
8443
8464
|
inSidebar = false;
|
|
@@ -8451,7 +8472,7 @@ class CartItemEcComponent {
|
|
|
8451
8472
|
isQuantityUpdating = false;
|
|
8452
8473
|
ngOnInit() {
|
|
8453
8474
|
this.quantity = this.item.quantity;
|
|
8454
|
-
console.log(this.item, this.mediaUrl);
|
|
8475
|
+
// console.log(this.item, this.mediaUrl);
|
|
8455
8476
|
}
|
|
8456
8477
|
updateQuantity(stock) {
|
|
8457
8478
|
if (this.quantity > 0 && this.quantity <= stock) {
|
|
@@ -8693,7 +8714,7 @@ class DataformEcComponent {
|
|
|
8693
8714
|
const form = isBilling ? this.checkoutFormFacturacion : this.checkoutForm;
|
|
8694
8715
|
const currentCountry = form.get('countryCode')?.value;
|
|
8695
8716
|
if (!currentCountry) {
|
|
8696
|
-
console.log('Setting default country:', country.name);
|
|
8717
|
+
// console.log('Setting default country:', country.name);
|
|
8697
8718
|
form.patchValue({
|
|
8698
8719
|
countryCode: country.code
|
|
8699
8720
|
});
|
|
@@ -8965,7 +8986,7 @@ class ShipmentEcComponent {
|
|
|
8965
8986
|
costs.find((cost) => cost.name == contract).contracts.find((contra) => contra.name == data.name).selected = true;
|
|
8966
8987
|
}
|
|
8967
8988
|
catch (error) {
|
|
8968
|
-
console.log("error al buscar contrato", error);
|
|
8989
|
+
// console.log("error al buscar contrato", error);
|
|
8969
8990
|
}
|
|
8970
8991
|
this.emitResult(contract, data);
|
|
8971
8992
|
}
|
|
@@ -9055,7 +9076,7 @@ class MpRedirectEcComponent {
|
|
|
9055
9076
|
};
|
|
9056
9077
|
processError = (err) => {
|
|
9057
9078
|
this._toastService.show(err != '' ? err : 'payment-error');
|
|
9058
|
-
console.log("ERROR ENVIO BACK ", err);
|
|
9079
|
+
// console.log("ERROR ENVIO BACK ", err);
|
|
9059
9080
|
};
|
|
9060
9081
|
clearStorageState = () => {
|
|
9061
9082
|
sessionStorage.removeItem('state');
|
|
@@ -9272,7 +9293,7 @@ class DecidirEcComponent extends ComponentHelper {
|
|
|
9272
9293
|
};
|
|
9273
9294
|
processError = (err) => {
|
|
9274
9295
|
this.toastrService.show(err != '' ? err : 'payment-error');
|
|
9275
|
-
console.log("ERROR ENVIO BACK ", err);
|
|
9296
|
+
// console.log("ERROR ENVIO BACK ", err);
|
|
9276
9297
|
};
|
|
9277
9298
|
getCheckoutDecidir = () => {
|
|
9278
9299
|
this.loading = true;
|
|
@@ -9288,7 +9309,7 @@ class DecidirEcComponent extends ComponentHelper {
|
|
|
9288
9309
|
return;
|
|
9289
9310
|
}
|
|
9290
9311
|
if (event.data && event.data.type === 'DECIDIR_PAYMENT') {
|
|
9291
|
-
console.log('DecidirComponent - Procesando pago con payload:', event.data.payload);
|
|
9312
|
+
// console.log('DecidirComponent - Procesando pago con payload:', event.data.payload);
|
|
9292
9313
|
this.processPayment(event.data.payload);
|
|
9293
9314
|
}
|
|
9294
9315
|
};
|
|
@@ -9298,7 +9319,7 @@ class DecidirEcComponent extends ComponentHelper {
|
|
|
9298
9319
|
.subscribe({
|
|
9299
9320
|
next: (response) => {
|
|
9300
9321
|
this.loading = false;
|
|
9301
|
-
console.log('Respuesta del backend:', response);
|
|
9322
|
+
// console.log('Respuesta del backend:', response);
|
|
9302
9323
|
if (response.status === 'approved' || response.status === 'partially_authorized') {
|
|
9303
9324
|
localStorage.setItem('state', response.status === 'approved' ? 'success' : 'partially_authorized');
|
|
9304
9325
|
if (response.message)
|
|
@@ -9329,13 +9350,13 @@ class DecidirEcComponent extends ComponentHelper {
|
|
|
9329
9350
|
obj.style.height = obj.contentWindow.document.body.scrollHeight + 'px';
|
|
9330
9351
|
obj.style.width = obj.contentWindow.document.body.scrollWidth + 'px';
|
|
9331
9352
|
};
|
|
9332
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DecidirEcComponent, deps: [{ token: i0.Renderer2 }, { token: ConnectionService }, { token: ToastService }, { token: CoreConstantsService }, { token: ApiConstantsService }, { token: CartService }, { token: i2.ActivatedRoute }, { token:
|
|
9353
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DecidirEcComponent, deps: [{ token: i0.Renderer2 }, { token: ConnectionService }, { token: ToastService }, { token: CoreConstantsService }, { token: ApiConstantsService }, { token: CartService }, { token: i2.ActivatedRoute }, { token: i1$4.DomSanitizer }, { token: ParametersService }], target: i0.ɵɵFactoryTarget.Component });
|
|
9333
9354
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: DecidirEcComponent, isStandalone: true, selector: "app-decidir-ec", inputs: { paymentServiceInst: "paymentServiceInst", method: "method", total_amount: "total_amount", allData: "allData", user_data: "user_data" }, outputs: { ready: "ready" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div class=\"text-center\">\r\n <h3>Continuar con el pago en Decidir</h3>\r\n @if (method) {\r\n <p class=\"px-5\">{{ method.description }}</p>\r\n <p class=\"px-5\">{{ method.instructions }}</p>\r\n }\r\n @if (!loading) {\r\n <button class=\"btn btn-outline-secondary comprar\" (click)=\"openModal()\">Pagar</button>\r\n } @else {\r\n <div class=\"d-flex flex-column jusitfy-content-center align-items-center mt-2\">\r\n <app-loading-full-ec></app-loading-full-ec>\r\n </div>\r\n }\r\n </div>\r\n\r\n@if (showModal) {\r\n<div class=\"modal-backdrop\" (click)=\"clickClose()\">\r\n <div class=\"modal-dialog modal-lg\" (click)=\"$event.stopPropagation()\">\r\n <div class=\"modal-content\">\r\n\r\n <div class=\"modal-body\">\r\n <div class=\"payment-container\">\r\n \r\n <!-- Iframe del formulario de decidir -->\r\n <div class=\"iframe-container\">\r\n <iframe [src]=\"url\" frameborder=\"0\" class=\"payment-iframe\"></iframe>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n}\r\n", styles: [".modal-backdrop{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#0009;display:flex;justify-content:center;align-items:center;z-index:1050;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.modal-dialog{max-width:90%;max-height:90%;width:800px;background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 20px 60px #0000004d;animation:modalFadeIn .3s ease-out}.modal-dialog.modal-lg{max-width:900px;width:90%}@keyframes modalFadeIn{0%{opacity:0;transform:scale(.9) translateY(-20px)}to{opacity:1;transform:scale(1) translateY(0)}}.modal-content{display:flex;flex-direction:column;height:100%;border:none;border-radius:16px;background:#fff}.modal-header{padding:1.5rem 2rem;border-bottom:1px solid #e9ecef;background:linear-gradient(135deg,#f8f9fa,#e9ecef);display:flex;justify-content:space-between;align-items:center;position:relative}.modal-header:after{content:\"\";position:absolute;bottom:0;left:0;right:0;height:1px;background:linear-gradient(90deg,transparent 0%,#dee2e6 50%,transparent 100%)}.modal-header .modal-title{margin:0;font-size:1.5rem;font-weight:700;color:#2c3e50;text-shadow:0 1px 2px rgba(0,0,0,.1)}.modal-header .btn-close{background:none;border:none;font-size:1.8rem;color:#6c757d;cursor:pointer;padding:0;width:35px;height:35px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:all .3s ease;position:relative}.modal-header .btn-close:hover{background-color:#dc3545;color:#fff;transform:rotate(90deg);box-shadow:0 4px 12px #dc35454d}.modal-header .btn-close:active{transform:rotate(90deg) scale(.95)}.modal-body{padding:0;flex:1;overflow:hidden;background:#fff}.payment-container{height:100%;display:flex;flex-direction:column;background:#fff}.cards-accepted{padding:1.5rem 2rem;text-align:center;border-bottom:1px solid #e9ecef;background:linear-gradient(135deg,#fff,#f8f9fa);position:relative}.cards-accepted:after{content:\"\";position:absolute;bottom:0;left:5%;right:5%;height:1px;background:linear-gradient(90deg,transparent 0%,#dee2e6 50%,transparent 100%)}.cards-accepted .cards-img{height:45px;max-width:100%;object-fit:contain;filter:drop-shadow(0 2px 4px rgba(0,0,0,.1));transition:transform .2s ease}.cards-accepted .cards-img:hover{transform:scale(1.05)}.iframe-container{flex:1;padding:1.5rem;background:#fff;position:relative}.iframe-container:before{content:\"\";position:absolute;top:0;left:1.5rem;right:1.5rem;height:1px;background:linear-gradient(90deg,transparent 0%,#e9ecef 50%,transparent 100%)}.payment-iframe{width:100%;height:620px;border:none;border-radius:12px;background:#fff;box-shadow:inset 0 2px 8px #0000000d}.half-width{width:49%!important}.ml-1{margin-left:1%}#card-form{height:450px}.iframeStyle{height:520px;width:100%}@media only screen and (max-width: 1024px){.modal-dialog,.modal-dialog.modal-lg{max-width:95%;width:95%}.payment-iframe{height:650px}.modal-header{padding:1rem 1.5rem}.modal-header .modal-title{font-size:1.125rem}.cards-accepted{padding:.75rem 1.5rem}}@media only screen and (max-width: 680px){.modal-dialog{max-width:98%;width:98%;margin:1rem;max-height:calc(100vh - 2rem)}.modal-dialog.modal-lg{max-width:98%;width:98%}.payment-iframe{height:550px}.modal-header{padding:1rem}.modal-header .modal-title{font-size:1rem}.modal-header .btn-close{width:28px;height:28px;font-size:1.25rem}.cards-accepted{padding:.5rem 1rem}.cards-accepted .cards-img{height:35px}.iframe-container{padding:.5rem}}@media only screen and (max-width: 480px){.modal-dialog{margin:.5rem;max-height:calc(100vh - 1rem);border-radius:8px}.modal-content{border-radius:8px}.payment-iframe{height:500px}.cards-accepted .cards-img{height:30px}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "component", type: LoadingFullEcComponent, selector: "app-loading-full-ec" }] });
|
|
9334
9355
|
}
|
|
9335
9356
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DecidirEcComponent, decorators: [{
|
|
9336
9357
|
type: Component,
|
|
9337
9358
|
args: [{ selector: 'app-decidir-ec', standalone: true, imports: [CommonModule, FormsModule, LoadingFullEcComponent], template: "<div class=\"text-center\">\r\n <h3>Continuar con el pago en Decidir</h3>\r\n @if (method) {\r\n <p class=\"px-5\">{{ method.description }}</p>\r\n <p class=\"px-5\">{{ method.instructions }}</p>\r\n }\r\n @if (!loading) {\r\n <button class=\"btn btn-outline-secondary comprar\" (click)=\"openModal()\">Pagar</button>\r\n } @else {\r\n <div class=\"d-flex flex-column jusitfy-content-center align-items-center mt-2\">\r\n <app-loading-full-ec></app-loading-full-ec>\r\n </div>\r\n }\r\n </div>\r\n\r\n@if (showModal) {\r\n<div class=\"modal-backdrop\" (click)=\"clickClose()\">\r\n <div class=\"modal-dialog modal-lg\" (click)=\"$event.stopPropagation()\">\r\n <div class=\"modal-content\">\r\n\r\n <div class=\"modal-body\">\r\n <div class=\"payment-container\">\r\n \r\n <!-- Iframe del formulario de decidir -->\r\n <div class=\"iframe-container\">\r\n <iframe [src]=\"url\" frameborder=\"0\" class=\"payment-iframe\"></iframe>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n}\r\n", styles: [".modal-backdrop{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#0009;display:flex;justify-content:center;align-items:center;z-index:1050;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.modal-dialog{max-width:90%;max-height:90%;width:800px;background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 20px 60px #0000004d;animation:modalFadeIn .3s ease-out}.modal-dialog.modal-lg{max-width:900px;width:90%}@keyframes modalFadeIn{0%{opacity:0;transform:scale(.9) translateY(-20px)}to{opacity:1;transform:scale(1) translateY(0)}}.modal-content{display:flex;flex-direction:column;height:100%;border:none;border-radius:16px;background:#fff}.modal-header{padding:1.5rem 2rem;border-bottom:1px solid #e9ecef;background:linear-gradient(135deg,#f8f9fa,#e9ecef);display:flex;justify-content:space-between;align-items:center;position:relative}.modal-header:after{content:\"\";position:absolute;bottom:0;left:0;right:0;height:1px;background:linear-gradient(90deg,transparent 0%,#dee2e6 50%,transparent 100%)}.modal-header .modal-title{margin:0;font-size:1.5rem;font-weight:700;color:#2c3e50;text-shadow:0 1px 2px rgba(0,0,0,.1)}.modal-header .btn-close{background:none;border:none;font-size:1.8rem;color:#6c757d;cursor:pointer;padding:0;width:35px;height:35px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:all .3s ease;position:relative}.modal-header .btn-close:hover{background-color:#dc3545;color:#fff;transform:rotate(90deg);box-shadow:0 4px 12px #dc35454d}.modal-header .btn-close:active{transform:rotate(90deg) scale(.95)}.modal-body{padding:0;flex:1;overflow:hidden;background:#fff}.payment-container{height:100%;display:flex;flex-direction:column;background:#fff}.cards-accepted{padding:1.5rem 2rem;text-align:center;border-bottom:1px solid #e9ecef;background:linear-gradient(135deg,#fff,#f8f9fa);position:relative}.cards-accepted:after{content:\"\";position:absolute;bottom:0;left:5%;right:5%;height:1px;background:linear-gradient(90deg,transparent 0%,#dee2e6 50%,transparent 100%)}.cards-accepted .cards-img{height:45px;max-width:100%;object-fit:contain;filter:drop-shadow(0 2px 4px rgba(0,0,0,.1));transition:transform .2s ease}.cards-accepted .cards-img:hover{transform:scale(1.05)}.iframe-container{flex:1;padding:1.5rem;background:#fff;position:relative}.iframe-container:before{content:\"\";position:absolute;top:0;left:1.5rem;right:1.5rem;height:1px;background:linear-gradient(90deg,transparent 0%,#e9ecef 50%,transparent 100%)}.payment-iframe{width:100%;height:620px;border:none;border-radius:12px;background:#fff;box-shadow:inset 0 2px 8px #0000000d}.half-width{width:49%!important}.ml-1{margin-left:1%}#card-form{height:450px}.iframeStyle{height:520px;width:100%}@media only screen and (max-width: 1024px){.modal-dialog,.modal-dialog.modal-lg{max-width:95%;width:95%}.payment-iframe{height:650px}.modal-header{padding:1rem 1.5rem}.modal-header .modal-title{font-size:1.125rem}.cards-accepted{padding:.75rem 1.5rem}}@media only screen and (max-width: 680px){.modal-dialog{max-width:98%;width:98%;margin:1rem;max-height:calc(100vh - 2rem)}.modal-dialog.modal-lg{max-width:98%;width:98%}.payment-iframe{height:550px}.modal-header{padding:1rem}.modal-header .modal-title{font-size:1rem}.modal-header .btn-close{width:28px;height:28px;font-size:1.25rem}.cards-accepted{padding:.5rem 1rem}.cards-accepted .cards-img{height:35px}.iframe-container{padding:.5rem}}@media only screen and (max-width: 480px){.modal-dialog{margin:.5rem;max-height:calc(100vh - 1rem);border-radius:8px}.modal-content{border-radius:8px}.payment-iframe{height:500px}.cards-accepted .cards-img{height:30px}}\n"] }]
|
|
9338
|
-
}], ctorParameters: () => [{ type: i0.Renderer2 }, { type: ConnectionService }, { type: ToastService }, { type: CoreConstantsService }, { type: ApiConstantsService }, { type: CartService }, { type: i2.ActivatedRoute }, { type:
|
|
9359
|
+
}], ctorParameters: () => [{ type: i0.Renderer2 }, { type: ConnectionService }, { type: ToastService }, { type: CoreConstantsService }, { type: ApiConstantsService }, { type: CartService }, { type: i2.ActivatedRoute }, { type: i1$4.DomSanitizer }, { type: ParametersService }], propDecorators: { paymentServiceInst: [{
|
|
9339
9360
|
type: Input
|
|
9340
9361
|
}], method: [{
|
|
9341
9362
|
type: Input
|
|
@@ -9366,7 +9387,7 @@ class PaymentEcComponent {
|
|
|
9366
9387
|
const totalItem = data.find(item => item.type == 'total');
|
|
9367
9388
|
this.total_amount = totalItem?.amount ?? 0;
|
|
9368
9389
|
});
|
|
9369
|
-
console.log('PaymentEcComponent initialized with total_amount:', this.total_amount);
|
|
9390
|
+
// console.log('PaymentEcComponent initialized with total_amount:', this.total_amount);
|
|
9370
9391
|
}
|
|
9371
9392
|
setActive($event) {
|
|
9372
9393
|
const parent = $event.target.parentElement.children;
|
|
@@ -9447,7 +9468,7 @@ class StepContainerEcComponent {
|
|
|
9447
9468
|
_checkoutService = inject(CheckoutService);
|
|
9448
9469
|
steps;
|
|
9449
9470
|
constructor() {
|
|
9450
|
-
console.log('step-container-ec');
|
|
9471
|
+
// console.log('step-container-ec');
|
|
9451
9472
|
}
|
|
9452
9473
|
next() {
|
|
9453
9474
|
this._checkoutService.next();
|
|
@@ -9785,7 +9806,7 @@ class OrderEcComponent {
|
|
|
9785
9806
|
const number = this._activedRoute.snapshot.params["number"];
|
|
9786
9807
|
this._ordersService.getOrderByNumber(number);
|
|
9787
9808
|
}
|
|
9788
|
-
console.log('inside');
|
|
9809
|
+
// console.log('inside');
|
|
9789
9810
|
});
|
|
9790
9811
|
this._channelConfigService.channel$.subscribe((config) => {
|
|
9791
9812
|
if (config && config.allowRepeatOrders !== undefined) {
|
|
@@ -9937,12 +9958,12 @@ class RelatedProductsEcComponent extends BlockEcComponent {
|
|
|
9937
9958
|
// Swiper initialization moved to initSwiper() method called after data loads
|
|
9938
9959
|
}
|
|
9939
9960
|
ngOnInit() {
|
|
9940
|
-
console.log(this.productID)
|
|
9961
|
+
// console.log(this.productID)
|
|
9941
9962
|
this.load(this.productID);
|
|
9942
9963
|
}
|
|
9943
9964
|
load(product_id) {
|
|
9944
9965
|
this._productsService.getRelatedProducts(product_id).pipe(take(1)).subscribe(res => {
|
|
9945
|
-
console.log('response',
|
|
9966
|
+
// console.log('response',res);
|
|
9946
9967
|
const relatedProducts = res.filter((elem) => !this.includeKeyword(elem.title.toLowerCase()));
|
|
9947
9968
|
this._relatedProductsSubject.next(relatedProducts);
|
|
9948
9969
|
res.map((products) => this._analyticsService.callEvent('view_item_list', { products: products.items, item_list_name: products.title || 'Related Products', item_list_id: products.id || 'related-products' }));
|
|
@@ -9955,7 +9976,7 @@ class RelatedProductsEcComponent extends BlockEcComponent {
|
|
|
9955
9976
|
initSwiper() {
|
|
9956
9977
|
if (isPlatformBrowser(this.platformId)) {
|
|
9957
9978
|
const swiperElemConstructor = this.document?.querySelector('#relatedProductsSwiper');
|
|
9958
|
-
console.log('swiperElemConstructor', swiperElemConstructor)
|
|
9979
|
+
// console.log('swiperElemConstructor', swiperElemConstructor)
|
|
9959
9980
|
if (swiperElemConstructor) {
|
|
9960
9981
|
Object.assign(swiperElemConstructor, this.swiperOptions());
|
|
9961
9982
|
this.swiperElement.set(swiperElemConstructor);
|
|
@@ -10000,7 +10021,7 @@ class FaqsEcComponent {
|
|
|
10000
10021
|
this.empty_faqs = true;
|
|
10001
10022
|
}
|
|
10002
10023
|
}, error => {
|
|
10003
|
-
|
|
10024
|
+
(error);
|
|
10004
10025
|
this._toastService.show('No fue posible encontrar la sección solicitada');
|
|
10005
10026
|
}).catch(err => this._toastService.show('empty-faqs'));
|
|
10006
10027
|
}
|
|
@@ -10599,7 +10620,7 @@ class SectionContainerEcComponent extends ComponentHelper {
|
|
|
10599
10620
|
: this.sanitizer.bypassSecurityTrustHtml(html);
|
|
10600
10621
|
this.loadSection = true;
|
|
10601
10622
|
}, (error) => {
|
|
10602
|
-
console.log(error);
|
|
10623
|
+
// console.log(error);
|
|
10603
10624
|
this.loadSection = true;
|
|
10604
10625
|
this.content_html = "<p>Sin información</p>";
|
|
10605
10626
|
this.toastrService.show('No fue posible encontrar la sección solicitada');
|
|
@@ -10654,7 +10675,7 @@ class StoresEcComponent extends ComponentHelper {
|
|
|
10654
10675
|
}
|
|
10655
10676
|
this.exclusiveStores = stores ? stores.filter(store => store.exclusive) : null;
|
|
10656
10677
|
// this.selectChange('');
|
|
10657
|
-
console.log('Stores:', stores);
|
|
10678
|
+
// console.log('Stores:', stores);
|
|
10658
10679
|
});
|
|
10659
10680
|
this.ecOnConstruct();
|
|
10660
10681
|
}
|
|
@@ -10727,7 +10748,7 @@ class StoresEcComponent extends ComponentHelper {
|
|
|
10727
10748
|
title: store.name + ' - ' + store.address,
|
|
10728
10749
|
description: store.phone,
|
|
10729
10750
|
};
|
|
10730
|
-
console.log(datos)
|
|
10751
|
+
// console.log(datos)
|
|
10731
10752
|
this.locations.push(datos);
|
|
10732
10753
|
});
|
|
10733
10754
|
const bounds = new google.maps.LatLngBounds();
|
|
@@ -10802,13 +10823,13 @@ class StoresEcComponent extends ComponentHelper {
|
|
|
10802
10823
|
marker.setAnimation(null);
|
|
10803
10824
|
});
|
|
10804
10825
|
}
|
|
10805
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: StoresEcComponent, deps: [{ token: StoresService }, { token: CoreConstantsService }, { token:
|
|
10826
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: StoresEcComponent, deps: [{ token: StoresService }, { token: CoreConstantsService }, { token: i1$4.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component });
|
|
10806
10827
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: StoresEcComponent, isStandalone: true, selector: "app-store-ec", usesInheritance: true, ngImport: i0, template: "<!-- <div class=\"row w-100 mx-auto my-4 px-3 bb-s bt-md-s py-1\">\r\n <strong>{{ 'stores' | translate }}</strong>\r\n</div>\r\n@if(stores){\r\n<div class=\"row\">\r\n <div class=\"col-12 col-md-3 order-1 order-md-1\">\r\n <div class=\"row\">\r\n <div class=\"form-group w-100\">\r\n <select (change)=\"selectChange($event.target.value)\" class=\"rounded-0 form-control form-control-sm\"\r\n id=\"exampleFormControlSelect1\">\r\n <option selected [value]=\"''\">Seleccione provincia</option>\r\n <option [value]=\"item.code\" *ngFor=\"let item of getProvices(stores)\"> {{item.name}}\r\n </option>\r\n </select>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"col-12 col-md-3 order-3 order-md-2\">\r\n <div class=\"container-fluid scrolleable\" *ngIf=\"filterStores && filterStores.length\">\r\n <div class=\"row mb-1\" *ngFor=\"let store of filterStores; let i = index\">\r\n <div class=\"col-12\">\r\n <h6 class=\"\"><strong>{{ store.name }}</strong></h6>\r\n <label>{{ store.address }}</label>\r\n <label>{{ store.phone }}</label>\r\n <div [innerHtml]=\"store.note\"></div>\r\n <div class=\"text-right\">\r\n\r\n <a *ngIf=\"store.urlMap\" (click)=\"updateMap (store.urlMap)\" class=\"custom-a\">Ver mapa</a>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"col-12 col-md-6 order-2 order-md-3 my-4 mt-md-0\">\r\n\r\n <iframe id=\"map-iframe\" [src]=\"urlmap\" frameborder=\"0\"></iframe>\r\n </div>\r\n</div>\r\n}@else {\r\n<div class=\"d-flex flex-row justify-content-center my-5 align-items-center alto-total\">\r\n <h5 class=\"text-center\">{{ 'no-stores' | translate }}</h5>\r\n</div>\r\n}\r\n\r\n\r\n\r\n<ng-template #loading>\r\n <div class=\"container\">\r\n <div class=\"row\">\r\n <div class=\"col-12 align-items-center\">\r\n <div class=\"d-flex flex-column justify-content-center align-items-center my-5\">\r\n <app-loading-full-ec></app-loading-full-ec>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</ng-template> -->", styles: [".scrolleable{height:70vh;overflow:auto}@media screen and (max-width: 768px){.scrolleable{height:auto}}.background-white{background-color:#fff}.alto-total{height:60vh}.custom-a{color:#000}#map-iframe{width:100%;border:0;height:100%}@media screen and (max-width: 425px){#map-iframe{height:400px}}\n"], dependencies: [{ kind: "ngmodule", type: TranslateModule }] });
|
|
10807
10828
|
}
|
|
10808
10829
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: StoresEcComponent, decorators: [{
|
|
10809
10830
|
type: Component,
|
|
10810
10831
|
args: [{ selector: 'app-store-ec', standalone: true, imports: [TranslateModule], template: "<!-- <div class=\"row w-100 mx-auto my-4 px-3 bb-s bt-md-s py-1\">\r\n <strong>{{ 'stores' | translate }}</strong>\r\n</div>\r\n@if(stores){\r\n<div class=\"row\">\r\n <div class=\"col-12 col-md-3 order-1 order-md-1\">\r\n <div class=\"row\">\r\n <div class=\"form-group w-100\">\r\n <select (change)=\"selectChange($event.target.value)\" class=\"rounded-0 form-control form-control-sm\"\r\n id=\"exampleFormControlSelect1\">\r\n <option selected [value]=\"''\">Seleccione provincia</option>\r\n <option [value]=\"item.code\" *ngFor=\"let item of getProvices(stores)\"> {{item.name}}\r\n </option>\r\n </select>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"col-12 col-md-3 order-3 order-md-2\">\r\n <div class=\"container-fluid scrolleable\" *ngIf=\"filterStores && filterStores.length\">\r\n <div class=\"row mb-1\" *ngFor=\"let store of filterStores; let i = index\">\r\n <div class=\"col-12\">\r\n <h6 class=\"\"><strong>{{ store.name }}</strong></h6>\r\n <label>{{ store.address }}</label>\r\n <label>{{ store.phone }}</label>\r\n <div [innerHtml]=\"store.note\"></div>\r\n <div class=\"text-right\">\r\n\r\n <a *ngIf=\"store.urlMap\" (click)=\"updateMap (store.urlMap)\" class=\"custom-a\">Ver mapa</a>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"col-12 col-md-6 order-2 order-md-3 my-4 mt-md-0\">\r\n\r\n <iframe id=\"map-iframe\" [src]=\"urlmap\" frameborder=\"0\"></iframe>\r\n </div>\r\n</div>\r\n}@else {\r\n<div class=\"d-flex flex-row justify-content-center my-5 align-items-center alto-total\">\r\n <h5 class=\"text-center\">{{ 'no-stores' | translate }}</h5>\r\n</div>\r\n}\r\n\r\n\r\n\r\n<ng-template #loading>\r\n <div class=\"container\">\r\n <div class=\"row\">\r\n <div class=\"col-12 align-items-center\">\r\n <div class=\"d-flex flex-column justify-content-center align-items-center my-5\">\r\n <app-loading-full-ec></app-loading-full-ec>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</ng-template> -->", styles: [".scrolleable{height:70vh;overflow:auto}@media screen and (max-width: 768px){.scrolleable{height:auto}}.background-white{background-color:#fff}.alto-total{height:60vh}.custom-a{color:#000}#map-iframe{width:100%;border:0;height:100%}@media screen and (max-width: 425px){#map-iframe{height:400px}}\n"] }]
|
|
10811
|
-
}], ctorParameters: () => [{ type: StoresService }, { type: CoreConstantsService }, { type:
|
|
10832
|
+
}], ctorParameters: () => [{ type: StoresService }, { type: CoreConstantsService }, { type: i1$4.DomSanitizer }] });
|
|
10812
10833
|
|
|
10813
10834
|
class PriceRangeFilterComponent {
|
|
10814
10835
|
_filtersService = inject(FiltersService);
|
|
@@ -11195,5 +11216,5 @@ const directives = [
|
|
|
11195
11216
|
* Generated bundle index. Do not edit.
|
|
11196
11217
|
*/
|
|
11197
11218
|
|
|
11198
|
-
export { AccountEcComponent, AddressingService, AnalyticsService, AuthEcComponent, AuthService, AuthStorageService, BlockBannerBoxEcComponent, BlockBannerFullEcComponent, BlockFormContactEcComponent, BlockHtmlEcComponent, BlockNewsletterEcComponent, BlockProductsEcComponent, BlocksEcComponent, BlocksRepositoryService, BlocksService, BreadcrumbEcComponent, CartEcComponent, CartItemEcComponent, CartService, ChannelService, CheckoutEcComponent, CheckoutService, CollectionEcComponent, ConfirmAccountEcComponent, ContactEcComponent, CoreConstantsService, CouponEcComponent, CurrencyService, DopplerService, ENVIRONMENT_TOKEN, EcCurrencySymbolPipe, FacebookPixelService, FaqsEcComponent, FiltersEcComponent, FiltersService, FiltersSortEcComponent, FooterEcComponent, ForgotPasswordEcComponent, FormService, GTMService, GoogleAnalyticsService, HeaderEcComponent, HomeEcComponent, LoadingFullEcComponent, LoadingInlineEcComponent, LoadingSectionEcComponent, LocalStorageService, LoginFormEcComponent, MagnizoomEcComponent, MetricoolPixelService, NgxLocalStorageService, OptionsService, OrderEcComponent, OrderUtilityService, OrdersListEcComponent, OrdersService, PaginationService, ParametersService, ParamsContext, PasswordResetEcComponent, PaymentService, PriceEcComponent, PriceRangeFilterComponent, ProductDetailEcComponent, ProductDetailService, ProductEcComponent, ProductOffDirective, ProductStockDirective, ProductsService, ReCaptchaEcComponent, ReCaptchaService, RegisterFormEcComponent, RegisterWholesalerFormEcComponent, RelatedProductsEcComponent, ReviewsEcComponent, ReviewsFormEcComponent, SectionContainerEcComponent, ShareEcComponent, ShipmentService, SidebarEcComponent, StoresEcComponent, SuccessEcComponent, TestService, ToastService, VariantsEcComponent, authGuard, authInterceptor, directives, provideEnvironment };
|
|
11219
|
+
export { AccountEcComponent, AddressingService, AnalyticsService, AuthEcComponent, AuthService, AuthStorageService, BlockBannerBoxEcComponent, BlockBannerFullEcComponent, BlockFormContactEcComponent, BlockHtmlEcComponent, BlockNewsletterEcComponent, BlockProductsEcComponent, BlocksEcComponent, BlocksRepositoryService, BlocksService, BreadcrumbEcComponent, CartEcComponent, CartItemEcComponent, CartService, ChannelService, CheckoutEcComponent, CheckoutService, CollectionEcComponent, ConfirmAccountEcComponent, ContactEcComponent, CoreConstantsService, CouponEcComponent, CurrencyService, DopplerService, ENVIRONMENT_TOKEN, EcCurrencySymbolPipe, EcSafeHtmlPipe, FacebookPixelService, FaqsEcComponent, FiltersEcComponent, FiltersService, FiltersSortEcComponent, FooterEcComponent, ForgotPasswordEcComponent, FormService, GTMService, GoogleAnalyticsService, HeaderEcComponent, HomeEcComponent, LoadingFullEcComponent, LoadingInlineEcComponent, LoadingSectionEcComponent, LocalStorageService, LoginFormEcComponent, MagnizoomEcComponent, MetricoolPixelService, NgxLocalStorageService, OptionsService, OrderEcComponent, OrderUtilityService, OrdersListEcComponent, OrdersService, PaginationService, ParametersService, ParamsContext, PasswordResetEcComponent, PaymentService, PriceEcComponent, PriceRangeFilterComponent, ProductDetailEcComponent, ProductDetailService, ProductEcComponent, ProductOffDirective, ProductStockDirective, ProductsService, ReCaptchaEcComponent, ReCaptchaService, RegisterFormEcComponent, RegisterWholesalerFormEcComponent, RelatedProductsEcComponent, ReviewsEcComponent, ReviewsFormEcComponent, SectionContainerEcComponent, ShareEcComponent, ShipmentService, SidebarEcComponent, StoresEcComponent, SuccessEcComponent, TestService, ToastService, VariantsEcComponent, authGuard, authInterceptor, directives, provideEnvironment };
|
|
11199
11220
|
//# sourceMappingURL=ng-easycommerce-v18.mjs.map
|