{"version":3,"sources":["20230201PFC_functions.js"],"names":["swiperA","Swiper","effect","fadeEffect","crossFade","autoHeight","swiperB","slideToClickedSlide","freeMode","centeredSlides","slidesPerView","breakpoints","320","navigation","nextEl","prevEl","thumbs","swiper"],"mappings":"AAAA,IAAIA,QAAU,IAAIC,OAAO,oBAAqB,CAC5CC,OAAQ,OACRC,WAAY,CACVC,WAAW,GAEbC,YAAY,IAGVC,QAAU,IAAIL,OAAO,wBAAyB,CAChDM,qBAAqB,EACrBC,UAAU,EACVC,gBAAgB,EAChBC,cAAe,OACfC,YAAa,CACXC,IAAK,CACHH,gBAAgB,EAChBC,cAAe,IAGnBG,WAAY,CACVC,OAAQ,sBACRC,OAAQ,uBAEVC,OAAQ,CACNC,OAAQjB","file":"20230201PFC_functions.min.js","sourcesContent":["let swiperA = new Swiper('.msdw-slider-fade', {\r\n effect: 'fade',\r\n fadeEffect: {\r\n crossFade: true\r\n },\r\n autoHeight: true\r\n});\r\n\r\nlet swiperB = new Swiper('.msdw-slider-freemode', {\r\n slideToClickedSlide: true,\r\n freeMode: true,\r\n centeredSlides: false,\r\n slidesPerView: 'auto',\r\n breakpoints: {\r\n 320: {\r\n centeredSlides: true,\r\n slidesPerView: 2,\r\n }\r\n },\r\n navigation: {\r\n nextEl: '.swiper-button-next',\r\n prevEl: '.swiper-button-prev',\r\n },\r\n thumbs: {\r\n swiper: swiperA\r\n }\r\n});\r\n\r\n\r\n\r\n// SCROLL SPY\r\n\r\n// function scrollSpy() {\r\n// var sections = document.querySelectorAll('.msdw-tab-section');\r\n// var scrollPosition = document.documentElement.scrollTop || document.body.scrollTop;\r\n\r\n// for (var i in sections) {\r\n// if (sections.hasOwnProperty( i ) && sections[ i ].offsetTop-60 <= scrollPosition) {\r\n// var id = sections[ i ].id;\r\n\r\n// document.querySelector('.section-buttons .active').classList.remove( 'active' );\r\n// document.querySelector('a[href*=' + id + ']').classList.add( 'active' );\r\n\r\n// }\r\n// else if ($(window).scrollTop() + $(window).height() == $(document).height()) {\r\n// document.querySelector('.section-buttons .active').classList.remove( 'active' );\r\n// document.querySelector('[href=\"#anchor-faq\"]').classList.add( 'active' );\r\n// }\r\n// }\r\n// }\r\n\r\n// $(window).on(\"load scroll\",function(e){\r\n// scrollSpy();\r\n// });\r\n\r\n\r\n\r\n\r\n//\r\n// =SCROLL-TO ANIMATION FOR ANCHOR LINKS\r\n// --------------------------------------------------\r\n\r\n// $('.msdw-page-scroll').click(function() {\r\n// if (location.pathname.replace(/^\\//,'') == this.pathname.replace(/^\\//,'') && location.hostname == this.hostname) {\r\n// var target = $(this.hash);\r\n// target = target.length ? target : $('[name=' + this.hash.slice(1) +']');\r\n// if (target.length) {\r\n// var offsetValue = 0;\r\n// if ( window.innerWidth <= 767 ) {\r\n// offsetValue;\r\n// // console.log(offsetValue);\r\n// } else {\r\n// offsetValue = 59;\r\n// // console.log(offsetValue);\r\n// }\r\n\r\n// $('html,body').animate({\r\n// scrollTop: target.offset().top - offsetValue\r\n// }, 900);\r\n// return false;\r\n// }\r\n// }\r\n// });\r\n\r\n\r\n//\r\n// =SCROLL SPY\r\n// --------------------------------------------------\r\n\r\n// const sections = document.querySelectorAll('section[data-scroll-spy]');\r\n\r\n// const cb = (entries) => {\r\n// entries.forEach((entry) => {\r\n// const id = entry.target.getAttribute('id');\r\n// entry.isIntersecting ?\r\n// document.querySelector(`a[data-scroll-spy][href=\"#${id}\"]`).classList.add('msdw-active') :\r\n// document.querySelector(`a[data-scroll-spy][href=\"#${id}\"]`).classList.remove('msdw-active');\r\n// });\r\n// };\r\n\r\n// const observer = new IntersectionObserver(cb, {\r\n// rootMargin: '0px 0px 40% 0px',\r\n// threshold: [0.75, 0.85]\r\n// });\r\n\r\n// sections.forEach((el) => observer.observe(el));\r\n"]}