mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-21 09:50:13 +01:00
1 line
129 KiB
JavaScript
1 line
129 KiB
JavaScript
|
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{"6OPl":function(n,e,t){"use strict";t.r(e);var l=t("CcnG"),o=(t("TtU4"),function(){return function(n){this.themeService=n,this.themeService.changeTheme("ngx-landing")}}()),i=t("jvbL"),a=function(){function n(n,e){var t=this;this.themeService=n,this.breakpointService=e,this.alive=!0,this.breakpoints=this.breakpointService.getBreakpointsMap(),this.themeService.onMediaQueryChange().pipe(Object(i.a)(function(){return t.alive})).subscribe(function(n){t.breakpoint=n[1]})}return n.prototype.ngOnDestroy=function(){this.alive=!1},n}(),g=t("eEG2"),s=function(){function n(n){var e=this;this.descriptionsService=n,this.alive=!0,this.descriptionsService.getDescriptions().pipe(Object(i.a)(function(){return e.alive})).subscribe(function(n){return e.descriptions=n})}return n.prototype.ngOnDestroy=function(){this.alive=!1},n}(),r=function(){return function(){}}(),m=function(){return(m=Object.assign||function(n){for(var e,t=1,l=arguments.length;t<l;t++)for(var o in e=arguments[t])Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}).apply(this,arguments)},c=function(){function n(n,e){var t=this;this.themeService=n,this.breakpointService=e,this.alive=!0,this.themes=["Light","Cosmic","Corporate"],this.sliderIndex=1,this.initialSwiperConfig={direction:"horizontal",spaceBetween:200,slidesPerView:"auto",centeredSlides:!0,keyboard:!0,navigation:!0,effect:"coverflow",grabCursor:!0,coverflowEffect:{rotate:0,stretch:0,depth:500,modifier:1,slideShadows:!1},pagination:{el:".swiper-pagination",clickable:!0,hideOnClick:!1,renderBullet:function(n,e){return'\n <span class="'+e+'">\n <span>\n '+t.themes[n]+"\n </span>\n </span>"}}},this.swiperConfig=m({},this.initialSwiperConfig),this.breakpoints=this.breakpointService.getBreakpointsMap(),this.themeService.onMediaQueryChange().pipe(Object(i.a)(function(){return t.alive})).subscribe(function(n){t.breakpoint=n[1],t.changeSwiperConfig()})}return n.prototype.changeSwiperConfig=function(){this.swiperConfig=this.isMobile?m({},this.swiperConfig,{preloadImages:!1,lazy:!0}):this.initialSwiperConfig},Object.defineProperty(n.prototype,"isMobile",{get:function(){return this.breakpoint.width<=this.breakpoints.sm},enumerable:!0,configurable:!0}),n.prototype.ngOnDestroy=function(){this.alive=!1},n}(),u=t("CheL"),d=function(){return(d=Object.assign||function(n){for(var e,t=1,l=arguments.length;t<l;t++)for(var o in e=arguments[t])Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}).apply(this,arguments)},b=function(){function n(n,e,t){var l=this;this.themeService=n,this.breakpointService=e,this.reviewsService=t,this.alive=!0,this.desktopSwiperConfig={slidesPerView:3,keyboard:!0,navigation:!0},this.tabletSwiperConfig=d({},this.desktopSwiperConfig,{slidesPerView:2}),this.mobileSwiperConfig={slidesPerView:"auto",centeredSlides:!0,keyboard:!1,navigation:!1},this.swiperConfig={direction:"horizontal",spaceBetween:24,mousewheel:!1,lazy:!0,loop:!0,autoplay:!0,pagination:{el:".swiper-pagination",clickable:!0,hideOnClick:!1}},this.breakpoints=this.breakpointService.getBreakpointsMap(),this.themeService.onMediaQueryChange().pipe(Object(i.a)(function(){return l.alive})).subscribe(function(n){l.changeSwiperConfig(n[1].width)}),this.reviewsService.getReviews().pipe(Object(i.a)(function(){return l.alive})).subscribe(function(n){return l.reviews=n})}return n.prototype.changeSwiperConfig=function(n){if(this.isMobile(n))this.swiperConfig=d({},this.swiperConfig,this.mobileSwiperConfig);else{var e=this.isTablet(n)?this.tabletSwiperConfig:this.desktopSwiperConfig;this.swiperConfig=d({},this.swiperConfig,e)}},n.prototype.isMobile=function(n){return n<=this.breakpoints.is},n.prototype.isTablet=function(n){return n<=this.breakpoints.sm},n.prototype.ngOnDestroy=function(){this.alive=!1},n}(),h=function(){return function(){}}(),p=function(){function n(){this.isAgree=!1,this.invalid=!1}return n.prototype.submitForm=function(){this.emailInput.nativeElement.value?(this.contactForm.nativeElement.submit(),this.invalid=
|