PageSourceSearch

https://www.trainingsschwerter.de/theme/b11e10f1180a3e1de748c29301…on-configurator-info-modal.plugin.947a2e.js

js trainingsschwerter.de collected 2026-09-25 09:51:36 UTC 6,740 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[71862],{11(e,t,s){s.d(t,{A:()=>a});class i{constructor(){return i.instance||(i.instance=this),i.instance}getValueFromPath(e,t){let s=e.replace(/%/g,"").split("."),i=t;for(let e of s){if(null===i||"object"!=typeof i||!(e in i))return;i=i[e]}if("object"!=typeof i||null===i)return i}}let o=Object.freeze(new i);class a{static getValueFromPath(e,t){return o.getValueFromPath(e,t)}}},592(e,t,s){s.d(t,{Kq:()=>r,Ay:()=>h});class i{static isTouchDevice(){return"ontouchstart"in document.documentElement}static isIOSDevice(){return i.isIPhoneDevice()||i.isIPadDevice()}static isNativeWindowsBrowser(){return i.isIEBrowser()||i.isEdgeBrowser()}static isIPhoneDevice(){return!!navigator.userAgent.match(/iPhone/i)}static isIPadDevice(){return!!navigator.userAgent.match(/iPad/i)}static isIEBrowser(){return -1!==navigator.userAgent.toLowerCase().indexOf("msie")||!!navigator.userAgent.match(/Trident.*rv:\d+\./)}static isEdgeBrowser(){return!!navigator.userAgent.match(/Edge\/\d+/i)}static getList(){return{"is-touch":i.isTouchDevice(),"is-ios":i.isIOSDevice(),"is-native-windows":i.isNativeWindowsBrowser(),"is-iphone":i.isIPhoneDevice(),"is-ipad":i.isIPadDevice(),"is-ie":i.isIEBrowser(),"is-edge":i.isEdgeBrowser()}}}let o="modal-backdrop",a="modal-backdrop-open",n="no-scroll",r=350,l={ON_CLICK:"backdrop/onclick"};class c{constructor(){return c.instance||(c.instance=this),c.instance}create(e){this._removeExistingBackdrops(),document.body.insertAdjacentHTML("beforeend",this._getTemplate());let t=document.body.lastChild;document.documentElement.classList.add(n),setTimeout(function(){t.classList.add(a),"function"==typeof e&&e()},75),this._dispatchEvents()}remove(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r;this._getBackdrops().forEach(e=>e.classList.remove(a)),setTimeout(this._removeExistingBackdrops.bind(this),e),document.documentElement.classList.remove(n)}_dispatchEvents(){let e=i.isTouchDevice()?"touchstart":"click";document.addEventListener(e,function(e){e.target.classList.contains(o)&&document.dispatchEvent(new CustomEvent(l.ON_CLICK))})}_getBackdrops(){return document.querySelectorAll(`.${o}`)}_removeExistingBackdrops(){!1!==this._exists()&&this._getBackdrops().forEach(e=>e.remove())}_exists(){return document.querySelectorAll(`.${o}`).length>0}_getTemplate(){return`<div class="${o}"></div>`}}let d=Object.freeze(new c);class h{static create(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;d.create(e)}static remove(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r;d.remove(e)}static SELECTOR_CLASS(){return o}}},860(e,t,s){s.d(t,{A:()=>n});var i=s(592);let o="js-pseudo-modal",a="js-pseudo-modal-template-root-element";class n{constructor(e,t=!0,s=".js-pseudo-modal-template",i=".js-pseudo-modal-template-content-element",o=".js-pseudo-modal-template-title-element"){this._content=e,this._useBackdrop=t,this._templateSelector=s,this._templateContentSelector=i,this._templateTitleSelector=o}open(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.Kq;this._hideExistingModal(),this._create(),setTimeout(this._open.bind(this,e),t)}close(){let e=this.getModal();this._modalInstance=bootstrap.Modal.getInstance(e),this._modalInstance.hide()}getModal(){return this._modal||this._create(),this._modal}updatePosition(){this._modalInstance.handleUpdate()}updateContent(e,t){this._content=e,this._setModalContent(e),this.updatePosition(),"function"==typeof t&&t.bind(this)()}_hideExistingModal(){try{let e=document.querySelector(`.${o} .modal`);if(!e)return;let t=bootstrap.Modal.getInstance(e);if(!t)return;t.hide()}catch(e){console.warn(`[PseudoModalUtil] Unable to hide existing pseudo modal before opening pseudo modal: ${e.message}`)}}_open(e){this.getModal(),this._modal.addEventListener("hidden.bs.modal",this._modalWrapper.remove),this._modal.addEventListener("shown.bs.modal",e),this._modal.addEventListener("hide.bs.modal",()=>{document.activeElement instanceof HTMLElement&&document.activeElement.blur()}),this._modalInstance.show()}_create(){this._modalMarkupEl=document.querySelector(this._templateSelector),this._createModalWrapper(),this._modalWrapper.innerHTML=this._content,this._modal=this._createModalMar
1kup(),this._modalInstance=new bootstrap.Modal(this._modal,{backdrop:this._useBackdrop}),document.body.insertAdjacentElement("beforeend",this._modalWrapper)}_createModalWrapper(){this._modalWrapper=document.querySelector(`.${o}`),this._modalWrapper||(this._modalWrapper=document.createElement("div"),this._modalWrapper.classList.add(o))}_createModalMarkup(){let e=this._modalWrapper.querySelector(".modal");if(e)return e;let t=this._modalWrapper.innerHTML;return this._modalWrapper.innerHTML=this._modalMarkupEl.innerHTML,this._setModalContent(t),this._modalWrapper.querySelector(".modal")}_setModalTitle(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";try{this._modalWrapper.querySelector(this._templateTitleSelector).innerHTML=e}catch(e){}}_setModalContent(e){let t=this._modalWrapper.querySelector(this._templateContentSelector);t.innerHTML=e;let s=t.querySelector(`.${a}`);if(s){this._modalWrapper.querySelector(`.${a}`).replaceChildren(s);return}try{let e=t.querySelector(this._templateTitleSelector);e&&(this._setModalTitle(e.innerHTML),e.parentNode.removeChild(e))}catch(e){}}}},862(e,t,s){s.r(t),s.d(t,{default:()=>a});var i=s(860),o=s(11);class a extends window.PluginBaseClass{static #e=this.options={contentMode:null,contentText:null,contentTitle:null,contentCmsPageId:null};static #t=this.replacedOptions={};init(){let e=this;e.replacedOptions=JSON.parse(JSON.stringify(this.options)),this.el.addEventListener("click",this.onClick.bind(this));try{window.PluginManager.getPluginInstances("NeonConfigurator").forEach(function(t){t.$emitter.subscribe("beforeDynamicTextUpdated",e.onBeforeDynamicTextUpdated.bind(e))})}catch(e){}}onBeforeDynamicTextUpdated(e){this.replacedOptions.contentText=this.replaceDynamicTemplates(this.replacedOptions.contentText,e.detail.ruleData),this.replacedOptions.contentTitle=this.replaceDynamicTemplates(this.replacedOptions.contentTitle,e.detail.ruleData)}replaceDynamicTemplates(e,t){let s=e?e.match(/%[^%]+%/g):null;return s&&s.forEach(function(s){let i=o.A.getValueFromPath(s,t);null!=i&&(e=e.replace(s,i))}),e}onClick(e){e.preventDefault(),e.stopPropagation(),this.showModal()}showModal(){new i.A('<div class="js-pseudo-modal-template">\n                <h5 class="modal-title js-pseudo-modal-template-title-element">'+this.replacedOptions.contentTitle+'</h5>\n                <div class="js-pseudo-modal-template-content-element">'+this.replacedOptions.contentText+"</div>\n            </div>",!0).open()}}}}]);

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.