PageSourceSearch

https://sondengaengershop.de/modules/gdprpro//views/js/gdpr-modal.js

js sondengaengershop.de collected 2026-10-08 09:36:48 UTC 7,403 bytes, 150 lines download raw bytes

1/**
2 * PrestaChamps
3 *
4 * NOTICE OF LICENSE
5 *
6 * This source file is subject to the Commercial License
7 * you can't distribute, modify or sell this code
8 *
9 * DISCLAIMER
10 *
11 * Do not edit or add to this file
12 * If you need help please contact [email protected]
13 *
14 * @author    PrestaChamps <[email protected]>
15 * @copyright PrestaChamps
16 * @license   commercial
17 */
18
19if (typeof Object.assign != 'function') {
20  // Must be writable: true, enumerable: false, configurable: true
21  Object.defineProperty(Object, "assign", {
22    value: function assign(target, varArgs) { // .length of function is 2
23      'use strict';
24      if (target == null) { // TypeError if undefined or null
25        throw new TypeError('Cannot convert undefined or null to object');
26      }
27
28      var to = Object(target);
29
30      for (var index = 1; index < arguments.length; index++) {
31        var nextSource = arguments[index];
32
33        if (nextSource != null) { // Skip over if undefined or null
34          for (var nextKey in nextSource) {
35            // Avoid bugs when hasOwnProperty is shadowed
36            if (Object.prototype.hasOwnProperty.call(nextSource, nextKey)) {
37              to[nextKey] = nextSource[nextKey];
38            }
39          }
40        }
41      }
42      return to;
43    },
44    writable: true,
45    configurable: true
46  });
47}
48
49
50!function (e) {
51    if ("object" == typeof exports && "undefined" != typeof module) module.exports = e(); else if ("function" == typeof define && define.amd) define([], e); else {
52        ("undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : this).gdprModal = e()
53    }
54}(function () {
55    return function e(t, o, n) {
56        function r(f, a) {
57            if (!o[f]) {
58                if (!t[f]) {
59                    var c = "function" == typeof require && require;
60                    if (!a && c) return c(f, !0);
61                    if (i) return i(f, !0);
62                    var l = new Error("Cannot find module '" + f + "'");
63                    throw l.code = "MODULE_NOT_FOUND", l
64                }
65                var u = o[f] = {exports: {}};
66                t[f][0].call(u.exports, function (e) {
67                    var o = t[f][1][e];
68                    return r(o || e)
69                }, u, u.exports, e, t, o, n)
70            }
71            return o[f].exports
72        }
73
74        for (var i = "function" == typeof require && require, f = 0; f < n.length; f++) r(n[f]);
75        return r
76    }({
77        1: [function (e, t, o) {
78            "use strict";
79            Object.defineProperty(o, "__esModule", {value: !0});
80            var n = function (e, t) {
81                var o = e.children;
82                return 1 === o.length && o[0].tagName === t
83            }, r = o.visible = function (e) {
84                return null != (e = e || document.querySelector(".gdprModal")) && !0 === e.ownerDocument.body.contains(e)
85            };
86            o.create = function (e, t) {
87                var o = function () {
88                    var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "", t = arguments[1],
89                        o = document.createElement("div");
90                    o.classList.add("gdprModal"), null != t.className && o.classList.add(t.className), o.innerHTML = "\n\t\t" + t.beforePlaceholder + '\n\t\t<div class="gdprModal__placeholder" role="dialog" title="GDPR Modal">\n\t\t\t' + e + "\n\t\t</div>\n\t\t" + t.afterPlaceholder + "\n\t";
91                    var r = o.querySelector(".gdprModal__placeholder"), i = n(r, "IMG"), f = n(r, "VIDEO"),
92                        a = n(r, "IFRAME");
93                    return !0 === i && o.classList.add("gdprModal--img"), !0 === f && o.classList.add("gdprModal--video"), !0 === a && o.classList.add("gdprModal--iframe"), o
94                }(e, t = function () {
95                    var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
96                    return !1 !== (e = Object.assign({}, e)).closable && (e.closable = !0), "function" == typeof e.className && (e.className = e.className()), "string" != typeof e.className && (e.className = null), "function" != typeof e.beforeShow && (e.beforeShow = function () {
97                    }), "function" != typeof e.afterShow && (e.afterShow = function () {
98                    }), "function" != typeof e.beforeClose && (e.beforeClose = function () {
99                    }), "function" != typeof e.afterClose && (e.afterClose = function () {
100                    }), "function" == typeof e.beforePlaceholder && (e.beforePlaceholder = e.beforePlaceholder()), "string" != typeof e.beforePlaceholder && (e.beforePlaceholder = ""), "function" == typeof e.afterPlaceholder && (e.afterPlaceholder = e.afterPlaceholder()), "string" != typeof e.afterPlaceholder && (e.afterPlaceholder = ""), e
101                }(t)), i = function (e) {
102                    return !1 !== t.beforeClose(f) && function (e, t) {
103                        $('body').removeClass(gdprSettings.scrollLock ? 'overflow-hidden' : 'overflow-shown');
104                        return e.classList.remove("gdprModal--visible"), setTimeout(function () {
105                            requestAnimationFrame(function () {
106                                return !1 === r(e) ? t() : (e.parentElement.removeChild(e), t())
107                            })
108                        }, 410), !0
109                    }(o, function () {
110                        if (t.afterClose(f), "function" == typeof e) return e(f)
111                    })
112                };
113                !0 === t.closable && (o.onclick = function (e) {
114                    e.target === this && (i(), function (e) {
115                        "function" == typeof e.stopPropagation && e.stopPropagation(), "function" == typeof e.preventDefault && e.preventDefault()
116                    }(e))
117                });
118                var f = {
119                    element: function () {
120                        return o
121                    }, visible: function () {
122                        return r(o)
123                    }, show: function (e) {
124                        $('body').addClass(gdprSettings.scrollLock ? 'overflow-hidden' : 'overflow-shown');
125                        if($(window).width() < 650) {
126                            $('.gdprModal').height($(document).height());
127                        }
128                        return !1 !== t.beforeShow(f) && function (e, t) {
129                            return document.body.appendChild(e), setTimeout(function () {
130                                requestAnimationFrame(function () {
131                                    return e.classList.add("gdprModal--visible"), t()
132                                })
133                            }, 10), !0
134                        }(o, function () {
135                            if (t.afterShow(f), "function" == typeof e) return e(f)
136                        })
137                    }, init: function (e) {
138                        return !1 !== t.beforeShow(f) && function (e, t) {
139                            return document.body.appendChild(e)
140                        }(o, function () {
141                            if (t.afterShow(f), "function" == typeof e) return e(f)
142                        })
143                    },
144                    close: i
145                };
146                return f
147            }
148        }, {}]
149    }, {}, [1])(1)
150});

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.