PageSourceSearch

https://www.tuev-nord.de/_assets/081fa96a07de1dccb64a8a83e1567439/…=bc16a15c32ba8585857ed38222fd228577c9ceb1

js tuev-nord.de collected 2026-09-24 08:59:49 UTC 1,923 bytes, 13 lines download raw bytes

1/*
2 * This file is part of the TYPO3 CMS project.
3 *
4 * It is free software; you can redistribute it and/or modify it under
5 * the terms of the GNU General Public License, either version 2
6 * of the License, or any later version.
7 *
8 * For the full copyright and license information, please read the
9 * LICENSE.txt file that was distributed with this source code.
10 *
11 * The TYPO3 project - inspiring people to share!
12 */
13import{PseudoButtonLitElement as p}from"@typo3/backend/element/pseudo-button.js";import{property as l,customElement as d}from"lit/decorators.js";import f from"@typo3/core/ajax/ajax-request.js";import u from"@typo3/backend/notification.js";var w=function(i,e,t,n){var c=arguments.length,r=c<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(h=i[a])&&(r=(c<3?h(r):c>3?h(e,t,r):h(e,t))||r);return c>3&&r&&Object.defineProperty(e,t,r),r},o;(function(i){i.switch="switch",i.exit="exit"})(o||(o={}));let s=class extends p{constructor(){super(...arguments),this.mode=o.switch}buttonActivated(){this.mode===o.switch?this.handleSwitchUser():this.mode===o.exit&&this.handleExitSwitchUser()}handleSwitchUser(){if(!this.targetUser){u.error("Switching to user went wrong.");return}new f(TYPO3.settings.ajaxUrls.switch_user).post({targetUser:this.targetUser}).then(async e=>{const t=await e.resolve();t.success===!0&&t.url?top.window.location.href=t.url:u.error("Switching to user went wrong.")})}handleExitSwitchUser(){new f(TYPO3.settings.ajaxUrls.switch_user_exit).post({}).then(async e=>{const t=await e.resolve();t.success===!0&&t.url?top.window.location.href=t.url:u.error("Exiting current user went wrong.")})}};w([l({type:String})],s.prototype,"targetUser",void 0),w([l({type:o})],s.prototype,"mode",void 0),s=w([d("typo3-backend-switch-user")],s);export{s as SwitchUser};

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.