{"version":3,"file":"StudentNavbarItemsAppClient-hjn-2Mbi.js","sources":["../../../client/app/modules/proficiency_cutoffs.js","../../../client/app/bundles/Teacher/components/modules/percentage_displayer.jsx","../../../client/app/modules/timezones.js","../../../client/app/bundles/Teacher/components/accounts/edit/update_password.jsx","../../../client/app/bundles/Student/startup/StudentFeedbackModalAppClient.jsx","../../../client/app/bundles/Student/startup/StudentNavbarItemsAppClient.jsx"],"sourcesContent":["import proficiency_cutoffs from '../../../lib/proficiency_cutoffs.json';\n\nexport function proficiencyCutoffsAsPercentage() {\n return (\n {\n proficient: proficiency_cutoffs.proficient * 100,\n nearlyProficient: proficiency_cutoffs.nearly_proficient * 100,\n });\n}\n\nexport default proficiency_cutoffs;\n","export default function () {\n this.run = function (value) {\n if (value == null) {\n return \"Not completed yet\";\n } else {\n return (Math.round(100*value)) + \"%\";\n }\n }\n}\n","/* Timezones are borrowed from Google Calendar */\n\n// eslint-disable-next-line max-len\n// [...$0.children].map(el => ({ label: (el.getAttribute('aria-label')|| '').replace(/\\(.*?\\)(.+)/, '$1').trim(), name: el.getAttribute('data-value'), offset: +(el.getAttribute('aria-label')|| '').replace(/\\(.*?(-?[0-9]{2}):([0-9]{2})\\).*/, (all, one, two) => +one + (two / 60) * (one > 0 ? 1 : -1)) }))\n\nexport default [\n {\n label: 'Niue Time',\n name: 'Pacific/Niue',\n offset: '-11:00',\n },\n {\n label: 'Samoa Standard Time',\n name: 'Pacific/Pago_Pago',\n offset: '-11:00',\n },\n {\n label: 'Cook Islands Standard Time',\n name: 'Pacific/Rarotonga',\n offset: '-10:00',\n },\n {\n label: 'Hawaii-Aleutian Standard Time',\n name: 'Pacific/Honolulu',\n offset: '-10:00',\n },\n {\n label: 'Hawaii-Aleutian Time',\n name: 'America/Adak',\n offset: '-10:00',\n },\n {\n label: 'Tahiti Time',\n name: 'Pacific/Tahiti',\n offset: '-10:00',\n },\n {\n label: 'Marquesas Time',\n name: 'Pacific/Marquesas',\n offset: '-09:30',\n },\n {\n label: 'Alaska Time - Anchorage',\n name: 'America/Anchorage',\n offset: '-09:00',\n },\n {\n label: 'Alaska Time - Juneau',\n name: 'America/Juneau',\n offset: '-09:00',\n },\n {\n label: 'Alaska Time - Nome',\n name: 'America/Nome',\n offset: '-09:00',\n },\n {\n label: 'Alaska Time - Sitka',\n name: 'America/Sitka',\n offset: '-09:00',\n },\n {\n label: 'Alaska Time - Yakutat',\n name: 'America/Yakutat',\n offset: '-09:00',\n },\n {\n label: 'Gambier Time',\n name: 'Pacific/Gambier',\n offset: '-09:00',\n },\n {\n label: 'Pacific Time - Dawson',\n name: 'America/Dawson',\n offset: '-08:00',\n },\n {\n label: 'Pacific Time - Los Angeles',\n name: 'America/Los_Angeles',\n offset: '-08:00',\n },\n {\n label: 'Pacific Time - Metlakatla',\n name: 'America/Metlakatla',\n offset: '-08:00',\n },\n {\n label: 'Pacific Time - Tijuana',\n name: 'America/Tijuana',\n offset: '-08:00',\n },\n {\n label: 'Pacific Time - Vancouver',\n name: 'America/Vancouver',\n offset: '-08:00',\n },\n {\n label: 'Pacific Time - Whitehorse',\n name: 'America/Whitehorse',\n offset: '-08:00',\n },\n {\n label: 'Pitcairn Time',\n name: 'Pacific/Pitcairn',\n offset: '-08:00',\n },\n {\n label: 'Mexican Pacific Standard Time',\n name: 'America/Hermosillo',\n offset: '-07:00',\n },\n {\n label: 'Mexican Pacific Time - Chihuahua',\n name: 'America/Chihuahua',\n offset: '-07:00',\n },\n {\n label: 'Mexican Pacific Time - Mazatlan',\n name: 'America/Mazatlan',\n offset: '-07:00',\n },\n {\n label: 'Mountain Standard Time - Creston',\n name: 'America/Creston',\n offset: '-07:00',\n },\n {\n label: 'Mountain Standard Time - Dawson Creek',\n name: 'America/Dawson_Creek',\n offset: '-07:00',\n },\n {\n label: 'Mountain Standard Time - Fort Nelson',\n name: 'America/Fort_Nelson',\n offset: '-07:00',\n },\n {\n label: 'Mountain Standard Time - Phoenix',\n name: 'America/Phoenix',\n offset: '-07:00',\n },\n {\n label: 'Mountain Time - Boise',\n name: 'America/Boise',\n offset: '-07:00',\n },\n {\n label: 'Mountain Time - Cambridge Bay',\n name: 'America/Cambridge_Bay',\n offset: '-07:00',\n },\n {\n label: 'Mountain Time - Denver',\n name: 'America/Denver',\n offset: '-07:00',\n },\n {\n label: 'Mountain Time - Edmonton',\n name: 'America/Edmonton',\n offset: '-07:00',\n },\n {\n label: 'Mountain Time - Inuvik',\n name: 'America/Inuvik',\n offset: '-07:00',\n },\n {\n label: 'Mountain Time - Ojinaga',\n name: 'America/Ojinaga',\n offset: '-07:00',\n },\n {\n label: 'Mountain Time - Yellowknife',\n name: 'America/Yellowknife',\n offset: '-07:00',\n },\n {\n label: 'Central Standard Time - Belize',\n name: 'America/Belize',\n offset: '-06:00',\n },\n {\n label: 'Central Standard Time - Costa Rica',\n name: 'America/Costa_Rica',\n offset: '-06:00',\n },\n {\n label: 'Central Standard Time - El Salvador',\n name: 'America/El_Salvador',\n offset: '-06:00',\n },\n {\n label: 'Central Standard Time - Guatemala',\n name: 'America/Guatemala',\n offset: '-06:00',\n },\n {\n label: 'Central Standard Time - Managua',\n name: 'America/Managua',\n offset: '-06:00',\n },\n {\n label: 'Central Standard Time - Regina',\n name: 'America/Regina',\n offset: '-06:00',\n },\n {\n label: 'Central Standard Time - Swift Current',\n name: 'America/Swift_Current',\n offset: '-06:00',\n },\n {\n label: 'Central Standard Time - Tegucigalpa',\n name: 'America/Tegucigalpa',\n offset: '-06:00',\n },\n {\n label: 'Central Time - Bahia Banderas',\n name: 'America/Bahia_Banderas',\n offset: '-06:00',\n },\n {\n label: 'Central Time - Beulah, North Dakota',\n name: 'America/North_Dakota/Beulah',\n offset: '-06:00',\n },\n {\n label: 'Central Time - Center, North Dakota',\n name: 'America/North_Dakota/Center',\n offset: '-06:00',\n },\n {\n label: 'Central Time - Chicago',\n name: 'America/Chicago',\n offset: '-06:00',\n },\n {\n label: 'Central Time - Knox, Indiana',\n name: 'America/Indiana/Knox',\n offset: '-06:00',\n },\n {\n label: 'Central Time - Matamoros',\n name: 'America/Matamoros',\n offset: '-06:00',\n },\n {\n label: 'Central Time - Menominee',\n name: 'America/Menominee',\n offset: '-06:00',\n },\n {\n label: 'Central Time - Merida',\n name: 'America/Merida',\n offset: '-06:00',\n },\n {\n label: 'Central Time - Mexico City',\n name: 'America/Mexico_City',\n offset: '-06:00',\n },\n {\n label: 'Central Time - Monterrey',\n name: 'America/Monterrey',\n offset: '-06:00',\n },\n {\n label: 'Central Time - New Salem, North Dakota',\n name: 'America/North_Dakota/New_Salem',\n offset: '-06:00',\n },\n {\n label: 'Central Time - Rainy River',\n name: 'America/Rainy_River',\n offset: '-06:00',\n },\n {\n label: 'Central Time - Rankin Inlet',\n name: 'America/Rankin_Inlet',\n offset: '-06:00',\n },\n {\n label: 'Central Time - Resolute',\n name: 'America/Resolute',\n offset: '-06:00',\n },\n {\n label: 'Central Time - Tell City, Indiana',\n name: 'America/Indiana/Tell_City',\n offset: '-06:00',\n },\n {\n label: 'Central Time - Winnipeg',\n name: 'America/Winnipeg',\n offset: '-06:00',\n },\n {\n label: 'Galapagos Time',\n name: 'Pacific/Galapagos',\n offset: '-06:00',\n },\n {\n label: 'Acre Standard Time - Eirunepe',\n name: 'America/Eirunepe',\n offset: '-05:00',\n },\n {\n label: 'Acre Standard Time - Rio Branco',\n name: 'America/Rio_Branco',\n offset: '-05:00',\n },\n {\n label: 'Colombia Standard Time',\n name: 'America/Bogota',\n offset: '-05:00',\n },\n {\n label: 'Cuba Time',\n name: 'America/Havana',\n offset: '-05:00',\n },\n {\n label: 'Easter Island Time',\n name: 'Pacific/Easter',\n offset: '-05:00',\n },\n {\n label: 'Eastern Standard Time - Atikokan',\n name: 'America/Atikokan',\n offset: '-05:00',\n },\n {\n label: 'Eastern Standard Time - Cancun',\n name: 'America/Cancun',\n offset: '-05:00',\n },\n {\n label: 'Eastern Standard Time - Jamaica',\n name: 'America/Jamaica',\n offset: '-05:00',\n },\n {\n label: 'Eastern Standard Time - Panama',\n name: 'America/Panama',\n offset: '-05:00',\n },\n {\n label: 'Eastern Time - Detroit',\n name: 'America/Detroit',\n offset: '-05:00',\n },\n {\n label: 'Eastern Time - Grand Turk',\n name: 'America/Grand_Turk',\n offset: '-05:00',\n },\n {\n label: 'Eastern Time - Indianapolis',\n name: 'America/Indiana/Indianapolis',\n offset: '-05:00',\n },\n {\n label: 'Eastern Time - Iqaluit',\n name: 'America/Iqaluit',\n offset: '-05:00',\n },\n {\n label: 'Eastern Time - Louisville',\n name: 'America/Kentucky/Louisville',\n offset: '-05:00',\n },\n {\n label: 'Eastern Time - Marengo, Indiana',\n name: 'America/Indiana/Marengo',\n offset: '-05:00',\n },\n {\n label: 'Eastern Time - Monticello, Kentucky',\n name: 'America/Kentucky/Monticello',\n offset: '-05:00',\n },\n {\n label: 'Eastern Time - Nassau',\n name: 'America/Nassau',\n offset: '-05:00',\n },\n {\n label: 'Eastern Time - New York',\n name: 'America/New_York',\n offset: '-05:00',\n },\n {\n label: 'Eastern Time - Nipigon',\n name: 'America/Nipigon',\n offset: '-05:00',\n },\n {\n label: 'Eastern Time - Pangnirtung',\n name: 'America/Pangnirtung',\n offset: '-05:00',\n },\n {\n label: 'Eastern Time - Petersburg, Indiana',\n name: 'America/Indiana/Petersburg',\n offset: '-05:00',\n },\n {\n label: 'Eastern Time - Port-au-Prince',\n name: 'America/Port-au-Prince',\n offset: '-05:00',\n },\n {\n label: 'Eastern Time - Thunder Bay',\n name: 'America/Thunder_Bay',\n offset: '-05:00',\n },\n {\n label: 'Eastern Time - Toronto',\n name: 'America/Toronto',\n offset: '-05:00',\n },\n {\n label: 'Eastern Time - Vevay, Indiana',\n name: 'America/Indiana/Vevay',\n offset: '-05:00',\n },\n {\n label: 'Eastern Time - Vincennes, Indiana',\n name: 'America/Indiana/Vincennes',\n offset: '-05:00',\n },\n {\n label: 'Eastern Time - Winamac, Indiana',\n name: 'America/Indiana/Winamac',\n offset: '-05:00',\n },\n {\n label: 'Ecuador Time',\n name: 'America/Guayaquil',\n offset: '-05:00',\n },\n {\n label: 'Peru Standard Time',\n name: 'America/Lima',\n offset: '-05:00',\n },\n {\n label: 'Amazon Standard Time - Boa Vista',\n name: 'America/Boa_Vista',\n offset: '-04:00',\n },\n {\n label: 'Amazon Standard Time - Manaus',\n name: 'America/Manaus',\n offset: '-04:00',\n },\n {\n label: 'Amazon Standard Time - Porto Velho',\n name: 'America/Porto_Velho',\n offset: '-04:00',\n },\n {\n label: 'Atlantic Standard Time - Barbados',\n name: 'America/Barbados',\n offset: '-04:00',\n },\n {\n label: 'Atlantic Standard Time - Blanc-Sablon',\n name: 'America/Blanc-Sablon',\n offset: '-04:00',\n },\n {\n label: 'Atlantic Standard Time - Curaçao',\n name: 'America/Curacao',\n offset: '-04:00',\n },\n {\n label: 'Atlantic Standard Time - Martinique',\n name: 'America/Martinique',\n offset: '-04:00',\n },\n {\n label: 'Atlantic Standard Time - Port of Spain',\n name: 'America/Port_of_Spain',\n offset: '-04:00',\n },\n {\n label: 'Atlantic Standard Time - Puerto Rico',\n name: 'America/Puerto_Rico',\n offset: '-04:00',\n },\n {\n label: 'Atlantic Standard Time - Santo Domingo',\n name: 'America/Santo_Domingo',\n offset: '-04:00',\n },\n {\n label: 'Atlantic Time - Bermuda',\n name: 'Atlantic/Bermuda',\n offset: '-04:00',\n },\n {\n label: 'Atlantic Time - Glace Bay',\n name: 'America/Glace_Bay',\n offset: '-04:00',\n },\n {\n label: 'Atlantic Time - Goose Bay',\n name: 'America/Goose_Bay',\n offset: '-04:00',\n },\n {\n label: 'Atlantic Time - Halifax',\n name: 'America/Halifax',\n offset: '-04:00',\n },\n {\n label: 'Atlantic Time - Moncton',\n name: 'America/Moncton',\n offset: '-04:00',\n },\n {\n label: 'Atlantic Time - Thule',\n name: 'America/Thule',\n offset: '-04:00',\n },\n {\n label: 'Bolivia Time',\n name: 'America/La_Paz',\n offset: '-04:00',\n },\n {\n label: 'Guyana Time',\n name: 'America/Guyana',\n offset: '-04:00',\n },\n {\n label: 'Venezuela Time',\n name: 'America/Caracas',\n offset: '-04:00',\n },\n {\n label: 'Newfoundland Time',\n name: 'America/St_Johns',\n offset: '-03:30',\n },\n {\n label: 'Amazon Time (Campo Grande)',\n name: 'America/Campo_Grande',\n offset: '-03:00',\n },\n {\n label: 'Amazon Time (Cuiaba)',\n name: 'America/Cuiaba',\n offset: '-03:00',\n },\n {\n label: 'Argentina Standard Time - Buenos Aires',\n name: 'America/Argentina/Buenos_Aires',\n offset: '-03:00',\n },\n {\n label: 'Argentina Standard Time - Catamarca',\n name: 'America/Argentina/Catamarca',\n offset: '-03:00',\n },\n {\n label: 'Argentina Standard Time - Cordoba',\n name: 'America/Argentina/Cordoba',\n offset: '-03:00',\n },\n {\n label: 'Argentina Standard Time - Jujuy',\n name: 'America/Argentina/Jujuy',\n offset: '-03:00',\n },\n {\n label: 'Argentina Standard Time - La Rioja',\n name: 'America/Argentina/La_Rioja',\n offset: '-03:00',\n },\n {\n label: 'Argentina Standard Time - Mendoza',\n name: 'America/Argentina/Mendoza',\n offset: '-03:00',\n },\n {\n label: 'Argentina Standard Time - Rio Gallegos',\n name: 'America/Argentina/Rio_Gallegos',\n offset: '-03:00',\n },\n {\n label: 'Argentina Standard Time - Salta',\n name: 'America/Argentina/Salta',\n offset: '-03:00',\n },\n {\n label: 'Argentina Standard Time - San Juan',\n name: 'America/Argentina/San_Juan',\n offset: '-03:00',\n },\n {\n label: 'Argentina Standard Time - Tucuman',\n name: 'America/Argentina/Tucuman',\n offset: '-03:00',\n },\n {\n label: 'Argentina Standard Time - Ushuaia',\n name: 'America/Argentina/Ushuaia',\n offset: '-03:00',\n },\n {\n label: 'Brasilia Standard Time - Araguaina',\n name: 'America/Araguaina',\n offset: '-03:00',\n },\n {\n label: 'Brasilia Standard Time - Bahia',\n name: 'America/Bahia',\n offset: '-03:00',\n },\n {\n label: 'Brasilia Standard Time - Belem',\n name: 'America/Belem',\n offset: '-03:00',\n },\n {\n label: 'Brasilia Standard Time - Fortaleza',\n name: 'America/Fortaleza',\n offset: '-03:00',\n },\n {\n label: 'Brasilia Standard Time - Maceio',\n name: 'America/Maceio',\n offset: '-03:00',\n },\n {\n label: 'Brasilia Standard Time - Recife',\n name: 'America/Recife',\n offset: '-03:00',\n },\n {\n label: 'Brasilia Standard Time - Santarem',\n name: 'America/Santarem',\n offset: '-03:00',\n },\n {\n label: 'Chile Time',\n name: 'America/Santiago',\n offset: '-03:00',\n },\n {\n label: 'Falkland Islands Standard Time',\n name: 'Atlantic/Stanley',\n offset: '-03:00',\n },\n {\n label: 'French Guiana Time',\n name: 'America/Cayenne',\n offset: '-03:00',\n },\n {\n label: 'Palmer Time',\n name: 'Antarctica/Palmer',\n offset: '-03:00',\n },\n {\n label: 'Paraguay Time',\n name: 'America/Asuncion',\n offset: '-03:00',\n },\n {\n label: 'Punta Arenas Time',\n name: 'America/Punta_Arenas',\n offset: '-03:00',\n },\n {\n label: 'Rothera Time',\n name: 'Antarctica/Rothera',\n offset: '-03:00',\n },\n {\n label: 'St. Pierre & Miquelon Time',\n name: 'America/Miquelon',\n offset: '-03:00',\n },\n {\n label: 'Suriname Time',\n name: 'America/Paramaribo',\n offset: '-03:00',\n },\n {\n label: 'Uruguay Standard Time',\n name: 'America/Montevideo',\n offset: '-03:00',\n },\n {\n label: 'West Greenland Time',\n name: 'America/Godthab',\n offset: '-03:00',\n },\n {\n label: 'Western Argentina Standard Time',\n name: 'America/Argentina/San_Luis',\n offset: '-03:00',\n },\n {\n label: 'Brasilia Time',\n name: 'America/Sao_Paulo',\n offset: '-02:00',\n },\n {\n label: 'Fernando de Noronha Standard Time',\n name: 'America/Noronha',\n offset: '-02:00',\n },\n {\n label: 'South Georgia Time',\n name: 'Atlantic/South_Georgia',\n offset: '-02:00',\n },\n {\n label: 'Azores Time',\n name: 'Atlantic/Azores',\n offset: '-01:00',\n },\n {\n label: 'Cape Verde Standard Time',\n name: 'Atlantic/Cape_Verde',\n offset: '-01:00',\n },\n {\n label: 'East Greenland Time',\n name: 'America/Scoresbysund',\n offset: '-01:00',\n },\n {\n label: 'Coordinated Universal Time',\n name: 'UTC',\n offset: '+00:00',\n },\n {\n label: 'Greenwich Mean Time',\n name: 'Etc/GMT',\n offset: '+00:00',\n },\n {\n label: 'Greenwich Mean Time - Abidjan',\n name: 'Africa/Abidjan',\n offset: '+00:00',\n },\n {\n label: 'Greenwich Mean Time - Accra',\n name: 'Africa/Accra',\n offset: '+00:00',\n },\n {\n label: 'Greenwich Mean Time - Bissau',\n name: 'Africa/Bissau',\n offset: '+00:00',\n },\n {\n label: 'Greenwich Mean Time - Danmarkshavn',\n name: 'America/Danmarkshavn',\n offset: '+00:00',\n },\n {\n label: 'Greenwich Mean Time - Monrovia',\n name: 'Africa/Monrovia',\n offset: '+00:00',\n },\n {\n label: 'Greenwich Mean Time - Reykjavik',\n name: 'Atlantic/Reykjavik',\n offset: '+00:00',\n },\n {\n label: 'Greenwich Mean Time - São Tomé',\n name: 'Africa/Sao_Tome',\n offset: '+00:00',\n },\n {\n label: 'Ireland Time',\n name: 'Europe/Dublin',\n offset: '+00:00',\n },\n {\n label: 'Troll Time',\n name: 'Antarctica/Troll',\n offset: '+00:00',\n },\n {\n label: 'United Kingdom Time',\n name: 'Europe/London',\n offset: '+00:00',\n },\n {\n label: 'Western European Time - Canary',\n name: 'Atlantic/Canary',\n offset: '+00:00',\n },\n {\n label: 'Western European Time - Faroe',\n name: 'Atlantic/Faroe',\n offset: '+00:00',\n },\n {\n label: 'Western European Time - Lisbon',\n name: 'Europe/Lisbon',\n offset: '+00:00',\n },\n {\n label: 'Western European Time - Madeira',\n name: 'Atlantic/Madeira',\n offset: '+00:00',\n },\n {\n label: 'Central European Standard Time - Algiers',\n name: 'Africa/Algiers',\n offset: '+01:00',\n },\n {\n label: 'Central European Standard Time - Tunis',\n name: 'Africa/Tunis',\n offset: '+01:00',\n },\n {\n label: 'Central European Time - Amsterdam',\n name: 'Europe/Amsterdam',\n offset: '+01:00',\n },\n {\n label: 'Central European Time - Andorra',\n name: 'Europe/Andorra',\n offset: '+01:00',\n },\n {\n label: 'Central European Time - Belgrade',\n name: 'Europe/Belgrade',\n offset: '+01:00',\n },\n {\n label: 'Central European Time - Berlin',\n name: 'Europe/Berlin',\n offset: '+01:00',\n },\n {\n label: 'Central European Time - Brussels',\n name: 'Europe/Brussels',\n offset: '+01:00',\n },\n {\n label: 'Central European Time - Budapest',\n name: 'Europe/Budapest',\n offset: '+01:00',\n },\n {\n label: 'Central European Time - Ceuta',\n name: 'Africa/Ceuta',\n offset: '+01:00',\n },\n {\n label: 'Central European Time - Copenhagen',\n name: 'Europe/Copenhagen',\n offset: '+01:00',\n },\n {\n label: 'Central European Time - Gibraltar',\n name: 'Europe/Gibraltar',\n offset: '+01:00',\n },\n {\n label: 'Central European Time - Luxembourg',\n name: 'Europe/Luxembourg',\n offset: '+01:00',\n },\n {\n label: 'Central European Time - Madrid',\n name: 'Europe/Madrid',\n offset: '+01:00',\n },\n {\n label: 'Central European Time - Malta',\n name: 'Europe/Malta',\n offset: '+01:00',\n },\n {\n label: 'Central European Time - Monaco',\n name: 'Europe/Monaco',\n offset: '+01:00',\n },\n {\n label: 'Central European Time - Oslo',\n name: 'Europe/Oslo',\n offset: '+01:00',\n },\n {\n label: 'Central European Time - Paris',\n name: 'Europe/Paris',\n offset: '+01:00',\n },\n {\n label: 'Central European Time - Prague',\n name: 'Europe/Prague',\n offset: '+01:00',\n },\n {\n label: 'Central European Time - Rome',\n name: 'Europe/Rome',\n offset: '+01:00',\n },\n {\n label: 'Central European Time - Stockholm',\n name: 'Europe/Stockholm',\n offset: '+01:00',\n },\n {\n label: 'Central European Time - Tirane',\n name: 'Europe/Tirane',\n offset: '+01:00',\n },\n {\n label: 'Central European Time - Vienna',\n name: 'Europe/Vienna',\n offset: '+01:00',\n },\n {\n label: 'Central European Time - Warsaw',\n name: 'Europe/Warsaw',\n offset: '+01:00',\n },\n {\n label: 'Central European Time - Zurich',\n name: 'Europe/Zurich',\n offset: '+01:00',\n },\n {\n label: 'Morocco Time',\n name: 'Africa/Casablanca',\n offset: '+01:00',\n },\n {\n label: 'West Africa Standard Time - Lagos',\n name: 'Africa/Lagos',\n offset: '+01:00',\n },\n {\n label: 'West Africa Standard Time - Ndjamena',\n name: 'Africa/Ndjamena',\n offset: '+01:00',\n },\n {\n label: 'Western Sahara Time',\n name: 'Africa/El_Aaiun',\n offset: '+01:00',\n },\n {\n label: 'Central Africa Time - Khartoum',\n name: 'Africa/Khartoum',\n offset: '+02:00',\n },\n {\n label: 'Central Africa Time - Maputo',\n name: 'Africa/Maputo',\n offset: '+02:00',\n },\n {\n label: 'Central Africa Time - Windhoek',\n name: 'Africa/Windhoek',\n offset: '+02:00',\n },\n {\n label: 'Eastern European Standard Time - Cairo',\n name: 'Africa/Cairo',\n offset: '+02:00',\n },\n {\n label: 'Eastern European Standard Time - Kaliningrad',\n name: 'Europe/Kaliningrad',\n offset: '+02:00',\n },\n {\n label: 'Eastern European Standard Time - Tripoli',\n name: 'Africa/Tripoli',\n offset: '+02:00',\n },\n {\n label: 'Eastern European Time - Amman',\n name: 'Asia/Amman',\n offset: '+02:00',\n },\n {\n label: 'Eastern European Time - Athens',\n name: 'Europe/Athens',\n offset: '+02:00',\n },\n {\n label: 'Eastern European Time - Beirut',\n name: 'Asia/Beirut',\n offset: '+02:00',\n },\n {\n label: 'Eastern European Time - Bucharest',\n name: 'Europe/Bucharest',\n offset: '+02:00',\n },\n {\n label: 'Eastern European Time - Chisinau',\n name: 'Europe/Chisinau',\n offset: '+02:00',\n },\n {\n label: 'Eastern European Time - Damascus',\n name: 'Asia/Damascus',\n offset: '+02:00',\n },\n {\n label: 'Eastern European Time - Gaza',\n name: 'Asia/Gaza',\n offset: '+02:00',\n },\n {\n label: 'Eastern European Time - Hebron',\n name: 'Asia/Hebron',\n offset: '+02:00',\n },\n {\n label: 'Eastern European Time - Helsinki',\n name: 'Europe/Helsinki',\n offset: '+02:00',\n },\n {\n label: 'Eastern European Time - Kiev',\n name: 'Europe/Kiev',\n offset: '+02:00',\n },\n {\n label: 'Eastern European Time - Nicosia',\n name: 'Asia/Nicosia',\n offset: '+02:00',\n },\n {\n label: 'Eastern European Time - Riga',\n name: 'Europe/Riga',\n offset: '+02:00',\n },\n {\n label: 'Eastern European Time - Sofia',\n name: 'Europe/Sofia',\n offset: '+02:00',\n },\n {\n label: 'Eastern European Time - Tallinn',\n name: 'Europe/Tallinn',\n offset: '+02:00',\n },\n {\n label: 'Eastern European Time - Uzhhorod',\n name: 'Europe/Uzhgorod',\n offset: '+02:00',\n },\n {\n label: 'Eastern European Time - Vilnius',\n name: 'Europe/Vilnius',\n offset: '+02:00',\n },\n {\n label: 'Eastern European Time - Zaporozhye',\n name: 'Europe/Zaporozhye',\n offset: '+02:00',\n },\n {\n label: 'Famagusta Time',\n name: 'Asia/Famagusta',\n offset: '+02:00',\n },\n {\n label: 'Israel Time',\n name: 'Asia/Jerusalem',\n offset: '+02:00',\n },\n {\n label: 'South Africa Standard Time',\n name: 'Africa/Johannesburg',\n offset: '+02:00',\n },\n {\n label: 'Arabian Standard Time - Baghdad',\n name: 'Asia/Baghdad',\n offset: '+03:00',\n },\n {\n label: 'Arabian Standard Time - Qatar',\n name: 'Asia/Qatar',\n offset: '+03:00',\n },\n {\n label: 'Arabian Standard Time - Riyadh',\n name: 'Asia/Riyadh',\n offset: '+03:00',\n },\n {\n label: 'East Africa Time - Juba',\n name: 'Africa/Juba',\n offset: '+03:00',\n },\n {\n label: 'East Africa Time - Nairobi',\n name: 'Africa/Nairobi',\n offset: '+03:00',\n },\n {\n label: 'Kirov Time',\n name: 'Europe/Kirov',\n offset: '+03:00',\n },\n {\n label: 'Moscow Standard Time - Minsk',\n name: 'Europe/Minsk',\n offset: '+03:00',\n },\n {\n label: 'Moscow Standard Time - Moscow',\n name: 'Europe/Moscow',\n offset: '+03:00',\n },\n {\n label: 'Moscow Standard Time - Simferopol',\n name: 'Europe/Simferopol',\n offset: '+03:00',\n },\n {\n label: 'Syowa Time',\n name: 'Antarctica/Syowa',\n offset: '+03:00',\n },\n {\n label: 'Turkey Time',\n name: 'Europe/Istanbul',\n offset: '+03:00',\n },\n {\n label: 'Iran Time',\n name: 'Asia/Tehran',\n offset: '+03:30',\n },\n {\n label: 'Armenia Standard Time',\n name: 'Asia/Yerevan',\n offset: '+04:00',\n },\n {\n label: 'Astrakhan Time',\n name: 'Europe/Astrakhan',\n offset: '+04:00',\n },\n {\n label: 'Azerbaijan Standard Time',\n name: 'Asia/Baku',\n offset: '+04:00',\n },\n {\n label: 'Georgia Standard Time',\n name: 'Asia/Tbilisi',\n offset: '+04:00',\n },\n {\n label: 'Gulf Standard Time',\n name: 'Asia/Dubai',\n offset: '+04:00',\n },\n {\n label: 'Mauritius Standard Time',\n name: 'Indian/Mauritius',\n offset: '+04:00',\n },\n {\n label: 'Réunion Time',\n name: 'Indian/Reunion',\n offset: '+04:00',\n },\n {\n label: 'Samara Standard Time',\n name: 'Europe/Samara',\n offset: '+04:00',\n },\n {\n label: 'Saratov Time',\n name: 'Europe/Saratov',\n offset: '+04:00',\n },\n {\n label: 'Seychelles Time',\n name: 'Indian/Mahe',\n offset: '+04:00',\n },\n {\n label: 'Ulyanovsk Time',\n name: 'Europe/Ulyanovsk',\n offset: '+04:00',\n },\n {\n label: 'Volgograd Standard Time',\n name: 'Europe/Volgograd',\n offset: '+04:00',\n },\n {\n label: 'Afghanistan Time',\n name: 'Asia/Kabul',\n offset: '+04:30',\n },\n {\n label: 'French Southern & Antarctic Time',\n name: 'Indian/Kerguelen',\n offset: '+05:00',\n },\n {\n label: 'Maldives Time',\n name: 'Indian/Maldives',\n offset: '+05:00',\n },\n {\n label: 'Mawson Time',\n name: 'Antarctica/Mawson',\n offset: '+05:00',\n },\n {\n label: 'Pakistan Standard Time',\n name: 'Asia/Karachi',\n offset: '+05:00',\n },\n {\n label: 'Tajikistan Time',\n name: 'Asia/Dushanbe',\n offset: '+05:00',\n },\n {\n label: 'Turkmenistan Standard Time',\n name: 'Asia/Ashgabat',\n offset: '+05:00',\n },\n {\n label: 'Uzbekistan Standard Time - Samarkand',\n name: 'Asia/Samarkand',\n offset: '+05:00',\n },\n {\n label: 'Uzbekistan Standard Time - Tashkent',\n name: 'Asia/Tashkent',\n offset: '+05:00',\n },\n {\n label: 'West Kazakhstan Time - Aqtau',\n name: 'Asia/Aqtau',\n offset: '+05:00',\n },\n {\n label: 'West Kazakhstan Time - Aqtobe',\n name: 'Asia/Aqtobe',\n offset: '+05:00',\n },\n {\n label: 'West Kazakhstan Time - Atyrau',\n name: 'Asia/Atyrau',\n offset: '+05:00',\n },\n {\n label: 'West Kazakhstan Time - Oral',\n name: 'Asia/Oral',\n offset: '+05:00',\n },\n {\n label: 'West Kazakhstan Time - Qyzylorda',\n name: 'Asia/Qyzylorda',\n offset: '+05:00',\n },\n {\n label: 'Yekaterinburg Standard Time',\n name: 'Asia/Yekaterinburg',\n offset: '+05:00',\n },\n {\n label: 'India Standard Time - Colombo',\n name: 'Asia/Colombo',\n offset: '+05:30',\n },\n {\n label: 'India Standard Time - Kolkata',\n name: 'Asia/Kolkata',\n offset: '+05:30',\n },\n {\n label: 'Nepal Time',\n name: 'Asia/Kathmandu',\n offset: '+05:45',\n },\n {\n label: 'Bangladesh Standard Time',\n name: 'Asia/Dhaka',\n offset: '+06:00',\n },\n {\n label: 'Bhutan Time',\n name: 'Asia/Thimphu',\n offset: '+06:00',\n },\n {\n label: 'East Kazakhstan Time - Almaty',\n name: 'Asia/Almaty',\n offset: '+06:00',\n },\n {\n label: 'East Kazakhstan Time - Qostanay',\n name: 'Asia/Qostanay',\n offset: '+06:00',\n },\n {\n label: 'Indian Ocean Time',\n name: 'Indian/Chagos',\n offset: '+06:00',\n },\n {\n label: 'Kyrgyzstan Time',\n name: 'Asia/Bishkek',\n offset: '+06:00',\n },\n {\n label: 'Omsk Standard Time',\n name: 'Asia/Omsk',\n offset: '+06:00',\n },\n {\n label: 'Urumqi Time',\n name: 'Asia/Urumqi',\n offset: '+06:00',\n },\n {\n label: 'Vostok Time',\n name: 'Antarctica/Vostok',\n offset: '+06:00',\n },\n {\n label: 'Cocos Islands Time',\n name: 'Indian/Cocos',\n offset: '+06:30',\n },\n {\n label: 'Myanmar Time',\n name: 'Asia/Yangon',\n offset: '+06:30',\n },\n {\n label: 'Barnaul Time',\n name: 'Asia/Barnaul',\n offset: '+07:00',\n },\n {\n label: 'Christmas Island Time',\n name: 'Indian/Christmas',\n offset: '+07:00',\n },\n {\n label: 'Davis Time',\n name: 'Antarctica/Davis',\n offset: '+07:00',\n },\n {\n label: 'Hovd Standard Time',\n name: 'Asia/Hovd',\n offset: '+07:00',\n },\n {\n label: 'Indochina Time - Bangkok',\n name: 'Asia/Bangkok',\n offset: '+07:00',\n },\n {\n label: 'Indochina Time - Ho Chi Minh City',\n name: 'Asia/Ho_Chi_Minh',\n offset: '+07:00',\n },\n {\n label: 'Krasnoyarsk Standard Time - Krasnoyarsk',\n name: 'Asia/Krasnoyarsk',\n offset: '+07:00',\n },\n {\n label: 'Krasnoyarsk Standard Time - Novokuznetsk',\n name: 'Asia/Novokuznetsk',\n offset: '+07:00',\n },\n {\n label: 'Novosibirsk Standard Time',\n name: 'Asia/Novosibirsk',\n offset: '+07:00',\n },\n {\n label: 'Tomsk Time',\n name: 'Asia/Tomsk',\n offset: '+07:00',\n },\n {\n label: 'Western Indonesia Time - Jakarta',\n name: 'Asia/Jakarta',\n offset: '+07:00',\n },\n {\n label: 'Western Indonesia Time - Pontianak',\n name: 'Asia/Pontianak',\n offset: '+07:00',\n },\n {\n label: 'Australian Western Standard Time - Casey',\n name: 'Antarctica/Casey',\n offset: '+08:00',\n },\n {\n label: 'Australian Western Standard Time - Perth',\n name: 'Australia/Perth',\n offset: '+08:00',\n },\n {\n label: 'Brunei Darussalam Time',\n name: 'Asia/Brunei',\n offset: '+08:00',\n },\n {\n label: 'Central Indonesia Time',\n name: 'Asia/Makassar',\n offset: '+08:00',\n },\n {\n label: 'China Standard Time - Macau',\n name: 'Asia/Macau',\n offset: '+08:00',\n },\n {\n label: 'China Standard Time - Shanghai',\n name: 'Asia/Shanghai',\n offset: '+08:00',\n },\n {\n label: 'Choibalsan Standard Time',\n name: 'Asia/Choibalsan',\n offset: '+08:00',\n },\n {\n label: 'Hong Kong Standard Time',\n name: 'Asia/Hong_Kong',\n offset: '+08:00',\n },\n {\n label: 'Irkutsk Standard Time',\n name: 'Asia/Irkutsk',\n offset: '+08:00',\n },\n {\n label: 'Malaysia Time - Kuala Lumpur',\n name: 'Asia/Kuala_Lumpur',\n offset: '+08:00',\n },\n {\n label: 'Malaysia Time - Kuching',\n name: 'Asia/Kuching',\n offset: '+08:00',\n },\n {\n label: 'Philippine Standard Time',\n name: 'Asia/Manila',\n offset: '+8:00',\n },\n {\n label: 'Singapore Standard Time',\n name: 'Asia/Singapore',\n offset: '+8:00',\n },\n {\n label: 'Taipei Standard Time',\n name: 'Asia/Taipei',\n offset: '+8:00',\n },\n {\n label: 'Ulaanbaatar Standard Time',\n name: 'Asia/Ulaanbaatar',\n offset: '+8:00',\n },\n {\n label: 'Australian Central Western Standard Time',\n name: 'Australia/Eucla',\n offset: '+8:45',\n },\n {\n label: 'East Timor Time',\n name: 'Asia/Dili',\n offset: '+09:00',\n },\n {\n label: 'Eastern Indonesia Time',\n name: 'Asia/Jayapura',\n offset: '+09:00',\n },\n {\n label: 'Japan Standard Time',\n name: 'Asia/Tokyo',\n offset: '+09:00',\n },\n {\n label: 'Korean Standard Time - Pyongyang',\n name: 'Asia/Pyongyang',\n offset: '+09:00',\n },\n {\n label: 'Korean Standard Time - Seoul',\n name: 'Asia/Seoul',\n offset: '+09:00',\n },\n {\n label: 'Palau Time',\n name: 'Pacific/Palau',\n offset: '+09:00',\n },\n {\n label: 'Yakutsk Standard Time - Chita',\n name: 'Asia/Chita',\n offset: '+09:00',\n },\n {\n label: 'Yakutsk Standard Time - Khandyga',\n name: 'Asia/Khandyga',\n offset: '+09:00',\n },\n {\n label: 'Yakutsk Standard Time - Yakutsk',\n name: 'Asia/Yakutsk',\n offset: '+09:00',\n },\n {\n label: 'Australian Central Standard Time',\n name: 'Australia/Darwin',\n offset: '+09:30',\n },\n {\n label: 'Australian Eastern Standard Time - Brisbane',\n name: 'Australia/Brisbane',\n offset: '+10:00',\n },\n {\n label: 'Australian Eastern Standard Time - Lindeman',\n name: 'Australia/Lindeman',\n offset: '+10:00',\n },\n {\n label: 'Chamorro Standard Time',\n name: 'Pacific/Guam',\n offset: '+10:00',\n },\n {\n label: 'Chuuk Time',\n name: 'Pacific/Chuuk',\n offset: '+10:00',\n },\n {\n label: 'Dumont-d’Urville Time',\n name: 'Antarctica/DumontDUrville',\n offset: '+10:00',\n },\n {\n label: 'Papua New Guinea Time',\n name: 'Pacific/Port_Moresby',\n offset: '+10:00',\n },\n {\n label: 'Vladivostok Standard Time - Ust-Nera',\n name: 'Asia/Ust-Nera',\n offset: '+10:00',\n },\n {\n label: 'Vladivostok Standard Time - Vladivostok',\n name: 'Asia/Vladivostok',\n offset: '+10:00',\n },\n {\n label: 'Central Australia Time - Adelaide',\n name: 'Australia/Adelaide',\n offset: '+10:30',\n },\n {\n label: 'Central Australia Time - Broken Hill',\n name: 'Australia/Broken_Hill',\n offset: '+10:30',\n },\n {\n label: 'Bougainville Time',\n name: 'Pacific/Bougainville',\n offset: '+11:00',\n },\n {\n label: 'Eastern Australia Time - Currie',\n name: 'Australia/Currie',\n offset: '+11:00',\n },\n {\n label: 'Eastern Australia Time - Hobart',\n name: 'Australia/Hobart',\n offset: '+11:00',\n },\n {\n label: 'Eastern Australia Time - Melbourne',\n name: 'Australia/Melbourne',\n offset: '+11:00',\n },\n {\n label: 'Eastern Australia Time - Sydney',\n name: 'Australia/Sydney',\n offset: '+11:00',\n },\n {\n label: 'Kosrae Time',\n name: 'Pacific/Kosrae',\n offset: '+11:00',\n },\n {\n label: 'Lord Howe Time',\n name: 'Australia/Lord_Howe',\n offset: '+11:00',\n },\n {\n label: 'Macquarie Island Time',\n name: 'Antarctica/Macquarie',\n offset: '+11:00',\n },\n {\n label: 'Magadan Standard Time',\n name: 'Asia/Magadan',\n offset: '+11:00',\n },\n {\n label: 'New Caledonia Standard Time',\n name: 'Pacific/Noumea',\n offset: '+11:00',\n },\n {\n label: 'Norfolk Island Time',\n name: 'Pacific/Norfolk',\n offset: '+11:00',\n },\n {\n label: 'Ponape Time',\n name: 'Pacific/Pohnpei',\n offset: '+11:00',\n },\n {\n label: 'Sakhalin Standard Time',\n name: 'Asia/Sakhalin',\n offset: '+11:00',\n },\n {\n label: 'Solomon Islands Time',\n name: 'Pacific/Guadalcanal',\n offset: '+11:00',\n },\n {\n label: 'Srednekolymsk Time',\n name: 'Asia/Srednekolymsk',\n offset: '+11:00',\n },\n {\n label: 'Vanuatu Standard Time',\n name: 'Pacific/Efate',\n offset: '+11:00',\n },\n {\n label: 'Anadyr Standard Time',\n name: 'Asia/Anadyr',\n offset: '+12:00',\n },\n {\n label: 'Fiji Time',\n name: 'Pacific/Fiji',\n offset: '+12:00',\n },\n {\n label: 'Gilbert Islands Time',\n name: 'Pacific/Tarawa',\n offset: '+12:00',\n },\n {\n label: 'Marshall Islands Time - Kwajalein',\n name: 'Pacific/Kwajalein',\n offset: '+12:00',\n },\n {\n label: 'Marshall Islands Time - Majuro',\n name: 'Pacific/Majuro',\n offset: '+12:00',\n },\n {\n label: 'Nauru Time',\n name: 'Pacific/Nauru',\n offset: '+12:00',\n },\n {\n label: 'Petropavlovsk-Kamchatski Standard Time',\n name: 'Asia/Kamchatka',\n offset: '+12:00',\n },\n {\n label: 'Tuvalu Time',\n name: 'Pacific/Funafuti',\n offset: '+12:00',\n },\n {\n label: 'Wake Island Time',\n name: 'Pacific/Wake',\n offset: '+12:00',\n },\n {\n label: 'Wallis & Futuna Time',\n name: 'Pacific/Wallis',\n offset: '+12:00',\n },\n {\n label: 'New Zealand Time',\n name: 'Pacific/Auckland',\n offset: '+13:00',\n },\n {\n label: 'Phoenix Islands Time',\n name: 'Pacific/Enderbury',\n offset: '+13:00',\n },\n {\n label: 'Tokelau Time',\n name: 'Pacific/Fakaofo',\n offset: '+13:00',\n },\n {\n label: 'Tonga Standard Time',\n name: 'Pacific/Tongatapu',\n offset: '+13:00',\n },\n {\n label: 'Chatham Time',\n name: 'Pacific/Chatham',\n offset: '+13:45',\n },\n {\n label: 'Apia Time',\n name: 'Pacific/Apia',\n offset: '+14:00',\n },\n {\n label: 'Line Islands Time',\n name: 'Pacific/Kiritimati',\n offset: '+14:00',\n },\n];\n","import React, { Component } from 'react';\n\nimport { Input, } from '../../../../Shared/index';\nimport PasswordWrapper from '../shared/password_wrapper';\n\nexport default class UpdatePassword extends Component {\n state = {\n currentPassword: '',\n newPassword: '',\n showButtonSection: false\n }\n\n UNSAFE_componentWillReceiveProps(nextProps) {\n const { active, } = this.props\n if (active && !nextProps.active) {\n this.reset();\n }\n }\n\n onCurrentPasswordChange = (e) => this.handleChange('currentPassword', e)\n\n onNewPasswordChange = (e) => this.handleChange('newPassword', e)\n\n handleChange = (field, e) => {\n this.setState({ [field]: e.target.value, });\n }\n\n handleClickCancel = () => {\n const { deactivateSection, } = this.props\n this.reset();\n deactivateSection();\n }\n\n handleClickChangePassword = (e) => {\n const { showButtonSection, } = this.state\n const { active, activateSection, isBeingPreviewed, } = this.props;\n if (isBeingPreviewed || active || showButtonSection ) { return }\n\n this.setState({ showButtonSection: true, });\n activateSection();\n }\n\n handleSubmit = (e) => {\n const { currentPassword, newPassword, } = this.state;\n const { updateUser, role } = this.props;\n const url = role === 'teacher' ? '/teachers/update_my_password' : '/students/update_password';\n e.preventDefault()\n const data = {\n current_password: currentPassword,\n new_password: newPassword\n };\n updateUser(data, url, 'Settings saved');\n }\n\n reset = () => {\n this.setState({\n currentPassword: '',\n newPassword: ''\n });\n }\n\n submitClass = () => {\n const { currentPassword, newPassword, } = this.state\n let buttonClass = 'quill-button-archived contained primary medium focus-on-light';\n if (!(currentPassword.length && newPassword.length)) {\n buttonClass += ' disabled';\n }\n return buttonClass;\n }\n\n renderButtonSection = () => {\n const { showButtonSection, } = this.state\n if (showButtonSection) {\n return (\n
{role === 'teacher' ? teacherScript : studentScript}
\n )\n } else {\n return (\nPlease help us to improve Quill by typing your response below. Your response won't be made public.
\n \n