"use strict";(self.webpackChunk_genially_view_client=self.webpackChunk_genially_view_client||[]).push([[354],{76091:(e,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.GeniallyScript=void 0;i.GeniallyScript=class{constructor(e,i){this.events={},this.script=e,this.geniallyEngine=i}}},2354:(e,i,n)=>{Object.defineProperty(i,"__esModule",{value:!0});const t=n(76091),l=n(56132);class s extends t.GeniallyScript{constructor(e,i){super(e,i),this.events={onEnteringSlide:this.initialize.bind(this)}}initialize(){const e=this.geniallyEngine.findElementsByTag("dropZones"),i=this.geniallyEngine.findElementsByTag("okItems"),n=this.geniallyEngine.findElementsByTag("koItems"),t=this.geniallyEngine.getConfigurationValue("dropZones");e.forEach((e=>{this.geniallyEngine.addEventListener(e.id,l.EventScript.onDrop,(l=>{if(!(null===l||void 0===l?void 0:l.relatedTargetId))return;const s=t.find((i=>i.itemId===e.id));(null===s||void 0===s?void 0:s.configuration.validElements.value).includes(null===l||void 0===l?void 0:l.relatedTargetId)?i.forEach((e=>{e.opacity="1",this.geniallyEngine.setTimeout((()=>{e.opacity="0"}),2e3)})):n.forEach((e=>{e.opacity="1",this.geniallyEngine.setTimeout((()=>{e.opacity="0"}),2e3)}))}))}))}}i.default=s}}]);
//# sourceMappingURL=https://statics-view.genially.com/view/static/js/354.6eca9368.chunk.js.map