"use strict";(self.webpackChunkkeybase=self.webpackChunkkeybase||[]).push([[6053],{66053(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{KeybaseLinkErrorBody:()=>KeybaseLinkErrorBody,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),_constants_deeplinks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(98489),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(20390);const KeybaseLinkErrorBody=props=>{const $=(0,react_compiler_runtime__WEBPACK_IMPORTED_MODULE_0__.c)(9),bannerColor=props.isError?"red":"green";let t0,t1,t2;return $[0]!==bannerColor||$[1]!==props.message?(t0=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_common_adapters__WEBPACK_IMPORTED_MODULE_2__.BannerParagraph,{bannerColor,content:props.message,selectable:!0}),$[0]=bannerColor,$[1]=props.message,$[2]=t0):t0=$[2],$[3]!==bannerColor||$[4]!==t0?(t1=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_common_adapters__WEBPACK_IMPORTED_MODULE_2__.Box2,{direction:"vertical",fullWidth:!0,style:styles.container,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_common_adapters__WEBPACK_IMPORTED_MODULE_2__.Banner,{color:bannerColor,children:t0})}),$[3]=bannerColor,$[4]=t0,$[5]=t1):t1=$[5],$[6]!==props.onCancel||$[7]!==t1?(t2=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_common_adapters__WEBPACK_IMPORTED_MODULE_2__.PopupWrapper,{onCancel:props.onCancel,customCancelText:"Close",children:t1}),$[6]=props.onCancel,$[7]=t1,$[8]=t2):t2=$[8],t2},styles=_common_adapters__WEBPACK_IMPORTED_MODULE_2__.Styles.styleSheetCreate(()=>({container:_common_adapters__WEBPACK_IMPORTED_MODULE_2__.Styles.platformStyles({common:{backgroundColor:_common_adapters__WEBPACK_IMPORTED_MODULE_2__.Styles.globalColors.white},isElectron:{height:560,width:400},isMobile:{flexGrow:1,flexShrink:1,maxHeight:"100%",width:"100%"}})})),__WEBPACK_DEFAULT_EXPORT__=()=>{const $=(0,react_compiler_runtime__WEBPACK_IMPORTED_MODULE_0__.c)(5),message=(0,_constants_deeplinks__WEBPACK_IMPORTED_MODULE_3__.useDeepLinksState)(_temp),navigateUp=_constants__WEBPACK_IMPORTED_MODULE_1__.ks(_temp2);let t0;$[0]!==navigateUp?(t0=()=>navigateUp(),$[0]=navigateUp,$[1]=t0):t0=$[1];const onClose=t0;let t1;return $[2]!==message||$[3]!==onClose?(t1=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(KeybaseLinkErrorBody,{onCancel:onClose,isError:!0,message}),$[2]=message,$[3]=onClose,$[4]=t1):t1=$[4],t1};function _temp(s){return s.keybaseLinkError}function _temp2(s_0){return s_0.dispatch.navigateUp}}}]);
//# sourceMappingURL=6053.bundle.js.map