{"version":3,"sources":["main.js"],"names":["phantrang","$","find","parent","hide","ClickAjaxProduct","on","e","pageurl","preventDefault","this","attr","ajax","url","data","isajax","success","html","console","log","length","window","location","history","pushState","path","clickPhoneDetail","button","getPhone","width","img360","each","img","idBox","pannellum","viewer","type","panorama","autoLoad","menuScrollGt","mapping","mobileWrapper","mobileMethod","desktopWrapper","desktopMethod","breakpoint","heightHeader","outerHeight","sticky","topSpacing","zIndex","setTimeout","activescroll","scroll","active","offset","click","toggleClass","heightBanner","scrollTop","addClass","removeClass","clickHambuger","document","ready","mappingMenu","swiperInit","setBackgroundElement","header","search","addEventListener","searchRef","querySelector","contains","target","matches","classList","remove","focus","background","css","background-image","background-repeat","background-size","Swiper","slidesPerView","loop","autoplay","delay","effect","speed","laze","slidesPerColumnFill","pagination","el","clickable","navigation","nextEl","prevEl","spaceBetween","observer","observeParents","breakpoints","576","768","1024","1280","1200","575","ThumbProject","direction","ThumbDoiTac","thumbs","swiper","slidesPerColumn","slidesPerGroup","ThumbHistory","ThumbCongTrinh","ListCategory","slideIndexActive","index","hasClass","slideTo"],"mappings":"AAAA,aAmBA,SAASA,YACRC,EAAE,gBACAC,KAAK,eACLA,KAAK,+DACLC,SACAC,OAGH,SAASC,mBACRJ,EAAE,QAAQK,GAAG,QAAS,aAAc,SAAUC,GAI9C,IAAqBC,EAHpBD,EAAEE,iBAGkBD,EAFRP,EAAES,MAAMC,KAAK,QAGzBV,EAAEW,KAAK,CACNC,IAAKL,EACLM,KAAM,CACLC,QAAQ,GAETC,QAAS,SAAUF,GAClBb,EAAE,iBAAiBgB,KAAKhB,EAAEa,GAAMZ,KAAK,iBAAiBe,QACtDC,QAAQC,IAAIlB,EAAEa,GAAMZ,KAAK,eAAee,QACxChB,EAAE,uBAAuBgB,KACxBhB,EAAEa,GAAMZ,KAAK,uBAAuBe,QAErChB,EAAE,qBAAqBgB,KACtBhB,EAAEa,GAAMZ,KAAK,qBAAqBe,QAE/BhB,EAAEa,GAAMZ,KAAK,eA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U,CACTC,MAAO,MAERE,MAAO,IACPM,WAAY,CACXC,OAAQ,sDACRC,OAAQ,uDAETI,YAAa,CACZM,IAAK,CACJT,aAAc,GACdd,cAAe,GAEhBoB,KAAM,CACLN,aAAc,GACdd,cAAe,GAEhBqB,KAAM,CACLP,aAAc,GACdd,cAAe,OAwCfiC,GAnCgB,IAAIlC,OACvB,2DACA,CACCe,aAAc,GACdT,MAAO,IACPL,cAAe,EACf2B,OAAQ,CACPC,OAAQI,KAIPD,EAAe,IAAIhC,OAAO,wCAAyC,CACtEC,cAAe,IACfc,aAAc,GACdT,MAAO,IACPM,WAAY,CACXC,OAAQ,iCACRC,OAAQ,kCAETI,YAAa,CACZM,IAAK,CACJT,aAAc,GACdd,cAAe,GAEhBoB,KAAM,CACLN,aAAc,GACdd,cAAe,GAEhBqB,KAAM,CACLP,aAAc,GACdd,cAAe,MAKC,IAAID,OAAO,uCAAwC,CACrEC,cAAe,IACfc,aAAc,EACdT,MAAO,IACPY,YAAa,CACZE,IAAK,CACJL,aAAc,EACdd,cAAe,KAEhBqB,KAAM,CACLP,aAAc,EACdd,cAAe,OAIgB,GAA9BpF,EAAE,kBAAkBmB,QACvB+B,WAAW,WACV,IAAIoE,EACJtH,EAAE,gCAAgC8B,KAAK,SAAUyF,GAChDvH,EAAES,MAAMC,KAAK,mBAAoB6G,GAC7BvH,EAAES,MAAMR,KAAK,aAAauH,SAAS,YACtCF,EAAmBtH,EAAES,MAAMC,KAAK,uBAG9B4G,EAAmB,GAAKtH,EAAEoB,QAAQQ,QACrCyF,EAAaI,QAAQH,IAIpB,KAEiB,IAAInC,OACxB,6DACA,CACCe,aAAc,GACdT,MAAO,IACPL,cAAe","file":"main.min.js","sourcesContent":["$(document).ready(function () {\n\tsetTimeout(() => {\n\t\t$(\".wrap-lazy-slide\").addClass(\"active\");\n\t}, 200);\n\t// header\n\tmappingMenu();\n\t// swiper\n\tswiperInit();\n\tsetBackgroundElement();\n\t//New\n\theader.search();\n\tmenuScrollGt();\n\timg360();\n\tclickPhoneDetail();\n\tclickHambuger();\n\tClickAjaxProduct();\n\tphantrang();\n});\n/*==================== Phan Trang ====================*/\nfunction phantrang() {\n\t$(\".modulepager\")\n\t\t.find(\".pagination\")\n\t\t.find(\"li>a.NextPage, li>a.LastPage, li>a.BackPage, li>a.FirstPage\")\n\t\t.parent()\n\t\t.hide();\n}\n/*==================== Click Ajax ====================*/\nfunction ClickAjaxProduct() {\n\t$(\"body\").on(\"click\", \"a.ajaxlink\", function (e) {\n\t\te.preventDefault();\n\t\tProcessAjax($(this).attr(\"href\"));\n\t});\n\tfunction ProcessAjax(pageurl) {\n\t\t$.ajax({\n\t\t\turl: pageurl,\n\t\t\tdata: {\n\t\t\t\tisajax: false,\n\t\t\t},\n\t\t\tsuccess: function (data) {\n\t\t\t\t$(\".ajaxresponse\").html($(data).find(\".ajaxresponse\").html());\n\t\t\t\tconsole.log($(data).find(\".pagination\").html());\n\t\t\t\t$(\".ajaxfilterresponse\").html(\n\t\t\t\t\t$(data).find(\".ajaxfilterresponse\").html()\n\t\t\t\t);\n\t\t\t\t$(\".ajaxresponsewrap\").html(\n\t\t\t\t\t$(data).find(\".ajaxresponsewrap\").html()\n\t\t\t\t);\n\t\t\t\tif ($(data).find(\".pagination\").length > 0) {\n\t\t\t\t\t$(\".pagination\").html($(data).find(\".pagination\").html());\n\t\t\t\t} else {\n\t\t\t\t\t$(\".pagination\").html(\"\");\n\t\t\t\t}\n\t\t\t},\n\t\t});\n\t\t//to change the browser URL to 'pageurl'\n\t\tif (pageurl != window.location) {\n\t\t\twindow.history.pushState(\n\t\t\t\t{\n\t\t\t\t\tpath: pageurl,\n\t\t\t\t},\n\t\t\t\t\"\",\n\t\t\t\tpageurl\n\t\t\t);\n\t\t}\n\t}\n}\n/*==================== Click Phone ====================*/\nfunction clickPhoneDetail() {\n\tlet button = $(\".product-content-detail .btn-contact\");\n\tlet getPhone = $(\".getPhone\").attr(\"data-phone\");\n\tif ($(window).width() >= 1280) {\n\t\tbutton.attr(\"href\", \"javascrip:;\");\n\t\tbutton.attr(\"data-fancybox\", \"form\");\n\t\tbutton.attr(\"data-src\", \"#modal-popup-phone\");\n\t} else {\n\t\tbutton.attr(\"href\", \"tel: +84\" + getPhone);\n\t}\n}\n/*==================== 360 ====================*/\nfunction img360() {\n\t$(\".img-3d\").each(function () {\n\t\tlet img = $(this).attr(\"data-3d\");\n\t\tlet idBox = $(this).attr(\"id\");\n\t\tconsole.log(idBox);\n\t\tvar tabView = pannellum.viewer(idBox, {\n\t\t\ttype: \"equirectangular\",\n\t\t\tpanorama: img,\n\t\t\tautoLoad: true,\n\t\t});\n\t});\n}\n/*==================== Menu Scroll Gt ====================*/\nfunction menuScrollGt() {\n\tlet mappingMenuGt = $(\".zone-tab-1 li\").mapping({\n\t\tmobileWrapper: \".category-page-gt .list-menu-page\",\n\t\tmobileMethod: \"appendTo\",\n\t\tdesktopWrapper: \".zone-tab-1 ul\",\n\t\tdesktopMethod: \"appendTo\",\n\t\tbreakpoint: 1280,\n\t});\n\tlet heightHeader = $(\"header\").outerHeight();\n\tif ($(window).width() >= 1280) {\n\t\t$(\".zone-tab-gt\").sticky({\n\t\t\ttopSpacing: heightHeader,\n\t\t\tzIndex: 999,\n\t\t});\n\t\tsetTimeout(() => {\n\t\t\t$(\".zone-tab-gt\").activescroll({\n\t\t\t\tscroll: \"scroll\",\n\t\t\t\tactive: \"active\",\n\t\t\t\toffset: 150,\n\t\t\t});\n\t\t}, 2000);\n\t} else {\n\t\t$(\".category-page-gt\").activescroll({\n\t\t\tscroll: \"scroll\",\n\t\t\tactive: \"active\",\n\t\t\toffset: 60,\n\t\t});\n\t}\n\t$(\".category-page-gt .title-header\").click(function () {\n\t\t$(this).parent().toggleClass(\"active\");\n\t});\n\tlet heightBanner = $(\".banner__pages\").outerHeight();\n\t$(window).scroll(function () {\n\t\tlet checkScroll = $(this).scrollTop();\n\t\tif (checkScroll > heightBanner) {\n\t\t\t$(\".category-page-gt\").addClass(\"show-p\");\n\t\t} else {\n\t\t\t$(\".category-page-gt\").removeClass(\"show-p\");\n\t\t}\n\t});\n}\n/*==================== Hambuger ====================*/\nfunction clickHambuger(e) {\n\t$(\".hambuger\").on(\"click\", function () {\n\t\t$(this).toggleClass(\"active\");\n\t\t$(\".header-mobile\").toggleClass(\"active\");\n\t\t$(\".overlay\").toggleClass(\"active\");\n\t\t$(\"body\").toggleClass(\"disable\");\n\t});\n\t$(\".overlay\").click(function () {\n\t\t$(\".header-mobile\").removeClass(\"active\");\n\t\t$(\".hambuger\").removeClass(\"active\");\n\t\t$(this).removeClass(\"active\");\n\t});\n}\n/*==================== JS Other ====================*/\n\nlet header = {\n\tsearch: function () {\n\t\tdocument.addEventListener('click', function (e) {\n\t\t\tconst searchRef = document.querySelector('.header-search')\n\t\t\tif (\n\t\t\t\t!searchRef.contains(e.target) &&\n\t\t\t\t!e.target.matches(\".header-search\")\n\t\t\t) {\n\t\t\t\tsearchRef.classList.remove(\"active\");\n\t\t\t}\n\t\t})\n\t\t$(\".header-search\").on(\"click\", function () {\n\t\t\t$(this).addClass('active')\n\t\t\t$('.header-search input').focus()\n\t\t});\n\t},\n};\n\nfunction mappingMenu() {\n\tlet search = $(\"header nav .header-top .header-search\").mapping({\n\t\tmobileWrapper: \"header .list-menu-right\",\n\t\tmobileMethod: \"appendTo\",\n\t\tdesktopWrapper: \"header nav .header-top \",\n\t\tdesktopMethod: \"prependTo\",\n\t\tbreakpoint: 1024,\n\t});\n\tlet Language = $(\n\t\t\"header nav .header-top .header-location-phone .language\"\n\t).mapping({\n\t\tmobileWrapper: \"header .header-mobile\",\n\t\tmobileMethod: \"prependTo\",\n\t\tdesktopWrapper: \"header nav .header-top .header-location-phone\",\n\t\tdesktopMethod: \"appendTo\",\n\t\tbreakpoint: 1024,\n\t});\n\tif ($(window).width() <= 1024) {\n\t\tlet mainMenu = $(\"header .list-menu-left ul\").mapping({\n\t\t\tmobileWrapper: \"header .header-mobile\",\n\t\t\tmobileMethod: \"appendTo\",\n\t\t\tdesktopWrapper: \"header .list-menu-left \",\n\t\t\tdesktopMethod: \"appendTo\",\n\t\t\tbreakpoint: 1024,\n\t\t});\n\t\tlet mainMenu2 = $(\"header .list-menu-right ul\").mapping({\n\t\t\tmobileWrapper: \"header .header-mobile\",\n\t\t\tmobileMethod: \"appendTo\",\n\t\t\tdesktopWrapper: \"header .list-menu-right\",\n\t\t\tdesktopMethod: \"appendTo\",\n\t\t\tbreakpoint: 1024,\n\t\t});\n\t}\n}\n//\nfunction setBackgroundElement() {\n\t$(\"[setbackground]\").each(function () {\n\t\tvar background = $(this).attr(\"setbackground\");\n\t\t$(this).css({\n\t\t\t\"background-image\": \"url(\" + background + \")\",\n\t\t\t\"background-repeat\": \"no-repeat\",\n\t\t\t\"background-size\": \"cover\",\n\t\t});\n\t});\n}\n// SwiperInit\nfunction swiperInit() {\n\tvar bannerHome = new Swiper(\".banner-home .swiper-container\", {\n\t\tslidesPerView: 1,\n\t\tloop: true,\n\t\tautoplay: {\n\t\t\tdelay: 3000,\n\t\t},\n\t\teffect: \"fade\",\n\t\tspeed: 1000,\n\t\tlaze: true,\n\t\tslidesPerColumnFill: \"row\",\n\t\tpagination: {\n\t\t\tel: \".banner-home .swiper-pagination\",\n\t\t\tclickable: true,\n\t\t},\n\t\tnavigation: {\n\t\t\tnextEl: \".banner-home .btn-next\",\n\t\t\tprevEl: \".banner-home .btn-prev\",\n\t\t},\n\t});\n\n\tvar SectionHome1 = new Swiper(\".section-home-1 .swiper-container\", {\n\t\tslidesPerView: 2,\n\t\tspeed: 300,\n\t\tspaceBetween: 20,\n\t\tslidesPerColumnFill: \"row\",\n\t\tautoplay: {\n\t\t\tdelay: 1500,\n\t\t},\n\t\tobserver: true,\n\t\tobserveParents: true,\n\t\tnavigation: {\n\t\t\tnextEl: \".section-home-1 .btn-next\",\n\t\t\tprevEl: \".section-home-1 .btn-prev\",\n\t\t},\n\t\tbreakpoints: {\n\t\t\t576: {\n\t\t\t\tspaceBetween: 30,\n\t\t\t\tslidesPerView: 3,\n\t\t\t},\n\t\t\t768: {\n\t\t\t\tspaceBetween: 30,\n\t\t\t\tslidesPerView: 4,\n\t\t\t},\n\t\t\t1024: {\n\t\t\t\tspaceBetween: 30,\n\t\t\t\tslidesPerView: 5,\n\t\t\t},\n\t\t\t1280: {\n\t\t\t\tspaceBetween: 60,\n\t\t\t\tslidesPerView: 6,\n\t\t\t},\n\t\t},\n\t});\n\tvar SectionHome2 = new Swiper(\".section-home-2 .swiper-container\", {\n\t\tslidesPerView: 1,\n\t\tspeed: 300,\n\t\tspaceBetween: 15,\n\t\tnavigation: {\n\t\t\tnextEl: \".section-home-2 .btn-next-slide\",\n\t\t},\n\t\tbreakpoints: {\n\t\t\t576: {\n\t\t\t\tspaceBetween: 30,\n\t\t\t\tslidesPerView: 2,\n\t\t\t},\n\t\t\t1200: {\n\t\t\t\tspaceBetween: 30,\n\t\t\t\tslidesPerView: 2,\n\t\t\t},\n\t\t},\n\t});\n\tvar SectionProduct = new Swiper(\".sec-product-main .swiper-container\", {\n\t\tslidesPerView: 1,\n\t\tspeed: 300,\n\t\tspaceBetween: 30,\n\t\tnavigation: {\n\t\t\tnextEl: \".sec-product-main .btn-next\",\n\t\t\tprevEl: \".sec-product-main .btn-prev\",\n\t\t},\n\t\tbreakpoints: {\n\t\t\t575: {\n\t\t\t\tspaceBetween: 30,\n\t\t\t\tslidesPerView: 2,\n\t\t\t},\n\t\t\t1024: {\n\t\t\t\tspaceBetween: 30,\n\t\t\t\tslidesPerView: 3,\n\t\t\t},\n\t\t\t1280: {\n\t\t\t\tspaceBetween: 30,\n\t\t\t\tslidesPerView: 4,\n\t\t\t},\n\t\t},\n\t});\n\t// home Project\n\tvar ThumbProject = new Swiper(\n\t\t\".section-product-main .wrap-right-img .swiper-container\",\n\t\t{\n\t\t\tslidesPerView: 2.5,\n\t\t\tspaceBetween: 5,\n\t\t\tspeed: 1000,\n\t\t\tobserver: true,\n\t\t\tobserveParents: true,\n\t\t\tslidesPerColumnFill: \"row\",\n\t\t\tdirection: \"horizontal\",\n\t\t\tbreakpoints: {\n\t\t\t\t768: {\n\t\t\t\t\tdirection: \"vertical\",\n\t\t\t\t\tslidesPerColumnFill: \"row\",\n\t\t\t\t\tslidesPerView: 4,\n\t\t\t\t\tspaceBetween: 1,\n\t\t\t\t},\n\t\t\t\t1024: {\n\t\t\t\t\tdirection: \"vertical\",\n\t\t\t\t\tslidesPerColumnFill: \"row\",\n\t\t\t\t\tslidesPerView: 4,\n\t\t\t\t\tspaceBetween: 1,\n\t\t\t\t},\n\t\t\t\t1280: {\n\t\t\t\t\tdirection: \"vertical\",\n\t\t\t\t\tslidesPerColumnFill: \"row\",\n\t\t\t\t\tslidesPerView: 5,\n\t\t\t\t\tspaceBetween: 1,\n\t\t\t\t},\n\t\t\t},\n\t\t}\n\t);\n\tvar MainProject = new Swiper(\n\t\t\".section-product-main .wrap-left-img .swiper-container\",\n\t\t{\n\t\t\tspaceBetween: 10,\n\t\t\tslidesPerView: 1,\n\t\t\tautoplay: {\n\t\t\t\tdelay: 2500,\n\t\t\t},\n\t\t\tnavigation: {\n\t\t\t\tnextEl: \".section-product-main .button-next\",\n\t\t\t\tprevEl: \".section-product-main .button-prev\",\n\t\t\t},\n\t\t\tthumbs: {\n\t\t\t\tswiper: ThumbProject,\n\t\t\t},\n\t\t}\n\t);\n\t// post other main\n\tvar SectionProduct = new Swiper(\".post-other-main .swiper-container\", {\n\t\tslidesPerView: 1.5,\n\t\tspeed: 300,\n\t\tautoplay: {\n\t\t\tdelay: 2500,\n\t\t},\n\t\tspaceBetween: 10,\n\t\tnavigation: {\n\t\t\tnextEl: \".post-other-main .btn-next\",\n\t\t\tprevEl: \".post-other-main .btn-prev\",\n\t\t},\n\t\tbreakpoints: {\n\t\t\t575: {\n\t\t\t\tspaceBetween: 30,\n\t\t\t\tslidesPerView: 2,\n\t\t\t},\n\t\t\t1024: {\n\t\t\t\tspaceBetween: 30,\n\t\t\t\tslidesPerView: 3,\n\t\t\t},\n\t\t},\n\t});\n\tvar SectionProduct = new Swiper(\".page-lien-he .swiper-container\", {\n\t\tslidesPerView: 1.4,\n\t\tslidesPerColumn: 1,\n\t\tslidesPerGroup: 1,\n\t\tspeed: 300,\n\t\tslidesPerColumnFill: \"row\",\n\t\tautoplay: {\n\t\t\tdelay: 2500,\n\t\t},\n\t\tspaceBetween: 10,\n\t\tbreakpoints: {\n\t\t\t575: {\n\t\t\t\tspaceBetween: 20,\n\t\t\t\tslidesPerView: 2,\n\t\t\t\tslidesPerColumn: 2,\n\t\t\t},\n\t\t\t1024: {\n\t\t\t\tspaceBetween: 20,\n\t\t\t\tslidesPerView: 3,\n\t\t\t\tslidesPerColumn: 2,\n\t\t\t},\n\t\t},\n\t});\n\tvar ThumbDoiTac = new Swiper(\n\t\t\".page-doi-tac .wrap-left-dt .wrap-img-dt .swiper-container\",\n\t\t{\n\t\t\tslidesPerView: 1.5,\n\t\t\tslidesPerColumn: 1,\n\t\t\tslidesPerGroup: 1,\n\t\t\tspeed: 300,\n\t\t\tnavigation: {\n\t\t\t\tnextEl: \".page-doi-tac .wrap-left-dt .btn-right\",\n\t\t\t\tprevEl: \".page-doi-tac .wrap-left-dt .btn-left\",\n\t\t\t},\n\t\t\tspaceBetween: 10,\n\t\t\tbreakpoints: {\n\t\t\t\t575: {\n\t\t\t\t\tspaceBetween: 0,\n\t\t\t\t\tslidesPerView: 3.5,\n\t\t\t\t\tslidesPerGroup: 0,\n\t\t\t\t},\n\t\t\t\t1024: {\n\t\t\t\t\tspaceBetween: 0,\n\t\t\t\t\tslidesPerView: 3,\n\t\t\t\t\tslidesPerColumn: 3,\n\t\t\t\t\tslidesPerGroup: 3,\n\t\t\t\t\tslidesPerColumnFill: \"row\",\n\t\t\t\t},\n\t\t\t\t1280: {\n\t\t\t\t\tspaceBetween: 0,\n\t\t\t\t\tslidesPerView: 4,\n\t\t\t\t\tslidesPerColumn: 3,\n\t\t\t\t\tslidesPerGroup: 4,\n\t\t\t\t\tslidesPerColumnFill: \"row\",\n\t\t\t\t},\n\t\t\t},\n\t\t}\n\t);\n\tvar MainDoiTac = new Swiper(\n\t\t\".page-doi-tac .wrap-right-dt .swiper-container\",\n\t\t{\n\t\t\tspaceBetween: 10,\n\t\t\tspeed: 500,\n\t\t\tslidesPerView: 1,\n\t\t\tthumbs: {\n\t\t\t\tswiper: ThumbDoiTac,\n\t\t\t},\n\t\t}\n\t);\n\tvar ThumbHistory = new Swiper(\".thumbnail-history-main .swiper-container\", {\n\t\tslidesPerView: 2,\n\t\tspaceBetween: 10,\n\t\tautoplay: {\n\t\t\tdelay: 1500,\n\t\t},\n\t\tspeed: 300,\n\t\tnavigation: {\n\t\t\tnextEl: \".thumbnail-history-main .btn-next\",\n\t\t\tprevEl: \".thumbnail-history-main .btn-prev\",\n\t\t},\n\t\tbreakpoints: {\n\t\t\t575: {\n\t\t\t\tspaceBetween: 60,\n\t\t\t\tslidesPerView: 3,\n\t\t\t},\n\t\t\t1024: {\n\t\t\t\tspaceBetween: 30,\n\t\t\t\tslidesPerView: 4,\n\t\t\t},\n\t\t\t1280: {\n\t\t\t\tspaceBetween: 130,\n\t\t\t\tslidesPerView: 5,\n\t\t\t},\n\t\t},\n\t});\n\tvar MainHistory = new Swiper(\".slide-main-history .swiper-container\", {\n\t\tspaceBetween: 10,\n\t\tspeed: 500,\n\t\tslidesPerView: 1,\n\t\tthumbs: {\n\t\t\tswiper: ThumbHistory,\n\t\t},\n\t});\n\tvar SlideStaff = new Swiper(\".wrap-item-staff .swiper-container\", {\n\t\tslidesPerView: 1.5,\n\t\tspaceBetween: 10,\n\t\tspeed: 300,\n\t\tnavigation: {\n\t\t\tnextEl: \".wrap-item-staff .btn-next\",\n\t\t\tprevEl: \".wrap-item-staff .btn-prev\",\n\t\t},\n\t\tbreakpoints: {\n\t\t\t575: {\n\t\t\t\tspaceBetween: 30,\n\t\t\t\tslidesPerView: 2,\n\t\t\t},\n\t\t\t768: {\n\t\t\t\tspaceBetween: 30,\n\t\t\t\tslidesPerView: 3,\n\t\t\t},\n\t\t\t1280: {\n\t\t\t\tspaceBetween: 30,\n\t\t\t\tslidesPerView: 4,\n\t\t\t},\n\t\t},\n\t});\n\tvar SlideCcgt = new Swiper(\".wrap-item-ccgt .swiper-container\", {\n\t\tslidesPerView: 2.5,\n\t\tspaceBetween: 10,\n\t\tspeed: 300,\n\t\tnavigation: {\n\t\t\tnextEl: \".wrap-item-ccgt .btn-next\",\n\t\t\tprevEl: \".wrap-item-ccgt .btn-prev\",\n\t\t},\n\t\tbreakpoints: {\n\t\t\t575: {\n\t\t\t\tspaceBetween: 60,\n\t\t\t\tslidesPerView: 3,\n\t\t\t},\n\t\t\t1024: {\n\t\t\t\tspaceBetween: 30,\n\t\t\t\tslidesPerView: 3,\n\t\t\t},\n\t\t\t1280: {\n\t\t\t\tspaceBetween: 30,\n\t\t\t\tslidesPerView: 6,\n\t\t\t},\n\t\t},\n\t});\n\tvar ThumbHistory = new Swiper(\".section-1-wrap-info .swiper-container\", {\n\t\tslidesPerView: 1.2,\n\t\tspaceBetween: 15,\n\t\tspeed: 300,\n\t\tpagination: {\n\t\t\tel: \".section-1-wrap-info .swiper-pagination\",\n\t\t\tclickable: true,\n\t\t},\n\t\tbreakpoints: {\n\t\t\t575: {\n\t\t\t\tspaceBetween: 30,\n\t\t\t\tslidesPerView: 2,\n\t\t\t},\n\t\t\t1024: {\n\t\t\t\tspaceBetween: 30,\n\t\t\t\tslidesPerView: 2,\n\t\t\t},\n\t\t\t1280: {\n\t\t\t\tspaceBetween: 30,\n\t\t\t\tslidesPerView: 3,\n\t\t\t},\n\t\t},\n\t});\n\t// Công trình\n\tvar ThumbCongTrinh = new Swiper(\n\t\t\".page-cong-trinh-detail .wrap-main-thumb .swiper-container\",\n\t\t{\n\t\t\tslidesPerView: 1.8,\n\t\t\tspaceBetween: 10,\n\t\t\tautoplay: {\n\t\t\t\tdelay: 1500,\n\t\t\t},\n\t\t\tspeed: 300,\n\t\t\tnavigation: {\n\t\t\t\tnextEl: \".page-cong-trinh-detail .wrap-main-thumb .btn-next\",\n\t\t\t\tprevEl: \".page-cong-trinh-detail .wrap-main-thumb .btn-prev\",\n\t\t\t},\n\t\t\tbreakpoints: {\n\t\t\t\t575: {\n\t\t\t\t\tspaceBetween: 20,\n\t\t\t\t\tslidesPerView: 3,\n\t\t\t\t},\n\t\t\t\t1024: {\n\t\t\t\t\tspaceBetween: 20,\n\t\t\t\t\tslidesPerView: 4,\n\t\t\t\t},\n\t\t\t\t1280: {\n\t\t\t\t\tspaceBetween: 20,\n\t\t\t\t\tslidesPerView: 5,\n\t\t\t\t},\n\t\t\t},\n\t\t}\n\t);\n\tvar MainCongTrinh = new Swiper(\n\t\t\".page-cong-trinh-detail .wrap-main-img .swiper-container\",\n\t\t{\n\t\t\tspaceBetween: 10,\n\t\t\tspeed: 500,\n\t\t\tslidesPerView: 1,\n\t\t\tthumbs: {\n\t\t\t\tswiper: ThumbCongTrinh,\n\t\t\t},\n\t\t}\n\t);\n\tvar ThumbHistory = new Swiper(\".other-project-main .swiper-container\", {\n\t\tslidesPerView: 1.2,\n\t\tspaceBetween: 15,\n\t\tspeed: 300,\n\t\tnavigation: {\n\t\t\tnextEl: \".other-project-main .btn-next\",\n\t\t\tprevEl: \".other-project-main .btn-prev\",\n\t\t},\n\t\tbreakpoints: {\n\t\t\t575: {\n\t\t\t\tspaceBetween: 30,\n\t\t\t\tslidesPerView: 2,\n\t\t\t},\n\t\t\t1024: {\n\t\t\t\tspaceBetween: 30,\n\t\t\t\tslidesPerView: 2,\n\t\t\t},\n\t\t\t1280: {\n\t\t\t\tspaceBetween: 30,\n\t\t\t\tslidesPerView: 3,\n\t\t\t},\n\t\t},\n\t});\n\t// product\n\tvar ListCategory = new Swiper(\".page-product-main .swiper-container\", {\n\t\tslidesPerView: 2.5,\n\t\tspaceBetween: 0,\n\t\tspeed: 300,\n\t\tbreakpoints: {\n\t\t\t768: {\n\t\t\t\tspaceBetween: 0,\n\t\t\t\tslidesPerView: 3.5,\n\t\t\t},\n\t\t\t1280: {\n\t\t\t\tspaceBetween: 0,\n\t\t\t\tslidesPerView: 6,\n\t\t\t},\n\t\t},\n\t});\n\tif ($(\".wrap-list-tab\").length == 1) {\n\t\tsetTimeout(() => {\n\t\t\tlet slideIndexActive;\n\t\t\t$(\".wrap-list-tab .swiper-slide\").each(function (index) {\n\t\t\t\t$(this).attr(\"data-slide-index\", index);\n\t\t\t\tif ($(this).find(\".item-tab\").hasClass(\"active\")) {\n\t\t\t\t\tslideIndexActive = $(this).attr(\"data-slide-index\");\n\t\t\t\t}\n\t\t\t});\n\t\t\tif (slideIndexActive > 4 && $(window).width() > 1280) {\n\t\t\t\tListCategory.slideTo(slideIndexActive);\n\t\t\t} else {\n\t\t\t\tListCategory.slideTo(slideIndexActive);\n\t\t\t}\n\t\t}, 500);\n\t}\n\tvar WrapGalleryImg = new Swiper(\n\t\t\".product-main-detail .wrap-gallery-image .swiper-container\",\n\t\t{\n\t\t\tspaceBetween: 10,\n\t\t\tspeed: 500,\n\t\t\tslidesPerView: 1,\n\t\t}\n\t);\n}\n"]}