{"version":3,"sources":["main.js"],"names":["$","APP","init","lozadInit","fancyboxInit","accordionInit","countUpInit","toggleSidebar","toggleBoxContent","projectInit","on","e","preventDefault","url","this","attr","window","open","each","wrap","fixed","header","backdrop","backToTop","buttonMenu","mobileWrap","buttonSearch","searchWrap","heightHeader","height","heightWindow","widthWindow","width","outerHeightWindow","outerHeight","fn","extend","toggleText","a","b","text","scrollTop","addClass","removeClass","animate","mapping","mobileWrapper","mobileMethod","desktopWrapper","desktopMethod","breakpoint","toggleDropdown","dropdown","dropdownToggle","dropdownMenu","toggleClass","parents","find","toggleMenu","toggleSearch","setBackground","css","sourceInfo","console","log","homeBanner","Swiper","loop","autoplay","delay","disableOnInteraction","pauseOnMouseEnter","speed","spaceBetween","observer","observeParents","lazy","loadPrevNext","grabCursor","effect","creativeEffect","prev","shadow","translate","next","navigation","nextEl","prevEl","pagination","el","clickable","homeCategoriesSlider","slidesPerView","breakpoints","homeProductSlider","homeProductSalesSlider","homeProjectSlider","slideChange","eq","realIndex","slideTo","index","grid","rows","homeNewsSlider","about5Slider","productDetailThumbsSlider","slideToClickedSlide","rewind","direction","productDetailTopSlider","thumbs","swiper","productOtherSlider","projectDetailThumbsSlider","projectDetailTopSlider","projectOtherSlider","recruitment3Slider","lozad","threshold","pictureObserver","backgroundObserver","observe","Fancybox","bind","showLoading","preload","infinite","parentEl","document","forms","mainClass","type","groupAttr","close","equalHeight","thisHeight","setTimeout","checkCookie","cookieName","getCookie","dataExp","data","setCookie","countStart","num","countUp","CountUp","separator","enableScrollSpy","scrollSpyDelay","scrollSpyOnce","error","elNumber","dataNumber","siblings","slideToggle","slideUp","checkHeight","id","replace","elm","heightContent","checkHeightContent","insertAfter"],"mappings":"AAAAA,GAAA,WACAC,IAAAC,OAGAC,YACAC,eACAC,gBACAC,cACAC,gBACAC,mBACAC,cAEAT,EAAA,gCAAAU,GAAA,SAAA,SAAAC,GACAA,EAAAC,iBACA,IAAAC,EAAAb,EAAAc,MAAAC,KAAA,QAEA,O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,gCAEA,CAEA,SAAAjC,cACAT,EAAA,sCAAAoK,YAAA,kCACA","file":"main.min.js","sourcesContent":["$(function () {\r\n\tAPP.init();\r\n\r\n\t// init\r\n\tlozadInit();\r\n\tfancyboxInit();\r\n\taccordionInit();\r\n\tcountUpInit();\r\n\ttoggleSidebar();\r\n\ttoggleBoxContent();\r\n\tprojectInit();\r\n\r\n\t$(\".share-facebook, .share-zalo\").on('click', function (e) {\r\n\t\te.preventDefault();\r\n\t\tvar url = $(this).attr('href');\r\n\t\twindow.open(url, \"popupWindow\", \"width=660,height=480,scrollbars=yes\");\r\n\t\treturn false;\r\n\t});\r\n\r\n\t// set height\r\n\t// setTimeout(() => {\r\n\t// \tequalHeight($('.item_height'))\r\n\t// }, 1000);\r\n\t$('.full-content table, .product-detail-full-content table').each(function () {\r\n\t\t$(this).wrap('<div class=\"table-responsive\"></div>');\r\n\t});\r\n});\r\n\r\n$(window).on('scroll', function () {\r\n\tAPP.fixed();\r\n});\r\n\r\n// variable\r\nvar header = $(\"header\"),\r\n\tbackdrop = $(\".backdrop\"),\r\n\tbackToTop = $(\".back-to-top\"),\r\n\tbuttonMenu = $(\"#buttonMenu\"),\r\n\tmobileWrap = $(\".mobile-wrap\"),\r\n\tbuttonSearch = $(\"header .button-search\"),\r\n\tsearchWrap = $(\".search-wrap\"),\r\n\theightHeader = $(\"header\").height(),\r\n\theightWindow = $(window).height(),\r\n\twidthWindow = $(window).width(),\r\n\touterHeightWindow = $(window).outerHeight();\r\n\r\n// toggleText\r\n$.fn.extend({\r\n\ttoggleText: function (a, b) {\r\n\t\treturn this.text(this.text() == b ? a : b);\r\n\t},\r\n});\r\n\r\nvar APP = {\r\n\tfixed: () => {\r\n\t\t// header\r\n\t\t$(window).scrollTop() > heightHeader\r\n\t\t\t? header.addClass(\"active\")\r\n\t\t\t: header.removeClass(\"active\");\r\n\t\t$(window).scrollTop() > (outerHeightWindow - heightHeader)\r\n\t\t\t? backToTop.addClass(\"active\")\r\n\t\t\t: backToTop.removeClass(\"active\");\r\n\t},\r\n\tbackdrop: () => {\r\n\t\tbackdrop.on('click', function () {\r\n\t\t\t$(this).removeClass('open');\r\n\t\t\tbuttonMenu.removeClass('open'); // remove button menu header\r\n\t\t\tmobileWrap.removeClass('open'); // remove mobile wrap\r\n\t\t\t$('.product-sidebar').removeClass('active'); // remove sidebar product\r\n\t\t\t$('body').removeClass('overflow-hidden');\r\n\t\t})\r\n\t},\r\n\tbackToTop: () => {\r\n\t\tbackToTop.on('click', function () {\r\n\t\t\t$('html, body').animate({ scrollTop: 0 }, 500);\r\n\t\t})\r\n\t},\r\n\tmapping: () => {\r\n\t\tconst mainMenu = $(\"header .navbar-nav\").mapping({\r\n\t\t\tmobileWrapper: \".mobile-wrap .navbar-nav-list\",\r\n\t\t\tmobileMethod: \"appendTo\",\r\n\t\t\tdesktopWrapper: \"header .header-bot\",\r\n\t\t\tdesktopMethod: \"appendTo\",\r\n\t\t\tbreakpoint: 1279.98,\r\n\t\t});\r\n\t\tconst phoneWrap = $(\"header .button-phone\").mapping({\r\n\t\t\tmobileWrapper: \".mobile-wrap .navbar-nav-list\",\r\n\t\t\tmobileMethod: \"insertAfter\",\r\n\t\t\tdesktopWrapper: \"header .header-top\",\r\n\t\t\tdesktopMethod: \"prependTo\",\r\n\t\t\tbreakpoint: 1279.98,\r\n\t\t});\r\n\t},\r\n\ttoggleDropdown: () => {\r\n\t\tconst dropdown = $(\".dropdown\"),\r\n\t\t\tdropdownToggle = $(\".dropdown-toggle\"),\r\n\t\t\tdropdownMenu = $(\".dropdown-menu\");\r\n\t\tdropdownToggle.on(\"click\", function () {\r\n\t\t\t$(this).toggleClass(\"active\");\r\n\t\t\t$(this).parents(dropdown).find(dropdownMenu).toggleClass(\"open\");\r\n\t\t});\r\n\t},\r\n\ttoggleMenu: () => {\r\n\t\tbuttonMenu.on(\"click\", function () {\r\n\t\t\t$(this).toggleClass(\"open\");\r\n\t\t\tmobileWrap.toggleClass('open');\r\n\t\t\tbackdrop.toggleClass('open');\r\n\t\t});\r\n\t},\r\n\ttoggleSearch: () => {\r\n\t\tbuttonSearch.on(\"click\", function () {\r\n\t\t\t$(this).toggleClass(\"open\");\r\n\t\t\tsearchWrap.toggleClass(\"open\");\r\n\t\t});\r\n\t},\r\n\tsetBackground: () => {\r\n\t\t$(\"[setBackground]\").each(function () {\r\n\t\t\t$(this).css(\r\n\t\t\t\t\"background-image\",\r\n\t\t\t\t\"url(\" + $(this).attr(\"setBackground\") + \")\"\r\n\t\t\t);\r\n\t\t});\r\n\t},\r\n\tsourceInfo: () => {\r\n\t\tconsole.log(\r\n\t\t\t\"%cNAM LONG\",\r\n\t\t\t\"font-size:100px;color:#1B75BC;text-shadow:0 1px 0 #00AEEF,0 2px 0 #00AEEF ,0 3px 0 #00AEEF ,0 4px 0 #00AEEF ,0 5px 0 #00AEEF ,0 6px 1px rgba(0,0,0,.1),0 0 5px rgba(0,0,0,.1),0 1px 3px rgba(0,0,0,.3),0 3px 5px rgba(0,0,0,.2),0 5px 10px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.2),0 20px 20px rgba(0,0,0,.15);\"\r\n\t\t);\r\n\t\tconsole.log(\r\n\t\t\t\"%c NAM LONG %c - Nam Long in Viet Nam\",\r\n\t\t\t\"border-radius: 2px; padding: 3px; background: #E81E27; color: #fff\",\r\n\t\t\t\"color: #E81E27\"\r\n\t\t);\r\n\t},\r\n\tinit: () => {\r\n\t\tAPP.backdrop();\r\n\t\tAPP.backToTop();\r\n\t\tAPP.mapping();\r\n\t\tAPP.toggleDropdown();\r\n\t\tAPP.toggleMenu();\r\n\t\tAPP.toggleSearch();\r\n\t\tAPP.setBackground();\r\n\t\tAPP.sourceInfo();\r\n\t}\r\n}\r\n\r\nconst homeBanner = new Swiper(\".home-banner .swiper\", {\r\n\tloop: true,\r\n\tautoplay: {\r\n\t\tdelay: 5000,\r\n\t\tdisableOnInteraction: false,\r\n\t\tpauseOnMouseEnter: true,\r\n\t},\r\n\tspeed: 1000,\r\n\tspaceBetween: 0,\r\n\tobserver: true,\r\n\tobserveParents: true,\r\n\tlazy: {\r\n\t\tloadPrevNext: true,\r\n\t},\r\n\tgrabCursor: true,\r\n\teffect: \"creative\",\r\n\tcreativeEffect: {\r\n\t\tprev: {\r\n\t\t\tshadow: true,\r\n\t\t\ttranslate: [\"-20%\", 0, -1],\r\n\t\t},\r\n\t\t\tnext: {\r\n\t\t\ttranslate: [\"100%\", 0, 0],\r\n\t\t},\r\n\t},\r\n\tnavigation: {\r\n\t\tnextEl: \".home-banner .button-next\",\r\n\t\tprevEl: \".home-banner .button-prev\",\r\n\t},\r\n\tpagination: {\r\n\t\tel: \".home-banner .swiper-pagination\",\r\n\t\tclickable: true,\r\n\t},\r\n});\r\n\r\nconst homeCategoriesSlider = new Swiper(\".home-categories .swiper\", {\r\n\tloop: true,\r\n\tautoplay: {\r\n\t\tdelay: 5000,\r\n\t\tdisableOnInteraction: false,\r\n\t\tpauseOnMouseEnter: true,\r\n\t},\r\n\tspeed: 1000,\r\n\tspaceBetween: 5,\r\n\tslidesPerView: 2,\r\n\tobserver: true,\r\n\tobserveParents: true,\r\n\tgrabCursor: true,\r\n\tlazy: {\r\n\t\tloadPrevNext: true,\r\n\t},\r\n\tnavigation: {\r\n\t\tnextEl: \".home-categories .button-next\",\r\n\t\tprevEl: \".home-categories .button-prev\",\r\n\t},\r\n\tpagination: {\r\n\t\tel: \".home-categories .swiper-pagination\",\r\n\t\tclickable: true,\r\n\t},\r\n\tbreakpoints: {\r\n\t\t768: {\r\n\t\t\tslidesPerView: 3,\r\n\t\t\tspaceBetween: 10,\r\n\t\t},\r\n\t\t1024: {\r\n\t\t\tslidesPerView: 4,\r\n\t\t\tspaceBetween: 10,\r\n\t\t},\r\n\t\t1280: {\r\n\t\t\tslidesPerView: 5,\r\n\t\t\tspaceBetween: 10,\r\n\t\t},\r\n\t},\r\n});\r\n\r\nconst homeProductSlider = new Swiper(\".home-products .swiper\", {\r\n\tloop: true,\r\n\tautoplay: {\r\n\t\tdelay: 5000,\r\n\t\tdisableOnInteraction: false,\r\n\t\tpauseOnMouseEnter: true,\r\n\t},\r\n\tspeed: 1000,\r\n\tspaceBetween: 15,\r\n\tslidesPerView: 1,\r\n\tobserver: true,\r\n\tobserveParents: true,\r\n\tgrabCursor: true,\r\n\tlazy: {\r\n\t\tloadPrevNext: true,\r\n\t},\r\n\tnavigation: {\r\n\t\tnextEl: \".home-products .button-next\",\r\n\t\tprevEl: \".home-products .button-prev\",\r\n\t},\r\n\tpagination: {\r\n\t\tel: \".home-products .swiper-pagination\",\r\n\t\tclickable: true,\r\n\t},\r\n\tbreakpoints: {\r\n\t\t375: {\r\n\t\t\tslidesPerView: 2,\r\n\t\t\tspaceBetween: 10,\r\n\t\t},\r\n\t\t576: {\r\n\t\t\tslidesPerView: 2,\r\n\t\t\tspaceBetween: 20,\r\n\t\t},\r\n\t\t768: {\r\n\t\t\tslidesPerView: 3,\r\n\t\t\tspaceBetween: 30,\r\n\t\t},\r\n\t\t1024: {\r\n\t\t\tslidesPerView: 4,\r\n\t\t\tspaceBetween: 20,\r\n\t\t},\r\n\t\t1280: {\r\n\t\t\tslidesPerView: 4,\r\n\t\t\tspaceBetween: 30,\r\n\t\t},\r\n\t},\r\n});\r\n\r\nconst homeProductSalesSlider = new Swiper(\".home-product-sales .swiper\", {\r\n\tloop: true,\r\n\tautoplay: {\r\n\t\tdelay: 5000,\r\n\t\tdisableOnInteraction: false,\r\n\t\tpauseOnMouseEnter: true,\r\n\t},\r\n\tspeed: 1000,\r\n\tspaceBetween: 0,\r\n\tobserver: true,\r\n\tobserveParents: true,\r\n\tlazy: {\r\n\t\tloadPrevNext: true,\r\n\t},\r\n\tgrabCursor: true,\r\n\teffect: \"creative\",\r\n\tcreativeEffect: {\r\n\t\tprev: {\r\n\t\t\tshadow: true,\r\n\t\t\ttranslate: [\"-20%\", 0, -1],\r\n\t\t},\r\n\t\t\tnext: {\r\n\t\t\ttranslate: [\"100%\", 0, 0],\r\n\t\t},\r\n\t},\r\n\tnavigation: {\r\n\t\tnextEl: \".home-product-sales .button-next\",\r\n\t\tprevEl: \".home-product-sales .button-prev\",\r\n\t},\r\n\tpagination: {\r\n\t\tel: \".home-product-sales .swiper-pagination\",\r\n\t\tclickable: true,\r\n\t},\r\n});\r\n\r\nconst homeProjectSlider = new Swiper(\".home-project .swiper\", {\r\n\tloop: true,\r\n\tautoplay: {\r\n\t\tdelay: 5000,\r\n\t\tdisableOnInteraction: false,\r\n\t\tpauseOnMouseEnter: true,\r\n\t},\r\n\tspeed: 1000,\r\n\tspaceBetween: 0,\r\n\tobserver: true,\r\n\tobserveParents: true,\r\n\tlazy: {\r\n\t\tloadPrevNext: true,\r\n\t},\r\n\tgrabCursor: true,\r\n\teffect: \"creative\",\r\n\tcreativeEffect: {\r\n\t\tprev: {\r\n\t\t\tshadow: true,\r\n\t\t\ttranslate: [\"-20%\", 0, -1],\r\n\t\t},\r\n\t\t\tnext: {\r\n\t\t\ttranslate: [\"100%\", 0, 0],\r\n\t\t},\r\n\t},\r\n\tnavigation: {\r\n\t\tnextEl: \".home-project .button-next\",\r\n\t\tprevEl: \".home-project .button-prev\",\r\n\t},\r\n\tpagination: {\r\n\t\tel: \".home-project .swiper-pagination\",\r\n\t\tclickable: true,\r\n\t},\r\n\ton: {\r\n\t\tslideChange: function () {\r\n\t\t\t$(\".home-project .project-tab-item\").removeClass(\"active\");\r\n\t\t\t$(\".home-project .project-tab-item\").eq(this.realIndex).addClass(\"active\");\r\n\t\t},\r\n\t},\r\n});\r\n\r\n// tab project click event\r\n$(\".home-project .project-tab-item\").on(\"click\", function () {\r\n\t$(\".home-project .project-tab-item\").removeClass(\"active\");\r\n\t$(this).addClass(\"active\");\r\n\thomeProjectSlider.slideTo($(this).index()+1);\r\n});\r\n\r\n$('.home-brand .brand-slider').each(function (index) {\r\n\t$(this).find('.swiper').addClass('swiper-' + index);\r\n\t$(this).find('.button-next').addClass('button-next-' + index);\r\n\t$(this).find('.button-prev').addClass('button-prev-' + index);\r\n\t$(this).find('.swiper-pagination').addClass('swiper-pagination-' + index);\r\n\r\n\tconst homeBrandSlider = new Swiper(\".home-brand .swiper-\" + index, {\r\n\t\tloop: true,\r\n\t\tautoplay: {\r\n\t\t\tdelay: 5000,\r\n\t\t\tdisableOnInteraction: false,\r\n\t\t\tpauseOnMouseEnter: true,\r\n\t\t},\r\n\t\tspeed: 1000,\r\n\t\tslidesPerView: 2,\r\n\t\tgrid: {\r\n\t\t\trows: 2,\r\n\t\t},\r\n\t\tspaceBetween: 10,\r\n\t\tobserver: true,\r\n\t\tobserveParents: true,\r\n\t\tlazy: {\r\n\t\t\tloadPrevNext: true,\r\n\t\t},\r\n\t\tnavigation: {\r\n\t\t\tnextEl: \".home-brand .button-next-\"+index,\r\n\t\t\tprevEl: \".home-brand .button-prev-\"+index,\r\n\t\t},\r\n\t\tpagination: {\r\n\t\t\tel: \".home-brand .swiper-pagination-\"+index,\r\n\t\t\tclickable: true,\r\n\t\t},\r\n\t\tbreakpoints: {\r\n\t\t\t768: {\r\n\t\t\t\tslidesPerView: 2,\r\n\t\t\t\tspaceBetween: 20,\r\n\t\t\t},\r\n\t\t\t1280: {\r\n\t\t\t\tslidesPerView: 3,\r\n\t\t\t\tspaceBetween: 30,\r\n\t\t\t},\r\n\t\t},\r\n\t});\r\n});\r\n\r\nconst homeNewsSlider = new Swiper(\".home-news .swiper\", {\r\n\tloop: true,\r\n\tautoplay: {\r\n\t\tdelay: 5000,\r\n\t\tdisableOnInteraction: false,\r\n\t\tpauseOnMouseEnter: true,\r\n\t},\r\n\tspeed: 1000,\r\n\tspaceBetween: 10,\r\n\tobserver: true,\r\n\tobserveParents: true,\r\n\tlazy: {\r\n\t\tloadPrevNext: true,\r\n\t},\r\n\tnavigation: {\r\n\t\tnextEl: \".home-news .button-next\",\r\n\t\tprevEl: \".home-news .button-prev\",\r\n\t},\r\n\tpagination: {\r\n\t\tel: \".home-news .swiper-pagination\",\r\n\t\tclickable: true,\r\n\t},\r\n\tbreakpoints: {\r\n\t\t768: {\r\n\t\t\tslidesPerView: 2,\r\n\t\t\tspaceBetween: 20,\r\n\t\t},\r\n\t\t1280: {\r\n\t\t\tslidesPerView: 3,\r\n\t\t\tspaceBetween: 30,\r\n\t\t},\r\n\t},\r\n});\r\n\r\nconst about5Slider = new Swiper(\".about-5-section .swiper\", {\r\n\tloop: true,\r\n\tautoplay: {\r\n\t\tdelay: 5000,\r\n\t\tdisableOnInteraction: false,\r\n\t\tpauseOnMouseEnter: true,\r\n\t},\r\n\tspeed: 1000,\r\n\tspaceBetween: 10,\r\n\tslidesPerView: 1,\r\n\tobserver: true,\r\n\tobserveParents: true,\r\n\tgrabCursor: true,\r\n\tlazy: {\r\n\t\tloadPrevNext: true,\r\n\t},\r\n\tnavigation: {\r\n\t\tnextEl: \".about-5-section .button-next\",\r\n\t\tprevEl: \".about-5-section .button-prev\",\r\n\t},\r\n\tpagination: {\r\n\t\tel: \".about-5-section .swiper-pagination\",\r\n\t\tclickable: true,\r\n\t},\r\n\tbreakpoints: {\r\n\t\t768: {\r\n\t\t\tslidesPerView: 2,\r\n\t\t\tspaceBetween: 20,\r\n\t\t},\r\n\t\t1280: {\r\n\t\t\tslidesPerView: 3,\r\n\t\t\tspaceBetween: 30,\r\n\t\t},\r\n\t},\r\n});\r\n\r\nconst productDetailThumbsSlider = new Swiper(\".product-detail-slider .swiper-thumbs\", {\r\n\tslidesPerView: 4,\r\n\tspaceBetween: 10,\r\n\tslideToClickedSlide: true,\r\n\trewind: true,\r\n\tbreakpoints: {\r\n\t\t1024: {\r\n\t\t\tslidesPerView: 5,\r\n\t\t\tspaceBetween: 10,\r\n\t\t},\r\n\t\t1280: {\r\n\t\t\tdirection: \"vertical\",\r\n\t\t\tslidesPerView: 5,\r\n\t\t\tspaceBetween: 18,\r\n\t\t},\r\n\t},\r\n});\r\n\r\nconst productDetailTopSlider = new Swiper(\".product-detail-slider .swiper-top\", {\r\n\trewind: true,\r\n\tspaceBetween: 30,\r\n\tthumbs: {\r\n\t\tswiper: productDetailThumbsSlider,\r\n\t},\r\n\tnavigation: {\r\n\t\tnextEl: \".product-detail-slider .button-next\",\r\n\t\tprevEl: \".product-detail-slider .button-prev\",\r\n\t},\r\n});\r\n\r\nconst productOtherSlider = new Swiper(\".product-other-section .swiper\", {\r\n\tloop: true,\r\n\tautoplay: {\r\n\t\tdelay: 5000,\r\n\t\tdisableOnInteraction: false,\r\n\t\tpauseOnMouseEnter: true,\r\n\t},\r\n\tspeed: 1000,\r\n\tspaceBetween: 15,\r\n\tslidesPerView: 1,\r\n\tobserver: true,\r\n\tobserveParents: true,\r\n\tgrabCursor: true,\r\n\tlazy: {\r\n\t\tloadPrevNext: true,\r\n\t},\r\n\tnavigation: {\r\n\t\tnextEl: \".product-other-section .button-next\",\r\n\t\tprevEl: \".product-other-section .button-prev\",\r\n\t},\r\n\tpagination: {\r\n\t\tel: \".product-other-section .swiper-pagination\",\r\n\t\tclickable: true,\r\n\t},\r\n\tbreakpoints: {\r\n\t\t375: {\r\n\t\t\tslidesPerView: 2,\r\n\t\t\tspaceBetween: 10,\r\n\t\t},\r\n\t\t576: {\r\n\t\t\tslidesPerView: 2,\r\n\t\t\tspaceBetween: 20,\r\n\t\t},\r\n\t\t768: {\r\n\t\t\tslidesPerView: 3,\r\n\t\t\tspaceBetween: 30,\r\n\t\t},\r\n\t\t1024: {\r\n\t\t\tslidesPerView: 4,\r\n\t\t\tspaceBetween: 20,\r\n\t\t},\r\n\t\t1280: {\r\n\t\t\tslidesPerView: 4,\r\n\t\t\tspaceBetween: 30,\r\n\t\t},\r\n\t},\r\n});\r\n\r\nconst projectDetailThumbsSlider = new Swiper(\".project-detail-section .swiper-thumbs\", {\r\n\t// slidesPerView: 3,\r\n\tspaceBetween: 10,\r\n\tslideToClickedSlide: true,\r\n\trewind: true,\r\n\t// breakpoints: {\r\n\t// \t1024: {\r\n\t// \t\tslidesPerView: 3,\r\n\t// \t\tspaceBetween: 10,\r\n\t// \t},\r\n\t// \t1280: {\r\n\t// \t\tslidesPerView: 4,\r\n\t// \t\tspaceBetween: 10,\r\n\t// \t},\r\n\t// },\r\n});\r\n\r\nconst projectDetailTopSlider = new Swiper(\".project-detail-section .swiper-top\", {\r\n\tloop: true,\r\n\tspaceBetween: 30,\r\n\t// thumbs: {\r\n\t// \tswiper: projectDetailThumbsSlider,\r\n\t// },\r\n\tnavigation: {\r\n\t\tnextEl: \".project-detail-section .button-next\",\r\n\t\tprevEl: \".project-detail-section .button-prev\",\r\n\t},\r\n});\r\n\r\nconst projectOtherSlider = new Swiper(\".project-other-section .swiper\", {\r\n\tloop: true,\r\n\tautoplay: {\r\n\t\tdelay: 5000,\r\n\t\tdisableOnInteraction: false,\r\n\t\tpauseOnMouseEnter: true,\r\n\t},\r\n\tspeed: 1000,\r\n\tslidesPerView: 1,\r\n\tspaceBetween: 15,\r\n\tobserver: true,\r\n\tobserveParents: true,\r\n\tgrabCursor: true,\r\n\tlazy: {\r\n\t\tloadPrevNext: true,\r\n\t},\r\n\tnavigation: {\r\n\t\tnextEl: \".project-other-section .button-next\",\r\n\t\tprevEl: \".project-other-section .button-prev\",\r\n\t},\r\n\tpagination: {\r\n\t\tel: \".project-other-section .swiper-pagination\",\r\n\t\tclickable: true,\r\n\t},\r\n\tbreakpoints: {\r\n\t\t576: {\r\n\t\t\tslidesPerView: 2,\r\n\t\t\tspaceBetween: 20,\r\n\t\t},\r\n\t\t768: {\r\n\t\t\tslidesPerView: 2,\r\n\t\t\tspaceBetween: 30,\r\n\t\t},\r\n\t\t1024: {\r\n\t\t\tslidesPerView: 3,\r\n\t\t\tspaceBetween: 20,\r\n\t\t},\r\n\t\t1280: {\r\n\t\t\tslidesPerView: 3,\r\n\t\t\tspaceBetween: 30,\r\n\t\t},\r\n\t},\r\n});\r\n\r\nconst recruitment3Slider = new Swiper(\".recruitment-3-section .swiper\", {\r\n\tspeed: 1000,\r\n\tspaceBetween: 10,\r\n\t// grid: {\r\n\t// \trows: 2,\r\n\t// },\r\n\tobserver: true,\r\n\tobserveParents: true,\r\n\tlazy: {\r\n\t\tloadPrevNext: true,\r\n\t},\r\n\tnavigation: {\r\n\t\tnextEl: \".recruitment-3-section .button-next\",\r\n\t\tprevEl: \".recruitment-3-section .button-prev\",\r\n\t},\r\n\tpagination: {\r\n\t\tel: \".recruitment-3-section .swiper-pagination\",\r\n\t\tclickable: true,\r\n\t\t// renderBullet: function (index, className) {\r\n\t\t// \treturn '<span class=\"' + className + '\">' + (index + 1) + \"</span>\";\r\n\t\t// },\r\n\t},\r\n\tbreakpoints: {\r\n\t\t576: {\r\n\t\t\tslidesPerView: 2,\r\n\t\t\tgrid: {\r\n\t\t\t\trows: 2,\r\n\t\t\t},\r\n\t\t\tspaceBetween: 10,\r\n\t\t},\r\n\t\t768: {\r\n\t\t\tslidesPerView: 2,\r\n\t\t\tspaceBetween: 20,\r\n\t\t},\r\n\t\t1024: {\r\n\t\t\tslidesPerView: 3,\r\n\t\t\tspaceBetween: 20,\r\n\t\t},\r\n\t\t1280: {\r\n\t\t\tslidesPerView: 4,\r\n\t\t\tspaceBetween: 30,\r\n\t\t},\r\n\t},\r\n});\r\n\r\nfunction lozadInit() {\r\n\t// Initialize library to lazy load images\r\n\tconst observer = lozad('.lozad', {\r\n\t\tthreshold: 0.1,\r\n\t\t// enableAutoReload: true,\r\n\t})\r\n\r\n\t// Picture observer\r\n\t// with default `load` method\r\n\tconst pictureObserver = lozad('.lozad-picture', {\r\n\t\tthreshold: 0.1\r\n\t})\r\n\r\n\t// Background observer\r\n\t// with default `load` method\r\n\tconst backgroundObserver = lozad('.lozad-background', {\r\n\t\tthreshold: 0.1\r\n\t})\r\n\r\n\tobserver.observe()\r\n\tpictureObserver.observe()\r\n\tbackgroundObserver.observe()\r\n}\r\n\r\nfunction fancyboxInit() {\r\n\tFancybox.bind(\"[data-fancybox]\", {\r\n\t\tshowLoading: true,\r\n\t\tpreload: true,\r\n\t\tinfinite: false,\r\n\t\tparentEl: document.forms[0], // Element containing main structure\r\n\t\tmainClass: \"fancybox-wrapper\", // Custom class name or multiple space-separated class names for the container\r\n\t});\r\n\r\n\tFancybox.bind(\"a.popup-link\", {\r\n\t\tshowLoading: true,\r\n\t\ttype: \"iframe\",\r\n\t\tpreload: true,\r\n\t});\r\n\r\n\tFancybox.bind('[data-fancybox=\"single\"]', {\r\n\t\tgroupAttr: false,\r\n\t});\r\n\r\n\t$(\".btn-close-fancybox\").on(\"click\", function () {\r\n\t\tFancybox.close();\r\n\t});\r\n}\r\n\r\nfunction equalHeight(el) {\r\n\tvar height = 0;\r\n\t$(el).each(function () {\r\n\t\tvar thisHeight = $(this).height();\r\n\t\tif (thisHeight > height) {\r\n\t\t\theight = thisHeight;\r\n\t\t}\r\n\t\tsetTimeout(() => {\r\n\t\t\t$(el).height(height)\r\n\t\t}, 100)\r\n\t})\r\n}\r\n\r\nfunction checkCookie(cookieName) {\r\n\tlet cookie = getCookie(cookieName);\r\n\t$('.exp a').on('click', function () {\r\n\t\tvar dataExp = $(this).data('exp');\r\n\t\tsetCookie(\"exp\", dataExp, 1);\r\n\t});\r\n\tif (cookie != \"\") {\r\n\t} else {\r\n\t}\r\n}\r\n\r\nfunction countStart(el, num) {\r\n\tconst options = {\r\n\t\tseparator: '.',\r\n\t\tenableScrollSpy: true, // if true -> turn off countUp.start() after first scroll spy check\r\n\t\tscrollSpyDelay: 500, // delay for scroll spy check\r\n\t\tscrollSpyOnce: true,\r\n\t};\r\n\r\n\tlet countUp = new CountUp(el, num, options);\r\n\r\n\tif (!countUp.error) {\r\n\t\t// countUp.start(() => console.log('Complete!'));\r\n\t} else {\r\n\t\tconsole.error(countUp.error);\r\n\t}\r\n}\r\n\r\nfunction countUpInit() {\r\n\tconst elNumber = $(\".count-number-current\");\r\n\tif (elNumber)\r\n\t\telNumber.each(function (index) {\r\n\t\t\tlet dataNumber = $(elNumber[index]).data('number');\r\n\t\t\tcountStart(elNumber[index], dataNumber);\r\n\t\t})\r\n}\r\n\r\nfunction accordionInit() {\r\n\t$('.accordion-item').on('click', function () {\r\n\t\t$(this)\r\n\t\t\t.toggleClass('active')\r\n\t\t\t.siblings().removeClass('active')\r\n\t\t$(this)\r\n\t\t\t.find('.accordion-header').toggleClass('active')\r\n\t\t\t.parents('.accordion-item')\r\n\t\t\t.siblings().find('.accordion-header').removeClass('active')\r\n\t\t$(this)\r\n\t\t\t.find('.accordion-content').slideToggle()\r\n\t\t\t.parents('.accordion-item')\r\n\t\t\t.siblings().find('.accordion-content').slideUp('active')\r\n\t});\r\n}\r\n\r\nfunction toggleSidebar(){\r\n\r\n\t$('.toggle-product-sidebar').on('click', function(){\r\n\t\t$('.product-sidebar').toggleClass('active');\r\n\t\tbackdrop.toggleClass('open');\r\n\t\t$('body').toggleClass('overflow-hidden');\r\n\t});\r\n\r\n\r\n\t$('.product-sidebar .toggle-child').on('click', function(){\r\n\t\t$(this).next().slideToggle().parents('.has-child').toggleClass('active').siblings().removeClass('active').find('.toggle-child').next().slideUp();\r\n\t});\r\n}\r\n\r\nfunction toggleBoxContent(){\r\n\tcheckHeight($('.tabslet-content[id=\"tab-1\"]'));\r\n\t$('.tabslet-tabs li a').on('click', function(){\r\n\t\t$('.product-detail-toggle').removeClass('active');\r\n\t\t$('.product-detail-toggle-button').removeClass('active');\r\n\t\tlet id = $(this).attr('href').replace('#', '');\r\n\t\tsetTimeout(() => {\r\n\t\t\tcheckHeight($(`.tabslet-content[id='${id}']`));\r\n\t\t}, 200)\r\n\t});\r\n\t$('.product-detail-toggle-button').on('click', function(e){\r\n\t\te.preventDefault();\r\n\t\t$(this).toggleClass('active').parents('.button').prev('.product-detail-toggle').toggleClass('active');\r\n\t});\r\n}\r\n\r\nfunction checkHeight(elm){\r\n\tvar heightContent = $(elm).find('.product-detail-toggle').height();\r\n\tvar checkHeightContent = 250;\r\n\tif($(window).width() >= 768){\r\n\t\tcheckHeightContent = 350;\r\n\t}\r\n\tif($(window).width() >= 1280){\r\n\t\tcheckHeightContent = 665;\r\n\t}\r\n\tif(heightContent < checkHeightContent){\r\n\t\telm.find('.product-detail-toggle-button').addClass('opacity-0 pointer-events-none');\r\n\t}\r\n}\r\n\r\nfunction projectInit(){\r\n\t$('.project-list-section .zone-filter').insertAfter('.project-list-section .zone-nav')\r\n}\r\n"]}