ng-easycommerce 0.0.657 → 0.0.659-beta.1
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 +22 -0
- package/bundles/ng-easycommerce.umd.js +204 -137
- 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/ec-component/blocks-ec/block-render-ec/block-render-ec.component.js +48 -0
- package/esm2015/lib/ec-component/footer-ec/footer-ec.component.js +15 -43
- package/esm2015/lib/ec-component/index.js +4 -1
- package/esm2015/lib/interfaces/footer.types.js +1 -1
- package/esm2015/lib/services/footer/footer.adapters.js +87 -47
- package/esm2015/lib/services/footer/footer.service.js +3 -8
- package/esm2015/public-api.js +2 -1
- package/esm5/lib/ec-component/blocks-ec/block-render-ec/block-render-ec.component.js +64 -0
- package/esm5/lib/ec-component/footer-ec/footer-ec.component.js +15 -43
- package/esm5/lib/ec-component/index.js +4 -1
- package/esm5/lib/interfaces/footer.types.js +1 -1
- package/esm5/lib/services/footer/footer.adapters.js +87 -48
- package/esm5/lib/services/footer/footer.service.js +3 -8
- package/esm5/public-api.js +2 -1
- package/fesm2015/ng-easycommerce.js +185 -133
- package/fesm2015/ng-easycommerce.js.map +1 -1
- package/fesm5/ng-easycommerce.js +201 -134
- package/fesm5/ng-easycommerce.js.map +1 -1
- package/lib/ec-component/blocks-ec/block-render-ec/block-render-ec.component.d.ts +13 -0
- package/lib/ec-component/footer-ec/footer-ec.component.d.ts +1 -15
- package/lib/ec-component/index.d.ts +1 -0
- package/lib/interfaces/footer.types.d.ts +28 -16
- package/lib/services/footer/footer.adapters.d.ts +4 -22
- package/lib/services/footer/footer.service.d.ts +0 -3
- package/ng-easycommerce.metadata.json +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
package/fesm5/ng-easycommerce.js
CHANGED
|
@@ -9933,73 +9933,112 @@ function withLeadingSlash(path) {
|
|
|
9933
9933
|
return path.startsWith('/') ? path : '/' + path;
|
|
9934
9934
|
}
|
|
9935
9935
|
function toHref(item) {
|
|
9936
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
9937
9936
|
switch (item.type) {
|
|
9938
|
-
case 'url':
|
|
9939
|
-
|
|
9937
|
+
case 'url': {
|
|
9938
|
+
var l = item.link || {};
|
|
9939
|
+
return l.url || '#';
|
|
9940
|
+
}
|
|
9940
9941
|
case 'category': {
|
|
9941
|
-
var
|
|
9942
|
-
|
|
9942
|
+
var l = item.link || {};
|
|
9943
|
+
var c = l.category || null;
|
|
9944
|
+
return c && c.slug ? '/collection/categories/' + encodeURIComponent(c.slug) : '#';
|
|
9943
9945
|
}
|
|
9944
|
-
case 'section':
|
|
9945
|
-
return '#';
|
|
9946
9946
|
case 'parameter': {
|
|
9947
|
-
var
|
|
9948
|
-
|
|
9947
|
+
var l = item.link || {};
|
|
9948
|
+
var p = l.parameter || null;
|
|
9949
|
+
if (p && p.code && p.code.indexOf('link_') === 0 && p.value)
|
|
9949
9950
|
return p.value;
|
|
9950
|
-
var key = encodeURIComponent((
|
|
9951
|
-
var val = encodeURIComponent((
|
|
9952
|
-
return
|
|
9951
|
+
var key = encodeURIComponent((p && p.code) ? p.code : 'param');
|
|
9952
|
+
var val = encodeURIComponent((p && p.value) ? String(p.value) : '');
|
|
9953
|
+
return '/buscar?' + key + '=' + val;
|
|
9954
|
+
}
|
|
9955
|
+
case 'page': {
|
|
9956
|
+
var l = item.link || {};
|
|
9957
|
+
var pg = l.page || {};
|
|
9958
|
+
return toPageHref(pg, 'pages/');
|
|
9959
|
+
}
|
|
9960
|
+
case 'block': {
|
|
9961
|
+
var l = item.link || {};
|
|
9962
|
+
var blk = l.block || {};
|
|
9963
|
+
var url = firstBlockUrl(blk);
|
|
9964
|
+
return url || '#';
|
|
9953
9965
|
}
|
|
9954
9966
|
case 'text':
|
|
9955
9967
|
default:
|
|
9956
9968
|
return '#';
|
|
9957
9969
|
}
|
|
9958
9970
|
}
|
|
9971
|
+
function toPageHref(page, base) {
|
|
9972
|
+
base = withLeadingSlash(base || 'pages/');
|
|
9973
|
+
if (!page)
|
|
9974
|
+
return '#';
|
|
9975
|
+
if (page.slug)
|
|
9976
|
+
return base + encodeURIComponent(String(page.slug));
|
|
9977
|
+
if (page.code)
|
|
9978
|
+
return base + encodeURIComponent(String(page.code));
|
|
9979
|
+
return '#';
|
|
9980
|
+
}
|
|
9981
|
+
function firstBlockUrl(block) {
|
|
9982
|
+
if (!block || !block.banners || !block.banners.length)
|
|
9983
|
+
return null;
|
|
9984
|
+
var banner = block.banners[0] || {};
|
|
9985
|
+
if (banner.url)
|
|
9986
|
+
return String(banner.url);
|
|
9987
|
+
var tr = banner.translations || {};
|
|
9988
|
+
var candLocales = ['es_AR', 'es-AR', 'es', 'default'];
|
|
9989
|
+
for (var i = 0; i < candLocales.length; i++) {
|
|
9990
|
+
var loc = candLocales[i];
|
|
9991
|
+
if (tr[loc] && tr[loc].url)
|
|
9992
|
+
return String(tr[loc].url);
|
|
9993
|
+
if (tr[loc] && tr[loc].translatable && tr[loc].translatable.url) {
|
|
9994
|
+
return String(tr[loc].translatable.url);
|
|
9995
|
+
}
|
|
9996
|
+
}
|
|
9997
|
+
return null;
|
|
9998
|
+
}
|
|
9959
9999
|
function toText(item) {
|
|
9960
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
9961
10000
|
if (item.label)
|
|
9962
10001
|
return item.label;
|
|
10002
|
+
if (item.labelResolved)
|
|
10003
|
+
return item.labelResolved;
|
|
9963
10004
|
switch (item.type) {
|
|
9964
|
-
case 'category':
|
|
9965
|
-
|
|
9966
|
-
|
|
10005
|
+
case 'category': {
|
|
10006
|
+
var l = item.link || {};
|
|
10007
|
+
var c = l.category || null;
|
|
10008
|
+
if (c && c.name)
|
|
10009
|
+
return String(c.name);
|
|
10010
|
+
if (c && c.code)
|
|
10011
|
+
return String(c.code);
|
|
10012
|
+
return 'Categoría';
|
|
10013
|
+
}
|
|
10014
|
+
case 'page': {
|
|
10015
|
+
var l = item.link || {};
|
|
10016
|
+
var pg = l.page || {};
|
|
10017
|
+
return toPageText(pg);
|
|
10018
|
+
}
|
|
10019
|
+
case 'parameter': {
|
|
10020
|
+
var l = item.link || {};
|
|
10021
|
+
var p = l.parameter || null;
|
|
10022
|
+
return (p && p.code) ? String(p.code) : 'Parámetro';
|
|
10023
|
+
}
|
|
10024
|
+
case 'block': {
|
|
10025
|
+
var l = item.link || {};
|
|
10026
|
+
var blk = l.block || {};
|
|
10027
|
+
return blk && blk.code ? String(blk.code) : 'Bloque';
|
|
10028
|
+
}
|
|
9967
10029
|
case 'url': return 'Enlace';
|
|
9968
10030
|
case 'text': return '';
|
|
9969
10031
|
default: return 'Enlace';
|
|
9970
10032
|
}
|
|
9971
10033
|
}
|
|
9972
|
-
|
|
9973
|
-
|
|
9974
|
-
|
|
9975
|
-
if (
|
|
9976
|
-
return
|
|
9977
|
-
|
|
9978
|
-
|
|
9979
|
-
|
|
9980
|
-
function hasSectionPages(item, onlyEnabled) {
|
|
9981
|
-
if (onlyEnabled === void 0) { onlyEnabled = true; }
|
|
9982
|
-
var pages = getSectionPages(item);
|
|
9983
|
-
return onlyEnabled ? pages.some(function (p) { var _a; return (_a = p) === null || _a === void 0 ? void 0 : _a.enabled; }) : pages.length > 0;
|
|
9984
|
-
}
|
|
9985
|
-
/**
|
|
9986
|
-
* Arma el href de UNA página de sección.
|
|
9987
|
-
* @param item FooterItemView de tipo 'section'
|
|
9988
|
-
* @param pageCode code de la página (obligatorio)
|
|
9989
|
-
* @param sectionsBase base que te da consts.getSectionsRoute(), ej: 'section/' o '/section/'
|
|
9990
|
-
*/
|
|
9991
|
-
function toSectionPageHref(item, pageCode, sectionsBase) {
|
|
9992
|
-
if (item.type !== 'section')
|
|
9993
|
-
return '#';
|
|
9994
|
-
if (!pageCode)
|
|
9995
|
-
return '#';
|
|
9996
|
-
var base = withLeadingSlash(sectionsBase || 'section/');
|
|
9997
|
-
return "" + base + encodeURIComponent(pageCode);
|
|
9998
|
-
}
|
|
9999
|
-
/** Texto a mostrar para la página (fallback name -> code). */
|
|
10000
|
-
function toSectionPageText(page) {
|
|
10001
|
-
var _a, _b, _c, _d;
|
|
10002
|
-
return (_d = (_b = (_a = page) === null || _a === void 0 ? void 0 : _a.name, (_b !== null && _b !== void 0 ? _b : (_c = page) === null || _c === void 0 ? void 0 : _c.code)), (_d !== null && _d !== void 0 ? _d : '')).toString();
|
|
10034
|
+
function toPageText(page) {
|
|
10035
|
+
if (!page)
|
|
10036
|
+
return '';
|
|
10037
|
+
if (page.name)
|
|
10038
|
+
return String(page.name);
|
|
10039
|
+
if (page.code)
|
|
10040
|
+
return String(page.code);
|
|
10041
|
+
return '';
|
|
10003
10042
|
}
|
|
10004
10043
|
|
|
10005
10044
|
function pickFooterForDevice(footers, device) {
|
|
@@ -10025,7 +10064,6 @@ var FooterService = /** @class */ (function () {
|
|
|
10025
10064
|
this.columns$ = this.columnsSubject.asObservable();
|
|
10026
10065
|
this.extrasSubject = new BehaviorSubject(null);
|
|
10027
10066
|
this.extras$ = this.extrasSubject.asObservable();
|
|
10028
|
-
// === NUEVO: cache en memoria ===
|
|
10029
10067
|
this.cachedList = [];
|
|
10030
10068
|
this.currentDevice = 'desktop';
|
|
10031
10069
|
this.loaded = false;
|
|
@@ -10050,11 +10088,9 @@ var FooterService = /** @class */ (function () {
|
|
|
10050
10088
|
_this.extrasSubject.next((_c = (_b = chosen) === null || _b === void 0 ? void 0 : _b.extras, (_c !== null && _c !== void 0 ? _c : null)));
|
|
10051
10089
|
});
|
|
10052
10090
|
};
|
|
10053
|
-
/** Carga UNA SOLA VEZ y cachea todo. Luego aplica según device actual. */
|
|
10054
10091
|
FooterService$1.prototype.loadOnce = function (initialDevice) {
|
|
10055
10092
|
var _this = this;
|
|
10056
10093
|
if (this.loaded) {
|
|
10057
|
-
// ya tengo datos: solo (re)aplico el device actual o el que me pasen
|
|
10058
10094
|
if (initialDevice && initialDevice !== this.currentDevice) {
|
|
10059
10095
|
this.currentDevice = initialDevice;
|
|
10060
10096
|
this.applyDevice();
|
|
@@ -10067,19 +10103,17 @@ var FooterService = /** @class */ (function () {
|
|
|
10067
10103
|
.subscribe(function (res) {
|
|
10068
10104
|
_this.cachedList = Array.isArray(res) ? res : [];
|
|
10069
10105
|
_this.loaded = true;
|
|
10070
|
-
_this.applyDevice();
|
|
10106
|
+
_this.applyDevice();
|
|
10071
10107
|
});
|
|
10072
10108
|
};
|
|
10073
|
-
/** Cambia el device y re-arma columnas/extras desde el cache (sin API). */
|
|
10074
10109
|
FooterService$1.prototype.setDevice = function (device) {
|
|
10075
10110
|
if (device === this.currentDevice)
|
|
10076
10111
|
return;
|
|
10077
10112
|
this.currentDevice = device;
|
|
10078
10113
|
if (!this.loaded)
|
|
10079
|
-
return;
|
|
10114
|
+
return;
|
|
10080
10115
|
this.applyDevice();
|
|
10081
10116
|
};
|
|
10082
|
-
/** Recalcula columns/extras para el currentDevice usando el cache. */
|
|
10083
10117
|
FooterService$1.prototype.applyDevice = function () {
|
|
10084
10118
|
var _this = this;
|
|
10085
10119
|
var _a, _b, _c;
|
|
@@ -10173,7 +10207,6 @@ var FooterEcComponent = /** @class */ (function (_super) {
|
|
|
10173
10207
|
_this.categories = [];
|
|
10174
10208
|
_this.attributes = [];
|
|
10175
10209
|
_this.params = {};
|
|
10176
|
-
// helpers a mano para el template
|
|
10177
10210
|
_this.toHref = toHref;
|
|
10178
10211
|
_this.toText = toText;
|
|
10179
10212
|
_this.updateCategories = function (categories) {
|
|
@@ -10212,7 +10245,6 @@ var FooterEcComponent = /** @class */ (function (_super) {
|
|
|
10212
10245
|
_this.ecUpdateMenuItemAttributes = function (menuItems) {
|
|
10213
10246
|
return menuItems;
|
|
10214
10247
|
};
|
|
10215
|
-
/* ----------------- Trackers para *ngFor ----------------- */
|
|
10216
10248
|
_this.trackById = function (_, it) { var _a, _b; return _b = (_a = it) === null || _a === void 0 ? void 0 : _a.id, (_b !== null && _b !== void 0 ? _b : _); };
|
|
10217
10249
|
_this.trackByPos = function (_, it) { var _a, _b; return _b = (_a = it) === null || _a === void 0 ? void 0 : _a.position, (_b !== null && _b !== void 0 ? _b : _); };
|
|
10218
10250
|
_this.optionsService.sections.subscribe(function (res) { return (res.length > 0) && _this.updateMenuItem(res); });
|
|
@@ -10225,13 +10257,10 @@ var FooterEcComponent = /** @class */ (function (_super) {
|
|
|
10225
10257
|
FooterEcComponent.prototype.ngOnInit = function () {
|
|
10226
10258
|
var _this = this;
|
|
10227
10259
|
this.paramsService.parameters.subscribe(function (res) { return _this.params = res; });
|
|
10228
|
-
// API: nos suscribimos a las columnas
|
|
10229
10260
|
this.columns$ = this.footerService.columns$;
|
|
10230
10261
|
this.extras$ = this.footerService.extras$;
|
|
10231
|
-
// Carga inicial UNA sola vez con el device actual
|
|
10232
10262
|
var initialDevice = this.getDevice();
|
|
10233
10263
|
this.footerService.loadOnce(initialDevice);
|
|
10234
|
-
// Conmutación por resize SIN llamar a la API
|
|
10235
10264
|
if (isPlatformBrowser(this.platformId)) {
|
|
10236
10265
|
this.deviceSub = merge(of(initialDevice), fromEvent(window, 'resize').pipe(debounceTime(150), map(function () { return _this.getDevice(); }), distinctUntilChanged())).subscribe(function (d) { return _this.footerService.setDevice(d); });
|
|
10237
10266
|
}
|
|
@@ -10242,25 +10271,19 @@ var FooterEcComponent = /** @class */ (function (_super) {
|
|
|
10242
10271
|
return 'desktop';
|
|
10243
10272
|
return window.innerWidth < 750 ? 'mobile' : 'desktop';
|
|
10244
10273
|
};
|
|
10245
|
-
// ¿El string "parece" una URL de imagen (por extensión)?
|
|
10246
10274
|
FooterEcComponent.prototype.isImageUrl = function (v) {
|
|
10247
10275
|
return !!v && /\.(png|jpe?g|svg|webp)$/i.test(v);
|
|
10248
10276
|
};
|
|
10249
|
-
// Convierte un path relativo del media server en URL absoluta, o deja pasar si ya es http(s)
|
|
10250
10277
|
FooterEcComponent.prototype.absOrMedia = function (v) {
|
|
10251
|
-
// Si "v" viene con "/media/image/", sacar esa parte
|
|
10252
10278
|
var path = v.startsWith('/media/image/') ? v.replace('/media/image/', '') : v;
|
|
10253
10279
|
return /^https?:\/\//i.test(path) ? path : (this.mediaUrl + path);
|
|
10254
10280
|
};
|
|
10255
10281
|
/* ----------------- Helpers para items tipo parameter ----------------- */
|
|
10256
|
-
// Devuelve el string del value del parámetro
|
|
10257
10282
|
FooterEcComponent.prototype.paramValue = function (it) {
|
|
10258
10283
|
return (it && it.link && it.link.parameter && typeof it.link.parameter.value === 'string')
|
|
10259
10284
|
? it.link.parameter.value
|
|
10260
10285
|
: '';
|
|
10261
10286
|
};
|
|
10262
|
-
// Devuelve SOLO el path de imagen del parámetro (si existe en images[0].path,
|
|
10263
|
-
// si no, usa value si luce como imagen). No agrega mediaUrl todavía.
|
|
10264
10287
|
FooterEcComponent.prototype.paramImagePath = function (it) {
|
|
10265
10288
|
var _a, _b;
|
|
10266
10289
|
var p = (_b = (_a = it) === null || _a === void 0 ? void 0 : _a.link) === null || _b === void 0 ? void 0 : _b.parameter;
|
|
@@ -10271,31 +10294,10 @@ var FooterEcComponent = /** @class */ (function (_super) {
|
|
|
10271
10294
|
return imgPath;
|
|
10272
10295
|
return this.isImageUrl(p.value) ? p.value : '';
|
|
10273
10296
|
};
|
|
10274
|
-
// ¿El parámetro representa una imagen?
|
|
10275
10297
|
FooterEcComponent.prototype.isImageParam = function (it) {
|
|
10276
10298
|
var path = this.paramImagePath(it);
|
|
10277
10299
|
return !!path;
|
|
10278
10300
|
};
|
|
10279
|
-
/* ----------------- Secciones → páginas (helpers neutrales) ----------------- */
|
|
10280
|
-
FooterEcComponent.prototype.sectionPages = function (item) {
|
|
10281
|
-
return getSectionPages(item).filter(function (p) { var _a, _b, _c; return (_b = (_a = p) === null || _a === void 0 ? void 0 : _a.enabled, (_b !== null && _b !== void 0 ? _b : true)) && !!((_c = p) === null || _c === void 0 ? void 0 : _c.code); });
|
|
10282
|
-
};
|
|
10283
|
-
FooterEcComponent.prototype.sectionHasPages = function (item) {
|
|
10284
|
-
return this.sectionPages(item).length > 0;
|
|
10285
|
-
};
|
|
10286
|
-
FooterEcComponent.prototype.sectionPageText = function (page) {
|
|
10287
|
-
var _a, _b;
|
|
10288
|
-
return (((_a = page) === null || _a === void 0 ? void 0 : _a.name) || ((_b = page) === null || _b === void 0 ? void 0 : _b.code) || '').toString();
|
|
10289
|
-
};
|
|
10290
|
-
FooterEcComponent.prototype.sectionPageHref = function (page) {
|
|
10291
|
-
var _a, _b, _c;
|
|
10292
|
-
var base = (((_b = (_a = this.consts).getSectionsRoute) === null || _b === void 0 ? void 0 : _b.call(_a)) || 'section/');
|
|
10293
|
-
var seg = (((_c = page) === null || _c === void 0 ? void 0 : _c.code) || '').toString();
|
|
10294
|
-
if (!seg)
|
|
10295
|
-
return '#';
|
|
10296
|
-
var pref = base.startsWith('/') ? base : "/" + base;
|
|
10297
|
-
return "" + pref + encodeURIComponent(seg);
|
|
10298
|
-
};
|
|
10299
10301
|
/* ----------------- Helpers para EXTRAS ----------------- */
|
|
10300
10302
|
FooterEcComponent.prototype.logoUrl = function (extras) {
|
|
10301
10303
|
var _a, _b, _c;
|
|
@@ -10321,7 +10323,6 @@ var FooterEcComponent = /** @class */ (function (_super) {
|
|
|
10321
10323
|
FooterEcComponent.prototype.styleFor = function (it) {
|
|
10322
10324
|
var _a, _b;
|
|
10323
10325
|
var s = ((_a = it) === null || _a === void 0 ? void 0 : _a.style) || {};
|
|
10324
|
-
// coerción: si viene string, lo paso a number; si null/0, no seteo
|
|
10325
10326
|
var fs = (_b = s.fontSize, (_b !== null && _b !== void 0 ? _b : undefined));
|
|
10326
10327
|
var fsNum = typeof fs === 'string' ? parseInt(fs, 10) : fs;
|
|
10327
10328
|
return {
|
|
@@ -10331,17 +10332,14 @@ var FooterEcComponent = /** @class */ (function (_super) {
|
|
|
10331
10332
|
'font-size.px': Number.isFinite(fsNum) ? fsNum : null,
|
|
10332
10333
|
};
|
|
10333
10334
|
};
|
|
10334
|
-
// en FooterComponent (hijo)
|
|
10335
10335
|
FooterEcComponent.prototype.isInternalUrl = function (url) {
|
|
10336
10336
|
return !!url && url.startsWith('/');
|
|
10337
10337
|
};
|
|
10338
10338
|
FooterEcComponent.prototype.makeAbsolute = function (url) {
|
|
10339
|
-
// para abrir rutas internas en nueva pestaña/ventana
|
|
10340
10339
|
try {
|
|
10341
10340
|
return this.isInternalUrl(url) ? (window.location.origin + url) : url;
|
|
10342
10341
|
}
|
|
10343
|
-
catch (
|
|
10344
|
-
_a) { // SSR/seguridad
|
|
10342
|
+
catch (_a) {
|
|
10345
10343
|
return url;
|
|
10346
10344
|
}
|
|
10347
10345
|
};
|
|
@@ -10356,24 +10354,32 @@ var FooterEcComponent = /** @class */ (function (_super) {
|
|
|
10356
10354
|
ev.preventDefault();
|
|
10357
10355
|
this.router.navigateByUrl(url);
|
|
10358
10356
|
}
|
|
10359
|
-
// si es externo, dejamos que el <a href> lo maneje en la misma pestaña
|
|
10360
10357
|
return;
|
|
10361
10358
|
}
|
|
10362
10359
|
// new_tab | new_window ⇒ window.open
|
|
10363
10360
|
ev.preventDefault();
|
|
10364
10361
|
var full = this.makeAbsolute(url);
|
|
10365
|
-
// para ambos usamos _blank, la diferencia son los "features"
|
|
10366
10362
|
var features = (target === 'new_window')
|
|
10367
|
-
? 'noopener,noreferrer,width=1024,height=768'
|
|
10363
|
+
? 'noopener,noreferrer,width=1024,height=768'
|
|
10368
10364
|
: 'noopener,noreferrer';
|
|
10369
10365
|
try {
|
|
10370
10366
|
window.open(full, '_blank', features);
|
|
10371
10367
|
}
|
|
10372
10368
|
catch (_a) {
|
|
10373
|
-
// fallback por si un popup blocker interfiere
|
|
10374
10369
|
window.location.href = full;
|
|
10375
10370
|
}
|
|
10376
10371
|
};
|
|
10372
|
+
FooterEcComponent.prototype.pageHref = function (it) {
|
|
10373
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
10374
|
+
if (!it || it.type !== 'page')
|
|
10375
|
+
return '#';
|
|
10376
|
+
var base = (((_b = (_a = this.consts).getSectionsRoute) === null || _b === void 0 ? void 0 : _b.call(_a)) || 'section/');
|
|
10377
|
+
var pref = base.startsWith('/') ? base : "/" + base;
|
|
10378
|
+
var code = ((_e = (_d = (_c = it) === null || _c === void 0 ? void 0 : _c.link) === null || _d === void 0 ? void 0 : _d.page) === null || _e === void 0 ? void 0 : _e.code) || ((_h = (_g = (_f = it) === null || _f === void 0 ? void 0 : _f.link) === null || _g === void 0 ? void 0 : _g.page) === null || _h === void 0 ? void 0 : _h.slug) || '';
|
|
10379
|
+
if (!code)
|
|
10380
|
+
return '#';
|
|
10381
|
+
return "" + pref + encodeURIComponent(code);
|
|
10382
|
+
};
|
|
10377
10383
|
FooterEcComponent.ctorParameters = function () { return [
|
|
10378
10384
|
{ type: OptionsService },
|
|
10379
10385
|
{ type: ParametersService },
|
|
@@ -19951,6 +19957,66 @@ var PlaceToPayEcComponent = /** @class */ (function (_super) {
|
|
|
19951
19957
|
return PlaceToPayEcComponent;
|
|
19952
19958
|
}(ComponentHelper));
|
|
19953
19959
|
|
|
19960
|
+
var __extends$1g = (this && this.__extends) || (function () {
|
|
19961
|
+
var extendStatics = function (d, b) {
|
|
19962
|
+
extendStatics = Object.setPrototypeOf ||
|
|
19963
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19964
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
19965
|
+
return extendStatics(d, b);
|
|
19966
|
+
};
|
|
19967
|
+
return function (d, b) {
|
|
19968
|
+
extendStatics(d, b);
|
|
19969
|
+
function __() { this.constructor = d; }
|
|
19970
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
19971
|
+
};
|
|
19972
|
+
})();
|
|
19973
|
+
var __decorate$22 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
19974
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19975
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
19976
|
+
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;
|
|
19977
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19978
|
+
};
|
|
19979
|
+
var BlockRenderEcComponent = /** @class */ (function (_super) {
|
|
19980
|
+
__extends$1g(BlockRenderEcComponent, _super);
|
|
19981
|
+
function BlockRenderEcComponent(consts) {
|
|
19982
|
+
var _this = _super.call(this) || this;
|
|
19983
|
+
_this.consts = consts;
|
|
19984
|
+
_this.ecOnConstruct();
|
|
19985
|
+
return _this;
|
|
19986
|
+
}
|
|
19987
|
+
BlockRenderEcComponent.prototype.ngOnInit = function () {
|
|
19988
|
+
this.ecOnInit();
|
|
19989
|
+
};
|
|
19990
|
+
BlockRenderEcComponent.prototype.ngOnChanges = function () { };
|
|
19991
|
+
BlockRenderEcComponent.prototype.isNewsletter = function (block) {
|
|
19992
|
+
var _a, _b;
|
|
19993
|
+
var code = ((_b = (_a = block) === null || _a === void 0 ? void 0 : _a.contactForm) === null || _b === void 0 ? void 0 : _b.code) || '';
|
|
19994
|
+
return typeof code === 'string' && code.toLowerCase().includes('news');
|
|
19995
|
+
};
|
|
19996
|
+
BlockRenderEcComponent.prototype.getHTMLContent = function (block) {
|
|
19997
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
19998
|
+
var locale = ((_b = (_a = this.consts).getLocale) === null || _b === void 0 ? void 0 : _b.call(_a)) || 'es_AR';
|
|
19999
|
+
return ((_e = (_d = (_c = block) === null || _c === void 0 ? void 0 : _c.translations) === null || _d === void 0 ? void 0 : _d[locale]) === null || _e === void 0 ? void 0 : _e.content) || ((_h = (_g = (_f = block) === null || _f === void 0 ? void 0 : _f.translations) === null || _g === void 0 ? void 0 : _g.es_AR) === null || _h === void 0 ? void 0 : _h.content)
|
|
20000
|
+
|| ((_j = block) === null || _j === void 0 ? void 0 : _j.content)
|
|
20001
|
+
|| '';
|
|
20002
|
+
};
|
|
20003
|
+
BlockRenderEcComponent.ctorParameters = function () { return [
|
|
20004
|
+
{ type: Constants }
|
|
20005
|
+
]; };
|
|
20006
|
+
__decorate$22([
|
|
20007
|
+
Input()
|
|
20008
|
+
], BlockRenderEcComponent.prototype, "block", void 0);
|
|
20009
|
+
BlockRenderEcComponent = __decorate$22([
|
|
20010
|
+
Component({
|
|
20011
|
+
selector: 'app-block-render-ec',
|
|
20012
|
+
template: "<!-- BANNER -->\n<ng-container *ngIf=\"block?.contentType === 'banner'\">\n <!-- full -->\n <app-block-banner-full-ec *ngIf=\"block?.design === 'full'\" class=\"col-12\" [banners]=\"block?.banners\" [margin]=\"0\"\n [meta]=\"block\">\n </app-block-banner-full-ec>\n\n <!-- boxes -->\n <app-block-banner-boxes-ec *ngIf=\"block?.design === 'boxes'\" class=\"col-12\" [banners]=\"block?.banners\"\n [meta]=\"block\">\n </app-block-banner-boxes-ec>\n</ng-container>\n\n<!-- HTML -->\n<app-block-html-ec *ngIf=\"block?.contentType === 'html'\" class=\"col-12\" [html_content]=\"getHTMLContent(block)\">\n</app-block-html-ec>\n\n<!-- PRODUCTS -->\n<app-block-products-ec *ngIf=\"block?.contentType === 'products'\"\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\">\n</app-block-products-ec>\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 *ngIf=\"block?.contentType === 'products'\">\n {{block | json}}\n</ng-container>\n<ng-container *ngIf=\"block?.contentType === 'products'\"\n [ngTemplateOutlet]=\"templates && templates.appBlockProducts ? templates.appBlockProducts : appBlockProductsEc\"\n [ngTemplateOutletContext]=\"{block:block}\"></ng-container>\n<!--End Blocks Products-->\n\n<!-- CONTACT / NEWSLETTER -->\n<ng-container *ngIf=\"block?.contentType === 'contact_form'\">\n <app-contact-form-news-ec *ngIf=\"isNewsletter(block)\" [block]=\"block?.contactForm\">\n </app-contact-form-news-ec>\n\n <app-block-form-contact-ec *ngIf=\"!isNewsletter(block)\" [block]=\"block?.contactForm\">\n </app-block-form-contact-ec>\n</ng-container>",
|
|
20013
|
+
inputs: ['block'],
|
|
20014
|
+
styles: [""]
|
|
20015
|
+
})
|
|
20016
|
+
], BlockRenderEcComponent);
|
|
20017
|
+
return BlockRenderEcComponent;
|
|
20018
|
+
}(ComponentHelper));
|
|
20019
|
+
|
|
19954
20020
|
// //Component base
|
|
19955
20021
|
var components = [
|
|
19956
20022
|
BlockBannerBoxesEcComponent,
|
|
@@ -19960,6 +20026,7 @@ var components = [
|
|
|
19960
20026
|
ContactFormNewsEcComponent,
|
|
19961
20027
|
BlockProductsEcComponent,
|
|
19962
20028
|
BlocksEcComponent,
|
|
20029
|
+
BlockRenderEcComponent,
|
|
19963
20030
|
CartEcComponent,
|
|
19964
20031
|
DataFormEcComponent,
|
|
19965
20032
|
PaymentEcComponent,
|
|
@@ -20035,7 +20102,7 @@ var components = [
|
|
|
20035
20102
|
SidebarEcComponent
|
|
20036
20103
|
];
|
|
20037
20104
|
|
|
20038
|
-
var __decorate$
|
|
20105
|
+
var __decorate$23 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
20039
20106
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20040
20107
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20041
20108
|
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;
|
|
@@ -20115,16 +20182,16 @@ var AddActionRedirectDirective = /** @class */ (function () {
|
|
|
20115
20182
|
{ type: BlocksService },
|
|
20116
20183
|
{ type: Router }
|
|
20117
20184
|
]; };
|
|
20118
|
-
__decorate$
|
|
20185
|
+
__decorate$23([
|
|
20119
20186
|
Input()
|
|
20120
20187
|
], AddActionRedirectDirective.prototype, "ecAddActionRedirect", null);
|
|
20121
|
-
__decorate$
|
|
20188
|
+
__decorate$23([
|
|
20122
20189
|
Input()
|
|
20123
20190
|
], AddActionRedirectDirective.prototype, "classStrSpacing", null);
|
|
20124
|
-
__decorate$
|
|
20191
|
+
__decorate$23([
|
|
20125
20192
|
Input()
|
|
20126
20193
|
], AddActionRedirectDirective.prototype, "isTransparent", null);
|
|
20127
|
-
AddActionRedirectDirective = __decorate$
|
|
20194
|
+
AddActionRedirectDirective = __decorate$23([
|
|
20128
20195
|
Directive({
|
|
20129
20196
|
selector: "[ecAddActionRedirect]",
|
|
20130
20197
|
}),
|
|
@@ -20133,7 +20200,7 @@ var AddActionRedirectDirective = /** @class */ (function () {
|
|
|
20133
20200
|
return AddActionRedirectDirective;
|
|
20134
20201
|
}());
|
|
20135
20202
|
|
|
20136
|
-
var __decorate$
|
|
20203
|
+
var __decorate$24 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
20137
20204
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20138
20205
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20139
20206
|
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;
|
|
@@ -20198,13 +20265,13 @@ var ProductStockDirective = /** @class */ (function () {
|
|
|
20198
20265
|
{ type: TemplateRef },
|
|
20199
20266
|
{ type: ViewContainerRef }
|
|
20200
20267
|
]; };
|
|
20201
|
-
__decorate$
|
|
20268
|
+
__decorate$24([
|
|
20202
20269
|
Input()
|
|
20203
20270
|
], ProductStockDirective.prototype, "ecProductStockElse", void 0);
|
|
20204
|
-
__decorate$
|
|
20271
|
+
__decorate$24([
|
|
20205
20272
|
Input()
|
|
20206
20273
|
], ProductStockDirective.prototype, "ecProductStock", null);
|
|
20207
|
-
ProductStockDirective = __decorate$
|
|
20274
|
+
ProductStockDirective = __decorate$24([
|
|
20208
20275
|
Directive({
|
|
20209
20276
|
selector: "[ecProductStock]"
|
|
20210
20277
|
})
|
|
@@ -20212,7 +20279,7 @@ var ProductStockDirective = /** @class */ (function () {
|
|
|
20212
20279
|
return ProductStockDirective;
|
|
20213
20280
|
}());
|
|
20214
20281
|
|
|
20215
|
-
var __decorate$
|
|
20282
|
+
var __decorate$25 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
20216
20283
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20217
20284
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20218
20285
|
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;
|
|
@@ -20353,16 +20420,16 @@ var ProductOffDirective = /** @class */ (function () {
|
|
|
20353
20420
|
{ type: ElementRef },
|
|
20354
20421
|
{ type: Renderer2 }
|
|
20355
20422
|
]; };
|
|
20356
|
-
__decorate$
|
|
20423
|
+
__decorate$25([
|
|
20357
20424
|
Input()
|
|
20358
20425
|
], ProductOffDirective.prototype, "ecProductOff", null);
|
|
20359
|
-
__decorate$
|
|
20426
|
+
__decorate$25([
|
|
20360
20427
|
Input()
|
|
20361
20428
|
], ProductOffDirective.prototype, "classStrSpacing", null);
|
|
20362
|
-
__decorate$
|
|
20429
|
+
__decorate$25([
|
|
20363
20430
|
Input()
|
|
20364
20431
|
], ProductOffDirective.prototype, "customMessage", null);
|
|
20365
|
-
ProductOffDirective = __decorate$
|
|
20432
|
+
ProductOffDirective = __decorate$25([
|
|
20366
20433
|
Directive({
|
|
20367
20434
|
selector: "[ecProductOff]",
|
|
20368
20435
|
}),
|
|
@@ -20371,7 +20438,7 @@ var ProductOffDirective = /** @class */ (function () {
|
|
|
20371
20438
|
return ProductOffDirective;
|
|
20372
20439
|
}());
|
|
20373
20440
|
|
|
20374
|
-
var __decorate$
|
|
20441
|
+
var __decorate$26 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
20375
20442
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20376
20443
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20377
20444
|
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;
|
|
@@ -20429,10 +20496,10 @@ var ProductMiniStandardDirective = /** @class */ (function () {
|
|
|
20429
20496
|
{ type: Renderer2 },
|
|
20430
20497
|
{ type: Constants }
|
|
20431
20498
|
]; };
|
|
20432
|
-
__decorate$
|
|
20499
|
+
__decorate$26([
|
|
20433
20500
|
Input()
|
|
20434
20501
|
], ProductMiniStandardDirective.prototype, "ecProductMiniStandard", null);
|
|
20435
|
-
ProductMiniStandardDirective = __decorate$
|
|
20502
|
+
ProductMiniStandardDirective = __decorate$26([
|
|
20436
20503
|
Directive({
|
|
20437
20504
|
selector: '[ecProductMiniStandard]'
|
|
20438
20505
|
})
|
|
@@ -20440,7 +20507,7 @@ var ProductMiniStandardDirective = /** @class */ (function () {
|
|
|
20440
20507
|
return ProductMiniStandardDirective;
|
|
20441
20508
|
}());
|
|
20442
20509
|
|
|
20443
|
-
var __decorate$
|
|
20510
|
+
var __decorate$27 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
20444
20511
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20445
20512
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20446
20513
|
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;
|
|
@@ -20483,13 +20550,13 @@ var AuthWholesalerDirective = /** @class */ (function () {
|
|
|
20483
20550
|
{ type: ViewContainerRef },
|
|
20484
20551
|
{ type: AuthService }
|
|
20485
20552
|
]; };
|
|
20486
|
-
__decorate$
|
|
20553
|
+
__decorate$27([
|
|
20487
20554
|
Input()
|
|
20488
20555
|
], AuthWholesalerDirective.prototype, "ecAuthWholesalerElse", void 0);
|
|
20489
|
-
__decorate$
|
|
20556
|
+
__decorate$27([
|
|
20490
20557
|
Input()
|
|
20491
20558
|
], AuthWholesalerDirective.prototype, "ecAuthWholesaler", null);
|
|
20492
|
-
AuthWholesalerDirective = __decorate$
|
|
20559
|
+
AuthWholesalerDirective = __decorate$27([
|
|
20493
20560
|
Directive({
|
|
20494
20561
|
selector: "[ecAuthWholesaler]"
|
|
20495
20562
|
})
|
|
@@ -20497,7 +20564,7 @@ var AuthWholesalerDirective = /** @class */ (function () {
|
|
|
20497
20564
|
return AuthWholesalerDirective;
|
|
20498
20565
|
}());
|
|
20499
20566
|
|
|
20500
|
-
var __decorate$
|
|
20567
|
+
var __decorate$28 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
20501
20568
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20502
20569
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20503
20570
|
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;
|
|
@@ -20519,10 +20586,10 @@ var ReloadViewDirective = /** @class */ (function () {
|
|
|
20519
20586
|
{ type: TemplateRef },
|
|
20520
20587
|
{ type: ViewContainerRef }
|
|
20521
20588
|
]; };
|
|
20522
|
-
__decorate$
|
|
20589
|
+
__decorate$28([
|
|
20523
20590
|
Input()
|
|
20524
20591
|
], ReloadViewDirective.prototype, "ecReloadView", void 0);
|
|
20525
|
-
ReloadViewDirective = __decorate$
|
|
20592
|
+
ReloadViewDirective = __decorate$28([
|
|
20526
20593
|
Directive({
|
|
20527
20594
|
selector: '[ecReloadView]'
|
|
20528
20595
|
})
|
|
@@ -20545,7 +20612,7 @@ var directives = [
|
|
|
20545
20612
|
ReloadViewDirective,
|
|
20546
20613
|
];
|
|
20547
20614
|
|
|
20548
|
-
var __decorate$
|
|
20615
|
+
var __decorate$29 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
20549
20616
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20550
20617
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20551
20618
|
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;
|
|
@@ -20634,7 +20701,7 @@ var ecCurrencySymbolPipe = /** @class */ (function () {
|
|
|
20634
20701
|
{ type: CurrencyService },
|
|
20635
20702
|
{ type: Injector }
|
|
20636
20703
|
]; };
|
|
20637
|
-
ecCurrencySymbolPipe = __decorate$
|
|
20704
|
+
ecCurrencySymbolPipe = __decorate$29([
|
|
20638
20705
|
Pipe({
|
|
20639
20706
|
name: 'ecCurrencySymbol',
|
|
20640
20707
|
pure: false
|
|
@@ -20643,7 +20710,7 @@ var ecCurrencySymbolPipe = /** @class */ (function () {
|
|
|
20643
20710
|
return ecCurrencySymbolPipe;
|
|
20644
20711
|
}());
|
|
20645
20712
|
|
|
20646
|
-
var __decorate$
|
|
20713
|
+
var __decorate$2a = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
20647
20714
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20648
20715
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20649
20716
|
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;
|
|
@@ -20659,7 +20726,7 @@ var EcSanitizerHtmlPipe = /** @class */ (function () {
|
|
|
20659
20726
|
EcSanitizerHtmlPipe.ctorParameters = function () { return [
|
|
20660
20727
|
{ type: DomSanitizer }
|
|
20661
20728
|
]; };
|
|
20662
|
-
EcSanitizerHtmlPipe = __decorate$
|
|
20729
|
+
EcSanitizerHtmlPipe = __decorate$2a([
|
|
20663
20730
|
Pipe({
|
|
20664
20731
|
name: 'ecSanitizerHtml'
|
|
20665
20732
|
})
|
|
@@ -20667,7 +20734,7 @@ var EcSanitizerHtmlPipe = /** @class */ (function () {
|
|
|
20667
20734
|
return EcSanitizerHtmlPipe;
|
|
20668
20735
|
}());
|
|
20669
20736
|
|
|
20670
|
-
var __decorate$
|
|
20737
|
+
var __decorate$2b = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
20671
20738
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20672
20739
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20673
20740
|
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;
|
|
@@ -20683,7 +20750,7 @@ var EcSanitizerUrlPipe = /** @class */ (function () {
|
|
|
20683
20750
|
EcSanitizerUrlPipe.ctorParameters = function () { return [
|
|
20684
20751
|
{ type: DomSanitizer }
|
|
20685
20752
|
]; };
|
|
20686
|
-
EcSanitizerUrlPipe = __decorate$
|
|
20753
|
+
EcSanitizerUrlPipe = __decorate$2b([
|
|
20687
20754
|
Pipe({
|
|
20688
20755
|
name: 'ecSanitizerUrl'
|
|
20689
20756
|
})
|
|
@@ -20698,7 +20765,7 @@ var pipes = [
|
|
|
20698
20765
|
EcSanitizerUrlPipe
|
|
20699
20766
|
];
|
|
20700
20767
|
|
|
20701
|
-
var __decorate$
|
|
20768
|
+
var __decorate$2c = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
20702
20769
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20703
20770
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20704
20771
|
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;
|
|
@@ -20785,7 +20852,7 @@ var NgEasycommerceModule = /** @class */ (function () {
|
|
|
20785
20852
|
};
|
|
20786
20853
|
};
|
|
20787
20854
|
var NgEasycommerceModule_1;
|
|
20788
|
-
NgEasycommerceModule = NgEasycommerceModule_1 = __decorate$
|
|
20855
|
+
NgEasycommerceModule = NgEasycommerceModule_1 = __decorate$2c([
|
|
20789
20856
|
NgModule({
|
|
20790
20857
|
exports: [
|
|
20791
20858
|
OrderByPipe,
|
|
@@ -20823,7 +20890,7 @@ var NgEasycommerceModule = /** @class */ (function () {
|
|
|
20823
20890
|
return NgEasycommerceModule;
|
|
20824
20891
|
}());
|
|
20825
20892
|
|
|
20826
|
-
var __decorate$
|
|
20893
|
+
var __decorate$2d = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
20827
20894
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20828
20895
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20829
20896
|
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;
|
|
@@ -20871,7 +20938,7 @@ var GiftCardService = /** @class */ (function () {
|
|
|
20871
20938
|
{ type: ConnectionService }
|
|
20872
20939
|
]; };
|
|
20873
20940
|
GiftCardService$1.ɵprov = ɵɵdefineInjectable({ factory: function GiftCardService_Factory() { return new GiftCardService(ɵɵinject(Constants), ɵɵinject(CartService), ɵɵinject(ConnectionService)); }, token: GiftCardService, providedIn: "root" });
|
|
20874
|
-
GiftCardService$1 = __decorate$
|
|
20941
|
+
GiftCardService$1 = __decorate$2d([
|
|
20875
20942
|
Injectable({
|
|
20876
20943
|
providedIn: 'root'
|
|
20877
20944
|
})
|
|
@@ -20879,7 +20946,7 @@ var GiftCardService = /** @class */ (function () {
|
|
|
20879
20946
|
return GiftCardService$1;
|
|
20880
20947
|
}());
|
|
20881
20948
|
|
|
20882
|
-
var __decorate$
|
|
20949
|
+
var __decorate$2e = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
20883
20950
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20884
20951
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20885
20952
|
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;
|
|
@@ -20935,7 +21002,7 @@ var WishlistService = /** @class */ (function () {
|
|
|
20935
21002
|
{ type: ToastrService }
|
|
20936
21003
|
]; };
|
|
20937
21004
|
WishlistService$1.ɵprov = ɵɵdefineInjectable({ factory: function WishlistService_Factory() { return new WishlistService(ɵɵinject(ToastrService)); }, token: WishlistService, providedIn: "root" });
|
|
20938
|
-
WishlistService$1 = __decorate$
|
|
21005
|
+
WishlistService$1 = __decorate$2e([
|
|
20939
21006
|
Injectable({
|
|
20940
21007
|
providedIn: 'root'
|
|
20941
21008
|
})
|
|
@@ -20943,7 +21010,7 @@ var WishlistService = /** @class */ (function () {
|
|
|
20943
21010
|
return WishlistService$1;
|
|
20944
21011
|
}());
|
|
20945
21012
|
|
|
20946
|
-
var __decorate$
|
|
21013
|
+
var __decorate$2f = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
20947
21014
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20948
21015
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20949
21016
|
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;
|
|
@@ -20978,7 +21045,7 @@ var StandardReuseStrategy = /** @class */ (function () {
|
|
|
20978
21045
|
StandardReuseStrategy.ctorParameters = function () { return [
|
|
20979
21046
|
{ type: undefined, decorators: [{ type: Inject, args: ['env',] }] }
|
|
20980
21047
|
]; };
|
|
20981
|
-
StandardReuseStrategy = __decorate$
|
|
21048
|
+
StandardReuseStrategy = __decorate$2f([
|
|
20982
21049
|
Injectable(),
|
|
20983
21050
|
__param$e(0, Inject('env'))
|
|
20984
21051
|
], StandardReuseStrategy);
|
|
@@ -20993,5 +21060,5 @@ var StandardReuseStrategy = /** @class */ (function () {
|
|
|
20993
21060
|
* Generated bundle index. Do not edit.
|
|
20994
21061
|
*/
|
|
20995
21062
|
|
|
20996
|
-
export { AbleBuyerGuardService, AccountEcComponent, AddActionRedirectDirective, AddressingService, AnalyticsService, AttributesFilter, AuthEcComponent, AuthGuardService, AuthInterceptor, AuthService, AuthWholesalerDirective, BambooEcComponent, BancardEcComponent, BancardRedirectEcComponent, BannerService, BlockBannerBoxesEcComponent, BlockBannerFullEcComponent, BlockFormContactEcComponent, BlockHtmlEcComponent, BlockProductsEcComponent, BlocksEcComponent, BlocksService, BrowserWindowRef, BuildYourEcComponent, CaptchaService, CartEcComponent, CartLoadEcComponent, CartService, CategoryFilter, CecaRedirectEcComponent, ChannelConfigService, CheckoutEcComponent, CheckoutErrorComponent, CheckoutReadyGuard, CheckoutService, CollectionEcComponent, ConcatenatedAssociationsService, ConfirmAccountEcComponent, ConnectionService, Constants, ContactFormNewsEcComponent, CookiesEcComponent, CouponEcComponent, CurrencyService, DataFormEcComponent, DataformService, DecidirEcComponent, DetailCheckoutBlockEcComponent, DynamicsFilter, EcSanitizerHtmlPipe, EcSanitizerUrlPipe, FaqsContentEcComponent, Filter, FilterOptionTypes, FiltersEcComponent, FiltersService, FiltersTopEcComponent, FooterEcComponent, FooterService, ForgotPasswordEcComponent, GiftCardService, HeaderEcComponent, HomeEcComponent, LoadingFullEcComponent, LoadingInlineEcComponent, LoadingSectionEcComponent, LoggedInGuard, LoginEcComponent, LoginFormEcComponent, MPCreditEcComponent, MobbexEcComponent, ModalConfigEcComponent, ModalCookiesEcComponent, MpRedirectEcComponent, MultipleItemsToCartEcComponent, NgEasycommerceModule, OptionsService, OrderEcComponent, OrdersEcComponent, OrdersService, PaginationService, ParametersService, ParamsContext, PasswordResetEcComponent, PaymentEcComponent, PaymentService, PaypalExpressEcComponent, PriceEcComponent, ProductDetailEcComponent, ProductDetailService, ProductEcComponent, ProductFoundEcComponent, ProductMiniStandardDirective, ProductStockDirective, ProductsService, RatingEcComponent, RedSysProEcComponent, RedSysRedirectEcComponent, RedSysRedirectOutEcComponent, RedsysCatchEcComponent, RegisterFormEcComponent, RegisterWholesalerFormEcComponent, RelatedProductsEcComponent, ReviewsEcComponent, ReviewsFormEcComponent, ReviewsService, SectionContainerEcComponent, SelectChannelEcComponent, ShareBlockEcComponent, ShipmentEcComponent, ShipmentService, SidebarCookiesEcComponent, SidebarEcComponent, SortFilter, StandardReuseStrategy, Step, StoresEcComponent, StoresService, SuccessEcComponent, ToastCookiesEcComponent, ToastService, User, UserRoleGuardService, UtilsService, VariantsEcComponent, WINDOW, WINDOW_PROVIDERS, WindowRef, WishlistService, browserWindowProvider, ecCurrencySymbolPipe,
|
|
21063
|
+
export { AbleBuyerGuardService, AccountEcComponent, AddActionRedirectDirective, AddressingService, AnalyticsService, AttributesFilter, AuthEcComponent, AuthGuardService, AuthInterceptor, AuthService, AuthWholesalerDirective, BambooEcComponent, BancardEcComponent, BancardRedirectEcComponent, BannerService, BlockBannerBoxesEcComponent, BlockBannerFullEcComponent, BlockFormContactEcComponent, BlockHtmlEcComponent, BlockProductsEcComponent, BlockRenderEcComponent, BlocksEcComponent, BlocksService, BrowserWindowRef, BuildYourEcComponent, CaptchaService, CartEcComponent, CartLoadEcComponent, CartService, CategoryFilter, CecaRedirectEcComponent, ChannelConfigService, CheckoutEcComponent, CheckoutErrorComponent, CheckoutReadyGuard, CheckoutService, CollectionEcComponent, ConcatenatedAssociationsService, ConfirmAccountEcComponent, ConnectionService, Constants, ContactFormNewsEcComponent, CookiesEcComponent, CouponEcComponent, CurrencyService, DataFormEcComponent, DataformService, DecidirEcComponent, DetailCheckoutBlockEcComponent, DynamicsFilter, EcSanitizerHtmlPipe, EcSanitizerUrlPipe, FaqsContentEcComponent, Filter, FilterOptionTypes, FiltersEcComponent, FiltersService, FiltersTopEcComponent, FooterEcComponent, FooterService, ForgotPasswordEcComponent, GiftCardService, HeaderEcComponent, HomeEcComponent, LoadingFullEcComponent, LoadingInlineEcComponent, LoadingSectionEcComponent, LoggedInGuard, LoginEcComponent, LoginFormEcComponent, MPCreditEcComponent, MobbexEcComponent, ModalConfigEcComponent, ModalCookiesEcComponent, MpRedirectEcComponent, MultipleItemsToCartEcComponent, NgEasycommerceModule, OptionsService, OrderEcComponent, OrdersEcComponent, OrdersService, PaginationService, ParametersService, ParamsContext, PasswordResetEcComponent, PaymentEcComponent, PaymentService, PaypalExpressEcComponent, PriceEcComponent, ProductDetailEcComponent, ProductDetailService, ProductEcComponent, ProductFoundEcComponent, ProductMiniStandardDirective, ProductStockDirective, ProductsService, RatingEcComponent, RedSysProEcComponent, RedSysRedirectEcComponent, RedSysRedirectOutEcComponent, RedsysCatchEcComponent, RegisterFormEcComponent, RegisterWholesalerFormEcComponent, RelatedProductsEcComponent, ReviewsEcComponent, ReviewsFormEcComponent, ReviewsService, SectionContainerEcComponent, SelectChannelEcComponent, ShareBlockEcComponent, ShipmentEcComponent, ShipmentService, SidebarCookiesEcComponent, SidebarEcComponent, SortFilter, StandardReuseStrategy, Step, StoresEcComponent, StoresService, SuccessEcComponent, ToastCookiesEcComponent, ToastService, User, UserRoleGuardService, UtilsService, VariantsEcComponent, WINDOW, WINDOW_PROVIDERS, WindowRef, WishlistService, browserWindowProvider, ecCurrencySymbolPipe, firstBlockUrl, pickFooterForDevice, toHref, toPageHref, toPageText, toText, windowFactory, windowProvider, OrderByPipe as ɵa, components as ɵb, pipes as ɵba, OptionsOfProductListDataReceiverService as ɵbb, PaymentUtils as ɵbc, CustomerInterceptor as ɵbd, SellerDashboardContainerEcComponent as ɵc, MagnizoomComponent as ɵd, RecaptchaEcComponent as ɵe, ComparedProductsEcComponent as ɵf, StepEcComponent as ɵg, CulqiEcComponent as ɵh, BancardCatastroEcComponent as ɵi, PlaceToPayEcComponent as ɵj, ComponentHelper as ɵk, BlocksRepositoryService as ɵl, FacebookPixelService as ɵm, GoogleAnalyticsService as ɵn, GTMService as ɵo, MetricoolPixelService as ɵp, DopplerService as ɵq, OrderUtilityService as ɵr, StepService as ɵs, ErrorHandlerService as ɵt, IpService as ɵu, ShipmentDataTransformer as ɵv, CookiesService as ɵw, directives as ɵx, ProductOffDirective as ɵy, ReloadViewDirective as ɵz };
|
|
20997
21064
|
//# sourceMappingURL=ng-easycommerce.js.map
|