{"version":3,"sources":["main.js"],"names":["jQuery","$","slidesToShow","slidesToScroll","dots","arrows","responsive","breakpoint","settings","isMobile","window","innerWidth","$heroSection","$faqSection","toggleSticky","toggle","mobile","addClass","css","height","removeClass","targetOffset","offset","top","handleScroll","scrollTop","on","slick"],"mappings":"aAAAA,QAAA,SAAAC,GAAAD,EAAAA,uBAAAA,MAAAA,CAGAE,aAAA,EACAC,eAAA,EACAC,MAAA,EACAC,QAAA,EACAC,WAAA,CACA,CACAC,WAAA,IACAC,SAAA,CACAN,aAAA,EACAC,eAAA,EACAC,MAAA,OAMA,IAAAK,EAAAC,OAAAC,WAAA,IAEAC,EAAAX,EAAA,SACAY,EAAAZ,EAAA,gBAEAa,EAAA,SAAAA,EAAAC,EAAAC,GACAD,EACAC,GACAF,GAAA,GAAA,GACAb,EAAA,mBAAAgB,SAAA,UACAJ,EAAAK,IAAA,eAAAjB,EAAA,mBAAAkB,YAEAL,GAAA,GAAA,GACAb,EAAA,WAAAgB,SAAA,UACAL,EAAAM,IAAA,YAAAjB,EAAA,WAAAkB,WAGAH,GACAf,EAAA,mBAAAmB,YAAA,UACAP,EAAAK,IAAA,eAAA,KAEAjB,EAAA,WAAAmB,YAAA,UACAR,EAAAM,IAAA,YAAA,KAKAG,EAAArB,OAAA,yBAAAsB,SAAAC,IAEAC,EAAA,WACA,IAAAC,EAAAxB,EAAAS,QAAAe,YAEAX,EADAW,EAAAJ,EACAZ,IAMAR,EAAAS,QAAAgB,GAAA,SAAAF,GASAvB,EAAAS,QAAAgB,GAAA,UAAA,WAPAjB,EAAAC,OAAAC,WAAA,IACAa,IACAd,OAAAC,WAAA,KACAV,EAAA,uBAAA0B,MAAA,YAAA","file":"main.min.js","sourcesContent":["jQuery(function ($) {\r\n\r\n $('.testimonial-slider').slick({\r\n slidesToShow: 2,\r\n slidesToScroll: 2,\r\n dots: false,\r\n arrows: false,\r\n responsive: [\r\n {\r\n breakpoint: 767,\r\n settings: {\r\n slidesToShow: 1,\r\n slidesToScroll: 1,\r\n dots: true\r\n }\r\n },\r\n ]\r\n });\r\n\r\n let isMobile = window.innerWidth < 768;\r\n\r\n const $heroSection = $('.hero');\r\n const $faqSection = $('.section-faq');\r\n\r\n const toggleSticky = (toggle, mobile) => {\r\n if (toggle) {\r\n if (mobile) {\r\n toggleSticky(false, false);\r\n $('.section-footer').addClass('sticky');\r\n $faqSection.css('marginBottom', $('.section-footer').height());\r\n } else {\r\n toggleSticky(false, true);\r\n $('.header').addClass('sticky');\r\n $heroSection.css('marginTop', $('.header').height());\r\n }\r\n } else {\r\n if (mobile) {\r\n $('.section-footer').removeClass('sticky');\r\n $faqSection.css('marginBottom', 0);\r\n } else {\r\n $('.header').removeClass('sticky');\r\n $heroSection.css('marginTop', 0);\r\n }\r\n }\r\n }\r\n\r\n const targetOffset = jQuery(\".section.section-mack\").offset().top;\r\n\r\n const handleScroll = () => {\r\n const scrollTop = $(window).scrollTop();\r\n if (scrollTop > targetOffset) {\r\n toggleSticky(true, isMobile);\r\n } else {\r\n toggleSticky(false, isMobile);\r\n }\r\n }\r\n\r\n $(window).on('scroll', handleScroll);\r\n $(window).on('resize', () => {\r\n isMobile = window.innerWidth < 768;\r\n handleScroll(isMobile);\r\n if (window.innerWidth > 767) {\r\n $('.testimonial-slider').slick('slickGoTo', 0);\r\n }\r\n })\r\n\r\n});\r\n"]}