{"version":3,"sources":["main.js"],"names":["swiperInit","Swiper","spaceBetween","pagination","el","type","clickable","$","each","index","$this","this","find","addClass","serviceThumbnail","slidesPerView","observer","observeParents","breakpoints","768.98","thumbs","swiper","navigation","prevEl","nextEl","initialSlide","centeredSlides","loop","1600.98","1200.98","productThumbnail","document","ready","readmore","speed","moreLink","lessLink","collapsedHeight","UIkit","sticky","offset","outerHeight","mainMenuMobileMapping","MappingListener","selector","mobileWrapper","mobileMethod","desktopWrapper","desktopMethod","breakpoint","watch"],"mappings":"AAAA,aAiBA,SAASA,aACgB,IAAIC,OAAO,iCAAkC,CAClEC,aAAc,GACdC,WAAY,CACVC,GAAI,kCACJC,KAAM,UACNC,WAAW,KAIfC,EAAE,oBAAoBC,KAAK,SAAUC,GACnC,IAAIC,EAAQH,EAAEI,MACdD,EAAME,KAAK,mBAAmBC,SAAS,kBAAoBJ,GAC3DC,EAAME,KAAK,sBAAsBC,SAAS,qBAAuBJ,GACjEC,EAAME,KAAK,gBAAgBC,SAAS,wBAA0BJ,GAC9DC,EAAME,KAAK,gBAAgBC,SAAS,wBAA0BJ,GAE9D,IAAIK,EAAmB,IAAIb,OACzB,sBAAwBQ,EAAQ,qBAChC,CACEM,cAAe,EACfb,aAAc,GACdc,UAAU,EACVC,gBAAgB,EAChBC,YAAa,CACXC,OAAQ,CACNJ,cAAe,MAMH,IAAId,OACtB,mBAAqBQ,EAAQ,qBAC7B,CACEM,cAAe,EACfb,aAAc,GACdc,UAAU,EACVC,gBAAgB,EAChBG,OAAQ,CACNC,OAAQP,GAEVQ,WAAY,CACVC,OAAQ,yBAA2Bd,EACnCe,OAAQ,yBAA2Bf,OAMzB,IAAIR,OAAO,4BAA6B,CACxDc,cAAe,EACfU,aAAc,EACdvB,aAAc,GACdwB,gBAAgB,EAChBC,MAAM,EACNL,WAAY,CACVC,OAAQ,uBACRC,OAAQ,wBAEVN,YAAa,CACXU,QAAS,CACPb,cAAe,GAEjBc,QAAS,CACPd,cAAe,EACfW,gBAAgB,MAhBtB,IAqBII,EAAmB,IAAI7B,OAAO,uCAAwC,CACxEc,cAAe,EACfb,aAAc,GACdc,UAAU,EACVC,gBAAgB,EAChBC,YAAa,CACXC,OAAQ,CACNJ,cAAe,MAKD,IAAId,OAAO,oCAAqC,CAClEc,cAAe,EACfb,aAAc,GACdc,UAAU,EACVC,gBAAgB,EAChBG,OAAQ,CACNC,OAAQS,GAEVR,WAAY,CACVC,OAAQ,+BACRC,OAAQ,kCA9GdjB,EAAEwB,UAAUC,MAAM,WAChBhC,aAEAO,EAAE,qBAAqB0B,SAAS,CAC9BC,MAAO,GACPC,SAAU,4GACVC,SAAU,yGACVC,gBAAiB,KAGnBC,MAAMC,OAAO,aAAc,CACzBC,OAAQjC,EAAE,UAAUkC,kBAwGxB,IAAMC,sBAAwB,IAAIC,gBAAgB,CAChDC,SAAU,uBACVC,cAAe,eACfC,aAAc,WACdC,eAAgB,oBAChBC,cAAe,cACfC,WAAY,UACXC","file":"main.min.js","sourcesContent":["$(document).ready(function () {\n swiperInit();\n\n $(\".readmore-content\").readmore({\n speed: 75,\n moreLink: 'Xem thêm',\n lessLink: 'Thu gọn',\n collapsedHeight: 72\n });\n\n UIkit.sticky('.about-nav', {\n offset: $('header').outerHeight()\n });\n\n\n});\n\nfunction swiperInit() {\n var bannerHomeSlider = new Swiper(\".home-banner .swiper-container\", {\n spaceBetween: 30,\n pagination: {\n el: \".home-banner .swiper-pagination\",\n type: \"bullets\",\n clickable: true,\n },\n });\n\n $(\".service-gallery\").each(function (index) {\n var $this = $(this);\n $this.find(\".service-images\").addClass(\"service-images-\" + index);\n $this.find(\".service-thumbnail\").addClass(\"service-thumbnail-\" + index);\n $this.find(\".swiper-prev\").addClass(\"services-swiper-prev-\" + index);\n $this.find(\".swiper-next\").addClass(\"services-swiper-next-\" + index);\n\n var serviceThumbnail = new Swiper(\n \".service-thumbnail-\" + index + \" .swiper-container\",\n {\n slidesPerView: 6,\n spaceBetween: 20,\n observer: true,\n observeParents: true,\n breakpoints: {\n 768.98: {\n slidesPerView: 4,\n },\n },\n }\n );\n\n var serviceImages = new Swiper(\n \".service-images-\" + index + \" .swiper-container\",\n {\n slidesPerView: 1,\n spaceBetween: 20,\n observer: true,\n observeParents: true,\n thumbs: {\n swiper: serviceThumbnail,\n },\n navigation: {\n prevEl: \".services-swiper-prev-\" + index,\n nextEl: \".services-swiper-next-\" + index,\n },\n }\n );\n });\n\n var home3Swiper = new Swiper(\".home-3 .swiper-container\", {\n slidesPerView: 2,\n initialSlide: 1,\n spaceBetween: 30,\n centeredSlides: true,\n loop: true,\n navigation: {\n prevEl: \".home-3 .swiper-prev\",\n nextEl: \".home-3 .swiper-next\",\n },\n breakpoints: {\n 1600.98: {\n slidesPerView: 1,\n },\n 1200.98: {\n slidesPerView: 1,\n centeredSlides: false,\n },\n },\n });\n\n var productThumbnail = new Swiper(\".product-thumbnail .swiper-container\", {\n slidesPerView: 6,\n spaceBetween: 10,\n observer: true,\n observeParents: true,\n breakpoints: {\n 768.98: {\n slidesPerView: 4,\n },\n },\n });\n\n var productImages = new Swiper(\".product-images .swiper-container\", {\n slidesPerView: 1,\n spaceBetween: 10,\n observer: true,\n observeParents: true,\n thumbs: {\n swiper: productThumbnail,\n },\n navigation: {\n prevEl: \".product-images .swiper-prev\",\n nextEl: \".product-images .swiper-next\",\n },\n });\n}\n\nconst mainMenuMobileMapping = new MappingListener({\n selector: \".right-bottom-header\",\n mobileWrapper: \".mobile-menu\",\n mobileMethod: \"appendTo\",\n desktopWrapper: \".right-top-header\",\n desktopMethod: \"insertAfter\",\n breakpoint: 1024.98,\n}).watch();\n"]}