mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 06:31:03 +00:00
1 line
28 KiB
Plaintext
1 line
28 KiB
Plaintext
{"dependencies":[{"name":"expo-secure-store","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":6,"column":0,"index":104},"end":{"line":6,"column":49,"index":153}}],"key":"BU2XtfznZ4PiVldqd/oueHCCaLo=","exportNames":["*"],"imports":1}},{"name":"./blockchain","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":8,"column":0,"index":242},"end":{"line":8,"column":49,"index":291}}],"key":"WHC/Ldc5Bl2ThjZC1c8RhdYeA2E=","exportNames":["*"],"imports":1}}],"output":[{"data":{"code":"__d(function (global, require, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {\n \"use strict\";\n\n Object.defineProperty(exports, '__esModule', {\n value: true\n });\n function _interopNamespace(e) {\n if (e && e.__esModule) return e;\n var n = {};\n if (e) Object.keys(e).forEach(function (k) {\n var d = Object.getOwnPropertyDescriptor(e, k);\n Object.defineProperty(n, k, d.get ? d : {\n enumerable: true,\n get: function () {\n return e[k];\n }\n });\n });\n n.default = e;\n return n;\n }\n Object.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function () {\n return _default;\n }\n });\n Object.defineProperty(exports, \"kycService\", {\n enumerable: true,\n get: function () {\n return kycService;\n }\n });\n var _expoSecureStore = require(_dependencyMap[0], \"expo-secure-store\");\n var SecureStore = _interopNamespace(_expoSecureStore);\n var _blockchain = require(_dependencyMap[1], \"./blockchain\");\n /**\n * KYC Service\n * Handles Identity-KYC form submission, encryption, and blockchain interaction\n */\n\n const KYC_DATA_KEY = 'pezkuwi_kyc_data';\n const CITIZEN_DATA_KEY = 'pezkuwi_citizen_data';\n const KYC_STATUS_KEY = 'pezkuwi_kyc_status';\n class KYCService {\n /**\n * Generate hash from KYC data\n * This hash will be submitted to blockchain\n */\n async generateHash(data) {\n // In production, use proper cryptographic hash (SHA-256)\n const dataString = JSON.stringify(data);\n\n // Simple hash for development (replace with proper crypto in production)\n let hash = 0;\n for (let i = 0; i < dataString.length; i++) {\n const char = dataString.charCodeAt(i);\n hash = (hash << 5) - hash + char;\n hash = hash & hash;\n }\n return `0x${Math.abs(hash).toString(16).padStart(64, '0')}`;\n }\n\n /**\n * Save KYC form data locally (encrypted)\n */\n async saveKYCData(data) {\n try {\n const encrypted = JSON.stringify(data);\n await SecureStore.setItemAsync(KYC_DATA_KEY, encrypted);\n console.log('✅ KYC data saved locally (encrypted)');\n } catch (error) {\n console.error('❌ Failed to save KYC data:', error);\n throw error;\n }\n }\n\n /**\n * Get saved KYC data\n */\n async getKYCData() {\n try {\n const encrypted = await SecureStore.getItemAsync(KYC_DATA_KEY);\n if (!encrypted) return null;\n return JSON.parse(encrypted);\n } catch (error) {\n console.error('❌ Failed to get KYC data:', error);\n return null;\n }\n }\n\n /**\n * Submit KYC to blockchain\n * Only hash is sent, not the actual data\n */\n async submitKYC(data, signer) {\n try {\n // 1. Save data locally first\n await this.saveKYCData(data);\n\n // 2. Generate hash\n const dataHash = await this.generateHash(data);\n console.log('📝 Generated KYC hash:', dataHash);\n\n // 3. Submit hash to blockchain (identity-kyc pallet)\n // TODO: Replace with actual blockchain call when testnet is active\n const txHash = await this.submitHashToBlockchain(dataHash, signer);\n const submission = {\n dataHash,\n submittedAt: Date.now(),\n txHash\n };\n\n // 4. Update KYC status\n await this.updateKYCStatus({\n started: true,\n submitted: true,\n approved: false\n });\n console.log('✅ KYC submitted to blockchain');\n return submission;\n } catch (error) {\n console.error('❌ Failed to submit KYC:', error);\n throw error;\n }\n }\n\n /**\n * Submit hash to blockchain (identity-kyc pallet)\n */\n async submitHashToBlockchain(dataHash, signer) {\n try {\n // Check if blockchain is connected\n if (!_blockchain.blockchainService.isApiConnected()) {\n console.log('⚠️ Blockchain not connected, using mock submission');\n // Mock transaction hash for development\n return `0x${Math.random().toString(16).substr(2, 64)}`;\n }\n\n // TODO: Actual blockchain submission\n // const api = blockchainService.getApi();\n // const tx = api.tx.identityKyc.submitKyc(dataHash);\n // const hash = await tx.signAndSend(signer);\n // return hash.toString();\n\n // Mock for now\n return `0x${Math.random().toString(16).substr(2, 64)}`;\n } catch (error) {\n console.error('❌ Failed to submit to blockchain:', error);\n throw error;\n }\n }\n\n /**\n * Check KYC approval status on blockchain\n */\n async checkApprovalStatus(address) {\n try {\n // TODO: Query blockchain for approval status\n // const api = blockchainService.getApi();\n // const approval = await api.query.identityKyc.approvals(address);\n // return approval.isSome;\n\n // Mock: Auto-approve after 5 seconds (for development)\n const status = await this.getKYCStatus();\n if (status.submitted) {\n const timeSinceSubmission = Date.now() - (status.citizen?.approvedAt || 0);\n return timeSinceSubmission > 5000; // 5 seconds\n }\n return false;\n } catch (error) {\n console.error('❌ Failed to check approval status:', error);\n return false;\n }\n }\n\n /**\n * Generate Kurdistan Digital Citizen certificate\n * Called after KYC is approved on blockchain\n */\n async generateCitizen(data, dataHash) {\n try {\n // Generate unique Citizen ID\n const citizenId = `KRD-${Date.now()}-${Math.random().toString(36).substr(2, 9).toUpperCase()}`;\n\n // Generate QR code data\n const qrData = JSON.stringify({\n citizenId,\n name: data.fullName,\n region: data.region,\n hash: dataHash\n });\n const citizen = {\n citizenId,\n fullName: data.fullName,\n photo: data.photo || '',\n region: data.region,\n kycApproved: true,\n approvedAt: Date.now(),\n dataHash,\n qrCode: qrData\n };\n\n // Save citizen data locally (encrypted)\n await SecureStore.setItemAsync(CITIZEN_DATA_KEY, JSON.stringify(citizen));\n\n // Update KYC status\n await this.updateKYCStatus({\n started: true,\n submitted: true,\n approved: true,\n citizen\n });\n console.log('✅ Kurdistan Digital Citizen generated:', citizenId);\n return citizen;\n } catch (error) {\n console.error('❌ Failed to generate citizen:', error);\n throw error;\n }\n }\n\n /**\n * Get citizen data\n */\n async getCitizen() {\n try {\n const data = await SecureStore.getItemAsync(CITIZEN_DATA_KEY);\n if (!data) return null;\n return JSON.parse(data);\n } catch (error) {\n console.error('❌ Failed to get citizen data:', error);\n return null;\n }\n }\n\n /**\n * Get KYC status\n */\n async getKYCStatus() {\n try {\n const statusData = await SecureStore.getItemAsync(KYC_STATUS_KEY);\n if (!statusData) {\n return {\n started: false,\n submitted: false,\n approved: false\n };\n }\n return JSON.parse(statusData);\n } catch (error) {\n console.error('❌ Failed to get KYC status:', error);\n return {\n started: false,\n submitted: false,\n approved: false\n };\n }\n }\n\n /**\n * Update KYC status\n */\n async updateKYCStatus(status) {\n try {\n await SecureStore.setItemAsync(KYC_STATUS_KEY, JSON.stringify(status));\n } catch (error) {\n console.error('❌ Failed to update KYC status:', error);\n }\n }\n\n /**\n * Check if user has access to Governance\n */\n async hasGovernanceAccess() {\n const status = await this.getKYCStatus();\n return status.approved;\n }\n\n /**\n * Clear all KYC data (for testing)\n */\n async clearKYCData() {\n try {\n await SecureStore.deleteItemAsync(KYC_DATA_KEY);\n await SecureStore.deleteItemAsync(CITIZEN_DATA_KEY);\n await SecureStore.deleteItemAsync(KYC_STATUS_KEY);\n console.log('✅ KYC data cleared');\n } catch (error) {\n console.error('❌ Failed to clear KYC data:', error);\n }\n }\n }\n const kycService = new KYCService();\n var _default = kycService;\n});","lineCount":295,"map":[[22,2,261,0,"Object"],[22,8,261,0],[22,9,261,0,"defineProperty"],[22,23,261,0],[22,24,261,0,"exports"],[22,31,261,0],[23,4,261,0,"enumerable"],[23,14,261,0],[24,4,261,0,"get"],[24,7,261,0],[24,18,261,0,"get"],[24,19,261,0],[25,6,261,0],[25,13,261,0,"_default"],[25,21,261,0],[26,4,261,0],[27,2,261,0],[28,2,260,0,"Object"],[28,8,260,0],[28,9,260,0,"defineProperty"],[28,23,260,0],[28,24,260,0,"exports"],[28,31,260,0],[29,4,260,0,"enumerable"],[29,14,260,0],[30,4,260,0,"get"],[30,7,260,0],[30,18,260,0,"get"],[30,19,260,0],[31,6,260,0],[31,13,260,0,"kycService"],[31,23,260,0],[32,4,260,0],[33,2,260,0],[34,2,6,0],[34,6,6,0,"_expoSecureStore"],[34,22,6,0],[34,25,6,0,"require"],[34,32,6,0],[34,33,6,0,"_dependencyMap"],[34,47,6,0],[35,2,6,0],[35,6,6,0,"SecureStore"],[35,17,6,0],[35,20,6,0,"_interopNamespace"],[35,37,6,0],[35,38,6,0,"_expoSecureStore"],[35,54,6,0],[36,2,8,0],[36,6,8,0,"_blockchain"],[36,17,8,0],[36,20,8,0,"require"],[36,27,8,0],[36,28,8,0,"_dependencyMap"],[36,42,8,0],[37,2,1,0],[38,0,2,0],[39,0,3,0],[40,0,4,0],[42,2,10,0],[42,8,10,6,"KYC_DATA_KEY"],[42,20,10,18],[42,23,10,21],[42,41,10,39],[43,2,11,0],[43,8,11,6,"CITIZEN_DATA_KEY"],[43,24,11,22],[43,27,11,25],[43,49,11,47],[44,2,12,0],[44,8,12,6,"KYC_STATUS_KEY"],[44,22,12,20],[44,25,12,23],[44,45,12,43],[45,2,14,0],[45,8,14,6,"KYCService"],[45,18,14,16],[45,19,14,17],[46,4,15,2],[47,0,16,0],[48,0,17,0],[49,0,18,0],[50,4,19,2],[50,10,19,16,"generateHash"],[50,22,19,28,"generateHash"],[50,23,19,29,"data"],[50,27,19,46],[50,29,19,65],[51,6,20,4],[52,6,21,4],[52,12,21,10,"dataString"],[52,22,21,20],[52,25,21,23,"JSON"],[52,29,21,27],[52,30,21,28,"stringify"],[52,39,21,37],[52,40,21,38,"data"],[52,44,21,42],[52,45,21,43],[54,6,23,4],[55,6,24,4],[55,10,24,8,"hash"],[55,14,24,12],[55,17,24,15],[55,18,24,16],[56,6,25,4],[56,11,25,9],[56,15,25,13,"i"],[56,16,25,14],[56,19,25,17],[56,20,25,18],[56,22,25,20,"i"],[56,23,25,21],[56,26,25,24,"dataString"],[56,36,25,34],[56,37,25,35,"length"],[56,43,25,41],[56,45,25,43,"i"],[56,46,25,44],[56,48,25,46],[56,50,25,48],[57,8,26,6],[57,14,26,12,"char"],[57,18,26,16],[57,21,26,19,"dataString"],[57,31,26,29],[57,32,26,30,"charCodeAt"],[57,42,26,40],[57,43,26,41,"i"],[57,44,26,42],[57,45,26,43],[58,8,27,6,"hash"],[58,12,27,10],[58,15,27,13],[58,16,27,14,"hash"],[58,20,27,18],[58,24,27,22],[58,25,27,23],[58,29,27,27,"hash"],[58,33,27,31],[58,36,27,34,"char"],[58,40,27,38],[59,8,28,6,"hash"],[59,12,28,10],[59,15,28,13,"hash"],[59,19,28,17],[59,22,28,20,"hash"],[59,26,28,24],[60,6,29,4],[61,6,31,4],[61,13,31,11],[61,18,31,16,"Math"],[61,22,31,20],[61,23,31,21,"abs"],[61,26,31,24],[61,27,31,25,"hash"],[61,31,31,29],[61,32,31,30],[61,33,31,31,"toString"],[61,41,31,39],[61,42,31,40],[61,44,31,42],[61,45,31,43],[61,46,31,44,"padStart"],[61,54,31,52],[61,55,31,53],[61,57,31,55],[61,59,31,57],[61,62,31,60],[61,63,31,61],[61,65,31,63],[62,4,32,2],[64,4,34,2],[65,0,35,0],[66,0,36,0],[67,4,37,2],[67,10,37,8,"saveKYCData"],[67,21,37,19,"saveKYCData"],[67,22,37,20,"data"],[67,26,37,37],[67,28,37,54],[68,6,38,4],[68,10,38,8],[69,8,39,6],[69,14,39,12,"encrypted"],[69,23,39,21],[69,26,39,24,"JSON"],[69,30,39,28],[69,31,39,29,"stringify"],[69,40,39,38],[69,41,39,39,"data"],[69,45,39,43],[69,46,39,44],[70,8,40,6],[70,14,40,12,"SecureStore"],[70,25,40,23],[70,26,40,24,"setItemAsync"],[70,38,40,36],[70,39,40,37,"KYC_DATA_KEY"],[70,51,40,49],[70,53,40,51,"encrypted"],[70,62,40,60],[70,63,40,61],[71,8,41,6,"console"],[71,15,41,13],[71,16,41,14,"log"],[71,19,41,17],[71,20,41,18],[71,58,41,56],[71,59,41,57],[72,6,42,4],[72,7,42,5],[72,8,42,6],[72,15,42,13,"error"],[72,20,42,18],[72,22,42,20],[73,8,43,6,"console"],[73,15,43,13],[73,16,43,14,"error"],[73,21,43,19],[73,22,43,20],[73,50,43,48],[73,52,43,50,"error"],[73,57,43,55],[73,58,43,56],[74,8,44,6],[74,14,44,12,"error"],[74,19,44,17],[75,6,45,4],[76,4,46,2],[78,4,48,2],[79,0,49,0],[80,0,50,0],[81,4,51,2],[81,10,51,8,"getKYCData"],[81,20,51,18,"getKYCData"],[81,21,51,18],[81,23,51,50],[82,6,52,4],[82,10,52,8],[83,8,53,6],[83,14,53,12,"encrypted"],[83,23,53,21],[83,26,53,24],[83,32,53,30,"SecureStore"],[83,43,53,41],[83,44,53,42,"getItemAsync"],[83,56,53,54],[83,57,53,55,"KYC_DATA_KEY"],[83,69,53,67],[83,70,53,68],[84,8,54,6],[84,12,54,10],[84,13,54,11,"encrypted"],[84,22,54,20],[84,24,54,22],[84,31,54,29],[84,35,54,33],[85,8,56,6],[85,15,56,13,"JSON"],[85,19,56,17],[85,20,56,18,"parse"],[85,25,56,23],[85,26,56,24,"encrypted"],[85,35,56,33],[85,36,56,34],[86,6,57,4],[86,7,57,5],[86,8,57,6],[86,15,57,13,"error"],[86,20,57,18],[86,22,57,20],[87,8,58,6,"console"],[87,15,58,13],[87,16,58,14,"error"],[87,21,58,19],[87,22,58,20],[87,49,58,47],[87,51,58,49,"error"],[87,56,58,54],[87,57,58,55],[88,8,59,6],[88,15,59,13],[88,19,59,17],[89,6,60,4],[90,4,61,2],[92,4,63,2],[93,0,64,0],[94,0,65,0],[95,0,66,0],[96,4,67,2],[96,10,67,8,"submitKYC"],[96,19,67,17,"submitKYC"],[96,20,67,18,"data"],[96,24,67,35],[96,26,67,37,"signer"],[96,32,67,48],[96,34,67,74],[97,6,68,4],[97,10,68,8],[98,8,69,6],[99,8,70,6],[99,14,70,12],[99,18,70,16],[99,19,70,17,"saveKYCData"],[99,30,70,28],[99,31,70,29,"data"],[99,35,70,33],[99,36,70,34],[101,8,72,6],[102,8,73,6],[102,14,73,12,"dataHash"],[102,22,73,20],[102,25,73,23],[102,31,73,29],[102,35,73,33],[102,36,73,34,"generateHash"],[102,48,73,46],[102,49,73,47,"data"],[102,53,73,51],[102,54,73,52],[103,8,74,6,"console"],[103,15,74,13],[103,16,74,14,"log"],[103,19,74,17],[103,20,74,18],[103,44,74,42],[103,46,74,44,"dataHash"],[103,54,74,52],[103,55,74,53],[105,8,76,6],[106,8,77,6],[107,8,78,6],[107,14,78,12,"txHash"],[107,20,78,18],[107,23,78,21],[107,29,78,27],[107,33,78,31],[107,34,78,32,"submitHashToBlockchain"],[107,56,78,54],[107,57,78,55,"dataHash"],[107,65,78,63],[107,67,78,65,"signer"],[107,73,78,71],[107,74,78,72],[108,8,80,6],[108,14,80,12,"submission"],[108,24,80,37],[108,27,80,40],[109,10,81,8,"dataHash"],[109,18,81,16],[110,10,82,8,"submittedAt"],[110,21,82,19],[110,23,82,21,"Date"],[110,27,82,25],[110,28,82,26,"now"],[110,31,82,29],[110,32,82,30],[110,33,82,31],[111,10,83,8,"txHash"],[112,8,84,6],[112,9,84,7],[114,8,86,6],[115,8,87,6],[115,14,87,12],[115,18,87,16],[115,19,87,17,"updateKYCStatus"],[115,34,87,32],[115,35,87,33],[116,10,87,35,"started"],[116,17,87,42],[116,19,87,44],[116,23,87,48],[117,10,87,50,"submitted"],[117,19,87,59],[117,21,87,61],[117,25,87,65],[118,10,87,67,"approved"],[118,18,87,75],[118,20,87,77],[119,8,87,83],[119,9,87,84],[119,10,87,85],[120,8,89,6,"console"],[120,15,89,13],[120,16,89,14,"log"],[120,19,89,17],[120,20,89,18],[120,51,89,49],[120,52,89,50],[121,8,90,6],[121,15,90,13,"submission"],[121,25,90,23],[122,6,91,4],[122,7,91,5],[122,8,91,6],[122,15,91,13,"error"],[122,20,91,18],[122,22,91,20],[123,8,92,6,"console"],[123,15,92,13],[123,16,92,14,"error"],[123,21,92,19],[123,22,92,20],[123,47,92,45],[123,49,92,47,"error"],[123,54,92,52],[123,55,92,53],[124,8,93,6],[124,14,93,12,"error"],[124,19,93,17],[125,6,94,4],[126,4,95,2],[128,4,97,2],[129,0,98,0],[130,0,99,0],[131,4,100,2],[131,10,100,16,"submitHashToBlockchain"],[131,32,100,38,"submitHashToBlockchain"],[131,33,100,39,"dataHash"],[131,41,100,55],[131,43,100,57,"signer"],[131,49,100,68],[131,51,100,87],[132,6,101,4],[132,10,101,8],[133,8,102,6],[134,8,103,6],[134,12,103,10],[134,13,103,11,"blockchainService"],[134,24,103,28],[134,25,103,28,"blockchainService"],[134,42,103,28],[134,43,103,29,"isApiConnected"],[134,57,103,43],[134,58,103,44],[134,59,103,45],[134,61,103,47],[135,10,104,8,"console"],[135,17,104,15],[135,18,104,16,"log"],[135,21,104,19],[135,22,104,20],[135,74,104,72],[135,75,104,73],[136,10,105,8],[137,10,106,8],[137,17,106,15],[137,22,106,20,"Math"],[137,26,106,24],[137,27,106,25,"random"],[137,33,106,31],[137,34,106,32],[137,35,106,33],[137,36,106,34,"toString"],[137,44,106,42],[137,45,106,43],[137,47,106,45],[137,48,106,46],[137,49,106,47,"substr"],[137,55,106,53],[137,56,106,54],[137,57,106,55],[137,59,106,57],[137,61,106,59],[137,62,106,60],[137,64,106,62],[138,8,107,6],[140,8,109,6],[141,8,110,6],[142,8,111,6],[143,8,112,6],[144,8,113,6],[146,8,115,6],[147,8,116,6],[147,15,116,13],[147,20,116,18,"Math"],[147,24,116,22],[147,25,116,23,"random"],[147,31,116,29],[147,32,116,30],[147,33,116,31],[147,34,116,32,"toString"],[147,42,116,40],[147,43,116,41],[147,45,116,43],[147,46,116,44],[147,47,116,45,"substr"],[147,53,116,51],[147,54,116,52],[147,55,116,53],[147,57,116,55],[147,59,116,57],[147,60,116,58],[147,62,116,60],[148,6,117,4],[148,7,117,5],[148,8,117,6],[148,15,117,13,"error"],[148,20,117,18],[148,22,117,20],[149,8,118,6,"console"],[149,15,118,13],[149,16,118,14,"error"],[149,21,118,19],[149,22,118,20],[149,57,118,55],[149,59,118,57,"error"],[149,64,118,62],[149,65,118,63],[150,8,119,6],[150,14,119,12,"error"],[150,19,119,17],[151,6,120,4],[152,4,121,2],[154,4,123,2],[155,0,124,0],[156,0,125,0],[157,4,126,2],[157,10,126,8,"checkApprovalStatus"],[157,29,126,27,"checkApprovalStatus"],[157,30,126,28,"address"],[157,37,126,43],[157,39,126,63],[158,6,127,4],[158,10,127,8],[159,8,128,6],[160,8,129,6],[161,8,130,6],[162,8,131,6],[164,8,133,6],[165,8,134,6],[165,14,134,12,"status"],[165,20,134,18],[165,23,134,21],[165,29,134,27],[165,33,134,31],[165,34,134,32,"getKYCStatus"],[165,46,134,44],[165,47,134,45],[165,48,134,46],[166,8,135,6],[166,12,135,10,"status"],[166,18,135,16],[166,19,135,17,"submitted"],[166,28,135,26],[166,30,135,28],[167,10,136,8],[167,16,136,14,"timeSinceSubmission"],[167,35,136,33],[167,38,136,36,"Date"],[167,42,136,40],[167,43,136,41,"now"],[167,46,136,44],[167,47,136,45],[167,48,136,46],[167,52,136,50,"status"],[167,58,136,56],[167,59,136,57,"citizen"],[167,66,136,64],[167,68,136,66,"approvedAt"],[167,78,136,76],[167,82,136,80],[167,83,136,81],[167,84,136,82],[168,10,137,8],[168,17,137,15,"timeSinceSubmission"],[168,36,137,34],[168,39,137,37],[168,43,137,41],[168,44,137,42],[168,45,137,43],[169,8,138,6],[170,8,140,6],[170,15,140,13],[170,20,140,18],[171,6,141,4],[171,7,141,5],[171,8,141,6],[171,15,141,13,"error"],[171,20,141,18],[171,22,141,20],[172,8,142,6,"console"],[172,15,142,13],[172,16,142,14,"error"],[172,21,142,19],[172,22,142,20],[172,58,142,56],[172,60,142,58,"error"],[172,65,142,63],[172,66,142,64],[173,8,143,6],[173,15,143,13],[173,20,143,18],[174,6,144,4],[175,4,145,2],[177,4,147,2],[178,0,148,0],[179,0,149,0],[180,0,150,0],[181,4,151,2],[181,10,151,8,"generateCitizen"],[181,25,151,23,"generateCitizen"],[181,26,151,24,"data"],[181,30,151,41],[181,32,151,43,"dataHash"],[181,40,151,59],[181,42,151,88],[182,6,152,4],[182,10,152,8],[183,8,153,6],[184,8,154,6],[184,14,154,12,"citizenId"],[184,23,154,21],[184,26,154,24],[184,33,154,31,"Date"],[184,37,154,35],[184,38,154,36,"now"],[184,41,154,39],[184,42,154,40],[184,43,154,41],[184,47,154,45,"Math"],[184,51,154,49],[184,52,154,50,"random"],[184,58,154,56],[184,59,154,57],[184,60,154,58],[184,61,154,59,"toString"],[184,69,154,67],[184,70,154,68],[184,72,154,70],[184,73,154,71],[184,74,154,72,"substr"],[184,80,154,78],[184,81,154,79],[184,82,154,80],[184,84,154,82],[184,85,154,83],[184,86,154,84],[184,87,154,85,"toUpperCase"],[184,98,154,96],[184,99,154,97],[184,100,154,98],[184,102,154,100],[186,8,156,6],[187,8,157,6],[187,14,157,12,"qrData"],[187,20,157,18],[187,23,157,21,"JSON"],[187,27,157,25],[187,28,157,26,"stringify"],[187,37,157,35],[187,38,157,36],[188,10,158,8,"citizenId"],[188,19,158,17],[189,10,159,8,"name"],[189,14,159,12],[189,16,159,14,"data"],[189,20,159,18],[189,21,159,19,"fullName"],[189,29,159,27],[190,10,160,8,"region"],[190,16,160,14],[190,18,160,16,"data"],[190,22,160,20],[190,23,160,21,"region"],[190,29,160,27],[191,10,161,8,"hash"],[191,14,161,12],[191,16,161,14,"dataHash"],[192,8,162,6],[192,9,162,7],[192,10,162,8],[193,8,164,6],[193,14,164,12,"citizen"],[193,21,164,37],[193,24,164,40],[194,10,165,8,"citizenId"],[194,19,165,17],[195,10,166,8,"fullName"],[195,18,166,16],[195,20,166,18,"data"],[195,24,166,22],[195,25,166,23,"fullName"],[195,33,166,31],[196,10,167,8,"photo"],[196,15,167,13],[196,17,167,15,"data"],[196,21,167,19],[196,22,167,20,"photo"],[196,27,167,25],[196,31,167,29],[196,33,167,31],[197,10,168,8,"region"],[197,16,168,14],[197,18,168,16,"data"],[197,22,168,20],[197,23,168,21,"region"],[197,29,168,27],[198,10,169,8,"kycApproved"],[198,21,169,19],[198,23,169,21],[198,27,169,25],[199,10,170,8,"approvedAt"],[199,20,170,18],[199,22,170,20,"Date"],[199,26,170,24],[199,27,170,25,"now"],[199,30,170,28],[199,31,170,29],[199,32,170,30],[200,10,171,8,"dataHash"],[200,18,171,16],[201,10,172,8,"qrCode"],[201,16,172,14],[201,18,172,16,"qrData"],[202,8,173,6],[202,9,173,7],[204,8,175,6],[205,8,176,6],[205,14,176,12,"SecureStore"],[205,25,176,23],[205,26,176,24,"setItemAsync"],[205,38,176,36],[205,39,176,37,"CITIZEN_DATA_KEY"],[205,55,176,53],[205,57,176,55,"JSON"],[205,61,176,59],[205,62,176,60,"stringify"],[205,71,176,69],[205,72,176,70,"citizen"],[205,79,176,77],[205,80,176,78],[205,81,176,79],[207,8,178,6],[208,8,179,6],[208,14,179,12],[208,18,179,16],[208,19,179,17,"updateKYCStatus"],[208,34,179,32],[208,35,179,33],[209,10,180,8,"started"],[209,17,180,15],[209,19,180,17],[209,23,180,21],[210,10,181,8,"submitted"],[210,19,181,17],[210,21,181,19],[210,25,181,23],[211,10,182,8,"approved"],[211,18,182,16],[211,20,182,18],[211,24,182,22],[212,10,183,8,"citizen"],[213,8,184,6],[213,9,184,7],[213,10,184,8],[214,8,186,6,"console"],[214,15,186,13],[214,16,186,14,"log"],[214,19,186,17],[214,20,186,18],[214,60,186,58],[214,62,186,60,"citizenId"],[214,71,186,69],[214,72,186,70],[215,8,187,6],[215,15,187,13,"citizen"],[215,22,187,20],[216,6,188,4],[216,7,188,5],[216,8,188,6],[216,15,188,13,"error"],[216,20,188,18],[216,22,188,20],[217,8,189,6,"console"],[217,15,189,13],[217,16,189,14,"error"],[217,21,189,19],[217,22,189,20],[217,53,189,51],[217,55,189,53,"error"],[217,60,189,58],[217,61,189,59],[218,8,190,6],[218,14,190,12,"error"],[218,19,190,17],[219,6,191,4],[220,4,192,2],[222,4,194,2],[223,0,195,0],[224,0,196,0],[225,4,197,2],[225,10,197,8,"getCitizen"],[225,20,197,18,"getCitizen"],[225,21,197,18],[225,23,197,55],[226,6,198,4],[226,10,198,8],[227,8,199,6],[227,14,199,12,"data"],[227,18,199,16],[227,21,199,19],[227,27,199,25,"SecureStore"],[227,38,199,36],[227,39,199,37,"getItemAsync"],[227,51,199,49],[227,52,199,50,"CITIZEN_DATA_KEY"],[227,68,199,66],[227,69,199,67],[228,8,200,6],[228,12,200,10],[228,13,200,11,"data"],[228,17,200,15],[228,19,200,17],[228,26,200,24],[228,30,200,28],[229,8,202,6],[229,15,202,13,"JSON"],[229,19,202,17],[229,20,202,18,"parse"],[229,25,202,23],[229,26,202,24,"data"],[229,30,202,28],[229,31,202,29],[230,6,203,4],[230,7,203,5],[230,8,203,6],[230,15,203,13,"error"],[230,20,203,18],[230,22,203,20],[231,8,204,6,"console"],[231,15,204,13],[231,16,204,14,"error"],[231,21,204,19],[231,22,204,20],[231,53,204,51],[231,55,204,53,"error"],[231,60,204,58],[231,61,204,59],[232,8,205,6],[232,15,205,13],[232,19,205,17],[233,6,206,4],[234,4,207,2],[236,4,209,2],[237,0,210,0],[238,0,211,0],[239,4,212,2],[239,10,212,8,"getKYCStatus"],[239,22,212,20,"getKYCStatus"],[239,23,212,20],[239,25,212,43],[240,6,213,4],[240,10,213,8],[241,8,214,6],[241,14,214,12,"statusData"],[241,24,214,22],[241,27,214,25],[241,33,214,31,"SecureStore"],[241,44,214,42],[241,45,214,43,"getItemAsync"],[241,57,214,55],[241,58,214,56,"KYC_STATUS_KEY"],[241,72,214,70],[241,73,214,71],[242,8,215,6],[242,12,215,10],[242,13,215,11,"statusData"],[242,23,215,21],[242,25,215,23],[243,10,216,8],[243,17,216,15],[244,12,216,17,"started"],[244,19,216,24],[244,21,216,26],[244,26,216,31],[245,12,216,33,"submitted"],[245,21,216,42],[245,23,216,44],[245,28,216,49],[246,12,216,51,"approved"],[246,20,216,59],[246,22,216,61],[247,10,216,67],[247,11,216,68],[248,8,217,6],[249,8,219,6],[249,15,219,13,"JSON"],[249,19,219,17],[249,20,219,18,"parse"],[249,25,219,23],[249,26,219,24,"statusData"],[249,36,219,34],[249,37,219,35],[250,6,220,4],[250,7,220,5],[250,8,220,6],[250,15,220,13,"error"],[250,20,220,18],[250,22,220,20],[251,8,221,6,"console"],[251,15,221,13],[251,16,221,14,"error"],[251,21,221,19],[251,22,221,20],[251,51,221,49],[251,53,221,51,"error"],[251,58,221,56],[251,59,221,57],[252,8,222,6],[252,15,222,13],[253,10,222,15,"started"],[253,17,222,22],[253,19,222,24],[253,24,222,29],[254,10,222,31,"submitted"],[254,19,222,40],[254,21,222,42],[254,26,222,47],[255,10,222,49,"approved"],[255,18,222,57],[255,20,222,59],[256,8,222,65],[256,9,222,66],[257,6,223,4],[258,4,224,2],[260,4,226,2],[261,0,227,0],[262,0,228,0],[263,4,229,2],[263,10,229,16,"updateKYCStatus"],[263,25,229,31,"updateKYCStatus"],[263,26,229,32,"status"],[263,32,229,49],[263,34,229,66],[264,6,230,4],[264,10,230,8],[265,8,231,6],[265,14,231,12,"SecureStore"],[265,25,231,23],[265,26,231,24,"setItemAsync"],[265,38,231,36],[265,39,231,37,"KYC_STATUS_KEY"],[265,53,231,51],[265,55,231,53,"JSON"],[265,59,231,57],[265,60,231,58,"stringify"],[265,69,231,67],[265,70,231,68,"status"],[265,76,231,74],[265,77,231,75],[265,78,231,76],[266,6,232,4],[266,7,232,5],[266,8,232,6],[266,15,232,13,"error"],[266,20,232,18],[266,22,232,20],[267,8,233,6,"console"],[267,15,233,13],[267,16,233,14,"error"],[267,21,233,19],[267,22,233,20],[267,54,233,52],[267,56,233,54,"error"],[267,61,233,59],[267,62,233,60],[268,6,234,4],[269,4,235,2],[271,4,237,2],[272,0,238,0],[273,0,239,0],[274,4,240,2],[274,10,240,8,"hasGovernanceAccess"],[274,29,240,27,"hasGovernanceAccess"],[274,30,240,27],[274,32,240,48],[275,6,241,4],[275,12,241,10,"status"],[275,18,241,16],[275,21,241,19],[275,27,241,25],[275,31,241,29],[275,32,241,30,"getKYCStatus"],[275,44,241,42],[275,45,241,43],[275,46,241,44],[276,6,242,4],[276,13,242,11,"status"],[276,19,242,17],[276,20,242,18,"approved"],[276,28,242,26],[277,4,243,2],[279,4,245,2],[280,0,246,0],[281,0,247,0],[282,4,248,2],[282,10,248,8,"clearKYCData"],[282,22,248,20,"clearKYCData"],[282,23,248,20],[282,25,248,38],[283,6,249,4],[283,10,249,8],[284,8,250,6],[284,14,250,12,"SecureStore"],[284,25,250,23],[284,26,250,24,"deleteItemAsync"],[284,41,250,39],[284,42,250,40,"KYC_DATA_KEY"],[284,54,250,52],[284,55,250,53],[285,8,251,6],[285,14,251,12,"SecureStore"],[285,25,251,23],[285,26,251,24,"deleteItemAsync"],[285,41,251,39],[285,42,251,40,"CITIZEN_DATA_KEY"],[285,58,251,56],[285,59,251,57],[286,8,252,6],[286,14,252,12,"SecureStore"],[286,25,252,23],[286,26,252,24,"deleteItemAsync"],[286,41,252,39],[286,42,252,40,"KYC_STATUS_KEY"],[286,56,252,54],[286,57,252,55],[287,8,253,6,"console"],[287,15,253,13],[287,16,253,14,"log"],[287,19,253,17],[287,20,253,18],[287,40,253,38],[287,41,253,39],[288,6,254,4],[288,7,254,5],[288,8,254,6],[288,15,254,13,"error"],[288,20,254,18],[288,22,254,20],[289,8,255,6,"console"],[289,15,255,13],[289,16,255,14,"error"],[289,21,255,19],[289,22,255,20],[289,51,255,49],[289,53,255,51,"error"],[289,58,255,56],[289,59,255,57],[290,6,256,4],[291,4,257,2],[292,2,258,0],[293,2,260,7],[293,8,260,13,"kycService"],[293,18,260,23],[293,21,260,26],[293,25,260,30,"KYCService"],[293,35,260,40],[293,36,260,41],[293,37,260,42],[294,2,261,0],[294,6,261,0,"_default"],[294,14,261,0],[294,17,261,15,"kycService"],[294,27,261,25],[295,0,261,26],[295,3]],"functionMap":{"names":["<global>","KYCService","KYCService#generateHash","KYCService#saveKYCData","KYCService#getKYCData","KYCService#submitKYC","KYCService#submitHashToBlockchain","KYCService#checkApprovalStatus","KYCService#generateCitizen","KYCService#getCitizen","KYCService#getKYCStatus","KYCService#updateKYCStatus","KYCService#hasGovernanceAccess","KYCService#clearKYCData"],"mappings":"AAA;ACa;ECK;GDa;EEK;GFS;EGK;GHU;EIM;GJ4B;EKK;GLqB;EMK;GNmB;EOM;GPyC;EQK;GRU;ESK;GTY;EUK;GVM;EWK;GXG;EYK;GZS;CDC"},"hasCjsExports":false},"type":"js/module"}]} |