"use strict";(self.webpackChunkkeybase=self.webpackChunkkeybase||[]).push([[6843],{96843(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>__WEBPACK_DEFAULT_EXPORT__});var react_compiler_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(22024),_constants__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(24953),_common_adapters__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(63044),react__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(67926),_constants_types__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(27129),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(20390);const styles=_common_adapters__WEBPACK_IMPORTED_MODULE_2__.Styles.styleSheetCreate(()=>({container:{alignSelf:"center",maxWidth:_common_adapters__WEBPACK_IMPORTED_MODULE_2__.Styles.isMobile?void 0:560,padding:_common_adapters__WEBPACK_IMPORTED_MODULE_2__.Styles.globalMargins.medium},header:{position:"absolute"},intro:{textAlign:"center"},keyBox:{backgroundColor:_common_adapters__WEBPACK_IMPORTED_MODULE_2__.Styles.globalColors.white,borderColor:_common_adapters__WEBPACK_IMPORTED_MODULE_2__.Styles.globalColors.blueDarker,borderRadius:3,borderStyle:"solid",borderWidth:3,minHeight:100,padding:_common_adapters__WEBPACK_IMPORTED_MODULE_2__.Styles.globalMargins.medium},text:{..._common_adapters__WEBPACK_IMPORTED_MODULE_2__.Styles.globalStyles.fontTerminal,color:_common_adapters__WEBPACK_IMPORTED_MODULE_2__.Styles.globalColors.blueDark}})),__WEBPACK_DEFAULT_EXPORT__=()=>{const $=(0,react_compiler_runtime__WEBPACK_IMPORTED_MODULE_0__.c)(15),[paperkey,setPaperkey]=react__WEBPACK_IMPORTED_MODULE_3__.useState(""),[wroteItDown,setWroteItDown]=react__WEBPACK_IMPORTED_MODULE_3__.useState(!1);let t0;$[0]===Symbol.for("react.memo_cache_sentinel")?(t0=()=>{_constants_types__WEBPACK_IMPORTED_MODULE_4__.Mg.loginPaperKeyRpcListener({customResponseIncomingCallMap:{"keybase.1.loginUi.promptRevokePaperKeys":_temp},incomingCallMap:{"keybase.1.loginUi.displayPaperKeyPhrase":t1=>{const{phrase}=t1;setPaperkey(phrase)}},params:void 0,waitingKey:_constants__WEBPACK_IMPORTED_MODULE_1__.ep}).then(_temp2).catch(_temp3)},$[0]=t0):t0=$[0],_constants__WEBPACK_IMPORTED_MODULE_1__.Ps(t0,500);const clearModals=_constants__WEBPACK_IMPORTED_MODULE_1__.ks(_temp4);let t1,t2,t3;$[1]===Symbol.for("react.memo_cache_sentinel")?(t1=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_common_adapters__WEBPACK_IMPORTED_MODULE_2__.Text,{type:"Header",children:"Paper key generated!"}),t2=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_common_adapters__WEBPACK_IMPORTED_MODULE_2__.Text,{type:"Body",style:styles.intro,children:"Here is your unique paper key, it will allow you to perform important Keybase tasks in the future. This is the only time you'll see this so be sure to write it down."}),$[1]=t1,$[2]=t2):(t1=$[1],t2=$[2]),$[3]!==paperkey?(t3=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_common_adapters__WEBPACK_IMPORTED_MODULE_2__.Box2,{direction:"vertical",style:styles.keyBox,centerChildren:!0,fullWidth:!0,children:paperkey?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_common_adapters__WEBPACK_IMPORTED_MODULE_2__.Text,{center:!0,type:"Header",selectable:!0,style:styles.text,textBreakStrategy:"simple",children:paperkey}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_common_adapters__WEBPACK_IMPORTED_MODULE_2__.ProgressIndicator,{type:"Large"})}),$[3]=paperkey,$[4]=t3):t3=$[4];const t4=!paperkey;let t5;$[5]!==t4||$[6]!==wroteItDown?(t5=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_common_adapters__WEBPACK_IMPORTED_MODULE_2__.Checkbox,{label:"Yes, I wrote this down.",checked:wroteItDown,disabled:t4,onCheck:setWroteItDown}),$[5]=t4,$[6]=wroteItDown,$[7]=t5):t5=$[7];const t6=!wroteItDown;let t7,t8;return $[8]!==clearModals||$[9]!==t6?(t7=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_common_adapters__WEBPACK_IMPORTED_MODULE_2__.WaitingButton,{label:"Done",onClick:clearModals,disabled:t6,waitingKey:_constants__WEBPACK_IMPORTED_MODULE_1__.ep}),$[8]=clearModals,$[9]=t6,$[10]=t7):t7=$[10],$[11]!==t3||$[12]!==t5||$[13]!==t7?(t8=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_common_adapters__WEBPACK_IMPORTED_MODULE_2__.Box2,{direction:"vertical",fullWidth:!0,fullHeight:!0,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)(_common_adapters__WEBPACK_IMPORTED_MODULE_2__.Box2,{direction:"vertical",fullWidth:!0,fullHeight:!0,centerChildren:!0,style:styles.container,gap:"medium",children:[t1,t2,t3,t5,t7]})}),$[11]=t3,$[12]=t5,$[13]=t7,$[14]=t8):t8=$[14],t8};function _temp(_,response){return response.result(!1),!1}function _temp2(){}function _temp3(){}function _temp4(s){return s.dispatch.clearModals}}}]);
//# sourceMappingURL=6843.bundle.js.map