"use strict";(self.webpackChunkkeybase=self.webpackChunkkeybase||[]).push([[3916],{93916(__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),_common_adapters__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(63044),_constants_types__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(27129),_constants__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(24953),_constants_fs__WEBPACK_IMPORTED_MODULE_5__=(__webpack_require__(67926),__webpack_require__(17197)),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(20390);const ReallyDeleteFile=props=>{const $=(0,react_compiler_runtime__WEBPACK_IMPORTED_MODULE_0__.c)(4);let t0;return $[0]!==props.onBack||$[1]!==props.onDelete||$[2]!==props.path?(t0=props.path?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_common_adapters__WEBPACK_IMPORTED_MODULE_1__.ConfirmModal,{confirmText:"Yes, delete",description:"It will be deleted for everyone. This cannot be undone.",header:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_common_adapters__WEBPACK_IMPORTED_MODULE_1__.Icon,{type:"iconfont-trash",sizeType:"Big",color:_common_adapters__WEBPACK_IMPORTED_MODULE_1__.Styles.globalColors.red}),onCancel:props.onBack,onConfirm:props.onDelete,prompt:`Are you sure you want to delete "${_constants_types__WEBPACK_IMPORTED_MODULE_2__.FS.getPathName(props.path)}"?`}):null,$[0]=props.onBack,$[1]=props.onDelete,$[2]=props.path,$[3]=t0):t0=$[3],t0},__WEBPACK_DEFAULT_EXPORT__=ownProps=>{const $=(0,react_compiler_runtime__WEBPACK_IMPORTED_MODULE_0__.c)(9),{path,mode}=ownProps,deleteFile=(0,_constants_fs__WEBPACK_IMPORTED_MODULE_5__.useFSState)(_temp),navigateUp=_constants__WEBPACK_IMPORTED_MODULE_3__.ks(_temp2),onBack=navigateUp;let t0;$[0]!==deleteFile||$[1]!==mode||$[2]!==navigateUp||$[3]!==path?(t0=()=>{path!==_constants_fs__WEBPACK_IMPORTED_MODULE_5__.defaultPath&&deleteFile(path),"screen"===mode?(navigateUp(),navigateUp()):navigateUp()},$[0]=deleteFile,$[1]=mode,$[2]=navigateUp,$[3]=path,$[4]=t0):t0=$[4];const onDelete=t0;let t1;if($[5]!==onBack||$[6]!==onDelete||$[7]!==path){const props={onBack,onDelete,path,title:"Confirmation"};t1=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(ReallyDeleteFile,{...props}),$[5]=onBack,$[6]=onDelete,$[7]=path,$[8]=t1}else t1=$[8];return t1};function _temp(s){return s.dispatch.deleteFile}function _temp2(s_0){return s_0.dispatch.navigateUp}}}]);
//# sourceMappingURL=3916.bundle.js.map