PageSourceSearch

https://gdpr.signaturit.com/custom/app.bundle.js

js signaturit.com collected 2026-09-24 08:49:39 UTC 8,114 bytes, 1 lines download raw bytes

1!function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){"use strict";n.r(e);var o="data-sg-gdpr",r="".concat(o,"-formId"),i="*[".concat(o,"-container]"),a="".concat(o,"-attribute"),s="consent_field",c="".concat(o,"-consents-url"),u="".concat(o,"-consents-text"),f="".concat(o,"-consents-additional-text"),p="*[".concat(c,"]"),h="*[".concat(u,"]"),l="*[".concat(f,"]"),d=("".concat(o,"-consents-label"),"input[".concat(a,"]")),y="https://".concat("gdpr-api.signaturit.com"),m=function(){function t(){window.SGDatalayer=window.SGDatalayer||{}}return t.prototype.reset=function(){window.SGDatalayer={}},t.prototype.createObject=function(t,e){var n,o,r=t.pop();if(0===t.length){var i=e;return"function"==typeof i&&(i=i()),(n={})[r]=i,n}return(o={})[r]=this.createObject(t,e),o},t.prototype.isObject=function(t){return t&&"object"==typeof t&&!Array.isArray(t)&&null!==t},t.prototype.mergeDeep=function(t,e){if(this.isObject(t)&&this.isObject(e))for(var n in e)e.hasOwnProperty(n)&&this.merging(e,n,t);return t},t.prototype.merging=function(t,e,n){var o,r;this.isObject(t[e])?(n[e]||Object.assign(n,((o={})[e]={},o)),this.mergeDeep(n[e],t[e])):Object.assign(n,((r={})[e]=t[e],r))},Object.defineProperty(t.prototype,"datalayer",{get:function(){return window.SGDatalayer},set:function(t){this.mergeDeep(window.SGDatalayer,t)},enumerable:!1,configurable:!0}),t.prototype.dumpDL=function(){this.reset()},t.getInstance=function(){return t.instance||(t.instance=new t),t.instance},t}(),g=function(){function t(){this.DL=m.getInstance(),this.TIMER_LABEL="form_time",this.init()}return t.prototype.init=function(){this.startTimer()},t.prototype.startTimer=function(){var t=this;this.time=0,this.timerName=setInterval((function(){t.time++}),0)},t.prototype.stopTimer=function(){var t={};t["".concat(this.TIMER_LABEL)]="".concat(this.time/1e3),this.DL.datalayer=t,clearInterval(this.timerName)},t.getInstance=function(){return t.instance||(t.instance=new t),t.instance},t}(),b=function(){function t(t,e,n){this.url=t,this.xmlData=e,this.mode=n,this.objHttpReq=new XMLHttpRequest,this.objHttpReq.mode=this.mode,this.objHttpReq.onreadystatechange=this.OnRStateChange,this.objHttpReq.open("POST",this.url,this.mode),this.objHttpReq.send(this.xmlData)}return t.prototype.OnRStateChange=function(){4===this.readyState&&200===this.status&&(this.mode,console.log(this.responseText))},t}(),v=function(){function t(t,e){this.container=t,this.dataLayerInstance=e,this.init()}return t.prototype.init=function(){this.getConsentsByType()},t.prototype.getConsentsByType=function(){var t;this.consents=this.findByType([p,h]),t=this.prepareForDataLayer(this.consents),this.addToDataLayer(t)},t.prototype.addToDataLayer=function(t){var e={};e["".concat(t.label)]=t.value,this.dataLayerInstance.datalayer=e},t.prototype.prepareForDataLayer=function(t){var e=null;for(var n in t)if("boolean"!=typeof t[n])for(var o=t[n].length,r=0;r<o;r++)for(var i=t[n][r].attributes,a=i.length,f=0;f<a;f++)switch(i[f].name){case"".concat(u):e={value:i[f].ownerElement.innerHTML,label:s};break;case"".concat(c):e={value:i[f].value,label:s}}return e},t.prototype.findByType=function(t){for(var e=t.length,n=0;n<e;n++){var o=this.findAll(this.container,t[n]);if(o.itExists)return o}},t.prototype.findAll=function(t,e){if(null!==t){var n=t.querySelectorAll(e);return{val:n,itExists:n.length>0}}},t}(),D=function(){function t(t,e){this.DL=m.getInstance(),this.container=t,this.dataLayerInstance=e,this.init()}return t.prototype.init=function(){var t,e;t=this.findElements(this.container,l),(e=this.extractContent(t)).length>0&&this.addToDataLayer(e)},t.prototype.findElements=function(t,e){if(null!==t)return t.querySelectorAll(e)},t.prototype.extractContent=function(t){for(var e=new Array,n=t.length,o=0;o<n;
1o++)e.push(t[o].innerHTML.toString());return e},t.prototype.addToDataLayer=function(t){var e={};e["".concat("additional_text")]=t,this.dataLayerInstance.datalayer=e},t}(),L=function(){function t(){this.DL=m.getInstance(),this.information={},this.init(),this.afterInit()}return t.prototype.init=function(){this.parseInfo()},t.prototype.afterInit=function(){this.storeBrowserInfo()},t.prototype.parseInfo=function(){this.information={},this.information.browser=this.getBrowserVersion(),this.information.lang=this.getLang()},t.prototype.getBrowserVersion=function(){return window.navigator.userAgent},t.prototype.getLang=function(){return window.navigator.language},t.prototype.storeBrowserInfo=function(){this.parseInfo(),null!==this.information&&(this.DL.datalayer=this.information)},t}(),S=function(){function t(t){this.formId={},this.formSource={},this.DL=m.getInstance(),this.ST=g.getInstance(),this.formEl=t,this.init(),this.afterInit()}return t.prototype.init=function(){this.sendBtns=this.findAll(this.formEl,"input[type=submit]"),this.inputs=this.findAll(this.formEl,d)},t.prototype.afterInit=function(){this.ST.startTimer(),document.addEventListener("sg:submit",this.fireData.bind(this))},t.prototype.findAll=function(t,e){if(null!==t)return t.querySelectorAll(e)},t.prototype.getGeneralData=function(t,e,n,o){return o["".concat(n)]=this.getCustomData(t,e),this.DL.datalayer=o,!0},t.prototype.getCustomData=function(t,e){return t.getAttribute(e)},t.prototype.getInputValues=function(){for(var t in this.inputs)if("object"==typeof this.inputs[t]){var e=this.inputs[t];switch(e.getAttribute("type")){case"radio":e.checked&&this.addToDataSource(this.formSource,e.value,e.getAttribute(a));break;case"checkbox":this.addToDataSource(this.formSource,e.checked.toString(),e.getAttribute(a));break;default:this.addToDataSource(this.formSource,e.value,e.getAttribute(a))}}},t.prototype.addToDataSource=function(t,e,n,o){t["".concat(n)]=o?{text:e,url:o}:e||""},t.prototype.addToDataLayer=function(t,e){var n={};n["".concat(t)]=e,this.DL.datalayer=n},t.prototype.preventSubmit=function(t,e){t.addEventListener("submit",(function(t){t.preventDefault(),e(t)}),!0)},t.prototype.sendData=function(t){for(var e=0;e<t;e++)this.preventSubmit(this.sendBtns[e]);this.preventSubmit(this.formEl,this.fireData.bind(this))},t.prototype.fireData=function(t){this.DL.dumpDL(),new L,new v(this.formEl,this.DL),new D(this.formEl,this.DL),this.getInputValues(),this.addToDataLayer("form_data",this.formSource),this.getGeneralData(this.formEl,r,"formId",this.formId),this.ST.stopTimer(),this.postData(JSON.stringify(this.DL.datalayer))},t.prototype.postData=function(t){var e=this.formId,n="";e&&e.formId&&(n=e.formId);new b("".concat(y,"/v1/forms/").concat(n,"/consents"),t,!0)},t}(),w=function(){function t(){this.init()}return t.prototype.init=function(){this.forms=this.find(i),this.formFactory(this.forms)},t.prototype.find=function(t){return document.querySelectorAll(t)},t.prototype.formFactory=function(t){for(var e=t.length,n=0;n<e;n++)new S(t[n])},t}();new(function(){function t(){this.createApp()}return t.prototype.containerReady=function(){return new Promise((function(t,e){var n=0,o=setInterval((function(){n++;return-1!==document.querySelector("body").innerHTML.search("data-sg-gdpr-container")?(clearInterval(o),t()):n>=3?(clearInterval(o),e()):void 0}),1500)}))},t.prototype.createApp=function(){this.containerReady().then((function(){new w,console.log("GDPR application started")}))},t}())}]);

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.