"use strict";(self.webpackChunkkeybase=self.webpackChunkkeybase||[]).push([[7765],{7765(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{DecryptIO:()=>DecryptIO,DecryptInput:()=>DecryptInput,DecryptOutput:()=>DecryptOutput});var react_compiler_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(22024),_constants__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(24953),_constants_crypto__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(71411),_common_adapters__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(63044),react__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(67926),_input__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(58493),_output__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(29214),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(20390);const operation=_constants_crypto__WEBPACK_IMPORTED_MODULE_2__.Operations.Decrypt,DecryptInput=()=>{const $=(0,react_compiler_runtime__WEBPACK_IMPORTED_MODULE_0__.c)(4),resetOperation=_constants_crypto__WEBPACK_IMPORTED_MODULE_2__.useCryptoState(_temp);let t0,t1,t2;if($[0]!==resetOperation?(t0=()=>()=>{_constants__WEBPACK_IMPORTED_MODULE_1__.Fr&&resetOperation(operation)},t1=[resetOperation],$[0]=resetOperation,$[1]=t0,$[2]=t1):(t0=$[1],t1=$[2]),react__WEBPACK_IMPORTED_MODULE_4__.useEffect(t0,t1),$[3]===Symbol.for("react.memo_cache_sentinel")){const contents=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_input__WEBPACK_IMPORTED_MODULE_5__.wj,{operation},"banner"),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_input__WEBPACK_IMPORTED_MODULE_5__.pd,{operation},"input")]});t2=_constants__WEBPACK_IMPORTED_MODULE_1__.Fr?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(_common_adapters__WEBPACK_IMPORTED_MODULE_3__.KeyboardAvoidingView2,{children:[contents,(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_input__WEBPACK_IMPORTED_MODULE_5__.n8,{operation})]}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_common_adapters__WEBPACK_IMPORTED_MODULE_3__.Box2,{direction:"vertical",fullHeight:!0,style:_constants_crypto__WEBPACK_IMPORTED_MODULE_2__.inputDesktopMaxHeight,children:contents}),$[3]=t2}else t2=$[3];return t2},DecryptOutput=()=>{const $=(0,react_compiler_runtime__WEBPACK_IMPORTED_MODULE_0__.c)(8),errorMessage=_constants_crypto__WEBPACK_IMPORTED_MODULE_2__.useCryptoState(_temp2);let t0,t1,t2,t3,t4,t5;if($[0]!==errorMessage?(t0=_constants__WEBPACK_IMPORTED_MODULE_1__.Fr&&errorMessage?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_input__WEBPACK_IMPORTED_MODULE_5__.wj,{operation},"banner"):null,$[0]=errorMessage,$[1]=t0):t0=$[1],$[2]===Symbol.for("react.memo_cache_sentinel")?(t1=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_output__WEBPACK_IMPORTED_MODULE_6__.sh,{operation},"sender"),t2=_constants__WEBPACK_IMPORTED_MODULE_1__.Fr?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_common_adapters__WEBPACK_IMPORTED_MODULE_3__.Divider,{},"div"):null,t3=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_output__WEBPACK_IMPORTED_MODULE_6__.LC,{operation},"output"),t4=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_output__WEBPACK_IMPORTED_MODULE_6__.In,{operation},"bar"),$[2]=t1,$[3]=t2,$[4]=t3,$[5]=t4):(t1=$[2],t2=$[3],t3=$[4],t4=$[5]),$[6]!==t0){const content=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.Fragment,{children:[t0,t1,t2,t3,t4]});t5=_constants__WEBPACK_IMPORTED_MODULE_1__.Fr?content:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_common_adapters__WEBPACK_IMPORTED_MODULE_3__.Box2,{direction:"vertical",fullHeight:!0,style:_constants_crypto__WEBPACK_IMPORTED_MODULE_2__.outputDesktopMaxHeight,children:content}),$[6]=t0,$[7]=t5}else t5=$[7];return t5},DecryptIO=()=>{const $=(0,react_compiler_runtime__WEBPACK_IMPORTED_MODULE_0__.c)(1);let t0;return $[0]===Symbol.for("react.memo_cache_sentinel")?(t0=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_input__WEBPACK_IMPORTED_MODULE_5__.BS,{operation,prompt:"Drop a file to encrypt",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(_common_adapters__WEBPACK_IMPORTED_MODULE_3__.Box2,{direction:"vertical",fullHeight:!0,children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(DecryptInput,{}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_common_adapters__WEBPACK_IMPORTED_MODULE_3__.Divider,{}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(DecryptOutput,{})]})}),$[0]=t0):t0=$[0],t0};function _temp(s){return s.dispatch.resetOperation}function _temp2(s){return s[operation].errorMessage.stringValue()}}}]);
//# sourceMappingURL=7765.bundle.js.map