{"version":3,"sources":["ffw-pop.js"],"names":["jQuery","document","ready","$","faq_pop","on","this","slideFAQs","e","hasClass","find","slideUp","parent","removeClass","addClass","slideDown","init"],"mappings":"aAIAA,OAAAC,UAAAC,MAAA,SAAAC,G,EAGIC,QAAA,C,KAGQ,W,YAAEH,GAAAI,QAAY,4CAAAC,KAAAC,Y,UADV,SAAAC,G,0BASJL,EAAAG,MAAMG,SAAMA,c,QAAAA,YAAAA,cAASC,KAAeA,uBAAAC,W,kDAE7BC,OAAAA,uBAAAF,KAAAA,uBAAAC,U,uCACDE,YAAAA,c,QACAC,SAAAA,cAAAF,OAAqCC,uBAAAA,KAAvCH,uBAAAK,cAIJ,I,EApBZX,QAAAY","file":"ffw-pop.min.js","sourcesContent":["/**\n * Woocommerce FAQ - Classic Template JS\n *\n * Copyright (c) 2019 wpfeel\n * Licensed under the GPLv2+ license.\n */\njQuery(document).ready(function ($) {\n 'use strict';\n\n $.faq_pop = {\n init: function () {\n //default hide all answers\n $(document).on('click', '#ffw-main-wrapper .ffw-pop-container span', this.slideFAQs);\n },\n\n slideFAQs: function (e) {\n e.preventDefault();\n\n if ($(this).hasClass(\"ffw-active\")) {\n $(this).removeClass(\"ffw-active\").find(\".ffw-classic-answer\").slideUp();\n } else {\n $(\".ffw-accordion-item > .ffw-button.ffw-active\").parent('.ffw-accordion-item').find(\".ffw-classic-answer\").slideUp();\n $(\".ffw-accordion-item > .ffw-button\").removeClass(\"ffw-active\");\n $(this).addClass(\"ffw-active\").parent('.ffw-accordion-item').find(\".ffw-classic-answer\").slideDown();\n }\n\n return false;\n }\n\n\n }\n //call the class\n $.faq_pop.init();\n});"]}