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
10 KiB

{"version":3,"sources":["webpack:///./node_modules/matrix-react-sdk/src/async-components/views/dialogs/security/CreateKeyBackupDialog.js","webpack:///./node_modules/file-saver/dist/FileSaver.min.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","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","c","a","d","XMLHttpRequest","open","responseType","onload","g","response","onerror","send","status","dispatchEvent","MouseEvent","document","createEvent","initMouseEvent","window","f","self","global","navigator","test","userAgent","HTMLAnchorElement","prototype","h","i","URL","webkitURL","j","createElement","name","download","rel","href","origin","location","createObjectURL","setTimeout","revokeObjectURL","msSaveOrOpenBlob","autoBom","warn","body","innerText","HTMLElement","safari","FileReader","k","onloadend","replace","readAsDataURL","l","m","module","exports"],"mappings":"8QA4BA,MAAMA,EAAmB,EAKnBC,EAAa,EASJ,MAAMC,UAA8BC,IAAMC,cAKrDC,YAAYC,GACRC,MAAMD,GADS,mCAgCQE,IACvBC,KAAKC,iBAAmBF,IAjCT,wBAoCJ,KACQG,YAASF,KAAKC,mBAE7BD,KAAKG,SAAS,CACVC,QAAQ,EACRC,MAzDS,MAgBF,4BA8CA,KACf,MAAMC,EAAO,IAAIC,KAAK,CAACP,KAAKQ,eAAeC,cAAe,CACtDC,KAAM,gCAEVC,IAAUC,OAAON,EAAM,oBAEvBN,KAAKG,SAAS,CACVU,YAAY,EACZR,MAtEa,MAgBF,yBA0DHS,UACZ,MAAM,oBAAEC,GAAwBf,KAAKgB,MAKrC,IAAIC,EAJJjB,KAAKG,SAAS,CACVE,MA5EY,EA6EZa,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,CACVe,MAAOO,OA7FA,qBAkGP,KACRzB,KAAKH,MAAMgC,YAAW,KAnGP,mBAsGT,KACN7B,KAAKH,MAAMgC,YAAW,KAvGP,0BA0GF,KACb7B,KAAKG,SAAS,CAACE,MAxHM,MAaN,yBA8GH,KACZL,KAAKG,SAAS,CAACE,MAAOd,MA/GP,kCA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