mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-25 09:55:15 +00:00
1 line
16 KiB
JSON
1 line
16 KiB
JSON
{"ast":null,"code":"import React from 'react';\nimport Select from 'react-select';\nimport spacetime from 'spacetime';\nimport { display } from 'spacetime-informal';\nexport const i18nTimezones = {\n 'Pacific/Midway': 'Midway Island, Samoa',\n 'Pacific/Honolulu': 'Hawaii',\n 'America/Juneau': 'Alaska',\n 'America/Boise': 'Mountain Time',\n 'America/Dawson': 'Dawson, Yukon',\n 'America/Chihuahua': 'Chihuahua, La Paz, Mazatlan',\n 'America/Phoenix': 'Arizona',\n 'America/Chicago': 'Central Time',\n 'America/Regina': 'Saskatchewan',\n 'America/Mexico_City': 'Guadalajara, Mexico City, Monterrey',\n 'America/Belize': 'Central America',\n 'America/Detroit': 'Eastern Time',\n 'America/Bogota': 'Bogota, Lima, Quito',\n 'America/Caracas': 'Caracas, La Paz',\n 'America/Santiago': 'Santiago',\n 'America/St_Johns': 'Newfoundland and Labrador',\n 'America/Sao_Paulo': 'Brasilia',\n 'America/Tijuana': 'Tijuana, Pacific Time',\n 'America/Argentina/Buenos_Aires': 'Buenos Aires, Georgetown',\n 'America/Godthab': 'Greenland',\n 'Atlantic/Azores': 'Azores',\n 'Atlantic/Cape_Verde': 'Cape Verde Islands',\n GMT: 'Dublin, Edinburgh, Lisbon, London',\n 'Africa/Casablanca': 'Casablanca, Monrovia',\n 'Atlantic/Canary': 'Canary Islands',\n 'Europe/Belgrade': 'Belgrade, Bratislava, Budapest, Ljubljana, Prague',\n 'Europe/Sarajevo': 'Sarajevo, Skopje, Warsaw, Zagreb',\n 'Europe/Brussels': 'Brussels, Copenhagen, Madrid, Paris',\n 'Europe/Amsterdam': 'Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna',\n 'Africa/Algiers': 'West Central Africa',\n 'Europe/Bucharest': 'Bucharest',\n 'Africa/Cairo': 'Cairo',\n 'Europe/Helsinki': 'Helsinki, Kiev, Riga, Sofia, Tallinn, Vilnius',\n 'Europe/Athens': 'Athens, Istanbul, Minsk',\n 'Asia/Jerusalem': 'Jerusalem',\n 'Africa/Harare': 'Harare, Pretoria',\n 'Europe/Moscow': 'Moscow, St. Petersburg, Volgograd',\n 'Asia/Kuwait': 'Kuwait, Riyadh',\n 'Africa/Nairobi': 'Nairobi',\n 'Asia/Baghdad': 'Baghdad',\n 'Asia/Tehran': 'Tehran',\n 'Asia/Dubai': 'Abu Dhabi, Muscat',\n 'Asia/Baku': 'Baku, Tbilisi, Yerevan',\n 'Asia/Kabul': 'Kabul',\n 'Asia/Yekaterinburg': 'Ekaterinburg',\n 'Asia/Karachi': 'Islamabad, Karachi, Tashkent',\n 'Asia/Kolkata': 'Chennai, Kolkata, Mumbai, New Delhi',\n 'Asia/Kathmandu': 'Kathmandu',\n 'Asia/Dhaka': 'Astana, Dhaka',\n 'Asia/Colombo': 'Sri Jayawardenepura',\n 'Asia/Almaty': 'Almaty, Novosibirsk',\n 'Asia/Rangoon': 'Yangon Rangoon',\n 'Asia/Bangkok': 'Bangkok, Hanoi, Jakarta',\n 'Asia/Krasnoyarsk': 'Krasnoyarsk',\n 'Asia/Shanghai': 'Beijing, Chongqing, Hong Kong SAR, Urumqi',\n 'Asia/Kuala_Lumpur': 'Kuala Lumpur, Singapore',\n 'Asia/Taipei': 'Taipei',\n 'Australia/Perth': 'Perth',\n 'Asia/Irkutsk': 'Irkutsk, Ulaanbaatar',\n 'Asia/Seoul': 'Seoul',\n 'Asia/Tokyo': 'Osaka, Sapporo, Tokyo',\n 'Asia/Yakutsk': 'Yakutsk',\n 'Australia/Darwin': 'Darwin',\n 'Australia/Adelaide': 'Adelaide',\n 'Australia/Sydney': 'Canberra, Melbourne, Sydney',\n 'Australia/Brisbane': 'Brisbane',\n 'Australia/Hobart': 'Hobart',\n 'Asia/Vladivostok': 'Vladivostok',\n 'Pacific/Guam': 'Guam, Port Moresby',\n 'Asia/Magadan': 'Magadan, Solomon Islands, New Caledonia',\n 'Asia/Kamchatka': 'Kamchatka, Marshall Islands',\n 'Pacific/Fiji': 'Fiji Islands',\n 'Pacific/Auckland': 'Auckland, Wellington',\n 'Pacific/Tongatapu': \"Nuku'alofa\"\n};\n\nconst TimezoneSelect = ({\n value,\n onBlur,\n onChange,\n labelStyle = 'original',\n timezones = i18nTimezones,\n ...props\n}) => {\n const getOptions = React.useMemo(() => {\n return Object.entries(timezones).reduce((obj, entry) => {\n const a = spacetime.now().goto(entry[0]);\n const tz = a.timezone();\n const tzDisplay = display(entry[0]);\n let label = '';\n let abbrev = entry[0];\n let altName = entry[0];\n\n if (tzDisplay && tzDisplay.daylight && tzDisplay.standard) {\n abbrev = a.isDST() ? tzDisplay.daylight.abbrev : tzDisplay.standard.abbrev;\n altName = a.isDST() ? tzDisplay.daylight.name : tzDisplay.standard.name;\n }\n\n const min = tz.current.offset * 60;\n const hr = `${min / 60 ^ 0}:` + (min % 60 === 0 ? '00' : Math.abs(min % 60));\n const prefix = `(GMT${hr.includes('-') ? hr : `+${hr}`}) ${entry[1]}`;\n\n switch (labelStyle) {\n case 'original':\n label = prefix;\n break;\n\n case 'altName':\n label = `${prefix} ${!altName.includes('/') ? `(${altName})` : ''}`;\n break;\n\n case 'abbrev':\n label = `${prefix} ${abbrev.length < 5 ? `(${abbrev})` : ''}`;\n break;\n\n default:\n label = `${prefix}`;\n }\n\n obj.push({\n value: entry[0],\n label: label,\n offset: tz.current.offset,\n abbrev: abbrev,\n altName: altName\n });\n return obj;\n }, []).sort((a, b) => {\n return a.offset - b.offset;\n });\n }, [labelStyle, timezones]);\n\n const handleChange = tz => {\n onChange && onChange(tz);\n };\n\n const parseTimezone = value => {\n if (typeof value === 'object' && value.value && value.label) return value;\n\n if (typeof value === 'string') {\n return getOptions.find(tz => tz.value === value);\n } else if (value.value && !value.label) {\n return getOptions.find(tz => tz.value === value.value);\n }\n };\n\n return React.createElement(Select, Object.assign({\n value: parseTimezone(value),\n onChange: handleChange,\n options: getOptions,\n onBlur: onBlur\n }, props));\n};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E,KAAA,CAAA,aAAA,CAAC,MAAD,EAAO,MAAA,CAAA,MAAA,CAAA;AACL,IAAA,KAAK,EAAE,aAAa,CAAC,KAAD,CADf;AAEL,IAAA,QAAQ,EAAE,YAFL;AAGL,IAAA,OAAO,EAAE,UAHJ;AAIL,IAAA,MAAM,EAAE;AAJH,GAAA,EAKD,KALC,CAAP,CADF;AASD,CAhFD;;AAkFA,eAAe,cAAf","sourceRoot":"","sourcesContent":["import React from 'react';\nimport Select from 'react-select';\nimport spacetime from 'spacetime';\nimport { display } from 'spacetime-informal';\nexport const i18nTimezones = {\n 'Pacific/Midway': 'Midway Island, Samoa',\n 'Pacific/Honolulu': 'Hawaii',\n 'America/Juneau': 'Alaska',\n 'America/Boise': 'Mountain Time',\n 'America/Dawson': 'Dawson, Yukon',\n 'America/Chihuahua': 'Chihuahua, La Paz, Mazatlan',\n 'America/Phoenix': 'Arizona',\n 'America/Chicago': 'Central Time',\n 'America/Regina': 'Saskatchewan',\n 'America/Mexico_City': 'Guadalajara, Mexico City, Monterrey',\n 'America/Belize': 'Central America',\n 'America/Detroit': 'Eastern Time',\n 'America/Bogota': 'Bogota, Lima, Quito',\n 'America/Caracas': 'Caracas, La Paz',\n 'America/Santiago': 'Santiago',\n 'America/St_Johns': 'Newfoundland and Labrador',\n 'America/Sao_Paulo': 'Brasilia',\n 'America/Tijuana': 'Tijuana, Pacific Time',\n 'America/Argentina/Buenos_Aires': 'Buenos Aires, Georgetown',\n 'America/Godthab': 'Greenland',\n 'Atlantic/Azores': 'Azores',\n 'Atlantic/Cape_Verde': 'Cape Verde Islands',\n GMT: 'Dublin, Edinburgh, Lisbon, London',\n 'Africa/Casablanca': 'Casablanca, Monrovia',\n 'Atlantic/Canary': 'Canary Islands',\n 'Europe/Belgrade': 'Belgrade, Bratislava, Budapest, Ljubljana, Prague',\n 'Europe/Sarajevo': 'Sarajevo, Skopje, Warsaw, Zagreb',\n 'Europe/Brussels': 'Brussels, Copenhagen, Madrid, Paris',\n 'Europe/Amsterdam': 'Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna',\n 'Africa/Algiers': 'West Central Africa',\n 'Europe/Bucharest': 'Bucharest',\n 'Africa/Cairo': 'Cairo',\n 'Europe/Helsinki': 'Helsinki, Kiev, Riga, Sofia, Tallinn, Vilnius',\n 'Europe/Athens': 'Athens, Istanbul, Minsk',\n 'Asia/Jerusalem': 'Jerusalem',\n 'Africa/Harare': 'Harare, Pretoria',\n 'Europe/Moscow': 'Moscow, St. Petersburg, Volgograd',\n 'Asia/Kuwait': 'Kuwait, Riyadh',\n 'Africa/Nairobi': 'Nairobi',\n 'Asia/Baghdad': 'Baghdad',\n 'Asia/Tehran': 'Tehran',\n 'Asia/Dubai': 'Abu Dhabi, Muscat',\n 'Asia/Baku': 'Baku, Tbilisi, Yerevan',\n 'Asia/Kabul': 'Kabul',\n 'Asia/Yekaterinburg': 'Ekaterinburg',\n 'Asia/Karachi': 'Islamabad, Karachi, Tashkent',\n 'Asia/Kolkata': 'Chennai, Kolkata, Mumbai, New Delhi',\n 'Asia/Kathmandu': 'Kathmandu',\n 'Asia/Dhaka': 'Astana, Dhaka',\n 'Asia/Colombo': 'Sri Jayawardenepura',\n 'Asia/Almaty': 'Almaty, Novosibirsk',\n 'Asia/Rangoon': 'Yangon Rangoon',\n 'Asia/Bangkok': 'Bangkok, Hanoi, Jakarta',\n 'Asia/Krasnoyarsk': 'Krasnoyarsk',\n 'Asia/Shanghai': 'Beijing, Chongqing, Hong Kong SAR, Urumqi',\n 'Asia/Kuala_Lumpur': 'Kuala Lumpur, Singapore',\n 'Asia/Taipei': 'Taipei',\n 'Australia/Perth': 'Perth',\n 'Asia/Irkutsk': 'Irkutsk, Ulaanbaatar',\n 'Asia/Seoul': 'Seoul',\n 'Asia/Tokyo': 'Osaka, Sapporo, Tokyo',\n 'Asia/Yakutsk': 'Yakutsk',\n 'Australia/Darwin': 'Darwin',\n 'Australia/Adelaide': 'Adelaide',\n 'Australia/Sydney': 'Canberra, Melbourne, Sydney',\n 'Australia/Brisbane': 'Brisbane',\n 'Australia/Hobart': 'Hobart',\n 'Asia/Vladivostok': 'Vladivostok',\n 'Pacific/Guam': 'Guam, Port Moresby',\n 'Asia/Magadan': 'Magadan, Solomon Islands, New Caledonia',\n 'Asia/Kamchatka': 'Kamchatka, Marshall Islands',\n 'Pacific/Fiji': 'Fiji Islands',\n 'Pacific/Auckland': 'Auckland, Wellington',\n 'Pacific/Tongatapu': \"Nuku'alofa\",\n};\nconst TimezoneSelect = ({ value, onBlur, onChange, labelStyle = 'original', timezones = i18nTimezones, ...props }) => {\n const getOptions = React.useMemo(() => {\n return Object.entries(timezones)\n .reduce((obj, entry) => {\n const a = spacetime.now().goto(entry[0]);\n const tz = a.timezone();\n const tzDisplay = display(entry[0]);\n let label = '';\n let abbrev = entry[0];\n let altName = entry[0];\n if (tzDisplay && tzDisplay.daylight && tzDisplay.standard) {\n abbrev = a.isDST()\n ? tzDisplay.daylight.abbrev\n : tzDisplay.standard.abbrev;\n altName = a.isDST()\n ? tzDisplay.daylight.name\n : tzDisplay.standard.name;\n }\n const min = tz.current.offset * 60;\n const hr = `${(min / 60) ^ 0}:` + (min % 60 === 0 ? '00' : Math.abs(min % 60));\n const prefix = `(GMT${hr.includes('-') ? hr : `+${hr}`}) ${entry[1]}`;\n switch (labelStyle) {\n case 'original':\n label = prefix;\n break;\n case 'altName':\n label = `${prefix} ${!altName.includes('/') ? `(${altName})` : ''}`;\n break;\n case 'abbrev':\n label = `${prefix} ${abbrev.length < 5 ? `(${abbrev})` : ''}`;\n break;\n default:\n label = `${prefix}`;\n }\n obj.push({\n value: entry[0],\n label: label,\n offset: tz.current.offset,\n abbrev: abbrev,\n altName: altName,\n });\n return obj;\n }, [])\n .sort((a, b) => {\n return a.offset - b.offset;\n });\n }, [labelStyle, timezones]);\n const handleChange = (tz) => {\n onChange && onChange(tz);\n };\n const parseTimezone = (value) => {\n if (typeof value === 'object' && value.value && value.label)\n return value;\n if (typeof value === 'string') {\n return getOptions.find(tz => tz.value === value);\n }\n else if (value.value && !value.label) {\n return getOptions.find(tz => tz.value === value.value);\n }\n };\n return (React.createElement(Select, Object.assign({ value: parseTimezone(value), onChange: handleChange, options: getOptions, onBlur: onBlur }, props)));\n};\nexport default TimezoneSelect;\n//# sourceMappingURL=index.js.map"]},"metadata":{},"sourceType":"module"} |