{"version":3,"sources":["main.js"],"names":["App","initLazyLoad","LazyLoad","elements_selector","scrollActive","height","$","window","scrollTop","addClass","removeClass","mappingMenu","mapping","mobileWrapper","mobileMethod","desktopWrapper","desktopMethod","breakpoint","menuMobile","on","css","megaMenu","this","toggleClass","next","slideToggle","parent","siblings","find","slideUp","init","el","each","thisHeight","setTimeout","setBackgroundElement","background","attr","background-image","background-size","background-position","background-repeat","swiperInit","Swiper","speed","navigation","nextEl","prevEl","pagination","clickable","loop","autoplay","delay","slidesPerView","spaceBetween","breakpoints","576","768","1025","1200","slidesPerColumn","1024","1280","hopTacAlbum","loopedSlides","hopTacAlbumThumbs","slideToClickedSlide","direction","centeredSlides","touchRatio","length","controller","control","AboutNav","clickToScroll","e","preventDefault","$this","active","heightHeader","heightNavAbout","offset","top","animate","checkMenuScroll","header","outerHeight","removeAttr","showNav","sPCTTab","indexTab","shareSocial","jsSocials","showLabel","showCount","shares","share","logo","clickPrint","print","slideToggleQuyTrinh","hide","show","click","is","slideDown","slideToggleHoiDap","exportTable","table2excel","exclude","name","filename","preserveColors","fancyboxModal","console","log","fancybox","open","src","type","opts","afterShow","instance","current","appendTo","FormApplySlideToggle","changeInputQT","val","customNumberInput","n","parseInt","replace","toLocaleString","checkScrollContact","tocInit","toc","content","headings","addEventListener","sections","Array","from","document","querySelectorAll","observer","IntersectionObserver","entries","forEach","entry","section","target","sectionId","id","sectionLink","querySelector","concat","intersectionRatio","classList","add","remove","observe","toggleNavMobile","trigger","navHighlighter","scrollY","pageYOffset","heightNav","sectionTop","offsetTop","sectionHeight","offsetHeight","getAttribute","scrollToSection","slice","getElementById","scrollTo","behavior"],"mappings":"AAAA,aAAA,IAAMA,IAAM,CACXC,aAAc,WACb,OAAO,IAAIC,SAAS,CACnBC,kBAAmB,eAGrBC,aAAc,WACb,IAAIC,EAASC,EAAE,UAAUD,SACrBC,EAAEC,QAAQC,YAAcH,EAC3BC,EAAE,UAAUG,SAAS,UAErBH,EAAE,UAAUI,YAAY,WA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F,oBACA3H,OAAO,4CACPA,OAAO,oCACPA,OAAO,sCACPiI,UACA2B,kBACA/H,WAAW,WACV5B,EAAE,QAAQ4J,QAAQ,UAChB,OAGA5J,EAAE,gBAAgBgE,OAAS,EAAG,CAAA,IAUxB6F,eAAT,WACC,IAAIC,EAAU7J,OAAO8J,YACrB1B,SAASQ,QAAQ,SAAAxB,GAChB,IAAM5C,EAAezE,EAAE,UAAUgF,cAC3BgF,EAAYhK,EAAE,2BAA2BgF,cACzCiF,EAAa5C,EAAQ6C,WAAazF,EAAeuF,GACjDG,EAAgB9C,EAAQ+C,aACxBnB,EAAY5B,EAAQgD,aAAa,MAEnCP,EAAUG,GAAcH,GAAWG,EAAaE,EACnD3B,SAASY,cAAc,uBAAyBH,EAAY,KAAKM,UAAUC,IAAI,UAE/EhB,SAASY,cAAc,uBAAyBH,EAAY,KAAKM,UAAUE,OAAO,aAK5Ea,gBAAT,SAAyBjG,GACxBA,EAAEC,iBACF,IAAM2E,EAAYjI,KAAKqJ,aAAa,QAAQE,MAAM,GAE5CN,EADUzB,SAASgC,eAAevB,GACbiB,UAAYlK,EAAE,UAAUgF,cAAgBhF,EAAE,2BAA2BgF,cAChG/E,OAAOwK,SAAS,CACf7F,IAAKqF,EACLS,SAAU,YA/BNrC,SAAWG,SAASC,iBAAiB,oBAG3CxI,OAAOmI,iBAAiB,SAAUyB,gBAElC7J,EAAE,6BAA6Ba,GAAG,QAASyJ,iBA+B5C,SAASX,kBACR3J,EAAE,6BAA6Ba,GAAG,QAAS,WAC1Cb,EAAEgB,MAAMC,YAAY,UACpBjB,EAAE,4BAA4BmB","file":"main.min.js","sourcesContent":["const App = {\n\tinitLazyLoad: () => {\n\t\treturn new LazyLoad({\n\t\t\telements_selector: \".lazyload\"\n\t\t});\n\t},\n\tscrollActive: function () {\n\t\tlet height = $('header').height()\n\t\tif ($(window).scrollTop() > height) {\n\t\t\t$('header').addClass('active')\n\t\t} else {\n\t\t\t$('header').removeClass('active')\n\t\t}\n\t},\n\tmappingMenu: () => {\n\t\t$('header .bottom-wrapper .list-main-menu').mapping({\n\t\t\tmobileWrapper: 'header .mobile-wrap',\n\t\t\tmobileMethod: 'appendTo',\n\t\t\tdesktopWrapper: 'header .bottom-wrapper .right-wrap .main-account',\n\t\t\tdesktopMethod: 'insertBefore',\n\t\t\tbreakpoint: 1025\n\t\t})\n\t\t$('header .top-wrapper .main-social .list-social').mapping({\n\t\t\tmobileWrapper: 'header .mobile-wrap .list-main-menu',\n\t\t\tmobileMethod: 'insertAfter',\n\t\t\tdesktopWrapper: 'header .top-wrapper .main-social',\n\t\t\tdesktopMethod: 'appendTo',\n\t\t\tbreakpoint: 768\n\t\t})\n\t\t$('header .top-wrapper .main-phone').mapping({\n\t\t\tmobileWrapper: 'header .mobile-wrap .list-social',\n\t\t\tmobileMethod: 'insertAfter',\n\t\t\tdesktopWrapper: 'header .top-wrapper .main-wrap .main-search',\n\t\t\tdesktopMethod: 'insertBefore',\n\t\t\tbreakpoint: 576\n\t\t})\n\t\t$('.Module-206').mapping({\n\t\t\tmobileWrapper: 'header .mobile-wrap .main-phone',\n\t\t\tmobileMethod: 'insertAfter',\n\t\t\tdesktopWrapper: 'main',\n\t\t\tdesktopMethod: 'appendTo',\n\t\t\tbreakpoint: 576\n\t\t})\n\t},\n\tmenuMobile: () => {\n\t\t$('header .button-hambuger').on('click', function () {\n\t\t\tif ($('header .button-hambuger .burger-bt-inner span').css('opacity') == 1) {\n\t\t\t\t$('header .button-hambuger').addClass('close')\n\t\t\t\t$('header .mobile-wrap').addClass('active')\n\t\t\t} else if ($('header .button-hambuger .burger-bt-inner span').css('opacity') == 0) {\n\t\t\t\t$('header .button-hambuger').removeClass('close')\n\t\t\t\t$('header .mobile-wrap').removeClass('active')\n\t\t\t}\n\t\t})\n\t},\n\tmegaMenu: () => {\n\t\t$('.mobile-wrap .mega-menu > em').on('click', function () {\n\t\t\t$(this).toggleClass('active').next().slideToggle().parent().toggleClass('active')\n\t\t});\n\t\t$('.mobile-wrap .mega-menu .dropdown > em').on('click', function () {\n\t\t\t$(this).toggleClass('active').next().slideToggle().parent().toggleClass('active').siblings().removeClass('active').find('em').removeClass('active').next().slideUp();\n\t\t});\n\t},\n\tinit: () => {\n\t\tApp.initLazyLoad();\n\t\tApp.scrollActive();\n\t\tApp.mappingMenu();\n\t\tApp.menuMobile();\n\t\tApp.megaMenu();\n\t}\n}\n\nfunction height(el) {\n\tvar height = 0;\n\t$(el).each(function () {\n\t\tvar thisHeight = $(this).height();\n\t\tif (thisHeight > height) {\n\t\t\theight = thisHeight;\n\t\t}\n\t\tsetTimeout(() => {\n\t\t\t$(el).height(height)\n\t\t}, 100)\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-size\": \"cover\",\n\t\t\t\"background-position\": \"center center\"\n\t\t})\n\t})\n\t$('[setBackgroundRepeat]').each(function () {\n\t\tvar background = $(this).attr('setBackgroundRepeat')\n\t\t$(this).css({\n\t\t\t\"background-image\": \"url(\" + background + \")\",\n\t\t\t\"background-repeat\": \"repeat\"\n\t\t})\n\t})\n}\n\nfunction swiperInit() {\n\tnew Swiper('.acbl-banner-home .swiper-container', {\n\t\t// loop: true,\n\t\tspeed: 1000,\n\t\t// autoplay: {\n\t\t// \tdelay: 4500\n\t\t// },\n\t\tnavigation: {\n\t\t\tnextEl: '.acbl-banner-home .button-next',\n\t\t\tprevEl: '.acbl-banner-home .button-prev',\n\t\t},\n\t\tpagination: {\n\t\t\tel: '.acbl-banner-home .swiper-pagination',\n\t\t\tclickable: true,\n\t\t},\n\t});\n\tnew Swiper('.acbl-banner-child .swiper-container', {\n\t\tloop: true,\n\t\tspeed: 1000,\n\t\tautoplay: {\n\t\t\tdelay: 4500\n\t\t},\n\t\tnavigation: {\n\t\t\tnextEl: '.acbl-banner-child .button-next',\n\t\t\tprevEl: '.acbl-banner-child .button-prev',\n\t\t},\n\t});\n\tnew Swiper('.acbl-home-1 .swiper-container', {\n\t\tloop: true,\n\t\tspeed: 1000,\n\t\tautoplay: {\n\t\t\tdelay: 4500\n\t\t},\n\t\tnavigation: {\n\t\t\tnextEl: '.acbl-home-1 .button-next',\n\t\t\tprevEl: '.acbl-home-1 .button-prev',\n\t\t},\n\t\tslidesPerView: 6,\n\t\tspaceBetween: 20,\n\t\tbreakpoints: {\n\t\t\t576: {\n\t\t\t\tslidesPerView: 1,\n\t\t\t},\n\t\t\t768: {\n\t\t\t\tslidesPerView: 3,\n\t\t\t},\n\t\t\t1025: {\n\t\t\t\tslidesPerView: 3,\n\t\t\t},\n\t\t\t1200: {\n\t\t\t\tslidesPerView: 4,\n\t\t\t}\n\t\t}\n\t});\n\tnew Swiper('.acbl-home-2 .swiper-container', {\n\t\tloop: true,\n\t\tspeed: 1000,\n\t\tautoplay: {\n\t\t\tdelay: 4500\n\t\t},\n\t\tnavigation: {\n\t\t\tnextEl: '.acbl-home-2 .button-next',\n\t\t\tprevEl: '.acbl-home-2 .button-prev',\n\t\t},\n\t\tslidesPerView: 3,\n\t\tspaceBetween: 10,\n\t\tbreakpoints: {\n\t\t\t768: {\n\t\t\t\tslidesPerView: 1,\n\t\t\t},\n\t\t\t1200: {\n\t\t\t\tslidesPerView: 2,\n\t\t\t}\n\t\t}\n\t});\n\tnew Swiper('.acbl-home-4 .swiper-container', {\n\t\tspeed: 1000,\n\t\tnavigation: {\n\t\t\tnextEl: '.acbl-home-4 .button-next',\n\t\t\tprevEl: '.acbl-home-4 .button-prev',\n\t\t},\n\t\tslidesPerView: 6,\n\t\tspaceBetween: 20,\n\t\tbreakpoints: {\n\t\t\t576: {\n\t\t\t\tslidesPerView: 1,\n\t\t\t},\n\t\t\t768: {\n\t\t\t\tslidesPerView: 3,\n\t\t\t},\n\t\t\t1025: {\n\t\t\t\tslidesPerView: 3,\n\t\t\t},\n\t\t\t1200: {\n\t\t\t\tslidesPerView: 4,\n\t\t\t}\n\t\t}\n\t});\n\tnew Swiper('.acbl-home-5 .swiper-container', {\n\t\tloop: true,\n\t\tspeed: 1000,\n\t\tautoplay: {\n\t\t\tdelay: 4500\n\t\t},\n\t\tnavigation: {\n\t\t\tnextEl: '.acbl-home-5 .button-next',\n\t\t\tprevEl: '.acbl-home-5 .button-prev',\n\t\t},\n\t\tslidesPerView: 3,\n\t\tspaceBetween: 30,\n\t\tbreakpoints: {\n\t\t\t768: {\n\t\t\t\tslidesPerView: 1,\n\t\t\t},\n\t\t\t1025: {\n\t\t\t\tslidesPerView: 2,\n\t\t\t},\n\t\t\t1200: {\n\t\t\t\tslidesPerView: 3,\n\t\t\t}\n\t\t}\n\t});\n\tnew Swiper('.acbl-sp-ct-2-2 .swiper-container', {\n\t\tspeed: 1000,\n\t\tautoplay: {\n\t\t\tdelay: 4500\n\t\t},\n\t\tnavigation: {\n\t\t\tnextEl: '.acbl-sp-ct-2-2 .button-next',\n\t\t\tprevEl: '.acbl-sp-ct-2-2 .button-prev',\n\t\t},\n\t\tslidesPerView: 3,\n\t\tspaceBetween: 1,\n\t\tslidesPerColumn: 2,\n\t\tbreakpoints: {\n\t\t\t768: {\n\t\t\t\tslidesPerView: 1,\n\t\t\t},\n\t\t\t1025: {\n\t\t\t\tslidesPerView: 2,\n\t\t\t},\n\t\t\t1200: {\n\t\t\t\tslidesPerView: 3,\n\t\t\t}\n\t\t}\n\t});\n\tnew Swiper('.acbl-lien-he .slide-top .swiper-container', {\n\t\tspeed: 1000,\n\t\tautoplay: {\n\t\t\tdelay: 4500\n\t\t},\n\t\tnavigation: {\n\t\t\tnextEl: '.acbl-lien-he .slide-top .button-next',\n\t\t\tprevEl: '.acbl-lien-he .slide-top .button-prev',\n\t\t},\n\t\tslidesPerView: 3,\n\t\tspaceBetween: 30,\n\t\tbreakpoints: {\n\t\t\t768: {\n\t\t\t\tslidesPerView: 1,\n\t\t\t},\n\t\t\t1025: {\n\t\t\t\tslidesPerView: 2,\n\t\t\t},\n\t\t\t1200: {\n\t\t\t\tslidesPerView: 3,\n\t\t\t}\n\t\t}\n\t});\n\tnew Swiper('.acbl-lien-he .slide-bottom .swiper-container', {\n\t\tspeed: 1000,\n\t\t// loop: true,\n\t\tautoplay: {\n\t\t\tdelay: 4500\n\t\t},\n\t\tnavigation: {\n\t\t\tnextEl: '.acbl-lien-he .slide-bottom .button-next',\n\t\t\tprevEl: '.acbl-lien-he .slide-bottom .button-prev',\n\t\t},\n\t\tspaceBetween: 30,\n\t\tslidesPerView: 3,\n\t\tbreakpoints: {\n\t\t\t768: {\n\t\t\t\tslidesPerView: 1,\n\t\t\t},\n\t\t\t1025: {\n\t\t\t\tslidesPerView: 2,\n\t\t\t},\n\t\t\t1200: {\n\t\t\t\tslidesPerView: 3,\n\t\t\t}\n\t\t}\n\t});\n\tnew Swiper('.cho-thue-tai-chinh .swiper-container', {\n\t\t// loop: true,\n\t\t// speed: 1000,\n\t\t// autoplay: {\n\t\t// \tdelay: 4500\n\t\t// },\n\t\tnavigation: {\n\t\t\tnextEl: '.cho-thue-tai-chinh .button-next',\n\t\t\tprevEl: '.cho-thue-tai-chinh .button-prev',\n\t\t},\n\t\tslidesPerView: 3,\n\t\tspaceBetween: 30,\n\t\tbreakpoints: {\n\t\t\t576: {\n\t\t\t\tslidesPerView: 1,\n\t\t\t},\n\t\t\t768: {\n\t\t\t\tslidesPerView: 2,\n\t\t\t},\n\t\t\t1024: {\n\t\t\t\tslidesPerView: 2,\n\t\t\t},\n\t\t\t1280: {\n\t\t\t\tslidesPerView: 3,\n\t\t\t}\n\t\t}\n\t});\n\tnew Swiper('.hoptac-product .swiper-container', {\n\t\tnavigation: {\n\t\t\tnextEl: '.hoptac-product .button-next',\n\t\t\tprevEl: '.hoptac-product .button-prev',\n\t\t},\n\t\tslidesPerView: 3,\n\t\tspaceBetween: 30,\n\t\tslidesPerColumn: 2,\n\t\tbreakpoints: {\n\t\t\t576: {\n\t\t\t\tslidesPerView: 1,\n\t\t\t},\n\t\t\t1025: {\n\t\t\t\tslidesPerView: 2,\n\t\t\t},\n\t\t\t1200: {\n\t\t\t\tslidesPerView: 3,\n\t\t\t}\n\t\t}\n\t});\n\tvar hopTacAlbum = new Swiper('.hoptac-album .slide-top .swiper-container', {\n\t\tslidesPerView: 1,\n\t\tspaceBetween: 10,\n\t\tloop: true,\n\t\tloopedSlides: 5,\n\t});\n\tvar hopTacAlbumThumbs = new Swiper('.hoptac-album .slide-thumbs .swiper-container', {\n\t\tloop: true,\n\t\tloopedSlides: 5,\n\t\tspaceBetween: 10,\n\t\tslidesPerView: 5,\n\t\tslideToClickedSlide: true,\n\t\tdirection: 'vertical',\n\t\tnavigation: {\n\t\t\tnextEl: '.hoptac-album .button-next',\n\t\t\tprevEl: '.hoptac-album .button-prev',\n\t\t},\n\t\tbreakpoints: {\n\t\t\t576: {\n\t\t\t\tslidesPerView: 3,\n\t\t\t},\n\t\t\t1024: {\n\t\t\t\tslidesPerView: 4,\n\t\t\t\tcenteredSlides: true,\n\t\t\t\ttouchRatio: 0.2,\n\t\t\t\tdirection: 'horizontal',\n\t\t\t},\n\t\t\t1280: {\n\t\t\t\tslidesPerView: 5,\n\t\t\t}\n\t\t},\n\t});\n\tif ($('.hoptac-album').length > 0) {\n\t\thopTacAlbum.controller.control = hopTacAlbumThumbs;\n\t\thopTacAlbumThumbs.controller.control = hopTacAlbum;\n\t}\n}\n\nlet AboutNav = {\n\tclickToScroll: () => {\n\t\t$('.about-page .acbl-nav.about ul li.data-nav a').on('click', function (e) {\n\t\t\te.preventDefault();\n\t\t\tvar $this = $(this).parent(); // current li\n\t\t\t$this.addClass('active').siblings().removeClass('active')\n\t\t\tvar active = $this.attr('data-nav');\n\t\t\tvar heightHeader = $('header').height();\n\t\t\tvar heightNavAbout = $('.about-page .acbl-nav.about').height();\n\t\t\tvar offset = $('.about-page section[data-section=' + active + ']').offset().top - heightHeader - heightNavAbout\n\t\t\t$(\"html, body\").animate({\n\t\t\t\tscrollTop: offset\n\t\t\t}, 0);\n\t\t})\n\t},\n\tcheckMenuScroll: () => {\n\t\tvar scrollTop = $(window).scrollTop(),\n\t\t\theader = $('header').outerHeight(),\n\t\t\toffset = $('.about-page .acbl-nav.about').offset().top\n\t\tif (((offset - header) - scrollTop) <= 0) {\n\t\t\t$('.about-page .acbl-nav.about').addClass('active').css({\n\t\t\t\t\"top\": (header - 1) + \"px\"\n\t\t\t})\n\t\t} else {\n\t\t\t$('.about-page .acbl-nav.about').removeClass('active').removeAttr('style')\n\t\t}\n\t},\n\tscrollActive: () => {\n\t\t$('.about-page .acbl-nav.about ul li.data-nav').each(function () {\n\t\t\tlet active = $(this).attr('data-nav')\n\t\t\tlet offset = $('.about-page section[data-section=' + active + ']').offset().top - $('header').height() - $('.about-page .acbl-nav.about').height() - 100\n\t\t\tif ($(window).scrollTop() >= offset) {\n\t\t\t\t$(this).addClass('active').siblings().removeClass('active')\n\t\t\t}\n\t\t});\n\t},\n\tshowNav: () => {\n\t\t$('.acbl-nav.about .nav-mobile').on('click', function () {\n\t\t\t$('.acbl-nav.about .nav-mobile').toggleClass('active')\n\t\t\t$('.acbl-nav.about .main-wrap').slideToggle()\n\t\t})\n\t},\n\tinit: () => {\n\t\tif ($('.acbl-nav.about').length > 0) {\n\t\t\tAboutNav.scrollActive()\n\t\t\tAboutNav.clickToScroll()\n\t\t}\n\t\tAboutNav.showNav()\n\t}\n}\n\nfunction sPCTTab() {\n\t$('.acbl-sp-ct-4 .list-nav li').on('click', function () {\n\t\t$('.acbl-sp-ct-4 .list-nav li').removeClass('active')\n\t\t$(this).addClass('active')\n\t\tlet indexTab = $(this).attr('data-nav')\n\t\t$('.acbl-sp-ct-4 .main-content .content').removeClass('active')\n\t\t$('.acbl-sp-ct-4 .main-content .content[data-content=' + indexTab + ']').addClass('active')\n\t})\n}\n\nfunction shareSocial() {\n\t$(\"#shareThanhLy\").jsSocials({\n\t\tshowLabel: false,\n\t\tshowCount: false,\n\t\tshares: [{\n\t\t\tshare: \"twitter\",\n\t\t\tlogo: \"fab fa-twitter\"\n\t\t},\n\t\t{\n\t\t\tshare: \"facebook\",\n\t\t\tlogo: \"fab fa-facebook-f\"\n\t\t},\n\t\t],\n\n\t});\n}\n\nfunction clickPrint() {\n\t$('.acbl-thanh-ly-ct .print, .acbl-tin-tuc-ct .print').on('click', function () {\n\t\twindow.print();\n\t})\n}\n\nfunction slideToggleQuyTrinh() {\n\t$('.acbl-quy-trinh .main-content .full-content').hide()\n\t$('.acbl-quy-trinh .main-content .item-qt:first-child .full-content').show()\n\t$('.acbl-quy-trinh .main-content .title-qt').click(function () {\n\t\tif ($(this).next().is(':hidden') === true) {\n\t\t\t$('.acbl-quy-trinh .main-content .full-content').slideUp('fast')\n\t\t\t$('.acbl-quy-trinh .main-content .title-qt').removeClass('active')\n\t\t\t$(this).next().slideDown('fast')\n\t\t\t$(this).addClass('active')\n\t\t} else {\n\t\t\t$('.acbl-quy-trinh .main-content .title-qt').removeClass('active')\n\t\t\t$(this).next().slideUp('fast')\n\t\t}\n\t})\n}\n\nfunction slideToggleHoiDap() {\n\t$('.acbl-hoi-dap .main-content .full-content').hide()\n\t$('.acbl-hoi-dap .main-content .item:first-child .full-content').show()\n\t$('.acbl-hoi-dap .main-content .item:first-child .title').addClass('active')\n\t$('.custom-tuyendung .acbl-nav ul li:first-child').removeClass('active')\n\t$('.custom-tuyendung .acbl-nav ul li:last-child').addClass('active')\n\t$('.news-detail-page .acbl-nav ul li:first-child').removeClass('active')\n\t$('.news-detail-page .acbl-nav ul li:last-child').addClass('active')\n\t$('.acbl-hoi-dap .main-content .title').click(function () {\n\t\tif ($(this).next().is(':hidden') === true) {\n\t\t\t$('.acbl-hoi-dap .main-content .full-content').slideUp('fast')\n\t\t\t$('.acbl-hoi-dap .main-content .title').removeClass('active')\n\t\t\t$(this).next().slideDown('fast')\n\t\t\t$(this).addClass('active')\n\t\t} else {\n\t\t\t$('.acbl-hoi-dap .main-content .title').removeClass('active')\n\t\t\t$(this).next().slideUp('fast')\n\t\t}\n\t})\n}\n\nfunction exportTable() {\n\t$('.acbl-bang-du-tinh-2 .main-down button').on('click', function () {\n\t\t$(\"#exportDatabase\").table2excel({\n\t\t\texclude: \".excludeThisClass\",\n\t\t\tname: \"Worksheet Name\",\n\t\t\tfilename: \"BangDuTinh.xls\",\n\t\t\tpreserveColors: false\n\t\t});\n\n\t})\n}\n\nfunction fancyboxModal() {\n\t$(\".btn-open-newsfancybox\").click(function (e) {\n\t\tconsole.log(1)\n\t\te.preventDefault();\n\t\t$.fancybox.open({\n\t\t\tsrc: '#modal-doitac',\n\t\t\ttype: 'inline',\n\t\t\topts: {\n\t\t\t\tafterShow: function (instance, current) {\n\t\t\t\t\t$(\".fancybox-is-open\").appendTo(\"main\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\treturn false;\n\t});\n}\n\nfunction FormApplySlideToggle() {\n\t$('.acbl-tuyen-dung-ct .main-button .ung-tuyen a').on('click', function (e) {\n\t\te.preventDefault()\n\t\t$('.acbl-tuyen-dung-ct .main-form-apply').slideToggle()\n\t})\n}\n\nfunction changeInputQT() {\n\t$('.acbl-quy-trinh .frm-btnwrap .frm-btn input').val('Đăng ký tư vấn')\n\t$('.acbl-sp-ct-5 .box-form .main-form .frm-btnwrap .frm-btn input').val('Đăng ký tư vấn')\n}\n\nfunction customNumberInput() {\n\t$('.acbl-bang-du-tinh-1 .main-form .form-group.form-input input').on('keyup', function () {\n\t\tvar n = parseInt($(this).val().replace(/\\D/g, ''), 10)\n\t\t$(this).val(n.toLocaleString('en-US'))\n\t})\n\t$('.acbl-bang-du-tinh-1 .main-form .form-group.disabled input').on('keyup', function () {\n\t\tvar n = parseInt($(this).val().replace(/\\D/g, ''), 10)\n\t\t$(this).val(n.toLocaleString('en-US'))\n\t})\n\n\t$('.acbl-bang-du-tinh-2').hide()\n\n\t$('.acbl-bang-du-tinh-1 .main-form .form-group.btn-submit a').on('click', function () {\n\t\t// if ($('.acbl-bang-du-tinh-1 .main-form .form-group span').css('opacity') == 1) {\n\t\t// $('.acbl-bang-du-tinh-2').hide()\n\t\t// } else if ($('.acbl-bang-du-tinh-1 .main-form .form-group span').css('opacity') == 0) {\n\t\t$('.acbl-bang-du-tinh-2').show()\n\t}\n\t\t// }\n\t)\n}\n\nfunction checkScrollContact() {\n\t// var scrollTop = $(window).scrollTop(),\n\t// header = $('header').outerHeight(),\n\t// offset = $('.nav-lien-he').offset().top\n\t// if (((offset - header) - scrollTop) <= 0) {\n\t// $('.nav-lien-he').addClass('active').css({\n\t// \"top\": (header - 1) + \"px\"\n\t// })\n\t// } else {\n\t// $('.nav-lien-he').removeClass('active').removeAttr('style')\n\t// }\n\t$('.nav-lien-he .nav-mobile').on('click', function () {\n\t\t$(this).toggleClass('active')\n\t\t$('.nav-lien-he .main-wrap').slideToggle()\n\t})\n}\n\nfunction tocInit() {\n\t// tableOfContents('[data-content]', '[data-toc]', {\n\t// \tlistType: 'ol', // Change the list type\n\t// \tlevels: 'h2, h3, h4, h5, h6' // Change the levels used\n\t// });\n\tif ($('#toc').length) {\n\t\t$(\"#toc\").toc({ content: \".cho-thue-ct-section .full-content\", headings: \"h2,h3,h4\" });\n\n\t\twindow.addEventListener(\"load\", () => {\n\t\t\t// Retrieve all help sections\n\t\t\tconst sections = Array.from(document.querySelectorAll(\".cho-thue-ct-section .full-content *[id]\"));\n\n\t\t\t// Once a scrolling event is detected, iterate all elements\n\t\t\t// whose visibility changed and highlight their navigation entry\n\t\t\tconst scrollHandler = entries =>\n\t\t\t\tentries.forEach(entry => {\n\t\t\t\t\tconst section = entry.target;\n\t\t\t\t\tconst sectionId = section.id;\n\t\t\t\t\tconst sectionLink = document.querySelector(`a[href=\"#${sectionId}\"]`);\n\n\t\t\t\t\tif (entry.intersectionRatio > 0) {\n\t\t\t\t\t\tsection.classList.add(\"visible\");\n\t\t\t\t\t\tsectionLink.classList.add(\"visible\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsection.classList.remove(\"visible\");\n\t\t\t\t\t\tsectionLink.classList.remove(\"visible\");\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t// Creates a new scroll observer\n\t\t\tconst observer = new IntersectionObserver(scrollHandler);\n\n\t\t\t//noinspection JSCheckFunctionSignatures\n\t\t\tsections.forEach(section => observer.observe(section));\n\t\t});\n\n\t\t// $(\"#toc li a\").on('click', function(){\n\t\t// \tlet offset = $('.cho-thue-ct-section').offset().top + $('header').outerHeight();\n\t\t// \t$('html, body').animate({\n\t\t// \t\tscrollTop: offset\n\t\t// \t}, 0)\n\t\t// })\n\t}\n}\n\n$(document).on('scroll', function () {\n\tApp.scrollActive();\n\n\tif ($('.about-page .acbl-nav.about').length > 0) {\n\t\tAboutNav.scrollActive()\n\t\tAboutNav.checkMenuScroll()\n\t}\n\tif ($('.nav-lien-he').length > 0) {\n\t\tcheckScrollContact()\n\t}\n});\n\n$(function () {\n\t// lazyload\n\tApp.init()\n\t// set background\n\tsetBackgroundElement()\n\t// scroll to active\n\tAboutNav.init()\n\n\tcheckScrollContact()\n\t// slide\n\tswiperInit()\n\t// tab\n\tsPCTTab()\n\t// shareSocial\n\tshareSocial()\n\tclickPrint()\n\t// slide Toggle\n\tslideToggleQuyTrinh()\n\tslideToggleHoiDap()\n\t// exportTable\n\texportTable()\n\t// fancybox Modal\n\tfancyboxModal()\n\n\tFormApplySlideToggle()\n\tchangeInputQT()\n\t$('.acbl-bang-du-tinh-1 .main-form .form-group.disabled input').attr(\"disabled\", \"disabled\")\n\tcustomNumberInput()\n\theight('.acbl-san-pham .main-news-top figcaption');\n\theight('.acbl-ab-3 .main-item figcaption');\n\theight('.cho-thue-tai-chinh .item .caption');\n\ttocInit();\n\ttoggleNavMobile();\n\tsetTimeout(() => {\n\t\t$('#l_0').trigger(\"click\")\n\t}, 100);\n});\n\nif ($('.scroll-item').length > 0) {\n\t// scroll to section\n\t// Get all sections that have an ID defined\n\tconst sections = document.querySelectorAll(\".scroll-item[id]\");\n\t// console.log(sections);\n\t// Add an event listener listening for scroll\n\twindow.addEventListener(\"scroll\", navHighlighter);\n\n\t$('.cho-thue-nav .menu-nav a').on('click', scrollToSection)\n\n\tfunction navHighlighter() {\n\t\tlet scrollY = window.pageYOffset;\n\t\tsections.forEach(current => {\n\t\t\tconst heightHeader = $('header').outerHeight();\n\t\t\tconst heightNav = $('.cho-thue-nav .menu-nav').outerHeight();\n\t\t\tconst sectionTop = current.offsetTop - (heightHeader + heightNav);\n\t\t\tconst sectionHeight = current.offsetHeight;\n\t\t\tconst sectionId = current.getAttribute(\"id\");\n\n\t\t\tif (scrollY > sectionTop && scrollY <= sectionTop + sectionHeight) {\n\t\t\t\tdocument.querySelector(\".nav-scroll a[href*=\" + sectionId + \"]\").classList.add(\"active\");\n\t\t\t} else {\n\t\t\t\tdocument.querySelector(\".nav-scroll a[href*=\" + sectionId + \"]\").classList.remove(\"active\");\n\t\t\t}\n\t\t});\n\t}\n\n\tfunction scrollToSection(e) {\n\t\te.preventDefault();\n\t\tconst sectionId = this.getAttribute(\"href\").slice(1);\n\t\tconst section = document.getElementById(sectionId);\n\t\tconst sectionTop = section.offsetTop - $('header').outerHeight() - $('.cho-thue-nav .menu-nav').outerHeight();\n\t\twindow.scrollTo({\n\t\t\ttop: sectionTop,\n\t\t\tbehavior: \"smooth\"\n\t\t});\n\t}\n}\n\nfunction toggleNavMobile() {\n\t$('.cho-thue-nav .nav-mobile').on('click', function () {\n\t\t$(this).toggleClass('active');\n\t\t$('.cho-thue-nav .main-wrap').slideToggle();\n\t})\n}\n"]}