PageSourceSearch

https://www.springerpub.com/static/version1789146322/frontend/Mage…/js/ui-messages-mixin.js

js springerpub.com collected 2026-09-24 08:47:42 UTC 1,164 bytes, 38 lines download raw bytes

1/**
2 * Copyright © Magento, Inc. All rights reserved.
3 * See COPYING.txt for license details.
4 */
5
6define(['Magento_ReCaptchaFrontendUi/js/registry'], function (registry) {
7    'use strict';
8
9    return function (originalComponent) {
10        return originalComponent.extend({
11            /**
12             * Initialize reset on messages
13             * @returns {initialize}
14             */
15            initialize: function () {
16                this._super();
17
18                this.messageContainer.errorMessages.subscribe(function () {
19                    var
20                        i,
21                        captchaList = registry.captchaList(),
22                        tokenFieldsList = registry.tokenFields();
23
24                    for (i = 0; i < captchaList.length; i++) {
25                        // eslint-disable-next-line no-undef
26                        grecaptcha.reset(captchaList[i]);
27
28                        if (tokenFieldsList[i]) {
29                            tokenFieldsList[i].value = '';
30                        }
31                    }
32                }, null, 'arrayChange');
33
34                return this;
35            }
36        });
37    };
38});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.