-
Notifications
You must be signed in to change notification settings - Fork 31
/
38388.e6a03e34.iframe.bundle.js
1 lines (1 loc) · 47.5 KB
/
38388.e6a03e34.iframe.bundle.js
1
"use strict";(globalThis.webpackChunkmetamask_crx=globalThis.webpackChunkmetamask_crx||[]).push([[38388],{"./ui/contexts/metamask-notifications/metamask-notifications.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{q:()=>useMetamaskNotificationsContext});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");__webpack_require__("./node_modules/react-redux/es/index.js"),__webpack_require__("./ui/hooks/metamask-notifications/useNotifications.ts"),__webpack_require__("./ui/hooks/metamask-notifications/useProfileSyncing/index.ts"),__webpack_require__("./ui/selectors/metamask-notifications/profile-syncing.ts"),__webpack_require__("./ui/selectors/metamask-notifications/metamask-notifications.ts"),__webpack_require__("./ui/selectors/index.js"),__webpack_require__("./ui/ducks/metamask/metamask.js");var MetamaskNotificationsContext=(0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)(void 0),useMetamaskNotificationsContext=function(){var context=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(MetamaskNotificationsContext);if(!context)throw Error("useNotificationsContext must be used within a MetamaskNotificationsProvider");return context},MetamaskNotificationsProvider=function(param){var children=param.children,isProfileSyncingEnabled=useSelector(selectIsProfileSyncingEnabled),isNotificationsEnabled=useSelector(selectIsMetamaskNotificationsEnabled),basicFunctionality=useSelector(getUseExternalServices),isUnlocked=useSelector(getIsUnlocked),_useListNotifications=useListNotifications(),listNotifications=_useListNotifications.listNotifications,notificationsData=_useListNotifications.notificationsData,isLoading=_useListNotifications.isLoading,error=_useListNotifications.error,shouldFetchNotifications=useMemo(function(){return isProfileSyncingEnabled&&isNotificationsEnabled},[isProfileSyncingEnabled,isNotificationsEnabled]);return useAccountSyncingEffect(),useEffect(function(){basicFunctionality&&shouldFetchNotifications&&isUnlocked&&listNotifications()},[shouldFetchNotifications,listNotifications,basicFunctionality,isUnlocked]),React.createElement(MetamaskNotificationsContext.Provider,{value:{listNotifications:listNotifications,notificationsData:notificationsData,isLoading:isLoading,error:error}},children)};try{MetamaskNotificationsProvider.displayName="MetamaskNotificationsProvider",MetamaskNotificationsProvider.__docgenInfo={description:"",displayName:"MetamaskNotificationsProvider",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["ui/contexts/metamask-notifications/metamask-notifications.tsx#MetamaskNotificationsProvider"]={docgenInfo:MetamaskNotificationsProvider.__docgenInfo,name:"MetamaskNotificationsProvider",path:"ui/contexts/metamask-notifications/metamask-notifications.tsx#MetamaskNotificationsProvider"})}catch(__react_docgen_typescript_loader_error){}},"./ui/hooks/metamask-notifications/useNotifications.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{SF:()=>useMarkNotificationAsRead,hG:()=>useEnableNotifications});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),react_redux__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react-redux/es/index.js"),loglevel__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/loglevel/lib/loglevel.js"),loglevel__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(loglevel__WEBPACK_IMPORTED_MODULE_2__),_store_actions__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./ui/store/actions.ts");function _array_like_to_array(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=Array(len);i<len;i++)arr2[i]=arr[i];return arr2}function _array_with_holes(arr){if(Array.isArray(arr))return arr}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){reject(error);return}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function _async_to_generator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)})}}function _instanceof(left,right){return null!=right&&"undefined"!=typeof Symbol&&right[Symbol.hasInstance]?!!right[Symbol.hasInstance](left):left instanceof right}function _iterable_to_array_limit(arr,i){var _s,_e,_i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null!=_i){var _arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}}function _non_iterable_rest(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _sliced_to_array(arr,i){return _array_with_holes(arr)||_iterable_to_array_limit(arr,i)||_unsupported_iterable_to_array(arr,i)||_non_iterable_rest()}function _unsupported_iterable_to_array(o,minLen){if(o){if("string"==typeof o)return _array_like_to_array(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if("Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _array_like_to_array(o,minLen)}}function _ts_generator(thisArg,body){var f,y,t,g,_={label:0,sent:function(){if(1&t[0])throw t[1];return t[1]},trys:[],ops:[]};return g={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function verb(n){return function(v){return step([n,v])}}function step(op){if(f)throw TypeError("Generator is already executing.");for(;_;)try{if(f=1,y&&(t=2&op[0]?y.return:op[0]?y.throw||((t=y.return)&&t.call(y),0):y.next)&&!(t=t.call(y,op[1])).done)return t;switch(y=0,t&&(op=[2&op[0],t.value]),op[0]){case 0:case 1:t=op;break;case 4:return _.label++,{value:op[1],done:!1};case 5:_.label++,y=op[1],op=[0];continue;case 7:op=_.ops.pop(),_.trys.pop();continue;default:if(!(t=(t=_.trys).length>0&&t[t.length-1])&&(6===op[0]||2===op[0])){_=0;continue}if(3===op[0]&&(!t||op[1]>t[0]&&op[1]<t[3])){_.label=op[1];break}if(6===op[0]&&_.label<t[1]){_.label=t[1],t=op;break}if(t&&_.label<t[2]){_.label=t[2],_.ops.push(op);break}t[2]&&_.ops.pop(),_.trys.pop();continue}op=body.call(thisArg,_)}catch(e){op=[6,e],y=0}finally{f=t=0}if(5&op[0])throw op[1];return{value:op[0]?op[1]:void 0,done:!0}}}function useEnableNotifications(){var dispatch=(0,react_redux__WEBPACK_IMPORTED_MODULE_1__.wA)(),_useState=_sliced_to_array((0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null),2),error=_useState[0],setError=_useState[1];return{enableNotifications:(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(_async_to_generator(function(){var e;return _ts_generator(this,function(_state){switch(_state.label){case 0:setError(null),_state.label=1;case 1:return _state.trys.push([1,3,,4]),[4,dispatch((0,_store_actions__WEBPACK_IMPORTED_MODULE_3__.enableMetamaskNotifications)())];case 2:return _state.sent(),[3,4];case 3:throw setError(_instanceof(e=_state.sent(),Error)?e.message:"An unexpected error occurred"),loglevel__WEBPACK_IMPORTED_MODULE_2___default().error(e),e;case 4:return[2]}})}),[dispatch]),error:error}}function useMarkNotificationAsRead(){var _ref,dispatch=(0,react_redux__WEBPACK_IMPORTED_MODULE_1__.wA)();return{markNotificationAsRead:(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((_ref=_async_to_generator(function(notifications){return _ts_generator(this,function(_state){try{dispatch((0,_store_actions__WEBPACK_IMPORTED_MODULE_3__.markMetamaskNotificationsAsRead)(notifications))}catch(e){throw loglevel__WEBPACK_IMPORTED_MODULE_2___default().error(e),e}return[2]})}),function(notifications){return _ref.apply(this,arguments)}),[dispatch])}}},"./ui/hooks/metamask-notifications/useProfileSyncing/index.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{$H:()=>useDeleteAccountSyncingDataFromUserStorage,w6:()=>useDisableProfileSyncing,x_:()=>useEnableProfileSyncing,fu:()=>useSetIsProfileSyncingEnabled});var react=__webpack_require__("./node_modules/react/index.js"),es=__webpack_require__("./node_modules/react-redux/es/index.js"),loglevel=__webpack_require__("./node_modules/loglevel/lib/loglevel.js"),loglevel_default=__webpack_require__.n(loglevel),metamask_notifications=__webpack_require__("./ui/contexts/metamask-notifications/metamask-notifications.tsx"),actions=__webpack_require__("./ui/__mocks__/actions.js");function _array_like_to_array(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=Array(len);i<len;i++)arr2[i]=arr[i];return arr2}function _array_with_holes(arr){if(Array.isArray(arr))return arr}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){reject(error);return}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function _async_to_generator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)})}}function _instanceof(left,right){return null!=right&&"undefined"!=typeof Symbol&&right[Symbol.hasInstance]?!!right[Symbol.hasInstance](left):left instanceof right}function _iterable_to_array_limit(arr,i){var _s,_e,_i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null!=_i){var _arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}}function _non_iterable_rest(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _sliced_to_array(arr,i){return _array_with_holes(arr)||_iterable_to_array_limit(arr,i)||_unsupported_iterable_to_array(arr,i)||_non_iterable_rest()}function _unsupported_iterable_to_array(o,minLen){if(o){if("string"==typeof o)return _array_like_to_array(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if("Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _array_like_to_array(o,minLen)}}function _ts_generator(thisArg,body){var f,y,t,g,_={label:0,sent:function(){if(1&t[0])throw t[1];return t[1]},trys:[],ops:[]};return g={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function verb(n){return function(v){return step([n,v])}}function step(op){if(f)throw TypeError("Generator is already executing.");for(;_;)try{if(f=1,y&&(t=2&op[0]?y.return:op[0]?y.throw||((t=y.return)&&t.call(y),0):y.next)&&!(t=t.call(y,op[1])).done)return t;switch(y=0,t&&(op=[2&op[0],t.value]),op[0]){case 0:case 1:t=op;break;case 4:return _.label++,{value:op[1],done:!1};case 5:_.label++,y=op[1],op=[0];continue;case 7:op=_.ops.pop(),_.trys.pop();continue;default:if(!(t=(t=_.trys).length>0&&t[t.length-1])&&(6===op[0]||2===op[0])){_=0;continue}if(3===op[0]&&(!t||op[1]>t[0]&&op[1]<t[3])){_.label=op[1];break}if(6===op[0]&&_.label<t[1]){_.label=t[1],t=op;break}if(t&&_.label<t[2]){_.label=t[2],_.ops.push(op);break}t[2]&&_.ops.pop(),_.trys.pop();continue}op=body.call(thisArg,_)}catch(e){op=[6,e],y=0}finally{f=t=0}if(5&op[0])throw op[1];return{value:op[0]?op[1]:void 0,done:!0}}}function useEnableProfileSyncing(){var dispatch=(0,es.wA)(),_useState=_sliced_to_array((0,react.useState)(null),2),error=_useState[0],setError=_useState[1];return{enableProfileSyncing:(0,react.useCallback)(_async_to_generator(function(){var e,errorMessage;return _ts_generator(this,function(_state){switch(_state.label){case 0:setError(null),_state.label=1;case 1:return _state.trys.push([1,3,,4]),[4,dispatch((0,actions.enableProfileSyncing)())];case 2:return _state.sent(),[3,4];case 3:return errorMessage=_instanceof(e=_state.sent(),Error)?e.message:JSON.stringify(null!=e?e:""),loglevel_default().error(errorMessage),setError(errorMessage),[3,4];case 4:return[2]}})}),[dispatch]),error:error}}function useDisableProfileSyncing(){var dispatch=(0,es.wA)(),listNotifications=(0,metamask_notifications.q)().listNotifications,_useState=_sliced_to_array((0,react.useState)(null),2),error=_useState[0],setError=_useState[1];return{disableProfileSyncing:(0,react.useCallback)(_async_to_generator(function(){var e,errorMessage;return _ts_generator(this,function(_state){switch(_state.label){case 0:setError(null),_state.label=1;case 1:return _state.trys.push([1,4,5,6]),[4,dispatch((0,actions.disableProfileSyncing)())];case 2:return _state.sent(),[4,listNotifications()];case 3:return _state.sent(),[3,6];case 4:return setError(errorMessage=_instanceof(e=_state.sent(),Error)?e.message:JSON.stringify(null!=e?e:"")),loglevel_default().error(errorMessage),[3,6];case 5:return dispatch((0,actions.hideLoadingIndication)()),[7];case 6:return[2]}})}),[dispatch]),error:error}}function useSetIsProfileSyncingEnabled(){var _ref,dispatch=(0,es.wA)(),_useState=_sliced_to_array((0,react.useState)(null),2),error=_useState[0],setError=_useState[1];return{setIsProfileSyncingEnabled:(0,react.useCallback)((_ref=_async_to_generator(function(state){var e,errorMessage;return _ts_generator(this,function(_state){switch(_state.label){case 0:setError(null),_state.label=1;case 1:return _state.trys.push([1,3,,4]),[4,dispatch((0,actions.setIsProfileSyncingEnabled)(state))];case 2:return _state.sent(),[3,4];case 3:return setError(errorMessage=_instanceof(e=_state.sent(),Error)?e.message:JSON.stringify(null!=e?e:"")),loglevel_default().error(errorMessage),[3,4];case 4:return[2]}})}),function(state){return _ref.apply(this,arguments)}),[dispatch]),error:error}}function accountSyncing_asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){reject(error);return}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function accountSyncing_async_to_generator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){accountSyncing_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){accountSyncing_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)})}}function accountSyncing_ts_generator(thisArg,body){var f,y,t,g,_={label:0,sent:function(){if(1&t[0])throw t[1];return t[1]},trys:[],ops:[]};return g={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function verb(n){return function(v){return step([n,v])}}function step(op){if(f)throw TypeError("Generator is already executing.");for(;_;)try{if(f=1,y&&(t=2&op[0]?y.return:op[0]?y.throw||((t=y.return)&&t.call(y),0):y.next)&&!(t=t.call(y,op[1])).done)return t;switch(y=0,t&&(op=[2&op[0],t.value]),op[0]){case 0:case 1:t=op;break;case 4:return _.label++,{value:op[1],done:!1};case 5:_.label++,y=op[1],op=[0];continue;case 7:op=_.ops.pop(),_.trys.pop();continue;default:if(!(t=(t=_.trys).length>0&&t[t.length-1])&&(6===op[0]||2===op[0])){_=0;continue}if(3===op[0]&&(!t||op[1]>t[0]&&op[1]<t[3])){_.label=op[1];break}if(6===op[0]&&_.label<t[1]){_.label=t[1],t=op;break}if(t&&_.label<t[2]){_.label=t[2],_.ops.push(op);break}t[2]&&_.ops.pop(),_.trys.pop();continue}op=body.call(thisArg,_)}catch(e){op=[6,e],y=0}finally{f=t=0}if(5&op[0])throw op[1];return{value:op[0]?op[1]:void 0,done:!0}}}__webpack_require__("./ui/selectors/metamask-notifications/authentication.ts"),__webpack_require__("./ui/selectors/metamask-notifications/profile-syncing.ts"),__webpack_require__("./ui/selectors/index.js"),__webpack_require__("./ui/ducks/metamask/metamask.js");var useDeleteAccountSyncingDataFromUserStorage=function(){var dispatch=(0,es.wA)();return{dispatchDeleteAccountData:(0,react.useCallback)(accountSyncing_async_to_generator(function(){return accountSyncing_ts_generator(this,function(_state){switch(_state.label){case 0:return _state.trys.push([0,2,,3]),[4,dispatch((0,actions.deleteAccountSyncingDataFromUserStorage)())];case 1:case 2:return _state.sent(),[3,3];case 3:return[2]}})}),[])}}},"./ui/pages/settings/developer-options-tab/index.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>developer_options_tab});var react=__webpack_require__("./node_modules/react/index.js"),es=__webpack_require__("./node_modules/react-redux/es/index.js"),react_router=__webpack_require__("./node_modules/react-router-dom/node_modules/react-router/esm/react-router.js"),component_library=__webpack_require__("./ui/components/component-library/index.ts"),design_system=__webpack_require__("./ui/helpers/constants/design-system.ts"),routes=__webpack_require__("./ui/helpers/constants/routes.ts"),settings_search=__webpack_require__("./ui/helpers/utils/settings-search.js"),useI18nContext=__webpack_require__("./ui/hooks/useI18nContext.js"),actions=__webpack_require__("./ui/__mocks__/actions.js"),util=__webpack_require__("./app/scripts/lib/util.ts"),app=__webpack_require__("./shared/constants/app.ts"),selectors_confirm=__webpack_require__("./ui/pages/confirmations/selectors/confirm.ts"),toggle_button=__webpack_require__("./ui/components/ui/toggle-button/index.js");let developer_options_toggle_row_component=function(param){var title=param.title,description=param.description,isEnabled=param.isEnabled,onToggle=param.onToggle,dataTestId=param.dataTestId,settingsRef=param.settingsRef;return react.createElement(component_library.az,{ref:settingsRef,className:"settings-page__content-row",display:design_system.nl.Flex,flexDirection:design_system.bo.Row,justifyContent:design_system.A9.spaceBetween,gap:4},react.createElement("div",{className:"settings-page__content-item"},react.createElement("div",{className:"settings-page__content-description"},react.createElement("span",null,title),react.createElement("div",{className:"settings-page__content-description"},description))),react.createElement("div",{className:"settings-page__content-item-col"},react.createElement(toggle_button.A,{value:isEnabled,onToggle:onToggle,offLabel:"Off",onLabel:"On",dataTestId:dataTestId})))};try{developeroptionstogglerowcomponent.displayName="developeroptionstogglerowcomponent",developeroptionstogglerowcomponent.__docgenInfo={description:"",displayName:"developeroptionstogglerowcomponent",props:{title:{defaultValue:null,description:"",name:"title",required:!0,type:{name:"string"}},description:{defaultValue:null,description:"",name:"description",required:!0,type:{name:"string"}},isEnabled:{defaultValue:null,description:"",name:"isEnabled",required:!0,type:{name:"boolean"}},onToggle:{defaultValue:null,description:"",name:"onToggle",required:!0,type:{name:"(value: boolean) => void"}},dataTestId:{defaultValue:null,description:"",name:"dataTestId",required:!0,type:{name:"string"}},settingsRef:{defaultValue:null,description:"",name:"settingsRef",required:!0,type:{name:"RefObject<HTMLDivElement>"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["ui/pages/settings/developer-options-tab/developer-options-toggle-row-component.tsx#developeroptionstogglerowcomponent"]={docgenInfo:developeroptionstogglerowcomponent.__docgenInfo,name:"developeroptionstogglerowcomponent",path:"ui/pages/settings/developer-options-tab/developer-options-toggle-row-component.tsx#developeroptionstogglerowcomponent"})}catch(__react_docgen_typescript_loader_error){}var trace=__webpack_require__("./shared/lib/trace.ts"),button_types=__webpack_require__("./ui/components/component-library/button/button.types.ts"),i18n=__webpack_require__("./shared/modules/i18n.ts"),locale=__webpack_require__("./ui/ducks/locale/locale.ts");function _array_like_to_array(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=Array(len);i<len;i++)arr2[i]=arr[i];return arr2}function _array_with_holes(arr){if(Array.isArray(arr))return arr}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){reject(error);return}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function _async_to_generator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)})}}function _define_property(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _iterable_to_array_limit(arr,i){var _s,_e,_i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null!=_i){var _arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}}function _non_iterable_rest(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _object_spread(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{},ownKeys=Object.keys(source);"function"==typeof Object.getOwnPropertySymbols&&(ownKeys=ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym){return Object.getOwnPropertyDescriptor(source,sym).enumerable}))),ownKeys.forEach(function(key){_define_property(target,key,source[key])})}return target}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable})),keys.push.apply(keys,symbols)}return keys}function _object_spread_props(target,source){return source=null!=source?source:{},Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))}),target}function _sliced_to_array(arr,i){return _array_with_holes(arr)||_iterable_to_array_limit(arr,i)||_unsupported_iterable_to_array(arr,i)||_non_iterable_rest()}function _unsupported_iterable_to_array(o,minLen){if(o){if("string"==typeof o)return _array_like_to_array(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if("Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _array_like_to_array(o,minLen)}}function _ts_generator(thisArg,body){var f,y,t,g,_={label:0,sent:function(){if(1&t[0])throw t[1];return t[1]},trys:[],ops:[]};return g={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function verb(n){return function(v){return step([n,v])}}function step(op){if(f)throw TypeError("Generator is already executing.");for(;_;)try{if(f=1,y&&(t=2&op[0]?y.return:op[0]?y.throw||((t=y.return)&&t.call(y),0):y.next)&&!(t=t.call(y,op[1])).done)return t;switch(y=0,t&&(op=[2&op[0],t.value]),op[0]){case 0:case 1:t=op;break;case 4:return _.label++,{value:op[1],done:!1};case 5:_.label++,y=op[1],op=[0];continue;case 7:op=_.ops.pop(),_.trys.pop();continue;default:if(!(t=(t=_.trys).length>0&&t[t.length-1])&&(6===op[0]||2===op[0])){_=0;continue}if(3===op[0]&&(!t||op[1]>t[0]&&op[1]<t[3])){_.label=op[1];break}if(6===op[0]&&_.label<t[1]){_.label=t[1],t=op;break}if(t&&_.label<t[2]){_.label=t[2],_.ops.push(op);break}t[2]&&_.ops.pop(),_.trys.pop();continue}op=body.call(thisArg,_)}catch(e){op=[6,e],y=0}finally{f=t=0}if(5&op[0])throw op[1];return{value:op[0]?op[1]:void 0,done:!0}}}function sleep(ms){return new Promise(function(resolve){return setTimeout(resolve,ms)})}function GenerateUIError(){var handleClick=(0,react.useCallback)(_async_to_generator(function(){var _window_stateHooks_throwTestError,_window_stateHooks;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,null===(_window_stateHooks_throwTestError=(_window_stateHooks=window.stateHooks).throwTestError)||void 0===_window_stateHooks_throwTestError?void 0:_window_stateHooks_throwTestError.call(_window_stateHooks,"Developer Options")];case 1:return _state.sent(),[2]}})}),[]);return react.createElement(TestButton,{name:"Generate UI Error",description:react.createElement("span",null,"Generate an unhandled ",react.createElement("b",null,"TestError")," in this window."),onClick:handleClick,expectError:!0})}function GenerateBackgroundError(){var handleClick=(0,react.useCallback)(_async_to_generator(function(){var _window_stateHooks_throwTestBackgroundError,_window_stateHooks;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,null===(_window_stateHooks_throwTestBackgroundError=(_window_stateHooks=window.stateHooks).throwTestBackgroundError)||void 0===_window_stateHooks_throwTestBackgroundError?void 0:_window_stateHooks_throwTestBackgroundError.call(_window_stateHooks,"Developer Options")];case 1:return _state.sent(),[2]}})}),[]);return react.createElement(TestButton,{name:"Generate Background Error",description:react.createElement("span",null,"Generate an unhandled ",react.createElement("b",null,"TestError")," in the service worker."),onClick:handleClick,expectError:!0})}function GenerateTrace(){var handleClick=(0,react.useCallback)(_async_to_generator(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:var _ref;return[4,(0,trace.uP)({name:trace.dg.DeveloperTest,data:{"test.data.number":123},tags:{"test.tag.number":123}},(_ref=_async_to_generator(function(context){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,(0,trace.uP)({name:trace.dg.NestedTest1,data:{"test.data.boolean":!0},tags:{"test.tag.boolean":!0},parentContext:context},function(){return sleep(1e3)})];case 1:return _state.sent(),[4,(0,trace.uP)({name:trace.dg.NestedTest2,data:{"test.data.string":"test"},tags:{"test.tag.string":"test"},parentContext:context},function(){return sleep(500)})];case 2:return _state.sent(),[2]}})}),function(context){return _ref.apply(this,arguments)}))];case 1:return _state.sent(),[2]}})}),[]);return react.createElement(TestButton,{name:"Generate Trace",description:react.createElement("span",null,"Generate a ",react.createElement("b",null,"Developer Test")," Sentry trace."),onClick:handleClick})}function GeneratePageCrash(param){var _ref,currentLocale=param.currentLocale,dispatch=(0,es.wA)(),handleClick=(_ref=_async_to_generator(function(){var localeMessages;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,(0,i18n.Fq)(currentLocale)];case 1:return localeMessages=_state.sent(),[4,dispatch((0,actions.setCurrentLocale)(currentLocale,_object_spread_props(_object_spread({},localeMessages),{developerOptions:void 0})))];case 2:return _state.sent(),[4,(0,actions.forceUpdateMetamaskState)(dispatch)];case 3:return _state.sent(),[2]}})}),function handleClick(){return _ref.apply(this,arguments)});return react.createElement(TestButton,{name:"Generate A Page Crash",description:react.createElement("span",null,'Trigger the crash on extension to send user feedback to sentry. You can click "Try again" to reload extension'),onClick:handleClick,expectError:!0,testId:"developer-options-generate-page-crash-button"})}function TestButton(param){var name=param.name,description=param.description,onClick=param.onClick,expectError=param.expectError,testId=param.testId,_useState=_sliced_to_array((0,react.useState)(!1),2),isComplete=_useState[0],setIsComplete=_useState[1],handleClick=(0,react.useCallback)(_async_to_generator(function(){var hasError,error;return _ts_generator(this,function(_state){switch(_state.label){case 0:hasError=!1,_state.label=1;case 1:return _state.trys.push([1,3,4,5]),[4,onClick()];case 2:return _state.sent(),[3,5];case 3:throw error=_state.sent(),hasError=!0,error;case 4:return(expectError||!hasError)&&setIsComplete(!0),[7];case 5:return[2]}})}),[onClick]);return react.createElement(component_library.az,{className:"settings-page__content-row",display:design_system.nl.Flex,flexDirection:design_system.bo.Row,justifyContent:design_system.A9.spaceBetween,gap:4},react.createElement("div",{className:"settings-page__content-item"},react.createElement("div",{className:"settings-page__content-description"},description)),react.createElement("div",{className:"settings-page__content-item-col"},react.createElement(component_library.$n,{variant:component_library.Ak.Primary,onClick:handleClick,size:button_types.M.Lg,"data-testid":testId},name)),react.createElement("div",{className:"settings-page__content-item-col"},react.createElement(component_library.az,{display:design_system.nl.Flex,alignItems:design_system.k2.center,paddingLeft:2,paddingRight:2,style:{height:"40px",width:"40px"}},react.createElement(component_library.In,{className:"settings-page-developer-options__icon-check",name:component_library.$M.Check,color:design_system.Li.successDefault,size:component_library.lK.Lg,hidden:!isComplete}))))}let sentry_test=function(){var currentLocale=(0,es.d4)(locale.kk)||i18n.MY;return react.createElement(react.Fragment,null,react.createElement(component_library.EY,{className:"settings-page__security-tab-sub-header__bold"},"Sentry"),react.createElement("div",{className:"settings-page__content-padded"},react.createElement(GenerateUIError,null),react.createElement(GenerateBackgroundError,null),react.createElement(GenerateTrace,null),react.createElement(GeneratePageCrash,{currentLocale:currentLocale})))};var useProfileSyncing=__webpack_require__("./ui/hooks/metamask-notifications/useProfileSyncing/index.ts");function profile_sync_array_like_to_array(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=Array(len);i<len;i++)arr2[i]=arr[i];return arr2}function profile_sync_array_with_holes(arr){if(Array.isArray(arr))return arr}function profile_sync_asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){reject(error);return}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function profile_sync_async_to_generator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){profile_sync_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){profile_sync_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)})}}function profile_sync_iterable_to_array_limit(arr,i){var _s,_e,_i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null!=_i){var _arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}}function profile_sync_non_iterable_rest(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function profile_sync_sliced_to_array(arr,i){return profile_sync_array_with_holes(arr)||profile_sync_iterable_to_array_limit(arr,i)||profile_sync_unsupported_iterable_to_array(arr,i)||profile_sync_non_iterable_rest()}function profile_sync_unsupported_iterable_to_array(o,minLen){if(o){if("string"==typeof o)return profile_sync_array_like_to_array(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if("Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return profile_sync_array_like_to_array(o,minLen)}}function profile_sync_ts_generator(thisArg,body){var f,y,t,g,_={label:0,sent:function(){if(1&t[0])throw t[1];return t[1]},trys:[],ops:[]};return g={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function verb(n){return function(v){return step([n,v])}}function step(op){if(f)throw TypeError("Generator is already executing.");for(;_;)try{if(f=1,y&&(t=2&op[0]?y.return:op[0]?y.throw||((t=y.return)&&t.call(y),0):y.next)&&!(t=t.call(y,op[1])).done)return t;switch(y=0,t&&(op=[2&op[0],t.value]),op[0]){case 0:case 1:t=op;break;case 4:return _.label++,{value:op[1],done:!1};case 5:_.label++,y=op[1],op=[0];continue;case 7:op=_.ops.pop(),_.trys.pop();continue;default:if(!(t=(t=_.trys).length>0&&t[t.length-1])&&(6===op[0]||2===op[0])){_=0;continue}if(3===op[0]&&(!t||op[1]>t[0]&&op[1]<t[3])){_.label=op[1];break}if(6===op[0]&&_.label<t[1]){_.label=t[1],t=op;break}if(t&&_.label<t[2]){_.label=t[2],_.ops.push(op);break}t[2]&&_.ops.pop(),_.trys.pop();continue}op=body.call(thisArg,_)}catch(e){op=[6,e],y=0}finally{f=t=0}if(5&op[0])throw op[1];return{value:op[0]?op[1]:void 0,done:!0}}}var AccountSyncDeleteDataFromUserStorage=function(){var _useState=profile_sync_sliced_to_array((0,react.useState)(!1),2),hasDeletedAccountSyncEntries=_useState[0],setHasDeletedAccountSyncEntries=_useState[1],dispatchDeleteAccountData=(0,useProfileSyncing.$H)().dispatchDeleteAccountData,handleDeleteAccountSyncingDataFromUserStorage=(0,react.useCallback)(profile_sync_async_to_generator(function(){return profile_sync_ts_generator(this,function(_state){switch(_state.label){case 0:return[4,dispatchDeleteAccountData()];case 1:return _state.sent(),setHasDeletedAccountSyncEntries(!0),[2]}})}),[dispatchDeleteAccountData,setHasDeletedAccountSyncEntries]);return react.createElement("div",{className:"settings-page__content-padded"},react.createElement(component_library.az,{className:"settings-page__content-row",display:design_system.nl.Flex,flexDirection:design_system.bo.Row,justifyContent:design_system.A9.spaceBetween,gap:4},react.createElement("div",{className:"settings-page__content-item"},react.createElement("span",null,"Account syncing"),react.createElement("div",{className:"settings-page__content-description"},"Deletes all user storage entries for the current SRP. This can help if you tested Account Syncing early on and have corrupted data. This will not remove internal accounts already created and renamed. If you want to start from scratch with only the first account and restart syncing from this point on, you will need to reinstall the extension after this action.")),react.createElement("div",{className:"settings-page__content-item-col"},react.createElement(component_library.$n,{variant:component_library.Ak.Primary,onClick:handleDeleteAccountSyncingDataFromUserStorage},"Reset")),react.createElement("div",{className:"settings-page__content-item-col"},react.createElement(component_library.az,{display:design_system.nl.Flex,alignItems:design_system.k2.center,paddingLeft:2,paddingRight:2,style:{height:"40px",width:"40px"}},react.createElement(component_library.In,{className:"settings-page-developer-options__icon-check",name:component_library.$M.Check,color:design_system.Li.successDefault,size:component_library.lK.Lg,hidden:!hasDeletedAccountSyncEntries})))))},ProfileSyncDevSettings=function(){return react.createElement(react.Fragment,null,react.createElement(component_library.EY,{className:"settings-page__security-tab-sub-header__bold"},"Profile Sync"),react.createElement(AccountSyncDeleteDataFromUserStorage,null))};function developer_options_tab_array_like_to_array(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=Array(len);i<len;i++)arr2[i]=arr[i];return arr2}function developer_options_tab_array_with_holes(arr){if(Array.isArray(arr))return arr}function developer_options_tab_asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){reject(error);return}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function developer_options_tab_async_to_generator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){developer_options_tab_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){developer_options_tab_asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_next(void 0)})}}function developer_options_tab_iterable_to_array_limit(arr,i){var _s,_e,_i=null==arr?null:"undefined"!=typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"];if(null!=_i){var _arr=[],_n=!0,_d=!1;try{for(_i=_i.call(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{_n||null==_i.return||_i.return()}finally{if(_d)throw _e}}return _arr}}function developer_options_tab_non_iterable_rest(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function developer_options_tab_sliced_to_array(arr,i){return developer_options_tab_array_with_holes(arr)||developer_options_tab_iterable_to_array_limit(arr,i)||developer_options_tab_unsupported_iterable_to_array(arr,i)||developer_options_tab_non_iterable_rest()}function developer_options_tab_unsupported_iterable_to_array(o,minLen){if(o){if("string"==typeof o)return developer_options_tab_array_like_to_array(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if("Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return developer_options_tab_array_like_to_array(o,minLen)}}function developer_options_tab_ts_generator(thisArg,body){var f,y,t,g,_={label:0,sent:function(){if(1&t[0])throw t[1];return t[1]},trys:[],ops:[]};return g={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function verb(n){return function(v){return step([n,v])}}function step(op){if(f)throw TypeError("Generator is already executing.");for(;_;)try{if(f=1,y&&(t=2&op[0]?y.return:op[0]?y.throw||((t=y.return)&&t.call(y),0):y.next)&&!(t=t.call(y,op[1])).done)return t;switch(y=0,t&&(op=[2&op[0],t.value]),op[0]){case 0:case 1:t=op;break;case 4:return _.label++,{value:op[1],done:!1};case 5:_.label++,y=op[1],op=[0];continue;case 7:op=_.ops.pop(),_.trys.pop();continue;default:if(!(t=(t=_.trys).length>0&&t[t.length-1])&&(6===op[0]||2===op[0])){_=0;continue}if(3===op[0]&&(!t||op[1]>t[0]&&op[1]<t[3])){_.label=op[1];break}if(6===op[0]&&_.label<t[1]){_.label=t[1],t=op;break}if(t&&_.label<t[2]){_.label=t[2],_.ops.push(op);break}t[2]&&_.ops.pop(),_.trys.pop();continue}op=body.call(thisArg,_)}catch(e){op=[6,e],y=0}finally{f=t=0}if(5&op[0])throw op[1];return{value:op[0]?op[1]:void 0,done:!0}}}let developer_options_tab=function(){var _ref,_ref1,t=(0,useI18nContext.P)(),dispatch=(0,es.wA)(),history=(0,react_router.W6)(),redesignConfirmationsFeatureToggle=(0,es.d4)(selectors_confirm.q$),_useState=developer_options_tab_sliced_to_array((0,react.useState)(!1),2),hasResetAnnouncements=_useState[0],setHasResetAnnouncements=_useState[1],_useState1=developer_options_tab_sliced_to_array((0,react.useState)(!1),2),hasResetOnboarding=_useState1[0],setHasResetOnboarding=_useState1[1],_useState2=developer_options_tab_sliced_to_array((0,react.useState)(!0),2),isServiceWorkerKeptAlive=_useState2[0],setIsServiceWorkerKeptAlive=_useState2[1],_useState3=developer_options_tab_sliced_to_array((0,react.useState)(redesignConfirmationsFeatureToggle),2),isRedesignedConfirmationsFeatureEnabled=_useState3[0],setIsRedesignedConfirmationsFeatureEnabled=_useState3[1],settingsRefs=Array((0,settings_search.FF)(t,t("developerOptions"))).fill(void 0).map(function(){return react.createRef()});(0,react.useEffect)(function(){(0,settings_search.K8)(t,t("developerOptions"),settingsRefs)},[t,settingsRefs]);var handleResetAnnouncementClick=(0,react.useCallback)(function(){(0,actions.resetViewedNotifications)(),setHasResetAnnouncements(!0)},[]),handleResetOnboardingClick=(0,react.useCallback)(developer_options_tab_async_to_generator(function(){var backUpSRPRoute,platform;return developer_options_tab_ts_generator(this,function(_state){switch(_state.label){case 0:return[4,dispatch((0,actions.resetOnboarding)())];case 1:return _state.sent(),setHasResetOnboarding(!0),backUpSRPRoute="".concat(routes.Yl,"/?isFromReminder=true"),(0,util.mc)()===app.YY?(null==(platform=__webpack_require__.g.platform)?void 0:platform.openExtensionInBrowser)&&(null==platform||platform.openExtensionInBrowser(backUpSRPRoute,null,!0)):history.push(backUpSRPRoute),[2]}})}),[dispatch,history]),handleToggleServiceWorkerAlive=(_ref=developer_options_tab_async_to_generator(function(value){return developer_options_tab_ts_generator(this,function(_state){switch(_state.label){case 0:return[4,dispatch((0,actions.setServiceWorkerKeepAlivePreference)(value))];case 1:return _state.sent(),setIsServiceWorkerKeptAlive(value),[2]}})}),function handleToggleServiceWorkerAlive(value){return _ref.apply(this,arguments)}),setEnableConfirmationsRedesignEnabled=(_ref1=developer_options_tab_async_to_generator(function(value){return developer_options_tab_ts_generator(this,function(_state){switch(_state.label){case 0:return[4,dispatch((0,actions.setRedesignedConfirmationsDeveloperEnabled)(value))];case 1:return _state.sent(),[4,setIsRedesignedConfirmationsFeatureEnabled(value)];case 2:return _state.sent(),[2]}})}),function setEnableConfirmationsRedesignEnabled(value){return _ref1.apply(this,arguments)});return react.createElement("div",{className:"settings-page__body"},react.createElement(component_library.EY,{className:"settings-page__security-tab-sub-header__bold"},"States"),react.createElement(component_library.EY,{className:"settings-page__security-tab-sub-header",color:design_system.r7.textAlternative,paddingTop:6,ref:settingsRefs[0]},"Reset States"),react.createElement("div",{className:"settings-page__content-padded"},react.createElement(component_library.az,{ref:settingsRefs[1],className:"settings-page__content-row",display:design_system.nl.Flex,flexDirection:design_system.bo.Row,justifyContent:design_system.A9.spaceBetween,gap:4},react.createElement("div",{className:"settings-page__content-item"},react.createElement("span",null,"Announcements"),react.createElement("div",{className:"settings-page__content-description"},"Resets isShown boolean to false for all announcements. Announcements are the notifications shown in the What's New popup modal.")),react.createElement("div",{className:"settings-page__content-item-col"},react.createElement(component_library.$n,{variant:component_library.Ak.Primary,onClick:handleResetAnnouncementClick},"Reset")),react.createElement("div",{className:"settings-page__content-item-col"},react.createElement(component_library.az,{display:design_system.nl.Flex,alignItems:design_system.k2.center,paddingLeft:2,paddingRight:2,style:{height:"40px",width:"40px"}},react.createElement(component_library.In,{className:"settings-page-developer-options__icon-check",name:component_library.$M.Check,color:design_system.Li.successDefault,size:component_library.lK.Lg,hidden:!hasResetAnnouncements})))),react.createElement(component_library.az,{ref:settingsRefs[2],className:"settings-page__content-row",display:design_system.nl.Flex,flexDirection:design_system.bo.Row,justifyContent:design_system.A9.spaceBetween,gap:4},react.createElement("div",{className:"settings-page__content-item",style:{flex:"1 1 auto"}},react.createElement("span",null,"Onboarding"),react.createElement("div",{className:"settings-page__content-description"},'Resets various states related to onboarding and redirects to the "Secure Your Wallet" onboarding page.')),react.createElement("div",{className:"settings-page__content-item-col"},react.createElement(component_library.$n,{variant:component_library.Ak.Primary,onClick:handleResetOnboardingClick},"Reset")),react.createElement("div",{className:"settings-page__content-item-col"},react.createElement(component_library.az,{display:design_system.nl.Flex,alignItems:design_system.k2.center,paddingLeft:2,paddingRight:2,style:{height:"40px",width:"40px"}},react.createElement(component_library.In,{className:"settings-page-developer-options__icon-check",name:component_library.$M.Check,color:design_system.Li.successDefault,size:component_library.lK.Lg,hidden:!hasResetOnboarding})))),react.createElement(developer_options_toggle_row_component,{title:"Service Worker Keep Alive",description:"Results in a timestamp being continuously saved to session.storage",isEnabled:isServiceWorkerKeptAlive,onToggle:function(value){return handleToggleServiceWorkerAlive(!value)},dataTestId:"developer-options-service-worker-alive-toggle",settingsRef:settingsRefs[3]}),react.createElement(developer_options_toggle_row_component,{title:"Confirmations Redesign",description:"Enables or disables the confirmations redesign feature currently in development",isEnabled:isRedesignedConfirmationsFeatureEnabled,onToggle:function(value){return setEnableConfirmationsRedesignEnabled(!value)},dataTestId:"developer-options-enable-confirmations-redesign-toggle",settingsRef:settingsRefs[5]})),react.createElement(ProfileSyncDevSettings,null),react.createElement(sentry_test,null))};try{developeroptionstab.displayName="developeroptionstab",developeroptionstab.__docgenInfo={description:"Settings Page for Developer Options (internal-only)\n\nThis page does not need i18n translation support because it's an internal settings page.\nWe only support the t('developerOptions') translation because the general settings architecture\nutilizes the translation key to render.",displayName:"developeroptionstab",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["ui/pages/settings/developer-options-tab/developer-options-tab.tsx#developeroptionstab"]={docgenInfo:developeroptionstab.__docgenInfo,name:"developeroptionstab",path:"ui/pages/settings/developer-options-tab/developer-options-tab.tsx#developeroptionstab"})}catch(__react_docgen_typescript_loader_error){}try{developeroptionstab.displayName="developeroptionstab",developeroptionstab.__docgenInfo={description:"Settings Page for Developer Options (internal-only)\n\nThis page does not need i18n translation support because it's an internal settings page.\nWe only support the t('developerOptions') translation because the general settings architecture\nutilizes the translation key to render.",displayName:"developeroptionstab",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["ui/pages/settings/developer-options-tab/index.tsx#developeroptionstab"]={docgenInfo:developeroptionstab.__docgenInfo,name:"developeroptionstab",path:"ui/pages/settings/developer-options-tab/index.tsx#developeroptionstab"})}catch(__react_docgen_typescript_loader_error){}},"./ui/selectors/metamask-notifications/authentication.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{GB:()=>selectIsSignedIn,eV:()=>selectParticipateInMetaMetrics});var reselect__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/reselect/lib/index.js"),getMetamask=function(state){return state.metamask},selectIsSignedIn=(0,reselect__WEBPACK_IMPORTED_MODULE_0__.Mz)([getMetamask],function(metamask){return metamask.isSignedIn}),selectParticipateInMetaMetrics=(0,reselect__WEBPACK_IMPORTED_MODULE_0__.Mz)([getMetamask],function(metamask){return metamask.participateInMetaMetrics});(0,reselect__WEBPACK_IMPORTED_MODULE_0__.Mz)([getMetamask],function(metamask){return metamask.sessionData})}}]);