{"version":3,"sources":["webpack:///49.52f5a0f9.bundle.js","webpack:///./src/js/components/article/ArticleBrief.js"],"names":["webpackJsonp","243","module","exports","__webpack_require__","$","_classCallCheck","instance","Constructor","TypeError","_possibleConstructorReturn","self","call","ReferenceError","_inherits","subClass","superClass","prototype","Object","create","constructor","value","enumerable","writable","configurable","setPrototypeOf","__proto__","defineProperty","_createClass","defineProperties","target","props","i","length","descriptor","key","protoProps","staticProps","_component2","obj","__esModule","default","_component","ArticleBrief","el","_Component","this","dom","$container","$el","$toggle","find","$content","on","toggleBrief","window","width","toggleClass","slideToggle","Component"],"mappings":"AAAAA,cAAc,KAERC,IACA,SAAUC,EAAQC,EAASC,GAEjC,cAC4B,SAASC,GAcrC,QAASC,GAAgBC,EAAUC,GAAe,KAAMD,YAAoBC,IAAgB,KAAM,IAAIC,WAAU,qCAEhH,QAASC,GAA2BC,EAAMC,GAAQ,IAAKD,EAAQ,KAAM,IAAIE,gBAAe,4DAAgE,QAAOD,GAAyB,gBAATA,IAAqC,kBAATA,GAA8BD,EAAPC,EAElO,QAASE,GAAUC,EAAUC,GAAc,GAA0B,kBAAfA,IAA4C,OAAfA,EAAuB,KAAM,IAAIP,WAAU,iEAAoEO,GAAeD,GAASE,UAAYC,OAAOC,OAAOH,GAAcA,EAAWC,WAAaG,aAAeC,MAAON,EAAUO,YAAY,EAAOC,UAAU,EAAMC,cAAc,KAAeR,IAAYE,OAAOO,eAAiBP,OAAOO,eAAeV,EAAUC,GAAcD,EAASW,UAAYV,GAhBjeE,OAAOS,eAAexB,EAAS,cAC7BkB,OAAO,GAGT,IAAIO,GAAe,WAAc,QAASC,GAAiBC,EAAQC,GAAS,IAAK,GAAIC,GAAI,EAAGA,EAAID,EAAME,OAAQD,IAAK,CAAE,GAAIE,GAAaH,EAAMC,EAAIE,GAAWZ,WAAaY,EAAWZ,aAAc,EAAOY,EAAWV,cAAe,EAAU,SAAWU,KAAYA,EAAWX,UAAW,GAAML,OAAOS,eAAeG,EAAQI,EAAWC,IAAKD,IAAiB,MAAO,UAAU1B,EAAa4B,EAAYC,GAAiJ,MAA9HD,IAAYP,EAAiBrB,EAAYS,UAAWmB,GAAiBC,GAAaR,EAAiBrB,EAAa6B,GAAqB7B,MCZhiB,QDgBI8B,EAEJ,SAAgCC,GAAO,MAAOA,IAAOA,EAAIC,WAAaD,GAAQE,QAASF,IAF9CG,GCdnCC,E,YACJ,WAAYC,GAAG,0EACPA,IDuDR,MAhCA9B,GAAU6B,EAAcE,GAQxBjB,EAAae,IACXR,IAAK,gBACLd,MAAO,WC7BPyB,KAAKC,KACHC,WAAYF,KAAKG,IACjBC,QAASJ,KAAKG,IAAIE,KAAK,4BACvBC,SAAUN,KAAKG,IAAIE,KAAK,kCDkC1BhB,IAAK,eACLd,MAAO,WC9BPyB,KAAKC,IAAIG,QAAQG,GAAG,cAAiBP,KAAKQ,YAA1C,KAAqCR,UDkCrCX,IAAK,cACLd,MAAO,WC/BHhB,EAAEkD,QAAQC,QAAU,MACtBV,KAAKC,IAAIC,WAAWS,YAAY,YAChCX,KAAKC,IAAIK,SAASM,mBDqCff,GCzDkBgB,UD4D3BxD,GAAQsC,QCnCOE,IDoCc/B,KAAKT,EAASC,EAAoB","file":"49.52f5a0f9.bundle.js","sourcesContent":["webpackJsonp([49],{\n\n/***/ 243:\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function($) {\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _component = __webpack_require__(33);\n\nvar _component2 = _interopRequireDefault(_component);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar ArticleBrief = function (_Component) {\n _inherits(ArticleBrief, _Component);\n\n function ArticleBrief(el) {\n _classCallCheck(this, ArticleBrief);\n\n return _possibleConstructorReturn(this, (ArticleBrief.__proto__ || Object.getPrototypeOf(ArticleBrief)).call(this, el));\n }\n\n _createClass(ArticleBrief, [{\n key: 'setupDefaults',\n value: function setupDefaults() {\n this.dom = {\n $container: this.$el,\n $toggle: this.$el.find('.wh-article-brief__title'),\n $content: this.$el.find('.wh-article-brief__content')\n };\n }\n }, {\n key: 'addListeners',\n value: function addListeners() {\n this.dom.$toggle.on('click touch', this.toggleBrief.bind(this));\n }\n }, {\n key: 'toggleBrief',\n value: function toggleBrief() {\n if ($(window).width() < 768) {\n this.dom.$container.toggleClass('expanded');\n this.dom.$content.slideToggle();\n }\n }\n }]);\n\n return ArticleBrief;\n}(_component2.default);\n\nexports.default = ArticleBrief;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(10)))\n\n/***/ })\n\n});\n\n\n// WEBPACK FOOTER //\n// 49.52f5a0f9.bundle.js","import Component from 'component';\n\nclass ArticleBrief extends Component{\n constructor(el){\n super(el);\n }\n\n setupDefaults(){\n this.dom = {\n $container: this.$el,\n $toggle: this.$el.find('.wh-article-brief__title'),\n $content: this.$el.find('.wh-article-brief__content')\n };\n }\n\n addListeners(){\n this.dom.$toggle.on('click touch', ::this.toggleBrief);\n }\n\n toggleBrief(){\n if ($(window).width() < 768) {\n this.dom.$container.toggleClass('expanded');\n this.dom.$content.slideToggle();\n }\n }\n}\n\nexport default ArticleBrief;\n\n\n\n// WEBPACK FOOTER //\n// ./src/js/components/article/ArticleBrief.js"],"sourceRoot":""}