https://www.pressemonitor.de/app/themes/pmg-website/dist/Components/FormGravity/script-dd0ea52504.js
1!function(t){function e(i){if(o[i])return o[i].exports;var n=o[i]={i:i,l:!1,exports:{}};return t[i].call(n.exports,n,n.exports,e),n.l=!0,n.exports}var o={};e.m=t,e.c=o,e.d=function(t,o,i){e.o(t,o)||Object.defineProperty(t,o,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var o=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(o,"a",o),o},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="https://localhost:3000/",e(e.s=190)}({0:function(t,e){t.exports=jQuery},190:function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=o(0),l=i(s),d=o(191),c=i(d);o(54),o(55),o(48),o(192);var u=function(t){function e(o){var i,a;return n(this,e),o=i=r(this,t.call(this,o)),o.$=(0,l.default)(o),i.props=i.getInitialProps(),o.resolveElements(),o.bindFunctions(),o.bindEvents(),a=o,r(i,a)}return a(e,t),e.prototype.getInitialProps=function(){var t={};try{t=JSON.parse((0,l.default)('script[type="application/json"]',this).text())}catch(t){}return t},e.prototype.resolveElements=function(){this.$checkboxList=(0,l.default)(".checkboxList input[type=checkbox]",this),this.$hiddenFields=(0,l.default)("input[type=hidden]",this),this.$emailValue="",this.setUrlVars()},e.prototype.bindFunctions=function(){this.renderLoader=this.renderLoader.bind(this),this.onCloseModal=this.onCloseModal.bind(this),this.triggerFormSubmit=this.triggerFormSubmit.bind(this),this.formPostRender=this.formPostRender.bind(this),this.formConfirmationLoaded=this.formConfirmationLoaded.bind(this),this.checkEmailValue=this.checkEmailValue.bind(this),this.addOptionalLabels=this.addOptionalLabels.bind(this)},e.prototype.bindEvents=function(){this.$.on("click","[data-submit-button]",this.triggerFormSubmit),this.$.on("click","[data-custom-modal-close]",this.onCloseModal),this.$.on("change",'input[type="email"]',this.checkEmailValue),(0,l.default)(document).on("gform_post_render",this.formPostRender),(0,l.default)(document).on("gform_confirmation_loaded",this.formConfirmationLoaded),(0,l.default)(document).on("gform_confirmation_loaded",this.scrollToCenterElement),(0,l.default)(document).on("gform_after_submission",this.formConfirmationLoadedD)},e.prototype.connectedCallback=function(){this.setCheckboxListChecksViaGetParams(),this.State=new StateHandler({loading:!1,form:null},[{keys:["loading"],method:this.renderLoader}]),this.State.render(),this.addOptionalLabels(),this.$hiddenFields.each(function(t,e){(0,l.default)(e).removeAttr("aria-invalid")})},e.prototype.checkEmailValue=function(t){this.$emailValue=t.target.value},e.prototype.triggerFormSubmit=function(t){var e=(0,l.default)(t.currentTarget),o=e.closest("form"),i=e.data("form-id"),n=o.find("#gform_submit_button_"+i);if(window.gform&&window.gform.submission&&"function"==typeof window.gform.submission.handleButtonClick){var r=n.get(0);window.gform.submission.handleButtonClick(r,i)}else n.trigger("click");this.State.set({loading:!0,form:o})},e.prototype.onCloseModal=function(t){var e=bodyScrollLock.enableBodyScroll;(0,l.default)("[data-custom-modal]",this).removeClass("customModal--ready customModal--visible"),e((0,l.default)(".customModal-scroll",this).get(0))},e.prototype.formPostRender=function(t,e){tippy(".tooltip-icon",{arrow:!0,hideOnClick:!1,interactive:!0,interactiveBorder:10,performance:!0,position:"bottom",zIndex:9});var o=(0,l.default)(".gfield.gfield_error:first",this);if(o.length>0){var i=o.offset().top-80,n=window.pageYOffset-80;o.find("input, textarea").focus(),n>i&&(0,l.default)("html").scrollTop(i)}},e.prototype.formConfirmationLoaded=function(t,e){var o=this,i=this.props,n=i.formId,r=i.openFormId,a=bodyScrollLock.disableBodyScroll,s=bodyScrollLock.enableBodyScroll;if(n===e)if(r)(0,l.default)('.customModal input[type="email"]',this).val(this.$emailValue),(0,l.default)("[data-custom-modal]",this).addClass("customModal--ready"),setTimeout(function(){a((0,l.default)(".customModal-scroll",o).get(0),{reserveScrollBarGap:!0}),(0,l.default)("[data-custom-modal]",o).addClass("customModal--visible")},300);else{var d=(0,l.default)("#formSuccess-"+e,this);d.length&&this.openSuccessPopup(e)}if(r===e){var u=(0,l.default)("#formSuccess-"+e,this);s((0,l.default)(".customModal-scroll",this).get(0)),u.length&&((0,l.default)("[data-custom-modal]",this).removeClass("customModal--ready customModal--visible"),this.openSuccessPopup(e))}
1(0,c.default)()},e.prototype.scrollToCenterElement=function(t,e){var o=document.getElementById("gform_confirmation_wrapper_"+e);if(!o)return!1;var i=window.innerHeight,n=o.offsetHeight,r=o.getBoundingClientRect().top+window.pageYOffset,a=r-(i-n)/2;return window.scrollTo({top:a,behavior:"smooth"}),!0},e.prototype.openSuccessPopup=function(t){l.default.fancybox.open({src:"#formSuccess-"+t,infobar:!1,toolbar:!1,parentEl:(0,l.default)("[is=flynt-form-gravity]").get(0),autoFocus:!1,backFocus:!1,btnTpl:{smallBtn:'<button data-fancybox-close class="fancybox-button fancybox-close-small" title="{{CLOSE}}"><svg width="24px" height="23px" viewBox="0 0 24 23" xmlns="http://www.w3.org/2000/svg"><path d="M22.607.186l.707.707L12.707 11.5l10.607 10.607-.707.707L12 12.207 1.393 22.814l-.707-.707L11.293 11.5.686.893l.707-.707L12 10.793z" fill="currentColor" fill-rule="nonzero"/></svg></button>'}})},e.prototype.renderLoader=function(){var t=this.State.data.loading,e=this.State.data.form;e&&e.find(".loader").toggleClass("loader--visible",t)},e.prototype.setCheckboxListChecksViaGetParams=function(){this.$checkboxList.each(function(t,e){var o=(0,l.default)(e);for(var i in this.urlVars)this.urlVars[i]===o.val()&&o.prop("checked",!0)}.bind(this))},e.prototype.setUrlVars=function(){for(var t=[],e=void 0,o=window.location.href.slice(window.location.href.indexOf("?")+1).split("&"),i=0;i<o.length;i++)e=o[i].split("="),t.push(e[0]);this.urlVars=t},e.prototype.addOptionalLabels=function(){var t=this.querySelectorAll(".gfield_label");t.length>0&&t.forEach(function(t){if(!Boolean(t.querySelector(".gfield_required"))){var e=document.createElement("span");e.classList.add("gfield_label_optional"),e.innerText=" (optional)",t.appendChild(e)}})},e}(window.HTMLDivElement);window.customElements.define("flynt-form-gravity",u,{extends:"div"})},191:function(t,e,o){"use strict";var i=function(){void 0!==window.dataLayer&&window.dataLayer.push({event:"formSubmission"})};t.exports=i},192:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=o.p+"vendor/bodyScrollLock.js"},48:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=o.p+"vendor/js-state-handler.js"},54:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=o.p+"vendor/jquery.fancybox.js"},55:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=o.p+"vendor/jquery.fancybox.css"}});
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.