PageSourceSearch

https://samurai.ru/bitrix/cache/js/s1/new_design/page_75f7e8df139f…9f33a423ece424fc8bcdda_v1.js?17851372652139

js samurai.ru collected 2026-10-01 23:53:58 UTC 2,139 bytes, 68 lines download raw bytes

1
2; /* Start:"a:4:{s:4:"full";s:94:"/local/templates/new_design/components/bitrix/news.list/cafe_tab_list/script.js?17591333621755";s:6:"source";s:79:"/local/templates/new_design/components/bitrix/news.list/cafe_tab_list/script.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
3function process_filter_cafe(callback) {
4  $("article.cafe_card").css("display", "none");
5
6  let filter_obj = {};
7  $("form.filteres input[name=options]:checked").each(function () {
8    if (typeof filter_obj[$(this).attr("name")] == "object") {
9      if (!Array.isArray(filter_obj[$(this).attr("name")])) {
10        filter_obj[$(this).attr("name")] = [];
11      }
12    } else {
13      filter_obj[$(this).attr("name")] = [];
14    }
15
16    filter_obj[$(this).attr("name")].push(
17      $(this).val().toString().toUpperCase()
18    );
19  });
20  $("form.filteres .area-filter.active").each(function () {
21    if (typeof filter_obj[$(this).attr("name")] == "object") {
22      if (!Array.isArray(filter_obj[$(this).attr("name")])) {
23        filter_obj[$(this).attr("name")] = [];
24      }
25    } else {
26      filter_obj[$(this).attr("name")] = [];
27    }
28
29    filter_obj[$(this).attr("name")].push(
30      $(this).val().toString().toUpperCase()
31    );
32  });
33
34  // filter doesnt setted
35  if (Object.keys(filter_obj).length == 0) {
36    // $("#delivery_menu_load").removeClass("fast_search_process");
37    $("article.cafe_card").css("display", "flex");
38
39    if (typeof callback == "function") {
40      callback();
41    }
42    return;
43  }
44
45  $("article.cafe_card").each(function () {
46    let flag = true;
47    let item = this;
48
49    $.each(filter_obj, function (k, v) {
50      let t = $(item).data(k).toString().toUpperCase();
51
52      $.each(v, function (key, filter_val) {
53        if (t.toString().toUpperCase().indexOf(filter_val) < 0) {
54          flag = false;
55        }
56      });
57    });
58    if (flag === true) {
59      $(this).css("display", "flex");
60    }
61  });
62  if (typeof callback == "function") {
63    callback();
64  }
65}
66
67/* End */
68;; /* /local/templates/new_design/components/bitrix/news.list/cafe_tab_list/script.js?17591333621755*/

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.