"use strict";(self.webpackChunkkeybase=self.webpackChunkkeybase||[]).push([[9700],{59700(__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),_constants_types__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(27129),react__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(67926),_common_adapters__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(63044),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(20390);let disableScreenshotInitialValue;const styles=_common_adapters__WEBPACK_IMPORTED_MODULE_4__.Styles.styleSheetCreate(()=>({container:{..._common_adapters__WEBPACK_IMPORTED_MODULE_4__.Styles.padding(_common_adapters__WEBPACK_IMPORTED_MODULE_4__.Styles.globalMargins.small)}})),__WEBPACK_DEFAULT_EXPORT__=()=>{const $=(0,react_compiler_runtime__WEBPACK_IMPORTED_MODULE_0__.c)(12),[disableScreenshot,setDisableScreenshot]=react__WEBPACK_IMPORTED_MODULE_3__.useState(void 0),loadDisableScreenshot=_constants__WEBPACK_IMPORTED_MODULE_1__.JN(_constants_types__WEBPACK_IMPORTED_MODULE_2__.Mg.configGuiGetValueRpcPromise);let t0,t1;$[0]!==disableScreenshot||$[1]!==loadDisableScreenshot?(t0=()=>{void 0===disableScreenshot&&loadDisableScreenshot([{path:"ui.disableScreenshot"}],result=>{const res=result.b??!1;setDisableScreenshot(res),void 0===disableScreenshotInitialValue&&(disableScreenshotInitialValue=res)},()=>{setDisableScreenshot(!1),void 0===disableScreenshotInitialValue&&(disableScreenshotInitialValue=!1)})},t1=[disableScreenshot,loadDisableScreenshot],$[0]=disableScreenshot,$[1]=loadDisableScreenshot,$[2]=t0,$[3]=t1):(t0=$[2],t1=$[3]),react__WEBPACK_IMPORTED_MODULE_3__.useEffect(t0,t1);const submitDisableSpellcheck=_constants__WEBPACK_IMPORTED_MODULE_1__.JN(_constants_types__WEBPACK_IMPORTED_MODULE_2__.Mg.configGuiSetValueRpcPromise);let t2;$[4]!==disableScreenshot||$[5]!==submitDisableSpellcheck?(t2=()=>{const next=!disableScreenshot;setDisableScreenshot(next),submitDisableSpellcheck([{path:"ui.disableScreenshot",value:{b:next,isNull:!1}}],_temp,()=>{console.log("cant save screenshot?"),setDisableScreenshot(!next)})},$[4]=disableScreenshot,$[5]=submitDisableSpellcheck,$[6]=t2):t2=$[6];const onToggleDisableScreenshot=t2,t3="Disable screenshots"+(void 0!==disableScreenshotInitialValue&&disableScreenshotInitialValue!==disableScreenshot?" (restart required)":""),t4=void 0===disableScreenshot,t5=!!disableScreenshot;let t6;return $[7]!==onToggleDisableScreenshot||$[8]!==t3||$[9]!==t4||$[10]!==t5?(t6=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_common_adapters__WEBPACK_IMPORTED_MODULE_4__.Box2,{direction:"vertical",fullWidth:!0,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_common_adapters__WEBPACK_IMPORTED_MODULE_4__.Box2,{direction:"vertical",fullWidth:!0,style:styles.container,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_common_adapters__WEBPACK_IMPORTED_MODULE_4__.Checkbox,{label:t3,disabled:t4,checked:t5,onCheck:onToggleDisableScreenshot})})}),$[7]=onToggleDisableScreenshot,$[8]=t3,$[9]=t4,$[10]=t5,$[11]=t6):t6=$[11],t6};function _temp(){}}}]);
//# sourceMappingURL=9700.bundle.js.map