{"version":3,"file":"ComponentPlaceholder.js","names":["ComponentPlaceholder","a","setters","Component","default","deepMerge","Event","execute","constructor","element","options","arguments","length","dataModelId","afterInit","analytics","init","emit","destroy"],"sources":["components/global/ComponentPlaceholder.js"],"sourcesContent":["import Component from 'core/Component';\nimport { deepMerge } from 'toolbox/deepMerge';\nimport { Event } from 'services/EventEmitter';\n\n/**\n * This is a description of the ComponentPlaceholder constructor function.\n * @class\n * @classdesc This is a description of the ComponentPlaceholder class. (must be edited)\n * @extends Component\n */\nexport default class ComponentPlaceholder extends Component {\n /**\n * Constructor of the class that mainly merge the options of the components\n * @param {HTMLElement} element HTMLElement of the component\n * @param {object} options options that belongs to the component\n */\n constructor(element, options = {}) {\n super(element, deepMerge({\n dataModelId: null,\n }, options));\n }\n\n /**\n * After init\n * Run any script after the component is fully initialized\n */\n afterInit() {\n if (this.analytics && this.analytics.init) {\n Event.emit('analytics.event', this.analytics.init);\n }\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 super.destroy();\n }\n}\n"],"mappings":"+HAUqBA,CAAoB,QAAAC,CAAA,oBAAAC,OAAA,WAAAD,CAAA,EAVlCE,CAAS,CAAAF,CAAA,CAAAG,OAAA,WAAAH,CAAA,EACPI,CAAS,CAAAJ,CAAA,CAATI,SAAS,WAAAJ,CAAA,EACTK,CAAK,CAAAL,CAAA,CAALK,KAAK,GAAAC,OAAA,SAAAA,CAAA,EAAAN,CAAA,WAQOD,CAAoB,CAA1B,aAAmC,CAAAG,CAAU,CAMxDK,WAAWA,CAACC,CAAO,CAAgB,IAAd,CAAAC,CAAO,GAAAC,SAAA,CAAAC,MAAA,WAAAD,SAAA,IAAAA,SAAA,IAAG,CAAC,CAAC,CAC7B,KAAK,CAACF,CAAO,CAAEJ,CAAS,CAAC,CACrBQ,WAAW,CAAE,IACjB,CAAC,CAAEH,CAAO,CAAC,CACf,CAMAI,SAASA,CAAA,CAAG,CACJ,IAAI,CAACC,SAAS,EAAI,IAAI,CAACA,SAAS,CAACC,IAAI,EACrCV,CAAK,CAACW,IAAI,CAAC,iBAAiB,CAAE,IAAI,CAACF,SAAS,CAACC,IAAI,CAEzD,CAMAE,OAAOA,CAAA,CAAG,CACN,KAAK,CAACA,OAAO,CAAC,CAClB,CACJ,CAAC","ignoreList":[]}