{"version":3,"sources":["custom.min.js"],"names":["jQuery","document","ready","$","slick","slidesToShow","slidesToScroll","autoplay","autoplaySpeed","arrows","dots","fade","cssEase","adaptiveHeight","length","updateSlideControls","currentSlide","totalSlides","slideCount","options","toggleClass","updateSlideCounter","formattedCurrentSlide","slice","formattedTotalSlides","html","infinite","responsive","breakpoint","settings","on","event","categoryId","this","attr","removeClass","addClass","each","$item","find","closest","mask","autoclear","hide","show","css","$this","hasClass","slideUp","slideDown","click","e","href","startsWith","preventDefault","target","offset","top","animate","scrollTop","window","location","$select","$customSelect","insertAfter","$selected","appendTo","$items","text","first","$option","val","stopPropagation"],"mappings":"AAAAA,OAAOC,UAAUC,OAAM,SAASC,GAsB9B,GArBDA,EAAE,aAAaC,MAAM,CACpBC,aAAc,EACdC,eAAgB,EAChBC,UAAU,EACVC,cAAe,IACbC,QAAQ,EACRC,MAAM,EACNC,MAAM,EACNC,QAAS,SAGXT,EAAE,mBAAmBC,MAAM,CAC3BC,aAAc,EACdC,eAAgB,EACdG,QAAQ,EACRC,MAAM,EACNC,MAAM,EACNC,QAAS,OACTC,gBAAgB,IAGdV,EAAE,8BAA8BW,OAAQ,CA4B1C,SAASC,EAAoBX,GAC3B,IAAIY,EAAeZ,EAAMY,aACrBC,EAAcb,EAAMc,WACpBb,EAAeD,EAAMe,QAAQd,aAGjCF,EAAE,eAAeiB,YAAY,MAAwB,IAAjBJ,GACpCb,EAAE,eAAeiB,YAAY,MAAOJ,GAAgBC,EAAcZ,GAIpE,SAASgB,EAAmBjB,GAC1B,IAAIY,EAAeZ,EAAMY,aAAe,EACpCC,EAAcb,EAAMc,WACpBI,GAAyB,IAAMN,GAAcO,OAAO,GACpDC,GAAwB,IAAMP,GAAaM,OAAO,GAEtDpB,EAAE,kBAAkBsB,KAAKH,EAAwB,UAAYE,EAAuB,WA3CtFrB,EAAE,8BAA8BC,MAAM,CACpCC,aAAc,EACdC,eAAgB,EAChBG,QAAQ,EACRC,MAAM,EACNE,QAAS,OACTc,U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,GAC/E7B,EAAMR,GAAG,SAAS,WACdgC,EAAQS,IAAID,EAAQC,OACpBN,EAAUG,KAAKE,EAAQF,QACvBD,EAAO/B,SAAS,eAChB6B,EAAU9B,YAAY,uBACtBgC,EAAO5B,KAAK,qBAAqBJ,YAAY,oBAC7CG,EAAMF,SAAS,0BAKvB6B,EAAUnC,GAAG,SAAS,SAASqB,GAC3BA,EAAEqB,kBACFrE,EAAE,iBAAiBiC,SAAS,eAC5BjC,EAAE,oBAAoBgC,YAAY,uBAClCgC,EAAO/C,YAAY,eACnB6C,EAAU7C,YAAY,6BAK5BjB,EAAEF,UAAU6B,GAAG,SAAS,WACpB3B,EAAE,iBAAiBiC,SAAS,eAC5BjC,EAAE,oBAAoBgC,YAAY,0BAGtChC,EAAE,cAAc2B,GAAG,SAAS,WAC1B3B,EAAE,0BAA0ByC,OAC5BzC,EAAE8B,MAAMU,OACRxC,EAAE,eAAeyC,UAGnBzC,EAAE,eAAe2B,GAAG,SAAS,WAC3B3B,EAAE,0BAA0BwC,OAC5BxC,EAAE8B,MAAMU,OACRxC,EAAE,cAAcyC","file":"custom.min.js","sourcesContent":["jQuery(document).ready(function($){\n\t$('.autoplay').slick({\n\t\tslidesToShow: 1,\n\t\tslidesToScroll: 1,\n\t\tautoplay: true,\n\t\tautoplaySpeed: 5000,\n arrows: false,\n dots: false,\n fade: true,\n cssEase: 'ease'\n\t});\n\n $('.vacancies-list').slick({\n\t\tslidesToShow: 1,\n\t\tslidesToScroll: 1,\n arrows: false,\n dots: false,\n fade: true,\n cssEase: 'ease',\n adaptiveHeight: true\n\t});\n\n if ($('.vacancies-similar__slider').length) {\n // Ініціалізуємо слайдер\n $('.vacancies-similar__slider').slick({\n slidesToShow: 3,\n slidesToScroll: 1,\n arrows: false,\n dots: false,\n cssEase: 'ease',\n infinite: false,\n responsive: [\n {\n breakpoint: 1025,\n settings: {\n slidesToShow: 2,\n slidesToScroll: 1\n }\n },\n {\n breakpoint: 768,\n settings: {\n slidesToShow: 1,\n slidesToScroll: 1\n }\n }\n ]\n });\n\n // Функція для оновлення класів кнопок\n function updateSlideControls(slick) {\n var currentSlide = slick.currentSlide;\n var totalSlides = slick.slideCount;\n var slidesToShow = slick.options.slidesToShow;\n\n // Додаємо/знімаємо клас \"off\" з кнопок\n $('.slide-prev').toggleClass('off', currentSlide === 0);\n $('.slide-next').toggleClass('off', currentSlide >= totalSlides - slidesToShow);\n }\n\n // Функція для оновлення лічильника слайдів\n function updateSlideCounter(slick) {\n var currentSlide = slick.currentSlide + 1; // Поточний слайд (додаємо 1 для коректного відображення)\n var totalSlides = slick.slideCount;\n var formattedCurrentSlide = ('0' + currentSlide).slice(-2); // Форматуємо номер слайда (додаємо нуль, якщо потрібно)\n var formattedTotalSlides = ('0' + totalSlides).slice(-2); // Форматуємо загальну кількість слайдів\n\n $('.slide-counter').html(formattedCurrentSlide + '/' + formattedTotalSlides + '');\n }\n\n // Оновлюємо контролери та лічильник при ініціалізації\n $('.vacancies-similar__slider').on('init', function(event, slick) {\n updateSlideControls(slick);\n updateSlideCounter(slick);\n });\n\n // Оновлюємо контролери та лічильник після кожної зміни слайда\n $('.vacancies-similar__slider').on('afterChange', function(event, slick, currentSlide) {\n updateSlideControls(slick);\n updateSlideCounter(slick);\n });\n\n // Оновлюємо контролери і лічильник одразу після ініціалізації слайдера\n $('.vacancies-similar__slider').slick('refresh');\n updateSlideControls($('.vacancies-similar__slider').slick('getSlick'));\n updateSlideCounter($('.vacancies-similar__slider').slick('getSlick'));\n\n // Обробка кліків на кнопки\n $('.vacancies-similar .slide-prev').on('click', function() {\n $('.vacancies-similar__slider').slick('slickPrev');\n });\n\n $('.vacancies-similar .slide-next').on('click', function() {\n $('.vacancies-similar__slider').slick('slickNext');\n });\n }\n\n $('.vacancies__category').on('click', function() {\n var categoryId = $(this).attr('id');\n $('.vacancies__category').removeClass('active');\n $(this).addClass('active');\n $('.vacancies__items').removeClass('active');\n $('#category-' + categoryId).addClass('active');\n });\n\n\n $('.vacancy-item').each(function() {\n var $item = $(this);\n $item.find('.slide-prev').on('click', function() {\n $item.closest('.vacancies-list').slick('slickPrev');\n });\n $item.find('.slide-next').on('click', function() {\n $item.closest('.vacancies-list').slick('slickNext');\n });\n });\n\n $(\".wpcf7-tel\").mask(\"+38 (0 9 9) - 9 9 9 - 9 9 - 9 9\", { autoclear: false });\n\n $('#menu-open').on('click', function() {\n $(this).hide();\n $('#menu-close').show();\n $('.header__nav-mobile').addClass('active');\n $('body').css('overflow', 'hidden');\n });\n\n $('#menu-close').on('click', function() {\n $(this).hide();\n $('#menu-open').show();\n $('.header__nav-mobile').removeClass('active');\n $('body').css('overflow', 'auto');\n });\n\n $('.header__nav-mobile a').on('click', function() {\n $('#menu-close').hide();\n $('#menu-open').show();\n $('.header__nav-mobile').removeClass('active');\n $('body').css('overflow', 'auto');\n });\n\n $('.faq__item').on('click', function() {\n var $this = $(this);\n if ($this.hasClass('active')) {\n $this.removeClass('active clip-block');\n $this.find('p').slideUp(300);\n } else {\n $('.faq__item').removeClass('active clip-block').find('p').slideUp(300);\n $this.addClass('active clip-block');\n $this.find('p').slideDown(300);\n }\n });\n\n $(document).ready(function() {\n $(\".anchor a, .anchor-a\").click(function(e) {\n var href = $(this).attr(\"href\");\n\n // Перевірте, чи href починається з #\n if (href && href.startsWith('#')) {\n e.preventDefault();\n\n var target = $(href);\n\n if (target.length) {\n var offset = target.offset().top - 100;\n $(\"html, body\").animate({\n scrollTop: offset\n }, 1000);\n }\n } else {\n // Якщо href не є якір, дозвольте звичайну навігацію\n window.location.href = href;\n }\n });\n });\n\n //cft\n $('.custom-select-wrapper').each(function() {\n var $this = $(this);\n var $select = $this.find('.wpcf7-select');\n var $customSelect = $('
').insertAfter($select);\n var $selected = $('').appendTo($customSelect);\n var $items = $('').appendTo($customSelect);\n\n // Add the placeholder text\n $selected.text($select.find('option').first().text());\n\n // Populate the custom select items\n $select.find('option').each(function() {\n var $option = $(this);\n var $item = $('').text($option.text()).appendTo($items);\n $item.on('click', function() {\n $select.val($option.val());\n $selected.text($option.text());\n $items.addClass('select-hide');\n $selected.removeClass('select-arrow-active');\n $items.find('.same-as-selected').removeClass('same-as-selected');\n $item.addClass('same-as-selected');\n });\n });\n\n // Toggle the custom select items\n $selected.on('click', function(e) {\n e.stopPropagation();\n $('.select-items').addClass('select-hide');\n $('.select-selected').removeClass('select-arrow-active');\n $items.toggleClass('select-hide');\n $selected.toggleClass('select-arrow-active');\n });\n \n});\n\n $(document).on('click', function() {\n $('.select-items').addClass('select-hide');\n $('.select-selected').removeClass('select-arrow-active');\n });\n\n $('#open-more').on('click', function() {\n $('.cky-notice-des .more').show(); \n $(this).hide();\n $('#close-more').show();\n });\n\n $('#close-more').on('click', function() {\n $('.cky-notice-des .more').hide(); \n $(this).hide();\n $('#open-more').show();\n });\n});"]}