PageSourceSearch

https://motostorie.blog/wp-content/plugins/packlink-pro-shipping/r…/js/ResponseService.js?x68295&ver=4.4.3

js motostorie.blog collected 2026-10-02 03:01:30 UTC 1,020 bytes, 33 lines download raw bytes

1if (!window.Packlink) {
2    window.Packlink = {};
3}
4
5(function () {
6    /**
7     * The ResponseService constructor.
8     *
9     * @constructor
10     */
11    function ResponseService() {
12        const utilityService = Packlink.utilityService,
13            validationService = Packlink.validationService;
14
15        /**
16         * Handles an error response from the submit action.
17         *
18         * @param {{success: boolean, error?: string, messages?: ValidationMessage[]}} response
19         */
20        this.errorHandler = (response) => {
21            utilityService.hideSpinner();
22            if (response.error) {
23                utilityService.showFlashMessage(response.error, 'danger', 7000);
24            } else if (response.messages) {
25                validationService.handleValidationErrors(response.messages);
26            } else {
27                utilityService.showFlashMessage('Unknown error occurred.', 'danger', 7000);
28            }
29        };
30    }
31
32    Packlink.responseService = new ResponseService();
33})();

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.