{ "version": 3, "sources": ["../../src/js/modules/toggle-content/init.js"], "sourcesContent": ["(function ($) {\n $(document).ready(function () {\n var $toggleContentLink = $(\".toggle-content\"),\n $addCloseButton = $(\".add-close-button\"),\n $toggleContentClose = $(\".toggle-content__close\"),\n $toggleContentTarget = $(\".toggle-content__target\");\n\n // if ( $toggleContentClose.length > 0) {\n\n // }\n\n if ($addCloseButton.length > 0) {\n $toggleContentLink\n .next($toggleContentTarget)\n .append(\n ''\n );\n }\n\n if ($toggleContentLink.length > 0) {\n $toggleContentLink.on(\"click\", function (event) {\n event.preventDefault();\n $(this).next($toggleContentTarget).slideToggle(\"fast\");\n\n $(\"body\").on(\n \"click\",\n \".toggle-content__close\",\n function (event) {\n event.preventDefault();\n $(this).parent().slideUp(\"fast\");\n }\n );\n });\n }\n });\n})(jQuery);\n"], "mappings": "OAAC,SAAUA,EAAG,CACVA,EAAE,QAAQ,EAAE,MAAM,UAAY,CAC1B,IAAIC,EAAqBD,EAAE,iBAAiB,EACxCE,EAAkBF,EAAE,mBAAmB,EACvCG,EAAsBH,EAAE,wBAAwB,EAChDI,EAAuBJ,EAAE,yBAAyB,EAMlDE,EAAgB,OAAS,GACzBD,EACK,KAAKG,CAAoB,EACzB,OACG,2FACJ,EAGJH,EAAmB,OAAS,GAC5BA,EAAmB,GAAG,QAAS,SAAUI,EAAO,CAC5CA,EAAM,eAAe,EACrBL,EAAE,IAAI,EAAE,KAAKI,CAAoB,EAAE,YAAY,MAAM,EAErDJ,EAAE,MAAM,EAAE,GACN,QACA,yBACA,SAAUK,EAAO,CACbA,EAAM,eAAe,EACrBL,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,MAAM,CACnC,CACJ,CACJ,CAAC,CAET,CAAC,CACL,GAAG,MAAM", "names": ["$", "$toggleContentLink", "$addCloseButton", "$toggleContentClose", "$toggleContentTarget", "event"] }