{"version":3,"sources":["main.js"],"names":["height","el","$","each","thisHeight","this","setTimeout","header","scrollActive","window","scrollTop","addClass","removeClass","checkHeightHeader","outerHeight","css","setBackgroundElement","background","attr","background-image","background-size","background-position","background-repeat","mappingMenu","mapping","mobileWrapper","mobileMethod","desktopWrapper","desktopMethod","breakpoint","menuMobile","hambuger","menuMB","searchBox","on","toggleClass","append","prev","slideToggle","toggleSearch","button","close","swiperInit","Swiper","loop","autoplay","delay","waitForTransition","disableOnInteraction","slidesPerColumnFill","watchSlidesProgress","watchSlidesVisibility","slidesPerView","spaceBetween","pagination","type","clickable","navigation","nextEl","prevEl","breakpoints","768","slidesPerGroup","1024","576","slidesPerColumn","backToTop","animate","resizeMinitor","width","shareSocial","jsSocials","showLabel","showCount","shares","share","logo","scrollToSection","elemHeader","e","preventDefault","hash","offset","top","aboutNav","stickyTop","nav","init","moveHtml","bannerFull","bannerList","pages","subZoneDetail","boxContact","appendTo","insertAfter","prependTo","document","ready","focus","keyup","keyCode","next","trigger"],"mappings":"AAAA,aAAA,SAASA,OAAOC,GACf,IAAID,EAAS,EACbE,EAAED,GAAIE,KAAK,WACV,IAAIC,EAAaF,EAAEG,MAAML,SACrBI,EAAaJ,IAChBA,EAASI,GAEVE,WAAW,WACVJ,EAAED,GAAID,OAAOA,IACX,OAGL,IAAIO,OAAS,CACZC,aAAc,WACb,IAAIR,EAASE,EAAE,UAAUF,SACrBE,EAAEO,QAAQC,YAAcV,EAC3BE,EAAE,UAAUS,SAAS,UAErBT,EAAE,UAAUU,YAAY,WAG1BC,kBAAmB,WAClB,IAAIb,EAASE,EAAE,UAAUY,cACRZ,EAAE,uBAGnBA,EAAE,QAAQa,IAAI,cAAef,KAK/B,SAASgB,uBACRd,EAAE,mBAAmBC,KAAK,WACzB,IAAIc,EAAaf,EAAEG,MAAMa,KAAK,iBAC9BhB,EAAEG,MAAMU,IAAI,CACXI,mBAAoB,OAASF,EAAa,IAC1CG,kBAAmB,QACnBC,sBAAuB,oBAGzBnB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6C,GAC9BA,EAAEC,iBACF,IAAIC,EAAO5E,KAAK4E,KAChB/E,EAAE,cAAciE,QAAQ,CACvBzD,UAAWR,EAAE+E,GAAMC,SAASC,IAAML,GAChC,QAGLO,UAAW,WACV,IAAIrF,EAASE,EAAE,UAAUY,cACbZ,EAAE,gBACRa,IAAI,MAAOf,IAElBmC,YAAa,WACZ,IAAIK,EAAStC,EAAE,wBACXoF,EAAMpF,EAAE,2BACZsC,EAAON,GAAG,QAAS,WAClBhC,EAAEG,MAAM8B,YAAY,UACpBmD,EAAIhD,iBAGNiD,KAAM,WACDrF,EAAEO,QAAQ4D,SAAW,MACxBe,SAASjD,cAEViD,SAASC,YACTD,SAASP,oBAIX,SAASW,WACR,IAAIC,EAAavF,EAAE,gBACfwF,EAAaxF,EAAE,mBACfyF,EAAQzF,EAAE,gBACV0F,EAAgB1F,EAAE,iBAClB2F,EAAa3F,EAAE,gBAEnBuF,EAAWK,SAAS,uBACpBJ,EAAWI,SAAS,uBACpBH,EAAMI,YAAY,oBAClBH,EAAcI,UAAU,kBACxBN,EAAWI,SAAS,kBACpBD,EAAWC,SAAS,uBAGrB5F,EAAE+F,UAAU/D,GAAG,SAAU,WACxB3B,OAAOC,iBAERN,EAAEO,QAAQyB,GAAG,SAAU,WACtBkC,gBACA7D,OAAOM,sBAERX,EAAE+F,UAAUC,MAAM,WACjBlF,uBAGAO,cACAO,aACAvB,OAAOM,oBACP0B,eAGAG,aAGA0C,SAASG,OAGTjB,cAEAkB,WAEAxF,OAAOE,EAAE,wDACTF,OAAOE,EAAE,yDAETA,EAAE,oBAAoBiG,MAAM,WAC3BjG,EAAEG,MAAM+F,MAAM,SAAUrB,GACN,IAAbA,EAAEsB,SACLnG,EAAEG,MAAMiG,OAAOC,QAAQ","file":"main.min.js","sourcesContent":["function 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}\nlet header = {\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\tcheckHeightHeader: function () {\n\t\tlet height = $('header').outerHeight()\n\t\tlet menuMobile = $('header .mobile-wrap')\n\t\t\n\t\t// menuMobile.css('padding-top', height)\n\t\t$('main').css('padding-top', height)\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-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 mappingMenu() {\n\tvar menu = $('header .menu-list').mapping({\n\t\tmobileWrapper: 'header .mobile-wrap',\n\t\tmobileMethod: 'appendTo',\n\t\tdesktopWrapper: 'header .bottom-wrap .left-wrap .main-menu',\n\t\tdesktopMethod: 'appendTo',\n\t\tbreakpoint: 1200\n\t})\n}\n\nfunction menuMobile() {\n\tlet hambuger = $('.burger-bt-inner')\n\tlet menuMB = $('.mobile-wrap')\n\tlet searchBox = $('.searchbox-wrap')\n\thambuger.on('click', function () {\n\t\t// console.log(1111);\n\t\theader.checkHeightHeader();\n\t\t$(this).toggleClass('active');\n\t\tmenuMB.toggleClass('active');\n\t\tsearchBox.removeClass('active');\n\t})\n\n\t$('.menu-list .has-dropdown').each(function () {\n\t\t$(this).append('')\n\t})\n\n\t$('.menu-list .has-dropdown .icon-dropdown').on('click', function () {\n\t\t$(this).prev().slideToggle();\n\t})\n}\n\nfunction toggleSearch() {\n\tlet button = $('.button-search')\n\tlet searchBox = $('.searchbox-wrap')\n\tlet close = $('.searchbox-wrap .button-close')\n\tlet hambuger = $('.burger-bt-inner')\n\tlet menuMB = $('.mobile-wrap')\n\tbutton.on('click', function () {\n\t\tsearchBox.toggleClass('active');\n\t\thambuger.removeClass('active');\n\t\tmenuMB.removeClass('active');\n\t})\n\tclose.on('click', function () {\n\t\tsearchBox.toggleClass('active');\n\t})\n\n}\n\nfunction swiperInit() {\n\t// var swiper = new Swiper('.swiper-container', {\n\t// \tslidesPerView: 3,\n\t// \tslidesPerColumn: 2,\n\t// \tspaceBetween: 30,\n\t// \tslidesPerColumnFill: \"row\",\n\t// \tpagination: {\n\t// \t\tel: '.swiper-pagination',\n\t// \t\tclickable: true,\n\t// \t},\n\t// });\n\tvar homeHightLights = new Swiper('.home-slide .swiper-container', {\n\t\tloop: true,\n\t\tautoplay: {\n\t\t\tdelay: 5000,\n\t\t\twaitForTransition: true,\n\t\t\tdisableOnInteraction: false,\n\t\t},\n\t\tslidesPerColumnFill: \"row\",\n\t\twatchSlidesProgress: true,\n\t\twatchSlidesVisibility: true,\n\t\tslidesPerView: 1,\n\t\tspaceBetween: 20,\n\t\tpagination: {\n\t\t\tel: '.home-slide .main-pagination',\n\t\t\ttype: 'bullets',\n\t\t\tclickable: true,\n\t\t},\n\t\tnavigation: {\n\t\t\tnextEl: '.home-slide .button-next',\n\t\t\tprevEl: '.home-slide .button-prev'\n\t\t},\n\t\tbreakpoints: {\n\t\t\t768: {\n\t\t\t\tslidesPerView: 2,\n\t\t\t\tslidesPerGroup: 2,\n\t\t\t},\n\t\t}\n\t});\n\tvar eventsDetailSlide = new Swiper('.om-events-detail .swiper-container', {\n\t\tloop: true,\n\t\tautoplay: {\n\t\t\tdelay: 5000,\n\t\t\twaitForTransition: true,\n\t\t\tdisableOnInteraction: false,\n\t\t},\n\t\tslidesPerColumnFill: \"row\",\n\t\twatchSlidesProgress: true,\n\t\twatchSlidesVisibility: true,\n\t\tslidesPerView: 1,\n\t\tspaceBetween: 20,\n\t\tpagination: {\n\t\t\tel: '.om-events-detail .main-pagination',\n\t\t\ttype: 'bullets',\n\t\t\tclickable: true,\n\t\t},\n\t\tnavigation: {\n\t\t\tnextEl: '.om-events-detail .button-next',\n\t\t\tprevEl: '.om-events-detail .button-prev'\n\t\t},\n\t\tbreakpoints: {\n\t\t\t768: {\n\t\t\t\tslidesPerView: 2,\n\t\t\t},\n\t\t\t1024: {\n\t\t\t\tslidesPerView: 3,\n\t\t\t\tspaceBetween: 17,\n\t\t\t},\n\t\t}\n\t});\n\tvar videoDetailSlide = new Swiper('.om-video-detail .swiper-container', {\n\t\t// loop: true,\n\t\tautoplay: {\n\t\t\tdelay: 5000,\n\t\t\twaitForTransition: true,\n\t\t\tdisableOnInteraction: false,\n\t\t},\n\t\tslidesPerColumnFill: \"row\",\n\t\twatchSlidesProgress: true,\n\t\twatchSlidesVisibility: true,\n\t\tslidesPerView: 1,\n\t\tspaceBetween: 20,\n\t\tpagination: {\n\t\t\tel: '.om-video-detail .main-pagination',\n\t\t\ttype: 'bullets',\n\t\t\tclickable: true,\n\t\t},\n\t\tnavigation: {\n\t\t\tnextEl: '.om-video-detail .button-next',\n\t\t\tprevEl: '.om-video-detail .button-prev'\n\t\t},\n\t\tbreakpoints: {\n\t\t\t576: {\n\t\t\t\tslidesPerView: 2,\n\t\t\t},\n\t\t\t1024: {\n\t\t\t\tslidesPerView: 3,\n\t\t\t\tslidesPerColumn: 2,\n\t\t\t},\n\t\t}\n\t});\n}\n\nfunction backToTop() {\n\tlet elem = $('.back-to-top')\n\telem.on('click', function () {\n\t\t$('html, body').animate({\n\t\t\tscrollTop: 0,\n\t\t}, 1000)\n\t})\n}\n\nfunction resizeMinitor() {\n\tlet widthMinitor = $(window).width();\n\t// console.log(widthMinitor);\n\tlet heightMinitor = $(window).height();\n\t// console.log(heightMinitor);\n}\n\nfunction shareSocial() {\n\t$(\".share-social\").jsSocials({\n\t\tshowLabel: false,\n\t\tshowCount: false,\n\t\tshares: [{\n\t\t\t\tshare: \"facebook\",\n\t\t\t\tlogo: \"fab fa-facebook-f\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tshare: \"twitter\",\n\t\t\t\tlogo: \"fab fa-twitter\"\n\t\t\t},\n\t\t]\n\t});\n}\n\nfunction scrollToSection() {\n\tlet elemHeader = $('header').outerHeight();\n\tlet elemLink = $('.about-page .about-nav li a');\n\telemLink.on('click', function (e) {\n\t\te.preventDefault();\n\t\tvar hash = this.hash;\n\t\t$('html, body').animate({\n\t\t\tscrollTop: $(hash).offset().top - elemHeader\n\t\t}, 1000);\n\t})\n\n}\n\nlet aboutNav = {\n\tscrollToSection: () => {\n\t\tlet elemHeader = $('header').outerHeight();\n\t\tlet elemLink = $('.about-page .about-nav li a');\n\t\telemLink.on('click', function (e) {\n\t\t\te.preventDefault();\n\t\t\tvar hash = this.hash;\n\t\t\t$('html, body').animate({\n\t\t\t\tscrollTop: $(hash).offset().top - elemHeader\n\t\t\t}, 1000);\n\t\t})\n\t},\n\tstickyTop: () => {\n\t\tlet height = $('header').outerHeight();\n\t\tlet navMB = $('.main-nav-mb');\n\t\tnavMB.css('top', height);\n\t},\n\ttoggleClass: () => {\n\t\tlet button = $('.main-nav-mb .toggle');\n\t\tlet nav = $('.main-nav-mb .about-nav');\n\t\tbutton.on('click', function () {\n\t\t\t$(this).toggleClass('active');\n\t\t\tnav.slideToggle();\n\t\t});\n\t},\n\tinit: () => {\n\t\tif ($(window).width() <= 1024) {\n\t\t\taboutNav.toggleClass();\n\t\t}\n\t\taboutNav.stickyTop();\n\t\taboutNav.scrollToSection();\n\t}\n}\n\nfunction moveHtml(){\n\tlet bannerFull = $('.banner-full');\n\tlet bannerList = $('.banner-qc-list');\n\tlet pages = $('.modulepager');\n\tlet subZoneDetail = $('.box-category');\n\tlet boxContact = $('.box-contact');\n\n\tbannerFull.appendTo('.banner-full-append');\n\tbannerList.appendTo('.banner-list-append');\n\tpages.insertAfter('.news-list-pages');\n\tsubZoneDetail.prependTo('.detail-append');\n\tbannerList.appendTo('.detail-append')\n\tboxContact.appendTo('.box-contact-append')\n}\n\n$(document).on('scroll', function () {\n\theader.scrollActive()\n});\n$(window).on('resize', function () {\n\tresizeMinitor();\n\theader.checkHeightHeader();\n});\n$(document).ready(function () {\n\tsetBackgroundElement();\n\n\t// header\n\tmappingMenu();\n\tmenuMobile();\n\theader.checkHeightHeader();\n\ttoggleSearch();\n\t\n\t// swiper\n\tswiperInit();\n\n\t// click link to scroll to section\n\taboutNav.init();\n\n\t// socical share\n\tshareSocial();\n\n\tmoveHtml();\n\n\theight($('.om-whaton .news-item.news-item-top .caption .title'));\n\theight($('.home-slide .news-item.news-item-big .caption .title'));\n\n\t$(\".searchbox input\").focus(function () {\n\t\t$(this).keyup(function (e) {\n\t\t\tif (e.keyCode == 13) {\n\t\t\t\t$(this).next().trigger(\"click\");\n\t\t\t}\n\t\t});\n\n\t});\n})\n"]}