{"version":3,"sources":["common/js/components/FAQComponent.js"],"names":["$","$showAllButton","maxVisibleQuestions","visibleQuestionsAfterCollapse","$faqList","prev","children","length","removeClass","nextAll","addClass","on","$this","this","hideLabel","data","originalLabel","trim","text"],"mappings":"AAAAA,EAAE,WACA,IAAIC,eAAiBD,EAAE,yBACrBE,oBAAsB,EACtBC,8BAAgC,EAChCC,SAAWH,eAAeI,KAAK,MAC7BD,SAASE,WAAWC,OAHA,IAItBN,eAAeO,YAAY,UAC3BJ,SAASE,SAAS,mBAAuDG,UAAUC,SAAS,WAE9FT,eAAeU,GAAG,QAAS,WACzB,IAAIC,MAAQZ,EAAEa,MACZC,UAAYF,MAAMG,KAAK,SACvBC,cAAgBJ,MAAMG,KAAK,YACzBf,EAAEiB,KAAKL,MAAMM,UAAYF,eAE3BZ,SAASE,SAAS,MAAME,YAAY,UACpCI,MAAMM,KAAKJ,aAGXF,MAAMM,KAAKF,eACXZ,SAASE,SAAS,mBAAuDG,UAAUC,SAAS","file":"../../../../common/js/components/FAQComponent-5687647428.js","sourcesContent":["$(function () {\n var $showAllButton = $(\".FAQComponent-showAll\"),\n maxVisibleQuestions = 5,\n visibleQuestionsAfterCollapse = 3,\n $faqList = $showAllButton.prev(\"ul\");\n if ($faqList.children().length > maxVisibleQuestions) {\n $showAllButton.removeClass(\"hidden\");\n $faqList.children(\"li:nth-child(\" + visibleQuestionsAfterCollapse + \")\").nextAll().addClass(\"hidden\");\n }\n $showAllButton.on(\"click\", function () {\n var $this = $(this),\n hideLabel = $this.data(\"close\"),\n originalLabel = $this.data(\"original\");\n if ($.trim($this.text()) === originalLabel) {\n // Opens\n $faqList.children(\"li\").removeClass(\"hidden\");\n $this.text(hideLabel);\n } else {\n //Closes\n $this.text(originalLabel);\n $faqList.children(\"li:nth-child(\" + visibleQuestionsAfterCollapse + \")\").nextAll().addClass(\"hidden\");\n }\n });\n});"]}