"use strict";(self.webpackChunkkeybase=self.webpackChunkkeybase||[]).push([[2059],{42059(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>error});var compiler_runtime=__webpack_require__(22024),constants=__webpack_require__(24953),index_desktop=__webpack_require__(63044),jsx_runtime=__webpack_require__(20390);const Wrapper=props=>{const $=(0,compiler_runtime.c)(2);let t0;return $[0]!==props.children?(t0=(0,jsx_runtime.jsx)(index_desktop.Box2,{direction:"vertical",fullWidth:!0,fullHeight:!0,children:(0,jsx_runtime.jsx)(index_desktop.Box2,{direction:"vertical",fullWidth:!0,fullHeight:!0,centerChildren:!0,style:styles.wrapper,gap:index_desktop.Styles.isMobile?"xtiny":"small",children:props.children})}),$[0]=props.children,$[1]=t0):t0=$[1],t0},ContinueButton=t0=>{const $=(0,compiler_runtime.c)(4),{disabled,label,onClick}=t0,t1=label||"Continue";let t2;return $[0]!==disabled||$[1]!==onClick||$[2]!==t1?(t2=(0,jsx_runtime.jsx)(index_desktop.ButtonBar,{fullWidth:!0,style:styles.buttonBar,children:(0,jsx_runtime.jsx)(index_desktop.WaitingButton,{waitingKey:constants.d$,label:t1,disabled,fullWidth:!0,onClick})}),$[0]=disabled,$[1]=onClick,$[2]=t1,$[3]=t2):t2=$[3],t2},styles=index_desktop.Styles.styleSheetCreate(()=>({avatar:{marginBottom:index_desktop.Styles.isMobile?index_desktop.Styles.globalMargins.xtiny:0},buttonBar:{maxWidth:460,padding:0,paddingTop:index_desktop.Styles.globalMargins.medium},header:{backgroundColor:index_desktop.Styles.globalColors.transparent,borderBottomWidth:0,left:0,position:"absolute",right:0,top:0},input:{maxWidth:460,width:"100%"},inputContainer:{alignItems:"center",alignSelf:"stretch"},inputErrorStyle:{minHeight:0},inputInnerStyle:{width:"100%"},wrapper:{paddingLeft:index_desktop.Styles.globalMargins.medium,paddingRight:index_desktop.Styles.globalMargins.medium}}));var signup=__webpack_require__(56232);const error=()=>{const $=(0,compiler_runtime.c)(11),error=(0,signup.useSignupState)(_temp),onBack=(0,signup.useSignupState)(_temp2);let t0,t1,t2,t3,t4,header="Ah Shoot! Something went wrong, try again?",body=error?error.desc:"";return error&&constants.e(error.code)&&(header="Hit an unexpected error; try again?",body="This might be due to a bad connection."),$[0]===Symbol.for("react.memo_cache_sentinel")?(t0={maxWidth:460,width:"80%"},$[0]=t0):t0=$[0],$[1]!==header?(t1=(0,jsx_runtime.jsx)(index_desktop.Text,{center:!0,type:"Header",style:t0,children:header}),$[1]=header,$[2]=t1):t1=$[2],$[3]!==body?(t2=(0,jsx_runtime.jsx)(index_desktop.Text,{type:"Body",center:!0,children:body}),$[3]=body,$[4]=t2):t2=$[4],$[5]!==onBack?(t3=(0,jsx_runtime.jsx)(ContinueButton,{label:"Back",onClick:onBack}),$[5]=onBack,$[6]=t3):t3=$[6],$[7]!==t1||$[8]!==t2||$[9]!==t3?(t4=(0,jsx_runtime.jsxs)(Wrapper,{onBack:_temp3,children:[t1,t2,t3]}),$[7]=t1,$[8]=t2,$[9]=t3,$[10]=t4):t4=$[10],t4};function _temp(s){return s.signupError}function _temp2(s_0){return s_0.dispatch.goBackAndClearErrors}function _temp3(){}}}]);
//# sourceMappingURL=2059.bundle.js.map