{"version":3,"sources":["main.js"],"names":["$","document","ready","ZoomImg","click","e","preventDefault","toggleClass","this","find","toggleText","slideToggle","append","elm","querySelector","ms","MenuSpy","threshold","error","fn","extend","a","b","text","productThumbnailSlider","Swiper","direction","slidesPerView","spaceBetween","observer","observeParents","navigation","prevEl","nextEl","breakpoints","768","576","productImagesSlider","thumbs","swiper","on","slideChangeTransitionEnd","yearDotSlider","yearContentSlider","centeredSlides","slideToClickedSlide","window","width","ezPlus","gallery","cursor","galleryActiveClass","imageCrossfade","loadingIcon","zoomWindowWidth","zoomWindowHeight","borderSize","borderColour","menuMobileMapping","MappingListener","selector","mobileWrapper","mobileMethod","desktopWrapper","desktopMethod","breakpoint","watch","catalogueMapping"],"mappings":"AAAA,aAAAA,EAAEC,UAAUC,MAAM,WAChBC,UAEAH,EAAE,iCAAiCI,MAAM,SAAUC,GACjDA,EAAEC,iBACFN,EAAE,+BAA+BO,YAAY,QAC7CP,EAAEQ,MAAMD,YAAY,QACpBP,EAAEQ,MAAMC,KAAK,SAASC,WAAW,WAAY,aAG/CV,EAAE,gCAAgCI,MAAM,SAAUC,GAChDA,EAAEC,iBACFN,EAAE,8BAA8BO,YAAY,QAC5CP,EAAEQ,MAAMD,YAAY,QACpBP,EAAEQ,MAAMC,KAAK,SAASC,WAAW,WAAY,aAG/CV,EAAE,qBAAqBI,MAAM,SAAUC,GACrCA,EAAEC,iBACFN,EAAE,mBAAmBO,YAAY,QACjCP,EAAEQ,MAAMD,YAAY,QACpBP,EAAEQ,MAAMC,KAAK,SAASC,WAAW,WAAY,aAG/CV,EAAE,cAAcI,MAAM,SAAUC,GAC9BA,EAAEC,iBACFN,EAAE,eAAeW,gBAGnBX,EAAE,oBAAoBY,OAAOZ,EAAE,oBAGjC,IACE,IAAIa,IAAMZ,SAASa,cAAc,yBAC7BC,GAAK,IAAIC,QAAQH,IAAK,CACxBI,UAAW,KAEb,MAAOC,IAETlB,EAAEmB,GAAGC,OAAO,CACVV,WAAY,SAAUW,EAAGC,GACvB,OAAOd,KAAKe,KAAKf,KAAKe,QAAUD,EAAID,EAAIC,MAI5C,IAAIE,uBAAyB,IAAIC,OAC/B,8CACA,CACEC,UAAW,WACXC,cAAe,EACfC,aAAc,GACdC,UAAU,EACVC,gBAAgB,EAChBC,WAAY,CACVC,OAAQ,0CACRC,OAAQ,2CAEVC,YAAa,CACXC,IAAK,CACHT,UAAW,cAEbU,IAAK,CACHT,cAAe,EACfD,UAAW,iBAMfW,oBAAsB,IAAIZ,OAC5B,0CACA,CACEG,aAAc,GACdC,UAAU,EACVC,gBAAgB,EAChBQ,OAAQ,CACNC,OAAQf,wBAEVgB,GAAI,CACFC,yBAA0B,WACxBtC,cAMJuC,cAAgB,IAAIjB,OAAO,qCAAsC,CACnEE,cAAe,GACfE,UAAU,EACVC,gBAAgB,EAChBI,YAAa,CACXE,IAAK,CACHT,cAAe,MAKjBgB,kBAAoB,IAAIlB,OAAO,yCAA0C,CAC3EE,cAAe,IACfC,aAAc,GACdgB,gBAAgB,EAChBC,qBAAqB,EACrBhB,UAAU,EACVC,gBAAgB,EAChBQ,OAAQ,CACNC,OAAQG,eAEVR,YAAa,CACXE,IAAK,CACHT,cAAe,MAKrB,SAASxB,UACHH,EAAE8C,QAAQC,QAAU,MACtB/C,EAAE,kCAAkCgD,OAAO,CACzCC,QAAS,aACTC,OAAQ,UACRC,mBAAoB,SACpBC,gBAAgB,EAChBC,YAAa,0CACbC,gBAAiB,MACjBC,iBAAkB,MAClBC,WAAY,IACZC,aAAc,YAKpB,IAAMC,kBAAoB,IAAIC,gBAAgB,CAC5CC,SAAU,aACVC,cAAe,eACfC,aAAc,WACdC,eAAgB,gBAChBC,cAAe,YACfC,WAAY,OACXC,QAEGC,iBAAmB,IAAIR,gBAAgB,CAC3CC,SAAU,qBACVC,cAAe,eACfC,aAAc,WACdC,eAAgB,eAChBC,cAAe,YACfC,WAAY,OACXC","file":"main.min.js","sourcesContent":["$(document).ready(function () {\n ZoomImg()\n\n $(\".product-list-desc .view-more\").click(function (e) {\n e.preventDefault();\n $(\".product-list-desc .content\").toggleClass(\"open\");\n $(this).toggleClass(\"open\");\n $(this).find(\".text\").toggleText(\"Xem thêm\", \"Thu Gọn\");\n });\n\n $(\".product-detail-3 .view-more\").click(function (e) {\n e.preventDefault();\n $(\".product-detail-3 .content\").toggleClass(\"open\");\n $(this).toggleClass(\"open\");\n $(this).find(\".text\").toggleText(\"Xem thêm\", \"Thu Gọn\");\n });\n\n $(\".oem-4 .view-more\").click(function (e) {\n e.preventDefault();\n $(\".oem-4 .content\").toggleClass(\"open\");\n $(this).toggleClass(\"open\");\n $(this).find(\".text\").toggleText(\"Xem thêm\", \"Thu Gọn\");\n });\n\n $(\".btn-apply\").click(function (e) {\n e.preventDefault();\n $(\".apply-form\").slideToggle();\n });\n\n $(\".product-comment\").append($(\".commentpanel\"));\n});\n\ntry {\n var elm = document.querySelector(\".about-nav-wrapper ul\");\n var ms = new MenuSpy(elm, {\n threshold: 80,\n });\n} catch (error) {}\n\n$.fn.extend({\n toggleText: function (a, b) {\n return this.text(this.text() == b ? a : b);\n },\n});\n\nvar productThumbnailSlider = new Swiper(\n \".product-thumbnail-slider .swiper-container\",\n {\n direction: \"vertical\",\n slidesPerView: 5,\n spaceBetween: 10,\n observer: true,\n observeParents: true,\n navigation: {\n prevEl: \".product-thumbnail-slider .swiper-prev\",\n nextEl: \".product-thumbnail-slider .swiper-next\",\n },\n breakpoints: {\n 768: {\n direction: \"horizontal\",\n },\n 576: {\n slidesPerView: 3,\n direction: \"horizontal\",\n },\n },\n }\n);\n\nvar productImagesSlider = new Swiper(\n \".product-image-slider .swiper-container\",\n {\n spaceBetween: 10,\n observer: true,\n observeParents: true,\n thumbs: {\n swiper: productThumbnailSlider,\n },\n on: {\n slideChangeTransitionEnd: function () {\n ZoomImg();\n },\n },\n }\n);\n\nvar yearDotSlider = new Swiper(\".year-dot-slider .swiper-container\", {\n slidesPerView: 10,\n observer: true,\n observeParents: true,\n breakpoints: {\n 576: {\n slidesPerView: 5,\n },\n },\n});\n\nvar yearContentSlider = new Swiper(\".year-content-slider .swiper-container\", {\n slidesPerView: 1.5,\n spaceBetween: 30,\n centeredSlides: true,\n slideToClickedSlide: true,\n observer: true,\n observeParents: true,\n thumbs: {\n swiper: yearDotSlider,\n },\n breakpoints: {\n 576: {\n slidesPerView: 1,\n },\n },\n});\n\nfunction ZoomImg() {\n if ($(window).width() > 1024) {\n $(\".swiper-slide-active .zoom-img\").ezPlus({\n gallery: \"gallery_01\",\n cursor: \"pointer\",\n galleryActiveClass: \"active\",\n imageCrossfade: true,\n loadingIcon: \"http://www.elevateweb.co.uk/spinner.gif\",\n zoomWindowWidth: \"500\",\n zoomWindowHeight: \"500\",\n borderSize: \"1\",\n borderColour: \"#ff4900\",\n });\n }\n}\n\nconst menuMobileMapping = new MappingListener({\n selector: \".main-menu\",\n mobileWrapper: \".mobile-menu\",\n mobileMethod: \"appendTo\",\n desktopWrapper: \".menu-wrapper\",\n desktopMethod: \"prependTo\",\n breakpoint: 1025,\n}).watch();\n\nconst catalogueMapping = new MappingListener({\n selector: \".catalogue-wrapper\",\n mobileWrapper: \".mobile-menu\",\n mobileMethod: \"appendTo\",\n desktopWrapper: \".right-stuff\",\n desktopMethod: \"prependTo\",\n breakpoint: 1025,\n}).watch();\n"]}