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.

1 line
14 KiB

{"version":3,"sources":["node_modules/matrix-react-sdk/lib/async-components/views/dialogs/ImportE2eKeysDialog.js"],"names":["Object","defineProperty","exports","value","_promise2","_interopRequireDefault","_react2","_propTypes2","_createReactClass2","_matrixJsSdk","MegolmExportEncryption","obj","__esModule","newObj","key","prototype","hasOwnProperty","call","default","_interopRequireWildcard","_index2","_languageHandler","displayName","propTypes","matrixClient","instanceOf","MatrixClient","isRequired","onFinished","func","getInitialState","enableSubmit","phase","errStr","componentWillMount","this","_unmounted","componentWillUnmount","_onFormChange","ev","files","refs","file","setState","passphrase","length","_onFormSubmit","preventDefault","_startImport","_this","resolve","reject","reader","FileReader","onload","e","target","result","onerror","readAsArrayBuffer","readFileAsArrayBuffer","then","arrayBuffer","decryptMegolmKeyFile","keys","props","importRoomKeys","JSON","parse","catch","console","error","msg","friendlyText","_t","_onCancelClick","render","BaseDialog","getComponent","disableForm","state","createElement","className","title","onSubmit","htmlFor","ref","id","type","autoFocus","onChange","disabled","size","onClick","module"],"mappings":"4FAEAA,OAAOC,eAAeC,EAAS,aAAc,CACzCC,OAAO,IAGX,IAEIC,EAAYC,EAFD,EAAQ,KAMnBC,EAAUD,EAFD,EAAQ,IAMjBE,EAAcF,EAFD,EAAQ,IAMrBG,EAAqBH,EAFD,EAAQ,KAI5BI,EAAe,EAAQ,IAIvBC,EAQJ,SAAiCC,GAAO,GAAIA,GAAOA,EAAIC,WAAc,OAAOD,EAAc,IAAIE,EAAS,GAAI,GAAW,MAAPF,EAAe,IAAK,IAAIG,KAAOH,EAAWX,OAAOe,UAAUC,eAAeC,KAAKN,EAAKG,KAAMD,EAAOC,GAAOH,EAAIG,IAAgC,OAAtBD,EAAOK,QAAUP,EAAYE,EARrOM,CAFC,EAAQ,MAMlCC,EAAUf,EAFD,EAAQ,IAIjBgB,EAAmB,EAAQ,GAI/B,SAAShB,EAAuBM,GAAO,OAAOA,GAAOA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