"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[249],{2077:(t,e,i)=>{i.r(e),i.d(e,{default:()=>c});var r=i(629);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function a(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,r)}return i}function n(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?a(Object(i),!0).forEach((function(e){s(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):a(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function s(t,e,i){return(e=function(t){var e=function(t,e){if("object"!==l(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,e||"default");if("object"!==l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===l(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}const o={data:function(){return{category:"",galleryDialog:!1,galleryContent:[]}},methods:n(n({},(0,r.nv)({getGalleries:"index/getGalleries"})),{},{actionGalleryItems:function(){this.$store.dispatch("index/getGalleryItems",this.category)},getCategoryid:function(t){this.category=t,this.$store.dispatch("index/getGalleryItems",t)},singleGallery:function(t){this.galleryContent=t,this.galleryDialog=!0}}),computed:n({},(0,r.Se)({galleries:"index/getGalleries",galleryItems:"index/getGalleryItems"})),created:function(){this.getGalleries(),this.actionGalleryItems()}};const c=(0,i(1900).Z)(o,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"project-gallery",attrs:{id:"project-gallery"}},[e("div",{staticClass:"container"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-lg-12"},[e("div",{staticClass:"project-gallery-filter d-flex justify-content-center"},[e("ul",{staticClass:"project-gallery-menu d-inline-block"},[e("li",{staticClass:"filter",class:""==t.category?"active":"",on:{click:function(e){return e.preventDefault(),t.getCategoryid("")}}},[t._v("\n                  "+t._s(t.$t("All"))+"\n              ")]),t._v(" "),t._l(t.galleries,(function(i,r){return e("li",{key:r,staticClass:"filter",class:t.category==i.id?"active":"",on:{click:function(e){return e.preventDefault(),t.getCategoryid(i.id)}}},[t._v("\n                   "+t._s(i.name)+"\n              ")])}))],2)]),t._v(" "),e("div",{staticClass:"row project-gallery-item"},t._l(t.galleryItems,(function(i,r){return e("div",{key:r,staticClass:"col-md-6 col-lg-4 gallery-item"},[e("div",{staticClass:"gallery-item-content"},[e("div",{staticClass:"item-thumbnail",on:{click:function(e){return t.singleGallery(i)}}},[e("div",{directives:[{name:"lazy",rawName:"v-lazy:background-image",value:"/uploads/".concat(i.image),expression:"`/uploads/${galleryItem.image}`",arg:"background-image"}],staticClass:"img"}),t._v(" "),e("div",{staticClass:"content-overlay"},[e("div",{staticClass:"content"},[e("div",{staticClass:"links"},[i.video_link?e("a",{staticClass:"img-popup image-preview",attrs:{href:"#"}},[e("i",{staticClass:"fas fa-video"})]):e("a",{staticClass:"img-popup image-preview"},[e("i",{staticClass:"far fa-image"})])]),t._v(" "),e("div",{staticClass:"info"},[e("h4",{staticClass:"project-name"},[t._v(t._s(i.title)+"\n                        ")])])])])])])])})),0),t._v(" "),e("el-dialog",{attrs:{visible:t.galleryDialog,title:t.galleryContent.title,width:"80%",center:""},on:{"update:visible":function(e){t.galleryDialog=e}}},[e("div",{staticClass:"text-center"},[t.galleryContent.video_link?e("div",[e("iframe",{attrs:{width:"560",height:"315",src:"https://www.youtube.com/embed/".concat(t.galleryContent.video_link),title:"YouTube video player",frameborder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:""}})]):e("div",[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:"/uploads/".concat(t.galleryContent.image),expression:"`/uploads/${galleryContent.image}`"}],attrs:{alt:""}})])])])],1)])])])}),[],!1,null,null,null).exports}}]);