{"version":3,"file":"certifications-modal-e68ee72b.js","sources":["../../../../src/scripts/modules/certifications-modal.ts"],"sourcesContent":["import { Component } from '@verndale/core';\nimport { ExtendedWindowType } from '../coveo/engine';\n\nclass CertificationsModal extends Component {\n setupDefaults() {\n this.dom = {\n el: this.el\n };\n }\n\n addListeners() {\n (this.dom.el as HTMLDialogElement).addEventListener(\n 'close',\n this.handleClose.bind(this)\n );\n }\n\n handleClose() {\n const global = window as ExtendedWindowType;\n\n global.dataLayer?.push({\n event: 'modal_close',\n event_category: 'modal overlay',\n event_action: 'close',\n event_attributes: {\n modalName: 'certifications'\n }\n });\n }\n}\n\nexport default CertificationsModal;\n"],"names":["CertificationsModal","Component","_a"],"mappings":"wEAGA,MAAMA,UAA4BC,CAAU,CAC1C,eAAgB,CACd,KAAK,IAAM,CACT,GAAI,KAAK,EAAA,CAEb,CAEA,cAAe,CACZ,KAAK,IAAI,GAAyB,iBACjC,QACA,KAAK,YAAY,KAAK,IAAI,CAAA,CAE9B,CAEA,aAAc,QAGZC,EAFe,OAER,YAAP,MAAAA,EAAkB,KAAK,CACrB,MAAO,cACP,eAAgB,gBAChB,aAAc,QACd,iBAAkB,CAChB,UAAW,gBACb,CAAA,EAEJ,CACF"}