mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 07:41:01 +00:00
1 line
12 KiB
Plaintext
1 line
12 KiB
Plaintext
{"dependencies":[{"name":"react","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":55,"index":55}}],"key":"RtGiGa+/H7VrI7GDQDLhO1UbpU8=","exportNames":["*"],"imports":1}},{"name":"./ExpoLocalization","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":2,"column":0,"index":56},"end":{"line":2,"column":115,"index":171}}],"key":"ju6drtzXpn+j1s5n6s8Z71kZhzE=","exportNames":["*"],"imports":1}},{"name":"./Localization.types","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":3,"column":0,"index":172},"end":{"line":3,"column":37,"index":209}}],"key":"Mw/A83SWbNKrl/OhZ89iTyixz2Y=","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 _interopDefault(e) {\n return e && e.__esModule ? e : {\n default: e\n };\n }\n Object.defineProperty(exports, \"getLocales\", {\n enumerable: true,\n get: function () {\n return getLocales;\n }\n });\n Object.defineProperty(exports, \"getCalendars\", {\n enumerable: true,\n get: function () {\n return getCalendars;\n }\n });\n exports.useLocales = useLocales;\n exports.useCalendars = useCalendars;\n var _react = require(_dependencyMap[0], \"react\");\n var _ExpoLocalization = require(_dependencyMap[1], \"./ExpoLocalization\");\n var ExpoLocalization = _interopDefault(_ExpoLocalization);\n var _LocalizationTypes = require(_dependencyMap[2], \"./Localization.types\");\n Object.keys(_LocalizationTypes).forEach(function (k) {\n if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) {\n Object.defineProperty(exports, k, {\n enumerable: true,\n get: function () {\n return _LocalizationTypes[k];\n }\n });\n }\n });\n /**\n * List of user's locales, returned as an array of objects of type `Locale`.\n * Guaranteed to contain at least 1 element.\n * These are returned in the order the user defines in their device settings.\n * On the web currency and measurements systems are not provided, instead returned as null.\n * If needed, you can infer them from the current region using a lookup table.\n * @example\n * ```js\n * [{\n * \"languageTag\": \"pl-PL\",\n * \"languageCode\": \"pl\",\n * \"textDirection\": \"ltr\",\n * \"digitGroupingSeparator\": \" \",\n * \"decimalSeparator\": \",\",\n * \"measurementSystem\": \"metric\",\n * \"currencyCode\": \"PLN\",\n * \"currencySymbol\": \"zł\",\n * \"regionCode\": \"PL\",\n * \"temperatureUnit\": \"celsius\"\n * }]\n * ```\n */\n const getLocales = ExpoLocalization.default.getLocales;\n /**\n * List of user's preferred calendars, returned as an array of objects of type `Calendar`.\n * Guaranteed to contain at least 1 element.\n * For now always returns a single element, but it's likely to return a user preference list on some platforms in the future.\n * @example\n * ```js\n * [{\n * \"calendar\": \"gregory\",\n * \"timeZone\": \"Europe/Warsaw\",\n * \"uses24hourClock\": true,\n * \"firstWeekday\": 1\n * }]\n * ```\n */\n const getCalendars = ExpoLocalization.default.getCalendars;\n /**\n * A hook providing a list of user's locales, returned as an array of objects of type `Locale`.\n * Guaranteed to contain at least 1 element.\n * These are returned in the order the user defines in their device settings.\n * On the web currency and measurements systems are not provided, instead returned as null.\n * If needed, you can infer them from the current region using a lookup table.\n * If the OS settings change, the hook will rerender with a new list of locales.\n * @example\n * ```js\n * [{\n * \"languageTag\": \"pl-PL\",\n * \"languageCode\": \"pl\",\n * \"textDirection\": \"ltr\",\n * \"digitGroupingSeparator\": \" \",\n * \"decimalSeparator\": \",\",\n * \"measurementSystem\": \"metric\",\n * \"currencyCode\": \"PLN\",\n * \"currencySymbol\": \"zł\",\n * \"regionCode\": \"PL\",\n * \"temperatureUnit\": \"celsius\"\n * }]\n * ```\n */\n function useLocales() {\n const [key, invalidate] = (0, _react.useReducer)(k => k + 1, 0);\n const locales = (0, _react.useMemo)(() => getLocales(), [key]);\n (0, _react.useEffect)(() => {\n const subscription = (0, _ExpoLocalization.addLocaleListener)(invalidate);\n return () => {\n (0, _ExpoLocalization.removeSubscription)(subscription);\n };\n }, []);\n return locales;\n }\n /**\n * A hook providing a list of user's preferred calendars, returned as an array of objects of type `Calendar`.\n * Guaranteed to contain at least 1 element.\n * For now always returns a single element, but it's likely to return a user preference list on some platforms in the future.\n * If the OS settings change, the hook will rerender with a new list of calendars.\n * @example\n * ```js\n * [{\n * \"calendar\": \"gregory\",\n * \"timeZone\": \"Europe/Warsaw\",\n * \"uses24hourClock\": true,\n * \"firstWeekday\": 1\n * }]\n * ```\n */\n function useCalendars() {\n const [key, invalidate] = (0, _react.useReducer)(k => k + 1, 0);\n const calendars = (0, _react.useMemo)(() => getCalendars(), [key]);\n (0, _react.useEffect)(() => {\n const subscription = (0, _ExpoLocalization.addCalendarListener)(invalidate);\n return () => {\n (0, _ExpoLocalization.removeSubscription)(subscription);\n };\n }, []);\n return calendars;\n }\n});","lineCount":138,"map":[[12,2,26,0,"Object"],[12,8,26,0],[12,9,26,0,"defineProperty"],[12,23,26,0],[12,24,26,0,"exports"],[12,31,26,0],[13,4,26,0,"enumerable"],[13,14,26,0],[14,4,26,0,"get"],[14,7,26,0],[14,18,26,0,"get"],[14,19,26,0],[15,6,26,0],[15,13,26,0,"getLocales"],[15,23,26,0],[16,4,26,0],[17,2,26,0],[18,2,41,0,"Object"],[18,8,41,0],[18,9,41,0,"defineProperty"],[18,23,41,0],[18,24,41,0,"exports"],[18,31,41,0],[19,4,41,0,"enumerable"],[19,14,41,0],[20,4,41,0,"get"],[20,7,41,0],[20,18,41,0,"get"],[20,19,41,0],[21,6,41,0],[21,13,41,0,"getCalendars"],[21,25,41,0],[22,4,41,0],[23,2,41,0],[24,2,65,0,"exports"],[24,9,65,0],[24,10,65,0,"useLocales"],[24,20,65,0],[24,23,65,0,"useLocales"],[24,33,65,0],[25,2,91,0,"exports"],[25,9,91,0],[25,10,91,0,"useCalendars"],[25,22,91,0],[25,25,91,0,"useCalendars"],[25,37,91,0],[26,2,1,0],[26,6,1,0,"_react"],[26,12,1,0],[26,15,1,0,"require"],[26,22,1,0],[26,23,1,0,"_dependencyMap"],[26,37,1,0],[27,2,2,0],[27,6,2,0,"_ExpoLocalization"],[27,23,2,0],[27,26,2,0,"require"],[27,33,2,0],[27,34,2,0,"_dependencyMap"],[27,48,2,0],[28,2,2,0],[28,6,2,0,"ExpoLocalization"],[28,22,2,0],[28,25,2,0,"_interopDefault"],[28,40,2,0],[28,41,2,0,"_ExpoLocalization"],[28,58,2,0],[29,2,3,0],[29,6,3,0,"_LocalizationTypes"],[29,24,3,0],[29,27,3,0,"require"],[29,34,3,0],[29,35,3,0,"_dependencyMap"],[29,49,3,0],[30,2,3,0,"Object"],[30,8,3,0],[30,9,3,0,"keys"],[30,13,3,0],[30,14,3,0,"_LocalizationTypes"],[30,32,3,0],[30,34,3,0,"forEach"],[30,41,3,0],[30,52,3,0,"k"],[30,53,3,0],[31,4,3,0],[31,8,3,0,"k"],[31,9,3,0],[31,28,3,0,"Object"],[31,34,3,0],[31,35,3,0,"prototype"],[31,44,3,0],[31,45,3,0,"hasOwnProperty"],[31,59,3,0],[31,60,3,0,"call"],[31,64,3,0],[31,65,3,0,"exports"],[31,72,3,0],[31,74,3,0,"k"],[31,75,3,0],[32,6,3,0,"Object"],[32,12,3,0],[32,13,3,0,"defineProperty"],[32,27,3,0],[32,28,3,0,"exports"],[32,35,3,0],[32,37,3,0,"k"],[32,38,3,0],[33,8,3,0,"enumerable"],[33,18,3,0],[34,8,3,0,"get"],[34,11,3,0],[34,22,3,0,"get"],[34,23,3,0],[35,10,3,0],[35,17,3,0,"_LocalizationTypes"],[35,35,3,0],[35,36,3,0,"k"],[35,37,3,0],[36,8,3,0],[37,6,3,0],[38,4,3,0],[39,2,3,0],[40,2,4,0],[41,0,5,0],[42,0,6,0],[43,0,7,0],[44,0,8,0],[45,0,9,0],[46,0,10,0],[47,0,11,0],[48,0,12,0],[49,0,13,0],[50,0,14,0],[51,0,15,0],[52,0,16,0],[53,0,17,0],[54,0,18,0],[55,0,19,0],[56,0,20,0],[57,0,21,0],[58,0,22,0],[59,0,23,0],[60,0,24,0],[61,0,25,0],[62,2,26,7],[62,8,26,13,"getLocales"],[62,18,26,23],[62,21,26,26,"ExpoLocalization"],[62,37,26,42],[62,38,26,42,"default"],[62,45,26,42],[62,46,26,43,"getLocales"],[62,56,26,53],[63,2,27,0],[64,0,28,0],[65,0,29,0],[66,0,30,0],[67,0,31,0],[68,0,32,0],[69,0,33,0],[70,0,34,0],[71,0,35,0],[72,0,36,0],[73,0,37,0],[74,0,38,0],[75,0,39,0],[76,0,40,0],[77,2,41,7],[77,8,41,13,"getCalendars"],[77,20,41,25],[77,23,41,28,"ExpoLocalization"],[77,39,41,44],[77,40,41,44,"default"],[77,47,41,44],[77,48,41,45,"getCalendars"],[77,60,41,57],[78,2,42,0],[79,0,43,0],[80,0,44,0],[81,0,45,0],[82,0,46,0],[83,0,47,0],[84,0,48,0],[85,0,49,0],[86,0,50,0],[87,0,51,0],[88,0,52,0],[89,0,53,0],[90,0,54,0],[91,0,55,0],[92,0,56,0],[93,0,57,0],[94,0,58,0],[95,0,59,0],[96,0,60,0],[97,0,61,0],[98,0,62,0],[99,0,63,0],[100,0,64,0],[101,2,65,7],[101,11,65,16,"useLocales"],[101,21,65,26,"useLocales"],[101,22,65,26],[101,24,65,29],[102,4,66,4],[102,10,66,10],[102,11,66,11,"key"],[102,14,66,14],[102,16,66,16,"invalidate"],[102,26,66,26],[102,27,66,27],[102,30,66,30],[102,34,66,30,"useReducer"],[102,40,66,40],[102,41,66,40,"useReducer"],[102,51,66,40],[102,53,66,42,"k"],[102,54,66,43],[102,58,66,48,"k"],[102,59,66,49],[102,62,66,52],[102,63,66,53],[102,65,66,55],[102,66,66,56],[102,67,66,57],[103,4,67,4],[103,10,67,10,"locales"],[103,17,67,17],[103,20,67,20],[103,24,67,20,"useMemo"],[103,30,67,27],[103,31,67,27,"useMemo"],[103,38,67,27],[103,40,67,28],[103,46,67,34,"getLocales"],[103,56,67,44],[103,57,67,45],[103,58,67,46],[103,60,67,48],[103,61,67,49,"key"],[103,64,67,52],[103,65,67,53],[103,66,67,54],[104,4,68,4],[104,8,68,4,"useEffect"],[104,14,68,13],[104,15,68,13,"useEffect"],[104,24,68,13],[104,26,68,14],[104,32,68,20],[105,6,69,8],[105,12,69,14,"subscription"],[105,24,69,26],[105,27,69,29],[105,31,69,29,"addLocaleListener"],[105,48,69,46],[105,49,69,46,"addLocaleListener"],[105,66,69,46],[105,68,69,47,"invalidate"],[105,78,69,57],[105,79,69,58],[106,6,70,8],[106,13,70,15],[106,19,70,21],[107,8,71,12],[107,12,71,12,"removeSubscription"],[107,29,71,30],[107,30,71,30,"removeSubscription"],[107,48,71,30],[107,50,71,31,"subscription"],[107,62,71,43],[107,63,71,44],[108,6,72,8],[108,7,72,9],[109,4,73,4],[109,5,73,5],[109,7,73,7],[109,9,73,9],[109,10,73,10],[110,4,74,4],[110,11,74,11,"locales"],[110,18,74,18],[111,2,75,0],[112,2,76,0],[113,0,77,0],[114,0,78,0],[115,0,79,0],[116,0,80,0],[117,0,81,0],[118,0,82,0],[119,0,83,0],[120,0,84,0],[121,0,85,0],[122,0,86,0],[123,0,87,0],[124,0,88,0],[125,0,89,0],[126,0,90,0],[127,2,91,7],[127,11,91,16,"useCalendars"],[127,23,91,28,"useCalendars"],[127,24,91,28],[127,26,91,31],[128,4,92,4],[128,10,92,10],[128,11,92,11,"key"],[128,14,92,14],[128,16,92,16,"invalidate"],[128,26,92,26],[128,27,92,27],[128,30,92,30],[128,34,92,30,"useReducer"],[128,40,92,40],[128,41,92,40,"useReducer"],[128,51,92,40],[128,53,92,42,"k"],[128,54,92,43],[128,58,92,48,"k"],[128,59,92,49],[128,62,92,52],[128,63,92,53],[128,65,92,55],[128,66,92,56],[128,67,92,57],[129,4,93,4],[129,10,93,10,"calendars"],[129,19,93,19],[129,22,93,22],[129,26,93,22,"useMemo"],[129,32,93,29],[129,33,93,29,"useMemo"],[129,40,93,29],[129,42,93,30],[129,48,93,36,"getCalendars"],[129,60,93,48],[129,61,93,49],[129,62,93,50],[129,64,93,52],[129,65,93,53,"key"],[129,68,93,56],[129,69,93,57],[129,70,93,58],[130,4,94,4],[130,8,94,4,"useEffect"],[130,14,94,13],[130,15,94,13,"useEffect"],[130,24,94,13],[130,26,94,14],[130,32,94,20],[131,6,95,8],[131,12,95,14,"subscription"],[131,24,95,26],[131,27,95,29],[131,31,95,29,"addCalendarListener"],[131,48,95,48],[131,49,95,48,"addCalendarListener"],[131,68,95,48],[131,70,95,49,"invalidate"],[131,80,95,59],[131,81,95,60],[132,6,96,8],[132,13,96,15],[132,19,96,21],[133,8,97,12],[133,12,97,12,"removeSubscription"],[133,29,97,30],[133,30,97,30,"removeSubscription"],[133,48,97,30],[133,50,97,31,"subscription"],[133,62,97,43],[133,63,97,44],[134,6,98,8],[134,7,98,9],[135,4,99,4],[135,5,99,5],[135,7,99,7],[135,9,99,9],[135,10,99,10],[136,4,100,4],[136,11,100,11,"calendars"],[136,20,100,20],[137,2,101,0],[138,0,101,1],[138,3]],"functionMap":{"names":["<global>","useLocales","useReducer$argument_0","useMemo$argument_0","useEffect$argument_0","<anonymous>","useCalendars"],"mappings":"AAA;OCgE;yCCC,YD;4BEC,kBF;cGC;eCE;SDE;KHC;CDE;OMgB;yCJC,YI;8BHC,oBG;cFC;eCE;SDE;KEC;CNE"},"hasCjsExports":false},"type":"js/module"}]} |