{"version":3,"sources":["webpack:///./node_modules/@capacitor-community/sqlite/dist/esm/web.js"],"names":["CapacitorSQLiteWeb","super","arguments","this","jeepSqliteElement","isWebStoreOpen","customElements","whenDefined","document","querySelector","ensureJeepSqliteIsAvailable","addEventListener","event","notifyListeners","detail","isStoreOpen","options","ensureWebstoreIsOpen","saveToStore","err","Error","getFromLocalDiskToStore","saveToLocalDisk","echoResult","echo","createConnection","open","closeConnection","versionResult","getVersion","consistencyResult","checkConnectionsConsistency","close","changes","beginTransaction","commitTransaction","rollbackTransaction","result","isTransactionActive","tableListResult","getTableList","executeResult","execute","executeSet","runResult","run","queryResult","query","dbExistsResult","isDBExists","isDBOpenResult","isDBOpen","isDatabaseResult","isDatabase","tableExistsResult","isTableExists","deleteDatabase","isJsonValidResult","isJsonValid","importFromJsonResult","importFromJson","exportToJsonResult","exportToJson","createSyncTableResult","createSyncTable","setSyncDate","getSyncDateResult","getSyncDate","deleteExportedRows","addUpgradeStatement","copyFromAssets","getFromHTTPRequest","databaseListResult","getDatabaseList","unimplemented","console","log"],"mappings":"gHAAA,0EACO,MAAMA,UAA2B,OACpC,cACIC,SAASC,WACTC,KAAKC,kBAAoB,KACzBD,KAAKE,gBAAiB,EAE1B,2BACUC,eAAeC,YAAY,eACjCJ,KAAKC,kBAAoBI,SAASC,cAAc,eAChDN,KAAKO,8BACLP,KAAKC,kBAAkBO,iBAAiB,2BAA6BC,IACjET,KAAKU,gBAAgB,4BAA6BD,EAAME,UAE5DX,KAAKC,kBAAkBO,iBAAiB,2BAA6BC,IACjET,KAAKU,gBAAgB,4BAA6BD,EAAME,UAE5DX,KAAKC,kBAAkBO,iBAAiB,6BAA+BC,IACnET,KAAKU,gBAAgB,8BAA+BD,EAAME,UAE9DX,KAAKC,kBAAkBO,iBAAiB,8BAAgCC,IACpET,KAAKU,gBAAgB,+BAAgCD,EAAME,UAE/DX,KAAKC,kBAAkBO,iBAAiB,+BAAiCC,IACrET,KAAKU,gBAAgB,gCAAiCD,EAAME,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BAE7B,yBAAyB1D,GAErB,MADA2D,QAAQC,IAAI,qBAAsB5D,GAC5Bb,KAAKuE,cAAc,2BAE7B,wBAAwB1D,GAEpB,MADA2D,QAAQC,IAAI,oBAAqB5D,GAC3Bb,KAAKuE,cAAc,2BAE7B,mBAAmB1D,GAEf,MADA2D,QAAQC,IAAI,eAAgB5D,GACtBb,KAAKuE,cAAc,2BAE7B,0BAA0B1D,GAEtB,MADA2D,QAAQC,IAAI,sBAAuB5D,GAC7Bb,KAAKuE,cAAc,2BAE7B,6BACI,MAAMvE,KAAKuE,cAAc,2BAE7B,gCACI,MAAMvE,KAAKuE,cAAc,2BAE7B,oBAAoB1D,GAEhB,MADA2D,QAAQC,IAAI,gBAAiB5D,GACvBb,KAAKuE,cAAc,2BAE7B,0BAA0B1D,GAEtB,MADA2D,QAAQC,IAAI,sBAAuB5D,GAC7Bb,KAAKuE,cAAc","file":"js/chunk-2d238444.22fae370.js","sourcesContent":["import { WebPlugin } from '@capacitor/core';\nexport class CapacitorSQLiteWeb extends WebPlugin {\n constructor() {\n super(...arguments);\n this.jeepSqliteElement = null;\n this.isWebStoreOpen = false;\n }\n async initWebStore() {\n await customElements.whenDefined('jeep-sqlite');\n this.jeepSqliteElement = document.querySelector('jeep-sqlite');\n this.ensureJeepSqliteIsAvailable();\n this.jeepSqliteElement.addEventListener('jeepSqliteImportProgress', (event) => {\n this.notifyListeners('sqliteImportProgressEvent', event.detail);\n });\n this.jeepSqliteElement.addEventListener('jeepSqliteExportProgress', (event) => {\n this.notifyListeners('sqliteExportProgressEvent', event.detail);\n });\n this.jeepSqliteElement.addEventListener('jeepSqliteHTTPRequestEnded', (event) => {\n this.notifyListeners('sqliteHTTPRequestEndedEvent', event.detail);\n });\n this.jeepSqliteElement.addEventListener('jeepSqlitePickDatabaseEnded', (event) => {\n this.notifyListeners('sqlitePickDatabaseEndedEvent', event.detail);\n });\n this.jeepSqliteElement.addEventListener('jeepSqliteSaveDatabaseToDisk', (event) => {\n this.notifyListeners('sqliteSaveDatabaseToDiskEvent', event.detail);\n });\n if (!this.isWebStoreOpen) {\n this.isWebStoreOpen = await this.jeepSqliteElement.isStoreOpen();\n }\n return;\n }\n async saveToStore(options) {\n this.ensureJeepSqliteIsAvailable();\n this.ensureWebstoreIsOpen();\n try {\n await this.jeepSqliteElement.saveToStore(options);\n return;\n }\n catch (err) {\n throw new Error(`${err}`);\n }\n }\n async getFromLocalDiskToStore(options) {\n this.ensureJeepSqliteIsAvailable();\n this.ensureWebstoreIsOpen();\n try {\n await this.jeepSqliteElement.getFromLocalDiskToStore(options);\n return;\n }\n catch (err) {\n throw new Error(`${err}`);\n }\n }\n async saveToLocalDisk(options) {\n this.ensureJeepSqliteIsAvailable();\n this.ensureWebstoreIsOpen();\n try {\n await this.jeepSqliteElement.saveToLocalDisk(options);\n return;\n }\n catch (err) {\n throw new Error(`${err}`);\n }\n }\n async echo(options) {\n this.ensureJeepSqliteIsAvailable();\n const echoResult = await this.jeepSqliteElement.echo(options);\n return echoResult;\n }\n async createConnection(options) {\n this.ensureJeepSqliteIsAvailable();\n this.ensureWebstoreIsOpen();\n try {\n await this.jeepSqliteElement.createConnection(options);\n return;\n }\n catch (err) {\n throw new Error(`${err}`);\n }\n }\n async open(options) {\n this.ensureJeepSqliteIsAvailable();\n this.ensureWebstoreIsOpen();\n try {\n await this.jeepSqliteElement.open(options);\n return;\n }\n catch (err) {\n throw new Error(`${err}`);\n }\n }\n async closeConnection(options) {\n this.ensureJeepSqliteIsAvailable();\n this.ensureWebstoreIsOpen();\n try {\n await this.jeepSqliteElement.closeConnection(options);\n return;\n }\n catch (err) {\n throw new Error(`${err}`);\n }\n }\n async getVersion(options) {\n this.ensureJeepSqliteIsAvailable();\n this.ensureWebstoreIsOpen();\n try {\n const versionResult = await this.jeepSqliteElement.getVersion(options);\n return versionResult;\n }\n catch (err) {\n throw new Error(`${err}`);\n }\n }\n async checkConnectionsConsistency(options) {\n this.ensureJeepSqliteIsAvailable();\n try {\n const consistencyResult = await this.jeepSqliteElement.checkConnectionsConsistency(options);\n return consistencyResult;\n }\n catch (err) {\n throw new Error(`${err}`);\n }\n }\n async close(options) {\n this.ensureJeepSqliteIsAvailable();\n this.ensureWebstoreIsOpen();\n try {\n await this.jeepSqliteElement.close(options);\n return;\n }\n catch (err) {\n throw new Error(`${err}`);\n }\n }\n async beginTransaction(options) {\n this.ensureJeepSqliteIsAvailable();\n this.ensureWebstoreIsOpen();\n try {\n const changes = await this.jeepSqliteElement.beginTransaction(options);\n return changes;\n }\n catch (err) {\n throw new Error(`${err}`);\n }\n }\n async commitTransaction(options) {\n this.ensureJeepSqliteIsAvailable();\n this.ensureWebstoreIsOpen();\n try {\n const changes = await this.jeepSqliteElement.commitTransaction(options);\n return changes;\n }\n catch (err) {\n throw new Error(`${err}`);\n }\n }\n async rollbackTransaction(options) {\n this.ensureJeepSqliteIsAvailable();\n this.ensureWebstoreIsOpen();\n try {\n const changes = await this.jeepSqliteElement.rollbackTransaction(options);\n return changes;\n }\n catch (err) {\n throw new Error(`${err}`);\n }\n }\n async isTransactionActive(options) {\n this.ensureJeepSqliteIsAvailable();\n this.ensureWebstoreIsOpen();\n try {\n const result = await this.jeepSqliteElement.isTransactionActive(options);\n return result;\n }\n catch (err) {\n throw new Error(`${err}`);\n }\n }\n async getTableList(options) {\n this.ensureJeepSqliteIsAvailable();\n this.ensureWebstoreIsOpen();\n try {\n const tableListResult = await this.jeepSqliteElement.getTableList(options);\n return tableListResult;\n }\n catch (err) {\n throw new Error(`${err}`);\n }\n }\n async execute(options) {\n this.ensureJeepSqliteIsAvailable();\n this.ensureWebstoreIsOpen();\n try {\n const executeResult = await this.jeepSqliteElement.execute(options);\n return executeResult;\n }\n catch (err) {\n throw new Error(`${err}`);\n }\n }\n async executeSet(options) {\n this.ensureJeepSqliteIsAvailable();\n this.ensureWebstoreIsOpen();\n try {\n const executeResult = await this.jeepSqliteElement.executeSet(options);\n return executeResult;\n }\n catch (err) {\n throw new Error(`${err}`);\n }\n }\n async run(options) {\n this.ensureJeepSqliteIsAvailable();\n this.ensureWebstoreIsOpen();\n try {\n const runResult = await this.jeepSqliteElement.run(options);\n return runResult;\n }\n catch (err) {\n throw new Error(`${err}`);\n }\n }\n async query(options) {\n this.ensureJeepSqliteIsAvailable();\n this.ensureWebstoreIsOpen();\n try {\n const queryResult = await this.jeepSqliteElement.query(options);\n return queryResult;\n }\n catch (err) {\n throw new Error(`${err}`);\n }\n }\n async isDBExists(options) {\n this.ensureJeepSqliteIsAvailable();\n this.ensureWebstoreIsOpen();\n try {\n const dbExistsResult = await this.jeepSqliteElement.isDBExists(options);\n return dbExistsResult;\n }\n catch (err) {\n throw new Error(`${err}`);\n }\n }\n async isDBOpen(options) {\n this.ensureJeepSqliteIsAvailable();\n this.ensureWebstoreIsOpen();\n try {\n const isDBOpenResult = await this.jeepSqliteElement.isDBOpen(options);\n return isDBOpenResult;\n }\n catch (err) {\n throw new Error(`${err}`);\n }\n }\n async isDatabase(options) {\n this.ensureJeepSqliteIsAvailable();\n this.ensureWebstoreIsOpen();\n try {\n const isDatabaseResult = await this.jeepSqliteElement.isDatabase(options);\n return isDatabaseResult;\n }\n catch (err) {\n throw new Error(`${err}`);\n }\n }\n async isTableExists(options) {\n this.ensureJeepSqliteIsAvailable();\n this.ensureWebstoreIsOpen();\n try {\n const tableExistsResult = await this.jeepSqliteElement.isTableExists(options);\n return tableExistsResult;\n }\n catch (err) {\n throw new Error(`${err}`);\n }\n }\n async deleteDatabase(options) {\n this.ensureJeepSqliteIsAvailable();\n this.ensureWebstoreIsOpen();\n try {\n await this.jeepSqliteElement.deleteDatabase(options);\n return;\n }\n catch (err) {\n throw new Error(`${err}`);\n }\n }\n async isJsonValid(options) {\n this.ensureJeepSqliteIsAvailable();\n this.ensureWebstoreIsOpen();\n try {\n const isJsonValidResult = await this.jeepSqliteElement.isJsonValid(options);\n return isJsonValidResult;\n }\n catch (err) {\n throw new Error(`${err}`);\n }\n }\n async importFromJson(options) {\n this.ensureJeepSqliteIsAvailable();\n this.ensureWebstoreIsOpen();\n try {\n const importFromJsonResult = await this.jeepSqliteElement.importFromJson(options);\n return importFromJsonResult;\n }\n catch (err) {\n throw new Error(`${err}`);\n }\n }\n async exportToJson(options) {\n this.ensureJeepSqliteIsAvailable();\n this.ensureWebstoreIsOpen();\n try {\n const exportToJsonResult = await this.jeepSqliteElement.exportToJson(options);\n return exportToJsonResult;\n }\n catch (err) {\n throw new Error(`${err}`);\n }\n }\n async createSyncTable(options) {\n this.ensureJeepSqliteIsAvailable();\n this.ensureWebstoreIsOpen();\n try {\n const createSyncTableResult = await this.jeepSqliteElement.createSyncTable(options);\n return createSyncTableResult;\n }\n catch (err) {\n throw new Error(`${err}`);\n }\n }\n async setSyncDate(options) {\n this.ensureJeepSqliteIsAvailable();\n this.ensureWebstoreIsOpen();\n try {\n await this.jeepSqliteElement.setSyncDate(options);\n return;\n }\n catch (err) {\n throw new Error(`${err}`);\n }\n }\n async getSyncDate(options) {\n this.ensureJeepSqliteIsAvailable();\n this.ensureWebstoreIsOpen();\n try {\n const getSyncDateResult = await this.jeepSqliteElement.getSyncDate(options);\n return getSyncDateResult;\n }\n catch (err) {\n throw new Error(`${err}`);\n }\n }\n async deleteExportedRows(options) {\n this.ensureJeepSqliteIsAvailable();\n this.ensureWebstoreIsOpen();\n try {\n await this.jeepSqliteElement.deleteExportedRows(options);\n return;\n }\n catch (err) {\n throw new Error(`${err}`);\n }\n }\n async addUpgradeStatement(options) {\n this.ensureJeepSqliteIsAvailable();\n this.ensureWebstoreIsOpen();\n try {\n await this.jeepSqliteElement.addUpgradeStatement(options);\n return;\n }\n catch (err) {\n throw new Error(`${err}`);\n }\n }\n async copyFromAssets(options) {\n this.ensureJeepSqliteIsAvailable();\n this.ensureWebstoreIsOpen();\n try {\n await this.jeepSqliteElement.copyFromAssets(options);\n return;\n }\n catch (err) {\n throw new Error(`${err}`);\n }\n }\n async getFromHTTPRequest(options) {\n this.ensureJeepSqliteIsAvailable();\n this.ensureWebstoreIsOpen();\n try {\n await this.jeepSqliteElement.getFromHTTPRequest(options);\n return;\n }\n catch (err) {\n throw new Error(`${err}`);\n }\n }\n async getDatabaseList() {\n this.ensureJeepSqliteIsAvailable();\n this.ensureWebstoreIsOpen();\n try {\n const databaseListResult = await this.jeepSqliteElement.getDatabaseList();\n return databaseListResult;\n }\n catch (err) {\n throw new Error(`${err}`);\n }\n }\n /**\n * Checks if the `jeep-sqlite` element is present in the DOM.\n * If it's not in the DOM, this method throws an Error.\n *\n * Attention: This will always fail, if the `intWebStore()` method wasn't called before.\n */\n ensureJeepSqliteIsAvailable() {\n if (this.jeepSqliteElement === null) {\n throw new Error(`The jeep-sqlite element is not present in the DOM! Please check the @capacitor-community/sqlite documentation for instructions regarding the web platform.`);\n }\n }\n ensureWebstoreIsOpen() {\n if (!this.isWebStoreOpen) {\n /**\n * if (!this.isWebStoreOpen)\n this.isWebStoreOpen = await this.jeepSqliteElement.isStoreOpen();\n */\n throw new Error('WebStore is not open yet. You have to call \"initWebStore()\" first.');\n }\n }\n ////////////////////////////////////\n ////// UNIMPLEMENTED METHODS\n ////////////////////////////////////\n async getUrl() {\n throw this.unimplemented('Not implemented on web.');\n }\n async getMigratableDbList(options) {\n console.log('getMigratableDbList', options);\n throw this.unimplemented('Not implemented on web.');\n }\n async addSQLiteSuffix(options) {\n console.log('addSQLiteSuffix', options);\n throw this.unimplemented('Not implemented on web.');\n }\n async deleteOldDatabases(options) {\n console.log('deleteOldDatabases', options);\n throw this.unimplemented('Not implemented on web.');\n }\n async moveDatabasesAndAddSuffix(options) {\n console.log('moveDatabasesAndAddSuffix', options);\n throw this.unimplemented('Not implemented on web.');\n }\n async isSecretStored() {\n throw this.unimplemented('Not implemented on web.');\n }\n async setEncryptionSecret(options) {\n console.log('setEncryptionSecret', options);\n throw this.unimplemented('Not implemented on web.');\n }\n async changeEncryptionSecret(options) {\n console.log('changeEncryptionSecret', options);\n throw this.unimplemented('Not implemented on web.');\n }\n async clearEncryptionSecret() {\n console.log('clearEncryptionSecret');\n throw this.unimplemented('Not implemented on web.');\n }\n async checkEncryptionSecret(options) {\n console.log('checkEncryptionPassPhrase', options);\n throw this.unimplemented('Not implemented on web.');\n }\n async getNCDatabasePath(options) {\n console.log('getNCDatabasePath', options);\n throw this.unimplemented('Not implemented on web.');\n }\n async createNCConnection(options) {\n console.log('createNCConnection', options);\n throw this.unimplemented('Not implemented on web.');\n }\n async closeNCConnection(options) {\n console.log('closeNCConnection', options);\n throw this.unimplemented('Not implemented on web.');\n }\n async isNCDatabase(options) {\n console.log('isNCDatabase', options);\n throw this.unimplemented('Not implemented on web.');\n }\n async isDatabaseEncrypted(options) {\n console.log('isDatabaseEncrypted', options);\n throw this.unimplemented('Not implemented on web.');\n }\n async isInConfigEncryption() {\n throw this.unimplemented('Not implemented on web.');\n }\n async isInConfigBiometricAuth() {\n throw this.unimplemented('Not implemented on web.');\n }\n async loadExtension(options) {\n console.log('loadExtension', options);\n throw this.unimplemented('Not implemented on web.');\n }\n async enableLoadExtension(options) {\n console.log('enableLoadExtension', options);\n throw this.unimplemented('Not implemented on web.');\n }\n}\n//# sourceMappingURL=web.js.map"],"sourceRoot":""}