{"version":3,"sources":["webpack:///52.52f5a0f9.bundle.js","webpack:///./src/js/components/RecognitionListing.js"],"names":["webpackJsonp","235","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","RecognitionList","el","checkLength","_Component","this","dom","$container","$el","$content","find","$toggle","on","expandList","addClass","hide","showItems","show","contentHeight","height","e","preventDefault","currentHeight","$tl","TimelineMax","hasClass","removeClass","text","data","to","ease","Expo","easeInOut","onComplete","refreshWaypoint","animate","scrollTop","offset","top","TweenMax","set","css","className","from","easeOut","trigger","Component"],"mappings":"AAAAA,cAAc,KAERC,IACA,SAAUC,EAAQC,EAASC,GAEjC,cAC4B,SAASC,GAgBrC,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,GAlBjeE,OAAOS,eAAexB,EAAS,cAC7BkB,OAAO,GAGT,IAAIO,GAAe,WAAc,QAASC,GAAiBC,EAAQC,GAAS,IAAK,GAAIC,GAAI,EAAGA,EAAID,EAAME,OAAQD,IAAK,CAAE,GAAIE,GAAa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BrB,KAAKC,IAAIK,QAAQgB,KAAKtB,KAAKC,IAAIK,QAAQiB,KAAK,cAE5CvB,KAAKC,IAAIK,QAAQe,YAAY,iBAAiBZ,SAAS,iBAEvDS,EAAIM,GAAGxB,KAAKC,IAAIG,SAAU,IACxBU,OAAQd,KAAKa,cACbY,KAAMC,OAAKC,UACXC,WAAY,WACV,EAAK3B,IAAIG,SAASiB,YAAY,YAC9B,EAAKQ,oBAEN,GAEHvE,EAAE,cAAcwE,SACdC,UAAW/B,KAAKC,IAAIG,SAAS4B,SAASC,IAAM,KAC3C,OAEHjC,KAAKG,IAAIM,SAAS,YAClBT,KAAKC,IAAIK,QAAQgB,KAAKtB,KAAKC,IAAIK,QAAQiB,KAAK,cAE5CvB,KAAKC,IAAIK,QAAQe,YAAY,iBAAiBZ,SAAS,iBAEvDyB,WAASC,IAAInC,KAAKC,IAAIG,UACpBU,OAAQ,SAEVI,EAAIM,GAAGxB,KAAKC,IAAIG,SAAU,GACtBgC,KACEC,UAAW,eAEZ,GACFC,KAAKtC,KAAKC,IAAIG,SAAU,IACvBU,OAAQG,EACRQ,KAAMC,OAAKa,QACXX,WAAY,iBAAM,GAAKC,oBACtB,ODuCPzC,IAAK,kBACLd,MAAO,WCnCHhB,EAAE,mBAAmB4B,QACvB5B,EAAE,mBAAmBkF,QAAQ,0BDyC1B5C,GC9HqB6C,UDiI9BrF,GAAQsC,QCvCOE,IDwCc/B,KAAKT,EAASC,EAAoB","file":"52.52f5a0f9.bundle.js","sourcesContent":["webpackJsonp([52],{\n\n/***/ 235:\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\nvar _gsap = __webpack_require__(90);\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 RecognitionList = function (_Component) {\n _inherits(RecognitionList, _Component);\n\n function RecognitionList(el) {\n _classCallCheck(this, RecognitionList);\n\n var _this = _possibleConstructorReturn(this, (RecognitionList.__proto__ || Object.getPrototypeOf(RecognitionList)).call(this, el));\n\n _this.checkLength();\n return _this;\n }\n\n _createClass(RecognitionList, [{\n key: 'setupDefaults',\n value: function setupDefaults() {\n this.dom = {\n $container: this.$el,\n $content: this.$el.find('.wh-recognition-details-content'),\n $toggle: this.$el.find('.wh-recognition-details__toggle')\n };\n }\n }, {\n key: 'addListeners',\n value: function addListeners() {\n this.dom.$toggle.on('click touch', this.expandList.bind(this));\n }\n }, {\n key: 'checkLength',\n value: function checkLength() {\n var itemTotal = this.dom.$content.find('> p, > ul > li').length;\n\n if (itemTotal <= 3) {\n this.dom.$content.addClass('expanded');\n this.dom.$toggle.hide();\n } else {\n this.showItems();\n }\n }\n }, {\n key: 'showItems',\n value: function showItems() {\n this.dom.$content.find('> p, > ul > li').addClass('listItem');\n this.dom.$content.find('.listItem:lt(3)').show();\n\n this.contentHeight = this.dom.$content.height();\n }\n }, {\n key: 'expandList',\n value: function expandList(e) {\n var _this2 = this;\n\n e.preventDefault();\n\n var currentHeight = this.dom.$content.height();\n var $tl = new _gsap.TimelineMax();\n\n if (this.$el.hasClass('expanded')) {\n this.$el.removeClass('expanded');\n this.dom.$toggle.text(this.dom.$toggle.data('show-more'));\n\n this.dom.$toggle.removeClass('btn--readless').addClass('btn--readmore');\n\n $tl.to(this.dom.$content, 0.5, {\n height: this.contentHeight,\n ease: _gsap.Expo.easeInOut,\n onComplete: function onComplete() {\n _this2.dom.$content.removeClass('expanded');\n _this2.refreshWaypoint();\n }\n }, 0);\n\n $('html, body').animate({\n scrollTop: this.dom.$content.offset().top - 150\n }, 1000);\n } else {\n this.$el.addClass('expanded');\n this.dom.$toggle.text(this.dom.$toggle.data('show-less'));\n\n this.dom.$toggle.removeClass('btn--readmore').addClass('btn--readless');\n\n _gsap.TweenMax.set(this.dom.$content, {\n height: 'auto'\n });\n $tl.to(this.dom.$content, 0, {\n css: {\n className: '+=expanded'\n }\n }, 0).from(this.dom.$content, 0.5, {\n height: currentHeight,\n ease: _gsap.Expo.easeOut,\n onComplete: function onComplete() {\n return _this2.refreshWaypoint();\n }\n }, 0);\n }\n }\n }, {\n key: 'refreshWaypoint',\n value: function refreshWaypoint() {\n if ($('.wh-section-nav').length) {\n $('.wh-section-nav').trigger('sectionNav:refresh');\n }\n }\n }]);\n\n return RecognitionList;\n}(_component2.default);\n\nexports.default = RecognitionList;\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(10)))\n\n/***/ })\n\n});\n\n\n// WEBPACK FOOTER //\n// 52.52f5a0f9.bundle.js","import Component from 'component';\nimport {\n TimelineMax,\n Expo,\n TweenMax\n} from 'gsap';\n\nclass RecognitionList extends Component {\n constructor(el) {\n super(el);\n\n this.checkLength();\n }\n\n setupDefaults() {\n this.dom = {\n $container: this.$el,\n $content: this.$el.find('.wh-recognition-details-content'),\n $toggle: this.$el.find('.wh-recognition-details__toggle')\n };\n }\n\n addListeners() {\n this.dom.$toggle.on('click touch', ::this.expandList);\n }\n\n checkLength() {\n const itemTotal = this.dom.$content.find('> p, > ul > li').length;\n\n if (itemTotal <= 3) {\n this.dom.$content.addClass('expanded');\n this.dom.$toggle.hide();\n } else {\n this.showItems();\n }\n }\n\n showItems() {\n this.dom.$content.find('> p, > ul > li').addClass('listItem');\n this.dom.$content.find('.listItem:lt(3)').show();\n\n this.contentHeight = this.dom.$content.height();\n }\n\n expandList(e) {\n e.preventDefault();\n\n const currentHeight = this.dom.$content.height();\n const $tl = new TimelineMax();\n\n if (this.$el.hasClass('expanded')) {\n this.$el.removeClass('expanded');\n this.dom.$toggle.text(this.dom.$toggle.data('show-more'));\n\n this.dom.$toggle.removeClass('btn--readless').addClass('btn--readmore');\n\n $tl.to(this.dom.$content, 0.5, {\n height: this.contentHeight,\n ease: Expo.easeInOut,\n onComplete: () => {\n this.dom.$content.removeClass('expanded');\n this.refreshWaypoint();\n }\n }, 0);\n\n $('html, body').animate({\n scrollTop: this.dom.$content.offset().top - 150\n }, 1000);\n } else {\n this.$el.addClass('expanded');\n this.dom.$toggle.text(this.dom.$toggle.data('show-less'));\n\n this.dom.$toggle.removeClass('btn--readmore').addClass('btn--readless');\n\n TweenMax.set(this.dom.$content, {\n height: 'auto'\n });\n $tl.to(this.dom.$content, 0, {\n css: {\n className: '+=expanded'\n }\n }, 0)\n .from(this.dom.$content, 0.5, {\n height: currentHeight,\n ease: Expo.easeOut,\n onComplete: () => this.refreshWaypoint()\n }, 0);\n }\n }\n\n refreshWaypoint() {\n if ($('.wh-section-nav').length) {\n $('.wh-section-nav').trigger('sectionNav:refresh');\n }\n }\n}\n\nexport default RecognitionList;\n\n\n\n// WEBPACK FOOTER //\n// ./src/js/components/RecognitionListing.js"],"sourceRoot":""}