mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 08:51:01 +00:00
1 line
4.3 KiB
Plaintext
1 line
4.3 KiB
Plaintext
{"dependencies":[],"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.objectProperty = objectProperty;\n exports.objectProperties = objectProperties;\n /**\n * @name objectProperty\n * @summary Assign a get property on the input object\n */\n function objectProperty(that, key, getter, getName, index = 0) {\n const name = getName ? getName(key, index) : key;\n // There are 3 approaches here -\n // - Object.prototype.hasOwnProperty.call(that, key) - this only checks the current class, i.e\n // will retuirn false if the property is set in the parent class\n // - isUndefined(...) - this may yield a false positive when the property is there, but not set.\n // Additionally, on pre-defined getters it may make a call\n // - key in that - Does not need to be combined with either of the above and checks the full chain\n if (!(name in that)) {\n Object.defineProperty(that, name, {\n enumerable: true,\n // Unlike in lazy, we always call into the upper function, i.e. this method\n // does not cache old values (it is expected to be used for dynamic values)\n get: function () {\n return getter(key, index, this);\n }\n });\n }\n }\n /**\n * @name objectProperties\n * @summary Assign get properties on the input object\n */\n function objectProperties(that, keys, getter, getName) {\n for (let i = 0, count = keys.length; i < count; i++) {\n objectProperty(that, keys[i], getter, getName, i);\n }\n }\n});","lineCount":41,"map":[[7,2,5,0,"exports"],[7,9,5,0],[7,10,5,0,"objectProperty"],[7,24,5,0],[7,27,5,0,"objectProperty"],[7,41,5,0],[8,2,30,0,"exports"],[8,9,30,0],[8,10,30,0,"objectProperties"],[8,26,30,0],[8,29,30,0,"objectProperties"],[8,45,30,0],[9,2,1,0],[10,0,2,0],[11,0,3,0],[12,0,4,0],[13,2,5,7],[13,11,5,16,"objectProperty"],[13,25,5,30,"objectProperty"],[13,26,5,31,"that"],[13,30,5,35],[13,32,5,37,"key"],[13,35,5,40],[13,37,5,42,"getter"],[13,43,5,48],[13,45,5,50,"getName"],[13,52,5,57],[13,54,5,59,"index"],[13,59,5,64],[13,62,5,67],[13,63,5,68],[13,65,5,70],[14,4,6,4],[14,10,6,10,"name"],[14,14,6,14],[14,17,6,17,"getName"],[14,24,6,24],[14,27,7,10,"getName"],[14,34,7,17],[14,35,7,18,"key"],[14,38,7,21],[14,40,7,23,"index"],[14,45,7,28],[14,46,7,29],[14,49,8,10,"key"],[14,52,8,13],[15,4,9,4],[16,4,10,4],[17,4,11,4],[18,4,12,4],[19,4,13,4],[20,4,14,4],[21,4,15,4],[21,8,15,8],[21,10,15,10,"name"],[21,14,15,14],[21,18,15,18,"that"],[21,22,15,22],[21,23,15,23],[21,25,15,25],[22,6,16,8,"Object"],[22,12,16,14],[22,13,16,15,"defineProperty"],[22,27,16,29],[22,28,16,30,"that"],[22,32,16,34],[22,34,16,36,"name"],[22,38,16,40],[22,40,16,42],[23,8,17,12,"enumerable"],[23,18,17,22],[23,20,17,24],[23,24,17,28],[24,8,18,12],[25,8,19,12],[26,8,20,12,"get"],[26,11,20,15],[26,13,20,17],[26,22,20,17,"get"],[26,23,20,17],[26,25,20,29],[27,10,21,16],[27,17,21,23,"getter"],[27,23,21,29],[27,24,21,30,"key"],[27,27,21,33],[27,29,21,35,"index"],[27,34,21,40],[27,36,21,42],[27,40,21,46],[27,41,21,47],[28,8,22,12],[29,6,23,8],[29,7,23,9],[29,8,23,10],[30,4,24,4],[31,2,25,0],[32,2,26,0],[33,0,27,0],[34,0,28,0],[35,0,29,0],[36,2,30,7],[36,11,30,16,"objectProperties"],[36,27,30,32,"objectProperties"],[36,28,30,33,"that"],[36,32,30,37],[36,34,30,39,"keys"],[36,38,30,43],[36,40,30,45,"getter"],[36,46,30,51],[36,48,30,53,"getName"],[36,55,30,60],[36,57,30,62],[37,4,31,4],[37,9,31,9],[37,13,31,13,"i"],[37,14,31,14],[37,17,31,17],[37,18,31,18],[37,20,31,20,"count"],[37,25,31,25],[37,28,31,28,"keys"],[37,32,31,32],[37,33,31,33,"length"],[37,39,31,39],[37,41,31,41,"i"],[37,42,31,42],[37,45,31,45,"count"],[37,50,31,50],[37,52,31,52,"i"],[37,53,31,53],[37,55,31,55],[37,57,31,57],[38,6,32,8,"objectProperty"],[38,20,32,22],[38,21,32,23,"that"],[38,25,32,27],[38,27,32,29,"keys"],[38,31,32,33],[38,32,32,34,"i"],[38,33,32,35],[38,34,32,36],[38,36,32,38,"getter"],[38,42,32,44],[38,44,32,46,"getName"],[38,51,32,53],[38,53,32,55,"i"],[38,54,32,56],[38,55,32,57],[39,4,33,4],[40,2,34,0],[41,0,34,1],[41,3]],"functionMap":{"names":["<global>","objectProperty","Object.defineProperty$argument_2.get","objectProperties"],"mappings":"AAA;OCI;iBCe;aDE;CDG;OGK;CHI"},"hasCjsExports":false},"type":"js/module"}]} |