@aarhus-university/au-lib-react-components 9.11.7 → 9.11.11
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 +18 -18
- package/README.md +20 -20
- package/babel.config.js +6 -6
- package/build/dev.html +328 -328
- package/build/umd/all.css +2 -2
- package/build/umd/all.js +1 -1
- package/build/umd/alphabox.js +1 -1
- package/build/umd/auAuth.js +1 -1
- package/build/umd/databox.js +2 -2
- package/build/umd/databox.js.LICENSE.txt +5 -5
- package/build/umd/diagramme.js +1 -1
- package/build/umd/flowbox.js +1 -1
- package/build/umd/news.js +1 -1
- package/build/umd/universe.js +1 -1
- package/package.json +60 -60
- package/src/all.js +3 -3
- package/src/app.js +263 -263
- package/src/components/AUAlertComponent.js +158 -158
- package/src/components/AUAmountComponent.js +84 -84
- package/src/components/AUBannerComponent.js +99 -99
- package/src/components/AUCalendarComponent.js +393 -393
- package/src/components/AUCollapsibleComponent.js +173 -173
- package/src/components/AUDatepickerComponent.js +105 -105
- package/src/components/AUDiagrammeComponent.js +310 -310
- package/src/components/AUFilterCheckboxComponent.js +122 -122
- package/src/components/AUFocusComponent.js +55 -55
- package/src/components/AUModalComponent.js +94 -94
- package/src/components/AUPaginationComponent.js +103 -103
- package/src/components/AUSpinnerComponent.js +125 -125
- package/src/components/AutoSuggestComponent.js +132 -132
- package/src/components/alphabox/AlphaBoxComponent.js +140 -140
- package/src/components/alphabox/AlphaBoxContentComponent.js +125 -125
- package/src/components/context/AUUserContextComponent.js +91 -91
- package/src/components/context/ImpersonateComponent.js +54 -54
- package/src/components/databox/DataBoxAlphabetComponent.js +144 -144
- package/src/components/databox/DataBoxAssociationComponent.js +122 -122
- package/src/components/databox/DataBoxButtonComponent.js +153 -153
- package/src/components/databox/DataBoxComponent.js +297 -297
- package/src/components/databox/DataBoxGroupingComponent.js +62 -62
- package/src/components/databox/DataBoxSearchResultComponent.js +40 -40
- package/src/components/databox/DataBoxStackedAssociationComponent.js +58 -58
- package/src/components/databox/DataBoxSuggestionComponent.js +39 -39
- package/src/components/delphinus/AUAlertComponent.js +85 -85
- package/src/components/delphinus/AUCalendarComponent.js +487 -487
- package/src/components/delphinus/AUContentToggleComponent.js +32 -32
- package/src/components/delphinus/AUDatepickerComponent.js +164 -164
- package/src/components/delphinus/AULoginComponent.js +65 -65
- package/src/components/delphinus/AUModalComponent.js +89 -88
- package/src/components/delphinus/AUSpinnerComponent.js +75 -114
- package/src/components/delphinus/AUSubNavComponent.js +53 -53
- package/src/components/delphinus/AUTabbedContentComponent.js +150 -150
- package/src/components/delphinus/AUTableComponent.js +28 -28
- package/src/components/delphinus/AUToastComponent.js +91 -91
- package/src/components/delphinus/AUToolbarComponent.js +48 -48
- package/src/components/delphinus/hooks.js +28 -26
- package/src/components/flowbox/FlowBoxComponent.js +126 -126
- package/src/components/flowbox/FlowBoxPhoneComponent.js +106 -106
- package/src/components/form/AUMobilePrefixComponent.js +18 -18
- package/src/components/form/AUReceiptComponent.js +40 -40
- package/src/components/form/AUSubmitButtonContainerComponent.js +39 -39
- package/src/components/news/EventLayout1Component.js +94 -94
- package/src/components/news/EventLayout2Component.js +90 -90
- package/src/components/news/EventLayout3Component.js +68 -68
- package/src/components/news/NewsCategoriesComponent.js +21 -21
- package/src/components/news/NewsCollageBannerComponent.js +71 -71
- package/src/components/news/NewsCollageBannerRSSComponent.js +79 -79
- package/src/components/news/NewsColumnsComponent.js +125 -125
- package/src/components/news/NewsLanguageChangeComponent.js +74 -74
- package/src/components/news/NewsLayout1Component.js +80 -80
- package/src/components/news/NewsLayout2Component.js +80 -80
- package/src/components/news/NewsLayout3Component.js +81 -81
- package/src/components/news/NewsLayout4Component.js +80 -80
- package/src/components/news/NewsLayout5Component.js +61 -61
- package/src/components/news/NewsLayout6Component.js +55 -55
- package/src/components/news/NewsLayout7Component.js +58 -58
- package/src/components/news/NewsLayout8Component.js +57 -57
- package/src/components/news/NewsListComponent.js +291 -291
- package/src/components/news/NewsPopUpComponent.js +591 -591
- package/src/components/news/NewsRSSComponent.js +74 -74
- package/src/components/news/NewsSocialComponent.js +104 -104
- package/src/components/news/NewsSubHeaderComponent.js +19 -19
- package/src/components/password/AUChangePasswordComponent.js +177 -177
- package/src/components/password/AUCurrentPasswordComponent.js +72 -72
- package/src/components/password/AUNewPasswordComponent.js +143 -143
- package/src/components/password/AUPasswordActions.js +101 -101
- package/src/components/password/AUPasswordHooks.js +47 -47
- package/src/components/password/AUPasswordReducer.js +78 -78
- package/src/components/password/AUPasswordRequirementsComponent.js +29 -29
- package/src/components/profile/AUProfileActions.js +128 -128
- package/src/components/profile/AUProfileAvatar2016Component.js +99 -99
- package/src/components/profile/AUProfileAvatarComponent.js +83 -83
- package/src/components/profile/AUProfileAvatarV2Component.js +91 -91
- package/src/components/profile/AUProfileAvatarV3Component.js +79 -79
- package/src/components/profile/AUProfileContainerComponent.js +283 -283
- 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 +41 -41
- package/src/components/profile/AUProfileMailComponent.js +307 -307
- 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 -230
- package/src/components/profile/AUProfileWidgetComponent.js +95 -95
- package/src/components/profile/AUProfileWidgetV2Component.js +116 -116
- package/src/components/profile/AUProfileWidgetV3Component.js +129 -120
- package/src/components/universe/StaffTopComponent.js +362 -362
- package/src/components/universe/StudentTopComponent.js +137 -137
- package/src/components/universe/UniverseContainerComponent.js +62 -62
- package/src/components/wrapping/AUEmbedComponent.js +47 -47
- package/src/config/webpack.dev.config.js +47 -47
- package/src/config/webpack.umd.config.js +85 -85
- package/src/index.js +6 -6
- package/src/lib/au-alphabox.js +102 -102
- package/src/lib/au-auth.js +227 -227
- package/src/lib/au-databox.js +403 -403
- package/src/lib/au-diagramme.js +87 -87
- package/src/lib/au-flowbox.js +95 -95
- package/src/lib/au-news.js +371 -371
- package/src/lib/helpers.js +216 -216
- package/src/lib/i18n.js +601 -601
- package/src/lib/menu.js +10 -10
- package/src/lib/tracking.js +65 -65
- package/src/lib/universe.js +9 -9
- package/src/lib/urlHandler.js +63 -63
- package/src/lib/validation.js +181 -181
- package/src/lib/wrapping.js +16 -16
- package/src/styles/_settings.scss +10 -10
- package/src/styles/alert.scss +39 -39
- package/src/styles/alphabox.scss +208 -208
- package/src/styles/app.scss +13 -13
- package/src/styles/autosuggest.scss +57 -57
- package/src/styles/calendar.scss +111 -111
- package/src/styles/databox.scss +563 -563
- package/src/styles/diagramme.scss +119 -119
- package/src/styles/filtercheckbox.scss +4 -4
- package/src/styles/flowbox.scss +72 -72
- package/src/styles/maps.scss +395 -395
- package/src/styles/modal.scss +34 -34
- package/src/styles/pagination.scss +10 -10
- package/src/styles/spinner.scss +30 -30
package/build/umd/all.css
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
.au-alert{position:fixed;z-index:100;left:50%;top:50%;transform:translate(-50%, -50%);width:300px;background-color:#fff;padding:1.3636364rem}.au-alert button{margin-top:1rem;margin-bottom:0;padding:.65rem 2rem}.au-alert button.confirm{background-color:#8bad3f}.au-alert button.cancel{background-color:#687989}.au-alert button:first-of-type{margin-right:1rem}.au-alert-overlay,.au-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0,0,0,.6);z-index:99}.au_alphabox{overflow:visible;margin-bottom:1rem;position:relative}.au_alphabox>.au_alphabox{margin-bottom:0}.dropdown-pane .au_alphabox{margin-bottom:0}.au_alphabox>div:not(.au_alphabox_content):not(.au_alphabox){padding:1rem 1rem 0 1rem;overflow:auto}.au_alphabox ul.letters{display:flex;justify-content:flex-start;flex-flow:row wrap;font-size:1.1rem;margin-top:.15rem;margin-bottom:.75rem;margin-left:0;padding-bottom:.75rem;border-bottom:1px solid #ccc}.au_alphabox ul.letters li{padding:0;margin:2px 2px;background-color:#aaa;text-align:center;font-size:1.2rem}.au_alphabox ul.letters li.available button{cursor:pointer;color:#fff}.au_alphabox ul.letters li.active{font-weight:bold}.au_alphabox ul.letters li:before{content:""}.au_alphabox ul.letters li button{font-family:"AUPassataRegular";color:#ccc;text-transform:uppercase;width:20px;line-height:inherit}.au_alphabox ul.items{padding:1rem;margin:0;position:relative}.student .au_alphabox{background:#2a4a0f}.student .au_alphabox .listNav .ln-letters a{background-color:#8bad3f}.student .au_alphabox .listNav .ln-letters a.ln-selected{color:#2a4a0f !important}.student .au_alphabox .listNav .ln-letters a.ln-disabled{background-color:#8bad3f}.student .au_alphabox .alphabox_list_container{border:2px solid #2a4a0f}.student .au_alphabox .alphabox_list_container h3{color:#8bad3f;border-bottom:2px solid #8bad3f}.student .au_alphabox .alphabox_list_container ul li:before{color:#8bad3f}.student .au_alphabox ul.quicklinks a{background:#447400}.au_alphabox h2{color:#fff;margin:0;border:0}.au_alphabox h2 a{color:#fff !important;border:none !important}.au_alphabox h2 a:hover{text-decoration:underline !important}.au_alphabox p{color:#fff;margin:1rem 0 1rem 0 !important;font-size:1.25rem}.au_alphabox input[type=text]{background:#afc3ce url("https://cdn.au.dk/2016/assets/img/databox/find.png") no-repeat right center;border:0;float:none;width:100%;margin-bottom:1.45455rem !important}.au_alphabox input[type=text].active{background-color:#afc3ce}.au_alphabox ::-webkit-input-placeholder{color:#333}.au_alphabox ::-moz-placeholder{color:#333;opacity:1}.au_alphabox :-ms-input-placeholder{color:#333}.au_alphabox .listNav{margin:0 0 calc(.5rem - 2px) 0;font-family:"AUPassataBold"}.au_alphabox .listNav .ln-letters{margin:1rem 0}.au_alphabox .listNav .ln-letters a{background-color:#006ca4;border:none !important;margin:0 2px 2px 0;color:#fff;padding:2px;font-size:1.25rem}.au_alphabox .listNav .ln-letters a.ln-selected{background-color:#fff;color:#006ca4 !important}.au_alphabox .listNav .ln-letters a.ln-disabled{background-color:#006ca4;color:#7c98a8 !important}.au_alphabox .listNav .ln-letters .all{display:none}.au_alphabox .alphabox_list_container{background:#fff;border:2px solid #006ca4;padding:0 1rem 0 1rem;display:none;overflow-y:scroll;-webkit-overflow-scrolling:touch}.au_alphabox .alphabox_list_container h3{color:#009ee0;border-bottom:2px solid #379fcb}.au_alphabox .alphabox_list_container>ul{max-height:200px;overflow:initial !important;margin-bottom:2em;position:relative}.au_alphabox .alphabox_list_container>ul li a{color:#003e5c;border-bottom:1px dotted}.au_alphabox ul.quicklinks{display:flex;flex-wrap:wrap;justify-content:space-between;margin-left:0}.au_alphabox ul.quicklinks li{font:1.25rem "AUPassataRegular";text-transform:uppercase;width:48.9%;padding:0;line-height:1;margin-bottom:6px}.au_alphabox ul.quicklinks li:nth-child(odd){margin-right:.5em}.au_alphabox ul.quicklinks li a{display:block;background:#006ca4;color:#fff;border:none !important;padding:.5em}.au_alphabox .au_alphabox_content{margin-top:1rem;margin-bottom:1rem;clear:both}.au_alphabox .au_alphabox_content>div{background:#fff;max-height:300px;overflow-y:scroll}.react-autosuggest__container{cursor:pointer}.react-autosuggest__container input[type=text]{margin-bottom:0}.page__content__block .react-autosuggest__container{position:relative;width:100%}.page__content__block .react-autosuggest__suggestions-list{margin-top:0}.react-autosuggest__suggestions-container{border-left:1px solid #ccc;border-right:1px solid #ccc;position:absolute;left:0;right:0;background-color:#fff;margin:0;z-index:1;color:#333 !important;font-size:1.2727272727rem;line-height:1;max-height:430px;overflow:auto}.react-autosuggest__suggestions-container li,.react-autosuggest__suggestions-container li:before{list-style-type:none !important;background-image:none !important;margin:0;padding:0;content:"" !important;line-height:1 !important;background:none}li.react-autosuggest__suggestion{border-bottom:1px solid #ccc;padding:1.2727272727rem 1rem}.react-autosuggest__suggestion--highlighted{background-color:#f0f0f0 !important}.react-autosuggest__suggestions-list{margin-bottom:0;margin-left:0}.au-calendar{background-color:#fff;font-family:"AUPassataRegular";width:224px}.au-calendar .au-calendar-days{display:flex;flex-wrap:wrap;margin-bottom:1rem}.au-calendar .au-calendar-days>span,.au-calendar .au-calendar-days>button{width:32px;height:32px;text-align:center;text-transform:uppercase;line-height:1;font-size:1rem}.au-calendar .au-calendar-days>span{padding-top:8px}.au-calendar .au-calendar-days>button{font-family:"AUPassataRegular";cursor:pointer}.au-calendar .au-calendar-days>button.empty{background-color:#f5f5f5}.au-calendar .au-calendar-days>button.weekend:not(.empty){background-color:#ddd}.au-calendar .au-calendar-days>button.selected{border:2px solid #8bad3f}.au-calendar .au-calendar-year-month,.au-calendar .au-calendar-time{display:flex;justify-content:space-between}.au-calendar .au-calendar-year-month>select,.au-calendar .au-calendar-time>select{width:108px;font-size:1.090909rem;margin-bottom:0}.au-calendar>button{font-family:"AUPassataRegular";text-align:center;background-color:#8bad3f;width:100%;padding:1rem;margin-top:1rem;color:#fff;cursor:pointer}.au-datepicker{position:relative}.au-datepicker input[type=text][readonly]{background-color:#fff;cursor:auto}.au-datepicker input[type=text][readonly]~div{position:absolute;right:0;z-index:1000;width:230px;border-right:1px solid #ccc;border-left:1px solid #ccc}.au-datepicker .au-calendar{border-bottom:1px solid #ccc;padding:2px;top:5.54545rem}.au-datepicker .au-calendar-close{top:3.54545rem;height:2rem;background-color:#fff}.au-datepicker .au-calendar-close button{position:absolute;top:3px;right:3px;font-family:"au_icons";font-size:1.5rem;margin:0;padding:0;background:transparent !important;color:#000;cursor:pointer}.au_databox{margin-bottom:2em;position:relative}.au_databox .button-wrapper{position:relative}.au_databox .button-wrapper>div{width:100%;position:absolute;bottom:0}@media(max-width: 640px){.au_databox .button-wrapper{background-image:none !important;height:auto !important;position:static;overflow:auto}.au_databox .button-wrapper>div{position:static}.au_databox .button-wrapper .db-button{float:none;width:100% !important}.au_databox .button-wrapper .db-button>span{border-left:0 !important;height:51px}.au_databox .button-wrapper .db-button>input[type=text]{left:70px;top:11px}.au_databox .button-wrapper .buttons-5.first-line-full .button-wrapper{height:auto}.au_databox .button-wrapper .buttons-6 .button-wrapper{height:auto}}.au_databox .button-wrapper .au_focus{margin-bottom:0;padding-left:1rem}.au_databox .content{width:100%;background:#f0f0f0;padding:1rem 0;overflow:auto}.au_databox .content>div{padding:0 1rem;position:relative}.au_databox .content>div .expandall{position:absolute;right:10px;top:0;text-decoration:underline;cursor:pointer}.au_databox .content ul{margin-top:0;margin-left:0}.au_databox .content ul ul{margin-top:.65rem}.au_databox .content ul li a{text-decoration:none}.au_databox .content ul li a:hover{text-decoration:underline}.au_databox .content ul.letters{display:flex;justify-content:flex-start;flex-flow:row wrap;font-size:1.1rem;margin-top:.15rem;margin-bottom:.75rem;margin-left:0;padding-bottom:.75rem;border-bottom:1px solid #ccc}.au_databox .content ul.letters li{padding:0;margin:2px 2px;background-color:#aaa;text-align:center;font-size:1.2rem}.au_databox .content ul.letters li.available button{cursor:pointer;color:#fff}.au_databox .content ul.letters li.active{font-weight:bold}.au_databox .content ul.letters li:before{content:""}.au_databox .content ul.letters li button{font-family:"AUPassataRegular";color:#ccc;text-transform:uppercase;width:20px;line-height:inherit}.au_databox .content .au_collapsible{margin-bottom:0;padding:.6rem 0}.au_databox .content .au_collapsible>.csc-header{margin-bottom:1rem}.au_databox .content .au_collapsible>.csc-header:after{font-size:24px}.au_databox .content .au_collapsible>.csc-header h3{margin:0}.au_databox .content .au_collapsible.au_collapsed>.csc-header{margin-bottom:0}.au_databox .au_focus{margin-left:24px;position:absolute;margin-bottom:0}.au_databox .au_focus.before{position:static;padding:1.5em 0 1.5em 14px;margin-left:0}.au_databox .clear{clear:both}.au_databox.width-full{width:100%}.au_databox .db-button{float:left;text-indent:1rem;color:#fff;position:relative;text-align:left;padding:0;margin:0;border:0;font:1.7272727273rem "AUPassataRegular"}.au_databox .db-button:not(.db-search),.au_databox .db-button.search-filter{cursor:pointer}.au_databox .db-button>span{display:block;border-top:1px solid #fff;padding:16px 0px;line-height:1}.au_databox .db-button>span a{color:#fff;text-decoration:none}.au_databox .db-button>span a:hover{text-decoration:underline}.au_databox .db-button input[type=text]{font-size:1.25rem;position:absolute;top:11px;left:65px;background:#fff url("https://cdn.au.dk/2016/assets/img/databox/find.png") no-repeat right center;background:rgba(255,255,255,.75) url("https://cdn.au.dk/2016/assets/img/databox/find.png") no-repeat right center;border:0;width:calc(100% - 65px - 1rem);padding:0;margin:0;height:32px;text-indent:10px}.au_databox .db-button input[type=text].active{background:#fff;background:rgba(255,255,255,.75)}.au_databox .db-button.overlay{background:#ccc;background:rgba(204,204,204,.25)}.au_databox .db-button.active{background:#f0f0f0;color:#000}.au_databox .db-button.active a{color:#000}.au_databox.collapse .db-button:after{color:#fff;opacity:.8;font-family:"au_icons";content:"+";float:right;font-size:32px;position:absolute;top:10px;right:0;margin-right:.3em}.au_databox.collapse .db-button.active:after{color:#000;opacity:1;content:"-"}.au_databox.collapse .db-button.db-search:after{content:""}.au_databox.stacked .button-wrapper{background-image:none !important;height:auto !important;position:static}.au_databox.stacked .button-wrapper>div{position:static}.au_databox.stacked .button-wrapper .db-button{float:none;width:100% !important}.au_databox.stacked .button-wrapper .db-button>span{border-left:0 !important;height:51px}.au_databox.stacked .button-wrapper .db-button>input[type=text]{left:70px;top:11px}.au_databox.stacked .button-wrapper .buttons-5.first-line-full .button-wrapper{height:auto}.au_databox.stacked .button-wrapper .buttons-6 .button-wrapper{height:auto}.au_databox.stacked .content{padding-top:0}.au_databox.buttons-1 .au_focus{bottom:75px}.au_databox.buttons-1 .button-wrapper{height:51px}.au_databox.buttons-1 .db-button{width:100%}.au_databox.buttons-1 .db-button>span{text-indent:-9999px}.au_databox.buttons-1 .db-button>input[type=text]{left:14px}.au_databox.buttons-2 .button-wrapper{height:51px}.au_databox.buttons-2 .au_focus{bottom:75px}.au_databox.buttons-2 .db-button{width:50%}.au_databox.buttons-2 .db-button:nth-child(2) span{border-left:1px solid #fff}.au_databox.buttons-3 .button-wrapper{height:51px}.au_databox.buttons-3 .au_focus{bottom:75px}.au_databox.buttons-3.first-line-full .button-wrapper{height:102px}.au_databox.buttons-3.first-line-full .au_focus{bottom:126px}.au_databox.buttons-3.first-line-full .button-1{width:100%}.au_databox.buttons-3.first-line-full .button-2,.au_databox.buttons-3.first-line-full .button-3{width:50%}.au_databox.buttons-3.first-line-full .button-2 span{border-left:0}.au_databox.buttons-3.first-line-full .button-3 span{border-left:1px solid #fff}.au_databox.buttons-3 .button-1,.au_databox.buttons-3 .button-3{width:33%}.au_databox.buttons-3 .button-2{width:34%}.au_databox.buttons-3 .button-2 span,.au_databox.buttons-3 .button-3 span{border-left:1px solid #fff}.au_databox.buttons-4 .button-wrapper{height:102px}.au_databox.buttons-4 .au_focus{bottom:126px}.au_databox.buttons-4.first-line-full .button-1{width:100%}.au_databox.buttons-4.first-line-full .button-2 span{border-left:0}.au_databox.buttons-4.first-line-full .button-2,.au_databox.buttons-4.first-line-full .button-4{width:33%}.au_databox.buttons-4.first-line-full .button-3{width:34%}.au_databox.buttons-4.first-line-full .button-3 span,.au_databox.buttons-4.first-line-full .button-4 span{border-left:1px solid #fff}.au_databox.buttons-4 .db-button{width:50%}.au_databox.buttons-4 .button-2 span,.au_databox.buttons-4 .button-4 span{border-left:1px solid #fff}.au_databox.buttons-5 .button-wrapper{height:153px}.au_databox.buttons-5 .au_focus{bottom:177px}.au_databox.buttons-5.first-line-full .button-wrapper{height:102px}.au_databox.buttons-5.first-line-full .au_focus{bottom:126px}.au_databox.buttons-5.first-line-full .button-1{width:100%}.au_databox.buttons-5.first-line-full .button-2,.au_databox.buttons-5.first-line-full .button-3,.au_databox.buttons-5.first-line-full .button-4,.au_databox.buttons-5.first-line-full .button-5{width:25%}.au_databox.buttons-5.first-line-full .button-3 span,.au_databox.buttons-5.first-line-full .button-4 span,.au_databox.buttons-5.first-line-full .button-5 span{border-left:1px solid #fff}.au_databox.buttons-5 .button-1{width:100%}.au_databox.buttons-5 .button-2,.au_databox.buttons-5 .button-3,.au_databox.buttons-5 .button-4,.au_databox.buttons-5 .button-5{width:50%}.au_databox.buttons-5 .button-3 span,.au_databox.buttons-5 .button-5 span{border-left:1px solid #fff}.au_databox.buttons-6.first-line-full .button-wrapper{height:102px}.au_databox.buttons-6.first-line-full .au_focus{bottom:126px}.au_databox.buttons-6.first-line-full .button-1{width:100%}.au_databox.buttons-6.first-line-full .db-button.button-2 span{border-left:none}.au_databox.buttons-6.first-line-full .button-2,.au_databox.buttons-6.first-line-full .button-3,.au_databox.buttons-6.first-line-full .button-4,.au_databox.buttons-6.first-line-full .button-5,.au_databox.buttons-6.first-line-full .button-6{width:20%}.au_databox.buttons-6.first-line-full .button-3 span,.au_databox.buttons-6.first-line-full .button-4 span,.au_databox.buttons-6.first-line-full .button-5 span,.au_databox.buttons-6.first-line-full .button-6 span{border-left:1px solid #fff}.au_databox.buttons-6 .button-wrapper{height:153px}.au_databox.buttons-6 .au_focus{bottom:177px}.au_databox.buttons-6 .db-button{width:50%}.au_databox.buttons-6 .db-button:nth-child(even) span{border-left:1px solid #fff}.au_databox.buttons-7 .button-wrapper{height:153px}.au_databox.buttons-7 .au_focus{bottom:177px}.au_databox.buttons-7.first-line-full .button-wrapper{height:102px}.au_databox.buttons-7.first-line-full .au_focus{bottom:126px}.au_databox.buttons-7.first-line-full .button-1{width:100%}.au_databox.buttons-7.first-line-full .button-2,.au_databox.buttons-7.first-line-full .button-3,.au_databox.buttons-7.first-line-full .button-4,.au_databox.buttons-7.first-line-full .button-5,.au_databox.buttons-7.first-line-full .button-6,.au_databox.buttons-7.first-line-full .button-7{width:16.66667%}.au_databox.buttons-7.first-line-full .button-3 span,.au_databox.buttons-7.first-line-full .button-4 span,.au_databox.buttons-7.first-line-full .button-5 span,.au_databox.buttons-7.first-line-full .button-6 span,.au_databox.buttons-7.first-line-full .button-7 span{border-left:1px solid #fff}.au_databox.buttons-7 .button-1{width:100%}.au_databox.buttons-7 .button-2,.au_databox.buttons-7 .button-4,.au_databox.buttons-7 .button-5,.au_databox.buttons-7 .button-7{width:33%}.au_databox.buttons-7 .button-3,.au_databox.buttons-7 .button-6{width:34%}.au_databox.buttons-7 .button-3 span,.au_databox.buttons-7 .button-4 span,.au_databox.buttons-7 .button-6 span,.au_databox.buttons-7 .button-7 span{border-left:1px solid #fff}.utility-links .au_databox.stacked{margin-bottom:0}.utility-links .au_databox.stacked .content{max-height:200px;overflow:auto}.au_edutable_eddi_container .print{display:inline-block;margin-bottom:1rem}.study-diagramme{padding:1rem;margin-bottom:2rem;font-family:"AUPassataRegular";background-color:#e4e4e4}.study-diagramme.list p{padding:.6rem 1rem;contain:content}.study-diagramme.list p a{text-decoration:none}.study-diagramme.list p span:last-child{float:right}.study-diagramme table{table-layout:fixed;width:100%;border-collapse:collapse}.study-diagramme table,.study-diagramme thead,.study-diagramme tbody{background-color:transparent !important}.study-diagramme tr{background-color:transparent !important}.study-diagramme th{font-family:"AUPassataBold";font-weight:normal}.study-diagramme th,.study-diagramme td{border:4px solid #fefefe}.study-diagramme td{padding:0}.study-diagramme td:hover{background-color:#656565}.study-diagramme td:hover.sf a{color:#cfe1e7}.study-diagramme td:hover.obl a{color:#f2e4d4}.study-diagramme td:hover.val a{color:#d1e1d6}.study-diagramme td:hover.tlv a{color:#e9ccda}.study-diagramme td:hover.ogr a{color:#f2e4d4}.study-diagramme td a{padding:2rem 1rem;display:block;text-decoration:none;border-bottom:none !important;font-size:12px;word-break:break-word;hyphens:auto}.study-diagramme td[rowspan="1"] a{min-height:130px}.study-diagramme td[rowspan="2"] a{min-height:260px}.study-diagramme td[rowspan="3"] a{min-height:390px}.study-diagramme td[rowspan="4"] a{min-height:520px}.study-diagramme td[rowspan="5"] a{min-height:650px}.study-diagramme td[rowspan="6"] a{min-height:780px}.study-diagramme .sf{background-color:#cfe1e7}.study-diagramme .obl{background-color:#f2e4d4}.study-diagramme .val{background-color:#d1e1d6}.study-diagramme .tlv{background-color:#e9ccda}.study-diagramme .ogr{background-color:#f2e4d4}@media print{.study-diagramme.show-for-small-only{display:none}}.au_flowbox{background:#f0efef;padding:2rem;margin-bottom:1rem}.au_flowbox button{text-align:left;font-family:"AUPassataRegular";text-decoration:underline;cursor:pointer}.au_flowbox>div>h2{margin:0 0 1rem 0 !important;text-transform:uppercase;border:none !important;padding:0 !important}.au_flowbox .vcard{padding:1rem;background-color:rgba(255,255,255,.95);border:0 none;margin:0 0 1rem 0}.au_flowbox .vcard .fn{font-weight:bold;font-size:1.3636363636rem}.au_flowbox .vcard p{font-family:inherit;font-size:1.2rem;font-weight:normal;line-height:1.6;margin-bottom:1.8181818182rem;text-rendering:optimizeLegibility}.au_flowbox.partner{background:#379fcb}.au_flowbox.partner>div>h2{color:#fff}.au_flowbox.partner>div>p{color:#fff}.au_flowbox.partner>div>p a{color:#fff !important;border-bottom:none !important;text-decoration:underline !important}.au_flowbox.partner>div>ul li{padding-left:0}.au_flowbox.partner>div>ul li::before{display:none}.au_flowbox_data{display:none}.au_staffcontactbox{color:#fff;padding:1.3636364rem;background-color:#379fcb;margin-bottom:1em}.au_staffcontactbox>h2{color:#fff;text-transform:uppercase;margin:0 0 1em 0 !important}.au-modal{position:fixed;z-index:100;left:50%;top:50%;transform:translate(-50%, -50%);width:100%;max-width:1024px;background-color:#fff;padding:1.3636364rem}.au-modal.medium{max-width:800px}.au-modal.small{max-width:400px}.au-modal>:nth-child(2){margin-top:0}.au-modal .close{position:absolute;right:1.3636364rem;font-family:"au_icons";font-size:3rem;margin:0;padding:0;background:transparent !important;color:#000}.spinner{width:4rem;height:4rem;margin:6rem auto;background-color:#656565;border-radius:100%;-webkit-animation:sk-scaleout 1s infinite ease-in-out;animation:sk-scaleout 1s infinite ease-in-out}@-webkit-keyframes sk-scaleout{0%{-webkit-transform:scale(0)}100%{-webkit-transform:scale(1);opacity:0}}@keyframes sk-scaleout{0%{-webkit-transform:scale(0);transform:scale(0)}100%{-webkit-transform:scale(1);transform:scale(1);opacity:0}}.au-filter-checkbox li:not(.visible){display:none}.au-pagination{display:flex;justify-content:space-evenly}.au-pagination .current button{font-weight:bold;text-decoration:underline}@font-face{font-family:"font-awesome";src:url("https://fonts.au.dk/fonts/fa-pro-regular-400.otf");font-weight:400;font-style:normal}.layout13 .au-map,.layout14 .au-map,.layout15 .au-map,.layout16 .au-map,.layout17 .au-map{margin-bottom:1.363636364rem}.layout13 .au-map .react-autosuggest__container,.layout14 .au-map .react-autosuggest__container,.layout15 .au-map .react-autosuggest__container,.layout16 .au-map .react-autosuggest__container,.layout17 .au-map .react-autosuggest__container{margin-bottom:1rem;position:relative}.layout13 .au-map .react-autosuggest__suggestions-container,.layout14 .au-map .react-autosuggest__suggestions-container,.layout15 .au-map .react-autosuggest__suggestions-container,.layout16 .au-map .react-autosuggest__suggestions-container,.layout17 .au-map .react-autosuggest__suggestions-container{max-height:none;overflow:visible}.layout13 .au-map .react-autosuggest__suggestions-container li:nth-child(n+21),.layout14 .au-map .react-autosuggest__suggestions-container li:nth-child(n+21),.layout15 .au-map .react-autosuggest__suggestions-container li:nth-child(n+21),.layout16 .au-map .react-autosuggest__suggestions-container li:nth-child(n+21),.layout17 .au-map .react-autosuggest__suggestions-container li:nth-child(n+21){display:none}.layout13 .au-map .gm-style-iw .au_collapsible,.layout13 .au-map .gm-style-iw hr,.layout14 .au-map .gm-style-iw .au_collapsible,.layout14 .au-map .gm-style-iw hr,.layout15 .au-map .gm-style-iw .au_collapsible,.layout15 .au-map .gm-style-iw hr,.layout16 .au-map .gm-style-iw .au_collapsible,.layout16 .au-map .gm-style-iw hr,.layout17 .au-map .gm-style-iw .au_collapsible,.layout17 .au-map .gm-style-iw hr{display:none}.layout13 .au-map__search,.layout14 .au-map__search,.layout15 .au-map__search,.layout16 .au-map__search,.layout17 .au-map__search{display:flex}.layout13 .au-map__search>div,.layout14 .au-map__search>div,.layout15 .au-map__search>div,.layout16 .au-map__search>div,.layout17 .au-map__search>div{flex-basis:85%}@media(max-width: 640px){.layout13 .au-map__search>div,.layout14 .au-map__search>div,.layout15 .au-map__search>div,.layout16 .au-map__search>div,.layout17 .au-map__search>div{flex-basis:76%}}.layout13 .au-map__search button,.layout14 .au-map__search button,.layout15 .au-map__search button,.layout16 .au-map__search button,.layout17 .au-map__search button{flex-basis:15%;font-family:"AUPassataRegular";border-top:1px solid #ccc;border-right:1px solid #ccc;border-bottom:1px solid #ccc;height:3.5454545464rem;cursor:pointer;background:none;color:#000;padding:0}.layout13 .au-map__search button:hover,.layout14 .au-map__search button:hover,.layout15 .au-map__search button:hover,.layout16 .au-map__search button:hover,.layout17 .au-map__search button:hover{background:none;color:inherit}.layout13 .au-map__search button span::before,.layout14 .au-map__search button span::before,.layout15 .au-map__search button span::before,.layout16 .au-map__search button span::before,.layout17 .au-map__search button span::before{font-family:"font-awesome";content:"";display:inline-block;margin-right:1rem}@media(max-width: 640px){.layout13 .au-map__search button,.layout14 .au-map__search button,.layout15 .au-map__search button,.layout16 .au-map__search button,.layout17 .au-map__search button{flex-basis:24%}}.layout13 .au-map__overlay-buttons,.layout14 .au-map__overlay-buttons,.layout15 .au-map__overlay-buttons,.layout16 .au-map__overlay-buttons,.layout17 .au-map__overlay-buttons{display:flex;flex-wrap:wrap}.layout13 .au-map__overlay-buttons button,.layout14 .au-map__overlay-buttons button,.layout15 .au-map__overlay-buttons button,.layout16 .au-map__overlay-buttons button,.layout17 .au-map__overlay-buttons button{margin-right:1rem}.layout13 .au-map__person-suggestion>div:first-child,.layout14 .au-map__person-suggestion>div:first-child,.layout15 .au-map__person-suggestion>div:first-child,.layout16 .au-map__person-suggestion>div:first-child,.layout17 .au-map__person-suggestion>div:first-child{padding-left:1.363636364rem;width:15%}.layout13 .au-map__person-suggestion>div:last-child,.layout14 .au-map__person-suggestion>div:last-child,.layout15 .au-map__person-suggestion>div:last-child,.layout16 .au-map__person-suggestion>div:last-child,.layout17 .au-map__person-suggestion>div:last-child{padding-left:1.363636364rem;width:85%}.layout13 .au-map__person-suggestion h4,.layout13 .au-map__person-suggestion p,.layout14 .au-map__person-suggestion h4,.layout14 .au-map__person-suggestion p,.layout15 .au-map__person-suggestion h4,.layout15 .au-map__person-suggestion p,.layout16 .au-map__person-suggestion h4,.layout16 .au-map__person-suggestion p,.layout17 .au-map__person-suggestion h4,.layout17 .au-map__person-suggestion p{margin:0}.layout13 .au-map__person-suggestion img,.layout14 .au-map__person-suggestion img,.layout15 .au-map__person-suggestion img,.layout16 .au-map__person-suggestion img,.layout17 .au-map__person-suggestion img{max-width:100px}.layout13 .au-map .vcard>h2,.layout13 .au-map .bld-card>h2,.layout13 .au-map .overlay-card>h2,.layout13 .au-map .top-search>h2,.layout14 .au-map .vcard>h2,.layout14 .au-map .bld-card>h2,.layout14 .au-map .overlay-card>h2,.layout14 .au-map .top-search>h2,.layout15 .au-map .vcard>h2,.layout15 .au-map .bld-card>h2,.layout15 .au-map .overlay-card>h2,.layout15 .au-map .top-search>h2,.layout16 .au-map .vcard>h2,.layout16 .au-map .bld-card>h2,.layout16 .au-map .overlay-card>h2,.layout16 .au-map .top-search>h2,.layout17 .au-map .vcard>h2,.layout17 .au-map .bld-card>h2,.layout17 .au-map .overlay-card>h2,.layout17 .au-map .top-search>h2{margin-top:0}.layout13 .au-map .vcard button,.layout13 .au-map .bld-card button,.layout13 .au-map .overlay-card button,.layout13 .au-map .top-search button,.layout14 .au-map .vcard button,.layout14 .au-map .bld-card button,.layout14 .au-map .overlay-card button,.layout14 .au-map .top-search button,.layout15 .au-map .vcard button,.layout15 .au-map .bld-card button,.layout15 .au-map .overlay-card button,.layout15 .au-map .top-search button,.layout16 .au-map .vcard button,.layout16 .au-map .bld-card button,.layout16 .au-map .overlay-card button,.layout16 .au-map .top-search button,.layout17 .au-map .vcard button,.layout17 .au-map .bld-card button,.layout17 .au-map .overlay-card button,.layout17 .au-map .top-search button{cursor:pointer;text-decoration:underline;font-family:inherit;text-align:left}.layout13 .au-map .vcard strong button,.layout13 .au-map .bld-card strong button,.layout13 .au-map .overlay-card strong button,.layout13 .au-map .top-search strong button,.layout14 .au-map .vcard strong button,.layout14 .au-map .bld-card strong button,.layout14 .au-map .overlay-card strong button,.layout14 .au-map .top-search strong button,.layout15 .au-map .vcard strong button,.layout15 .au-map .bld-card strong button,.layout15 .au-map .overlay-card strong button,.layout15 .au-map .top-search strong button,.layout16 .au-map .vcard strong button,.layout16 .au-map .bld-card strong button,.layout16 .au-map .overlay-card strong button,.layout16 .au-map .top-search strong button,.layout17 .au-map .vcard strong button,.layout17 .au-map .bld-card strong button,.layout17 .au-map .overlay-card strong button,.layout17 .au-map .top-search strong button{font-weight:bold}@media(max-width: 640px){.layout13 .au-map .vcard,.layout13 .au-map .bld-card,.layout13 .au-map .overlay-card,.layout13 .au-map .top-search,.layout14 .au-map .vcard,.layout14 .au-map .bld-card,.layout14 .au-map .overlay-card,.layout14 .au-map .top-search,.layout15 .au-map .vcard,.layout15 .au-map .bld-card,.layout15 .au-map .overlay-card,.layout15 .au-map .top-search,.layout16 .au-map .vcard,.layout16 .au-map .bld-card,.layout16 .au-map .overlay-card,.layout16 .au-map .top-search,.layout17 .au-map .vcard,.layout17 .au-map .bld-card,.layout17 .au-map .overlay-card,.layout17 .au-map .top-search{padding:1.363636364rem 0}}.layout13 .au-map .vcard img,.layout14 .au-map .vcard img,.layout15 .au-map .vcard img,.layout16 .au-map .vcard img,.layout17 .au-map .vcard img{float:right;margin-left:1.363636364rem;margin-bottom:1.363636364rem;max-width:120px}.layout13 .au-map .vcard::after,.layout14 .au-map .vcard::after,.layout15 .au-map .vcard::after,.layout16 .au-map .vcard::after,.layout17 .au-map .vcard::after{display:block;content:"";clear:both}.layout13 .au-map__route,.layout14 .au-map__route,.layout15 .au-map__route,.layout16 .au-map__route,.layout17 .au-map__route{margin-bottom:1.363636364rem}.layout13 .au-map .show-on-map,.layout14 .au-map .show-on-map,.layout15 .au-map .show-on-map,.layout16 .au-map .show-on-map,.layout17 .au-map .show-on-map{display:none}.layout13 .au-map .au_collapsible .csc-header+*,.layout14 .au-map .au_collapsible .csc-header+*,.layout15 .au-map .au_collapsible .csc-header+*,.layout16 .au-map .au_collapsible .csc-header+*,.layout17 .au-map .au_collapsible .csc-header+*{position:relative;max-height:350px;overflow-y:auto}.layout13 .au-map__directions-panel,.layout14 .au-map__directions-panel,.layout15 .au-map__directions-panel,.layout16 .au-map__directions-panel,.layout17 .au-map__directions-panel{display:flex;flex-wrap:wrap;padding:1rem 0 1rem 1rem;margin-bottom:1rem;border:1px solid #cacaca}.layout13 .au-map__directions-panel__modes-of-transportation,.layout14 .au-map__directions-panel__modes-of-transportation,.layout15 .au-map__directions-panel__modes-of-transportation,.layout16 .au-map__directions-panel__modes-of-transportation,.layout17 .au-map__directions-panel__modes-of-transportation{flex-basis:100%;display:flex}.layout13 .au-map__directions-panel__from-to,.layout14 .au-map__directions-panel__from-to,.layout15 .au-map__directions-panel__from-to,.layout16 .au-map__directions-panel__from-to,.layout17 .au-map__directions-panel__from-to{flex-basis:85%}.layout13 .au-map__directions-panel__swap,.layout14 .au-map__directions-panel__swap,.layout15 .au-map__directions-panel__swap,.layout16 .au-map__directions-panel__swap,.layout17 .au-map__directions-panel__swap{flex-basis:15%;display:flex;align-items:center;justify-content:center}.layout13 .au-map__directions-panel .button-route,.layout14 .au-map__directions-panel .button-route,.layout15 .au-map__directions-panel .button-route,.layout16 .au-map__directions-panel .button-route,.layout17 .au-map__directions-panel .button-route{background-color:transparent;color:#878787;height:3rem;overflow:hidden;padding:0;margin-right:1rem;display:inline-flex;border:none}.layout13 .au-map__directions-panel .button-route--selected,.layout14 .au-map__directions-panel .button-route--selected,.layout15 .au-map__directions-panel .button-route--selected,.layout16 .au-map__directions-panel .button-route--selected,.layout17 .au-map__directions-panel .button-route--selected{border-bottom:2px solid #000}.layout13 .au-map__directions-panel .button-route::before,.layout14 .au-map__directions-panel .button-route::before,.layout15 .au-map__directions-panel .button-route::before,.layout16 .au-map__directions-panel .button-route::before,.layout17 .au-map__directions-panel .button-route::before{font-family:"font-awesome";font-size:2rem;display:inline-block}.layout13 .au-map__directions-panel .button-route--car,.layout14 .au-map__directions-panel .button-route--car,.layout15 .au-map__directions-panel .button-route--car,.layout16 .au-map__directions-panel .button-route--car,.layout17 .au-map__directions-panel .button-route--car{width:22px}.layout13 .au-map__directions-panel .button-route--car::before,.layout14 .au-map__directions-panel .button-route--car::before,.layout15 .au-map__directions-panel .button-route--car::before,.layout16 .au-map__directions-panel .button-route--car::before,.layout17 .au-map__directions-panel .button-route--car::before{content:""}.layout13 .au-map__directions-panel .button-route--walk,.layout14 .au-map__directions-panel .button-route--walk,.layout15 .au-map__directions-panel .button-route--walk,.layout16 .au-map__directions-panel .button-route--walk,.layout17 .au-map__directions-panel .button-route--walk{width:13px}.layout13 .au-map__directions-panel .button-route--walk::before,.layout14 .au-map__directions-panel .button-route--walk::before,.layout15 .au-map__directions-panel .button-route--walk::before,.layout16 .au-map__directions-panel .button-route--walk::before,.layout17 .au-map__directions-panel .button-route--walk::before{content:""}.layout13 .au-map__directions-panel .button-route--bicycle,.layout14 .au-map__directions-panel .button-route--bicycle,.layout15 .au-map__directions-panel .button-route--bicycle,.layout16 .au-map__directions-panel .button-route--bicycle,.layout17 .au-map__directions-panel .button-route--bicycle{width:27px}.layout13 .au-map__directions-panel .button-route--bicycle::before,.layout14 .au-map__directions-panel .button-route--bicycle::before,.layout15 .au-map__directions-panel .button-route--bicycle::before,.layout16 .au-map__directions-panel .button-route--bicycle::before,.layout17 .au-map__directions-panel .button-route--bicycle::before{content:""}.layout13 .au-map__directions-panel .button-route--public,.layout14 .au-map__directions-panel .button-route--public,.layout15 .au-map__directions-panel .button-route--public,.layout16 .au-map__directions-panel .button-route--public,.layout17 .au-map__directions-panel .button-route--public{width:22px;padding-top:4px}.layout13 .au-map__directions-panel .button-route--public::before,.layout14 .au-map__directions-panel .button-route--public::before,.layout15 .au-map__directions-panel .button-route--public::before,.layout16 .au-map__directions-panel .button-route--public::before,.layout17 .au-map__directions-panel .button-route--public::before{content:""}.layout13 .au-map__directions-panel .button-route--close,.layout14 .au-map__directions-panel .button-route--close,.layout15 .au-map__directions-panel .button-route--close,.layout16 .au-map__directions-panel .button-route--close,.layout17 .au-map__directions-panel .button-route--close{margin-left:auto;width:14px}.layout13 .au-map__directions-panel .button-route--close::before,.layout14 .au-map__directions-panel .button-route--close::before,.layout15 .au-map__directions-panel .button-route--close::before,.layout16 .au-map__directions-panel .button-route--close::before,.layout17 .au-map__directions-panel .button-route--close::before{content:""}.layout13 .au-map__directions-panel .button-route--swap,.layout14 .au-map__directions-panel .button-route--swap,.layout15 .au-map__directions-panel .button-route--swap,.layout16 .au-map__directions-panel .button-route--swap,.layout17 .au-map__directions-panel .button-route--swap{margin:0 0 1.45455rem 0;width:24px}.layout13 .au-map__directions-panel .button-route--swap::before,.layout14 .au-map__directions-panel .button-route--swap::before,.layout15 .au-map__directions-panel .button-route--swap::before,.layout16 .au-map__directions-panel .button-route--swap::before,.layout17 .au-map__directions-panel .button-route--swap::before{font-size:3rem;content:""}.layout13 .au-map__suggestion,.layout14 .au-map__suggestion,.layout15 .au-map__suggestion,.layout16 .au-map__suggestion,.layout17 .au-map__suggestion{display:inline-block}.layout13 .au-map__suggestion::before,.layout14 .au-map__suggestion::before,.layout15 .au-map__suggestion::before,.layout16 .au-map__suggestion::before,.layout17 .au-map__suggestion::before{font-family:"font-awesome";display:inline-block;margin-right:.5rem}.layout13 .au-map__suggestion__building::before,.layout14 .au-map__suggestion__building::before,.layout15 .au-map__suggestion__building::before,.layout16 .au-map__suggestion__building::before,.layout17 .au-map__suggestion__building::before{content:""}.layout13 .au-map__suggestion__department::before,.layout14 .au-map__suggestion__department::before,.layout15 .au-map__suggestion__department::before,.layout16 .au-map__suggestion__department::before,.layout17 .au-map__suggestion__department::before{content:""}.layout13 .au-map__suggestion__denmark::before,.layout14 .au-map__suggestion__denmark::before,.layout15 .au-map__suggestion__denmark::before,.layout16 .au-map__suggestion__denmark::before,.layout17 .au-map__suggestion__denmark::before{content:""}.layout13 .au-map__suggestion__denmark::before,.layout14 .au-map__suggestion__denmark::before,.layout15 .au-map__suggestion__denmark::before,.layout16 .au-map__suggestion__denmark::before,.layout17 .au-map__suggestion__denmark::before{content:""}.layout13 .au-map__suggestion__lecture-hall::before,.layout14 .au-map__suggestion__lecture-hall::before,.layout15 .au-map__suggestion__lecture-hall::before,.layout16 .au-map__suggestion__lecture-hall::before,.layout17 .au-map__suggestion__lecture-hall::before{content:""}.layout13 .au-map__suggestion__library::before,.layout14 .au-map__suggestion__library::before,.layout15 .au-map__suggestion__library::before,.layout16 .au-map__suggestion__library::before,.layout17 .au-map__suggestion__library::before{content:""}.layout13 .au-map__suggestion__friday-bar::before,.layout14 .au-map__suggestion__friday-bar::before,.layout15 .au-map__suggestion__friday-bar::before,.layout16 .au-map__suggestion__friday-bar::before,.layout17 .au-map__suggestion__friday-bar::before{content:""}.layout13 .au-map__suggestion__study-place::before,.layout14 .au-map__suggestion__study-place::before,.layout15 .au-map__suggestion__study-place::before,.layout16 .au-map__suggestion__study-place::before,.layout17 .au-map__suggestion__study-place::before{content:""}.layout13 .au-map__suggestion__canteen::before,.layout14 .au-map__suggestion__canteen::before,.layout15 .au-map__suggestion__canteen::before,.layout16 .au-map__suggestion__canteen::before,.layout17 .au-map__suggestion__canteen::before{content:""}.layout13 .au-map__suggestion__counselling::before,.layout14 .au-map__suggestion__counselling::before,.layout15 .au-map__suggestion__counselling::before,.layout16 .au-map__suggestion__counselling::before,.layout17 .au-map__suggestion__counselling::before{content:""}.layout13 .au-map__suggestion__it-support::before,.layout14 .au-map__suggestion__it-support::before,.layout15 .au-map__suggestion__it-support::before,.layout16 .au-map__suggestion__it-support::before,.layout17 .au-map__suggestion__it-support::before{content:""}.layout13 .au-map__suggestion__myprint::before,.layout14 .au-map__suggestion__myprint::before,.layout15 .au-map__suggestion__myprint::before,.layout16 .au-map__suggestion__myprint::before,.layout17 .au-map__suggestion__myprint::before{content:""}.layout13 .au-map.find-container>.row>.column,.layout13 .dropdown-pane .find-container>.row>.column,.layout14 .au-map.find-container>.row>.column,.layout14 .dropdown-pane .find-container>.row>.column,.layout15 .au-map.find-container>.row>.column,.layout15 .dropdown-pane .find-container>.row>.column,.layout16 .au-map.find-container>.row>.column,.layout16 .dropdown-pane .find-container>.row>.column,.layout17 .au-map.find-container>.row>.column,.layout17 .dropdown-pane .find-container>.row>.column{position:relative}.layout13 .au-map.find-container h3,.layout13 .dropdown-pane .find-container h3,.layout14 .au-map.find-container h3,.layout14 .dropdown-pane .find-container h3,.layout15 .au-map.find-container h3,.layout15 .dropdown-pane .find-container h3,.layout16 .au-map.find-container h3,.layout16 .dropdown-pane .find-container h3,.layout17 .au-map.find-container h3,.layout17 .dropdown-pane .find-container h3{margin-top:0}.layout13 .au-map.find-container .au-map__person-suggestion img,.layout13 .dropdown-pane .find-container .au-map__person-suggestion img,.layout14 .au-map.find-container .au-map__person-suggestion img,.layout14 .dropdown-pane .find-container .au-map__person-suggestion img,.layout15 .au-map.find-container .au-map__person-suggestion img,.layout15 .dropdown-pane .find-container .au-map__person-suggestion img,.layout16 .au-map.find-container .au-map__person-suggestion img,.layout16 .dropdown-pane .find-container .au-map__person-suggestion img,.layout17 .au-map.find-container .au-map__person-suggestion img,.layout17 .dropdown-pane .find-container .au-map__person-suggestion img{max-width:30px}.layout13 .au-map.find-container .react-autosuggest__suggestions-container li,.layout13 .dropdown-pane .find-container .react-autosuggest__suggestions-container li,.layout14 .au-map.find-container .react-autosuggest__suggestions-container li,.layout14 .dropdown-pane .find-container .react-autosuggest__suggestions-container li,.layout15 .au-map.find-container .react-autosuggest__suggestions-container li,.layout15 .dropdown-pane .find-container .react-autosuggest__suggestions-container li,.layout16 .au-map.find-container .react-autosuggest__suggestions-container li,.layout16 .dropdown-pane .find-container .react-autosuggest__suggestions-container li,.layout17 .au-map.find-container .react-autosuggest__suggestions-container li,.layout17 .dropdown-pane .find-container .react-autosuggest__suggestions-container li{margin-bottom:0}.layout13 .au-map.find-container .vcard,.layout13 .au-map.find-container .bld-card,.layout13 .dropdown-pane .find-container .vcard,.layout13 .dropdown-pane .find-container .bld-card,.layout14 .au-map.find-container .vcard,.layout14 .au-map.find-container .bld-card,.layout14 .dropdown-pane .find-container .vcard,.layout14 .dropdown-pane .find-container .bld-card,.layout15 .au-map.find-container .vcard,.layout15 .au-map.find-container .bld-card,.layout15 .dropdown-pane .find-container .vcard,.layout15 .dropdown-pane .find-container .bld-card,.layout16 .au-map.find-container .vcard,.layout16 .au-map.find-container .bld-card,.layout16 .dropdown-pane .find-container .vcard,.layout16 .dropdown-pane .find-container .bld-card,.layout17 .au-map.find-container .vcard,.layout17 .au-map.find-container .bld-card,.layout17 .dropdown-pane .find-container .vcard,.layout17 .dropdown-pane .find-container .bld-card{margin-top:1.363636364rem;padding:1rem;background:#fff;color:#333;font-size:1.25rem;font-family:Georgia,"Times New Roman",Times,serif}.layout13 .au-map.find-container .vcard hr,.layout13 .au-map.find-container .bld-card hr,.layout13 .dropdown-pane .find-container .vcard hr,.layout13 .dropdown-pane .find-container .bld-card hr,.layout14 .au-map.find-container .vcard hr,.layout14 .au-map.find-container .bld-card hr,.layout14 .dropdown-pane .find-container .vcard hr,.layout14 .dropdown-pane .find-container .bld-card hr,.layout15 .au-map.find-container .vcard hr,.layout15 .au-map.find-container .bld-card hr,.layout15 .dropdown-pane .find-container .vcard hr,.layout15 .dropdown-pane .find-container .bld-card hr,.layout16 .au-map.find-container .vcard hr,.layout16 .au-map.find-container .bld-card hr,.layout16 .dropdown-pane .find-container .vcard hr,.layout16 .dropdown-pane .find-container .bld-card hr,.layout17 .au-map.find-container .vcard hr,.layout17 .au-map.find-container .bld-card hr,.layout17 .dropdown-pane .find-container .vcard hr,.layout17 .dropdown-pane .find-container .bld-card hr{display:none}.layout13 .au-map.find-container .vcard img,.layout13 .au-map.find-container .bld-card img,.layout13 .dropdown-pane .find-container .vcard img,.layout13 .dropdown-pane .find-container .bld-card img,.layout14 .au-map.find-container .vcard img,.layout14 .au-map.find-container .bld-card img,.layout14 .dropdown-pane .find-container .vcard img,.layout14 .dropdown-pane .find-container .bld-card img,.layout15 .au-map.find-container .vcard img,.layout15 .au-map.find-container .bld-card img,.layout15 .dropdown-pane .find-container .vcard img,.layout15 .dropdown-pane .find-container .bld-card img,.layout16 .au-map.find-container .vcard img,.layout16 .au-map.find-container .bld-card img,.layout16 .dropdown-pane .find-container .vcard img,.layout16 .dropdown-pane .find-container .bld-card img,.layout17 .au-map.find-container .vcard img,.layout17 .au-map.find-container .bld-card img,.layout17 .dropdown-pane .find-container .vcard img,.layout17 .dropdown-pane .find-container .bld-card img{width:70px;float:right;margin-left:1rem}.layout13 .au-map.find-container .vcard a,.layout13 .au-map.find-container .bld-card a,.layout13 .dropdown-pane .find-container .vcard a,.layout13 .dropdown-pane .find-container .bld-card a,.layout14 .au-map.find-container .vcard a,.layout14 .au-map.find-container .bld-card a,.layout14 .dropdown-pane .find-container .vcard a,.layout14 .dropdown-pane .find-container .bld-card a,.layout15 .au-map.find-container .vcard a,.layout15 .au-map.find-container .bld-card a,.layout15 .dropdown-pane .find-container .vcard a,.layout15 .dropdown-pane .find-container .bld-card a,.layout16 .au-map.find-container .vcard a,.layout16 .au-map.find-container .bld-card a,.layout16 .dropdown-pane .find-container .vcard a,.layout16 .dropdown-pane .find-container .bld-card a,.layout17 .au-map.find-container .vcard a,.layout17 .au-map.find-container .bld-card a,.layout17 .dropdown-pane .find-container .vcard a,.layout17 .dropdown-pane .find-container .bld-card a{color:#000 !important;text-decoration:underline}
|
|
2
|
-
|
|
1
|
+
.au-alert{position:fixed;z-index:100;left:50%;top:50%;transform:translate(-50%, -50%);width:300px;background-color:#fff;padding:1.3636364rem}.au-alert button{margin-top:1rem;margin-bottom:0;padding:.65rem 2rem}.au-alert button.confirm{background-color:#8bad3f}.au-alert button.cancel{background-color:#687989}.au-alert button:first-of-type{margin-right:1rem}.au-alert-overlay,.au-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0,0,0,.6);z-index:99}.au_alphabox{overflow:visible;margin-bottom:1rem;position:relative}.au_alphabox>.au_alphabox{margin-bottom:0}.dropdown-pane .au_alphabox{margin-bottom:0}.au_alphabox>div:not(.au_alphabox_content):not(.au_alphabox){padding:1rem 1rem 0 1rem;overflow:auto}.au_alphabox ul.letters{display:flex;justify-content:flex-start;flex-flow:row wrap;font-size:1.1rem;margin-top:.15rem;margin-bottom:.75rem;margin-left:0;padding-bottom:.75rem;border-bottom:1px solid #ccc}.au_alphabox ul.letters li{padding:0;margin:2px 2px;background-color:#aaa;text-align:center;font-size:1.2rem}.au_alphabox ul.letters li.available button{cursor:pointer;color:#fff}.au_alphabox ul.letters li.active{font-weight:bold}.au_alphabox ul.letters li:before{content:""}.au_alphabox ul.letters li button{font-family:"AUPassataRegular";color:#ccc;text-transform:uppercase;width:20px;line-height:inherit}.au_alphabox ul.items{padding:1rem;margin:0;position:relative}.student .au_alphabox{background:#2a4a0f}.student .au_alphabox .listNav .ln-letters a{background-color:#8bad3f}.student .au_alphabox .listNav .ln-letters a.ln-selected{color:#2a4a0f !important}.student .au_alphabox .listNav .ln-letters a.ln-disabled{background-color:#8bad3f}.student .au_alphabox .alphabox_list_container{border:2px solid #2a4a0f}.student .au_alphabox .alphabox_list_container h3{color:#8bad3f;border-bottom:2px solid #8bad3f}.student .au_alphabox .alphabox_list_container ul li:before{color:#8bad3f}.student .au_alphabox ul.quicklinks a{background:#447400}.au_alphabox h2{color:#fff;margin:0;border:0}.au_alphabox h2 a{color:#fff !important;border:none !important}.au_alphabox h2 a:hover{text-decoration:underline !important}.au_alphabox p{color:#fff;margin:1rem 0 1rem 0 !important;font-size:1.25rem}.au_alphabox input[type=text]{background:#afc3ce url("https://cdn.au.dk/2016/assets/img/databox/find.png") no-repeat right center;border:0;float:none;width:100%;margin-bottom:1.45455rem !important}.au_alphabox input[type=text].active{background-color:#afc3ce}.au_alphabox ::-webkit-input-placeholder{color:#333}.au_alphabox ::-moz-placeholder{color:#333;opacity:1}.au_alphabox :-ms-input-placeholder{color:#333}.au_alphabox .listNav{margin:0 0 calc(.5rem - 2px) 0;font-family:"AUPassataBold"}.au_alphabox .listNav .ln-letters{margin:1rem 0}.au_alphabox .listNav .ln-letters a{background-color:#006ca4;border:none !important;margin:0 2px 2px 0;color:#fff;padding:2px;font-size:1.25rem}.au_alphabox .listNav .ln-letters a.ln-selected{background-color:#fff;color:#006ca4 !important}.au_alphabox .listNav .ln-letters a.ln-disabled{background-color:#006ca4;color:#7c98a8 !important}.au_alphabox .listNav .ln-letters .all{display:none}.au_alphabox .alphabox_list_container{background:#fff;border:2px solid #006ca4;padding:0 1rem 0 1rem;display:none;overflow-y:scroll;-webkit-overflow-scrolling:touch}.au_alphabox .alphabox_list_container h3{color:#009ee0;border-bottom:2px solid #379fcb}.au_alphabox .alphabox_list_container>ul{max-height:200px;overflow:initial !important;margin-bottom:2em;position:relative}.au_alphabox .alphabox_list_container>ul li a{color:#003e5c;border-bottom:1px dotted}.au_alphabox ul.quicklinks{display:flex;flex-wrap:wrap;justify-content:space-between;margin-left:0}.au_alphabox ul.quicklinks li{font:1.25rem "AUPassataRegular";text-transform:uppercase;width:48.9%;padding:0;line-height:1;margin-bottom:6px}.au_alphabox ul.quicklinks li:nth-child(odd){margin-right:.5em}.au_alphabox ul.quicklinks li a{display:block;background:#006ca4;color:#fff;border:none !important;padding:.5em}.au_alphabox .au_alphabox_content{margin-top:1rem;margin-bottom:1rem;clear:both}.au_alphabox .au_alphabox_content>div{background:#fff;max-height:300px;overflow-y:scroll}.react-autosuggest__container{cursor:pointer}.react-autosuggest__container input[type=text]{margin-bottom:0}.page__content__block .react-autosuggest__container{position:relative;width:100%}.page__content__block .react-autosuggest__suggestions-list{margin-top:0}.react-autosuggest__suggestions-container{border-left:1px solid #ccc;border-right:1px solid #ccc;position:absolute;left:0;right:0;background-color:#fff;margin:0;z-index:1;color:#333 !important;font-size:1.2727272727rem;line-height:1;max-height:430px;overflow:auto}.react-autosuggest__suggestions-container li,.react-autosuggest__suggestions-container li:before{list-style-type:none !important;background-image:none !important;margin:0;padding:0;content:"" !important;line-height:1 !important;background:none}li.react-autosuggest__suggestion{border-bottom:1px solid #ccc;padding:1.2727272727rem 1rem}.react-autosuggest__suggestion--highlighted{background-color:#f0f0f0 !important}.react-autosuggest__suggestions-list{margin-bottom:0;margin-left:0}.au-calendar{background-color:#fff;font-family:"AUPassataRegular";width:224px}.au-calendar .au-calendar-days{display:flex;flex-wrap:wrap;margin-bottom:1rem}.au-calendar .au-calendar-days>span,.au-calendar .au-calendar-days>button{width:32px;height:32px;text-align:center;text-transform:uppercase;line-height:1;font-size:1rem}.au-calendar .au-calendar-days>span{padding-top:8px}.au-calendar .au-calendar-days>button{font-family:"AUPassataRegular";cursor:pointer}.au-calendar .au-calendar-days>button.empty{background-color:#f5f5f5}.au-calendar .au-calendar-days>button.weekend:not(.empty){background-color:#ddd}.au-calendar .au-calendar-days>button.selected{border:2px solid #8bad3f}.au-calendar .au-calendar-year-month,.au-calendar .au-calendar-time{display:flex;justify-content:space-between}.au-calendar .au-calendar-year-month>select,.au-calendar .au-calendar-time>select{width:108px;font-size:1.090909rem;margin-bottom:0}.au-calendar>button{font-family:"AUPassataRegular";text-align:center;background-color:#8bad3f;width:100%;padding:1rem;margin-top:1rem;color:#fff;cursor:pointer}.au-datepicker{position:relative}.au-datepicker input[type=text][readonly]{background-color:#fff;cursor:auto}.au-datepicker input[type=text][readonly]~div{position:absolute;right:0;z-index:1000;width:230px;border-right:1px solid #ccc;border-left:1px solid #ccc}.au-datepicker .au-calendar{border-bottom:1px solid #ccc;padding:2px;top:5.54545rem}.au-datepicker .au-calendar-close{top:3.54545rem;height:2rem;background-color:#fff}.au-datepicker .au-calendar-close button{position:absolute;top:3px;right:3px;font-family:"au_icons";font-size:1.5rem;margin:0;padding:0;background:transparent !important;color:#000;cursor:pointer}.au_databox{margin-bottom:2em;position:relative}.au_databox .button-wrapper{position:relative}.au_databox .button-wrapper>div{width:100%;position:absolute;bottom:0}@media(max-width: 640px){.au_databox .button-wrapper{background-image:none !important;height:auto !important;position:static;overflow:auto}.au_databox .button-wrapper>div{position:static}.au_databox .button-wrapper .db-button{float:none;width:100% !important}.au_databox .button-wrapper .db-button>span{border-left:0 !important;height:51px}.au_databox .button-wrapper .db-button>input[type=text]{left:70px;top:11px}.au_databox .button-wrapper .buttons-5.first-line-full .button-wrapper{height:auto}.au_databox .button-wrapper .buttons-6 .button-wrapper{height:auto}}.au_databox .button-wrapper .au_focus{margin-bottom:0;padding-left:1rem}.au_databox .content{width:100%;background:#f0f0f0;padding:1rem 0;overflow:auto}.au_databox .content>div{padding:0 1rem;position:relative}.au_databox .content>div .expandall{position:absolute;right:10px;top:0;text-decoration:underline;cursor:pointer}.au_databox .content ul{margin-top:0;margin-left:0}.au_databox .content ul ul{margin-top:.65rem}.au_databox .content ul li a{text-decoration:none}.au_databox .content ul li a:hover{text-decoration:underline}.au_databox .content ul.letters{display:flex;justify-content:flex-start;flex-flow:row wrap;font-size:1.1rem;margin-top:.15rem;margin-bottom:.75rem;margin-left:0;padding-bottom:.75rem;border-bottom:1px solid #ccc}.au_databox .content ul.letters li{padding:0;margin:2px 2px;background-color:#aaa;text-align:center;font-size:1.2rem}.au_databox .content ul.letters li.available button{cursor:pointer;color:#fff}.au_databox .content ul.letters li.active{font-weight:bold}.au_databox .content ul.letters li:before{content:""}.au_databox .content ul.letters li button{font-family:"AUPassataRegular";color:#ccc;text-transform:uppercase;width:20px;line-height:inherit}.au_databox .content .au_collapsible{margin-bottom:0;padding:.6rem 0}.au_databox .content .au_collapsible>.csc-header{margin-bottom:1rem}.au_databox .content .au_collapsible>.csc-header:after{font-size:24px}.au_databox .content .au_collapsible>.csc-header h3{margin:0}.au_databox .content .au_collapsible.au_collapsed>.csc-header{margin-bottom:0}.au_databox .au_focus{margin-left:24px;position:absolute;margin-bottom:0}.au_databox .au_focus.before{position:static;padding:1.5em 0 1.5em 14px;margin-left:0}.au_databox .clear{clear:both}.au_databox.width-full{width:100%}.au_databox .db-button{float:left;text-indent:1rem;color:#fff;position:relative;text-align:left;padding:0;margin:0;border:0;font:1.7272727273rem "AUPassataRegular"}.au_databox .db-button:not(.db-search),.au_databox .db-button.search-filter{cursor:pointer}.au_databox .db-button>span{display:block;border-top:1px solid #fff;padding:16px 0px;line-height:1}.au_databox .db-button>span a{color:#fff;text-decoration:none}.au_databox .db-button>span a:hover{text-decoration:underline}.au_databox .db-button input[type=text]{font-size:1.25rem;position:absolute;top:11px;left:65px;background:#fff url("https://cdn.au.dk/2016/assets/img/databox/find.png") no-repeat right center;background:rgba(255,255,255,.75) url("https://cdn.au.dk/2016/assets/img/databox/find.png") no-repeat right center;border:0;width:calc(100% - 65px - 1rem);padding:0;margin:0;height:32px;text-indent:10px}.au_databox .db-button input[type=text].active{background:#fff;background:rgba(255,255,255,.75)}.au_databox .db-button.overlay{background:#ccc;background:rgba(204,204,204,.25)}.au_databox .db-button.active{background:#f0f0f0;color:#000}.au_databox .db-button.active a{color:#000}.au_databox.collapse .db-button:after{color:#fff;opacity:.8;font-family:"au_icons";content:"+";float:right;font-size:32px;position:absolute;top:10px;right:0;margin-right:.3em}.au_databox.collapse .db-button.active:after{color:#000;opacity:1;content:"-"}.au_databox.collapse .db-button.db-search:after{content:""}.au_databox.stacked .button-wrapper{background-image:none !important;height:auto !important;position:static}.au_databox.stacked .button-wrapper>div{position:static}.au_databox.stacked .button-wrapper .db-button{float:none;width:100% !important}.au_databox.stacked .button-wrapper .db-button>span{border-left:0 !important;height:51px}.au_databox.stacked .button-wrapper .db-button>input[type=text]{left:70px;top:11px}.au_databox.stacked .button-wrapper .buttons-5.first-line-full .button-wrapper{height:auto}.au_databox.stacked .button-wrapper .buttons-6 .button-wrapper{height:auto}.au_databox.stacked .content{padding-top:0}.au_databox.buttons-1 .au_focus{bottom:75px}.au_databox.buttons-1 .button-wrapper{height:51px}.au_databox.buttons-1 .db-button{width:100%}.au_databox.buttons-1 .db-button>span{text-indent:-9999px}.au_databox.buttons-1 .db-button>input[type=text]{left:14px}.au_databox.buttons-2 .button-wrapper{height:51px}.au_databox.buttons-2 .au_focus{bottom:75px}.au_databox.buttons-2 .db-button{width:50%}.au_databox.buttons-2 .db-button:nth-child(2) span{border-left:1px solid #fff}.au_databox.buttons-3 .button-wrapper{height:51px}.au_databox.buttons-3 .au_focus{bottom:75px}.au_databox.buttons-3.first-line-full .button-wrapper{height:102px}.au_databox.buttons-3.first-line-full .au_focus{bottom:126px}.au_databox.buttons-3.first-line-full .button-1{width:100%}.au_databox.buttons-3.first-line-full .button-2,.au_databox.buttons-3.first-line-full .button-3{width:50%}.au_databox.buttons-3.first-line-full .button-2 span{border-left:0}.au_databox.buttons-3.first-line-full .button-3 span{border-left:1px solid #fff}.au_databox.buttons-3 .button-1,.au_databox.buttons-3 .button-3{width:33%}.au_databox.buttons-3 .button-2{width:34%}.au_databox.buttons-3 .button-2 span,.au_databox.buttons-3 .button-3 span{border-left:1px solid #fff}.au_databox.buttons-4 .button-wrapper{height:102px}.au_databox.buttons-4 .au_focus{bottom:126px}.au_databox.buttons-4.first-line-full .button-1{width:100%}.au_databox.buttons-4.first-line-full .button-2 span{border-left:0}.au_databox.buttons-4.first-line-full .button-2,.au_databox.buttons-4.first-line-full .button-4{width:33%}.au_databox.buttons-4.first-line-full .button-3{width:34%}.au_databox.buttons-4.first-line-full .button-3 span,.au_databox.buttons-4.first-line-full .button-4 span{border-left:1px solid #fff}.au_databox.buttons-4 .db-button{width:50%}.au_databox.buttons-4 .button-2 span,.au_databox.buttons-4 .button-4 span{border-left:1px solid #fff}.au_databox.buttons-5 .button-wrapper{height:153px}.au_databox.buttons-5 .au_focus{bottom:177px}.au_databox.buttons-5.first-line-full .button-wrapper{height:102px}.au_databox.buttons-5.first-line-full .au_focus{bottom:126px}.au_databox.buttons-5.first-line-full .button-1{width:100%}.au_databox.buttons-5.first-line-full .button-2,.au_databox.buttons-5.first-line-full .button-3,.au_databox.buttons-5.first-line-full .button-4,.au_databox.buttons-5.first-line-full .button-5{width:25%}.au_databox.buttons-5.first-line-full .button-3 span,.au_databox.buttons-5.first-line-full .button-4 span,.au_databox.buttons-5.first-line-full .button-5 span{border-left:1px solid #fff}.au_databox.buttons-5 .button-1{width:100%}.au_databox.buttons-5 .button-2,.au_databox.buttons-5 .button-3,.au_databox.buttons-5 .button-4,.au_databox.buttons-5 .button-5{width:50%}.au_databox.buttons-5 .button-3 span,.au_databox.buttons-5 .button-5 span{border-left:1px solid #fff}.au_databox.buttons-6.first-line-full .button-wrapper{height:102px}.au_databox.buttons-6.first-line-full .au_focus{bottom:126px}.au_databox.buttons-6.first-line-full .button-1{width:100%}.au_databox.buttons-6.first-line-full .db-button.button-2 span{border-left:none}.au_databox.buttons-6.first-line-full .button-2,.au_databox.buttons-6.first-line-full .button-3,.au_databox.buttons-6.first-line-full .button-4,.au_databox.buttons-6.first-line-full .button-5,.au_databox.buttons-6.first-line-full .button-6{width:20%}.au_databox.buttons-6.first-line-full .button-3 span,.au_databox.buttons-6.first-line-full .button-4 span,.au_databox.buttons-6.first-line-full .button-5 span,.au_databox.buttons-6.first-line-full .button-6 span{border-left:1px solid #fff}.au_databox.buttons-6 .button-wrapper{height:153px}.au_databox.buttons-6 .au_focus{bottom:177px}.au_databox.buttons-6 .db-button{width:50%}.au_databox.buttons-6 .db-button:nth-child(even) span{border-left:1px solid #fff}.au_databox.buttons-7 .button-wrapper{height:153px}.au_databox.buttons-7 .au_focus{bottom:177px}.au_databox.buttons-7.first-line-full .button-wrapper{height:102px}.au_databox.buttons-7.first-line-full .au_focus{bottom:126px}.au_databox.buttons-7.first-line-full .button-1{width:100%}.au_databox.buttons-7.first-line-full .button-2,.au_databox.buttons-7.first-line-full .button-3,.au_databox.buttons-7.first-line-full .button-4,.au_databox.buttons-7.first-line-full .button-5,.au_databox.buttons-7.first-line-full .button-6,.au_databox.buttons-7.first-line-full .button-7{width:16.66667%}.au_databox.buttons-7.first-line-full .button-3 span,.au_databox.buttons-7.first-line-full .button-4 span,.au_databox.buttons-7.first-line-full .button-5 span,.au_databox.buttons-7.first-line-full .button-6 span,.au_databox.buttons-7.first-line-full .button-7 span{border-left:1px solid #fff}.au_databox.buttons-7 .button-1{width:100%}.au_databox.buttons-7 .button-2,.au_databox.buttons-7 .button-4,.au_databox.buttons-7 .button-5,.au_databox.buttons-7 .button-7{width:33%}.au_databox.buttons-7 .button-3,.au_databox.buttons-7 .button-6{width:34%}.au_databox.buttons-7 .button-3 span,.au_databox.buttons-7 .button-4 span,.au_databox.buttons-7 .button-6 span,.au_databox.buttons-7 .button-7 span{border-left:1px solid #fff}.utility-links .au_databox.stacked{margin-bottom:0}.utility-links .au_databox.stacked .content{max-height:200px;overflow:auto}.au_edutable_eddi_container .print{display:inline-block;margin-bottom:1rem}.study-diagramme{padding:1rem;margin-bottom:2rem;font-family:"AUPassataRegular";background-color:#e4e4e4}.study-diagramme.list p{padding:.6rem 1rem;contain:content}.study-diagramme.list p a{text-decoration:none}.study-diagramme.list p span:last-child{float:right}.study-diagramme table{table-layout:fixed;width:100%;border-collapse:collapse}.study-diagramme table,.study-diagramme thead,.study-diagramme tbody{background-color:transparent !important}.study-diagramme tr{background-color:transparent !important}.study-diagramme th{font-family:"AUPassataBold";font-weight:normal}.study-diagramme th,.study-diagramme td{border:4px solid #fefefe}.study-diagramme td{padding:0}.study-diagramme td:hover{background-color:#656565}.study-diagramme td:hover.sf a{color:#cfe1e7}.study-diagramme td:hover.obl a{color:#f2e4d4}.study-diagramme td:hover.val a{color:#d1e1d6}.study-diagramme td:hover.tlv a{color:#e9ccda}.study-diagramme td:hover.ogr a{color:#f2e4d4}.study-diagramme td a{padding:2rem 1rem;display:block;text-decoration:none;border-bottom:none !important;font-size:12px;word-break:break-word;hyphens:auto}.study-diagramme td[rowspan="1"] a{min-height:130px}.study-diagramme td[rowspan="2"] a{min-height:260px}.study-diagramme td[rowspan="3"] a{min-height:390px}.study-diagramme td[rowspan="4"] a{min-height:520px}.study-diagramme td[rowspan="5"] a{min-height:650px}.study-diagramme td[rowspan="6"] a{min-height:780px}.study-diagramme .sf{background-color:#cfe1e7}.study-diagramme .obl{background-color:#f2e4d4}.study-diagramme .val{background-color:#d1e1d6}.study-diagramme .tlv{background-color:#e9ccda}.study-diagramme .ogr{background-color:#f2e4d4}@media print{.study-diagramme.show-for-small-only{display:none}}.au_flowbox{background:#f0efef;padding:2rem;margin-bottom:1rem}.au_flowbox button{text-align:left;font-family:"AUPassataRegular";text-decoration:underline;cursor:pointer}.au_flowbox>div>h2{margin:0 0 1rem 0 !important;text-transform:uppercase;border:none !important;padding:0 !important}.au_flowbox .vcard{padding:1rem;background-color:rgba(255,255,255,.95);border:0 none;margin:0 0 1rem 0}.au_flowbox .vcard .fn{font-weight:bold;font-size:1.3636363636rem}.au_flowbox .vcard p{font-family:inherit;font-size:1.2rem;font-weight:normal;line-height:1.6;margin-bottom:1.8181818182rem;text-rendering:optimizeLegibility}.au_flowbox.partner{background:#379fcb}.au_flowbox.partner>div>h2{color:#fff}.au_flowbox.partner>div>p{color:#fff}.au_flowbox.partner>div>p a{color:#fff !important;border-bottom:none !important;text-decoration:underline !important}.au_flowbox.partner>div>ul li{padding-left:0}.au_flowbox.partner>div>ul li::before{display:none}.au_flowbox_data{display:none}.au_staffcontactbox{color:#fff;padding:1.3636364rem;background-color:#379fcb;margin-bottom:1em}.au_staffcontactbox>h2{color:#fff;text-transform:uppercase;margin:0 0 1em 0 !important}.au-modal{position:fixed;z-index:100;left:50%;top:50%;transform:translate(-50%, -50%);width:100%;max-width:1024px;background-color:#fff;padding:1.3636364rem}.au-modal.medium{max-width:800px}.au-modal.small{max-width:400px}.au-modal>:nth-child(2){margin-top:0}.au-modal .close{position:absolute;right:1.3636364rem;font-family:"au_icons";font-size:3rem;margin:0;padding:0;background:transparent !important;color:#000}.spinner{width:4rem;height:4rem;margin:6rem auto;background-color:#656565;border-radius:100%;-webkit-animation:sk-scaleout 1s infinite ease-in-out;animation:sk-scaleout 1s infinite ease-in-out}@-webkit-keyframes sk-scaleout{0%{-webkit-transform:scale(0)}100%{-webkit-transform:scale(1);opacity:0}}@keyframes sk-scaleout{0%{-webkit-transform:scale(0);transform:scale(0)}100%{-webkit-transform:scale(1);transform:scale(1);opacity:0}}.au-filter-checkbox li:not(.visible){display:none}.au-pagination{display:flex;justify-content:space-evenly}.au-pagination .current button{font-weight:bold;text-decoration:underline}@font-face{font-family:"font-awesome";src:url("https://fonts.au.dk/fonts/fa-pro-regular-400.otf");font-weight:400;font-style:normal}.layout13 .au-map,.layout14 .au-map,.layout15 .au-map,.layout16 .au-map,.layout17 .au-map{margin-bottom:1.363636364rem}.layout13 .au-map .react-autosuggest__container,.layout14 .au-map .react-autosuggest__container,.layout15 .au-map .react-autosuggest__container,.layout16 .au-map .react-autosuggest__container,.layout17 .au-map .react-autosuggest__container{margin-bottom:1rem;position:relative}.layout13 .au-map .react-autosuggest__suggestions-container,.layout14 .au-map .react-autosuggest__suggestions-container,.layout15 .au-map .react-autosuggest__suggestions-container,.layout16 .au-map .react-autosuggest__suggestions-container,.layout17 .au-map .react-autosuggest__suggestions-container{max-height:none;overflow:visible}.layout13 .au-map .react-autosuggest__suggestions-container li:nth-child(n+21),.layout14 .au-map .react-autosuggest__suggestions-container li:nth-child(n+21),.layout15 .au-map .react-autosuggest__suggestions-container li:nth-child(n+21),.layout16 .au-map .react-autosuggest__suggestions-container li:nth-child(n+21),.layout17 .au-map .react-autosuggest__suggestions-container li:nth-child(n+21){display:none}.layout13 .au-map .gm-style-iw .au_collapsible,.layout13 .au-map .gm-style-iw hr,.layout14 .au-map .gm-style-iw .au_collapsible,.layout14 .au-map .gm-style-iw hr,.layout15 .au-map .gm-style-iw .au_collapsible,.layout15 .au-map .gm-style-iw hr,.layout16 .au-map .gm-style-iw .au_collapsible,.layout16 .au-map .gm-style-iw hr,.layout17 .au-map .gm-style-iw .au_collapsible,.layout17 .au-map .gm-style-iw hr{display:none}.layout13 .au-map__search,.layout14 .au-map__search,.layout15 .au-map__search,.layout16 .au-map__search,.layout17 .au-map__search{display:flex}.layout13 .au-map__search>div,.layout14 .au-map__search>div,.layout15 .au-map__search>div,.layout16 .au-map__search>div,.layout17 .au-map__search>div{flex-basis:85%}@media(max-width: 640px){.layout13 .au-map__search>div,.layout14 .au-map__search>div,.layout15 .au-map__search>div,.layout16 .au-map__search>div,.layout17 .au-map__search>div{flex-basis:76%}}.layout13 .au-map__search button,.layout14 .au-map__search button,.layout15 .au-map__search button,.layout16 .au-map__search button,.layout17 .au-map__search button{flex-basis:15%;font-family:"AUPassataRegular";border-top:1px solid #ccc;border-right:1px solid #ccc;border-bottom:1px solid #ccc;height:3.5454545464rem;cursor:pointer;background:none;color:#000;padding:0}.layout13 .au-map__search button:hover,.layout14 .au-map__search button:hover,.layout15 .au-map__search button:hover,.layout16 .au-map__search button:hover,.layout17 .au-map__search button:hover{background:none;color:inherit}.layout13 .au-map__search button span::before,.layout14 .au-map__search button span::before,.layout15 .au-map__search button span::before,.layout16 .au-map__search button span::before,.layout17 .au-map__search button span::before{font-family:"font-awesome";content:"";display:inline-block;margin-right:1rem}@media(max-width: 640px){.layout13 .au-map__search button,.layout14 .au-map__search button,.layout15 .au-map__search button,.layout16 .au-map__search button,.layout17 .au-map__search button{flex-basis:24%}}.layout13 .au-map__overlay-buttons,.layout14 .au-map__overlay-buttons,.layout15 .au-map__overlay-buttons,.layout16 .au-map__overlay-buttons,.layout17 .au-map__overlay-buttons{display:flex;flex-wrap:wrap}.layout13 .au-map__overlay-buttons button,.layout14 .au-map__overlay-buttons button,.layout15 .au-map__overlay-buttons button,.layout16 .au-map__overlay-buttons button,.layout17 .au-map__overlay-buttons button{margin-right:1rem}.layout13 .au-map__person-suggestion>div:first-child,.layout14 .au-map__person-suggestion>div:first-child,.layout15 .au-map__person-suggestion>div:first-child,.layout16 .au-map__person-suggestion>div:first-child,.layout17 .au-map__person-suggestion>div:first-child{padding-left:1.363636364rem;width:15%}.layout13 .au-map__person-suggestion>div:last-child,.layout14 .au-map__person-suggestion>div:last-child,.layout15 .au-map__person-suggestion>div:last-child,.layout16 .au-map__person-suggestion>div:last-child,.layout17 .au-map__person-suggestion>div:last-child{padding-left:1.363636364rem;width:85%}.layout13 .au-map__person-suggestion h4,.layout13 .au-map__person-suggestion p,.layout14 .au-map__person-suggestion h4,.layout14 .au-map__person-suggestion p,.layout15 .au-map__person-suggestion h4,.layout15 .au-map__person-suggestion p,.layout16 .au-map__person-suggestion h4,.layout16 .au-map__person-suggestion p,.layout17 .au-map__person-suggestion h4,.layout17 .au-map__person-suggestion p{margin:0}.layout13 .au-map__person-suggestion img,.layout14 .au-map__person-suggestion img,.layout15 .au-map__person-suggestion img,.layout16 .au-map__person-suggestion img,.layout17 .au-map__person-suggestion img{max-width:100px}.layout13 .au-map .vcard>h2,.layout13 .au-map .bld-card>h2,.layout13 .au-map .overlay-card>h2,.layout13 .au-map .top-search>h2,.layout14 .au-map .vcard>h2,.layout14 .au-map .bld-card>h2,.layout14 .au-map .overlay-card>h2,.layout14 .au-map .top-search>h2,.layout15 .au-map .vcard>h2,.layout15 .au-map .bld-card>h2,.layout15 .au-map .overlay-card>h2,.layout15 .au-map .top-search>h2,.layout16 .au-map .vcard>h2,.layout16 .au-map .bld-card>h2,.layout16 .au-map .overlay-card>h2,.layout16 .au-map .top-search>h2,.layout17 .au-map .vcard>h2,.layout17 .au-map .bld-card>h2,.layout17 .au-map .overlay-card>h2,.layout17 .au-map .top-search>h2{margin-top:0}.layout13 .au-map .vcard button,.layout13 .au-map .bld-card button,.layout13 .au-map .overlay-card button,.layout13 .au-map .top-search button,.layout14 .au-map .vcard button,.layout14 .au-map .bld-card button,.layout14 .au-map .overlay-card button,.layout14 .au-map .top-search button,.layout15 .au-map .vcard button,.layout15 .au-map .bld-card button,.layout15 .au-map .overlay-card button,.layout15 .au-map .top-search button,.layout16 .au-map .vcard button,.layout16 .au-map .bld-card button,.layout16 .au-map .overlay-card button,.layout16 .au-map .top-search button,.layout17 .au-map .vcard button,.layout17 .au-map .bld-card button,.layout17 .au-map .overlay-card button,.layout17 .au-map .top-search button{cursor:pointer;text-decoration:underline;font-family:inherit;text-align:left}.layout13 .au-map .vcard strong button,.layout13 .au-map .bld-card strong button,.layout13 .au-map .overlay-card strong button,.layout13 .au-map .top-search strong button,.layout14 .au-map .vcard strong button,.layout14 .au-map .bld-card strong button,.layout14 .au-map .overlay-card strong button,.layout14 .au-map .top-search strong button,.layout15 .au-map .vcard strong button,.layout15 .au-map .bld-card strong button,.layout15 .au-map .overlay-card strong button,.layout15 .au-map .top-search strong button,.layout16 .au-map .vcard strong button,.layout16 .au-map .bld-card strong button,.layout16 .au-map .overlay-card strong button,.layout16 .au-map .top-search strong button,.layout17 .au-map .vcard strong button,.layout17 .au-map .bld-card strong button,.layout17 .au-map .overlay-card strong button,.layout17 .au-map .top-search strong button{font-weight:bold}@media(max-width: 640px){.layout13 .au-map .vcard,.layout13 .au-map .bld-card,.layout13 .au-map .overlay-card,.layout13 .au-map .top-search,.layout14 .au-map .vcard,.layout14 .au-map .bld-card,.layout14 .au-map .overlay-card,.layout14 .au-map .top-search,.layout15 .au-map .vcard,.layout15 .au-map .bld-card,.layout15 .au-map .overlay-card,.layout15 .au-map .top-search,.layout16 .au-map .vcard,.layout16 .au-map .bld-card,.layout16 .au-map .overlay-card,.layout16 .au-map .top-search,.layout17 .au-map .vcard,.layout17 .au-map .bld-card,.layout17 .au-map .overlay-card,.layout17 .au-map .top-search{padding:1.363636364rem 0}}.layout13 .au-map .vcard img,.layout14 .au-map .vcard img,.layout15 .au-map .vcard img,.layout16 .au-map .vcard img,.layout17 .au-map .vcard img{float:right;margin-left:1.363636364rem;margin-bottom:1.363636364rem;max-width:120px}.layout13 .au-map .vcard::after,.layout14 .au-map .vcard::after,.layout15 .au-map .vcard::after,.layout16 .au-map .vcard::after,.layout17 .au-map .vcard::after{display:block;content:"";clear:both}.layout13 .au-map__route,.layout14 .au-map__route,.layout15 .au-map__route,.layout16 .au-map__route,.layout17 .au-map__route{margin-bottom:1.363636364rem}.layout13 .au-map .show-on-map,.layout14 .au-map .show-on-map,.layout15 .au-map .show-on-map,.layout16 .au-map .show-on-map,.layout17 .au-map .show-on-map{display:none}.layout13 .au-map .au_collapsible .csc-header+*,.layout14 .au-map .au_collapsible .csc-header+*,.layout15 .au-map .au_collapsible .csc-header+*,.layout16 .au-map .au_collapsible .csc-header+*,.layout17 .au-map .au_collapsible .csc-header+*{position:relative;max-height:350px;overflow-y:auto}.layout13 .au-map__directions-panel,.layout14 .au-map__directions-panel,.layout15 .au-map__directions-panel,.layout16 .au-map__directions-panel,.layout17 .au-map__directions-panel{display:flex;flex-wrap:wrap;padding:1rem 0 1rem 1rem;margin-bottom:1rem;border:1px solid #cacaca}.layout13 .au-map__directions-panel__modes-of-transportation,.layout14 .au-map__directions-panel__modes-of-transportation,.layout15 .au-map__directions-panel__modes-of-transportation,.layout16 .au-map__directions-panel__modes-of-transportation,.layout17 .au-map__directions-panel__modes-of-transportation{flex-basis:100%;display:flex}.layout13 .au-map__directions-panel__from-to,.layout14 .au-map__directions-panel__from-to,.layout15 .au-map__directions-panel__from-to,.layout16 .au-map__directions-panel__from-to,.layout17 .au-map__directions-panel__from-to{flex-basis:85%}.layout13 .au-map__directions-panel__swap,.layout14 .au-map__directions-panel__swap,.layout15 .au-map__directions-panel__swap,.layout16 .au-map__directions-panel__swap,.layout17 .au-map__directions-panel__swap{flex-basis:15%;display:flex;align-items:center;justify-content:center}.layout13 .au-map__directions-panel .button-route,.layout14 .au-map__directions-panel .button-route,.layout15 .au-map__directions-panel .button-route,.layout16 .au-map__directions-panel .button-route,.layout17 .au-map__directions-panel .button-route{background-color:transparent;color:#878787;height:3rem;overflow:hidden;padding:0;margin-right:1rem;display:inline-flex;border:none}.layout13 .au-map__directions-panel .button-route--selected,.layout14 .au-map__directions-panel .button-route--selected,.layout15 .au-map__directions-panel .button-route--selected,.layout16 .au-map__directions-panel .button-route--selected,.layout17 .au-map__directions-panel .button-route--selected{border-bottom:2px solid #000}.layout13 .au-map__directions-panel .button-route::before,.layout14 .au-map__directions-panel .button-route::before,.layout15 .au-map__directions-panel .button-route::before,.layout16 .au-map__directions-panel .button-route::before,.layout17 .au-map__directions-panel .button-route::before{font-family:"font-awesome";font-size:2rem;display:inline-block}.layout13 .au-map__directions-panel .button-route--car,.layout14 .au-map__directions-panel .button-route--car,.layout15 .au-map__directions-panel .button-route--car,.layout16 .au-map__directions-panel .button-route--car,.layout17 .au-map__directions-panel .button-route--car{width:22px}.layout13 .au-map__directions-panel .button-route--car::before,.layout14 .au-map__directions-panel .button-route--car::before,.layout15 .au-map__directions-panel .button-route--car::before,.layout16 .au-map__directions-panel .button-route--car::before,.layout17 .au-map__directions-panel .button-route--car::before{content:""}.layout13 .au-map__directions-panel .button-route--walk,.layout14 .au-map__directions-panel .button-route--walk,.layout15 .au-map__directions-panel .button-route--walk,.layout16 .au-map__directions-panel .button-route--walk,.layout17 .au-map__directions-panel .button-route--walk{width:13px}.layout13 .au-map__directions-panel .button-route--walk::before,.layout14 .au-map__directions-panel .button-route--walk::before,.layout15 .au-map__directions-panel .button-route--walk::before,.layout16 .au-map__directions-panel .button-route--walk::before,.layout17 .au-map__directions-panel .button-route--walk::before{content:""}.layout13 .au-map__directions-panel .button-route--bicycle,.layout14 .au-map__directions-panel .button-route--bicycle,.layout15 .au-map__directions-panel .button-route--bicycle,.layout16 .au-map__directions-panel .button-route--bicycle,.layout17 .au-map__directions-panel .button-route--bicycle{width:27px}.layout13 .au-map__directions-panel .button-route--bicycle::before,.layout14 .au-map__directions-panel .button-route--bicycle::before,.layout15 .au-map__directions-panel .button-route--bicycle::before,.layout16 .au-map__directions-panel .button-route--bicycle::before,.layout17 .au-map__directions-panel .button-route--bicycle::before{content:""}.layout13 .au-map__directions-panel .button-route--public,.layout14 .au-map__directions-panel .button-route--public,.layout15 .au-map__directions-panel .button-route--public,.layout16 .au-map__directions-panel .button-route--public,.layout17 .au-map__directions-panel .button-route--public{width:22px;padding-top:4px}.layout13 .au-map__directions-panel .button-route--public::before,.layout14 .au-map__directions-panel .button-route--public::before,.layout15 .au-map__directions-panel .button-route--public::before,.layout16 .au-map__directions-panel .button-route--public::before,.layout17 .au-map__directions-panel .button-route--public::before{content:""}.layout13 .au-map__directions-panel .button-route--close,.layout14 .au-map__directions-panel .button-route--close,.layout15 .au-map__directions-panel .button-route--close,.layout16 .au-map__directions-panel .button-route--close,.layout17 .au-map__directions-panel .button-route--close{margin-left:auto;width:14px}.layout13 .au-map__directions-panel .button-route--close::before,.layout14 .au-map__directions-panel .button-route--close::before,.layout15 .au-map__directions-panel .button-route--close::before,.layout16 .au-map__directions-panel .button-route--close::before,.layout17 .au-map__directions-panel .button-route--close::before{content:""}.layout13 .au-map__directions-panel .button-route--swap,.layout14 .au-map__directions-panel .button-route--swap,.layout15 .au-map__directions-panel .button-route--swap,.layout16 .au-map__directions-panel .button-route--swap,.layout17 .au-map__directions-panel .button-route--swap{margin:0 0 1.45455rem 0;width:24px}.layout13 .au-map__directions-panel .button-route--swap::before,.layout14 .au-map__directions-panel .button-route--swap::before,.layout15 .au-map__directions-panel .button-route--swap::before,.layout16 .au-map__directions-panel .button-route--swap::before,.layout17 .au-map__directions-panel .button-route--swap::before{font-size:3rem;content:""}.layout13 .au-map__suggestion,.layout14 .au-map__suggestion,.layout15 .au-map__suggestion,.layout16 .au-map__suggestion,.layout17 .au-map__suggestion{display:inline-block}.layout13 .au-map__suggestion::before,.layout14 .au-map__suggestion::before,.layout15 .au-map__suggestion::before,.layout16 .au-map__suggestion::before,.layout17 .au-map__suggestion::before{font-family:"font-awesome";display:inline-block;margin-right:.5rem}.layout13 .au-map__suggestion__building::before,.layout14 .au-map__suggestion__building::before,.layout15 .au-map__suggestion__building::before,.layout16 .au-map__suggestion__building::before,.layout17 .au-map__suggestion__building::before{content:""}.layout13 .au-map__suggestion__department::before,.layout14 .au-map__suggestion__department::before,.layout15 .au-map__suggestion__department::before,.layout16 .au-map__suggestion__department::before,.layout17 .au-map__suggestion__department::before{content:""}.layout13 .au-map__suggestion__denmark::before,.layout14 .au-map__suggestion__denmark::before,.layout15 .au-map__suggestion__denmark::before,.layout16 .au-map__suggestion__denmark::before,.layout17 .au-map__suggestion__denmark::before{content:""}.layout13 .au-map__suggestion__denmark::before,.layout14 .au-map__suggestion__denmark::before,.layout15 .au-map__suggestion__denmark::before,.layout16 .au-map__suggestion__denmark::before,.layout17 .au-map__suggestion__denmark::before{content:""}.layout13 .au-map__suggestion__lecture-hall::before,.layout14 .au-map__suggestion__lecture-hall::before,.layout15 .au-map__suggestion__lecture-hall::before,.layout16 .au-map__suggestion__lecture-hall::before,.layout17 .au-map__suggestion__lecture-hall::before{content:""}.layout13 .au-map__suggestion__library::before,.layout14 .au-map__suggestion__library::before,.layout15 .au-map__suggestion__library::before,.layout16 .au-map__suggestion__library::before,.layout17 .au-map__suggestion__library::before{content:""}.layout13 .au-map__suggestion__friday-bar::before,.layout14 .au-map__suggestion__friday-bar::before,.layout15 .au-map__suggestion__friday-bar::before,.layout16 .au-map__suggestion__friday-bar::before,.layout17 .au-map__suggestion__friday-bar::before{content:""}.layout13 .au-map__suggestion__study-place::before,.layout14 .au-map__suggestion__study-place::before,.layout15 .au-map__suggestion__study-place::before,.layout16 .au-map__suggestion__study-place::before,.layout17 .au-map__suggestion__study-place::before{content:""}.layout13 .au-map__suggestion__canteen::before,.layout14 .au-map__suggestion__canteen::before,.layout15 .au-map__suggestion__canteen::before,.layout16 .au-map__suggestion__canteen::before,.layout17 .au-map__suggestion__canteen::before{content:""}.layout13 .au-map__suggestion__counselling::before,.layout14 .au-map__suggestion__counselling::before,.layout15 .au-map__suggestion__counselling::before,.layout16 .au-map__suggestion__counselling::before,.layout17 .au-map__suggestion__counselling::before{content:""}.layout13 .au-map__suggestion__it-support::before,.layout14 .au-map__suggestion__it-support::before,.layout15 .au-map__suggestion__it-support::before,.layout16 .au-map__suggestion__it-support::before,.layout17 .au-map__suggestion__it-support::before{content:""}.layout13 .au-map__suggestion__myprint::before,.layout14 .au-map__suggestion__myprint::before,.layout15 .au-map__suggestion__myprint::before,.layout16 .au-map__suggestion__myprint::before,.layout17 .au-map__suggestion__myprint::before{content:""}.layout13 .au-map.find-container>.row>.column,.layout13 .dropdown-pane .find-container>.row>.column,.layout14 .au-map.find-container>.row>.column,.layout14 .dropdown-pane .find-container>.row>.column,.layout15 .au-map.find-container>.row>.column,.layout15 .dropdown-pane .find-container>.row>.column,.layout16 .au-map.find-container>.row>.column,.layout16 .dropdown-pane .find-container>.row>.column,.layout17 .au-map.find-container>.row>.column,.layout17 .dropdown-pane .find-container>.row>.column{position:relative}.layout13 .au-map.find-container h3,.layout13 .dropdown-pane .find-container h3,.layout14 .au-map.find-container h3,.layout14 .dropdown-pane .find-container h3,.layout15 .au-map.find-container h3,.layout15 .dropdown-pane .find-container h3,.layout16 .au-map.find-container h3,.layout16 .dropdown-pane .find-container h3,.layout17 .au-map.find-container h3,.layout17 .dropdown-pane .find-container h3{margin-top:0}.layout13 .au-map.find-container .au-map__person-suggestion img,.layout13 .dropdown-pane .find-container .au-map__person-suggestion img,.layout14 .au-map.find-container .au-map__person-suggestion img,.layout14 .dropdown-pane .find-container .au-map__person-suggestion img,.layout15 .au-map.find-container .au-map__person-suggestion img,.layout15 .dropdown-pane .find-container .au-map__person-suggestion img,.layout16 .au-map.find-container .au-map__person-suggestion img,.layout16 .dropdown-pane .find-container .au-map__person-suggestion img,.layout17 .au-map.find-container .au-map__person-suggestion img,.layout17 .dropdown-pane .find-container .au-map__person-suggestion img{max-width:30px}.layout13 .au-map.find-container .react-autosuggest__suggestions-container li,.layout13 .dropdown-pane .find-container .react-autosuggest__suggestions-container li,.layout14 .au-map.find-container .react-autosuggest__suggestions-container li,.layout14 .dropdown-pane .find-container .react-autosuggest__suggestions-container li,.layout15 .au-map.find-container .react-autosuggest__suggestions-container li,.layout15 .dropdown-pane .find-container .react-autosuggest__suggestions-container li,.layout16 .au-map.find-container .react-autosuggest__suggestions-container li,.layout16 .dropdown-pane .find-container .react-autosuggest__suggestions-container li,.layout17 .au-map.find-container .react-autosuggest__suggestions-container li,.layout17 .dropdown-pane .find-container .react-autosuggest__suggestions-container li{margin-bottom:0}.layout13 .au-map.find-container .vcard,.layout13 .au-map.find-container .bld-card,.layout13 .dropdown-pane .find-container .vcard,.layout13 .dropdown-pane .find-container .bld-card,.layout14 .au-map.find-container .vcard,.layout14 .au-map.find-container .bld-card,.layout14 .dropdown-pane .find-container .vcard,.layout14 .dropdown-pane .find-container .bld-card,.layout15 .au-map.find-container .vcard,.layout15 .au-map.find-container .bld-card,.layout15 .dropdown-pane .find-container .vcard,.layout15 .dropdown-pane .find-container .bld-card,.layout16 .au-map.find-container .vcard,.layout16 .au-map.find-container .bld-card,.layout16 .dropdown-pane .find-container .vcard,.layout16 .dropdown-pane .find-container .bld-card,.layout17 .au-map.find-container .vcard,.layout17 .au-map.find-container .bld-card,.layout17 .dropdown-pane .find-container .vcard,.layout17 .dropdown-pane .find-container .bld-card{margin-top:1.363636364rem;padding:1rem;background:#fff;color:#333;font-size:1.25rem;font-family:Georgia,"Times New Roman",Times,serif}.layout13 .au-map.find-container .vcard hr,.layout13 .au-map.find-container .bld-card hr,.layout13 .dropdown-pane .find-container .vcard hr,.layout13 .dropdown-pane .find-container .bld-card hr,.layout14 .au-map.find-container .vcard hr,.layout14 .au-map.find-container .bld-card hr,.layout14 .dropdown-pane .find-container .vcard hr,.layout14 .dropdown-pane .find-container .bld-card hr,.layout15 .au-map.find-container .vcard hr,.layout15 .au-map.find-container .bld-card hr,.layout15 .dropdown-pane .find-container .vcard hr,.layout15 .dropdown-pane .find-container .bld-card hr,.layout16 .au-map.find-container .vcard hr,.layout16 .au-map.find-container .bld-card hr,.layout16 .dropdown-pane .find-container .vcard hr,.layout16 .dropdown-pane .find-container .bld-card hr,.layout17 .au-map.find-container .vcard hr,.layout17 .au-map.find-container .bld-card hr,.layout17 .dropdown-pane .find-container .vcard hr,.layout17 .dropdown-pane .find-container .bld-card hr{display:none}.layout13 .au-map.find-container .vcard img,.layout13 .au-map.find-container .bld-card img,.layout13 .dropdown-pane .find-container .vcard img,.layout13 .dropdown-pane .find-container .bld-card img,.layout14 .au-map.find-container .vcard img,.layout14 .au-map.find-container .bld-card img,.layout14 .dropdown-pane .find-container .vcard img,.layout14 .dropdown-pane .find-container .bld-card img,.layout15 .au-map.find-container .vcard img,.layout15 .au-map.find-container .bld-card img,.layout15 .dropdown-pane .find-container .vcard img,.layout15 .dropdown-pane .find-container .bld-card img,.layout16 .au-map.find-container .vcard img,.layout16 .au-map.find-container .bld-card img,.layout16 .dropdown-pane .find-container .vcard img,.layout16 .dropdown-pane .find-container .bld-card img,.layout17 .au-map.find-container .vcard img,.layout17 .au-map.find-container .bld-card img,.layout17 .dropdown-pane .find-container .vcard img,.layout17 .dropdown-pane .find-container .bld-card img{width:70px;float:right;margin-left:1rem}.layout13 .au-map.find-container .vcard a,.layout13 .au-map.find-container .bld-card a,.layout13 .dropdown-pane .find-container .vcard a,.layout13 .dropdown-pane .find-container .bld-card a,.layout14 .au-map.find-container .vcard a,.layout14 .au-map.find-container .bld-card a,.layout14 .dropdown-pane .find-container .vcard a,.layout14 .dropdown-pane .find-container .bld-card a,.layout15 .au-map.find-container .vcard a,.layout15 .au-map.find-container .bld-card a,.layout15 .dropdown-pane .find-container .vcard a,.layout15 .dropdown-pane .find-container .bld-card a,.layout16 .au-map.find-container .vcard a,.layout16 .au-map.find-container .bld-card a,.layout16 .dropdown-pane .find-container .vcard a,.layout16 .dropdown-pane .find-container .bld-card a,.layout17 .au-map.find-container .vcard a,.layout17 .au-map.find-container .bld-card a,.layout17 .dropdown-pane .find-container .vcard a,.layout17 .dropdown-pane .find-container .bld-card a{color:#000 !important;text-decoration:underline}
|
|
2
|
+
|
|
3
3
|
/*# sourceMappingURL=all.css.map*/
|
package/build/umd/all.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var o=t();for(var r in o)("object"==typeof exports?exports:e)[r]=o[r]}}(self,(function(){return(()=>{"use strict";var e={422:(e,t,o)=>{o.r(t)}},t={};function o(r){if(t[r])return t[r].exports;var n=t[r]={exports:{}};return e[r](n,n.exports,o),n.exports}return o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o(422)})()}));
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var o=t();for(var r in o)("object"==typeof exports?exports:e)[r]=o[r]}}(self,(function(){return(()=>{"use strict";var e={422:(e,t,o)=>{o.r(t)}},t={};function o(r){if(t[r])return t[r].exports;var n=t[r]={exports:{}};return e[r](n,n.exports,o),n.exports}return o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o(422)})()}));
|
|
2
2
|
//# sourceMappingURL=all.js.map
|
package/build/umd/alphabox.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("axios"),require("react"),require("react-dom"));else if("function"==typeof define&&define.amd)define(["axios","react","react-dom"],t);else{var n="object"==typeof exports?t(require("axios"),require("react"),require("react-dom")):t(e.axios,e.React,e.ReactDOM);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(self,(function(e,t,n){return(()=>{var r={44:(e,t,n)=>{"use strict";n.r(t);var r=n(383),o=n.n(r),i=n(949),u=n.n(i),s=n(697),a=n.n(s),c=n(376),l=n.n(c);const{serviceScopeProfile:g}=window,f=(e,t)=>void 0!==e.name&&void 0!==t.name?e.name.toLowerCase().localeCompare(t.name.toLowerCase(),"da",{ignorePunctuation:!0}):0;class p extends o().Component{constructor(e){super(e),this.letters=["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","æ","ø","å"],this.state={letterIndex:-1}}render(){const{letterIndex:e}=this.state,{items:t,linkColor:n}=this.props,r=this.letters.map(((r,i)=>{const u=t.filter((e=>0===e.name.toLowerCase().indexOf(r))).length>0;let s="";u&&(s+="available"),i===e&&(s+=" active");let a={};return u&&(a=e===i?{backgroundColor:"#fff",color:n}:{backgroundColor:n}),o().createElement("li",{key:r,className:s},o().createElement("button",{type:"button",style:a,onClick:()=>{u&&this.setState({letterIndex:i})}},r))}));let i=[];e>-1&&(i=t.filter((t=>0===t.name.toLowerCase().indexOf(this.letters[e]))));const u=i.sort(f).map(((e,t)=>{const n=t,r=e.children.map((e=>o().createElement("li",{key:e.name},o().createElement("a",{href:e.url},e.name))));return e.children.length>0?o().createElement("li",{key:n},o().createElement("a",{href:e.url},e.name),o().createElement("ul",null,r)):o().createElement("li",{key:n},o().createElement("a",{href:e.url},e.name))}));return o().createElement("div",{className:"au_alphabox_content"},o().createElement("ul",{className:"letters"},r),e>-1?o().createElement("div",null,o().createElement("ul",{className:"items"},u)):null)}}p.propTypes={linkColor:a().string.isRequired,items:a().arrayOf(a().shape({name:a().string.isRequired,url:a().string.isRequired})).isRequired},p.displayName="AlphaBoxContentComponent";const d=p;var h=n(808),m=n.n(h),y=n(296),b=n.n(y);class v extends o().Component{constructor(e){super(e),this.state={value:"",suggestions:[]},this.onChange=this.onChange.bind(this),this.onSuggestionsFetchRequested=b()(this.onSuggestionsFetchRequested.bind(this),400),this.onSuggestionsClearRequested=this.onSuggestionsClearRequested.bind(this),this.onSuggestionSelected=this.onSuggestionSelected.bind(this)}onChange(e,{newValue:t}){const{setQuery:n}=this.props;this.setState({value:t},(()=>{n(t)}))}onSuggestionsFetchRequested({value:e}){const{getSuggestions:t,collection:n}=this.props;t(e,n,(e=>{this.setState({suggestions:e})}))}onSuggestionsClearRequested(){this.setState({suggestions:[]})}onSuggestionSelected(e,{suggestion:t}){const{setResults:n,clearInput:r}=this.props;n([t]),r&&this.setState({value:""})}render(){const{value:e,suggestions:t}=this.state,{placeholder:n,getSuggestionValue:r,renderSuggestion:i,id:u,theme:s,type:a,initialValue:c,disabled:l}=this.props,g={placeholder:n,value:c||e,id:u,type:a,disabled:l,"aria-label":n,onChange:this.onChange};return o().createElement(m(),{suggestions:t,onSuggestionsFetchRequested:this.onSuggestionsFetchRequested,onSuggestionsClearRequested:this.onSuggestionsClearRequested,onSuggestionSelected:this.onSuggestionSelected,getSuggestionValue:r,renderSuggestion:i,inputProps:g,theme:s})}}v.displayName="AutoSuggestComponent",v.defaultProps={id:"autosuggest1",theme:{container:"react-autosuggest__container",containerOpen:"react-autosuggest__container--open",input:"react-autosuggest__input",inputOpen:"react-autosuggest__input--open",inputFocused:"react-autosuggest__input--focused",suggestionsContainer:"react-autosuggest__suggestions-container",suggestionsContainerOpen:"react-autosuggest__suggestions-container--open",suggestionsList:"react-autosuggest__suggestions-list",suggestion:"react-autosuggest__suggestion",suggestionFirst:"react-autosuggest__suggestion--first",suggestionHighlighted:"react-autosuggest__suggestion--highlighted",sectionContainer:"react-autosuggest__section-container",sectionContainerFirst:"react-autosuggest__section-container--first",sectionTitle:"react-autosuggest__section-title"},clearInput:!1,type:"text",initialValue:"",disabled:!1},v.propTypes={setQuery:a().func.isRequired,getSuggestions:a().func.isRequired,getSuggestionValue:a().func.isRequired,renderSuggestion:a().func.isRequired,setResults:a().func.isRequired,collection:a().arrayOf(a().any).isRequired,placeholder:a().string.isRequired,id:a().string,theme:a().shape({}),clearInput:a().bool,type:a().string,initialValue:a().string,disabled:a().bool};const S=v;class O extends o().Component{constructor(e){super(e),this.state={item:e.item}}static getDerivedStateFromProps(e,t){return e.item.id!==t.item.id?{item:e.item}:null}render(){const{item:e}=this.state;return o().createElement("span",null,e.name)}}O.propTypes={item:a().shape({id:a().number.isRequired}).isRequired},O.displayName="DataBoxSuggestionComponent";const w=O;class I extends o().Component{constructor(e){super(e),this.state={items:[]},this.getSuggestions=this.getSuggestions.bind(this)}componentDidMount(){const{box:e}=this.props,{data:t}=e;"json"===t.mode&&""!==t.source&&(t.itemsOnly&&(t.source+="?itemsOnly=true"),l().get(t.source).then((e=>{const{data:t}=e;this.setState({items:t.items})})))}getSuggestions(e,t,n){const{items:r}=this.state,o=e.trim().toLowerCase();n(o.length<2?[]:r.filter((e=>e.name.toLowerCase().indexOf(o)>-1)).sort(((e,t)=>e.name.toLowerCase().localeCompare(t.name.toLowerCase(),"da",{ignorePunctuation:!0}))))}render(){const{box:e}=this.props,{items:t}=this.state,{config:n}=e,r=n.links.map((t=>o().createElement("li",{key:t.title},o().createElement("a",{href:t.url,onClick:()=>{"function"==typeof t.onClick&&t.onClick()},style:{backgroundColor:e.background.linkColor}},t.title))));return o().createElement("div",{className:"au_alphabox",style:{backgroundColor:e.background.color}},o().createElement("div",null,o().createElement("h2",null,o().createElement("a",{href:n.url},n.title)),""!==n.description?o().createElement("p",null,n.description):null,n.links.length>0?o().createElement("ul",{className:"quicklinks resetlist"},r):null,o().createElement(d,{items:t,linkColor:e.background.linkColor}),o().createElement(S,{placeholder:e.search.placeHolder,setQuery:()=>{},setResults:e=>{1===e.length&&e[0].url&&(window.location.href=e[0].url)},collection:[],getSuggestions:this.getSuggestions,getSuggestionValue:e=>e.name,renderSuggestion:e=>o().createElement(w,{item:e})})))}}I.propTypes={box:a().shape({id:a().number.isRequired,data:a().shape({itemsOnly:a().bool.isRequired,mode:a().string.isRequired,source:a().string.isRequired}),config:a().shape({name:a().string.isRequired,url:a().string.isRequired,description:a().string.isRequired,container:a().string.isRequired,tracking:a().string.isRequired,links:a().arrayOf(a().shape({title:a().string.isRequired,url:a().string.isRequired})).isRequired,title:a().string.isRequired}).isRequired,background:a().shape({color:a().string.isRequired,linkColor:a().string.isRequired}).isRequired,search:a().shape({placeHolder:a().string.isRequired,minLength:a().number.isRequired}).isRequired}).isRequired},I.displayName="AlphaBoxComponent";const j=I,P={config:{title:"",url:"",description:"",container:".au_alphabox",tracking:"/virtual/alphabox/",links:[{title:"Link 1",url:"http://www.au.dk"},{title:"Link 2",url:"http://www.au.dk"}]},search:{minLength:1,placeHolder:""},background:{color:"#003e5c",linkColor:"#379fcb"},data:{mode:"json",itemsOnly:!1}};class _{constructor(e){this.boxes=e}static mergeOptions(e){const t=e;t.hasOwnProperty("config")||(t.config={});for(const e in P.config)t.config.hasOwnProperty(e)||(t.config[e]=P.config[e]);t.hasOwnProperty("background")||(t.background={});for(const e in P.background)t.background.hasOwnProperty(e)||(t.background[e]=P.background[e]);t.hasOwnProperty("search")||(t.search={});for(const e in P.search)t.search.hasOwnProperty(e)||(t.search[e]=P.search[e]);t.hasOwnProperty("data")||(t.data={});for(const e in P.data)t.data.hasOwnProperty(e)||(t.data[e]=P.data[e])}init(){for(let e=0;e<this.boxes.length;e+=1){const t=this.boxes[e];if(!t.loaded){t.id=e,_.mergeOptions(t);const n=document.querySelector(t.config.container);n&&"hidden"!==getComputedStyle(n).visibility&&(u().render(o().createElement(j,{box:t}),n),t.loaded=!0)}}}}window.AUAlphabox=_},296:(e,t,n)=>{var r=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,u=/^0o[0-7]+$/i,s=parseInt,a="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,c="object"==typeof self&&self&&self.Object===Object&&self,l=a||c||Function("return this")(),g=Object.prototype.toString,f=Math.max,p=Math.min,d=function(){return l.Date.now()};function h(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function m(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==g.call(e)}(e))return NaN;if(h(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=h(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var n=i.test(e);return n||u.test(e)?s(e.slice(2),n?2:8):o.test(e)?NaN:+e}e.exports=function(e,t,n){var r,o,i,u,s,a,c=0,l=!1,g=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function b(t){var n=r,i=o;return r=o=void 0,c=t,u=e.apply(i,n)}function v(e){return c=e,s=setTimeout(O,t),l?b(e):u}function S(e){var n=e-a;return void 0===a||n>=t||n<0||g&&e-c>=i}function O(){var e=d();if(S(e))return w(e);s=setTimeout(O,function(e){var n=t-(e-a);return g?p(n,i-(e-c)):n}(e))}function w(e){return s=void 0,y&&r?b(e):(r=o=void 0,u)}function I(){var e=d(),n=S(e);if(r=arguments,o=this,a=e,n){if(void 0===s)return v(a);if(g)return s=setTimeout(O,t),b(a)}return void 0===s&&(s=setTimeout(O,t)),u}return t=m(t)||0,h(n)&&(l=!!n.leading,i=(g="maxWait"in n)?f(m(n.maxWait)||0,t):i,y="trailing"in n?!!n.trailing:y),I.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=a=o=s=void 0},I.flush=function(){return void 0===s?u:w(d())},I}},703:(e,t,n)=>{"use strict";var r=n(414);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,u){if(u!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},697:(e,t,n)=>{e.exports=n(703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},394:(e,t,n)=>{"use strict";t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==l(e)&&"function"!=typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(n(383)),o=a(n(697)),i=a(n(444)),u=a(n(402)),s=n(581);function a(e){return e&&e.__esModule?e:{default:e}}function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?h(e):t}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S=function(){return!0},O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(c,e);var t,n,o,a=(t=c,function(){var e,n=y(t);if(m()){var r=y(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return d(this,e)});function c(e){var t,n=e.alwaysRenderSuggestions;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),v(h(t=a.call(this)),"onDocumentMouseDown",(function(e){t.justClickedOnSuggestionsContainer=!1;for(var n=e.detail&&e.detail.target||e.target;null!==n&&n!==document;){if(n.getAttribute&&null!==n.getAttribute("data-suggestion-index"))return;if(n===t.suggestionsContainer)return void(t.justClickedOnSuggestionsContainer=!0);n=n.parentNode}})),v(h(t),"storeAutowhateverRef",(function(e){null!==e&&(t.autowhatever=e)})),v(h(t),"onSuggestionMouseEnter",(function(e,n){var r=n.sectionIndex,o=n.itemIndex;t.updateHighlightedSuggestion(r,o),e.target===t.pressedSuggestion&&(t.justSelectedSuggestion=!0),t.justMouseEntered=!0,setTimeout((function(){t.justMouseEntered=!1}))})),v(h(t),"highlightFirstSuggestion",(function(){t.updateHighlightedSuggestion(t.props.multiSection?0:null,0)})),v(h(t),"onDocumentMouseUp",(function(){t.pressedSuggestion&&!t.justSelectedSuggestion&&t.input.focus(),t.pressedSuggestion=null})),v(h(t),"onSuggestionMouseDown",(function(e){t.justSelectedSuggestion||(t.justSelectedSuggestion=!0,t.pressedSuggestion=e.target)})),v(h(t),"onSuggestionsClearRequested",(function(){var e=t.props.onSuggestionsClearRequested;e&&e()})),v(h(t),"onSuggestionSelected",(function(e,n){var r=t.props,o=r.alwaysRenderSuggestions,i=r.onSuggestionSelected,u=r.onSuggestionsFetchRequested;i&&i(e,n),o?u({value:n.suggestionValue,reason:"suggestion-selected"}):t.onSuggestionsClearRequested(),t.resetHighlightedSuggestion()})),v(h(t),"onSuggestionClick",(function(e){var n=t.props,r=n.alwaysRenderSuggestions,o=n.focusInputOnSuggestionClick,i=t.getSuggestionIndices(t.findSuggestionElement(e.target)),u=i.sectionIndex,s=i.suggestionIndex,a=t.getSuggestion(u,s),c=t.props.getSuggestionValue(a);t.maybeCallOnChange(e,c,"click"),t.onSuggestionSelected(e,{suggestion:a,suggestionValue:c,suggestionIndex:s,sectionIndex:u,method:"click"}),r||t.closeSuggestions(),!0===o?t.input.focus():t.onBlur(),setTimeout((function(){t.justSelectedSuggestion=!1}))})),v(h(t),"onBlur",(function(){var e=t.props,n=e.inputProps,r=e.shouldRenderSuggestions,o=n.value,i=n.onBlur,u=t.getHighlightedSuggestion(),s=r(o);t.setState({isFocused:!1,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!s}),i&&i(t.blurEvent,{highlightedSuggestion:u})})),v(h(t),"onSuggestionMouseLeave",(function(e){t.resetHighlightedSuggestion(!1),t.justSelectedSuggestion&&e.target===t.pressedSuggestion&&(t.justSelectedSuggestion=!1)})),v(h(t),"onSuggestionTouchStart",(function(){t.justSelectedSuggestion=!0})),v(h(t),"onSuggestionTouchMove",(function(){t.justSelectedSuggestion=!1,t.pressedSuggestion=null,t.input.focus()})),v(h(t),"itemProps",(function(e){return{"data-section-index":e.sectionIndex,"data-suggestion-index":e.itemIndex,onMouseEnter:t.onSuggestionMouseEnter,onMouseLeave:t.onSuggestionMouseLeave,onMouseDown:t.onSuggestionMouseDown,onTouchStart:t.onSuggestionTouchStart,onTouchMove:t.onSuggestionTouchMove,onClick:t.onSuggestionClick}})),v(h(t),"renderSuggestionsContainer",(function(e){var n=e.containerProps,r=e.children;return(0,t.props.renderSuggestionsContainer)({containerProps:n,children:r,query:t.getQuery()})})),t.state={isFocused:!1,isCollapsed:!n,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null},t.justPressedUpDown=!1,t.justMouseEntered=!1,t.pressedSuggestion=null,t}return n=c,(o=[{key:"componentDidMount",value:function(){document.addEventListener("mousedown",this.onDocumentMouseDown),document.addEventListener("mouseup",this.onDocumentMouseUp),this.input=this.autowhatever.input,this.suggestionsContainer=this.autowhatever.itemsContainer}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){(0,i.default)(e.suggestions,this.props.suggestions)?e.highlightFirstSuggestion&&e.suggestions.length>0&&!1===this.justPressedUpDown&&!1===this.justMouseEntered&&this.highlightFirstSuggestion():this.willRenderSuggestions(e)?this.state.isCollapsed&&!this.justSelectedSuggestion&&this.revealSuggestions():this.resetHighlightedSuggestion()}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,r=n.suggestions,o=n.onSuggestionHighlighted,u=n.highlightFirstSuggestion;if(!(0,i.default)(r,e.suggestions)&&r.length>0&&u)this.highlightFirstSuggestion();else if(o){var s=this.getHighlightedSuggestion();s!=t.highlightedSuggestion&&o({suggestion:s})}}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mousedown",this.onDocumentMouseDown),document.removeEventListener("mouseup",this.onDocumentMouseUp)}},{key:"updateHighlightedSuggestion",value:function(e,t,n){var r=this;this.setState((function(o){var i=o.valueBeforeUpDown;return null===t?i=null:null===i&&void 0!==n&&(i=n),{highlightedSectionIndex:e,highlightedSuggestionIndex:t,highlightedSuggestion:null===t?null:r.getSuggestion(e,t),valueBeforeUpDown:i}}))}},{key:"resetHighlightedSuggestion",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.setState((function(t){var n=t.valueBeforeUpDown;return{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:e?null:n}}))}},{key:"revealSuggestions",value:function(){this.setState({isCollapsed:!1})}},{key:"closeSuggestions",value:function(){this.setState({highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!0})}},{key:"getSuggestion",value:function(e,t){var n=this.props,r=n.suggestions,o=n.multiSection,i=n.getSectionSuggestions;return o?i(r[e])[t]:r[t]}},{key:"getHighlightedSuggestion",value:function(){var e=this.state,t=e.highlightedSectionIndex,n=e.highlightedSuggestionIndex;return null===n?null:this.getSuggestion(t,n)}},{key:"getSuggestionValueByIndex",value:function(e,t){return(0,this.props.getSuggestionValue)(this.getSuggestion(e,t))}},{key:"getSuggestionIndices",value:function(e){var t=e.getAttribute("data-section-index"),n=e.getAttribute("data-suggestion-index");return{sectionIndex:"string"==typeof t?parseInt(t,10):null,suggestionIndex:parseInt(n,10)}}},{key:"findSuggestionElement",value:function(e){var t=e;do{if(t.getAttribute&&null!==t.getAttribute("data-suggestion-index"))return t;t=t.parentNode}while(null!==t);throw console.error("Clicked element:",e),new Error("Couldn't find suggestion element")}},{key:"maybeCallOnChange",value:function(e,t,n){var r=this.props.inputProps,o=r.value,i=r.onChange;t!==o&&i(e,{newValue:t,method:n})}},{key:"willRenderSuggestions",value:function(e){var t=e.suggestions,n=e.inputProps,r=e.shouldRenderSuggestions,o=n.value;return t.length>0&&r(o)}},{key:"getQuery",value:function(){var e=this.props.inputProps.value,t=this.state.valueBeforeUpDown;return(null===t?e:t).trim()}},{key:"render",value:function(){var e=this,t=this.props,n=t.suggestions,o=t.renderInputComponent,i=t.onSuggestionsFetchRequested,a=t.renderSuggestion,c=t.inputProps,l=t.multiSection,g=t.renderSectionTitle,p=t.id,d=t.getSectionSuggestions,h=t.theme,m=t.getSuggestionValue,y=t.alwaysRenderSuggestions,b=t.highlightFirstSuggestion,v=this.state,O=v.isFocused,w=v.isCollapsed,I=v.highlightedSectionIndex,j=v.highlightedSuggestionIndex,P=v.valueBeforeUpDown,_=y?S:this.props.shouldRenderSuggestions,x=c.value,C=c.onFocus,k=c.onKeyDown,R=this.willRenderSuggestions(this.props),E=y||O&&!w&&R,D=E?n:[],q=f({},c,{onFocus:function(t){if(!e.justSelectedSuggestion&&!e.justClickedOnSuggestionsContainer){var n=_(x);e.setState({isFocused:!0,isCollapsed:!n}),C&&C(t),n&&i({value:x,reason:"input-focused"})}},onBlur:function(t){e.justClickedOnSuggestionsContainer?e.input.focus():(e.blurEvent=t,e.justSelectedSuggestion||(e.onBlur(),e.onSuggestionsClearRequested()))},onChange:function(t){var n=t.target.value,r=_(n);e.maybeCallOnChange(t,n,"type"),e.suggestionsContainer&&(e.suggestionsContainer.scrollTop=0),e.setState(f({},b?{}:{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null},{valueBeforeUpDown:null,isCollapsed:!r})),r?i({value:n,reason:"input-changed"}):e.onSuggestionsClearRequested()},onKeyDown:function(t,r){var o=t.keyCode;switch(o){case 40:case 38:if(w)_(x)&&(i({value:x,reason:"suggestions-revealed"}),e.revealSuggestions());else if(n.length>0){var u,s=r.newHighlightedSectionIndex,a=r.newHighlightedItemIndex;u=null===a?null===P?x:P:e.getSuggestionValueByIndex(s,a),e.updateHighlightedSuggestion(s,a,x),e.maybeCallOnChange(t,u,40===o?"down":"up")}t.preventDefault(),e.justPressedUpDown=!0,setTimeout((function(){e.justPressedUpDown=!1}));break;case 13:if(229===t.keyCode)break;var c=e.getHighlightedSuggestion();if(E&&!y&&e.closeSuggestions(),null!=c){var l=m(c);e.maybeCallOnChange(t,l,"enter"),e.onSuggestionSelected(t,{suggestion:c,suggestionValue:l,suggestionIndex:j,sectionIndex:I,method:"enter"}),e.justSelectedSuggestion=!0,setTimeout((function(){e.justSelectedSuggestion=!1}))}break;case 27:E&&t.preventDefault();var g=E&&!y;null===P?g||(e.maybeCallOnChange(t,"","escape"),_("")?i({value:"",reason:"escape-pressed"}):e.onSuggestionsClearRequested()):e.maybeCallOnChange(t,P,"escape"),g?(e.onSuggestionsClearRequested(),e.closeSuggestions()):e.resetHighlightedSuggestion()}k&&k(t)}}),T={query:this.getQuery()};return r.default.createElement(u.default,{multiSection:l,items:D,renderInputComponent:o,renderItemsContainer:this.renderSuggestionsContainer,renderItem:a,renderItemData:T,renderSectionTitle:g,getSectionItems:d,highlightedSectionIndex:I,highlightedItemIndex:j,inputProps:q,itemProps:this.itemProps,theme:(0,s.mapToAutowhateverTheme)(h),id:p,ref:this.storeAutowhateverRef})}}])&&p(n.prototype,o),c}(r.Component);t.default=O,v(O,"propTypes",{suggestions:o.default.array.isRequired,onSuggestionsFetchRequested:function(e,t){if("function"!=typeof e[t])throw new Error("'onSuggestionsFetchRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsFetchRequestedProp")},onSuggestionsClearRequested:function(e,t){var n=e[t];if(!1===e.alwaysRenderSuggestions&&"function"!=typeof n)throw new Error("'onSuggestionsClearRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsClearRequestedProp")},onSuggestionSelected:o.default.func,onSuggestionHighlighted:o.default.func,renderInputComponent:o.default.func,renderSuggestionsContainer:o.default.func,getSuggestionValue:o.default.func.isRequired,renderSuggestion:o.default.func.isRequired,inputProps:function(e,t){var n=e[t];if(!Object.prototype.hasOwnProperty.call(n,"value"))throw new Error("'inputProps' must have 'value'.");if(!Object.prototype.hasOwnProperty.call(n,"onChange"))throw new Error("'inputProps' must have 'onChange'.")},shouldRenderSuggestions:o.default.func,alwaysRenderSuggestions:o.default.bool,multiSection:o.default.bool,renderSectionTitle:function(e,t){var n=e[t];if(!0===e.multiSection&&"function"!=typeof n)throw new Error("'renderSectionTitle' must be implemented. See: https://github.com/moroshko/react-autosuggest#renderSectionTitleProp")},getSectionSuggestions:function(e,t){var n=e[t];if(!0===e.multiSection&&"function"!=typeof n)throw new Error("'getSectionSuggestions' must be implemented. See: https://github.com/moroshko/react-autosuggest#getSectionSuggestionsProp")},focusInputOnSuggestionClick:o.default.bool,highlightFirstSuggestion:o.default.bool,theme:o.default.object,id:o.default.string}),v(O,"defaultProps",{renderSuggestionsContainer:function(e){var t=e.containerProps,n=e.children;return r.default.createElement("div",t,n)},shouldRenderSuggestions:function(e){return e.trim().length>0},alwaysRenderSuggestions:!1,multiSection:!1,focusInputOnSuggestionClick:!0,highlightFirstSuggestion:!1,theme:s.defaultTheme,id:"1"})},402:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==d(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(n(383)),o=c(n(697)),i=c(n(662)),u=c(n(379)),s=c(n(752)),a=c(n(210));function c(e){return e&&e.__esModule?e:{default:e}}function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){O(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?y(e):t}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function S(e,t){return(S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w={},I=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&S(e,t)}(l,e);var t,n,o,c=(t=l,function(){var e,n=v(t);if(b()){var r=v(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return m(this,e)});function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),O(y(t=c.call(this,e)),"storeInputReference",(function(e){null!==e&&(t.input=e);var n=t.props.inputProps.ref;n&&("function"==typeof n?n(e):"object"===d(n)&&Object.prototype.hasOwnProperty.call(n,"current")&&(n.current=e))})),O(y(t),"storeItemsContainerReference",(function(e){null!==e&&(t.itemsContainer=e)})),O(y(t),"onHighlightedItemChange",(function(e){t.highlightedItem=e})),O(y(t),"getItemId",(function(e,n){if(null===n)return null;var r=t.props.id,o=null===e?"":"section-".concat(e);return"react-autowhatever-".concat(r,"-").concat(o,"-item-").concat(n)})),O(y(t),"onFocus",(function(e){var n=t.props.inputProps;t.setState({isInputFocused:!0}),n.onFocus&&n.onFocus(e)})),O(y(t),"onBlur",(function(e){var n=t.props.inputProps;t.setState({isInputFocused:!1}),n.onBlur&&n.onBlur(e)})),O(y(t),"onKeyDown",(function(e){var n,r,o=t.props,i=o.inputProps,u=o.highlightedSectionIndex,s=o.highlightedItemIndex;switch(e.key){case"ArrowDown":case"ArrowUp":var a="ArrowDown"===e.key?"next":"prev",c=(n=t.sectionIterator[a]([u,s]),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var u,s=e[Symbol.iterator]();!(r=(u=s.next()).done)&&(n.push(u.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(n,r)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=c[0],g=c[1];i.onKeyDown(e,{newHighlightedSectionIndex:l,newHighlightedItemIndex:g});break;default:i.onKeyDown(e,{highlightedSectionIndex:u,highlightedItemIndex:s})}})),t.highlightedItem=null,t.state={isInputFocused:!1},t.setSectionsItems(e),t.setSectionIterator(e),t.setTheme(e),t}return n=l,(o=[{key:"componentDidMount",value:function(){this.ensureHighlightedItemIsVisible()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.items!==this.props.items&&this.setSectionsItems(e),e.items===this.props.items&&e.multiSection===this.props.multiSection||this.setSectionIterator(e),e.theme!==this.props.theme&&this.setTheme(e)}},{key:"componentDidUpdate",value:function(){this.ensureHighlightedItemIsVisible()}},{key:"setSectionsItems",value:function(e){e.multiSection&&(this.sectionsItems=e.items.map((function(t){return e.getSectionItems(t)})),this.sectionsLengths=this.sectionsItems.map((function(e){return e.length})),this.allSectionsAreEmpty=this.sectionsLengths.every((function(e){return 0===e})))}},{key:"setSectionIterator",value:function(e){this.sectionIterator=(0,i.default)({multiSection:e.multiSection,data:e.multiSection?this.sectionsLengths:e.items.length})}},{key:"setTheme",value:function(e){this.theme=(0,u.default)(e.theme)}},{key:"renderSections",value:function(){var e=this;if(this.allSectionsAreEmpty)return null;var t=this.theme,n=this.props,o=n.id,i=n.items,u=n.renderItem,c=n.renderItemData,l=n.renderSectionTitle,g=n.highlightedSectionIndex,f=n.highlightedItemIndex,p=n.itemProps;return i.map((function(n,i){var d="react-autowhatever-".concat(o,"-"),h="".concat(d,"section-").concat(i,"-"),m=0===i;return r.default.createElement("div",t("".concat(h,"container"),"sectionContainer",m&&"sectionContainerFirst"),r.default.createElement(s.default,{section:n,renderSectionTitle:l,theme:t,sectionKeyPrefix:h}),r.default.createElement(a.default,{items:e.sectionsItems[i],itemProps:p,renderItem:u,renderItemData:c,sectionIndex:i,highlightedItemIndex:g===i?f:null,onHighlightedItemChange:e.onHighlightedItemChange,getItemId:e.getItemId,theme:t,keyPrefix:d,ref:e.storeItemsListReference}))}))}},{key:"renderItems",value:function(){var e=this.props.items;if(0===e.length)return null;var t=this.theme,n=this.props,o=n.id,i=n.renderItem,u=n.renderItemData,s=n.highlightedSectionIndex,c=n.highlightedItemIndex,l=n.itemProps;return r.default.createElement(a.default,{items:e,itemProps:l,renderItem:i,renderItemData:u,highlightedItemIndex:null===s?c:null,onHighlightedItemChange:this.onHighlightedItemChange,getItemId:this.getItemId,theme:t,keyPrefix:"react-autowhatever-".concat(o,"-")})}},{key:"ensureHighlightedItemIsVisible",value:function(){var e=this.highlightedItem;if(e){var t=this.itemsContainer,n=e.offsetParent===t?e.offsetTop:e.offsetTop-t.offsetTop,r=t.scrollTop;n<r?r=n:n+e.offsetHeight>r+t.offsetHeight&&(r=n+e.offsetHeight-t.offsetHeight),r!==t.scrollTop&&(t.scrollTop=r)}}},{key:"render",value:function(){var e=this.theme,t=this.props,n=t.id,o=t.multiSection,i=t.renderInputComponent,u=t.renderItemsContainer,s=t.highlightedSectionIndex,a=t.highlightedItemIndex,c=this.state.isInputFocused,l=o?this.renderSections():this.renderItems(),g=null!==l,p=this.getItemId(s,a),d="react-autowhatever-".concat(n),h=f({role:"combobox","aria-haspopup":"listbox","aria-owns":d,"aria-expanded":g},e("react-autowhatever-".concat(n,"-container"),"container",g&&"containerOpen"),{},this.props.containerProps),m=i(f({type:"text",value:"",autoComplete:"off","aria-autocomplete":"list","aria-controls":d,"aria-activedescendant":p},e("react-autowhatever-".concat(n,"-input"),"input",g&&"inputOpen",c&&"inputFocused"),{},this.props.inputProps,{onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.props.inputProps.onKeyDown&&this.onKeyDown,ref:this.storeInputReference})),y=u({containerProps:f({id:d,role:"listbox"},e("react-autowhatever-".concat(n,"-items-container"),"itemsContainer",g&&"itemsContainerOpen"),{ref:this.storeItemsContainerReference}),children:l});return r.default.createElement("div",h,m,y)}}])&&h(n.prototype,o),l}(r.Component);t.default=I,O(I,"propTypes",{id:o.default.string,multiSection:o.default.bool,renderInputComponent:o.default.func,renderItemsContainer:o.default.func,items:o.default.array.isRequired,renderItem:o.default.func,renderItemData:o.default.object,renderSectionTitle:o.default.func,getSectionItems:o.default.func,containerProps:o.default.object,inputProps:o.default.object,itemProps:o.default.oneOfType([o.default.object,o.default.func]),highlightedSectionIndex:o.default.number,highlightedItemIndex:o.default.number,theme:o.default.oneOfType([o.default.object,o.default.array])}),O(I,"defaultProps",{id:"1",multiSection:!1,renderInputComponent:function(e){return r.default.createElement("input",e)},renderItemsContainer:function(e){var t=e.containerProps,n=e.children;return r.default.createElement("div",t,n)},renderItem:function(){throw new Error("`renderItem` must be provided")},renderItemData:w,renderSectionTitle:function(){throw new Error("`renderSectionTitle` must be provided")},getSectionItems:function(){throw new Error("`getSectionItems` must be provided")},containerProps:w,inputProps:w,itemProps:w,highlightedSectionIndex:null,highlightedItemIndex:null,theme:{container:"react-autowhatever__container",containerOpen:"react-autowhatever__container--open",input:"react-autowhatever__input",inputOpen:"react-autowhatever__input--open",inputFocused:"react-autowhatever__input--focused",itemsContainer:"react-autowhatever__items-container",itemsContainerOpen:"react-autowhatever__items-container--open",itemsList:"react-autowhatever__items-list",item:"react-autowhatever__item",itemFirst:"react-autowhatever__item--first",itemHighlighted:"react-autowhatever__item--highlighted",sectionContainer:"react-autowhatever__section-container",sectionContainerFirst:"react-autowhatever__section-container--first",sectionTitle:"react-autowhatever__section-title"}})},314:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(n(383)),o=u(n(697)),i=u(n(770));function u(e){return e&&e.__esModule?e:{default:e}}function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?d(e):t}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(s,e);var t,n,o,u=(t=s,function(){var e,n=m(t);if(h()){var r=m(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return p(this,e)});function s(){var e;g(this,s);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return b(d(e=u.call.apply(u,[this].concat(n))),"storeItemReference",(function(t){null!==t&&(e.item=t)})),b(d(e),"onMouseEnter",(function(t){var n=e.props,r=n.sectionIndex,o=n.itemIndex;e.props.onMouseEnter(t,{sectionIndex:r,itemIndex:o})})),b(d(e),"onMouseLeave",(function(t){var n=e.props,r=n.sectionIndex,o=n.itemIndex;e.props.onMouseLeave(t,{sectionIndex:r,itemIndex:o})})),b(d(e),"onMouseDown",(function(t){var n=e.props,r=n.sectionIndex,o=n.itemIndex;e.props.onMouseDown(t,{sectionIndex:r,itemIndex:o})})),b(d(e),"onClick",(function(t){var n=e.props,r=n.sectionIndex,o=n.itemIndex;e.props.onClick(t,{sectionIndex:r,itemIndex:o})})),e}return n=s,(o=[{key:"shouldComponentUpdate",value:function(e){return(0,i.default)(e,this.props,["renderItemData"])}},{key:"render",value:function(){var e=this.props,t=e.isHighlighted,n=e.item,o=e.renderItem,i=e.renderItemData,u=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["isHighlighted","item","renderItem","renderItemData"]);return delete u.sectionIndex,delete u.itemIndex,"function"==typeof u.onMouseEnter&&(u.onMouseEnter=this.onMouseEnter),"function"==typeof u.onMouseLeave&&(u.onMouseLeave=this.onMouseLeave),"function"==typeof u.onMouseDown&&(u.onMouseDown=this.onMouseDown),"function"==typeof u.onClick&&(u.onClick=this.onClick),r.default.createElement("li",c({role:"option"},u,{ref:this.storeItemReference}),o(n,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({isHighlighted:t},i)))}}])&&f(n.prototype,o),s}(r.Component);t.default=v,b(v,"propTypes",{sectionIndex:o.default.number,isHighlighted:o.default.bool.isRequired,itemIndex:o.default.number.isRequired,item:o.default.any.isRequired,renderItem:o.default.func.isRequired,renderItemData:o.default.object.isRequired,onMouseEnter:o.default.func,onMouseLeave:o.default.func,onMouseDown:o.default.func,onClick:o.default.func})},210:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==c(e)&&"function"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(n(383)),o=s(n(697)),i=s(n(314)),u=s(n(770));function s(e){return e&&e.__esModule?e:{default:e}}function a(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?h(e):t}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(a,e);var t,n,o,s=(t=a,function(){var e,n=y(t);if(m()){var r=y(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return d(this,e)});function a(){var e;f(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return v(h(e=s.call.apply(s,[this].concat(n))),"storeHighlightedItemReference",(function(t){e.props.onHighlightedItemChange(null===t?null:t.item)})),e}return n=a,(o=[{key:"shouldComponentUpdate",value:function(e){return(0,u.default)(e,this.props,["itemProps"])}},{key:"render",value:function(){var e=this,t=this.props,n=t.items,o=t.itemProps,u=t.renderItem,s=t.renderItemData,a=t.sectionIndex,c=t.highlightedItemIndex,f=t.getItemId,p=t.theme,d=t.keyPrefix,h=null===a?d:"".concat(d,"section-").concat(a,"-"),m="function"==typeof o;return r.default.createElement("ul",l({role:"listbox"},p("".concat(h,"items-list"),"itemsList")),n.map((function(t,n){var d=0===n,y=n===c,b="".concat(h,"item-").concat(n),S=m?o({sectionIndex:a,itemIndex:n}):o,O=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:f(a,n),"aria-selected":y},p(b,"item",d&&"itemFirst",y&&"itemHighlighted"),{},S);return y&&(O.ref=e.storeHighlightedItemReference),r.default.createElement(i.default,l({},O,{sectionIndex:a,isHighlighted:y,itemIndex:n,item:t,renderItem:u,renderItemData:s}))})))}}])&&p(n.prototype,o),a}(r.Component);t.default=S,v(S,"propTypes",{items:o.default.array.isRequired,itemProps:o.default.oneOfType([o.default.object,o.default.func]),renderItem:o.default.func.isRequired,renderItemData:o.default.object.isRequired,sectionIndex:o.default.number,highlightedItemIndex:o.default.number,onHighlightedItemChange:o.default.func.isRequired,getItemId:o.default.func.isRequired,theme:o.default.func.isRequired,keyPrefix:o.default.string.isRequired}),v(S,"defaultProps",{sectionIndex:null})},752:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(n(383)),o=u(n(697)),i=u(n(770));function u(e){return e&&e.__esModule?e:{default:e}}function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var h,m,y,b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(s,e);var t,n,o,u=(t=s,function(){var e,n=p(t);if(f()){var r=p(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return g(this,e)});function s(){return c(this,s),u.apply(this,arguments)}return n=s,(o=[{key:"shouldComponentUpdate",value:function(e){return(0,i.default)(e,this.props)}},{key:"render",value:function(){var e=this.props,t=e.section,n=e.renderSectionTitle,o=e.theme,i=e.sectionKeyPrefix,u=n(t);return u?r.default.createElement("div",o("".concat(i,"title"),"sectionTitle"),u):null}}])&&l(n.prototype,o),s}(r.Component);t.default=b,h=b,m="propTypes",y={section:o.default.any.isRequired,renderSectionTitle:o.default.func.isRequired,theme:o.default.func.isRequired,sectionKeyPrefix:o.default.string.isRequired},m in h?Object.defineProperty(h,m,{value:y,enumerable:!0,configurable:!0,writable:!0}):h[m]=y},770:(e,t)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(e===t)return!1;var o=Object.keys(e),i=Object.keys(t);if(o.length!==i.length)return!0;var u,s,a={};for(u=0,s=r.length;u<s;u++)a[r[u]]=!0;for(u=0,s=o.length;u<s;u++){var c=o[u],l=e[c],g=t[c];if(l!==g){if(!a[c]||null===l||null===g||"object"!==n(l)||"object"!==n(g))return!0;var f=Object.keys(l),p=Object.keys(g);if(f.length!==p.length)return!0;for(var d=0,h=f.length;d<h;d++){var m=f[d];if(l[m]!==g[m])return!0}}}return!1}},808:(e,t,n)=>{"use strict";e.exports=n(394).default},581:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapToAutowhateverTheme=t.defaultTheme=void 0,t.defaultTheme={container:"react-autosuggest__container",containerOpen:"react-autosuggest__container--open",input:"react-autosuggest__input",inputOpen:"react-autosuggest__input--open",inputFocused:"react-autosuggest__input--focused",suggestionsContainer:"react-autosuggest__suggestions-container",suggestionsContainerOpen:"react-autosuggest__suggestions-container--open",suggestionsList:"react-autosuggest__suggestions-list",suggestion:"react-autosuggest__suggestion",suggestionFirst:"react-autosuggest__suggestion--first",suggestionHighlighted:"react-autosuggest__suggestion--highlighted",sectionContainer:"react-autosuggest__section-container",sectionContainerFirst:"react-autosuggest__section-container--first",sectionTitle:"react-autosuggest__section-title"},t.mapToAutowhateverTheme=function(e){var t={};for(var n in e)switch(n){case"suggestionsContainer":t.itemsContainer=e[n];break;case"suggestionsContainerOpen":t.itemsContainerOpen=e[n];break;case"suggestion":t.item=e[n];break;case"suggestionFirst":t.itemFirst=e[n];break;case"suggestionHighlighted":t.itemHighlighted=e[n];break;case"suggestionsList":t.itemsList=e[n];break;default:t[n]=e[n]}return t}},379:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var o,i=(o=n(894))&&o.__esModule?o:{default:o},u=function(e){return e};t.default=function(e){var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var u,s=e[Symbol.iterator]();!(r=(u=s.next()).done)&&(n.push(u.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(Array.isArray(e)&&2===e.length?e:[e,null],2),n=t[0],o=t[1];return function(e){for(var t=arguments.length,s=Array(t>1?t-1:0),a=1;a<t;a++)s[a-1]=arguments[a];var c=s.map((function(e){return n[e]})).filter(u);return"string"==typeof c[0]||"function"==typeof o?{key:e,className:o?o.apply(void 0,r(c)):c.join(" ")}:{key:e,style:i.default.apply(void 0,[{}].concat(r(c)))}}},e.exports=t.default},894:e=>{"use strict";var t=Object.prototype.propertyIsEnumerable;function n(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function r(e){var n=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(e))),n.filter((function(n){return t.call(e,n)}))}e.exports=Object.assign||function(e,t){for(var o,i,u=n(e),s=1;s<arguments.length;s++){o=arguments[s],i=r(Object(o));for(var a=0;a<i.length;a++)u[i[a]]=o[i[a]]}return u}},662:e=>{"use strict";var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var u,s=e[Symbol.iterator]();!(r=(u=s.next()).done)&&(n.push(u.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};e.exports=function(e){var n=e.data,r=e.multiSection;function o(e){var o=t(e,2),i=o[0],u=o[1];return r?null===u||u===n[i]-1?null===(i=function(e){for(null===e?e=0:e++;e<n.length&&0===n[e];)e++;return e===n.length?null:e}(i))?[null,null]:[i,0]:[i,u+1]:0===n||u===n-1?[null,null]:null===u?[null,0]:[null,u+1]}return{next:o,prev:function(e){var o=t(e,2),i=o[0],u=o[1];return r?null===u||0===u?null===(i=function(e){for(null===e?e=n.length-1:e--;e>=0&&0===n[e];)e--;return-1===e?null:e}(i))?[null,null]:[i,n[i]-1]:[i,u-1]:0===n||0===u?[null,null]:null===u?[null,n-1]:[null,u-1]},isLast:function(e){return null===o(e)[1]}}}},444:e=>{"use strict";e.exports=function(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=e.length;if(t.length!==n)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}},376:t=>{"use strict";t.exports=e},383:e=>{"use strict";e.exports=t},949:e=>{"use strict";e.exports=n}},o={};function i(e){if(o[e])return o[e].exports;var t=o[e]={exports:{}};return r[e](t,t.exports,i),t.exports}return i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i(44)})()}));
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("axios"),require("react"),require("react-dom"));else if("function"==typeof define&&define.amd)define(["axios","react","react-dom"],t);else{var n="object"==typeof exports?t(require("axios"),require("react"),require("react-dom")):t(e.axios,e.React,e.ReactDOM);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(self,(function(e,t,n){return(()=>{var r={44:(e,t,n)=>{"use strict";n.r(t);var r=n(383),o=n.n(r),i=n(949),u=n.n(i),s=n(697),a=n.n(s),c=n(376),l=n.n(c);const{serviceScopeProfile:g}=window,f=(e,t)=>void 0!==e.name&&void 0!==t.name?e.name.toLowerCase().localeCompare(t.name.toLowerCase(),"da",{ignorePunctuation:!0}):0;class p extends o().Component{constructor(e){super(e),this.letters=["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","æ","ø","å"],this.state={letterIndex:-1}}render(){const{letterIndex:e}=this.state,{items:t,linkColor:n}=this.props,r=this.letters.map(((r,i)=>{const u=t.filter((e=>0===e.name.toLowerCase().indexOf(r))).length>0;let s="";u&&(s+="available"),i===e&&(s+=" active");let a={};return u&&(a=e===i?{backgroundColor:"#fff",color:n}:{backgroundColor:n}),o().createElement("li",{key:r,className:s},o().createElement("button",{type:"button",style:a,onClick:()=>{u&&this.setState({letterIndex:i})}},r))}));let i=[];e>-1&&(i=t.filter((t=>0===t.name.toLowerCase().indexOf(this.letters[e]))));const u=i.sort(f).map(((e,t)=>{const n=t,r=e.children.map((e=>o().createElement("li",{key:e.name},o().createElement("a",{href:e.url},e.name))));return e.children.length>0?o().createElement("li",{key:n},o().createElement("a",{href:e.url},e.name),o().createElement("ul",null,r)):o().createElement("li",{key:n},o().createElement("a",{href:e.url},e.name))}));return o().createElement("div",{className:"au_alphabox_content"},o().createElement("ul",{className:"letters"},r),e>-1?o().createElement("div",null,o().createElement("ul",{className:"items"},u)):null)}}p.propTypes={linkColor:a().string.isRequired,items:a().arrayOf(a().shape({name:a().string.isRequired,url:a().string.isRequired})).isRequired},p.displayName="AlphaBoxContentComponent";const d=p;var h=n(808),m=n.n(h),y=n(296),b=n.n(y);class v extends o().Component{constructor(e){super(e),this.state={value:"",suggestions:[]},this.onChange=this.onChange.bind(this),this.onSuggestionsFetchRequested=b()(this.onSuggestionsFetchRequested.bind(this),400),this.onSuggestionsClearRequested=this.onSuggestionsClearRequested.bind(this),this.onSuggestionSelected=this.onSuggestionSelected.bind(this)}onChange(e,{newValue:t}){const{setQuery:n}=this.props;this.setState({value:t},(()=>{n(t)}))}onSuggestionsFetchRequested({value:e}){const{getSuggestions:t,collection:n}=this.props;t(e,n,(e=>{this.setState({suggestions:e})}))}onSuggestionsClearRequested(){this.setState({suggestions:[]})}onSuggestionSelected(e,{suggestion:t}){const{setResults:n,clearInput:r}=this.props;n([t]),r&&this.setState({value:""})}render(){const{value:e,suggestions:t}=this.state,{placeholder:n,getSuggestionValue:r,renderSuggestion:i,id:u,theme:s,type:a,initialValue:c,disabled:l}=this.props,g={placeholder:n,value:c||e,id:u,type:a,disabled:l,"aria-label":n,onChange:this.onChange};return o().createElement(m(),{suggestions:t,onSuggestionsFetchRequested:this.onSuggestionsFetchRequested,onSuggestionsClearRequested:this.onSuggestionsClearRequested,onSuggestionSelected:this.onSuggestionSelected,getSuggestionValue:r,renderSuggestion:i,inputProps:g,theme:s})}}v.displayName="AutoSuggestComponent",v.defaultProps={id:"autosuggest1",theme:{container:"react-autosuggest__container",containerOpen:"react-autosuggest__container--open",input:"react-autosuggest__input",inputOpen:"react-autosuggest__input--open",inputFocused:"react-autosuggest__input--focused",suggestionsContainer:"react-autosuggest__suggestions-container",suggestionsContainerOpen:"react-autosuggest__suggestions-container--open",suggestionsList:"react-autosuggest__suggestions-list",suggestion:"react-autosuggest__suggestion",suggestionFirst:"react-autosuggest__suggestion--first",suggestionHighlighted:"react-autosuggest__suggestion--highlighted",sectionContainer:"react-autosuggest__section-container",sectionContainerFirst:"react-autosuggest__section-container--first",sectionTitle:"react-autosuggest__section-title"},clearInput:!1,type:"text",initialValue:"",disabled:!1},v.propTypes={setQuery:a().func.isRequired,getSuggestions:a().func.isRequired,getSuggestionValue:a().func.isRequired,renderSuggestion:a().func.isRequired,setResults:a().func.isRequired,collection:a().arrayOf(a().any).isRequired,placeholder:a().string.isRequired,id:a().string,theme:a().shape({}),clearInput:a().bool,type:a().string,initialValue:a().string,disabled:a().bool};const S=v;class O extends o().Component{constructor(e){super(e),this.state={item:e.item}}static getDerivedStateFromProps(e,t){return e.item.id!==t.item.id?{item:e.item}:null}render(){const{item:e}=this.state;return o().createElement("span",null,e.name)}}O.propTypes={item:a().shape({id:a().number.isRequired}).isRequired},O.displayName="DataBoxSuggestionComponent";const w=O;class I extends o().Component{constructor(e){super(e),this.state={items:[]},this.getSuggestions=this.getSuggestions.bind(this)}componentDidMount(){const{box:e}=this.props,{data:t}=e;"json"===t.mode&&""!==t.source&&(t.itemsOnly&&(t.source+="?itemsOnly=true"),l().get(t.source).then((e=>{const{data:t}=e;this.setState({items:t.items})})))}getSuggestions(e,t,n){const{items:r}=this.state,o=e.trim().toLowerCase();n(o.length<2?[]:r.filter((e=>e.name.toLowerCase().indexOf(o)>-1)).sort(((e,t)=>e.name.toLowerCase().localeCompare(t.name.toLowerCase(),"da",{ignorePunctuation:!0}))))}render(){const{box:e}=this.props,{items:t}=this.state,{config:n}=e,r=n.links.map((t=>o().createElement("li",{key:t.title},o().createElement("a",{href:t.url,onClick:()=>{"function"==typeof t.onClick&&t.onClick()},style:{backgroundColor:e.background.linkColor}},t.title))));return o().createElement("div",{className:"au_alphabox",style:{backgroundColor:e.background.color}},o().createElement("div",null,o().createElement("h2",null,o().createElement("a",{href:n.url},n.title)),""!==n.description?o().createElement("p",null,n.description):null,n.links.length>0?o().createElement("ul",{className:"quicklinks resetlist"},r):null,o().createElement(d,{items:t,linkColor:e.background.linkColor}),o().createElement(S,{placeholder:e.search.placeHolder,setQuery:()=>{},setResults:e=>{1===e.length&&e[0].url&&(window.location.href=e[0].url)},collection:[],getSuggestions:this.getSuggestions,getSuggestionValue:e=>e.name,renderSuggestion:e=>o().createElement(w,{item:e})})))}}I.propTypes={box:a().shape({id:a().number.isRequired,data:a().shape({itemsOnly:a().bool.isRequired,mode:a().string.isRequired,source:a().string.isRequired}),config:a().shape({name:a().string.isRequired,url:a().string.isRequired,description:a().string.isRequired,container:a().string.isRequired,tracking:a().string.isRequired,links:a().arrayOf(a().shape({title:a().string.isRequired,url:a().string.isRequired})).isRequired,title:a().string.isRequired}).isRequired,background:a().shape({color:a().string.isRequired,linkColor:a().string.isRequired}).isRequired,search:a().shape({placeHolder:a().string.isRequired,minLength:a().number.isRequired}).isRequired}).isRequired},I.displayName="AlphaBoxComponent";const j=I,P={config:{title:"",url:"",description:"",container:".au_alphabox",tracking:"/virtual/alphabox/",links:[{title:"Link 1",url:"http://www.au.dk"},{title:"Link 2",url:"http://www.au.dk"}]},search:{minLength:1,placeHolder:""},background:{color:"#003e5c",linkColor:"#379fcb"},data:{mode:"json",itemsOnly:!1}};class _{constructor(e){this.boxes=e}static mergeOptions(e){const t=e;t.hasOwnProperty("config")||(t.config={});for(const e in P.config)t.config.hasOwnProperty(e)||(t.config[e]=P.config[e]);t.hasOwnProperty("background")||(t.background={});for(const e in P.background)t.background.hasOwnProperty(e)||(t.background[e]=P.background[e]);t.hasOwnProperty("search")||(t.search={});for(const e in P.search)t.search.hasOwnProperty(e)||(t.search[e]=P.search[e]);t.hasOwnProperty("data")||(t.data={});for(const e in P.data)t.data.hasOwnProperty(e)||(t.data[e]=P.data[e])}init(){for(let e=0;e<this.boxes.length;e+=1){const t=this.boxes[e];if(!t.loaded){t.id=e,_.mergeOptions(t);const n=document.querySelector(t.config.container);n&&"hidden"!==getComputedStyle(n).visibility&&(u().render(o().createElement(j,{box:t}),n),t.loaded=!0)}}}}window.AUAlphabox=_},296:(e,t,n)=>{var r=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,u=/^0o[0-7]+$/i,s=parseInt,a="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,c="object"==typeof self&&self&&self.Object===Object&&self,l=a||c||Function("return this")(),g=Object.prototype.toString,f=Math.max,p=Math.min,d=function(){return l.Date.now()};function h(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function m(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==g.call(e)}(e))return NaN;if(h(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=h(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var n=i.test(e);return n||u.test(e)?s(e.slice(2),n?2:8):o.test(e)?NaN:+e}e.exports=function(e,t,n){var r,o,i,u,s,a,c=0,l=!1,g=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function b(t){var n=r,i=o;return r=o=void 0,c=t,u=e.apply(i,n)}function v(e){return c=e,s=setTimeout(O,t),l?b(e):u}function S(e){var n=e-a;return void 0===a||n>=t||n<0||g&&e-c>=i}function O(){var e=d();if(S(e))return w(e);s=setTimeout(O,function(e){var n=t-(e-a);return g?p(n,i-(e-c)):n}(e))}function w(e){return s=void 0,y&&r?b(e):(r=o=void 0,u)}function I(){var e=d(),n=S(e);if(r=arguments,o=this,a=e,n){if(void 0===s)return v(a);if(g)return s=setTimeout(O,t),b(a)}return void 0===s&&(s=setTimeout(O,t)),u}return t=m(t)||0,h(n)&&(l=!!n.leading,i=(g="maxWait"in n)?f(m(n.maxWait)||0,t):i,y="trailing"in n?!!n.trailing:y),I.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=a=o=s=void 0},I.flush=function(){return void 0===s?u:w(d())},I}},703:(e,t,n)=>{"use strict";var r=n(414);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,u){if(u!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},697:(e,t,n)=>{e.exports=n(703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},394:(e,t,n)=>{"use strict";t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==l(e)&&"function"!=typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(n(383)),o=a(n(697)),i=a(n(444)),u=a(n(402)),s=n(581);function a(e){return e&&e.__esModule?e:{default:e}}function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?h(e):t}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S=function(){return!0},O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(c,e);var t,n,o,a=(t=c,function(){var e,n=y(t);if(m()){var r=y(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return d(this,e)});function c(e){var t,n=e.alwaysRenderSuggestions;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),v(h(t=a.call(this)),"onDocumentMouseDown",(function(e){t.justClickedOnSuggestionsContainer=!1;for(var n=e.detail&&e.detail.target||e.target;null!==n&&n!==document;){if(n.getAttribute&&null!==n.getAttribute("data-suggestion-index"))return;if(n===t.suggestionsContainer)return void(t.justClickedOnSuggestionsContainer=!0);n=n.parentNode}})),v(h(t),"storeAutowhateverRef",(function(e){null!==e&&(t.autowhatever=e)})),v(h(t),"onSuggestionMouseEnter",(function(e,n){var r=n.sectionIndex,o=n.itemIndex;t.updateHighlightedSuggestion(r,o),e.target===t.pressedSuggestion&&(t.justSelectedSuggestion=!0),t.justMouseEntered=!0,setTimeout((function(){t.justMouseEntered=!1}))})),v(h(t),"highlightFirstSuggestion",(function(){t.updateHighlightedSuggestion(t.props.multiSection?0:null,0)})),v(h(t),"onDocumentMouseUp",(function(){t.pressedSuggestion&&!t.justSelectedSuggestion&&t.input.focus(),t.pressedSuggestion=null})),v(h(t),"onSuggestionMouseDown",(function(e){t.justSelectedSuggestion||(t.justSelectedSuggestion=!0,t.pressedSuggestion=e.target)})),v(h(t),"onSuggestionsClearRequested",(function(){var e=t.props.onSuggestionsClearRequested;e&&e()})),v(h(t),"onSuggestionSelected",(function(e,n){var r=t.props,o=r.alwaysRenderSuggestions,i=r.onSuggestionSelected,u=r.onSuggestionsFetchRequested;i&&i(e,n),o?u({value:n.suggestionValue,reason:"suggestion-selected"}):t.onSuggestionsClearRequested(),t.resetHighlightedSuggestion()})),v(h(t),"onSuggestionClick",(function(e){var n=t.props,r=n.alwaysRenderSuggestions,o=n.focusInputOnSuggestionClick,i=t.getSuggestionIndices(t.findSuggestionElement(e.target)),u=i.sectionIndex,s=i.suggestionIndex,a=t.getSuggestion(u,s),c=t.props.getSuggestionValue(a);t.maybeCallOnChange(e,c,"click"),t.onSuggestionSelected(e,{suggestion:a,suggestionValue:c,suggestionIndex:s,sectionIndex:u,method:"click"}),r||t.closeSuggestions(),!0===o?t.input.focus():t.onBlur(),setTimeout((function(){t.justSelectedSuggestion=!1}))})),v(h(t),"onBlur",(function(){var e=t.props,n=e.inputProps,r=e.shouldRenderSuggestions,o=n.value,i=n.onBlur,u=t.getHighlightedSuggestion(),s=r(o);t.setState({isFocused:!1,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!s}),i&&i(t.blurEvent,{highlightedSuggestion:u})})),v(h(t),"onSuggestionMouseLeave",(function(e){t.resetHighlightedSuggestion(!1),t.justSelectedSuggestion&&e.target===t.pressedSuggestion&&(t.justSelectedSuggestion=!1)})),v(h(t),"onSuggestionTouchStart",(function(){t.justSelectedSuggestion=!0})),v(h(t),"onSuggestionTouchMove",(function(){t.justSelectedSuggestion=!1,t.pressedSuggestion=null,t.input.focus()})),v(h(t),"itemProps",(function(e){return{"data-section-index":e.sectionIndex,"data-suggestion-index":e.itemIndex,onMouseEnter:t.onSuggestionMouseEnter,onMouseLeave:t.onSuggestionMouseLeave,onMouseDown:t.onSuggestionMouseDown,onTouchStart:t.onSuggestionTouchStart,onTouchMove:t.onSuggestionTouchMove,onClick:t.onSuggestionClick}})),v(h(t),"renderSuggestionsContainer",(function(e){var n=e.containerProps,r=e.children;return(0,t.props.renderSuggestionsContainer)({containerProps:n,children:r,query:t.getQuery()})})),t.state={isFocused:!1,isCollapsed:!n,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null},t.justPressedUpDown=!1,t.justMouseEntered=!1,t.pressedSuggestion=null,t}return n=c,(o=[{key:"componentDidMount",value:function(){document.addEventListener("mousedown",this.onDocumentMouseDown),document.addEventListener("mouseup",this.onDocumentMouseUp),this.input=this.autowhatever.input,this.suggestionsContainer=this.autowhatever.itemsContainer}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){(0,i.default)(e.suggestions,this.props.suggestions)?e.highlightFirstSuggestion&&e.suggestions.length>0&&!1===this.justPressedUpDown&&!1===this.justMouseEntered&&this.highlightFirstSuggestion():this.willRenderSuggestions(e)?this.state.isCollapsed&&!this.justSelectedSuggestion&&this.revealSuggestions():this.resetHighlightedSuggestion()}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,r=n.suggestions,o=n.onSuggestionHighlighted,u=n.highlightFirstSuggestion;if(!(0,i.default)(r,e.suggestions)&&r.length>0&&u)this.highlightFirstSuggestion();else if(o){var s=this.getHighlightedSuggestion();s!=t.highlightedSuggestion&&o({suggestion:s})}}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mousedown",this.onDocumentMouseDown),document.removeEventListener("mouseup",this.onDocumentMouseUp)}},{key:"updateHighlightedSuggestion",value:function(e,t,n){var r=this;this.setState((function(o){var i=o.valueBeforeUpDown;return null===t?i=null:null===i&&void 0!==n&&(i=n),{highlightedSectionIndex:e,highlightedSuggestionIndex:t,highlightedSuggestion:null===t?null:r.getSuggestion(e,t),valueBeforeUpDown:i}}))}},{key:"resetHighlightedSuggestion",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.setState((function(t){var n=t.valueBeforeUpDown;return{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:e?null:n}}))}},{key:"revealSuggestions",value:function(){this.setState({isCollapsed:!1})}},{key:"closeSuggestions",value:function(){this.setState({highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!0})}},{key:"getSuggestion",value:function(e,t){var n=this.props,r=n.suggestions,o=n.multiSection,i=n.getSectionSuggestions;return o?i(r[e])[t]:r[t]}},{key:"getHighlightedSuggestion",value:function(){var e=this.state,t=e.highlightedSectionIndex,n=e.highlightedSuggestionIndex;return null===n?null:this.getSuggestion(t,n)}},{key:"getSuggestionValueByIndex",value:function(e,t){return(0,this.props.getSuggestionValue)(this.getSuggestion(e,t))}},{key:"getSuggestionIndices",value:function(e){var t=e.getAttribute("data-section-index"),n=e.getAttribute("data-suggestion-index");return{sectionIndex:"string"==typeof t?parseInt(t,10):null,suggestionIndex:parseInt(n,10)}}},{key:"findSuggestionElement",value:function(e){var t=e;do{if(t.getAttribute&&null!==t.getAttribute("data-suggestion-index"))return t;t=t.parentNode}while(null!==t);throw console.error("Clicked element:",e),new Error("Couldn't find suggestion element")}},{key:"maybeCallOnChange",value:function(e,t,n){var r=this.props.inputProps,o=r.value,i=r.onChange;t!==o&&i(e,{newValue:t,method:n})}},{key:"willRenderSuggestions",value:function(e){var t=e.suggestions,n=e.inputProps,r=e.shouldRenderSuggestions,o=n.value;return t.length>0&&r(o)}},{key:"getQuery",value:function(){var e=this.props.inputProps.value,t=this.state.valueBeforeUpDown;return(null===t?e:t).trim()}},{key:"render",value:function(){var e=this,t=this.props,n=t.suggestions,o=t.renderInputComponent,i=t.onSuggestionsFetchRequested,a=t.renderSuggestion,c=t.inputProps,l=t.multiSection,g=t.renderSectionTitle,p=t.id,d=t.getSectionSuggestions,h=t.theme,m=t.getSuggestionValue,y=t.alwaysRenderSuggestions,b=t.highlightFirstSuggestion,v=this.state,O=v.isFocused,w=v.isCollapsed,I=v.highlightedSectionIndex,j=v.highlightedSuggestionIndex,P=v.valueBeforeUpDown,_=y?S:this.props.shouldRenderSuggestions,x=c.value,C=c.onFocus,k=c.onKeyDown,R=this.willRenderSuggestions(this.props),E=y||O&&!w&&R,D=E?n:[],q=f({},c,{onFocus:function(t){if(!e.justSelectedSuggestion&&!e.justClickedOnSuggestionsContainer){var n=_(x);e.setState({isFocused:!0,isCollapsed:!n}),C&&C(t),n&&i({value:x,reason:"input-focused"})}},onBlur:function(t){e.justClickedOnSuggestionsContainer?e.input.focus():(e.blurEvent=t,e.justSelectedSuggestion||(e.onBlur(),e.onSuggestionsClearRequested()))},onChange:function(t){var n=t.target.value,r=_(n);e.maybeCallOnChange(t,n,"type"),e.suggestionsContainer&&(e.suggestionsContainer.scrollTop=0),e.setState(f({},b?{}:{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null},{valueBeforeUpDown:null,isCollapsed:!r})),r?i({value:n,reason:"input-changed"}):e.onSuggestionsClearRequested()},onKeyDown:function(t,r){var o=t.keyCode;switch(o){case 40:case 38:if(w)_(x)&&(i({value:x,reason:"suggestions-revealed"}),e.revealSuggestions());else if(n.length>0){var u,s=r.newHighlightedSectionIndex,a=r.newHighlightedItemIndex;u=null===a?null===P?x:P:e.getSuggestionValueByIndex(s,a),e.updateHighlightedSuggestion(s,a,x),e.maybeCallOnChange(t,u,40===o?"down":"up")}t.preventDefault(),e.justPressedUpDown=!0,setTimeout((function(){e.justPressedUpDown=!1}));break;case 13:if(229===t.keyCode)break;var c=e.getHighlightedSuggestion();if(E&&!y&&e.closeSuggestions(),null!=c){var l=m(c);e.maybeCallOnChange(t,l,"enter"),e.onSuggestionSelected(t,{suggestion:c,suggestionValue:l,suggestionIndex:j,sectionIndex:I,method:"enter"}),e.justSelectedSuggestion=!0,setTimeout((function(){e.justSelectedSuggestion=!1}))}break;case 27:E&&t.preventDefault();var g=E&&!y;null===P?g||(e.maybeCallOnChange(t,"","escape"),_("")?i({value:"",reason:"escape-pressed"}):e.onSuggestionsClearRequested()):e.maybeCallOnChange(t,P,"escape"),g?(e.onSuggestionsClearRequested(),e.closeSuggestions()):e.resetHighlightedSuggestion()}k&&k(t)}}),T={query:this.getQuery()};return r.default.createElement(u.default,{multiSection:l,items:D,renderInputComponent:o,renderItemsContainer:this.renderSuggestionsContainer,renderItem:a,renderItemData:T,renderSectionTitle:g,getSectionItems:d,highlightedSectionIndex:I,highlightedItemIndex:j,inputProps:q,itemProps:this.itemProps,theme:(0,s.mapToAutowhateverTheme)(h),id:p,ref:this.storeAutowhateverRef})}}])&&p(n.prototype,o),c}(r.Component);t.default=O,v(O,"propTypes",{suggestions:o.default.array.isRequired,onSuggestionsFetchRequested:function(e,t){if("function"!=typeof e[t])throw new Error("'onSuggestionsFetchRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsFetchRequestedProp")},onSuggestionsClearRequested:function(e,t){var n=e[t];if(!1===e.alwaysRenderSuggestions&&"function"!=typeof n)throw new Error("'onSuggestionsClearRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsClearRequestedProp")},onSuggestionSelected:o.default.func,onSuggestionHighlighted:o.default.func,renderInputComponent:o.default.func,renderSuggestionsContainer:o.default.func,getSuggestionValue:o.default.func.isRequired,renderSuggestion:o.default.func.isRequired,inputProps:function(e,t){var n=e[t];if(!Object.prototype.hasOwnProperty.call(n,"value"))throw new Error("'inputProps' must have 'value'.");if(!Object.prototype.hasOwnProperty.call(n,"onChange"))throw new Error("'inputProps' must have 'onChange'.")},shouldRenderSuggestions:o.default.func,alwaysRenderSuggestions:o.default.bool,multiSection:o.default.bool,renderSectionTitle:function(e,t){var n=e[t];if(!0===e.multiSection&&"function"!=typeof n)throw new Error("'renderSectionTitle' must be implemented. See: https://github.com/moroshko/react-autosuggest#renderSectionTitleProp")},getSectionSuggestions:function(e,t){var n=e[t];if(!0===e.multiSection&&"function"!=typeof n)throw new Error("'getSectionSuggestions' must be implemented. See: https://github.com/moroshko/react-autosuggest#getSectionSuggestionsProp")},focusInputOnSuggestionClick:o.default.bool,highlightFirstSuggestion:o.default.bool,theme:o.default.object,id:o.default.string}),v(O,"defaultProps",{renderSuggestionsContainer:function(e){var t=e.containerProps,n=e.children;return r.default.createElement("div",t,n)},shouldRenderSuggestions:function(e){return e.trim().length>0},alwaysRenderSuggestions:!1,multiSection:!1,focusInputOnSuggestionClick:!0,highlightFirstSuggestion:!1,theme:s.defaultTheme,id:"1"})},402:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==d(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(n(383)),o=c(n(697)),i=c(n(662)),u=c(n(379)),s=c(n(752)),a=c(n(210));function c(e){return e&&e.__esModule?e:{default:e}}function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){O(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?y(e):t}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function S(e,t){return(S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w={},I=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&S(e,t)}(l,e);var t,n,o,c=(t=l,function(){var e,n=v(t);if(b()){var r=v(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return m(this,e)});function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),O(y(t=c.call(this,e)),"storeInputReference",(function(e){null!==e&&(t.input=e);var n=t.props.inputProps.ref;n&&("function"==typeof n?n(e):"object"===d(n)&&Object.prototype.hasOwnProperty.call(n,"current")&&(n.current=e))})),O(y(t),"storeItemsContainerReference",(function(e){null!==e&&(t.itemsContainer=e)})),O(y(t),"onHighlightedItemChange",(function(e){t.highlightedItem=e})),O(y(t),"getItemId",(function(e,n){if(null===n)return null;var r=t.props.id,o=null===e?"":"section-".concat(e);return"react-autowhatever-".concat(r,"-").concat(o,"-item-").concat(n)})),O(y(t),"onFocus",(function(e){var n=t.props.inputProps;t.setState({isInputFocused:!0}),n.onFocus&&n.onFocus(e)})),O(y(t),"onBlur",(function(e){var n=t.props.inputProps;t.setState({isInputFocused:!1}),n.onBlur&&n.onBlur(e)})),O(y(t),"onKeyDown",(function(e){var n,r,o=t.props,i=o.inputProps,u=o.highlightedSectionIndex,s=o.highlightedItemIndex;switch(e.key){case"ArrowDown":case"ArrowUp":var a="ArrowDown"===e.key?"next":"prev",c=(n=t.sectionIterator[a]([u,s]),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var u,s=e[Symbol.iterator]();!(r=(u=s.next()).done)&&(n.push(u.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(n,r)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=c[0],g=c[1];i.onKeyDown(e,{newHighlightedSectionIndex:l,newHighlightedItemIndex:g});break;default:i.onKeyDown(e,{highlightedSectionIndex:u,highlightedItemIndex:s})}})),t.highlightedItem=null,t.state={isInputFocused:!1},t.setSectionsItems(e),t.setSectionIterator(e),t.setTheme(e),t}return n=l,(o=[{key:"componentDidMount",value:function(){this.ensureHighlightedItemIsVisible()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.items!==this.props.items&&this.setSectionsItems(e),e.items===this.props.items&&e.multiSection===this.props.multiSection||this.setSectionIterator(e),e.theme!==this.props.theme&&this.setTheme(e)}},{key:"componentDidUpdate",value:function(){this.ensureHighlightedItemIsVisible()}},{key:"setSectionsItems",value:function(e){e.multiSection&&(this.sectionsItems=e.items.map((function(t){return e.getSectionItems(t)})),this.sectionsLengths=this.sectionsItems.map((function(e){return e.length})),this.allSectionsAreEmpty=this.sectionsLengths.every((function(e){return 0===e})))}},{key:"setSectionIterator",value:function(e){this.sectionIterator=(0,i.default)({multiSection:e.multiSection,data:e.multiSection?this.sectionsLengths:e.items.length})}},{key:"setTheme",value:function(e){this.theme=(0,u.default)(e.theme)}},{key:"renderSections",value:function(){var e=this;if(this.allSectionsAreEmpty)return null;var t=this.theme,n=this.props,o=n.id,i=n.items,u=n.renderItem,c=n.renderItemData,l=n.renderSectionTitle,g=n.highlightedSectionIndex,f=n.highlightedItemIndex,p=n.itemProps;return i.map((function(n,i){var d="react-autowhatever-".concat(o,"-"),h="".concat(d,"section-").concat(i,"-"),m=0===i;return r.default.createElement("div",t("".concat(h,"container"),"sectionContainer",m&&"sectionContainerFirst"),r.default.createElement(s.default,{section:n,renderSectionTitle:l,theme:t,sectionKeyPrefix:h}),r.default.createElement(a.default,{items:e.sectionsItems[i],itemProps:p,renderItem:u,renderItemData:c,sectionIndex:i,highlightedItemIndex:g===i?f:null,onHighlightedItemChange:e.onHighlightedItemChange,getItemId:e.getItemId,theme:t,keyPrefix:d,ref:e.storeItemsListReference}))}))}},{key:"renderItems",value:function(){var e=this.props.items;if(0===e.length)return null;var t=this.theme,n=this.props,o=n.id,i=n.renderItem,u=n.renderItemData,s=n.highlightedSectionIndex,c=n.highlightedItemIndex,l=n.itemProps;return r.default.createElement(a.default,{items:e,itemProps:l,renderItem:i,renderItemData:u,highlightedItemIndex:null===s?c:null,onHighlightedItemChange:this.onHighlightedItemChange,getItemId:this.getItemId,theme:t,keyPrefix:"react-autowhatever-".concat(o,"-")})}},{key:"ensureHighlightedItemIsVisible",value:function(){var e=this.highlightedItem;if(e){var t=this.itemsContainer,n=e.offsetParent===t?e.offsetTop:e.offsetTop-t.offsetTop,r=t.scrollTop;n<r?r=n:n+e.offsetHeight>r+t.offsetHeight&&(r=n+e.offsetHeight-t.offsetHeight),r!==t.scrollTop&&(t.scrollTop=r)}}},{key:"render",value:function(){var e=this.theme,t=this.props,n=t.id,o=t.multiSection,i=t.renderInputComponent,u=t.renderItemsContainer,s=t.highlightedSectionIndex,a=t.highlightedItemIndex,c=this.state.isInputFocused,l=o?this.renderSections():this.renderItems(),g=null!==l,p=this.getItemId(s,a),d="react-autowhatever-".concat(n),h=f({role:"combobox","aria-haspopup":"listbox","aria-owns":d,"aria-expanded":g},e("react-autowhatever-".concat(n,"-container"),"container",g&&"containerOpen"),{},this.props.containerProps),m=i(f({type:"text",value:"",autoComplete:"off","aria-autocomplete":"list","aria-controls":d,"aria-activedescendant":p},e("react-autowhatever-".concat(n,"-input"),"input",g&&"inputOpen",c&&"inputFocused"),{},this.props.inputProps,{onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.props.inputProps.onKeyDown&&this.onKeyDown,ref:this.storeInputReference})),y=u({containerProps:f({id:d,role:"listbox"},e("react-autowhatever-".concat(n,"-items-container"),"itemsContainer",g&&"itemsContainerOpen"),{ref:this.storeItemsContainerReference}),children:l});return r.default.createElement("div",h,m,y)}}])&&h(n.prototype,o),l}(r.Component);t.default=I,O(I,"propTypes",{id:o.default.string,multiSection:o.default.bool,renderInputComponent:o.default.func,renderItemsContainer:o.default.func,items:o.default.array.isRequired,renderItem:o.default.func,renderItemData:o.default.object,renderSectionTitle:o.default.func,getSectionItems:o.default.func,containerProps:o.default.object,inputProps:o.default.object,itemProps:o.default.oneOfType([o.default.object,o.default.func]),highlightedSectionIndex:o.default.number,highlightedItemIndex:o.default.number,theme:o.default.oneOfType([o.default.object,o.default.array])}),O(I,"defaultProps",{id:"1",multiSection:!1,renderInputComponent:function(e){return r.default.createElement("input",e)},renderItemsContainer:function(e){var t=e.containerProps,n=e.children;return r.default.createElement("div",t,n)},renderItem:function(){throw new Error("`renderItem` must be provided")},renderItemData:w,renderSectionTitle:function(){throw new Error("`renderSectionTitle` must be provided")},getSectionItems:function(){throw new Error("`getSectionItems` must be provided")},containerProps:w,inputProps:w,itemProps:w,highlightedSectionIndex:null,highlightedItemIndex:null,theme:{container:"react-autowhatever__container",containerOpen:"react-autowhatever__container--open",input:"react-autowhatever__input",inputOpen:"react-autowhatever__input--open",inputFocused:"react-autowhatever__input--focused",itemsContainer:"react-autowhatever__items-container",itemsContainerOpen:"react-autowhatever__items-container--open",itemsList:"react-autowhatever__items-list",item:"react-autowhatever__item",itemFirst:"react-autowhatever__item--first",itemHighlighted:"react-autowhatever__item--highlighted",sectionContainer:"react-autowhatever__section-container",sectionContainerFirst:"react-autowhatever__section-container--first",sectionTitle:"react-autowhatever__section-title"}})},314:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(n(383)),o=u(n(697)),i=u(n(770));function u(e){return e&&e.__esModule?e:{default:e}}function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?d(e):t}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(s,e);var t,n,o,u=(t=s,function(){var e,n=m(t);if(h()){var r=m(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return p(this,e)});function s(){var e;g(this,s);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return b(d(e=u.call.apply(u,[this].concat(n))),"storeItemReference",(function(t){null!==t&&(e.item=t)})),b(d(e),"onMouseEnter",(function(t){var n=e.props,r=n.sectionIndex,o=n.itemIndex;e.props.onMouseEnter(t,{sectionIndex:r,itemIndex:o})})),b(d(e),"onMouseLeave",(function(t){var n=e.props,r=n.sectionIndex,o=n.itemIndex;e.props.onMouseLeave(t,{sectionIndex:r,itemIndex:o})})),b(d(e),"onMouseDown",(function(t){var n=e.props,r=n.sectionIndex,o=n.itemIndex;e.props.onMouseDown(t,{sectionIndex:r,itemIndex:o})})),b(d(e),"onClick",(function(t){var n=e.props,r=n.sectionIndex,o=n.itemIndex;e.props.onClick(t,{sectionIndex:r,itemIndex:o})})),e}return n=s,(o=[{key:"shouldComponentUpdate",value:function(e){return(0,i.default)(e,this.props,["renderItemData"])}},{key:"render",value:function(){var e=this.props,t=e.isHighlighted,n=e.item,o=e.renderItem,i=e.renderItemData,u=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["isHighlighted","item","renderItem","renderItemData"]);return delete u.sectionIndex,delete u.itemIndex,"function"==typeof u.onMouseEnter&&(u.onMouseEnter=this.onMouseEnter),"function"==typeof u.onMouseLeave&&(u.onMouseLeave=this.onMouseLeave),"function"==typeof u.onMouseDown&&(u.onMouseDown=this.onMouseDown),"function"==typeof u.onClick&&(u.onClick=this.onClick),r.default.createElement("li",c({role:"option"},u,{ref:this.storeItemReference}),o(n,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({isHighlighted:t},i)))}}])&&f(n.prototype,o),s}(r.Component);t.default=v,b(v,"propTypes",{sectionIndex:o.default.number,isHighlighted:o.default.bool.isRequired,itemIndex:o.default.number.isRequired,item:o.default.any.isRequired,renderItem:o.default.func.isRequired,renderItemData:o.default.object.isRequired,onMouseEnter:o.default.func,onMouseLeave:o.default.func,onMouseDown:o.default.func,onClick:o.default.func})},210:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==c(e)&&"function"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(n(383)),o=s(n(697)),i=s(n(314)),u=s(n(770));function s(e){return e&&e.__esModule?e:{default:e}}function a(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?h(e):t}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(a,e);var t,n,o,s=(t=a,function(){var e,n=y(t);if(m()){var r=y(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return d(this,e)});function a(){var e;f(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return v(h(e=s.call.apply(s,[this].concat(n))),"storeHighlightedItemReference",(function(t){e.props.onHighlightedItemChange(null===t?null:t.item)})),e}return n=a,(o=[{key:"shouldComponentUpdate",value:function(e){return(0,u.default)(e,this.props,["itemProps"])}},{key:"render",value:function(){var e=this,t=this.props,n=t.items,o=t.itemProps,u=t.renderItem,s=t.renderItemData,a=t.sectionIndex,c=t.highlightedItemIndex,f=t.getItemId,p=t.theme,d=t.keyPrefix,h=null===a?d:"".concat(d,"section-").concat(a,"-"),m="function"==typeof o;return r.default.createElement("ul",l({role:"listbox"},p("".concat(h,"items-list"),"itemsList")),n.map((function(t,n){var d=0===n,y=n===c,b="".concat(h,"item-").concat(n),S=m?o({sectionIndex:a,itemIndex:n}):o,O=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:f(a,n),"aria-selected":y},p(b,"item",d&&"itemFirst",y&&"itemHighlighted"),{},S);return y&&(O.ref=e.storeHighlightedItemReference),r.default.createElement(i.default,l({},O,{sectionIndex:a,isHighlighted:y,itemIndex:n,item:t,renderItem:u,renderItemData:s}))})))}}])&&p(n.prototype,o),a}(r.Component);t.default=S,v(S,"propTypes",{items:o.default.array.isRequired,itemProps:o.default.oneOfType([o.default.object,o.default.func]),renderItem:o.default.func.isRequired,renderItemData:o.default.object.isRequired,sectionIndex:o.default.number,highlightedItemIndex:o.default.number,onHighlightedItemChange:o.default.func.isRequired,getItemId:o.default.func.isRequired,theme:o.default.func.isRequired,keyPrefix:o.default.string.isRequired}),v(S,"defaultProps",{sectionIndex:null})},752:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(n(383)),o=u(n(697)),i=u(n(770));function u(e){return e&&e.__esModule?e:{default:e}}function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var h,m,y,b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(s,e);var t,n,o,u=(t=s,function(){var e,n=p(t);if(f()){var r=p(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return g(this,e)});function s(){return c(this,s),u.apply(this,arguments)}return n=s,(o=[{key:"shouldComponentUpdate",value:function(e){return(0,i.default)(e,this.props)}},{key:"render",value:function(){var e=this.props,t=e.section,n=e.renderSectionTitle,o=e.theme,i=e.sectionKeyPrefix,u=n(t);return u?r.default.createElement("div",o("".concat(i,"title"),"sectionTitle"),u):null}}])&&l(n.prototype,o),s}(r.Component);t.default=b,h=b,m="propTypes",y={section:o.default.any.isRequired,renderSectionTitle:o.default.func.isRequired,theme:o.default.func.isRequired,sectionKeyPrefix:o.default.string.isRequired},m in h?Object.defineProperty(h,m,{value:y,enumerable:!0,configurable:!0,writable:!0}):h[m]=y},770:(e,t)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(e===t)return!1;var o=Object.keys(e),i=Object.keys(t);if(o.length!==i.length)return!0;var u,s,a={};for(u=0,s=r.length;u<s;u++)a[r[u]]=!0;for(u=0,s=o.length;u<s;u++){var c=o[u],l=e[c],g=t[c];if(l!==g){if(!a[c]||null===l||null===g||"object"!==n(l)||"object"!==n(g))return!0;var f=Object.keys(l),p=Object.keys(g);if(f.length!==p.length)return!0;for(var d=0,h=f.length;d<h;d++){var m=f[d];if(l[m]!==g[m])return!0}}}return!1}},808:(e,t,n)=>{"use strict";e.exports=n(394).default},581:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapToAutowhateverTheme=t.defaultTheme=void 0,t.defaultTheme={container:"react-autosuggest__container",containerOpen:"react-autosuggest__container--open",input:"react-autosuggest__input",inputOpen:"react-autosuggest__input--open",inputFocused:"react-autosuggest__input--focused",suggestionsContainer:"react-autosuggest__suggestions-container",suggestionsContainerOpen:"react-autosuggest__suggestions-container--open",suggestionsList:"react-autosuggest__suggestions-list",suggestion:"react-autosuggest__suggestion",suggestionFirst:"react-autosuggest__suggestion--first",suggestionHighlighted:"react-autosuggest__suggestion--highlighted",sectionContainer:"react-autosuggest__section-container",sectionContainerFirst:"react-autosuggest__section-container--first",sectionTitle:"react-autosuggest__section-title"},t.mapToAutowhateverTheme=function(e){var t={};for(var n in e)switch(n){case"suggestionsContainer":t.itemsContainer=e[n];break;case"suggestionsContainerOpen":t.itemsContainerOpen=e[n];break;case"suggestion":t.item=e[n];break;case"suggestionFirst":t.itemFirst=e[n];break;case"suggestionHighlighted":t.itemHighlighted=e[n];break;case"suggestionsList":t.itemsList=e[n];break;default:t[n]=e[n]}return t}},379:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var o,i=(o=n(894))&&o.__esModule?o:{default:o},u=function(e){return e};t.default=function(e){var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var u,s=e[Symbol.iterator]();!(r=(u=s.next()).done)&&(n.push(u.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(Array.isArray(e)&&2===e.length?e:[e,null],2),n=t[0],o=t[1];return function(e){for(var t=arguments.length,s=Array(t>1?t-1:0),a=1;a<t;a++)s[a-1]=arguments[a];var c=s.map((function(e){return n[e]})).filter(u);return"string"==typeof c[0]||"function"==typeof o?{key:e,className:o?o.apply(void 0,r(c)):c.join(" ")}:{key:e,style:i.default.apply(void 0,[{}].concat(r(c)))}}},e.exports=t.default},894:e=>{"use strict";var t=Object.prototype.propertyIsEnumerable;function n(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function r(e){var n=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(e))),n.filter((function(n){return t.call(e,n)}))}e.exports=Object.assign||function(e,t){for(var o,i,u=n(e),s=1;s<arguments.length;s++){o=arguments[s],i=r(Object(o));for(var a=0;a<i.length;a++)u[i[a]]=o[i[a]]}return u}},662:e=>{"use strict";var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var u,s=e[Symbol.iterator]();!(r=(u=s.next()).done)&&(n.push(u.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};e.exports=function(e){var n=e.data,r=e.multiSection;function o(e){var o=t(e,2),i=o[0],u=o[1];return r?null===u||u===n[i]-1?null===(i=function(e){for(null===e?e=0:e++;e<n.length&&0===n[e];)e++;return e===n.length?null:e}(i))?[null,null]:[i,0]:[i,u+1]:0===n||u===n-1?[null,null]:null===u?[null,0]:[null,u+1]}return{next:o,prev:function(e){var o=t(e,2),i=o[0],u=o[1];return r?null===u||0===u?null===(i=function(e){for(null===e?e=n.length-1:e--;e>=0&&0===n[e];)e--;return-1===e?null:e}(i))?[null,null]:[i,n[i]-1]:[i,u-1]:0===n||0===u?[null,null]:null===u?[null,n-1]:[null,u-1]},isLast:function(e){return null===o(e)[1]}}}},444:e=>{"use strict";e.exports=function(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=e.length;if(t.length!==n)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}},376:t=>{"use strict";t.exports=e},383:e=>{"use strict";e.exports=t},949:e=>{"use strict";e.exports=n}},o={};function i(e){if(o[e])return o[e].exports;var t=o[e]={exports:{}};return r[e](t,t.exports,i),t.exports}return i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i(44)})()}));
|
|
2
2
|
//# sourceMappingURL=alphabox.js.map
|
package/build/umd/auAuth.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var o=t();for(var s in o)("object"==typeof exports?exports:e)[s]=o[s]}}(self,(function(){return(()=>{"use strict";var e={255:(e,t,o)=>{o.r(t);const{serviceScopeProfile:s}=window;window.auAuth=new class{constructor(e,t,o,s,i,n){var r,a;a=void 0,(r="config")in this?Object.defineProperty(this,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):this[r]=a,this.config={auth:{clientId:e,authority:t,redirectUri:o,navigateToLoginRequestUrl:!0,postLogoutRedirectUri:window.location.href}},this.userContextUri=s,this.userContextServiceScope=i,this.popupErrorPage=n,this.msal=new Msal.UserAgentApplication(this.config),this.msal.handleRedirectCallback((e=>{e&&e.errorMessage&&console.log(`Token error during login: ${e.errorMessage}`)})),this.fetching=!1,this.userContext=null,this.fetchEvents=[]}login(){this.msal.loginRedirect({authority:this.config.auth.authority,state:window.location.href})}logout(){this.msal.logout()}setUserContext(e=0,t,o,s,i=(()=>{}),n=!0,r=!1,a=(async e=>e)){const c=((e="",t=!1)=>{if(t){let e=null;return Object.entries(window.sessionStorage).forEach((t=>{const o=t[0];o.includes("user-context")&&(e=window.sessionStorage.getItem(o))})),e}return window.sessionStorage.getItem(`user-context-${e}`)})(e);if(c&&!o&&(this.userContext=JSON.parse(c)),null==this.userContext||"function"!=typeof s||o){if(this.fetchEvents.push({key:t,callback:s,error:i}),console.log(`Callback for key ${t} added to queue`),!this.fetching){this.fetching=!0,0===e&&([e]=this.getUser().auid.match(/(\d+)/g));let t=this.userContextUri;e>0&&(t=`${t}?auid=${e}`),o&&(t=`${t}&clearCache=true`);const s=async(e,t)=>{e.ok&&(this.userContext=await a(t),this.userContext.isStudentImpersonator&&n&&window.sessionStorage.setItem("student-impersonation",!0)),this.fetchEvents.forEach((o=>{e.ok?"function"==typeof o.callback&&(o.callback(this.userContext),console.log(`Callback for key ${o.key} has been invoked`)):(o.error(e.status,t),console.log("Context fetch errored and error callback with response has been invoked"))})),this.fetching=!1};r?(async()=>{const e=await fetch(t,{credentials:"include"});if(401!==e.status){const t=await e.json();s(e,t)}else s(e,{title:`${e.status}: Context not allowed for the specific user`})})():this.getAccessToken([this.userContextServiceScope]).then((async({accessToken:e})=>{const o=await fetch(t,{headers:{Authorization:`Bearer ${e}`}}),i=await o.json();s(o,i)}))}}else s(this.userContext),console.log(`Using existing context for key ${t}`)}getUser(){const e=this.msal.getAccount();return null==e?null:{name:e.name,userId:e.accountIdentifier,auid:e.userName}}getIdToken(){return this.msal.acquireTokenSilent({scopes:[this.config.auth.clientId],authority:this.config.auth.authority})}getAccessToken(e){const t={scopes:e,authority:this.config.auth.authority,state:window.location.href},o=()=>{const e=JSON.stringify({thisIsCachedSafariAccessToken:!0,authority:t.authority,clientId:this.config.auth.clientId,scopes:t.scopes,homeAccountIdentifier:this.msal.getAccount().homeAccountIdentifier}),o=sessionStorage.getItem(e);if(null!=o){const e=JSON.parse(o);if(e.expiresOn&&new Date(e.expiresOn)>new Date&&e.accessToken)return new Promise((t=>t(e)))}return this.msal.acquireTokenPopup(t).then((t=>{sessionStorage.setItem(e,JSON.stringify(t))})).catch((()=>{this.popupErrorPage?window.location.href=this.popupErrorPage:window.alert("This site needs to show popups, but your browser blocks popups from this site.\nYou need to allow popups from this site, then reload the page.")}))};return void 0!==window.safari?o():this.msal.acquireTokenSilent(t).catch((()=>o()))}}(window.auAuthClientId,window.auAuthAuthority,window.auAuthRedirectUri,window.userContextApiUri,window.userContextServiceScope,window.popupErrorPage)}},t={};function o(s){if(t[s])return t[s].exports;var i=t[s]={exports:{}};return e[s](i,i.exports,o),i.exports}return o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o(255)})()}));
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var o=t();for(var s in o)("object"==typeof exports?exports:e)[s]=o[s]}}(self,(function(){return(()=>{"use strict";var e={255:(e,t,o)=>{o.r(t);const{serviceScopeProfile:s}=window;window.auAuth=new class{constructor(e,t,o,s,i,n){var r,a;a=void 0,(r="config")in this?Object.defineProperty(this,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):this[r]=a,this.config={auth:{clientId:e,authority:t,redirectUri:o,navigateToLoginRequestUrl:!0,postLogoutRedirectUri:window.location.href}},this.userContextUri=s,this.userContextServiceScope=i,this.popupErrorPage=n,this.msal=new Msal.UserAgentApplication(this.config),this.msal.handleRedirectCallback((e=>{e&&e.errorMessage&&console.log(`Token error during login: ${e.errorMessage}`)})),this.fetching=!1,this.userContext=null,this.fetchEvents=[]}login(){this.msal.loginRedirect({authority:this.config.auth.authority,state:window.location.href})}logout(){this.msal.logout()}setUserContext(e=0,t,o,s,i=(()=>{}),n=!0,r=!1,a=(async e=>e)){const c=((e="",t=!1)=>{if(t){let e=null;return Object.entries(window.sessionStorage).forEach((t=>{const o=t[0];o.includes("user-context")&&(e=window.sessionStorage.getItem(o))})),e}return window.sessionStorage.getItem(`user-context-${e}`)})(e);if(c&&!o&&(this.userContext=JSON.parse(c)),null==this.userContext||"function"!=typeof s||o){if(this.fetchEvents.push({key:t,callback:s,error:i}),console.log(`Callback for key ${t} added to queue`),!this.fetching){this.fetching=!0,0===e&&([e]=this.getUser().auid.match(/(\d+)/g));let t=this.userContextUri;e>0&&(t=`${t}?auid=${e}`),o&&(t=`${t}&clearCache=true`);const s=async(e,t)=>{e.ok&&(this.userContext=await a(t),this.userContext.isStudentImpersonator&&n&&window.sessionStorage.setItem("student-impersonation",!0)),this.fetchEvents.forEach((o=>{e.ok?"function"==typeof o.callback&&(o.callback(this.userContext),console.log(`Callback for key ${o.key} has been invoked`)):(o.error(e.status,t),console.log("Context fetch errored and error callback with response has been invoked"))})),this.fetching=!1};r?(async()=>{const e=await fetch(t,{credentials:"include"});if(401!==e.status){const t=await e.json();s(e,t)}else s(e,{title:`${e.status}: Context not allowed for the specific user`})})():this.getAccessToken([this.userContextServiceScope]).then((async({accessToken:e})=>{const o=await fetch(t,{headers:{Authorization:`Bearer ${e}`}}),i=await o.json();s(o,i)}))}}else s(this.userContext),console.log(`Using existing context for key ${t}`)}getUser(){const e=this.msal.getAccount();return null==e?null:{name:e.name,userId:e.accountIdentifier,auid:e.userName}}getIdToken(){return this.msal.acquireTokenSilent({scopes:[this.config.auth.clientId],authority:this.config.auth.authority})}getAccessToken(e){const t={scopes:e,authority:this.config.auth.authority,state:window.location.href},o=()=>{const e=JSON.stringify({thisIsCachedSafariAccessToken:!0,authority:t.authority,clientId:this.config.auth.clientId,scopes:t.scopes,homeAccountIdentifier:this.msal.getAccount().homeAccountIdentifier}),o=sessionStorage.getItem(e);if(null!=o){const e=JSON.parse(o);if(e.expiresOn&&new Date(e.expiresOn)>new Date&&e.accessToken)return new Promise((t=>t(e)))}return this.msal.acquireTokenPopup(t).then((t=>{sessionStorage.setItem(e,JSON.stringify(t))})).catch((()=>{this.popupErrorPage?window.location.href=this.popupErrorPage:window.alert("This site needs to show popups, but your browser blocks popups from this site.\nYou need to allow popups from this site, then reload the page.")}))};return void 0!==window.safari?o():this.msal.acquireTokenSilent(t).catch((()=>o()))}}(window.auAuthClientId,window.auAuthAuthority,window.auAuthRedirectUri,window.userContextApiUri,window.userContextServiceScope,window.popupErrorPage)}},t={};function o(s){if(t[s])return t[s].exports;var i=t[s]={exports:{}};return e[s](i,i.exports,o),i.exports}return o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o(255)})()}));
|
|
2
2
|
//# sourceMappingURL=auAuth.js.map
|