PageSourceSearch

https://de.serlo.org/_next/static/chunks/4008.92b372f500465ebf.js

js serlo.org collected 2026-09-24 17:45:15 UTC 4,253 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4008,5043],{95043:function(e,t,n){n.r(t),n.d(t,{a:function(){return r},d:function(){return i}});var o=n(16424);!function(e){function t(t,n,o){var r,i=t.getWrapperElement();return r=i.appendChild(document.createElement("div")),o?r.className="CodeMirror-dialog CodeMirror-dialog-bottom":r.className="CodeMirror-dialog CodeMirror-dialog-top","string"==typeof n?r.innerHTML=n:r.appendChild(n),e.addClass(i,"dialog-opened"),r}function n(e,t){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=t}e.defineExtension("openDialog",function(o,r,i){i||(i={}),n(this,null);var u=t(this,o,i.bottom),l=!1,a=this;function s(t){if("string"==typeof t)f.value=t;else{if(l)return;l=!0,e.rmClass(u.parentNode,"dialog-opened"),u.parentNode.removeChild(u),a.focus(),i.onClose&&i.onClose(u)}}var c,f=u.getElementsByTagName("input")[0];return f?(f.focus(),i.value&&(f.value=i.value,!1!==i.selectValueOnOpen&&f.select()),i.onInput&&e.on(f,"input",function(e){i.onInput(e,f.value,s)}),i.onKeyUp&&e.on(f,"keyup",function(e){i.onKeyUp(e,f.value,s)}),e.on(f,"keydown",function(t){i&&i.onKeyDown&&i.onKeyDown(t,f.value,s)||((27==t.keyCode||!1!==i.closeOnEnter&&13==t.keyCode)&&(f.blur(),e.e_stop(t),s()),13==t.keyCode&&r(f.value,t))}),!1!==i.closeOnBlur&&e.on(u,"focusout",function(e){null!==e.relatedTarget&&s()})):(c=u.getElementsByTagName("button")[0])&&(e.on(c,"click",function(){s(),a.focus()}),!1!==i.closeOnBlur&&e.on(c,"blur",s),c.focus()),s}),e.defineExtension("openConfirm",function(o,r,i){n(this,null);var u=t(this,o,i&&i.bottom),l=u.getElementsByTagName("button"),a=!1,s=this,c=1;function f(){a||(a=!0,e.rmClass(u.parentNode,"dialog-opened"),u.parentNode.removeChild(u),s.focus())}l[0].focus();for(var d=0;d<l.length;++d){var p=l[d];(function(t){e.on(p,"click",function(n){e.e_preventDefault(n),f(),t&&t(s)})})(r[d]),e.on(p,"blur",function(){--c,setTimeout(function(){c<=0&&f()},200)}),e.on(p,"focus",function(){++c})}}),e.defineExtension("openNotification",function(o,r){n(this,s);var i,u=t(this,o,r&&r.bottom),l=!1,a=r&&void 0!==r.duration?r.duration:5e3;function s(){l||(l=!0,clearTimeout(i),e.rmClass(u.parentNode,"dialog-opened"),u.parentNode.removeChild(u))}return e.on(u,"click",function(t){e.e_preventDefault(t),s()}),a&&(i=setTimeout(s,a)),s})}((0,o.r)());var r={};let i=function(e,t){for(var n=0;n<t.length;n++){let o=t[n];if("string"!=typeof o&&!Array.isArray(o)){for(let t in o)if("default"!==t&&!(t in e)){let n=Object.getOwnPropertyDescriptor(o,t);n&&Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>o[t]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:(0,o.g)(r)},[r])},74008:function(e,t,n){n.r(t),n.d(t,{j:function(){return u}});var o=n(16424),r=n(95043);!function(e){function t(e,t){var n=Number(t);return/^[-+]/.test(t)?e.getCursor().line+n:n-1}e.defineOption("search",{bottom:!1}),e.commands.jumpToLine=function(e){var n,o,r,i,u=e.getCursor();n=e.phrase("Jump to line:")+' <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">'+e.phrase("(Use line:column or scroll% syntax)")+"</span>",o=e.phrase("Jump to line:"),r=u.line+1+":"+u.ch,i=function(n){if(n){if(o=/^\s*([\+\-]?\d+)\s*\:\s*(\d+)\s*$/.exec(n))e.setCursor(t(e,o[1]),Number(o[2]));else if(o=/^\s*([\+\-]?\d+(\.\d+)?)\%\s*/.exec(n)){var o,r=Math.round(e.lineCount()*Number(o[1])/100);/^[-+]/.test(o[1])&&(r=u.line+r+1),e.setCursor(r-1,u.ch)}else(o=/^\s*\:?\s*([\+\-]?\d+)\s*/.exec(n))&&e.setCursor(t(e,o[1]),u.ch)}},e.openDialog?e.openDialog(n,i,{value:r,selectValueOnOpen:!0,bottom:e.options.search.bottom}):i(prompt(o,r))},e.keyMap.default["Alt-G"]="jumpToLine"}((0,o.r)(),r.a);var i={};let u=function(e,t){for(var n=0;n<t.length;n++){let o=t[n];if("string"!=typeof o&&!Array.isArray(o)){for(let t in o)if("default"!==t&&!(t in e)){let n=Object.getOwnPropertyDescriptor(o,t);n&&Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>o[t]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:(0,o.g)(i)},[i])}}]);
2//# sourceMappingURL=4008.92b372f500465ebf.js.map

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.