-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path10-es5.9fb34a043a5d1c24b4aa.js
1 lines (1 loc) · 12.7 KB
/
10-es5.9fb34a043a5d1c24b4aa.js
1
function _classCallCheck(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,n){for(var e=0;e<n.length;e++){var o=n[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function _createClass(t,n,e){return n&&_defineProperties(t.prototype,n),e&&_defineProperties(t,e),t}(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{uLgn:function(t,n,e){"use strict";e.r(n),e.d(n,"PortfolioModule",(function(){return L}));var o,a,i=e("ofXK"),c=e("1kSV"),r=e("tk/3"),s=e("3Pt+"),l=e("tyNb"),b=e("fXoL"),d=e("htnc"),f=((a=function(){function t(n,e){_classCallCheck(this,t),this.http=n,this.imagaService=e,this.cargando=!0,this.photos=[],this.filterPhotos=[],this.cargarPhotos()}return _createClass(t,[{key:"cargarPhotos",value:function(){var t=this;return new Promise((function(n,e){t.imagaService.getAllImages().subscribe((function(e){t.photos=e,t.addClassJson(e),t.cargando=!1,n()}))}))}},{key:"buscarPhoto",value:function(t){var n=this;0===this.photos.length?this.cargarPhotos().then((function(){n.filterPhoto(t)})):this.filterPhoto(t)}},{key:"filterPhoto",value:function(t){var n=this;this.filterPhotos=[],t=t.toLocaleLowerCase(),this.photos.forEach((function(e){e.descripcion.toLocaleLowerCase().indexOf(t)>=0&&n.filterPhotos.push(e)}))}},{key:"addClassJson",value:function(t){for(var n=[" ","defilee__div--special1","defilee__div--special2","defilee__div--special3","defilee__div--special4"],e=0;e<t.length;e++){var o=this.getRandomArbitrary(0,4);t[e].clase=n[o]}}},{key:"getRandomArbitrary",value:function(t,n){return Math.floor(Math.random()*(n-t+1))+t}}]),t}()).\u0275fac=function(t){return new(t||a)(b.ac(r.a),b.ac(d.a))},a.\u0275prov=b.Jb({token:a,factory:a.\u0275fac,providedIn:"root"}),a),u=((o=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"ngOnInit",value:function(){}}]),t}()).\u0275fac=function(t){return new(t||o)},o.\u0275cmp=b.Hb({type:o,selectors:[["app-loader"]],decls:9,vars:0,consts:[[1,"container-loader"],[1,"loader"],[1,"loader--dot"],[1,"loader--text"]],template:function(t,n){1&t&&(b.Sb(0,"div",0),b.Sb(1,"div",1),b.Ob(2,"div",2),b.Ob(3,"div",2),b.Ob(4,"div",2),b.Ob(5,"div",2),b.Ob(6,"div",2),b.Ob(7,"div",2),b.Ob(8,"div",3),b.Rb(),b.Rb())},styles:['.container-loader[_ngcontent-%COMP%]{height:100vh;width:100vw;font-family:Helvetica}.loader[_ngcontent-%COMP%]{width:250px;top:0;bottom:0;left:0;right:0;margin:auto}.loader[_ngcontent-%COMP%], .loader--dot[_ngcontent-%COMP%]{height:20px;position:absolute}.loader--dot[_ngcontent-%COMP%]{-webkit-animation-name:loader;animation-name:loader;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;-webkit-animation-duration:3s;animation-duration:3s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;width:20px;border-radius:100%;background-color:#000;border:2px solid #f2b6c1}.loader--dot[_ngcontent-%COMP%]:first-child{background-color:#cc008f;-webkit-animation-delay:.5s;animation-delay:.5s}.loader--dot[_ngcontent-%COMP%]:nth-child(2){background-color:#8c6daf;-webkit-animation-delay:.4s;animation-delay:.4s}.loader--dot[_ngcontent-%COMP%]:nth-child(3){background-color:#03a64a;-webkit-animation-delay:.3s;animation-delay:.3s}.loader--dot[_ngcontent-%COMP%]:nth-child(4){background-color:#f9a74b;-webkit-animation-delay:.2s;animation-delay:.2s}.loader--dot[_ngcontent-%COMP%]:nth-child(5){background-color:#154bb1;-webkit-animation-delay:.1s;animation-delay:.1s}.loader--dot[_ngcontent-%COMP%]:nth-child(6){background-color:#fbef5a;-webkit-animation-delay:0s;animation-delay:0s}.loader--text[_ngcontent-%COMP%]{position:absolute;top:200%;left:0;right:0;width:4rem;margin:auto}.loader--text[_ngcontent-%COMP%]:after{content:"Cargando";font-weight:700;-webkit-animation-name:loading-text;animation-name:loading-text;-webkit-animation-duration:3s;animation-duration:3s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}@-webkit-keyframes loader{15%{transform:translateX(0)}45%{transform:translateX(230px)}65%{transform:translateX(230px)}95%{transform:translateX(0)}}@keyframes loader{15%{transform:translateX(0)}45%{transform:translateX(230px)}65%{transform:translateX(230px)}95%{transform:translateX(0)}}@-webkit-keyframes loading-text{0%{content:"Cargando"}25%{content:"Cargando."}50%{content:"Cargando.."}75%{content:"Cargando..."}}@keyframes loading-text{0%{content:"Cargando"}25%{content:"Cargando."}50%{content:"Cargando.."}75%{content:"Cargando..."}}']}),o);function h(t,n){1&t&&b.Ob(0,"app-loader")}function p(t,n){if(1&t&&(b.Sb(0,"div",6),b.Sb(1,"a",7),b.Ob(2,"img",8),b.Sb(3,"div"),b.Sb(4,"h3",9),b.Bc(5),b.Rb(),b.Rb(),b.Rb(),b.Rb()),2&t){var e=n.$implicit;b.Ab(1),b.mc("href",e.fileUrl,b.uc),b.Ab(1),b.mc("src",e.fileUrl,b.uc),b.mc("alt",e.codigo),b.Ab(3),b.Cc(e.descripcion)}}function m(t,n){if(1&t&&(b.Sb(0,"section",2),b.Sb(1,"div",3),b.Sb(2,"div",4),b.zc(3,p,6,4,"div",5),b.Rb(),b.Rb(),b.Rb()),2&t){var e=b.gc();b.Ab(3),b.lc("ngForOf",e.photoService.photos)}}var g,v,y=((g=function(){function t(n){_classCallCheck(this,t),this.photoService=n}return _createClass(t,[{key:"ngOnInit",value:function(){}}]),t}()).\u0275fac=function(t){return new(t||g)(b.Nb(f))},g.\u0275cmp=b.Hb({type:g,selectors:[["app-portafolio"]],decls:2,vars:2,consts:[[4,"ngIf"],["class","main-photograhy",4,"ngIf"],[1,"main-photograhy"],[1,"photograhy"],[1,"gutters","card-columns"],["class","card text-center animacion fundirse",4,"ngFor","ngForOf"],[1,"card","text-center","animacion","fundirse"],["title","","data-lightbox","roadtrip",3,"href"],[1,"card-img-top","imagesource",3,"src","alt"],[1,"card-title"]],template:function(t,n){1&t&&(b.zc(0,h,1,0,"app-loader",0),b.zc(1,m,4,1,"section",1)),2&t&&(b.lc("ngIf",n.photoService.cargando),b.Ab(1),b.lc("ngIf",!n.photoService.cargando))},directives:[i.k,u,i.j],styles:[""]}),g),k=e("1YFN"),C=((v=function(){function t(n){_classCallCheck(this,t),this.http=n,this.cargaAbout()}return _createClass(t,[{key:"cargaAbout",value:function(){var t=this;return new Promise((function(n,e){t.http.get("assets/data/about.json").subscribe((function(e){t.about=e,n()}))}))}}]),t}()).\u0275fac=function(t){return new(t||v)(b.ac(r.a))},v.\u0275prov=b.Jb({token:v,factory:v.\u0275fac,providedIn:"root"}),v);function _(t,n){if(1&t&&(b.Sb(0,"p",12),b.Bc(1),b.Rb()),2&t){var e=b.gc().$implicit;b.Ab(1),b.Cc(e.subtitulo)}}function S(t,n){if(1&t&&(b.Sb(0,"div",7),b.Sb(1,"div",8),b.Sb(2,"strong"),b.Bc(3),b.Rb(),b.Rb(),b.Sb(4,"div",9),b.zc(5,_,2,1,"p",10),b.Sb(6,"p",11),b.Bc(7),b.Rb(),b.Rb(),b.Rb()),2&t){var e=n.$implicit;b.Ab(3),b.Cc(e.titulo),b.Ab(2),b.lc("ngIf",e.subtitulo.trim().length>0),b.Ab(2),b.Dc(" ",e.descripcion,"")}}var R,w=((R=function(){function t(n,e){_classCallCheck(this,t),this.socialPagina=n,this.abouts=e}return _createClass(t,[{key:"ngOnInit",value:function(){}}]),t}()).\u0275fac=function(t){return new(t||R)(b.Nb(k.a),b.Nb(C))},R.\u0275cmp=b.Hb({type:R,selectors:[["app-about"]],decls:14,vars:2,consts:[[1,"shell"],[1,"shell-header"],[1,"shell-body"],["class","card mb-4 animate__animated animate__slideInDown",4,"ngFor","ngForOf"],[1,"shell-footer","text-center"],["title","Conctactame",3,"href"],["type","button",1,"btn","btn-outline-secondary","btn-rounded"],[1,"card","mb-4","animate__animated","animate__slideInDown"],[1,"card-header"],[1,"card-body"],["style","font-style: oblique;","class","card-title",4,"ngIf"],[1,"card-text"],[1,"card-title",2,"font-style","oblique"]],template:function(t,n){1&t&&(b.Sb(0,"div",0),b.Sb(1,"div",1),b.Sb(2,"h1"),b.Bc(3,"Hola. Soy Rita, aficionada al dise\xf1o."),b.Rb(),b.Rb(),b.Sb(4,"section",2),b.zc(5,S,8,3,"div",3),b.Rb(),b.Sb(6,"div",4),b.Sb(7,"h3"),b.Bc(8,"Puedo ayudar."),b.Rb(),b.Sb(9,"p"),b.Bc(10,"Actualmente estoy disponible para trabajo empresarial."),b.Rb(),b.Sb(11,"a",5),b.Sb(12,"button",6),b.Bc(13,"Mensajeame"),b.Rb(),b.Rb(),b.Rb(),b.Rb()),2&t&&(b.Ab(5),b.lc("ngForOf",n.abouts.about),b.Ab(6),b.nc("href","mailTo:",n.socialPagina.social.email,"",b.uc))},directives:[i.j,i.k],styles:[""]}),R),P=function(){function t(n){_classCallCheck(this,t),this.element=n,null!=n&&(this.element=n)}return _createClass(t,[{key:"init",value:function(){this.addLoop()}},{key:"addLoop",value:function(){var t=this.element;void 0!==t&&Array.prototype.slice.call(this.element.children).reverse().forEach((function(n){var e=n.cloneNode(!0);e.classList.add("clone"),t.insertBefore(e,t.firstChild)}))}}]),t}();function O(t,n){if(1&t&&(b.Sb(0,"div"),b.Ob(1,"img",5),b.Sb(2,"p"),b.Bc(3),b.Rb(),b.Rb()),2&t){var e=n.$implicit;b.Db("defilee__div ",e.clase," animacion fundirse"),b.Ab(1),b.mc("src",e.fileUrl,b.uc),b.mc("alt",e.codigo),b.Ab(2),b.Cc(e.descripcion)}}function A(t,n){if(1&t&&(b.Sb(0,"div",4),b.Sb(1,"a",5),b.Ob(2,"img",6),b.Sb(3,"div"),b.Sb(4,"h3",7),b.Bc(5),b.Rb(),b.Rb(),b.Rb(),b.Rb()),2&t){var e=n.$implicit;b.Ab(1),b.nc("href","assets/images/",e.url,".png",b.uc),b.Ab(1),b.nc("src","assets/images/",e.url,".png",b.uc),b.mc("alt",e.cod),b.Ab(3),b.Cc(e.descripcion)}}var x,I,M,B,F,T=[{path:"home",component:y},{path:"about",component:w},{path:"photos",component:(M=function(){function t(n){_classCallCheck(this,t),this.photosServices=n}return _createClass(t,[{key:"cargaPhotos",value:function(){new P(document.getElementById("defilee")).init()}},{key:"ngOnInit",value:function(){this.cargaPhotos()}}]),t}(),M.\u0275fac=function(t){return new(t||M)(b.Nb(f))},M.\u0275cmp=b.Hb({type:M,selectors:[["app-items"]],decls:5,vars:1,consts:[[1,"main-photograhy"],[1,"photograhy"],[1,"defilee__outer"],["id","defilee",1,"defilee__ctnr"],[3,"class",4,"ngFor","ngForOf"],[3,"src","alt"]],template:function(t,n){1&t&&(b.Sb(0,"section",0),b.Sb(1,"div",1),b.Sb(2,"div",2),b.Sb(3,"section",3),b.zc(4,O,4,6,"div",4),b.Rb(),b.Rb(),b.Rb(),b.Rb()),2&t&&(b.Ab(4),b.lc("ngForOf",n.photosServices.photos))},directives:[i.j],styles:[""]}),M)},{path:"search/:termino",component:(I=function(){function t(n,e){_classCallCheck(this,t),this.router=n,this.photoService=e}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.router.params.subscribe((function(n){t.photoService.buscarPhoto(n.termino)}))}}]),t}(),I.\u0275fac=function(t){return new(t||I)(b.Nb(l.a),b.Nb(f))},I.\u0275cmp=b.Hb({type:I,selectors:[["app-search"]],decls:4,vars:1,consts:[[1,"main-photograhy"],[1,"photograhy"],[1,"gutters","card-columns"],["class","card text-center animacion fundirse",4,"ngFor","ngForOf"],[1,"card","text-center","animacion","fundirse"],["title","","data-lightbox","roadtrip",3,"href"],[1,"card-img-top","imagesource",3,"src","alt"],[1,"card-title"]],template:function(t,n){1&t&&(b.Sb(0,"section",0),b.Sb(1,"div",1),b.Sb(2,"div",2),b.zc(3,A,6,4,"div",3),b.Rb(),b.Rb(),b.Rb()),2&t&&(b.Ab(3),b.lc("ngForOf",n.photoService.filterPhotos))},directives:[i.j],styles:[""]}),I)},{path:"contact",component:(x=function(){function t(n){_classCallCheck(this,t),this.socialPagina=n}return _createClass(t,[{key:"ngOnInit",value:function(){}}]),t}(),x.\u0275fac=function(t){return new(t||x)(b.Nb(k.a))},x.\u0275cmp=b.Hb({type:x,selectors:[["app-contact"]],decls:17,vars:8,consts:[[1,"jumbotron","text-center"],[1,"display-3"],[1,"lead"],[1,"social"],["data-toggle","tooltip","placement","bottom",1,"link","mail",3,"href","ngbTooltip"],[1,"icon","ion-md-mail"],["target","_blank","data-toggle","tooltip","placement","bottom",1,"link","facebook",3,"href","ngbTooltip"],[1,"icon","ion-logo-facebook"],["target","_blank","data-toggle","tooltip","placement","bottom",1,"link","pinterest",3,"href","ngbTooltip"],[1,"icon","ion-logo-pinterest"],["target","_blank","data-toggle","tooltip","placement","bottom",1,"link","google-plus",3,"href","ngbTooltip"],[1,"icon","ion-logo-linkedin"]],template:function(t,n){1&t&&(b.Sb(0,"div",0),b.Sb(1,"h1",1),b.Bc(2,"Gracias!"),b.Rb(),b.Sb(3,"p",2),b.Sb(4,"strong"),b.Bc(5,"Contactese conmigo mediante mis redes "),b.Rb(),b.Bc(6,"para m\xe1s informaci\xf3n."),b.Rb(),b.Ob(7,"hr"),b.Sb(8,"div",3),b.Sb(9,"a",4),b.Ob(10,"span",5),b.Rb(),b.Sb(11,"a",6),b.Ob(12,"span",7),b.Rb(),b.Sb(13,"a",8),b.Ob(14,"span",9),b.Rb(),b.Sb(15,"a",10),b.Ob(16,"span",11),b.Rb(),b.Rb(),b.Rb()),2&t&&(b.Ab(9),b.nc("href","mailTo:",n.socialPagina.social.email,"",b.uc),b.mc("ngbTooltip",n.socialPagina.social.email),b.Ab(2),b.mc("ngbTooltip",n.socialPagina.social.facebook),b.lc("href",n.socialPagina.social.facebook,b.uc),b.Ab(2),b.mc("ngbTooltip",n.socialPagina.social.pinterest),b.lc("href",n.socialPagina.social.pinterest,b.uc),b.Ab(2),b.mc("ngbTooltip",n.socialPagina.social.linkedin),b.lc("href",n.socialPagina.social.linkedin,b.uc))},directives:[c.e],styles:[""]}),x)},{path:"",pathMatch:"full",redirectTo:"home"}],j=((F=function t(){_classCallCheck(this,t)}).\u0275mod=b.Lb({type:F}),F.\u0275inj=b.Kb({factory:function(t){return new(t||F)},imports:[[l.e.forChild(T)],l.e]}),F),L=((B=function t(){_classCallCheck(this,t)}).\u0275mod=b.Lb({type:B}),B.\u0275inj=b.Kb({factory:function(t){return new(t||B)},imports:[[i.c,j,r.b,c.b,s.k]]}),B)}}]);