ctt-babylon 0.27.7 → 0.27.9
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/esm2022/lib/components/core/babylon-booking-widget/babylon-booking-widget.component.mjs +14 -5
- package/esm2022/lib/components/core/babylon-top-slider/babylon-top-slider.component.mjs +7 -3
- package/fesm2022/ctt-babylon.mjs +19 -6
- package/fesm2022/ctt-babylon.mjs.map +1 -1
- package/lib/components/core/babylon-top-slider/babylon-top-slider.component.d.ts +3 -1
- package/package.json +1 -1
package/fesm2022/ctt-babylon.mjs
CHANGED
|
@@ -9006,8 +9006,17 @@ class BabylonBookingWidgetComponent {
|
|
|
9006
9006
|
marketingData['origin'] = 'ask_organic';
|
|
9007
9007
|
else if (referrer.includes('naver.'))
|
|
9008
9008
|
marketingData['origin'] = 'naver_organic';
|
|
9009
|
-
else
|
|
9010
|
-
|
|
9009
|
+
else {
|
|
9010
|
+
// Referido no publicitario: incluimos el dominio de origen (ej. referral_tripadvisor.es)
|
|
9011
|
+
let refDomain = 'other';
|
|
9012
|
+
try {
|
|
9013
|
+
refDomain =
|
|
9014
|
+
new URL(referrer).hostname.replace(/^www\./, '') ||
|
|
9015
|
+
'other';
|
|
9016
|
+
}
|
|
9017
|
+
catch (e) { }
|
|
9018
|
+
marketingData['origin'] = `referral_${refDomain}`;
|
|
9019
|
+
}
|
|
9011
9020
|
}
|
|
9012
9021
|
}
|
|
9013
9022
|
// --- CAPA 5: RECUPERAR DE SESIÓN (Navegación interna en tu web) ---
|
|
@@ -9035,10 +9044,10 @@ class BabylonBookingWidgetComponent {
|
|
|
9035
9044
|
marketingData['gbraid'] ||
|
|
9036
9045
|
marketingData['dclid'] ||
|
|
9037
9046
|
marketingData['GCL_AW_P']) {
|
|
9038
|
-
marketingData['origin'] = '
|
|
9047
|
+
marketingData['origin'] = 'google_cpc';
|
|
9039
9048
|
}
|
|
9040
9049
|
else if (marketingData['fbclid']) {
|
|
9041
|
-
marketingData['origin'] = '
|
|
9050
|
+
marketingData['origin'] = 'social_ads';
|
|
9042
9051
|
}
|
|
9043
9052
|
else if (marketingData['ttclid']) {
|
|
9044
9053
|
marketingData['origin'] = 'tiktok_ads';
|
|
@@ -25282,6 +25291,8 @@ class BabylonTopSliderComponent {
|
|
|
25282
25291
|
this.changeDetectorRef.markForCheck();
|
|
25283
25292
|
}
|
|
25284
25293
|
constructor() {
|
|
25294
|
+
/** Si es true, todos los textos de las slides (pretítulo, título, subtítulo) se pintan como <p>. */
|
|
25295
|
+
this.onlyP = false;
|
|
25285
25296
|
this.btnClick = new EventEmitter();
|
|
25286
25297
|
this.modalClick = new EventEmitter();
|
|
25287
25298
|
this.mobile = false;
|
|
@@ -25464,7 +25475,7 @@ class BabylonTopSliderComponent {
|
|
|
25464
25475
|
this.changeDetectorRef.markForCheck();
|
|
25465
25476
|
}
|
|
25466
25477
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: BabylonTopSliderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
25467
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.12", type: BabylonTopSliderComponent, isStandalone: true, selector: "lib-babylon-top-slider", inputs: { items: "items", buttons: "buttons", logo: "logo", itemsMobile: "itemsMobile", logoTitle: "logoTitle", tags: "tags", textColors: "textColors", videoData: "videoData", mouseup: "mouseup", autoplayDelay: "autoplayDelay" }, outputs: { btnClick: "btnClick", modalClick: "modalClick" }, usesOnChanges: true, ngImport: i0, template: "<section class=\"babylon__topslider margin-main-botom\" babylonSwiperSlider>\n <div\n [class]=\"\n videoData?.src && !hideVideo\n ? 'cs_hero cs_style_4 cs_primary_bg cs_bg_filed text-center position-relative youtube-bg'\n : 'cs_parallax_slider loading overflow-hidden position-relative'\n \"\n [attr.data-autoplay-delay]=\"autoplayDelay ?? null\"\n >\n @if (videoData?.src && !hideVideo) {\n @if (isYTVideo) {\n <div id=\"bgndVideo\" class=\"player\"></div>\n }\n @if (isVimeo) {\n <div class=\"vimeo-wrapper\">\n <iframe\n [src]=\"vimeoUrl | safeUrl\"\n frameborder=\"0\"\n allow=\"autoplay; fullscreen\"\n ></iframe>\n </div>\n }\n } @else if (actualItems.length) {\n <div class=\"swiper-wrapper\">\n @for (item of actualItems; track item) {\n <div class=\"swiper-slide\">\n <div\n class=\"cs_hero cs_style_1 cs_center text-center position-relative\"\n >\n <figure\n class=\"cs_swiper_parallax_bg cs_hero_bg cs_bg_filed h-100 w-100 position-absolute top-0 start-0 mb-0\"\n [attr.data-src]=\"\n item?.img?.src ||\n 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7'\n \"\n [style.background-image]=\"\n item?.img?.src\n ? 'url(' + item.img?.src + ')'\n : 'url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)'\n \"\n [dataBackground]=\"item?.img?.src || ''\"\n >\n @if (item?.img?.src) {\n <img\n [attr.src]=\"\n item.img?.src ||\n 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7'\n \"\n [attr.alt]=\"\n item.img?.alt ||\n item.img?.title ||\n 'Imagen de secci\u00F3n'\n \"\n style=\"display: none\"\n />\n }\n </figure>\n <div\n class=\"container position-relative cs_zindex_3\"\n >\n <div class=\"cs_hero_text\">\n @if (item.pretitle) {\n <lib-babylon-dynamic-heading\n [tag]=\"tags?.title || 'p'\"\n cssClass=\"pretitle_carrusel\"\n [content]=\"item.pretitle\"\n [color]=\"textColors?.title\"\n ></lib-babylon-dynamic-heading>\n }\n @if (logoTitle && logoTitle.src) {\n <div class=\"logo_title\">\n <img\n [src]=\"logoTitle.src\"\n [alt]=\"\n logoTitle.alt ||\n 'Logo de secci\u00F3n'\n \"\n loading=\"lazy\"\n />\n </div>\n } @else {\n @if (item.title) {\n <lib-babylon-dynamic-heading\n [tag]=\"\n tags && tags.title\n ? tags.title\n : $index == 0\n ? 'h1'\n : 'h2'\n \"\n cssClass=\"title_carrusel\"\n [content]=\"item.title\"\n [color]=\"textColors?.title\"\n ></lib-babylon-dynamic-heading>\n }\n }\n @if (item.subtitle) {\n <lib-babylon-dynamic-heading\n [tag]=\"tags?.title || 'p'\"\n cssClass=\"pretitle_carrusel\"\n [content]=\"item.subtitle\"\n [color]=\"textColors?.title\"\n ></lib-babylon-dynamic-heading>\n }\n @if (item?.buttons?.length) {\n @for (\n button of item?.buttons;\n track $index\n ) {\n <div\n class=\"btns__box align--center\"\n >\n <a\n [linkType]=\"\n button?.linkType\n \"\n [href]=\"button?.url ?? '#'\"\n [modalClick]=\"modalClick\"\n class=\"btn btn_primary btn--light\"\n >\n <b>{{\n button?.label ?? ''\n }}</b>\n <span\n class=\"babylon-arrow-right-big\"\n ></span>\n </a>\n </div>\n }\n }\n </div>\n </div>\n </div>\n </div>\n }\n </div>\n }\n </div>\n @if (actualItems && actualItems.length > 1 && !videoData?.src) {\n <div class=\"cs_slider_navigation cs_white_color\">\n <div class=\"cs_swiper_button_prev\">\n <span class=\"babylon-arrow-left-big\"></span>\n </div>\n <div class=\"cs_swiper_button_next\">\n <span class=\"babylon-arrow-right-big\"></span>\n </div>\n </div>\n }\n @if (logo) {\n <img\n [src]=\"logo.src\"\n [alt]=\"logo.alt\"\n class=\"top-slider-logo\"\n loading=\"lazy\"\n />\n }\n <div class=\"mouse_wp\">\n <button\n type=\"button\"\n class=\"cs_down_btn_2\"\n [attr.aria-label]=\"mouseup ?? 'Desplazarse a la primera secci\u00F3n'\"\n (click)=\"scrollToSection($event, 'first_section')\"\n >\n <div class=\"mouse\"></div>\n </button>\n </div>\n</section>\n<div id=\"first_section\"></div>\n", styles: [".cs_hero.cs_style_1{height:100lvh;padding:100px 0 50px;max-height:100lvh}@media (max-width: 1024px){.cs_hero.cs_style_1{padding:100px 0;height:100vh;max-height:initial}}@media (max-width: 767px){.cs_hero.cs_style_1{height:calc(100dvh - 60px);padding:0;min-height:auto}}@media (max-width: 539px){.cs_hero.cs_style_1{min-height:calc(100dvh - 60px);height:calc(100dvh - 60px)}.cs_hero.cs_style_1 .cs_hero_title br{display:none}}.cs_bg_filed{transform:translate(0)!important}.babylon__topslider{position:relative}.babylon__topslider figure:before{content:\"\";position:absolute;left:0;top:0;width:100%;height:100%;background:#00000030}.babylon__topslider ::ng-deep #wrapper_bgndVideo{aspect-ratio:16/9}.babylon__topslider ::ng-deep #wrapper_bgndVideo #iframe_bgndVideo{position:absolute;z-index:0!important;overflow:hidden!important;opacity:1!important;-webkit-user-select:none!important;user-select:none!important;max-width:initial!important;width:100%!important;height:100%!important;margin-top:0!important;margin-left:0!important}@media (min-width: 1280px){.babylon__topslider ::ng-deep #wrapper_bgndVideo #iframe_bgndVideo{left:0!important}}@media (max-width: 1279px){.babylon__topslider ::ng-deep #wrapper_bgndVideo #iframe_bgndVideo{left:auto!important;right:calc(100% - 100vw)!important}}.babylon__topslider .youtube-bg{position:relative;height:100lvh;max-height:100lvh;min-height:520px;overflow:hidden}.babylon__topslider .vimeo-wrapper{position:absolute;z-index:0;width:100%;height:100%;left:0;top:0;overflow:hidden;pointer-events:none;aspect-ratio:16/9}.babylon__topslider .vimeo-wrapper iframe{min-height:100vw;min-width:200vh;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border:none}.cs_down_btn_2{position:absolute;height:35px;width:20px;border-radius:10px;border:2px solid var(--cl_title-light);z-index:1;bottom:14%;left:50%;margin-left:-10px;background:none}.cs_down_btn_2:before{content:\"\";height:5px;width:5px;border-radius:50%;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background-color:var(--cl_title-light);animation:UpAndDown 3s infinite}@keyframes UpAndDown{0%,to{top:30%}50%{top:70%;opacity:.5;transform:translate(-50%,-50%) scale(.8)}}.top-slider-logo{position:absolute;top:84%;transform:translateY(-50%);right:20px;width:80px;height:auto;z-index:3}@media (min-width: 768px){.top-slider-logo{top:50%;right:60px;width:100px}}@media (min-width: 768px){::ng-deep body.header_sticky .cs_hero.cs_style_1{max-height:calc(100lvh - 60px)}}@media (min-width: 1025px){::ng-deep body.header_sticky .cs_hero.cs_style_1{max-height:calc(100lvh - 160px)}}@media (min-width: 1280px){::ng-deep body.header_sticky .cs_hero.cs_style_1{max-height:calc(100lvh - 180px)}}.babylon__topslidervideo{position:relative}.cs_hero.cs_style_4{height:100vh;max-height:100lvh;display:flex;flex-direction:column;padding:130px 0 0}@media (max-width: 1279px){.cs_hero.cs_style_4{height:100lvh;padding:130px 0 150px}.cs_hero.cs_style_4 .cs_form_wrap{margin-bottom:60px}}@media (max-width: 1024px){.cs_hero.cs_style_4{padding:130px 0 80px}}.cs_hero.cs_style_4 .cs_hero_text_wrap{flex:1}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: BabylonDataBackgroundDirective, selector: "[dataBackground]", inputs: ["dataBackground"] }, { kind: "directive", type: BabylonSwiperSliderDirective, selector: "[babylonSwiperSlider]" }, { kind: "directive", type: BabylonLinkTypeDirective, selector: "[linkType]", inputs: ["linkType", "href", "modalClick", "clickPopup", "disablePointerNone"], outputs: ["anchorClicked"] }, { kind: "component", type: BabylonDynamicHeadingComponent, selector: "lib-babylon-dynamic-heading", inputs: ["useInnerHtml", "tag", "wrapper", "cssClass", "content", "color"] }, { kind: "pipe", type: SafeUrlPipe, name: "safeUrl" }], changeDetection: i0.ChangeDetectionStrategy.Default }); }
|
|
25478
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.12", type: BabylonTopSliderComponent, isStandalone: true, selector: "lib-babylon-top-slider", inputs: { items: "items", buttons: "buttons", logo: "logo", itemsMobile: "itemsMobile", logoTitle: "logoTitle", tags: "tags", textColors: "textColors", videoData: "videoData", mouseup: "mouseup", autoplayDelay: "autoplayDelay", onlyP: "onlyP" }, outputs: { btnClick: "btnClick", modalClick: "modalClick" }, usesOnChanges: true, ngImport: i0, template: "<section class=\"babylon__topslider margin-main-botom\" babylonSwiperSlider>\n <div\n [class]=\"\n videoData?.src && !hideVideo\n ? 'cs_hero cs_style_4 cs_primary_bg cs_bg_filed text-center position-relative youtube-bg'\n : 'cs_parallax_slider loading overflow-hidden position-relative'\n \"\n [attr.data-autoplay-delay]=\"autoplayDelay ?? null\"\n >\n @if (videoData?.src && !hideVideo) {\n @if (isYTVideo) {\n <div id=\"bgndVideo\" class=\"player\"></div>\n }\n @if (isVimeo) {\n <div class=\"vimeo-wrapper\">\n <iframe\n [src]=\"vimeoUrl | safeUrl\"\n frameborder=\"0\"\n allow=\"autoplay; fullscreen\"\n ></iframe>\n </div>\n }\n } @else if (actualItems.length) {\n <div class=\"swiper-wrapper\">\n @for (item of actualItems; track item) {\n <div class=\"swiper-slide\">\n <div\n class=\"cs_hero cs_style_1 cs_center text-center position-relative\"\n >\n <figure\n class=\"cs_swiper_parallax_bg cs_hero_bg cs_bg_filed h-100 w-100 position-absolute top-0 start-0 mb-0\"\n [attr.data-src]=\"\n item?.img?.src ||\n 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7'\n \"\n [style.background-image]=\"\n item?.img?.src\n ? 'url(' + item.img?.src + ')'\n : 'url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)'\n \"\n [dataBackground]=\"item?.img?.src || ''\"\n >\n @if (item?.img?.src) {\n <img\n [attr.src]=\"\n item.img?.src ||\n 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7'\n \"\n [attr.alt]=\"\n item.img?.alt ||\n item.img?.title ||\n 'Imagen de secci\u00F3n'\n \"\n style=\"display: none\"\n />\n }\n </figure>\n <div\n class=\"container position-relative cs_zindex_3\"\n >\n <div class=\"cs_hero_text\">\n @if (item.pretitle) {\n <lib-babylon-dynamic-heading\n [tag]=\"\n onlyP ? 'p' : tags?.title || 'p'\n \"\n cssClass=\"pretitle_carrusel\"\n [content]=\"item.pretitle\"\n [color]=\"textColors?.title\"\n ></lib-babylon-dynamic-heading>\n }\n @if (logoTitle && logoTitle.src) {\n <div class=\"logo_title\">\n <img\n [src]=\"logoTitle.src\"\n [alt]=\"\n logoTitle.alt ||\n 'Logo de secci\u00F3n'\n \"\n loading=\"lazy\"\n />\n </div>\n } @else {\n @if (item.title) {\n <lib-babylon-dynamic-heading\n [tag]=\"\n onlyP\n ? 'p'\n : tags && tags.title\n ? tags.title\n : $index == 0\n ? 'h1'\n : 'h2'\n \"\n cssClass=\"title_carrusel\"\n [content]=\"item.title\"\n [color]=\"textColors?.title\"\n ></lib-babylon-dynamic-heading>\n }\n }\n @if (item.subtitle) {\n <lib-babylon-dynamic-heading\n [tag]=\"\n onlyP ? 'p' : tags?.title || 'p'\n \"\n cssClass=\"pretitle_carrusel\"\n [content]=\"item.subtitle\"\n [color]=\"textColors?.title\"\n ></lib-babylon-dynamic-heading>\n }\n @if (item?.buttons?.length) {\n @for (\n button of item?.buttons;\n track $index\n ) {\n <div\n class=\"btns__box align--center\"\n >\n <a\n [linkType]=\"\n button?.linkType\n \"\n [href]=\"button?.url ?? '#'\"\n [modalClick]=\"modalClick\"\n class=\"btn btn_primary btn--light\"\n >\n <b>{{\n button?.label ?? ''\n }}</b>\n <span\n class=\"babylon-arrow-right-big\"\n ></span>\n </a>\n </div>\n }\n }\n </div>\n </div>\n </div>\n </div>\n }\n </div>\n }\n </div>\n @if (actualItems && actualItems.length > 1 && !videoData?.src) {\n <div class=\"cs_slider_navigation cs_white_color\">\n <div class=\"cs_swiper_button_prev\">\n <span class=\"babylon-arrow-left-big\"></span>\n </div>\n <div class=\"cs_swiper_button_next\">\n <span class=\"babylon-arrow-right-big\"></span>\n </div>\n </div>\n }\n @if (logo) {\n <img\n [src]=\"logo.src\"\n [alt]=\"logo.alt\"\n class=\"top-slider-logo\"\n loading=\"lazy\"\n />\n }\n <div class=\"mouse_wp\">\n <button\n type=\"button\"\n class=\"cs_down_btn_2\"\n [attr.aria-label]=\"mouseup ?? 'Desplazarse a la primera secci\u00F3n'\"\n (click)=\"scrollToSection($event, 'first_section')\"\n >\n <div class=\"mouse\"></div>\n </button>\n </div>\n</section>\n<div id=\"first_section\"></div>\n", styles: [".cs_hero.cs_style_1{height:100lvh;padding:100px 0 50px;max-height:100lvh}@media (max-width: 1024px){.cs_hero.cs_style_1{padding:100px 0;height:100vh;max-height:initial}}@media (max-width: 767px){.cs_hero.cs_style_1{height:calc(100dvh - 60px);padding:0;min-height:auto}}@media (max-width: 539px){.cs_hero.cs_style_1{min-height:calc(100dvh - 60px);height:calc(100dvh - 60px)}.cs_hero.cs_style_1 .cs_hero_title br{display:none}}.cs_bg_filed{transform:translate(0)!important}.babylon__topslider{position:relative}.babylon__topslider figure:before{content:\"\";position:absolute;left:0;top:0;width:100%;height:100%;background:#00000030}.babylon__topslider ::ng-deep #wrapper_bgndVideo{aspect-ratio:16/9}.babylon__topslider ::ng-deep #wrapper_bgndVideo #iframe_bgndVideo{position:absolute;z-index:0!important;overflow:hidden!important;opacity:1!important;-webkit-user-select:none!important;user-select:none!important;max-width:initial!important;width:100%!important;height:100%!important;margin-top:0!important;margin-left:0!important}@media (min-width: 1280px){.babylon__topslider ::ng-deep #wrapper_bgndVideo #iframe_bgndVideo{left:0!important}}@media (max-width: 1279px){.babylon__topslider ::ng-deep #wrapper_bgndVideo #iframe_bgndVideo{left:auto!important;right:calc(100% - 100vw)!important}}.babylon__topslider .youtube-bg{position:relative;height:100lvh;max-height:100lvh;min-height:520px;overflow:hidden}.babylon__topslider .vimeo-wrapper{position:absolute;z-index:0;width:100%;height:100%;left:0;top:0;overflow:hidden;pointer-events:none;aspect-ratio:16/9}.babylon__topslider .vimeo-wrapper iframe{min-height:100vw;min-width:200vh;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border:none}.cs_down_btn_2{position:absolute;height:35px;width:20px;border-radius:10px;border:2px solid var(--cl_title-light);z-index:1;bottom:14%;left:50%;margin-left:-10px;background:none}.cs_down_btn_2:before{content:\"\";height:5px;width:5px;border-radius:50%;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background-color:var(--cl_title-light);animation:UpAndDown 3s infinite}@keyframes UpAndDown{0%,to{top:30%}50%{top:70%;opacity:.5;transform:translate(-50%,-50%) scale(.8)}}.top-slider-logo{position:absolute;top:84%;transform:translateY(-50%);right:20px;width:80px;height:auto;z-index:3}@media (min-width: 768px){.top-slider-logo{top:50%;right:60px;width:100px}}@media (min-width: 768px){::ng-deep body.header_sticky .cs_hero.cs_style_1{max-height:calc(100lvh - 60px)}}@media (min-width: 1025px){::ng-deep body.header_sticky .cs_hero.cs_style_1{max-height:calc(100lvh - 160px)}}@media (min-width: 1280px){::ng-deep body.header_sticky .cs_hero.cs_style_1{max-height:calc(100lvh - 180px)}}.babylon__topslidervideo{position:relative}.cs_hero.cs_style_4{height:100vh;max-height:100lvh;display:flex;flex-direction:column;padding:130px 0 0}@media (max-width: 1279px){.cs_hero.cs_style_4{height:100lvh;padding:130px 0 150px}.cs_hero.cs_style_4 .cs_form_wrap{margin-bottom:60px}}@media (max-width: 1024px){.cs_hero.cs_style_4{padding:130px 0 80px}}.cs_hero.cs_style_4 .cs_hero_text_wrap{flex:1}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: BabylonDataBackgroundDirective, selector: "[dataBackground]", inputs: ["dataBackground"] }, { kind: "directive", type: BabylonSwiperSliderDirective, selector: "[babylonSwiperSlider]" }, { kind: "directive", type: BabylonLinkTypeDirective, selector: "[linkType]", inputs: ["linkType", "href", "modalClick", "clickPopup", "disablePointerNone"], outputs: ["anchorClicked"] }, { kind: "component", type: BabylonDynamicHeadingComponent, selector: "lib-babylon-dynamic-heading", inputs: ["useInnerHtml", "tag", "wrapper", "cssClass", "content", "color"] }, { kind: "pipe", type: SafeUrlPipe, name: "safeUrl" }], changeDetection: i0.ChangeDetectionStrategy.Default }); }
|
|
25468
25479
|
}
|
|
25469
25480
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: BabylonTopSliderComponent, decorators: [{
|
|
25470
25481
|
type: Component,
|
|
@@ -25475,7 +25486,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
|
25475
25486
|
BabylonLinkTypeDirective,
|
|
25476
25487
|
BabylonDynamicHeadingComponent,
|
|
25477
25488
|
SafeUrlPipe,
|
|
25478
|
-
], changeDetection: ChangeDetectionStrategy.Default, template: "<section class=\"babylon__topslider margin-main-botom\" babylonSwiperSlider>\n <div\n [class]=\"\n videoData?.src && !hideVideo\n ? 'cs_hero cs_style_4 cs_primary_bg cs_bg_filed text-center position-relative youtube-bg'\n : 'cs_parallax_slider loading overflow-hidden position-relative'\n \"\n [attr.data-autoplay-delay]=\"autoplayDelay ?? null\"\n >\n @if (videoData?.src && !hideVideo) {\n @if (isYTVideo) {\n <div id=\"bgndVideo\" class=\"player\"></div>\n }\n @if (isVimeo) {\n <div class=\"vimeo-wrapper\">\n <iframe\n [src]=\"vimeoUrl | safeUrl\"\n frameborder=\"0\"\n allow=\"autoplay; fullscreen\"\n ></iframe>\n </div>\n }\n } @else if (actualItems.length) {\n <div class=\"swiper-wrapper\">\n @for (item of actualItems; track item) {\n <div class=\"swiper-slide\">\n <div\n class=\"cs_hero cs_style_1 cs_center text-center position-relative\"\n >\n <figure\n class=\"cs_swiper_parallax_bg cs_hero_bg cs_bg_filed h-100 w-100 position-absolute top-0 start-0 mb-0\"\n [attr.data-src]=\"\n item?.img?.src ||\n 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7'\n \"\n [style.background-image]=\"\n item?.img?.src\n ? 'url(' + item.img?.src + ')'\n : 'url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)'\n \"\n [dataBackground]=\"item?.img?.src || ''\"\n >\n @if (item?.img?.src) {\n <img\n [attr.src]=\"\n item.img?.src ||\n 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7'\n \"\n [attr.alt]=\"\n item.img?.alt ||\n item.img?.title ||\n 'Imagen de secci\u00F3n'\n \"\n style=\"display: none\"\n />\n }\n </figure>\n <div\n class=\"container position-relative cs_zindex_3\"\n >\n <div class=\"cs_hero_text\">\n @if (item.pretitle) {\n <lib-babylon-dynamic-heading\n [tag]=\"tags?.title || 'p'\"\n cssClass=\"pretitle_carrusel\"\n [content]=\"item.pretitle\"\n [color]=\"textColors?.title\"\n ></lib-babylon-dynamic-heading>\n }\n @if (logoTitle && logoTitle.src) {\n <div class=\"logo_title\">\n <img\n [src]=\"logoTitle.src\"\n [alt]=\"\n logoTitle.alt ||\n 'Logo de secci\u00F3n'\n \"\n loading=\"lazy\"\n />\n </div>\n } @else {\n @if (item.title) {\n <lib-babylon-dynamic-heading\n [tag]=\"\n tags && tags.title\n ? tags.title\n : $index == 0\n ? 'h1'\n : 'h2'\n \"\n cssClass=\"title_carrusel\"\n [content]=\"item.title\"\n [color]=\"textColors?.title\"\n ></lib-babylon-dynamic-heading>\n }\n }\n @if (item.subtitle) {\n <lib-babylon-dynamic-heading\n [tag]=\"tags?.title || 'p'\"\n cssClass=\"pretitle_carrusel\"\n [content]=\"item.subtitle\"\n [color]=\"textColors?.title\"\n ></lib-babylon-dynamic-heading>\n }\n @if (item?.buttons?.length) {\n @for (\n button of item?.buttons;\n track $index\n ) {\n <div\n class=\"btns__box align--center\"\n >\n <a\n [linkType]=\"\n button?.linkType\n \"\n [href]=\"button?.url ?? '#'\"\n [modalClick]=\"modalClick\"\n class=\"btn btn_primary btn--light\"\n >\n <b>{{\n button?.label ?? ''\n }}</b>\n <span\n class=\"babylon-arrow-right-big\"\n ></span>\n </a>\n </div>\n }\n }\n </div>\n </div>\n </div>\n </div>\n }\n </div>\n }\n </div>\n @if (actualItems && actualItems.length > 1 && !videoData?.src) {\n <div class=\"cs_slider_navigation cs_white_color\">\n <div class=\"cs_swiper_button_prev\">\n <span class=\"babylon-arrow-left-big\"></span>\n </div>\n <div class=\"cs_swiper_button_next\">\n <span class=\"babylon-arrow-right-big\"></span>\n </div>\n </div>\n }\n @if (logo) {\n <img\n [src]=\"logo.src\"\n [alt]=\"logo.alt\"\n class=\"top-slider-logo\"\n loading=\"lazy\"\n />\n }\n <div class=\"mouse_wp\">\n <button\n type=\"button\"\n class=\"cs_down_btn_2\"\n [attr.aria-label]=\"mouseup ?? 'Desplazarse a la primera secci\u00F3n'\"\n (click)=\"scrollToSection($event, 'first_section')\"\n >\n <div class=\"mouse\"></div>\n </button>\n </div>\n</section>\n<div id=\"first_section\"></div>\n", styles: [".cs_hero.cs_style_1{height:100lvh;padding:100px 0 50px;max-height:100lvh}@media (max-width: 1024px){.cs_hero.cs_style_1{padding:100px 0;height:100vh;max-height:initial}}@media (max-width: 767px){.cs_hero.cs_style_1{height:calc(100dvh - 60px);padding:0;min-height:auto}}@media (max-width: 539px){.cs_hero.cs_style_1{min-height:calc(100dvh - 60px);height:calc(100dvh - 60px)}.cs_hero.cs_style_1 .cs_hero_title br{display:none}}.cs_bg_filed{transform:translate(0)!important}.babylon__topslider{position:relative}.babylon__topslider figure:before{content:\"\";position:absolute;left:0;top:0;width:100%;height:100%;background:#00000030}.babylon__topslider ::ng-deep #wrapper_bgndVideo{aspect-ratio:16/9}.babylon__topslider ::ng-deep #wrapper_bgndVideo #iframe_bgndVideo{position:absolute;z-index:0!important;overflow:hidden!important;opacity:1!important;-webkit-user-select:none!important;user-select:none!important;max-width:initial!important;width:100%!important;height:100%!important;margin-top:0!important;margin-left:0!important}@media (min-width: 1280px){.babylon__topslider ::ng-deep #wrapper_bgndVideo #iframe_bgndVideo{left:0!important}}@media (max-width: 1279px){.babylon__topslider ::ng-deep #wrapper_bgndVideo #iframe_bgndVideo{left:auto!important;right:calc(100% - 100vw)!important}}.babylon__topslider .youtube-bg{position:relative;height:100lvh;max-height:100lvh;min-height:520px;overflow:hidden}.babylon__topslider .vimeo-wrapper{position:absolute;z-index:0;width:100%;height:100%;left:0;top:0;overflow:hidden;pointer-events:none;aspect-ratio:16/9}.babylon__topslider .vimeo-wrapper iframe{min-height:100vw;min-width:200vh;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border:none}.cs_down_btn_2{position:absolute;height:35px;width:20px;border-radius:10px;border:2px solid var(--cl_title-light);z-index:1;bottom:14%;left:50%;margin-left:-10px;background:none}.cs_down_btn_2:before{content:\"\";height:5px;width:5px;border-radius:50%;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background-color:var(--cl_title-light);animation:UpAndDown 3s infinite}@keyframes UpAndDown{0%,to{top:30%}50%{top:70%;opacity:.5;transform:translate(-50%,-50%) scale(.8)}}.top-slider-logo{position:absolute;top:84%;transform:translateY(-50%);right:20px;width:80px;height:auto;z-index:3}@media (min-width: 768px){.top-slider-logo{top:50%;right:60px;width:100px}}@media (min-width: 768px){::ng-deep body.header_sticky .cs_hero.cs_style_1{max-height:calc(100lvh - 60px)}}@media (min-width: 1025px){::ng-deep body.header_sticky .cs_hero.cs_style_1{max-height:calc(100lvh - 160px)}}@media (min-width: 1280px){::ng-deep body.header_sticky .cs_hero.cs_style_1{max-height:calc(100lvh - 180px)}}.babylon__topslidervideo{position:relative}.cs_hero.cs_style_4{height:100vh;max-height:100lvh;display:flex;flex-direction:column;padding:130px 0 0}@media (max-width: 1279px){.cs_hero.cs_style_4{height:100lvh;padding:130px 0 150px}.cs_hero.cs_style_4 .cs_form_wrap{margin-bottom:60px}}@media (max-width: 1024px){.cs_hero.cs_style_4{padding:130px 0 80px}}.cs_hero.cs_style_4 .cs_hero_text_wrap{flex:1}\n"] }]
|
|
25489
|
+
], changeDetection: ChangeDetectionStrategy.Default, template: "<section class=\"babylon__topslider margin-main-botom\" babylonSwiperSlider>\n <div\n [class]=\"\n videoData?.src && !hideVideo\n ? 'cs_hero cs_style_4 cs_primary_bg cs_bg_filed text-center position-relative youtube-bg'\n : 'cs_parallax_slider loading overflow-hidden position-relative'\n \"\n [attr.data-autoplay-delay]=\"autoplayDelay ?? null\"\n >\n @if (videoData?.src && !hideVideo) {\n @if (isYTVideo) {\n <div id=\"bgndVideo\" class=\"player\"></div>\n }\n @if (isVimeo) {\n <div class=\"vimeo-wrapper\">\n <iframe\n [src]=\"vimeoUrl | safeUrl\"\n frameborder=\"0\"\n allow=\"autoplay; fullscreen\"\n ></iframe>\n </div>\n }\n } @else if (actualItems.length) {\n <div class=\"swiper-wrapper\">\n @for (item of actualItems; track item) {\n <div class=\"swiper-slide\">\n <div\n class=\"cs_hero cs_style_1 cs_center text-center position-relative\"\n >\n <figure\n class=\"cs_swiper_parallax_bg cs_hero_bg cs_bg_filed h-100 w-100 position-absolute top-0 start-0 mb-0\"\n [attr.data-src]=\"\n item?.img?.src ||\n 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7'\n \"\n [style.background-image]=\"\n item?.img?.src\n ? 'url(' + item.img?.src + ')'\n : 'url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)'\n \"\n [dataBackground]=\"item?.img?.src || ''\"\n >\n @if (item?.img?.src) {\n <img\n [attr.src]=\"\n item.img?.src ||\n 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7'\n \"\n [attr.alt]=\"\n item.img?.alt ||\n item.img?.title ||\n 'Imagen de secci\u00F3n'\n \"\n style=\"display: none\"\n />\n }\n </figure>\n <div\n class=\"container position-relative cs_zindex_3\"\n >\n <div class=\"cs_hero_text\">\n @if (item.pretitle) {\n <lib-babylon-dynamic-heading\n [tag]=\"\n onlyP ? 'p' : tags?.title || 'p'\n \"\n cssClass=\"pretitle_carrusel\"\n [content]=\"item.pretitle\"\n [color]=\"textColors?.title\"\n ></lib-babylon-dynamic-heading>\n }\n @if (logoTitle && logoTitle.src) {\n <div class=\"logo_title\">\n <img\n [src]=\"logoTitle.src\"\n [alt]=\"\n logoTitle.alt ||\n 'Logo de secci\u00F3n'\n \"\n loading=\"lazy\"\n />\n </div>\n } @else {\n @if (item.title) {\n <lib-babylon-dynamic-heading\n [tag]=\"\n onlyP\n ? 'p'\n : tags && tags.title\n ? tags.title\n : $index == 0\n ? 'h1'\n : 'h2'\n \"\n cssClass=\"title_carrusel\"\n [content]=\"item.title\"\n [color]=\"textColors?.title\"\n ></lib-babylon-dynamic-heading>\n }\n }\n @if (item.subtitle) {\n <lib-babylon-dynamic-heading\n [tag]=\"\n onlyP ? 'p' : tags?.title || 'p'\n \"\n cssClass=\"pretitle_carrusel\"\n [content]=\"item.subtitle\"\n [color]=\"textColors?.title\"\n ></lib-babylon-dynamic-heading>\n }\n @if (item?.buttons?.length) {\n @for (\n button of item?.buttons;\n track $index\n ) {\n <div\n class=\"btns__box align--center\"\n >\n <a\n [linkType]=\"\n button?.linkType\n \"\n [href]=\"button?.url ?? '#'\"\n [modalClick]=\"modalClick\"\n class=\"btn btn_primary btn--light\"\n >\n <b>{{\n button?.label ?? ''\n }}</b>\n <span\n class=\"babylon-arrow-right-big\"\n ></span>\n </a>\n </div>\n }\n }\n </div>\n </div>\n </div>\n </div>\n }\n </div>\n }\n </div>\n @if (actualItems && actualItems.length > 1 && !videoData?.src) {\n <div class=\"cs_slider_navigation cs_white_color\">\n <div class=\"cs_swiper_button_prev\">\n <span class=\"babylon-arrow-left-big\"></span>\n </div>\n <div class=\"cs_swiper_button_next\">\n <span class=\"babylon-arrow-right-big\"></span>\n </div>\n </div>\n }\n @if (logo) {\n <img\n [src]=\"logo.src\"\n [alt]=\"logo.alt\"\n class=\"top-slider-logo\"\n loading=\"lazy\"\n />\n }\n <div class=\"mouse_wp\">\n <button\n type=\"button\"\n class=\"cs_down_btn_2\"\n [attr.aria-label]=\"mouseup ?? 'Desplazarse a la primera secci\u00F3n'\"\n (click)=\"scrollToSection($event, 'first_section')\"\n >\n <div class=\"mouse\"></div>\n </button>\n </div>\n</section>\n<div id=\"first_section\"></div>\n", styles: [".cs_hero.cs_style_1{height:100lvh;padding:100px 0 50px;max-height:100lvh}@media (max-width: 1024px){.cs_hero.cs_style_1{padding:100px 0;height:100vh;max-height:initial}}@media (max-width: 767px){.cs_hero.cs_style_1{height:calc(100dvh - 60px);padding:0;min-height:auto}}@media (max-width: 539px){.cs_hero.cs_style_1{min-height:calc(100dvh - 60px);height:calc(100dvh - 60px)}.cs_hero.cs_style_1 .cs_hero_title br{display:none}}.cs_bg_filed{transform:translate(0)!important}.babylon__topslider{position:relative}.babylon__topslider figure:before{content:\"\";position:absolute;left:0;top:0;width:100%;height:100%;background:#00000030}.babylon__topslider ::ng-deep #wrapper_bgndVideo{aspect-ratio:16/9}.babylon__topslider ::ng-deep #wrapper_bgndVideo #iframe_bgndVideo{position:absolute;z-index:0!important;overflow:hidden!important;opacity:1!important;-webkit-user-select:none!important;user-select:none!important;max-width:initial!important;width:100%!important;height:100%!important;margin-top:0!important;margin-left:0!important}@media (min-width: 1280px){.babylon__topslider ::ng-deep #wrapper_bgndVideo #iframe_bgndVideo{left:0!important}}@media (max-width: 1279px){.babylon__topslider ::ng-deep #wrapper_bgndVideo #iframe_bgndVideo{left:auto!important;right:calc(100% - 100vw)!important}}.babylon__topslider .youtube-bg{position:relative;height:100lvh;max-height:100lvh;min-height:520px;overflow:hidden}.babylon__topslider .vimeo-wrapper{position:absolute;z-index:0;width:100%;height:100%;left:0;top:0;overflow:hidden;pointer-events:none;aspect-ratio:16/9}.babylon__topslider .vimeo-wrapper iframe{min-height:100vw;min-width:200vh;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border:none}.cs_down_btn_2{position:absolute;height:35px;width:20px;border-radius:10px;border:2px solid var(--cl_title-light);z-index:1;bottom:14%;left:50%;margin-left:-10px;background:none}.cs_down_btn_2:before{content:\"\";height:5px;width:5px;border-radius:50%;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background-color:var(--cl_title-light);animation:UpAndDown 3s infinite}@keyframes UpAndDown{0%,to{top:30%}50%{top:70%;opacity:.5;transform:translate(-50%,-50%) scale(.8)}}.top-slider-logo{position:absolute;top:84%;transform:translateY(-50%);right:20px;width:80px;height:auto;z-index:3}@media (min-width: 768px){.top-slider-logo{top:50%;right:60px;width:100px}}@media (min-width: 768px){::ng-deep body.header_sticky .cs_hero.cs_style_1{max-height:calc(100lvh - 60px)}}@media (min-width: 1025px){::ng-deep body.header_sticky .cs_hero.cs_style_1{max-height:calc(100lvh - 160px)}}@media (min-width: 1280px){::ng-deep body.header_sticky .cs_hero.cs_style_1{max-height:calc(100lvh - 180px)}}.babylon__topslidervideo{position:relative}.cs_hero.cs_style_4{height:100vh;max-height:100lvh;display:flex;flex-direction:column;padding:130px 0 0}@media (max-width: 1279px){.cs_hero.cs_style_4{height:100lvh;padding:130px 0 150px}.cs_hero.cs_style_4 .cs_form_wrap{margin-bottom:60px}}@media (max-width: 1024px){.cs_hero.cs_style_4{padding:130px 0 80px}}.cs_hero.cs_style_4 .cs_hero_text_wrap{flex:1}\n"] }]
|
|
25479
25490
|
}], ctorParameters: () => [], propDecorators: { items: [{
|
|
25480
25491
|
type: Input
|
|
25481
25492
|
}], buttons: [{
|
|
@@ -25496,6 +25507,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
|
25496
25507
|
type: Input
|
|
25497
25508
|
}], autoplayDelay: [{
|
|
25498
25509
|
type: Input
|
|
25510
|
+
}], onlyP: [{
|
|
25511
|
+
type: Input
|
|
25499
25512
|
}], btnClick: [{
|
|
25500
25513
|
type: Output
|
|
25501
25514
|
}], modalClick: [{
|