var mySwiper4=new Swiper(".partner_slider",{slidesPerView:9,loop:!0,navigation:{nextEl:".arrow_l1",prevEl:".arrow_r1"},autoplay:{delay:2500,disableOnInteraction:!1},on:{init(){this.el.addEventListener("mouseenter",()=>{this.autoplay.stop()}),this.el.addEventListener("mouseleave",()=>{this.autoplay.start()})}},breakpoints:{320:{slidesPerView:2,spaceBetween:20},480:{slidesPerView:4,spaceBetween:30},940:{slidesPerView:7},1500:{slidesPerView:8}}});$(".grid").isotope({itemSelector:".grid-item",percentPosition:!0,masonry:{columnWidth:".grid-sizer"}}),$(".grid2").isotope({itemSelector:".grid-item2"});var mySwiper13=new Swiper(".free_bides-content",{slidesPerView:5,spaceBetween:0,navigation:{nextEl:".arrow_l2",prevEl:".arrow_r2"},breakpoints:{320:{slidesPerView:1},480:{slidesPerView:2},680:{slidesPerView:3},940:{slidesPerView:4},1500:{slidesPerView:5,freeMode:!0}}}),mySwiper14=new Swiper(".new_collections-content",{slidesPerView:5,navigation:{nextEl:".arrow_l3",prevEl:".arrow_r3"},breakpoints:{320:{slidesPerView:1,centeredSlides:!0},480:{slidesPerView:2},680:{slidesPerView:3},940:{slidesPerView:4},1500:{slidesPerView:5}}});$(document).on("click",".mob_menu",function(){this.classList.contains("active")?($(this).removeClass("active"),$(".navigation").removeClass("active")):($(this).addClass("active"),$(".navigation").addClass("active"))}),$("body").on("click",".password-btn",function(){$(this).hasClass("show")?($(this).removeClass("show"),$(".password-input").attr("type","password")):($(this).addClass("show"),$(".password-input").attr("type","text"))}),$(document).on("click",".player_buy, .player_download",function(){$(".search_modal").addClass("fix_index")}),$(document).on("click",".reg_open",function(){$(".modal_reg2").removeClass("hidden"),$(".modal_overlay1").removeClass("hidden"),$(".search_modal").addClass("hidden")}),$(document).on("click",".modal_overlay1",function(){$(".modal_reg2").addClass("hidden"),$(".modal_overlay1").addClass("hidden")}),$(document).on("click",".logIn_moadal-btn",function(){$(".modal_reg2").addClass("hidden"),$(".modal_overlay1").addClass("hidden"),$(".modal_logIn").removeClass("hidden"),$(".modal_overlay1").removeClass("hidden")}),$(document).on("click",".reg_moadal-btn",function(){$(".modal_logIn").addClass("hidden"),$(".modal_overlay1").addClass("hidden"),$(".modal_reg").removeClass("hidden"),$(".modal_overlay1").removeClass("hidden")}),$(document).on("click",".btn_logIn",function(){$(".modal_logIn").removeClass("hidden"),$(".modal_overlay1").removeClass("hidden"),$(".search_modal").addClass("hidden")}),$(document).on("click",".sb_btn_logIn",function(){$(".modal_logIn").removeClass("hidden"),$(".modal_overlay1").removeClass("hidden")}),$(document).on("click",".modal_overlay1",function(){$(".modal_logIn").addClass("hidden"),$(".modal_overlay1").addClass("hidden"),$(".search_modal").removeClass("fix_index")}),$(document).on("click",".lost_pas-btn",function(){$(".modal_logIn").addClass("hidden"),$(".modal_overlay1").addClass("hidden"),$(".modal_lost").removeClass("hidden"),$(".modal_overlay1").removeClass("hidden")}),$(document).on("click",".logIn_moadal-btn",function(){$(".modal_lost").addClass("hidden"),$(".modal_overlay1").addClass("hidden"),$(".modal_logIn").removeClass("hidden"),$(".modal_overlay1").removeClass("hidden")}),$(document).on("click",".modal_overlay1",function(){$(".modal_lost").addClass("hidden"),$(".modal_overlay1").addClass("hidden")}),$(document).ready(function(){$(".sel_search").niceSelect()}),$(document).ready(function(){$(".period_select").niceSelect()}),$(document).ready(function(){$(".instr_select").niceSelect()});var res=$(".playlist_modal");$(document).click(function(e){$(e.target).closest(res).length||$(e.target).closest(".player_playlist").length||res.addClass("hidden")&&$(".player_playlist").removeClass("active")}),$(document).on("click",".player_playlist",function(){$(this).hasClass("active")?($(this).addClass("active"),$(".playlist_modal").removeClass("hidden")):($(this).removeClass("active"),$(".playlist_modal").addClass("hidden"))}),$("input[data-list]").each(function(){var e=$("#"+$(this).attr("data-list")).find("option").map(function(){return this.value}).get();$(this).autocomplete({select:function(e,t){let s=t.item.value;$.cookie("sb_country",s,{expires:1,path:"/"}),"Israel"==s?($(".sb_country_israel").removeClass("hidden"),$(".sb_country").addClass("hidden")):($(".sb_country_israel").addClass("hidden"),$(".sb_country").removeClass("hidden"))},source:e}).on("focus",function(){$(this).autocomplete("search"," "),$("#ui-id-1").css("display","block")}).on("search",function(){$("#ui-id-1").css("display","block"),""===$(this).val()&&($(this).autocomplete("search"," "),$("#ui-id-1").css("display","block"))})}),$("input[data-list2]").each(function(){var e=$("#"+$(this).attr("data-list2")).find("option").map(function(){return this.value}).get();$(this).autocomplete({source:e}).on("focus",function(){$(this).autocomplete("search"," "),$("#ui-id-1").css("display","block"),$("#ui-id-1").addClass("fixed")}).on("search",function(){$("#ui-id-1").css("display","block"),$("#ui-id-1").addClass("fixed"),""===$(this).val()&&($(this).autocomplete("search"," "),$("#ui-id-1").css("display","block"),$("#ui-id-1").addClass("fixed"))})}),$(".file_ava-btn").on("click",function(){$(".file_ava").trigger("click")}),$(".file_bg-btn").on("click",function(){$(".file_bg").trigger("click")});const tabLinks1=document.querySelectorAll(".tabs1 a"),tabPanels1=document.querySelectorAll(".tabs-panel1");for(let e of tabLinks1)e.addEventListener("click",t=>{t.preventDefault(),document.querySelector(".tabs1 li.active").classList.remove("active"),document.querySelector(".tabs-panel1.active").classList.remove("active");const s=e.parentElement;s.classList.add("active");const a=[...s.parentElement.children].indexOf(s);[...tabPanels1].filter(e=>e.getAttribute("data-index")==a)[0].classList.add("active")});const tabLinks2=document.querySelectorAll(".tabs2 a"),tabPanels2=document.querySelectorAll(".tabs-panel2");for(let e of tabLinks2)e.addEventListener("click",t=>{t.preventDefault(),document.querySelector(".tabs2 li.active").classList.remove("active"),document.querySelector(".tabs-panel2.active").classList.remove("active");const s=e.parentElement;s.classList.add("active");const a=[...s.parentElement.children].indexOf(s);[...tabPanels2].filter(e=>e.getAttribute("data-index")==a)[0].classList.add("active")});const tabLinks3=document.querySelectorAll(".tabs3 a"),tabPanels3=document.querySelectorAll(".tabs-panel3");for(let e of tabLinks3)e.addEventListener("click",t=>{t.preventDefault(),document.querySelector(".tabs3 li.active").classList.remove("active"),document.querySelector(".tabs-panel3.active").classList.remove("active");const s=e.parentElement;s.classList.add("active");const a=[...s.parentElement.children].indexOf(s);[...tabPanels3].filter(e=>e.getAttribute("data-index")==a)[0].classList.add("active")});function checkCntSlides(){let e=$(".free_bides-content .swiper-slide").length;function t(){$(".free_bides-row .arrow_wrap").removeClass("hiden")}function s(){$(".free_bides-row .arrow_wrap").addClass("hiden")}return console.log(e),$(document).width()>=1500&&e>5?(t(),0):(s(),$(document).width()>=940&&$(document).width()<1500&&e>4?(t(),0):(s(),$(document).width()>=680&&$(document).width()<940&&e>2?(t(),0):(s(),$(document).width()>=320&&$(document).width()<680&&e>1?(t(),0):void s())))}$(document).on("click",".player_like",function(){this.classList.contains("active")?$(this).removeClass("active"):$(this).addClass("active")}),$(document).on("click",".btn_pas",function(){$(".modal_pas").removeClass("hidden"),$(".modal_overlay1").removeClass("hidden")}),$(document).on("click",".modal_overlay1",function(){$(".modal_pas").addClass("hidden"),$(".modal_overlay1").addClass("hidden")}),$(".name_filter span").each(function(){$(this).on("click",function(){$(this).hasClass("active")?$(this).removeClass("active"):$(this).addClass("active")})}),$(document).on("click",".player_playlist",function(){this.classList.contains("active")?($(this).removeClass("active"),$(".playlist_modal").addClass("hidden")):($(this).addClass("active"),$(".playlist_modal").removeClass("hidden"))}),$(document).ready(function(){$(".filter").keyup(function(){var e=$(this).val();$(this).parents(".tagging_block").find(".checkbox p").each(function(){$(this).text().search(new RegExp(e,"i"))<0?($(this).parent().css("display","none"),$(this).parents(".tagging_block").find(".sb_music_style").css("display","none")):($(this).parent().css("display","flex"),$(this).parents(".tagging_block").find(".sb_music_style").css("display","flex"))})})}),$(document).ready(function(){$(".acc__title").click(function(e){var t=$(this).closest(".acc__card").find(".acc__panel");$(this).closest(".acc").find(".acc__panel").not(t).slideUp(),$(this).hasClass("active")?$(this).removeClass("active"):($(this).closest(".acc").find(".acc__title.active").removeClass("active"),$(this).addClass("active")),t.stop(!1,!0).slideToggle(),e.preventDefault()})}),$(document).ready(function(){var e=$(".pay_select-listWrap");$(document).click(function(t){$(t.target).closest(e).length||$(t.target).closest(".sel_btn").length||e.addClass("hidden")&&$(".sel_btn").removeClass("active")}),$(".sel_btn").click(function(){$(this).hasClass("active")?($(this).removeClass("active"),$(".pay_select-listWrap").addClass("hidden")):($(this).addClass("active"),$(".pay_select-listWrap").removeClass("hidden"))})}),$("#btn_personal").click(function(){"true"!=$(this).attr("data-mobile")?window.location="/account/personal_info/":$(".btn_personal-drop").toggleClass("active_mobile")}),checkCntSlides(),$(window).resize(function(){checkCntSlides()}),$(document).click(function(e){$(e.target)===$(".filter_select")||$(".filter_select").has($(e.target)).length||($(".filter_select").find(".filter_select-container").addClass("hidden-anim"),$(".filter_select_item-dropdown").addClass("hidden-anim"),$(".filter_select_item-more").addClass("hidden-anim"),$(".filter_select").addClass("hidden-anim"))});for(let e of $(".filter_select_title"))$(e).click(t=>{let s=$(e).next().hasClass("hidden-anim");$(".filter_select_title").next().addClass("hidden-anim"),!0===s?$(e).next().removeClass("hidden-anim"):$(e).next().addClass("hidden-anim"),$(".filter_select_item-dropdown").addClass("hidden-anim"),$(".filter_select_item-more").removeClass("hidden-anim")});for(let e of $(".filter_select_item-more"))$(e).click(()=>{$(e).toggleClass("hidden-anim"),$(e).parent().next().toggleClass("hidden-anim")});