@aarhus-university/au-lib-react-components 8.20.2 → 8.82.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +44 -0
- package/README.md +19 -20
- package/babel.config.js +7 -0
- package/build/umd/all.css +1 -2
- package/build/umd/all.css.map +1 -1
- package/build/umd/all.js +1 -1
- package/build/umd/all.js.map +1 -1
- package/build/umd/alphabox.js +1 -1
- package/build/umd/alphabox.js.map +1 -1
- package/build/umd/databox.js +1 -6
- package/build/umd/databox.js.map +1 -1
- package/build/umd/diagramme.js +1 -1
- package/build/umd/diagramme.js.map +1 -1
- package/build/umd/flowbox.js +1 -1
- package/build/umd/flowbox.js.map +1 -1
- package/build/umd/universe.js +1 -1
- package/build/umd/universe.js.map +1 -1
- package/package.json +66 -65
- package/src/components/AUAlertComponent.tsx +70 -0
- package/src/components/{AutoSuggestComponent.js → AUAutoSuggestComponent.js} +45 -19
- package/src/components/AUCalendarComponent.tsx +493 -0
- package/src/components/AUContentToggleComponent.tsx +33 -0
- package/src/components/AUDatepickerComponent.tsx +117 -0
- package/src/components/AUMobilePrefixComponent.tsx +15 -0
- package/src/components/{delphinus/AUModalComponent.js → AUModalComponent.tsx} +78 -76
- package/src/components/{form/AUReceiptComponent.js → AUReceiptComponent.tsx} +33 -40
- package/src/components/AUSpinnerComponent.tsx +64 -0
- package/src/components/{delphinus/AUSubNavComponent.js → AUSubNavComponent.tsx} +38 -53
- package/src/components/{form/AUSubmitButtonContainerComponent.js → AUSubmitButtonContainerComponent.tsx} +31 -39
- package/src/components/AUTabbedContentComponent.tsx +145 -0
- package/src/components/{delphinus/AUTableComponent.js → AUTableComponent.tsx} +24 -28
- package/src/components/{delphinus/AUToastComponent.js → AUToastComponent.tsx} +104 -91
- package/src/components/{delphinus/AUToolbarComponent.js → AUToolbarComponent.tsx} +45 -48
- package/src/components/profile/AUProfileActions.js +128 -113
- package/src/components/profile/AUProfileAvatarComponent.js +83 -83
- package/src/components/profile/AUProfileAvatarV2Component.js +91 -0
- package/src/components/profile/AUProfileAvatarV3Component.tsx +42 -0
- package/src/components/profile/AUProfileContainerComponent.js +283 -285
- package/src/components/profile/AUProfileHooks.js +30 -30
- package/src/components/profile/AUProfileItemComponent.js +54 -54
- package/src/components/profile/AUProfileLanguageComponent.js +131 -131
- package/src/components/profile/{AUProfileLoginComponent.js → AUProfileLoginComponent.tsx} +3 -18
- package/src/components/profile/AUProfileMailComponent.js +307 -299
- package/src/components/profile/AUProfileMobileComponent.js +164 -164
- package/src/components/profile/AUProfileNameComponent.js +253 -253
- package/src/components/profile/AUProfileNextOfKinComponent.js +216 -216
- package/src/components/profile/AUProfileReducer.js +230 -210
- package/src/components/profile/AUProfileWidgetComponent.js +95 -95
- package/src/components/profile/AUProfileWidgetV2Component.js +116 -0
- package/src/components/profile/AUProfileWidgetV3Component.tsx +122 -0
- package/src/components/wrapping/AUEmbedComponent.js +47 -47
- package/src/{components → layout-2016/components}/alphabox/AlphaBoxComponent.js +29 -28
- package/src/{components → layout-2016/components}/alphabox/AlphaBoxContentComponent.js +25 -14
- package/src/{components → layout-2016/components/common}/AUCollapsibleComponent.js +1 -22
- package/src/{components → layout-2016/components/common}/AUSpinnerComponent.js +2 -24
- package/src/{components → layout-2016/components}/databox/DataBoxAlphabetComponent.js +1 -1
- package/src/{components → layout-2016/components}/databox/DataBoxAssociationComponent.js +2 -2
- package/src/{components → layout-2016/components}/databox/DataBoxButtonComponent.js +7 -3
- package/src/{components → layout-2016/components}/databox/DataBoxComponent.js +2 -2
- package/src/{components → layout-2016/components}/databox/DataBoxGroupingComponent.js +2 -0
- package/src/{components → layout-2016/components}/databox/DataBoxSearchResultComponent.js +1 -5
- package/src/{components → layout-2016/components}/databox/DataBoxStackedAssociationComponent.js +1 -5
- package/src/{components → layout-2016/components}/databox/DataBoxSuggestionComponent.js +0 -0
- package/src/{components → layout-2016/components/diagramme}/AUDiagrammeComponent.js +5 -6
- package/src/{components → layout-2016/components}/flowbox/FlowBoxComponent.js +8 -8
- package/src/{components → layout-2016/components}/flowbox/FlowBoxPhoneComponent.js +3 -5
- package/src/{components → layout-2016/components}/profile/AUProfileAvatar2016Component.js +6 -2
- package/src/{components → layout-2016/components}/universe/StaffTopComponent.js +4 -3
- package/src/{components → layout-2016/components}/universe/StudentTopComponent.js +0 -0
- package/src/{components → layout-2016/components}/universe/UniverseContainerComponent.js +11 -8
- package/src/layout-2016/lib/all.js +3 -0
- package/src/{lib → layout-2016/lib}/au-alphabox.js +1 -3
- package/src/{lib → layout-2016/lib}/au-databox.js +6 -9
- package/src/{lib → layout-2016/lib}/au-diagramme.js +2 -4
- package/src/{lib → layout-2016/lib}/au-flowbox.js +1 -3
- package/src/{lib → layout-2016/lib}/universe.js +0 -0
- package/src/lib/{helpers.js → helpers.ts} +41 -66
- package/src/{components/delphinus/hooks.js → lib/hooks.ts} +33 -26
- package/src/lib/{i18n.js → i18n.ts} +600 -595
- package/src/lib/tracking.ts +69 -0
- package/src/lib/{wrapping.js → wrapping.ts} +21 -16
- package/src/styles/_settings.scss +11 -11
- package/src/styles/alphabox.scss +222 -209
- package/src/styles/app.scss +7 -12
- package/src/styles/autosuggest.scss +57 -57
- package/src/styles/databox.scss +563 -563
- package/src/styles/diagramme.scss +119 -119
- package/src/styles/flowbox.scss +72 -72
- package/src/styles/maps.scss +396 -0
- package/tsconfig.json +47 -0
- package/types/common/interfaces.d.ts +91 -0
- package/types/common/main.d.ts +4 -0
- package/types/common/package.json +5 -0
- package/types/common/payloads.d.ts +0 -0
- package/types/common/props.d.ts +165 -0
- package/webpack.config.js +89 -0
- package/.eslintrc +0 -19
- package/DOCUMENTATION.md +0 -369
- package/build/cjs/auAuth.js +0 -2
- package/build/cjs/auAuth.js.map +0 -1
- package/build/dev.html +0 -329
- package/build/umd/auAuth.js +0 -2
- package/build/umd/auAuth.js.map +0 -1
- package/build/umd/news.js +0 -2
- package/build/umd/news.js.map +0 -1
- package/src/all.js +0 -3
- package/src/app.js +0 -263
- package/src/components/AUAlertComponent.js +0 -158
- package/src/components/AUAmountComponent.js +0 -84
- package/src/components/AUBannerComponent.js +0 -99
- package/src/components/AUCalendarComponent.js +0 -393
- package/src/components/AUDatepickerComponent.js +0 -105
- package/src/components/AUFilterCheckboxComponent.js +0 -122
- package/src/components/AUFocusComponent.js +0 -55
- package/src/components/AUModalComponent.js +0 -94
- package/src/components/AUPaginationComponent.js +0 -103
- package/src/components/context/AUUserContextComponent.js +0 -91
- package/src/components/context/ImpersonateComponent.js +0 -54
- package/src/components/delphinus/AUCalendarComponent.js +0 -422
- package/src/components/delphinus/AUContentToggleComponent.js +0 -32
- package/src/components/delphinus/AUDatepickerComponent.js +0 -113
- package/src/components/delphinus/AULoginComponent.js +0 -65
- package/src/components/delphinus/AUSpinnerComponent.js +0 -114
- package/src/components/delphinus/AUTabbedContentComponent.js +0 -53
- package/src/components/form/AUMobilePrefixComponent.js +0 -18
- package/src/components/news/EventLayout1Component.js +0 -94
- package/src/components/news/EventLayout2Component.js +0 -90
- package/src/components/news/EventLayout3Component.js +0 -68
- package/src/components/news/NewsCategoriesComponent.js +0 -21
- package/src/components/news/NewsCollageBannerComponent.js +0 -71
- package/src/components/news/NewsColumnsComponent.js +0 -125
- package/src/components/news/NewsLanguageChangeComponent.js +0 -74
- package/src/components/news/NewsLayout1Component.js +0 -80
- package/src/components/news/NewsLayout2Component.js +0 -80
- package/src/components/news/NewsLayout3Component.js +0 -81
- package/src/components/news/NewsLayout4Component.js +0 -80
- package/src/components/news/NewsLayout5Component.js +0 -61
- package/src/components/news/NewsLayout6Component.js +0 -55
- package/src/components/news/NewsLayout7Component.js +0 -58
- package/src/components/news/NewsLayout8Component.js +0 -57
- package/src/components/news/NewsListComponent.js +0 -291
- package/src/components/news/NewsPopUpComponent.js +0 -591
- package/src/components/news/NewsRSSComponent.js +0 -74
- package/src/components/news/NewsSocialComponent.js +0 -104
- package/src/components/news/NewsSubHeaderComponent.js +0 -19
- package/src/components/password/AUChangePasswordComponent.js +0 -177
- package/src/components/password/AUCurrentPasswordComponent.js +0 -72
- package/src/components/password/AUNewPasswordComponent.js +0 -143
- package/src/components/password/AUPasswordActions.js +0 -101
- package/src/components/password/AUPasswordHooks.js +0 -47
- package/src/components/password/AUPasswordReducer.js +0 -78
- package/src/components/password/AUPasswordRequirementsComponent.js +0 -29
- package/src/config/webpack.cjs.config.js +0 -75
- package/src/config/webpack.dev.config.js +0 -61
- package/src/config/webpack.umd.config.js +0 -107
- package/src/index.js +0 -6
- package/src/lib/au-auth.js +0 -221
- package/src/lib/au-news.js +0 -306
- package/src/lib/menu.js +0 -10
- package/src/lib/urlHandler.js +0 -63
- package/src/lib/validation.js +0 -181
- package/src/styles/alert.scss +0 -39
- package/src/styles/calendar.scss +0 -112
- package/src/styles/filtercheckbox.scss +0 -5
- package/src/styles/modal.scss +0 -35
- package/src/styles/pagination.scss +0 -11
- package/src/styles/spinner.scss +0 -30
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap","webpack:///external {\"root\":\"React\",\"commonjs2\":\"react\",\"commonjs\":\"react\",\"amd\":\"react\",\"umd\":\"react\"}","webpack:///./node_modules/prop-types/index.js","webpack:///./node_modules/@babel/runtime/helpers/classCallCheck.js","webpack:///./node_modules/@babel/runtime/helpers/createClass.js","webpack:///./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js","webpack:///./node_modules/@babel/runtime/helpers/getPrototypeOf.js","webpack:///./node_modules/@babel/runtime/helpers/inherits.js","webpack:///./node_modules/@babel/runtime/helpers/slicedToArray.js","webpack:///external {\"root\":\"ReactDOM\",\"commonjs2\":\"react-dom\",\"commonjs\":\"react-dom\",\"amd\":\"react-dom\",\"umd\":\"react-dom\"}","webpack:///./node_modules/@babel/runtime/helpers/assertThisInitialized.js","webpack:///external \"axios\"","webpack:///./node_modules/@babel/runtime/regenerator/index.js","webpack:///./node_modules/@babel/runtime/helpers/objectSpread.js","webpack:///./node_modules/@babel/runtime/helpers/asyncToGenerator.js","webpack:///./node_modules/@babel/runtime/helpers/arrayWithHoles.js","webpack:///./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js","webpack:///./node_modules/@babel/runtime/helpers/nonIterableRest.js","webpack:///./node_modules/@babel/runtime/helpers/defineProperty.js","webpack:///./node_modules/@babel/runtime/helpers/typeof.js","webpack:///./node_modules/@babel/runtime/helpers/setPrototypeOf.js","webpack:///./node_modules/prop-types/factoryWithThrowingShims.js","webpack:///./node_modules/prop-types/lib/ReactPropTypesSecret.js","webpack:///./node_modules/@babel/runtime/node_modules/regenerator-runtime/runtime.js","webpack:///./src/lib/i18n.js","webpack:///./src/components/AUCollapsibleComponent.js","webpack:///./src/components/profile/AUProfileLoginComponent.js","webpack:///./node_modules/@aarhus-university/au-designsystem-delphinus/source/js/components/nav.js","webpack:///./node_modules/@aarhus-university/au-designsystem-delphinus/source/js/components/helpers.js","webpack:///./src/components/profile/AUProfileWidgetComponent.js","webpack:///./src/components/delphinus/AUSpinnerComponent.js","webpack:///./src/lib/helpers.js","webpack:///./src/components/context/AUUserContextComponent.js","webpack:///./src/components/profile/AUProfileAvatar2016Component.js","webpack:///./src/components/universe/StaffTopComponent.js","webpack:///./src/components/universe/StudentTopComponent.js","webpack:///./src/components/universe/UniverseContainerComponent.js","webpack:///./src/lib/universe.js"],"names":["root","factory","exports","module","require","define","amd","a","i","window","__WEBPACK_EXTERNAL_MODULE__0__","__WEBPACK_EXTERNAL_MODULE__8__","__WEBPACK_EXTERNAL_MODULE__10__","installedModules","__webpack_require__","moduleId","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","instance","Constructor","TypeError","_defineProperties","target","props","length","descriptor","configurable","writable","protoProps","staticProps","_typeof","assertThisInitialized","self","_getPrototypeOf","setPrototypeOf","getPrototypeOf","__proto__","subClass","superClass","constructor","arrayWithHoles","iterableToArrayLimit","nonIterableRest","arr","ReferenceError","arguments","source","ownKeys","keys","getOwnPropertySymbols","concat","filter","sym","getOwnPropertyDescriptor","forEach","asyncGeneratorStep","gen","resolve","reject","_next","_throw","arg","info","error","done","Promise","then","fn","this","args","apply","err","undefined","Array","isArray","iterator","toString","_arr","_n","_d","_e","_s","_i","next","push","obj","_typeof2","_setPrototypeOf","ReactPropTypesSecret","emptyFunction","emptyFunctionWithReset","resetWarningCache","shim","propName","componentName","location","propFullName","secret","Error","getShim","isRequired","ReactPropTypes","array","bool","func","number","string","symbol","any","arrayOf","element","elementType","instanceOf","node","objectOf","oneOf","oneOfType","shape","exact","checkPropTypes","PropTypes","runtime","Op","hasOwn","$Symbol","iteratorSymbol","asyncIteratorSymbol","asyncIterator","toStringTagSymbol","wrap","innerFn","outerFn","tryLocsList","protoGenerator","Generator","generator","context","Context","_invoke","state","method","doneResult","delegate","delegateResult","maybeInvokeDelegate","ContinueSentinel","sent","_sent","dispatchException","abrupt","record","tryCatch","type","makeInvokeMethod","GeneratorFunction","GeneratorFunctionPrototype","IteratorPrototype","getProto","NativeIteratorPrototype","values","Gp","defineIteratorMethods","AsyncIterator","previousPromise","callInvokeWithMethodAndArg","invoke","result","__await","unwrapped","resultName","nextLoc","pushTryEntry","locs","entry","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","resetTryEntry","completion","reset","iterable","iteratorMethod","isNaN","displayName","isGeneratorFunction","genFun","ctor","mark","awrap","async","iter","reverse","pop","skipTempReset","prev","charAt","slice","stop","rootRecord","rval","exception","handle","loc","caught","hasCatch","hasFinally","finallyEntry","complete","finish","thrown","delegateYield","regeneratorRuntime","accidentalStrictMode","Function","universeLabels","da","staffTitleLink","studentTitleLink","mainPageLink","iconSystems","iconPin","iconBurger","mitstudieText","mitstudieUrl","en","profileLabels","login","logout","edit","auId","studentNumber","changeLanguage","headerContainer","headerName","headerMail","headerMobile","headerLanguage","headerNextOfKin","otherMail","languageIn","legendName","legendNameHint","formNameHint","formNameDisplayName","firstName","firstNameHint","lastName","workMail","workMailHint","workMailScreenreader","studentMail","studentMailScreenreader","privateMail","privateMailHint","countryCode","languageLegend","danish","english","nextOfKinParagraph","nextOfKinName","nextOfKinTelephone","headerPassword","save","saved","cancel","validMail","validMobile","validName","validFirstName","validLastName","emptyMail","emptyMobile","emptyNok","copyAuid","copyStudentNumber","headerVacationAbsence","myProfile","helpModalHeader","helpModalText","helpModalBtn","profileFor","AUCollapsibleComponent","collapsed","attributes","selector","el","querySelector","setAttribute","attr","header","level","content","classNames","onClick","children","dataID","headerElement","className","data-id","ref","setState","prevState","newCollapsed","onKeyUp","role","tabIndex","React","Component","defaultProps","propTypes","AUProfileLoginComponent","loggedIn","loginUri","text","data-icon","href","lang","e","w","copyToClipboard","str","document","createElement","body","appendChild","select","execCommand","removeChild","Event","composedPath","path","parentNode","AUProfileWidgetComponent","memo","auid","settings","changeLanguageUrl","logoutUri","useState","ctcSet","setCtcSet","renderSettings","map","url","useEffect","copySpans","querySelectorAll","span","parentBtn","classList","contains","addEventListener","listener","toCopy","innerText","removeEventListener","setTimeout","setCopyToClipboard","aria-labelledby","title","aria-label","AUSpinnerComponent","serviceScopeProfile","loading","visible","lazyLoad","loadingCondition","loaded","domID","onLoad","getElementById","rect","getBoundingClientRect","bottom","right","left","innerWidth","documentElement","clientWidth","top","innerHeight","clientHeight","isElementInViewport","height","init","id","style","minHeight","nextProps","AUUserContextComponent","contextKey","spinner","handleContext","handleError","loginComponent","emptyComponent","clearCache","enrichContext","auAuth","hasContext","setHasContext","setContext","getUser","setUserContext","userContext","console","log","status","json","AUProfileAvatar2016Component","user","toggled","onToggle","chosenFirstNames","chosenLastName","aria-expanded","preferredLanguage","parseSystemLinks","elements","systems","div","actions","system","getAttribute","StaffTopComponent","active","burgerLinks","systemLinks","showHelp","promiseHandler","data","container","innerHTML","links","link","fetch","profileApiUri","credentials","response","isAuthenticated","catch","fade","display","opacity","findWidgetInit","AU","alphabox","helpCookie","cookieName","cookieValue","cookie","cookieStart","indexOf","cookieEnd","decodeURI","substring","getCookie","help","renderBurgerLinks","u","renderSystemLinks","dangerouslySetInnerHTML","__html","ReactDOM","createPortal","maxAge","exdays","encodeURI","exdate","Date","setDate","getDate","toUTCString","setCookie","StudentTopComponent","UniverseContainerComponent","setUser","universeGlobalContentPath","universe","callback","axios","promise","render"],"mappings":"CAAA,SAA2CA,EAAMC,GAChD,GAAsB,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,EAAQG,QAAQ,SAAUA,QAAQ,aAAcA,QAAQ,eACrE,GAAqB,mBAAXC,QAAyBA,OAAOC,IAC9CD,OAAO,CAAC,QAAS,YAAa,SAAUJ,OACpC,CACJ,IAAIM,EAAuB,iBAAZL,QAAuBD,EAAQG,QAAQ,SAAUA,QAAQ,aAAcA,QAAQ,UAAYH,EAAQD,EAAY,MAAGA,EAAe,SAAGA,EAAY,OAC/J,IAAI,IAAIQ,KAAKD,GAAuB,iBAAZL,QAAuBA,QAAUF,GAAMQ,GAAKD,EAAEC,IAPxE,CASGC,QAAQ,SAASC,EAAgCC,EAAgCC,GACpF,O,YCTE,IAAIC,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUb,QAGnC,IAAIC,EAASU,EAAiBE,GAAY,CACzCP,EAAGO,EACHC,GAAG,EACHd,QAAS,IAUV,OANAe,EAAQF,GAAUG,KAAKf,EAAOD,QAASC,EAAQA,EAAOD,QAASY,GAG/DX,EAAOa,GAAI,EAGJb,EAAOD,QA0Df,OArDAY,EAAoBK,EAAIF,EAGxBH,EAAoBM,EAAIP,EAGxBC,EAAoBO,EAAI,SAASnB,EAASoB,EAAMC,GAC3CT,EAAoBU,EAAEtB,EAASoB,IAClCG,OAAOC,eAAexB,EAASoB,EAAM,CAAEK,YAAY,EAAMC,IAAKL,KAKhET,EAAoBe,EAAI,SAAS3B,GACX,oBAAX4B,QAA0BA,OAAOC,aAC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A2BpS,YAAc,6BAC1BoS,UCxDfZ,IAASmB,OACP,kBAAC,GAAD,MACAjK,SAASnC,cAAc","file":"universe.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"), require(\"react-dom\"), require(\"axios\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"react\", \"react-dom\", \"axios\"], factory);\n\telse {\n\t\tvar a = typeof exports === 'object' ? factory(require(\"react\"), require(\"react-dom\"), require(\"axios\")) : factory(root[\"React\"], root[\"ReactDOM\"], root[\"axios\"]);\n\t\tfor(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];\n\t}\n})(window, function(__WEBPACK_EXTERNAL_MODULE__0__, __WEBPACK_EXTERNAL_MODULE__8__, __WEBPACK_EXTERNAL_MODULE__10__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 23);\n","module.exports = __WEBPACK_EXTERNAL_MODULE__0__;","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nmodule.exports = _classCallCheck;","function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nmodule.exports = _createClass;","var _typeof = require(\"../helpers/typeof\");\n\nvar assertThisInitialized = require(\"./assertThisInitialized\");\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n\n return assertThisInitialized(self);\n}\n\nmodule.exports = _possibleConstructorReturn;","function _getPrototypeOf(o) {\n module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nmodule.exports = _getPrototypeOf;","var setPrototypeOf = require(\"./setPrototypeOf\");\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) setPrototypeOf(subClass, superClass);\n}\n\nmodule.exports = _inherits;","var arrayWithHoles = require(\"./arrayWithHoles\");\n\nvar iterableToArrayLimit = require(\"./iterableToArrayLimit\");\n\nvar nonIterableRest = require(\"./nonIterableRest\");\n\nfunction _slicedToArray(arr, i) {\n return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || nonIterableRest();\n}\n\nmodule.exports = _slicedToArray;","module.exports = __WEBPACK_EXTERNAL_MODULE__8__;","function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nmodule.exports = _assertThisInitialized;","module.exports = __WEBPACK_EXTERNAL_MODULE__10__;","module.exports = require(\"regenerator-runtime\");\n","var defineProperty = require(\"./defineProperty\");\n\nfunction _objectSpread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n var ownKeys = Object.keys(source);\n\n if (typeof Object.getOwnPropertySymbols === 'function') {\n ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {\n return Object.getOwnPropertyDescriptor(source, sym).enumerable;\n }));\n }\n\n ownKeys.forEach(function (key) {\n defineProperty(target, key, source[key]);\n });\n }\n\n return target;\n}\n\nmodule.exports = _objectSpread;","function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n\n if (info.done) {\n resolve(value);\n } else {\n Promise.resolve(value).then(_next, _throw);\n }\n}\n\nfunction _asyncToGenerator(fn) {\n return function () {\n var self = this,\n args = arguments;\n return new Promise(function (resolve, reject) {\n var gen = fn.apply(self, args);\n\n function _next(value) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n }\n\n function _throw(err) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n }\n\n _next(undefined);\n });\n };\n}\n\nmodule.exports = _asyncToGenerator;","function _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\nmodule.exports = _arrayWithHoles;","function _iterableToArrayLimit(arr, i) {\n if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === \"[object Arguments]\")) {\n return;\n }\n\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}\n\nmodule.exports = _iterableToArrayLimit;","function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n}\n\nmodule.exports = _nonIterableRest;","function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nmodule.exports = _defineProperty;","function _typeof2(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof2 = function _typeof2(obj) { return typeof obj; }; } else { _typeof2 = function _typeof2(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof2(obj); }\n\nfunction _typeof(obj) {\n if (typeof Symbol === \"function\" && _typeof2(Symbol.iterator) === \"symbol\") {\n module.exports = _typeof = function _typeof(obj) {\n return _typeof2(obj);\n };\n } else {\n module.exports = _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : _typeof2(obj);\n };\n }\n\n return _typeof(obj);\n}\n\nmodule.exports = _typeof;","function _setPrototypeOf(o, p) {\n module.exports = _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nmodule.exports = _setPrototypeOf;","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nvar runtime = (function (exports) {\n \"use strict\";\n\n var Op = Object.prototype;\n var hasOwn = Op.hasOwnProperty;\n var undefined; // More compressible than void 0.\n var $Symbol = typeof Symbol === \"function\" ? Symbol : {};\n var iteratorSymbol = $Symbol.iterator || \"@@iterator\";\n var asyncIteratorSymbol = $Symbol.asyncIterator || \"@@asyncIterator\";\n var toStringTagSymbol = $Symbol.toStringTag || \"@@toStringTag\";\n\n function wrap(innerFn, outerFn, self, tryLocsList) {\n // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.\n var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;\n var generator = Object.create(protoGenerator.prototype);\n var context = new Context(tryLocsList || []);\n\n // The ._invoke method unifies the implementations of the .next,\n // .throw, and .return methods.\n generator._invoke = makeInvokeMethod(innerFn, self, context);\n\n return generator;\n }\n exports.wrap = wrap;\n\n // Try/catch helper to minimize deoptimizations. Returns a completion\n // record like context.tryEntries[i].completion. This interface could\n // have been (and was previously) designed to take a closure to be\n // invoked without arguments, but in all the cases we care about we\n // already have an existing method we want to call, so there's no need\n // to create a new function object. We can even get away with assuming\n // the method takes exactly one argument, since that happens to be true\n // in every case, so we don't have to touch the arguments object. The\n // only additional allocation required is the completion record, which\n // has a stable shape and so hopefully should be cheap to allocate.\n function tryCatch(fn, obj, arg) {\n try {\n return { type: \"normal\", arg: fn.call(obj, arg) };\n } catch (err) {\n return { type: \"throw\", arg: err };\n }\n }\n\n var GenStateSuspendedStart = \"suspendedStart\";\n var GenStateSuspendedYield = \"suspendedYield\";\n var GenStateExecuting = \"executing\";\n var GenStateCompleted = \"completed\";\n\n // Returning this object from the innerFn has the same effect as\n // breaking out of the dispatch switch statement.\n var ContinueSentinel = {};\n\n // Dummy constructor functions that we use as the .constructor and\n // .constructor.prototype properties for functions that return Generator\n // objects. For full spec compliance, you may wish to configure your\n // minifier not to mangle the names of these two functions.\n function Generator() {}\n function GeneratorFunction() {}\n function GeneratorFunctionPrototype() {}\n\n // This is a polyfill for %IteratorPrototype% for environments that\n // don't natively support it.\n var IteratorPrototype = {};\n IteratorPrototype[iteratorSymbol] = function () {\n return this;\n };\n\n var getProto = Object.getPrototypeOf;\n var NativeIteratorPrototype = getProto && getProto(getProto(values([])));\n if (NativeIteratorPrototype &&\n NativeIteratorPrototype !== Op &&\n hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {\n // This environment has a native %IteratorPrototype%; use it instead\n // of the polyfill.\n IteratorPrototype = NativeIteratorPrototype;\n }\n\n var Gp = GeneratorFunctionPrototype.prototype =\n Generator.prototype = Object.create(IteratorPrototype);\n GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;\n GeneratorFunctionPrototype.constructor = GeneratorFunction;\n GeneratorFunctionPrototype[toStringTagSymbol] =\n GeneratorFunction.displayName = \"GeneratorFunction\";\n\n // Helper for defining the .next, .throw, and .return methods of the\n // Iterator interface in terms of a single ._invoke method.\n function defineIteratorMethods(prototype) {\n [\"next\", \"throw\", \"return\"].forEach(function(method) {\n prototype[method] = function(arg) {\n return this._invoke(method, arg);\n };\n });\n }\n\n exports.isGeneratorFunction = function(genFun) {\n var ctor = typeof genFun === \"function\" && genFun.constructor;\n return ctor\n ? ctor === GeneratorFunction ||\n // For the native GeneratorFunction constructor, the best we can\n // do is to check its .name property.\n (ctor.displayName || ctor.name) === \"GeneratorFunction\"\n : false;\n };\n\n exports.mark = function(genFun) {\n if (Object.setPrototypeOf) {\n Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);\n } else {\n genFun.__proto__ = GeneratorFunctionPrototype;\n if (!(toStringTagSymbol in genFun)) {\n genFun[toStringTagSymbol] = \"GeneratorFunction\";\n }\n }\n genFun.prototype = Object.create(Gp);\n return genFun;\n };\n\n // Within the body of any async function, `await x` is transformed to\n // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test\n // `hasOwn.call(value, \"__await\")` to determine if the yielded value is\n // meant to be awaited.\n exports.awrap = function(arg) {\n return { __await: arg };\n };\n\n function AsyncIterator(generator) {\n function invoke(method, arg, resolve, reject) {\n var record = tryCatch(generator[method], generator, arg);\n if (record.type === \"throw\") {\n reject(record.arg);\n } else {\n var result = record.arg;\n var value = result.value;\n if (value &&\n typeof value === \"object\" &&\n hasOwn.call(value, \"__await\")) {\n return Promise.resolve(value.__await).then(function(value) {\n invoke(\"next\", value, resolve, reject);\n }, function(err) {\n invoke(\"throw\", err, resolve, reject);\n });\n }\n\n return Promise.resolve(value).then(function(unwrapped) {\n // When a yielded Promise is resolved, its final value becomes\n // the .value of the Promise<{value,done}> result for the\n // current iteration.\n result.value = unwrapped;\n resolve(result);\n }, function(error) {\n // If a rejected Promise was yielded, throw the rejection back\n // into the async generator function so it can be handled there.\n return invoke(\"throw\", error, resolve, reject);\n });\n }\n }\n\n var previousPromise;\n\n function enqueue(method, arg) {\n function callInvokeWithMethodAndArg() {\n return new Promise(function(resolve, reject) {\n invoke(method, arg, resolve, reject);\n });\n }\n\n return previousPromise =\n // If enqueue has been called before, then we want to wait until\n // all previous Promises have been resolved before calling invoke,\n // so that results are always delivered in the correct order. If\n // enqueue has not been called before, then it is important to\n // call invoke immediately, without waiting on a callback to fire,\n // so that the async generator function has the opportunity to do\n // any necessary setup in a predictable way. This predictability\n // is why the Promise constructor synchronously invokes its\n // executor callback, and why async functions synchronously\n // execute code before the first await. Since we implement simple\n // async functions in terms of async generators, it is especially\n // important to get this right, even though it requires care.\n previousPromise ? previousPromise.then(\n callInvokeWithMethodAndArg,\n // Avoid propagating failures to Promises returned by later\n // invocations of the iterator.\n callInvokeWithMethodAndArg\n ) : callInvokeWithMethodAndArg();\n }\n\n // Define the unified helper method that is used to implement .next,\n // .throw, and .return (see defineIteratorMethods).\n this._invoke = enqueue;\n }\n\n defineIteratorMethods(AsyncIterator.prototype);\n AsyncIterator.prototype[asyncIteratorSymbol] = function () {\n return this;\n };\n exports.AsyncIterator = AsyncIterator;\n\n // Note that simple async functions are implemented on top of\n // AsyncIterator objects; they just return a Promise for the value of\n // the final result produced by the iterator.\n exports.async = function(innerFn, outerFn, self, tryLocsList) {\n var iter = new AsyncIterator(\n wrap(innerFn, outerFn, self, tryLocsList)\n );\n\n return exports.isGeneratorFunction(outerFn)\n ? iter // If outerFn is a generator, return the full iterator.\n : iter.next().then(function(result) {\n return result.done ? result.value : iter.next();\n });\n };\n\n function makeInvokeMethod(innerFn, self, context) {\n var state = GenStateSuspendedStart;\n\n return function invoke(method, arg) {\n if (state === GenStateExecuting) {\n throw new Error(\"Generator is already running\");\n }\n\n if (state === GenStateCompleted) {\n if (method === \"throw\") {\n throw arg;\n }\n\n // Be forgiving, per 25.3.3.3.3 of the spec:\n // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume\n return doneResult();\n }\n\n context.method = method;\n context.arg = arg;\n\n while (true) {\n var delegate = context.delegate;\n if (delegate) {\n var delegateResult = maybeInvokeDelegate(delegate, context);\n if (delegateResult) {\n if (delegateResult === ContinueSentinel) continue;\n return delegateResult;\n }\n }\n\n if (context.method === \"next\") {\n // Setting context._sent for legacy support of Babel's\n // function.sent implementation.\n context.sent = context._sent = context.arg;\n\n } else if (context.method === \"throw\") {\n if (state === GenStateSuspendedStart) {\n state = GenStateCompleted;\n throw context.arg;\n }\n\n context.dispatchException(context.arg);\n\n } else if (context.method === \"return\") {\n context.abrupt(\"return\", context.arg);\n }\n\n state = GenStateExecuting;\n\n var record = tryCatch(innerFn, self, context);\n if (record.type === \"normal\") {\n // If an exception is thrown from innerFn, we leave state ===\n // GenStateExecuting and loop back for another invocation.\n state = context.done\n ? GenStateCompleted\n : GenStateSuspendedYield;\n\n if (record.arg === ContinueSentinel) {\n continue;\n }\n\n return {\n value: record.arg,\n done: context.done\n };\n\n } else if (record.type === \"throw\") {\n state = GenStateCompleted;\n // Dispatch the exception by looping back around to the\n // context.dispatchException(context.arg) call above.\n context.method = \"throw\";\n context.arg = record.arg;\n }\n }\n };\n }\n\n // Call delegate.iterator[context.method](context.arg) and handle the\n // result, either by returning a { value, done } result from the\n // delegate iterator, or by modifying context.method and context.arg,\n // setting context.delegate to null, and returning the ContinueSentinel.\n function maybeInvokeDelegate(delegate, context) {\n var method = delegate.iterator[context.method];\n if (method === undefined) {\n // A .throw or .return when the delegate iterator has no .throw\n // method always terminates the yield* loop.\n context.delegate = null;\n\n if (context.method === \"throw\") {\n // Note: [\"return\"] must be used for ES3 parsing compatibility.\n if (delegate.iterator[\"return\"]) {\n // If the delegate iterator has a return method, give it a\n // chance to clean up.\n context.method = \"return\";\n context.arg = undefined;\n maybeInvokeDelegate(delegate, context);\n\n if (context.method === \"throw\") {\n // If maybeInvokeDelegate(context) changed context.method from\n // \"return\" to \"throw\", let that override the TypeError below.\n return ContinueSentinel;\n }\n }\n\n context.method = \"throw\";\n context.arg = new TypeError(\n \"The iterator does not provide a 'throw' method\");\n }\n\n return ContinueSentinel;\n }\n\n var record = tryCatch(method, delegate.iterator, context.arg);\n\n if (record.type === \"throw\") {\n context.method = \"throw\";\n context.arg = record.arg;\n context.delegate = null;\n return ContinueSentinel;\n }\n\n var info = record.arg;\n\n if (! info) {\n context.method = \"throw\";\n context.arg = new TypeError(\"iterator result is not an object\");\n context.delegate = null;\n return ContinueSentinel;\n }\n\n if (info.done) {\n // Assign the result of the finished delegate to the temporary\n // variable specified by delegate.resultName (see delegateYield).\n context[delegate.resultName] = info.value;\n\n // Resume execution at the desired location (see delegateYield).\n context.next = delegate.nextLoc;\n\n // If context.method was \"throw\" but the delegate handled the\n // exception, let the outer generator proceed normally. If\n // context.method was \"next\", forget context.arg since it has been\n // \"consumed\" by the delegate iterator. If context.method was\n // \"return\", allow the original .return call to continue in the\n // outer generator.\n if (context.method !== \"return\") {\n context.method = \"next\";\n context.arg = undefined;\n }\n\n } else {\n // Re-yield the result returned by the delegate method.\n return info;\n }\n\n // The delegate iterator is finished, so forget it and continue with\n // the outer generator.\n context.delegate = null;\n return ContinueSentinel;\n }\n\n // Define Generator.prototype.{next,throw,return} in terms of the\n // unified ._invoke helper method.\n defineIteratorMethods(Gp);\n\n Gp[toStringTagSymbol] = \"Generator\";\n\n // A Generator should always return itself as the iterator object when the\n // @@iterator function is called on it. Some browsers' implementations of the\n // iterator prototype chain incorrectly implement this, causing the Generator\n // object to not be returned from this call. This ensures that doesn't happen.\n // See https://github.com/facebook/regenerator/issues/274 for more details.\n Gp[iteratorSymbol] = function() {\n return this;\n };\n\n Gp.toString = function() {\n return \"[object Generator]\";\n };\n\n function pushTryEntry(locs) {\n var entry = { tryLoc: locs[0] };\n\n if (1 in locs) {\n entry.catchLoc = locs[1];\n }\n\n if (2 in locs) {\n entry.finallyLoc = locs[2];\n entry.afterLoc = locs[3];\n }\n\n this.tryEntries.push(entry);\n }\n\n function resetTryEntry(entry) {\n var record = entry.completion || {};\n record.type = \"normal\";\n delete record.arg;\n entry.completion = record;\n }\n\n function Context(tryLocsList) {\n // The root entry object (effectively a try statement without a catch\n // or a finally block) gives us a place to store values thrown from\n // locations where there is no enclosing try statement.\n this.tryEntries = [{ tryLoc: \"root\" }];\n tryLocsList.forEach(pushTryEntry, this);\n this.reset(true);\n }\n\n exports.keys = function(object) {\n var keys = [];\n for (var key in object) {\n keys.push(key);\n }\n keys.reverse();\n\n // Rather than returning an object with a next method, we keep\n // things simple and return the next function itself.\n return function next() {\n while (keys.length) {\n var key = keys.pop();\n if (key in object) {\n next.value = key;\n next.done = false;\n return next;\n }\n }\n\n // To avoid creating an additional object, we just hang the .value\n // and .done properties off the next function object itself. This\n // also ensures that the minifier will not anonymize the function.\n next.done = true;\n return next;\n };\n };\n\n function values(iterable) {\n if (iterable) {\n var iteratorMethod = iterable[iteratorSymbol];\n if (iteratorMethod) {\n return iteratorMethod.call(iterable);\n }\n\n if (typeof iterable.next === \"function\") {\n return iterable;\n }\n\n if (!isNaN(iterable.length)) {\n var i = -1, next = function next() {\n while (++i < iterable.length) {\n if (hasOwn.call(iterable, i)) {\n next.value = iterable[i];\n next.done = false;\n return next;\n }\n }\n\n next.value = undefined;\n next.done = true;\n\n return next;\n };\n\n return next.next = next;\n }\n }\n\n // Return an iterator with no values.\n return { next: doneResult };\n }\n exports.values = values;\n\n function doneResult() {\n return { value: undefined, done: true };\n }\n\n Context.prototype = {\n constructor: Context,\n\n reset: function(skipTempReset) {\n this.prev = 0;\n this.next = 0;\n // Resetting context._sent for legacy support of Babel's\n // function.sent implementation.\n this.sent = this._sent = undefined;\n this.done = false;\n this.delegate = null;\n\n this.method = \"next\";\n this.arg = undefined;\n\n this.tryEntries.forEach(resetTryEntry);\n\n if (!skipTempReset) {\n for (var name in this) {\n // Not sure about the optimal order of these conditions:\n if (name.charAt(0) === \"t\" &&\n hasOwn.call(this, name) &&\n !isNaN(+name.slice(1))) {\n this[name] = undefined;\n }\n }\n }\n },\n\n stop: function() {\n this.done = true;\n\n var rootEntry = this.tryEntries[0];\n var rootRecord = rootEntry.completion;\n if (rootRecord.type === \"throw\") {\n throw rootRecord.arg;\n }\n\n return this.rval;\n },\n\n dispatchException: function(exception) {\n if (this.done) {\n throw exception;\n }\n\n var context = this;\n function handle(loc, caught) {\n record.type = \"throw\";\n record.arg = exception;\n context.next = loc;\n\n if (caught) {\n // If the dispatched exception was caught by a catch block,\n // then let that catch block handle the exception normally.\n context.method = \"next\";\n context.arg = undefined;\n }\n\n return !! caught;\n }\n\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n var record = entry.completion;\n\n if (entry.tryLoc === \"root\") {\n // Exception thrown outside of any try block that could handle\n // it, so set the completion value of the entire function to\n // throw the exception.\n return handle(\"end\");\n }\n\n if (entry.tryLoc <= this.prev) {\n var hasCatch = hasOwn.call(entry, \"catchLoc\");\n var hasFinally = hasOwn.call(entry, \"finallyLoc\");\n\n if (hasCatch && hasFinally) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n } else if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else if (hasCatch) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n }\n\n } else if (hasFinally) {\n if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else {\n throw new Error(\"try statement without catch or finally\");\n }\n }\n }\n },\n\n abrupt: function(type, arg) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc <= this.prev &&\n hasOwn.call(entry, \"finallyLoc\") &&\n this.prev < entry.finallyLoc) {\n var finallyEntry = entry;\n break;\n }\n }\n\n if (finallyEntry &&\n (type === \"break\" ||\n type === \"continue\") &&\n finallyEntry.tryLoc <= arg &&\n arg <= finallyEntry.finallyLoc) {\n // Ignore the finally entry if control is not jumping to a\n // location outside the try/catch block.\n finallyEntry = null;\n }\n\n var record = finallyEntry ? finallyEntry.completion : {};\n record.type = type;\n record.arg = arg;\n\n if (finallyEntry) {\n this.method = \"next\";\n this.next = finallyEntry.finallyLoc;\n return ContinueSentinel;\n }\n\n return this.complete(record);\n },\n\n complete: function(record, afterLoc) {\n if (record.type === \"throw\") {\n throw record.arg;\n }\n\n if (record.type === \"break\" ||\n record.type === \"continue\") {\n this.next = record.arg;\n } else if (record.type === \"return\") {\n this.rval = this.arg = record.arg;\n this.method = \"return\";\n this.next = \"end\";\n } else if (record.type === \"normal\" && afterLoc) {\n this.next = afterLoc;\n }\n\n return ContinueSentinel;\n },\n\n finish: function(finallyLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.finallyLoc === finallyLoc) {\n this.complete(entry.completion, entry.afterLoc);\n resetTryEntry(entry);\n return ContinueSentinel;\n }\n }\n },\n\n \"catch\": function(tryLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc === tryLoc) {\n var record = entry.completion;\n if (record.type === \"throw\") {\n var thrown = record.arg;\n resetTryEntry(entry);\n }\n return thrown;\n }\n }\n\n // The context.catch method must only be called with a location\n // argument that corresponds to a known catch block.\n throw new Error(\"illegal catch attempt\");\n },\n\n delegateYield: function(iterable, resultName, nextLoc) {\n this.delegate = {\n iterator: values(iterable),\n resultName: resultName,\n nextLoc: nextLoc\n };\n\n if (this.method === \"next\") {\n // Deliberately forget the last sent value so that we don't\n // accidentally pass it on to the delegate.\n this.arg = undefined;\n }\n\n return ContinueSentinel;\n }\n };\n\n // Regardless of whether this script is executing as a CommonJS module\n // or not, return the runtime object so that we can declare the variable\n // regeneratorRuntime in the outer scope, which allows this module to be\n // injected easily by `bin/regenerator --include-runtime script.js`.\n return exports;\n\n}(\n // If this script is executing as a CommonJS module, use module.exports\n // as the regeneratorRuntime namespace. Otherwise create a new empty\n // object. Either way, the resulting object will be used to initialize\n // the regeneratorRuntime variable at the top of this file.\n typeof module === \"object\" ? module.exports : {}\n));\n\ntry {\n regeneratorRuntime = runtime;\n} catch (accidentalStrictMode) {\n // This module should not be running in strict mode, so the above\n // assignment should always work unless something is misconfigured. Just\n // in case runtime.js accidentally runs in strict mode, we can escape\n // strict mode using a global Function call. This could conceivably fail\n // if a Content Security Policy forbids using Function, but in that case\n // the proper solution is to fix the accidental strict mode problem. If\n // you've misconfigured your bundler to force strict mode and applied a\n // CSP to forbid Function, and you're not willing to fix either of those\n // problems, please detail your unique predicament in a GitHub issue.\n Function(\"r\", \"regeneratorRuntime = r\")(runtime);\n}\n","const flowboxLabels = {\n da: {\n select: 'Vælg',\n back: 'Tilbage',\n building: 'Bygning',\n office: 'Kontor',\n },\n en: {\n select: 'Select',\n back: 'Back',\n building: 'Building',\n office: 'Office',\n },\n};\n\nconst newsLabels = {\n da: {\n news: {\n listLoadMore: 'Indlæs flere',\n eventDate: 'Dato',\n eventTime: 'Tid',\n eventWhere: 'Sted',\n eventRegistration: 'Tilmelding',\n weekdays: ['søndag', 'mandag', 'tirsdag', 'onsdag', 'torsdag', 'fredag', 'lørdag'],\n weekdaysShort: ['søn', 'man', 'tir', 'ons', 'tor', 'fre', 'lør'],\n months: ['januar', 'februar', 'marts', 'april', 'maj', 'juni', 'juli', 'august', 'september', 'oktober', 'november', 'december'],\n monthsShort: ['jan', 'feb', 'mar', 'apr', 'maj', 'jun', 'jul', 'aug', 'sep', 'okt', 'nov', 'dec'],\n readMore: 'Læs mere',\n rssAdd: 'Klik på RSS-ikonet for at abonnere på listen i din RSS-læser.',\n rssCopy: 'Kopier linket til RSS-feedet fra tekstfeltet herunder.',\n },\n share: {\n facebook: 'Del på Facebook',\n twitter: 'Del på Twitter',\n linkedin: 'Del på LinkedIn',\n mail: 'Send til en ven',\n mailLabelLong: 'Send via e-mailklienten på din computer',\n mailLabelShort: 'E-mail',\n gmailLabelLong: 'Send via Gmail',\n gmailLabelShort: 'Gmail',\n yahooLabelLong: 'Send via Yahoo Mail',\n yahooLabelShort: 'Yahoo Mail',\n outlookLabelLong: 'Send via outlook.com',\n outlookLabelShort: 'Outlook.com',\n },\n },\n en: {\n news: {\n listLoadMore: 'Load more',\n eventDate: 'Date',\n eventTime: 'Time',\n eventWhere: 'Location',\n eventRegistration: 'Registration',\n weekdays: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],\n weekdaysShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n months: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],\n monthsShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],\n readMore: 'Read more',\n rssAdd: 'Click the RSS icon to subscribe to the list in your RSS reader.',\n rssCopy: 'Copy the link to the RSS feed from the textfield below.',\n },\n share: {\n facebook: 'Facebook share',\n twitter: 'Twitter share',\n linkedin: 'LinkedIn share',\n mail: 'Send to a friend',\n mailLabelLong: 'Send via the email client on your computer',\n mailLabelShort: 'E-mail',\n gmailLabelLong: 'Send via Gmail',\n gmailLabelShort: 'Gmail',\n yahooLabelLong: 'Send via Yahoo Mail',\n yahooLabelShort: 'Yahoo Mail',\n outlookLabelLong: 'Send via outlook.com',\n outlookLabelShort: 'Outlook.com',\n },\n },\n};\n\nconst universeLabels = {\n da: {\n staffTitleLink: '<a href=\"//medarbejdere.au.dk\"><strong>medarbejdere</strong>.au.dk</a>',\n studentTitleLink: '<a href=\"//studerende.au.dk\"><strong>studerende</strong>.au.dk</a>',\n mainPageLink: '<a href=\"//www.au.dk\">au.dk</a>',\n iconSystems: 'Systemer',\n iconPin: 'Personer og bygninger',\n iconBurger: 'Menu',\n mitstudieText: 'mitstudie',\n mitstudieUrl: 'https://mitstudie.au.dk',\n },\n en: {\n staffTitleLink: '<a href=\"//staff.au.dk\"><strong>staff</strong>.au.dk</a>',\n studentTitleLink: '<a href=\"//students.au.dk\"><strong>students</strong>.au.dk</a>',\n mainPageLink: '<a href=\"//international.au.dk\">au.dk</a>',\n iconSystems: 'Systems',\n iconPin: 'Persons and buildings',\n iconBurger: 'Menu',\n mitstudieText: 'mystudies.au.dk',\n mitstudieUrl: 'https://mystudies.au.dk/',\n },\n};\n\nconst profileLabels = {\n da: {\n login: 'Log ind',\n logout: 'Log ud',\n edit: 'Ret',\n auId: 'AU-id',\n studentNumber: 'Studienummer',\n changeLanguage: 'Change language',\n headerContainer: 'Profilindstillinger',\n headerName: 'Profilnavn',\n headerMail: 'Mailadresser',\n headerMobile: 'Privat mobilnummer',\n headerLanguage: 'Sprog i systemer',\n headerNextOfKin: 'Pårørende',\n otherMail: 'Se øvrige AU-mailadresser',\n languageIn: 'Du har valgt dansk som standardsprog',\n legendName: 'Vælg dit profilnavn til universitetets systemer',\n legendNameHint: 'Vær opmærksom på, at ændringer ikke slår igennem i alle systemer.',\n formNameHint: 'Dit navn fra CPR-registeret',\n formNameDisplayName: 'Skriv et andet navn',\n firstName: 'Fornavn',\n firstNameHint: 'Undlad mellemnavne, hvis du kun vil vises med ét fornavn',\n lastName: 'Efternavn',\n workMail: 'AU-mailadresse',\n workMailHint: 'Ændringer i din medarbejder-mailadresse skal afspejle dit navn',\n workMailScreenreader: 'Din medarbejder-mailadresse er ###MAIL###. Du kan kun rette den del, der kommer før @.',\n studentMail: 'Studie-mailadresse',\n studentMailScreenreader: 'Din studie-mailadresse er ###MAIL###. Du kan kun rette den del, der kommer før @.',\n privateMail: 'Privat mailadresse',\n privateMailHint: 'Vi sender en mail til din private mailadresse, hvis du glemmer dit brugernavn eller adgangskode til universitetets systemer.',\n countryCode: 'Landekode',\n number: 'Nummer',\n languageLegend: 'Vælg dit foretrukne sprog til universitetets systemer ',\n danish: 'Dansk',\n english: 'Engelsk',\n nextOfKinParagraph: 'Du kan oplyse navn og telefonnummer på en pårørende, så universitetet kan kontakte vedkommende i et nødstilfælde.',\n nextOfKinName: 'Navn',\n nextOfKinTelephone: 'Telefonnummer',\n headerPassword: 'Skift adgangskode',\n save: 'Gem',\n saved: 'Dine ændringer er blevet gemt.',\n cancel: 'Annuller',\n validMail: 'Mailadressen du har skrevet er ikke gyldig.',\n validMobile: 'Telefonnummeret du har skrevet er ikke gyldigt.',\n validName: 'Skriv et navn.',\n validFirstName: 'Skriv et fornavn.',\n validLastName: 'Skriv et efternavn.',\n emptyMail: 'Du har endnu ikke tilføjet en privat mailadresse',\n emptyMobile: 'Du har endnu ikke tilføjet et mobilnummer',\n emptyNok: 'Du har endnu ikke tilføjet en pårørende',\n copyAuid: 'Kopiér dit AU-id',\n copyStudentNumber: 'Kopiér dit studienummer',\n headerVacationAbsence: 'Ferie og fravær',\n myProfile: 'Min profil',\n helpModalHeader: 'Nyt: Medarbejderprofil',\n helpModalText: 'Nu kan du rette dine profiloplysninger, skifte adgangskode og se din ferie- og fraværsoversigt på medarbejdere.au.dk. Klik på \"Min profil\" for at logge ind og se din medarbejderprofil.',\n helpModalBtn: 'Ok, vis ikke igen',\n profileFor: 'Profilmenu for',\n },\n en: {\n login: 'Sign in',\n logout: 'Sign out',\n edit: 'Edit',\n auId: 'AU ID',\n studentNumber: 'Student registration number',\n changeLanguage: 'Skift sprog',\n headerContainer: 'Profile settings',\n headerName: 'Profile name',\n headerMail: 'Email addresses',\n headerMobile: 'Private mobile phone number',\n headerLanguage: 'System language',\n headerNextOfKin: 'Relatives',\n otherMail: 'See other AU email addresses',\n languageIn: 'You have selected English as the standard language',\n legendName: 'Select your profile name for the university\\'s systems',\n legendNameHint: 'Please note that changes will not take effect in all systems.',\n formNameHint: 'Your name from the CPR (civil registration number) register',\n formNameDisplayName: 'Enter another name',\n firstName: 'First name',\n firstNameHint: 'Omit any middle names if you only want one first name to be displayed.',\n lastName: 'Last name',\n workMail: 'AU email address',\n workMailHint: 'Changes to your work mail must reflect your name',\n workMailScreenreader: 'Your work mail is ###MAIL###. You are only able to edit the part before the @.',\n studentMail: 'Student mail address',\n studentMailScreenreader: 'Your student mail address is ###MAIL###. You are only able to edit the part before the @.',\n privateMail: 'Private mail address',\n privateMailHint: 'If you forget your username or password for the university’s systems, we will send an email to your private email address.',\n countryCode: 'Country code',\n number: 'Number',\n languageLegend: 'Select your preferred language for the university’s systems.',\n danish: 'Danish',\n english: 'English',\n nextOfKinParagraph: 'State the name and phone number of a relative so the university can contact the person in question in case of an emergency.',\n nextOfKinName: 'Name',\n nextOfKinTelephone: 'Telephone number',\n headerPassword: 'Change password',\n save: 'Save',\n saved: 'Your changes have been saved',\n cancel: 'Cancel',\n validMail: 'The email address you have entered is not valid.',\n validMobile: 'The phone number you have entered is not valid.',\n validName: 'Enter a name.',\n validFirstName: 'Enter a first name.',\n validLastName: 'Enter a last name.',\n emptyMail: 'You have not yet added a private email address',\n emptyMobile: 'You have not yet added a mobile number',\n emptyNok: 'You have not yet added information about a relative ',\n copyAuid: 'Copy your AU ID',\n copyStudentNumber: 'Copy your student registration number',\n headerVacationAbsence: 'Holiday and absence',\n myProfile: 'My profile',\n helpModalHeader: 'New features at staff.au.dk',\n helpModalText: 'You can now edit your profile settings, change your password and see your holiday and absence overview at staff.au.dk. Click \"My profile\" to log in and see your staff profile.',\n helpModalBtn: 'OK, don\\'t show again',\n profileFor: 'Profile menu for',\n },\n};\n\nconst passwordLabels = {\n da: {\n currentPassword: 'Skriv din nuværende adgangskode',\n changePassword: 'Skift adgangskode',\n changePasswordInfo: 'Vær opmærksom på, at når du skifter din adgangskode, gælder det alle universitetets systemer.',\n newPassword: 'Skriv en ny adgangskode',\n newPasswordInfo: 'Af sikkerhedsmæssige årsager må du ikke have anvendt din adgangskode tidligere, og den må ikke indeholde personlige oplysninger.',\n repeatPassword: 'Skriv din nye adgangskode igen',\n receipt: '<strong>Godt gået!</strong><br />Din adgangskode er nu skiftet',\n goto: 'Gå til forsiden',\n requirementsHeader: 'Din nye adgangskode skal indholde:',\n requirement1: 'Mindst 12 tegn',\n requirement2: 'Ingen æ, ø, å eller Æ, Ø, Å',\n requirement3: 'Ingen mellemrum',\n requirement4: 'En kombination af bogstaver, tal og disse specialtegn:',\n rules: {\n lowerupper: 'Tilføj et lille bogstav eller et stort bogstav.',\n loweruppernumbers: 'Tilføj en kombination af små bogstaver, store bogstaver og tal.',\n lowerupperspecial: 'Tilføj en kombination af små bogstaver, store bogstaver og specialtegn.',\n loweruppernumbersspecial: 'Din adgangskode skal indeholde en kombination af bogstaver, tal og specialtegn.',\n lowernumbers: 'Tilføj et lille bogstav eller et tal.',\n lowernumbersspecial: 'Tilføj en kombination af små bogstaver, tal og specialtegn.',\n lowerspecial: 'Tilføj et lille bogstav eller et specialtegn.',\n uppernumbers: 'Tilføj et stort bogstav eller et tal.',\n uppernumbersspecial: 'Tilføj en kombination af store bogstaver, tal og specialtegn.',\n upperspecial: 'Tilføj et stort bogstav eller et specialtegn.',\n numbersspecial: 'Tilføj et tal eller et specialtegn.',\n invalid: 'Din adgangskode må ikke indeholde æ, ø, å eller Æ, Ø, Å.',\n length: 'Din adgangskode skal være på mindst ###LENGTH### tegn.',\n spaces: 'Din adgangskode må ikke indeholde mellemrum.',\n specialchars: 'Din adgangskode indholder et specieltegn, som ikke er tilladt.',\n },\n allRequirements: 'Din nye adgangskode opfylder alle krav.',\n passwordsEqual: 'De to adgangskoder er ens',\n passwordsNotEqual: 'Hov, du har skrevet to forskellige adgangskoder. Prøv igen.',\n typeNew: 'Skriv en ny adgangskode',\n repeatNew: 'Skriv din nye adgangskode igen',\n privateMail: 'Privat mailadresse',\n privateMailHint: 'Hvis du ikke har registreret din private mailadresse på Aarhus Universitet, kan du skrive din AU-mailadresse, dit AU-id eller dit studienummer.',\n privateMailHint2: 'Hvis du ikke har registreret din private mailadresse på Aarhus Universitet, kan du skrive din AU-mailadresse.',\n mailReceiptHeader: 'Vi har sendt et link til din mailadresse',\n mailReceiptParagraph: 'Brug linket til at skifte din adgangskode.',\n mailReceiptHeader2: 'Vi har sendt dit AU-brugernavn til din mail',\n mailReceiptHelp: 'Har du ikke modtaget en mail fra os?',\n mailReceiptHelp2: 'Det kan skyldes, at du har indtastet en forkert mailadresse, AU-id eller studienummer.',\n mailReceiptHelp3: 'Det kan skyldes, at du har indtastet en forkert mailadresse.',\n mailReceiptLink: 'Gå tilbage og prøv igen',\n forgotPassword: 'Glemt adgangskode',\n forgotPasswordParagraph: 'Skriv din mailadresse, så sender vi et link, som du kan bruge til at skifte din adgangskode.',\n forgotUsername: 'Glemt brugernavn',\n forgotUsernameParagraph: 'Skriv din mailadresse, så sender vi en mail med dit brugernavn.',\n allGood: 'Perfekt',\n validInput: 'Du har ikke skrevet gyldig mailadresse, AU-id eller studienummer.',\n sendBtnPassword: 'Næste',\n sendBtnUsername: 'Send mit brugernavn',\n expiredHeader: 'Linket er desværre udløbet.',\n expiredText: 'Vær opmærksom på, at linket kun er aktivt i 24 timer.',\n expiredLink: 'Prøv igen',\n goBack: 'Gå tilbage',\n supportHeader: 'Har du brug for hjælp?',\n supportStudentLink: 'https://studerende.au.dk/it-support/',\n supportStudentText: 'Support til studerende',\n supportStaffLink: 'https://medarbejdere.au.dk/administration/it/',\n supportStaffText: 'Support til medarbejdere og andre',\n },\n en: {\n currentPassword: 'Enter your current password',\n changePassword: 'Change password',\n changePasswordInfo: 'Please note that when you change your password, the change will apply to all the university’s systems.',\n newPassword: 'Enter a new password',\n newPasswordInfo: 'For security reasons, you cannot use a password that you have used before, and the password may not contain personal information.',\n repeatPassword: 'Re-enter your new password',\n receipt: '<strong>Well done!</strong><br />Your password has now been changed',\n goto: 'Go to the front page',\n requirementsHeader: 'Your new password must contain:',\n requirement1: 'At least 12 characters',\n requirement2: 'No \\'æ\\', \\'ø\\', \\'å\\' or \\'Æ\\', \\'Ø\\', \\'Å\\'',\n requirement3: 'No spaces',\n requirement4: 'A combination of letters, numbers and these special characters:',\n rules: {\n lowerupper: 'Add a lower-case letter or an upper-case letter.',\n loweruppernumbers: 'Add a combination of lower-case letters, upper-case letters and numbers.',\n lowerupperspecial: 'Add a combination of lower-case letters, upper-case letters and special characters.',\n loweruppernumbersspecial: 'Your password must contain a combination of letters, numbers and special characters.',\n lowernumbers: 'Add a lower-case letter or a number.',\n lowernumbersspecial: 'Add a combination of lower-case letters, numbers and special characters.',\n lowerspecial: 'Add a lower-case letter or a special character.',\n uppernumbers: 'Add an upper-case letter or a number.',\n uppernumbersspecial: 'Add a combination of upper-case letters, numbers and special characters.',\n upperspecial: 'Add an upper-case letter or a special character.',\n numbersspecial: 'Add a number or a special charactern',\n invalid: 'Your password may not contain the letters \\'æ\\', \\'ø\\', \\'å\\' or \\'Æ\\', \\'Ø\\', \\'Å\\'.',\n length: 'Your password must consist of at least ###LENGTH### characters.',\n spaces: 'Your password may not contain spaces.',\n specialchars: 'Your password contains a special character which is not permitted.',\n },\n allRequirements: 'Your new password meets all requirements.',\n passwordsEqual: 'The passwords match',\n passwordsNotEqual: 'Ups. You have written two different passwords. Please try again.',\n typeNew: 'Enter a new password',\n repeatNew: 'Re-enter your new password',\n privateMail: 'Private email address',\n privateMailHint: 'If you have not registered your private email address at Aarhus University, you can write your AU email address, your AU ID or your student registration number.',\n privateMailHint2: 'If you have not registered your private email address at Aarhus University, you can write your AU email address.',\n mailReceiptHeader: 'We have sent a link to your email addresse registered',\n mailReceiptParagraph: 'Use the link to change your password.',\n mailReceiptHeader2: 'We have sent an email with your username to your email address',\n mailReceiptHelp: 'Haven’t you received an email from us?',\n mailReceiptHelp2: 'Maybe you have entered the wrong email address, AU ID or student registration number.',\n mailReceiptHelp3: 'Maybe you have entered the wrong email address.',\n mailReceiptLink: 'Please go back and try again',\n forgotPassword: 'Forgot your password?',\n forgotPasswordParagraph: 'Enter your email address. We will then send you a link which you can use to reset your password.',\n forgotUsername: 'Forgot your username?',\n forgotUsernameParagraph: 'Enter your email address. We will then send you an email with your username.',\n allGood: 'Perfect',\n validInput: 'You have not entered a valid email address, AU ID or student registration number.',\n sendBtnPassword: 'Next',\n sendBtnUsername: 'Send my username',\n expiredHeader: 'Unfortunately, the link has expired.',\n expiredText: 'Please note that the link is only active for 24 hours.',\n expiredLink: 'Try again',\n goBack: 'Go back',\n supportHeader: 'Need help?',\n supportStudentLink: 'https://studerende.au.dk/en/it-support/',\n supportStudentText: 'Support for students',\n supportStaffLink: 'https://medarbejdere.au.dk/en/administration/it/',\n supportStaffText: 'Support for staff and others',\n },\n};\n\nconst countryCodes = [\n { da: 'Afghanistan', en: 'Afghanistan', code: 93 },\n { da: 'Albanien', en: 'Albania', code: 355 },\n { da: 'Algeriet', en: 'Algeria', code: 213 },\n { da: 'Amerikansk Samoa', en: 'American Samoa', code: 684 },\n { da: 'Andorra', en: 'Andorra', code: 376 },\n { da: 'Angola', en: 'Angola', code: 244 },\n { da: 'Anguilla', en: 'Anguilla', code: 1264 },\n { da: 'Antigua og Barbuda', en: 'Antigua and Barbuda', code: 1268 },\n { da: 'Argentina', en: 'Argentina', code: 54 },\n { da: 'Armenien', en: 'Armenia', code: 374 },\n { da: 'Aruba', en: 'Aruba', code: 297 },\n { da: 'Ascension', en: 'Ascension', code: 247 },\n { da: 'Aserbajdsjan', en: 'Azerbaijan', code: 994 },\n { da: 'Australien', en: 'Australia', code: 61 },\n { da: 'Bahamas', en: 'Bahamas', code: 1242 },\n { da: 'Bahrain', en: 'Bahrain', code: 973 },\n { da: 'Bangladesh', en: 'Bangladesh', code: 880 },\n { da: 'Barbados', en: 'Barbados', code: 1246 },\n { da: 'Belgien', en: 'Belgium', code: 32 },\n { da: 'Belize', en: 'Belize', code: 501 },\n { da: 'Benin', en: 'Benin', code: 229 },\n { da: 'Bermuda', en: 'Bermuda', code: 1441 },\n { da: 'Bhutan', en: 'Bhutan', code: 975 },\n { da: 'Bolivia', en: 'Bolivia', code: 591 },\n { da: 'Bosnien-Hercegovina', en: 'Bosnia Herzegovina', code: 387 },\n { da: 'Botswana', en: 'Botswana', code: 267 },\n { da: 'Brasilien', en: 'Brazil', code: 55 },\n { da: 'Britiske Jomfruøer', en: 'British Virgin Islands', code: 1284 },\n { da: 'Brunei', en: 'Brunei', code: 673 },\n { da: 'Bulgarien', en: 'Bulgaria', code: 359 },\n { da: 'Burkina Faso', en: 'Burkina Faso', code: 226 },\n { da: 'Burma', en: 'Burma', code: 95 },\n { da: 'Burundi', en: 'Burundi', code: 257 },\n { da: 'Cambodja', en: 'Cambodia', code: 855 },\n { da: 'Cameroun', en: 'Cameroon', code: 237 },\n { da: 'Canada', en: 'Canada', code: 1 },\n { da: 'Caymanøerne', en: 'Cayman Islands', code: 1345 },\n { da: 'Centralafrikanske Republik', en: 'Centralafrican Republic', code: 236 },\n { da: 'Chile', en: 'Chile', code: 56 },\n { da: 'Cocosøerne', en: 'Cocos', code: 619162 },\n { da: 'Colombia', en: 'Colombia', code: 57 },\n { da: 'Comorerne', en: 'Comoros', code: 269 },\n { da: 'Cook-øerne', en: 'Cook Islands', code: 682 },\n { da: 'Costa Rica', en: 'Costa Rica', code: 506 },\n { da: 'Cuba', en: 'Cuba', code: 53 },\n { da: 'Cypern', en: 'Cyprus', code: 357 },\n {\n da: 'Danmark',\n en: 'Denmark',\n code: 45,\n important: true,\n },\n { da: 'Demokratiske Republik Congo', en: 'Democratic Republic of Congo', code: 243 },\n { da: 'Diego Garcia', en: 'Diego Garcia', code: 246 },\n { da: 'Djibouti', en: 'Djibouti', code: 253 },\n { da: 'Dominica', en: 'Dominica', code: 1767 },\n { da: 'Dominikanske Republik', en: 'Dominican Republic', code: 1809 },\n { da: 'Ecuador', en: 'Ecuador', code: 593 },\n { da: 'Egypten', en: 'Egypt', code: 20 },\n { da: 'El Salvador', en: 'El Salvador', code: 503 },\n { da: 'Elfenbenskysten', en: 'Ivory Coast', code: 225 },\n { da: 'Eritrea', en: 'Eritrea', code: 291 },\n { da: 'Estland', en: 'Estonia', code: 372 },\n { da: 'Etiopien', en: 'Ethiopia', code: 251 },\n { da: 'Falklandsøerne', en: 'Falklands', code: 500 },\n { da: 'Fiji', en: 'Fiji', code: 679 },\n { da: 'Filippinerne', en: 'Phillipines', code: 63 },\n { da: 'Finland', en: 'Finland', code: 358 },\n { da: 'Forenede Arabiske Emirater', en: 'United Arab Emirates', code: 971 },\n { da: 'Frankrig', en: 'France', code: 33 },\n { da: 'Fransk Guyana', en: 'French Guiana', code: 594 },\n { da: 'Fransk Polynesien', en: 'French Polynesia', code: 689 },\n { da: 'Færøerne', en: 'Faroe Islands', code: 298 },\n { da: 'Gabon', en: 'Gabon', code: 241 },\n { da: 'Gambia', en: 'Gambia', code: 220 },\n { da: 'Georgien', en: 'Georgia', code: 995 },\n { da: 'Ghana', en: 'Ghana', code: 233 },\n { da: 'Gibraltar', en: 'Gibraltar', code: 350 },\n { da: 'Grenada', en: 'Grenada', code: 1473 },\n { da: 'Grækenland', en: 'Greece', code: 30 },\n { da: 'Grønland', en: 'Greenland', code: 299 },\n { da: 'Guadeloupe', en: 'Guadeloupe', code: 590 },\n { da: 'Guam', en: 'Guam', code: 1671 },\n { da: 'Guatemala', en: 'Guatemala', code: 502 },\n { da: 'Guinea', en: 'Guinea', code: 224 },\n { da: 'Guinea-Bissau', en: 'Guinea-Bissau', code: 245 },\n { da: 'Guyana', en: 'Guyana', code: 592 },\n { da: 'Haiti', en: 'Haiti', code: 509 },\n { da: 'Honduras', en: 'Honduras', code: 504 },\n { da: 'Hong Kong', en: 'Hong Kong', code: 852 },\n { da: 'Hviderusland', en: 'Belarus', code: 375 },\n { da: 'Indien', en: 'India', code: 91 },\n { da: 'Indonesien', en: 'Indonesia', code: 62 },\n { da: 'Irak', en: 'Iraq', code: 964 },\n { da: 'Iran', en: 'Iran', code: 98 },\n { da: 'Irland', en: 'Ireland', code: 353 },\n { da: 'Island', en: 'Iceland', code: 354 },\n { da: 'Israel', en: 'Israel', code: 972 },\n { da: 'Italien', en: 'Italy', code: 39 },\n { da: 'Jamaica', en: 'Jamaica', code: 1876 },\n { da: 'Japan', en: 'Japan', code: 81 },\n { da: 'Jomfruøerne', en: 'Virgin Islands', code: 1340 },\n { da: 'Jordan', en: 'Jordan', code: 962 },\n { da: 'Juleøen', en: 'Christmas Island', code: 619164 },\n { da: 'Kap Verde', en: 'Cape Verde', code: 238 },\n { da: 'Kasakhstan', en: 'Kazakhstan', code: 7 },\n { da: 'Kenya', en: 'Kenya', code: 254 },\n { da: 'Kina', en: 'China', code: 86 },\n { da: 'Kirgisistan', en: 'Kyrgyzstan', code: 996 },\n { da: 'Kiribati', en: 'Kiribati', code: 686 },\n { da: 'Kroatien', en: 'Croatia', code: 385 },\n { da: 'Kuwait', en: 'Kuwait', code: 965 },\n { da: 'Laos', en: 'Laos', code: 856 },\n { da: 'Lesotho', en: 'Lesotho', code: 266 },\n { da: 'Letland', en: 'Latvia', code: 371 },\n { da: 'Libanon', en: 'Lebanon', code: 961 },\n { da: 'Liberia', en: 'Liberia', code: 231 },\n { da: 'Libyen', en: 'Libya', code: 218 },\n { da: 'Liechtenstein', en: 'Liechtenstein', code: 423 },\n { da: 'Litauen', en: 'Lithuania', code: 370 },\n { da: 'Luxemburg', en: 'Luxemburg', code: 352 },\n { da: 'Macau', en: 'Macau', code: 853 },\n { da: 'Madagaskar', en: 'Madagascar', code: 261 },\n { da: 'Makedonien', en: 'Macedonia', code: 389 },\n { da: 'Malawi', en: 'Malawi', code: 265 },\n { da: 'Malaysia', en: 'Malaysia', code: 60 },\n { da: 'Maldiverne', en: 'Maldives', code: 960 },\n { da: 'Mali', en: 'Mali', code: 223 },\n { da: 'Malta', en: 'Malta', code: 356 },\n { da: 'Marokko', en: 'Morocco', code: 212 },\n { da: 'Marshalløerne', en: 'Marshall Islands', code: 692 },\n { da: 'Martinique', en: 'Martinique', code: 596 },\n { da: 'Mauretanien', en: 'Mauritania', code: 222 },\n { da: 'Mauritius', en: 'Mauritius', code: 230 },\n { da: 'Mayotte', en: 'Mayotte', code: 262 },\n { da: 'Mexico', en: 'Mexico', code: 52 },\n { da: 'Mikronesien', en: 'Micronesia', code: 691 },\n { da: 'Moldova', en: 'Moldova', code: 373 },\n { da: 'Monaco', en: 'Monaco', code: 377 },\n { da: 'Mongoliet', en: 'Mongolia', code: 976 },\n { da: 'Montenegro', en: 'Montenegro', code: 382 },\n { da: 'Montserrat', en: 'Montserrat', code: 1664 },\n { da: 'Mozambique', en: 'Mozambique', code: 258 },\n { da: 'Namibia', en: 'Namibia', code: 264 },\n { da: 'Nauru', en: 'Nauru', code: 674 },\n { da: 'Nederlandene', en: 'Netherlands', code: 31 },\n { da: 'Nederlandske Antiller', en: 'Netherlands Antilles', code: 599 },\n { da: 'Nepal', en: 'Nepal', code: 977 },\n { da: 'New Zealand', en: 'New Zealand', code: 64 },\n { da: 'Nicaragua', en: 'Nicaragua', code: 505 },\n { da: 'Niger', en: 'Niger', code: 227 },\n { da: 'Nigeria', en: 'Nigeria', code: 234 },\n { da: 'Niue', en: 'Niue', code: 683 },\n { da: 'Nordirland', en: 'Northern Ireland', code: 44 },\n { da: 'Nordkorea', en: 'North Korea', code: 850 },\n { da: 'Norfolk', en: 'Norfolk', code: 672 },\n { da: 'Norge', en: 'Norway', code: 47 },\n { da: 'Ny Caledonien', en: 'New Caledonia', code: 687 },\n { da: 'Oman', en: 'Oman', code: 968 },\n { da: 'Pakistan', en: 'Pakistan', code: 92 },\n { da: 'Panama', en: 'Panama', code: 507 },\n { da: 'Papua Ny Guinea', en: 'Papua New Guinea', code: 675 },\n { da: 'Paraguay', en: 'Paraguay', code: 595 },\n { da: 'Peru', en: 'Peru', code: 51 },\n { da: 'Polen', en: 'Poland', code: 48 },\n { da: 'Portugal', en: 'Portugal', code: 351 },\n { da: 'Puerto Rico', en: 'Puerto Rico', code: 1787 },\n { da: 'Qatar', en: 'Qatar', code: 974 },\n { da: 'Republikken Congo', en: 'Republic of the Congo', code: 242 },\n { da: 'Réunion', en: 'Reunion', code: 262 },\n { da: 'Rumænien', en: 'Romania', code: 40 },\n { da: 'Rusland', en: 'Russia', code: 7 },\n { da: 'Rwanda', en: 'Rwanda', code: 250 },\n { da: 'Saint Helena', en: 'Saint Helena', code: 290 },\n { da: 'Saint Kitts og Nevis', en: 'Saint Kitts and Nevis', code: 1869 },\n { da: 'Saint Lucia', en: 'Saint Lucia', code: 1758 },\n { da: 'Saint Pierre og Miquelon', en: 'Saint Pierre and Miquelon', code: 508 },\n { da: 'Saint Vincent og Grenadinerne', en: 'Saint Vincent and the Grenadines', code: 1784 },\n { da: 'Salomonøerne', en: 'Solomons', code: 677 },\n { da: 'San Marino', en: 'San Marino', code: 378 },\n { da: 'Sao Tomé og Principe', en: 'Sao Tome and Principe', code: 239 },\n { da: 'Saudi-Arabien', en: 'Saudi Arabia', code: 966 },\n { da: 'Schweiz', en: 'Switzerland', code: 41 },\n { da: 'Senegal', en: 'Senegal', code: 221 },\n { da: 'Serbien', en: 'Serbia', code: 381 },\n { da: 'Seychellerne', en: 'Seychelles', code: 248 },\n { da: 'Sierra Leone', en: 'Sierra Leone', code: 232 },\n { da: 'Singapore', en: 'Singapore', code: 65 },\n { da: 'Slovakiet', en: 'Slovakia', code: 421 },\n { da: 'Slovenien', en: 'Slovenia', code: 386 },\n { da: 'Somalia', en: 'Somalia', code: 252 },\n { da: 'Spanien', en: 'Spain', code: 34 },\n { da: 'Sri Lanka', en: 'Sri Lanka', code: 94 },\n { da: 'Storbritannien', en: 'United Kingdom', code: 44 },\n { da: 'Sudan', en: 'Sudan', code: 249 },\n { da: 'Surinam', en: 'Suriname', code: 597 },\n { da: 'Sverige', en: 'Sweden', code: 46 },\n { da: 'Swaziland', en: 'Swaziland', code: 268 },\n { da: 'Sydafrika', en: 'South Africa', code: 27 },\n { da: 'Sydkorea', en: 'South Korea', code: 82 },\n { da: 'Sydsudan', en: 'South Sudan', code: 211 },\n { da: 'Syrien', en: 'Syria', code: 963 },\n { da: 'Tadsjikistan', en: 'Tajikistan', code: 992 },\n { da: 'Taiwan', en: 'Taiwan', code: 886 },\n { da: 'Tanzania', en: 'Tanzania', code: 255 },\n { da: 'Tchad', en: 'Chad', code: 235 },\n { da: 'Thailand', en: 'Thailand', code: 66 },\n { da: 'Tjekkiet', en: 'Czech republic', code: 420 },\n { da: 'Togo', en: 'Togo', code: 228 },\n { da: 'Tonga', en: 'Tonga', code: 676 },\n { da: 'Trinidad og Tobago', en: 'Trinidad and Tobago', code: 1868 },\n { da: 'Tunesien', en: 'Tunisia', code: 216 },\n { da: 'Turkmenistan', en: 'Turkmenistan', code: 993 },\n { da: 'Turks- og Caicosøerne', en: 'Turks and Caicos Islands', code: 1649 },\n { da: 'Tuvalu', en: 'Tuvalu', code: 688 },\n { da: 'Tyrkiet', en: 'Turkey', code: 90 },\n { da: 'Tyskland', en: 'Germany', code: 49 },\n { da: 'Uganda', en: 'Uganda', code: 256 },\n { da: 'Ukraine', en: 'Ukraine', code: 380 },\n { da: 'Ungarn', en: 'Hungary', code: 36 },\n { da: 'Uruguay', en: 'Uruguay', code: 598 },\n { da: 'USA', en: 'USA', code: 1 },\n { da: 'Usbekistan', en: 'Uzbekistan', code: 998 },\n { da: 'Vanuatu', en: 'Vanuatu', code: 678 },\n { da: 'Venezuela', en: 'Venezuela', code: 58 },\n { da: 'Vest Samoa', en: 'West Samoa', code: 685 },\n { da: 'Vietnam', en: 'Vietnam', code: 84 },\n { da: 'Yemen', en: 'Yemen', code: 967 },\n { da: 'Zambia', en: 'Zambia', code: 260 },\n { da: 'Zimbabwe', en: 'Zimbabwe', code: 263 },\n { da: 'Ækvatorialguinea', en: 'Equatorial Guinea', code: 240 },\n { da: 'Østrig', en: 'Austria', code: 43 },\n];\n\n\nexport {\n flowboxLabels,\n newsLabels,\n universeLabels,\n profileLabels,\n passwordLabels,\n countryCodes,\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\n\n/**\n * AU Kollapserbart Komponent\n *\n * Eksempel:\n * ```jsx\n * <AUCollapsibleComponent\n key=\"collapse\"\n collapsed\n header=\"Collapsible element\"\n level={2}\n className=\"hide-for-small-only\"\n onClick={(collapsed, node) => {\n this.setState({\n spinnerVisible: !collapsed,\n });\n }}\n >\n <h1>Test</h1>\n </AUCollapsibleComponent>\n * ```\n */\n\nclass AUCollapsibleComponent extends React.Component {\n constructor(props) {\n super(props);\n\n this.state = {\n collapsed: props.collapsed,\n };\n }\n\n componentDidMount() {\n const { attributes } = this.props;\n attributes.forEach((a) => {\n if (a.selector) {\n const el = this.node.querySelector(a.selector);\n if (el) {\n el.setAttribute(a.attr, a.value);\n }\n } else {\n this.node.setAttribute(a.attr, a.value);\n }\n });\n }\n\n render() {\n const {\n header,\n level,\n content,\n classNames,\n onClick,\n children,\n dataID,\n headerElement,\n } = this.props;\n const { collapsed } = this.state;\n let className = 'csc-frame au_collapsible';\n if (collapsed) {\n className += ' au_collapsed';\n }\n\n if (classNames) {\n className += ` ${classNames}`;\n }\n\n return (\n <div data-id={dataID} ref={(node) => { this.node = node; }} className={className}>\n {(() => {\n if (level > -1) {\n return (\n <div\n className=\"csc-header\"\n onClick={() => {\n this.setState((prevState) => ({\n collapsed: !prevState.collapsed,\n }), () => {\n const { collapsed: newCollapsed } = this.state;\n onClick(newCollapsed, this.node);\n });\n }}\n onKeyUp={() => {\n\n }}\n role=\"button\"\n tabIndex={0}\n >\n {(() => {\n switch (level) {\n case 0 && headerElement != null:\n return headerElement;\n case 1:\n return (\n <h1>\n {header}\n </h1>\n );\n case 2:\n return (\n <h2>\n {header}\n </h2>\n );\n case 3:\n return (\n <h3>\n {header}\n </h3>\n );\n case 4:\n return (\n <h4>\n {header}\n </h4>\n );\n case 5:\n return (\n <h5>\n {header}\n </h5>\n );\n default:\n return (\n <h6>\n {header}\n </h6>\n );\n }\n })()}\n </div>\n );\n }\n return null;\n })()}\n {children || content}\n </div>\n );\n }\n}\n\nAUCollapsibleComponent.defaultProps = {\n dataID: null,\n children: null,\n content: null,\n header: '',\n headerElement: null,\n level: 1,\n classNames: '',\n onClick: () => { },\n attributes: [],\n};\n\nAUCollapsibleComponent.propTypes = {\n dataID: PropTypes.string,\n children: PropTypes.element,\n collapsed: PropTypes.bool.isRequired,\n header: PropTypes.string,\n headerElement: PropTypes.element,\n level: PropTypes.number,\n content: PropTypes.element,\n classNames: PropTypes.string,\n onClick: PropTypes.func,\n attributes: PropTypes.arrayOf(PropTypes.shape({\n attr: PropTypes.string,\n value: PropTypes.string,\n selector: PropTypes.string,\n })),\n};\nAUCollapsibleComponent.displayName = 'AUCollapsibleComponent';\nexport default AUCollapsibleComponent;\n","/* eslint-env browser */\nimport React from 'react';\nimport PropTypes from 'prop-types';\n\nconst AUProfileLoginComponent = ({\n loggedIn,\n loginUri,\n children,\n text,\n}) => {\n if (!loggedIn) {\n return (\n <a\n className=\"nav__item nav__item--icon nav__item--icon--right nav__item--icon--always-show-label\"\n data-icon=\"\"\n href={loginUri}\n >\n {text}\n </a>\n );\n }\n\n return children;\n};\n\nAUProfileLoginComponent.defaultProps = {\n loggedIn: false,\n loginUri: '',\n lang: 'da',\n};\n\nAUProfileLoginComponent.propTypes = {\n loggedIn: PropTypes.bool,\n loginUri: PropTypes.string,\n children: PropTypes.element.isRequired,\n lang: PropTypes.string,\n text: PropTypes.string.isRequired,\n};\n\nAUProfileLoginComponent.displayName = 'AUProfileLoginComponent';\nexport default AUProfileLoginComponent;\n","/* eslint-env browser */\nimport { copyToClipboard, isElementWithClassNameInEventPath } from './helpers';\n\nconst findNav = (element) => {\n const parent = element.parentNode;\n if (parent.classList.contains('nav')) {\n return parent;\n }\n return findNav(parent);\n};\n\nconst closeResponsiveNav = (navElements, keepOpen = null) => {\n const navToggledClass = 'nav--toggled';\n navElements.forEach((n) => {\n const button = n.querySelector('.nav__toggle');\n if (n !== keepOpen) {\n if (n.classList.contains(navToggledClass)) {\n button.focus();\n button.setAttribute('aria-expanded', false);\n }\n n.classList.remove(navToggledClass);\n }\n });\n};\n\nconst setResponsiveToggle = (navElements) => {\n const toggleMenu = (button) => {\n const parent = findNav(button);\n\n const navItems = parent.querySelector('.nav__items');\n const lastNavItem = navItems.querySelector('.nav__item:last-of-type');\n navItems.classList.add('nav__items--fadeout');\n const firstElement = navItems.querySelector('.nav__item');\n if (firstElement) {\n firstElement.focus();\n }\n\n const transitionListener = () => {\n parent.classList.toggle('nav--toggled');\n navItems.classList.remove('nav__items--fadeout');\n lastNavItem.removeEventListener('transitionend', transitionListener);\n };\n\n lastNavItem.addEventListener('transitionend', transitionListener);\n return parent;\n };\n\n const toggle = document.querySelectorAll('.nav__toggle');\n toggle.forEach((button) => {\n button.addEventListener('click', () => {\n const nav = toggleMenu(button);\n const ariaExpanded = button.getAttribute('aria-expanded');\n button.setAttribute('aria-expanded', ariaExpanded === 'false');\n closeResponsiveNav(navElements, nav);\n });\n });\n};\n\nconst setResponsiveNav = (navElements, navElement) => {\n const navToggledClass = 'nav--toggled';\n const navItemsClass = 'nav__items';\n // gitlab #117\n navElement.classList.remove(navToggledClass);\n const navItemsParent = navElement.querySelector(`.${navItemsClass}`);\n\n if (navItemsParent) {\n const navItems = navItemsParent.querySelectorAll('.nav__item');\n const isOverflownClass = 'nav__item--is-overflown';\n const hasOverflowClass = 'nav--has-overflow';\n const isActiveClass = 'nav__item--active';\n let hasOverflown = false;\n\n for (let i = navItems.length - 1; i >= 0; i -= 1) {\n const nav = navItems[i];\n const top = nav.offsetTop;\n\n if (top > 0) {\n nav.classList.add(isOverflownClass);\n navElement.classList.add(hasOverflowClass);\n hasOverflown = true;\n } else if (!nav.classList.contains(isActiveClass)) {\n nav.classList.remove(isOverflownClass);\n }\n }\n\n if (!hasOverflown) {\n navElement.classList.remove(hasOverflowClass);\n const isActive = navElement.querySelector(`.${isActiveClass}`);\n if (isActive) {\n isActive.classList.remove(isOverflownClass);\n }\n }\n }\n\n // gitlab #115\n document.querySelector('body').addEventListener('click', (e) => {\n if (!e.target.classList.contains('nav__toggle')\n && !isElementWithClassNameInEventPath(e, navItemsClass)) {\n closeResponsiveNav(navElements);\n }\n });\n};\n\nconst closeSubNav = (buttons, keepOpen = null) => {\n const subNavClass = 'sub-nav--toggled';\n buttons.forEach((button) => {\n if (button !== keepOpen) {\n if (button.parentNode.classList.contains(subNavClass)) {\n button.focus();\n button.setAttribute('aria-expanded', false);\n }\n button.parentNode.classList.remove(subNavClass);\n }\n });\n};\n\nconst setSubNavToggle = (buttons, button) => {\n const subNavClass = 'sub-nav--toggled';\n button.addEventListener('click', () => {\n button.parentNode.classList.toggle(subNavClass);\n if (button.parentNode.classList.contains(subNavClass)) {\n button.setAttribute('aria-expanded', true);\n } else {\n button.setAttribute('aria-expanded', false);\n }\n closeSubNav(buttons, button);\n });\n\n // gitlab #115\n document.querySelector('body').addEventListener('click', (e) => {\n if (!isElementWithClassNameInEventPath(e, 'sub-nav')) {\n closeSubNav(buttons);\n }\n });\n};\n\nconst setCopyToClipboard = (lang = 'da') => {\n const copySpans = document.querySelectorAll('.copy-to-clipboard__this');\n copySpans.forEach((span) => {\n const parentBtn = span.parentNode;\n const listener = () => {\n const toCopy = span.innerText;\n copyToClipboard(toCopy);\n // eslint-disable-next-line no-param-reassign\n span.innerText = lang === 'da' ? 'Kopieret' : 'Copied';\n parentBtn.removeEventListener('click', listener);\n setTimeout(() => {\n // eslint-disable-next-line no-param-reassign\n span.innerText = toCopy;\n parentBtn.addEventListener('click', listener);\n }, 1200);\n };\n if (parentBtn.classList.contains('copy-to-clipboard')) {\n parentBtn.addEventListener('click', listener);\n }\n });\n};\n\n// Event.composedPath\n// https://gist.github.com/rockinghelvetica/00b9f7b5c97a16d3de75ba99192ff05c\n((e, d, w) => {\n if (!e.composedPath) {\n e.composedPath = () => {\n if (this.path) {\n return this.path;\n }\n let { target } = this;\n\n this.path = [];\n while (target.parentNode !== null) {\n this.path.push(target);\n target = target.parentNode;\n }\n this.path.push(d, w);\n return this.path;\n };\n }\n})(Event.prototype, document, window);\n\nexport {\n findNav,\n setResponsiveToggle,\n setResponsiveNav,\n setSubNavToggle,\n setCopyToClipboard,\n};\n","/* eslint-disable wrap-iife */\n/* eslint-disable import/prefer-default-export */\n/* eslint-env browser */\nconst copyToClipboard = (str) => {\n const el = document.createElement('textarea');\n el.value = str;\n document.body.appendChild(el);\n el.select();\n document.execCommand('copy');\n document.body.removeChild(el);\n};\n\n// planket fra https://hackernoon.com/copying-text-to-clipboard-with-javascript-df4d4988697f\n\nconst isElementWithClassNameInEventPath = (event, className) => {\n let found = false;\n const path = event.path || (event.composedPath && event.composedPath());\n path.forEach((p) => {\n if (p.classList) {\n if (p.classList.contains(className)) {\n found = true;\n }\n }\n });\n return found;\n};\n\nexport {\n copyToClipboard,\n isElementWithClassNameInEventPath,\n};\n","/* eslint-env browser */\nimport React, { useEffect, useState } from 'react';\nimport PropTypes from 'prop-types';\nimport { setCopyToClipboard } from '@aarhus-university/au-designsystem-delphinus/source/js/components/nav';\n\nconst AUProfileWidgetComponent = React.memo(({\n lang,\n name,\n auid,\n studentNumber,\n settings,\n changeLanguageUrl,\n logoutUri,\n profileLabels,\n}) => {\n const [ctcSet, setCtcSet] = useState(false);\n const renderSettings = settings.map((s) => <a key={s.url} className=\"sub-nav__item\" href={s.url}>{s.text}</a>);\n\n useEffect(() => {\n if (auid > 0 && !ctcSet) {\n setCopyToClipboard(lang);\n setCtcSet(true);\n }\n });\n\n return (\n <div className=\"sub-nav__content theme--normal\" aria-labelledby=\"profile-menu-toggle\">\n <div className=\"sub-nav__user\">\n <h2 className=\"sub-nav__user-name\">{name}</h2>\n <button\n type=\"button\"\n className=\"copy-to-clipboard\"\n title={profileLabels[lang].copyAuid}\n aria-label={`${profileLabels[lang].auId}: AU${auid}`}\n >\n {`${profileLabels[lang].auId}: `}\n <span className=\"copy-to-clipboard__this\">{`AU${auid}`}</span>\n </button>\n {\n studentNumber && (\n <button\n type=\"button\"\n className=\"copy-to-clipboard\"\n title={profileLabels[lang].copyStudentNumber}\n aria-label={`${profileLabels[lang].studentNumber}: ${studentNumber}`}\n >\n {`${profileLabels[lang].studentNumber}: `}\n <span className=\"copy-to-clipboard__this\">{studentNumber}</span>\n </button>\n )\n }\n </div>\n <hr />\n {renderSettings}\n <hr />\n {\n changeLanguageUrl && (\n <>\n <a className=\"sub-nav__item sub-nav__item--icon\" href={changeLanguageUrl} data-icon=\"\">{profileLabels[lang].changeLanguage}</a>\n <hr />\n </>\n )\n }\n <a\n className=\"sub-nav__item sub-nav__item--icon\"\n data-icon=\"\"\n href={logoutUri}\n >\n {profileLabels[lang].logout}\n </a>\n </div>\n );\n});\n\nAUProfileWidgetComponent.defaultProps = {\n studentNumber: null,\n changeLanguageUrl: null,\n};\n\nAUProfileWidgetComponent.propTypes = {\n lang: PropTypes.string.isRequired,\n name: PropTypes.string.isRequired,\n auid: PropTypes.number.isRequired,\n studentNumber: PropTypes.string,\n settings: PropTypes.arrayOf(PropTypes.shape({\n url: PropTypes.string.isRequired,\n text: PropTypes.string.isRequired,\n })).isRequired,\n profileLabels: PropTypes.shape({}).isRequired,\n changeLanguageUrl: PropTypes.string,\n logoutUri: PropTypes.string.isRequired,\n};\n\nAUProfileWidgetComponent.displayName = 'AUProfileWidgetComponent';\nexport default AUProfileWidgetComponent;\n","/* eslint-env browser */\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport { isElementInViewport } from '../../lib/helpers';\n\nclass AUSpinnerComponent extends React.Component {\n constructor(props) {\n super(props);\n\n this.state = {\n loading: true,\n visible: props.visible,\n };\n\n this.lazyLoad = this.lazyLoad.bind(this);\n }\n\n componentDidMount() {\n this.lazyLoad();\n window.addEventListener('scroll', () => {\n this.lazyLoad();\n });\n }\n\n componentDidUpdate() {\n this.lazyLoad();\n }\n\n static getDerivedStateFromProps(nextProps, prevState) {\n if (nextProps.visible !== prevState.visible) {\n return {\n visible: nextProps.visible,\n };\n }\n\n return null;\n }\n\n lazyLoad() {\n const {\n loadingCondition,\n loaded,\n domID,\n onLoad,\n } = this.props;\n const { loading, visible } = this.state;\n\n const element = document.getElementById(domID);\n if (!loaded && loading && loadingCondition && (visible || isElementInViewport(element))) {\n this.setState({\n loading: false,\n }, () => {\n onLoad();\n });\n }\n }\n\n render() {\n const {\n className, content, loaded, domID, children, height, init,\n } = this.props;\n\n if (!loaded) {\n if (init === 'table') {\n return (\n <div id={domID} className={`processing-state processing-state--init-table ${className}`} style={{ minHeight: height }} />\n );\n }\n if (init === 'box') {\n return (\n <div id={domID} className={`processing-state processing-state--init-box ${className}`} style={{ minHeight: height }} />\n );\n }\n return (\n <div id={domID} className={`processing-state ${className}`} style={{ minHeight: height }} />\n );\n }\n\n return children || content;\n }\n}\n\nAUSpinnerComponent.defaultProps = {\n domID: 'au-spinner-component',\n visible: false,\n className: '',\n content: null,\n children: null,\n onLoad: () => { },\n height: 'auto',\n init: '',\n};\n\nAUSpinnerComponent.propTypes = {\n /**\n * Relevant ved mere end en spinner per side\n */\n domID: PropTypes.string,\n /**\n * Om den er synlig på skærmen ved indlæsning\n */\n visible: PropTypes.bool,\n className: PropTypes.string,\n content: PropTypes.element,\n children: PropTypes.element,\n loaded: PropTypes.bool.isRequired,\n loadingCondition: PropTypes.bool.isRequired,\n onLoad: PropTypes.func,\n height: PropTypes.string,\n init: PropTypes.string,\n};\n\nAUSpinnerComponent.displayName = 'AUSpinnerComponent';\nexport default AUSpinnerComponent;\n","/* eslint-env browser */\n/* NO IMPORTS! */\n\nconst { serviceScopeProfile } = window; // Sættes pr. webapp\n\nconst sortAlphaObj = (a, b) => {\n if (typeof a.name !== 'undefined' && typeof b.name !== 'undefined') {\n return a.name.toLowerCase().localeCompare(b.name.toLowerCase(), 'da', { ignorePunctuation: true });\n }\n return 0;\n};\n\nconst isElementInViewport = (element) => {\n if (element === null) {\n return false;\n }\n\n const rect = element.getBoundingClientRect();\n\n return rect.bottom > 0\n && rect.right > 0\n && rect.left < (window.innerWidth || document.documentElement.clientWidth)\n && rect.top < (window.innerHeight || document.documentElement.clientHeight);\n};\n\nconst isElementPartlyInViewport = (element) => {\n let top = element.offsetTop;\n let left = element.offsetLeft;\n const width = element.offsetWidth;\n const height = element.offsetHeight;\n\n let offsetElement = element;\n while (offsetElement.offsetParent) {\n offsetElement = element.offsetParent;\n top += element.offsetTop;\n left += element.offsetLeft;\n }\n\n return (\n top < (window.pageYOffset + window.innerHeight)\n && left < (window.pageXOffset + window.innerWidth)\n && (top + height) > window.pageYOffset\n && (left + width) > window.pageXOffset\n );\n};\n\nconst setCookie = (cookieName, value, maxAge = null, exdays = null, path = ';path=/;domain=au.dk') => {\n let cookieValue = encodeURI(value);\n if (exdays != null) {\n const exdate = new Date();\n exdate.setDate(exdate.getDate() + exdays);\n cookieValue = `${cookieValue}; expires=${exdate.toUTCString()}`;\n } else if (maxAge != null) {\n cookieValue = `${cookieValue}; max-age=${maxAge}`;\n }\n\n document.cookie = `${cookieName}=${cookieValue}${path}`;\n};\n\nconst getCookie = (cookieName) => {\n let cookieValue = document.cookie;\n let cookieStart = cookieValue.indexOf(` ${cookieName}=`);\n if (cookieStart === -1) {\n cookieStart = cookieValue.indexOf(`${cookieName}=`);\n }\n if (cookieStart === -1) {\n cookieValue = null;\n } else {\n cookieStart = cookieValue.indexOf('=', cookieStart) + 1;\n let cookieEnd = cookieValue.indexOf(';', cookieStart);\n if (cookieEnd === -1) {\n cookieEnd = cookieValue.length;\n }\n cookieValue = decodeURI(cookieValue.substring(cookieStart, cookieEnd));\n }\n return cookieValue;\n};\n\nconst addToSessionStorage = (key, data) => {\n if (window.sessionStorage) {\n sessionStorage.setItem(key, JSON.stringify(data));\n }\n\n return data;\n};\n\nconst getFromSessionStorage = (key) => {\n if (window.sessionStorage) {\n const data = sessionStorage.getItem(key);\n if (data) {\n return JSON.parse(data);\n }\n }\n\n return null;\n};\n\nconst addToLocalStorage = (key, data) => {\n if (window.localStorage) {\n localStorage.setItem(key, JSON.stringify(data));\n }\n\n return data;\n};\n\nconst getFromLocalStorage = (key) => {\n if (window.localStorage) {\n const data = localStorage.getItem(key);\n if (data) {\n return JSON.parse(data);\n }\n }\n\n return null;\n};\n\nconst setContextInSession = (key, data, clearPrevious = true) => {\n if (clearPrevious) {\n Object.entries(window.sessionStorage).forEach((entry) => {\n const entryKey = entry[0];\n if (entryKey.includes('user-context')) {\n window.sessionStorage.removeItem(entryKey);\n }\n });\n }\n window.sessionStorage.setItem(`user-context-${key}`, data);\n};\n\nconst getContextFromSession = (key = '', any = false) => {\n if (any) {\n let foundContext = null;\n Object.entries(window.sessionStorage).forEach((entry) => {\n const entryKey = entry[0];\n if (entryKey.includes('user-context')) {\n foundContext = window.sessionStorage.getItem(entryKey);\n }\n });\n return foundContext;\n }\n\n return window.sessionStorage.getItem(`user-context-${key}`);\n};\n\n// Credits: http://blog.vishalon.net/index.php/javascript-getting-and-setting-caret-position-in-textarea/\nconst setCaretPosition = (element, pos) => {\n // Modern browsers\n if (element && element.setSelectionRange) {\n element.focus();\n element.setSelectionRange(pos, pos);\n }\n};\n\nconst splitPhoneNumber = (countryCodes, phoneNumber) => {\n const countryCodeFound = (code) => countryCodes.filter(\n (x) => x.code === parseInt(code, 10),\n ).length > 0;\n\n const findPrefix = () => {\n const skip = '+';\n let count = 1;\n let prefix = countryCodes.find((x) => x.important).code;\n while (count < phoneNumber.length) {\n const split = phoneNumber.substring(skip.length, skip.length + count);\n if (countryCodeFound(split)) {\n prefix = split;\n }\n count += 1;\n }\n return skip + prefix;\n };\n\n const prefix = findPrefix();\n return {\n prefix,\n number: phoneNumber.replace(prefix, ''),\n };\n};\n\nconst prettyPrintPhone = (countryCodes, phone) => {\n if (phone) {\n const { prefix, number } = splitPhoneNumber(countryCodes, phone);\n return `${prefix} ${number.match(/\\d{1,2}/g).join(' ')}`;\n }\n return '';\n};\n\nconst getAccessToken = (auAuth, serviceScope, callback) => {\n auAuth.getAccessToken([serviceScope]).then((accessToken) => {\n callback(accessToken.accessToken);\n });\n};\n\nconst parseError = (errorArray) => errorArray.map((e) => e.errorMessage).join(', ');\n\nconst scrollTo = (x = 0, y = 0) => window.scrollTo(x, y);\n\nexport {\n sortAlphaObj,\n isElementInViewport,\n isElementPartlyInViewport,\n setCookie,\n getCookie,\n addToLocalStorage,\n getFromLocalStorage,\n addToSessionStorage,\n getFromSessionStorage,\n setCaretPosition,\n getAccessToken,\n serviceScopeProfile,\n splitPhoneNumber,\n prettyPrintPhone,\n parseError,\n scrollTo,\n setContextInSession,\n getContextFromSession,\n};\n","/* eslint-env browser */\nimport React, { useState, useEffect } from 'react';\nimport PropTypes from 'prop-types';\nimport AUSpinnerComponent from '../delphinus/AUSpinnerComponent';\n\nconst AUUserContextComponent = ({\n auid,\n contextKey,\n spinner,\n children,\n handleContext,\n handleError,\n loginComponent,\n emptyComponent,\n clearCache,\n loggedIn,\n enrichContext,\n}) => {\n const { auAuth } = window;\n const [hasContext, setHasContext] = useState(false);\n const setContext = () => {\n if ((loggedIn || auAuth.getUser() != null) && !hasContext) {\n auAuth.setUserContext(auid, contextKey, clearCache, (userContext) => {\n setHasContext(true);\n handleContext(userContext);\n console.log(`Context for key ${contextKey} has been received and sent to handler`);\n }, (status, json) => {\n setHasContext(true); // Her skal vi måske have en special fejltilstand?\n handleError(status, json);\n }, true, loggedIn, enrichContext);\n }\n };\n useEffect(() => {\n if (!spinner) {\n setContext();\n }\n });\n\n // Hvis vi vil vise en loginskærm, fx på mitstudie\n if (loginComponent != null && auAuth.getUser() == null && !loggedIn) {\n return loginComponent;\n }\n\n // Hvis spinner er slået til, viser vi content deri\n if (spinner) {\n return (\n <AUSpinnerComponent\n onLoad={setContext}\n loadingCondition={!hasContext}\n loaded={hasContext}\n >\n {children}\n </AUSpinnerComponent>\n );\n }\n\n // Hvis vi ikke er indlæst har vi mulighed for at vise en tom tilstand\n if (!hasContext) {\n return emptyComponent;\n }\n\n return children;\n};\n\nAUUserContextComponent.defaultProps = {\n auid: 0,\n spinner: true,\n loginComponent: null,\n emptyComponent: null,\n clearCache: false,\n loggedIn: false,\n handleError: (status, json) => console.error(status, json),\n enrichContext: async (json) => json,\n};\n\nAUUserContextComponent.propTypes = {\n auid: PropTypes.number,\n contextKey: PropTypes.string,\n spinner: PropTypes.bool,\n children: PropTypes.element.isRequired,\n handleContext: PropTypes.func.isRequired,\n handleError: PropTypes.func.isRequired,\n loginComponent: PropTypes.element,\n emptyComponent: PropTypes.element,\n clearCache: PropTypes.bool,\n loggedIn: PropTypes.bool,\n enrichContext: PropTypes.func.isRequired,\n};\n\nAUUserContextComponent.displayName = 'AUUserContextComponent';\nexport default AUUserContextComponent;\n","/* eslint-env browser */\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport AUProfileWidgetComponent from './AUProfileWidgetComponent';\nimport AUUserContextComponent from '../context/AUUserContextComponent';\n\nconst AUProfileAvatar2016Component = ({\n lang,\n user,\n settings,\n toggled,\n onToggle,\n onLoad,\n profileLabels,\n logoutUri,\n}) => {\n const {\n chosenFirstNames,\n chosenLastName,\n auId,\n studentNumber,\n } = user;\n\n const content = (\n <div className={`sub-nav${toggled ? ' sub-nav--toggled' : ''}`}>\n <button\n id=\"profile-menu-toggle\"\n type=\"button\"\n aria-label={toggled ? `${profileLabels[lang].profileFor} ${chosenFirstNames} ${chosenLastName}` : profileLabels[lang].myProfile}\n aria-expanded={toggled}\n onClick={() => {\n onToggle();\n }}\n >\n {chosenFirstNames || profileLabels[lang].myProfile}\n </button>\n {\n toggled && (\n <AUProfileWidgetComponent\n lang={lang}\n name={`${chosenFirstNames} ${chosenLastName}`}\n auid={auId}\n studentNumber={studentNumber}\n settings={settings}\n profileLabels={profileLabels}\n logoutUri={logoutUri}\n />\n )\n }\n </div>\n );\n\n if (auId === 0) {\n return null;\n }\n\n return (\n <AUUserContextComponent\n auid={auId}\n loggedIn\n contextKey=\"staff-user\"\n handleContext={(userContext) => {\n onLoad(userContext);\n }}\n handleError={(status, json) => {\n console.log(status, json);\n }}\n spinner={false}\n emptyComponent={content}\n clearCache={false}\n >\n {content}\n </AUUserContextComponent>\n );\n};\n\nAUProfileAvatar2016Component.propTypes = {\n lang: PropTypes.string.isRequired,\n user: PropTypes.shape({\n chosenFirstNames: PropTypes.string.isRequired,\n chosenLastName: PropTypes.string.isRequired,\n preferredLanguage: PropTypes.string.isRequired,\n auId: PropTypes.number.isRequired,\n studentNumber: PropTypes.string.isRequired,\n }).isRequired,\n auAuth: PropTypes.shape({}).isRequired,\n settings: PropTypes.arrayOf(PropTypes.shape({\n url: PropTypes.string.isRequired,\n text: PropTypes.string.isRequired,\n })).isRequired,\n toggled: PropTypes.bool.isRequired,\n onToggle: PropTypes.func.isRequired,\n onLoad: PropTypes.func.isRequired,\n profileLabels: PropTypes.shape({}).isRequired,\n logoutUri: PropTypes.string.isRequired,\n};\n\nAUProfileAvatar2016Component.displayName = 'AUProfileAvatar2016Component';\nexport default AUProfileAvatar2016Component;\n","/* eslint-disable jsx-a11y/interactive-supports-focus */\n/* eslint-disable jsx-a11y/click-events-have-key-events */\n/* eslint-disable jsx-a11y/control-has-associated-label */\n/* eslint-env browser */\n/* eslint max-len: 0 */\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport PropTypes from 'prop-types';\nimport AUCollapsibleComponent from '../AUCollapsibleComponent';\nimport AUProfileLoginComponent from '../profile/AUProfileLoginComponent';\nimport AUProfileAvatar2016Component from '../profile/AUProfileAvatar2016Component';\nimport { getCookie, setCookie } from '../../lib/helpers';\n\nconst parseBurgerLinks = (elements) => {\n const links = [];\n elements.forEach((e) => {\n const link = e.querySelector('a');\n links.push({\n url: link.getAttribute('href'),\n title: link.innerText,\n className: e.getAttribute('class'),\n });\n });\n return links;\n};\n\nconst parseSystemLinks = (elements) => {\n const systems = [];\n elements.forEach((e) => {\n const div = e.querySelector('div');\n const header = div.querySelector('h3').innerText;\n const text = div.querySelector('p').innerText;\n const actions = div.querySelectorAll('ul > li > a');\n const system = {\n header,\n text,\n actions: [],\n };\n actions.forEach((a) => {\n system.actions.push({\n url: a.getAttribute('href'),\n title: a.innerText,\n });\n });\n systems.push(system);\n });\n return systems;\n};\n\nclass StaffTopComponent extends React.Component {\n constructor(props) {\n super(props);\n\n this.state = {\n active: 0,\n burgerLinks: [],\n systemLinks: [],\n loggedIn: false,\n showHelp: false,\n };\n }\n\n componentDidMount() {\n const { promiseHandler, user, onLoad } = this.props;\n document.getElementById('fade').addEventListener('click', () => {\n this.setState({\n active: 0,\n });\n });\n\n promiseHandler((data) => {\n const container = document.createElement('div');\n container.innerHTML = data;\n const burgerLinks = container.querySelectorAll('ul.burger-links > li');\n const systemLinks = container.querySelectorAll('ul.systems > li');\n this.setState({\n burgerLinks: parseBurgerLinks(burgerLinks),\n systemLinks: parseSystemLinks(systemLinks),\n });\n });\n\n const visible = document.querySelector('body').classList.contains('login');\n\n if (visible) {\n fetch(`${window.profileApiUri}/v1/person/isauthenticated`, {\n method: 'GET',\n credentials: 'include',\n })\n .then((response) => response.json())\n .then((json) => {\n this.setState({\n loggedIn: json.isAuthenticated,\n }, () => {\n onLoad({ ...user, ...{ auId: json.auId } });\n });\n }).catch((err) => {\n console.log(err);\n });\n }\n }\n\n componentDidUpdate() {\n const { active } = this.state;\n const fade = document.getElementById('fade');\n if (active > 0) {\n fade.style.display = 'block';\n } else {\n fade.style.display = 'none';\n }\n fade.style.opacity = 0;\n if (active === 2 && typeof window.findWidgetInit !== 'undefined') {\n window.findWidgetInit('.universe-utility .find-container');\n }\n if (active === 3) {\n AU.alphabox.init();\n }\n }\n\n render() {\n const {\n lang,\n user,\n onLoad,\n universeLabels,\n profileLabels,\n } = this.props;\n const {\n active,\n burgerLinks,\n systemLinks,\n loggedIn,\n showHelp,\n } = this.state;\n\n const helpCookie = getCookie('mystaff-help');\n const visible = document.querySelector('body').classList.contains('login');\n const help = !helpCookie && !loggedIn && document.querySelector('body').classList.contains('help');\n\n const renderBurgerLinks = burgerLinks.map(\n (u) => (\n <li key={u.title} className={u.className}>\n <a href={u.url}>\n {u.title}\n </a>\n </li>\n ),\n );\n\n const renderSystemLinks = systemLinks.map(\n (s) => (\n <li key={s.header}>\n <AUCollapsibleComponent\n collapsed\n header={s.header}\n level={3}\n >\n <div>\n <p>\n {s.text}\n </p>\n <ul className=\"resetlist\">\n {s.actions.map(\n (a) => (\n <li key={a.url}>\n <a href={a.url}>{a.title}</a>\n </li>\n ),\n )}\n </ul>\n </div>\n </AUCollapsibleComponent>\n </li>\n ),\n );\n\n return [\n <div key=\"header\" className=\"large-12 medium-12 small-12 columns\">\n <div>\n <h2 className=\"universe-home\" dangerouslySetInnerHTML={{ __html: universeLabels[lang].staffTitleLink }} />\n <div className={active === 4 ? 'avatar active' : 'avatar'}>\n {\n visible && (\n <>\n <AUProfileLoginComponent\n text={profileLabels[lang].myProfile}\n loggedIn={loggedIn}\n loginUri={`${window.profileApiUri}/auth/login?redirectUri=${window.location.href}`}\n >\n <AUProfileAvatar2016Component\n lang={lang}\n user={user}\n settings={[\n {\n url: `${window.profileApiUri}/${lang}/profile`,\n text: profileLabels[lang].headerContainer,\n },\n {\n url: `${window.profileApiUri}/${lang}/password`,\n text: profileLabels[lang].headerPassword,\n },\n {\n url: `${window.profileApiUri}/${lang}/holiday`,\n text: profileLabels[lang].headerVacationAbsence,\n },\n ]}\n profileLabels={profileLabels}\n toggled={active === 4}\n onToggle={() => {\n this.setState((prevState) => ({\n active: prevState.active === 4 ? 0 : 4,\n }));\n }}\n onLoad={onLoad}\n logoutUri={`${window.profileApiUri}/auth/logout?redirectUri=${window.location.href}`}\n />\n </AUProfileLoginComponent>\n {\n help && (\n <>\n <button\n type=\"button\"\n className=\"btn-help\"\n aria-label=\"Hjælp / help\"\n onClick={() => {\n this.setState({\n showHelp: true,\n });\n }}\n >\n \n </button>\n {\n showHelp && (\n ReactDOM.createPortal(\n <div className=\"help-modal\">\n <h2>{profileLabels[lang].helpModalHeader}</h2>\n <p>\n {profileLabels[lang].helpModalText}\n </p>\n <button\n type=\"button\"\n className=\"button bg-staff\"\n onClick={() => {\n setCookie('mystaff-help', true, null, 365, ';path=/;domain=medarbejdere.au.dk');\n this.setState({\n showHelp: false,\n });\n }}\n >\n {profileLabels[lang].helpModalBtn}\n </button>\n </div>,\n document.querySelector('.main'),\n 'modal',\n )\n )\n }\n </>\n )\n }\n </>\n )\n }\n </div>\n {\n showHelp && (\n <div\n key=\"overlay\"\n className=\"help-modal-overlay\"\n role=\"button\"\n onClick={() => {\n this.setState({\n showHelp: false,\n });\n }}\n />\n )\n }\n <ul className=\"resetlist universe-icons\">\n <li className=\"au\" dangerouslySetInnerHTML={{ __html: universeLabels[lang].mainPageLink }} />\n <li className={active === 1 ? 'active' : null}>\n <button\n type=\"button\"\n className=\"btn-system\"\n onClick={() => {\n this.setState((prevState) => ({\n active: prevState.active === 1 ? 0 : 1,\n }));\n }}\n >\n System\n </button>\n </li>\n <li className={active === 2 ? 'active' : null}>\n <button\n type=\"button\"\n className=\"btn-find\"\n onClick={() => {\n this.setState((prevState) => ({\n active: prevState.active === 2 ? 0 : 2,\n }));\n }}\n >\n Find\n </button>\n </li>\n <li className={active === 3 ? 'active' : null}>\n <button\n type=\"button\"\n className=\"btn-menu\"\n onClick={() => {\n this.setState((prevState) => ({\n active: prevState.active === 3 ? 0 : 3,\n }));\n }}\n >\n Menu\n </button>\n </li>\n </ul>\n </div>\n </div>,\n <div key={1} className={`universe-utility${active === 1 ? ' active' : ''}`}>\n <div className=\"universe-utility-links\">\n <ul className=\"resetlist\">\n {renderSystemLinks}\n </ul>\n </div>\n </div>,\n <div key={2} className={`universe-utility${active === 2 ? ' active' : ''}`}>\n <div className=\"find-container au-map\" />\n </div>,\n <div key={3} className={`universe-utility${active === 3 ? ' active' : ''}`}>\n <div className=\"au_alphabox\" id=\"au_alphabox_staff_utility\" />\n <div className=\"universe-utility-links\">\n <ul className=\"resetlist\">\n {renderBurgerLinks}\n </ul>\n </div>\n </div>,\n ];\n }\n}\n\n/*\nStaffTopComponent.defaultProps = {\n onLogin: () => { },\n};\n*/\n\nStaffTopComponent.propTypes = {\n lang: PropTypes.string.isRequired,\n user: PropTypes.shape({\n }).isRequired,\n promiseHandler: PropTypes.func.isRequired,\n onLoad: PropTypes.func.isRequired,\n universeLabels: PropTypes.shape({}).isRequired,\n profileLabels: PropTypes.shape({}).isRequired,\n};\n\nStaffTopComponent.displayName = 'StaffTopComponent';\nexport default StaffTopComponent;\n","/* eslint-env browser */\nimport React from 'react';\nimport PropTypes from 'prop-types';\n\nconst parseBurgerLinks = (elements) => {\n const links = [];\n elements.forEach((e) => {\n const link = e.querySelector('a');\n links.push({\n url: link.getAttribute('href'),\n title: link.innerText,\n className: e.getAttribute('class'),\n });\n });\n return links;\n};\n\nclass StudentTopComponent extends React.Component {\n constructor(props) {\n super(props);\n\n this.state = {\n active: 0,\n burgerLinks: [],\n };\n }\n\n componentDidMount() {\n const { promiseHandler } = this.props;\n document.getElementById('fade').addEventListener('click', () => {\n this.setState({\n active: 0,\n });\n });\n\n promiseHandler((data) => {\n const container = document.createElement('div');\n container.innerHTML = data;\n const burgerLinks = container.querySelectorAll('ul.burger-links > li');\n this.setState({\n burgerLinks: parseBurgerLinks(burgerLinks),\n });\n });\n }\n\n componentDidUpdate() {\n const { active } = this.state;\n const fade = document.getElementById('fade');\n if (active > 0) {\n fade.style.display = 'block';\n } else {\n fade.style.display = 'none';\n }\n fade.style.opacity = 0;\n if (active === 1 && typeof window.findWidgetInit !== 'undefined') {\n window.findWidgetInit('.universe-utility .find-container');\n }\n if (active === 2) {\n AU.alphabox.init();\n }\n }\n\n render() {\n const { lang, universeLabels } = this.props;\n const { active, burgerLinks } = this.state;\n\n const renderBurgerLinks = burgerLinks.map(\n (u) => (\n <li key={u.title} className={u.className}>\n <a href={u.url}>\n {u.title}\n </a>\n </li>\n ),\n );\n\n return [\n <div key=\"header\" className=\"large-12 medium-12 small-12 columns\">\n <div>\n <h2 className=\"universe-home\" dangerouslySetInnerHTML={{ __html: universeLabels[lang].studentTitleLink }} />\n <ul className=\"resetlist universe-icons\">\n <li className=\"mitstudie\">\n <a href={universeLabels[lang].mitstudieUrl}>{universeLabels[lang].mitstudieText}</a>\n </li>\n <li className=\"au\" dangerouslySetInnerHTML={{ __html: universeLabels[lang].mainPageLink }} />\n <li className={active === 1 ? 'active' : null}>\n <button\n type=\"button\"\n className=\"btn-find\"\n onClick={() => {\n this.setState((prevState) => ({\n active: prevState.active === 1 ? 0 : 1,\n }));\n }}\n >\n Find\n </button>\n </li>\n <li className={active === 2 ? 'active' : null}>\n <button\n type=\"button\"\n className=\"btn-menu\"\n onClick={() => {\n this.setState((prevState) => ({\n active: prevState.active === 2 ? 0 : 2,\n }));\n }}\n >\n Menu\n </button>\n </li>\n </ul>\n </div>\n </div>,\n <div key={1} className={`universe-utility${active === 1 ? ' active' : ''}`}>\n <div className=\"find-container au-map\" />\n </div>,\n <div key={2} className={`universe-utility${active === 2 ? ' active' : ''}`}>\n <div className=\"au_alphabox\" id=\"au_alphabox_student_utility\" />\n <div className=\"universe-utility-links\">\n <ul className=\"resetlist\">\n {renderBurgerLinks}\n </ul>\n </div>\n </div>,\n ];\n }\n}\n\nStudentTopComponent.propTypes = {\n lang: PropTypes.string.isRequired,\n promiseHandler: PropTypes.func.isRequired,\n universeLabels: PropTypes.shape({}).isRequired,\n};\n\nStudentTopComponent.displayName = 'StudentTopComponent';\nexport default StudentTopComponent;\n","/* eslint-env browser */\nimport React, { useState } from 'react';\nimport axios from 'axios';\nimport { universeLabels, profileLabels } from '../../lib/i18n';\nimport StaffTopComponent from './StaffTopComponent';\nimport StudentTopComponent from './StudentTopComponent';\n\nconst UniverseContainerComponent = () => {\n const [user, setUser] = useState({\n chosenFirstNames: '',\n chosenLastName: '',\n preferredLanguage: '',\n auId: 0,\n });\n\n const { auAuth } = window;\n const lang = document.querySelector('html').getAttribute('lang');\n const body = document.querySelector('body');\n const staffClass = 'staff';\n const studentClass = 'student';\n const { universeGlobalContentPath } = window;\n let universe = <div />;\n if (body.classList.contains(staffClass)) {\n universe = (\n <StaffTopComponent\n lang={lang}\n user={user}\n promiseHandler={(callback) => {\n axios.get(universeGlobalContentPath).then((promise) => {\n callback(promise.data);\n });\n }}\n onLoad={(context) => {\n setUser(context);\n }}\n auAuth={auAuth}\n universeLabels={universeLabels}\n profileLabels={profileLabels}\n />\n );\n }\n if (body.classList.contains(studentClass)) {\n universe = (\n <StudentTopComponent\n lang={lang}\n user={user}\n promiseHandler={(callback) => {\n axios.get(universeGlobalContentPath).then((promise) => {\n callback(promise.data);\n });\n }}\n universeLabels={universeLabels}\n profileLabels={profileLabels}\n />\n );\n }\n\n return universe;\n};\n\nUniverseContainerComponent.displayName = 'UniverseContainerComponent';\nexport default UniverseContainerComponent;\n","/* eslint-env browser */\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport UniverseContainerComponent from '../components/universe/UniverseContainerComponent';\n\nReactDOM.render(\n <UniverseContainerComponent />,\n document.querySelector('.universeheader'),\n);\n"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"file":"universe.js","mappings":"CAAA,SAA2CA,EAAMC,GAChD,GAAsB,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,EAAQG,QAAQ,SAAUA,QAAQ,mBAC/C,GAAqB,mBAAXC,QAAyBA,OAAOC,IAC9CD,OAAO,CAAC,QAAS,aAAcJ,OAC3B,CACJ,IAAIM,EAAuB,iBAAZL,QAAuBD,EAAQG,QAAQ,SAAUA,QAAQ,cAAgBH,EAAQD,EAAY,MAAGA,EAAe,UAC9H,IAAI,IAAIQ,KAAKD,GAAuB,iBAAZL,QAAuBA,QAAUF,GAAMQ,GAAKD,EAAEC,IAPxE,CASGC,MAAM,CAACC,EAAkCC,I,wCCA5C,IAAIC,EAAuB,EAAQ,KAEnC,SAASC,KACT,SAASC,KACTA,EAAuBC,kBAAoBF,EAE3CV,EAAOD,QAAU,WACf,SAASc,EAAKC,EAAOC,EAAUC,EAAeC,EAAUC,EAAcC,GACpE,GAAIA,IAAWV,EAAf,CAIA,IAAIW,EAAM,IAAIC,MACZ,mLAKF,MADAD,EAAIE,K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AAa,QACnDvC,EAAO7B,SAAS/B,cAAc,SAG9B,0BAAEmK,GAA8BnI,OACtC,IAAIoI,EAAW,8BAwCf,OAvCIxG,EAAKS,UAAUC,SAJA,WAKjB8F,EACE,kBAAC,EAAD,CACE7H,KAAMA,EACNoC,KAAMA,EACNmC,eAAiBuD,IACflD,MAAMgD,GAA2B5C,MAC9B+C,GAAYA,EAAQ/E,SACrBgC,MACCP,GAASqD,EAASrD,MAGvBlC,OAASyF,IACPL,EAAQK,IAEVzE,OAAQA,EACRhL,eAAgBA,EAChBW,cAAeA,KAIjBmI,EAAKS,UAAUC,SAxBE,aAyBnB8F,EACE,kBAAC,EAAD,CACE7H,KAAMA,EACNoC,KAAMA,EACNmC,eAAiBuD,IACflD,MAAMgD,GAA2B5C,MAC9B+C,GAAYA,EAAQ/E,SACrBgC,MACCP,GAASqD,EAASrD,MAGvBlM,eAAgBA,EAChBW,cAAeA,KAKd2O,GAGTH,EAA2B3I,YAAc,6BACzC,UC3DAgI,IAAAA,OACE,kBAAC,EAAD,MACAvH,SAAS/B,cAAc,qB","sources":["webpack://@aarhus-university/au-lib-react-components/webpack/universalModuleDefinition","webpack://@aarhus-university/au-lib-react-components/./node_modules/prop-types/factoryWithThrowingShims.js","webpack://@aarhus-university/au-lib-react-components/./node_modules/prop-types/index.js","webpack://@aarhus-university/au-lib-react-components/./node_modules/prop-types/lib/ReactPropTypesSecret.js","webpack://@aarhus-university/au-lib-react-components/external umd {\"root\":\"React\",\"commonjs2\":\"react\",\"commonjs\":\"react\",\"amd\":\"react\",\"umd\":\"react\"}","webpack://@aarhus-university/au-lib-react-components/external umd {\"root\":\"ReactDOM\",\"commonjs2\":\"react-dom\",\"commonjs\":\"react-dom\",\"amd\":\"react-dom\",\"umd\":\"react-dom\"}","webpack://@aarhus-university/au-lib-react-components/webpack/bootstrap","webpack://@aarhus-university/au-lib-react-components/webpack/runtime/compat get default export","webpack://@aarhus-university/au-lib-react-components/webpack/runtime/define property getters","webpack://@aarhus-university/au-lib-react-components/webpack/runtime/hasOwnProperty shorthand","webpack://@aarhus-university/au-lib-react-components/webpack/runtime/make namespace object","webpack://@aarhus-university/au-lib-react-components/./src/lib/i18n.ts","webpack://@aarhus-university/au-lib-react-components/./src/layout-2016/components/common/AUCollapsibleComponent.js","webpack://@aarhus-university/au-lib-react-components/./src/components/profile/AUProfileLoginComponent.js","webpack://@aarhus-university/au-lib-react-components/./node_modules/@aarhus-university/au-designsystem-delphinus/source/js/components/nav.js","webpack://@aarhus-university/au-lib-react-components/./src/components/profile/AUProfileWidgetComponent.js","webpack://@aarhus-university/au-lib-react-components/./node_modules/@aarhus-university/au-designsystem-delphinus/source/js/components/helpers.js","webpack://@aarhus-university/au-lib-react-components/./src/layout-2016/components/profile/AUProfileAvatar2016Component.js","webpack://@aarhus-university/au-lib-react-components/./src/layout-2016/components/universe/StaffTopComponent.js","webpack://@aarhus-university/au-lib-react-components/./src/lib/helpers.ts","webpack://@aarhus-university/au-lib-react-components/./src/layout-2016/components/universe/StudentTopComponent.js","webpack://@aarhus-university/au-lib-react-components/./src/layout-2016/components/universe/UniverseContainerComponent.js","webpack://@aarhus-university/au-lib-react-components/./src/layout-2016/lib/universe.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"), require(\"react-dom\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"react\", \"react-dom\"], factory);\n\telse {\n\t\tvar a = typeof exports === 'object' ? factory(require(\"react\"), require(\"react-dom\")) : factory(root[\"React\"], root[\"ReactDOM\"]);\n\t\tfor(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];\n\t}\n})(self, (__WEBPACK_EXTERNAL_MODULE__244__, __WEBPACK_EXTERNAL_MODULE__741__) => {\nreturn ","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","module.exports = __WEBPACK_EXTERNAL_MODULE__244__;","module.exports = __WEBPACK_EXTERNAL_MODULE__741__;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","const flowboxLabels = {\r\n da: {\r\n select: 'Vælg',\r\n back: 'Tilbage',\r\n building: 'Bygning',\r\n office: 'Kontor',\r\n },\r\n en: {\r\n select: 'Select',\r\n back: 'Back',\r\n building: 'Building',\r\n office: 'Office',\r\n },\r\n};\r\n\r\nconst newsLabels = {\r\n da: {\r\n news: {\r\n listLoadMore: 'Indlæs flere',\r\n eventDate: 'Dato',\r\n eventTime: 'Tid',\r\n eventWhere: 'Sted',\r\n eventRegistration: 'Tilmelding',\r\n weekdays: ['søndag', 'mandag', 'tirsdag', 'onsdag', 'torsdag', 'fredag', 'lørdag'],\r\n weekdaysShort: ['søn', 'man', 'tir', 'ons', 'tor', 'fre', 'lør'],\r\n months: ['januar', 'februar', 'marts', 'april', 'maj', 'juni', 'juli', 'august', 'september', 'oktober', 'november', 'december'],\r\n monthsShort: ['jan', 'feb', 'mar', 'apr', 'maj', 'jun', 'jul', 'aug', 'sep', 'okt', 'nov', 'dec'],\r\n readMore: 'Læs mere',\r\n rssAdd: 'Klik på RSS-ikonet for at abonnere på listen i din RSS-læser.',\r\n rssCopy: 'Kopier linket til RSS-feedet fra tekstfeltet herunder.',\r\n },\r\n share: {\r\n facebook: 'Del på Facebook',\r\n twitter: 'Del på Twitter',\r\n linkedin: 'Del på LinkedIn',\r\n mail: 'Send til en ven',\r\n mailLabelLong: 'Send via e-mailklienten på din computer',\r\n mailLabelShort: 'E-mail',\r\n gmailLabelLong: 'Send via Gmail',\r\n gmailLabelShort: 'Gmail',\r\n yahooLabelLong: 'Send via Yahoo Mail',\r\n yahooLabelShort: 'Yahoo Mail',\r\n outlookLabelLong: 'Send via outlook.com',\r\n outlookLabelShort: 'Outlook.com',\r\n },\r\n },\r\n en: {\r\n news: {\r\n listLoadMore: 'Load more',\r\n eventDate: 'Date',\r\n eventTime: 'Time',\r\n eventWhere: 'Location',\r\n eventRegistration: 'Registration',\r\n weekdays: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],\r\n weekdaysShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\r\n months: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],\r\n monthsShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],\r\n readMore: 'Read more',\r\n rssAdd: 'Click the RSS icon to subscribe to the list in your RSS reader.',\r\n rssCopy: 'Copy the link to the RSS feed from the textfield below.',\r\n },\r\n share: {\r\n facebook: 'Facebook share',\r\n twitter: 'Twitter share',\r\n linkedin: 'LinkedIn share',\r\n mail: 'Send to a friend',\r\n mailLabelLong: 'Send via the email client on your computer',\r\n mailLabelShort: 'E-mail',\r\n gmailLabelLong: 'Send via Gmail',\r\n gmailLabelShort: 'Gmail',\r\n yahooLabelLong: 'Send via Yahoo Mail',\r\n yahooLabelShort: 'Yahoo Mail',\r\n outlookLabelLong: 'Send via outlook.com',\r\n outlookLabelShort: 'Outlook.com',\r\n },\r\n },\r\n};\r\n\r\nconst universeLabels = {\r\n da: {\r\n staffTitleLink: '<a href=\"//medarbejdere.au.dk\"><strong>medarbejdere</strong>.au.dk</a>',\r\n studentTitleLink: '<a href=\"//studerende.au.dk\"><strong>studerende</strong>.au.dk</a>',\r\n mainPageLink: '<a href=\"//www.au.dk\">au.dk</a>',\r\n iconSystems: 'Systemer',\r\n iconPin: 'Personer og bygninger',\r\n iconBurger: 'Menu',\r\n mitstudieText: 'mitstudie',\r\n mitstudieUrl: 'https://mitstudie.au.dk',\r\n },\r\n en: {\r\n staffTitleLink: '<a href=\"//staff.au.dk\"><strong>staff</strong>.au.dk</a>',\r\n studentTitleLink: '<a href=\"//students.au.dk\"><strong>students</strong>.au.dk</a>',\r\n mainPageLink: '<a href=\"//international.au.dk\">au.dk</a>',\r\n iconSystems: 'Systems',\r\n iconPin: 'Persons and buildings',\r\n iconBurger: 'Menu',\r\n mitstudieText: 'mystudies.au.dk',\r\n mitstudieUrl: 'https://mystudies.au.dk/',\r\n },\r\n};\r\n\r\nconst profileLabels = {\r\n da: {\r\n login: 'Log ind',\r\n logout: 'Log ud',\r\n edit: 'Ret',\r\n auId: 'AU-id',\r\n studentNumber: 'Studienummer',\r\n changeLanguage: 'Change language',\r\n headerContainer: 'Profilindstillinger',\r\n headerName: 'Profilnavn',\r\n headerMail: 'Mailadresser',\r\n headerMobile: 'Privat mobilnummer',\r\n headerLanguage: 'Sprog i systemer',\r\n headerNextOfKin: 'Pårørende',\r\n otherMail: 'Se øvrige AU-mailadresser',\r\n languageIn: 'Du har valgt dansk som standardsprog',\r\n legendName: 'Vælg dit profilnavn til universitetets systemer',\r\n legendNameHint: 'Vær opmærksom på, at ændringer ikke slår igennem i alle systemer.',\r\n formNameHint: 'Dit navn fra CPR-registeret',\r\n formNameDisplayName: 'Skriv et andet navn',\r\n firstName: 'Fornavn',\r\n firstNameHint: 'Undlad mellemnavne, hvis du kun vil vises med ét fornavn',\r\n lastName: 'Efternavn',\r\n workMail: 'AU-mailadresse',\r\n workMailHint: 'Ændringer i din medarbejder-mailadresse skal afspejle dit navn',\r\n workMailScreenreader: 'Din medarbejder-mailadresse er ###MAIL###. Du kan kun rette den del, der kommer før @.',\r\n studentMail: 'Studie-mailadresse',\r\n studentMailScreenreader: 'Din studie-mailadresse er ###MAIL###. Du kan kun rette den del, der kommer før @.',\r\n privateMail: 'Privat mailadresse',\r\n privateMailHint: 'Vi sender en mail til din private mailadresse, hvis du glemmer dit brugernavn eller adgangskode til universitetets systemer.',\r\n countryCode: 'Landekode',\r\n number: 'Nummer',\r\n languageLegend: 'Vælg dit foretrukne sprog til universitetets systemer ',\r\n danish: 'Dansk',\r\n english: 'Engelsk',\r\n nextOfKinParagraph: 'Du kan oplyse navn og telefonnummer på en pårørende, så universitetet kan kontakte vedkommende i et nødstilfælde.',\r\n nextOfKinName: 'Navn',\r\n nextOfKinTelephone: 'Telefonnummer',\r\n headerPassword: 'Skift adgangskode',\r\n save: 'Gem',\r\n saved: 'Dine ændringer er blevet gemt.',\r\n mailNotice: '<strong>Vær opmærksom på, at der kan gå op til 15 minutter, før ændringer til din e-mailadresse slår igennem.</strong>',\r\n cancel: 'Annuller',\r\n validMail: 'Mailadressen du har skrevet er ikke gyldig.',\r\n validMailPrivate: 'Mailadressen du har skrevet er ikke gyldig, eller du har forsøgt at benytte din AU-mailadresse som privat mailadresse.',\r\n validMobile: 'Telefonnummeret du har skrevet er ikke gyldigt.',\r\n validName: 'Skriv et navn.',\r\n validFirstName: 'Skriv et fornavn.',\r\n validLastName: 'Skriv et efternavn.',\r\n emptyMail: 'Du har endnu ikke tilføjet en privat mailadresse',\r\n emptyMobile: 'Du har endnu ikke tilføjet et mobilnummer',\r\n emptyNok: 'Du har endnu ikke tilføjet en pårørende',\r\n copyAuid: 'Kopiér dit AU-id',\r\n copyStudentNumber: 'Kopiér dit studienummer',\r\n headerVacationAbsence: 'Ferie og fravær',\r\n myProfile: 'Min profil',\r\n helpModalHeader: 'Nyt: Medarbejderprofil',\r\n helpModalText: 'Nu kan du rette dine profiloplysninger, skifte adgangskode og se din ferie- og fraværsoversigt på medarbejdere.au.dk. Klik på \"Min profil\" for at logge ind og se din medarbejderprofil.',\r\n helpModalBtn: 'Ok, vis ikke igen',\r\n profileFor: 'Profilmenu for',\r\n changeLanguageButton: 'Switch to English',\r\n },\r\n en: {\r\n login: 'Sign in',\r\n logout: 'Sign out',\r\n edit: 'Edit',\r\n auId: 'AU ID',\r\n studentNumber: 'Student registration number',\r\n changeLanguage: 'Skift sprog',\r\n headerContainer: 'Profile settings',\r\n headerName: 'Profile name',\r\n headerMail: 'Email addresses',\r\n headerMobile: 'Private mobile phone number',\r\n headerLanguage: 'System language',\r\n headerNextOfKin: 'Relatives',\r\n otherMail: 'See other AU email addresses',\r\n languageIn: 'You have selected English as the standard language',\r\n legendName: 'Select your profile name for the university\\'s systems',\r\n legendNameHint: 'Please note that changes will not take effect in all systems.',\r\n formNameHint: 'Your name from the CPR (civil registration number) register',\r\n formNameDisplayName: 'Enter another name',\r\n firstName: 'First name',\r\n firstNameHint: 'Omit any middle names if you only want one first name to be displayed.',\r\n lastName: 'Last name',\r\n workMail: 'AU email address',\r\n workMailHint: 'Changes to your work mail must reflect your name',\r\n workMailScreenreader: 'Your work mail is ###MAIL###. You are only able to edit the part before the @.',\r\n studentMail: 'Student mail address',\r\n studentMailScreenreader: 'Your student mail address is ###MAIL###. You are only able to edit the part before the @.',\r\n privateMail: 'Private mail address',\r\n privateMailHint: 'If you forget your username or password for the university’s systems, we will send an email to your private email address.',\r\n countryCode: 'Country code',\r\n number: 'Number',\r\n languageLegend: 'Select your preferred language for the university’s systems.',\r\n danish: 'Danish',\r\n english: 'English',\r\n nextOfKinParagraph: 'State the name and phone number of a relative so the university can contact the person in question in case of an emergency.',\r\n nextOfKinName: 'Name',\r\n nextOfKinTelephone: 'Telephone number',\r\n headerPassword: 'Change password',\r\n save: 'Save',\r\n saved: 'Your changes have been saved',\r\n mailNotice: '<strong>Please note that it may take up to 15 minutes for changes to your email address to take effect.</strong>',\r\n cancel: 'Cancel',\r\n validMail: 'The email address you have entered is not valid.',\r\n validMailPrivate: 'The email address you have entered is not valid, or you have tried to use your AU email address as your private email address.',\r\n validMobile: 'The phone number you have entered is not valid.',\r\n validName: 'Enter a name.',\r\n validFirstName: 'Enter a first name.',\r\n validLastName: 'Enter a last name.',\r\n emptyMail: 'You have not yet added a private email address',\r\n emptyMobile: 'You have not yet added a mobile number',\r\n emptyNok: 'You have not yet added information about a relative ',\r\n copyAuid: 'Copy your AU ID',\r\n copyStudentNumber: 'Copy your student registration number',\r\n headerVacationAbsence: 'Holiday and absence',\r\n myProfile: 'My profile',\r\n helpModalHeader: 'New features at staff.au.dk',\r\n helpModalText: 'You can now edit your profile settings, change your password and see your holiday and absence overview at staff.au.dk. Click \"My profile\" to log in and see your staff profile.',\r\n helpModalBtn: 'OK, don\\'t show again',\r\n profileFor: 'Profile menu for',\r\n changeLanguageButton: 'Skift til dansk',\r\n },\r\n};\r\n\r\nconst passwordLabels = {\r\n da: {\r\n currentPassword: 'Skriv din nuværende adgangskode',\r\n changePassword: 'Skift adgangskode',\r\n changePasswordInfo: 'Vær opmærksom på, at når du skifter din adgangskode, gælder det alle universitetets systemer.',\r\n newPassword: 'Skriv en ny adgangskode',\r\n newPasswordInfo: 'Af sikkerhedsmæssige årsager må du ikke have anvendt din adgangskode tidligere, og den må ikke indeholde personlige oplysninger.',\r\n repeatPassword: 'Skriv din nye adgangskode igen',\r\n receipt: '<strong>Godt gået!</strong><br />Din adgangskode er nu skiftet',\r\n goto: 'Gå til forsiden',\r\n requirementsHeader: 'Din nye adgangskode skal indholde:',\r\n requirement1: 'Mindst 12 tegn',\r\n requirement2: 'Ingen æ, ø, å eller Æ, Ø, Å',\r\n requirement3: 'Ingen mellemrum',\r\n requirement4: 'En kombination af bogstaver, tal og disse specialtegn:',\r\n rules: {\r\n lowerupper: 'Tilføj et lille bogstav eller et stort bogstav.',\r\n loweruppernumbers: 'Tilføj en kombination af små bogstaver, store bogstaver og tal.',\r\n lowerupperspecial: 'Tilføj en kombination af små bogstaver, store bogstaver og specialtegn.',\r\n loweruppernumbersspecial: 'Din adgangskode skal indeholde en kombination af bogstaver, tal og specialtegn.',\r\n lowernumbers: 'Tilføj et lille bogstav eller et tal.',\r\n lowernumbersspecial: 'Tilføj en kombination af små bogstaver, tal og specialtegn.',\r\n lowerspecial: 'Tilføj et lille bogstav eller et specialtegn.',\r\n uppernumbers: 'Tilføj et stort bogstav eller et tal.',\r\n uppernumbersspecial: 'Tilføj en kombination af store bogstaver, tal og specialtegn.',\r\n upperspecial: 'Tilføj et stort bogstav eller et specialtegn.',\r\n numbersspecial: 'Tilføj et tal eller et specialtegn.',\r\n invalid: 'Din adgangskode må ikke indeholde æ, ø, å eller Æ, Ø, Å.',\r\n length: 'Din adgangskode skal være på mindst ###LENGTH### tegn.',\r\n spaces: 'Din adgangskode må ikke indeholde mellemrum.',\r\n specialchars: 'Din adgangskode indholder et specieltegn, som ikke er tilladt.',\r\n },\r\n allRequirements: 'Din nye adgangskode opfylder alle krav.',\r\n passwordsEqual: 'De to adgangskoder er ens',\r\n passwordsNotEqual: 'Hov, du har skrevet to forskellige adgangskoder. Prøv igen.',\r\n typeNew: 'Skriv en ny adgangskode',\r\n repeatNew: 'Skriv din nye adgangskode igen',\r\n privateMail: 'Privat mailadresse',\r\n privateMailHint: 'Hvis du ikke har registreret din private mailadresse på Aarhus Universitet, kan du skrive din AU-mailadresse, dit AU-id eller dit studienummer.',\r\n privateMailHint2: 'Hvis du ikke har registreret din private mailadresse på Aarhus Universitet, kan du skrive din AU-mailadresse.',\r\n mailReceiptHeader: 'Vi har sendt et link til din mailadresse',\r\n mailReceiptParagraph: 'Brug linket til at skifte din adgangskode.',\r\n mailReceiptHeader2: 'Vi har sendt dit AU-brugernavn til din mail',\r\n mailReceiptHelp: 'Har du ikke modtaget en mail fra os?',\r\n mailReceiptHelp2: 'Det kan skyldes, at du har indtastet en forkert mailadresse, AU-id eller studienummer.',\r\n mailReceiptHelp3: 'Det kan skyldes, at du har indtastet en forkert mailadresse.',\r\n mailReceiptLink: 'Gå tilbage og prøv igen',\r\n forgotPassword: 'Glemt adgangskode',\r\n forgotPasswordParagraph: 'Skriv din mailadresse, så sender vi et link, som du kan bruge til at skifte din adgangskode.',\r\n forgotUsername: 'Glemt brugernavn',\r\n forgotUsernameParagraph: 'Skriv din mailadresse, så sender vi en mail med dit brugernavn.',\r\n allGood: 'Perfekt',\r\n validInput: 'Du har ikke skrevet gyldig mailadresse, AU-id eller studienummer.',\r\n sendBtnPassword: 'Næste',\r\n sendBtnUsername: 'Send mit brugernavn',\r\n expiredHeader: 'Linket er desværre udløbet.',\r\n expiredText: 'Vær opmærksom på, at linket kun er aktivt i 24 timer.',\r\n expiredLink: 'Prøv igen',\r\n goBack: 'Gå tilbage',\r\n supportHeader: 'Har du brug for hjælp?',\r\n supportStudentLink: 'https://studerende.au.dk/it-support/',\r\n supportStudentText: 'Support til studerende',\r\n supportStaffLink: 'https://medarbejdere.au.dk/administration/it/',\r\n supportStaffText: 'Support til medarbejdere og andre',\r\n },\r\n en: {\r\n currentPassword: 'Enter your current password',\r\n changePassword: 'Change password',\r\n changePasswordInfo: 'Please note that when you change your password, the change will apply to all the university’s systems.',\r\n newPassword: 'Enter a new password',\r\n newPasswordInfo: 'For security reasons, you cannot use a password that you have used before, and the password may not contain personal information.',\r\n repeatPassword: 'Re-enter your new password',\r\n receipt: '<strong>Well done!</strong><br />Your password has now been changed',\r\n goto: 'Go to the front page',\r\n requirementsHeader: 'Your new password must contain:',\r\n requirement1: 'At least 12 characters',\r\n requirement2: 'No \\'æ\\', \\'ø\\', \\'å\\' or \\'Æ\\', \\'Ø\\', \\'Å\\'',\r\n requirement3: 'No spaces',\r\n requirement4: 'A combination of letters, numbers and these special characters:',\r\n rules: {\r\n lowerupper: 'Add a lower-case letter or an upper-case letter.',\r\n loweruppernumbers: 'Add a combination of lower-case letters, upper-case letters and numbers.',\r\n lowerupperspecial: 'Add a combination of lower-case letters, upper-case letters and special characters.',\r\n loweruppernumbersspecial: 'Your password must contain a combination of letters, numbers and special characters.',\r\n lowernumbers: 'Add a lower-case letter or a number.',\r\n lowernumbersspecial: 'Add a combination of lower-case letters, numbers and special characters.',\r\n lowerspecial: 'Add a lower-case letter or a special character.',\r\n uppernumbers: 'Add an upper-case letter or a number.',\r\n uppernumbersspecial: 'Add a combination of upper-case letters, numbers and special characters.',\r\n upperspecial: 'Add an upper-case letter or a special character.',\r\n numbersspecial: 'Add a number or a special charactern',\r\n invalid: 'Your password may not contain the letters \\'æ\\', \\'ø\\', \\'å\\' or \\'Æ\\', \\'Ø\\', \\'Å\\'.',\r\n length: 'Your password must consist of at least ###LENGTH### characters.',\r\n spaces: 'Your password may not contain spaces.',\r\n specialchars: 'Your password contains a special character which is not permitted.',\r\n },\r\n allRequirements: 'Your new password meets all requirements.',\r\n passwordsEqual: 'The passwords match',\r\n passwordsNotEqual: 'Ups. You have written two different passwords. Please try again.',\r\n typeNew: 'Enter a new password',\r\n repeatNew: 'Re-enter your new password',\r\n privateMail: 'Private email address',\r\n privateMailHint: 'If you have not registered your private email address at Aarhus University, you can write your AU email address, your AU ID or your student registration number.',\r\n privateMailHint2: 'If you have not registered your private email address at Aarhus University, you can write your AU email address.',\r\n mailReceiptHeader: 'We have sent a link to your email addresse registered',\r\n mailReceiptParagraph: 'Use the link to change your password.',\r\n mailReceiptHeader2: 'We have sent an email with your username to your email address',\r\n mailReceiptHelp: 'Haven’t you received an email from us?',\r\n mailReceiptHelp2: 'Maybe you have entered the wrong email address, AU ID or student registration number.',\r\n mailReceiptHelp3: 'Maybe you have entered the wrong email address.',\r\n mailReceiptLink: 'Please go back and try again',\r\n forgotPassword: 'Forgot your password?',\r\n forgotPasswordParagraph: 'Enter your email address. We will then send you a link which you can use to reset your password.',\r\n forgotUsername: 'Forgot your username?',\r\n forgotUsernameParagraph: 'Enter your email address. We will then send you an email with your username.',\r\n allGood: 'Perfect',\r\n validInput: 'You have not entered a valid email address, AU ID or student registration number.',\r\n sendBtnPassword: 'Next',\r\n sendBtnUsername: 'Send my username',\r\n expiredHeader: 'Unfortunately, the link has expired.',\r\n expiredText: 'Please note that the link is only active for 24 hours.',\r\n expiredLink: 'Try again',\r\n goBack: 'Go back',\r\n supportHeader: 'Need help?',\r\n supportStudentLink: 'https://studerende.au.dk/en/it-support/',\r\n supportStudentText: 'Support for students',\r\n supportStaffLink: 'https://medarbejdere.au.dk/en/administration/it/',\r\n supportStaffText: 'Support for staff and others',\r\n },\r\n};\r\n\r\nconst countryCodes = [\r\n { da: 'Afghanistan', en: 'Afghanistan', code: 93 },\r\n { da: 'Albanien', en: 'Albania', code: 355 },\r\n { da: 'Algeriet', en: 'Algeria', code: 213 },\r\n { da: 'Amerikansk Samoa', en: 'American Samoa', code: 684 },\r\n { da: 'Andorra', en: 'Andorra', code: 376 },\r\n { da: 'Angola', en: 'Angola', code: 244 },\r\n { da: 'Anguilla', en: 'Anguilla', code: 1264 },\r\n { da: 'Antigua og Barbuda', en: 'Antigua and Barbuda', code: 1268 },\r\n { da: 'Argentina', en: 'Argentina', code: 54 },\r\n { da: 'Armenien', en: 'Armenia', code: 374 },\r\n { da: 'Aruba', en: 'Aruba', code: 297 },\r\n { da: 'Ascension', en: 'Ascension', code: 247 },\r\n { da: 'Aserbajdsjan', en: 'Azerbaijan', code: 994 },\r\n { da: 'Australien', en: 'Australia', code: 61 },\r\n { da: 'Bahamas', en: 'Bahamas', code: 1242 },\r\n { da: 'Bahrain', en: 'Bahrain', code: 973 },\r\n { da: 'Bangladesh', en: 'Bangladesh', code: 880 },\r\n { da: 'Barbados', en: 'Barbados', code: 1246 },\r\n { da: 'Belgien', en: 'Belgium', code: 32 },\r\n { da: 'Belize', en: 'Belize', code: 501 },\r\n { da: 'Benin', en: 'Benin', code: 229 },\r\n { da: 'Bermuda', en: 'Bermuda', code: 1441 },\r\n { da: 'Bhutan', en: 'Bhutan', code: 975 },\r\n { da: 'Bolivia', en: 'Bolivia', code: 591 },\r\n { da: 'Bosnien-Hercegovina', en: 'Bosnia Herzegovina', code: 387 },\r\n { da: 'Botswana', en: 'Botswana', code: 267 },\r\n { da: 'Brasilien', en: 'Brazil', code: 55 },\r\n { da: 'Britiske Jomfruøer', en: 'British Virgin Islands', code: 1284 },\r\n { da: 'Brunei', en: 'Brunei', code: 673 },\r\n { da: 'Bulgarien', en: 'Bulgaria', code: 359 },\r\n { da: 'Burkina Faso', en: 'Burkina Faso', code: 226 },\r\n { da: 'Burma', en: 'Burma', code: 95 },\r\n { da: 'Burundi', en: 'Burundi', code: 257 },\r\n { da: 'Cambodja', en: 'Cambodia', code: 855 },\r\n { da: 'Cameroun', en: 'Cameroon', code: 237 },\r\n { da: 'Canada', en: 'Canada', code: 1 },\r\n { da: 'Caymanøerne', en: 'Cayman Islands', code: 1345 },\r\n { da: 'Centralafrikanske Republik', en: 'Centralafrican Republic', code: 236 },\r\n { da: 'Chile', en: 'Chile', code: 56 },\r\n { da: 'Cocosøerne', en: 'Cocos', code: 619162 },\r\n { da: 'Colombia', en: 'Colombia', code: 57 },\r\n { da: 'Comorerne', en: 'Comoros', code: 269 },\r\n { da: 'Cook-øerne', en: 'Cook Islands', code: 682 },\r\n { da: 'Costa Rica', en: 'Costa Rica', code: 506 },\r\n { da: 'Cuba', en: 'Cuba', code: 53 },\r\n { da: 'Cypern', en: 'Cyprus', code: 357 },\r\n {\r\n da: 'Danmark',\r\n en: 'Denmark',\r\n code: 45,\r\n important: true,\r\n },\r\n { da: 'Demokratiske Republik Congo', en: 'Democratic Republic of Congo', code: 243 },\r\n { da: 'Diego Garcia', en: 'Diego Garcia', code: 246 },\r\n { da: 'Djibouti', en: 'Djibouti', code: 253 },\r\n { da: 'Dominica', en: 'Dominica', code: 1767 },\r\n { da: 'Dominikanske Republik', en: 'Dominican Republic', code: 1809 },\r\n { da: 'Ecuador', en: 'Ecuador', code: 593 },\r\n { da: 'Egypten', en: 'Egypt', code: 20 },\r\n { da: 'El Salvador', en: 'El Salvador', code: 503 },\r\n { da: 'Elfenbenskysten', en: 'Ivory Coast', code: 225 },\r\n { da: 'Eritrea', en: 'Eritrea', code: 291 },\r\n { da: 'Estland', en: 'Estonia', code: 372 },\r\n { da: 'Etiopien', en: 'Ethiopia', code: 251 },\r\n { da: 'Falklandsøerne', en: 'Falklands', code: 500 },\r\n { da: 'Fiji', en: 'Fiji', code: 679 },\r\n { da: 'Filippinerne', en: 'Phillipines', code: 63 },\r\n { da: 'Finland', en: 'Finland', code: 358 },\r\n { da: 'Forenede Arabiske Emirater', en: 'United Arab Emirates', code: 971 },\r\n { da: 'Frankrig', en: 'France', code: 33 },\r\n { da: 'Fransk Guyana', en: 'French Guiana', code: 594 },\r\n { da: 'Fransk Polynesien', en: 'French Polynesia', code: 689 },\r\n { da: 'Færøerne', en: 'Faroe Islands', code: 298 },\r\n { da: 'Gabon', en: 'Gabon', code: 241 },\r\n { da: 'Gambia', en: 'Gambia', code: 220 },\r\n { da: 'Georgien', en: 'Georgia', code: 995 },\r\n { da: 'Ghana', en: 'Ghana', code: 233 },\r\n { da: 'Gibraltar', en: 'Gibraltar', code: 350 },\r\n { da: 'Grenada', en: 'Grenada', code: 1473 },\r\n { da: 'Grækenland', en: 'Greece', code: 30 },\r\n { da: 'Grønland', en: 'Greenland', code: 299 },\r\n { da: 'Guadeloupe', en: 'Guadeloupe', code: 590 },\r\n { da: 'Guam', en: 'Guam', code: 1671 },\r\n { da: 'Guatemala', en: 'Guatemala', code: 502 },\r\n { da: 'Guinea', en: 'Guinea', code: 224 },\r\n { da: 'Guinea-Bissau', en: 'Guinea-Bissau', code: 245 },\r\n { da: 'Guyana', en: 'Guyana', code: 592 },\r\n { da: 'Haiti', en: 'Haiti', code: 509 },\r\n { da: 'Honduras', en: 'Honduras', code: 504 },\r\n { da: 'Hong Kong', en: 'Hong Kong', code: 852 },\r\n { da: 'Hviderusland', en: 'Belarus', code: 375 },\r\n { da: 'Indien', en: 'India', code: 91 },\r\n { da: 'Indonesien', en: 'Indonesia', code: 62 },\r\n { da: 'Irak', en: 'Iraq', code: 964 },\r\n { da: 'Iran', en: 'Iran', code: 98 },\r\n { da: 'Irland', en: 'Ireland', code: 353 },\r\n { da: 'Island', en: 'Iceland', code: 354 },\r\n { da: 'Israel', en: 'Israel', code: 972 },\r\n { da: 'Italien', en: 'Italy', code: 39 },\r\n { da: 'Jamaica', en: 'Jamaica', code: 1876 },\r\n { da: 'Japan', en: 'Japan', code: 81 },\r\n { da: 'Jomfruøerne', en: 'Virgin Islands', code: 1340 },\r\n { da: 'Jordan', en: 'Jordan', code: 962 },\r\n { da: 'Juleøen', en: 'Christmas Island', code: 619164 },\r\n { da: 'Kap Verde', en: 'Cape Verde', code: 238 },\r\n { da: 'Kasakhstan', en: 'Kazakhstan', code: 7 },\r\n { da: 'Kenya', en: 'Kenya', code: 254 },\r\n { da: 'Kina', en: 'China', code: 86 },\r\n { da: 'Kirgisistan', en: 'Kyrgyzstan', code: 996 },\r\n { da: 'Kiribati', en: 'Kiribati', code: 686 },\r\n { da: 'Kroatien', en: 'Croatia', code: 385 },\r\n { da: 'Kuwait', en: 'Kuwait', code: 965 },\r\n { da: 'Laos', en: 'Laos', code: 856 },\r\n { da: 'Lesotho', en: 'Lesotho', code: 266 },\r\n { da: 'Letland', en: 'Latvia', code: 371 },\r\n { da: 'Libanon', en: 'Lebanon', code: 961 },\r\n { da: 'Liberia', en: 'Liberia', code: 231 },\r\n { da: 'Libyen', en: 'Libya', code: 218 },\r\n { da: 'Liechtenstein', en: 'Liechtenstein', code: 423 },\r\n { da: 'Litauen', en: 'Lithuania', code: 370 },\r\n { da: 'Luxemburg', en: 'Luxemburg', code: 352 },\r\n { da: 'Macau', en: 'Macau', code: 853 },\r\n { da: 'Madagaskar', en: 'Madagascar', code: 261 },\r\n { da: 'Makedonien', en: 'Macedonia', code: 389 },\r\n { da: 'Malawi', en: 'Malawi', code: 265 },\r\n { da: 'Malaysia', en: 'Malaysia', code: 60 },\r\n { da: 'Maldiverne', en: 'Maldives', code: 960 },\r\n { da: 'Mali', en: 'Mali', code: 223 },\r\n { da: 'Malta', en: 'Malta', code: 356 },\r\n { da: 'Marokko', en: 'Morocco', code: 212 },\r\n { da: 'Marshalløerne', en: 'Marshall Islands', code: 692 },\r\n { da: 'Martinique', en: 'Martinique', code: 596 },\r\n { da: 'Mauretanien', en: 'Mauritania', code: 222 },\r\n { da: 'Mauritius', en: 'Mauritius', code: 230 },\r\n { da: 'Mayotte', en: 'Mayotte', code: 262 },\r\n { da: 'Mexico', en: 'Mexico', code: 52 },\r\n { da: 'Mikronesien', en: 'Micronesia', code: 691 },\r\n { da: 'Moldova', en: 'Moldova', code: 373 },\r\n { da: 'Monaco', en: 'Monaco', code: 377 },\r\n { da: 'Mongoliet', en: 'Mongolia', code: 976 },\r\n { da: 'Montenegro', en: 'Montenegro', code: 382 },\r\n { da: 'Montserrat', en: 'Montserrat', code: 1664 },\r\n { da: 'Mozambique', en: 'Mozambique', code: 258 },\r\n { da: 'Namibia', en: 'Namibia', code: 264 },\r\n { da: 'Nauru', en: 'Nauru', code: 674 },\r\n { da: 'Nederlandene', en: 'Netherlands', code: 31 },\r\n { da: 'Nederlandske Antiller', en: 'Netherlands Antilles', code: 599 },\r\n { da: 'Nepal', en: 'Nepal', code: 977 },\r\n { da: 'New Zealand', en: 'New Zealand', code: 64 },\r\n { da: 'Nicaragua', en: 'Nicaragua', code: 505 },\r\n { da: 'Niger', en: 'Niger', code: 227 },\r\n { da: 'Nigeria', en: 'Nigeria', code: 234 },\r\n { da: 'Niue', en: 'Niue', code: 683 },\r\n { da: 'Nordirland', en: 'Northern Ireland', code: 44 },\r\n { da: 'Nordkorea', en: 'North Korea', code: 850 },\r\n { da: 'Norfolk', en: 'Norfolk', code: 672 },\r\n { da: 'Norge', en: 'Norway', code: 47 },\r\n { da: 'Ny Caledonien', en: 'New Caledonia', code: 687 },\r\n { da: 'Oman', en: 'Oman', code: 968 },\r\n { da: 'Pakistan', en: 'Pakistan', code: 92 },\r\n { da: 'Panama', en: 'Panama', code: 507 },\r\n { da: 'Papua Ny Guinea', en: 'Papua New Guinea', code: 675 },\r\n { da: 'Paraguay', en: 'Paraguay', code: 595 },\r\n { da: 'Peru', en: 'Peru', code: 51 },\r\n { da: 'Polen', en: 'Poland', code: 48 },\r\n { da: 'Portugal', en: 'Portugal', code: 351 },\r\n { da: 'Puerto Rico', en: 'Puerto Rico', code: 1787 },\r\n { da: 'Qatar', en: 'Qatar', code: 974 },\r\n { da: 'Republikken Congo', en: 'Republic of the Congo', code: 242 },\r\n { da: 'Réunion', en: 'Reunion', code: 262 },\r\n { da: 'Rumænien', en: 'Romania', code: 40 },\r\n { da: 'Rusland', en: 'Russia', code: 7 },\r\n { da: 'Rwanda', en: 'Rwanda', code: 250 },\r\n { da: 'Saint Helena', en: 'Saint Helena', code: 290 },\r\n { da: 'Saint Kitts og Nevis', en: 'Saint Kitts and Nevis', code: 1869 },\r\n { da: 'Saint Lucia', en: 'Saint Lucia', code: 1758 },\r\n { da: 'Saint Pierre og Miquelon', en: 'Saint Pierre and Miquelon', code: 508 },\r\n { da: 'Saint Vincent og Grenadinerne', en: 'Saint Vincent and the Grenadines', code: 1784 },\r\n { da: 'Salomonøerne', en: 'Solomons', code: 677 },\r\n { da: 'San Marino', en: 'San Marino', code: 378 },\r\n { da: 'Sao Tomé og Principe', en: 'Sao Tome and Principe', code: 239 },\r\n { da: 'Saudi-Arabien', en: 'Saudi Arabia', code: 966 },\r\n { da: 'Schweiz', en: 'Switzerland', code: 41 },\r\n { da: 'Senegal', en: 'Senegal', code: 221 },\r\n { da: 'Serbien', en: 'Serbia', code: 381 },\r\n { da: 'Seychellerne', en: 'Seychelles', code: 248 },\r\n { da: 'Sierra Leone', en: 'Sierra Leone', code: 232 },\r\n { da: 'Singapore', en: 'Singapore', code: 65 },\r\n { da: 'Slovakiet', en: 'Slovakia', code: 421 },\r\n { da: 'Slovenien', en: 'Slovenia', code: 386 },\r\n { da: 'Somalia', en: 'Somalia', code: 252 },\r\n { da: 'Spanien', en: 'Spain', code: 34 },\r\n { da: 'Sri Lanka', en: 'Sri Lanka', code: 94 },\r\n { da: 'Storbritannien', en: 'United Kingdom', code: 44 },\r\n { da: 'Sudan', en: 'Sudan', code: 249 },\r\n { da: 'Surinam', en: 'Suriname', code: 597 },\r\n { da: 'Sverige', en: 'Sweden', code: 46 },\r\n { da: 'Swaziland', en: 'Swaziland', code: 268 },\r\n { da: 'Sydafrika', en: 'South Africa', code: 27 },\r\n { da: 'Sydkorea', en: 'South Korea', code: 82 },\r\n { da: 'Sydsudan', en: 'South Sudan', code: 211 },\r\n { da: 'Syrien', en: 'Syria', code: 963 },\r\n { da: 'Tadsjikistan', en: 'Tajikistan', code: 992 },\r\n { da: 'Taiwan', en: 'Taiwan', code: 886 },\r\n { da: 'Tanzania', en: 'Tanzania', code: 255 },\r\n { da: 'Tchad', en: 'Chad', code: 235 },\r\n { da: 'Thailand', en: 'Thailand', code: 66 },\r\n { da: 'Tjekkiet', en: 'Czech republic', code: 420 },\r\n { da: 'Togo', en: 'Togo', code: 228 },\r\n { da: 'Tonga', en: 'Tonga', code: 676 },\r\n { da: 'Trinidad og Tobago', en: 'Trinidad and Tobago', code: 1868 },\r\n { da: 'Tunesien', en: 'Tunisia', code: 216 },\r\n { da: 'Turkmenistan', en: 'Turkmenistan', code: 993 },\r\n { da: 'Turks- og Caicosøerne', en: 'Turks and Caicos Islands', code: 1649 },\r\n { da: 'Tuvalu', en: 'Tuvalu', code: 688 },\r\n { da: 'Tyrkiet', en: 'Turkey', code: 90 },\r\n { da: 'Tyskland', en: 'Germany', code: 49 },\r\n { da: 'Uganda', en: 'Uganda', code: 256 },\r\n { da: 'Ukraine', en: 'Ukraine', code: 380 },\r\n { da: 'Ungarn', en: 'Hungary', code: 36 },\r\n { da: 'Uruguay', en: 'Uruguay', code: 598 },\r\n { da: 'USA', en: 'USA', code: 1 },\r\n { da: 'Usbekistan', en: 'Uzbekistan', code: 998 },\r\n { da: 'Vanuatu', en: 'Vanuatu', code: 678 },\r\n { da: 'Venezuela', en: 'Venezuela', code: 58 },\r\n { da: 'Vest Samoa', en: 'West Samoa', code: 685 },\r\n { da: 'Vietnam', en: 'Vietnam', code: 84 },\r\n { da: 'Yemen', en: 'Yemen', code: 967 },\r\n { da: 'Zambia', en: 'Zambia', code: 260 },\r\n { da: 'Zimbabwe', en: 'Zimbabwe', code: 263 },\r\n { da: 'Ækvatorialguinea', en: 'Equatorial Guinea', code: 240 },\r\n { da: 'Østrig', en: 'Austria', code: 43 },\r\n];\r\n\r\n\r\nexport {\r\n flowboxLabels,\r\n newsLabels,\r\n universeLabels,\r\n profileLabels,\r\n passwordLabels,\r\n countryCodes,\r\n};\r\n","/* eslint-disable @typescript-eslint/no-empty-function */\nimport React from 'react';\nimport PropTypes from 'prop-types';\n\nclass AUCollapsibleComponent extends React.Component {\n constructor(props) {\n super(props);\n\n this.state = {\n collapsed: props.collapsed,\n };\n }\n\n componentDidMount() {\n const { attributes } = this.props;\n attributes.forEach((a) => {\n if (a.selector) {\n const el = this.node.querySelector(a.selector);\n if (el) {\n el.setAttribute(a.attr, a.value);\n }\n } else {\n this.node.setAttribute(a.attr, a.value);\n }\n });\n }\n\n render() {\n const {\n header,\n level,\n content,\n classNames,\n onClick,\n children,\n dataID,\n headerElement,\n } = this.props;\n const { collapsed } = this.state;\n let className = 'csc-frame au_collapsible';\n if (collapsed) {\n className += ' au_collapsed';\n }\n\n if (classNames) {\n className += ` ${classNames}`;\n }\n\n return (\n <div data-id={dataID} ref={(node) => { this.node = node; }} className={className}>\n {(() => {\n if (level > -1) {\n return (\n <div\n className=\"csc-header\"\n onClick={() => {\n this.setState((prevState) => ({\n collapsed: !prevState.collapsed,\n }), () => {\n const { collapsed: newCollapsed } = this.state;\n onClick(newCollapsed, this.node);\n });\n }}\n onKeyUp={() => {\n\n }}\n role=\"button\"\n tabIndex={0}\n >\n {(() => {\n switch (level) {\n case 0 && headerElement != null:\n return headerElement;\n case 1:\n return (\n <h1>\n {header}\n </h1>\n );\n case 2:\n return (\n <h2>\n {header}\n </h2>\n );\n case 3:\n return (\n <h3>\n {header}\n </h3>\n );\n case 4:\n return (\n <h4>\n {header}\n </h4>\n );\n case 5:\n return (\n <h5>\n {header}\n </h5>\n );\n default:\n return (\n <h6>\n {header}\n </h6>\n );\n }\n })()}\n </div>\n );\n }\n return null;\n })()}\n {children || content}\n </div>\n );\n }\n}\n\nAUCollapsibleComponent.defaultProps = {\n dataID: null,\n children: null,\n content: null,\n header: '',\n headerElement: null,\n level: 1,\n classNames: '',\n onClick: () => { },\n attributes: [],\n};\n\nAUCollapsibleComponent.propTypes = {\n dataID: PropTypes.string,\n children: PropTypes.element,\n collapsed: PropTypes.bool.isRequired,\n header: PropTypes.string,\n headerElement: PropTypes.element,\n level: PropTypes.number,\n content: PropTypes.element,\n classNames: PropTypes.string,\n onClick: PropTypes.func,\n attributes: PropTypes.arrayOf(PropTypes.shape({\n attr: PropTypes.string,\n value: PropTypes.string,\n selector: PropTypes.string,\n })),\n};\nAUCollapsibleComponent.displayName = 'AUCollapsibleComponent';\nexport default AUCollapsibleComponent;\n","/* eslint-env browser */\nimport React from 'react';\nimport PropTypes from 'prop-types';\n\nconst AUProfileLoginComponent = ({\n loggedIn,\n loginUri,\n children,\n text,\n}) => {\n if (!loggedIn) {\n return (\n <a\n className=\"nav__item nav__item--icon nav__item--icon--right nav__item--icon--always-show-label\"\n data-icon=\"\"\n href={loginUri}\n >\n {text}\n </a>\n );\n }\n\n return children;\n};\n\nAUProfileLoginComponent.defaultProps = {\n loggedIn: false,\n loginUri: '',\n};\n\nAUProfileLoginComponent.propTypes = {\n loggedIn: PropTypes.bool,\n loginUri: PropTypes.string,\n children: PropTypes.element.isRequired,\n text: PropTypes.string.isRequired,\n};\n\nAUProfileLoginComponent.displayName = 'AUProfileLoginComponent';\nexport default AUProfileLoginComponent;\n","/* eslint-env browser */\nimport { copyToClipboard, isElementWithClassNameInEventPath } from './helpers';\n\nconst findNav = (element) => {\n const parent = element.parentNode;\n if (parent.classList.contains('nav')) {\n return parent;\n }\n return findNav(parent);\n};\n\nconst closeResponsiveNav = (navElements, keepOpen = null) => {\n const navToggledClass = 'nav--toggled';\n navElements.forEach((n) => {\n const button = n.querySelector('.nav__toggle');\n if (n !== keepOpen) {\n if (n.classList.contains(navToggledClass)) {\n button.focus();\n button.setAttribute('aria-expanded', false);\n }\n n.classList.remove(navToggledClass);\n }\n });\n};\n\nconst setResponsiveToggle = (navElements) => {\n const toggleMenu = (button) => {\n const parent = findNav(button);\n\n const navItems = parent.querySelector('.nav__items');\n const lastNavItem = navItems.querySelector('.nav__item:last-of-type');\n navItems.classList.add('nav__items--fadeout');\n const firstElement = navItems.querySelector('.nav__item');\n if (firstElement) {\n firstElement.focus();\n }\n\n const transitionListener = () => {\n parent.classList.toggle('nav--toggled');\n navItems.classList.remove('nav__items--fadeout');\n lastNavItem.removeEventListener('transitionend', transitionListener);\n };\n\n lastNavItem.addEventListener('transitionend', transitionListener);\n return parent;\n };\n\n const toggle = document.querySelectorAll('.nav__toggle');\n toggle.forEach((button) => {\n button.addEventListener('click', () => {\n const nav = toggleMenu(button);\n const ariaExpanded = button.getAttribute('aria-expanded');\n button.setAttribute('aria-expanded', ariaExpanded === 'false');\n closeResponsiveNav(navElements, nav);\n });\n });\n};\n\nconst setResponsiveNav = (navElements, navElement) => {\n const navToggledClass = 'nav--toggled';\n const navItemsClass = 'nav__items';\n // gitlab #117\n navElement.classList.remove(navToggledClass);\n const navItemsParent = navElement.querySelector(`.${navItemsClass}`);\n\n if (navItemsParent) {\n const navItems = navItemsParent.querySelectorAll('.nav__item');\n const isOverflownClass = 'nav__item--is-overflown';\n const hasOverflowClass = 'nav--has-overflow';\n const isActiveClass = 'nav__item--active';\n let hasOverflown = false;\n\n for (let i = navItems.length - 1; i >= 0; i -= 1) {\n const nav = navItems[i];\n const top = nav.offsetTop;\n\n if (top > 0) {\n nav.classList.add(isOverflownClass);\n navElement.classList.add(hasOverflowClass);\n hasOverflown = true;\n } else if (!nav.classList.contains(isActiveClass)) {\n nav.classList.remove(isOverflownClass);\n }\n }\n\n if (!hasOverflown) {\n navElement.classList.remove(hasOverflowClass);\n const isActive = navElement.querySelector(`.${isActiveClass}`);\n if (isActive) {\n isActive.classList.remove(isOverflownClass);\n }\n }\n }\n\n // gitlab #115\n document.querySelector('body').addEventListener('click', (e) => {\n if (!e.target.classList.contains('nav__toggle')\n && !isElementWithClassNameInEventPath(e, navItemsClass)) {\n closeResponsiveNav(navElements);\n }\n });\n};\n\nconst closeSubNav = (buttons, keepOpen = null) => {\n const subNavClass = 'sub-nav--toggled';\n buttons.forEach((button) => {\n if (button !== keepOpen) {\n if (button.parentNode.classList.contains(subNavClass)) {\n button.focus();\n button.setAttribute('aria-expanded', false);\n }\n button.parentNode.classList.remove(subNavClass);\n }\n });\n};\n\nconst setSubNavToggle = (buttons, button) => {\n const subNavClass = 'sub-nav--toggled';\n button.addEventListener('click', () => {\n button.parentNode.classList.toggle(subNavClass);\n if (button.parentNode.classList.contains(subNavClass)) {\n button.setAttribute('aria-expanded', true);\n } else {\n button.setAttribute('aria-expanded', false);\n }\n closeSubNav(buttons, button);\n });\n\n // gitlab #115\n document.querySelector('body').addEventListener('click', (e) => {\n if (!isElementWithClassNameInEventPath(e, 'sub-nav')) {\n closeSubNav(buttons);\n }\n });\n};\n\nconst setCopyToClipboard = (lang = 'da') => {\n const copySpans = document.querySelectorAll('.copy-to-clipboard__this');\n copySpans.forEach((span) => {\n const parentBtn = span.parentNode;\n const listener = () => {\n const toCopy = span.innerText;\n copyToClipboard(toCopy);\n // eslint-disable-next-line no-param-reassign\n span.innerText = lang === 'da' ? 'Kopieret' : 'Copied';\n parentBtn.removeEventListener('click', listener);\n setTimeout(() => {\n // eslint-disable-next-line no-param-reassign\n span.innerText = toCopy;\n parentBtn.addEventListener('click', listener);\n }, 1200);\n };\n if (parentBtn.classList.contains('copy-to-clipboard')) {\n parentBtn.addEventListener('click', listener);\n }\n });\n};\n\n// Event.composedPath\n// https://gist.github.com/rockinghelvetica/00b9f7b5c97a16d3de75ba99192ff05c\n((e, d, w) => {\n if (!e.composedPath) {\n // eslint-disable-next-line func-names\n e.composedPath = function () {\n if (this.path) {\n return this.path;\n }\n let { target } = this;\n\n this.path = [];\n while (target.parentNode !== null) {\n this.path.push(target);\n target = target.parentNode;\n }\n this.path.push(d, w);\n return this.path;\n };\n }\n})(Event.prototype, document, window);\n\nexport {\n findNav,\n setResponsiveToggle,\n setResponsiveNav,\n setSubNavToggle,\n setCopyToClipboard,\n};\n","/* eslint-env browser */\r\nimport React, { useEffect, useState } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport { setCopyToClipboard } from '@aarhus-university/au-designsystem-delphinus/source/js/components/nav';\r\n\r\nconst AUProfileWidgetComponent = React.memo(({\r\n lang,\r\n name,\r\n auid,\r\n studentNumber,\r\n settings,\r\n changeLanguageUrl,\r\n logoutUri,\r\n profileLabels,\r\n}) => {\r\n const [ctcSet, setCtcSet] = useState(false);\r\n const renderSettings = settings.map((s) => <a key={s.url} className=\"sub-nav__item\" href={s.url}>{s.text}</a>);\r\n\r\n useEffect(() => {\r\n if (auid > 0 && !ctcSet) {\r\n setCopyToClipboard(lang);\r\n setCtcSet(true);\r\n }\r\n });\r\n\r\n return (\r\n <div className=\"sub-nav__content theme--normal\" aria-labelledby=\"profile-menu-toggle\">\r\n <div className=\"sub-nav__user\">\r\n <h2 className=\"sub-nav__user-name\">{name}</h2>\r\n <button\r\n type=\"button\"\r\n className=\"copy-to-clipboard\"\r\n title={profileLabels[lang].copyAuid}\r\n aria-label={`${profileLabels[lang].auId}: AU${auid}`}\r\n >\r\n {`${profileLabels[lang].auId}: `}\r\n <span className=\"copy-to-clipboard__this\">{`AU${auid}`}</span>\r\n </button>\r\n {\r\n studentNumber && (\r\n <button\r\n type=\"button\"\r\n className=\"copy-to-clipboard\"\r\n title={profileLabels[lang].copyStudentNumber}\r\n aria-label={`${profileLabels[lang].studentNumber}: ${studentNumber}`}\r\n >\r\n {`${profileLabels[lang].studentNumber}: `}\r\n <span className=\"copy-to-clipboard__this\">{studentNumber}</span>\r\n </button>\r\n )\r\n }\r\n </div>\r\n <hr />\r\n {renderSettings}\r\n <hr />\r\n {\r\n changeLanguageUrl && (\r\n <>\r\n <a className=\"sub-nav__item sub-nav__item--icon\" href={changeLanguageUrl} data-icon=\"\">{profileLabels[lang].changeLanguage}</a>\r\n <hr />\r\n </>\r\n )\r\n }\r\n <a\r\n className=\"sub-nav__item sub-nav__item--icon\"\r\n data-icon=\"\"\r\n href={logoutUri}\r\n >\r\n {profileLabels[lang].logout}\r\n </a>\r\n </div>\r\n );\r\n});\r\n\r\nAUProfileWidgetComponent.defaultProps = {\r\n studentNumber: null,\r\n changeLanguageUrl: null,\r\n};\r\n\r\nAUProfileWidgetComponent.propTypes = {\r\n lang: PropTypes.string.isRequired,\r\n name: PropTypes.string.isRequired,\r\n auid: PropTypes.number.isRequired,\r\n studentNumber: PropTypes.string,\r\n settings: PropTypes.arrayOf(PropTypes.shape({\r\n url: PropTypes.string.isRequired,\r\n text: PropTypes.string.isRequired,\r\n })).isRequired,\r\n profileLabels: PropTypes.shape({}).isRequired,\r\n changeLanguageUrl: PropTypes.string,\r\n logoutUri: PropTypes.string.isRequired,\r\n};\r\n\r\nAUProfileWidgetComponent.displayName = 'AUProfileWidgetComponent';\r\nexport default AUProfileWidgetComponent;\r\n","/* eslint-disable wrap-iife */\n/* eslint-disable import/prefer-default-export */\n/* eslint-env browser */\nconst copyToClipboard = (str) => {\n const el = document.createElement('textarea');\n el.value = str;\n document.body.appendChild(el);\n el.select();\n document.execCommand('copy');\n document.body.removeChild(el);\n};\n\n// planket fra https://hackernoon.com/copying-text-to-clipboard-with-javascript-df4d4988697f\n\nconst isElementWithClassNameInEventPath = (event, className) => {\n let found = false;\n const path = event.path || (event.composedPath && event.composedPath());\n path.forEach((p) => {\n if (p.classList) {\n if (p.classList.contains(className)) {\n found = true;\n }\n }\n });\n return found;\n};\n\nconst getBaseFontSize = () => parseInt(window.getComputedStyle(document.documentElement).fontSize.replace('px', ''), 10);\nconst setMetaThemeColor = () => {\n const body = document.querySelector('body');\n if (body) {\n const bgColor = window.getComputedStyle(body).getPropertyValue('--color-background');\n const existingMeta = document.querySelector('meta[name=\"theme-color\"]');\n if (existingMeta) {\n existingMeta.content = bgColor;\n } else {\n const meta = document.createElement('meta');\n meta.name = 'theme-color';\n meta.content = bgColor;\n document.getElementsByTagName('head')[0].appendChild(meta);\n }\n }\n};\n\nexport {\n copyToClipboard,\n isElementWithClassNameInEventPath,\n getBaseFontSize,\n setMetaThemeColor,\n};\n","/* eslint-env browser */\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport AUProfileWidgetComponent from '../../../components/profile/AUProfileWidgetComponent';\n\n// TODO: Re-implement portal context i staff portal and mitstudie\n// before upgrading this lib-component!\nconst AUUserContextComponent = null;\n\nconst AUProfileAvatar2016Component = ({\n lang,\n user,\n settings,\n toggled,\n onToggle,\n onLoad,\n profileLabels,\n logoutUri,\n}) => {\n const {\n chosenFirstNames,\n chosenLastName,\n auId,\n studentNumber,\n } = user;\n\n const content = (\n <div className={`sub-nav${toggled ? ' sub-nav--toggled' : ''}`}>\n <button\n id=\"profile-menu-toggle\"\n type=\"button\"\n aria-label={toggled ? `${profileLabels[lang].profileFor} ${chosenFirstNames} ${chosenLastName}` : profileLabels[lang].myProfile}\n aria-expanded={toggled}\n onClick={() => {\n onToggle();\n }}\n >\n {chosenFirstNames || profileLabels[lang].myProfile}\n </button>\n {\n toggled && (\n <AUProfileWidgetComponent\n lang={lang}\n name={`${chosenFirstNames} ${chosenLastName}`}\n auid={auId}\n studentNumber={studentNumber}\n settings={settings}\n profileLabels={profileLabels}\n logoutUri={logoutUri}\n />\n )\n }\n </div>\n );\n\n if (auId === 0) {\n return null;\n }\n\n return (\n <AUUserContextComponent\n auid={auId}\n loggedIn\n contextKey=\"staff-user\"\n handleContext={(userContext) => {\n onLoad(userContext);\n }}\n handleError={(status, json) => {\n console.log(status, json);\n }}\n spinner={false}\n emptyComponent={content}\n clearCache={false}\n >\n {content}\n </AUUserContextComponent>\n );\n};\n\nAUProfileAvatar2016Component.propTypes = {\n lang: PropTypes.string.isRequired,\n user: PropTypes.shape({\n chosenFirstNames: PropTypes.string.isRequired,\n chosenLastName: PropTypes.string.isRequired,\n preferredLanguage: PropTypes.string.isRequired,\n auId: PropTypes.number.isRequired,\n studentNumber: PropTypes.string.isRequired,\n }).isRequired,\n auAuth: PropTypes.shape({}).isRequired,\n settings: PropTypes.arrayOf(PropTypes.shape({\n url: PropTypes.string.isRequired,\n text: PropTypes.string.isRequired,\n })).isRequired,\n toggled: PropTypes.bool.isRequired,\n onToggle: PropTypes.func.isRequired,\n onLoad: PropTypes.func.isRequired,\n profileLabels: PropTypes.shape({}).isRequired,\n logoutUri: PropTypes.string.isRequired,\n};\n\nAUProfileAvatar2016Component.displayName = 'AUProfileAvatar2016Component';\nexport default AUProfileAvatar2016Component;\n","/* eslint-disable jsx-a11y/interactive-supports-focus */\n/* eslint-disable jsx-a11y/click-events-have-key-events */\n/* eslint-disable jsx-a11y/control-has-associated-label */\n/* eslint-env browser */\n/* eslint max-len: 0 */\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport PropTypes from 'prop-types';\nimport AUCollapsibleComponent from '../common/AUCollapsibleComponent';\nimport AUProfileLoginComponent from '../../../components/profile/AUProfileLoginComponent';\nimport AUProfileAvatar2016Component from '../profile/AUProfileAvatar2016Component';\nimport { getCookie, setCookie } from '../../../lib/helpers';\n\nconst parseBurgerLinks = (elements) => {\n const links = [];\n elements.forEach((e) => {\n const link = e.querySelector('a');\n links.push({\n url: link.getAttribute('href'),\n title: link.innerText,\n className: e.getAttribute('class'),\n });\n });\n return links;\n};\n\nconst parseSystemLinks = (elements) => {\n const systems = [];\n elements.forEach((e) => {\n const div = e.querySelector('div');\n const header = div.querySelector('h3').innerText;\n const text = div.querySelector('p').innerText;\n const actions = div.querySelectorAll('ul > li > a');\n const system = {\n header,\n text,\n actions: [],\n };\n actions.forEach((a) => {\n system.actions.push({\n url: a.getAttribute('href'),\n title: a.innerText,\n });\n });\n systems.push(system);\n });\n return systems;\n};\n\nclass StaffTopComponent extends React.Component {\n constructor(props) {\n super(props);\n\n this.state = {\n active: 0,\n burgerLinks: [],\n systemLinks: [],\n loggedIn: false,\n showHelp: false,\n };\n }\n\n componentDidMount() {\n const { promiseHandler, user, onLoad } = this.props;\n document.getElementById('fade').addEventListener('click', () => {\n this.setState({\n active: 0,\n });\n });\n\n promiseHandler((data) => {\n const container = document.createElement('div');\n container.innerHTML = data;\n const burgerLinks = container.querySelectorAll('ul.burger-links > li');\n const systemLinks = container.querySelectorAll('ul.systems > li');\n this.setState({\n burgerLinks: parseBurgerLinks(burgerLinks),\n systemLinks: parseSystemLinks(systemLinks),\n });\n });\n\n const visible = document.querySelector('body').classList.contains('login');\n\n if (visible) {\n fetch(`${window.profileApiUri}/v1/person/isauthenticated`, {\n method: 'GET',\n credentials: 'include',\n })\n .then((response) => response.json())\n .then((json) => {\n this.setState({\n loggedIn: json.isAuthenticated,\n }, () => {\n onLoad({ ...user, ...{ auId: json.auId } });\n });\n }).catch((err) => {\n console.log(err);\n });\n }\n }\n\n componentDidUpdate() {\n const { active } = this.state;\n const fade = document.getElementById('fade');\n if (active > 0) {\n fade.style.display = 'block';\n } else {\n fade.style.display = 'none';\n }\n fade.style.opacity = 0;\n if (active === 2 && typeof window.findWidgetInit !== 'undefined') {\n window.findWidgetInit('.universe-utility .find-container');\n }\n if (active === 3) {\n AU.alphabox.init();\n }\n }\n\n render() {\n const {\n lang,\n user,\n onLoad,\n universeLabels,\n profileLabels,\n } = this.props;\n const {\n active,\n burgerLinks,\n systemLinks,\n loggedIn,\n showHelp,\n } = this.state;\n\n const helpCookie = getCookie('mystaff-help');\n const visible = document.querySelector('body').classList.contains('login');\n const help = !helpCookie && !loggedIn && document.querySelector('body').classList.contains('help');\n\n const renderBurgerLinks = burgerLinks.map(\n (u) => (\n <li key={u.title} className={u.className}>\n <a href={u.url}>\n {u.title}\n </a>\n </li>\n ),\n );\n\n const renderSystemLinks = systemLinks.map(\n (s) => (\n <li key={s.header}>\n <AUCollapsibleComponent\n collapsed\n header={s.header}\n level={3}\n >\n <div>\n <p>\n {s.text}\n </p>\n <ul className=\"resetlist\">\n {s.actions.map(\n (a) => (\n <li key={a.url}>\n <a href={a.url}>{a.title}</a>\n </li>\n ),\n )}\n </ul>\n </div>\n </AUCollapsibleComponent>\n </li>\n ),\n );\n\n return [\n <div key=\"header\" className=\"large-12 medium-12 small-12 columns\">\n <div>\n <h2 className=\"universe-home\" dangerouslySetInnerHTML={{ __html: universeLabels[lang].staffTitleLink }} />\n <div className={active === 4 ? 'avatar active' : 'avatar'}>\n {\n visible && (\n <>\n <AUProfileLoginComponent\n text={profileLabels[lang].myProfile}\n loggedIn={loggedIn}\n loginUri={`${window.profileApiUri}/auth/login?redirectUri=${window.location.href}`}\n >\n <AUProfileAvatar2016Component\n lang={lang}\n user={user}\n settings={[\n {\n url: `${window.profileApiUri}/${lang}/profile`,\n text: profileLabels[lang].headerContainer,\n },\n {\n url: `${window.profileApiUri}/${lang}/password`,\n text: profileLabels[lang].headerPassword,\n },\n {\n url: `${window.profileApiUri}/${lang}/holiday`,\n text: profileLabels[lang].headerVacationAbsence,\n },\n ]}\n profileLabels={profileLabels}\n toggled={active === 4}\n onToggle={() => {\n this.setState((prevState) => ({\n active: prevState.active === 4 ? 0 : 4,\n }));\n }}\n onLoad={onLoad}\n logoutUri={`${window.profileApiUri}/auth/logout?redirectUri=${window.location.href}`}\n />\n </AUProfileLoginComponent>\n {\n help && (\n <>\n <button\n type=\"button\"\n className=\"btn-help\"\n aria-label=\"Hjælp / help\"\n onClick={() => {\n this.setState({\n showHelp: true,\n });\n }}\n >\n \n </button>\n {\n showHelp && (\n ReactDOM.createPortal(\n <div className=\"help-modal\">\n <h2>{profileLabels[lang].helpModalHeader}</h2>\n <p>\n {profileLabels[lang].helpModalText}\n </p>\n <button\n type=\"button\"\n className=\"button bg-staff\"\n onClick={() => {\n setCookie('mystaff-help', true, null, 365, ';path=/;domain=medarbejdere.au.dk');\n this.setState({\n showHelp: false,\n });\n }}\n >\n {profileLabels[lang].helpModalBtn}\n </button>\n </div>,\n document.querySelector('.main'),\n 'modal',\n )\n )\n }\n </>\n )\n }\n </>\n )\n }\n </div>\n {\n showHelp && (\n <div\n key=\"overlay\"\n className=\"help-modal-overlay\"\n role=\"button\"\n onClick={() => {\n this.setState({\n showHelp: false,\n });\n }}\n />\n )\n }\n <ul className=\"resetlist universe-icons\">\n <li className=\"au\" dangerouslySetInnerHTML={{ __html: universeLabels[lang].mainPageLink }} />\n <li className={active === 1 ? 'active' : null}>\n <button\n type=\"button\"\n className=\"btn-system\"\n onClick={() => {\n this.setState((prevState) => ({\n active: prevState.active === 1 ? 0 : 1,\n }));\n }}\n >\n System\n </button>\n </li>\n <li className={active === 2 ? 'active' : null}>\n <button\n type=\"button\"\n className=\"btn-find\"\n onClick={() => {\n this.setState((prevState) => ({\n active: prevState.active === 2 ? 0 : 2,\n }));\n }}\n >\n Find\n </button>\n </li>\n <li className={active === 3 ? 'active' : null}>\n <button\n type=\"button\"\n className=\"btn-menu\"\n onClick={() => {\n this.setState((prevState) => ({\n active: prevState.active === 3 ? 0 : 3,\n }));\n }}\n >\n Menu\n </button>\n </li>\n </ul>\n </div>\n </div>,\n <div key={1} className={`universe-utility${active === 1 ? ' active' : ''}`}>\n <div className=\"universe-utility-links\">\n <ul className=\"resetlist\">\n {renderSystemLinks}\n </ul>\n </div>\n </div>,\n <div key={2} className={`universe-utility${active === 2 ? ' active' : ''}`}>\n <div className=\"find-container au-map\" />\n </div>,\n <div key={3} className={`universe-utility${active === 3 ? ' active' : ''}`}>\n <div className=\"au_alphabox\" id=\"au_alphabox_staff_utility\" />\n <div className=\"universe-utility-links\">\n <ul className=\"resetlist\">\n {renderBurgerLinks}\n </ul>\n </div>\n </div>,\n ];\n }\n}\n\n/*\nStaffTopComponent.defaultProps = {\n onLogin: () => { },\n};\n*/\n\nStaffTopComponent.propTypes = {\n lang: PropTypes.string.isRequired,\n user: PropTypes.shape({\n }).isRequired,\n promiseHandler: PropTypes.func.isRequired,\n onLoad: PropTypes.func.isRequired,\n universeLabels: PropTypes.shape({}).isRequired,\n profileLabels: PropTypes.shape({}).isRequired,\n};\n\nStaffTopComponent.displayName = 'StaffTopComponent';\nexport default StaffTopComponent;\n","/* eslint-env browser */\n/* NO IMPORTS! */\n\nconst sortAlphaObj = (a, b) => {\n if (typeof a.name !== 'undefined' && typeof b.name !== 'undefined') {\n return a.name.toLowerCase().localeCompare(b.name.toLowerCase(), 'da', { ignorePunctuation: true });\n }\n return 0;\n};\n\nconst isElementInViewport = (element: HTMLElement): boolean => {\n if (element === null) {\n return false;\n }\n\n const rect = element.getBoundingClientRect();\n\n return rect.bottom > 0\n && rect.right > 0\n && rect.left < (window.innerWidth || document.documentElement.clientWidth)\n && rect.top < (window.innerHeight || document.documentElement.clientHeight);\n};\n\nconst isElementPartlyInViewport = (element: HTMLElement): boolean => {\n let top = element.offsetTop;\n let left = element.offsetLeft;\n const width = element.offsetWidth;\n const height = element.offsetHeight;\n\n let offsetElement = element;\n while (offsetElement.offsetParent) {\n offsetElement = element.offsetParent as HTMLElement;\n top += element.offsetTop;\n left += element.offsetLeft;\n }\n\n return (\n top < (window.pageYOffset + window.innerHeight)\n && left < (window.pageXOffset + window.innerWidth)\n && (top + height) > window.pageYOffset\n && (left + width) > window.pageXOffset\n );\n};\n\nconst setCookie = (\n cookieName: string,\n value: string,\n maxAge: number | null = null,\n exdays: number | null = null,\n path = ';path=/;domain=au.dk',\n): void => {\n let cookieValue = encodeURI(value);\n if (exdays != null) {\n const exdate = new Date();\n exdate.setDate(exdate.getDate() + exdays);\n cookieValue = `${cookieValue}; expires=${exdate.toUTCString()}`;\n } else if (maxAge != null) {\n cookieValue = `${cookieValue}; max-age=${maxAge}`;\n }\n\n document.cookie = `${cookieName}=${cookieValue}${path}`;\n};\n\nconst getCookie = (cookieName: string): string | null => {\n let cookieValue: string | null = document.cookie;\n let cookieStart = cookieValue.indexOf(` ${cookieName}=`);\n if (cookieStart === -1) {\n cookieStart = cookieValue.indexOf(`${cookieName}=`);\n }\n if (cookieStart === -1) {\n cookieValue = null;\n } else {\n cookieStart = cookieValue.indexOf('=', cookieStart) + 1;\n let cookieEnd = cookieValue.indexOf(';', cookieStart);\n if (cookieEnd === -1) {\n cookieEnd = cookieValue.length;\n }\n cookieValue = decodeURI(cookieValue.substring(cookieStart, cookieEnd));\n }\n return cookieValue;\n};\n\nconst addToSessionStorage = (key: string, data: unknown): unknown => {\n if (window.sessionStorage) {\n sessionStorage.setItem(key, JSON.stringify(data));\n }\n\n return data;\n};\n\nconst getFromSessionStorage = (key: string): unknown | null => {\n if (window.sessionStorage) {\n const data = sessionStorage.getItem(key);\n if (data) {\n return JSON.parse(data);\n }\n }\n\n return null;\n};\n\nconst addToLocalStorage = (key: string, data: unknown): unknown => {\n if (window.localStorage) {\n localStorage.setItem(key, JSON.stringify(data));\n }\n\n return data;\n};\n\nconst getFromLocalStorage = (key: string): unknown | null => {\n if (window.localStorage) {\n const data = localStorage.getItem(key);\n if (data) {\n return JSON.parse(data);\n }\n }\n\n return null;\n};\n\n// Credits: http://blog.vishalon.net/index.php/javascript-getting-and-setting-caret-position-in-textarea/\nconst setCaretPosition = (element: HTMLInputElement, pos: number): void => {\n // Modern browsers\n if (element && element.setSelectionRange) {\n element.focus();\n element.setSelectionRange(pos, pos);\n }\n};\n\nconst splitPhoneNumber = (countryCodes: ICountryCode[], phoneNumber: string): IPhoneNumber => {\n const countryCodeFound = (code: string) => countryCodes.filter(\n (x) => x.code === parseInt(code, 10),\n ).length > 0;\n\n const findPrefix = (): string => {\n if (countryCodes.length > 0) {\n const skip = '';\n let count = 1;\n let prefix = countryCodes.find((x) => x.important)?.code;\n while (count < phoneNumber.length) {\n const split = phoneNumber.substring(skip.length, skip.length + count);\n if (countryCodeFound(split)) {\n prefix = parseInt(split, 10);\n }\n count += 1;\n }\n return skip + prefix;\n }\n return '';\n };\n\n const prefix = findPrefix();\n return {\n prefix,\n number: phoneNumber.replace(prefix, ''),\n };\n};\n\nconst prettyPrintPhone = (countryCodes: ICountryCode[], phone: string) => {\n if (phone) {\n const { prefix, number } = splitPhoneNumber(countryCodes, phone);\n if (prefix) {\n return `${prefix} ${number?.match(/\\d{1,2}/g)?.join(' ')}`;\n }\n return number?.match(/\\d{1,2}/g)?.join(' ');\n }\n return '';\n};\n\nconst scrollTo = (x = 0, y = 0) => window.scrollTo(x, y);\n\nexport {\n sortAlphaObj,\n isElementInViewport,\n isElementPartlyInViewport,\n setCookie,\n getCookie,\n addToLocalStorage,\n getFromLocalStorage,\n addToSessionStorage,\n getFromSessionStorage,\n setCaretPosition,\n splitPhoneNumber,\n prettyPrintPhone,\n scrollTo,\n};\n","/* eslint-env browser */\nimport React from 'react';\nimport PropTypes from 'prop-types';\n\nconst parseBurgerLinks = (elements) => {\n const links = [];\n elements.forEach((e) => {\n const link = e.querySelector('a');\n links.push({\n url: link.getAttribute('href'),\n title: link.innerText,\n className: e.getAttribute('class'),\n });\n });\n return links;\n};\n\nclass StudentTopComponent extends React.Component {\n constructor(props) {\n super(props);\n\n this.state = {\n active: 0,\n burgerLinks: [],\n };\n }\n\n componentDidMount() {\n const { promiseHandler } = this.props;\n document.getElementById('fade').addEventListener('click', () => {\n this.setState({\n active: 0,\n });\n });\n\n promiseHandler((data) => {\n const container = document.createElement('div');\n container.innerHTML = data;\n const burgerLinks = container.querySelectorAll('ul.burger-links > li');\n this.setState({\n burgerLinks: parseBurgerLinks(burgerLinks),\n });\n });\n }\n\n componentDidUpdate() {\n const { active } = this.state;\n const fade = document.getElementById('fade');\n if (active > 0) {\n fade.style.display = 'block';\n } else {\n fade.style.display = 'none';\n }\n fade.style.opacity = 0;\n if (active === 1 && typeof window.findWidgetInit !== 'undefined') {\n window.findWidgetInit('.universe-utility .find-container');\n }\n if (active === 2) {\n AU.alphabox.init();\n }\n }\n\n render() {\n const { lang, universeLabels } = this.props;\n const { active, burgerLinks } = this.state;\n\n const renderBurgerLinks = burgerLinks.map(\n (u) => (\n <li key={u.title} className={u.className}>\n <a href={u.url}>\n {u.title}\n </a>\n </li>\n ),\n );\n\n return [\n <div key=\"header\" className=\"large-12 medium-12 small-12 columns\">\n <div>\n <h2 className=\"universe-home\" dangerouslySetInnerHTML={{ __html: universeLabels[lang].studentTitleLink }} />\n <ul className=\"resetlist universe-icons\">\n <li className=\"mitstudie\">\n <a href={universeLabels[lang].mitstudieUrl}>{universeLabels[lang].mitstudieText}</a>\n </li>\n <li className=\"au\" dangerouslySetInnerHTML={{ __html: universeLabels[lang].mainPageLink }} />\n <li className={active === 1 ? 'active' : null}>\n <button\n type=\"button\"\n className=\"btn-find\"\n onClick={() => {\n this.setState((prevState) => ({\n active: prevState.active === 1 ? 0 : 1,\n }));\n }}\n >\n Find\n </button>\n </li>\n <li className={active === 2 ? 'active' : null}>\n <button\n type=\"button\"\n className=\"btn-menu\"\n onClick={() => {\n this.setState((prevState) => ({\n active: prevState.active === 2 ? 0 : 2,\n }));\n }}\n >\n Menu\n </button>\n </li>\n </ul>\n </div>\n </div>,\n <div key={1} className={`universe-utility${active === 1 ? ' active' : ''}`}>\n <div className=\"find-container au-map\" />\n </div>,\n <div key={2} className={`universe-utility${active === 2 ? ' active' : ''}`}>\n <div className=\"au_alphabox\" id=\"au_alphabox_student_utility\" />\n <div className=\"universe-utility-links\">\n <ul className=\"resetlist\">\n {renderBurgerLinks}\n </ul>\n </div>\n </div>,\n ];\n }\n}\n\nStudentTopComponent.propTypes = {\n lang: PropTypes.string.isRequired,\n promiseHandler: PropTypes.func.isRequired,\n universeLabels: PropTypes.shape({}).isRequired,\n};\n\nStudentTopComponent.displayName = 'StudentTopComponent';\nexport default StudentTopComponent;\n","/* eslint-env browser */\nimport React, { useState } from 'react';\nimport { universeLabels, profileLabels } from '../../../lib/i18n';\nimport StaffTopComponent from './StaffTopComponent';\nimport StudentTopComponent from './StudentTopComponent';\n\nconst UniverseContainerComponent = () => {\n const [user, setUser] = useState({\n chosenFirstNames: '',\n chosenLastName: '',\n preferredLanguage: '',\n auId: 0,\n });\n\n const { auAuth } = window;\n const lang = document.querySelector('html').getAttribute('lang');\n const body = document.querySelector('body');\n const staffClass = 'staff';\n const studentClass = 'student';\n const { universeGlobalContentPath } = window;\n let universe = <div />;\n if (body.classList.contains(staffClass)) {\n universe = (\n <StaffTopComponent\n lang={lang}\n user={user}\n promiseHandler={(callback) => {\n fetch(universeGlobalContentPath).then(\n (promise) => promise.json(),\n ).then(\n (data) => callback(data),\n );\n }}\n onLoad={(context) => {\n setUser(context);\n }}\n auAuth={auAuth}\n universeLabels={universeLabels}\n profileLabels={profileLabels}\n />\n );\n }\n if (body.classList.contains(studentClass)) {\n universe = (\n <StudentTopComponent\n lang={lang}\n user={user}\n promiseHandler={(callback) => {\n fetch(universeGlobalContentPath).then(\n (promise) => promise.json(),\n ).then(\n (data) => callback(data),\n );\n }}\n universeLabels={universeLabels}\n profileLabels={profileLabels}\n />\n );\n }\n\n return universe;\n};\n\nUniverseContainerComponent.displayName = 'UniverseContainerComponent';\nexport default UniverseContainerComponent;\n","/* eslint-env browser */\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport UniverseContainerComponent from '../components/universe/UniverseContainerComponent';\n\nReactDOM.render(\n <UniverseContainerComponent />,\n document.querySelector('.universeheader'),\n);\n"],"names":["root","factory","exports","module","require","define","amd","a","i","self","__WEBPACK_EXTERNAL_MODULE__244__","__WEBPACK_EXTERNAL_MODULE__741__","ReactPropTypesSecret","emptyFunction","emptyFunctionWithReset","resetWarningCache","shim","props","propName","componentName","location","propFullName","secret","err","Error","name","getShim","isRequired","ReactPropTypes","array","bigint","bool","func","number","object","string","symbol","any","arrayOf","element","elementType","instanceOf","node","objectOf","oneOf","oneOfType","shape","exact","checkPropTypes","PropTypes","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","universeLabels","da","staffTitleLink","studentTitleLink","mainPageLink","iconSystems","iconPin","iconBurger","mitstudieText","mitstudieUrl","en","profileLabels","login","logout","edit","auId","studentNumber","changeLanguage","headerContainer","headerName","headerMail","headerMobile","headerLanguage","headerNextOfKin","otherMail","languageIn","legendName","legendNameHint","formNameHint","formNameDisplayName","firstName","firstNameHint","lastName","workMail","workMailHint","workMailScreenreader","studentMail","studentMailScreenreader","privateMail","privateMailHint","countryCode","languageLegend","danish","english","nextOfKinParagraph","nextOfKinName","nextOfKinTelephone","headerPassword","save","saved","mailNotice","cancel","validMail","validMailPrivate","validMobile","validName","validFirstName","validLastName","emptyMail","emptyMobile","emptyNok","copyAuid","copyStudentNumber","headerVacationAbsence","myProfile","helpModalHeader","helpModalText","helpModalBtn","profileFor","changeLanguageButton","AUCollapsibleComponent","React","constructor","super","this","state","collapsed","componentDidMount","attributes","forEach","selector","el","querySelector","setAttribute","attr","render","header","level","content","classNames","onClick","children","dataID","headerElement","className","ref","setState","prevState","newCollapsed","onKeyUp","role","tabIndex","defaultProps","propTypes","displayName","AUProfileLoginComponent","loggedIn","loginUri","text","href","e","w","Event","document","window","composedPath","path","target","parentNode","push","AUProfileWidgetComponent","lang","auid","settings","changeLanguageUrl","logoutUri","ctcSet","setCtcSet","useState","renderSettings","map","s","url","useEffect","querySelectorAll","span","parentBtn","listener","toCopy","innerText","str","createElement","body","appendChild","select","execCommand","removeChild","copyToClipboard","removeEventListener","setTimeout","addEventListener","classList","contains","setCopyToClipboard","type","title","AUProfileAvatar2016Component","user","toggled","onToggle","onLoad","chosenFirstNames","chosenLastName","id","contextKey","handleContext","userContext","handleError","status","json","console","log","spinner","emptyComponent","clearCache","preferredLanguage","auAuth","parseBurgerLinks","elements","links","link","getAttribute","parseSystemLinks","systems","div","actions","system","StaffTopComponent","active","burgerLinks","systemLinks","showHelp","promiseHandler","getElementById","data","container","innerHTML","fetch","profileApiUri","method","credentials","then","response","isAuthenticated","catch","componentDidUpdate","fade","style","display","opacity","findWidgetInit","AU","alphabox","init","helpCookie","cookieName","cookieValue","cookie","cookieStart","indexOf","cookieEnd","length","decodeURI","substring","getCookie","visible","help","renderBurgerLinks","u","renderSystemLinks","dangerouslySetInnerHTML","__html","ReactDOM","maxAge","exdays","encodeURI","exdate","Date","setDate","getDate","toUTCString","setCookie","StudentTopComponent","UniverseContainerComponent","setUser","universeGlobalContentPath","universe","callback","promise","context"],"sourceRoot":""}
|