PageSourceSearch

https://www.lestropeziennes.fr/modules/chronopost/views/js/ajax.js

js lestropeziennes.fr collected 2026-10-07 22:58:15 UTC 1,494 bytes, 55 lines download raw bytes

1/**
2 * 2015-2024 Chronopost SAS
3 *
4 * NOTICE OF LICENSE
5 *
6 * This source file is subject to the Academic Free License 3.0 (AFL-3.0)
7 * that is bundled with this package in the file LICENSE.txt.
8 * It is also available through the world-wide-web at this URL:
9 * https://opensource.org/licenses/AFL-3.0
10 * If you did not receive a copy of the license and are unable to
11 * obtain it through the world-wide-web, please send an email
12 * to [email protected] so we can send you a copy immediately.
13 *
14 * @author    Chronopost SAS <[email protected]>
15 * @copyright 2015-2024 Chronopost SAS
16 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
17 */
18function chrAdminAjaxRequest(action, data, type = 'POST') {
19  return new Promise((resolve, reject) => {
20    $.ajax({
21      type: type,
22      cache: false,
23      url: Chronopost.admin_ajax_endpoint,
24      data: {
25        ajax: true,
26        controller: 'AdminChronopostAjax',
27        action: action,
28        ajaxData: data,
29        token: Chronopost.csrf_token,
30      },
31      success: function (r) {
32        resolve(r);
33      },
34      error: function (r) {
35        reject(r);
36      }
37    });
38  });
39}
40
41function chrAjaxRequest(data, type = 'POST') {
42  return new Promise((resolve, reject) => {
43    $.ajax({
44      type: type,
45      url: Chronopost.ajax_endpoint,
46      data: data,
47      success: function (r) {
48        resolve(r);
49      },
50      error: function (r) {
51        reject(r);
52      }
53    });
54  });
55}

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.