{"version":3,"sources":["9_custom-scripts.js"],"names":["jQuery","document","ready","$","activateTab","id","console","log","concat","removeClass","addClass","tab","fadeOut","setTimeout","fadeIn","hide","slick","arrows","infinite","slidesToShow","slidesToScroll","responsive","breakpoint","settings","firstTab","data","click","e","currentTarget"],"mappings":";;;EAIAA,OAAOC,UAAUC,MAAM,SAAUC,GAmB7B,SAASC,EAAYC,GACjBC,QAAQC,IAAR,kBAAAC,OAA8BH,IAC9BF,EAAE,oBAAoBM,YAAY,UAClCN,EAAC,sBAAAK,OAAuBH,EAAvB,MAA8BK,SAAS,UACxC,IAAMC,EAAMR,EAAC,sBAAAK,OAAuBH,IACpCF,EAAE,sBAAsBS,QAAQ,KAChCC,WAAW,WAAA,OAAMV,EAAEQ,GAAKG,OAAO,MAAM,KAIzC,GA5BAX,EAAE,sBAAsBY,OAExBZ,EAAE,qBAAqBa,MAAM,CACzBC,QAAQ,EACRC,UAAU,EACVC,aAAc,EACdC,eAAgB,EAChBC,WAAY,CACR,CACIC,WAAY,IACZC,SAAU,CACNJ,aAAc,EACdC,eAAgB,QAedjB,EAAE,sBAAsB,GAC1B,CACZ,IAAMqB,EAAWrB,EAAE,wBAAwB,GAE3CC,EADgBD,EAAEqB,GAAUC,KAAK,QAIrCtB,EAAE,aAAauB,MAAM,SAAUC,GAC3BvB,EAAYD,EAAEwB,EAAEC,eAAeH,KAAK","file":"../js/custom-scripts.min.js","sourcesContent":["/*!\r\n * theme custom scripts\r\n*/\r\n\r\njQuery(document).ready(function ($) {\r\n $(\".tabs-content .tab\").hide();\r\n\r\n $(\".portfolio-slider\").slick({\r\n arrows: true,\r\n infinite: true,\r\n slidesToShow: 3,\r\n slidesToScroll: 3,\r\n responsive: [\r\n {\r\n breakpoint: 760,\r\n settings: {\r\n slidesToShow: 1,\r\n slidesToScroll: 1,\r\n }\r\n }\r\n ]\r\n });\r\n\r\n function activateTab(id) {\r\n console.log(`activating tab-${id}`);\r\n $(\".tab-icon.active\").removeClass(\"active\");\r\n $(`.tab-icon[data-tab=${id}]`).addClass(\"active\");\r\n const tab = $(`.tabs-content .tab-${id}`);\r\n $(\".tabs-content .tab\").fadeOut(300);\r\n setTimeout(() => $(tab).fadeIn(300), 300);\r\n }\r\n\r\n const activeTab = $(\".tab-icons .active\")[0];\r\n if (!activeTab) {\r\n const firstTab = $(\".tab-icons .tab-icon\")[0];\r\n const firstId = $(firstTab).data(\"tab\");\r\n activateTab(firstId);\r\n }\r\n\r\n $(\".tab-icon\").click(function (e) {\r\n activateTab($(e.currentTarget).data(\"tab\"));\r\n });\r\n});\r\n"],"sourceRoot":"wp-theme-files"}