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AAMoB,KAAK,WAAWqH,QAAQ,IAAK,IAAIA,QAAQ,IAAK,IACtEnK,EAAE,IAAKA,EAAE0B,OAAOoB,KAAK,OAAQ5B,OAAO2J,SAASC,SAAW,cAAgBhE,EAAkB,gBAAkB8D,EAC9G,KACSnJ,EAAMuI,SAAS,qBAAuBvI,EAAMuI,SAAS,gBAC9DvI,EAAM6B,YAAY,cAAcC,SAAS,cACzCvD,EAAE0B,MAAM4B,YAAY,UAExB,GACF,IACAtD,EAAE,cAAeyB,GAAOF,MAAK,WAC3BvB,EAAE0B,MAAMuB,OAAM,SAAUyH,GACtBA,EAAMvH,gBACR,GACF,IACAoD,EAASwE,KAAK,KAAKjI,KAAK,SAAU,SAuGpC,IACA5B,OAAOC,IAAI6J,YAAY3J,cAAcC,SAAStB,EAAE,0CAA0C,EAgD5F,G,wBCrQF,EAAQ,OACR,EAAQ,M","sources":["webpack://oticon/./js/project/custom-a-login-spot.js","webpack://oticon/./js/feature/component-download-center.js","webpack://oticon/./js/feature/gsap/gsap.js"],"sourcesContent":["require('./../feature/gsap/gsap');\n/**\n * Created by mady on 03-10-2016.\n */\n(function ($) {\n \"use strict\";\n\n var getConfig = function getConfig($component) {\n var $config = $('script[type=\"application/json\"]', $component);\n try {\n if ($config.length) return JSON.parse($config.html());\n } catch (e) {\n return {};\n }\n },\n showProfile = function showProfile($profile, onComplete) {\n $profile.show();\n var $innerContainer = $('.login-spot-profile-inner-container', $profile);\n TweenMax.set($innerContainer, {\n \"height\": \"auto\"\n });\n TweenMax.fromTo($profile, 0.2, {\n alpha: 0\n }, {\n alpha: 1,\n ease: Power0.easeNone\n });\n TweenMax.from($innerContainer, 0.6, {\n height: 0,\n ease: Power0.easeNone,\n onComplete: onComplete\n });\n },\n hideProfile = function hideProfile($profile, _onComplete) {\n var $innerContainer = $('.login-spot-profile-inner-container', $profile);\n TweenMax.to($innerContainer, 0.4, {\n height: 0,\n ease: Power0.easeNone\n });\n TweenMax.to($profile, 0.2, {\n alpha: 0,\n ease: Power0.easeNone,\n delay: 0.2,\n onComplete: function onComplete() {\n $profile.hide();\n _onComplete.apply();\n }\n });\n },\n turnOffHandlers = function turnOffHandlers($profile) {\n $('.login-spot-profile-close', $profile).off('click');\n $('body').off('click');\n };\n window.DGS.OnLoad.getInstance().register(function () {\n $('#wrapper > #header .component.login-spot').each(function () {\n var $this = $(this),\n $loggedInContainer = $('.logged-in', $this),\n $navList = $('#header .component.link-list.nav .component-content ul'),\n config = getConfig($this),\n navigation,\n $nameButton = $('.fill-name', $this);\n if ($loggedInContainer.length) {\n navigation = config.Navigation;\n if (navigation && $navList.length) {\n navigation.forEach(function (element) {\n $navList.append('
  • ' + element.Label + '
  • ');\n });\n }\n }\n if ($navList.length) {\n $('.login-spot-profile-link', $this).each(function () {\n var $this = $(this),\n href = $this.attr('href'),\n label = $('.login-spot-profile-link-label', $this).text();\n $navList.append('
  • ' + label + '
  • ');\n });\n }\n $nameButton.click(function (evt) {\n evt.preventDefault();\n var $profileContainer = $('.login-spot-profile-outer-container', $this);\n if (!$profileContainer.is(\":visible\")) {\n $nameButton.addClass('active');\n showProfile($profileContainer, function () {\n var id = $profileContainer.attr('id');\n if (!id) {\n id = \"profile\" + Math.round(Math.random() * 10000);\n $profileContainer.attr('id', id);\n }\n $('.login-spot-profile-close', $profileContainer).click(function () {\n hideProfile($profileContainer, function () {\n turnOffHandlers($profileContainer);\n });\n });\n $('body').click(function (e) {\n if (e.target.id == id || $(e.target).parents(\"#\" + id).length) {\n // click inside div. DO NOTHING\n } else {\n // click outside div. Close div.\n hideProfile($profileContainer, function () {\n turnOffHandlers($profileContainer);\n });\n }\n });\n });\n } else {\n $nameButton.removeClass('active');\n hideProfile($profileContainer, function () {\n turnOffHandlers($profileContainer);\n });\n }\n });\n });\n });\n window.DGS.Scroller.getInstance().register(function (scrollTop) {\n $('#wrapper > #header .component.login-spot').each(function () {\n var $this = $(this),\n $profileContainer = $('.login-spot-profile-outer-container', $this);\n if ($profileContainer.is(\":visible\")) {\n if (scrollTop > $profileContainer.position().top * 2) {\n hideProfile($profileContainer, function () {\n turnOffHandlers($profileContainer);\n });\n }\n }\n });\n });\n})(jQuery);","var _require = require('../project/tracking-gtm-ga4'),\n trackDownload = _require.trackDownload;\nrequire('lightgallery/src/js/lightgallery.js');\n(function ($) {\n window.DGS.OnLoad.getInstance().register(function () {\n $('.download-center').each(function () {\n window.DGS.Overflow.getInstance().register($('.download-center'), $('.nav.top-menu li:last-child', $('.download-center')), function () {\n var $first = $('.nav.top-menu li:last-child', $('.download-center')).offset().top,\n $second = $('.nav.top-menu li:first-child', $('.download-center')).offset().top;\n if ($first != $second) {\n return true;\n } else {\n return false;\n }\n });\n });\n var mainID = $('.download-center .component-content > div').attr('data-id'),\n assetPath = '/webservices/downloadcenter.svc/GetAssets/',\n topicTemplate = $('#topic-template').html(),\n pdfTemplate = $('#asset-template-pdf').html(),\n videoTemplate = $('#asset-template-video').html(),\n mixedTemplate = $('#asset-template-mixed').html(),\n embedTemplate = $('#asset-template-embed').html(),\n language = $('html').attr('lang'),\n firstRun = true;\n $('.download-center').each(function () {\n var $this = $(this),\n $that = $this,\n $content = $('.download-center-content', $this),\n $leftMenu = $('.left-menu li', $this),\n $topMenu = $('.top-menu li', $this),\n aktivTop = checkActive($topMenu, 1, $this),\n aktivLeft = checkActive($leftMenu, 1, $this),\n aktiveDataSheet = $('.top-menu', $this).attr('data-id'),\n aktivePrimaryId = setActive($topMenu, aktivTop),\n aktiveSecondary = setActive($leftMenu, aktivLeft),\n applyDownloadTracking = function applyDownloadTracking() {\n $('.download-pdf a', $this).click(function () {\n var pdfName = $(this).text().trim();\n window.DGS.Event.getInstance().trigger('trackDownload', 'pdf', pdfName);\n trackDownload('pdf', pdfName);\n });\n };\n applyDownloadTracking();\n if ($this.hasClass('non-active')) {\n aktivePrimaryId = $('.top-menu li:nth-child(1)').attr('data-id').replace('{', '').replace('}', '');\n aktiveSecondary = $('.left-menu li:nth-child(1)').attr('data-id').replace('{', '').replace('}', '');\n getData(aktiveDataSheet + '/' + aktivePrimaryId + '/' + aktiveSecondary, true, $topMenu);\n }\n $('.thumb-wrapper.light-gallery', $this).lightGallery({\n counter: false,\n zoom: false,\n fullScreen: false,\n download: false\n });\n $('.download-video .thumb-wrapper a', $this).each(function () {\n var $this = $(this),\n src = $this.attr('href'),\n vID = src != null ? src.substr(src.indexOf('v=') + 2) : null,\n thumbPath = vID != null ? 'http://img.youtube.com/vi/' + vID + '/0.jpg' : '';\n $('img', $this).attr('src', thumbPath);\n });\n $('.left-menu li', $this).click(function (event) {\n event.preventDefault();\n if ($this.hasClass('content-overflow') && !$this.hasClass('sub-active') || !$this.hasClass('content-overflow')) {\n aktiveSecondary = $(this).attr('data-id').replace('{', '').replace('}', '');\n resetActive($leftMenu, $(this));\n $this.addClass('sub-active');\n getData(aktiveDataSheet + '/' + aktivePrimaryId + '/' + aktiveSecondary, true);\n } else if ($this.hasClass('content-overflow') && $this.hasClass('sub-active')) {\n $this.removeClass('sub-active');\n }\n // Scrolling to top on click can be disabled by adding the style below to the download-center component\n var noScrollToTop = $('.download-center').hasClass('download-center-no-scroll-to-top');\n if (!noScrollToTop) {\n $(\"html, body\").animate({\n scrollTop: 0\n }, 600);\n }\n });\n $('.left-menu a', $this).each(function () {\n $(this).click(function (event) {\n event.preventDefault();\n });\n });\n decorateThumbnailItems();\n $('.top-menu li', $this).each(function () {\n $(this).click(function (event) {\n event.preventDefault();\n if ($this.hasClass('content-overflow') && !$this.hasClass('top-active') || !$this.hasClass('content-overflow')) {\n aktivePrimaryId = $(this).attr('data-id').replace('{', '').replace('}', '');\n resetActive($topMenu, $(this));\n $this.addClass('top-active').removeClass('non-active');\n getData(aktiveDataSheet + '/' + aktivePrimaryId + '/' + aktiveSecondary, true);\n $('.left-menu li', $this).each(function () {\n var secondary = $(this).attr('data-id').replace('{', '').replace('}', '');\n $('a', $(this)).attr('href', window.location.pathname + \"?primaryID=\" + aktivePrimaryId + \"&secondaryID=\" + secondary);\n });\n } else if ($this.hasClass('content-overflow') && $this.hasClass('top-active')) {\n $this.removeClass('top-active').addClass('non-active');\n $(this).removeClass('active');\n }\n });\n });\n $('.top-menu a', $this).each(function () {\n $(this).click(function (event) {\n event.preventDefault();\n });\n });\n $content.find('a').attr('target', '_blank');\n function getData(url) {\n url = assetPath + url + \"/\" + language;\n $.ajax({\n url: url,\n type: 'GET',\n dataType: 'json',\n success: function success(data, textStatus, xhr) {\n var newHtml = '';\n $.each(data.Topics, function (index, topic) {\n var newData = '',\n c = 0;\n $.each(topic.Assets, function (a, b) {\n switch (b.Type.toLowerCase()) {\n case 'pdf':\n newData += pdfTemplate.format(b.AssetUri, b.Date, b.ImageUri, b.Name, b.SortDate, b.Type, b.Visible, c % 2 ? 'odd' : 'even', \"_blank\");\n c++;\n break;\n case 'mixed':\n newData += mixedTemplate.format(b.AssetUri, b.Date, b.ImageUri, b.Name, b.SortDate, b.Type, b.Visible, c % 2 ? 'odd' : 'even');\n c++;\n break;\n case 'video':\n var img = b.ImageUri;\n newData += videoTemplate.format(b.AssetUri, b.Name, img, c % 2 ? 'odd' : 'even');\n c++;\n break;\n case 'embed':\n var img = b.ImageUri;\n newData += embedTemplate.format(b.AssetUri, b.Name, img, c % 2 ? 'odd' : 'even');\n c++;\n break;\n default:\n break;\n }\n });\n var theData = topicTemplate.format(topic.Name, newData);\n newHtml += theData;\n });\n $content.html(newHtml);\n $('.thumb-wrapper.light-gallery', $this).lightGallery({\n counter: false,\n zoom: false,\n fullScreen: false,\n download: false\n });\n decorateThumbnailItems();\n //window.DGS.Event.getInstance().trigger('video-spot-reinit');\n window.DGS.Event.getInstance().trigger('download-center-tab-init');\n applyDownloadTracking();\n },\n error: function error(xhr, textStatus, errorThrown) {\n console.log('ajax error ', url);\n }\n });\n }\n function checkActive(menu, active, $spot) {\n var showFirst = menu.parent().parent().hasClass('top-menu'),\n mobileMOde = $('.download-center').hasClass('content-overflow');\n active = active || 1;\n menu.each(function (index) {\n if ($(this).hasClass('active')) active = index + 1;\n });\n // For the hidden top-menu, it should activate at first init\n if (menu.parent().parent().height() > 0) {\n if (showFirst) {\n if (!mobileMOde) {\n $spot.addClass('top-menu').removeClass('non-active');\n } else {\n $spot.addClass('non-active');\n }\n }\n } else {\n if (showFirst) {\n if (!mobileMOde) {\n $spot.addClass('top-menu');\n }\n $spot.addClass('non-active');\n }\n }\n if (firstRun) {\n firstRun = false;\n if (mobileMOde) {\n $('.component-content .top-menu ul li.active', $spot).removeClass('active');\n }\n }\n return active;\n }\n function setActive(menu, ac) {\n if (menu.parent().parent().hasClass('top-menu')) {\n ac = ac || aktivTop;\n } else {\n ac = ac || aktivLeft;\n }\n ac = $(menu[ac - 1]).attr('data-id').replace('{', '').replace('}', '');\n return ac;\n }\n function resetActive(menu, me) {\n menu.each(function (index) {\n $(this).removeClass('active');\n });\n me.addClass('active');\n }\n });\n window.DGS.EqualHeight.getInstance().register($('.download-center-content .embed-video'), true);\n function addPreviewLogic($item, imgSrc) {\n $item.hover(function (e) {\n $('.download-center-item-thumbnail-preview').remove();\n $(\"body\").append('
    ');\n $('.download-center-item-thumbnail-preview').css(\"top\", e.pageY + 10 + \"px\").css(\"left\", e.pageX + 10 + \"px\").fadeIn(\"fast\");\n });\n $item.mousemove(function (e) {\n $('.download-center-item-thumbnail-preview').css(\"top\", e.pageY + 10 + \"px\").css(\"left\", e.pageX + 10 + \"px\");\n });\n $item.mouseleave(function () {\n $('.download-center-item-thumbnail-preview').remove();\n });\n }\n function decorateThumbnailItems() {\n $('.download-pdf > a > img').each(function () {\n var $this = $(this),\n $a = $this.parent(),\n $item = $a.parent(),\n src = $this.attr('src');\n if (src && src != undefined && src != \"undefined\" && src != null && src != \"\" && src != \"null\") {\n $item.addClass('has-thumbnail');\n $a.before($('
    '));\n addPreviewLogic($('.item-thumbnail', $item), src);\n } else {\n $this.remove();\n }\n });\n //function for overlay when thumbnail is clicked - Start\n $(\".item-thumbnail\").on('touchend', function (e) {\n if (!$('.overlay-item-thumbnail').length) {\n $('body').append('
    ');\n }\n }).keyup(function (e) {\n if (e.which == 27) {\n $('.overlay-item-thumbnail', '.download-center-item-thumbnail-preview').remove();\n }\n }).blur(function (e) {\n $('.overlay-item-thumbnail', '.download-center-item-thumbnail-preview').remove();\n });\n $('body').on('touchend', function (e) {\n if (!$(e.target).is('.item-thumbnail', '.download-center-item-thumbnail-preview', '.overlay-item-thumbnail')) {\n $('.download-center-item-thumbnail-preview').remove();\n $(\".overlay-item-thumbnail\").remove();\n }\n });\n //function for overlay when thumbnail is clicked - stop\n }\n });\n})(jQuery);","require('gsap/TweenMax');\nrequire('gsap/ScrollToPlugin');"],"names":["$","hideProfile","$profile","_onComplete","$innerContainer","TweenMax","to","height","ease","Power0","easeNone","alpha","delay","onComplete","hide","apply","turnOffHandlers","off","window","DGS","OnLoad","getInstance","register","each","navigation","$this","this","$loggedInContainer","$navList","config","$component","$config","length","JSON","parse","html","e","getConfig","$nameButton","Navigation","forEach","element","append","Href","Label","href","attr","label","text","click","evt","preventDefault","$profileContainer","is","removeClass","addClass","show","set","fromTo","from","showProfile","id","Math","round","random","target","parents","Scroller","scrollTop","position","top","jQuery","trackDownload","Overflow","offset","topicTemplate","pdfTemplate","videoTemplate","mixedTemplate","embedTemplate","language","firstRun","decorateThumbnailItems","$a","parent","$item","src","undefined","before","imgSrc","hover","remove","css","pageY","pageX","fadeIn","mousemove","mouseleave","addPreviewLogic","on","keyup","which","blur","$content","$leftMenu","$topMenu","aktivTop","checkActive","aktivLeft","aktiveDataSheet","aktivePrimaryId","setActive","aktiveSecondary","applyDownloadTracking","pdfName","trim","Event","trigger","getData","url","ajax","type","dataType","success","data","textStatus","xhr","newHtml","Topics","index","topic","newData","c","Assets","a","b","Type","toLowerCase","format","AssetUri","Date","ImageUri","Name","SortDate","Visible","img","theData","lightGallery","counter","zoom","fullScreen","download","error","errorThrown","console","log","menu","active","$spot","showFirst","hasClass","mobileMOde","ac","replace","resetActive","me","vID","substr","indexOf","thumbPath","event","animate","secondary","location","pathname","find","EqualHeight"],"sourceRoot":""}