
| Current Path : /var/www/html_old/abm/web/sites/default/files/js/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html_old/abm/web/sites/default/files/js/js_DvBkpofp_9j9aNHSJJaeEHOc1xFrIFvHN_HuHDm0NPE.js |
/**
* DO NOT EDIT THIS FILE.
* See the following change record for more information,
* https://www.drupal.org/node/2815083
* @preserve
**/
(function ($, Drupal) {
function DropButton(dropbutton, settings) {
var options = $.extend({
title: Drupal.t('List additional actions')
}, settings);
var $dropbutton = $(dropbutton);
this.$dropbutton = $dropbutton;
this.$list = $dropbutton.find('.dropbutton');
this.$actions = this.$list.find('li').addClass('dropbutton-action');
if (this.$actions.length > 1) {
var $primary = this.$actions.slice(0, 1);
var $secondary = this.$actions.slice(1);
$secondary.addClass('secondary-action');
$primary.after(Drupal.theme('dropbuttonToggle', options));
this.$dropbutton.addClass('dropbutton-multiple').on({
'mouseleave.dropbutton': $.proxy(this.hoverOut, this),
'mouseenter.dropbutton': $.proxy(this.hoverIn, this),
'focusout.dropbutton': $.proxy(this.focusOut, this),
'focusin.dropbutton': $.proxy(this.focusIn, this)
});
} else {
this.$dropbutton.addClass('dropbutton-single');
}
}
function dropbuttonClickHandler(e) {
e.preventDefault();
$(e.target).closest('.dropbutton-wrapper').toggleClass('open');
}
Drupal.behaviors.dropButton = {
attach: function attach(context, settings) {
var $dropbuttons = $(context).find('.dropbutton-wrapper').once('dropbutton');
if ($dropbuttons.length) {
var $body = $('body').once('dropbutton-click');
if ($body.length) {
$body.on('click', '.dropbutton-toggle', dropbuttonClickHandler);
}
var il = $dropbuttons.length;
for (var i = 0; i < il; i++) {
DropButton.dropbuttons.push(new DropButton($dropbuttons[i], settings.dropbutton));
}
}
}
};
$.extend(DropButton, {
dropbuttons: []
});
$.extend(DropButton.prototype, {
toggle: function toggle(show) {
var isBool = typeof show === 'boolean';
show = isBool ? show : !this.$dropbutton.hasClass('open');
this.$dropbutton.toggleClass('open', show);
},
hoverIn: function hoverIn() {
if (this.timerID) {
window.clearTimeout(this.timerID);
}
},
hoverOut: function hoverOut() {
this.timerID = window.setTimeout($.proxy(this, 'close'), 500);
},
open: function open() {
this.toggle(true);
},
close: function close() {
this.toggle(false);
},
focusOut: function focusOut(e) {
this.hoverOut.call(this, e);
},
focusIn: function focusIn(e) {
this.hoverIn.call(this, e);
}
});
$.extend(Drupal.theme, {
dropbuttonToggle: function dropbuttonToggle(options) {
return "<li class=\"dropbutton-toggle\"><button type=\"button\"><span class=\"dropbutton-arrow\"><span class=\"visually-hidden\">".concat(options.title, "</span></span></button></li>");
}
});
Drupal.DropButton = DropButton;
})(jQuery, Drupal);;
/**
* @file
* JavaScript behaviors for help.
*/
(function ($, Drupal) {
'use strict';
/**
* Handles help accordion.
*
* @type {Drupal~behavior}
*
* @prop {Drupal~behaviorAttach} attach
* Attaches the behavior for help accordion.
*/
Drupal.behaviors.content_syncHelpAccordion = {
attach: function (context) {
var $widget = $(context).find('.content_sync-help-accordion');
$widget.once('content_sync-help-accordion').accordion({
header: 'h2',
collapsible: true,
heightStyle: 'content'
});
if (location.hash) {
var $container = $('h2' + location.hash, $widget);
if ($container.length) {
var active = $widget.find($widget.accordion('option', 'header')).index($container);
$widget.accordion('option', 'active', active);
}
}
}
};
/**
* Handles disabling help dialog for mobile devices.
*
* @type {Drupal~behavior}
*
* @prop {Drupal~behaviorAttach} attach
* Attaches the behavior for disabling help dialog for mobile devices.
*/
Drupal.behaviors.content_syncHelpDialog = {
attach: function (context) {
$(context).find('.button-content_sync-play').once('content_sync-help-dialog').on('click', function (event) {
if ($(window).width() < 768) {
event.stopImmediatePropagation();
}
}).each(function () {
// Must make sure that this click event handler is execute first and
// before the Ajax dialog handler.
// @see http://stackoverflow.com/questions/2360655/jquery-event-handlers-always-execute-in-order-they-were-bound-any-way-around-t
var handlers = $._data(this, 'events')['click'];
var handler = handlers.pop();
// Move it at the beginning.
handlers.splice(0, 0, handler);
});
}
};
})(jQuery, Drupal);
;
/**
* @file
* JavaScript behaviors for message element integration.
*/
(function ($, Drupal) {
'use strict';
/**
* Behavior for handler message close.
*
* @type {Drupal~behavior}
*/
Drupal.behaviors.content_syncMessageClose = {
attach: function (context) {
$(context).find('.js-content_sync-message--close').once('content_sync-message--close').each(function () {
var $element = $(this);
var id = $element.attr('data-message-id');
var storage = $element.attr('data-message-storage');
var effect = $element.attr('data-message-close-effect') || 'hide';
switch (effect) {
case 'slide': effect = 'slideUp'; break;
case 'fade': effect = 'fadeOut'; break;
}
// Check storage status.
if (isClosed($element, storage, id)) {
return;
}
$element.show().find('.js-content_sync-message__link').on('click', function (event) {
$element[effect]();
setClosed($element, storage, id);
$element.trigger('close');
event.preventDefault();
});
});
}
};
function isClosed($element, storage, id) {
if (!id || !storage) {
return false;
}
switch (storage) {
case 'local':
if (window.localStorage) {
return localStorage.getItem('Drupal.content_sync.message.' + id) || false;
}
return false;
case 'session':
if (window.sessionStorage) {
return sessionStorage.getItem('Drupal.content_sync.message.' + id) || false;
}
return false;
default:
return false;
}
}
function setClosed($element, storage, id) {
if (!id || !storage) {
return;
}
switch (storage) {
case 'local':
if (window.localStorage) {
localStorage.setItem('Drupal.content_sync.message.' + id, true);
}
break;
case 'session':
if (window.sessionStorage) {
sessionStorage.setItem('Drupal.content_sync.message.' + id, true);
}
break;
case 'user':
case 'state':
$.get($element.find('.js-content_sync-message__link').attr('href'));
return true;
}
}
})(jQuery, Drupal);
;