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

{"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","_passphraseField","current","validate","allowEmpty","valid","focus","focused","passPhrase","passPhraseConfirm","passPhraseValid","result","target","value","createRef","cli","SettingsStore","getValue","doesServerSupportUnstableFeature","_createBackup","_renderPhasePassPhrase","DialogButtons","sdk","onSubmit","_onPassPhraseNextClick","_t","b","sub","className","onChange","_onPassPhraseChange","minScore","onValidate","_onPassPhraseValidate","fieldRef","autoFocus","label","_td","labelEnterPassword","labelStrongPassword","labelAllowedButUnsafe","primaryButton","onPrimaryButtonClick","hasCancel","disabled","kind","onClick","_onSkipPassPhraseClick","_renderPhasePassPhraseConfirm","AccessibleButton","matchText","changeText","startsWith","passPhraseMatch","element","_onSetAgainClick","_onPassPhraseConfirmNextClick","_onPassPhraseConfirmChange","placeholder","_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","setTimeout","revoke","file","revokeObjectURL","remove","auto_bom","String","fromCharCode","name","no_auto_bom","object_url","filesaver","force","dispatch_all","event_types","event","i","concat","length","listener","call","dispatch","split","readyState","INIT","createObjectURL","node","href","download","MouseEvent","dispatchEvent","DONE","FileReader","reader","onloadend","url","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,EASJ,MAAMC,UAA8BC,IAAMC,cAKrDC,YAAYC,GACRC,MAAMD,GADS,mCAmCQE,IACvBC,KAAKC,iBAAmBF,IApCT,wBAuCJ,KACQG,YAASF,KAAKC,mBAE7BD,KAAKG,SAAS,CACVC,QAAQ,EACRC,MA5DS,MAgBF,4BAiDA,KACf,MAAMC,EAAO,IAAIC,KAAK,CAACP,KAAKQ,eAAeC,cAAe,CACtDC,KAAM,gCAEVC,IAAUC,OAAON,EAAM,oBAEvBN,KAAKG,SAAS,CACVU,YAAY,EACZR,MAzEa,MAgBF,yBA6DHS,UACZ,MAAM,oBAAEC,GAAwBf,KAAKgB,MAKrC,IAAIC,EAJJjB,KAAKG,SAAS,CACVE,MA/EY,EAgFZa,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,SAAS,CACV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