"use strict";(self.webpackChunkkeybase=self.webpackChunkkeybase||[]).push([[8422],{8422(__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),_signup_common__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(92195),_constants_recover_password__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(17278),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(20390);const styles=_common_adapters__WEBPACK_IMPORTED_MODULE_2__.Styles.styleSheetCreate(()=>({contents:{flexGrow:1,maxWidth:_common_adapters__WEBPACK_IMPORTED_MODULE_2__.Styles.isMobile?"100%":460,width:"100%"},input:{..._common_adapters__WEBPACK_IMPORTED_MODULE_2__.Styles.globalStyles.fontTerminal,color:_common_adapters__WEBPACK_IMPORTED_MODULE_2__.Styles.globalColors.black,marginTop:10,width:"100%"},inputContainer:{width:"100%"}})),__WEBPACK_DEFAULT_EXPORT__=()=>{const $=(0,react_compiler_runtime__WEBPACK_IMPORTED_MODULE_0__.c)(25),error=(0,_constants_recover_password__WEBPACK_IMPORTED_MODULE_5__.useState)(_temp),cancel=(0,_constants_recover_password__WEBPACK_IMPORTED_MODULE_5__.useState)(_temp2),submitPaperKey=(0,_constants_recover_password__WEBPACK_IMPORTED_MODULE_5__.useState)(_temp3);let t0;$[0]!==cancel?(t0=()=>{cancel?.()},$[0]=cancel,$[1]=t0):t0=$[1];const onBack=t0;let t1;$[2]!==error||$[3]!==onBack?(t1={error,onBack},$[2]=error,$[3]=onBack,$[4]=t1):t1=$[4];const props=t1,[paperKey,setPaperKey]=react__WEBPACK_IMPORTED_MODULE_3__.useState("");let t2;$[5]!==paperKey||$[6]!==submitPaperKey?(t2=()=>{paperKey&&submitPaperKey?.(paperKey)},$[5]=paperKey,$[6]=submitPaperKey,$[7]=t2):t2=$[7];const onSubmit=t2,t3=!paperKey;let t4,t5,t6,t7,t8,t9,t10;return $[8]!==onSubmit||$[9]!==t3?(t4=[{disabled:t3,label:"Continue",onClick:onSubmit,type:"Default",waitingKey:_constants__WEBPACK_IMPORTED_MODULE_1__.Et}],$[8]=onSubmit,$[9]=t3,$[10]=t4):t4=$[10],$[11]===Symbol.for("react.memo_cache_sentinel")?(t5=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_common_adapters__WEBPACK_IMPORTED_MODULE_2__.Box2,{direction:"vertical",gap:"tiny",centerChildren:!0,gapEnd:!0,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_common_adapters__WEBPACK_IMPORTED_MODULE_2__.Icon,{type:"icon-paper-key-96"})}),$[11]=t5):t5=$[11],$[12]===Symbol.for("react.memo_cache_sentinel")?(t6=paperKey_0=>setPaperKey(paperKey_0),$[12]=t6):t6=$[12],$[13]!==onSubmit||$[14]!==paperKey?(t7=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_common_adapters__WEBPACK_IMPORTED_MODULE_2__.Box2,{direction:"vertical",style:styles.inputContainer,fullWidth:!0,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_common_adapters__WEBPACK_IMPORTED_MODULE_2__.LabeledInput,{autoFocus:!0,multiline:!0,rowsMax:3,hoverPlaceholder:"Ex: garage blue three...",placeholder:"Type your paper key",textType:"Header",style:styles.input,onEnterKeyDown:onSubmit,onChangeText:t6,value:paperKey})}),$[13]=onSubmit,$[14]=paperKey,$[15]=t7):t7=$[15],$[16]!==props.error?(t8=!!props.error&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_common_adapters__WEBPACK_IMPORTED_MODULE_2__.Text,{type:"BodySmallError",children:props.error}),$[16]=props.error,$[17]=t8):t8=$[17],$[18]!==t7||$[19]!==t8?(t9=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_common_adapters__WEBPACK_IMPORTED_MODULE_2__.Box2,{alignItems:"center",direction:"vertical",fullHeight:!0,fullWidth:!0,gap:"small",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(_common_adapters__WEBPACK_IMPORTED_MODULE_2__.Box2,{direction:"vertical",fullWidth:!0,style:styles.contents,centerChildren:!_common_adapters__WEBPACK_IMPORTED_MODULE_2__.Styles.isAndroid,gap:_common_adapters__WEBPACK_IMPORTED_MODULE_2__.Styles.isMobile?"tiny":"medium",children:[t5,t7,t8]})}),$[18]=t7,$[19]=t8,$[20]=t9):t9=$[20],$[21]!==props.onBack||$[22]!==t4||$[23]!==t9?(t10=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_signup_common__WEBPACK_IMPORTED_MODULE_4__.DF,{buttons:t4,onBack:props.onBack,title:"Recover password",children:t9}),$[21]=props.onBack,$[22]=t4,$[23]=t9,$[24]=t10):t10=$[24],t10};function _temp(s){return s.paperKeyError}function _temp2(s_0){return s_0.dispatch.dynamic.cancel}function _temp3(s_1){return s_1.dispatch.dynamic.submitPaperKey}}}]);
//# sourceMappingURL=8422.bundle.js.map