{"version":3,"file":"OrientationMessage.js","names":["OrientationMessage","a","setters","Component","default","Event","execute","bindEvents","on","onShow","onHide","element","classList","remove","add","destroy","removeListener"],"sources":["components/global/OrientationMessage.js"],"sourcesContent":["import Component from 'core/Component';\nimport { Event } from 'services/EventEmitter';\n\n/**\n * This is a description of the OrientationMessage constructor function.\n * @class\n * @classdesc OrientationMessage component handles show/hide events to show/hide orientation message on demand\n * @extends Component\n */\nexport default class OrientationMessage extends Component {\n /**\n * Should contain only event listeners and nothing else\n * All the event handlers should be into a separated function. No usage of anonyous function\n */\n bindEvents() {\n Event.on('orientationmessage.show', this.onShow, this);\n Event.on('orientationmessage.hide', this.onHide, this);\n }\n\n /**\n * Show orientation message when related event fired\n */\n onShow() {\n this.element.classList.remove('h-hidden');\n }\n\n /**\n * Show orientation message when related event fired\n */\n onHide() {\n this.element.classList.add('h-hidden');\n }\n\n /**\n * Destroy is called automatically after the component is being removed from the DOM\n * You must always destroy the listeners attached to an element to avoid any memory leaks\n */\n destroy() {\n Event.removeListener('orientationmessage.show', this.onShow, this);\n Event.removeListener('orientationmessage.hide', this.onHide, this);\n }\n}\n"],"mappings":"yGASqBA,CAAkB,QAAAC,CAAA,oBAAAC,OAAA,WAAAD,CAAA,EAThCE,CAAS,CAAAF,CAAA,CAAAG,OAAA,WAAAH,CAAA,EACPI,CAAK,CAAAJ,CAAA,CAALI,KAAK,GAAAC,OAAA,SAAAA,CAAA,EAAAL,CAAA,WAQOD,CAAkB,CAAxB,aAAiC,CAAAG,CAAU,CAKtDI,UAAUA,CAAA,CAAG,CACTF,CAAK,CAACG,EAAE,CAAC,yBAAyB,CAAE,IAAI,CAACC,MAAM,CAAE,IAAI,CAAC,CACtDJ,CAAK,CAACG,EAAE,CAAC,yBAAyB,CAAE,IAAI,CAACE,MAAM,CAAE,IAAI,CACzD,CAKAD,MAAMA,CAAA,CAAG,CACL,IAAI,CAACE,OAAO,CAACC,SAAS,CAACC,MAAM,CAAC,UAAU,CAC5C,CAKAH,MAAMA,CAAA,CAAG,CACL,IAAI,CAACC,OAAO,CAACC,SAAS,CAACE,GAAG,CAAC,UAAU,CACzC,CAMAC,OAAOA,CAAA,CAAG,CACNV,CAAK,CAACW,cAAc,CAAC,yBAAyB,CAAE,IAAI,CAACP,MAAM,CAAE,IAAI,CAAC,CAClEJ,CAAK,CAACW,cAAc,CAAC,yBAAyB,CAAE,IAAI,CAACN,MAAM,CAAE,IAAI,CACrE,CACJ,CAAC","ignoreList":[]}