mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 06:31:03 +00:00
1 line
4.6 KiB
Plaintext
1 line
4.6 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":[[2,2,1,0],[2,14,1,12],[4,2,2,0,"Object"],[4,8,2,6],[4,9,2,7,"defineProperty"],[4,23,2,21],[4,24,2,22,"exports"],[4,31,2,29],[4,33,2,31],[4,45,2,43],[4,47,2,45],[5,4,2,47,"value"],[5,9,2,52],[5,11,2,54],[6,2,2,59],[6,3,2,60],[6,4,2,61],[7,2,3,0,"exports"],[7,9,3,7],[7,10,3,8,"objectProperty"],[7,24,3,22],[7,27,3,25,"objectProperty"],[7,41,3,39],[8,2,4,0,"exports"],[8,9,4,7],[8,10,4,8,"objectProperties"],[8,26,4,24],[8,29,4,27,"objectProperties"],[8,45,4,43],[9,2,5,0],[10,0,6,0],[11,0,7,0],[12,0,8,0],[13,2,9,0],[13,11,9,9,"objectProperty"],[13,25,9,23,"objectProperty"],[13,26,9,24,"that"],[13,30,9,28],[13,32,9,30,"key"],[13,35,9,33],[13,37,9,35,"getter"],[13,43,9,41],[13,45,9,43,"getName"],[13,52,9,50],[13,54,9,52,"index"],[13,59,9,57],[13,62,9,60],[13,63,9,61],[13,65,9,63],[14,4,10,4],[14,10,10,10,"name"],[14,14,10,14],[14,17,10,17,"getName"],[14,24,10,24],[14,27,11,10,"getName"],[14,34,11,17],[14,35,11,18,"key"],[14,38,11,21],[14,40,11,23,"index"],[14,45,11,28],[14,46,11,29],[14,49,12,10,"key"],[14,52,12,13],[15,4,13,4],[16,4,14,4],[17,4,15,4],[18,4,16,4],[19,4,17,4],[20,4,18,4],[21,4,19,4],[21,8,19,8],[21,10,19,10,"name"],[21,14,19,14],[21,18,19,18,"that"],[21,22,19,22],[21,23,19,23],[21,25,19,25],[22,6,20,8,"Object"],[22,12,20,14],[22,13,20,15,"defineProperty"],[22,27,20,29],[22,28,20,30,"that"],[22,32,20,34],[22,34,20,36,"name"],[22,38,20,40],[22,40,20,42],[23,8,21,12,"enumerable"],[23,18,21,22],[23,20,21,24],[23,24,21,28],[24,8,22,12],[25,8,23,12],[26,8,24,12,"get"],[26,11,24,15],[26,13,24,17],[26,22,24,17,"get"],[26,23,24,17],[26,25,24,29],[27,10,25,16],[27,17,25,23,"getter"],[27,23,25,29],[27,24,25,30,"key"],[27,27,25,33],[27,29,25,35,"index"],[27,34,25,40],[27,36,25,42],[27,40,25,46],[27,41,25,47],[28,8,26,12],[29,6,27,8],[29,7,27,9],[29,8,27,10],[30,4,28,4],[31,2,29,0],[32,2,30,0],[33,0,31,0],[34,0,32,0],[35,0,33,0],[36,2,34,0],[36,11,34,9,"objectProperties"],[36,27,34,25,"objectProperties"],[36,28,34,26,"that"],[36,32,34,30],[36,34,34,32,"keys"],[36,38,34,36],[36,40,34,38,"getter"],[36,46,34,44],[36,48,34,46,"getName"],[36,55,34,53],[36,57,34,55],[37,4,35,4],[37,9,35,9],[37,13,35,13,"i"],[37,14,35,14],[37,17,35,17],[37,18,35,18],[37,20,35,20,"count"],[37,25,35,25],[37,28,35,28,"keys"],[37,32,35,32],[37,33,35,33,"length"],[37,39,35,39],[37,41,35,41,"i"],[37,42,35,42],[37,45,35,45,"count"],[37,50,35,50],[37,52,35,52,"i"],[37,53,35,53],[37,55,35,55],[37,57,35,57],[38,6,36,8,"objectProperty"],[38,20,36,22],[38,21,36,23,"that"],[38,25,36,27],[38,27,36,29,"keys"],[38,31,36,33],[38,32,36,34,"i"],[38,33,36,35],[38,34,36,36],[38,36,36,38,"getter"],[38,42,36,44],[38,44,36,46,"getName"],[38,51,36,53],[38,53,36,55,"i"],[38,54,36,56],[38,55,36,57],[39,4,37,4],[40,2,38,0],[41,0,38,1],[41,3]],"functionMap":{"names":["<global>","objectProperty","Object.defineProperty$argument_2.get","objectProperties"],"mappings":"AAA;ACQ;iBCe;aDE;CDG;AGK;CHI"},"hasCjsExports":true},"type":"js/module"}]} |