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AC9B,M,6EAAC,CAxCc,E","sources":["webpack://@hero-digital/zoom/./src/components/foundation/SpeakerCard/SpeakerCard.js"],"sourcesContent":["import gsap from 'gsap'\r\n\r\nclass SpeakerCard {\r\n constructor(el) {\r\n this.el = el\r\n this.domMap = {\r\n $bioBody: this.el.querySelector('.fdn-speaker-card__bio'),\r\n $showBio: this.el.querySelector('.fdn-speaker-card__show-bio'),\r\n $hideBio: this.el.querySelector('.fdn-speaker-card__hide-bio')\r\n }\r\n\r\n this.addListeners()\r\n }\r\n\r\n addListeners() {\r\n const { $showBio, $hideBio } = this.domMap\r\n $showBio?.addEventListener('click', this.showBio.bind(this))\r\n $hideBio?.addEventListener('click', this.hideBio.bind(this))\r\n }\r\n\r\n showBio() {\r\n const { $bioBody, $showBio, $hideBio } = this.domMap\r\n\r\n $showBio.classList.add('fdn-speaker-card__show-bio--hide')\r\n $hideBio.classList.remove('fdn-speaker-card__hide-bio--hide')\r\n $showBio.setAttribute('aria-expanded', true)\r\n $hideBio.setAttribute('aria-expanded', true)\r\n\r\n gsap.to($bioBody, { height: 'auto', duration: 0.3 })\r\n $bioBody.classList.add('show')\r\n $bioBody.style.visibility = 'visible'\r\n }\r\n\r\n hideBio() {\r\n const { $bioBody, $showBio, $hideBio } = this.domMap\r\n $showBio.classList.remove('fdn-speaker-card__show-bio--hide')\r\n $hideBio.classList.add('fdn-speaker-card__hide-bio--hide')\r\n $hideBio.setAttribute('aria-expanded', false)\r\n\r\n gsap.to($bioBody, { height: 0, duration: 0.3 })\r\n $bioBody.classList.remove('show')\r\n $bioBody.style.visibility = 'hidden'\r\n }\r\n}\r\n\r\nexport default SpeakerCard\r\n"],"names":["SpeakerCard","el","_classCallCheck","this","domMap","$bioBody","querySelector","$showBio","$hideBio","addListeners","key","value","_this$domMap","addEventListener","showBio","bind","hideBio","_this$domMap2","classList","add","remove","setAttribute","gsap","to","height","duration","style","visibility","_this$domMap3"],"sourceRoot":""}