{"version":3,"sources":["webpack:///./widgets/slideshow/js/slideshow.js","webpack:///./widgets/slideshow/js/showcase-slideshow.js"],"names":["UX","slider","cleanDuplicateID","$","each","this","find","id","attr","uniquePrefix","Math","floor","random","showcaseSlideshow","defaultOptions","navigationEvent","initNavigation","instance","options","event","showboxNavigation","selectors","navigation","activeIndex","children","on","e","item","index","showbox","trigger","type","lastELement","length","parent","preventDefault","lastELementSlide","showboxNavigationList"],"mappings":"2FAAA,OAEaA,GAAGC,OAETC,iBAAmB,WACDC,EAAE,oBACVC,MAAK,WACdD,EAAEE,MACGC,KAAK,QACLF,MAAK,WACF,IAAMG,EAAKJ,EAAEE,MAAMG,KAAK,MACpBC,EAAeC,KAAKC,MAAsB,IAAhBD,KAAKE,UACxB,KAAPL,GACAJ,EAAEE,MAAMG,KAAK,KAAMD,EAAK,WAAaE,W,iCCbzD,OACAT,GAAGa,kBAAkBC,eAAeC,gBAAkB,sBAEtDf,GAAGa,kBAAkBG,eAAiB,SAAUC,EAAUC,GACtD,IAAIC,OAA2B,IAAZD,GAA6BA,EAAQH,gBAAkBG,EAAQH,gBAAkB,QACpGE,EAASG,kBAAoBH,EAASX,KAAKN,GAAGa,kBAAkBQ,UAAUC,YAC1E,IAAIC,EAAc,KAClBN,EAASG,kBAAkBI,WAAWC,GAAGN,EAAQ,sBAAsB,SAAUO,GAE7E,IAAIC,EAAOV,EAASG,kBAAkBI,WAAWI,MAAMvB,MAEvD,GADAY,EAASY,QAAQC,QAAQ,kBAAmB,CAACH,IAC9B,YAAXD,EAAEK,MAAsBJ,GAAQJ,EAAa,CAC7C,IAAIS,EAAc7B,EAAEE,MAAMC,KAAK,eAC/B0B,EAAcA,EAAYA,EAAYC,OAAS,GAC/C9B,EAAE6B,GACGE,SACAT,GAAG,WAAW,SAAUN,GACrBA,EAAMgB,iBACNhC,EAAE,wCAAwCG,KAAK,kBAAkBwB,QAAQ,YAEjF,IAAIM,EAAmBjC,EAAE,uCAAuCG,KAAK,eACrE8B,EAAmBA,EAAiBA,EAAiBH,OAAS,GAC9D9B,EAAEiC,GAAkBX,GAAG,WAAW,SAAUN,GACxC,IAAIkB,EAAwBpB,EAASG,kBAAkBI,WACnDa,EAAsBJ,OAASV,EAAc,GAC7CJ,EAAMgB,iBACNE,EAAwBA,EAAsBd,EAAc,GAC5Dc,EAAwBlC,EAAEkC,GAAuB/B,KAAK,KACtDH,EAAEkC,EAAsB,IAAIP,QAAQ,UAEpCP,EAAc,MAGtBA,EAAcI,MAGtBxB,EAAE,gCAAgCsB,KAElCR,EAASG,kBAAkBK,GAAGN,EAAO,KAAK,SAAUO,GAEhDA,EAAES","file":"js/slideshow-3f75e362954b694eda2e.js","sourcesContent":["import 'ui-core/widgets/slideshow/js/slideshow';\n\nlet slider = UX.slider;\n\nslider.cleanDuplicateID = function () {\n const clonedSlides = $('.owl-item.cloned');\n clonedSlides.each(function () {\n $(this)\n .find('[id]')\n .each(function () {\n const id = $(this).attr('id');\n var uniquePrefix = Math.floor(Math.random() * 100000);\n if (id !== '') {\n $(this).attr('id', id + '-cloned-' + uniquePrefix);\n }\n });\n });\n};\n","import 'ui-theme/widgets/slideshow/js/showcase-slideshow';\nUX.showcaseSlideshow.defaultOptions.navigationEvent = 'mouseover | focusin';\n\nUX.showcaseSlideshow.initNavigation = function (instance, options) {\n var event = typeof options !== 'undefined' && !!options.navigationEvent ? options.navigationEvent : 'click'; // default event is click\n instance.showboxNavigation = instance.find(UX.showcaseSlideshow.selectors.navigation);\n var activeIndex = null;\n instance.showboxNavigation.children().on(event + '.showcaseSlideshow', function (e) {\n /* @TODO allow event type customisation */\n var item = instance.showboxNavigation.children().index(this);\n instance.showbox.trigger('to.owl.carousel', [item]); // what is the default speed?\n if (e.type === 'focusin' && item != activeIndex) {\n var lastELement = $(this).find(':last-child');\n lastELement = lastELement[lastELement.length - 1];\n $(lastELement)\n .parent()\n .on('keydown', function (event) {\n event.preventDefault();\n $('.showcase-slideshow .owl-item.active').find('.showbox__item').trigger('focus');\n });\n var lastELementSlide = $('.showbox__carousel .owl-item.active').find(':last-child');\n lastELementSlide = lastELementSlide[lastELementSlide.length - 1];\n $(lastELementSlide).on('keydown', function (event) {\n var showboxNavigationList = instance.showboxNavigation.children();\n if (showboxNavigationList.length > activeIndex + 1) {\n event.preventDefault();\n showboxNavigationList = showboxNavigationList[activeIndex + 1];\n showboxNavigationList = $(showboxNavigationList).find('a');\n $(showboxNavigationList[0]).trigger('focus');\n } else {\n activeIndex = '';\n }\n });\n activeIndex = item;\n }\n });\n $('.showbox__carousel .owl-item').on();\n\n instance.showboxNavigation.on(event, 'a', function (e) {\n // that's mostly for those content elements that come to us as html and we cant set it up without anchors. Like the authors.\n e.preventDefault();\n });\n};\n"],"sourceRoot":""}