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,GACEhB,EAAEiB,MAAMC,OAAO,IACjB,GAEFC,KAAM,CACJJ,MAAO,gBACPK,OAAO,EACPJ,MAAAA,GACEhB,EAAEiB,MAAMI,QAAQ,IAClB,IAGN,CAKEa,EACF,G","sources":["webpack:///indico/modules/core/client/js/session_bar.js"],"sourcesContent":["// This file is part of Indico.\n// Copyright (C) 2002 - 2024 CERN\n//\n// Indico is free software; you can redistribute it and/or\n// modify it under the terms of the MIT License; see the\n// LICENSE file for more details.\n\n// eslint-disable-next-line import/unambiguous\n(function() {\n function setupProtection() {\n $('#protection-details-link').qtip({\n style: {\n width: '280px',\n classes: 'qtip-rounded qtip-shadow qtip-popup',\n tip: {\n corner: true,\n width: 20,\n height: 15,\n },\n },\n position: {\n my: 'top center',\n at: 'bottom center',\n },\n content: $('#protection-details'),\n show: {\n event: 'click',\n effect() {\n $(this).fadeIn(300);\n },\n },\n hide: {\n event: 'unfocus click',\n fixed: true,\n effect() {\n $(this).fadeOut(300);\n },\n },\n });\n }\n\n function setupTimezone() {\n const widget = $('#tz-selector-widget');\n\n $('#tz-selector-link').qtip({\n style: {\n classes: 'qtip-rounded qtip-shadow qtip-popup qtip-timezone qtip-wide',\n tip: {\n corner: true,\n width: 20,\n height: 15,\n },\n },\n position: {\n my: 'top center',\n at: 'bottom center',\n },\n content: widget,\n show: {\n event: 'click',\n effect() {\n $(this).fadeIn(300);\n },\n },\n hide: {\n event: 'unfocus click',\n fixed: true,\n effect() {\n $(this).fadeOut(300);\n },\n },\n events: {\n show() {\n // eslint-disable-next-line no-undef\n _.defer(scrollToCurrentTZ);\n },\n },\n });\n\n function scrollToCurrentTZ() {\n const option = widget.find('select[name=tz] option:selected')[0];\n if (option) {\n option.scrollIntoView(false);\n }\n }\n }\n\n function setupUserSettings() {\n const link = $('#user-settings-link');\n\n $('#user-settings-widget a:not([data-toggle=dropdown])').on('click', function() {\n link.qtip('hide');\n });\n\n link.qtip({\n style: {\n minWidth: '200px',\n classes: 'qtip-rounded qtip-shadow qtip-popup qtip-allow-overflow',\n tip: {\n corner: true,\n width: 20,\n height: 15,\n },\n },\n position: {\n my: 'top center',\n at: 'bottom center',\n },\n content: $('#user-settings-widget'),\n show: {\n event: 'click',\n effect() {\n $(this).fadeIn(300);\n },\n },\n hide: {\n event: 'unfocus click',\n fixed: true,\n effect() {\n $(this).fadeOut(300);\n },\n },\n });\n }\n\n $(document).ready(function() {\n setupProtection();\n setupTimezone();\n setupUserSettings();\n });\n})();\n"],"names":["$","document","ready","qtip","style","width","classes","tip","corner","height","position","my","at","content","show","event","effect","this","fadeIn","hide","fixed","fadeOut","widget","scrollToCurrentTZ","option","find","scrollIntoView","events","_","defer","setupTimezone","link","on","minWidth","setupUserSettings"],"sourceRoot":""}