{"version":3,"sources":["webpack://[name]/./src/js/components/CloseAccordionSwipeOnLoadComponent.js"],"names":["CloseAccordionSwipeOnLoadComponent","_BaseComponent","props","_this","_classCallCheck","_callSuper","triggerFirstOnLoad","_inherits","_createClass","key","value","this","$el","querySelector","window","addEventListener","e","document","click","setTimeout","BaseComponent"],"mappings":"keAAuD,IAElCA,EAAkC,SAAAC,GAErD,SAAAD,EAAYE,GAAO,IAAAC,EAEK,OAFLC,IAAA,KAAAJ,IACjBG,EAAAE,EAAA,KAAAL,EAAA,CAAME,KACLI,qBAAqBH,EACvB,OAAAI,IAAAP,EAAAC,GAAAO,IAAAR,EAAA,EAAAS,IAAA,qBAAAC,MAED,WAEuBC,KAAKC,IAAIC,cAAc,8BAI1CC,OAAOC,iBAAiB,QAAQ,SAASC,GACvCC,SAASJ,cAAc,mDAAmDK,QAC1EC,YAAW,WACTF,SAASJ,cAAc,mDAAmDK,UACzE,WAjB4C,C,OAASE","file":"js/component-CloseAccordionSwipeOnLoadComponent-js.chunks.js","sourcesContent":["import BaseComponent from '../abstracts/BaseComponent';\n\nexport default class CloseAccordionSwipeOnLoadComponent extends BaseComponent {\n\n constructor(props) {\n super(props);\nthis.triggerFirstOnLoad();\n }\n\n triggerFirstOnLoad() {\n\n const firstElement = this.$el.querySelector('.editorial-accordion-item');\n\n if(firstElement) {\n\n window.addEventListener('load', function(e) {\n document.querySelector('.editorial-accordion-item .js-accordion-trigger').click();\n setTimeout(() => {\n document.querySelector('.editorial-accordion-item .js-accordion-trigger').click();\n }, 50);\n\n });\n\n }\n }\n\n}\n"],"sourceRoot":""}