This repository has been archived on 2026-05-25. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
komuniki-jitsi-ui/jitsi-meet/libs/do_external_connect.min.js
Antoine Ouvrard d3277d6563 initial commit
2020-11-23 10:28:32 +01:00

2 lines
2.3 KiB
JavaScript

!function(n){var e={};function t(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return n[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}t.m=n,t.c=e,t.d=function(n,e,o){t.o(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:o})},t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,e){if(1&e&&(n=t(n)),8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var o=Object.create(null);if(t.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var r in n)t.d(o,r,function(e){return n[e]}.bind(null,r));return o},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,"a",e),e},t.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},t.p="/libs/",t(t.s=0)}([function(n,e,t){"use strict";t.r(e);function o(n,e=!1,t="hash"){const o="search"===t?n.search:n.hash,r={},i=o&&o.substr(1).split("&")||[];if("hash"===t&&1===i.length){const n=i[0];if(n.startsWith("/")&&1===n.split("&").length)return r}return i.forEach(n=>{const t=n.split("="),o=t[0];if(!o)return;let i;try{if(i=t[1],!e){const n=decodeURIComponent(i).replace(/\\&/,"&");i="undefined"===n?void 0:JSON.parse(n)}}catch(n){return void function(n,e=""){console.error(e,n),window.onerror&&window.onerror(e,null,null,null,n)}(n,"Failed to parse URL parameter value: "+String(i))}r[o]=i}),r}function r(n){if(!n)return n;try{n=decodeURIComponent(n)}catch(n){}return n=(n=n.normalize("NFKC")).toLowerCase(),(n=encodeURIComponent(n)).toLowerCase()}if("function"==typeof createConnectionExternally){let n=o(window.location,!0,"hash")["config.externalConnectUrl"]||config.websocket?void 0:config.externalConnectUrl;const e=o(window.location,!0,"hash")["config.iAmRecorder"];let t;if(n&&(t=function(){const n=window.location.pathname;return r(n.substring(n.lastIndexOf("/")+1)||void 0)}())&&!e){n+="?room="+t;const e=o(window.location,!0,"search").jwt;e&&(n+="&token="+e),createConnectionExternally(n,n=>{window.XMPPAttachInfo={status:"success",data:n},i()},c)}else c()}else c();function i(){window.APP&&"ready"===window.APP.connect.status&&window.APP.connect.handler()}function c(n){n&&console.warn(n),window.XMPPAttachInfo={status:"error"},i()}}]);
//# sourceMappingURL=do_external_connect.min.map