Files
pezkuwi-mobile-app/frontend/.metro-cache/cache/0a/c504094046bd4d5ee38e9241f54377f14e8d990561530baa8d72bab876d7da1713515c
T
2025-11-08 10:06:45 +00:00

1 line
6.3 KiB
Plaintext

{"dependencies":[{"name":"react-native","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":2,"column":0,"index":48},"end":{"line":2,"column":44,"index":92}}],"key":"KyzuX10g6ixS9UfynhmjlvCIG3g=","exportNames":["*"],"imports":1}},{"name":"../utils/convertPercentageColor","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":3,"column":0,"index":93},"end":{"line":3,"column":73,"index":166}}],"key":"Sfw+GLz/7P1PrF5yBo+seGOBpEM=","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 Object.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function () {\n return extractBrush;\n }\n });\n var _reactNative = require(_dependencyMap[0], \"react-native\");\n var _utilsConvertPercentageColor = require(_dependencyMap[1], \"../utils/convertPercentageColor\");\n var urlIdPattern = /^url\\(#(.+)\\)$/;\n var currentColorBrush = {\n type: 2\n };\n var contextFillBrush = {\n type: 3\n };\n var contextStrokeBrush = {\n type: 4\n };\n function extractBrush(color) {\n if (color === 'none') {\n return null;\n }\n if (color === 'currentColor') {\n return currentColorBrush;\n }\n if (color === 'context-fill') {\n return contextFillBrush;\n }\n if (color === 'context-stroke') {\n return contextStrokeBrush;\n }\n var brush = typeof color === 'string' && color.match(urlIdPattern);\n if (brush) {\n return {\n type: 1,\n brushRef: brush[1]\n };\n }\n\n // Convert percentage RGB/RGBA color to standard RGB/RGBA color\n var colorToProcess = (0, _utilsConvertPercentageColor.convertPercentageColor)(color);\n var processedColor = (0, _reactNative.processColor)(colorToProcess);\n if (typeof processedColor === 'number') {\n return {\n type: 0,\n payload: processedColor\n };\n }\n if (typeof processedColor === 'object' && processedColor !== null) {\n // if we got an object, it should be `PlatformColor` or `DynamicColorIOS`,\n // so we pass it as an object with `0` value as first item, which is interpreted\n // on the native side as color to be managed by `RCTConvert`.\n return {\n type: 0,\n payload: processedColor\n };\n }\n console.warn(`\"${String(color)}\" is not a valid color or brush`);\n return null;\n }\n});","lineCount":67,"map":[[7,2,11,15,"Object"],[7,8,11,15],[7,9,11,15,"defineProperty"],[7,23,11,15],[7,24,11,15,"exports"],[7,31,11,15],[8,4,11,15,"enumerable"],[8,14,11,15],[9,4,11,15,"get"],[9,7,11,15],[9,18,11,15,"get"],[9,19,11,15],[10,6,11,15],[10,13,11,15,"extractBrush"],[10,25,11,15],[11,4,11,15],[12,2,11,15],[13,2,2,0],[13,6,2,0,"_reactNative"],[13,18,2,0],[13,21,2,0,"require"],[13,28,2,0],[13,29,2,0,"_dependencyMap"],[13,43,2,0],[14,2,3,0],[14,6,3,0,"_utilsConvertPercentageColor"],[14,34,3,0],[14,37,3,0,"require"],[14,44,3,0],[14,45,3,0,"_dependencyMap"],[14,59,3,0],[15,2,5,0],[15,6,5,6,"urlIdPattern"],[15,18,5,18],[15,21,5,21],[15,37,5,37],[16,2,7,0],[16,6,7,6,"currentColorBrush"],[16,23,7,23],[16,26,7,26],[17,4,7,28,"type"],[17,8,7,32],[17,10,7,34],[18,2,7,36],[18,3,7,37],[19,2,8,0],[19,6,8,6,"contextFillBrush"],[19,22,8,22],[19,25,8,25],[20,4,8,27,"type"],[20,8,8,31],[20,10,8,33],[21,2,8,35],[21,3,8,36],[22,2,9,0],[22,6,9,6,"contextStrokeBrush"],[22,24,9,24],[22,27,9,27],[23,4,9,29,"type"],[23,8,9,33],[23,10,9,35],[24,2,9,37],[24,3,9,38],[25,2,11,15],[25,11,11,24,"extractBrush"],[25,23,11,36,"extractBrush"],[25,24,11,37,"color"],[25,29,11,54],[25,31,11,56],[26,4,12,2],[26,8,12,6,"color"],[26,13,12,11],[26,18,12,16],[26,24,12,22],[26,26,12,24],[27,6,13,4],[27,13,13,11],[27,17,13,15],[28,4,14,2],[29,4,16,2],[29,8,16,6,"color"],[29,13,16,11],[29,18,16,16],[29,32,16,30],[29,34,16,32],[30,6,17,4],[30,13,17,11,"currentColorBrush"],[30,30,17,28],[31,4,18,2],[32,4,20,2],[32,8,20,6,"color"],[32,13,20,11],[32,18,20,16],[32,32,20,30],[32,34,20,32],[33,6,21,4],[33,13,21,11,"contextFillBrush"],[33,29,21,27],[34,4,22,2],[35,4,24,2],[35,8,24,6,"color"],[35,13,24,11],[35,18,24,16],[35,34,24,32],[35,36,24,34],[36,6,25,4],[36,13,25,11,"contextStrokeBrush"],[36,31,25,29],[37,4,26,2],[38,4,28,2],[38,8,28,8,"brush"],[38,13,28,13],[38,16,28,16],[38,23,28,23,"color"],[38,28,28,28],[38,33,28,33],[38,41,28,41],[38,45,28,45,"color"],[38,50,28,50],[38,51,28,51,"match"],[38,56,28,56],[38,57,28,57,"urlIdPattern"],[38,69,28,69],[38,70,28,70],[39,4,29,2],[39,8,29,6,"brush"],[39,13,29,11],[39,15,29,13],[40,6,30,4],[40,13,30,11],[41,8,30,13,"type"],[41,12,30,17],[41,14,30,19],[41,15,30,20],[42,8,30,22,"brushRef"],[42,16,30,30],[42,18,30,32,"brush"],[42,23,30,37],[42,24,30,38],[42,25,30,39],[43,6,30,41],[43,7,30,42],[44,4,31,2],[46,4,33,2],[47,4,34,2],[47,8,34,8,"colorToProcess"],[47,22,34,22],[47,25,34,25],[47,29,34,25,"convertPercentageColor"],[47,57,34,47],[47,58,34,47,"convertPercentageColor"],[47,80,34,47],[47,82,34,48,"color"],[47,87,34,53],[47,88,34,54],[48,4,35,2],[48,8,35,8,"processedColor"],[48,22,35,22],[48,25,35,25],[48,29,35,25,"processColor"],[48,41,35,37],[48,42,35,37,"processColor"],[48,54,35,37],[48,56,35,38,"colorToProcess"],[48,70,35,52],[48,71,35,53],[49,4,36,2],[49,8,36,6],[49,15,36,13,"processedColor"],[49,29,36,27],[49,34,36,32],[49,42,36,40],[49,44,36,42],[50,6,37,4],[50,13,37,11],[51,8,37,13,"type"],[51,12,37,17],[51,14,37,19],[51,15,37,20],[52,8,37,22,"payload"],[52,15,37,29],[52,17,37,31,"processedColor"],[53,6,37,46],[53,7,37,47],[54,4,38,2],[55,4,40,2],[55,8,40,6],[55,15,40,13,"processedColor"],[55,29,40,27],[55,34,40,32],[55,42,40,40],[55,46,40,44,"processedColor"],[55,60,40,58],[55,65,40,63],[55,69,40,67],[55,71,40,69],[56,6,41,4],[57,6,42,4],[58,6,43,4],[59,6,44,4],[59,13,44,11],[60,8,44,13,"type"],[60,12,44,17],[60,14,44,19],[60,15,44,20],[61,8,44,22,"payload"],[61,15,44,29],[61,17,44,31,"processedColor"],[62,6,44,46],[62,7,44,47],[63,4,45,2],[64,4,47,2,"console"],[64,11,47,9],[64,12,47,10,"warn"],[64,16,47,14],[64,17,47,15],[64,21,47,19,"String"],[64,27,47,25],[64,28,47,26,"color"],[64,33,47,31],[64,34,47,32],[64,67,47,65],[64,68,47,66],[65,4,48,2],[65,11,48,9],[65,15,48,13],[66,2,49,0],[67,0,49,1],[67,3]],"functionMap":{"names":["<global>","extractBrush"],"mappings":"AAA;eCU;CDsC"},"hasCjsExports":false},"type":"js/module"}]}