86faa5e4e276975fc4d0102d95e100cb07aa11fb55dac02ac1ad2eff374f772b.json raw

   1  {"ast":null,"code":"import _asyncToGenerator from \"/home/mleku/src/orly.dev/next/signer/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js\";\n/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { BrowserSyncHandler } from '@common';\nimport browser from 'webextension-polyfill';\n/**\n * Handles the browser sync operations when the browser sync is enabled.\n * If it's not enabled, it behaves like the local extension storage (which is fine).\n */\nexport class FirefoxSyncYesHandler extends BrowserSyncHandler {\n  loadUnmigratedData() {\n    return _asyncToGenerator(function* () {\n      return yield browser.storage.sync.get(null);\n    })();\n  }\n  saveAndSetFullData(data) {\n    var _this = this;\n    return _asyncToGenerator(function* () {\n      yield browser.storage.sync.set(data);\n      _this.setFullData(data);\n    })();\n  }\n  saveAndSetPartialData_Permissions(data) {\n    var _this2 = this;\n    return _asyncToGenerator(function* () {\n      yield browser.storage.sync.set(data);\n      _this2.setPartialData_Permissions(data);\n    })();\n  }\n  saveAndSetPartialData_Identities(data) {\n    var _this3 = this;\n    return _asyncToGenerator(function* () {\n      yield browser.storage.sync.set(data);\n      _this3.setPartialData_Identities(data);\n    })();\n  }\n  saveAndSetPartialData_SelectedIdentityId(data) {\n    var _this4 = this;\n    return _asyncToGenerator(function* () {\n      yield browser.storage.sync.set(data);\n      _this4.setPartialData_SelectedIdentityId(data);\n    })();\n  }\n  saveAndSetPartialData_Relays(data) {\n    var _this5 = this;\n    return _asyncToGenerator(function* () {\n      yield browser.storage.sync.set(data);\n      _this5.setPartialData_Relays(data);\n    })();\n  }\n  saveAndSetPartialData_NwcConnections(data) {\n    var _this6 = this;\n    return _asyncToGenerator(function* () {\n      yield browser.storage.sync.set(data);\n      _this6.setPartialData_NwcConnections(data);\n    })();\n  }\n  saveAndSetPartialData_CashuMints(data) {\n    var _this7 = this;\n    return _asyncToGenerator(function* () {\n      yield browser.storage.sync.set(data);\n      _this7.setPartialData_CashuMints(data);\n    })();\n  }\n  clearData() {\n    return _asyncToGenerator(function* () {\n      yield browser.storage.sync.clear();\n    })();\n  }\n}","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}