{"version":3,"sources":["main.js"],"names":["$","document","ready","headerInit","init","fullPageInit","swiperInit","setBackgroundElement","backToTop","prependIcon","setHeightDescription","on","scrollActive","heightHeader","outerHeight","window","scrollTop","addClass","removeClass","mappingMenu","mapping","mobileWrapper","mobileMethod","desktopWrapper","desktopMethod","breakpoint","toggleMenuMobile","btnMenu","mobileWrap","searchBox","this","toggleClass","fadeOut","toggleSearchBox","btnSearch","console","log","fadeToggle","focus","trggerLinkUser","trigger","each","background","attr","css","background-image","background-size","background-position","Swiper","loop","autoplay","delay","disableOnInteraction","speed","spaceBetween","slidesPerView","slidesPerGroup","navigation","nextEl","prevEl","pagination","el","clickable","breakpoints","576","1024","observer","observeParents","rewind","type","grid","rows","768","1280","1440","effect","fadeEffect","crossFade","e","preventDefault","animate","length","width","fullpage","licenseKey","scrollingSpeed","normalScrollElements","sectionSelector","css3","responsiveWidth","responsiveHeight","lazyLoading","controlArrows","afterLoad","origin","destination","direction","onLeave","backtotopAdd","backtotopRemove","index","afterResponsive","isResponsive","location","reload","fullpage_api","moveTo","lazyloadFun","lozad","threshold","enableAutoReload","load","src","getAttribute","observe","prepend","boxContent","heightTitle","heightButton","heightBox","height","paddingTop","paddingBottom","parseInt"],"mappings":"AAAA,aAAAA,EAAEC,UAAUC,MAAM,WACjBC,WAAWC,OAEXC,eACAC,aAEAC,uBACAC,YACAC,cACAC,yBAGDV,EAAEC,UAAUU,GAAG,SAAU,WACxBR,WAAWS,iBAGZZ,EAAEC,UAAUU,GAAG,SAAU,WACxBN,iBAGD,IAAMF,WAAa,CAClBS,aAAc,WACb,IAAIC,EAAeb,EAAE,UAAUc,cAC3Bd,EAAEe,QAAQC,YAAcH,EAC3Bb,EAAE,UAAUiB,SAAS,UAErBjB,EAAE,UAAUkB,YAAY,UAErBlB,EAAEe,QAAQC,YAAc,IAC3BhB,EAAE,qBAAqBiB,SAAS,UAEhCjB,EAAE,qBAAqBkB,YAAY,WAGrCC,YAAa,WACQnB,EAAE,yBAAyBoB,QA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AED,GAAhB4E,EAAOM,OAA2B,MAAbJ,GAC5BhG,EAAE,UAAUiB,SAAS,cAIvBoF,gBAAiB,SAAUC,GACtBA,GACHvF,OAAOwF,SAASC,YAMnBxG,EAAEC,UAAUU,GAAG,QAAS,UAAW,WAClC8F,aAAaC,OAAO,GACpB1G,EAAE,UAAUkB,YAAY,gBAK3B,SAASyF,cACOC,MAAM,SAAU,CAC9BC,UAAW,GACXC,kBAAkB,EAClBC,KAAM,SAAUlD,GACfA,EAAGmD,IAAMnD,EAAGoD,aAAa,eAGlBC,UAGV,SAASzG,cAERT,EAAE,cAAcmH,QADF,8QAIf,SAASzG,uBACR,IAAI0G,EAAapH,EAAE,gCACfqH,EAAcrH,EAAE,2CAA2Cc,cAC/DqB,QAAQC,IAAIiF,GACZ,IAAIC,EAAetH,EAAE,wCAAwCc,cAC7DqB,QAAQC,IAAIkF,GACZ,IAAIC,EAAYH,EAAWI,SAC3BrF,QAAQC,IAAImF,GACZ,IAAIE,EAAaL,EAAWxE,IAAI,eAC5B8E,EAAgBN,EAAWxE,IAAI,kBAGhC5C,EAAEe,QAAQmE,SAAW,MACvBlF,EAAE,kBAAkB4C,IAAI,aAAe2E,EAAYF,EAAcC,EAAeK,SAASF,GAAcE,SAASD","file":"main.min.js","sourcesContent":["$(document).ready(function () {\n\theaderInit.init();\n\n\tfullPageInit();\n\tswiperInit();\n\n\tsetBackgroundElement();\n\tbackToTop();\n\tprependIcon();\n\tsetHeightDescription();\n});\n\n$(document).on('scroll', function () {\n\theaderInit.scrollActive();\n});\n\n$(document).on('resize', function () {\n\tfullPageInit();\n});\n\nconst headerInit = {\n\tscrollActive: function () {\n\t\tlet heightHeader = $(\"header\").outerHeight();\n\t\tif ($(window).scrollTop() > heightHeader) {\n\t\t\t$(\"header\").addClass(\"active\");\n\t\t} else {\n\t\t\t$(\"header\").removeClass(\"active\");\n\t\t}\n\t\tif ($(window).scrollTop() > 200) {\n\t\t\t$(\".back_to_top_icon\").addClass(\"active\");\n\t\t} else {\n\t\t\t$(\".back_to_top_icon\").removeClass(\"active\");\n\t\t}\n\t},\n\tmappingMenu: () => {\n\t\tlet searchMapping = $('header .search-button').mapping({\n\t\t\tmobileWrapper: '.mobile-wrap .main-menu',\n\t\t\tmobileMethod: 'insertAfter',\n\t\t\tdesktopWrapper: 'header .header-wrap .right-wrap',\n\t\t\tdesktopMethod: 'prependTo',\n\t\t\tbreakpoint: 1023\n\t\t});\n\t\tlet languageMapping = $('header .language-wrap').mapping({\n\t\t\tmobileWrapper: '.mobile-wrap .search-button',\n\t\t\tmobileMethod: 'insertAfter',\n\t\t\tdesktopWrapper: 'header .header-wrap .right-wrap .search-button',\n\t\t\tdesktopMethod: 'insertAfter',\n\t\t\tbreakpoint: 1023\n\t\t});\n\t\t// let storeMapping = $('header .header-wrap .store').mapping({\n\t\t// \tmobileWrapper: '.mobile-wrap',\n\t\t// \tmobileMethod: 'appendTo',\n\t\t// \tdesktopWrapper: 'header .header-wrap .right-wrap',\n\t\t// \tdesktopMethod: 'appendTo',\n\t\t// \tbreakpoint: 1023\n\t\t// });\n\t\tlet newsletter = $('.fullpage-wrap .subscribe-wrap').mapping({\n\t\t\tmobileWrapper: '.fullpage-wrap .home-7 .box-image ',\n\t\t\tmobileMethod: 'insertAfter',\n\t\t\tdesktopWrapper: '.fullpage-wrap main',\n\t\t\tdesktopMethod: 'insertBefore',\n\t\t\tbreakpoint: 99999\n\t\t});\n\t\tlet footer = $('.fullpage-wrap footer').mapping({\n\t\t\tmobileWrapper: '.fullpage-wrap .home-7',\n\t\t\tmobileMethod: 'appendTo',\n\t\t\tdesktopWrapper: '.fullpage-wrap main',\n\t\t\tdesktopMethod: 'insertBefore',\n\t\t\tbreakpoint: 99999\n\t\t});\n\n\t\t$('.fullpage-wrap footer').addClass('animation-text delay-3');\n\t},\n\ttoggleMenuMobile: () => {\n\t\tlet btnMenu = $(\"header .menu\"),\n\t\t\tmobileWrap = $(\".mobile-wrap\"),\n\t\t\tsearchBox = $('.search-wrap');\n\t\tbtnMenu.on(\"click\", function () {\n\t\t\t$(this).toggleClass(\"active\");\n\t\t\tmobileWrap.toggleClass('is-active');\n\t\t\t// mobileWrap.slideToggle();\n\t\t\t\n\t\t\t// close search box\n\t\t\tsearchBox.fadeOut();\n\t\t\theaderInit.toggleSearchBox();\n\t\t});\n\t},\n\ttoggleSearchBox: () => {\n\t\tlet btnSearch = $('header .btn-search'),\n\t\t\tsearchBox = $('.search-wrap'),\n\t\t\tbtnMenu = $(\"header .menu\"),\n\t\t\tmobileWrap = $(\".mobile-wrap\");\n\t\tbtnSearch.on('click', function () {\n\t\t\tconsole.log(300);\n\t\t\tsearchBox.fadeToggle(300);\n\t\t\t$('.search-wrap input').focus();\n\t\t\t// close mobile menu\n\t\t\tbtnMenu.removeClass('active');\n\t\t\tmobileWrap.removeClass('is-active');\n\t\t\t// mobileWrap.fadeOut();\n\t\t});\n\t},\n\ttrggerLinkUser: () => {\n\t\tlet btnUser = $('header .account-wrap');\n\t\tbtnUser.on('click', function () {\n\t\t\t$('header .account-wrap a').trigger('click');\n\t\t});\n\t},\n\tinit: () => {\n\t\theaderInit.scrollActive();\n\t\theaderInit.toggleMenuMobile();\n\t\t// headerInit.toggleSearchBox();\n\t\theaderInit.mappingMenu();\n\t}\n}\n\nfunction setBackgroundElement() {\n\t$('[setBackground]').each(function () {\n\t\tlet 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}\n\nfunction swiperInit() {\n\tconst home1Slide = new Swiper(\".home-1 .swiper\", {\n\t\tloop: true,\n\t\tautoplay: {\n\t\t\tdelay: 1500,\n\t\t\tdisableOnInteraction: true,\n\t\t},\n\t\tspeed: 4000,\n\t\tspaceBetween: 0,\n\t\tslidesPerView: 2,\n\t\tslidesPerGroup: 2,\n\t\tnavigation: {\n\t\t\tnextEl: \".home-1 .button-next\",\n\t\t\tprevEl: \".home-1 .button-prev\",\n\t\t},\n\t\tpagination: {\n\t\t\tel: \".home-1 .swiper-pagination\",\n\t\t\tclickable: true,\n\t\t},\n\t\tbreakpoints: {\n\t\t\t576: {\n\t\t\t\tslidesPerView: 3,\n\t\t\t\tslidesPerGroup: 3,\n\t\t\t},\n\t\t\t1024: {\n\t\t\t\tslidesPerView: 4,\n\t\t\t\tslidesPerGroup: 4,\n\t\t\t},\n\t\t}\n\t});\n\tconst home5Slide = new Swiper(\".home-5 .swiper\", {\n\t\t// loop: true,\n\t\tspaceBetween: 13,\n\t\tslidesPerView: 1,\n\t\tobserver: true,\n\t\tobserveParents: true,\n\t\trewind: true,\n\t\tnavigation: {\n\t\t\tnextEl: \".home-5 .button-next\",\n\t\t\tprevEl: \".home-5 .button-prev\",\n\t\t},\n\t\tpagination: {\n\t\t\tel: \".home-5 .swiper-pagination\",\n\t\t\ttype: 'bullets',\n\t\t\tclickable: true,\n\t\t},\n\t\tgrid: {\n\t\t\trows: 1,\n\t\t},\n\t\tbreakpoints: {\n\t\t\t768: {\n\t\t\t\tslidesPerView: 2,\n\t\t\t\tgrid: {\n\t\t\t\t\trows: 2,\n\t\t\t\t},\n\t\t\t},\n\t\t\t1024: {\n\t\t\t\tslidesPerView: 3,\n\t\t\t\tgrid: {\n\t\t\t\t\trows: 2,\n\t\t\t\t},\n\t\t\t},\n\t\t\t1280: {\n\t\t\t\tslidesPerView: 3,\n\t\t\t\tspaceBetween: 15,\n\t\t\t\tgrid: {\n\t\t\t\t\trows: 1,\n\t\t\t\t},\n\t\t\t},\n\t\t\t1440: {\n\t\t\t\tslidesPerView: 3,\n\t\t\t\tspaceBetween: 15,\n\t\t\t\tgrid: {\n\t\t\t\t\trows: 2,\n\t\t\t\t},\n\t\t\t}\n\t\t},\n\t});\n\t// var changed = false;\n\t// $(\".home-5 .main-slide .button-next\").on('click', function () {\n\t// \tif (changed === true) {\n\t// \t\tchanged = false;\n\t// \t\thome5Slide.slideTo(0);\n\t// \t}\n\t// \tif (home5Slide.isEnd) changed = true;\n\t// })\n\tconst home6Slide = new Swiper(\".home-6 .swiper\", {\n\t\tloop: true,\n\t\tautoplay: {\n\t\t\tdelay: 1500,\n\t\t\tdisableOnInteraction: false,\n\t\t},\n\t\tspeed: 500,\n\t\tobserver: true,\n\t\tobserveParents: true,\n\t\tspaceBetween: 0,\n\t\tslidesPerView: 3,\n\t\tnavigation: {\n\t\t\tnextEl: \".home-6 .button-next\",\n\t\t\tprevEl: \".home-6 .button-prev\",\n\t\t},\n\t\tpagination: {\n\t\t\tel: \".home-6 .swiper-pagination\",\n\t\t\tclickable: true,\n\t\t},\n\t\tbreakpoints: {\n\t\t\t576: {\n\t\t\t\tslidesPerView: 4,\n\t\t\t},\n\t\t\t768: {\n\t\t\t\tslidesPerView: 5,\n\t\t\t},\n\t\t\t1024: {\n\t\t\t\tslidesPerView: 7,\n\t\t\t},\n\t\t\t1280: {\n\t\t\t\tslidesPerView: 8,\n\t\t\t},\n\t\t}\n\t});\n\tconst aboutSlide = new Swiper(\".about-1 .swiper\", {\n\t\tloop: true,\n\t\tautoplay: {\n\t\t\tdelay: 1500,\n\t\t\tdisableOnInteraction: false,\n\t\t},\n\t\tspeed: 4000,\n\t\tspaceBetween: 0,\n\t\teffect: \"fade\",\n\t\tfadeEffect: {\n\t\t\tcrossFade: true\n\t\t},\n\t\tnavigation: {\n\t\t\tnextEl: \".about-1 .button-next\",\n\t\t\tprevEl: \".about-1 .button-prev\",\n\t\t},\n\t\tpagination: {\n\t\t\tel: \".about-1 .swiper-pagination\",\n\t\t\tclickable: true,\n\t\t},\n\t\ton: (function(){\n\t\t})\n\t});\n}\n\nfunction backToTop() {\n\tlet btnToTop = $('.back_to_top_icon');\n\tbtnToTop.on('click', function (e) {\n\t\te.preventDefault();\n\t\t$('html, body').animate({\n\t\t\tscrollTop: 0,\n\t\t}, 0)\n\t});\n\n};\n\nfunction fullPageInit() {\n\tif ($('.fullpage-wrap').length > 0 && $(window).width() >= 1280) {\n\t\tnew fullpage('#fullpage', {\n\t\t\tlicenseKey: 'A3DA879C-B1254377-8A906973-AAE812EA',\n\n\t\t\t// Scrolling\n\t\t\tscrollingSpeed: 1000,\n\t\t\t// scrollingSpeed: 1350,\n\t\t\tnormalScrollElements: '#element1',\n\n\t\t\t//Custom selectors\n\t\t\tsectionSelector: '.home-fullpage',\n\n\t\t\t// Design \n\t\t\tcss3: true,\n\t\t\tresponsiveWidth: 1280,\n\t\t\tresponsiveHeight: 330,\n\t\t\t// dragAndMove: true,\n\t\t\tlazyLoading: true,\n\t\t\tcontrolArrows: false,\n\n\t\t\tafterLoad: function(origin, destination, direction){\n\t\t\t\t$('.animation-text').addClass('animation-down').removeClass('animation-up')\n\t\t\t},\n\n\t\t\tonLeave: function(origin, destination, direction){\n\t\t\t\tif(direction =='down'){\n\t\t\t\t\t$('.animation-text').addClass('animation-down').removeClass('animation-up')\n\t\t\t\t}\n\t\t\t\telse if(direction == 'up'){\n\t\t\t\t\t$('.animation-text').addClass('animation-up').removeClass('animation-down')\n\t\t\t\t}\n\n\t\t\t\tfunction backtotopAdd(){\n\t\t\t\t\t$('.back_to_top_icon').addClass('bg-brown');\n\t\t\t\t}\n\t\t\t\tfunction backtotopRemove(){\n\t\t\t\t\t$('.back_to_top_icon').removeClass('bg-brown');\n\t\t\t\t}\n\n\t\t\t\t// console.log(origin.index);\n\t\t\t\t// console.log(direction);\n\t\t\t\t\n\t\t\t\t// Back to top add/remove class bg brown\n\t\t\t\tif((origin.index == 0 || origin.index == 3) && direction =='down'){\n\t\t\t\t\tbacktotopAdd();\n\t\t\t\t}\n\t\t\t\telse if((origin.index == 2 || origin.index == 6) && direction == 'up'){\n\t\t\t\t\tbacktotopAdd();\n\t\t\t\t}\n\n\t\t\t\tif((origin.index == 1 || origin.index == 2 || origin.index == 5) && direction =='down'){\n\t\t\t\t\tbacktotopRemove();\n\t\t\t\t}\n\t\t\t\telse if((origin.index == 1 || origin.index == 4) && direction == 'up'){\n\t\t\t\t\tbacktotopRemove();\n\t\t\t\t}\n\n\t\t\t\t// header add transparent\n\t\t\t\t// if(origin.index == 1 && direction =='down'){\n\t\t\t\t// \t$('header').addClass('transparent');\n\t\t\t\t// }\n\t\t\t\t// else if(origin.index == 2 && direction == 'up'){\n\t\t\t\t// \t$('header').removeClass('transparent');\n\t\t\t\t// }\n\n\t\t\t\t// header add hidden and remove transparent\n\t\t\t\tif(origin.index == 2 && direction =='down'){\n\t\t\t\t\t$('header').addClass('is-hidden');\n\t\t\t\t\t// $('header').removeClass('transparent');\n\t\t\t\t}\n\t\t\t\telse if(origin.index == 3 && direction == 'up'){\n\t\t\t\t\t$('header').removeClass('is-hidden');\n\t\t\t\t\t// $('header').addClass('transparent');\n\t\t\t\t}\n\n\t\t\t\t// header remove hidden\n\t\t\t\tif(origin.index == 3 && direction =='down'){\n\t\t\t\t\t$('header').removeClass('is-hidden');\n\t\t\t\t}\n\t\t\t\telse if(origin.index == 4 && direction == 'up'){\n\t\t\t\t\t$('header').addClass('is-hidden');\n\t\t\t\t}\n\t\t\t},\n\n\t\t\tafterResponsive: function (isResponsive) {\n\t\t\t\tif (isResponsive) {\n\t\t\t\t\twindow.location.reload();\n\t\t\t\t}\n\t\t\t},\n\t\t\t\n\t\t});\n\n\t\t$(document).on('click', '#moveTo', function () {\n\t\t\tfullpage_api.moveTo(1);\n\t\t\t$('header').removeClass('is-hidden');\n\t\t});\n\t}\n}\n\nfunction lazyloadFun() {\n\tlet observer = lozad(\".lozad\", {\n\t\tthreshold: 0.1,\n\t\tenableAutoReload: true,\n\t\tload: function (el) {\n\t\t\tel.src = el.getAttribute(\"data-src\");\n\t\t},\n\t});\n\tobserver.observe();\n}\n\nfunction prependIcon() {\n\tvar iconSVG = '';\n\t$('.subscribe').prepend(iconSVG)\n}\n\nfunction setHeightDescription() {\n\tlet boxContent = $('.about-1 .box-content-swiper');\n\tlet heightTitle = $('.about-1 .box-content-swiper .box-title').outerHeight();\n\tconsole.log(heightTitle);\n\tlet heightButton = $('.about-1 .box-content-swiper .button').outerHeight();\n\tconsole.log(heightButton);\n\tlet heightBox = boxContent.height();\n\tconsole.log(heightBox);\n\tlet paddingTop = boxContent.css('padding-top');\n\tlet paddingBottom = boxContent.css('padding-bottom');\n\t// console.log(parseInt(paddingTop));\n\t// console.log(heightBox - heightTitle - heightButton - parseInt(paddingTop) - parseInt(paddingBottom));\n\tif($(window).width() >= 1280){\n\t\t$('.about-1 .desc').css('max-height', (heightBox - heightTitle - heightButton - parseInt(paddingTop) - parseInt(paddingBottom)));\n\t}\n}\n"]}