@aarhus-university/au-lib-react-components 10.1.0 → 10.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/build/umd/all.css +2 -2
  2. package/build/umd/all.js +1 -1
  3. package/build/umd/alphabox.js +1 -1
  4. package/build/umd/databox.js +1 -1
  5. package/build/umd/diagramme.js +1 -1
  6. package/build/umd/flowbox.js +1 -1
  7. package/build/umd/universe.js +1 -1
  8. package/package.json +4 -4
  9. package/src/components/AUAutoSuggestComponent.js +158 -158
  10. package/src/components/AUToastComponent.tsx +11 -12
  11. package/src/components/profile/AUProfileLoginComponent.tsx +26 -26
  12. package/src/layout-2016/components/alphabox/AlphaBoxComponent.js +143 -143
  13. package/src/layout-2016/components/alphabox/AlphaBoxContentComponent.js +136 -136
  14. package/src/layout-2016/components/common/AUCollapsibleComponent.js +152 -152
  15. package/src/layout-2016/components/common/AUSpinnerComponent.js +103 -103
  16. package/src/layout-2016/components/databox/DataBoxAlphabetComponent.js +144 -144
  17. package/src/layout-2016/components/databox/DataBoxAssociationComponent.js +122 -122
  18. package/src/layout-2016/components/databox/DataBoxButtonComponent.js +157 -157
  19. package/src/layout-2016/components/databox/DataBoxComponent.js +297 -297
  20. package/src/layout-2016/components/databox/DataBoxGroupingComponent.js +64 -64
  21. package/src/layout-2016/components/databox/DataBoxSearchResultComponent.js +36 -36
  22. package/src/layout-2016/components/databox/DataBoxStackedAssociationComponent.js +54 -54
  23. package/src/layout-2016/components/databox/DataBoxSuggestionComponent.js +39 -39
  24. package/src/layout-2016/components/diagramme/AUDiagrammeComponent.js +309 -309
  25. package/src/layout-2016/components/flowbox/FlowBoxComponent.js +126 -126
  26. package/src/layout-2016/components/flowbox/FlowBoxPhoneComponent.js +104 -104
  27. package/src/layout-2016/components/profile/AUProfileAvatar2016Component.js +103 -103
  28. package/src/layout-2016/components/universe/StaffTopComponent.js +363 -363
  29. package/src/layout-2016/components/universe/StudentTopComponent.js +137 -137
  30. package/src/layout-2016/components/universe/UniverseContainerComponent.js +65 -65
  31. package/src/layout-2016/lib/all.js +3 -3
  32. package/src/layout-2016/lib/au-alphabox.js +100 -100
  33. package/src/layout-2016/lib/au-databox.js +400 -400
  34. package/src/layout-2016/lib/au-diagramme.js +85 -85
  35. package/src/layout-2016/lib/au-flowbox.js +93 -93
  36. package/src/layout-2016/lib/universe.js +9 -9
  37. package/src/lib/helpers.ts +194 -194
  38. package/tsconfig.json +46 -46
  39. package/types/common/interfaces/gui.d.ts +1 -0
  40. package/types/common/interfaces/model.d.ts +29 -29
  41. package/types/common/props.d.ts +166 -165
  42. package/webpack.config.js +89 -89
package/build/umd/all.css CHANGED
@@ -1,3 +1,3 @@
1
- .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 p.no-results{background-color:#fff;color:#555;padding:1rem}.au_alphabox li.no-results a{font-weight:bold}.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}.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 h3{color:#fff;margin:0 0 1rem 0 !important;padding-top:1rem;font-size:1.25rem;border-top:1px solid #fff}.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}@media(max-width: 400px){.au_alphabox ul.quicklinks li{width:100%;margin-right:0 !important;font-size:1.72727rem}}.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_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:rgba(0,0,0,0) !important}.study-diagramme tr{background-color:rgba(0,0,0,0) !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}@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:rgba(0,0,0,0);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_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 p.no-results{background-color:#fff;color:#555;padding:1rem}.au_alphabox li.no-results a{font-weight:bold}.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}.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 h3{color:#fff;margin:0 0 1rem 0 !important;padding-top:1rem;font-size:1.25rem;border-top:1px solid #fff}.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}@media(max-width: 400px){.au_alphabox ul.quicklinks li{width:100%;margin-right:0 !important;font-size:1.72727rem}}.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_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:rgba(0,0,0,0) !important}.study-diagramme tr{background-color:rgba(0,0,0,0) !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}@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:rgba(0,0,0,0);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,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o();else if("function"==typeof define&&define.amd)define([],o);else{var t=o();for(var f in t)("object"==typeof exports?exports:e)[f]=t[f]}}(self,(()=>(()=>{"use strict";var e={};return(e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})})(e),e})()));
1
+ !function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o();else if("function"==typeof define&&define.amd)define([],o);else{var t=o();for(var f in t)("object"==typeof exports?exports:e)[f]=t[f]}}(self,(()=>(()=>{"use strict";var e={};return(e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})})(e),e})()));
2
2
  //# sourceMappingURL=all.js.map
@@ -1,2 +1,2 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("react"),require("react-dom"));else if("function"==typeof define&&define.amd)define(["react","react-dom"],t);else{var n="object"==typeof exports?t(require("react"),require("react-dom")):t(e.React,e.ReactDOM);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(self,((e,t)=>(()=>{var n={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,bigint: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(244)),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},l(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)},y(e)}function b(e,t){return b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},b(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,x=y?S:this.props.shouldRenderSuggestions,_=c.value,C=c.onFocus,R=c.onKeyDown,k=this.willRenderSuggestions(this.props),E=y||O&&!w&&k,D=E?n:[],T=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:_,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=x(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:_,reason:"suggestions-revealed"}),e.revealSuggestions());else if(n.length>0){var u,s=r.newHighlightedSectionIndex,a=r.newHighlightedItemIndex;u=null===a?null===P?_:P:e.getSuggestionValueByIndex(s,a),e.updateHighlightedSuggestion(s,a,_),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"),x("")?i({value:"",reason:"escape-pressed"}):e.onSuggestionsClearRequested()):e.maybeCallOnChange(t,P,"escape"),g?(e.onSuggestionsClearRequested(),e.closeSuggestions()):e.resetHighlightedSuggestion()}R&&R(t)}}),q={query:this.getQuery()};return r.default.createElement(u.default,{multiSection:l,items:D,renderInputComponent:o,renderItemsContainer:this.renderSuggestionsContainer,renderItem:a,renderItemData:q,renderSectionTitle:g,getSectionItems:d,highlightedSectionIndex:I,highlightedItemIndex:j,inputProps:T,itemProps:this.itemProps,theme:(0,s.mapToAutowhateverTheme)(h),id:p,ref:this.storeAutowhateverRef})}}],o&&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(244)),o=c(n(697)),i=c(n(383)),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},d(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)},v(e)}function S(e,t){return S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},S(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(244)),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},a(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},c.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)},m(e)}function y(e,t){return y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y(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)))}}],o&&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(244)),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},c(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},l.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)},y(e)}function b(e,t){return b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},b(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}))})))}}],o&&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(244)),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},a(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)},p(e)}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(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},n(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}},383: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}},244:t=>{"use strict";t.exports=e},741:e=>{"use strict";e.exports=t}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return n[e](i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";o.r(i);var e=o(244),t=o.n(e),n=o(741),r=o.n(n),u=o(697),s=o.n(u);const a=(e,t)=>void 0!==e.name&&void 0!==t.name?e.name.toLowerCase().localeCompare(t.name.toLowerCase(),"da",{ignorePunctuation:!0}):0;class c extends t().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:n,linkColor:r,noResultsText:o,noResultsUri:i}=this.props,u=this.letters.map(((o,i)=>{const u=n.filter((e=>0===e.name.toLowerCase().indexOf(o))).length>0;let s="";u&&(s+="available"),i===e&&(s+=" active");let a={};return u&&(a=e===i?{backgroundColor:"#fff",color:r}:{backgroundColor:r}),t().createElement("li",{key:o,className:s},t().createElement("button",{type:"button",style:a,onClick:()=>{u&&this.setState({letterIndex:i})}},o))}));let s=[];e>-1&&(s=n.filter((t=>0===t.name.toLowerCase().indexOf(this.letters[e]))));const c=s.sort(a).map(((e,n)=>{const r=n,o=e.children.map((e=>t().createElement("li",{key:e.name},t().createElement("a",{href:e.url},e.name))));return e.children.length>0?t().createElement("li",{key:r},t().createElement("a",{href:e.url},e.name),t().createElement("ul",null,o)):t().createElement("li",{key:r},t().createElement("a",{href:e.url},e.name))}));return t().createElement("div",{className:"au_alphabox_content"},t().createElement("ul",{className:"letters"},u),e>-1&&t().createElement("div",null,t().createElement("ul",{className:"items"},c,o&&i&&t().createElement("li",{className:"no-results"},t().createElement("a",{href:i},o)))))}}c.defaultProps={noResultsText:"",noResultsUri:""},c.propTypes={linkColor:s().string.isRequired,items:s().arrayOf(s().shape({name:s().string.isRequired,url:s().string.isRequired})).isRequired,noResultsText:s().string,noResultsUri:s().string},c.displayName="AlphaBoxContentComponent";const l=c;var g=o(808),f=o.n(g),p=o(296),d=o.n(p);class h extends t().Component{constructor(e){super(e),this.state={value:"",suggestions:[],noSuggestions:!1},this.onChange=this.onChange.bind(this),this.onEnter=this.onEnter.bind(this),this.onSuggestionsFetchRequested=d()(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)}))}onEnter(e){const{suggestions:t}=this.state,{setResults:n}=this.props;"Enter"===e.key&&n(t)}onSuggestionsFetchRequested({value:e}){const{getSuggestions:t,collection:n}=this.props;t(e,n,(t=>{this.setState({suggestions:t,noSuggestions:0===t.length&&""!==e.trim()&&e.trim().length>1})}))}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:n,noSuggestions:r}=this.state,{placeholder:o,getSuggestionValue:i,renderSuggestion:u,id:s,theme:a,type:c,initialValue:l,disabled:g,noResultsText:p}=this.props,d={placeholder:o,value:l||e,id:s,type:c,disabled:g,"aria-label":o,onChange:this.onChange,onKeyDown:this.onEnter};return t().createElement(t().Fragment,null,t().createElement(f(),{suggestions:n,onSuggestionsFetchRequested:this.onSuggestionsFetchRequested,onSuggestionsClearRequested:this.onSuggestionsClearRequested,onSuggestionSelected:this.onSuggestionSelected,getSuggestionValue:i,renderSuggestion:u,inputProps:d,theme:a}),r&&p&&t().createElement("p",{className:"no-results"},t().createElement("em",null,p)))}}h.displayName="AUAutoSuggestComponent",h.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,setQuery:()=>{},noResultsText:""},h.propTypes={setQuery:s().func,getSuggestions:s().func.isRequired,getSuggestionValue:s().func.isRequired,renderSuggestion:s().func.isRequired,setResults:s().func.isRequired,collection:s().arrayOf(s().shape({})).isRequired,placeholder:s().string.isRequired,id:s().string,theme:s().shape({}),clearInput:s().bool,type:s().string,initialValue:s().string,disabled:s().bool,noResultsText:s().string};const m=h;class y extends t().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 t().createElement("span",null,e.name)}}y.propTypes={item:s().shape({id:s().number.isRequired}).isRequired},y.displayName="DataBoxSuggestionComponent";const b=y;class v extends t().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"),fetch(t.source).then((e=>e.json())).then((e=>{this.setState({items:e.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||e.name.replace(/-/gi," ").toLowerCase().indexOf(o)>-1||e.name.replace(/ /gi,"-").toLowerCase().indexOf(o)>-1)).sort(((e,t)=>e.name.toLowerCase().localeCompare(t.name.toLowerCase(),"da",{ignorePunctuation:!0}))))}render(){const{box:e}=this.props,{items:n}=this.state,{config:r}=e,o=r.links.map((n=>t().createElement("li",{key:n.title},t().createElement("a",{href:n.url,onClick:()=>{"function"==typeof n.onClick&&n.onClick()},style:{backgroundColor:e.background.linkColor}},n.title))));return t().createElement("div",{className:"au_alphabox",style:{backgroundColor:e.background.color}},t().createElement("div",null,t().createElement("h2",null,t().createElement("a",{href:r.url},r.title)),t().createElement(l,{items:n,linkColor:e.background.linkColor,noResultsText:r.noResultsAlphabet,noResultsUri:r.noResultsUri}),t().createElement(m,{placeholder:e.search.placeHolder,setResults:e=>{e.length>=1&&e[0].url&&(window.location.href=e[0].url)},collection:[],getSuggestions:this.getSuggestions,getSuggestionValue:e=>e.name,renderSuggestion:e=>t().createElement(b,{item:e}),noResultsText:r.noResultsSearch}),""!==r.description&&t().createElement("h3",null,r.description),r.links.length>0&&t().createElement("ul",{className:"quicklinks resetlist"},o)))}}v.propTypes={box:s().shape({id:s().number.isRequired,data:s().shape({itemsOnly:s().bool.isRequired,mode:s().string.isRequired,source:s().string.isRequired}),config:s().shape({name:s().string.isRequired,url:s().string.isRequired,description:s().string.isRequired,container:s().string.isRequired,tracking:s().string.isRequired,links:s().arrayOf(s().shape({title:s().string.isRequired,url:s().string.isRequired})).isRequired,title:s().string.isRequired,noResultsAlphabet:s().string.isRequired,noResultsSearch:s().string.isRequired,noResultsUri:s().string.isRequired}).isRequired,background:s().shape({color:s().string.isRequired,linkColor:s().string.isRequired}).isRequired,search:s().shape({placeHolder:s().string.isRequired,minLength:s().number.isRequired}).isRequired}).isRequired},v.displayName="AlphaBoxComponent";const S=v,O={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 w{constructor(e){this.boxes=e}static mergeOptions(e){const t=e;t.hasOwnProperty("config")||(t.config={});for(const e in O.config)t.config.hasOwnProperty(e)||(t.config[e]=O.config[e]);t.hasOwnProperty("background")||(t.background={});for(const e in O.background)t.background.hasOwnProperty(e)||(t.background[e]=O.background[e]);t.hasOwnProperty("search")||(t.search={});for(const e in O.search)t.search.hasOwnProperty(e)||(t.search[e]=O.search[e]);t.hasOwnProperty("data")||(t.data={});for(const e in O.data)t.data.hasOwnProperty(e)||(t.data[e]=O.data[e])}init(){for(let e=0;e<this.boxes.length;e+=1){const n=this.boxes[e];if(!n.loaded){n.id=e,w.mergeOptions(n);const o=document.querySelector(n.config.container);o&&"hidden"!==getComputedStyle(o).visibility&&(r().render(t().createElement(S,{box:n}),o),n.loaded=!0)}}}}window.AUAlphabox=w})(),i})()));
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("react"),require("react-dom"));else if("function"==typeof define&&define.amd)define(["react","react-dom"],t);else{var n="object"==typeof exports?t(require("react"),require("react-dom")):t(e.React,e.ReactDOM);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(self,((e,t)=>(()=>{var n={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,bigint: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(244)),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},l(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)},y(e)}function b(e,t){return b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},b(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,x=y?S:this.props.shouldRenderSuggestions,_=c.value,C=c.onFocus,R=c.onKeyDown,k=this.willRenderSuggestions(this.props),E=y||O&&!w&&k,D=E?n:[],T=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:_,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=x(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:_,reason:"suggestions-revealed"}),e.revealSuggestions());else if(n.length>0){var u,s=r.newHighlightedSectionIndex,a=r.newHighlightedItemIndex;u=null===a?null===P?_:P:e.getSuggestionValueByIndex(s,a),e.updateHighlightedSuggestion(s,a,_),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"),x("")?i({value:"",reason:"escape-pressed"}):e.onSuggestionsClearRequested()):e.maybeCallOnChange(t,P,"escape"),g?(e.onSuggestionsClearRequested(),e.closeSuggestions()):e.resetHighlightedSuggestion()}R&&R(t)}}),q={query:this.getQuery()};return r.default.createElement(u.default,{multiSection:l,items:D,renderInputComponent:o,renderItemsContainer:this.renderSuggestionsContainer,renderItem:a,renderItemData:q,renderSectionTitle:g,getSectionItems:d,highlightedSectionIndex:I,highlightedItemIndex:j,inputProps:T,itemProps:this.itemProps,theme:(0,s.mapToAutowhateverTheme)(h),id:p,ref:this.storeAutowhateverRef})}}],o&&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(244)),o=c(n(697)),i=c(n(383)),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},d(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)},v(e)}function S(e,t){return S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},S(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(244)),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},a(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},c.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)},m(e)}function y(e,t){return y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y(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)))}}],o&&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(244)),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},c(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},l.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)},y(e)}function b(e,t){return b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},b(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}))})))}}],o&&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(244)),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},a(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)},p(e)}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(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},n(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}},383: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}},244:t=>{"use strict";t.exports=e},741:e=>{"use strict";e.exports=t}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return n[e](i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";o.r(i);var e=o(244),t=o.n(e),n=o(741),r=o.n(n),u=o(697),s=o.n(u);const a=(e,t)=>void 0!==e.name&&void 0!==t.name?e.name.toLowerCase().localeCompare(t.name.toLowerCase(),"da",{ignorePunctuation:!0}):0;class c extends t().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:n,linkColor:r,noResultsText:o,noResultsUri:i}=this.props,u=this.letters.map(((o,i)=>{const u=n.filter((e=>0===e.name.toLowerCase().indexOf(o))).length>0;let s="";u&&(s+="available"),i===e&&(s+=" active");let a={};return u&&(a=e===i?{backgroundColor:"#fff",color:r}:{backgroundColor:r}),t().createElement("li",{key:o,className:s},t().createElement("button",{type:"button",style:a,onClick:()=>{u&&this.setState({letterIndex:i})}},o))}));let s=[];e>-1&&(s=n.filter((t=>0===t.name.toLowerCase().indexOf(this.letters[e]))));const c=s.sort(a).map(((e,n)=>{const r=n,o=e.children.map((e=>t().createElement("li",{key:e.name},t().createElement("a",{href:e.url},e.name))));return e.children.length>0?t().createElement("li",{key:r},t().createElement("a",{href:e.url},e.name),t().createElement("ul",null,o)):t().createElement("li",{key:r},t().createElement("a",{href:e.url},e.name))}));return t().createElement("div",{className:"au_alphabox_content"},t().createElement("ul",{className:"letters"},u),e>-1&&t().createElement("div",null,t().createElement("ul",{className:"items"},c,o&&i&&t().createElement("li",{className:"no-results"},t().createElement("a",{href:i},o)))))}}c.defaultProps={noResultsText:"",noResultsUri:""},c.propTypes={linkColor:s().string.isRequired,items:s().arrayOf(s().shape({name:s().string.isRequired,url:s().string.isRequired})).isRequired,noResultsText:s().string,noResultsUri:s().string},c.displayName="AlphaBoxContentComponent";const l=c;var g=o(808),f=o.n(g),p=o(296),d=o.n(p);class h extends t().Component{constructor(e){super(e),this.state={value:"",suggestions:[],noSuggestions:!1},this.onChange=this.onChange.bind(this),this.onEnter=this.onEnter.bind(this),this.onSuggestionsFetchRequested=d()(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)}))}onEnter(e){const{suggestions:t}=this.state,{setResults:n}=this.props;"Enter"===e.key&&n(t)}onSuggestionsFetchRequested({value:e}){const{getSuggestions:t,collection:n}=this.props;t(e,n,(t=>{this.setState({suggestions:t,noSuggestions:0===t.length&&""!==e.trim()&&e.trim().length>1})}))}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:n,noSuggestions:r}=this.state,{placeholder:o,getSuggestionValue:i,renderSuggestion:u,id:s,theme:a,type:c,initialValue:l,disabled:g,noResultsText:p}=this.props,d={placeholder:o,value:l||e,id:s,type:c,disabled:g,"aria-label":o,onChange:this.onChange,onKeyDown:this.onEnter};return t().createElement(t().Fragment,null,t().createElement(f(),{suggestions:n,onSuggestionsFetchRequested:this.onSuggestionsFetchRequested,onSuggestionsClearRequested:this.onSuggestionsClearRequested,onSuggestionSelected:this.onSuggestionSelected,getSuggestionValue:i,renderSuggestion:u,inputProps:d,theme:a}),r&&p&&t().createElement("p",{className:"no-results"},t().createElement("em",null,p)))}}h.displayName="AUAutoSuggestComponent",h.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,setQuery:()=>{},noResultsText:""},h.propTypes={setQuery:s().func,getSuggestions:s().func.isRequired,getSuggestionValue:s().func.isRequired,renderSuggestion:s().func.isRequired,setResults:s().func.isRequired,collection:s().arrayOf(s().shape({})).isRequired,placeholder:s().string.isRequired,id:s().string,theme:s().shape({}),clearInput:s().bool,type:s().string,initialValue:s().string,disabled:s().bool,noResultsText:s().string};const m=h;class y extends t().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 t().createElement("span",null,e.name)}}y.propTypes={item:s().shape({id:s().number.isRequired}).isRequired},y.displayName="DataBoxSuggestionComponent";const b=y;class v extends t().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"),fetch(t.source).then((e=>e.json())).then((e=>{this.setState({items:e.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||e.name.replace(/-/gi," ").toLowerCase().indexOf(o)>-1||e.name.replace(/ /gi,"-").toLowerCase().indexOf(o)>-1)).sort(((e,t)=>e.name.toLowerCase().localeCompare(t.name.toLowerCase(),"da",{ignorePunctuation:!0}))))}render(){const{box:e}=this.props,{items:n}=this.state,{config:r}=e,o=r.links.map((n=>t().createElement("li",{key:n.title},t().createElement("a",{href:n.url,onClick:()=>{"function"==typeof n.onClick&&n.onClick()},style:{backgroundColor:e.background.linkColor}},n.title))));return t().createElement("div",{className:"au_alphabox",style:{backgroundColor:e.background.color}},t().createElement("div",null,t().createElement("h2",null,t().createElement("a",{href:r.url},r.title)),t().createElement(l,{items:n,linkColor:e.background.linkColor,noResultsText:r.noResultsAlphabet,noResultsUri:r.noResultsUri}),t().createElement(m,{placeholder:e.search.placeHolder,setResults:e=>{e.length>=1&&e[0].url&&(window.location.href=e[0].url)},collection:[],getSuggestions:this.getSuggestions,getSuggestionValue:e=>e.name,renderSuggestion:e=>t().createElement(b,{item:e}),noResultsText:r.noResultsSearch}),""!==r.description&&t().createElement("h3",null,r.description),r.links.length>0&&t().createElement("ul",{className:"quicklinks resetlist"},o)))}}v.propTypes={box:s().shape({id:s().number.isRequired,data:s().shape({itemsOnly:s().bool.isRequired,mode:s().string.isRequired,source:s().string.isRequired}),config:s().shape({name:s().string.isRequired,url:s().string.isRequired,description:s().string.isRequired,container:s().string.isRequired,tracking:s().string.isRequired,links:s().arrayOf(s().shape({title:s().string.isRequired,url:s().string.isRequired})).isRequired,title:s().string.isRequired,noResultsAlphabet:s().string.isRequired,noResultsSearch:s().string.isRequired,noResultsUri:s().string.isRequired}).isRequired,background:s().shape({color:s().string.isRequired,linkColor:s().string.isRequired}).isRequired,search:s().shape({placeHolder:s().string.isRequired,minLength:s().number.isRequired}).isRequired}).isRequired},v.displayName="AlphaBoxComponent";const S=v,O={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 w{constructor(e){this.boxes=e}static mergeOptions(e){const t=e;t.hasOwnProperty("config")||(t.config={});for(const e in O.config)t.config.hasOwnProperty(e)||(t.config[e]=O.config[e]);t.hasOwnProperty("background")||(t.background={});for(const e in O.background)t.background.hasOwnProperty(e)||(t.background[e]=O.background[e]);t.hasOwnProperty("search")||(t.search={});for(const e in O.search)t.search.hasOwnProperty(e)||(t.search[e]=O.search[e]);t.hasOwnProperty("data")||(t.data={});for(const e in O.data)t.data.hasOwnProperty(e)||(t.data[e]=O.data[e])}init(){for(let e=0;e<this.boxes.length;e+=1){const n=this.boxes[e];if(!n.loaded){n.id=e,w.mergeOptions(n);const o=document.querySelector(n.config.container);o&&"hidden"!==getComputedStyle(o).visibility&&(r().render(t().createElement(S,{box:n}),o),n.loaded=!0)}}}}window.AUAlphabox=w})(),i})()));
2
2
  //# sourceMappingURL=alphabox.js.map