You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
7.5 KiB

(window.webpackJsonp=window.webpackJsonp||[]).push([[15],{1540:function(e,t,n){var o={"./":[247,9],"./ICanvasEffect":[923,7,11],"./ICanvasEffect.ts":[923,7,11],"./confetti":[480,9,1],"./confetti/":[480,9,1],"./confetti/index":[480,9,1],"./confetti/index.ts":[480,9,1],"./effect":[924,9,12],"./effect.ts":[924,9,12],"./fireworks":[481,9,2],"./fireworks/":[481,9,2],"./fireworks/index":[481,9,2],"./fireworks/index.ts":[481,9,2],"./hearts":[482,9,3],"./hearts/":[482,9,3],"./hearts/index":[482,9,3],"./hearts/index.ts":[482,9,3],"./index":[247,9],"./index.ts":[247,9],"./rainfall":[483,9,4],"./rainfall/":[483,9,4],"./rainfall/index":[483,9,4],"./rainfall/index.ts":[483,9,4],"./snowfall":[484,9,5],"./snowfall/":[484,9,5],"./snowfall/index":[484,9,5],"./snowfall/index.ts":[484,9,5],"./spaceinvaders":[485,9,6],"./spaceinvaders/":[485,9,6],"./spaceinvaders/index":[485,9,6],"./spaceinvaders/index.ts":[485,9,6],"./utils":[309,9],"./utils.ts":[309,9]};function r(e){if(!n.o(o,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=o[e],r=t[0];return Promise.all(t.slice(2).map(n.e)).then((function(){return n.t(r,t[1])}))}r.keys=function(){return Object.keys(o)},r.id=1540,e.exports=r},1551:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n(120),r=n(131);class a extends o.PureComponent{render(){var e;const t=r.b.getObject("branding"),n=null!==(e=null==t?void 0:t.get("auth_header_logo_url"))&&void 0!==e?e:"themes/element/img/logos/element-logo.svg";return o.createElement("aside",{className:"mx_AuthHeaderLogo"},o.createElement("img",{src:n,alt:"Element"}))}}},1596:function(e,t,n){"use strict";n.r(t),n.d(t,"loadApp",(function(){return k}));n(1451);var o=n(120),r=n.n(o),a=n(157),i=n(121),l=n(345),s=n(321),c=n(467),d=n(131),u=n(1),g=n(136),f=n(26),w=n(1462),m=n(40);let h=null;function v(e){const t=Object(m.b)(e);return{screen:t.location.substring(1),params:t.params}}function p(){decodeURIComponent(window.location.hash)!==h&&function(e){if(!window.matrixChat)return;u.a.log("Routing URL ",e.href);const t=v(e);window.matrixChat.showScreen(t.screen,t.params)}(window.location)}function _(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];u.a.log("newscreen "+e);const n="#/"+e;h=n,e.startsWith("room/")&&window.location.hash.includes("/$")===n.includes("/$")&&window.location.hash.startsWith(n)&&(t=!0),t?window.location.replace(n):window.location.assign(n)}function b(e){let t;t="vector:"===window.location.protocol?"https://app.element.io/#/register":window.location.protocol+"//"+window.location.host+window.location.pathname+"#/register";const n=Object.keys(e);for(let o=0;o<n.length;++o){t+=0===o?"?":"&";const r=n[o];t+=r+"="+encodeURIComponent(e[r])}return t}function x(){const e=new URL(window.location.href);e.searchParams.delete("loginToken"),u.a.log(`Redirecting to ${e.href} to drop loginToken from queryparams`),window.history.replaceState(null,"",e.href)}async function k(e){var t;window.addEventListener("hashchange",p);const n=a.a.get(),o=Object(m.a)(window.location),h=window.location.protocol+"//"+window.location.host+window.location.pathname;u.a.log("Vector starting at "+h),n.startUpdater();const k=await async function(){let e;try{u.a.log("Verifying homeserver configuration");const t=d.b.get();let n=t.default_server_config;const o=t.default_server_name,r=t.default_hs_url,a=t.default_is_url,c=[n,o,r].filter((e=>!!e));if(c.length>1)throw Object(i.i)(Object(i.c)("Invalid configuration: can only specify one of default_server_config, default_server_name, or default_hs_url."));if(c.length<1)throw Object(i.i)(Object(i.c)("Invalid configuration: no default server specified."));r&&(u.a.log("Config uses a default_hs_url - constructing a default_server_config using this information"),u.a.warn("DEPRECATED CONFIG OPTION: In the future, default_hs_url will not be accepted. Please use default_server_config instead."),n={"m.homeserver":{base_url:r}},a&&(n["m.identity_server"]={base_url:a}));let g=null;n&&(u.a.log("Config uses a default_server_config - v
//# sourceMappingURL=element-web-app.js.map