tweb/public/main.85ca1b655a5282e63dcd.b...

2 lines
174 KiB
JavaScript
Raw Normal View History

2022-05-25 19:59:52 +02:00
!function(f){function e(e){for(var d,s,n=e[0],a=e[1],c=0,i=[];c<n.length;c++)s=n[c],Object.prototype.hasOwnProperty.call(t,s)&&t[s]&&i.push(t[s][0]),t[s]=0;for(d in a)Object.prototype.hasOwnProperty.call(a,d)&&(f[d]=a[d]);for(r&&r(e);i.length;)i.shift()()}var d={},t={9:0};function s(f){return n.p+""+({10:"npm.qr-code-styling"}[f]||f)+"."+{0:"32932e6b1ccf767530d6",1:"a451f0e324b6f1ae635f",2:"c6719cf29f278d18da90",3:"fd4a457d3edbe045f3c5",4:"73d6f3573b27676bc073",5:"44ee5fc0c0956efac27b",6:"f77fd13ca8dced461af7",7:"5f548bb1b833747ed1cb",8:"f44261a125fd436f2604",10:"8a5c1af00a34aad13da9",11:"cf26eb898030414134cb",12:"e359dd53060d4015fdd7",13:"a125878dbc205a62574c",14:"e9b9c7ff17c0914d18bc",15:"24491ae227713b8f77c1",16:"0918f0072a790bb43766",17:"a2e053ec4aa9ce260242",18:"19abbab9479978924d76",19:"f7182b122a15cfe83c25",20:"6096df8f14772978d7c3",21:"01da4c39b75c80344eb7",22:"0a628e2d4248ba9d2bc6",23:"6be0d0c4a28ca0d0952b",24:"3dbb6c36f540f3e15be0"}[f]+".chunk.js"}function n(e){if(d[e])return d[e].exports;var t=d[e]={i:e,l:!1,exports:{}};return f[e].call(t.exports,t,t.exports,n),t.l=!0,t.exports}n.e=function(f){var e=[],d=t[f];if(0!==d)if(d)e.push(d[2]);else{var a=new Promise((function(e,s){d=t[f]=[e,s]}));e.push(d[2]=a);var c=new Error;var i=function e(d,a){var i,r=document.createElement("script");r.charset="utf-8",r.timeout=120,n.nc&&r.setAttribute("nonce",n.nc),r.src=d,i=function(d){r.onerror=r.onload=null,clearTimeout(o);var n=t[f];if(0!==n)if(n)if(0===a){var i=d&&("load"===d.type?"missing":d.type),u=d&&d.target&&d.target.src;c.message="Loading chunk "+f+" failed after 999999 retries.\n("+i+": "+u+")",c.name="ChunkLoadError",c.type=i,c.request=u,n[1](c),t[f]=void 0}else setTimeout((function(){var d=Date.now(),t=e(s(f)+"?"+d,a-1);document.head.appendChild(t)}),0);else t[f]=void 0};var o=setTimeout((function(){i({type:"timeout",target:r})}),12e4);return r.onerror=r.onload=i,r}(s(f),999999);document.head.appendChild(i)}return Promise.all(e)},n.m=f,n.c=d,n.d=function(f,e,d){n.o(f,e)||Object.defineProperty(f,e,{enumerable:!0,get:d})},n.r=function(f){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(f,"__esModule",{value:!0})},n.t=function(f,e){if(1&e&&(f=n(f)),8&e)return f;if(4&e&&"object"==typeof f&&f&&f.__esModule)return f;var d=Object.create(null);if(n.r(d),Object.defineProperty(d,"default",{enumerable:!0,value:f}),2&e&&"string"!=typeof f)for(var t in f)n.d(d,t,function(e){return f[e]}.bind(null,t));return d},n.n=function(f){var e=f&&f.__esModule?function(){return f.default}:function(){return f};return n.d(e,"a",e),e},n.o=function(f,e){return Object.prototype.hasOwnProperty.call(f,e)},n.p="",n.oe=function(f){throw console.error(f),f};var a=this.webpackJsonp=this.webpackJsonp||[],c=a.push.bind(a);a.push=e,a=a.slice();for(var i=0;i<a.length;i++)e(a[i]);var r=c;n(n.s=56)}([function(f,e,d){"use strict";var t=d(20),s=d(15),n=d(1);class a extends s.a{constructor(){super(),this.overlaysActive=0,this.idle={isIDLE:!0,deactivated:!1,focusPromise:Promise.resolve(),focusResolve:()=>{}},this.connectionStatus={},this.filterId=0,this.config={forwarded_count_max:100,edit_time_limit:172800,pinned_dialogs_count_max:5,pinned_infolder_count_max:100,message_length_max:4096,caption_length_max:1024},this.addEventListener("peer_changed",f=>{this.peerId=f,document.body.classList.toggle("has-chat",!!f)}),this.addEventListener("user_auth",({id:f})=>{this.myId="number"==typeof t.c?+f:""+f}),this.addEventListener("connection_status_change",f=>{this.connectionStatus[f.name]=f}),this.addEventListener("idle",f=>{f?this.idle.focusPromise=new Promise(f=>{this.idle.focusResolve=f}):this.idle.focusResolve()})}get themeColorElem(){return void 0!==this._themeColorElem?this._themeColorElem:this._themeColorElem=document.head.querySelector('[name="theme-color"]')||null}setThemeColor(f=this.themeColor){f||(f=this.isNight()?"#212121":"#ffffff");const e=this.themeColorElem;e&&e.setAttribute("content",f)}setThemeListener(){try{const f=window.matchMedia("(prefers-color-scheme: dark)"),e=()=
//# sourceMappingURL=main.85ca1b655a5282e63dcd.bundle.js.map