PageSourceSearch

https://getinsaltd.com/wp-content/plugins/woocommerce-wholesale-le…/modules/FrontEndAjaxServices.js?ver=2.0.6

js getinsaltd.com collected 2026-10-09 00:42:27 UTC 2,078 bytes, 68 lines download raw bytes

1/**
2 * A function implementing the revealing module pattern to house all ajax request. It implements the ajax promise methodology
3 * @return {Ajax Promise} promise it returns a promise, I promise that #lamejoke
4 *
5 * Info:
6 * Ajax is a variable injected by the server inside this js file. It has an attribute named ajaxurl which points
7 * to admin ajax url for ajax call purposes
8 */
9var wwlcFrontEndAjaxServices = (function () {
10  // Private function - not exposed globally
11  var _createUser = function (
12      userData,
13      recaptcha_field,
14      wwlc_register_user_nonce_field,
15      wp_http_referer
16    ) {
17      return jQuery.ajax({
18        url: Ajax.ajaxurl,
19        type: "POST",
20        data: {
21          action: "wwlc_create_user",
22          user_data: userData,
23          recaptcha_field: recaptcha_field,
24          wwlc_register_user_nonce_field: wwlc_register_user_nonce_field,
25          _wp_http_referer: wp_http_referer,
26        },
27        dataType: "json",
28      });
29    },
30    getStates = function (cc) {
31      return jQuery.ajax({
32        url: Ajax.ajaxurl,
33        type: "POST",
34        data: { action: "wwlc_get_states", cc: cc, _wpnonce: Ajax.nonce },
35        dataType: "json",
36      });
37    },
38    uploadFile = function (fileData, formObject) {
39      return jQuery.ajax({
40        url: Ajax.ajaxurl,
41        type: "POST",
42        data: fileData,
43        cache: false,
44        dataType: "json",
45        processData: false, // Don't process the files
46        contentType: false, // Set content type to false as jQuery will tell the server its a query string request
47      });
48    },
49    getAllowedFileSettings = function (fieldID, _wpnonce) {
50      return jQuery.ajax({
51        url: Ajax.ajaxurl,
52        type: "POST",
53        data: {
54          action: "wwlc_get_allowed_file_settings",
55          field_id: fieldID,
56          _wpnonce: _wpnonce,
57        },
58        dataType: "json",
59      });
60    };
61
62  return {
63    createUser: _createUser,
64    getStates: getStates,
65    uploadFile: uploadFile,
66    getAllowedFileSettings: getAllowedFileSettings,
67  };
68})();

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.