{"version":3,"sources":["aheto/features-tabs/assets/js/cs_layout1.js"],"names":["$","$target","$selector1","$selector2","$this","not","on","e","preventDefault","this","parent","index","addClass","siblings","removeClass","tabChange","find","eq","indexEl","each","length","hide","jQuery","window","document"],"mappings":"cAAC,SAAWA,GAWX,IAAmBC,EAASC,EAAYC,EAArBF,EA4BdG,EAAK,mBA5BkBF,EA4BCG,aA5BWF,EA4BnC,iBA3BJF,EAAQK,GAAG,QAAS,SAAUC,GAC7BA,EAAEC,iBADHP,IAAAA,EAAWD,EAAAS,MAASC,SAAAC,QAGnBX,EAAAS,MAEAT,SALDY,SAAA,UAgBAC,WAPGC,YAAY,UAShBC,QAAWb,GAEXc,KAAAb,GARIW,YAAY,UACZG,GAAGC,GACHN,SAAS,YAUbZ,EAAE,uBAAuBmB,KAAK,WACfnB,EAAES,MAENO,KAAK,aAAaX,IAAI,aAAae,QAAU,GAEtDpB,EAAES,MACDO,KAAK,WACLK,SA3CH,CA+CEC,QAAQC,OAAQC","file":"cs_layout1.min.js","sourcesContent":[";(function ($, window, document, undefined) {\n\t\"use strict\";\n\n\t/**\n\t * Tabs\n\t *\n\t * @param $target $('.class') - tab item\n\t * @param $selector1 '.class' - tabs main wrapper\n\t * @param $selector2 '.class' - tabs content item\n\t */\n\n\tfunction tabChange($target, $selector1, $selector2) {\n\t\t$target.on('click', function (e) {\n\t\t\te.preventDefault();\n\n\t\t\tconst indexEl = $(this).parent().index();\n\n\t\t\t$(this)\n\t\t\t\t.parent()\n\t\t\t\t.addClass('active')\n\t\t\t\t.siblings()\n\t\t\t\t.removeClass('active')\n\t\t\t\t.closest($selector1)\n\t\t\t\t.find($selector2)\n\t\t\t\t.removeClass('active')\n\t\t\t\t.eq(indexEl)\n\t\t\t\t.addClass('active');\n\t\t});\n\t}\n\n\ttabChange($('.js-cs-tab-list'), '.js-cs-tab', '.js-cs-tab-box');\n\n\t/**\n\t * Hide swiper navigation\n\t */\n\n\t$('.js-vertical-swiper').each(function () {\n\t\tconst $this = $(this);\n\n\t\tif ($this.find('.js-slide').not('.disabled').length <= 3) {\n\n\t\t\t$(this)\n\t\t\t.find('.js-nav')\n\t\t\t.hide();\n\t\t}\n\t});\n\t\n})(jQuery, window, document);"]}