"use strict";(self.webpackChunkkeybase=self.webpackChunkkeybase||[]).push([[1841],{81841(__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_2__=(__webpack_require__(67926),__webpack_require__(63044)),_util_phone_numbers__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(44378),_util_safe_navigation__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(88732),_constants_settings_phone__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(89284),_constants_settings_email__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(21448),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(20390);const __WEBPACK_DEFAULT_EXPORT__=props=>{const $=(0,react_compiler_runtime__WEBPACK_IMPORTED_MODULE_0__.c)(25),nav=(0,_util_safe_navigation__WEBPACK_IMPORTED_MODULE_4__.X)(),itemAddress=props.address,itemType=props.type,itemSearchable=props.searchable,lastEmail=props.lastEmail??!1;let t0;$[0]!==nav?(t0=()=>nav.safeNavigateUp(),$[0]=nav,$[1]=t0):t0=$[1];const onCancel=t0,editPhone=(0,_constants_settings_phone__WEBPACK_IMPORTED_MODULE_5__.useSettingsPhoneState)(_temp),editEmail=(0,_constants_settings_email__WEBPACK_IMPORTED_MODULE_6__.useSettingsEmailState)(_temp2);let t1;$[2]!==editEmail||$[3]!==editPhone||$[4]!==itemAddress||$[5]!==itemType||$[6]!==nav?(t1=()=>{"phone"===itemType?editPhone(itemAddress,!0):editEmail({delete:!0,email:itemAddress}),nav.safeNavigateUp()},$[2]=editEmail,$[3]=editPhone,$[4]=itemAddress,$[5]=itemType,$[6]=nav,$[7]=t1):t1=$[7];const onConfirm=t1,icon="email"===itemType?_common_adapters__WEBPACK_IMPORTED_MODULE_2__.Styles.isMobile?"icon-email-remove-96":"icon-email-remove-64":_common_adapters__WEBPACK_IMPORTED_MODULE_2__.Styles.isMobile?"icon-phone-number-remove-96":"icon-phone-number-remove-64";let t2;$[8]!==itemType||$[9]!==props.address?(t2="email"===itemType?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(_common_adapters__WEBPACK_IMPORTED_MODULE_2__.Box2,{direction:"vertical",alignItems:"center",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_common_adapters__WEBPACK_IMPORTED_MODULE_2__.Text,{type:"HeaderBig",children:"Delete email"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(_common_adapters__WEBPACK_IMPORTED_MODULE_2__.Text,{type:"HeaderBig",children:[props.address,"?"]})]}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(_common_adapters__WEBPACK_IMPORTED_MODULE_2__.Box2,{direction:"vertical",alignItems:"center",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_common_adapters__WEBPACK_IMPORTED_MODULE_2__.Text,{type:"HeaderBig",children:"Delete number"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(_common_adapters__WEBPACK_IMPORTED_MODULE_2__.Text,{type:"HeaderBig",children:[_util_phone_numbers__WEBPACK_IMPORTED_MODULE_3__.e164ToDisplay(props.address),"?"]})]}),$[8]=itemType,$[9]=props.address,$[10]=t2):t2=$[10];const prompt=t2;let t3,t4,t5;$[11]!==lastEmail?(t3=lastEmail?["Since you'll have deleted all email addresses, you won't get email notifications from Keybase anymore."]:[],$[11]=lastEmail,$[12]=t3):t3=$[12],$[13]!==itemSearchable||$[14]!==props.type?(t4=itemSearchable?[`Your friends will no longer be able to find you by this ${"email"===props.type?"email address":"number"}.`]:[],$[13]=itemSearchable,$[14]=props.type,$[15]=t4):t4=$[15],$[16]!==t3||$[17]!==t4?(t5=[...t3,...t4],$[16]=t3,$[17]=t4,$[18]=t5):t5=$[18];const description=t5.join(" ");let t6;return $[19]!==description||$[20]!==icon||$[21]!==onCancel||$[22]!==onConfirm||$[23]!==prompt?(t6=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(_common_adapters__WEBPACK_IMPORTED_MODULE_2__.ConfirmModal,{icon,prompt,description,onCancel,onConfirm,confirmText:"Yes, delete"}),$[19]=description,$[20]=icon,$[21]=onCancel,$[22]=onConfirm,$[23]=prompt,$[24]=t6):t6=$[24],t6};function _temp(s){return s.dispatch.editPhone}function _temp2(s_0){return s_0.dispatch.editEmail}}}]);
//# sourceMappingURL=1841.bundle.js.map