mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-29 23:31:05 +00:00
1 line
5.4 KiB
Plaintext
1 line
5.4 KiB
Plaintext
{"dependencies":[{"name":"./isSet","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":32,"index":32}}],"key":"Op1ZzHIj5qbPg4bYPHCOrFCN1q0=","exportNames":["*"],"imports":1}},{"name":"./getFullScope","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":2,"column":0,"index":33},"end":{"line":2,"column":46,"index":79}}],"key":"p1V3AYS6n4M3jTBSWX6kELaNzP4=","exportNames":["*"],"imports":1}},{"name":"./inferType","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":3,"column":0,"index":80},"end":{"line":3,"column":40,"index":120}}],"key":"aEkHvxsaqRYMDDCRfTFqZPQaO+w=","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 exports.lookup = lookup;\n var _isSet = require(_dependencyMap[0], \"./isSet\");\n var _getFullScope = require(_dependencyMap[1], \"./getFullScope\");\n var _inferType = require(_dependencyMap[2], \"./inferType\");\n function lookup(i18n, scope, options = {}) {\n options = Object.assign({}, options);\n const locale = \"locale\" in options ? options.locale : i18n.locale;\n const localeType = (0, _inferType.inferType)(locale);\n const locales = i18n.locales.get(localeType === \"string\" ? locale : typeof locale).slice();\n const keys = (0, _getFullScope.getFullScope)(i18n, scope, options).split(i18n.defaultSeparator).map(component => i18n.transformKey(component));\n const entries = locales.map(locale => keys.reduce((path, key) => path && path[key], i18n.translations[locale]));\n entries.push(options.defaultValue);\n return entries.find(entry => (0, _isSet.isSet)(entry));\n }\n});","lineCount":21,"map":[[7,2,4,0,"exports"],[7,9,4,0],[7,10,4,0,"lookup"],[7,16,4,0],[7,19,4,0,"lookup"],[7,25,4,0],[8,2,1,0],[8,6,1,0,"_isSet"],[8,12,1,0],[8,15,1,0,"require"],[8,22,1,0],[8,23,1,0,"_dependencyMap"],[8,37,1,0],[9,2,2,0],[9,6,2,0,"_getFullScope"],[9,19,2,0],[9,22,2,0,"require"],[9,29,2,0],[9,30,2,0,"_dependencyMap"],[9,44,2,0],[10,2,3,0],[10,6,3,0,"_inferType"],[10,16,3,0],[10,19,3,0,"require"],[10,26,3,0],[10,27,3,0,"_dependencyMap"],[10,41,3,0],[11,2,4,7],[11,11,4,16,"lookup"],[11,17,4,22,"lookup"],[11,18,4,23,"i18n"],[11,22,4,27],[11,24,4,29,"scope"],[11,29,4,34],[11,31,4,36,"options"],[11,38,4,43],[11,41,4,46],[11,42,4,47],[11,43,4,48],[11,45,4,50],[12,4,5,4,"options"],[12,11,5,11],[12,14,5,14,"Object"],[12,20,5,20],[12,21,5,21,"assign"],[12,27,5,27],[12,28,5,28],[12,29,5,29],[12,30,5,30],[12,32,5,32,"options"],[12,39,5,39],[12,40,5,40],[13,4,6,4],[13,10,6,10,"locale"],[13,16,6,16],[13,19,6,19],[13,27,6,27],[13,31,6,31,"options"],[13,38,6,38],[13,41,6,41,"options"],[13,48,6,48],[13,49,6,49,"locale"],[13,55,6,55],[13,58,6,58,"i18n"],[13,62,6,62],[13,63,6,63,"locale"],[13,69,6,69],[14,4,7,4],[14,10,7,10,"localeType"],[14,20,7,20],[14,23,7,23],[14,27,7,23,"inferType"],[14,37,7,32],[14,38,7,32,"inferType"],[14,47,7,32],[14,49,7,33,"locale"],[14,55,7,39],[14,56,7,40],[15,4,8,4],[15,10,8,10,"locales"],[15,17,8,17],[15,20,8,20,"i18n"],[15,24,8,24],[15,25,8,25,"locales"],[15,32,8,32],[15,33,9,9,"get"],[15,36,9,12],[15,37,9,13,"localeType"],[15,47,9,23],[15,52,9,28],[15,60,9,36],[15,63,9,39,"locale"],[15,69,9,45],[15,72,9,48],[15,79,9,55,"locale"],[15,85,9,61],[15,86,9,62],[15,87,10,9,"slice"],[15,92,10,14],[15,93,10,15],[15,94,10,16],[16,4,11,4],[16,10,11,10,"keys"],[16,14,11,14],[16,17,11,17],[16,21,11,17,"getFullScope"],[16,34,11,29],[16,35,11,29,"getFullScope"],[16,47,11,29],[16,49,11,30,"i18n"],[16,53,11,34],[16,55,11,36,"scope"],[16,60,11,41],[16,62,11,43,"options"],[16,69,11,50],[16,70,11,51],[16,71,12,9,"split"],[16,76,12,14],[16,77,12,15,"i18n"],[16,81,12,19],[16,82,12,20,"defaultSeparator"],[16,98,12,36],[16,99,12,37],[16,100,13,9,"map"],[16,103,13,12],[16,104,13,14,"component"],[16,113,13,23],[16,117,13,28,"i18n"],[16,121,13,32],[16,122,13,33,"transformKey"],[16,134,13,45],[16,135,13,46,"component"],[16,144,13,55],[16,145,13,56],[16,146,13,57],[17,4,14,4],[17,10,14,10,"entries"],[17,17,14,17],[17,20,14,20,"locales"],[17,27,14,27],[17,28,14,28,"map"],[17,31,14,31],[17,32,14,33,"locale"],[17,38,14,39],[17,42,14,44,"keys"],[17,46,14,48],[17,47,14,49,"reduce"],[17,53,14,55],[17,54,14,56],[17,55,14,57,"path"],[17,59,14,61],[17,61,14,63,"key"],[17,64,14,66],[17,69,14,71,"path"],[17,73,14,75],[17,77,14,79,"path"],[17,81,14,83],[17,82,14,84,"key"],[17,85,14,87],[17,86,14,88],[17,88,14,90,"i18n"],[17,92,14,94],[17,93,14,95,"translations"],[17,105,14,107],[17,106,14,108,"locale"],[17,112,14,114],[17,113,14,115],[17,114,14,116],[17,115,14,117],[18,4,15,4,"entries"],[18,11,15,11],[18,12,15,12,"push"],[18,16,15,16],[18,17,15,17,"options"],[18,24,15,24],[18,25,15,25,"defaultValue"],[18,37,15,37],[18,38,15,38],[19,4,16,4],[19,11,16,11,"entries"],[19,18,16,18],[19,19,16,19,"find"],[19,23,16,23],[19,24,16,25,"entry"],[19,29,16,30],[19,33,16,35],[19,37,16,35,"isSet"],[19,43,16,40],[19,44,16,40,"isSet"],[19,49,16,40],[19,51,16,41,"entry"],[19,56,16,46],[19,57,16,47],[19,58,16,48],[20,2,17,0],[21,0,17,1],[21,3]],"functionMap":{"names":["<global>","lookup","getFullScope.split.map$argument_0","locales.map$argument_0","keys.reduce$argument_0","entries.find$argument_0"],"mappings":"AAA;OCG;aCS,2CD;gCEC,wBC,gCD,4BF;wBIE,uBJ;CDC"},"hasCjsExports":false},"type":"js/module"}]} |