PageSourceSearch

https://www.dcbib.dk/modules/custom/dpl_mapp/js/tiLoader.min.js?tm868m

js dcbib.dk collected 2026-10-02 18:44:14 UTC 2,280 bytes, 72 lines download raw bytes

1/**
2 * @file
3 * Mapp Intelligence pixel tracking script wrapped in Drupals JavaScript
4 * handling.
5 *
6 * @see https://documentation.mapp.com/latest/en/first-steps-17498620.html
7 */
8(function mappIntelligence(drupalSettings) {
9  window._tiConfig = window._tiConfig || {
10    tiDomain: drupalSettings.dpl_mapp.domain,
11    tiId: drupalSettings.dpl_mapp.id,
12    // customDomain: 'sub.domain.tld',
13    // customPath: 'js/container_script.js',
14    option: {},
15  };
16
17  // Apply any page parameters contributed by CMS modules to window._ti.
18  // These are read by the Mapp tracking script when it loads.
19  const pageParams = drupalSettings.dpl_mapp.page_params;
20  if (pageParams) {
21    window._ti = window._ti || {};
22    Object.entries(pageParams).forEach(([key, value]) => {
23      window._ti[key] = value;
24    });
25  }
26
27  /* eslint-disable */
28  /** start TagIntegration loader  */
29  (function (a, d, c, f) {
30    a.wts = a.wts || [];
31    var g = function (b) {
32      var a = "";
33      b.customDomain && b.customPath
34        ? (a = b.customDomain + "/" + b.customPath)
35        : b.tiDomain &&
36          b.tiId &&
37          (a =
38            b.tiDomain +
39            "/resp/api/get/" +
40            b.tiId +
41            "?url=" +
42            encodeURIComponent("https://" + d.location.host + "/") +
43            "&v=5");
44      if (b.option)
45        for (var c in b.option)
46          a += "&" + c + "=" + encodeURIComponent(b.option[c]);
47      return a;
48    };
49    if (-1 === d.cookie.indexOf("wt_r=1")) {
50      var e = d.getElementsByTagName(c)[0];
51      c = d.createElement(c);
52      c.async = !0;
53      c.onload = function () {
54        if ("undefined" !== typeof a.wt_r && !isNaN(a.wt_r)) {
55          var b = new Date(),
56            c = b.getTime() + 1e3 * parseInt(a.wt_r);
57          b.setTime(c);
58          d.cookie = "wt_r=1;path=/;expires=" + b.toUTCString();
59        }
60      };
61      c.onerror = function () {
62        "undefined" !== typeof a.wt_mcp_hide &&
63          "function" === typeof a.wt_mcp_hide.show &&
64          (a.wt_mcp_hide.show(), (a.wt_mcp_hide.show = function () {}));
65      };
66      c.src = "//" + g(f);
67      e.parentNode.insertBefore(c, e);
68    }
69  })(window, document, "script", _tiConfig);
70  /** end TagIntegration loader */
71  /* eslint-enable */
72})(drupalSettings);

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.