PageSourceSearch

https://www.telekom.de/resources/javascript/1295916/sessionmodal.5056.js

js telekom.de collected 2026-09-24 09:03:39 UTC 14,593 bytes, 2 lines download raw bytes

1/*! For license information please see sessionmodal.5056.js.LICENSE.txt */
2"use strict";(self.webpackChunk_vp_pk_ess_redesign=self.webpackChunk_vp_pk_ess_redesign||[]).push([[5056],{7194:function(e,t,r){r.r(t),r.d(t,{default:function(){return x}});var n=r(2155),o=r(316),i=function(e,t){var r=(0,n.useRef)(null),o=(0,n.useRef)(e);return(0,n.useEffect)((function(){o.current=e}),[e]),(0,n.useEffect)((function(){if("number"==typeof t)return r.current=window.setInterval((function(){return o.current()}),t),function(){return window.clearInterval(r.current)}}),[t]),r};function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function c(e){var t,r,o=e.live,i=void 0===o?"polite":o,c=e.role,u=void 0===c?"region":c,s=e.visible,l=void 0!==s&&s,f=e.children,h=(t=(0,n.useState)(""),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(t,r)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),d=h[0],m=h[1];return(0,n.useEffect)((function(){m(f)}),[]),n.createElement("div",{role:u,"aria-live":i,className:l?null:"esx-visuallyhidden"},d)}var u=r(6953),s=r(5772),l=r(9230),f=r(4710);function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function d(){d=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var i=t&&t.prototype instanceof w?t:w,a=Object.create(i.prototype),c=new R(n||[]);return o(a,"_invoke",{value:j(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var m="suspendedStart",p="suspendedYield",v="executing",y="completed",g={};function w(){}function x(){}function b(){}var E={};s(E,a,(function(){return this}));var S=Object.getPrototypeOf,T=S&&S(S(N([])));T&&T!==r&&n.call(T,a)&&(E=T);var L=b.prototype=w.prototype=Object.create(E);function k(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function A(e,t){function r(o,i,a,c){var u=f(e[o],e,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==h(l)&&n.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(l).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function j(t,r,n){var o=m;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=_(c,n);if(u){if(u===g)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===m)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=f(t,r,n);if("normal"===s.type){if(o=n.done?y:p,s.arg===g)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function _(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&
vendor: 4,852 bytes, line 2
2(r.method="return",r.arg=e,_(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function N(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(h(t)+" is not iterable")}return x.prototype=b,o(L,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:x,configurable:!0}),x.displayName=s(b,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===x||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s(e,u,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},k(A.prototype),s(A.prototype,c,(function(){return this})),t.AsyncIterator=A,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new A(l(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(L),s(L,u,"Generator"),s(L,a,(function(){return this})),s(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=N,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),I(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function m(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}function p(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){m(i,n,o,a,c,"next",e)}function c(e){m(i,n,o,a,c,"throw",e)}a(void 0)}))}}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;
2!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?y(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}r(4774),r(4576),r(3882),r(3138);var g=6e4,w=1e3;function x(e){var t=e.sessionRefreshEndpoint,r=void 0===t?"":t,a=e.sessionInitialTimestamp,h=void 0===a?0:a,m=e.sessionMaxInteractiveIntervalSeconds,y=void 0===m?0:m,x=e.sessionTimeLeftRemainingMinutes,b=void 0===x?0:x,E=e.sessionTimeLeftRemainingSeconds,S=void 0===E?0:E,T=e.screenReaderCounterIntervalInSeconds,L=void 0===T?10:T,k=e.criticalSessionTimeFrameReachedHeaderText,A=void 0===k?"":k,j=e.maxSessionTimeLeftCounterText,_=void 0===j?"":j,O=e.minSessionTimeLeftCounterText,I=void 0===O?"":O,R=e.critical
2SessionTimeFrameReachedAdditionalText,N=void 0===R?"":R,F=e.criticalSessionTimeFrameReachedButtonText,C=void 0===F?"":F,P=e.sessionTimeoutReachedHeaderText,D=void 0===P?"":P,M=e.sessionTimeoutReachedText,G=void 0===M?"":M,W=e.sessionTimeoutReachedAdditionalText,$=void 0===W?"":W,B=e.sessionTimeoutReachedButtonText,U=void 0===B?"":B,H=v((0,n.useState)(!1),2),V=H[0],Y=H[1],q=v((0,n.useState)(!1),2),z=q[0],J=q[1],K=v((0,n.useState)(new Date),2),Q=K[0],X=K[1],Z=v((0,n.useState)(new Date),2),ee=Z[0],te=Z[1],re=v((0,n.useState)(I),2),ne=re[0],oe=re[1],ie=v((0,n.useState)("".concat(b)),2),ae=ie[0],ce=ie[1],ue=v((0,n.useState)("".concat(b)),2),se=ue[0],le=ue[1],fe=v((0,n.useState)(!1),2),he=fe[0],de=fe[1],me=function(e){var t=e+y*w;te(new Date(t)),X(new Date(t-b*g))};(0,n.useEffect)((function(){me(h)}),[]),(0,n.useEffect)((function(){var e=function(){var e=p(d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!z){e.next=5;break}ye(),e.next=8;break;case 5:return e.next=7,ve();case 7:de(!1);case 8:e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),console.error(err.message);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(){return e.apply(this,arguments)}}();e()}),[he]);i((function(){var e,t;Date.now()>Q.getTime()&&(V||z||((0,s.eB)(),Y(!0))),V&&(e=Math.ceil((new Date(ee).getTime()-Date.now())/g),(t=Math.ceil((new Date(ee).getTime()-Date.now())/w))>S?(ce("".concat(e)),"".concat(e)!==ae&&le("".concat(e))):(ce("".concat(t)),t/L%1==0&&le("".concat(t)),oe(_)),Date.now()>ee.getTime()&&(J(!0),sessionPersistedForms&&document.querySelectorAll('[data-store-to-session="true"]').forEach((function(e){var t=e.id;if(!t)return!1;sessionPersistedForms.removeform(t)}))))}),z?null:w);var pe,ve=function(){var e=p(d().mark((function e(){var t,n;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch(r);case 3:return e.next=5,e.sent.text();case 5:t=e.sent,n=new Date(t).getTime(),me(n),Y(!1),oe(I),ce("".concat(b)),(0,s.WU)(),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(0),console.error(e.t0.message);case 17:case"end":return e.stop()}}),e,null,[[0,14]])})));return function(){return e.apply(this,arguments)}}(),ye=function(){Y(!1),window.location.reload()},ge=function(){var e=p(d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:de(!0);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return pe=z?n.createElement(n.Fragment,null,n.createElement("h2",{className:"esx-headline--2 esx-font-weight--normal esx-text-align--center esx-space--2"},D),n.createElement(c,{visible:!0},n.createElement("h3",{className:"esx-space--1 esx-text-align--center"},G)),$&&n.createElement("p",null,$),n.createElement(l.a.Actions,null,n.createElement(l.a.Action,null,
2n.createElement(f.$n,{type:"button",onClick:ye,hasMinWidth:!0},U)))):n.createElement(n.Fragment,null,n.createElement("h2",{className:"esx-headline--2 esx-font-weight--normal esx-text-align--center esx-space--2"},A),n.createElement("h3",{"aria-hidden":"true",className:"esx-space--1 esx-text-align--center"},n.createElement(u.A,{bindings:{sessionTimeRemainingMinutes:ae,sessionTimeRemainingSeconds:ae},jsx:ne,renderInWrapper:!1,autoCloseVoidElements:!0,blacklistedAttrs:[]})),n.createElement("p",{className:"esx-visuallyhidden",role:"timer","aria-live":"polite","aria-atomic":"true"},n.createElement(u.A,{bindings:{sessionTimeRemainingMinutes:se,sessionTimeRemainingSeconds:se},jsx:ne,renderInWrapper:!1,autoCloseVoidElements:!0,blacklistedAttrs:[]})),N&&n.createElement("p",null,N),n.createElement(l.a.Actions,null,n.createElement(l.a.Action,null,n.createElement(f.$n,{type:"button",onClick:ve,hasMinWidth:!0},C)))),!!V&&n.createElement(n.Fragment,null,(0,o.createPortal)(n.createElement(l.a,{id:"formSessionModal",isOpen:V,portalless:!0,zIndex:1e4,afterClose:ge,closeText:"".concat(A," schließen")},n.createElement(l.a.Section,null,n.createElement("div",{style:{minWidth:"25em"}},pe))),document.body))}}}]);

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.