"use strict";(self.webpackChunktoor=self.webpackChunktoor||[]).push([[396],{2396:(v,m,o)=>{o.r(m),o.d(m,{GalleryModule:()=>h});var t=o(8583),d=o(811),p=o(4832),e=o(5e3),u=o(3465),y=o(6975);const i=JSON.parse('[{"id":1,"image":"assets/images/gallery/1.jpg","category":[1,4]},{"id":2,"image":"assets/images/gallery/2.jpg","category":[2,3]},{"id":3,"image":"assets/images/gallery/3.jpg","category":[3,2]},{"id":4,"image":"assets/images/gallery/4.jpg","category":[4,1]},{"id":5,"image":"assets/images/gallery/5.jpg","category":[1,4]},{"id":6,"image":"assets/images/gallery/6.jpg","category":[2,3]},{"id":7,"image":"assets/images/gallery/7.jpg","category":[3,2]},{"id":8,"image":"assets/images/gallery/8.jpg","category":[4,1]},{"id":9,"image":"assets/images/gallery/9.jpg","category":[1,4]},{"id":10,"image":"assets/images/gallery/10.jpg","category":[2,3]},{"id":11,"image":"assets/images/gallery/11.jpg","category":[3,2]},{"id":12,"image":"assets/images/gallery/12.jpg","category":[4,1]}]'),g=JSON.parse('[{"id":1,"title":"Hotels"},{"id":2,"title":"Flights"},{"id":3,"title":"Cruises"},{"id":4,"title":"Cars"}]');function l(a,s){if(1&a){const n=e.EpF();e.TgZ(0,"li",6),e.TgZ(1,"a",7),e.NdJ("click",function(){const c=e.CHM(n),x=c.$implicit,O=c.index;return e.oxw().filterItemsByCategory(x,1+O)}),e._uU(2),e.qZA(),e.qZA()}if(2&a){const n=s.$implicit,r=s.index,c=e.oxw();e.xp6(1),e.Q6J("ngClass",c.activeItem===1+r?"active":""),e.xp6(1),e.Oqu(n.title)}}function Z(a,s){if(1&a&&(e.TgZ(0,"div",11),e.TgZ(1,"div",12),e.TgZ(2,"a",13),e._UZ(3,"img",14),e.qZA(),e.qZA(),e.qZA()),2&a){const n=s.$implicit;e.xp6(2),e.Q6J("href",n.image,e.LSH),e.xp6(1),e.Q6J("src",n.image,e.LSH)}}let f=(()=>{class a{constructor(){this.items=i,this.category=g,this.filteredItems=[]=[...this.items],this.activeItem=0}filterItemsByCategory(n,r){this.filteredItems=this.items.filter(c=>c.category.includes(parseInt(n.id))),this.activeItem=r}reset(n){this.filteredItems=[...this.items],this.activeItem=n}ngOnInit(){}}return a.\u0275fac=function(n){return new(n||a)},a.\u0275cmp=e.Xpm({type:a,selectors:[["app-content"]],decls:12,vars:3,consts:[[1,"section-padding","bg-light-white","gallery"],[1,"container"],[1,"row"],[1,"col-12"],[1,"tabs","filter-gallery"],[1,"custom-flex","nav","nav-tabs","mb-xl-40"],[1,"nav-item"],["href","javascript:void(0)",1,"nav-link",3,"ngClass","click"],["class","nav-item",4,"ngFor","ngForOf"],[1,"row","gallery-grid"],["class","col-lg-4 col-md-6 filter-box car-gallery",4,"ngFor","ngForOf"],[1,"col-lg-4","col-md-6","filter-box","car-gallery"],[1,"gallery-item","mb-xl-30"],[1,"popup",3,"href"],["alt","img",1,"image-fit",3,"src"]],template:function(n,r){1&n&&(e.TgZ(0,"section",0),e.TgZ(1,"div",1),e.TgZ(2,"div",2),e.TgZ(3,"div",3),e.TgZ(4,"div",4),e.TgZ(5,"ul",5),e.TgZ(6,"li",6),e.TgZ(7,"a",7),e.NdJ("click",function(){return r.reset(0)}),e._uU(8,"All"),e.qZA(),e.qZA(),e.YNc(9,l,3,2,"li",8),e.qZA(),e.qZA(),e.TgZ(10,"div",9),e.YNc(11,Z,4,2,"div",10),e.qZA(),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&n&&(e.xp6(7),e.Q6J("ngClass",0===r.activeItem?"active":""),e.xp6(2),e.Q6J("ngForOf",r.category),e.xp6(2),e.Q6J("ngForOf",r.filteredItems))},directives:[t.mk,t.sg],styles:[""]}),a})();var C=o(5140);const T=[{path:"",component:(()=>{class a{constructor(){}ngOnInit(){}}return a.\u0275fac=function(n){return new(n||a)},a.\u0275cmp=e.Xpm({type:a,selectors:[["app-gallery"]],decls:4,vars:0,template:function(n,r){1&n&&(e._UZ(0,"app-header"),e._UZ(1,"app-breadcrumbs"),e._UZ(2,"app-content"),e._UZ(3,"app-footer"))},directives:[u.G,y.n,f,C.c],styles:[""]}),a})()}];let A=(()=>{class a{}return a.\u0275fac=function(n){return new(n||a)},a.\u0275mod=e.oAB({type:a}),a.\u0275inj=e.cJS({imports:[[p.Bz.forChild(T)],p.Bz]}),a})();var _=o(4065);let h=(()=>{class a{}return a.\u0275fac=function(n){return new(n||a)},a.\u0275mod=e.oAB({type:a}),a.\u0275inj=e.cJS({imports:[[t.ez,A,_.m,d.IJ]]}),a})()},6975:(v,m,o)=>{o.d(m,{n:()=>y});var t=o(5e3),d=o(9818),p=o(8583),e=o(4832);function u(i,g){if(1&i&&(t.TgZ(0,"h1",6),t._uU(1),t.qZA(),t.TgZ(2,"ul",7),t.TgZ(3,"li",8),t.TgZ(4,"a",9),t._uU(5,"Home"),t.qZA(),t.qZA(),t.TgZ(6,"li",10),t._uU(7),t.qZA(),t.qZA()),2&i){const l=g.$implicit;t.xp6(1),t.Oqu(l.displayName),t.xp6(6),t.hij(" ",l.displayName," ")}}let y=(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(l){return new(l||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-breadcrumbs"]],decls:7,vars:1,consts:[["parent",""],[1,"subheader","normal-bg","section-padding"],[1,"container"],[1,"row"],[1,"col-12"],["ngFor","",3,"ngForOf"],[1,"text-custom-white"],[1,"custom-flex","justify-content-center"],[1,"fw-500"],["routerLink","/",1,"text-custom-white"],[1,"active","fw-500"]],template:function(l,Z){if(1&l&&(t.TgZ(0,"breadcrumb",null,0),t.TgZ(2,"div",1),t.TgZ(3,"div",2),t.TgZ(4,"div",3),t.TgZ(5,"div",4),t.YNc(6,u,8,2,"ng-template",5),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&l){const f=t.MAs(1);t.xp6(6),t.Q6J("ngForOf",f.breadcrumbs)}},directives:[d.LI,p.sg,e.yS],styles:[""]}),i})()}}]);