{"version":3,"sources":["../templates/assets/scripts/sections/testimonial-slider.js"],"names":["$","length","testimonial","document","querySelectorAll","addClass","initLogoSlider","append","on","WOW","init","each","this","find","slick","SlideToShow","SlideToScroll","centerMode","centerPadding","infinite","arrows","dots","appendDots","prevArrow","nextArrow","responsive","breakpoint","settings","adaptiveHeight","window","css","opacity","jQuery"],"mappings":"CAAA,SAAAA,GACAA,EAAA,WACA,GAAAA,EAAA,uBAAAC,OAAA,CACA,IAAAC,YAAAC,SAAAC,iBACA,wCAEA,GAAAF,YAAAD,QAAA,EAAA,CACAD,EAAA,uBAAAK,SAAA,YAEAC,iBAIA,SAAAA,iBACA,GAAAJ,YAAAD,OAAA,EAAA,CACA,GAAAD,EAAA,gDAAAC,SAAA,EAAA,CACAD,EAAA,gCAAAO,OACA,sCAGA,GACAP,EAAA,4DACAC,SAAA,EACA,CACAD,EAAA,uCAAAO,OACA,gDAGA,GACAP,EAAA,4DACAC,SAAA,EACA,CACAD,EAAA,uCAAAO,OACA,iDAIAP,EAAA,WAAAQ,GAAA,OAAA,YACA,IAAAC,KAAAC,SAEAV,EAAA,uBAAAW,KAAA,WACA,GAAAX,EAAAY,MAAAC,KAAA,oBAAAZ,OAAA,EAAA,CACAD,EAAAY,MAAAC,KAAA,WAAAC,MAAA,CACAC,YAAA,EACAC,cAAA,EACAC,WAAA,KACAC,cAAA,QACAC,SAAA,KACAC,OAAA,KACAC,KAAA,KACAC,WAAAtB,EAAAY,MAAAC,KAAA,mBACAU,UAAAvB,EAAAY,MAAAC,KAAA,+BACAW,UAAAxB,EAAAY,MAAAC,KAAA,+BAEAY,WAAA,CACA,CACAC,WAAA,KACAC,SAAA,CACAT,cAAA,UAGA,CACAQ,WAAA,IACAC,SAAA,CACAZ,YAAA,EACAE,WAAA,MACAW,eAAA,kBAiBA5B,EAAA6B,QAAArB,GAAA,OAAA,WACAR,EAAA,uBAAA8B,IAAA,CAAAC,QAAA,SApFA,CAsFAC","file":"testimonial-slider.js","sourcesContent":["(function ($) {\n $(function () {\n if ($(\".testimonial-slider\").length) {\n var testimonial = document.querySelectorAll(\n \".testimonial-slider .content-wrapper\"\n );\n if (testimonial.length == 1) {\n $(\".testimonial-slider\").addClass(\"one-card\");\n }\n initLogoSlider();\n\n // $(window).on(\"resize\", initLogoSlider);\n\n function initLogoSlider() {\n if (testimonial.length > 1) {\n if ($(\".testimonial-slider .wrapper .sliderControls\").length === 0) {\n $(\".testimonial-slider .wrapper\").append(\n '<div class=\"sliderControls\"></div>'\n );\n }\n if (\n $(\".testimonial-slider .wrapper .sliderControls .slick-prev\")\n .length === 0\n ) {\n $(\".testimonial-slider .sliderControls\").append(\n '<span class=\"slick-prev slick-arrow\"></span>'\n );\n }\n if (\n $(\".testimonial-slider .wrapper .sliderControls slick-next \")\n .length === 0\n ) {\n $(\".testimonial-slider .sliderControls\").append(\n '<span class=\"slick-next slick-arrow\"></span>'\n );\n }\n\n $(\".slider\").on(\"init\", function () {\n new WOW().init();\n });\n $(\".testimonial-slider\").each(function () {\n if ($(this).find(\".content-wrapper\").length > 1) {\n $(this).find(\".slider\").slick({\n SlideToShow: 2,\n SlideToScroll: 1,\n centerMode: true,\n centerPadding: \"300px\",\n infinite: true,\n arrows: true,\n dots: true,\n appendDots: $(this).find(\".sliderControls\"),\n prevArrow: $(this).find(\".sliderControls .slick-prev\"),\n nextArrow: $(this).find(\".sliderControls .slick-next\"),\n \n responsive: [\n {\n breakpoint: 2499,\n settings: {\n centerPadding: \"110px\",\n },\n },\n {\n breakpoint: 992,\n settings: {\n SlideToShow: 1,\n centerMode: false,\n adaptiveHeight: true,\n },\n },\n ],\n });\n }\n });\n // $(\".testimonial-slider .content-wrapper\").each(function () {\n // var textCount = $(this).find(\"p\").text().trim().length;\n // if (textCount >= 208) {\n // $(this).addClass(\"trim\");\n // }\n // });\n }\n }\n }\n });\n $(window).on(\"load\", function () {\n $(\".testimonial-slider\").css({ opacity: \"1\" });\n });\n})(jQuery);\n"],"sourceRoot":"assets/scripts/"}