{"version":3,"sources":["02-molecules/content/listing/listing.js"],"names":["$","Drupal","behaviors","listingToggle","attach","each","find","once","click","e","preventDefault","next","slideToggle","toggleClass","jQuery"],"mappings":"aAAA;;;;IAMA;AACA;AACA;AACA;AAGC,UAAuBA,CAAvB,CAA0BC,CAA1B,CAAkC,CACjC,aAEAA,CAAM,CAACC,SAAP,CAAiBC,aAAjB,CAAiC,CAC/BC,MAAM,CAAE,YAA6B,CACnCJ,CAAC,CAAC,UAAD,CAAD,CAAcK,IAAd,CAAmB,UAAW,CAC5BL,CAAC,CAAC,IAAD,CAAD,CAAQM,IAAR,CAAa,uBAAb,EAAsCC,IAAtC,GAA6CC,KAA7C,CAAmD,SAASC,CAAT,CAAW,CAC5DA,CAAC,CAACC,cAAF,EAD4D,CAE5DV,CAAC,CAAC,IAAD,CAAD,CAAQW,IAAR,CAAa,gBAAb,EAA+BC,WAA/B,EAF4D,CAG5DZ,CAAC,CAAC,IAAD,CAAD,CAAQa,WAAR,CAAoB,MAApB,CACD,CAJD,CAKD,CAND,CAOD,CAT8B,CAWlC,CAdA,EAcCC,MAdD,CAcSb,MAdT,C","sourcesContent":["/**\n * @file\n * A JavaScript file containing the Info For menu functionality\n *\n */\n\n// JavaScript should be made compatible with libraries other than jQuery by\n// wrapping it with an \"anonymous closure\". See:\n// - https://drupal.org/node/1446420\n// - http://www.adequatelygood.com/2010/3/JavaScript-Module-Pattern-In-Depth\n\n\n(function listingToggle($, Drupal) {\n 'use strict';\n\n Drupal.behaviors.listingToggle = {\n attach: function (context, settings) {\n $('.listing').each(function() {\n $(this).find('.listing__text-toggle').once().click(function(e){\n e.preventDefault();\n $(this).next('.listing__text').slideToggle();\n $(this).toggleClass('open');\n });\n });\n },\n };\n}(jQuery, Drupal));\n"],"file":"listing.js"}