dependencies updated, rebuilt, version bumped to 24.1
This commit is contained in:
Generated
+1981
-1923
File diff suppressed because it is too large
Load Diff
+5
-5
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "tinode-webapp",
|
"name": "tinode-webapp",
|
||||||
"description": "Tinode messenger for the web",
|
"description": "Tinode messenger for the web",
|
||||||
"version": "0.24.0",
|
"version": "0.24.1",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/tinode/webapp.git"
|
"url": "git+https://github.com/tinode/webapp.git"
|
||||||
@@ -74,7 +74,7 @@
|
|||||||
"react": "^18.3.0",
|
"react": "^18.3.0",
|
||||||
"react-dom": "^18.3.0",
|
"react-dom": "^18.3.0",
|
||||||
"react-intl": "^7.0.0",
|
"react-intl": "^7.0.0",
|
||||||
"tinode-sdk": "^0.24.0",
|
"tinode-sdk": "^0.24.1",
|
||||||
"webm-duration-fix": "^1.0.4"
|
"webm-duration-fix": "^1.0.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
@@ -82,13 +82,13 @@
|
|||||||
"@babel/preset-env": "^7.22.10",
|
"@babel/preset-env": "^7.22.10",
|
||||||
"@babel/preset-react": "^7.22.5",
|
"@babel/preset-react": "^7.22.5",
|
||||||
"@formatjs/cli": "^6.1.3",
|
"@formatjs/cli": "^6.1.3",
|
||||||
"babel-loader": "^9.1.3",
|
"babel-loader": "^10.0.0",
|
||||||
"babel-plugin-formatjs": "^10.5.3",
|
"babel-plugin-formatjs": "^10.5.3",
|
||||||
"browserslist": "^4.21.10",
|
"browserslist": "^4.21.10",
|
||||||
"copy-webpack-plugin": "^12.0.0",
|
"copy-webpack-plugin": "^13.0.0",
|
||||||
"cssnano": "^7.0.6",
|
"cssnano": "^7.0.6",
|
||||||
"glob": "^11.0.0",
|
"glob": "^11.0.0",
|
||||||
"jest": "^29.7.0",
|
"jest": "^30.0.0",
|
||||||
"postcss": "^8.4.27",
|
"postcss": "^8.4.27",
|
||||||
"postcss-cli": "^11.0.0",
|
"postcss-cli": "^11.0.0",
|
||||||
"webpack": "^5.88.2",
|
"webpack": "^5.88.2",
|
||||||
|
|||||||
+1
-1
@@ -1,3 +1,3 @@
|
|||||||
// This is a generated file. Don't edit.
|
// This is a generated file. Don't edit.
|
||||||
|
|
||||||
export const PACKAGE_VERSION = "0.24.0";
|
export const PACKAGE_VERSION = "0.24.1";
|
||||||
|
|||||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1 +1 @@
|
|||||||
{"version":3,"file":"316.prod.js","mappings":"qkNASA,MAAMA,UAA6BC,IAAAA,cACjCC,WAAAA,CAAYC,GACVC,MAAMD,GAENE,KAAKC,UAAY,GACjB,MAAM,kBAAEC,GAAsBJ,EAAMK,KACpCC,EAAeC,SAAQC,IACPA,EAAGC,KAAKC,MAAM,KACtBH,SAAQI,IACZT,KAAKC,UAAUS,KAAK,CAClBH,KAAME,EAAKE,OACXC,KAAMN,EAAGM,KACTC,MAAMC,EAAAA,EAAAA,IAAUR,EAAGM,MACnBG,KAAMb,EAAkBI,EAAGM,KAAM,CAACI,KAAM,YACxC,GACF,IAGJhB,KAAKC,UAAUgB,MAAK,CAACC,EAAGC,IAAMD,EAAEH,KAAKK,cAAcD,EAAEJ,OACvD,CAEAM,iBAAAA,GACMrB,KAAKsB,aACPtB,KAAKsB,YAAYC,eAAe,CAACC,MAAO,SAAUC,OAAQ,WAE9D,CAEAC,MAAAA,GACE,MAAMzB,EAAY,GACZ0B,EAAW3B,KAAKF,MAAM6B,UAAY,KAYxC,OAXA3B,KAAKC,UAAUI,SAAQ,CAACuB,EAAGC,KACzB,MAAMC,EAASF,EAAEhB,MAAQe,EAAW,YAAc,GAClD1B,EAAUS,KAAKd,IAAAA,cAAA,MAAImC,UAAWD,EAAOE,IAAKH,EACxCI,IAAKA,IAAYL,EAAEhB,MAAQe,IAAW3B,KAAKsB,YAAcW,EAAG,EAC5DC,QAASC,GAAKnC,KAAKF,MAAMsC,SAASR,EAAEhB,KAAMgB,EAAErB,OAC5CX,IAAAA,cAAA,QAAMmC,UAAU,gBAAgBH,EAAEf,MAClCjB,IAAAA,cAAA,QAAMmC,UAAU,WAAU,IAAOH,EAAEb,MACnCnB,IAAAA,cAAA,QAAMmC,UAAU,aAAY,KAAQH,EAAErB,OAClC,IAINX,IAAAA,cAAA,OAAKmC,UAAU,mBAAmBD,MAAO,CAACO,OAAQ,UAChDzC,IAAAA,cAAA,MAAImC,UAAU,0BACX9B,GAIT,EAGF,WAAeqC,EAAAA,EAAAA,YAAW3C,E","sources":["webpack://tinode-webapp/./src/widgets/phone-country-selector.jsx"],"sourcesContent":["// Selector for country dialing code.\n\nimport React from 'react';\nimport { injectIntl } from 'react-intl';\n\nimport * as dcodes from '../dcodes.json';\n\nimport { flagEmoji } from '../lib/strformat';\n\nclass PhoneCountrySelector extends React.PureComponent {\n constructor(props) {\n super(props);\n\n this.countries = [];\n const { formatDisplayName } = props.intl;\n dcodes.default.forEach(dc => {\n const parts = dc.dial.split(',');\n parts.forEach(part => {\n this.countries.push({\n dial: part.trim(),\n code: dc.code,\n flag: flagEmoji(dc.code),\n name: formatDisplayName(dc.code, {type: 'region'})\n });\n });\n });\n\n this.countries.sort((a, b) => a.name.localeCompare(b.name));\n }\n\n componentDidMount() {\n if (this.selectedRef) {\n this.selectedRef.scrollIntoView({block: 'center', inline: 'nearest'});\n }\n }\n\n render() {\n const countries = [];\n const selected = this.props.selected || 'US';\n this.countries.forEach((c, idx) => {\n const style = (c.code == selected ? 'selected ' : '');\n countries.push(<li className={style} key={idx}\n ref={ref => {if (c.code == selected) {this.selectedRef = ref}}}\n onClick={_ => this.props.onSubmit(c.code, c.dial)}>\n <span className=\"country-flag\">{c.flag}</span>\n <span className=\"country\"> {c.name}</span>\n <span className=\"dial-code\"> +{c.dial}</span>\n </li>);\n });\n\n return (\n <div className=\"scrollable-panel\" style={{height: '30rem'}}>\n <ul className=\"phone-country-selector\">\n {countries}\n </ul>\n </div>\n );\n }\n}\n\nexport default injectIntl(PhoneCountrySelector);\n"],"names":["PhoneCountrySelector","React","constructor","props","super","this","countries","formatDisplayName","intl","dcodes","forEach","dc","dial","split","part","push","trim","code","flag","flagEmoji","name","type","sort","a","b","localeCompare","componentDidMount","selectedRef","scrollIntoView","block","inline","render","selected","c","idx","style","className","key","ref","onClick","_","onSubmit","height","injectIntl"],"sourceRoot":""}
|
{"version":3,"file":"316.prod.js","mappings":"qkNASA,MAAMA,UAA6BC,IAAAA,cACjCC,WAAAA,CAAYC,GACVC,MAAMD,GAENE,KAAKC,UAAY,GACjB,MAAM,kBAAEC,GAAsBJ,EAAMK,KACpCC,EAAeC,QAAQC,IACPA,EAAGC,KAAKC,MAAM,KACtBH,QAAQI,IACZT,KAAKC,UAAUS,KAAK,CAClBH,KAAME,EAAKE,OACXC,KAAMN,EAAGM,KACTC,MAAMC,EAAAA,EAAAA,IAAUR,EAAGM,MACnBG,KAAMb,EAAkBI,EAAGM,KAAM,CAACI,KAAM,iBAK9ChB,KAAKC,UAAUgB,KAAK,CAACC,EAAGC,IAAMD,EAAEH,KAAKK,cAAcD,EAAEJ,MACvD,CAEAM,iBAAAA,GACMrB,KAAKsB,aACPtB,KAAKsB,YAAYC,eAAe,CAACC,MAAO,SAAUC,OAAQ,WAE9D,CAEAC,MAAAA,GACE,MAAMzB,EAAY,GACZ0B,EAAW3B,KAAKF,MAAM6B,UAAY,KAYxC,OAXA3B,KAAKC,UAAUI,QAAQ,CAACuB,EAAGC,KACzB,MAAMC,EAASF,EAAEhB,MAAQe,EAAW,YAAc,GAClD1B,EAAUS,KAAKd,IAAAA,cAAA,MAAImC,UAAWD,EAAOE,IAAKH,EACxCI,IAAKA,IAAYL,EAAEhB,MAAQe,IAAW3B,KAAKsB,YAAcW,IACzDC,QAASC,GAAKnC,KAAKF,MAAMsC,SAASR,EAAEhB,KAAMgB,EAAErB,OAC5CX,IAAAA,cAAA,QAAMmC,UAAU,gBAAgBH,EAAEf,MAClCjB,IAAAA,cAAA,QAAMmC,UAAU,WAAU,IAAOH,EAAEb,MACnCnB,IAAAA,cAAA,QAAMmC,UAAU,aAAY,KAAQH,EAAErB,UAKxCX,IAAAA,cAAA,OAAKmC,UAAU,mBAAmBD,MAAO,CAACO,OAAQ,UAChDzC,IAAAA,cAAA,MAAImC,UAAU,0BACX9B,GAIT,EAGF,WAAeqC,EAAAA,EAAAA,YAAW3C,E","sources":["webpack://tinode-webapp/./src/widgets/phone-country-selector.jsx"],"sourcesContent":["// Selector for country dialing code.\n\nimport React from 'react';\nimport { injectIntl } from 'react-intl';\n\nimport * as dcodes from '../dcodes.json';\n\nimport { flagEmoji } from '../lib/strformat';\n\nclass PhoneCountrySelector extends React.PureComponent {\n constructor(props) {\n super(props);\n\n this.countries = [];\n const { formatDisplayName } = props.intl;\n dcodes.default.forEach(dc => {\n const parts = dc.dial.split(',');\n parts.forEach(part => {\n this.countries.push({\n dial: part.trim(),\n code: dc.code,\n flag: flagEmoji(dc.code),\n name: formatDisplayName(dc.code, {type: 'region'})\n });\n });\n });\n\n this.countries.sort((a, b) => a.name.localeCompare(b.name));\n }\n\n componentDidMount() {\n if (this.selectedRef) {\n this.selectedRef.scrollIntoView({block: 'center', inline: 'nearest'});\n }\n }\n\n render() {\n const countries = [];\n const selected = this.props.selected || 'US';\n this.countries.forEach((c, idx) => {\n const style = (c.code == selected ? 'selected ' : '');\n countries.push(<li className={style} key={idx}\n ref={ref => {if (c.code == selected) {this.selectedRef = ref}}}\n onClick={_ => this.props.onSubmit(c.code, c.dial)}>\n <span className=\"country-flag\">{c.flag}</span>\n <span className=\"country\"> {c.name}</span>\n <span className=\"dial-code\"> +{c.dial}</span>\n </li>);\n });\n\n return (\n <div className=\"scrollable-panel\" style={{height: '30rem'}}>\n <ul className=\"phone-country-selector\">\n {countries}\n </ul>\n </div>\n );\n }\n}\n\nexport default injectIntl(PhoneCountrySelector);\n"],"names":["PhoneCountrySelector","React","constructor","props","super","this","countries","formatDisplayName","intl","dcodes","forEach","dc","dial","split","part","push","trim","code","flag","flagEmoji","name","type","sort","a","b","localeCompare","componentDidMount","selectedRef","scrollIntoView","block","inline","render","selected","c","idx","style","className","key","ref","onClick","_","onSubmit","height","injectIntl"],"sourceRoot":""}
|
||||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+218
-12
@@ -97,7 +97,7 @@ function isVersionServiceProvider(provider) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const name$q = "@firebase/app";
|
const name$q = "@firebase/app";
|
||||||
const version$1 = "0.11.5";
|
const version$1 = "0.13.2";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @license
|
* @license
|
||||||
@@ -163,12 +163,12 @@ const name$4 = "@firebase/storage-compat";
|
|||||||
|
|
||||||
const name$3 = "@firebase/firestore";
|
const name$3 = "@firebase/firestore";
|
||||||
|
|
||||||
const name$2 = "@firebase/vertexai";
|
const name$2 = "@firebase/ai";
|
||||||
|
|
||||||
const name$1 = "@firebase/firestore-compat";
|
const name$1 = "@firebase/firestore-compat";
|
||||||
|
|
||||||
const name = "firebase";
|
const name = "firebase";
|
||||||
const version = "11.6.1";
|
const version = "11.10.0";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @license
|
* @license
|
||||||
@@ -505,7 +505,7 @@ class FirebaseServerAppImpl extends FirebaseAppImpl {
|
|||||||
// Build configuration parameters for the FirebaseAppImpl base class.
|
// Build configuration parameters for the FirebaseAppImpl base class.
|
||||||
const automaticDataCollectionEnabled = serverConfig.automaticDataCollectionEnabled !== undefined
|
const automaticDataCollectionEnabled = serverConfig.automaticDataCollectionEnabled !== undefined
|
||||||
? serverConfig.automaticDataCollectionEnabled
|
? serverConfig.automaticDataCollectionEnabled
|
||||||
: false;
|
: true;
|
||||||
// Create the FirebaseAppSettings object for the FirebaseAppImp constructor.
|
// Create the FirebaseAppSettings object for the FirebaseAppImp constructor.
|
||||||
const config = {
|
const config = {
|
||||||
name,
|
name,
|
||||||
@@ -616,7 +616,7 @@ function initializeApp(_options, rawConfig = {}) {
|
|||||||
const name = rawConfig;
|
const name = rawConfig;
|
||||||
rawConfig = { name };
|
rawConfig = { name };
|
||||||
}
|
}
|
||||||
const config = Object.assign({ name: DEFAULT_ENTRY_NAME, automaticDataCollectionEnabled: false }, rawConfig);
|
const config = Object.assign({ name: DEFAULT_ENTRY_NAME, automaticDataCollectionEnabled: true }, rawConfig);
|
||||||
const name = config.name;
|
const name = config.name;
|
||||||
if (typeof name !== 'string' || !name) {
|
if (typeof name !== 'string' || !name) {
|
||||||
throw ERROR_FACTORY.create("bad-app-name" /* AppError.BAD_APP_NAME */, {
|
throw ERROR_FACTORY.create("bad-app-name" /* AppError.BAD_APP_NAME */, {
|
||||||
@@ -652,7 +652,7 @@ function initializeServerApp(_options, _serverAppConfig) {
|
|||||||
throw ERROR_FACTORY.create("invalid-server-app-environment" /* AppError.INVALID_SERVER_APP_ENVIRONMENT */);
|
throw ERROR_FACTORY.create("invalid-server-app-environment" /* AppError.INVALID_SERVER_APP_ENVIRONMENT */);
|
||||||
}
|
}
|
||||||
if (_serverAppConfig.automaticDataCollectionEnabled === undefined) {
|
if (_serverAppConfig.automaticDataCollectionEnabled === undefined) {
|
||||||
_serverAppConfig.automaticDataCollectionEnabled = false;
|
_serverAppConfig.automaticDataCollectionEnabled = true;
|
||||||
}
|
}
|
||||||
let appOptions;
|
let appOptions;
|
||||||
if (_isFirebaseApp(_options)) {
|
if (_isFirebaseApp(_options)) {
|
||||||
@@ -1694,7 +1694,7 @@ __webpack_require__.r(__webpack_exports__);
|
|||||||
|
|
||||||
|
|
||||||
const name = "@firebase/installations";
|
const name = "@firebase/installations";
|
||||||
const version = "0.6.13";
|
const version = "0.6.18";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @license
|
* @license
|
||||||
@@ -4133,7 +4133,7 @@ async function messageEventListener(messaging, event) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const name = "@firebase/messaging";
|
const name = "@firebase/messaging";
|
||||||
const version = "0.12.17";
|
const version = "0.12.22";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @license
|
* @license
|
||||||
@@ -4419,6 +4419,7 @@ __webpack_require__.r(__webpack_exports__);
|
|||||||
/* harmony export */ isAdmin: function() { return /* binding */ isAdmin; },
|
/* harmony export */ isAdmin: function() { return /* binding */ isAdmin; },
|
||||||
/* harmony export */ isBrowser: function() { return /* binding */ isBrowser; },
|
/* harmony export */ isBrowser: function() { return /* binding */ isBrowser; },
|
||||||
/* harmony export */ isBrowserExtension: function() { return /* binding */ isBrowserExtension; },
|
/* harmony export */ isBrowserExtension: function() { return /* binding */ isBrowserExtension; },
|
||||||
|
/* harmony export */ isCloudWorkstation: function() { return /* binding */ isCloudWorkstation; },
|
||||||
/* harmony export */ isCloudflareWorker: function() { return /* binding */ isCloudflareWorker; },
|
/* harmony export */ isCloudflareWorker: function() { return /* binding */ isCloudflareWorker; },
|
||||||
/* harmony export */ isElectron: function() { return /* binding */ isElectron; },
|
/* harmony export */ isElectron: function() { return /* binding */ isElectron; },
|
||||||
/* harmony export */ isEmpty: function() { return /* binding */ isEmpty; },
|
/* harmony export */ isEmpty: function() { return /* binding */ isEmpty; },
|
||||||
@@ -4429,6 +4430,7 @@ __webpack_require__.r(__webpack_exports__);
|
|||||||
/* harmony export */ isNodeSdk: function() { return /* binding */ isNodeSdk; },
|
/* harmony export */ isNodeSdk: function() { return /* binding */ isNodeSdk; },
|
||||||
/* harmony export */ isReactNative: function() { return /* binding */ isReactNative; },
|
/* harmony export */ isReactNative: function() { return /* binding */ isReactNative; },
|
||||||
/* harmony export */ isSafari: function() { return /* binding */ isSafari; },
|
/* harmony export */ isSafari: function() { return /* binding */ isSafari; },
|
||||||
|
/* harmony export */ isSafariOrWebkit: function() { return /* binding */ isSafariOrWebkit; },
|
||||||
/* harmony export */ isUWP: function() { return /* binding */ isUWP; },
|
/* harmony export */ isUWP: function() { return /* binding */ isUWP; },
|
||||||
/* harmony export */ isValidFormat: function() { return /* binding */ isValidFormat; },
|
/* harmony export */ isValidFormat: function() { return /* binding */ isValidFormat; },
|
||||||
/* harmony export */ isValidTimestamp: function() { return /* binding */ isValidTimestamp; },
|
/* harmony export */ isValidTimestamp: function() { return /* binding */ isValidTimestamp; },
|
||||||
@@ -4437,6 +4439,7 @@ __webpack_require__.r(__webpack_exports__);
|
|||||||
/* harmony export */ jsonEval: function() { return /* binding */ jsonEval; },
|
/* harmony export */ jsonEval: function() { return /* binding */ jsonEval; },
|
||||||
/* harmony export */ map: function() { return /* binding */ map; },
|
/* harmony export */ map: function() { return /* binding */ map; },
|
||||||
/* harmony export */ ordinal: function() { return /* binding */ ordinal; },
|
/* harmony export */ ordinal: function() { return /* binding */ ordinal; },
|
||||||
|
/* harmony export */ pingServer: function() { return /* binding */ pingServer; },
|
||||||
/* harmony export */ promiseWithTimeout: function() { return /* binding */ promiseWithTimeout; },
|
/* harmony export */ promiseWithTimeout: function() { return /* binding */ promiseWithTimeout; },
|
||||||
/* harmony export */ querystring: function() { return /* binding */ querystring; },
|
/* harmony export */ querystring: function() { return /* binding */ querystring; },
|
||||||
/* harmony export */ querystringDecode: function() { return /* binding */ querystringDecode; },
|
/* harmony export */ querystringDecode: function() { return /* binding */ querystringDecode; },
|
||||||
@@ -4444,6 +4447,7 @@ __webpack_require__.r(__webpack_exports__);
|
|||||||
/* harmony export */ stringLength: function() { return /* binding */ stringLength; },
|
/* harmony export */ stringLength: function() { return /* binding */ stringLength; },
|
||||||
/* harmony export */ stringToByteArray: function() { return /* binding */ stringToByteArray; },
|
/* harmony export */ stringToByteArray: function() { return /* binding */ stringToByteArray; },
|
||||||
/* harmony export */ stringify: function() { return /* binding */ stringify; },
|
/* harmony export */ stringify: function() { return /* binding */ stringify; },
|
||||||
|
/* harmony export */ updateEmulatorBanner: function() { return /* binding */ updateEmulatorBanner; },
|
||||||
/* harmony export */ validateArgCount: function() { return /* binding */ validateArgCount; },
|
/* harmony export */ validateArgCount: function() { return /* binding */ validateArgCount; },
|
||||||
/* harmony export */ validateCallback: function() { return /* binding */ validateCallback; },
|
/* harmony export */ validateCallback: function() { return /* binding */ validateCallback; },
|
||||||
/* harmony export */ validateContextObject: function() { return /* binding */ validateContextObject; },
|
/* harmony export */ validateContextObject: function() { return /* binding */ validateContextObject; },
|
||||||
@@ -5120,6 +5124,53 @@ class Deferred {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @license
|
||||||
|
* Copyright 2025 Google LLC
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
/**
|
||||||
|
* Checks whether host is a cloud workstation or not.
|
||||||
|
* @public
|
||||||
|
*/
|
||||||
|
function isCloudWorkstation(url) {
|
||||||
|
// `isCloudWorkstation` is called without protocol in certain connect*Emulator functions
|
||||||
|
// In HTTP request builders, it's called with the protocol.
|
||||||
|
// If called with protocol prefix, it's a valid URL, so we extract the hostname
|
||||||
|
// If called without, we assume the string is the hostname.
|
||||||
|
try {
|
||||||
|
const host = url.startsWith('http://') || url.startsWith('https://')
|
||||||
|
? new URL(url).hostname
|
||||||
|
: url;
|
||||||
|
return host.endsWith('.cloudworkstations.dev');
|
||||||
|
}
|
||||||
|
catch (_a) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Makes a fetch request to the given server.
|
||||||
|
* Mostly used for forwarding cookies in Firebase Studio.
|
||||||
|
* @public
|
||||||
|
*/
|
||||||
|
async function pingServer(endpoint) {
|
||||||
|
const result = await fetch(endpoint, {
|
||||||
|
credentials: 'include'
|
||||||
|
});
|
||||||
|
return result.ok;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @license
|
* @license
|
||||||
* Copyright 2021 Google LLC
|
* Copyright 2021 Google LLC
|
||||||
@@ -5165,6 +5216,152 @@ function createMockUserToken(token, projectId) {
|
|||||||
signature
|
signature
|
||||||
].join('.');
|
].join('.');
|
||||||
}
|
}
|
||||||
|
const emulatorStatus = {};
|
||||||
|
// Checks whether any products are running on an emulator
|
||||||
|
function getEmulatorSummary() {
|
||||||
|
const summary = {
|
||||||
|
prod: [],
|
||||||
|
emulator: []
|
||||||
|
};
|
||||||
|
for (const key of Object.keys(emulatorStatus)) {
|
||||||
|
if (emulatorStatus[key]) {
|
||||||
|
summary.emulator.push(key);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
summary.prod.push(key);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return summary;
|
||||||
|
}
|
||||||
|
function getOrCreateEl(id) {
|
||||||
|
let parentDiv = document.getElementById(id);
|
||||||
|
let created = false;
|
||||||
|
if (!parentDiv) {
|
||||||
|
parentDiv = document.createElement('div');
|
||||||
|
parentDiv.setAttribute('id', id);
|
||||||
|
created = true;
|
||||||
|
}
|
||||||
|
return { created, element: parentDiv };
|
||||||
|
}
|
||||||
|
let previouslyDismissed = false;
|
||||||
|
/**
|
||||||
|
* Updates Emulator Banner. Primarily used for Firebase Studio
|
||||||
|
* @param name
|
||||||
|
* @param isRunningEmulator
|
||||||
|
* @public
|
||||||
|
*/
|
||||||
|
function updateEmulatorBanner(name, isRunningEmulator) {
|
||||||
|
if (typeof window === 'undefined' ||
|
||||||
|
typeof document === 'undefined' ||
|
||||||
|
!isCloudWorkstation(window.location.host) ||
|
||||||
|
emulatorStatus[name] === isRunningEmulator ||
|
||||||
|
emulatorStatus[name] || // If already set to use emulator, can't go back to prod.
|
||||||
|
previouslyDismissed) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
emulatorStatus[name] = isRunningEmulator;
|
||||||
|
function prefixedId(id) {
|
||||||
|
return `__firebase__banner__${id}`;
|
||||||
|
}
|
||||||
|
const bannerId = '__firebase__banner';
|
||||||
|
const summary = getEmulatorSummary();
|
||||||
|
const showError = summary.prod.length > 0;
|
||||||
|
function tearDown() {
|
||||||
|
const element = document.getElementById(bannerId);
|
||||||
|
if (element) {
|
||||||
|
element.remove();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function setupBannerStyles(bannerEl) {
|
||||||
|
bannerEl.style.display = 'flex';
|
||||||
|
bannerEl.style.background = '#7faaf0';
|
||||||
|
bannerEl.style.position = 'fixed';
|
||||||
|
bannerEl.style.bottom = '5px';
|
||||||
|
bannerEl.style.left = '5px';
|
||||||
|
bannerEl.style.padding = '.5em';
|
||||||
|
bannerEl.style.borderRadius = '5px';
|
||||||
|
bannerEl.style.alignItems = 'center';
|
||||||
|
}
|
||||||
|
function setupIconStyles(prependIcon, iconId) {
|
||||||
|
prependIcon.setAttribute('width', '24');
|
||||||
|
prependIcon.setAttribute('id', iconId);
|
||||||
|
prependIcon.setAttribute('height', '24');
|
||||||
|
prependIcon.setAttribute('viewBox', '0 0 24 24');
|
||||||
|
prependIcon.setAttribute('fill', 'none');
|
||||||
|
prependIcon.style.marginLeft = '-6px';
|
||||||
|
}
|
||||||
|
function setupCloseBtn() {
|
||||||
|
const closeBtn = document.createElement('span');
|
||||||
|
closeBtn.style.cursor = 'pointer';
|
||||||
|
closeBtn.style.marginLeft = '16px';
|
||||||
|
closeBtn.style.fontSize = '24px';
|
||||||
|
closeBtn.innerHTML = ' ×';
|
||||||
|
closeBtn.onclick = () => {
|
||||||
|
previouslyDismissed = true;
|
||||||
|
tearDown();
|
||||||
|
};
|
||||||
|
return closeBtn;
|
||||||
|
}
|
||||||
|
function setupLinkStyles(learnMoreLink, learnMoreId) {
|
||||||
|
learnMoreLink.setAttribute('id', learnMoreId);
|
||||||
|
learnMoreLink.innerText = 'Learn more';
|
||||||
|
learnMoreLink.href =
|
||||||
|
'https://firebase.google.com/docs/studio/preview-apps#preview-backend';
|
||||||
|
learnMoreLink.setAttribute('target', '__blank');
|
||||||
|
learnMoreLink.style.paddingLeft = '5px';
|
||||||
|
learnMoreLink.style.textDecoration = 'underline';
|
||||||
|
}
|
||||||
|
function setupDom() {
|
||||||
|
const banner = getOrCreateEl(bannerId);
|
||||||
|
const firebaseTextId = prefixedId('text');
|
||||||
|
const firebaseText = document.getElementById(firebaseTextId) || document.createElement('span');
|
||||||
|
const learnMoreId = prefixedId('learnmore');
|
||||||
|
const learnMoreLink = document.getElementById(learnMoreId) ||
|
||||||
|
document.createElement('a');
|
||||||
|
const prependIconId = prefixedId('preprendIcon');
|
||||||
|
const prependIcon = document.getElementById(prependIconId) ||
|
||||||
|
document.createElementNS('http://www.w3.org/2000/svg', 'svg');
|
||||||
|
if (banner.created) {
|
||||||
|
// update styles
|
||||||
|
const bannerEl = banner.element;
|
||||||
|
setupBannerStyles(bannerEl);
|
||||||
|
setupLinkStyles(learnMoreLink, learnMoreId);
|
||||||
|
const closeBtn = setupCloseBtn();
|
||||||
|
setupIconStyles(prependIcon, prependIconId);
|
||||||
|
bannerEl.append(prependIcon, firebaseText, learnMoreLink, closeBtn);
|
||||||
|
document.body.appendChild(bannerEl);
|
||||||
|
}
|
||||||
|
if (showError) {
|
||||||
|
firebaseText.innerText = `Preview backend disconnected.`;
|
||||||
|
prependIcon.innerHTML = `<g clip-path="url(#clip0_6013_33858)">
|
||||||
|
<path d="M4.8 17.6L12 5.6L19.2 17.6H4.8ZM6.91667 16.4H17.0833L12 7.93333L6.91667 16.4ZM12 15.6C12.1667 15.6 12.3056 15.5444 12.4167 15.4333C12.5389 15.3111 12.6 15.1667 12.6 15C12.6 14.8333 12.5389 14.6944 12.4167 14.5833C12.3056 14.4611 12.1667 14.4 12 14.4C11.8333 14.4 11.6889 14.4611 11.5667 14.5833C11.4556 14.6944 11.4 14.8333 11.4 15C11.4 15.1667 11.4556 15.3111 11.5667 15.4333C11.6889 15.5444 11.8333 15.6 12 15.6ZM11.4 13.6H12.6V10.4H11.4V13.6Z" fill="#212121"/>
|
||||||
|
</g>
|
||||||
|
<defs>
|
||||||
|
<clipPath id="clip0_6013_33858">
|
||||||
|
<rect width="24" height="24" fill="white"/>
|
||||||
|
</clipPath>
|
||||||
|
</defs>`;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
prependIcon.innerHTML = `<g clip-path="url(#clip0_6083_34804)">
|
||||||
|
<path d="M11.4 15.2H12.6V11.2H11.4V15.2ZM12 10C12.1667 10 12.3056 9.94444 12.4167 9.83333C12.5389 9.71111 12.6 9.56667 12.6 9.4C12.6 9.23333 12.5389 9.09444 12.4167 8.98333C12.3056 8.86111 12.1667 8.8 12 8.8C11.8333 8.8 11.6889 8.86111 11.5667 8.98333C11.4556 9.09444 11.4 9.23333 11.4 9.4C11.4 9.56667 11.4556 9.71111 11.5667 9.83333C11.6889 9.94444 11.8333 10 12 10ZM12 18.4C11.1222 18.4 10.2944 18.2333 9.51667 17.9C8.73889 17.5667 8.05556 17.1111 7.46667 16.5333C6.88889 15.9444 6.43333 15.2611 6.1 14.4833C5.76667 13.7056 5.6 12.8778 5.6 12C5.6 11.1111 5.76667 10.2833 6.1 9.51667C6.43333 8.73889 6.88889 8.06111 7.46667 7.48333C8.05556 6.89444 8.73889 6.43333 9.51667 6.1C10.2944 5.76667 11.1222 5.6 12 5.6C12.8889 5.6 13.7167 5.76667 14.4833 6.1C15.2611 6.43333 15.9389 6.89444 16.5167 7.48333C17.1056 8.06111 17.5667 8.73889 17.9 9.51667C18.2333 10.2833 18.4 11.1111 18.4 12C18.4 12.8778 18.2333 13.7056 17.9 14.4833C17.5667 15.2611 17.1056 15.9444 16.5167 16.5333C15.9389 17.1111 15.2611 17.5667 14.4833 17.9C13.7167 18.2333 12.8889 18.4 12 18.4ZM12 17.2C13.4444 17.2 14.6722 16.6944 15.6833 15.6833C16.6944 14.6722 17.2 13.4444 17.2 12C17.2 10.5556 16.6944 9.32778 15.6833 8.31667C14.6722 7.30555 13.4444 6.8 12 6.8C10.5556 6.8 9.32778 7.30555 8.31667 8.31667C7.30556 9.32778 6.8 10.5556 6.8 12C6.8 13.4444 7.30556 14.6722 8.31667 15.6833C9.32778 16.6944 10.5556 17.2 12 17.2Z" fill="#212121"/>
|
||||||
|
</g>
|
||||||
|
<defs>
|
||||||
|
<clipPath id="clip0_6083_34804">
|
||||||
|
<rect width="24" height="24" fill="white"/>
|
||||||
|
</clipPath>
|
||||||
|
</defs>`;
|
||||||
|
firebaseText.innerText = 'Preview backend running in this workspace.';
|
||||||
|
}
|
||||||
|
firebaseText.setAttribute('id', firebaseTextId);
|
||||||
|
}
|
||||||
|
if (document.readyState === 'loading') {
|
||||||
|
window.addEventListener('DOMContentLoaded', setupDom);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
setupDom();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @license
|
* @license
|
||||||
@@ -5299,6 +5496,14 @@ function isSafari() {
|
|||||||
navigator.userAgent.includes('Safari') &&
|
navigator.userAgent.includes('Safari') &&
|
||||||
!navigator.userAgent.includes('Chrome'));
|
!navigator.userAgent.includes('Chrome'));
|
||||||
}
|
}
|
||||||
|
/** Returns true if we are running in Safari or WebKit */
|
||||||
|
function isSafariOrWebkit() {
|
||||||
|
return (!isNode() &&
|
||||||
|
!!navigator.userAgent &&
|
||||||
|
(navigator.userAgent.includes('Safari') ||
|
||||||
|
navigator.userAgent.includes('WebKit')) &&
|
||||||
|
!navigator.userAgent.includes('Chrome'));
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* This method checks if indexedDB is supported by current browser/service worker context
|
* This method checks if indexedDB is supported by current browser/service worker context
|
||||||
* @return true if indexedDB is supported by current browser/service worker context
|
* @return true if indexedDB is supported by current browser/service worker context
|
||||||
@@ -6615,7 +6820,7 @@ __webpack_require__.r(__webpack_exports__);
|
|||||||
|
|
||||||
|
|
||||||
var name = "firebase";
|
var name = "firebase";
|
||||||
var version = "11.6.1";
|
var version = "11.10.0";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @license
|
* @license
|
||||||
@@ -6985,7 +7190,8 @@ const unwrap = (value) => reverseTransformCache.get(value);
|
|||||||
|
|
||||||
|
|
||||||
var m = __webpack_require__(/*! react-dom */ "react-dom");
|
var m = __webpack_require__(/*! react-dom */ "react-dom");
|
||||||
if (false) {} else {
|
if (false) // removed by dead control flow
|
||||||
|
{} else {
|
||||||
var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
||||||
exports.createRoot = function(c, o) {
|
exports.createRoot = function(c, o) {
|
||||||
i.usingClientEntryPoint = true;
|
i.usingClientEntryPoint = true;
|
||||||
@@ -8449,7 +8655,7 @@ __webpack_require__.r(__webpack_exports__);
|
|||||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||||
/* harmony export */ PACKAGE_VERSION: function() { return /* binding */ PACKAGE_VERSION; }
|
/* harmony export */ PACKAGE_VERSION: function() { return /* binding */ PACKAGE_VERSION; }
|
||||||
/* harmony export */ });
|
/* harmony export */ });
|
||||||
const PACKAGE_VERSION = "0.24.0";
|
const PACKAGE_VERSION = "0.24.1";
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
@@ -22158,7 +22364,7 @@ module.exports = tinode;
|
|||||||
/******/ __webpack_require__.r(ns);
|
/******/ __webpack_require__.r(ns);
|
||||||
/******/ var def = {};
|
/******/ var def = {};
|
||||||
/******/ leafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];
|
/******/ leafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];
|
||||||
/******/ for(var current = mode & 2 && value; typeof current == 'object' && !~leafPrototypes.indexOf(current); current = getProto(current)) {
|
/******/ for(var current = mode & 2 && value; (typeof current == 'object' || typeof current == 'function') && !~leafPrototypes.indexOf(current); current = getProto(current)) {
|
||||||
/******/ Object.getOwnPropertyNames(current).forEach(function(key) { def[key] = function() { return value[key]; }; });
|
/******/ Object.getOwnPropertyNames(current).forEach(function(key) { def[key] = function() { return value[key]; }; });
|
||||||
/******/ }
|
/******/ }
|
||||||
/******/ def['default'] = function() { return value; };
|
/******/ def['default'] = function() { return value; };
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
|||||||
{"version":3,"file":"src_widgets_phone-country-selector_jsx.dev.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAE0B;AACc;AAEC;AAEI;AAE7C,MAAMI,oBAAoB,SAASJ,4DAAmB,CAAC;EACrDM,WAAWA,CAACC,KAAK,EAAE;IACjB,KAAK,CAACA,KAAK,CAAC;IAEZ,IAAI,CAACC,SAAS,GAAG,EAAE;IACnB,MAAM;MAAEC;IAAkB,CAAC,GAAGF,KAAK,CAACG,IAAI;IACxCR,yCAAc,CAACU,OAAO,CAACC,EAAE,IAAI;MAC3B,MAAMC,KAAK,GAAGD,EAAE,CAACE,IAAI,CAACC,KAAK,CAAC,GAAG,CAAC;MAChCF,KAAK,CAACF,OAAO,CAACK,IAAI,IAAI;QACpB,IAAI,CAACT,SAAS,CAACU,IAAI,CAAC;UAClBH,IAAI,EAAEE,IAAI,CAACE,IAAI,CAAC,CAAC;UACjBC,IAAI,EAAEP,EAAE,CAACO,IAAI;UACbC,IAAI,EAAElB,yDAAS,CAACU,EAAE,CAACO,IAAI,CAAC;UACxBE,IAAI,EAAEb,iBAAiB,CAACI,EAAE,CAACO,IAAI,EAAE;YAACG,IAAI,EAAE;UAAQ,CAAC;QACnD,CAAC,CAAC;MACJ,CAAC,CAAC;IACJ,CAAC,CAAC;IAEF,IAAI,CAACf,SAAS,CAACgB,IAAI,CAAC,CAACC,CAAC,EAAEC,CAAC,KAAKD,CAAC,CAACH,IAAI,CAACK,aAAa,CAACD,CAAC,CAACJ,IAAI,CAAC,CAAC;EAC7D;EAEAM,iBAAiBA,CAAA,EAAG;IAClB,IAAI,IAAI,CAACC,WAAW,EAAE;MACpB,IAAI,CAACA,WAAW,CAACC,cAAc,CAAC;QAACC,KAAK,EAAE,QAAQ;QAAEC,MAAM,EAAE;MAAS,CAAC,CAAC;IACvE;EACF;EAEAC,MAAMA,CAAA,EAAG;IACP,MAAMzB,SAAS,GAAG,EAAE;IACpB,MAAM0B,QAAQ,GAAG,IAAI,CAAC3B,KAAK,CAAC2B,QAAQ,IAAI,IAAI;IAC5C,IAAI,CAAC1B,SAAS,CAACI,OAAO,CAAC,CAACuB,CAAC,EAAEC,GAAG,KAAK;MACjC,MAAMC,KAAK,GAAIF,CAAC,CAACf,IAAI,IAAIc,QAAQ,GAAG,WAAW,GAAG,EAAG;MACrD1B,SAAS,CAACU,IAAI,CAAClB,0DAAA;QAAIuC,SAAS,EAAEF,KAAM;QAACG,GAAG,EAAEJ,GAAI;QAC5CK,GAAG,EAAEA,GAAG,IAAI;UAAC,IAAIN,CAAC,CAACf,IAAI,IAAIc,QAAQ,EAAE;YAAC,IAAI,CAACL,WAAW,GAAGY,GAAG;UAAA;QAAC,CAAE;QAC/DC,OAAO,EAAEC,CAAC,IAAI,IAAI,CAACpC,KAAK,CAACqC,QAAQ,CAACT,CAAC,CAACf,IAAI,EAAEe,CAAC,CAACpB,IAAI;MAAE,GAClDf,0DAAA;QAAMuC,SAAS,EAAC;MAAc,GAAEJ,CAAC,CAACd,IAAW,CAAC,EAC9CrB,0DAAA;QAAMuC,SAAS,EAAC;MAAS,GAAC,MAAM,EAACJ,CAAC,CAACb,IAAW,CAAC,EAC/CtB,0DAAA;QAAMuC,SAAS,EAAC;MAAW,GAAC,OAAO,EAACJ,CAAC,CAACpB,IAAW,CAC/C,CAAC,CAAC;IACR,CAAC,CAAC;IAEF,OACEf,0DAAA;MAAKuC,SAAS,EAAC,kBAAkB;MAACF,KAAK,EAAE;QAACQ,MAAM,EAAE;MAAO;IAAE,GACzD7C,0DAAA;MAAIuC,SAAS,EAAC;IAAwB,GACnC/B,SACC,CACD,CAAC;EAEV;AACF;AAEA,+DAAeP,sDAAU,CAACG,oBAAoB,CAAC","sources":["webpack://tinode-webapp/./src/widgets/phone-country-selector.jsx"],"sourcesContent":["// Selector for country dialing code.\n\nimport React from 'react';\nimport { injectIntl } from 'react-intl';\n\nimport * as dcodes from '../dcodes.json';\n\nimport { flagEmoji } from '../lib/strformat';\n\nclass PhoneCountrySelector extends React.PureComponent {\n constructor(props) {\n super(props);\n\n this.countries = [];\n const { formatDisplayName } = props.intl;\n dcodes.default.forEach(dc => {\n const parts = dc.dial.split(',');\n parts.forEach(part => {\n this.countries.push({\n dial: part.trim(),\n code: dc.code,\n flag: flagEmoji(dc.code),\n name: formatDisplayName(dc.code, {type: 'region'})\n });\n });\n });\n\n this.countries.sort((a, b) => a.name.localeCompare(b.name));\n }\n\n componentDidMount() {\n if (this.selectedRef) {\n this.selectedRef.scrollIntoView({block: 'center', inline: 'nearest'});\n }\n }\n\n render() {\n const countries = [];\n const selected = this.props.selected || 'US';\n this.countries.forEach((c, idx) => {\n const style = (c.code == selected ? 'selected ' : '');\n countries.push(<li className={style} key={idx}\n ref={ref => {if (c.code == selected) {this.selectedRef = ref}}}\n onClick={_ => this.props.onSubmit(c.code, c.dial)}>\n <span className=\"country-flag\">{c.flag}</span>\n <span className=\"country\"> {c.name}</span>\n <span className=\"dial-code\"> +{c.dial}</span>\n </li>);\n });\n\n return (\n <div className=\"scrollable-panel\" style={{height: '30rem'}}>\n <ul className=\"phone-country-selector\">\n {countries}\n </ul>\n </div>\n );\n }\n}\n\nexport default injectIntl(PhoneCountrySelector);\n"],"names":["React","injectIntl","dcodes","flagEmoji","PhoneCountrySelector","PureComponent","constructor","props","countries","formatDisplayName","intl","default","forEach","dc","parts","dial","split","part","push","trim","code","flag","name","type","sort","a","b","localeCompare","componentDidMount","selectedRef","scrollIntoView","block","inline","render","selected","c","idx","style","createElement","className","key","ref","onClick","_","onSubmit","height"],"sourceRoot":""}
|
{"version":3,"file":"src_widgets_phone-country-selector_jsx.dev.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAE0B;AACc;AAEC;AAEI;AAE7C,MAAMI,oBAAoB,SAASJ,4DAAmB,CAAC;EACrDM,WAAWA,CAACC,KAAK,EAAE;IACjB,KAAK,CAACA,KAAK,CAAC;IAEZ,IAAI,CAACC,SAAS,GAAG,EAAE;IACnB,MAAM;MAAEC;IAAkB,CAAC,GAAGF,KAAK,CAACG,IAAI;IACxCR,yCAAc,CAACU,OAAO,CAACC,EAAE,IAAI;MAC3B,MAAMC,KAAK,GAAGD,EAAE,CAACE,IAAI,CAACC,KAAK,CAAC,GAAG,CAAC;MAChCF,KAAK,CAACF,OAAO,CAACK,IAAI,IAAI;QACpB,IAAI,CAACT,SAAS,CAACU,IAAI,CAAC;UAClBH,IAAI,EAAEE,IAAI,CAACE,IAAI,CAAC,CAAC;UACjBC,IAAI,EAAEP,EAAE,CAACO,IAAI;UACbC,IAAI,EAAElB,yDAAS,CAACU,EAAE,CAACO,IAAI,CAAC;UACxBE,IAAI,EAAEb,iBAAiB,CAACI,EAAE,CAACO,IAAI,EAAE;YAACG,IAAI,EAAE;UAAQ,CAAC;QACnD,CAAC,CAAC;MACJ,CAAC,CAAC;IACJ,CAAC,CAAC;IAEF,IAAI,CAACf,SAAS,CAACgB,IAAI,CAAC,CAACC,CAAC,EAAEC,CAAC,KAAKD,CAAC,CAACH,IAAI,CAACK,aAAa,CAACD,CAAC,CAACJ,IAAI,CAAC,CAAC;EAC7D;EAEAM,iBAAiBA,CAAA,EAAG;IAClB,IAAI,IAAI,CAACC,WAAW,EAAE;MACpB,IAAI,CAACA,WAAW,CAACC,cAAc,CAAC;QAACC,KAAK,EAAE,QAAQ;QAAEC,MAAM,EAAE;MAAS,CAAC,CAAC;IACvE;EACF;EAEAC,MAAMA,CAAA,EAAG;IACP,MAAMzB,SAAS,GAAG,EAAE;IACpB,MAAM0B,QAAQ,GAAG,IAAI,CAAC3B,KAAK,CAAC2B,QAAQ,IAAI,IAAI;IAC5C,IAAI,CAAC1B,SAAS,CAACI,OAAO,CAAC,CAACuB,CAAC,EAAEC,GAAG,KAAK;MACjC,MAAMC,KAAK,GAAIF,CAAC,CAACf,IAAI,IAAIc,QAAQ,GAAG,WAAW,GAAG,EAAG;MACrD1B,SAAS,CAACU,IAAI,CAAClB,0DAAA;QAAIuC,SAAS,EAAEF,KAAM;QAACG,GAAG,EAAEJ,GAAI;QAC5CK,GAAG,EAAEA,GAAG,IAAI;UAAC,IAAIN,CAAC,CAACf,IAAI,IAAIc,QAAQ,EAAE;YAAC,IAAI,CAACL,WAAW,GAAGY,GAAG;UAAA;QAAC,CAAE;QAC/DC,OAAO,EAAEC,CAAC,IAAI,IAAI,CAACpC,KAAK,CAACqC,QAAQ,CAACT,CAAC,CAACf,IAAI,EAAEe,CAAC,CAACpB,IAAI;MAAE,GAClDf,0DAAA;QAAMuC,SAAS,EAAC;MAAc,GAAEJ,CAAC,CAACd,IAAW,CAAC,EAC9CrB,0DAAA;QAAMuC,SAAS,EAAC;MAAS,GAAC,MAAM,EAACJ,CAAC,CAACb,IAAW,CAAC,EAC/CtB,0DAAA;QAAMuC,SAAS,EAAC;MAAW,GAAC,OAAO,EAACJ,CAAC,CAACpB,IAAW,CAC/C,CAAC,CAAC;IACR,CAAC,CAAC;IAEF,OACEf,0DAAA;MAAKuC,SAAS,EAAC,kBAAkB;MAACF,KAAK,EAAE;QAACQ,MAAM,EAAE;MAAO;IAAE,GACzD7C,0DAAA;MAAIuC,SAAS,EAAC;IAAwB,GACnC/B,SACC,CACD,CAAC;EAEV;AACF;AAEA,+DAAeP,sDAAU,CAACG,oBAAoB,CAAC,E","sources":["webpack://tinode-webapp/./src/widgets/phone-country-selector.jsx"],"sourcesContent":["// Selector for country dialing code.\n\nimport React from 'react';\nimport { injectIntl } from 'react-intl';\n\nimport * as dcodes from '../dcodes.json';\n\nimport { flagEmoji } from '../lib/strformat';\n\nclass PhoneCountrySelector extends React.PureComponent {\n constructor(props) {\n super(props);\n\n this.countries = [];\n const { formatDisplayName } = props.intl;\n dcodes.default.forEach(dc => {\n const parts = dc.dial.split(',');\n parts.forEach(part => {\n this.countries.push({\n dial: part.trim(),\n code: dc.code,\n flag: flagEmoji(dc.code),\n name: formatDisplayName(dc.code, {type: 'region'})\n });\n });\n });\n\n this.countries.sort((a, b) => a.name.localeCompare(b.name));\n }\n\n componentDidMount() {\n if (this.selectedRef) {\n this.selectedRef.scrollIntoView({block: 'center', inline: 'nearest'});\n }\n }\n\n render() {\n const countries = [];\n const selected = this.props.selected || 'US';\n this.countries.forEach((c, idx) => {\n const style = (c.code == selected ? 'selected ' : '');\n countries.push(<li className={style} key={idx}\n ref={ref => {if (c.code == selected) {this.selectedRef = ref}}}\n onClick={_ => this.props.onSubmit(c.code, c.dial)}>\n <span className=\"country-flag\">{c.flag}</span>\n <span className=\"country\"> {c.name}</span>\n <span className=\"dial-code\"> +{c.dial}</span>\n </li>);\n });\n\n return (\n <div className=\"scrollable-panel\" style={{height: '30rem'}}>\n <ul className=\"phone-country-selector\">\n {countries}\n </ul>\n </div>\n );\n }\n}\n\nexport default injectIntl(PhoneCountrySelector);\n"],"names":["React","injectIntl","dcodes","flagEmoji","PhoneCountrySelector","PureComponent","constructor","props","countries","formatDisplayName","intl","default","forEach","dc","parts","dial","split","part","push","trim","code","flag","name","type","sort","a","b","localeCompare","componentDidMount","selectedRef","scrollIntoView","block","inline","render","selected","c","idx","style","createElement","className","key","ref","onClick","_","onSubmit","height"],"sourceRoot":""}
|
||||||
+1
-1
@@ -5378,7 +5378,7 @@ __webpack_require__.r(__webpack_exports__);
|
|||||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||||
/* harmony export */ PACKAGE_VERSION: () => (/* binding */ PACKAGE_VERSION)
|
/* harmony export */ PACKAGE_VERSION: () => (/* binding */ PACKAGE_VERSION)
|
||||||
/* harmony export */ });
|
/* harmony export */ });
|
||||||
const PACKAGE_VERSION = "0.24.0";
|
const PACKAGE_VERSION = "0.24.1";
|
||||||
|
|
||||||
/***/ })
|
/***/ })
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
@@ -7321,7 +7321,8 @@ function fixWebmDuration(blob) {
|
|||||||
readerBlob = readstream.getReader();
|
readerBlob = readstream.getReader();
|
||||||
_b.label = 1;
|
_b.label = 1;
|
||||||
case 1:
|
case 1:
|
||||||
if (false) {}
|
if (false) // removed by dead control flow
|
||||||
|
{}
|
||||||
return [4 /*yield*/, readerBlob.read()];
|
return [4 /*yield*/, readerBlob.read()];
|
||||||
case 2:
|
case 2:
|
||||||
_a = _b.sent(), done = _a.done, value = _a.value;
|
_a = _b.sent(), done = _a.done, value = _a.value;
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,3 +1,3 @@
|
|||||||
// This is a generated file. Don't edit.
|
// This is a generated file. Don't edit.
|
||||||
|
|
||||||
const PACKAGE_VERSION = "0.24.0";
|
const PACKAGE_VERSION = "0.24.1";
|
||||||
|
|||||||
Reference in New Issue
Block a user