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
11 KiB
1 line
11 KiB
{"version":3,"sources":["webpack:///./node_modules/matrix-react-sdk/src/async-components/views/dialogs/keybackup/CreateKeyBackupDialog.js","webpack:///./node_modules/file-saver/FileSaver.js","webpack:///(webpack)/buildin/amd-define.js","webpack:///(webpack)/buildin/amd-options.js"],"names":["PHASE_PASSPHRASE","PHASE_DONE","CreateKeyBackupDialog","React","PureComponent","constructor","props","super","n","this","_recoveryKeyNode","copyNode","setState","copied","phase","blob","Blob","_keyBackupInfo","recovery_key","type","FileSaver","saveAs","downloaded","async","secureSecretStorage","state","info","error","accessSecretStorage","MatrixClientPeg","get","prepareKeyBackupVersion","createKeyBackupVersion","scheduleAllGroupSessionsForBackup","e","console","deleteKeyBackupVersion","version","onFinished","preventDefault","_setZxcvbnResultTimeout","clearTimeout","Promise","resolve","zxcvbnResult","scorePassword","passPhrase","_passPhraseIsValid","passPhraseConfirm","target","value","setTimeout","cli","SettingsStore","getValue","doesServerSupportUnstableFeature","_createBackup","componentWillUnmount","score","_renderPhasePassPhrase","DialogButtons","sdk","strengthMeter","helpText","_t","suggestions","i","feedback","length","push","key","suggestionBlock","warning","max","onSubmit","_onPassPhraseNextClick","b","sub","className","onChange","_onPassPhraseChange","placeholder","autoFocus","primaryButton","onPrimaryButtonClick","hasCancel","disabled","kind","onClick","_onSkipPassPhraseClick","_renderPhasePassPhraseConfirm","AccessibleButton","matchText","startsWith","passPhraseMatch","element","_onSetAgainClick","_onPassPhraseConfirmNextClick","_onPassPhraseConfirmChange","_renderPhaseShowKey","ref","_collectRecoveryKeyNode","_onCopyClick","_onDownloadClick","_renderPhaseKeepItSafe","introText","s","_onKeepItSafeBackClick","_renderBusyPhase","text","Spinner","_renderPhaseDone","_onDone","_renderPhaseOptOutConfirm","_onSetUpClick","_onCancel","_titleForPhase","render","BaseDialog","content","onCancel","title","includes","PropTypes","func","isRequired","view","navigator","test","userAgent","doc","document","get_URL","URL","webkitURL","save_link","createElementNS","can_use_save_link","is_safari","HTMLElement","safari","is_chrome_ios","throw_outside","ex","setImmediate","revoke","file","revokeObjectURL","remove","auto_bom","String","fromCharCode","name","no_auto_bom","object_url","filesaver","force","dispatch_all","event_types","event","concat","listener","call","dispatch","split","readyState","INIT","createObjectURL","node","href","download","MouseEvent","dispatchEvent","DONE","FileReader","reader","onloadend","url","result","replace","open","location","undefined","readAsDataURL","fs_error","FS_proto","prototype","msSaveOrOpenBlob","abort","WRITING","onwritestart","onprogress","onwrite","onabort","onerror","onwriteend","self","window","module","exports","Error","__webpack_amd_options__"],"mappings":";oRA6BA,MAAMA,EAAmB,EAKnBC,EAAa,EAUJ,MAAMC,UAA8BC,IAAMC,cAKrDC,YAAYC,GACRC,MAAMD,GADS,mCAwCQE,IACvBC,KAAKC,iBAAmBF,IAzCT,wBA4CJ,KACQG,YAASF,KAAKC,mBAE7BD,KAAKG,SAAS,CACVC,QAAQ,EACRC,MAlES,MAiBF,4BAsDA,KACf,MAAMC,EAAO,IAAIC,KAAK,CAACP,KAAKQ,eAAeC,cAAe,CACtDC,KAAM,gCAEVC,IAAUC,OAAON,EAAM,oBAEvBN,KAAKG,SAAS,CACVU,YAAY,EACZR,MA/Ea,MAiBF,yBAkEHS,UACZ,MAAM,oBAAEC,GAAwBf,KAAKgB,MAKrC,IAAIC,EAJJjB,KAAKG,SAAS,CACVE,MArFY,EAsFZa,MAAO,OAGX,IACQH,QACMI,YAAoBL,UACtBG,QAAaG,IAAgBC,MAAMC,wBAC/B,KACA,CAAEP,qBAAqB,IAE3BE,QAAaG,IAAgBC,MAAME,uBAAuBN,KAG9DA,QAAaG,IAAgBC,MAAME,uBAC/BvB,KAAKQ,sBAGPY,IAAgBC,MAAMG,oCAC5BxB,KAAKG,SAAS,CACVE,MAAOb,IAEb,MAAOiC,GACLC,QAAQR,MAAM,4BAA6BO,GAKvCR,GACAG,IAAgBC,MAAMM,uBAAuBV,EAAKW,SAEtD5B,KAAKG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