/** * DO NOT EDIT THIS FILE. * See the following change record for more information, * https://www.drupal.org/node/2815083 * @preserve **/ (function (Drupal) { Drupal.theme.message = function (_ref, _ref2) { var text = _ref.text; var type = _ref2.type, id = _ref2.id; var messagesTypes = Drupal.Message.getMessageTypeLabels(); var messageWrapper = document.createElement('div'); messageWrapper.setAttribute('class', "messages-list__item messages messages--".concat(type)); messageWrapper.setAttribute('data-drupal-selector', 'messages'); messageWrapper.setAttribute('role', type === 'error' || type === 'warning' ? 'alert' : 'status'); messageWrapper.setAttribute('aria-labelledby', "".concat(id, "-title")); messageWrapper.setAttribute('data-drupal-message-id', id); messageWrapper.setAttribute('data-drupal-message-type', type); var svg = ''; if (['error', 'warning', 'status', 'info'].indexOf(type) > -1) { svg = '
'; } if (type === 'error') { svg += ''; } else if (type === 'warning') { svg += ''; } else if (type === 'status') { svg += ''; } else if (type === 'info') { svg += ''; } if (['error', 'warning', 'status', 'info'].indexOf(type) > -1) { svg += '
'; } messageWrapper.innerHTML = "\n
\n
\n

").concat(messagesTypes[type], "

\n ").concat(svg, "\n
\n
\n ").concat(text, "\n
\n
\n "); Drupal.olivero.closeMessage(messageWrapper); return messageWrapper; }; })(Drupal);