govuk_publishing_components 15.1.0 → 15.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/govuk_publishing_components/components/accessible-autocomplete.js +24 -16
- data/app/assets/stylesheets/govuk_publishing_components/components/_accessible-autocomplete.scss +27 -1
- data/app/views/govuk_publishing_components/components/_accessible_autocomplete.html.erb +12 -2
- data/app/views/govuk_publishing_components/components/_subscription-links.html.erb +8 -5
- data/app/views/govuk_publishing_components/components/docs/accessible_autocomplete.yml +15 -0
- data/app/views/govuk_publishing_components/components/docs/subscription-links.yml +6 -0
- data/config/locales/en.yml +2 -0
- data/lib/govuk_publishing_components/version.rb +1 -1
- data/node_modules/accessible-autocomplete/dist/accessible-autocomplete.min.css +1 -1
- data/node_modules/accessible-autocomplete/dist/accessible-autocomplete.min.js +1 -1
- data/node_modules/accessible-autocomplete/dist/accessible-autocomplete.min.js.map +1 -1
- data/node_modules/accessible-autocomplete/dist/lib/accessible-autocomplete.preact.min.js +1 -1
- data/node_modules/accessible-autocomplete/dist/lib/accessible-autocomplete.preact.min.js.map +1 -1
- data/node_modules/accessible-autocomplete/dist/lib/accessible-autocomplete.react.min.js +1 -1
- data/node_modules/accessible-autocomplete/dist/lib/accessible-autocomplete.react.min.js.map +1 -1
- data/node_modules/accessible-autocomplete/examples/index.html +49 -0
- data/node_modules/accessible-autocomplete/examples/multiselect.html +134 -0
- data/node_modules/accessible-autocomplete/package-lock.json +14491 -0
- data/node_modules/accessible-autocomplete/package.json +34 -53
- data/node_modules/accessible-autocomplete/src/autocomplete.css +49 -7
- data/node_modules/accessible-autocomplete/src/autocomplete.js +101 -1
- data/node_modules/accessible-autocomplete/src/wrapper.js +13 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13bcbcd43bdcda0ae27e167ccddbb2e460dc6533f0a2c3e29a6729862ad5a9bb
|
4
|
+
data.tar.gz: e0a1273c2b30f23724bb009fd212df6fe558655f6f21791d292ec02fe2214ff2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d4f8c2b467bcff8b0fd6cf94f63743ccfc93216bec8d8362f086ea31b2ad8ed17e7ca969b4c93a5cd8fe4e25cea87d2508d7713feeb66803a1a5356fc068c27
|
7
|
+
data.tar.gz: 7e1888f1b3a3db750b356eb1560f952421f9a1eba47c4c79c8e853d1a9a6fe423e411b142e56091a1b0c17823570977019e5ba5d2c625fe75f4331f459567ad6
|
data/app/assets/javascripts/govuk_publishing_components/components/accessible-autocomplete.js
CHANGED
@@ -27,8 +27,7 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
|
|
27
27
|
$selectElem.data('onconfirm', this.onConfirm);
|
28
28
|
};
|
29
29
|
|
30
|
-
this.onConfirm = function(label, removeDropDown) {
|
31
|
-
|
30
|
+
this.onConfirm = function(label, value, removeDropDown) {
|
32
31
|
function escapeHTML(str){
|
33
32
|
return new Option(str).innerHTML;
|
34
33
|
}
|
@@ -39,21 +38,30 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
|
|
39
38
|
// This is to compensate for the fact that the accessible-autocomplete library will not
|
40
39
|
// update the hidden select if the onConfirm function is supplied
|
41
40
|
// https://github.com/alphagov/accessible-autocomplete/issues/322
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
41
|
+
if (typeof label !== 'undefined') {
|
42
|
+
if (typeof value === 'undefined') {
|
43
|
+
value = $selectElem.children("option").filter(function () { return $(this).html() == escapeHTML(label); }).val();
|
44
|
+
}
|
45
|
+
|
46
|
+
if (typeof value !== 'undefined') {
|
47
|
+
var $option = $selectElem.find('option[value=\'' + value + '\']');
|
48
|
+
// if removeDropDown we are clearing the selection from outside the component
|
49
|
+
var selectState = typeof removeDropDown === 'undefined' ? true : false;
|
50
|
+
$option.prop('selected', selectState);
|
51
|
+
$selectElem.change();
|
52
|
+
}
|
46
53
|
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
54
|
+
// used to clear the autocomplete when clicking on a facet tag in finder-frontend
|
55
|
+
// very brittle but menu visibility is determined by autocomplete after this function is called
|
56
|
+
// setting autocomplete val to '' causes menu to appear, we don't want that, this solves it
|
57
|
+
// ideally will rewrite autocomplete to have better hooks in future
|
58
|
+
if (removeDropDown) {
|
59
|
+
$selectElem.closest('.gem-c-accessible-autocomplete').addClass('gem-c-accessible-autocomplete--hide-menu');
|
60
|
+
setTimeout(function() {
|
61
|
+
$('.autocomplete__menu').remove(); // this element is recreated every time the user starts typing
|
62
|
+
$selectElem.closest('.gem-c-accessible-autocomplete').removeClass('gem-c-accessible-autocomplete--hide-menu');
|
63
|
+
}, 100);
|
64
|
+
}
|
57
65
|
}
|
58
66
|
};
|
59
67
|
|
data/app/assets/stylesheets/govuk_publishing_components/components/_accessible-autocomplete.scss
CHANGED
@@ -10,7 +10,27 @@
|
|
10
10
|
}
|
11
11
|
|
12
12
|
.autocomplete__option {
|
13
|
-
@include govuk-font(19)
|
13
|
+
@include govuk-font(19);
|
14
|
+
}
|
15
|
+
|
16
|
+
// needed as frontend doesn't currently support select multiples
|
17
|
+
// hopefully will in future and this can be removed
|
18
|
+
.govuk-select[multiple] {
|
19
|
+
height: auto;
|
20
|
+
}
|
21
|
+
|
22
|
+
.js-enabled & .app-c-autocomplete__multiselect-instructions {
|
23
|
+
display: none;
|
24
|
+
}
|
25
|
+
|
26
|
+
.autocomplete__list .autocomplete__option {
|
27
|
+
padding: 5px 6px;
|
28
|
+
|
29
|
+
&:before {
|
30
|
+
position: relative;
|
31
|
+
top: 3px;
|
32
|
+
padding-top: 2px;
|
33
|
+
}
|
14
34
|
}
|
15
35
|
}
|
16
36
|
|
@@ -19,3 +39,9 @@
|
|
19
39
|
display: none;
|
20
40
|
}
|
21
41
|
}
|
42
|
+
|
43
|
+
.gem-c-accessible-autocomplete--hide-facets {
|
44
|
+
.autocomplete__list {
|
45
|
+
display: none;
|
46
|
+
}
|
47
|
+
}
|
@@ -4,6 +4,11 @@
|
|
4
4
|
data_attributes ||= nil
|
5
5
|
options ||= []
|
6
6
|
selected_option ||= nil
|
7
|
+
multiple ||= false
|
8
|
+
hide_facets ||= false
|
9
|
+
|
10
|
+
classes = %w(gem-c-accessible-autocomplete)
|
11
|
+
classes << "gem-c-accessible-autocomplete--hide-facets" if hide_facets
|
7
12
|
%>
|
8
13
|
<% if label && options.any? %>
|
9
14
|
<div class="govuk-form-group">
|
@@ -13,15 +18,20 @@
|
|
13
18
|
}.merge(label.symbolize_keys)
|
14
19
|
%>
|
15
20
|
|
16
|
-
|
21
|
+
<%= tag.div class: classes, data: { module: "accessible-autocomplete" } do %>
|
22
|
+
<% if multiple %>
|
23
|
+
<span class="govuk-hint app-c-autocomplete__multiselect-instructions"><%= t('components.autocomplete.multiselect') %></span>
|
24
|
+
<% end %>
|
25
|
+
|
17
26
|
<%=
|
18
27
|
select_tag(
|
19
28
|
id,
|
20
29
|
options_for_select(options, selected_option),
|
30
|
+
multiple: multiple,
|
21
31
|
class: "govuk-select",
|
22
32
|
data: data_attributes
|
23
33
|
)
|
24
34
|
%>
|
25
|
-
|
35
|
+
<% end %>
|
26
36
|
</div>
|
27
37
|
<% end %>
|
@@ -1,13 +1,16 @@
|
|
1
1
|
<%
|
2
2
|
brand ||= false
|
3
|
+
margin_bottom ||= 0
|
3
4
|
brand_helper = GovukPublishingComponents::AppHelpers::BrandHelper.new(brand)
|
4
5
|
sl_helper = GovukPublishingComponents::Presenters::SubscriptionLinksHelper.new(local_assigns)
|
6
|
+
|
7
|
+
css_classes = %w( gem-c-subscription-links )
|
8
|
+
css_classes << ([*0..9].include?(margin_bottom) ? "govuk-!-margin-bottom-#{margin_bottom}" : "govuk-!-margin-bottom-0")
|
9
|
+
css_classes << brand_helper.brand_class
|
10
|
+
data = {"module": "gem-toggle"} if sl_helper.feed_link_box_value
|
5
11
|
%>
|
6
12
|
<% if sl_helper.component_data_is_valid? %>
|
7
|
-
|
8
|
-
class="gem-c-subscription-links <%= brand_helper.brand_class %>"
|
9
|
-
<%= "data-module=gem-toggle" if sl_helper.feed_link_box_value %>
|
10
|
-
>
|
13
|
+
<%= tag.section class: css_classes, data: data do %>
|
11
14
|
<h2 class="gem-c-subscription-links__hidden-header visuallyhidden"><%= t("govuk_component.subscription_links.subscriptions", default: "Subscriptions") %></h2>
|
12
15
|
<ul
|
13
16
|
class="gem-c-subscription-links__list"
|
@@ -44,5 +47,5 @@
|
|
44
47
|
} %>
|
45
48
|
</div>
|
46
49
|
<% end %>
|
47
|
-
|
50
|
+
<% end %>
|
48
51
|
<% end %>
|
@@ -40,3 +40,18 @@ examples:
|
|
40
40
|
track_action: 'chosen_action'
|
41
41
|
track_option:
|
42
42
|
custom_dimension: 'your_custom_dimension'
|
43
|
+
with_multiple_selections:
|
44
|
+
description: This parameter allows the user to choose more than one option from the autocomplete. The component generates a select multiple in place of a regular select, and the autocomplete Javascript detects this and provides the multiple selection functionality.
|
45
|
+
data:
|
46
|
+
multiple: true
|
47
|
+
label:
|
48
|
+
text: 'Countries'
|
49
|
+
options: [['France', 'fr'], ['Germany', 'de'], ['Sweden', 'se'], ['Switzerland', 'ch'], ['United Kingdom', 'gb'], ['United States', 'us'], ['The Separate Customs Territory of Taiwan, Penghu, Kinmen, and Matsu (Chinese Taipei)', 'tw']]
|
50
|
+
with_multiple_selections_hide_facets:
|
51
|
+
description: This parameter hides the facet tags shown by the component in multiple mode when options have been chosen. This seems counter to likely requirements but is needed for finders where the app generates its own facet tags.
|
52
|
+
data:
|
53
|
+
multiple: true
|
54
|
+
hide_facets: true
|
55
|
+
label:
|
56
|
+
text: 'Countries'
|
57
|
+
options: [['France', 'fr'], ['Germany', 'de'], ['Sweden', 'se'], ['Switzerland', 'ch'], ['United Kingdom', 'gb'], ['United States', 'us'], ['The Separate Customs Territory of Taiwan, Penghu, Kinmen, and Matsu (Chinese Taipei)', 'tw']]
|
@@ -17,6 +17,12 @@ examples:
|
|
17
17
|
data:
|
18
18
|
email_signup_link: '/foreign-travel-advice/singapore/email-signup'
|
19
19
|
feed_link: '/foreign-travel-advice/singapore.atom'
|
20
|
+
with_margin:
|
21
|
+
description: The component accepts a number for margin bottom from 0 to 9 (0px to 60px) using the [GOV.UK Frontend spacing scale](http://govuk-frontend-review.herokuapp.com/docs/#settings/spacing-variable-govuk-spacing-points). It defaults to having no margin bottom, although some margin is supplied by the links themselves (so that when they stack on mobile there is space between them).
|
22
|
+
data:
|
23
|
+
email_signup_link: '/foreign-travel-advice/singapore/email-signup'
|
24
|
+
feed_link: '/foreign-travel-advice/singapore.atom'
|
25
|
+
margin_bottom: 9
|
20
26
|
with_only_email_signup_link:
|
21
27
|
data:
|
22
28
|
email_signup_link: '/foreign-travel-advice/singapore/email-signup'
|
data/config/locales/en.yml
CHANGED
@@ -1 +1 @@
|
|
1
|
-
.autocomplete__wrapper{position:relative}.autocomplete__hint,.autocomplete__input{-webkit-
|
1
|
+
.autocomplete__wrapper{position:relative}.autocomplete__hint,.autocomplete__input{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;box-sizing:border-box;width:100%;height:40px;border:2px solid #0b0c0c;border-radius:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;margin-bottom:0}.autocomplete__input{padding:5px;background-color:transparent;position:relative}.autocomplete__hint{color:#bfc1c3;position:absolute}.autocomplete__input--default{padding:4px}.autocomplete__input--focused,.autocomplete__input:focus{outline-offset:0;outline:3px solid #ffbf47}.autocomplete__input--show-all-values{padding:4px 34px 4px 4px;cursor:pointer}.autocomplete__dropdown-arrow-down{z-index:-1;display:inline-block;position:absolute;right:8px;width:24px;height:24px;top:10px}.autocomplete__menu{background-color:#fff;border:2px solid #0b0c0c;border-top:0;color:#34384b;margin:0;max-height:342px;overflow-x:hidden;padding:0;width:100%;width:calc(100% - 4px)}.autocomplete__menu--visible{display:block}.autocomplete__menu--hidden{display:none}.autocomplete__menu--overlay{box-shadow:rgba(0,0,0,.256863) 0 2px 6px;left:0;position:absolute;top:100%;z-index:100}.autocomplete__menu--inline{position:relative}.autocomplete__option{border-bottom:solid #bfc1c3;border-width:1px 0;cursor:pointer;display:block;position:relative}.autocomplete__option>*{pointer-events:none}.autocomplete__option:first-of-type{border-top-width:0}.autocomplete__option:last-of-type{border-bottom-width:0}.autocomplete__option--odd{background-color:#fafafa}.autocomplete__option--focused,.autocomplete__option:hover{background-color:#005ea5;border-color:#005ea5;color:#fff;outline:0}.autocomplete__option--no-results{background-color:#fafafa;color:#646b6f;cursor:not-allowed}.autocomplete__hint,.autocomplete__input,.autocomplete__option{font-size:16px;line-height:1.25}.autocomplete__hint,.autocomplete__option{padding:4px}@media (min-width:641px){.autocomplete__hint,.autocomplete__input,.autocomplete__option{font-size:19px;line-height:1.31579}}.autocomplete__list{list-style-type:none;padding:0;margin:0}.autocomplete__list .autocomplete__option,.autocomplete__list .autocomplete__option:hover{color:#0b0c0c;padding:3px 6px 6px;margin-top:10px!important;border:1px solid #bfc1c3;background:#f8f8f8}.autocomplete__list .autocomplete__option:focus{outline-offset:0;outline:3px solid #ffbf47}.autocomplete__list .autocomplete__option:before{display:inline-block;content:'×';padding:2px 3px 0;margin-right:3px;font-size:24px;color:inherit;line-height:1}.autocomplete__list-item-description{display:none}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
(function webpackUniversalModuleDefinition(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["accessibleAutocomplete"]=t():e["accessibleAutocomplete"]=t()})(window,function(){return function(n){var r={};function o(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}return o.m=n,o.c=r,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="/",o(o.s=37)}([function(e,t,n){var m=n(1),v=n(6),y=n(7),_=n(16),b=n(18),g="prototype",x=function(e,t,n){var r,o,i,u,l=e&x.F,a=e&x.G,s=e&x.S,c=e&x.P,p=e&x.B,f=a?m:s?m[t]||(m[t]={}):(m[t]||{})[g],d=a?v:v[t]||(v[t]={}),h=d[g]||(d[g]={});for(r in a&&(n=t),n)i=((o=!l&&f&&f[r]!==undefined)?f:n)[r],u=p&&o?b(i,m):c&&"function"==typeof i?b(Function.call,i):i,f&&_(f,r,i,e&x.U),d[r]!=i&&y(d,r,u),c&&h[r]!=i&&(h[r]=i)};m.core=v,x.F=1,x.G=2,x.S=4,x.P=8,x.B=16,x.W=32,x.U=64,x.R=128,e.exports=x},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(4)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t,n){"use strict";n.r(t),n.d(t,"h",function(){return r}),n.d(t,"createElement",function(){return r}),n.d(t,"cloneElement",function(){return i}),n.d(t,"Component",function(){return _}),n.d(t,"render",function(){return b}),n.d(t,"rerender",function(){return f}),n.d(t,"options",function(){return E});var a=function a(){},E={},s=[],c=[];function r(e,t){var n,r,o,i,u=c;for(i=arguments.length;2<i--;)s.push(arguments[i]);for(t&&null!=t.children&&(s.length||s.push(t.children),delete t.children);s.length;)if((r=s.pop())&&r.pop!==undefined)for(i=r.length;i--;)s.push(r[i]);else"boolean"==typeof r&&(r=null),(o="function"!=typeof e)&&(null==r?r="":"number"==typeof r?r=String(r):"string"!=typeof r&&(o=!1)),o&&n?u[u.length-1]+=r:u===c?u=[r]:u.push(r),n=o;var l=new a;return l.nodeName=e,l.children=u,l.attributes=null==t?undefined:t,l.key=null==t?undefined:t.key,E.vnode!==undefined&&E.vnode(l),l}function N(e,t){for(var n in t)e[n]=t[n];return e}var o="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout;function i(e,t){return r(e.nodeName,N(N({},e.attributes),t),2<arguments.length?[].slice.call(arguments,2):e.children)}var p=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,u=[];function l(e){!e._dirty&&(e._dirty=!0)&&1==u.push(e)&&(E.debounceRendering||o)(f)}function f(){var e,t=u;for(u=[];e=t.pop();)e._dirty&&V(e)}function k(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function I(e){var t=N({},e.attributes);t.children=e.children;var n=e.nodeName.defaultProps;if(n!==undefined)for(var r in n)t[r]===undefined&&(t[r]=n[r]);return t}function P(e){var t=e.parentNode;t&&t.removeChild(e)}function v(e,t,n,r,o){if("className"===t&&(t="class"),"key"===t);else if("ref"===t)n&&n(null),r&&r(e);else if("class"!==t||o)if("style"===t){if(r&&"string"!=typeof r&&"string"!=typeof n||(e.style.cssText=r||""),r&&"object"==typeof r){if("string"!=typeof n)for(var i in n)i in r||(e.style[i]="");for(var i in r)e.style[i]="number"==typeof r[i]&&!1===p.test(i)?r[i]+"px":r[i]}}else if("dangerouslySetInnerHTML"===t)r&&(e.innerHTML=r.__html||"");else if("o"==t[0]&&"n"==t[1]){var u=t!==(t=t.replace(/Capture$/,""));t=t.toLowerCase().substring(2),r?n||e.addEventListener(t,d,u):e.removeEventListener(t,d,u),(e._listeners||(e._listeners={}))[t]=r}else if("list"!==t&&"type"!==t&&!o&&t in e){try{e[t]=null==r?"":r}catch(a){}null!=r&&!1!==r||"spellcheck"==t||e.removeAttribute(t)}else{var l=o&&t!==(t=t.replace(/^xlink:?/,""));null==r||!1===r?l?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t):"function"!=typeof r&&(l?e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),r):e.setAttribute(t,r))}else e.className=r||""}function d(e){return this._listeners[e.type](E.event&&E.event(e)||e)}var M=[],j=0,A=!1,T=!1;function L(){for(var e;e=M.pop();)E.afterMount&&E.afterMount(e),e.componentDidMount&&e.componentDidMount()}function B(e,t,n,r,o,i){j++||(A=null!=o&&o.ownerSVGElement!==undefined,T=null!=e&&!("__preactattr_"in e));var u=F(e,t,n,r,i);return o&&u.parentNode!==o&&o.appendChild(u),--j||(T=!1,i||L()),u}function F(e,t,n,r,o){var i=e,u=A;if(null!=t&&"boolean"!=typeof t||(t=""),"string"==typeof t||"number"==typeof t)return e&&e.splitText!==undefined&&e.parentNode&&(!e._component||o)?e.nodeValue!=t&&(e.nodeValue=t):(i=document.createTextNode(t),e&&(e.parentNode&&e.parentNode.replaceChild(i,e),D(e,!0))),i["__preactattr_"]=!0,i;var l=t.nodeName;if("function"==typeof l)return function d(e,t,n,r){var o=e&&e._component,i=o,u=e,l=o&&e._componentConstructor===t.nodeName,a=l,s=I(t);for(;o&&!a&&(o=o._parentComponent);)a=o.constructor===t.nodeName;o&&a&&(!r||o._component)?(U(o,s,3,n,r),e=o.base):(i&&!l&&(q(i),e=u=null),o=R(t.nodeName,s,n),e&&!o.nextBase&&(o.nextBase=e,u=null),U(o,s,1,n,r),e=o.base,u&&e!==u&&(u._component=null,D(u,!1)));return e}(e,t,n,r);if(A="svg"===l||"foreignObject"!==l&&A,l=String(l),(!e||!k(e,l))&&(i=function h(e,t){var n=t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return n.normalizedNodeName=e,n}(l,A),e)){for(;e.firstChild;)i.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild(i,e),D(e,!0)}var a=i.firstChild,s=i["__preactattr_"],c=t.children;if(null==s){s=i["__preactattr_"]={};for(var p=i.attributes,f=p.length;f--;)s[p[f].name]=p[f].value}return!T&&c&&1===c.length&&"string"==typeof c[0]&&null!=a&&a.splitText!==undefined&&null==a.nextSibling?a.nodeValue!=c[0]&&(a.nodeValue=c[0]):(c&&c.length||null!=a)&&function S(e,t,n,r,o){var i,u,l,a,s,c=e.childNodes,p=[],f={},d=0,h=0,m=c.length,v=0,y=t?t.length:0;if(0!==m)for(var _=0;_<m;_++){var b=c[_],g=b["__preactattr_"],x=y&&g?b._component?b._component.__key:g.key:null;null!=x?(d++,f[x]=b):(g||(b.splitText!==undefined?!o||b.nodeValue.trim():o))&&(p[v++]=b)}if(0!==y)for(var _=0;_<y;_++){a=t[_],s=null;var x=a.key;if(null!=x)d&&f[x]!==undefined&&(s=f[x],f[x]=undefined,d--);else if(h<v)for(i=h;i<v;i++)if(p[i]!==undefined&&(w=u=p[i],C=o,"string"==typeof(O=a)||"number"==typeof O?w.splitText!==undefined:"string"==typeof O.nodeName?!w._componentConstructor&&k(w,O.nodeName):C||w._componentConstructor===O.nodeName)){s=u,p[i]=undefined,i===v-1&&v--,i===h&&h++;break}s=F(s,a,n,r),l=c[_],s&&s!==e&&s!==l&&(null==l?e.appendChild(s):s===l.nextSibling?P(l):e.insertBefore(s,l))}var w,O,C;if(d)for(var _ in f)f[_]!==undefined&&D(f[_],!1);for(;h<=v;)(s=p[v--])!==undefined&&D(s,!1)}(i,c,n,r,T||null!=s.dangerouslySetInnerHTML),function m(e,t,n){var r;for(r in n)t&&null!=t[r]||null==n[r]||v(e,r,n[r],n[r]=undefined,A);for(r in t)"children"===r||"innerHTML"===r||r in n&&t[r]===("value"===r||"checked"===r?e[r]:n[r])||v(e,r,n[r],n[r]=t[r],A)}(i,t.attributes,s),A=u,i}function D(e,t){var n=e._component;n?q(n):(null!=e["__preactattr_"]&&e["__preactattr_"].ref&&e["__preactattr_"].ref(null),!1!==t&&null!=e["__preactattr_"]||P(e),h(e))}function h(e){for(e=e.lastChild;e;){var t=e.previousSibling;D(e,!0),e=t}}var m=[];function R(e,t,n){var r,o=m.length;for(e.prototype&&e.prototype.render?(r=new e(t,n),_.call(r,t,n)):((r=new _(t,n)).constructor=e,r.render=y);o--;)if(m[o].constructor===e)return r.nextBase=m[o].nextBase,m.splice(o,1),r;return r}function y(e,t,n){return this.constructor(e,n)}function U(e,t,n,r,o){e._disable||(e._disable=!0,e.__ref=t.ref,e.__key=t.key,delete t.ref,delete t.key,"undefined"==typeof e.constructor.getDerivedStateFromProps&&(!e.base||o?e.componentWillMount&&e.componentWillMount():e.componentWillReceiveProps&&e.componentWillReceiveProps(t,r)),r&&r!==e.context&&(e.prevContext||(e.prevContext=e.context),e.context=r),e.prevProps||(e.prevProps=e.props),e.props=t,e._disable=!1,0!==n&&(1!==n&&!1===E.syncComponentUpdates&&e.base?l(e):V(e,1,o)),e.__ref&&e.__ref(e))}function V(e,t,n,r){if(!e._disable){var o,i,u,l=e.props,a=e.state,s=e.context,c=e.prevProps||l,p=e.prevState||a,f=e.prevContext||s,d=e.base,h=e.nextBase,m=d||h,v=e._component,y=!1,_=f;if(e.constructor.getDerivedStateFromProps&&(a=N(N({},a),e.constructor.getDerivedStateFromProps(l,a)),e.state=a),d&&(e.props=c,e.state=p,e.context=f,2!==t&&e.shouldComponentUpdate&&!1===e.shouldComponentUpdate(l,a,s)?y=!0:e.componentWillUpdate&&e.componentWillUpdate(l,a,s),e.props=l,e.state=a,e.context=s),e.prevProps=e.prevState=e.prevContext=e.nextBase=null,e._dirty=!1,!y){o=e.render(l,a,s),e.getChildContext&&(s=N(N({},s),e.getChildContext())),d&&e.getSnapshotBeforeUpdate&&(_=e.getSnapshotBeforeUpdate(c,p));var b,g,x=o&&o.nodeName;if("function"==typeof x){var w=I(o);(i=v)&&i.constructor===x&&w.key==i.__key?U(i,w,1,s,!1):(b=i,e._component=i=R(x,w,s),i.nextBase=i.nextBase||h,i._parentComponent=e,U(i,w,0,s,!1),V(i,1,n,!0)),g=i.base}else u=m,(b=v)&&(u=e._component=null),(m||1===t)&&(u&&(u._component=null),g=function B(t,n,r,o,i,u){j++||(A=null!=i&&i.ownerSVGElement!==undefined,T=null!=t&&!("__preactattr_"in t));var l=F(t,n,r,o,u);return i&&l.parentNode!==i&&i.appendChild(l),--j||(T=!1,u||L()),l}(u,o,s,n||!d,m&&m.parentNode,!0));if(m&&g!==m&&i!==v){var O=m.parentNode;O&&g!==O&&(O.replaceChild(g,m),b||(m._component=null,D(m,!1)))}if(b&&q(b),(e.base=g)&&!r){for(var C=e,S=e;S=S._parentComponent;)(C=S).base=g;g._component=C,g._componentConstructor=C.constructor}}for(!d||n?M.unshift(e):y||(e.componentDidUpdate&&e.componentDidUpdate(c,p,_),E.afterUpdate&&E.afterUpdate(e));e._renderCallbacks.length;)e._renderCallbacks.pop().call(e);j||r||L()}}function q(e){E.beforeUnmount&&E.beforeUnmount(e);var t=e.base;e._disable=!0,e.componentWillUnmount&&e.componentWillUnmount(),e.base=null;var n=e._component;n?q(n):t&&(t["__preactattr_"]&&t["__preactattr_"].ref&&t["__preactattr_"].ref(null),P(e.nextBase=t),m.push(e),h(t)),e.__ref&&e.__ref(null)}function _(e,t){this._dirty=!0,this.context=t,this.props=e,this.state=this.state||{},this._renderCallbacks=[]}function b(e,t,n){return B(n,e,{},!1,t,!1)}N(_.prototype,{setState:function(e,t){this.prevState||(this.prevState=this.state),this.state=N(N({},this.state),"function"==typeof e?e(this.state,this.props):e),t&&this._renderCallbacks.push(t),l(this)},forceUpdate:function(e){e&&this._renderCallbacks.push(e),V(this,2)},render:function b(){}});var g={h:r,createElement:r,cloneElement:i,Component:_,render:b,rerender:f,options:E};t["default"]=g},function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(8),o=n(40);e.exports=n(3)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var o=n(9),i=n(38),u=n(39),l=Object.defineProperty;t.f=n(3)?Object.defineProperty:function(e,t,n){if(o(e),t=u(t,!0),o(n),i)try{return l(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(2);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(e===undefined?"":e,")_",(++n+r).toString(36))}},function(e,t,n){var r=n(22);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){e.exports=function(e){if(e==undefined)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){"use strict";var r=n(4);e.exports=function(e,t){return!!e&&r(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t,n){var r=n(0);r(r.S+r.F,"Object",{assign:n(41)})},function(e,t,n){var r=n(2),o=n(1).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){var i=n(1),u=n(7),l=n(17),a=n(10)("src"),r="toString",o=Function[r],s=(""+o).split(r);n(6).inspectSource=function(e){return o.call(e)},(e.exports=function(e,t,n,r){var o="function"==typeof n;o&&(l(n,"name")||u(n,"name",t)),e[t]!==n&&(o&&(l(n,a)||u(n,a,e[t]?""+e[t]:s.join(String(t)))),e===i?e[t]=n:r?e[t]?e[t]=n:u(e,t,n):(delete e[t],u(e,t,n)))})(Function.prototype,r,function(){return"function"==typeof this&&this[a]||o.call(this)})},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var i=n(19);e.exports=function(r,o,e){if(i(r),o===undefined)return r;switch(e){case 1:return function(e){return r.call(o,e)};case 2:return function(e,t){return r.call(o,e,t)};case 3:return function(e,t,n){return r.call(o,e,t,n)}}return function(){return r.apply(o,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(42),o=n(28);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){var r=n(11),o=n(12);e.exports=function(e){return r(o(e))}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var a=n(21),s=n(24),c=n(43);e.exports=function(l){return function(e,t,n){var r,o=a(e),i=s(o.length),u=c(n,i);if(l&&t!=t){for(;u<i;)if((r=o[u++])!=r)return!0}else for(;u<i;u++)if((l||u in o)&&o[u]===t)return l||u||0;return!l&&-1}}},function(e,t,n){var r=n(25),o=Math.min;e.exports=function(e){return 0<e?o(r(e),9007199254740991):0}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0<e?r:n)(e)}},function(e,t,n){var r=n(27)("keys"),o=n(10);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(6),o=n(1),i="__core-js_shared__",u=o[i]||(o[i]={});(e.exports=function(e,t){return u[e]||(u[e]=t!==undefined?t:{})})("versions",[]).push({version:r.version,mode:n(44)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(12);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(8).f,o=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in o||n(3)&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(e){return""}}})},function(e,t,n){"use strict";var r=n(0),o=n(32)(1);r(r.P+r.F*!n(13)([].map,!0),"Array",{map:function(e){return o(this,e,arguments[1])}})},function(e,t,n){var b=n(18),g=n(11),x=n(29),w=n(24),r=n(47);e.exports=function(p,e){var f=1==p,d=2==p,h=3==p,m=4==p,v=6==p,y=5==p||v,_=e||r;return function(e,t,n){for(var r,o,i=x(e),u=g(i),l=b(t,n,3),a=w(u.length),s=0,c=f?_(e,a):d?_(e,0):undefined;s<a;s++)if((y||s in u)&&(o=l(r=u[s],s,i),p))if(f)c[s]=o;else if(o)switch(p){case 3:return!0;case 5:return r;case 6:return s;case 2:c.push(r)}else if(m)return!1;return v?-1:h||m?m:c}}},function(e,t,n){var r=n(22);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(27)("wks"),o=n(10),i=n(1).Symbol,u="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=u&&i[e]||(u?i:o)("Symbol."+e))}).store=r},function(e,t,n){"use strict";var r=n(0),o=n(23)(!1),i=[].indexOf,u=!!i&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(u||!n(13)(i)),"Array",{indexOf:function(e){return u?i.apply(this,arguments)||0:o(this,e,arguments[1])}})},function(e,t,n){var r=n(0);r(r.S,"Object",{create:n(52)})},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0,n(14),n(30),n(31),n(35),n(49),n(50);var r=n(5),o=function a(e){return e&&e.__esModule?e:{"default":e}}(n(51));function i(e){if(!e.element)throw new Error("element is not defined");if(!e.id)throw new Error("id is not defined");if(!e.source)throw new Error("source is not defined");Array.isArray(e.source)&&(e.source=u(e.source)),(0,r.render)((0,r.createElement)(o["default"],e),e.element)}var u=function u(n){return function(t,e){e(n.filter(function(e){return-1!==e.toLowerCase().indexOf(t.toLowerCase())}))}};i.enhanceSelectElement=function(n){if(!n.selectElement)throw new Error("selectElement is not defined");if(!n.source){var e=[].filter.call(n.selectElement.options,function(e){return e.value||n.preserveNullOptions});n.source=e.map(function(e){return e.textContent||e.innerText})}if(n.onConfirm=n.onConfirm||function(t){var e=[].filter.call(n.selectElement.options,function(e){return(e.textContent||e.innerText)===t})[0];e&&(e.selected=!0)},n.selectElement.value||n.defaultValue===undefined){var t=n.selectElement.options[n.selectElement.options.selectedIndex];n.defaultValue=t.textContent||t.innerText}n.name===undefined&&(n.name=""),n.id===undefined&&(n.selectElement.id===undefined?n.id="":n.id=n.selectElement.id),n.autoselect===undefined&&(n.autoselect=!0);var r=document.createElement("span");n.selectElement.parentNode.insertBefore(r,n.selectElement),i(Object.assign({},n,{element:r})),n.selectElement.style.display="none",n.selectElement.id=n.selectElement.id+"-select"};var l=i;t["default"]=l},function(e,t,n){e.exports=!n(3)&&!n(4)(function(){return 7!=Object.defineProperty(n(15)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var o=n(2);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){"use strict";var f=n(20),d=n(45),h=n(46),m=n(29),v=n(11),o=Object.assign;e.exports=!o||n(4)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=o({},e)[n]||Object.keys(o({},t)).join("")!=r})?function(e,t){for(var n=m(e),r=arguments.length,o=1,i=d.f,u=h.f;o<r;)for(var l,a=v(arguments[o++]),s=i?f(a).concat(i(a)):f(a),c=s.length,p=0;p<c;)u.call(a,l=s[p++])&&(n[l]=a[l]);return n}:o},function(e,t,n){var u=n(17),l=n(21),a=n(23)(!1),s=n(26)("IE_PROTO");e.exports=function(e,t){var n,r=l(e),o=0,i=[];for(n in r)n!=s&&u(r,n)&&i.push(n);for(;t.length>o;)u(r,n=t[o++])&&(~a(i,n)||i.push(n));return i}},function(e,t,n){var r=n(25),o=Math.max,i=Math.min;e.exports=function(e,t){return(e=r(e))<0?o(e+t,0):i(e,t)}},function(e,t){e.exports=!1},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(48);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){var r=n(2),o=n(33),i=n(34)("species");e.exports=function(e){var t;return o(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!o(t.prototype)||(t=undefined),r(t)&&null===(t=t[i])&&(t=undefined)),t===undefined?Array:t}},function(e,t,n){"use strict";var r=n(0),o=n(32)(2);r(r.P+r.F*!n(13)([].filter,!0),"Array",{filter:function(e){return o(this,e,arguments[1])}})},function(e,t,n){var r=n(0);r(r.S,"Array",{isArray:n(33)})},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0,n(14),n(36),n(31),n(35),n(30),n(55),n(58);var $=n(5),H=o(n(60)),r=o(n(61));function o(e){return e&&e.__esModule?e:{"default":e}}function Q(){return(Q=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var u,l={13:"enter",27:"escape",32:"space",38:"up",40:"down"},z=((u=document.createElement("x")).style.cssText="pointer-events:auto","auto"===u.style.pointerEvents);function f(){return!(!navigator.userAgent.match(/(iPod|iPhone|iPad)/g)||!navigator.userAgent.match(/AppleWebKit/g))}var a=function(n){function e(e){var t;return(t=n.call(this,e)||this).elementReferences={},t.state={focused:null,hovered:null,clicked:null,menuOpen:!1,options:e.defaultValue?[e.defaultValue]:[],query:e.defaultValue,selected:null},t.handleComponentBlur=t.handleComponentBlur.bind(i(i(t))),t.handleKeyDown=t.handleKeyDown.bind(i(i(t))),t.handleUpArrow=t.handleUpArrow.bind(i(i(t))),t.handleDownArrow=t.handleDownArrow.bind(i(i(t))),t.handleEnter=t.handleEnter.bind(i(i(t))),t.handlePrintableKey=t.handlePrintableKey.bind(i(i(t))),t.handleListMouseLeave=t.handleListMouseLeave.bind(i(i(t))),t.handleOptionBlur=t.handleOptionBlur.bind(i(i(t))),t.handleOptionClick=t.handleOptionClick.bind(i(i(t))),t.handleOptionFocus=t.handleOptionFocus.bind(i(i(t))),t.handleOptionMouseEnter=t.handleOptionMouseEnter.bind(i(i(t))),t.handleInputBlur=t.handleInputBlur.bind(i(i(t))),t.handleInputChange=t.handleInputChange.bind(i(i(t))),t.handleInputFocus=t.handleInputFocus.bind(i(i(t))),t.pollInputElement=t.pollInputElement.bind(i(i(t))),t.getDirectInputChanges=t.getDirectInputChanges.bind(i(i(t))),t}(function r(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t})(e,n);var t=e.prototype;return t.componentDidMount=function(){this.pollInputElement()},t.componentWillUnmount=function(){clearTimeout(this.$pollInput),clearTimeout(this.$blurInput)},t.pollInputElement=function(){var e=this;this.getDirectInputChanges(),this.$pollInput=setTimeout(function(){e.pollInputElement()},100)},t.getDirectInputChanges=function(){var e=this.elementReferences[-1];e&&e.value!==this.state.query&&this.handleInputChange({target:{value:e.value}})},t.componentDidUpdate=function(e,t){var n=this.state,r=n.focused,o=n.clicked,i=null===r,u=t.focused!==r;(u&&!i||null!==o)&&this.elementReferences[r].focus();var l=-1===r,a=u&&null===t.focused;if(l&&a){var s=this.elementReferences[r];s.setSelectionRange(0,s.value.length)}},t.hasAutoselect=function(){return!f()&&this.props.autoselect},t.templateInputValue=function(e){var t=this.props.templates&&this.props.templates.inputValue;return t?t(e):e},t.templateSuggestion=function(e){var t=this.props.templates&&this.props.templates.suggestion;return t?t(e):e},t.handleComponentBlur=function(e){var t,n=this.state,r=n.options,o=n.query,i=n.selected;this.props.confirmOnBlur?(t=e.query||o,this.props.onConfirm(r[i])):t=o,this.setState({focused:null,clicked:null,menuOpen:e.menuOpen||!1,query:t,selected:null})},t.handleListMouseLeave=function(e){this.setState({hovered:null})},t.handleOptionBlur=function(e,t){var n=this.state,r=n.focused,o=n.clicked,i=n.menuOpen,u=n.options,l=n.selected,a=null===e.relatedTarget&&null===o,s=e.relatedTarget===this.elementReferences[-1],c=r!==t&&-1!==r;if(!c&&a||!(c||s)){var p=i&&f();this.handleComponentBlur({menuOpen:p,query:this.templateInputValue(u[l])})}},t.handleInputBlur=function(e){var t=this,n=this.state,r=n.focused,o=n.menuOpen,i=n.options,u=n.query,l=n.selected,a=-1!==r;if(clearTimeout(this.$blurInput),!a){var s=o&&f(),c=f()?u:this.templateInputValue(i[l]);this.$blurInput=setTimeout(function(){return t.handleComponentBlur({menuOpen:s,query:c})},200)}},t.handleInputChange=function(e){var n=this,t=this.props,r=t.minLength,o=t.source,i=t.showAllValues,u=this.hasAutoselect(),l=e.target.value,a=0===l.length,s=this.state.query.length!==l.length,c=l.length>=r;this.setState({query:l}),i||!a&&s&&c?o(l,function(e){var t=0<e.length;n.setState({menuOpen:t,options:e,selected:u&&t?0:-1})}):!a&&c||this.setState({menuOpen:!1,options:[]})},t.handleInputClick=function(e){this.handleInputChange(e)},t.handleInputFocus=function(e){this.setState({focused:-1})},t.handleOptionFocus=function(e){this.setState({focused:e,hovered:null,selected:e})},t.handleOptionMouseEnter=function(e,t){f()||this.setState({hovered:t})},t.handleOptionClick=function(e,t){var n=this.state.options[t],r=this.templateInputValue(n);clearTimeout(this.$blurInput),this.props.onConfirm(n),this.setState({focused:-1,clicked:t,hovered:null,menuOpen:!1,query:r,selected:-1}),this.forceUpdate()},t.handleUpArrow=function(e){e.preventDefault();var t=this.state,n=t.menuOpen,r=t.selected;-1!==r&&n&&this.handleOptionFocus(r-1)},t.handleDownArrow=function(e){var t=this;if(e.preventDefault(),this.props.showAllValues&&!1===this.state.menuOpen)e.preventDefault(),this.props.source("",function(e){t.setState({menuOpen:!0,options:e,selected:0,focused:0,hovered:null})});else if(!0===this.state.menuOpen){var n=this.state,r=n.menuOpen,o=n.options,i=n.selected;i!==o.length-1&&r&&this.handleOptionFocus(i+1)}},t.handleSpace=function(e){var t=this;this.props.showAllValues&&!1===this.state.menuOpen&&""===this.state.query&&(e.preventDefault(),this.props.source("",function(e){t.setState({menuOpen:!0,options:e})})),-1!==this.state.focused&&(e.preventDefault(),this.handleOptionClick(e,this.state.focused))},t.handleEnter=function(e){this.state.menuOpen&&(e.preventDefault(),0<=this.state.selected&&this.handleOptionClick(e,this.state.selected))},t.handlePrintableKey=function(e){var t=this.elementReferences[-1];e.target===t||t.focus()},t.handleKeyDown=function(e){switch(l[e.keyCode]){case"up":this.handleUpArrow(e);break;case"down":this.handleDownArrow(e);break;case"space":this.handleSpace(e);break;case"enter":this.handleEnter(e);break;case"escape":this.handleComponentBlur({query:this.state.query});break;default:(function t(e){return 47<e&&e<58||32===e||8===e||64<e&&e<91||95<e&&e<112||185<e&&e<193||218<e&&e<223})(e.keyCode)&&this.handlePrintableKey(e)}},t.render=function(){var e,o=this,t=this.props,n=t.cssNamespace,r=t.displayMenu,i=t.id,u=t.minLength,l=t.name,a=t.placeholder,s=t.required,c=t.showAllValues,p=t.tNoResults,f=t.tStatusQueryTooShort,d=t.tStatusNoResults,h=t.tStatusSelectedOption,m=t.tStatusResults,v=t.dropdownArrow,y=this.state,_=y.focused,b=y.hovered,g=y.menuOpen,x=y.options,w=y.query,O=y.selected,C=this.hasAutoselect(),S=-1===_,E=0===x.length,N=0!==w.length,k=w.length>=u,I=this.props.showNoOptionsFound&&S&&E&&N&&k,P=n+"__wrapper",M=n+"__input",j=null!==_?" "+M+"--focused":"",A=this.props.showAllValues?" "+M+"--show-all-values":" "+M+"--default",T=n+"__dropdown-arrow-down",L=-1!==_&&null!==_,B=n+"__menu",F=B+"--"+r,D=B+"--"+(g||I?"visible":"hidden"),R=n+"__option",U=n+"__hint",V=this.templateInputValue(x[O]),q=V&&0===V.toLowerCase().indexOf(w.toLowerCase())&&C?w+V.substr(w.length):"",W=z&&q;return c&&"string"==typeof(e=v({className:T}))&&(e=(0,$.createElement)("div",{className:n+"__dropdown-arrow-down-wrapper",dangerouslySetInnerHTML:{__html:e}})),(0,$.createElement)("div",{className:P,onKeyDown:this.handleKeyDown,role:"combobox","aria-expanded":g?"true":"false"},(0,$.createElement)(H["default"],{length:x.length,queryLength:w.length,minQueryLength:u,selectedOption:this.templateInputValue(x[O]),selectedOptionIndex:O,tQueryTooShort:f,tNoResults:d,tSelectedOption:h,tResults:m}),W&&(0,$.createElement)("span",null,(0,$.createElement)("input",{className:U,readonly:!0,tabIndex:"-1",value:q})),(0,$.createElement)("input",Q({"aria-activedescendant":!!L&&i+"__option--"+_,"aria-owns":i+"__listbox",autoComplete:"off",className:""+M+j+A,id:i,onClick:function(e){return o.handleInputClick(e)},onBlur:this.handleInputBlur},function K(e){return{onInput:e}}(this.handleInputChange),{onFocus:this.handleInputFocus,name:l,placeholder:a,ref:function(e){o.elementReferences[-1]=e},type:"text",role:"textbox",required:s,value:w})),e,(0,$.createElement)("ul",{className:B+" "+F+" "+D,onMouseLeave:function(e){return o.handleListMouseLeave(e)},id:i+"__listbox",role:"listbox"},x.map(function(e,t){var n=(-1===_?O===t:_===t)&&null===b?" "+R+"--focused":"",r=t%2?" "+R+"--odd":"";return(0,$.createElement)("li",{"aria-selected":_===t,className:""+R+n+r,dangerouslySetInnerHTML:{__html:o.templateSuggestion(e)},id:i+"__option--"+t,key:t,onBlur:function(e){return o.handleOptionBlur(e,t)},onClick:function(e){return o.handleOptionClick(e,t)},onMouseEnter:function(e){return o.handleOptionMouseEnter(e,t)},ref:function(e){o.elementReferences[t]=e},role:"option",tabIndex:"-1"})}),I&&(0,$.createElement)("li",{className:R+" "+R+"--no-results"},p())))},e}($.Component);(t["default"]=a).defaultProps={autoselect:!1,cssNamespace:"autocomplete",defaultValue:"",displayMenu:"inline",minLength:0,name:"input-autocomplete",placeholder:"",onConfirm:function(){},confirmOnBlur:!0,showNoOptionsFound:!0,showAllValues:!1,required:!1,tNoResults:function(){return"No results found"},dropdownArrow:r["default"]}},function(e,t,r){var o=r(9),i=r(53),u=r(28),l=r(26)("IE_PROTO"),a=function(){},s="prototype",c=function(){var e,t=r(15)("iframe"),n=u.length;for(t.style.display="none",r(54).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;n--;)delete c[s][u[n]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(a[s]=o(e),n=new a,a[s]=null,n[l]=e):n=c(),t===undefined?n:i(n,t)}},function(e,t,n){var u=n(8),l=n(9),a=n(20);e.exports=n(3)?Object.defineProperties:function(e,t){l(e);for(var n,r=a(t),o=r.length,i=0;i<o;)u.f(e,n=r[i++],t[n]);return e}},function(e,t,n){var r=n(1).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(0);r(r.P,"Function",{bind:n(56)})},function(e,t,n){"use strict";var i=n(19),u=n(2),l=n(57),a=[].slice,s={};e.exports=Function.bind||function(t){var n=i(this),r=a.call(arguments,1),o=function(){var e=r.concat(a.call(arguments));return this instanceof o?function(e,t,n){if(!(t in s)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";s[t]=Function("F,a","return new F("+r.join(",")+")")}return s[t](e,n)}(n,e.length,e):l(n,e,t)};return u(n.prototype)&&(o.prototype=n.prototype),o}},function(e,t){e.exports=function(e,t,n){var r=n===undefined;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){n(59)("match",1,function(r,o,e){return[function(e){"use strict";var t=r(this),n=e==undefined?undefined:e[o];return n!==undefined?n.call(e,t):new RegExp(e)[o](String(t))},e]})},function(e,t,n){"use strict";var l=n(7),a=n(16),s=n(4),c=n(12),p=n(34);e.exports=function(t,e,n){var r=p(t),o=n(c,r,""[t]),i=o[0],u=o[1];s(function(){var e={};return e[r]=function(){return 7},7!=""[t](e)})&&(a(String.prototype,t,i),l(RegExp.prototype,r,2==e?function(e,t){return u.call(e,this,t)}:function(e){return u.call(e,this)}))}},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0,n(36);var m=n(5);var r=function(o){function e(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))||this).state={bump:!1},e}(function n(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t})(e,o);var t=e.prototype;return t.componentWillReceiveProps=function(e){e.queryLength!==this.props.queryLength&&this.setState(function(e){return{bump:!e.bump}})},t.render=function(){var e=this.props,t=e.length,n=e.queryLength,r=e.minQueryLength,o=e.selectedOption,i=e.selectedOptionIndex,u=e.tQueryTooShort,l=e.tNoResults,a=e.tSelectedOption,s=e.tResults,c=this.state.bump,p=n<r,f=0===t,d=o?a(o,t,i):"",h=null;return h=p?u(r):f?l():s(t,d),(0,m.createElement)("div",{"aria-atomic":"true","aria-live":"polite",role:"status",style:{border:"0",clip:"rect(0 0 0 0)",height:"1px",marginBottom:"-1px",marginRight:"-1px",overflow:"hidden",padding:"0",position:"absolute",whiteSpace:"nowrap",width:"1px"}},h,(0,m.createElement)("span",null,c?",":",,"))},e}(m.Component);(t["default"]=r).defaultProps={tQueryTooShort:function(e){return"Type in "+e+" or more characters for results."},tNoResults:function(){return"No search results."},tSelectedOption:function(e,t,n){return e+" ("+(n+1)+" of "+t+") is selected."},tResults:function(e,t){return e+" "+(1===e?"result":"results")+" "+(1===e?"is":"are")+" available. "+t}}},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0;var r=n(5),o=function i(e){var t=e.className;return(0,r.createElement)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:t,focusable:"false"},(0,r.createElement)("g",{stroke:"none",fill:"none","fill-rule":"evenodd"},(0,r.createElement)("polygon",{fill:"#000000",points:"0 0 22 0 11 17"})))};t["default"]=o}])["default"]});
|
1
|
+
(function webpackUniversalModuleDefinition(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["accessibleAutocomplete"]=t():e["accessibleAutocomplete"]=t()})(window,function(){return function(n){var r={};function o(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}return o.m=n,o.c=r,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="/",o(o.s=38)}([function(e,t,n){var m=n(1),v=n(6),y=n(7),_=n(16),b=n(18),g="prototype",x=function(e,t,n){var r,o,i,u,l=e&x.F,s=e&x.G,a=e&x.S,c=e&x.P,p=e&x.B,f=s?m:a?m[t]||(m[t]={}):(m[t]||{})[g],d=s?v:v[t]||(v[t]={}),h=d[g]||(d[g]={});for(r in s&&(n=t),n)i=((o=!l&&f&&f[r]!==undefined)?f:n)[r],u=p&&o?b(i,m):c&&"function"==typeof i?b(Function.call,i):i,f&&_(f,r,i,e&x.U),d[r]!=i&&y(d,r,u),c&&h[r]!=i&&(h[r]=i)};m.core=v,x.F=1,x.G=2,x.S=4,x.P=8,x.B=16,x.W=32,x.U=64,x.R=128,e.exports=x},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(4)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t,n){"use strict";n.r(t),n.d(t,"h",function(){return r}),n.d(t,"createElement",function(){return r}),n.d(t,"cloneElement",function(){return i}),n.d(t,"Component",function(){return _}),n.d(t,"render",function(){return b}),n.d(t,"rerender",function(){return f}),n.d(t,"options",function(){return E});var s=function s(){},E={},a=[],c=[];function r(e,t){var n,r,o,i,u=c;for(i=arguments.length;2<i--;)a.push(arguments[i]);for(t&&null!=t.children&&(a.length||a.push(t.children),delete t.children);a.length;)if((r=a.pop())&&r.pop!==undefined)for(i=r.length;i--;)a.push(r[i]);else"boolean"==typeof r&&(r=null),(o="function"!=typeof e)&&(null==r?r="":"number"==typeof r?r=String(r):"string"!=typeof r&&(o=!1)),o&&n?u[u.length-1]+=r:u===c?u=[r]:u.push(r),n=o;var l=new s;return l.nodeName=e,l.children=u,l.attributes=null==t?undefined:t,l.key=null==t?undefined:t.key,E.vnode!==undefined&&E.vnode(l),l}function N(e,t){for(var n in t)e[n]=t[n];return e}var o="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout;function i(e,t){return r(e.nodeName,N(N({},e.attributes),t),2<arguments.length?[].slice.call(arguments,2):e.children)}var p=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,u=[];function l(e){!e._dirty&&(e._dirty=!0)&&1==u.push(e)&&(E.debounceRendering||o)(f)}function f(){var e,t=u;for(u=[];e=t.pop();)e._dirty&&V(e)}function k(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function I(e){var t=N({},e.attributes);t.children=e.children;var n=e.nodeName.defaultProps;if(n!==undefined)for(var r in n)t[r]===undefined&&(t[r]=n[r]);return t}function M(e){var t=e.parentNode;t&&t.removeChild(e)}function v(e,t,n,r,o){if("className"===t&&(t="class"),"key"===t);else if("ref"===t)n&&n(null),r&&r(e);else if("class"!==t||o)if("style"===t){if(r&&"string"!=typeof r&&"string"!=typeof n||(e.style.cssText=r||""),r&&"object"==typeof r){if("string"!=typeof n)for(var i in n)i in r||(e.style[i]="");for(var i in r)e.style[i]="number"==typeof r[i]&&!1===p.test(i)?r[i]+"px":r[i]}}else if("dangerouslySetInnerHTML"===t)r&&(e.innerHTML=r.__html||"");else if("o"==t[0]&&"n"==t[1]){var u=t!==(t=t.replace(/Capture$/,""));t=t.toLowerCase().substring(2),r?n||e.addEventListener(t,d,u):e.removeEventListener(t,d,u),(e._listeners||(e._listeners={}))[t]=r}else if("list"!==t&&"type"!==t&&!o&&t in e){try{e[t]=null==r?"":r}catch(s){}null!=r&&!1!==r||"spellcheck"==t||e.removeAttribute(t)}else{var l=o&&t!==(t=t.replace(/^xlink:?/,""));null==r||!1===r?l?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t):"function"!=typeof r&&(l?e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),r):e.setAttribute(t,r))}else e.className=r||""}function d(e){return this._listeners[e.type](E.event&&E.event(e)||e)}var P=[],A=0,j=!1,T=!1;function D(){for(var e;e=P.pop();)E.afterMount&&E.afterMount(e),e.componentDidMount&&e.componentDidMount()}function L(e,t,n,r,o,i){A++||(j=null!=o&&o.ownerSVGElement!==undefined,T=null!=e&&!("__preactattr_"in e));var u=B(e,t,n,r,i);return o&&u.parentNode!==o&&o.appendChild(u),--A||(T=!1,i||D()),u}function B(e,t,n,r,o){var i=e,u=j;if(null!=t&&"boolean"!=typeof t||(t=""),"string"==typeof t||"number"==typeof t)return e&&e.splitText!==undefined&&e.parentNode&&(!e._component||o)?e.nodeValue!=t&&(e.nodeValue=t):(i=document.createTextNode(t),e&&(e.parentNode&&e.parentNode.replaceChild(i,e),F(e,!0))),i["__preactattr_"]=!0,i;var l=t.nodeName;if("function"==typeof l)return function d(e,t,n,r){var o=e&&e._component,i=o,u=e,l=o&&e._componentConstructor===t.nodeName,s=l,a=I(t);for(;o&&!s&&(o=o._parentComponent);)s=o.constructor===t.nodeName;o&&s&&(!r||o._component)?(U(o,a,3,n,r),e=o.base):(i&&!l&&(q(i),e=u=null),o=R(t.nodeName,a,n),e&&!o.nextBase&&(o.nextBase=e,u=null),U(o,a,1,n,r),e=o.base,u&&e!==u&&(u._component=null,F(u,!1)));return e}(e,t,n,r);if(j="svg"===l||"foreignObject"!==l&&j,l=String(l),(!e||!k(e,l))&&(i=function h(e,t){var n=t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return n.normalizedNodeName=e,n}(l,j),e)){for(;e.firstChild;)i.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild(i,e),F(e,!0)}var s=i.firstChild,a=i["__preactattr_"],c=t.children;if(null==a){a=i["__preactattr_"]={};for(var p=i.attributes,f=p.length;f--;)a[p[f].name]=p[f].value}return!T&&c&&1===c.length&&"string"==typeof c[0]&&null!=s&&s.splitText!==undefined&&null==s.nextSibling?s.nodeValue!=c[0]&&(s.nodeValue=c[0]):(c&&c.length||null!=s)&&function S(e,t,n,r,o){var i,u,l,s,a,c=e.childNodes,p=[],f={},d=0,h=0,m=c.length,v=0,y=t?t.length:0;if(0!==m)for(var _=0;_<m;_++){var b=c[_],g=b["__preactattr_"],x=y&&g?b._component?b._component.__key:g.key:null;null!=x?(d++,f[x]=b):(g||(b.splitText!==undefined?!o||b.nodeValue.trim():o))&&(p[v++]=b)}if(0!==y)for(var _=0;_<y;_++){s=t[_],a=null;var x=s.key;if(null!=x)d&&f[x]!==undefined&&(a=f[x],f[x]=undefined,d--);else if(h<v)for(i=h;i<v;i++)if(p[i]!==undefined&&(w=u=p[i],C=o,"string"==typeof(O=s)||"number"==typeof O?w.splitText!==undefined:"string"==typeof O.nodeName?!w._componentConstructor&&k(w,O.nodeName):C||w._componentConstructor===O.nodeName)){a=u,p[i]=undefined,i===v-1&&v--,i===h&&h++;break}a=B(a,s,n,r),l=c[_],a&&a!==e&&a!==l&&(null==l?e.appendChild(a):a===l.nextSibling?M(l):e.insertBefore(a,l))}var w,O,C;if(d)for(var _ in f)f[_]!==undefined&&F(f[_],!1);for(;h<=v;)(a=p[v--])!==undefined&&F(a,!1)}(i,c,n,r,T||null!=a.dangerouslySetInnerHTML),function m(e,t,n){var r;for(r in n)t&&null!=t[r]||null==n[r]||v(e,r,n[r],n[r]=undefined,j);for(r in t)"children"===r||"innerHTML"===r||r in n&&t[r]===("value"===r||"checked"===r?e[r]:n[r])||v(e,r,n[r],n[r]=t[r],j)}(i,t.attributes,a),j=u,i}function F(e,t){var n=e._component;n?q(n):(null!=e["__preactattr_"]&&e["__preactattr_"].ref&&e["__preactattr_"].ref(null),!1!==t&&null!=e["__preactattr_"]||M(e),h(e))}function h(e){for(e=e.lastChild;e;){var t=e.previousSibling;F(e,!0),e=t}}var m=[];function R(e,t,n){var r,o=m.length;for(e.prototype&&e.prototype.render?(r=new e(t,n),_.call(r,t,n)):((r=new _(t,n)).constructor=e,r.render=y);o--;)if(m[o].constructor===e)return r.nextBase=m[o].nextBase,m.splice(o,1),r;return r}function y(e,t,n){return this.constructor(e,n)}function U(e,t,n,r,o){e._disable||(e._disable=!0,e.__ref=t.ref,e.__key=t.key,delete t.ref,delete t.key,"undefined"==typeof e.constructor.getDerivedStateFromProps&&(!e.base||o?e.componentWillMount&&e.componentWillMount():e.componentWillReceiveProps&&e.componentWillReceiveProps(t,r)),r&&r!==e.context&&(e.prevContext||(e.prevContext=e.context),e.context=r),e.prevProps||(e.prevProps=e.props),e.props=t,e._disable=!1,0!==n&&(1!==n&&!1===E.syncComponentUpdates&&e.base?l(e):V(e,1,o)),e.__ref&&e.__ref(e))}function V(e,t,n,r){if(!e._disable){var o,i,u,l=e.props,s=e.state,a=e.context,c=e.prevProps||l,p=e.prevState||s,f=e.prevContext||a,d=e.base,h=e.nextBase,m=d||h,v=e._component,y=!1,_=f;if(e.constructor.getDerivedStateFromProps&&(s=N(N({},s),e.constructor.getDerivedStateFromProps(l,s)),e.state=s),d&&(e.props=c,e.state=p,e.context=f,2!==t&&e.shouldComponentUpdate&&!1===e.shouldComponentUpdate(l,s,a)?y=!0:e.componentWillUpdate&&e.componentWillUpdate(l,s,a),e.props=l,e.state=s,e.context=a),e.prevProps=e.prevState=e.prevContext=e.nextBase=null,e._dirty=!1,!y){o=e.render(l,s,a),e.getChildContext&&(a=N(N({},a),e.getChildContext())),d&&e.getSnapshotBeforeUpdate&&(_=e.getSnapshotBeforeUpdate(c,p));var b,g,x=o&&o.nodeName;if("function"==typeof x){var w=I(o);(i=v)&&i.constructor===x&&w.key==i.__key?U(i,w,1,a,!1):(b=i,e._component=i=R(x,w,a),i.nextBase=i.nextBase||h,i._parentComponent=e,U(i,w,0,a,!1),V(i,1,n,!0)),g=i.base}else u=m,(b=v)&&(u=e._component=null),(m||1===t)&&(u&&(u._component=null),g=function L(t,n,r,o,i,u){A++||(j=null!=i&&i.ownerSVGElement!==undefined,T=null!=t&&!("__preactattr_"in t));var l=B(t,n,r,o,u);return i&&l.parentNode!==i&&i.appendChild(l),--A||(T=!1,u||D()),l}(u,o,a,n||!d,m&&m.parentNode,!0));if(m&&g!==m&&i!==v){var O=m.parentNode;O&&g!==O&&(O.replaceChild(g,m),b||(m._component=null,F(m,!1)))}if(b&&q(b),(e.base=g)&&!r){for(var C=e,S=e;S=S._parentComponent;)(C=S).base=g;g._component=C,g._componentConstructor=C.constructor}}for(!d||n?P.unshift(e):y||(e.componentDidUpdate&&e.componentDidUpdate(c,p,_),E.afterUpdate&&E.afterUpdate(e));e._renderCallbacks.length;)e._renderCallbacks.pop().call(e);A||r||D()}}function q(e){E.beforeUnmount&&E.beforeUnmount(e);var t=e.base;e._disable=!0,e.componentWillUnmount&&e.componentWillUnmount(),e.base=null;var n=e._component;n?q(n):t&&(t["__preactattr_"]&&t["__preactattr_"].ref&&t["__preactattr_"].ref(null),M(e.nextBase=t),m.push(e),h(t)),e.__ref&&e.__ref(null)}function _(e,t){this._dirty=!0,this.context=t,this.props=e,this.state=this.state||{},this._renderCallbacks=[]}function b(e,t,n){return L(n,e,{},!1,t,!1)}N(_.prototype,{setState:function(e,t){this.prevState||(this.prevState=this.state),this.state=N(N({},this.state),"function"==typeof e?e(this.state,this.props):e),t&&this._renderCallbacks.push(t),l(this)},forceUpdate:function(e){e&&this._renderCallbacks.push(e),V(this,2)},render:function b(){}});var g={h:r,createElement:r,cloneElement:i,Component:_,render:b,rerender:f,options:E};t["default"]=g},function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(8),o=n(41);e.exports=n(3)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var o=n(9),i=n(39),u=n(40),l=Object.defineProperty;t.f=n(3)?Object.defineProperty:function(e,t,n){if(o(e),t=u(t,!0),o(n),i)try{return l(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(2);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(e===undefined?"":e,")_",(++n+r).toString(36))}},function(e,t,n){var r=n(22);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){e.exports=function(e){if(e==undefined)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){"use strict";var r=n(4);e.exports=function(e,t){return!!e&&r(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t,n){var r=n(0);r(r.S+r.F,"Object",{assign:n(42)})},function(e,t,n){var r=n(2),o=n(1).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){var i=n(1),u=n(7),l=n(17),s=n(10)("src"),r="toString",o=Function[r],a=(""+o).split(r);n(6).inspectSource=function(e){return o.call(e)},(e.exports=function(e,t,n,r){var o="function"==typeof n;o&&(l(n,"name")||u(n,"name",t)),e[t]!==n&&(o&&(l(n,s)||u(n,s,e[t]?""+e[t]:a.join(String(t)))),e===i?e[t]=n:r?e[t]?e[t]=n:u(e,t,n):(delete e[t],u(e,t,n)))})(Function.prototype,r,function(){return"function"==typeof this&&this[s]||o.call(this)})},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var i=n(19);e.exports=function(r,o,e){if(i(r),o===undefined)return r;switch(e){case 1:return function(e){return r.call(o,e)};case 2:return function(e,t){return r.call(o,e,t)};case 3:return function(e,t,n){return r.call(o,e,t,n)}}return function(){return r.apply(o,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(43),o=n(28);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){var r=n(11),o=n(12);e.exports=function(e){return r(o(e))}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var s=n(21),a=n(24),c=n(44);e.exports=function(l){return function(e,t,n){var r,o=s(e),i=a(o.length),u=c(n,i);if(l&&t!=t){for(;u<i;)if((r=o[u++])!=r)return!0}else for(;u<i;u++)if((l||u in o)&&o[u]===t)return l||u||0;return!l&&-1}}},function(e,t,n){var r=n(25),o=Math.min;e.exports=function(e){return 0<e?o(r(e),9007199254740991):0}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0<e?r:n)(e)}},function(e,t,n){var r=n(27)("keys"),o=n(10);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(6),o=n(1),i="__core-js_shared__",u=o[i]||(o[i]={});(e.exports=function(e,t){return u[e]||(u[e]=t!==undefined?t:{})})("versions",[]).push({version:r.version,mode:n(45)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(12);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(8).f,o=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in o||n(3)&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(e){return""}}})},function(e,t,n){"use strict";var r=n(0),o=n(32)(1);r(r.P+r.F*!n(13)([].map,!0),"Array",{map:function(e){return o(this,e,arguments[1])}})},function(e,t,n){var b=n(18),g=n(11),x=n(29),w=n(24),r=n(48);e.exports=function(p,e){var f=1==p,d=2==p,h=3==p,m=4==p,v=6==p,y=5==p||v,_=e||r;return function(e,t,n){for(var r,o,i=x(e),u=g(i),l=b(t,n,3),s=w(u.length),a=0,c=f?_(e,s):d?_(e,0):undefined;a<s;a++)if((y||a in u)&&(o=l(r=u[a],a,i),p))if(f)c[a]=o;else if(o)switch(p){case 3:return!0;case 5:return r;case 6:return a;case 2:c.push(r)}else if(m)return!1;return v?-1:h||m?m:c}}},function(e,t,n){var r=n(22);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(27)("wks"),o=n(10),i=n(1).Symbol,u="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=u&&i[e]||(u?i:o)("Symbol."+e))}).store=r},function(e,t,n){"use strict";var r=n(0),o=n(23)(!1),i=[].indexOf,u=!!i&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(u||!n(13)(i)),"Array",{indexOf:function(e){return u?i.apply(this,arguments)||0:o(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(0),o=n(32)(2);r(r.P+r.F*!n(13)([].filter,!0),"Array",{filter:function(e){return o(this,e,arguments[1])}})},function(e,t,n){var r=n(0);r(r.S,"Object",{create:n(52)})},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0,n(14),n(30),n(31),n(35),n(36),n(50);var r=n(5),o=function s(e){return e&&e.__esModule?e:{"default":e}}(n(51));function i(e){if(!e.element)throw new Error("element is not defined");if(!e.id)throw new Error("id is not defined");if(!e.source)throw new Error("source is not defined");Array.isArray(e.source)&&(e.source=u(e.source)),(0,r.render)((0,r.createElement)(o["default"],e),e.element)}var u=function u(n){return function(t,e){e(n.filter(function(e){return-1!==e.toLowerCase().indexOf(t.toLowerCase())}))}};i.enhanceSelectElement=function(n){if(!n.selectElement)throw new Error("selectElement is not defined");if(!n.source){var e=[].filter.call(n.selectElement.options,function(e){return e.value||n.preserveNullOptions});n.source=e.map(function(e){return e.textContent||e.innerText}),n.selectElement.multiple&&(n.multiple=!0,n.confirmOnBlur=!1,n.showNoOptionsFound=!1,n.selectedOptions=e.filter(function(e){return e.selected}))}if(n.onConfirm=n.onConfirm||function(t){var e=[].filter.call(n.selectElement.options,function(e){return(e.textContent||e.innerText)===t})[0];e&&(e.selected=!0)},n.selectElement.value||n.defaultValue===undefined){var t=n.selectElement.options[n.selectElement.options.selectedIndex];n.selectElement.multiple?n.defaultValue="":(t.textContent||t.innerText)&&(n.defaultValue=t.textContent||t.innerText)}n.name===undefined&&(n.name=""),n.id===undefined&&(n.selectElement.id===undefined?n.id="":n.id=n.selectElement.id),n.autoselect===undefined&&(n.autoselect=!0);var r=document.createElement("span");n.selectElement.parentNode.insertBefore(r,n.selectElement),i(Object.assign({},n,{element:r})),n.selectElement.style.display="none",n.selectElement.id=n.selectElement.id+"-select"};var l=i;t["default"]=l},function(e,t,n){e.exports=!n(3)&&!n(4)(function(){return 7!=Object.defineProperty(n(15)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var o=n(2);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){"use strict";var f=n(20),d=n(46),h=n(47),m=n(29),v=n(11),o=Object.assign;e.exports=!o||n(4)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=o({},e)[n]||Object.keys(o({},t)).join("")!=r})?function(e,t){for(var n=m(e),r=arguments.length,o=1,i=d.f,u=h.f;o<r;)for(var l,s=v(arguments[o++]),a=i?f(s).concat(i(s)):f(s),c=a.length,p=0;p<c;)u.call(s,l=a[p++])&&(n[l]=s[l]);return n}:o},function(e,t,n){var u=n(17),l=n(21),s=n(23)(!1),a=n(26)("IE_PROTO");e.exports=function(e,t){var n,r=l(e),o=0,i=[];for(n in r)n!=a&&u(r,n)&&i.push(n);for(;t.length>o;)u(r,n=t[o++])&&(~s(i,n)||i.push(n));return i}},function(e,t,n){var r=n(25),o=Math.max,i=Math.min;e.exports=function(e,t){return(e=r(e))<0?o(e+t,0):i(e,t)}},function(e,t){e.exports=!1},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(49);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){var r=n(2),o=n(33),i=n(34)("species");e.exports=function(e){var t;return o(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!o(t.prototype)||(t=undefined),r(t)&&null===(t=t[i])&&(t=undefined)),t===undefined?Array:t}},function(e,t,n){var r=n(0);r(r.S,"Array",{isArray:n(33)})},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0,n(14),n(37),n(31),n(35),n(30),n(36),n(55),n(58);var G=n(5),J=o(n(60)),r=o(n(61));function o(e){return e&&e.__esModule?e:{"default":e}}function X(){return(X=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var u,l={13:"enter",27:"escape",32:"space",38:"up",40:"down"},Y=((u=document.createElement("x")).style.cssText="pointer-events:auto","auto"===u.style.pointerEvents);function f(){return!(!navigator.userAgent.match(/(iPod|iPhone|iPad)/g)||!navigator.userAgent.match(/AppleWebKit/g))}var s=function(n){function e(e){var t;return(t=n.call(this,e)||this).elementReferences={},t.state={focused:null,hovered:null,clicked:null,menuOpen:!1,options:e.defaultValue?[e.defaultValue]:[],selectedOptions:e.selectedOptions?[e.selectedOptions]:[],query:e.defaultValue,selected:null},t.handleComponentBlur=t.handleComponentBlur.bind(i(i(t))),t.handleKeyDown=t.handleKeyDown.bind(i(i(t))),t.handleUpArrow=t.handleUpArrow.bind(i(i(t))),t.handleDownArrow=t.handleDownArrow.bind(i(i(t))),t.handleEnter=t.handleEnter.bind(i(i(t))),t.handlePrintableKey=t.handlePrintableKey.bind(i(i(t))),t.handleListMouseLeave=t.handleListMouseLeave.bind(i(i(t))),t.handleOptionBlur=t.handleOptionBlur.bind(i(i(t))),t.handleOptionClick=t.handleOptionClick.bind(i(i(t))),t.handleOptionFocus=t.handleOptionFocus.bind(i(i(t))),t.handleOptionMouseEnter=t.handleOptionMouseEnter.bind(i(i(t))),t.handleSelectedOptionClick=t.handleSelectedOptionClick.bind(i(i(t))),t.handleSelectedOptionKeyDown=t.handleSelectedOptionKeyDown.bind(i(i(t))),t.handleInputBlur=t.handleInputBlur.bind(i(i(t))),t.handleInputChange=t.handleInputChange.bind(i(i(t))),t.handleInputFocus=t.handleInputFocus.bind(i(i(t))),t.pollInputElement=t.pollInputElement.bind(i(i(t))),t.getDirectInputChanges=t.getDirectInputChanges.bind(i(i(t))),t}(function r(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t})(e,n);var t=e.prototype;return t.componentDidMount=function(){this.pollInputElement()},t.componentWillUnmount=function(){clearTimeout(this.$pollInput),clearTimeout(this.$blurInput)},t.pollInputElement=function(){var e=this;this.getDirectInputChanges(),this.$pollInput=setTimeout(function(){e.pollInputElement()},100)},t.getDirectInputChanges=function(){var e=this.elementReferences[-1];e&&e.value!==this.state.query&&this.handleInputChange({target:{value:e.value}})},t.componentDidUpdate=function(e,t){var n=this.state,r=n.focused,o=n.clicked,i=null===r,u=t.focused!==r;(u&&!i||null!==o)&&this.elementReferences[r].focus();var l=-1===r,s=u&&null===t.focused;if(l&&s){var a=this.elementReferences[r];a.setSelectionRange(0,a.value.length)}},t.hasAutoselect=function(){return!f()&&this.props.autoselect},t.templateInputValue=function(e){var t=this.props.templates&&this.props.templates.inputValue;return t?t(e):e},t.templateSuggestion=function(e){var t=this.props.templates&&this.props.templates.suggestion;return t?t(e):e},t.handleComponentBlur=function(e){var t,n=this.state,r=n.options,o=n.query,i=n.selected;this.props.confirmOnBlur?(t=e.query||o,this.props.onConfirm(r[i])):t=o,this.setState({focused:null,clicked:null,menuOpen:e.menuOpen||!1,query:t,selected:null}),this.props.selectElement&&this.props.selectElement.multiple&&this.setState({menuOpen:!1,selected:null,query:""})},t.handleListMouseLeave=function(e){this.setState({hovered:null})},t.handleOptionBlur=function(e,t){var n=this.state,r=n.focused,o=n.clicked,i=n.menuOpen,u=n.options,l=n.selected,s=null===e.relatedTarget&&null===o,a=e.relatedTarget===this.elementReferences[-1],c=r!==t&&-1!==r;if(!c&&s||!(c||a)){var p=i&&f();this.handleComponentBlur({menuOpen:p,query:this.templateInputValue(u[l])})}},t.handleInputBlur=function(e){var t=this,n=this.state,r=n.focused,o=n.menuOpen,i=n.options,u=n.query,l=n.selected,s=-1!==r;if(clearTimeout(this.$blurInput),!s){var a=o&&f(),c=f()?u:this.templateInputValue(i[l]);this.$blurInput=setTimeout(function(){return t.handleComponentBlur({menuOpen:a,query:c})},200)}},t.handleInputChange=function(e){var n=this,t=this.props,r=t.minLength,o=t.source,i=t.showAllValues,u=this.hasAutoselect(),l=e.target.value,s=0===l.length,a=this.state.query.length!==l.length,c=l.length>=r;this.setState({query:l}),i||!s&&a&&c?o(l,function(e){var t=0<e.length;n.setState({menuOpen:t,options:e,selected:u&&t?0:-1})}):!s&&c||this.setState({menuOpen:!1,options:[]})},t.handleInputClick=function(e){this.handleInputChange(e)},t.handleInputFocus=function(e){this.setState({focused:-1})},t.handleOptionFocus=function(e){this.setState({focused:e,hovered:null,selected:e})},t.handleOptionMouseEnter=function(e,t){f()||this.setState({hovered:t})},t.handleOptionClick=function(e,t){var n=this.state.options[t],r=this.templateInputValue(n);clearTimeout(this.$blurInput),this.props.onConfirm(n),this.setState({focused:-1,clicked:t,hovered:null,menuOpen:!1,query:r,selected:-1}),this.props.selectElement&&this.props.selectElement.multiple&&this.updateMultiselect(n),this.forceUpdate()},t.updateMultiselect=function(t){if(t){var e=[].filter.call(this.props.selectElement.options,function(e){return e.textContent===t})[0];e&&(e.selected=!0);var n=[].filter.call(this.props.selectElement.options,function(e){return e.textContent});this.props.selectedOptions=n.filter(function(e){return!0===e.selected}),this.setState({menuOpen:!1,selected:null,query:""})}},t.handleSelectedOptionClick=function(e,t){var n=this.props.selectedOptions[t];this.props.selectedOptions=this.props.selectedOptions.filter(function(e){return e!==n});var r=[].filter.call(this.props.selectElement.options,function(e){return e.textContent===n.textContent})[0];r&&(r.selected=!1),this.forceUpdate()},t.handleSelectedOptionKeyDown=function(e,t){switch(l[e.keyCode]){case"space":case"enter":this.handleSelectedOptionClick(e,t)}},t.handleUpArrow=function(e){e.preventDefault();var t=this.state,n=t.menuOpen,r=t.selected;-1!==r&&n&&this.handleOptionFocus(r-1)},t.handleDownArrow=function(e){var t=this;if(e.preventDefault(),this.props.showAllValues&&!1===this.state.menuOpen)e.preventDefault(),this.props.source("",function(e){t.setState({menuOpen:!0,options:e,selected:0,focused:0,hovered:null})});else if(!0===this.state.menuOpen){var n=this.state,r=n.menuOpen,o=n.options,i=n.selected;i!==o.length-1&&r&&this.handleOptionFocus(i+1)}},t.handleSpace=function(e){var t=this;this.props.showAllValues&&!1===this.state.menuOpen&&""===this.state.query&&(e.preventDefault(),this.props.source("",function(e){t.setState({menuOpen:!0,options:e})})),-1!==this.state.focused&&(e.preventDefault(),this.handleOptionClick(e,this.state.focused))},t.handleEnter=function(e){this.state.menuOpen&&(e.preventDefault(),0<=this.state.selected&&this.handleOptionClick(e,this.state.selected))},t.handlePrintableKey=function(e){var t=this.elementReferences[-1];e.target===t||t.focus()},t.handleKeyDown=function(e){switch(l[e.keyCode]){case"up":this.handleUpArrow(e);break;case"down":this.handleDownArrow(e);break;case"space":this.handleSpace(e);break;case"enter":this.handleEnter(e);break;case"escape":this.handleComponentBlur({query:this.state.query});break;default:(function t(e){return 47<e&&e<58||32===e||8===e||64<e&&e<91||95<e&&e<112||185<e&&e<193||218<e&&e<223})(e.keyCode)&&this.handlePrintableKey(e)}},t.render=function(){var e,o=this,t=this.props,n=t.cssNamespace,r=t.displayMenu,i=t.id,u=t.minLength,l=t.name,s=t.placeholder,a=t.required,c=t.multiple,p=t.showAllValues,f=t.tNoResults,d=t.tStatusQueryTooShort,h=t.tStatusNoResults,m=t.tStatusSelectedOption,v=t.tStatusResults,y=t.tSelectedOptionDescription,_=t.dropdownArrow,b=t.customAttributes,g=this.state,x=g.focused,w=g.hovered,O=g.menuOpen,C=g.options,S=g.query,E=g.selected,N=this.hasAutoselect(),k=-1===x,I=0===C.length,M=0!==S.length,P=S.length>=u,A=this.props.showNoOptionsFound&&k&&I&&M&&P,j=n+"__wrapper",T=n+"__input",D=null!==x?" "+T+"--focused":"",L=this.props.showAllValues?" "+T+"--show-all-values":" "+T+"--default",B=n+"__dropdown-arrow-down",F=-1!==x&&null!==x,R=n+"__menu",U=R+"--"+r,V=R+"--"+(O||A?"visible":"hidden"),q=n+"__option",K=n+"__list",W=n+"__hint",$=this.templateInputValue(C[E]),H=$&&0===$.toLowerCase().indexOf(S.toLowerCase())&&N?S+$.substr(S.length):"",Q=Y&&H;return p&&"string"==typeof(e=_({className:B}))&&(e=(0,G.createElement)("div",{className:n+"__dropdown-arrow-down-wrapper",dangerouslySetInnerHTML:{__html:e}})),(0,G.createElement)("div",{className:j,onKeyDown:this.handleKeyDown,role:"combobox","aria-expanded":O?"true":"false"},(0,G.createElement)(J["default"],{length:C.length,queryLength:S.length,minQueryLength:u,selectedOption:this.templateInputValue(C[E]),selectedOptionIndex:E,tQueryTooShort:d,tNoResults:h,tSelectedOption:m,tResults:v}),Q&&(0,G.createElement)("span",null,(0,G.createElement)("input",{className:W,readonly:!0,tabIndex:"-1",value:H})),(0,G.createElement)("input",X({"aria-activedescendant":!!F&&i+"__option--"+x,"aria-owns":i+"__listbox",autoComplete:"off",className:""+T+D+L,id:i,onClick:function(e){return o.handleInputClick(e)},onBlur:this.handleInputBlur},function z(e){return{onInput:e}}(this.handleInputChange),{onFocus:this.handleInputFocus,name:l,placeholder:s,ref:function(e){o.elementReferences[-1]=e},type:"text",role:"textbox",required:a,value:S},b)),e,(0,G.createElement)("ul",{className:R+" "+U+" "+V,onMouseLeave:function(e){return o.handleListMouseLeave(e)},id:i+"__listbox",role:"listbox"},C.map(function(e,t){var n=(-1===x?E===t:x===t)&&null===w?" "+q+"--focused":"",r=t%2?" "+q+"--odd":"";return(0,G.createElement)("li",{"aria-selected":x===t,className:""+q+n+r,dangerouslySetInnerHTML:{__html:o.templateSuggestion(e)},id:i+"__option--"+t,key:t,onBlur:function(e){return o.handleOptionBlur(e,t)},onClick:function(e){return o.handleOptionClick(e,t)},onMouseEnter:function(e){return o.handleOptionMouseEnter(e,t)},ref:function(e){o.elementReferences[t]=e},role:"option",tabIndex:"-1"})}),A&&(0,G.createElement)("li",{className:q+" "+q+"--no-results"},f())),c&&(0,G.createElement)("ul",{className:""+K,id:i+"__list",role:"listbox"},this.props.selectedOptions.map(function(e,t){return(0,G.createElement)("li",{"aria-selected":"true","aria-label":o.templateSuggestion(e.textContent)+", selected","aria-describedBy":i+"__list-item-description",className:""+q,dangerouslySetInnerHTML:{__html:o.templateSuggestion(e.textContent)},id:i+"__option--"+t,key:t,onClick:function(e){return o.handleSelectedOptionClick(e,t)},onKeyDown:function(e){return o.handleSelectedOptionKeyDown(e,t)},role:"option",tabIndex:"0"})}),A&&(0,G.createElement)("li",{className:q+" "+q+"--no-results"},f())),c&&(0,G.createElement)("span",{"class":"autocomplete__list-item-description",id:i+"__list-item-description"},y()))},e}(G.Component);(t["default"]=s).defaultProps={autoselect:!1,cssNamespace:"autocomplete",customAttributes:{},defaultValue:"",displayMenu:"inline",minLength:0,name:"input-autocomplete",placeholder:"",onConfirm:function(){},confirmOnBlur:!0,showNoOptionsFound:!0,showAllValues:!1,required:!1,multiple:!1,selectedOptions:{},tNoResults:function(){return"No results found"},tSelectedOptionDescription:function(){return"press Enter or Space to remove selection"},dropdownArrow:r["default"]}},function(e,t,r){var o=r(9),i=r(53),u=r(28),l=r(26)("IE_PROTO"),s=function(){},a="prototype",c=function(){var e,t=r(15)("iframe"),n=u.length;for(t.style.display="none",r(54).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;n--;)delete c[a][u[n]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[a]=o(e),n=new s,s[a]=null,n[l]=e):n=c(),t===undefined?n:i(n,t)}},function(e,t,n){var u=n(8),l=n(9),s=n(20);e.exports=n(3)?Object.defineProperties:function(e,t){l(e);for(var n,r=s(t),o=r.length,i=0;i<o;)u.f(e,n=r[i++],t[n]);return e}},function(e,t,n){var r=n(1).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(0);r(r.P,"Function",{bind:n(56)})},function(e,t,n){"use strict";var i=n(19),u=n(2),l=n(57),s=[].slice,a={};e.exports=Function.bind||function(t){var n=i(this),r=s.call(arguments,1),o=function(){var e=r.concat(s.call(arguments));return this instanceof o?function(e,t,n){if(!(t in a)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";a[t]=Function("F,a","return new F("+r.join(",")+")")}return a[t](e,n)}(n,e.length,e):l(n,e,t)};return u(n.prototype)&&(o.prototype=n.prototype),o}},function(e,t){e.exports=function(e,t,n){var r=n===undefined;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){n(59)("match",1,function(r,o,e){return[function(e){"use strict";var t=r(this),n=e==undefined?undefined:e[o];return n!==undefined?n.call(e,t):new RegExp(e)[o](String(t))},e]})},function(e,t,n){"use strict";var l=n(7),s=n(16),a=n(4),c=n(12),p=n(34);e.exports=function(t,e,n){var r=p(t),o=n(c,r,""[t]),i=o[0],u=o[1];a(function(){var e={};return e[r]=function(){return 7},7!=""[t](e)})&&(s(String.prototype,t,i),l(RegExp.prototype,r,2==e?function(e,t){return u.call(e,this,t)}:function(e){return u.call(e,this)}))}},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0,n(37);var m=n(5);var r=function(o){function e(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))||this).state={bump:!1},e}(function n(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t})(e,o);var t=e.prototype;return t.componentWillReceiveProps=function(e){e.queryLength!==this.props.queryLength&&this.setState(function(e){return{bump:!e.bump}})},t.render=function(){var e=this.props,t=e.length,n=e.queryLength,r=e.minQueryLength,o=e.selectedOption,i=e.selectedOptionIndex,u=e.tQueryTooShort,l=e.tNoResults,s=e.tSelectedOption,a=e.tResults,c=this.state.bump,p=n<r,f=0===t,d=o?s(o,t,i):"",h=null;return h=p?u(r):f?l():a(t,d),(0,m.createElement)("div",{"aria-atomic":"true","aria-live":"polite",role:"status",style:{border:"0",clip:"rect(0 0 0 0)",height:"1px",marginBottom:"-1px",marginRight:"-1px",overflow:"hidden",padding:"0",position:"absolute",whiteSpace:"nowrap",width:"1px"}},h,(0,m.createElement)("span",null,c?",":",,"))},e}(m.Component);(t["default"]=r).defaultProps={tQueryTooShort:function(e){return"Type in "+e+" or more characters for results."},tNoResults:function(){return"No search results."},tSelectedOption:function(e,t,n){return e+" ("+(n+1)+" of "+t+") is selected."},tResults:function(e,t){return e+" "+(1===e?"result":"results")+" "+(1===e?"is":"are")+" available. "+t}}},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0;var r=n(5),o=function i(e){var t=e.className;return(0,r.createElement)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:t,focusable:"false"},(0,r.createElement)("g",{stroke:"none",fill:"none","fill-rule":"evenodd"},(0,r.createElement)("polygon",{fill:"#000000",points:"0 0 22 0 11 17"})))};t["default"]=o}])["default"]});
|
2
2
|
//# sourceMappingURL=accessible-autocomplete.min.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["webpack://accessibleAutocomplete/webpack/universalModuleDefinition","webpack://accessibleAutocomplete/webpack/bootstrap","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_export.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_global.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_is-object.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_descriptors.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_fails.js","webpack://accessibleAutocomplete/../node_modules/preact/dist/preact.mjs","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_core.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_hide.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_object-dp.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_an-object.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_uid.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_iobject.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_defined.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_strict-method.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/es6.object.assign.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_dom-create.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_redefine.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_has.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_ctx.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_a-function.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_object-keys.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_to-iobject.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_cof.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_array-includes.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_to-length.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_to-integer.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_shared-key.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_shared.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_enum-bug-keys.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_to-object.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/es6.function.name.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/es6.array.map.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_array-methods.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_is-array.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_wks.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/es6.array.index-of.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/es6.object.create.js","webpack://accessibleAutocomplete/./wrapper.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_ie8-dom-define.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_to-primitive.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_property-desc.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_object-assign.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_object-keys-internal.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_to-absolute-index.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_library.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_object-gops.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_object-pie.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_array-species-create.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_array-species-constructor.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/es6.array.filter.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/es6.array.is-array.js","webpack://accessibleAutocomplete/./autocomplete.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_object-create.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_object-dps.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_html.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/es6.function.bind.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_bind.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_invoke.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/es6.regexp.match.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_fix-re-wks.js","webpack://accessibleAutocomplete/./status.js","webpack://accessibleAutocomplete/./dropdown-arrow-down.js"],"names":["webpackUniversalModuleDefinition","root","factory","exports","module","define","amd","window","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","global","core","hide","redefine","ctx","PROTOTYPE","$export","type","source","own","out","exp","IS_FORCED","F","IS_GLOBAL","G","IS_STATIC","S","IS_PROTO","P","IS_BIND","B","target","expProto","undefined","Function","U","W","R","Math","self","__g","it","a","exec","e","__webpack_exports__","h","cloneElement","Component","render","rerender","options","VNode","stack","EMPTY_CHILDREN","nodeName","attributes","lastSimple","child","simple","children","arguments","length","push","pop","String","vnode","extend","obj","props","defer","Promise","resolve","then","setTimeout","slice","IS_NON_DIMENSIONAL","items","enqueueRender","component","_dirty","debounceRendering","list","renderComponent","isNamedNode","node","normalizedNodeName","toLowerCase","getNodeProps","defaultProps","removeNode","parentNode","removeChild","setAccessor","old","isSvg","style","cssText","test","innerHTML","__html","useCapture","replace","substring","addEventListener","eventProxy","removeEventListener","_listeners","removeAttribute","removeAttributeNS","setAttributeNS","setAttribute","className","this","event","mounts","diffLevel","isSvgMode","hydrating","flushMounts","afterMount","componentDidMount","diff","dom","context","mountAll","parent","componentRoot","ownerSVGElement","ret","idiff","appendChild","prevSvgMode","splitText","_component","nodeValue","document","createTextNode","replaceChild","recollectNodeTree","vnodeName","buildComponentFromVNode","originalComponent","oldDom","isDirectOwner","_componentConstructor","isOwner","_parentComponent","constructor","setComponentProps","base","unmountComponent","createComponent","nextBase","createNode","createElementNS","createElement","firstChild","fc","vchildren","nextSibling","innerDiffNode","isHydrating","j","f","vchild","originalChildren","childNodes","keyed","keyedLen","min","len","childrenLen","vlen","_child","__key","trim","insertBefore","dangerouslySetInnerHTML","diffAttributes","attrs","unmountOnly","ref","removeChildren","lastChild","next","previousSibling","recyclerComponents","Ctor","inst","doRender","splice","state","renderMode","_disable","__ref","getDerivedStateFromProps","componentWillMount","componentWillReceiveProps","prevContext","prevProps","syncComponentUpdates","isChild","rendered","cbase","previousProps","previousState","prevState","previousContext","isUpdate","initialBase","initialChildComponent","skip","snapshot","shouldComponentUpdate","componentWillUpdate","getChildContext","getSnapshotBeforeUpdate","toUnmount","childComponent","childProps","baseParent","componentRef","unshift","componentDidUpdate","afterUpdate","_renderCallbacks","beforeUnmount","componentWillUnmount","inner","merge","setState","callback","forceUpdate","preact","version","__e","dP","createDesc","anObject","IE8_DOM_DEFINE","toPrimitive","O","Attributes","TypeError","isObject","id","px","random","concat","toString","cof","propertyIsEnumerable","split","fails","method","arg","assign","is","has","SRC","TO_STRING","$toString","TPL","inspectSource","val","safe","isFunction","join","aFunction","fn","that","b","apply","$keys","enumBugKeys","keys","IObject","defined","toIObject","toLength","toAbsoluteIndex","IS_INCLUDES","$this","el","fromIndex","index","toInteger","ceil","floor","isNaN","shared","uid","SHARED","store","copyright","FProto","nameRE","configurable","match","$map","map","callbackfn","toObject","asc","TYPE","$create","IS_MAP","IS_FILTER","IS_SOME","IS_EVERY","IS_FIND_INDEX","NO_HOLES","res","result","Array","isArray","USE_SYMBOL","$indexOf","$native","indexOf","NEGATIVE_ZERO","searchElement","_preact","_autocomplete","_interopRequireDefault","accessibleAutocomplete","element","Error","createSimpleEngine","values","query","syncResults","filter","enhanceSelectElement","configurationOptions","selectElement","availableOptions","option","preserveNullOptions","textContent","innerText","onConfirm","requestedOption","selected","defaultValue","selectedIndex","autoselect","display","valueOf","bitmap","writable","getKeys","gOPS","pIE","$assign","A","K","forEach","k","T","aLen","getSymbols","isEnum","arrayIndexOf","IE_PROTO","names","max","getOwnPropertySymbols","speciesConstructor","original","SPECIES","C","$filter","_status","_dropdownArrowDown","keyCodes","13","27","32","38","40","hasPointerEvents","pointerEvents","isIosDevice","navigator","userAgent","Autocomplete","_this","_Component","elementReferences","focused","hovered","clicked","menuOpen","handleComponentBlur","_assertThisInitialized","handleKeyDown","handleUpArrow","handleDownArrow","handleEnter","handlePrintableKey","handleListMouseLeave","handleOptionBlur","handleOptionClick","handleOptionFocus","handleOptionMouseEnter","handleInputBlur","handleInputChange","handleInputFocus","pollInputElement","getDirectInputChanges","clearTimeout","$pollInput","$blurInput","_this2","inputReference","_this$state","componentLostFocus","focusedChanged","focus","focusedInput","componentGainedFocus","inputElement","setSelectionRange","hasAutoselect","templateInputValue","inputValueTemplate","templates","inputValue","templateSuggestion","suggestionTemplate","suggestion","newState","newQuery","_this$state2","confirmOnBlur","_this$state3","focusingOutsideComponent","relatedTarget","focusingInput","focusingAnotherOption","keepMenuOpen","_this3","_this$state4","focusingAnOption","_this4","_this$props","minLength","showAllValues","queryEmpty","queryChanged","queryLongEnough","optionsAvailable","handleInputClick","selectedOption","preventDefault","_this$state5","_this5","_this$state6","handleSpace","_this6","keyCode","isPrintableKeyCode","dropdownArrow","_this7","_this$props2","cssNamespace","displayMenu","placeholder","required","tNoResults","tStatusQueryTooShort","tStatusNoResults","tStatusSelectedOption","tStatusResults","dropdownArrowFactory","_this$state7","inputFocused","noOptionsAvailable","queryNotEmpty","showNoOptionsFound","wrapperClassName","inputClassName","inputModifierFocused","inputModifierType","dropdownArrowClassName","optionFocused","menuClassName","menuModifierDisplayMenu","menuModifierVisibility","optionClassName","hintClassName","selectedOptionText","hintValue","substr","showHint","onKeyDown","role","aria-expanded","queryLength","minQueryLength","selectedOptionIndex","tQueryTooShort","tSelectedOption","tResults","readonly","tabIndex","_extends","aria-activedescendant","aria-owns","autoComplete","onClick","onBlur","onChangeCrossLibrary","handler","onInput","onFocus","onMouseLeave","optionModifierFocused","optionModifierOdd","aria-selected","onMouseEnter","optionEl","DropdownArrowDown","dPs","Empty","createDict","iframeDocument","iframe","src","contentWindow","open","write","lt","close","Properties","defineProperties","documentElement","invoke","arraySlice","factories","partArgs","bound","args","construct","un","MATCH","$match","regexp","RegExp","wks","KEY","SYMBOL","fns","strfn","rxfn","string","Status","bump","_ref","_ref2","queryTooShort","noResults","contentSelectedOption","content","aria-atomic","aria-live","border","clip","height","marginBottom","marginRight","overflow","padding","position","whiteSpace","width","xmlns","focusable","stroke","fill","fill-rule","points"],"mappings":"CAAA,SAAAA,iCAAAC,EAAAC,GACA,iBAAAC,SAAA,iBAAAC,OACAA,OAAAD,QAAAD,IACA,mBAAAG,eAAAC,IACAD,OAAA,GAAAH,GACA,iBAAAC,QACAA,QAAA,0BAAAD,IAEAD,EAAA,0BAAAC,KARA,CASCK,OAAA,WACD,mBCTA,IAAAC,EAAA,GA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EAAO,IAAM,WA1EU/f,8BAC3ByC,aAAe,CACpB8Z,eAAgB,SAACF,GAAD,iBAA+BA,EAA/B,oCAChB9B,WAAY,iBAAM,sBAClBiC,gBAAiB,SAACjD,EAAgBzY,EAAQgO,GAAzB,OAAsCyK,EAAtC,MAAyDzK,EAAQ,GAAjE,OAAyEhO,EAAzE,kBACjB2b,SAAU,SAAC3b,EAAQsf,GAMjB,OAAUtf,EAAV,KAJsB,IAAXA,EAAgB,SAAW,WAItC,KAHkB,IAAXA,EAAgB,KAAO,OAG9B,eAA2Dsf,sECbjE,IAAAjP,EAAA5V,EAAA,KAE0B,SAApBqiB,EAAoBoC,GAAA,IAAGhc,EAAHgc,EAAGhc,UAAH,OACxB,EAAAmN,EAAAvK,eAAA,OAAK+E,QAAQ,MAAMuV,MAAM,6BAA6Bld,UAAWA,EAAWmd,UAAU,UACpF,EAAAhQ,EAAAvK,eAAA,KAAGwa,OAAO,OAAOC,KAAK,OAAOC,YAAU,YACrC,EAAAnQ,EAAAvK,eAAA,WAASya,KAAK,UAAUE,OAAO","file":"accessible-autocomplete.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"accessibleAutocomplete\"] = factory();\n\telse\n\t\troot[\"accessibleAutocomplete\"] = factory();\n})(window, function() {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 37);\n","var global = require('./_global');\nvar core = require('./_core');\nvar hide = require('./_hide');\nvar redefine = require('./_redefine');\nvar ctx = require('./_ctx');\nvar PROTOTYPE = 'prototype';\n\nvar $export = function (type, name, source) {\n var IS_FORCED = type & $export.F;\n var IS_GLOBAL = type & $export.G;\n var IS_STATIC = type & $export.S;\n var IS_PROTO = type & $export.P;\n var IS_BIND = type & $export.B;\n var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];\n var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});\n var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});\n var key, own, out, exp;\n if (IS_GLOBAL) source = name;\n for (key in source) {\n // contains in native\n own = !IS_FORCED && target && target[key] !== undefined;\n // export native or passed\n out = (own ? target : source)[key];\n // bind timers to global for call from export context\n exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n // extend global\n if (target) redefine(target, key, out, type & $export.U);\n // export\n if (exports[key] != out) hide(exports, key, exp);\n if (IS_PROTO && expProto[key] != out) expProto[key] = out;\n }\n};\nglobal.core = core;\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\n$export.U = 64; // safe\n$export.R = 128; // real proto method for `library`\nmodule.exports = $export;\n","// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self\n // eslint-disable-next-line no-new-func\n : Function('return this')();\nif (typeof __g == 'number') __g = global; // eslint-disable-line no-undef\n","module.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n","// Thank's IE8 for his funny defineProperty\nmodule.exports = !require('./_fails')(function () {\n return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;\n});\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (e) {\n return true;\n }\n};\n","var VNode = function VNode() {};\n\nvar options = {};\n\nvar stack = [];\n\nvar EMPTY_CHILDREN = [];\n\nfunction h(nodeName, attributes) {\n\tvar children = EMPTY_CHILDREN,\n\t lastSimple,\n\t child,\n\t simple,\n\t i;\n\tfor (i = arguments.length; i-- > 2;) {\n\t\tstack.push(arguments[i]);\n\t}\n\tif (attributes && attributes.children != null) {\n\t\tif (!stack.length) stack.push(attributes.children);\n\t\tdelete attributes.children;\n\t}\n\twhile (stack.length) {\n\t\tif ((child = stack.pop()) && child.pop !== undefined) {\n\t\t\tfor (i = child.length; i--;) {\n\t\t\t\tstack.push(child[i]);\n\t\t\t}\n\t\t} else {\n\t\t\tif (typeof child === 'boolean') child = null;\n\n\t\t\tif (simple = typeof nodeName !== 'function') {\n\t\t\t\tif (child == null) child = '';else if (typeof child === 'number') child = String(child);else if (typeof child !== 'string') simple = false;\n\t\t\t}\n\n\t\t\tif (simple && lastSimple) {\n\t\t\t\tchildren[children.length - 1] += child;\n\t\t\t} else if (children === EMPTY_CHILDREN) {\n\t\t\t\tchildren = [child];\n\t\t\t} else {\n\t\t\t\tchildren.push(child);\n\t\t\t}\n\n\t\t\tlastSimple = simple;\n\t\t}\n\t}\n\n\tvar p = new VNode();\n\tp.nodeName = nodeName;\n\tp.children = children;\n\tp.attributes = attributes == null ? undefined : attributes;\n\tp.key = attributes == null ? undefined : attributes.key;\n\n\tif (options.vnode !== undefined) options.vnode(p);\n\n\treturn p;\n}\n\nfunction extend(obj, props) {\n for (var i in props) {\n obj[i] = props[i];\n }return obj;\n}\n\nvar defer = typeof Promise == 'function' ? Promise.resolve().then.bind(Promise.resolve()) : setTimeout;\n\nfunction cloneElement(vnode, props) {\n return h(vnode.nodeName, extend(extend({}, vnode.attributes), props), arguments.length > 2 ? [].slice.call(arguments, 2) : vnode.children);\n}\n\nvar IS_NON_DIMENSIONAL = /acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i;\n\nvar items = [];\n\nfunction enqueueRender(component) {\n\tif (!component._dirty && (component._dirty = true) && items.push(component) == 1) {\n\t\t(options.debounceRendering || defer)(rerender);\n\t}\n}\n\nfunction rerender() {\n\tvar p,\n\t list = items;\n\titems = [];\n\twhile (p = list.pop()) {\n\t\tif (p._dirty) renderComponent(p);\n\t}\n}\n\nfunction isSameNodeType(node, vnode, hydrating) {\n\tif (typeof vnode === 'string' || typeof vnode === 'number') {\n\t\treturn node.splitText !== undefined;\n\t}\n\tif (typeof vnode.nodeName === 'string') {\n\t\treturn !node._componentConstructor && isNamedNode(node, vnode.nodeName);\n\t}\n\treturn hydrating || node._componentConstructor === vnode.nodeName;\n}\n\nfunction isNamedNode(node, nodeName) {\n\treturn node.normalizedNodeName === nodeName || node.nodeName.toLowerCase() === nodeName.toLowerCase();\n}\n\nfunction getNodeProps(vnode) {\n\tvar props = extend({}, vnode.attributes);\n\tprops.children = vnode.children;\n\n\tvar defaultProps = vnode.nodeName.defaultProps;\n\tif (defaultProps !== undefined) {\n\t\tfor (var i in defaultProps) {\n\t\t\tif (props[i] === undefined) {\n\t\t\t\tprops[i] = defaultProps[i];\n\t\t\t}\n\t\t}\n\t}\n\n\treturn props;\n}\n\nfunction createNode(nodeName, isSvg) {\n\tvar node = isSvg ? document.createElementNS('http://www.w3.org/2000/svg', nodeName) : document.createElement(nodeName);\n\tnode.normalizedNodeName = nodeName;\n\treturn node;\n}\n\nfunction removeNode(node) {\n\tvar parentNode = node.parentNode;\n\tif (parentNode) parentNode.removeChild(node);\n}\n\nfunction setAccessor(node, name, old, value, isSvg) {\n\tif (name === 'className') name = 'class';\n\n\tif (name === 'key') {} else if (name === 'ref') {\n\t\tif (old) old(null);\n\t\tif (value) value(node);\n\t} else if (name === 'class' && !isSvg) {\n\t\tnode.className = value || '';\n\t} else if (name === 'style') {\n\t\tif (!value || typeof value === 'string' || typeof old === 'string') {\n\t\t\tnode.style.cssText = value || '';\n\t\t}\n\t\tif (value && typeof value === 'object') {\n\t\t\tif (typeof old !== 'string') {\n\t\t\t\tfor (var i in old) {\n\t\t\t\t\tif (!(i in value)) node.style[i] = '';\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (var i in value) {\n\t\t\t\tnode.style[i] = typeof value[i] === 'number' && IS_NON_DIMENSIONAL.test(i) === false ? value[i] + 'px' : value[i];\n\t\t\t}\n\t\t}\n\t} else if (name === 'dangerouslySetInnerHTML') {\n\t\tif (value) node.innerHTML = value.__html || '';\n\t} else if (name[0] == 'o' && name[1] == 'n') {\n\t\tvar useCapture = name !== (name = name.replace(/Capture$/, ''));\n\t\tname = name.toLowerCase().substring(2);\n\t\tif (value) {\n\t\t\tif (!old) node.addEventListener(name, eventProxy, useCapture);\n\t\t} else {\n\t\t\tnode.removeEventListener(name, eventProxy, useCapture);\n\t\t}\n\t\t(node._listeners || (node._listeners = {}))[name] = value;\n\t} else if (name !== 'list' && name !== 'type' && !isSvg && name in node) {\n\t\ttry {\n\t\t\tnode[name] = value == null ? '' : value;\n\t\t} catch (e) {}\n\t\tif ((value == null || value === false) && name != 'spellcheck') node.removeAttribute(name);\n\t} else {\n\t\tvar ns = isSvg && name !== (name = name.replace(/^xlink:?/, ''));\n\n\t\tif (value == null || value === false) {\n\t\t\tif (ns) node.removeAttributeNS('http://www.w3.org/1999/xlink', name.toLowerCase());else node.removeAttribute(name);\n\t\t} else if (typeof value !== 'function') {\n\t\t\tif (ns) node.setAttributeNS('http://www.w3.org/1999/xlink', name.toLowerCase(), value);else node.setAttribute(name, value);\n\t\t}\n\t}\n}\n\nfunction eventProxy(e) {\n\treturn this._listeners[e.type](options.event && options.event(e) || e);\n}\n\nvar mounts = [];\n\nvar diffLevel = 0;\n\nvar isSvgMode = false;\n\nvar hydrating = false;\n\nfunction flushMounts() {\n\tvar c;\n\twhile (c = mounts.pop()) {\n\t\tif (options.afterMount) options.afterMount(c);\n\t\tif (c.componentDidMount) c.componentDidMount();\n\t}\n}\n\nfunction diff(dom, vnode, context, mountAll, parent, componentRoot) {\n\tif (!diffLevel++) {\n\t\tisSvgMode = parent != null && parent.ownerSVGElement !== undefined;\n\n\t\thydrating = dom != null && !('__preactattr_' in dom);\n\t}\n\n\tvar ret = idiff(dom, vnode, context, mountAll, componentRoot);\n\n\tif (parent && ret.parentNode !== parent) parent.appendChild(ret);\n\n\tif (! --diffLevel) {\n\t\thydrating = false;\n\n\t\tif (!componentRoot) flushMounts();\n\t}\n\n\treturn ret;\n}\n\nfunction idiff(dom, vnode, context, mountAll, componentRoot) {\n\tvar out = dom,\n\t prevSvgMode = isSvgMode;\n\n\tif (vnode == null || typeof vnode === 'boolean') vnode = '';\n\n\tif (typeof vnode === 'string' || typeof vnode === 'number') {\n\t\tif (dom && dom.splitText !== undefined && dom.parentNode && (!dom._component || componentRoot)) {\n\t\t\tif (dom.nodeValue != vnode) {\n\t\t\t\tdom.nodeValue = vnode;\n\t\t\t}\n\t\t} else {\n\t\t\tout = document.createTextNode(vnode);\n\t\t\tif (dom) {\n\t\t\t\tif (dom.parentNode) dom.parentNode.replaceChild(out, dom);\n\t\t\t\trecollectNodeTree(dom, true);\n\t\t\t}\n\t\t}\n\n\t\tout['__preactattr_'] = true;\n\n\t\treturn out;\n\t}\n\n\tvar vnodeName = vnode.nodeName;\n\tif (typeof vnodeName === 'function') {\n\t\treturn buildComponentFromVNode(dom, vnode, context, mountAll);\n\t}\n\n\tisSvgMode = vnodeName === 'svg' ? true : vnodeName === 'foreignObject' ? false : isSvgMode;\n\n\tvnodeName = String(vnodeName);\n\tif (!dom || !isNamedNode(dom, vnodeName)) {\n\t\tout = createNode(vnodeName, isSvgMode);\n\n\t\tif (dom) {\n\t\t\twhile (dom.firstChild) {\n\t\t\t\tout.appendChild(dom.firstChild);\n\t\t\t}\n\t\t\tif (dom.parentNode) dom.parentNode.replaceChild(out, dom);\n\n\t\t\trecollectNodeTree(dom, true);\n\t\t}\n\t}\n\n\tvar fc = out.firstChild,\n\t props = out['__preactattr_'],\n\t vchildren = vnode.children;\n\n\tif (props == null) {\n\t\tprops = out['__preactattr_'] = {};\n\t\tfor (var a = out.attributes, i = a.length; i--;) {\n\t\t\tprops[a[i].name] = a[i].value;\n\t\t}\n\t}\n\n\tif (!hydrating && vchildren && vchildren.length === 1 && typeof vchildren[0] === 'string' && fc != null && fc.splitText !== undefined && fc.nextSibling == null) {\n\t\tif (fc.nodeValue != vchildren[0]) {\n\t\t\tfc.nodeValue = vchildren[0];\n\t\t}\n\t} else if (vchildren && vchildren.length || fc != null) {\n\t\t\tinnerDiffNode(out, vchildren, context, mountAll, hydrating || props.dangerouslySetInnerHTML != null);\n\t\t}\n\n\tdiffAttributes(out, vnode.attributes, props);\n\n\tisSvgMode = prevSvgMode;\n\n\treturn out;\n}\n\nfunction innerDiffNode(dom, vchildren, context, mountAll, isHydrating) {\n\tvar originalChildren = dom.childNodes,\n\t children = [],\n\t keyed = {},\n\t keyedLen = 0,\n\t min = 0,\n\t len = originalChildren.length,\n\t childrenLen = 0,\n\t vlen = vchildren ? vchildren.length : 0,\n\t j,\n\t c,\n\t f,\n\t vchild,\n\t child;\n\n\tif (len !== 0) {\n\t\tfor (var i = 0; i < len; i++) {\n\t\t\tvar _child = originalChildren[i],\n\t\t\t props = _child['__preactattr_'],\n\t\t\t key = vlen && props ? _child._component ? _child._component.__key : props.key : null;\n\t\t\tif (key != null) {\n\t\t\t\tkeyedLen++;\n\t\t\t\tkeyed[key] = _child;\n\t\t\t} else if (props || (_child.splitText !== undefined ? isHydrating ? _child.nodeValue.trim() : true : isHydrating)) {\n\t\t\t\tchildren[childrenLen++] = _child;\n\t\t\t}\n\t\t}\n\t}\n\n\tif (vlen !== 0) {\n\t\tfor (var i = 0; i < vlen; i++) {\n\t\t\tvchild = vchildren[i];\n\t\t\tchild = null;\n\n\t\t\tvar key = vchild.key;\n\t\t\tif (key != null) {\n\t\t\t\tif (keyedLen && keyed[key] !== undefined) {\n\t\t\t\t\tchild = keyed[key];\n\t\t\t\t\tkeyed[key] = undefined;\n\t\t\t\t\tkeyedLen--;\n\t\t\t\t}\n\t\t\t} else if (min < childrenLen) {\n\t\t\t\t\tfor (j = min; j < childrenLen; j++) {\n\t\t\t\t\t\tif (children[j] !== undefined && isSameNodeType(c = children[j], vchild, isHydrating)) {\n\t\t\t\t\t\t\tchild = c;\n\t\t\t\t\t\t\tchildren[j] = undefined;\n\t\t\t\t\t\t\tif (j === childrenLen - 1) childrenLen--;\n\t\t\t\t\t\t\tif (j === min) min++;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\tchild = idiff(child, vchild, context, mountAll);\n\n\t\t\tf = originalChildren[i];\n\t\t\tif (child && child !== dom && child !== f) {\n\t\t\t\tif (f == null) {\n\t\t\t\t\tdom.appendChild(child);\n\t\t\t\t} else if (child === f.nextSibling) {\n\t\t\t\t\tremoveNode(f);\n\t\t\t\t} else {\n\t\t\t\t\tdom.insertBefore(child, f);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tif (keyedLen) {\n\t\tfor (var i in keyed) {\n\t\t\tif (keyed[i] !== undefined) recollectNodeTree(keyed[i], false);\n\t\t}\n\t}\n\n\twhile (min <= childrenLen) {\n\t\tif ((child = children[childrenLen--]) !== undefined) recollectNodeTree(child, false);\n\t}\n}\n\nfunction recollectNodeTree(node, unmountOnly) {\n\tvar component = node._component;\n\tif (component) {\n\t\tunmountComponent(component);\n\t} else {\n\t\tif (node['__preactattr_'] != null && node['__preactattr_'].ref) node['__preactattr_'].ref(null);\n\n\t\tif (unmountOnly === false || node['__preactattr_'] == null) {\n\t\t\tremoveNode(node);\n\t\t}\n\n\t\tremoveChildren(node);\n\t}\n}\n\nfunction removeChildren(node) {\n\tnode = node.lastChild;\n\twhile (node) {\n\t\tvar next = node.previousSibling;\n\t\trecollectNodeTree(node, true);\n\t\tnode = next;\n\t}\n}\n\nfunction diffAttributes(dom, attrs, old) {\n\tvar name;\n\n\tfor (name in old) {\n\t\tif (!(attrs && attrs[name] != null) && old[name] != null) {\n\t\t\tsetAccessor(dom, name, old[name], old[name] = undefined, isSvgMode);\n\t\t}\n\t}\n\n\tfor (name in attrs) {\n\t\tif (name !== 'children' && name !== 'innerHTML' && (!(name in old) || attrs[name] !== (name === 'value' || name === 'checked' ? dom[name] : old[name]))) {\n\t\t\tsetAccessor(dom, name, old[name], old[name] = attrs[name], isSvgMode);\n\t\t}\n\t}\n}\n\nvar recyclerComponents = [];\n\nfunction createComponent(Ctor, props, context) {\n\tvar inst,\n\t i = recyclerComponents.length;\n\n\tif (Ctor.prototype && Ctor.prototype.render) {\n\t\tinst = new Ctor(props, context);\n\t\tComponent.call(inst, props, context);\n\t} else {\n\t\tinst = new Component(props, context);\n\t\tinst.constructor = Ctor;\n\t\tinst.render = doRender;\n\t}\n\n\twhile (i--) {\n\t\tif (recyclerComponents[i].constructor === Ctor) {\n\t\t\tinst.nextBase = recyclerComponents[i].nextBase;\n\t\t\trecyclerComponents.splice(i, 1);\n\t\t\treturn inst;\n\t\t}\n\t}\n\n\treturn inst;\n}\n\nfunction doRender(props, state, context) {\n\treturn this.constructor(props, context);\n}\n\nfunction setComponentProps(component, props, renderMode, context, mountAll) {\n\tif (component._disable) return;\n\tcomponent._disable = true;\n\n\tcomponent.__ref = props.ref;\n\tcomponent.__key = props.key;\n\tdelete props.ref;\n\tdelete props.key;\n\n\tif (typeof component.constructor.getDerivedStateFromProps === 'undefined') {\n\t\tif (!component.base || mountAll) {\n\t\t\tif (component.componentWillMount) component.componentWillMount();\n\t\t} else if (component.componentWillReceiveProps) {\n\t\t\tcomponent.componentWillReceiveProps(props, context);\n\t\t}\n\t}\n\n\tif (context && context !== component.context) {\n\t\tif (!component.prevContext) component.prevContext = component.context;\n\t\tcomponent.context = context;\n\t}\n\n\tif (!component.prevProps) component.prevProps = component.props;\n\tcomponent.props = props;\n\n\tcomponent._disable = false;\n\n\tif (renderMode !== 0) {\n\t\tif (renderMode === 1 || options.syncComponentUpdates !== false || !component.base) {\n\t\t\trenderComponent(component, 1, mountAll);\n\t\t} else {\n\t\t\tenqueueRender(component);\n\t\t}\n\t}\n\n\tif (component.__ref) component.__ref(component);\n}\n\nfunction renderComponent(component, renderMode, mountAll, isChild) {\n\tif (component._disable) return;\n\n\tvar props = component.props,\n\t state = component.state,\n\t context = component.context,\n\t previousProps = component.prevProps || props,\n\t previousState = component.prevState || state,\n\t previousContext = component.prevContext || context,\n\t isUpdate = component.base,\n\t nextBase = component.nextBase,\n\t initialBase = isUpdate || nextBase,\n\t initialChildComponent = component._component,\n\t skip = false,\n\t snapshot = previousContext,\n\t rendered,\n\t inst,\n\t cbase;\n\n\tif (component.constructor.getDerivedStateFromProps) {\n\t\tstate = extend(extend({}, state), component.constructor.getDerivedStateFromProps(props, state));\n\t\tcomponent.state = state;\n\t}\n\n\tif (isUpdate) {\n\t\tcomponent.props = previousProps;\n\t\tcomponent.state = previousState;\n\t\tcomponent.context = previousContext;\n\t\tif (renderMode !== 2 && component.shouldComponentUpdate && component.shouldComponentUpdate(props, state, context) === false) {\n\t\t\tskip = true;\n\t\t} else if (component.componentWillUpdate) {\n\t\t\tcomponent.componentWillUpdate(props, state, context);\n\t\t}\n\t\tcomponent.props = props;\n\t\tcomponent.state = state;\n\t\tcomponent.context = context;\n\t}\n\n\tcomponent.prevProps = component.prevState = component.prevContext = component.nextBase = null;\n\tcomponent._dirty = false;\n\n\tif (!skip) {\n\t\trendered = component.render(props, state, context);\n\n\t\tif (component.getChildContext) {\n\t\t\tcontext = extend(extend({}, context), component.getChildContext());\n\t\t}\n\n\t\tif (isUpdate && component.getSnapshotBeforeUpdate) {\n\t\t\tsnapshot = component.getSnapshotBeforeUpdate(previousProps, previousState);\n\t\t}\n\n\t\tvar childComponent = rendered && rendered.nodeName,\n\t\t toUnmount,\n\t\t base;\n\n\t\tif (typeof childComponent === 'function') {\n\n\t\t\tvar childProps = getNodeProps(rendered);\n\t\t\tinst = initialChildComponent;\n\n\t\t\tif (inst && inst.constructor === childComponent && childProps.key == inst.__key) {\n\t\t\t\tsetComponentProps(inst, childProps, 1, context, false);\n\t\t\t} else {\n\t\t\t\ttoUnmount = inst;\n\n\t\t\t\tcomponent._component = inst = createComponent(childComponent, childProps, context);\n\t\t\t\tinst.nextBase = inst.nextBase || nextBase;\n\t\t\t\tinst._parentComponent = component;\n\t\t\t\tsetComponentProps(inst, childProps, 0, context, false);\n\t\t\t\trenderComponent(inst, 1, mountAll, true);\n\t\t\t}\n\n\t\t\tbase = inst.base;\n\t\t} else {\n\t\t\tcbase = initialBase;\n\n\t\t\ttoUnmount = initialChildComponent;\n\t\t\tif (toUnmount) {\n\t\t\t\tcbase = component._component = null;\n\t\t\t}\n\n\t\t\tif (initialBase || renderMode === 1) {\n\t\t\t\tif (cbase) cbase._component = null;\n\t\t\t\tbase = diff(cbase, rendered, context, mountAll || !isUpdate, initialBase && initialBase.parentNode, true);\n\t\t\t}\n\t\t}\n\n\t\tif (initialBase && base !== initialBase && inst !== initialChildComponent) {\n\t\t\tvar baseParent = initialBase.parentNode;\n\t\t\tif (baseParent && base !== baseParent) {\n\t\t\t\tbaseParent.replaceChild(base, initialBase);\n\n\t\t\t\tif (!toUnmount) {\n\t\t\t\t\tinitialBase._component = null;\n\t\t\t\t\trecollectNodeTree(initialBase, false);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (toUnmount) {\n\t\t\tunmountComponent(toUnmount);\n\t\t}\n\n\t\tcomponent.base = base;\n\t\tif (base && !isChild) {\n\t\t\tvar componentRef = component,\n\t\t\t t = component;\n\t\t\twhile (t = t._parentComponent) {\n\t\t\t\t(componentRef = t).base = base;\n\t\t\t}\n\t\t\tbase._component = componentRef;\n\t\t\tbase._componentConstructor = componentRef.constructor;\n\t\t}\n\t}\n\n\tif (!isUpdate || mountAll) {\n\t\tmounts.unshift(component);\n\t} else if (!skip) {\n\n\t\tif (component.componentDidUpdate) {\n\t\t\tcomponent.componentDidUpdate(previousProps, previousState, snapshot);\n\t\t}\n\t\tif (options.afterUpdate) options.afterUpdate(component);\n\t}\n\n\twhile (component._renderCallbacks.length) {\n\t\tcomponent._renderCallbacks.pop().call(component);\n\t}if (!diffLevel && !isChild) flushMounts();\n}\n\nfunction buildComponentFromVNode(dom, vnode, context, mountAll) {\n\tvar c = dom && dom._component,\n\t originalComponent = c,\n\t oldDom = dom,\n\t isDirectOwner = c && dom._componentConstructor === vnode.nodeName,\n\t isOwner = isDirectOwner,\n\t props = getNodeProps(vnode);\n\twhile (c && !isOwner && (c = c._parentComponent)) {\n\t\tisOwner = c.constructor === vnode.nodeName;\n\t}\n\n\tif (c && isOwner && (!mountAll || c._component)) {\n\t\tsetComponentProps(c, props, 3, context, mountAll);\n\t\tdom = c.base;\n\t} else {\n\t\tif (originalComponent && !isDirectOwner) {\n\t\t\tunmountComponent(originalComponent);\n\t\t\tdom = oldDom = null;\n\t\t}\n\n\t\tc = createComponent(vnode.nodeName, props, context);\n\t\tif (dom && !c.nextBase) {\n\t\t\tc.nextBase = dom;\n\n\t\t\toldDom = null;\n\t\t}\n\t\tsetComponentProps(c, props, 1, context, mountAll);\n\t\tdom = c.base;\n\n\t\tif (oldDom && dom !== oldDom) {\n\t\t\toldDom._component = null;\n\t\t\trecollectNodeTree(oldDom, false);\n\t\t}\n\t}\n\n\treturn dom;\n}\n\nfunction unmountComponent(component) {\n\tif (options.beforeUnmount) options.beforeUnmount(component);\n\n\tvar base = component.base;\n\n\tcomponent._disable = true;\n\n\tif (component.componentWillUnmount) component.componentWillUnmount();\n\n\tcomponent.base = null;\n\n\tvar inner = component._component;\n\tif (inner) {\n\t\tunmountComponent(inner);\n\t} else if (base) {\n\t\tif (base['__preactattr_'] && base['__preactattr_'].ref) base['__preactattr_'].ref(null);\n\n\t\tcomponent.nextBase = base;\n\n\t\tremoveNode(base);\n\t\trecyclerComponents.push(component);\n\n\t\tremoveChildren(base);\n\t}\n\n\tif (component.__ref) component.__ref(null);\n}\n\nfunction Component(props, context) {\n\tthis._dirty = true;\n\n\tthis.context = context;\n\n\tthis.props = props;\n\n\tthis.state = this.state || {};\n\n\tthis._renderCallbacks = [];\n}\n\nextend(Component.prototype, {\n\tsetState: function setState(state, callback) {\n\t\tif (!this.prevState) this.prevState = this.state;\n\t\tthis.state = extend(extend({}, this.state), typeof state === 'function' ? state(this.state, this.props) : state);\n\t\tif (callback) this._renderCallbacks.push(callback);\n\t\tenqueueRender(this);\n\t},\n\tforceUpdate: function forceUpdate(callback) {\n\t\tif (callback) this._renderCallbacks.push(callback);\n\t\trenderComponent(this, 2);\n\t},\n\trender: function render() {}\n});\n\nfunction render(vnode, parent, merge) {\n return diff(merge, vnode, {}, false, parent, false);\n}\n\nvar preact = {\n\th: h,\n\tcreateElement: h,\n\tcloneElement: cloneElement,\n\tComponent: Component,\n\trender: render,\n\trerender: rerender,\n\toptions: options\n};\n\nexport default preact;\nexport { h, h as createElement, cloneElement, Component, render, rerender, options };\n//# sourceMappingURL=preact.mjs.map\n","var core = module.exports = { version: '2.5.7' };\nif (typeof __e == 'number') __e = core; // eslint-disable-line no-undef\n","var dP = require('./_object-dp');\nvar createDesc = require('./_property-desc');\nmodule.exports = require('./_descriptors') ? function (object, key, value) {\n return dP.f(object, key, createDesc(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","var anObject = require('./_an-object');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar toPrimitive = require('./_to-primitive');\nvar dP = Object.defineProperty;\n\nexports.f = require('./_descriptors') ? Object.defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return dP(O, P, Attributes);\n } catch (e) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","var isObject = require('./_is-object');\nmodule.exports = function (it) {\n if (!isObject(it)) throw TypeError(it + ' is not an object!');\n return it;\n};\n","var id = 0;\nvar px = Math.random();\nmodule.exports = function (key) {\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n","// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = require('./_cof');\n// eslint-disable-next-line no-prototype-builtins\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n","// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n","'use strict';\nvar fails = require('./_fails');\n\nmodule.exports = function (method, arg) {\n return !!method && fails(function () {\n // eslint-disable-next-line no-useless-call\n arg ? method.call(null, function () { /* empty */ }, 1) : method.call(null);\n });\n};\n","// 19.1.3.1 Object.assign(target, source)\nvar $export = require('./_export');\n\n$export($export.S + $export.F, 'Object', { assign: require('./_object-assign') });\n","var isObject = require('./_is-object');\nvar document = require('./_global').document;\n// typeof document.createElement is 'object' in old IE\nvar is = isObject(document) && isObject(document.createElement);\nmodule.exports = function (it) {\n return is ? document.createElement(it) : {};\n};\n","var global = require('./_global');\nvar hide = require('./_hide');\nvar has = require('./_has');\nvar SRC = require('./_uid')('src');\nvar TO_STRING = 'toString';\nvar $toString = Function[TO_STRING];\nvar TPL = ('' + $toString).split(TO_STRING);\n\nrequire('./_core').inspectSource = function (it) {\n return $toString.call(it);\n};\n\n(module.exports = function (O, key, val, safe) {\n var isFunction = typeof val == 'function';\n if (isFunction) has(val, 'name') || hide(val, 'name', key);\n if (O[key] === val) return;\n if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));\n if (O === global) {\n O[key] = val;\n } else if (!safe) {\n delete O[key];\n hide(O, key, val);\n } else if (O[key]) {\n O[key] = val;\n } else {\n hide(O, key, val);\n }\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n})(Function.prototype, TO_STRING, function toString() {\n return typeof this == 'function' && this[SRC] || $toString.call(this);\n});\n","var hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n","// optional / simple context binding\nvar aFunction = require('./_a-function');\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","module.exports = function (it) {\n if (typeof it != 'function') throw TypeError(it + ' is not a function!');\n return it;\n};\n","// 19.1.2.14 / 15.2.3.14 Object.keys(O)\nvar $keys = require('./_object-keys-internal');\nvar enumBugKeys = require('./_enum-bug-keys');\n\nmodule.exports = Object.keys || function keys(O) {\n return $keys(O, enumBugKeys);\n};\n","// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = require('./_iobject');\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return IObject(defined(it));\n};\n","var toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n","// false -> Array#indexOf\n// true -> Array#includes\nvar toIObject = require('./_to-iobject');\nvar toLength = require('./_to-length');\nvar toAbsoluteIndex = require('./_to-absolute-index');\nmodule.exports = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) if (IS_INCLUDES || index in O) {\n if (O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n","// 7.1.15 ToLength\nvar toInteger = require('./_to-integer');\nvar min = Math.min;\nmodule.exports = function (it) {\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n","// 7.1.4 ToInteger\nvar ceil = Math.ceil;\nvar floor = Math.floor;\nmodule.exports = function (it) {\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n","var shared = require('./_shared')('keys');\nvar uid = require('./_uid');\nmodule.exports = function (key) {\n return shared[key] || (shared[key] = uid(key));\n};\n","var core = require('./_core');\nvar global = require('./_global');\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || (global[SHARED] = {});\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: core.version,\n mode: require('./_library') ? 'pure' : 'global',\n copyright: '© 2018 Denis Pushkarev (zloirock.ru)'\n});\n","// IE 8- don't enum bug keys\nmodule.exports = (\n 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'\n).split(',');\n","// 7.1.13 ToObject(argument)\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return Object(defined(it));\n};\n","var dP = require('./_object-dp').f;\nvar FProto = Function.prototype;\nvar nameRE = /^\\s*function ([^ (]*)/;\nvar NAME = 'name';\n\n// 19.2.4.2 name\nNAME in FProto || require('./_descriptors') && dP(FProto, NAME, {\n configurable: true,\n get: function () {\n try {\n return ('' + this).match(nameRE)[1];\n } catch (e) {\n return '';\n }\n }\n});\n","'use strict';\nvar $export = require('./_export');\nvar $map = require('./_array-methods')(1);\n\n$export($export.P + $export.F * !require('./_strict-method')([].map, true), 'Array', {\n // 22.1.3.15 / 15.4.4.19 Array.prototype.map(callbackfn [, thisArg])\n map: function map(callbackfn /* , thisArg */) {\n return $map(this, callbackfn, arguments[1]);\n }\n});\n","// 0 -> Array#forEach\n// 1 -> Array#map\n// 2 -> Array#filter\n// 3 -> Array#some\n// 4 -> Array#every\n// 5 -> Array#find\n// 6 -> Array#findIndex\nvar ctx = require('./_ctx');\nvar IObject = require('./_iobject');\nvar toObject = require('./_to-object');\nvar toLength = require('./_to-length');\nvar asc = require('./_array-species-create');\nmodule.exports = function (TYPE, $create) {\n var IS_MAP = TYPE == 1;\n var IS_FILTER = TYPE == 2;\n var IS_SOME = TYPE == 3;\n var IS_EVERY = TYPE == 4;\n var IS_FIND_INDEX = TYPE == 6;\n var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;\n var create = $create || asc;\n return function ($this, callbackfn, that) {\n var O = toObject($this);\n var self = IObject(O);\n var f = ctx(callbackfn, that, 3);\n var length = toLength(self.length);\n var index = 0;\n var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;\n var val, res;\n for (;length > index; index++) if (NO_HOLES || index in self) {\n val = self[index];\n res = f(val, index, O);\n if (TYPE) {\n if (IS_MAP) result[index] = res; // map\n else if (res) switch (TYPE) {\n case 3: return true; // some\n case 5: return val; // find\n case 6: return index; // findIndex\n case 2: result.push(val); // filter\n } else if (IS_EVERY) return false; // every\n }\n }\n return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;\n };\n};\n","// 7.2.2 IsArray(argument)\nvar cof = require('./_cof');\nmodule.exports = Array.isArray || function isArray(arg) {\n return cof(arg) == 'Array';\n};\n","var store = require('./_shared')('wks');\nvar uid = require('./_uid');\nvar Symbol = require('./_global').Symbol;\nvar USE_SYMBOL = typeof Symbol == 'function';\n\nvar $exports = module.exports = function (name) {\n return store[name] || (store[name] =\n USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));\n};\n\n$exports.store = store;\n","'use strict';\nvar $export = require('./_export');\nvar $indexOf = require('./_array-includes')(false);\nvar $native = [].indexOf;\nvar NEGATIVE_ZERO = !!$native && 1 / [1].indexOf(1, -0) < 0;\n\n$export($export.P + $export.F * (NEGATIVE_ZERO || !require('./_strict-method')($native)), 'Array', {\n // 22.1.3.11 / 15.4.4.14 Array.prototype.indexOf(searchElement [, fromIndex])\n indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {\n return NEGATIVE_ZERO\n // convert -0 to +0\n ? $native.apply(this, arguments) || 0\n : $indexOf(this, searchElement, arguments[1]);\n }\n});\n","var $export = require('./_export');\n// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\n$export($export.S, 'Object', { create: require('./_object-create') });\n","import { createElement, render } from 'preact' /** @jsx createElement */\nimport Autocomplete from './autocomplete'\n\nfunction accessibleAutocomplete (options) {\n if (!options.element) { throw new Error('element is not defined') }\n if (!options.id) { throw new Error('id is not defined') }\n if (!options.source) { throw new Error('source is not defined') }\n if (Array.isArray(options.source)) {\n options.source = createSimpleEngine(options.source)\n }\n render(<Autocomplete {...options} />, options.element)\n}\n\nconst createSimpleEngine = (values) => (query, syncResults) => {\n var matches = values.filter(r => r.toLowerCase().indexOf(query.toLowerCase()) !== -1)\n syncResults(matches)\n}\n\naccessibleAutocomplete.enhanceSelectElement = (configurationOptions) => {\n if (!configurationOptions.selectElement) { throw new Error('selectElement is not defined') }\n\n // Set defaults.\n if (!configurationOptions.source) {\n let availableOptions = [].filter.call(configurationOptions.selectElement.options, option => (option.value || configurationOptions.preserveNullOptions))\n configurationOptions.source = availableOptions.map(option => option.textContent || option.innerText)\n }\n configurationOptions.onConfirm = configurationOptions.onConfirm || (query => {\n const requestedOption = [].filter.call(configurationOptions.selectElement.options, option => (option.textContent || option.innerText) === query)[0]\n if (requestedOption) { requestedOption.selected = true }\n })\n\n if (configurationOptions.selectElement.value || configurationOptions.defaultValue === undefined) {\n const option = configurationOptions.selectElement.options[configurationOptions.selectElement.options.selectedIndex]\n configurationOptions.defaultValue = option.textContent || option.innerText\n }\n\n if (configurationOptions.name === undefined) configurationOptions.name = ''\n if (configurationOptions.id === undefined) {\n if (configurationOptions.selectElement.id === undefined) {\n configurationOptions.id = ''\n } else {\n configurationOptions.id = configurationOptions.selectElement.id\n }\n }\n if (configurationOptions.autoselect === undefined) configurationOptions.autoselect = true\n\n const element = document.createElement('span')\n\n configurationOptions.selectElement.parentNode.insertBefore(element, configurationOptions.selectElement)\n\n accessibleAutocomplete({\n ...configurationOptions,\n element: element\n })\n\n configurationOptions.selectElement.style.display = 'none'\n configurationOptions.selectElement.id = configurationOptions.selectElement.id + '-select'\n}\n\nexport default accessibleAutocomplete\n","module.exports = !require('./_descriptors') && !require('./_fails')(function () {\n return Object.defineProperty(require('./_dom-create')('div'), 'a', { get: function () { return 7; } }).a != 7;\n});\n","// 7.1.1 ToPrimitive(input [, PreferredType])\nvar isObject = require('./_is-object');\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (it, S) {\n if (!isObject(it)) return it;\n var fn, val;\n if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;\n if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","'use strict';\n// 19.1.2.1 Object.assign(target, source, ...)\nvar getKeys = require('./_object-keys');\nvar gOPS = require('./_object-gops');\nvar pIE = require('./_object-pie');\nvar toObject = require('./_to-object');\nvar IObject = require('./_iobject');\nvar $assign = Object.assign;\n\n// should work with symbols and should have deterministic property order (V8 bug)\nmodule.exports = !$assign || require('./_fails')(function () {\n var A = {};\n var B = {};\n // eslint-disable-next-line no-undef\n var S = Symbol();\n var K = 'abcdefghijklmnopqrst';\n A[S] = 7;\n K.split('').forEach(function (k) { B[k] = k; });\n return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;\n}) ? function assign(target, source) { // eslint-disable-line no-unused-vars\n var T = toObject(target);\n var aLen = arguments.length;\n var index = 1;\n var getSymbols = gOPS.f;\n var isEnum = pIE.f;\n while (aLen > index) {\n var S = IObject(arguments[index++]);\n var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);\n var length = keys.length;\n var j = 0;\n var key;\n while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key];\n } return T;\n} : $assign;\n","var has = require('./_has');\nvar toIObject = require('./_to-iobject');\nvar arrayIndexOf = require('./_array-includes')(false);\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\n\nmodule.exports = function (object, names) {\n var O = toIObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (has(O, key = names[i++])) {\n ~arrayIndexOf(result, key) || result.push(key);\n }\n return result;\n};\n","var toInteger = require('./_to-integer');\nvar max = Math.max;\nvar min = Math.min;\nmodule.exports = function (index, length) {\n index = toInteger(index);\n return index < 0 ? max(index + length, 0) : min(index, length);\n};\n","module.exports = false;\n","exports.f = Object.getOwnPropertySymbols;\n","exports.f = {}.propertyIsEnumerable;\n","// 9.4.2.3 ArraySpeciesCreate(originalArray, length)\nvar speciesConstructor = require('./_array-species-constructor');\n\nmodule.exports = function (original, length) {\n return new (speciesConstructor(original))(length);\n};\n","var isObject = require('./_is-object');\nvar isArray = require('./_is-array');\nvar SPECIES = require('./_wks')('species');\n\nmodule.exports = function (original) {\n var C;\n if (isArray(original)) {\n C = original.constructor;\n // cross-realm fallback\n if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;\n if (isObject(C)) {\n C = C[SPECIES];\n if (C === null) C = undefined;\n }\n } return C === undefined ? Array : C;\n};\n","'use strict';\nvar $export = require('./_export');\nvar $filter = require('./_array-methods')(2);\n\n$export($export.P + $export.F * !require('./_strict-method')([].filter, true), 'Array', {\n // 22.1.3.7 / 15.4.4.20 Array.prototype.filter(callbackfn [, thisArg])\n filter: function filter(callbackfn /* , thisArg */) {\n return $filter(this, callbackfn, arguments[1]);\n }\n});\n","// 22.1.2.2 / 15.4.3.2 Array.isArray(arg)\nvar $export = require('./_export');\n\n$export($export.S, 'Array', { isArray: require('./_is-array') });\n","import { createElement, Component } from 'preact' /** @jsx createElement */\nimport Status from './status'\nimport DropdownArrowDown from './dropdown-arrow-down'\n\nconst IS_PREACT = process.env.COMPONENT_LIBRARY === 'PREACT'\nconst IS_REACT = process.env.COMPONENT_LIBRARY === 'REACT'\n\nconst keyCodes = {\n 13: 'enter',\n 27: 'escape',\n 32: 'space',\n 38: 'up',\n 40: 'down'\n}\n\n// Based on https://github.com/ausi/Feature-detection-technique-for-pointer-events\nconst hasPointerEvents = (() => {\n const element = document.createElement('x')\n element.style.cssText = 'pointer-events:auto'\n return element.style.pointerEvents === 'auto'\n})()\n\nfunction isIosDevice () {\n return !!(navigator.userAgent.match(/(iPod|iPhone|iPad)/g) && navigator.userAgent.match(/AppleWebKit/g))\n}\n\nfunction isPrintableKeyCode (keyCode) {\n return (\n (keyCode > 47 && keyCode < 58) || // number keys\n keyCode === 32 || keyCode === 8 || // spacebar or backspace\n (keyCode > 64 && keyCode < 91) || // letter keys\n (keyCode > 95 && keyCode < 112) || // numpad keys\n (keyCode > 185 && keyCode < 193) || // ;=,-./` (in order)\n (keyCode > 218 && keyCode < 223) // [\\]' (in order)\n )\n}\n\n// Preact does not implement onChange on inputs, but React does.\nfunction onChangeCrossLibrary (handler) {\n if (IS_PREACT) { return { onInput: handler } }\n if (IS_REACT) { return { onChange: handler } }\n}\n\nexport default class Autocomplete extends Component {\n static defaultProps = {\n autoselect: false,\n cssNamespace: 'autocomplete',\n defaultValue: '',\n displayMenu: 'inline',\n minLength: 0,\n name: 'input-autocomplete',\n placeholder: '',\n onConfirm: () => {},\n confirmOnBlur: true,\n showNoOptionsFound: true,\n showAllValues: false,\n required: false,\n tNoResults: () => 'No results found',\n dropdownArrow: DropdownArrowDown\n }\n\n elementReferences = {}\n\n constructor (props) {\n super(props)\n\n this.state = {\n focused: null,\n hovered: null,\n clicked: null,\n menuOpen: false,\n options: props.defaultValue ? [props.defaultValue] : [],\n query: props.defaultValue,\n selected: null\n }\n\n this.handleComponentBlur = this.handleComponentBlur.bind(this)\n this.handleKeyDown = this.handleKeyDown.bind(this)\n this.handleUpArrow = this.handleUpArrow.bind(this)\n this.handleDownArrow = this.handleDownArrow.bind(this)\n this.handleEnter = this.handleEnter.bind(this)\n this.handlePrintableKey = this.handlePrintableKey.bind(this)\n\n this.handleListMouseLeave = this.handleListMouseLeave.bind(this)\n\n this.handleOptionBlur = this.handleOptionBlur.bind(this)\n this.handleOptionClick = this.handleOptionClick.bind(this)\n this.handleOptionFocus = this.handleOptionFocus.bind(this)\n this.handleOptionMouseEnter = this.handleOptionMouseEnter.bind(this)\n\n this.handleInputBlur = this.handleInputBlur.bind(this)\n this.handleInputChange = this.handleInputChange.bind(this)\n this.handleInputFocus = this.handleInputFocus.bind(this)\n\n this.pollInputElement = this.pollInputElement.bind(this)\n this.getDirectInputChanges = this.getDirectInputChanges.bind(this)\n }\n\n componentDidMount () {\n this.pollInputElement()\n }\n\n componentWillUnmount () {\n clearTimeout(this.$pollInput)\n clearTimeout(this.$blurInput)\n }\n\n // Applications like Dragon NaturallySpeaking will modify the\n // `input` field by directly changing its `.value`. These events\n // don't trigger our JavaScript event listeners, so we need to poll\n // to handle when and if they occur.\n pollInputElement () {\n this.getDirectInputChanges()\n this.$pollInput = setTimeout(() => {\n this.pollInputElement()\n }, 100)\n }\n\n getDirectInputChanges () {\n const inputReference = this.elementReferences[-1]\n const queryHasChanged = inputReference && inputReference.value !== this.state.query\n\n if (queryHasChanged) {\n this.handleInputChange({ target: { value: inputReference.value } })\n }\n }\n\n componentDidUpdate (prevProps, prevState) {\n const { focused, clicked } = this.state\n const componentLostFocus = focused === null\n const focusedChanged = prevState.focused !== focused\n const focusDifferentElement = (focusedChanged && !componentLostFocus) || clicked !== null\n if (focusDifferentElement) {\n this.elementReferences[focused].focus()\n }\n const focusedInput = focused === -1\n const componentGainedFocus = focusedChanged && prevState.focused === null\n const selectAllText = focusedInput && componentGainedFocus\n if (selectAllText) {\n const inputElement = this.elementReferences[focused]\n inputElement.setSelectionRange(0, inputElement.value.length)\n }\n }\n\n hasAutoselect () {\n return isIosDevice() ? false : this.props.autoselect\n }\n\n // This template is used when converting from a state.options object into a state.query.\n templateInputValue (value) {\n const inputValueTemplate = this.props.templates && this.props.templates.inputValue\n return inputValueTemplate ? inputValueTemplate(value) : value\n }\n\n // This template is used when displaying results / suggestions.\n templateSuggestion (value) {\n const suggestionTemplate = this.props.templates && this.props.templates.suggestion\n return suggestionTemplate ? suggestionTemplate(value) : value\n }\n\n handleComponentBlur (newState) {\n const { options, query, selected } = this.state\n let newQuery\n if (this.props.confirmOnBlur) {\n newQuery = newState.query || query\n this.props.onConfirm(options[selected])\n } else {\n newQuery = query\n }\n this.setState({\n focused: null,\n clicked: null,\n menuOpen: newState.menuOpen || false,\n query: newQuery,\n selected: null\n })\n }\n\n handleListMouseLeave (event) {\n this.setState({\n hovered: null\n })\n }\n\n handleOptionBlur (event, index) {\n const { focused, clicked, menuOpen, options, selected } = this.state\n const focusingOutsideComponent = event.relatedTarget === null && clicked === null\n const focusingInput = event.relatedTarget === this.elementReferences[-1]\n const focusingAnotherOption = focused !== index && focused !== -1\n const blurComponent = (!focusingAnotherOption && focusingOutsideComponent) || !(focusingAnotherOption || focusingInput)\n if (blurComponent) {\n const keepMenuOpen = menuOpen && isIosDevice()\n this.handleComponentBlur({\n menuOpen: keepMenuOpen,\n query: this.templateInputValue(options[selected])\n })\n }\n }\n\n handleInputBlur (event) {\n const { focused, menuOpen, options, query, selected } = this.state\n const focusingAnOption = focused !== -1\n clearTimeout(this.$blurInput)\n if (!focusingAnOption) {\n const keepMenuOpen = menuOpen && isIosDevice()\n const newQuery = isIosDevice() ? query : this.templateInputValue(options[selected])\n this.$blurInput = setTimeout(() => this.handleComponentBlur({\n menuOpen: keepMenuOpen,\n query: newQuery\n }), 200)\n }\n }\n\n handleInputChange (event) {\n const { minLength, source, showAllValues } = this.props\n const autoselect = this.hasAutoselect()\n const query = event.target.value\n const queryEmpty = query.length === 0\n const queryChanged = this.state.query.length !== query.length\n const queryLongEnough = query.length >= minLength\n\n this.setState({ query })\n\n const searchForOptions = showAllValues || (!queryEmpty && queryChanged && queryLongEnough)\n if (searchForOptions) {\n source(query, (options) => {\n const optionsAvailable = options.length > 0\n this.setState({\n menuOpen: optionsAvailable,\n options,\n selected: (autoselect && optionsAvailable) ? 0 : -1\n })\n })\n } else if (queryEmpty || !queryLongEnough) {\n this.setState({\n menuOpen: false,\n options: []\n })\n }\n }\n\n handleInputClick (event) {\n this.handleInputChange(event)\n }\n\n handleInputFocus (event) {\n this.setState({\n focused: -1\n })\n }\n\n handleOptionFocus (index) {\n this.setState({\n focused: index,\n hovered: null,\n selected: index\n })\n }\n\n handleOptionMouseEnter (event, index) {\n // iOS Safari prevents click event if mouseenter adds hover background colour\n // See: https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html#//apple_ref/doc/uid/TP40006511-SW4\n if (!isIosDevice()) {\n this.setState({\n hovered: index\n })\n }\n }\n\n handleOptionClick (event, index) {\n const selectedOption = this.state.options[index]\n const newQuery = this.templateInputValue(selectedOption)\n clearTimeout(this.$blurInput)\n this.props.onConfirm(selectedOption)\n this.setState({\n focused: -1,\n clicked: index,\n hovered: null,\n menuOpen: false,\n query: newQuery,\n selected: -1\n })\n this.forceUpdate()\n }\n\n handleUpArrow (event) {\n event.preventDefault()\n const { menuOpen, selected } = this.state\n const isNotAtTop = selected !== -1\n const allowMoveUp = isNotAtTop && menuOpen\n if (allowMoveUp) {\n this.handleOptionFocus(selected - 1)\n }\n }\n\n handleDownArrow (event) {\n event.preventDefault()\n // if not open, open\n if (this.props.showAllValues && this.state.menuOpen === false) {\n event.preventDefault()\n this.props.source('', (options) => {\n this.setState({\n menuOpen: true,\n options,\n selected: 0,\n focused: 0,\n hovered: null\n })\n })\n } else if (this.state.menuOpen === true) {\n const { menuOpen, options, selected } = this.state\n const isNotAtBottom = selected !== options.length - 1\n const allowMoveDown = isNotAtBottom && menuOpen\n if (allowMoveDown) {\n this.handleOptionFocus(selected + 1)\n }\n }\n }\n\n handleSpace (event) {\n // if not open, open\n if (this.props.showAllValues && this.state.menuOpen === false && this.state.query === '') {\n event.preventDefault()\n this.props.source('', (options) => {\n this.setState({\n menuOpen: true,\n options\n })\n })\n }\n const focusIsOnOption = this.state.focused !== -1\n if (focusIsOnOption) {\n event.preventDefault()\n this.handleOptionClick(event, this.state.focused)\n }\n }\n\n handleEnter (event) {\n if (this.state.menuOpen) {\n event.preventDefault()\n const hasSelectedOption = this.state.selected >= 0\n if (hasSelectedOption) {\n this.handleOptionClick(event, this.state.selected)\n }\n }\n }\n\n handlePrintableKey (event) {\n const inputElement = this.elementReferences[-1]\n const eventIsOnInput = event.target === inputElement\n if (!eventIsOnInput) {\n // FIXME: This would be better if it was in componentDidUpdate,\n // but using setState to trigger that seems to not work correctly\n // in preact@8.1.0.\n inputElement.focus()\n }\n }\n\n handleKeyDown (event) {\n switch (keyCodes[event.keyCode]) {\n case 'up':\n this.handleUpArrow(event)\n break\n case 'down':\n this.handleDownArrow(event)\n break\n case 'space':\n this.handleSpace(event)\n break\n case 'enter':\n this.handleEnter(event)\n break\n case 'escape':\n this.handleComponentBlur({\n query: this.state.query\n })\n break\n default:\n if (isPrintableKeyCode(event.keyCode)) {\n this.handlePrintableKey(event)\n }\n break\n }\n }\n\n render () {\n const {\n cssNamespace,\n displayMenu,\n id,\n minLength,\n name,\n placeholder,\n required,\n showAllValues,\n tNoResults,\n tStatusQueryTooShort,\n tStatusNoResults,\n tStatusSelectedOption,\n tStatusResults,\n dropdownArrow: dropdownArrowFactory\n } = this.props\n const { focused, hovered, menuOpen, options, query, selected } = this.state\n const autoselect = this.hasAutoselect()\n\n const inputFocused = focused === -1\n const noOptionsAvailable = options.length === 0\n const queryNotEmpty = query.length !== 0\n const queryLongEnough = query.length >= minLength\n const showNoOptionsFound = this.props.showNoOptionsFound &&\n inputFocused && noOptionsAvailable && queryNotEmpty && queryLongEnough\n\n const wrapperClassName = `${cssNamespace}__wrapper`\n\n const inputClassName = `${cssNamespace}__input`\n const componentIsFocused = focused !== null\n const inputModifierFocused = componentIsFocused ? ` ${inputClassName}--focused` : ''\n const inputModifierType = this.props.showAllValues ? ` ${inputClassName}--show-all-values` : ` ${inputClassName}--default`\n const dropdownArrowClassName = `${cssNamespace}__dropdown-arrow-down`\n const optionFocused = focused !== -1 && focused !== null\n\n const menuClassName = `${cssNamespace}__menu`\n const menuModifierDisplayMenu = `${menuClassName}--${displayMenu}`\n const menuIsVisible = menuOpen || showNoOptionsFound\n const menuModifierVisibility = `${menuClassName}--${(menuIsVisible) ? 'visible' : 'hidden'}`\n\n const optionClassName = `${cssNamespace}__option`\n\n const hintClassName = `${cssNamespace}__hint`\n const selectedOptionText = this.templateInputValue(options[selected])\n const optionBeginsWithQuery = selectedOptionText &&\n selectedOptionText.toLowerCase().indexOf(query.toLowerCase()) === 0\n const hintValue = (optionBeginsWithQuery && autoselect)\n ? query + selectedOptionText.substr(query.length)\n : ''\n const showHint = hasPointerEvents && hintValue\n\n let dropdownArrow\n\n // we only need a dropdown arrow if showAllValues is set to a truthy value\n if (showAllValues) {\n dropdownArrow = dropdownArrowFactory({ className: dropdownArrowClassName })\n\n // if the factory returns a string we'll render this as HTML (usage w/o (P)React)\n if (typeof dropdownArrow === 'string') {\n dropdownArrow = <div className={`${cssNamespace}__dropdown-arrow-down-wrapper`} dangerouslySetInnerHTML={{ __html: dropdownArrow }} />\n }\n }\n\n return (\n <div className={wrapperClassName} onKeyDown={this.handleKeyDown} role='combobox' aria-expanded={menuOpen ? 'true' : 'false'}>\n <Status\n length={options.length}\n queryLength={query.length}\n minQueryLength={minLength}\n selectedOption={this.templateInputValue(options[selected])}\n selectedOptionIndex={selected}\n tQueryTooShort={tStatusQueryTooShort}\n tNoResults={tStatusNoResults}\n tSelectedOption={tStatusSelectedOption}\n tResults={tStatusResults}\n />\n\n {showHint && (\n <span><input className={hintClassName} readonly tabIndex='-1' value={hintValue} /></span>\n )}\n\n <input\n aria-activedescendant={optionFocused ? `${id}__option--${focused}` : false}\n aria-owns={`${id}__listbox`}\n autoComplete='off'\n className={`${inputClassName}${inputModifierFocused}${inputModifierType}`}\n id={id}\n onClick={(event) => this.handleInputClick(event)}\n onBlur={this.handleInputBlur}\n {...onChangeCrossLibrary(this.handleInputChange)}\n onFocus={this.handleInputFocus}\n name={name}\n placeholder={placeholder}\n ref={(inputElement) => { this.elementReferences[-1] = inputElement }}\n type='text'\n role='textbox'\n required={required}\n value={query}\n />\n\n {dropdownArrow}\n\n <ul\n className={`${menuClassName} ${menuModifierDisplayMenu} ${menuModifierVisibility}`}\n onMouseLeave={(event) => this.handleListMouseLeave(event)}\n id={`${id}__listbox`}\n role='listbox'\n >\n {options.map((option, index) => {\n const showFocused = focused === -1 ? selected === index : focused === index\n const optionModifierFocused = showFocused && hovered === null ? ` ${optionClassName}--focused` : ''\n const optionModifierOdd = (index % 2) ? ` ${optionClassName}--odd` : ''\n\n return (\n <li\n aria-selected={focused === index}\n className={`${optionClassName}${optionModifierFocused}${optionModifierOdd}`}\n dangerouslySetInnerHTML={{ __html: this.templateSuggestion(option) }}\n id={`${id}__option--${index}`}\n key={index}\n onBlur={(event) => this.handleOptionBlur(event, index)}\n onClick={(event) => this.handleOptionClick(event, index)}\n onMouseEnter={(event) => this.handleOptionMouseEnter(event, index)}\n ref={(optionEl) => { this.elementReferences[index] = optionEl }}\n role='option'\n tabIndex='-1'\n />\n )\n })}\n\n {showNoOptionsFound && (\n <li className={`${optionClassName} ${optionClassName}--no-results`}>{tNoResults()}</li>\n )}\n </ul>\n </div>\n )\n }\n}\n","// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\nvar anObject = require('./_an-object');\nvar dPs = require('./_object-dps');\nvar enumBugKeys = require('./_enum-bug-keys');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar Empty = function () { /* empty */ };\nvar PROTOTYPE = 'prototype';\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar createDict = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = require('./_dom-create')('iframe');\n var i = enumBugKeys.length;\n var lt = '<';\n var gt = '>';\n var iframeDocument;\n iframe.style.display = 'none';\n require('./_html').appendChild(iframe);\n iframe.src = 'javascript:'; // eslint-disable-line no-script-url\n // createDict = iframe.contentWindow.Object;\n // html.removeChild(iframe);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);\n iframeDocument.close();\n createDict = iframeDocument.F;\n while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];\n return createDict();\n};\n\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n Empty[PROTOTYPE] = anObject(O);\n result = new Empty();\n Empty[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = createDict();\n return Properties === undefined ? result : dPs(result, Properties);\n};\n","var dP = require('./_object-dp');\nvar anObject = require('./_an-object');\nvar getKeys = require('./_object-keys');\n\nmodule.exports = require('./_descriptors') ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var keys = getKeys(Properties);\n var length = keys.length;\n var i = 0;\n var P;\n while (length > i) dP.f(O, P = keys[i++], Properties[P]);\n return O;\n};\n","var document = require('./_global').document;\nmodule.exports = document && document.documentElement;\n","// 19.2.3.2 / 15.3.4.5 Function.prototype.bind(thisArg, args...)\nvar $export = require('./_export');\n\n$export($export.P, 'Function', { bind: require('./_bind') });\n","'use strict';\nvar aFunction = require('./_a-function');\nvar isObject = require('./_is-object');\nvar invoke = require('./_invoke');\nvar arraySlice = [].slice;\nvar factories = {};\n\nvar construct = function (F, len, args) {\n if (!(len in factories)) {\n for (var n = [], i = 0; i < len; i++) n[i] = 'a[' + i + ']';\n // eslint-disable-next-line no-new-func\n factories[len] = Function('F,a', 'return new F(' + n.join(',') + ')');\n } return factories[len](F, args);\n};\n\nmodule.exports = Function.bind || function bind(that /* , ...args */) {\n var fn = aFunction(this);\n var partArgs = arraySlice.call(arguments, 1);\n var bound = function (/* args... */) {\n var args = partArgs.concat(arraySlice.call(arguments));\n return this instanceof bound ? construct(fn, args.length, args) : invoke(fn, args, that);\n };\n if (isObject(fn.prototype)) bound.prototype = fn.prototype;\n return bound;\n};\n","// fast apply, http://jsperf.lnkit.com/fast-apply/5\nmodule.exports = function (fn, args, that) {\n var un = that === undefined;\n switch (args.length) {\n case 0: return un ? fn()\n : fn.call(that);\n case 1: return un ? fn(args[0])\n : fn.call(that, args[0]);\n case 2: return un ? fn(args[0], args[1])\n : fn.call(that, args[0], args[1]);\n case 3: return un ? fn(args[0], args[1], args[2])\n : fn.call(that, args[0], args[1], args[2]);\n case 4: return un ? fn(args[0], args[1], args[2], args[3])\n : fn.call(that, args[0], args[1], args[2], args[3]);\n } return fn.apply(that, args);\n};\n","// @@match logic\nrequire('./_fix-re-wks')('match', 1, function (defined, MATCH, $match) {\n // 21.1.3.11 String.prototype.match(regexp)\n return [function match(regexp) {\n 'use strict';\n var O = defined(this);\n var fn = regexp == undefined ? undefined : regexp[MATCH];\n return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[MATCH](String(O));\n }, $match];\n});\n","'use strict';\nvar hide = require('./_hide');\nvar redefine = require('./_redefine');\nvar fails = require('./_fails');\nvar defined = require('./_defined');\nvar wks = require('./_wks');\n\nmodule.exports = function (KEY, length, exec) {\n var SYMBOL = wks(KEY);\n var fns = exec(defined, SYMBOL, ''[KEY]);\n var strfn = fns[0];\n var rxfn = fns[1];\n if (fails(function () {\n var O = {};\n O[SYMBOL] = function () { return 7; };\n return ''[KEY](O) != 7;\n })) {\n redefine(String.prototype, KEY, strfn);\n hide(RegExp.prototype, SYMBOL, length == 2\n // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)\n // 21.2.5.11 RegExp.prototype[@@split](string, limit)\n ? function (string, arg) { return rxfn.call(string, this, arg); }\n // 21.2.5.6 RegExp.prototype[@@match](string)\n // 21.2.5.9 RegExp.prototype[@@search](string)\n : function (string) { return rxfn.call(string, this); }\n );\n }\n};\n","import { createElement, Component } from 'preact' /** @jsx createElement */\n\nexport default class Status extends Component {\n static defaultProps = {\n tQueryTooShort: (minQueryLength) => `Type in ${minQueryLength} or more characters for results.`,\n tNoResults: () => 'No search results.',\n tSelectedOption: (selectedOption, length, index) => `${selectedOption} (${index + 1} of ${length}) is selected.`,\n tResults: (length, contentSelectedOption) => {\n const words = {\n result: (length === 1) ? 'result' : 'results',\n is: (length === 1) ? 'is' : 'are'\n }\n\n return `${length} ${words.result} ${words.is} available. ${contentSelectedOption}`\n }\n };\n\n state = {\n bump: false\n }\n\n componentWillReceiveProps ({ queryLength }) {\n const hasChanged = queryLength !== this.props.queryLength\n if (hasChanged) {\n this.setState(({ bump }) => ({ bump: !bump }))\n }\n }\n\n render () {\n const {\n length,\n queryLength,\n minQueryLength,\n selectedOption,\n selectedOptionIndex,\n tQueryTooShort,\n tNoResults,\n tSelectedOption,\n tResults\n } = this.props\n const { bump } = this.state\n\n const queryTooShort = queryLength < minQueryLength\n const noResults = length === 0\n\n const contentSelectedOption = selectedOption\n ? tSelectedOption(selectedOption, length, selectedOptionIndex)\n : ''\n\n let content = null\n if (queryTooShort) {\n content = tQueryTooShort(minQueryLength)\n } else if (noResults) {\n content = tNoResults()\n } else {\n content = tResults(length, contentSelectedOption)\n }\n\n return <div\n aria-atomic='true'\n aria-live='polite'\n role='status'\n style={{\n border: '0',\n clip: 'rect(0 0 0 0)',\n height: '1px',\n marginBottom: '-1px',\n marginRight: '-1px',\n overflow: 'hidden',\n padding: '0',\n position: 'absolute',\n whiteSpace: 'nowrap',\n width: '1px'\n }}\n >\n {content}\n <span>{bump ? ',' : ',,'}</span>\n </div>\n }\n}\n","import { createElement } from 'preact' /** @jsx createElement */\n\nconst DropdownArrowDown = ({ className }) => (\n <svg version='1.1' xmlns='http://www.w3.org/2000/svg' className={className} focusable='false'>\n <g stroke='none' fill='none' fill-rule='evenodd'>\n <polygon fill='#000000' points='0 0 22 0 11 17' />\n </g>\n </svg>\n)\n\nexport default DropdownArrowDown\n"],"sourceRoot":""}
|
1
|
+
{"version":3,"sources":["webpack://accessibleAutocomplete/webpack/universalModuleDefinition","webpack://accessibleAutocomplete/webpack/bootstrap","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_export.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_global.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_is-object.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_descriptors.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_fails.js","webpack://accessibleAutocomplete/../node_modules/preact/dist/preact.mjs","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_core.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_hide.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_object-dp.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_an-object.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_uid.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_iobject.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_defined.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_strict-method.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/es6.object.assign.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_dom-create.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_redefine.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_has.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_ctx.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_a-function.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_object-keys.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_to-iobject.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_cof.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_array-includes.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_to-length.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_to-integer.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_shared-key.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_shared.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_enum-bug-keys.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_to-object.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/es6.function.name.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/es6.array.map.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_array-methods.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_is-array.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_wks.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/es6.array.index-of.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/es6.array.filter.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/es6.object.create.js","webpack://accessibleAutocomplete/./wrapper.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_ie8-dom-define.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_to-primitive.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_property-desc.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_object-assign.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_object-keys-internal.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_to-absolute-index.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_library.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_object-gops.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_object-pie.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_array-species-create.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_array-species-constructor.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/es6.array.is-array.js","webpack://accessibleAutocomplete/./autocomplete.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_object-create.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_object-dps.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_html.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/es6.function.bind.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_bind.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_invoke.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/es6.regexp.match.js","webpack://accessibleAutocomplete/../node_modules/core-js/modules/_fix-re-wks.js","webpack://accessibleAutocomplete/./status.js","webpack://accessibleAutocomplete/./dropdown-arrow-down.js"],"names":["webpackUniversalModuleDefinition","root","factory","exports","module","define","amd","window","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","global","core","hide","redefine","ctx","PROTOTYPE","$export","type","source","own","out","exp","IS_FORCED","F","IS_GLOBAL","G","IS_STATIC","S","IS_PROTO","P","IS_BIND","B","target","expProto","undefined","Function","U","W","R","Math","self","__g","it","a","exec","e","__webpack_exports__","h","cloneElement","Component","render","rerender","options","VNode","stack","EMPTY_CHILDREN","nodeName","attributes","lastSimple","child","simple","children","arguments","length","push","pop","String","vnode","extend","obj","props","defer","Promise","resolve","then","setTimeout","slice","IS_NON_DIMENSIONAL","items","enqueueRender","component","_dirty","debounceRendering","list","renderComponent","isNamedNode","node","normalizedNodeName","toLowerCase","getNodeProps","defaultProps","removeNode","parentNode","removeChild","setAccessor","old","isSvg","style","cssText","test","innerHTML","__html","useCapture","replace","substring","addEventListener","eventProxy","removeEventListener","_listeners","removeAttribute","removeAttributeNS","setAttributeNS","setAttribute","className","this","event","mounts","diffLevel","isSvgMode","hydrating","flushMounts","afterMount","componentDidMount","diff","dom","context","mountAll","parent","componentRoot","ownerSVGElement","ret","idiff","appendChild","prevSvgMode","splitText","_component","nodeValue","document","createTextNode","replaceChild","recollectNodeTree","vnodeName","buildComponentFromVNode","originalComponent","oldDom","isDirectOwner","_componentConstructor","isOwner","_parentComponent","constructor","setComponentProps","base","unmountComponent","createComponent","nextBase","createNode","createElementNS","createElement","firstChild","fc","vchildren","nextSibling","innerDiffNode","isHydrating","j","f","vchild","originalChildren","childNodes","keyed","keyedLen","min","len","childrenLen","vlen","_child","__key","trim","insertBefore","dangerouslySetInnerHTML","diffAttributes","attrs","unmountOnly","ref","removeChildren","lastChild","next","previousSibling","recyclerComponents","Ctor","inst","doRender","splice","state","renderMode","_disable","__ref","getDerivedStateFromProps","componentWillMount","componentWillReceiveProps","prevContext","prevProps","syncComponentUpdates","isChild","rendered","cbase","previousProps","previousState","prevState","previousContext","isUpdate","initialBase","initialChildComponent","skip","snapshot","shouldComponentUpdate","componentWillUpdate","getChildContext","getSnapshotBeforeUpdate","toUnmount","childComponent","childProps","baseParent","componentRef","unshift","componentDidUpdate","afterUpdate","_renderCallbacks","beforeUnmount","componentWillUnmount","inner","merge","setState","callback","forceUpdate","preact","version","__e","dP","createDesc","anObject","IE8_DOM_DEFINE","toPrimitive","O","Attributes","TypeError","isObject","id","px","random","concat","toString","cof","propertyIsEnumerable","split","fails","method","arg","assign","is","has","SRC","TO_STRING","$toString","TPL","inspectSource","val","safe","isFunction","join","aFunction","fn","that","b","apply","$keys","enumBugKeys","keys","IObject","defined","toIObject","toLength","toAbsoluteIndex","IS_INCLUDES","$this","el","fromIndex","index","toInteger","ceil","floor","isNaN","shared","uid","SHARED","store","copyright","FProto","nameRE","configurable","match","$map","map","callbackfn","toObject","asc","TYPE","$create","IS_MAP","IS_FILTER","IS_SOME","IS_EVERY","IS_FIND_INDEX","NO_HOLES","res","result","Array","isArray","USE_SYMBOL","$indexOf","$native","indexOf","NEGATIVE_ZERO","searchElement","$filter","filter","_preact","_autocomplete","_interopRequireDefault","accessibleAutocomplete","element","Error","createSimpleEngine","values","query","syncResults","enhanceSelectElement","configurationOptions","selectElement","availableOptions","option","preserveNullOptions","textContent","innerText","multiple","confirmOnBlur","showNoOptionsFound","selectedOptions","selected","onConfirm","requestedOption","defaultValue","selectedIndex","autoselect","display","valueOf","bitmap","writable","getKeys","gOPS","pIE","$assign","A","K","forEach","k","T","aLen","getSymbols","isEnum","arrayIndexOf","IE_PROTO","names","max","getOwnPropertySymbols","speciesConstructor","original","SPECIES","C","_status","_dropdownArrowDown","keyCodes","13","27","32","38","40","hasPointerEvents","pointerEvents","isIosDevice","navigator","userAgent","Autocomplete","_this","_Component","elementReferences","focused","hovered","clicked","menuOpen","handleComponentBlur","_assertThisInitialized","handleKeyDown","handleUpArrow","handleDownArrow","handleEnter","handlePrintableKey","handleListMouseLeave","handleOptionBlur","handleOptionClick","handleOptionFocus","handleOptionMouseEnter","handleSelectedOptionClick","handleSelectedOptionKeyDown","handleInputBlur","handleInputChange","handleInputFocus","pollInputElement","getDirectInputChanges","clearTimeout","$pollInput","$blurInput","_this2","inputReference","_this$state","componentLostFocus","focusedChanged","focus","focusedInput","componentGainedFocus","inputElement","setSelectionRange","hasAutoselect","templateInputValue","inputValueTemplate","templates","inputValue","templateSuggestion","suggestionTemplate","suggestion","newState","newQuery","_this$state2","_this$state3","focusingOutsideComponent","relatedTarget","focusingInput","focusingAnotherOption","keepMenuOpen","_this3","_this$state4","focusingAnOption","_this4","_this$props","minLength","showAllValues","queryEmpty","queryChanged","queryLongEnough","optionsAvailable","handleInputClick","selectedOption","updateMultiselect","addedSelectOption","removedOption","removedSelectOption","keyCode","preventDefault","_this$state5","_this5","_this$state6","handleSpace","_this6","isPrintableKeyCode","dropdownArrow","_this7","_this$props2","cssNamespace","displayMenu","placeholder","required","tNoResults","tStatusQueryTooShort","tStatusNoResults","tStatusSelectedOption","tStatusResults","tSelectedOptionDescription","dropdownArrowFactory","customAttributes","_this$state7","inputFocused","noOptionsAvailable","queryNotEmpty","wrapperClassName","inputClassName","inputModifierFocused","inputModifierType","dropdownArrowClassName","optionFocused","menuClassName","menuModifierDisplayMenu","menuModifierVisibility","optionClassName","selectedOptionsClassName","hintClassName","selectedOptionText","hintValue","substr","showHint","onKeyDown","role","aria-expanded","queryLength","minQueryLength","selectedOptionIndex","tQueryTooShort","tSelectedOption","tResults","readonly","tabIndex","_extends","aria-activedescendant","aria-owns","autoComplete","onClick","onBlur","onChangeCrossLibrary","handler","onInput","onFocus","onMouseLeave","optionModifierFocused","optionModifierOdd","aria-selected","onMouseEnter","optionEl","aria-label","aria-describedBy","class","DropdownArrowDown","dPs","Empty","createDict","iframeDocument","iframe","src","contentWindow","open","write","lt","close","Properties","defineProperties","documentElement","invoke","arraySlice","factories","partArgs","bound","args","construct","un","MATCH","$match","regexp","RegExp","wks","KEY","SYMBOL","fns","strfn","rxfn","string","Status","bump","_ref","_ref2","queryTooShort","noResults","contentSelectedOption","content","aria-atomic","aria-live","border","clip","height","marginBottom","marginRight","overflow","padding","position","whiteSpace","width","xmlns","focusable","stroke","fill","fill-rule","points"],"mappings":"CAAA,SAAAA,iCAAAC,EAAAC,GACA,iBAAAC,SAAA,iBAAAC,OACAA,OAAAD,QAAAD,IACA,mBAAAG,eAAAC,IACAD,OAAA,GAAAH,GACA,iBAAAC,QACAA,QAAA,0BAAAD,IAEAD,EAAA,0BAAAC,KARA,CASCK,OAAA,WACD,mBCTA,IAAAC,EAAA,GAGA,SAAAC,EAAAC,GAGA,GAAAF,EAAAE,GACA,OAAAF,EAAAE,GAAAP,QAGA,IAAAC,EAAAI,EAAAE,GAAA,CACAC,EAAAD,EACAE,GAAA,EACAT,QAAA,IAUA,OANAU,EAAAH,GAAAI,KAAAV,EAAAD,QAAAC,IAAAD,QAAAM,GAGAL,EAAAQ,GAAA,EAGAR,EAAAD,QA0DA,OArDAM,EAAAM,EAAAF,EAGAJ,EAAAO,EAAAR,EAGAC,EAAAQ,EAAA,SAAAd,EAAAe,EAAAC,GACAV,EAA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,KAHkB,IAAXA,EAAgB,KAAO,OAG9B,eAA2DogB,sECbjE,IAAA7P,EAAA9V,EAAA,KAE0B,SAApBmjB,EAAoBoC,GAAA,IAAG9c,EAAH8c,EAAG9c,UAAH,OACxB,EAAAqN,EAAAzK,eAAA,OAAK+E,QAAQ,MAAMqW,MAAM,6BAA6Bhe,UAAWA,EAAWie,UAAU,UACpF,EAAA5Q,EAAAzK,eAAA,KAAGsb,OAAO,OAAOC,KAAK,OAAOC,YAAU,YACrC,EAAA/Q,EAAAzK,eAAA,WAASub,KAAK,UAAUE,OAAO","file":"accessible-autocomplete.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"accessibleAutocomplete\"] = factory();\n\telse\n\t\troot[\"accessibleAutocomplete\"] = factory();\n})(window, function() {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 38);\n","var global = require('./_global');\nvar core = require('./_core');\nvar hide = require('./_hide');\nvar redefine = require('./_redefine');\nvar ctx = require('./_ctx');\nvar PROTOTYPE = 'prototype';\n\nvar $export = function (type, name, source) {\n var IS_FORCED = type & $export.F;\n var IS_GLOBAL = type & $export.G;\n var IS_STATIC = type & $export.S;\n var IS_PROTO = type & $export.P;\n var IS_BIND = type & $export.B;\n var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];\n var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});\n var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});\n var key, own, out, exp;\n if (IS_GLOBAL) source = name;\n for (key in source) {\n // contains in native\n own = !IS_FORCED && target && target[key] !== undefined;\n // export native or passed\n out = (own ? target : source)[key];\n // bind timers to global for call from export context\n exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n // extend global\n if (target) redefine(target, key, out, type & $export.U);\n // export\n if (exports[key] != out) hide(exports, key, exp);\n if (IS_PROTO && expProto[key] != out) expProto[key] = out;\n }\n};\nglobal.core = core;\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\n$export.U = 64; // safe\n$export.R = 128; // real proto method for `library`\nmodule.exports = $export;\n","// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self\n // eslint-disable-next-line no-new-func\n : Function('return this')();\nif (typeof __g == 'number') __g = global; // eslint-disable-line no-undef\n","module.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n","// Thank's IE8 for his funny defineProperty\nmodule.exports = !require('./_fails')(function () {\n return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;\n});\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (e) {\n return true;\n }\n};\n","var VNode = function VNode() {};\n\nvar options = {};\n\nvar stack = [];\n\nvar EMPTY_CHILDREN = [];\n\nfunction h(nodeName, attributes) {\n\tvar children = EMPTY_CHILDREN,\n\t lastSimple,\n\t child,\n\t simple,\n\t i;\n\tfor (i = arguments.length; i-- > 2;) {\n\t\tstack.push(arguments[i]);\n\t}\n\tif (attributes && attributes.children != null) {\n\t\tif (!stack.length) stack.push(attributes.children);\n\t\tdelete attributes.children;\n\t}\n\twhile (stack.length) {\n\t\tif ((child = stack.pop()) && child.pop !== undefined) {\n\t\t\tfor (i = child.length; i--;) {\n\t\t\t\tstack.push(child[i]);\n\t\t\t}\n\t\t} else {\n\t\t\tif (typeof child === 'boolean') child = null;\n\n\t\t\tif (simple = typeof nodeName !== 'function') {\n\t\t\t\tif (child == null) child = '';else if (typeof child === 'number') child = String(child);else if (typeof child !== 'string') simple = false;\n\t\t\t}\n\n\t\t\tif (simple && lastSimple) {\n\t\t\t\tchildren[children.length - 1] += child;\n\t\t\t} else if (children === EMPTY_CHILDREN) {\n\t\t\t\tchildren = [child];\n\t\t\t} else {\n\t\t\t\tchildren.push(child);\n\t\t\t}\n\n\t\t\tlastSimple = simple;\n\t\t}\n\t}\n\n\tvar p = new VNode();\n\tp.nodeName = nodeName;\n\tp.children = children;\n\tp.attributes = attributes == null ? undefined : attributes;\n\tp.key = attributes == null ? undefined : attributes.key;\n\n\tif (options.vnode !== undefined) options.vnode(p);\n\n\treturn p;\n}\n\nfunction extend(obj, props) {\n for (var i in props) {\n obj[i] = props[i];\n }return obj;\n}\n\nvar defer = typeof Promise == 'function' ? Promise.resolve().then.bind(Promise.resolve()) : setTimeout;\n\nfunction cloneElement(vnode, props) {\n return h(vnode.nodeName, extend(extend({}, vnode.attributes), props), arguments.length > 2 ? [].slice.call(arguments, 2) : vnode.children);\n}\n\nvar IS_NON_DIMENSIONAL = /acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i;\n\nvar items = [];\n\nfunction enqueueRender(component) {\n\tif (!component._dirty && (component._dirty = true) && items.push(component) == 1) {\n\t\t(options.debounceRendering || defer)(rerender);\n\t}\n}\n\nfunction rerender() {\n\tvar p,\n\t list = items;\n\titems = [];\n\twhile (p = list.pop()) {\n\t\tif (p._dirty) renderComponent(p);\n\t}\n}\n\nfunction isSameNodeType(node, vnode, hydrating) {\n\tif (typeof vnode === 'string' || typeof vnode === 'number') {\n\t\treturn node.splitText !== undefined;\n\t}\n\tif (typeof vnode.nodeName === 'string') {\n\t\treturn !node._componentConstructor && isNamedNode(node, vnode.nodeName);\n\t}\n\treturn hydrating || node._componentConstructor === vnode.nodeName;\n}\n\nfunction isNamedNode(node, nodeName) {\n\treturn node.normalizedNodeName === nodeName || node.nodeName.toLowerCase() === nodeName.toLowerCase();\n}\n\nfunction getNodeProps(vnode) {\n\tvar props = extend({}, vnode.attributes);\n\tprops.children = vnode.children;\n\n\tvar defaultProps = vnode.nodeName.defaultProps;\n\tif (defaultProps !== undefined) {\n\t\tfor (var i in defaultProps) {\n\t\t\tif (props[i] === undefined) {\n\t\t\t\tprops[i] = defaultProps[i];\n\t\t\t}\n\t\t}\n\t}\n\n\treturn props;\n}\n\nfunction createNode(nodeName, isSvg) {\n\tvar node = isSvg ? document.createElementNS('http://www.w3.org/2000/svg', nodeName) : document.createElement(nodeName);\n\tnode.normalizedNodeName = nodeName;\n\treturn node;\n}\n\nfunction removeNode(node) {\n\tvar parentNode = node.parentNode;\n\tif (parentNode) parentNode.removeChild(node);\n}\n\nfunction setAccessor(node, name, old, value, isSvg) {\n\tif (name === 'className') name = 'class';\n\n\tif (name === 'key') {} else if (name === 'ref') {\n\t\tif (old) old(null);\n\t\tif (value) value(node);\n\t} else if (name === 'class' && !isSvg) {\n\t\tnode.className = value || '';\n\t} else if (name === 'style') {\n\t\tif (!value || typeof value === 'string' || typeof old === 'string') {\n\t\t\tnode.style.cssText = value || '';\n\t\t}\n\t\tif (value && typeof value === 'object') {\n\t\t\tif (typeof old !== 'string') {\n\t\t\t\tfor (var i in old) {\n\t\t\t\t\tif (!(i in value)) node.style[i] = '';\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (var i in value) {\n\t\t\t\tnode.style[i] = typeof value[i] === 'number' && IS_NON_DIMENSIONAL.test(i) === false ? value[i] + 'px' : value[i];\n\t\t\t}\n\t\t}\n\t} else if (name === 'dangerouslySetInnerHTML') {\n\t\tif (value) node.innerHTML = value.__html || '';\n\t} else if (name[0] == 'o' && name[1] == 'n') {\n\t\tvar useCapture = name !== (name = name.replace(/Capture$/, ''));\n\t\tname = name.toLowerCase().substring(2);\n\t\tif (value) {\n\t\t\tif (!old) node.addEventListener(name, eventProxy, useCapture);\n\t\t} else {\n\t\t\tnode.removeEventListener(name, eventProxy, useCapture);\n\t\t}\n\t\t(node._listeners || (node._listeners = {}))[name] = value;\n\t} else if (name !== 'list' && name !== 'type' && !isSvg && name in node) {\n\t\ttry {\n\t\t\tnode[name] = value == null ? '' : value;\n\t\t} catch (e) {}\n\t\tif ((value == null || value === false) && name != 'spellcheck') node.removeAttribute(name);\n\t} else {\n\t\tvar ns = isSvg && name !== (name = name.replace(/^xlink:?/, ''));\n\n\t\tif (value == null || value === false) {\n\t\t\tif (ns) node.removeAttributeNS('http://www.w3.org/1999/xlink', name.toLowerCase());else node.removeAttribute(name);\n\t\t} else if (typeof value !== 'function') {\n\t\t\tif (ns) node.setAttributeNS('http://www.w3.org/1999/xlink', name.toLowerCase(), value);else node.setAttribute(name, value);\n\t\t}\n\t}\n}\n\nfunction eventProxy(e) {\n\treturn this._listeners[e.type](options.event && options.event(e) || e);\n}\n\nvar mounts = [];\n\nvar diffLevel = 0;\n\nvar isSvgMode = false;\n\nvar hydrating = false;\n\nfunction flushMounts() {\n\tvar c;\n\twhile (c = mounts.pop()) {\n\t\tif (options.afterMount) options.afterMount(c);\n\t\tif (c.componentDidMount) c.componentDidMount();\n\t}\n}\n\nfunction diff(dom, vnode, context, mountAll, parent, componentRoot) {\n\tif (!diffLevel++) {\n\t\tisSvgMode = parent != null && parent.ownerSVGElement !== undefined;\n\n\t\thydrating = dom != null && !('__preactattr_' in dom);\n\t}\n\n\tvar ret = idiff(dom, vnode, context, mountAll, componentRoot);\n\n\tif (parent && ret.parentNode !== parent) parent.appendChild(ret);\n\n\tif (! --diffLevel) {\n\t\thydrating = false;\n\n\t\tif (!componentRoot) flushMounts();\n\t}\n\n\treturn ret;\n}\n\nfunction idiff(dom, vnode, context, mountAll, componentRoot) {\n\tvar out = dom,\n\t prevSvgMode = isSvgMode;\n\n\tif (vnode == null || typeof vnode === 'boolean') vnode = '';\n\n\tif (typeof vnode === 'string' || typeof vnode === 'number') {\n\t\tif (dom && dom.splitText !== undefined && dom.parentNode && (!dom._component || componentRoot)) {\n\t\t\tif (dom.nodeValue != vnode) {\n\t\t\t\tdom.nodeValue = vnode;\n\t\t\t}\n\t\t} else {\n\t\t\tout = document.createTextNode(vnode);\n\t\t\tif (dom) {\n\t\t\t\tif (dom.parentNode) dom.parentNode.replaceChild(out, dom);\n\t\t\t\trecollectNodeTree(dom, true);\n\t\t\t}\n\t\t}\n\n\t\tout['__preactattr_'] = true;\n\n\t\treturn out;\n\t}\n\n\tvar vnodeName = vnode.nodeName;\n\tif (typeof vnodeName === 'function') {\n\t\treturn buildComponentFromVNode(dom, vnode, context, mountAll);\n\t}\n\n\tisSvgMode = vnodeName === 'svg' ? true : vnodeName === 'foreignObject' ? false : isSvgMode;\n\n\tvnodeName = String(vnodeName);\n\tif (!dom || !isNamedNode(dom, vnodeName)) {\n\t\tout = createNode(vnodeName, isSvgMode);\n\n\t\tif (dom) {\n\t\t\twhile (dom.firstChild) {\n\t\t\t\tout.appendChild(dom.firstChild);\n\t\t\t}\n\t\t\tif (dom.parentNode) dom.parentNode.replaceChild(out, dom);\n\n\t\t\trecollectNodeTree(dom, true);\n\t\t}\n\t}\n\n\tvar fc = out.firstChild,\n\t props = out['__preactattr_'],\n\t vchildren = vnode.children;\n\n\tif (props == null) {\n\t\tprops = out['__preactattr_'] = {};\n\t\tfor (var a = out.attributes, i = a.length; i--;) {\n\t\t\tprops[a[i].name] = a[i].value;\n\t\t}\n\t}\n\n\tif (!hydrating && vchildren && vchildren.length === 1 && typeof vchildren[0] === 'string' && fc != null && fc.splitText !== undefined && fc.nextSibling == null) {\n\t\tif (fc.nodeValue != vchildren[0]) {\n\t\t\tfc.nodeValue = vchildren[0];\n\t\t}\n\t} else if (vchildren && vchildren.length || fc != null) {\n\t\t\tinnerDiffNode(out, vchildren, context, mountAll, hydrating || props.dangerouslySetInnerHTML != null);\n\t\t}\n\n\tdiffAttributes(out, vnode.attributes, props);\n\n\tisSvgMode = prevSvgMode;\n\n\treturn out;\n}\n\nfunction innerDiffNode(dom, vchildren, context, mountAll, isHydrating) {\n\tvar originalChildren = dom.childNodes,\n\t children = [],\n\t keyed = {},\n\t keyedLen = 0,\n\t min = 0,\n\t len = originalChildren.length,\n\t childrenLen = 0,\n\t vlen = vchildren ? vchildren.length : 0,\n\t j,\n\t c,\n\t f,\n\t vchild,\n\t child;\n\n\tif (len !== 0) {\n\t\tfor (var i = 0; i < len; i++) {\n\t\t\tvar _child = originalChildren[i],\n\t\t\t props = _child['__preactattr_'],\n\t\t\t key = vlen && props ? _child._component ? _child._component.__key : props.key : null;\n\t\t\tif (key != null) {\n\t\t\t\tkeyedLen++;\n\t\t\t\tkeyed[key] = _child;\n\t\t\t} else if (props || (_child.splitText !== undefined ? isHydrating ? _child.nodeValue.trim() : true : isHydrating)) {\n\t\t\t\tchildren[childrenLen++] = _child;\n\t\t\t}\n\t\t}\n\t}\n\n\tif (vlen !== 0) {\n\t\tfor (var i = 0; i < vlen; i++) {\n\t\t\tvchild = vchildren[i];\n\t\t\tchild = null;\n\n\t\t\tvar key = vchild.key;\n\t\t\tif (key != null) {\n\t\t\t\tif (keyedLen && keyed[key] !== undefined) {\n\t\t\t\t\tchild = keyed[key];\n\t\t\t\t\tkeyed[key] = undefined;\n\t\t\t\t\tkeyedLen--;\n\t\t\t\t}\n\t\t\t} else if (min < childrenLen) {\n\t\t\t\t\tfor (j = min; j < childrenLen; j++) {\n\t\t\t\t\t\tif (children[j] !== undefined && isSameNodeType(c = children[j], vchild, isHydrating)) {\n\t\t\t\t\t\t\tchild = c;\n\t\t\t\t\t\t\tchildren[j] = undefined;\n\t\t\t\t\t\t\tif (j === childrenLen - 1) childrenLen--;\n\t\t\t\t\t\t\tif (j === min) min++;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\tchild = idiff(child, vchild, context, mountAll);\n\n\t\t\tf = originalChildren[i];\n\t\t\tif (child && child !== dom && child !== f) {\n\t\t\t\tif (f == null) {\n\t\t\t\t\tdom.appendChild(child);\n\t\t\t\t} else if (child === f.nextSibling) {\n\t\t\t\t\tremoveNode(f);\n\t\t\t\t} else {\n\t\t\t\t\tdom.insertBefore(child, f);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tif (keyedLen) {\n\t\tfor (var i in keyed) {\n\t\t\tif (keyed[i] !== undefined) recollectNodeTree(keyed[i], false);\n\t\t}\n\t}\n\n\twhile (min <= childrenLen) {\n\t\tif ((child = children[childrenLen--]) !== undefined) recollectNodeTree(child, false);\n\t}\n}\n\nfunction recollectNodeTree(node, unmountOnly) {\n\tvar component = node._component;\n\tif (component) {\n\t\tunmountComponent(component);\n\t} else {\n\t\tif (node['__preactattr_'] != null && node['__preactattr_'].ref) node['__preactattr_'].ref(null);\n\n\t\tif (unmountOnly === false || node['__preactattr_'] == null) {\n\t\t\tremoveNode(node);\n\t\t}\n\n\t\tremoveChildren(node);\n\t}\n}\n\nfunction removeChildren(node) {\n\tnode = node.lastChild;\n\twhile (node) {\n\t\tvar next = node.previousSibling;\n\t\trecollectNodeTree(node, true);\n\t\tnode = next;\n\t}\n}\n\nfunction diffAttributes(dom, attrs, old) {\n\tvar name;\n\n\tfor (name in old) {\n\t\tif (!(attrs && attrs[name] != null) && old[name] != null) {\n\t\t\tsetAccessor(dom, name, old[name], old[name] = undefined, isSvgMode);\n\t\t}\n\t}\n\n\tfor (name in attrs) {\n\t\tif (name !== 'children' && name !== 'innerHTML' && (!(name in old) || attrs[name] !== (name === 'value' || name === 'checked' ? dom[name] : old[name]))) {\n\t\t\tsetAccessor(dom, name, old[name], old[name] = attrs[name], isSvgMode);\n\t\t}\n\t}\n}\n\nvar recyclerComponents = [];\n\nfunction createComponent(Ctor, props, context) {\n\tvar inst,\n\t i = recyclerComponents.length;\n\n\tif (Ctor.prototype && Ctor.prototype.render) {\n\t\tinst = new Ctor(props, context);\n\t\tComponent.call(inst, props, context);\n\t} else {\n\t\tinst = new Component(props, context);\n\t\tinst.constructor = Ctor;\n\t\tinst.render = doRender;\n\t}\n\n\twhile (i--) {\n\t\tif (recyclerComponents[i].constructor === Ctor) {\n\t\t\tinst.nextBase = recyclerComponents[i].nextBase;\n\t\t\trecyclerComponents.splice(i, 1);\n\t\t\treturn inst;\n\t\t}\n\t}\n\n\treturn inst;\n}\n\nfunction doRender(props, state, context) {\n\treturn this.constructor(props, context);\n}\n\nfunction setComponentProps(component, props, renderMode, context, mountAll) {\n\tif (component._disable) return;\n\tcomponent._disable = true;\n\n\tcomponent.__ref = props.ref;\n\tcomponent.__key = props.key;\n\tdelete props.ref;\n\tdelete props.key;\n\n\tif (typeof component.constructor.getDerivedStateFromProps === 'undefined') {\n\t\tif (!component.base || mountAll) {\n\t\t\tif (component.componentWillMount) component.componentWillMount();\n\t\t} else if (component.componentWillReceiveProps) {\n\t\t\tcomponent.componentWillReceiveProps(props, context);\n\t\t}\n\t}\n\n\tif (context && context !== component.context) {\n\t\tif (!component.prevContext) component.prevContext = component.context;\n\t\tcomponent.context = context;\n\t}\n\n\tif (!component.prevProps) component.prevProps = component.props;\n\tcomponent.props = props;\n\n\tcomponent._disable = false;\n\n\tif (renderMode !== 0) {\n\t\tif (renderMode === 1 || options.syncComponentUpdates !== false || !component.base) {\n\t\t\trenderComponent(component, 1, mountAll);\n\t\t} else {\n\t\t\tenqueueRender(component);\n\t\t}\n\t}\n\n\tif (component.__ref) component.__ref(component);\n}\n\nfunction renderComponent(component, renderMode, mountAll, isChild) {\n\tif (component._disable) return;\n\n\tvar props = component.props,\n\t state = component.state,\n\t context = component.context,\n\t previousProps = component.prevProps || props,\n\t previousState = component.prevState || state,\n\t previousContext = component.prevContext || context,\n\t isUpdate = component.base,\n\t nextBase = component.nextBase,\n\t initialBase = isUpdate || nextBase,\n\t initialChildComponent = component._component,\n\t skip = false,\n\t snapshot = previousContext,\n\t rendered,\n\t inst,\n\t cbase;\n\n\tif (component.constructor.getDerivedStateFromProps) {\n\t\tstate = extend(extend({}, state), component.constructor.getDerivedStateFromProps(props, state));\n\t\tcomponent.state = state;\n\t}\n\n\tif (isUpdate) {\n\t\tcomponent.props = previousProps;\n\t\tcomponent.state = previousState;\n\t\tcomponent.context = previousContext;\n\t\tif (renderMode !== 2 && component.shouldComponentUpdate && component.shouldComponentUpdate(props, state, context) === false) {\n\t\t\tskip = true;\n\t\t} else if (component.componentWillUpdate) {\n\t\t\tcomponent.componentWillUpdate(props, state, context);\n\t\t}\n\t\tcomponent.props = props;\n\t\tcomponent.state = state;\n\t\tcomponent.context = context;\n\t}\n\n\tcomponent.prevProps = component.prevState = component.prevContext = component.nextBase = null;\n\tcomponent._dirty = false;\n\n\tif (!skip) {\n\t\trendered = component.render(props, state, context);\n\n\t\tif (component.getChildContext) {\n\t\t\tcontext = extend(extend({}, context), component.getChildContext());\n\t\t}\n\n\t\tif (isUpdate && component.getSnapshotBeforeUpdate) {\n\t\t\tsnapshot = component.getSnapshotBeforeUpdate(previousProps, previousState);\n\t\t}\n\n\t\tvar childComponent = rendered && rendered.nodeName,\n\t\t toUnmount,\n\t\t base;\n\n\t\tif (typeof childComponent === 'function') {\n\n\t\t\tvar childProps = getNodeProps(rendered);\n\t\t\tinst = initialChildComponent;\n\n\t\t\tif (inst && inst.constructor === childComponent && childProps.key == inst.__key) {\n\t\t\t\tsetComponentProps(inst, childProps, 1, context, false);\n\t\t\t} else {\n\t\t\t\ttoUnmount = inst;\n\n\t\t\t\tcomponent._component = inst = createComponent(childComponent, childProps, context);\n\t\t\t\tinst.nextBase = inst.nextBase || nextBase;\n\t\t\t\tinst._parentComponent = component;\n\t\t\t\tsetComponentProps(inst, childProps, 0, context, false);\n\t\t\t\trenderComponent(inst, 1, mountAll, true);\n\t\t\t}\n\n\t\t\tbase = inst.base;\n\t\t} else {\n\t\t\tcbase = initialBase;\n\n\t\t\ttoUnmount = initialChildComponent;\n\t\t\tif (toUnmount) {\n\t\t\t\tcbase = component._component = null;\n\t\t\t}\n\n\t\t\tif (initialBase || renderMode === 1) {\n\t\t\t\tif (cbase) cbase._component = null;\n\t\t\t\tbase = diff(cbase, rendered, context, mountAll || !isUpdate, initialBase && initialBase.parentNode, true);\n\t\t\t}\n\t\t}\n\n\t\tif (initialBase && base !== initialBase && inst !== initialChildComponent) {\n\t\t\tvar baseParent = initialBase.parentNode;\n\t\t\tif (baseParent && base !== baseParent) {\n\t\t\t\tbaseParent.replaceChild(base, initialBase);\n\n\t\t\t\tif (!toUnmount) {\n\t\t\t\t\tinitialBase._component = null;\n\t\t\t\t\trecollectNodeTree(initialBase, false);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (toUnmount) {\n\t\t\tunmountComponent(toUnmount);\n\t\t}\n\n\t\tcomponent.base = base;\n\t\tif (base && !isChild) {\n\t\t\tvar componentRef = component,\n\t\t\t t = component;\n\t\t\twhile (t = t._parentComponent) {\n\t\t\t\t(componentRef = t).base = base;\n\t\t\t}\n\t\t\tbase._component = componentRef;\n\t\t\tbase._componentConstructor = componentRef.constructor;\n\t\t}\n\t}\n\n\tif (!isUpdate || mountAll) {\n\t\tmounts.unshift(component);\n\t} else if (!skip) {\n\n\t\tif (component.componentDidUpdate) {\n\t\t\tcomponent.componentDidUpdate(previousProps, previousState, snapshot);\n\t\t}\n\t\tif (options.afterUpdate) options.afterUpdate(component);\n\t}\n\n\twhile (component._renderCallbacks.length) {\n\t\tcomponent._renderCallbacks.pop().call(component);\n\t}if (!diffLevel && !isChild) flushMounts();\n}\n\nfunction buildComponentFromVNode(dom, vnode, context, mountAll) {\n\tvar c = dom && dom._component,\n\t originalComponent = c,\n\t oldDom = dom,\n\t isDirectOwner = c && dom._componentConstructor === vnode.nodeName,\n\t isOwner = isDirectOwner,\n\t props = getNodeProps(vnode);\n\twhile (c && !isOwner && (c = c._parentComponent)) {\n\t\tisOwner = c.constructor === vnode.nodeName;\n\t}\n\n\tif (c && isOwner && (!mountAll || c._component)) {\n\t\tsetComponentProps(c, props, 3, context, mountAll);\n\t\tdom = c.base;\n\t} else {\n\t\tif (originalComponent && !isDirectOwner) {\n\t\t\tunmountComponent(originalComponent);\n\t\t\tdom = oldDom = null;\n\t\t}\n\n\t\tc = createComponent(vnode.nodeName, props, context);\n\t\tif (dom && !c.nextBase) {\n\t\t\tc.nextBase = dom;\n\n\t\t\toldDom = null;\n\t\t}\n\t\tsetComponentProps(c, props, 1, context, mountAll);\n\t\tdom = c.base;\n\n\t\tif (oldDom && dom !== oldDom) {\n\t\t\toldDom._component = null;\n\t\t\trecollectNodeTree(oldDom, false);\n\t\t}\n\t}\n\n\treturn dom;\n}\n\nfunction unmountComponent(component) {\n\tif (options.beforeUnmount) options.beforeUnmount(component);\n\n\tvar base = component.base;\n\n\tcomponent._disable = true;\n\n\tif (component.componentWillUnmount) component.componentWillUnmount();\n\n\tcomponent.base = null;\n\n\tvar inner = component._component;\n\tif (inner) {\n\t\tunmountComponent(inner);\n\t} else if (base) {\n\t\tif (base['__preactattr_'] && base['__preactattr_'].ref) base['__preactattr_'].ref(null);\n\n\t\tcomponent.nextBase = base;\n\n\t\tremoveNode(base);\n\t\trecyclerComponents.push(component);\n\n\t\tremoveChildren(base);\n\t}\n\n\tif (component.__ref) component.__ref(null);\n}\n\nfunction Component(props, context) {\n\tthis._dirty = true;\n\n\tthis.context = context;\n\n\tthis.props = props;\n\n\tthis.state = this.state || {};\n\n\tthis._renderCallbacks = [];\n}\n\nextend(Component.prototype, {\n\tsetState: function setState(state, callback) {\n\t\tif (!this.prevState) this.prevState = this.state;\n\t\tthis.state = extend(extend({}, this.state), typeof state === 'function' ? state(this.state, this.props) : state);\n\t\tif (callback) this._renderCallbacks.push(callback);\n\t\tenqueueRender(this);\n\t},\n\tforceUpdate: function forceUpdate(callback) {\n\t\tif (callback) this._renderCallbacks.push(callback);\n\t\trenderComponent(this, 2);\n\t},\n\trender: function render() {}\n});\n\nfunction render(vnode, parent, merge) {\n return diff(merge, vnode, {}, false, parent, false);\n}\n\nvar preact = {\n\th: h,\n\tcreateElement: h,\n\tcloneElement: cloneElement,\n\tComponent: Component,\n\trender: render,\n\trerender: rerender,\n\toptions: options\n};\n\nexport default preact;\nexport { h, h as createElement, cloneElement, Component, render, rerender, options };\n//# sourceMappingURL=preact.mjs.map\n","var core = module.exports = { version: '2.5.7' };\nif (typeof __e == 'number') __e = core; // eslint-disable-line no-undef\n","var dP = require('./_object-dp');\nvar createDesc = require('./_property-desc');\nmodule.exports = require('./_descriptors') ? function (object, key, value) {\n return dP.f(object, key, createDesc(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","var anObject = require('./_an-object');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar toPrimitive = require('./_to-primitive');\nvar dP = Object.defineProperty;\n\nexports.f = require('./_descriptors') ? Object.defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return dP(O, P, Attributes);\n } catch (e) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","var isObject = require('./_is-object');\nmodule.exports = function (it) {\n if (!isObject(it)) throw TypeError(it + ' is not an object!');\n return it;\n};\n","var id = 0;\nvar px = Math.random();\nmodule.exports = function (key) {\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n","// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = require('./_cof');\n// eslint-disable-next-line no-prototype-builtins\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n","// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n","'use strict';\nvar fails = require('./_fails');\n\nmodule.exports = function (method, arg) {\n return !!method && fails(function () {\n // eslint-disable-next-line no-useless-call\n arg ? method.call(null, function () { /* empty */ }, 1) : method.call(null);\n });\n};\n","// 19.1.3.1 Object.assign(target, source)\nvar $export = require('./_export');\n\n$export($export.S + $export.F, 'Object', { assign: require('./_object-assign') });\n","var isObject = require('./_is-object');\nvar document = require('./_global').document;\n// typeof document.createElement is 'object' in old IE\nvar is = isObject(document) && isObject(document.createElement);\nmodule.exports = function (it) {\n return is ? document.createElement(it) : {};\n};\n","var global = require('./_global');\nvar hide = require('./_hide');\nvar has = require('./_has');\nvar SRC = require('./_uid')('src');\nvar TO_STRING = 'toString';\nvar $toString = Function[TO_STRING];\nvar TPL = ('' + $toString).split(TO_STRING);\n\nrequire('./_core').inspectSource = function (it) {\n return $toString.call(it);\n};\n\n(module.exports = function (O, key, val, safe) {\n var isFunction = typeof val == 'function';\n if (isFunction) has(val, 'name') || hide(val, 'name', key);\n if (O[key] === val) return;\n if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));\n if (O === global) {\n O[key] = val;\n } else if (!safe) {\n delete O[key];\n hide(O, key, val);\n } else if (O[key]) {\n O[key] = val;\n } else {\n hide(O, key, val);\n }\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n})(Function.prototype, TO_STRING, function toString() {\n return typeof this == 'function' && this[SRC] || $toString.call(this);\n});\n","var hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n","// optional / simple context binding\nvar aFunction = require('./_a-function');\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","module.exports = function (it) {\n if (typeof it != 'function') throw TypeError(it + ' is not a function!');\n return it;\n};\n","// 19.1.2.14 / 15.2.3.14 Object.keys(O)\nvar $keys = require('./_object-keys-internal');\nvar enumBugKeys = require('./_enum-bug-keys');\n\nmodule.exports = Object.keys || function keys(O) {\n return $keys(O, enumBugKeys);\n};\n","// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = require('./_iobject');\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return IObject(defined(it));\n};\n","var toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n","// false -> Array#indexOf\n// true -> Array#includes\nvar toIObject = require('./_to-iobject');\nvar toLength = require('./_to-length');\nvar toAbsoluteIndex = require('./_to-absolute-index');\nmodule.exports = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) if (IS_INCLUDES || index in O) {\n if (O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n","// 7.1.15 ToLength\nvar toInteger = require('./_to-integer');\nvar min = Math.min;\nmodule.exports = function (it) {\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n","// 7.1.4 ToInteger\nvar ceil = Math.ceil;\nvar floor = Math.floor;\nmodule.exports = function (it) {\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n","var shared = require('./_shared')('keys');\nvar uid = require('./_uid');\nmodule.exports = function (key) {\n return shared[key] || (shared[key] = uid(key));\n};\n","var core = require('./_core');\nvar global = require('./_global');\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || (global[SHARED] = {});\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: core.version,\n mode: require('./_library') ? 'pure' : 'global',\n copyright: '© 2018 Denis Pushkarev (zloirock.ru)'\n});\n","// IE 8- don't enum bug keys\nmodule.exports = (\n 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'\n).split(',');\n","// 7.1.13 ToObject(argument)\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return Object(defined(it));\n};\n","var dP = require('./_object-dp').f;\nvar FProto = Function.prototype;\nvar nameRE = /^\\s*function ([^ (]*)/;\nvar NAME = 'name';\n\n// 19.2.4.2 name\nNAME in FProto || require('./_descriptors') && dP(FProto, NAME, {\n configurable: true,\n get: function () {\n try {\n return ('' + this).match(nameRE)[1];\n } catch (e) {\n return '';\n }\n }\n});\n","'use strict';\nvar $export = require('./_export');\nvar $map = require('./_array-methods')(1);\n\n$export($export.P + $export.F * !require('./_strict-method')([].map, true), 'Array', {\n // 22.1.3.15 / 15.4.4.19 Array.prototype.map(callbackfn [, thisArg])\n map: function map(callbackfn /* , thisArg */) {\n return $map(this, callbackfn, arguments[1]);\n }\n});\n","// 0 -> Array#forEach\n// 1 -> Array#map\n// 2 -> Array#filter\n// 3 -> Array#some\n// 4 -> Array#every\n// 5 -> Array#find\n// 6 -> Array#findIndex\nvar ctx = require('./_ctx');\nvar IObject = require('./_iobject');\nvar toObject = require('./_to-object');\nvar toLength = require('./_to-length');\nvar asc = require('./_array-species-create');\nmodule.exports = function (TYPE, $create) {\n var IS_MAP = TYPE == 1;\n var IS_FILTER = TYPE == 2;\n var IS_SOME = TYPE == 3;\n var IS_EVERY = TYPE == 4;\n var IS_FIND_INDEX = TYPE == 6;\n var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;\n var create = $create || asc;\n return function ($this, callbackfn, that) {\n var O = toObject($this);\n var self = IObject(O);\n var f = ctx(callbackfn, that, 3);\n var length = toLength(self.length);\n var index = 0;\n var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;\n var val, res;\n for (;length > index; index++) if (NO_HOLES || index in self) {\n val = self[index];\n res = f(val, index, O);\n if (TYPE) {\n if (IS_MAP) result[index] = res; // map\n else if (res) switch (TYPE) {\n case 3: return true; // some\n case 5: return val; // find\n case 6: return index; // findIndex\n case 2: result.push(val); // filter\n } else if (IS_EVERY) return false; // every\n }\n }\n return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;\n };\n};\n","// 7.2.2 IsArray(argument)\nvar cof = require('./_cof');\nmodule.exports = Array.isArray || function isArray(arg) {\n return cof(arg) == 'Array';\n};\n","var store = require('./_shared')('wks');\nvar uid = require('./_uid');\nvar Symbol = require('./_global').Symbol;\nvar USE_SYMBOL = typeof Symbol == 'function';\n\nvar $exports = module.exports = function (name) {\n return store[name] || (store[name] =\n USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));\n};\n\n$exports.store = store;\n","'use strict';\nvar $export = require('./_export');\nvar $indexOf = require('./_array-includes')(false);\nvar $native = [].indexOf;\nvar NEGATIVE_ZERO = !!$native && 1 / [1].indexOf(1, -0) < 0;\n\n$export($export.P + $export.F * (NEGATIVE_ZERO || !require('./_strict-method')($native)), 'Array', {\n // 22.1.3.11 / 15.4.4.14 Array.prototype.indexOf(searchElement [, fromIndex])\n indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {\n return NEGATIVE_ZERO\n // convert -0 to +0\n ? $native.apply(this, arguments) || 0\n : $indexOf(this, searchElement, arguments[1]);\n }\n});\n","'use strict';\nvar $export = require('./_export');\nvar $filter = require('./_array-methods')(2);\n\n$export($export.P + $export.F * !require('./_strict-method')([].filter, true), 'Array', {\n // 22.1.3.7 / 15.4.4.20 Array.prototype.filter(callbackfn [, thisArg])\n filter: function filter(callbackfn /* , thisArg */) {\n return $filter(this, callbackfn, arguments[1]);\n }\n});\n","var $export = require('./_export');\n// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\n$export($export.S, 'Object', { create: require('./_object-create') });\n","import { createElement, render } from 'preact' /** @jsx createElement */\nimport Autocomplete from './autocomplete'\n\nfunction accessibleAutocomplete (options) {\n if (!options.element) { throw new Error('element is not defined') }\n if (!options.id) { throw new Error('id is not defined') }\n if (!options.source) { throw new Error('source is not defined') }\n if (Array.isArray(options.source)) {\n options.source = createSimpleEngine(options.source)\n }\n render(<Autocomplete {...options} />, options.element)\n}\n\nconst createSimpleEngine = (values) => (query, syncResults) => {\n var matches = values.filter(r => r.toLowerCase().indexOf(query.toLowerCase()) !== -1)\n syncResults(matches)\n}\n\naccessibleAutocomplete.enhanceSelectElement = (configurationOptions) => {\n if (!configurationOptions.selectElement) { throw new Error('selectElement is not defined') }\n\n // Set defaults.\n if (!configurationOptions.source) {\n let availableOptions = [].filter.call(configurationOptions.selectElement.options, option => (option.value || configurationOptions.preserveNullOptions))\n configurationOptions.source = availableOptions.map(option => option.textContent || option.innerText)\n\n // Store selected options\n if (configurationOptions.selectElement.multiple) {\n configurationOptions.multiple = true\n configurationOptions.confirmOnBlur = false\n configurationOptions.showNoOptionsFound = false\n configurationOptions.selectedOptions = availableOptions.filter(option => option.selected)\n }\n }\n configurationOptions.onConfirm = configurationOptions.onConfirm || (query => {\n const requestedOption = [].filter.call(configurationOptions.selectElement.options, option => (option.textContent || option.innerText) === query)[0]\n if (requestedOption) { requestedOption.selected = true }\n })\n\n if (configurationOptions.selectElement.value || configurationOptions.defaultValue === undefined) {\n const option = configurationOptions.selectElement.options[configurationOptions.selectElement.options.selectedIndex]\n if (configurationOptions.selectElement.multiple) {\n configurationOptions.defaultValue = ''\n } else if (option.textContent || option.innerText) {\n configurationOptions.defaultValue = option.textContent || option.innerText\n }\n }\n\n if (configurationOptions.name === undefined) configurationOptions.name = ''\n if (configurationOptions.id === undefined) {\n if (configurationOptions.selectElement.id === undefined) {\n configurationOptions.id = ''\n } else {\n configurationOptions.id = configurationOptions.selectElement.id\n }\n }\n if (configurationOptions.autoselect === undefined) configurationOptions.autoselect = true\n\n const element = document.createElement('span')\n\n configurationOptions.selectElement.parentNode.insertBefore(element, configurationOptions.selectElement)\n\n accessibleAutocomplete({\n ...configurationOptions,\n element: element\n })\n\n configurationOptions.selectElement.style.display = 'none'\n configurationOptions.selectElement.id = configurationOptions.selectElement.id + '-select'\n}\n\nexport default accessibleAutocomplete\n","module.exports = !require('./_descriptors') && !require('./_fails')(function () {\n return Object.defineProperty(require('./_dom-create')('div'), 'a', { get: function () { return 7; } }).a != 7;\n});\n","// 7.1.1 ToPrimitive(input [, PreferredType])\nvar isObject = require('./_is-object');\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (it, S) {\n if (!isObject(it)) return it;\n var fn, val;\n if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;\n if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","'use strict';\n// 19.1.2.1 Object.assign(target, source, ...)\nvar getKeys = require('./_object-keys');\nvar gOPS = require('./_object-gops');\nvar pIE = require('./_object-pie');\nvar toObject = require('./_to-object');\nvar IObject = require('./_iobject');\nvar $assign = Object.assign;\n\n// should work with symbols and should have deterministic property order (V8 bug)\nmodule.exports = !$assign || require('./_fails')(function () {\n var A = {};\n var B = {};\n // eslint-disable-next-line no-undef\n var S = Symbol();\n var K = 'abcdefghijklmnopqrst';\n A[S] = 7;\n K.split('').forEach(function (k) { B[k] = k; });\n return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;\n}) ? function assign(target, source) { // eslint-disable-line no-unused-vars\n var T = toObject(target);\n var aLen = arguments.length;\n var index = 1;\n var getSymbols = gOPS.f;\n var isEnum = pIE.f;\n while (aLen > index) {\n var S = IObject(arguments[index++]);\n var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);\n var length = keys.length;\n var j = 0;\n var key;\n while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key];\n } return T;\n} : $assign;\n","var has = require('./_has');\nvar toIObject = require('./_to-iobject');\nvar arrayIndexOf = require('./_array-includes')(false);\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\n\nmodule.exports = function (object, names) {\n var O = toIObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (has(O, key = names[i++])) {\n ~arrayIndexOf(result, key) || result.push(key);\n }\n return result;\n};\n","var toInteger = require('./_to-integer');\nvar max = Math.max;\nvar min = Math.min;\nmodule.exports = function (index, length) {\n index = toInteger(index);\n return index < 0 ? max(index + length, 0) : min(index, length);\n};\n","module.exports = false;\n","exports.f = Object.getOwnPropertySymbols;\n","exports.f = {}.propertyIsEnumerable;\n","// 9.4.2.3 ArraySpeciesCreate(originalArray, length)\nvar speciesConstructor = require('./_array-species-constructor');\n\nmodule.exports = function (original, length) {\n return new (speciesConstructor(original))(length);\n};\n","var isObject = require('./_is-object');\nvar isArray = require('./_is-array');\nvar SPECIES = require('./_wks')('species');\n\nmodule.exports = function (original) {\n var C;\n if (isArray(original)) {\n C = original.constructor;\n // cross-realm fallback\n if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;\n if (isObject(C)) {\n C = C[SPECIES];\n if (C === null) C = undefined;\n }\n } return C === undefined ? Array : C;\n};\n","// 22.1.2.2 / 15.4.3.2 Array.isArray(arg)\nvar $export = require('./_export');\n\n$export($export.S, 'Array', { isArray: require('./_is-array') });\n","import { createElement, Component } from 'preact' /** @jsx createElement */\nimport Status from './status'\nimport DropdownArrowDown from './dropdown-arrow-down'\n\nconst IS_PREACT = process.env.COMPONENT_LIBRARY === 'PREACT'\nconst IS_REACT = process.env.COMPONENT_LIBRARY === 'REACT'\n\nconst keyCodes = {\n 13: 'enter',\n 27: 'escape',\n 32: 'space',\n 38: 'up',\n 40: 'down'\n}\n\n// Based on https://github.com/ausi/Feature-detection-technique-for-pointer-events\nconst hasPointerEvents = (() => {\n const element = document.createElement('x')\n element.style.cssText = 'pointer-events:auto'\n return element.style.pointerEvents === 'auto'\n})()\n\nfunction isIosDevice () {\n return !!(navigator.userAgent.match(/(iPod|iPhone|iPad)/g) && navigator.userAgent.match(/AppleWebKit/g))\n}\n\nfunction isPrintableKeyCode (keyCode) {\n return (\n (keyCode > 47 && keyCode < 58) || // number keys\n keyCode === 32 || keyCode === 8 || // spacebar or backspace\n (keyCode > 64 && keyCode < 91) || // letter keys\n (keyCode > 95 && keyCode < 112) || // numpad keys\n (keyCode > 185 && keyCode < 193) || // ;=,-./` (in order)\n (keyCode > 218 && keyCode < 223) // [\\]' (in order)\n )\n}\n\n// Preact does not implement onChange on inputs, but React does.\nfunction onChangeCrossLibrary (handler) {\n if (IS_PREACT) { return { onInput: handler } }\n if (IS_REACT) { return { onChange: handler } }\n}\n\nexport default class Autocomplete extends Component {\n static defaultProps = {\n autoselect: false,\n cssNamespace: 'autocomplete',\n customAttributes: {},\n defaultValue: '',\n displayMenu: 'inline',\n minLength: 0,\n name: 'input-autocomplete',\n placeholder: '',\n onConfirm: () => {},\n confirmOnBlur: true,\n showNoOptionsFound: true,\n showAllValues: false,\n required: false,\n multiple: false,\n selectedOptions: {},\n tNoResults: () => 'No results found',\n tSelectedOptionDescription: () => 'press Enter or Space to remove selection',\n dropdownArrow: DropdownArrowDown\n }\n\n elementReferences = {}\n\n constructor (props) {\n super(props)\n\n this.state = {\n focused: null,\n hovered: null,\n clicked: null,\n menuOpen: false,\n options: props.defaultValue ? [props.defaultValue] : [],\n selectedOptions: props.selectedOptions ? [props.selectedOptions] : [],\n query: props.defaultValue,\n selected: null\n }\n\n this.handleComponentBlur = this.handleComponentBlur.bind(this)\n this.handleKeyDown = this.handleKeyDown.bind(this)\n this.handleUpArrow = this.handleUpArrow.bind(this)\n this.handleDownArrow = this.handleDownArrow.bind(this)\n this.handleEnter = this.handleEnter.bind(this)\n this.handlePrintableKey = this.handlePrintableKey.bind(this)\n\n this.handleListMouseLeave = this.handleListMouseLeave.bind(this)\n\n this.handleOptionBlur = this.handleOptionBlur.bind(this)\n this.handleOptionClick = this.handleOptionClick.bind(this)\n this.handleOptionFocus = this.handleOptionFocus.bind(this)\n this.handleOptionMouseEnter = this.handleOptionMouseEnter.bind(this)\n\n this.handleSelectedOptionClick = this.handleSelectedOptionClick.bind(this)\n this.handleSelectedOptionKeyDown = this.handleSelectedOptionKeyDown.bind(this)\n\n this.handleInputBlur = this.handleInputBlur.bind(this)\n this.handleInputChange = this.handleInputChange.bind(this)\n this.handleInputFocus = this.handleInputFocus.bind(this)\n\n this.pollInputElement = this.pollInputElement.bind(this)\n this.getDirectInputChanges = this.getDirectInputChanges.bind(this)\n }\n\n componentDidMount () {\n this.pollInputElement()\n }\n\n componentWillUnmount () {\n clearTimeout(this.$pollInput)\n clearTimeout(this.$blurInput)\n }\n\n // Applications like Dragon NaturallySpeaking will modify the\n // `input` field by directly changing its `.value`. These events\n // don't trigger our JavaScript event listeners, so we need to poll\n // to handle when and if they occur.\n pollInputElement () {\n this.getDirectInputChanges()\n this.$pollInput = setTimeout(() => {\n this.pollInputElement()\n }, 100)\n }\n\n getDirectInputChanges () {\n const inputReference = this.elementReferences[-1]\n const queryHasChanged = inputReference && inputReference.value !== this.state.query\n\n if (queryHasChanged) {\n this.handleInputChange({ target: { value: inputReference.value } })\n }\n }\n\n componentDidUpdate (prevProps, prevState) {\n const { focused, clicked } = this.state\n const componentLostFocus = focused === null\n const focusedChanged = prevState.focused !== focused\n const focusDifferentElement = (focusedChanged && !componentLostFocus) || clicked !== null\n if (focusDifferentElement) {\n this.elementReferences[focused].focus()\n }\n const focusedInput = focused === -1\n const componentGainedFocus = focusedChanged && prevState.focused === null\n const selectAllText = focusedInput && componentGainedFocus\n if (selectAllText) {\n const inputElement = this.elementReferences[focused]\n inputElement.setSelectionRange(0, inputElement.value.length)\n }\n }\n\n hasAutoselect () {\n return isIosDevice() ? false : this.props.autoselect\n }\n\n // This template is used when converting from a state.options object into a state.query.\n templateInputValue (value) {\n const inputValueTemplate = this.props.templates && this.props.templates.inputValue\n return inputValueTemplate ? inputValueTemplate(value) : value\n }\n\n // This template is used when displaying results / suggestions.\n templateSuggestion (value) {\n const suggestionTemplate = this.props.templates && this.props.templates.suggestion\n return suggestionTemplate ? suggestionTemplate(value) : value\n }\n\n handleComponentBlur (newState) {\n const { options, query, selected } = this.state\n let newQuery\n if (this.props.confirmOnBlur) {\n newQuery = newState.query || query\n this.props.onConfirm(options[selected])\n } else {\n newQuery = query\n }\n this.setState({\n focused: null,\n clicked: null,\n menuOpen: newState.menuOpen || false,\n query: newQuery,\n selected: null\n })\n\n if (this.props.selectElement && this.props.selectElement.multiple) {\n // Reset input state\n this.setState({\n menuOpen: false,\n selected: null,\n query: ''\n })\n }\n }\n\n handleListMouseLeave (event) {\n this.setState({\n hovered: null\n })\n }\n\n handleOptionBlur (event, index) {\n const { focused, clicked, menuOpen, options, selected } = this.state\n const focusingOutsideComponent = event.relatedTarget === null && clicked === null\n const focusingInput = event.relatedTarget === this.elementReferences[-1]\n const focusingAnotherOption = focused !== index && focused !== -1\n const blurComponent = (!focusingAnotherOption && focusingOutsideComponent) || !(focusingAnotherOption || focusingInput)\n if (blurComponent) {\n const keepMenuOpen = menuOpen && isIosDevice()\n this.handleComponentBlur({\n menuOpen: keepMenuOpen,\n query: this.templateInputValue(options[selected])\n })\n }\n }\n\n handleInputBlur (event) {\n const { focused, menuOpen, options, query, selected } = this.state\n const focusingAnOption = focused !== -1\n clearTimeout(this.$blurInput)\n if (!focusingAnOption) {\n const keepMenuOpen = menuOpen && isIosDevice()\n const newQuery = isIosDevice() ? query : this.templateInputValue(options[selected])\n this.$blurInput = setTimeout(() => this.handleComponentBlur({\n menuOpen: keepMenuOpen,\n query: newQuery\n }), 200)\n }\n }\n\n handleInputChange (event) {\n const { minLength, source, showAllValues } = this.props\n const autoselect = this.hasAutoselect()\n const query = event.target.value\n const queryEmpty = query.length === 0\n const queryChanged = this.state.query.length !== query.length\n const queryLongEnough = query.length >= minLength\n\n this.setState({ query })\n\n const searchForOptions = showAllValues || (!queryEmpty && queryChanged && queryLongEnough)\n if (searchForOptions) {\n source(query, (options) => {\n const optionsAvailable = options.length > 0\n this.setState({\n menuOpen: optionsAvailable,\n options,\n selected: (autoselect && optionsAvailable) ? 0 : -1\n })\n })\n } else if (queryEmpty || !queryLongEnough) {\n this.setState({\n menuOpen: false,\n options: []\n })\n }\n }\n\n handleInputClick (event) {\n this.handleInputChange(event)\n }\n\n handleInputFocus (event) {\n this.setState({\n focused: -1\n })\n }\n\n handleOptionFocus (index) {\n this.setState({\n focused: index,\n hovered: null,\n selected: index\n })\n }\n\n handleOptionMouseEnter (event, index) {\n // iOS Safari prevents click event if mouseenter adds hover background colour\n // See: https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html#//apple_ref/doc/uid/TP40006511-SW4\n if (!isIosDevice()) {\n this.setState({\n hovered: index\n })\n }\n }\n\n handleOptionClick (event, index) {\n const selectedOption = this.state.options[index]\n const newQuery = this.templateInputValue(selectedOption)\n clearTimeout(this.$blurInput)\n this.props.onConfirm(selectedOption)\n this.setState({\n focused: -1,\n clicked: index,\n hovered: null,\n menuOpen: false,\n query: newQuery,\n selected: -1\n })\n if (this.props.selectElement && this.props.selectElement.multiple) {\n this.updateMultiselect(selectedOption)\n }\n this.forceUpdate()\n }\n\n updateMultiselect (selectedOption) {\n if (selectedOption) {\n // Update select state for option\n const addedSelectOption = [].filter.call(this.props.selectElement.options, option => option.textContent === selectedOption)[0]\n if (addedSelectOption) { addedSelectOption.selected = true }\n\n // Update multiselect list\n let availableOptions = [].filter.call(this.props.selectElement.options, option => option.textContent)\n this.props.selectedOptions = availableOptions.filter(option => option.selected === true)\n\n // Reset input state\n this.setState({\n menuOpen: false,\n selected: null,\n query: ''\n })\n }\n }\n\n handleSelectedOptionClick (event, index) {\n // Remove from the list\n const removedOption = this.props.selectedOptions[index]\n this.props.selectedOptions = this.props.selectedOptions.filter(e => e !== removedOption)\n\n // Update select state for option\n const removedSelectOption = [].filter.call(this.props.selectElement.options, option => option.textContent === removedOption.textContent)[0]\n if (removedSelectOption) { removedSelectOption.selected = false }\n\n this.forceUpdate()\n }\n\n handleSelectedOptionKeyDown (event, index) {\n switch (keyCodes[event.keyCode]) {\n case 'space':\n this.handleSelectedOptionClick(event, index)\n break\n case 'enter':\n this.handleSelectedOptionClick(event, index)\n break\n }\n }\n\n handleUpArrow (event) {\n event.preventDefault()\n const { menuOpen, selected } = this.state\n const isNotAtTop = selected !== -1\n const allowMoveUp = isNotAtTop && menuOpen\n if (allowMoveUp) {\n this.handleOptionFocus(selected - 1)\n }\n }\n\n handleDownArrow (event) {\n event.preventDefault()\n // if not open, open\n if (this.props.showAllValues && this.state.menuOpen === false) {\n event.preventDefault()\n this.props.source('', (options) => {\n this.setState({\n menuOpen: true,\n options,\n selected: 0,\n focused: 0,\n hovered: null\n })\n })\n } else if (this.state.menuOpen === true) {\n const { menuOpen, options, selected } = this.state\n const isNotAtBottom = selected !== options.length - 1\n const allowMoveDown = isNotAtBottom && menuOpen\n if (allowMoveDown) {\n this.handleOptionFocus(selected + 1)\n }\n }\n }\n\n handleSpace (event) {\n // if not open, open\n if (this.props.showAllValues && this.state.menuOpen === false && this.state.query === '') {\n event.preventDefault()\n this.props.source('', (options) => {\n this.setState({\n menuOpen: true,\n options\n })\n })\n }\n const focusIsOnOption = this.state.focused !== -1\n if (focusIsOnOption) {\n event.preventDefault()\n this.handleOptionClick(event, this.state.focused)\n }\n }\n\n handleEnter (event) {\n if (this.state.menuOpen) {\n event.preventDefault()\n const hasSelectedOption = this.state.selected >= 0\n if (hasSelectedOption) {\n this.handleOptionClick(event, this.state.selected)\n }\n }\n }\n\n handlePrintableKey (event) {\n const inputElement = this.elementReferences[-1]\n const eventIsOnInput = event.target === inputElement\n if (!eventIsOnInput) {\n // FIXME: This would be better if it was in componentDidUpdate,\n // but using setState to trigger that seems to not work correctly\n // in preact@8.1.0.\n inputElement.focus()\n }\n }\n\n handleKeyDown (event) {\n switch (keyCodes[event.keyCode]) {\n case 'up':\n this.handleUpArrow(event)\n break\n case 'down':\n this.handleDownArrow(event)\n break\n case 'space':\n this.handleSpace(event)\n break\n case 'enter':\n this.handleEnter(event)\n break\n case 'escape':\n this.handleComponentBlur({\n query: this.state.query\n })\n break\n default:\n if (isPrintableKeyCode(event.keyCode)) {\n this.handlePrintableKey(event)\n }\n break\n }\n }\n\n render () {\n const {\n cssNamespace,\n displayMenu,\n id,\n minLength,\n name,\n placeholder,\n required,\n multiple,\n showAllValues,\n tNoResults,\n tStatusQueryTooShort,\n tStatusNoResults,\n tStatusSelectedOption,\n tStatusResults,\n tSelectedOptionDescription,\n dropdownArrow: dropdownArrowFactory,\n customAttributes\n } = this.props\n const { focused, hovered, menuOpen, options, query, selected } = this.state\n const autoselect = this.hasAutoselect()\n\n const inputFocused = focused === -1\n const noOptionsAvailable = options.length === 0\n const queryNotEmpty = query.length !== 0\n const queryLongEnough = query.length >= minLength\n const showNoOptionsFound = this.props.showNoOptionsFound &&\n inputFocused && noOptionsAvailable && queryNotEmpty && queryLongEnough\n\n const wrapperClassName = `${cssNamespace}__wrapper`\n\n const inputClassName = `${cssNamespace}__input`\n const componentIsFocused = focused !== null\n const inputModifierFocused = componentIsFocused ? ` ${inputClassName}--focused` : ''\n const inputModifierType = this.props.showAllValues ? ` ${inputClassName}--show-all-values` : ` ${inputClassName}--default`\n const dropdownArrowClassName = `${cssNamespace}__dropdown-arrow-down`\n const optionFocused = focused !== -1 && focused !== null\n\n const menuClassName = `${cssNamespace}__menu`\n const menuModifierDisplayMenu = `${menuClassName}--${displayMenu}`\n const menuIsVisible = menuOpen || showNoOptionsFound\n const menuModifierVisibility = `${menuClassName}--${(menuIsVisible) ? 'visible' : 'hidden'}`\n\n const optionClassName = `${cssNamespace}__option`\n\n const selectedOptionsClassName = `${cssNamespace}__list`\n\n const hintClassName = `${cssNamespace}__hint`\n const selectedOptionText = this.templateInputValue(options[selected])\n const optionBeginsWithQuery = selectedOptionText &&\n selectedOptionText.toLowerCase().indexOf(query.toLowerCase()) === 0\n const hintValue = (optionBeginsWithQuery && autoselect)\n ? query + selectedOptionText.substr(query.length)\n : ''\n const showHint = hasPointerEvents && hintValue\n\n let dropdownArrow\n\n // we only need a dropdown arrow if showAllValues is set to a truthy value\n if (showAllValues) {\n dropdownArrow = dropdownArrowFactory({ className: dropdownArrowClassName })\n\n // if the factory returns a string we'll render this as HTML (usage w/o (P)React)\n if (typeof dropdownArrow === 'string') {\n dropdownArrow = <div className={`${cssNamespace}__dropdown-arrow-down-wrapper`} dangerouslySetInnerHTML={{ __html: dropdownArrow }} />\n }\n }\n\n return (\n <div className={wrapperClassName} onKeyDown={this.handleKeyDown} role='combobox' aria-expanded={menuOpen ? 'true' : 'false'}>\n <Status\n length={options.length}\n queryLength={query.length}\n minQueryLength={minLength}\n selectedOption={this.templateInputValue(options[selected])}\n selectedOptionIndex={selected}\n tQueryTooShort={tStatusQueryTooShort}\n tNoResults={tStatusNoResults}\n tSelectedOption={tStatusSelectedOption}\n tResults={tStatusResults}\n />\n\n {showHint && (\n <span><input className={hintClassName} readonly tabIndex='-1' value={hintValue} /></span>\n )}\n\n <input\n aria-activedescendant={optionFocused ? `${id}__option--${focused}` : false}\n aria-owns={`${id}__listbox`}\n autoComplete='off'\n className={`${inputClassName}${inputModifierFocused}${inputModifierType}`}\n id={id}\n onClick={(event) => this.handleInputClick(event)}\n onBlur={this.handleInputBlur}\n {...onChangeCrossLibrary(this.handleInputChange)}\n onFocus={this.handleInputFocus}\n name={name}\n placeholder={placeholder}\n ref={(inputElement) => { this.elementReferences[-1] = inputElement }}\n type='text'\n role='textbox'\n required={required}\n value={query}\n {...customAttributes}\n />\n\n {dropdownArrow}\n\n <ul\n className={`${menuClassName} ${menuModifierDisplayMenu} ${menuModifierVisibility}`}\n onMouseLeave={(event) => this.handleListMouseLeave(event)}\n id={`${id}__listbox`}\n role='listbox'\n >\n {options.map((option, index) => {\n const showFocused = focused === -1 ? selected === index : focused === index\n const optionModifierFocused = showFocused && hovered === null ? ` ${optionClassName}--focused` : ''\n const optionModifierOdd = (index % 2) ? ` ${optionClassName}--odd` : ''\n\n return (\n <li\n aria-selected={focused === index}\n className={`${optionClassName}${optionModifierFocused}${optionModifierOdd}`}\n dangerouslySetInnerHTML={{ __html: this.templateSuggestion(option) }}\n id={`${id}__option--${index}`}\n key={index}\n onBlur={(event) => this.handleOptionBlur(event, index)}\n onClick={(event) => this.handleOptionClick(event, index)}\n onMouseEnter={(event) => this.handleOptionMouseEnter(event, index)}\n ref={(optionEl) => { this.elementReferences[index] = optionEl }}\n role='option'\n tabIndex='-1'\n />\n )\n })}\n\n {showNoOptionsFound && (\n <li className={`${optionClassName} ${optionClassName}--no-results`}>{tNoResults()}</li>\n )}\n </ul>\n\n {multiple && (\n <ul\n className={`${selectedOptionsClassName}`}\n id={`${id}__list`}\n role='listbox'\n >\n {this.props.selectedOptions.map((option, index) => {\n return (\n <li\n aria-selected='true'\n aria-label={`${this.templateSuggestion(option.textContent)}, selected`}\n aria-describedBy={`${id}__list-item-description`}\n className={`${optionClassName}`}\n dangerouslySetInnerHTML={{ __html: this.templateSuggestion(option.textContent) }}\n id={`${id}__option--${index}`}\n key={index}\n onClick={(event) => this.handleSelectedOptionClick(event, index)}\n onKeyDown={(event) => this.handleSelectedOptionKeyDown(event, index)}\n role='option'\n tabIndex='0'\n />\n )\n })}\n {showNoOptionsFound && (\n <li className={`${optionClassName} ${optionClassName}--no-results`}>{tNoResults()}</li>\n )}\n </ul>\n )}\n {multiple && (\n <span class='autocomplete__list-item-description' id={`${id}__list-item-description`}>{tSelectedOptionDescription()}</span>\n )}\n </div>\n )\n }\n}\n","// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\nvar anObject = require('./_an-object');\nvar dPs = require('./_object-dps');\nvar enumBugKeys = require('./_enum-bug-keys');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar Empty = function () { /* empty */ };\nvar PROTOTYPE = 'prototype';\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar createDict = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = require('./_dom-create')('iframe');\n var i = enumBugKeys.length;\n var lt = '<';\n var gt = '>';\n var iframeDocument;\n iframe.style.display = 'none';\n require('./_html').appendChild(iframe);\n iframe.src = 'javascript:'; // eslint-disable-line no-script-url\n // createDict = iframe.contentWindow.Object;\n // html.removeChild(iframe);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);\n iframeDocument.close();\n createDict = iframeDocument.F;\n while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];\n return createDict();\n};\n\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n Empty[PROTOTYPE] = anObject(O);\n result = new Empty();\n Empty[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = createDict();\n return Properties === undefined ? result : dPs(result, Properties);\n};\n","var dP = require('./_object-dp');\nvar anObject = require('./_an-object');\nvar getKeys = require('./_object-keys');\n\nmodule.exports = require('./_descriptors') ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var keys = getKeys(Properties);\n var length = keys.length;\n var i = 0;\n var P;\n while (length > i) dP.f(O, P = keys[i++], Properties[P]);\n return O;\n};\n","var document = require('./_global').document;\nmodule.exports = document && document.documentElement;\n","// 19.2.3.2 / 15.3.4.5 Function.prototype.bind(thisArg, args...)\nvar $export = require('./_export');\n\n$export($export.P, 'Function', { bind: require('./_bind') });\n","'use strict';\nvar aFunction = require('./_a-function');\nvar isObject = require('./_is-object');\nvar invoke = require('./_invoke');\nvar arraySlice = [].slice;\nvar factories = {};\n\nvar construct = function (F, len, args) {\n if (!(len in factories)) {\n for (var n = [], i = 0; i < len; i++) n[i] = 'a[' + i + ']';\n // eslint-disable-next-line no-new-func\n factories[len] = Function('F,a', 'return new F(' + n.join(',') + ')');\n } return factories[len](F, args);\n};\n\nmodule.exports = Function.bind || function bind(that /* , ...args */) {\n var fn = aFunction(this);\n var partArgs = arraySlice.call(arguments, 1);\n var bound = function (/* args... */) {\n var args = partArgs.concat(arraySlice.call(arguments));\n return this instanceof bound ? construct(fn, args.length, args) : invoke(fn, args, that);\n };\n if (isObject(fn.prototype)) bound.prototype = fn.prototype;\n return bound;\n};\n","// fast apply, http://jsperf.lnkit.com/fast-apply/5\nmodule.exports = function (fn, args, that) {\n var un = that === undefined;\n switch (args.length) {\n case 0: return un ? fn()\n : fn.call(that);\n case 1: return un ? fn(args[0])\n : fn.call(that, args[0]);\n case 2: return un ? fn(args[0], args[1])\n : fn.call(that, args[0], args[1]);\n case 3: return un ? fn(args[0], args[1], args[2])\n : fn.call(that, args[0], args[1], args[2]);\n case 4: return un ? fn(args[0], args[1], args[2], args[3])\n : fn.call(that, args[0], args[1], args[2], args[3]);\n } return fn.apply(that, args);\n};\n","// @@match logic\nrequire('./_fix-re-wks')('match', 1, function (defined, MATCH, $match) {\n // 21.1.3.11 String.prototype.match(regexp)\n return [function match(regexp) {\n 'use strict';\n var O = defined(this);\n var fn = regexp == undefined ? undefined : regexp[MATCH];\n return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[MATCH](String(O));\n }, $match];\n});\n","'use strict';\nvar hide = require('./_hide');\nvar redefine = require('./_redefine');\nvar fails = require('./_fails');\nvar defined = require('./_defined');\nvar wks = require('./_wks');\n\nmodule.exports = function (KEY, length, exec) {\n var SYMBOL = wks(KEY);\n var fns = exec(defined, SYMBOL, ''[KEY]);\n var strfn = fns[0];\n var rxfn = fns[1];\n if (fails(function () {\n var O = {};\n O[SYMBOL] = function () { return 7; };\n return ''[KEY](O) != 7;\n })) {\n redefine(String.prototype, KEY, strfn);\n hide(RegExp.prototype, SYMBOL, length == 2\n // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)\n // 21.2.5.11 RegExp.prototype[@@split](string, limit)\n ? function (string, arg) { return rxfn.call(string, this, arg); }\n // 21.2.5.6 RegExp.prototype[@@match](string)\n // 21.2.5.9 RegExp.prototype[@@search](string)\n : function (string) { return rxfn.call(string, this); }\n );\n }\n};\n","import { createElement, Component } from 'preact' /** @jsx createElement */\n\nexport default class Status extends Component {\n static defaultProps = {\n tQueryTooShort: (minQueryLength) => `Type in ${minQueryLength} or more characters for results.`,\n tNoResults: () => 'No search results.',\n tSelectedOption: (selectedOption, length, index) => `${selectedOption} (${index + 1} of ${length}) is selected.`,\n tResults: (length, contentSelectedOption) => {\n const words = {\n result: (length === 1) ? 'result' : 'results',\n is: (length === 1) ? 'is' : 'are'\n }\n\n return `${length} ${words.result} ${words.is} available. ${contentSelectedOption}`\n }\n };\n\n state = {\n bump: false\n }\n\n componentWillReceiveProps ({ queryLength }) {\n const hasChanged = queryLength !== this.props.queryLength\n if (hasChanged) {\n this.setState(({ bump }) => ({ bump: !bump }))\n }\n }\n\n render () {\n const {\n length,\n queryLength,\n minQueryLength,\n selectedOption,\n selectedOptionIndex,\n tQueryTooShort,\n tNoResults,\n tSelectedOption,\n tResults\n } = this.props\n const { bump } = this.state\n\n const queryTooShort = queryLength < minQueryLength\n const noResults = length === 0\n\n const contentSelectedOption = selectedOption\n ? tSelectedOption(selectedOption, length, selectedOptionIndex)\n : ''\n\n let content = null\n if (queryTooShort) {\n content = tQueryTooShort(minQueryLength)\n } else if (noResults) {\n content = tNoResults()\n } else {\n content = tResults(length, contentSelectedOption)\n }\n\n return <div\n aria-atomic='true'\n aria-live='polite'\n role='status'\n style={{\n border: '0',\n clip: 'rect(0 0 0 0)',\n height: '1px',\n marginBottom: '-1px',\n marginRight: '-1px',\n overflow: 'hidden',\n padding: '0',\n position: 'absolute',\n whiteSpace: 'nowrap',\n width: '1px'\n }}\n >\n {content}\n <span>{bump ? ',' : ',,'}</span>\n </div>\n }\n}\n","import { createElement } from 'preact' /** @jsx createElement */\n\nconst DropdownArrowDown = ({ className }) => (\n <svg version='1.1' xmlns='http://www.w3.org/2000/svg' className={className} focusable='false'>\n <g stroke='none' fill='none' fill-rule='evenodd'>\n <polygon fill='#000000' points='0 0 22 0 11 17' />\n </g>\n </svg>\n)\n\nexport default DropdownArrowDown\n"],"sourceRoot":""}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
(function webpackUniversalModuleDefinition(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("preact")):"function"==typeof define&&define.amd?define(["preact"],t):"object"==typeof exports?exports["Autocomplete"]=t(require("preact")):e["Autocomplete"]=t(e["preact"])})(window,function(n){return function(n){var r={};function o(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}return o.m=n,o.c=r,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="/",o(o.s=31)}([function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){var m=n(0),v=n(5),y=n(6),g=n(14),b=n(16),O="prototype",w=function(e,t,n){var r,o,u,i,a=e&w.F,s=e&w.G,l=e&w.S,c=e&w.P,p=e&w.B,f=s?m:l?m[t]||(m[t]={}):(m[t]||{})[O],d=s?v:v[t]||(v[t]={}),h=d[O]||(d[O]={});for(r in s&&(n=t),n)u=((o=!a&&f&&f[r]!==undefined)?f:n)[r],i=p&&o?b(u,m):c&&"function"==typeof u?b(Function.call,u):u,f&&g(f,r,u,e&w.U),d[r]!=u&&y(d,r,i),c&&h[r]!=u&&(h[r]=u)};m.core=v,w.F=1,w.G=2,w.S=4,w.P=8,w.B=16,w.W=32,w.U=64,w.R=128,e.exports=w},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(4)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(7),o=n(35);e.exports=n(3)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var o=n(8),u=n(33),i=n(34),a=Object.defineProperty;t.f=n(3)?Object.defineProperty:function(e,t,n){if(o(e),t=i(t,!0),o(n),u)try{return a(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(2);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(e===undefined?"":e,")_",(++n+r).toString(36))}},function(e,t,n){var r=n(20);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){e.exports=function(e){if(e==undefined)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports=n},function(e,t,n){var r=n(2),o=n(0).document,u=r(o)&&r(o.createElement);e.exports=function(e){return u?o.createElement(e):{}}},function(e,t,n){var u=n(0),i=n(6),a=n(15),s=n(9)("src"),r="toString",o=Function[r],l=(""+o).split(r);n(5).inspectSource=function(e){return o.call(e)},(e.exports=function(e,t,n,r){var o="function"==typeof n;o&&(a(n,"name")||i(n,"name",t)),e[t]!==n&&(o&&(a(n,s)||i(n,s,e[t]?""+e[t]:l.join(String(t)))),e===u?e[t]=n:r?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,r,function(){return"function"==typeof this&&this[s]||o.call(this)})},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var u=n(17);e.exports=function(r,o,e){if(u(r),o===undefined)return r;switch(e){case 1:return function(e){return r.call(o,e)};case 2:return function(e,t){return r.call(o,e,t)};case 3:return function(e,t,n){return r.call(o,e,t,n)}}return function(){return r.apply(o,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(37),o=n(26);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){var r=n(10),o=n(11);e.exports=function(e){return r(o(e))}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var s=n(19),l=n(22),c=n(38);e.exports=function(a){return function(e,t,n){var r,o=s(e),u=l(o.length),i=c(n,u);if(a&&t!=t){for(;i<u;)if((r=o[i++])!=r)return!0}else for(;i<u;i++)if((a||i in o)&&o[i]===t)return a||i||0;return!a&&-1}}},function(e,t,n){var r=n(23),o=Math.min;e.exports=function(e){return 0<e?o(r(e),9007199254740991):0}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0<e?r:n)(e)}},function(e,t,n){var r=n(25)("keys"),o=n(9);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(5),o=n(0),u="__core-js_shared__",i=o[u]||(o[u]={});(e.exports=function(e,t){return i[e]||(i[e]=t!==undefined?t:{})})("versions",[]).push({version:r.version,mode:n(39)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(11);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(1);r(r.S,"Object",{create:n(42)})},function(e,t,n){var r=n(25)("wks"),o=n(9),u=n(0).Symbol,i="function"==typeof u;(e.exports=function(e){return r[e]||(r[e]=i&&u[e]||(i?u:o)("Symbol."+e))}).store=r},function(e,t,n){"use strict";var r=n(4);e.exports=function(e,t){return!!e&&r(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0,n(32),n(28),n(45),n(50),n(51),n(52),n(55);var $=n(12),W=o(n(57)),r=o(n(58));function o(e){return e&&e.__esModule?e:{"default":e}}function z(){return(z=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var i,a={13:"enter",27:"escape",32:"space",38:"up",40:"down"},G=((i=document.createElement("x")).style.cssText="pointer-events:auto","auto"===i.style.pointerEvents);function f(){return!(!navigator.userAgent.match(/(iPod|iPhone|iPad)/g)||!navigator.userAgent.match(/AppleWebKit/g))}var s=function(n){function e(e){var t;return(t=n.call(this,e)||this).elementReferences={},t.state={focused:null,hovered:null,clicked:null,menuOpen:!1,options:e.defaultValue?[e.defaultValue]:[],query:e.defaultValue,selected:null},t.handleComponentBlur=t.handleComponentBlur.bind(u(u(t))),t.handleKeyDown=t.handleKeyDown.bind(u(u(t))),t.handleUpArrow=t.handleUpArrow.bind(u(u(t))),t.handleDownArrow=t.handleDownArrow.bind(u(u(t))),t.handleEnter=t.handleEnter.bind(u(u(t))),t.handlePrintableKey=t.handlePrintableKey.bind(u(u(t))),t.handleListMouseLeave=t.handleListMouseLeave.bind(u(u(t))),t.handleOptionBlur=t.handleOptionBlur.bind(u(u(t))),t.handleOptionClick=t.handleOptionClick.bind(u(u(t))),t.handleOptionFocus=t.handleOptionFocus.bind(u(u(t))),t.handleOptionMouseEnter=t.handleOptionMouseEnter.bind(u(u(t))),t.handleInputBlur=t.handleInputBlur.bind(u(u(t))),t.handleInputChange=t.handleInputChange.bind(u(u(t))),t.handleInputFocus=t.handleInputFocus.bind(u(u(t))),t.pollInputElement=t.pollInputElement.bind(u(u(t))),t.getDirectInputChanges=t.getDirectInputChanges.bind(u(u(t))),t}(function r(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t})(e,n);var t=e.prototype;return t.componentDidMount=function(){this.pollInputElement()},t.componentWillUnmount=function(){clearTimeout(this.$pollInput),clearTimeout(this.$blurInput)},t.pollInputElement=function(){var e=this;this.getDirectInputChanges(),this.$pollInput=setTimeout(function(){e.pollInputElement()},100)},t.getDirectInputChanges=function(){var e=this.elementReferences[-1];e&&e.value!==this.state.query&&this.handleInputChange({target:{value:e.value}})},t.componentDidUpdate=function(e,t){var n=this.state,r=n.focused,o=n.clicked,u=null===r,i=t.focused!==r;(i&&!u||null!==o)&&this.elementReferences[r].focus();var a=-1===r,s=i&&null===t.focused;if(a&&s){var l=this.elementReferences[r];l.setSelectionRange(0,l.value.length)}},t.hasAutoselect=function(){return!f()&&this.props.autoselect},t.templateInputValue=function(e){var t=this.props.templates&&this.props.templates.inputValue;return t?t(e):e},t.templateSuggestion=function(e){var t=this.props.templates&&this.props.templates.suggestion;return t?t(e):e},t.handleComponentBlur=function(e){var t,n=this.state,r=n.options,o=n.query,u=n.selected;this.props.confirmOnBlur?(t=e.query||o,this.props.onConfirm(r[u])):t=o,this.setState({focused:null,clicked:null,menuOpen:e.menuOpen||!1,query:t,selected:null})},t.handleListMouseLeave=function(e){this.setState({hovered:null})},t.handleOptionBlur=function(e,t){var n=this.state,r=n.focused,o=n.clicked,u=n.menuOpen,i=n.options,a=n.selected,s=null===e.relatedTarget&&null===o,l=e.relatedTarget===this.elementReferences[-1],c=r!==t&&-1!==r;if(!c&&s||!(c||l)){var p=u&&f();this.handleComponentBlur({menuOpen:p,query:this.templateInputValue(i[a])})}},t.handleInputBlur=function(e){var t=this,n=this.state,r=n.focused,o=n.menuOpen,u=n.options,i=n.query,a=n.selected,s=-1!==r;if(clearTimeout(this.$blurInput),!s){var l=o&&f(),c=f()?i:this.templateInputValue(u[a]);this.$blurInput=setTimeout(function(){return t.handleComponentBlur({menuOpen:l,query:c})},200)}},t.handleInputChange=function(e){var n=this,t=this.props,r=t.minLength,o=t.source,u=t.showAllValues,i=this.hasAutoselect(),a=e.target.value,s=0===a.length,l=this.state.query.length!==a.length,c=a.length>=r;this.setState({query:a}),u||!s&&l&&c?o(a,function(e){var t=0<e.length;n.setState({menuOpen:t,options:e,selected:i&&t?0:-1})}):!s&&c||this.setState({menuOpen:!1,options:[]})},t.handleInputClick=function(e){this.handleInputChange(e)},t.handleInputFocus=function(e){this.setState({focused:-1})},t.handleOptionFocus=function(e){this.setState({focused:e,hovered:null,selected:e})},t.handleOptionMouseEnter=function(e,t){f()||this.setState({hovered:t})},t.handleOptionClick=function(e,t){var n=this.state.options[t],r=this.templateInputValue(n);clearTimeout(this.$blurInput),this.props.onConfirm(n),this.setState({focused:-1,clicked:t,hovered:null,menuOpen:!1,query:r,selected:-1}),this.forceUpdate()},t.handleUpArrow=function(e){e.preventDefault();var t=this.state,n=t.menuOpen,r=t.selected;-1!==r&&n&&this.handleOptionFocus(r-1)},t.handleDownArrow=function(e){var t=this;if(e.preventDefault(),this.props.showAllValues&&!1===this.state.menuOpen)e.preventDefault(),this.props.source("",function(e){t.setState({menuOpen:!0,options:e,selected:0,focused:0,hovered:null})});else if(!0===this.state.menuOpen){var n=this.state,r=n.menuOpen,o=n.options,u=n.selected;u!==o.length-1&&r&&this.handleOptionFocus(u+1)}},t.handleSpace=function(e){var t=this;this.props.showAllValues&&!1===this.state.menuOpen&&""===this.state.query&&(e.preventDefault(),this.props.source("",function(e){t.setState({menuOpen:!0,options:e})})),-1!==this.state.focused&&(e.preventDefault(),this.handleOptionClick(e,this.state.focused))},t.handleEnter=function(e){this.state.menuOpen&&(e.preventDefault(),0<=this.state.selected&&this.handleOptionClick(e,this.state.selected))},t.handlePrintableKey=function(e){var t=this.elementReferences[-1];e.target===t||t.focus()},t.handleKeyDown=function(e){switch(a[e.keyCode]){case"up":this.handleUpArrow(e);break;case"down":this.handleDownArrow(e);break;case"space":this.handleSpace(e);break;case"enter":this.handleEnter(e);break;case"escape":this.handleComponentBlur({query:this.state.query});break;default:(function t(e){return 47<e&&e<58||32===e||8===e||64<e&&e<91||95<e&&e<112||185<e&&e<193||218<e&&e<223})(e.keyCode)&&this.handlePrintableKey(e)}},t.render=function(){var e,o=this,t=this.props,n=t.cssNamespace,r=t.displayMenu,u=t.id,i=t.minLength,a=t.name,s=t.placeholder,l=t.required,c=t.showAllValues,p=t.tNoResults,f=t.tStatusQueryTooShort,d=t.tStatusNoResults,h=t.tStatusSelectedOption,m=t.tStatusResults,v=t.dropdownArrow,y=this.state,g=y.focused,b=y.hovered,O=y.menuOpen,w=y.options,x=y.query,_=y.selected,S=this.hasAutoselect(),I=-1===g,E=0===w.length,j=0!==x.length,C=x.length>=i,M=this.props.showNoOptionsFound&&I&&E&&j&&C,A=n+"__wrapper",P=n+"__input",k=null!==g?" "+P+"--focused":"",F=this.props.showAllValues?" "+P+"--show-all-values":" "+P+"--default",R=n+"__dropdown-arrow-down",q=-1!==g&&null!==g,T=n+"__menu",N=T+"--"+r,D=T+"--"+(O||M?"visible":"hidden"),L=n+"__option",B=n+"__hint",V=this.templateInputValue(w[_]),K=V&&0===V.toLowerCase().indexOf(x.toLowerCase())&&S?x+V.substr(x.length):"",U=G&&K;return c&&"string"==typeof(e=v({className:R}))&&(e=(0,$.createElement)("div",{className:n+"__dropdown-arrow-down-wrapper",dangerouslySetInnerHTML:{__html:e}})),(0,$.createElement)("div",{className:A,onKeyDown:this.handleKeyDown,role:"combobox","aria-expanded":O?"true":"false"},(0,$.createElement)(W["default"],{length:w.length,queryLength:x.length,minQueryLength:i,selectedOption:this.templateInputValue(w[_]),selectedOptionIndex:_,tQueryTooShort:f,tNoResults:d,tSelectedOption:h,tResults:m}),U&&(0,$.createElement)("span",null,(0,$.createElement)("input",{className:B,readonly:!0,tabIndex:"-1",value:K})),(0,$.createElement)("input",z({"aria-activedescendant":!!q&&u+"__option--"+g,"aria-owns":u+"__listbox",autoComplete:"off",className:""+P+k+F,id:u,onClick:function(e){return o.handleInputClick(e)},onBlur:this.handleInputBlur},function Q(e){return{onInput:e}}(this.handleInputChange),{onFocus:this.handleInputFocus,name:a,placeholder:s,ref:function(e){o.elementReferences[-1]=e},type:"text",role:"textbox",required:l,value:x})),e,(0,$.createElement)("ul",{className:T+" "+N+" "+D,onMouseLeave:function(e){return o.handleListMouseLeave(e)},id:u+"__listbox",role:"listbox"},w.map(function(e,t){var n=(-1===g?_===t:g===t)&&null===b?" "+L+"--focused":"",r=t%2?" "+L+"--odd":"";return(0,$.createElement)("li",{"aria-selected":g===t,className:""+L+n+r,dangerouslySetInnerHTML:{__html:o.templateSuggestion(e)},id:u+"__option--"+t,key:t,onBlur:function(e){return o.handleOptionBlur(e,t)},onClick:function(e){return o.handleOptionClick(e,t)},onMouseEnter:function(e){return o.handleOptionMouseEnter(e,t)},ref:function(e){o.elementReferences[t]=e},role:"option",tabIndex:"-1"})}),M&&(0,$.createElement)("li",{className:L+" "+L+"--no-results"},p())))},e}($.Component);(t["default"]=s).defaultProps={autoselect:!1,cssNamespace:"autocomplete",defaultValue:"",displayMenu:"inline",minLength:0,name:"input-autocomplete",placeholder:"",onConfirm:function(){},confirmOnBlur:!0,showNoOptionsFound:!0,showAllValues:!1,required:!1,tNoResults:function(){return"No results found"},dropdownArrow:r["default"]}},function(e,t,n){var r=n(1);r(r.S+r.F,"Object",{assign:n(36)})},function(e,t,n){e.exports=!n(3)&&!n(4)(function(){return 7!=Object.defineProperty(n(13)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var o=n(2);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){"use strict";var f=n(18),d=n(40),h=n(41),m=n(27),v=n(10),o=Object.assign;e.exports=!o||n(4)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=o({},e)[n]||Object.keys(o({},t)).join("")!=r})?function(e,t){for(var n=m(e),r=arguments.length,o=1,u=d.f,i=h.f;o<r;)for(var a,s=v(arguments[o++]),l=u?f(s).concat(u(s)):f(s),c=l.length,p=0;p<c;)i.call(s,a=l[p++])&&(n[a]=s[a]);return n}:o},function(e,t,n){var i=n(15),a=n(19),s=n(21)(!1),l=n(24)("IE_PROTO");e.exports=function(e,t){var n,r=a(e),o=0,u=[];for(n in r)n!=l&&i(r,n)&&u.push(n);for(;t.length>o;)i(r,n=t[o++])&&(~s(u,n)||u.push(n));return u}},function(e,t,n){var r=n(23),o=Math.max,u=Math.min;e.exports=function(e,t){return(e=r(e))<0?o(e+t,0):u(e,t)}},function(e,t){e.exports=!1},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,r){var o=r(8),u=r(43),i=r(26),a=r(24)("IE_PROTO"),s=function(){},l="prototype",c=function(){var e,t=r(13)("iframe"),n=i.length;for(t.style.display="none",r(44).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;n--;)delete c[l][i[n]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[l]=o(e),n=new s,s[l]=null,n[a]=e):n=c(),t===undefined?n:u(n,t)}},function(e,t,n){var i=n(7),a=n(8),s=n(18);e.exports=n(3)?Object.defineProperties:function(e,t){a(e);for(var n,r=s(t),o=r.length,u=0;u<o;)i.f(e,n=r[u++],t[n]);return e}},function(e,t,n){var r=n(0).document;e.exports=r&&r.documentElement},function(e,t,n){"use strict";var r=n(1),o=n(46)(1);r(r.P+r.F*!n(30)([].map,!0),"Array",{map:function(e){return o(this,e,arguments[1])}})},function(e,t,n){var b=n(16),O=n(10),w=n(27),x=n(22),r=n(47);e.exports=function(p,e){var f=1==p,d=2==p,h=3==p,m=4==p,v=6==p,y=5==p||v,g=e||r;return function(e,t,n){for(var r,o,u=w(e),i=O(u),a=b(t,n,3),s=x(i.length),l=0,c=f?g(e,s):d?g(e,0):undefined;l<s;l++)if((y||l in i)&&(o=a(r=i[l],l,u),p))if(f)c[l]=o;else if(o)switch(p){case 3:return!0;case 5:return r;case 6:return l;case 2:c.push(r)}else if(m)return!1;return v?-1:h||m?m:c}}},function(e,t,n){var r=n(48);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){var r=n(2),o=n(49),u=n(29)("species");e.exports=function(e){var t;return o(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!o(t.prototype)||(t=undefined),r(t)&&null===(t=t[u])&&(t=undefined)),t===undefined?Array:t}},function(e,t,n){var r=n(20);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){"use strict";var r=n(1),o=n(21)(!1),u=[].indexOf,i=!!u&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(i||!n(30)(u)),"Array",{indexOf:function(e){return i?u.apply(this,arguments)||0:o(this,e,arguments[1])}})},function(e,t,n){var r=n(7).f,o=Function.prototype,u=/^\s*function ([^ (]*)/;"name"in o||n(3)&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(u)[1]}catch(e){return""}}})},function(e,t,n){var r=n(1);r(r.P,"Function",{bind:n(53)})},function(e,t,n){"use strict";var u=n(17),i=n(2),a=n(54),s=[].slice,l={};e.exports=Function.bind||function(t){var n=u(this),r=s.call(arguments,1),o=function(){var e=r.concat(s.call(arguments));return this instanceof o?function(e,t,n){if(!(t in l)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";l[t]=Function("F,a","return new F("+r.join(",")+")")}return l[t](e,n)}(n,e.length,e):a(n,e,t)};return i(n.prototype)&&(o.prototype=n.prototype),o}},function(e,t){e.exports=function(e,t,n){var r=n===undefined;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){n(56)("match",1,function(r,o,e){return[function(e){"use strict";var t=r(this),n=e==undefined?undefined:e[o];return n!==undefined?n.call(e,t):new RegExp(e)[o](String(t))},e]})},function(e,t,n){"use strict";var a=n(6),s=n(14),l=n(4),c=n(11),p=n(29);e.exports=function(t,e,n){var r=p(t),o=n(c,r,""[t]),u=o[0],i=o[1];l(function(){var e={};return e[r]=function(){return 7},7!=""[t](e)})&&(s(String.prototype,t,u),a(RegExp.prototype,r,2==e?function(e,t){return i.call(e,this,t)}:function(e){return i.call(e,this)}))}},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0,n(28);var m=n(12);var r=function(o){function e(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))||this).state={bump:!1},e}(function n(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t})(e,o);var t=e.prototype;return t.componentWillReceiveProps=function(e){e.queryLength!==this.props.queryLength&&this.setState(function(e){return{bump:!e.bump}})},t.render=function(){var e=this.props,t=e.length,n=e.queryLength,r=e.minQueryLength,o=e.selectedOption,u=e.selectedOptionIndex,i=e.tQueryTooShort,a=e.tNoResults,s=e.tSelectedOption,l=e.tResults,c=this.state.bump,p=n<r,f=0===t,d=o?s(o,t,u):"",h=null;return h=p?i(r):f?a():l(t,d),(0,m.createElement)("div",{"aria-atomic":"true","aria-live":"polite",role:"status",style:{border:"0",clip:"rect(0 0 0 0)",height:"1px",marginBottom:"-1px",marginRight:"-1px",overflow:"hidden",padding:"0",position:"absolute",whiteSpace:"nowrap",width:"1px"}},h,(0,m.createElement)("span",null,c?",":",,"))},e}(m.Component);(t["default"]=r).defaultProps={tQueryTooShort:function(e){return"Type in "+e+" or more characters for results."},tNoResults:function(){return"No search results."},tSelectedOption:function(e,t,n){return e+" ("+(n+1)+" of "+t+") is selected."},tResults:function(e,t){return e+" "+(1===e?"result":"results")+" "+(1===e?"is":"are")+" available. "+t}}},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0;var r=n(12),o=function u(e){var t=e.className;return(0,r.createElement)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:t,focusable:"false"},(0,r.createElement)("g",{stroke:"none",fill:"none","fill-rule":"evenodd"},(0,r.createElement)("polygon",{fill:"#000000",points:"0 0 22 0 11 17"})))};t["default"]=o}])});
|
1
|
+
(function webpackUniversalModuleDefinition(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("preact")):"function"==typeof define&&define.amd?define(["preact"],t):"object"==typeof exports?exports["Autocomplete"]=t(require("preact")):e["Autocomplete"]=t(e["preact"])})(window,function(n){return function(n){var r={};function o(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}return o.m=n,o.c=r,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="/",o(o.s=32)}([function(e,t,n){var m=n(1),v=n(5),y=n(6),g=n(15),b=n(17),O="prototype",w=function(e,t,n){var r,o,i,u,s=e&w.F,l=e&w.G,a=e&w.S,c=e&w.P,p=e&w.B,f=l?m:a?m[t]||(m[t]={}):(m[t]||{})[O],d=l?v:v[t]||(v[t]={}),h=d[O]||(d[O]={});for(r in l&&(n=t),n)i=((o=!s&&f&&f[r]!==undefined)?f:n)[r],u=p&&o?b(i,m):c&&"function"==typeof i?b(Function.call,i):i,f&&g(f,r,i,e&w.U),d[r]!=i&&y(d,r,u),c&&h[r]!=i&&(h[r]=i)};m.core=v,w.F=1,w.G=2,w.S=4,w.P=8,w.B=16,w.W=32,w.U=64,w.R=128,e.exports=w},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(4)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(7),o=n(36);e.exports=n(3)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var o=n(8),i=n(34),u=n(35),s=Object.defineProperty;t.f=n(3)?Object.defineProperty:function(e,t,n){if(o(e),t=u(t,!0),o(n),i)try{return s(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(2);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(e===undefined?"":e,")_",(++n+r).toString(36))}},function(e,t,n){var r=n(21);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){e.exports=function(e){if(e==undefined)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){"use strict";var r=n(4);e.exports=function(e,t){return!!e&&r(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t){e.exports=n},function(e,t,n){var r=n(2),o=n(1).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){var i=n(1),u=n(6),s=n(16),l=n(9)("src"),r="toString",o=Function[r],a=(""+o).split(r);n(5).inspectSource=function(e){return o.call(e)},(e.exports=function(e,t,n,r){var o="function"==typeof n;o&&(s(n,"name")||u(n,"name",t)),e[t]!==n&&(o&&(s(n,l)||u(n,l,e[t]?""+e[t]:a.join(String(t)))),e===i?e[t]=n:r?e[t]?e[t]=n:u(e,t,n):(delete e[t],u(e,t,n)))})(Function.prototype,r,function(){return"function"==typeof this&&this[l]||o.call(this)})},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var i=n(18);e.exports=function(r,o,e){if(i(r),o===undefined)return r;switch(e){case 1:return function(e){return r.call(o,e)};case 2:return function(e,t){return r.call(o,e,t)};case 3:return function(e,t,n){return r.call(o,e,t,n)}}return function(){return r.apply(o,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(38),o=n(27);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){var r=n(10),o=n(11);e.exports=function(e){return r(o(e))}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var l=n(20),a=n(23),c=n(39);e.exports=function(s){return function(e,t,n){var r,o=l(e),i=a(o.length),u=c(n,i);if(s&&t!=t){for(;u<i;)if((r=o[u++])!=r)return!0}else for(;u<i;u++)if((s||u in o)&&o[u]===t)return s||u||0;return!s&&-1}}},function(e,t,n){var r=n(24),o=Math.min;e.exports=function(e){return 0<e?o(r(e),9007199254740991):0}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0<e?r:n)(e)}},function(e,t,n){var r=n(26)("keys"),o=n(9);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(5),o=n(1),i="__core-js_shared__",u=o[i]||(o[i]={});(e.exports=function(e,t){return u[e]||(u[e]=t!==undefined?t:{})})("versions",[]).push({version:r.version,mode:n(40)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(11);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(0);r(r.S,"Object",{create:n(43)})},function(e,t,n){var b=n(17),O=n(10),w=n(28),x=n(23),r=n(47);e.exports=function(p,e){var f=1==p,d=2==p,h=3==p,m=4==p,v=6==p,y=5==p||v,g=e||r;return function(e,t,n){for(var r,o,i=w(e),u=O(i),s=b(t,n,3),l=x(u.length),a=0,c=f?g(e,l):d?g(e,0):undefined;a<l;a++)if((y||a in u)&&(o=s(r=u[a],a,i),p))if(f)c[a]=o;else if(o)switch(p){case 3:return!0;case 5:return r;case 6:return a;case 2:c.push(r)}else if(m)return!1;return v?-1:h||m?m:c}}},function(e,t,n){var r=n(26)("wks"),o=n(9),i=n(1).Symbol,u="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=u&&i[e]||(u?i:o)("Symbol."+e))}).store=r},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0,n(33),n(29),n(46),n(50),n(51),n(52),n(53),n(56);var G=n(13),J=o(n(58)),r=o(n(59));function o(e){return e&&e.__esModule?e:{"default":e}}function X(){return(X=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var u,s={13:"enter",27:"escape",32:"space",38:"up",40:"down"},Y=((u=document.createElement("x")).style.cssText="pointer-events:auto","auto"===u.style.pointerEvents);function f(){return!(!navigator.userAgent.match(/(iPod|iPhone|iPad)/g)||!navigator.userAgent.match(/AppleWebKit/g))}var l=function(n){function e(e){var t;return(t=n.call(this,e)||this).elementReferences={},t.state={focused:null,hovered:null,clicked:null,menuOpen:!1,options:e.defaultValue?[e.defaultValue]:[],selectedOptions:e.selectedOptions?[e.selectedOptions]:[],query:e.defaultValue,selected:null},t.handleComponentBlur=t.handleComponentBlur.bind(i(i(t))),t.handleKeyDown=t.handleKeyDown.bind(i(i(t))),t.handleUpArrow=t.handleUpArrow.bind(i(i(t))),t.handleDownArrow=t.handleDownArrow.bind(i(i(t))),t.handleEnter=t.handleEnter.bind(i(i(t))),t.handlePrintableKey=t.handlePrintableKey.bind(i(i(t))),t.handleListMouseLeave=t.handleListMouseLeave.bind(i(i(t))),t.handleOptionBlur=t.handleOptionBlur.bind(i(i(t))),t.handleOptionClick=t.handleOptionClick.bind(i(i(t))),t.handleOptionFocus=t.handleOptionFocus.bind(i(i(t))),t.handleOptionMouseEnter=t.handleOptionMouseEnter.bind(i(i(t))),t.handleSelectedOptionClick=t.handleSelectedOptionClick.bind(i(i(t))),t.handleSelectedOptionKeyDown=t.handleSelectedOptionKeyDown.bind(i(i(t))),t.handleInputBlur=t.handleInputBlur.bind(i(i(t))),t.handleInputChange=t.handleInputChange.bind(i(i(t))),t.handleInputFocus=t.handleInputFocus.bind(i(i(t))),t.pollInputElement=t.pollInputElement.bind(i(i(t))),t.getDirectInputChanges=t.getDirectInputChanges.bind(i(i(t))),t}(function r(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t})(e,n);var t=e.prototype;return t.componentDidMount=function(){this.pollInputElement()},t.componentWillUnmount=function(){clearTimeout(this.$pollInput),clearTimeout(this.$blurInput)},t.pollInputElement=function(){var e=this;this.getDirectInputChanges(),this.$pollInput=setTimeout(function(){e.pollInputElement()},100)},t.getDirectInputChanges=function(){var e=this.elementReferences[-1];e&&e.value!==this.state.query&&this.handleInputChange({target:{value:e.value}})},t.componentDidUpdate=function(e,t){var n=this.state,r=n.focused,o=n.clicked,i=null===r,u=t.focused!==r;(u&&!i||null!==o)&&this.elementReferences[r].focus();var s=-1===r,l=u&&null===t.focused;if(s&&l){var a=this.elementReferences[r];a.setSelectionRange(0,a.value.length)}},t.hasAutoselect=function(){return!f()&&this.props.autoselect},t.templateInputValue=function(e){var t=this.props.templates&&this.props.templates.inputValue;return t?t(e):e},t.templateSuggestion=function(e){var t=this.props.templates&&this.props.templates.suggestion;return t?t(e):e},t.handleComponentBlur=function(e){var t,n=this.state,r=n.options,o=n.query,i=n.selected;this.props.confirmOnBlur?(t=e.query||o,this.props.onConfirm(r[i])):t=o,this.setState({focused:null,clicked:null,menuOpen:e.menuOpen||!1,query:t,selected:null}),this.props.selectElement&&this.props.selectElement.multiple&&this.setState({menuOpen:!1,selected:null,query:""})},t.handleListMouseLeave=function(e){this.setState({hovered:null})},t.handleOptionBlur=function(e,t){var n=this.state,r=n.focused,o=n.clicked,i=n.menuOpen,u=n.options,s=n.selected,l=null===e.relatedTarget&&null===o,a=e.relatedTarget===this.elementReferences[-1],c=r!==t&&-1!==r;if(!c&&l||!(c||a)){var p=i&&f();this.handleComponentBlur({menuOpen:p,query:this.templateInputValue(u[s])})}},t.handleInputBlur=function(e){var t=this,n=this.state,r=n.focused,o=n.menuOpen,i=n.options,u=n.query,s=n.selected,l=-1!==r;if(clearTimeout(this.$blurInput),!l){var a=o&&f(),c=f()?u:this.templateInputValue(i[s]);this.$blurInput=setTimeout(function(){return t.handleComponentBlur({menuOpen:a,query:c})},200)}},t.handleInputChange=function(e){var n=this,t=this.props,r=t.minLength,o=t.source,i=t.showAllValues,u=this.hasAutoselect(),s=e.target.value,l=0===s.length,a=this.state.query.length!==s.length,c=s.length>=r;this.setState({query:s}),i||!l&&a&&c?o(s,function(e){var t=0<e.length;n.setState({menuOpen:t,options:e,selected:u&&t?0:-1})}):!l&&c||this.setState({menuOpen:!1,options:[]})},t.handleInputClick=function(e){this.handleInputChange(e)},t.handleInputFocus=function(e){this.setState({focused:-1})},t.handleOptionFocus=function(e){this.setState({focused:e,hovered:null,selected:e})},t.handleOptionMouseEnter=function(e,t){f()||this.setState({hovered:t})},t.handleOptionClick=function(e,t){var n=this.state.options[t],r=this.templateInputValue(n);clearTimeout(this.$blurInput),this.props.onConfirm(n),this.setState({focused:-1,clicked:t,hovered:null,menuOpen:!1,query:r,selected:-1}),this.props.selectElement&&this.props.selectElement.multiple&&this.updateMultiselect(n),this.forceUpdate()},t.updateMultiselect=function(t){if(t){var e=[].filter.call(this.props.selectElement.options,function(e){return e.textContent===t})[0];e&&(e.selected=!0);var n=[].filter.call(this.props.selectElement.options,function(e){return e.textContent});this.props.selectedOptions=n.filter(function(e){return!0===e.selected}),this.setState({menuOpen:!1,selected:null,query:""})}},t.handleSelectedOptionClick=function(e,t){var n=this.props.selectedOptions[t];this.props.selectedOptions=this.props.selectedOptions.filter(function(e){return e!==n});var r=[].filter.call(this.props.selectElement.options,function(e){return e.textContent===n.textContent})[0];r&&(r.selected=!1),this.forceUpdate()},t.handleSelectedOptionKeyDown=function(e,t){switch(s[e.keyCode]){case"space":case"enter":this.handleSelectedOptionClick(e,t)}},t.handleUpArrow=function(e){e.preventDefault();var t=this.state,n=t.menuOpen,r=t.selected;-1!==r&&n&&this.handleOptionFocus(r-1)},t.handleDownArrow=function(e){var t=this;if(e.preventDefault(),this.props.showAllValues&&!1===this.state.menuOpen)e.preventDefault(),this.props.source("",function(e){t.setState({menuOpen:!0,options:e,selected:0,focused:0,hovered:null})});else if(!0===this.state.menuOpen){var n=this.state,r=n.menuOpen,o=n.options,i=n.selected;i!==o.length-1&&r&&this.handleOptionFocus(i+1)}},t.handleSpace=function(e){var t=this;this.props.showAllValues&&!1===this.state.menuOpen&&""===this.state.query&&(e.preventDefault(),this.props.source("",function(e){t.setState({menuOpen:!0,options:e})})),-1!==this.state.focused&&(e.preventDefault(),this.handleOptionClick(e,this.state.focused))},t.handleEnter=function(e){this.state.menuOpen&&(e.preventDefault(),0<=this.state.selected&&this.handleOptionClick(e,this.state.selected))},t.handlePrintableKey=function(e){var t=this.elementReferences[-1];e.target===t||t.focus()},t.handleKeyDown=function(e){switch(s[e.keyCode]){case"up":this.handleUpArrow(e);break;case"down":this.handleDownArrow(e);break;case"space":this.handleSpace(e);break;case"enter":this.handleEnter(e);break;case"escape":this.handleComponentBlur({query:this.state.query});break;default:(function t(e){return 47<e&&e<58||32===e||8===e||64<e&&e<91||95<e&&e<112||185<e&&e<193||218<e&&e<223})(e.keyCode)&&this.handlePrintableKey(e)}},t.render=function(){var e,o=this,t=this.props,n=t.cssNamespace,r=t.displayMenu,i=t.id,u=t.minLength,s=t.name,l=t.placeholder,a=t.required,c=t.multiple,p=t.showAllValues,f=t.tNoResults,d=t.tStatusQueryTooShort,h=t.tStatusNoResults,m=t.tStatusSelectedOption,v=t.tStatusResults,y=t.tSelectedOptionDescription,g=t.dropdownArrow,b=t.customAttributes,O=this.state,w=O.focused,x=O.hovered,_=O.menuOpen,S=O.options,E=O.query,C=O.selected,I=this.hasAutoselect(),j=-1===w,k=0===S.length,M=0!==E.length,A=E.length>=u,P=this.props.showNoOptionsFound&&j&&k&&M&&A,D=n+"__wrapper",F=n+"__input",q=null!==w?" "+F+"--focused":"",N=this.props.showAllValues?" "+F+"--show-all-values":" "+F+"--default",R=n+"__dropdown-arrow-down",T=-1!==w&&null!==w,L=n+"__menu",B=L+"--"+r,V=L+"--"+(_||P?"visible":"hidden"),K=n+"__option",U=n+"__list",Q=n+"__hint",$=this.templateInputValue(S[C]),W=$&&0===$.toLowerCase().indexOf(E.toLowerCase())&&I?E+$.substr(E.length):"",H=Y&&W;return p&&"string"==typeof(e=g({className:R}))&&(e=(0,G.createElement)("div",{className:n+"__dropdown-arrow-down-wrapper",dangerouslySetInnerHTML:{__html:e}})),(0,G.createElement)("div",{className:D,onKeyDown:this.handleKeyDown,role:"combobox","aria-expanded":_?"true":"false"},(0,G.createElement)(J["default"],{length:S.length,queryLength:E.length,minQueryLength:u,selectedOption:this.templateInputValue(S[C]),selectedOptionIndex:C,tQueryTooShort:d,tNoResults:h,tSelectedOption:m,tResults:v}),H&&(0,G.createElement)("span",null,(0,G.createElement)("input",{className:Q,readonly:!0,tabIndex:"-1",value:W})),(0,G.createElement)("input",X({"aria-activedescendant":!!T&&i+"__option--"+w,"aria-owns":i+"__listbox",autoComplete:"off",className:""+F+q+N,id:i,onClick:function(e){return o.handleInputClick(e)},onBlur:this.handleInputBlur},function z(e){return{onInput:e}}(this.handleInputChange),{onFocus:this.handleInputFocus,name:s,placeholder:l,ref:function(e){o.elementReferences[-1]=e},type:"text",role:"textbox",required:a,value:E},b)),e,(0,G.createElement)("ul",{className:L+" "+B+" "+V,onMouseLeave:function(e){return o.handleListMouseLeave(e)},id:i+"__listbox",role:"listbox"},S.map(function(e,t){var n=(-1===w?C===t:w===t)&&null===x?" "+K+"--focused":"",r=t%2?" "+K+"--odd":"";return(0,G.createElement)("li",{"aria-selected":w===t,className:""+K+n+r,dangerouslySetInnerHTML:{__html:o.templateSuggestion(e)},id:i+"__option--"+t,key:t,onBlur:function(e){return o.handleOptionBlur(e,t)},onClick:function(e){return o.handleOptionClick(e,t)},onMouseEnter:function(e){return o.handleOptionMouseEnter(e,t)},ref:function(e){o.elementReferences[t]=e},role:"option",tabIndex:"-1"})}),P&&(0,G.createElement)("li",{className:K+" "+K+"--no-results"},f())),c&&(0,G.createElement)("ul",{className:""+U,id:i+"__list",role:"listbox"},this.props.selectedOptions.map(function(e,t){return(0,G.createElement)("li",{"aria-selected":"true","aria-label":o.templateSuggestion(e.textContent)+", selected","aria-describedBy":i+"__list-item-description",className:""+K,dangerouslySetInnerHTML:{__html:o.templateSuggestion(e.textContent)},id:i+"__option--"+t,key:t,onClick:function(e){return o.handleSelectedOptionClick(e,t)},onKeyDown:function(e){return o.handleSelectedOptionKeyDown(e,t)},role:"option",tabIndex:"0"})}),P&&(0,G.createElement)("li",{className:K+" "+K+"--no-results"},f())),c&&(0,G.createElement)("span",{"class":"autocomplete__list-item-description",id:i+"__list-item-description"},y()))},e}(G.Component);(t["default"]=l).defaultProps={autoselect:!1,cssNamespace:"autocomplete",customAttributes:{},defaultValue:"",displayMenu:"inline",minLength:0,name:"input-autocomplete",placeholder:"",onConfirm:function(){},confirmOnBlur:!0,showNoOptionsFound:!0,showAllValues:!1,required:!1,multiple:!1,selectedOptions:{},tNoResults:function(){return"No results found"},tSelectedOptionDescription:function(){return"press Enter or Space to remove selection"},dropdownArrow:r["default"]}},function(e,t,n){var r=n(0);r(r.S+r.F,"Object",{assign:n(37)})},function(e,t,n){e.exports=!n(3)&&!n(4)(function(){return 7!=Object.defineProperty(n(14)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var o=n(2);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){"use strict";var f=n(19),d=n(41),h=n(42),m=n(28),v=n(10),o=Object.assign;e.exports=!o||n(4)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=o({},e)[n]||Object.keys(o({},t)).join("")!=r})?function(e,t){for(var n=m(e),r=arguments.length,o=1,i=d.f,u=h.f;o<r;)for(var s,l=v(arguments[o++]),a=i?f(l).concat(i(l)):f(l),c=a.length,p=0;p<c;)u.call(l,s=a[p++])&&(n[s]=l[s]);return n}:o},function(e,t,n){var u=n(16),s=n(20),l=n(22)(!1),a=n(25)("IE_PROTO");e.exports=function(e,t){var n,r=s(e),o=0,i=[];for(n in r)n!=a&&u(r,n)&&i.push(n);for(;t.length>o;)u(r,n=t[o++])&&(~l(i,n)||i.push(n));return i}},function(e,t,n){var r=n(24),o=Math.max,i=Math.min;e.exports=function(e,t){return(e=r(e))<0?o(e+t,0):i(e,t)}},function(e,t){e.exports=!1},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,r){var o=r(8),i=r(44),u=r(27),s=r(25)("IE_PROTO"),l=function(){},a="prototype",c=function(){var e,t=r(14)("iframe"),n=u.length;for(t.style.display="none",r(45).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;n--;)delete c[a][u[n]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(l[a]=o(e),n=new l,l[a]=null,n[s]=e):n=c(),t===undefined?n:i(n,t)}},function(e,t,n){var u=n(7),s=n(8),l=n(19);e.exports=n(3)?Object.defineProperties:function(e,t){s(e);for(var n,r=l(t),o=r.length,i=0;i<o;)u.f(e,n=r[i++],t[n]);return e}},function(e,t,n){var r=n(1).document;e.exports=r&&r.documentElement},function(e,t,n){"use strict";var r=n(0),o=n(30)(1);r(r.P+r.F*!n(12)([].map,!0),"Array",{map:function(e){return o(this,e,arguments[1])}})},function(e,t,n){var r=n(48);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){var r=n(2),o=n(49),i=n(31)("species");e.exports=function(e){var t;return o(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!o(t.prototype)||(t=undefined),r(t)&&null===(t=t[i])&&(t=undefined)),t===undefined?Array:t}},function(e,t,n){var r=n(21);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){"use strict";var r=n(0),o=n(22)(!1),i=[].indexOf,u=!!i&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(u||!n(12)(i)),"Array",{indexOf:function(e){return u?i.apply(this,arguments)||0:o(this,e,arguments[1])}})},function(e,t,n){var r=n(7).f,o=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in o||n(3)&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(e){return""}}})},function(e,t,n){"use strict";var r=n(0),o=n(30)(2);r(r.P+r.F*!n(12)([].filter,!0),"Array",{filter:function(e){return o(this,e,arguments[1])}})},function(e,t,n){var r=n(0);r(r.P,"Function",{bind:n(54)})},function(e,t,n){"use strict";var i=n(18),u=n(2),s=n(55),l=[].slice,a={};e.exports=Function.bind||function(t){var n=i(this),r=l.call(arguments,1),o=function(){var e=r.concat(l.call(arguments));return this instanceof o?function(e,t,n){if(!(t in a)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";a[t]=Function("F,a","return new F("+r.join(",")+")")}return a[t](e,n)}(n,e.length,e):s(n,e,t)};return u(n.prototype)&&(o.prototype=n.prototype),o}},function(e,t){e.exports=function(e,t,n){var r=n===undefined;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){n(57)("match",1,function(r,o,e){return[function(e){"use strict";var t=r(this),n=e==undefined?undefined:e[o];return n!==undefined?n.call(e,t):new RegExp(e)[o](String(t))},e]})},function(e,t,n){"use strict";var s=n(6),l=n(15),a=n(4),c=n(11),p=n(31);e.exports=function(t,e,n){var r=p(t),o=n(c,r,""[t]),i=o[0],u=o[1];a(function(){var e={};return e[r]=function(){return 7},7!=""[t](e)})&&(l(String.prototype,t,i),s(RegExp.prototype,r,2==e?function(e,t){return u.call(e,this,t)}:function(e){return u.call(e,this)}))}},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0,n(29);var m=n(13);var r=function(o){function e(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))||this).state={bump:!1},e}(function n(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t})(e,o);var t=e.prototype;return t.componentWillReceiveProps=function(e){e.queryLength!==this.props.queryLength&&this.setState(function(e){return{bump:!e.bump}})},t.render=function(){var e=this.props,t=e.length,n=e.queryLength,r=e.minQueryLength,o=e.selectedOption,i=e.selectedOptionIndex,u=e.tQueryTooShort,s=e.tNoResults,l=e.tSelectedOption,a=e.tResults,c=this.state.bump,p=n<r,f=0===t,d=o?l(o,t,i):"",h=null;return h=p?u(r):f?s():a(t,d),(0,m.createElement)("div",{"aria-atomic":"true","aria-live":"polite",role:"status",style:{border:"0",clip:"rect(0 0 0 0)",height:"1px",marginBottom:"-1px",marginRight:"-1px",overflow:"hidden",padding:"0",position:"absolute",whiteSpace:"nowrap",width:"1px"}},h,(0,m.createElement)("span",null,c?",":",,"))},e}(m.Component);(t["default"]=r).defaultProps={tQueryTooShort:function(e){return"Type in "+e+" or more characters for results."},tNoResults:function(){return"No search results."},tSelectedOption:function(e,t,n){return e+" ("+(n+1)+" of "+t+") is selected."},tResults:function(e,t){return e+" "+(1===e?"result":"results")+" "+(1===e?"is":"are")+" available. "+t}}},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0;var r=n(13),o=function i(e){var t=e.className;return(0,r.createElement)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:t,focusable:"false"},(0,r.createElement)("g",{stroke:"none",fill:"none","fill-rule":"evenodd"},(0,r.createElement)("polygon",{fill:"#000000",points:"0 0 22 0 11 17"})))};t["default"]=o}])});
|
2
2
|
//# sourceMappingURL=accessible-autocomplete.preact.min.js.map
|
data/node_modules/accessible-autocomplete/dist/lib/accessible-autocomplete.preact.min.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["webpack://Autocomplete/webpack/universalModuleDefinition","webpack://Autocomplete/webpack/bootstrap","webpack://Autocomplete/../node_modules/core-js/modules/_global.js","webpack://Autocomplete/../node_modules/core-js/modules/_export.js","webpack://Autocomplete/../node_modules/core-js/modules/_is-object.js","webpack://Autocomplete/../node_modules/core-js/modules/_descriptors.js","webpack://Autocomplete/../node_modules/core-js/modules/_fails.js","webpack://Autocomplete/../node_modules/core-js/modules/_core.js","webpack://Autocomplete/../node_modules/core-js/modules/_hide.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-dp.js","webpack://Autocomplete/../node_modules/core-js/modules/_an-object.js","webpack://Autocomplete/../node_modules/core-js/modules/_uid.js","webpack://Autocomplete/../node_modules/core-js/modules/_iobject.js","webpack://Autocomplete/../node_modules/core-js/modules/_defined.js","webpack://Autocomplete/external {\"amd\":\"preact\",\"commonjs\":\"preact\",\"commonjs2\":\"preact\",\"root\":\"preact\"}","webpack://Autocomplete/../node_modules/core-js/modules/_dom-create.js","webpack://Autocomplete/../node_modules/core-js/modules/_redefine.js","webpack://Autocomplete/../node_modules/core-js/modules/_has.js","webpack://Autocomplete/../node_modules/core-js/modules/_ctx.js","webpack://Autocomplete/../node_modules/core-js/modules/_a-function.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-keys.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-iobject.js","webpack://Autocomplete/../node_modules/core-js/modules/_cof.js","webpack://Autocomplete/../node_modules/core-js/modules/_array-includes.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-length.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-integer.js","webpack://Autocomplete/../node_modules/core-js/modules/_shared-key.js","webpack://Autocomplete/../node_modules/core-js/modules/_shared.js","webpack://Autocomplete/../node_modules/core-js/modules/_enum-bug-keys.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-object.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.object.create.js","webpack://Autocomplete/../node_modules/core-js/modules/_wks.js","webpack://Autocomplete/../node_modules/core-js/modules/_strict-method.js","webpack://Autocomplete/./autocomplete.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.object.assign.js","webpack://Autocomplete/../node_modules/core-js/modules/_ie8-dom-define.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-primitive.js","webpack://Autocomplete/../node_modules/core-js/modules/_property-desc.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-assign.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-keys-internal.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-absolute-index.js","webpack://Autocomplete/../node_modules/core-js/modules/_library.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-gops.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-pie.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-create.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-dps.js","webpack://Autocomplete/../node_modules/core-js/modules/_html.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.array.map.js","webpack://Autocomplete/../node_modules/core-js/modules/_array-methods.js","webpack://Autocomplete/../node_modules/core-js/modules/_array-species-create.js","webpack://Autocomplete/../node_modules/core-js/modules/_array-species-constructor.js","webpack://Autocomplete/../node_modules/core-js/modules/_is-array.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.array.index-of.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.function.name.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.function.bind.js","webpack://Autocomplete/../node_modules/core-js/modules/_bind.js","webpack://Autocomplete/../node_modules/core-js/modules/_invoke.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.regexp.match.js","webpack://Autocomplete/../node_modules/core-js/modules/_fix-re-wks.js","webpack://Autocomplete/./status.js","webpack://Autocomplete/./dropdown-arrow-down.js"],"names":["webpackUniversalModuleDefinition","root","factory","exports","module","require","define","amd","window","__WEBPACK_EXTERNAL_MODULE__12__","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","global","Math","self","Function","__g","core","hide","redefine","ctx","PROTOTYPE","$export","type","source","own","out","exp","IS_FORCED","F","IS_GLOBAL","G","IS_STATIC","S","IS_PROTO","P","IS_BIND","B","target","expProto","undefined","U","W","R","it","a","exec","e","version","__e","dP","createDesc","f","anObject","IE8_DOM_DEFINE","toPrimitive","O","Attributes","TypeError","isObject","id","px","random","concat","toString","cof","propertyIsEnumerable","split","document","is","createElement","has","SRC","TO_STRING","$toString","TPL","inspectSource","val","safe","isFunction","join","String","this","aFunction","fn","that","length","b","apply","arguments","$keys","enumBugKeys","keys","IObject","defined","slice","toIObject","toLength","toAbsoluteIndex","IS_INCLUDES","$this","el","fromIndex","index","toInteger","min","ceil","floor","isNaN","shared","uid","SHARED","store","push","copyright","USE_SYMBOL","fails","method","arg","_preact","_status","_interopRequireDefault","_dropdownArrowDown","element","keyCodes","13","27","32","38","40","hasPointerEvents","style","cssText","pointerEvents","isIosDevice","navigator","userAgent","match","Autocomplete","props","_this","_Component","elementReferences","state","focused","hovered","clicked","menuOpen","options","defaultValue","query","selected","handleComponentBlur","_assertThisInitialized","handleKeyDown","handleUpArrow","handleDownArrow","handleEnter","handlePrintableKey","handleListMouseLeave","handleOptionBlur","handleOptionClick","handleOptionFocus","handleOptionMouseEnter","handleInputBlur","handleInputChange","handleInputFocus","pollInputElement","getDirectInputChanges","componentDidMount","componentWillUnmount","clearTimeout","$pollInput","$blurInput","_this2","setTimeout","inputReference","componentDidUpdate","prevProps","prevState","_this$state","componentLostFocus","focusedChanged","focus","focusedInput","componentGainedFocus","inputElement","setSelectionRange","hasAutoselect","autoselect","templateInputValue","inputValueTemplate","templates","inputValue","templateSuggestion","suggestionTemplate","suggestion","newState","newQuery","_this$state2","confirmOnBlur","onConfirm","setState","event","_this$state3","focusingOutsideComponent","relatedTarget","focusingInput","focusingAnotherOption","keepMenuOpen","_this3","_this$state4","focusingAnOption","_this4","_this$props","minLength","showAllValues","queryEmpty","queryChanged","queryLongEnough","optionsAvailable","handleInputClick","selectedOption","forceUpdate","preventDefault","_this$state5","_this5","_this$state6","handleSpace","_this6","keyCode","isPrintableKeyCode","render","dropdownArrow","_this7","_this$props2","cssNamespace","displayMenu","placeholder","required","tNoResults","tStatusQueryTooShort","tStatusNoResults","tStatusSelectedOption","tStatusResults","dropdownArrowFactory","_this$state7","inputFocused","noOptionsAvailable","queryNotEmpty","showNoOptionsFound","wrapperClassName","inputClassName","inputModifierFocused","inputModifierType","dropdownArrowClassName","optionFocused","menuClassName","menuModifierDisplayMenu","menuModifierVisibility","optionClassName","hintClassName","selectedOptionText","hintValue","toLowerCase","indexOf","substr","showHint","className","dangerouslySetInnerHTML","__html","onKeyDown","role","aria-expanded","queryLength","minQueryLength","selectedOptionIndex","tQueryTooShort","tSelectedOption","tResults","readonly","tabIndex","_extends","aria-activedescendant","aria-owns","autoComplete","onClick","onBlur","onChangeCrossLibrary","handler","onInput","onFocus","ref","onMouseLeave","map","option","optionModifierFocused","optionModifierOdd","aria-selected","onMouseEnter","optionEl","Component","defaultProps","DropdownArrowDown","assign","valueOf","bitmap","configurable","writable","getKeys","gOPS","pIE","toObject","$assign","A","K","forEach","k","T","aLen","getSymbols","isEnum","j","arrayIndexOf","IE_PROTO","names","result","max","getOwnPropertySymbols","dPs","Empty","createDict","iframeDocument","iframe","display","appendChild","src","contentWindow","open","write","lt","close","Properties","defineProperties","documentElement","$map","callbackfn","asc","TYPE","$create","IS_MAP","IS_FILTER","IS_SOME","IS_EVERY","IS_FIND_INDEX","NO_HOLES","res","speciesConstructor","original","isArray","SPECIES","C","constructor","Array","$indexOf","$native","NEGATIVE_ZERO","searchElement","FProto","nameRE","invoke","arraySlice","factories","partArgs","bound","args","len","construct","un","MATCH","$match","regexp","RegExp","wks","KEY","SYMBOL","fns","strfn","rxfn","string","Status","bump","componentWillReceiveProps","_ref","_ref2","queryTooShort","noResults","contentSelectedOption","content","aria-atomic","aria-live","border","clip","height","marginBottom","marginRight","overflow","padding","position","whiteSpace","width","xmlns","focusable","stroke","fill","fill-rule","points"],"mappings":"CAAA,SAAAA,iCAAAC,EAAAC,GACA,iBAAAC,SAAA,iBAAAC,OACAA,OAAAD,QAAAD,EAAAG,QAAA,WACA,mBAAAC,eAAAC,IACAD,OAAA,WAAAJ,GACA,iBAAAC,QACAA,QAAA,gBAAAD,EAAAG,QAAA,WAEAJ,EAAA,gBAAAC,EAAAD,EAAA,YARA,CASCO,OAAA,SAAAC,GACD,mBCTA,IAAAC,EAAA,GAGA,SAAAC,EAAAC,GAGA,GAAAF,EAAAE,GACA,OAAAF,EAAAE,GAAAT,QAGA,IAAAC,EAAAM,EAAAE,GAAA,CACAC,EAAAD,EACAE,GAAA,EACAX,QAAA,IAUA,OANAY,EAAAH,GAAAI,KAAAZ,EAAAD,QAAAC,IAAAD,QAAAQ,GAGAP,EAAAU,GAAA,EAGAV,EAAAD,QA0DA,OArDAQ,EAAAM,EAAAF,EAGAJ,EAAAO,EAAAR,EAGAC,EAAAQ,EAAA,SAAAhB,EAAAiB,EAAAC,GACAV,EAAAW,EAAAnB,EAAAiB,IACAG,OAAAC,eAA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,GAMjB,OAAUvT,EAAV,KAJsB,IAAXA,EAAgB,SAAW,WAItC,KAHkB,IAAXA,EAAgB,KAAO,OAG9B,eAA2DuT,sECbjE,IAAAtR,EAAA7I,EAAA,MAE0B,SAApBqU,EAAoB0F,GAAA,IAAG7H,EAAH6H,EAAG7H,UAAH,OACxB,EAAArJ,EAAAjD,eAAA,OAAKtB,QAAQ,MAAM2W,MAAM,6BAA6B/I,UAAWA,EAAWgJ,UAAU,UACpF,EAAArS,EAAAjD,eAAA,KAAGuV,OAAO,OAAOC,KAAK,OAAOC,YAAU,YACrC,EAAAxS,EAAAjD,eAAA,WAASwV,KAAK,UAAUE,OAAO","file":"lib/accessible-autocomplete.preact.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"preact\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"preact\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Autocomplete\"] = factory(require(\"preact\"));\n\telse\n\t\troot[\"Autocomplete\"] = factory(root[\"preact\"]);\n})(window, function(__WEBPACK_EXTERNAL_MODULE__12__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 31);\n","// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self\n // eslint-disable-next-line no-new-func\n : Function('return this')();\nif (typeof __g == 'number') __g = global; // eslint-disable-line no-undef\n","var global = require('./_global');\nvar core = require('./_core');\nvar hide = require('./_hide');\nvar redefine = require('./_redefine');\nvar ctx = require('./_ctx');\nvar PROTOTYPE = 'prototype';\n\nvar $export = function (type, name, source) {\n var IS_FORCED = type & $export.F;\n var IS_GLOBAL = type & $export.G;\n var IS_STATIC = type & $export.S;\n var IS_PROTO = type & $export.P;\n var IS_BIND = type & $export.B;\n var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];\n var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});\n var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});\n var key, own, out, exp;\n if (IS_GLOBAL) source = name;\n for (key in source) {\n // contains in native\n own = !IS_FORCED && target && target[key] !== undefined;\n // export native or passed\n out = (own ? target : source)[key];\n // bind timers to global for call from export context\n exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n // extend global\n if (target) redefine(target, key, out, type & $export.U);\n // export\n if (exports[key] != out) hide(exports, key, exp);\n if (IS_PROTO && expProto[key] != out) expProto[key] = out;\n }\n};\nglobal.core = core;\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\n$export.U = 64; // safe\n$export.R = 128; // real proto method for `library`\nmodule.exports = $export;\n","module.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n","// Thank's IE8 for his funny defineProperty\nmodule.exports = !require('./_fails')(function () {\n return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;\n});\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (e) {\n return true;\n }\n};\n","var core = module.exports = { version: '2.5.7' };\nif (typeof __e == 'number') __e = core; // eslint-disable-line no-undef\n","var dP = require('./_object-dp');\nvar createDesc = require('./_property-desc');\nmodule.exports = require('./_descriptors') ? function (object, key, value) {\n return dP.f(object, key, createDesc(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","var anObject = require('./_an-object');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar toPrimitive = require('./_to-primitive');\nvar dP = Object.defineProperty;\n\nexports.f = require('./_descriptors') ? Object.defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return dP(O, P, Attributes);\n } catch (e) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","var isObject = require('./_is-object');\nmodule.exports = function (it) {\n if (!isObject(it)) throw TypeError(it + ' is not an object!');\n return it;\n};\n","var id = 0;\nvar px = Math.random();\nmodule.exports = function (key) {\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n","// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = require('./_cof');\n// eslint-disable-next-line no-prototype-builtins\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n","// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n","module.exports = __WEBPACK_EXTERNAL_MODULE__12__;","var isObject = require('./_is-object');\nvar document = require('./_global').document;\n// typeof document.createElement is 'object' in old IE\nvar is = isObject(document) && isObject(document.createElement);\nmodule.exports = function (it) {\n return is ? document.createElement(it) : {};\n};\n","var global = require('./_global');\nvar hide = require('./_hide');\nvar has = require('./_has');\nvar SRC = require('./_uid')('src');\nvar TO_STRING = 'toString';\nvar $toString = Function[TO_STRING];\nvar TPL = ('' + $toString).split(TO_STRING);\n\nrequire('./_core').inspectSource = function (it) {\n return $toString.call(it);\n};\n\n(module.exports = function (O, key, val, safe) {\n var isFunction = typeof val == 'function';\n if (isFunction) has(val, 'name') || hide(val, 'name', key);\n if (O[key] === val) return;\n if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));\n if (O === global) {\n O[key] = val;\n } else if (!safe) {\n delete O[key];\n hide(O, key, val);\n } else if (O[key]) {\n O[key] = val;\n } else {\n hide(O, key, val);\n }\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n})(Function.prototype, TO_STRING, function toString() {\n return typeof this == 'function' && this[SRC] || $toString.call(this);\n});\n","var hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n","// optional / simple context binding\nvar aFunction = require('./_a-function');\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","module.exports = function (it) {\n if (typeof it != 'function') throw TypeError(it + ' is not a function!');\n return it;\n};\n","// 19.1.2.14 / 15.2.3.14 Object.keys(O)\nvar $keys = require('./_object-keys-internal');\nvar enumBugKeys = require('./_enum-bug-keys');\n\nmodule.exports = Object.keys || function keys(O) {\n return $keys(O, enumBugKeys);\n};\n","// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = require('./_iobject');\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return IObject(defined(it));\n};\n","var toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n","// false -> Array#indexOf\n// true -> Array#includes\nvar toIObject = require('./_to-iobject');\nvar toLength = require('./_to-length');\nvar toAbsoluteIndex = require('./_to-absolute-index');\nmodule.exports = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) if (IS_INCLUDES || index in O) {\n if (O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n","// 7.1.15 ToLength\nvar toInteger = require('./_to-integer');\nvar min = Math.min;\nmodule.exports = function (it) {\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n","// 7.1.4 ToInteger\nvar ceil = Math.ceil;\nvar floor = Math.floor;\nmodule.exports = function (it) {\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n","var shared = require('./_shared')('keys');\nvar uid = require('./_uid');\nmodule.exports = function (key) {\n return shared[key] || (shared[key] = uid(key));\n};\n","var core = require('./_core');\nvar global = require('./_global');\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || (global[SHARED] = {});\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: core.version,\n mode: require('./_library') ? 'pure' : 'global',\n copyright: '© 2018 Denis Pushkarev (zloirock.ru)'\n});\n","// IE 8- don't enum bug keys\nmodule.exports = (\n 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'\n).split(',');\n","// 7.1.13 ToObject(argument)\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return Object(defined(it));\n};\n","var $export = require('./_export');\n// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\n$export($export.S, 'Object', { create: require('./_object-create') });\n","var store = require('./_shared')('wks');\nvar uid = require('./_uid');\nvar Symbol = require('./_global').Symbol;\nvar USE_SYMBOL = typeof Symbol == 'function';\n\nvar $exports = module.exports = function (name) {\n return store[name] || (store[name] =\n USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));\n};\n\n$exports.store = store;\n","'use strict';\nvar fails = require('./_fails');\n\nmodule.exports = function (method, arg) {\n return !!method && fails(function () {\n // eslint-disable-next-line no-useless-call\n arg ? method.call(null, function () { /* empty */ }, 1) : method.call(null);\n });\n};\n","import { createElement, Component } from 'preact' /** @jsx createElement */\nimport Status from './status'\nimport DropdownArrowDown from './dropdown-arrow-down'\n\nconst IS_PREACT = process.env.COMPONENT_LIBRARY === 'PREACT'\nconst IS_REACT = process.env.COMPONENT_LIBRARY === 'REACT'\n\nconst keyCodes = {\n 13: 'enter',\n 27: 'escape',\n 32: 'space',\n 38: 'up',\n 40: 'down'\n}\n\n// Based on https://github.com/ausi/Feature-detection-technique-for-pointer-events\nconst hasPointerEvents = (() => {\n const element = document.createElement('x')\n element.style.cssText = 'pointer-events:auto'\n return element.style.pointerEvents === 'auto'\n})()\n\nfunction isIosDevice () {\n return !!(navigator.userAgent.match(/(iPod|iPhone|iPad)/g) && navigator.userAgent.match(/AppleWebKit/g))\n}\n\nfunction isPrintableKeyCode (keyCode) {\n return (\n (keyCode > 47 && keyCode < 58) || // number keys\n keyCode === 32 || keyCode === 8 || // spacebar or backspace\n (keyCode > 64 && keyCode < 91) || // letter keys\n (keyCode > 95 && keyCode < 112) || // numpad keys\n (keyCode > 185 && keyCode < 193) || // ;=,-./` (in order)\n (keyCode > 218 && keyCode < 223) // [\\]' (in order)\n )\n}\n\n// Preact does not implement onChange on inputs, but React does.\nfunction onChangeCrossLibrary (handler) {\n if (IS_PREACT) { return { onInput: handler } }\n if (IS_REACT) { return { onChange: handler } }\n}\n\nexport default class Autocomplete extends Component {\n static defaultProps = {\n autoselect: false,\n cssNamespace: 'autocomplete',\n defaultValue: '',\n displayMenu: 'inline',\n minLength: 0,\n name: 'input-autocomplete',\n placeholder: '',\n onConfirm: () => {},\n confirmOnBlur: true,\n showNoOptionsFound: true,\n showAllValues: false,\n required: false,\n tNoResults: () => 'No results found',\n dropdownArrow: DropdownArrowDown\n }\n\n elementReferences = {}\n\n constructor (props) {\n super(props)\n\n this.state = {\n focused: null,\n hovered: null,\n clicked: null,\n menuOpen: false,\n options: props.defaultValue ? [props.defaultValue] : [],\n query: props.defaultValue,\n selected: null\n }\n\n this.handleComponentBlur = this.handleComponentBlur.bind(this)\n this.handleKeyDown = this.handleKeyDown.bind(this)\n this.handleUpArrow = this.handleUpArrow.bind(this)\n this.handleDownArrow = this.handleDownArrow.bind(this)\n this.handleEnter = this.handleEnter.bind(this)\n this.handlePrintableKey = this.handlePrintableKey.bind(this)\n\n this.handleListMouseLeave = this.handleListMouseLeave.bind(this)\n\n this.handleOptionBlur = this.handleOptionBlur.bind(this)\n this.handleOptionClick = this.handleOptionClick.bind(this)\n this.handleOptionFocus = this.handleOptionFocus.bind(this)\n this.handleOptionMouseEnter = this.handleOptionMouseEnter.bind(this)\n\n this.handleInputBlur = this.handleInputBlur.bind(this)\n this.handleInputChange = this.handleInputChange.bind(this)\n this.handleInputFocus = this.handleInputFocus.bind(this)\n\n this.pollInputElement = this.pollInputElement.bind(this)\n this.getDirectInputChanges = this.getDirectInputChanges.bind(this)\n }\n\n componentDidMount () {\n this.pollInputElement()\n }\n\n componentWillUnmount () {\n clearTimeout(this.$pollInput)\n clearTimeout(this.$blurInput)\n }\n\n // Applications like Dragon NaturallySpeaking will modify the\n // `input` field by directly changing its `.value`. These events\n // don't trigger our JavaScript event listeners, so we need to poll\n // to handle when and if they occur.\n pollInputElement () {\n this.getDirectInputChanges()\n this.$pollInput = setTimeout(() => {\n this.pollInputElement()\n }, 100)\n }\n\n getDirectInputChanges () {\n const inputReference = this.elementReferences[-1]\n const queryHasChanged = inputReference && inputReference.value !== this.state.query\n\n if (queryHasChanged) {\n this.handleInputChange({ target: { value: inputReference.value } })\n }\n }\n\n componentDidUpdate (prevProps, prevState) {\n const { focused, clicked } = this.state\n const componentLostFocus = focused === null\n const focusedChanged = prevState.focused !== focused\n const focusDifferentElement = (focusedChanged && !componentLostFocus) || clicked !== null\n if (focusDifferentElement) {\n this.elementReferences[focused].focus()\n }\n const focusedInput = focused === -1\n const componentGainedFocus = focusedChanged && prevState.focused === null\n const selectAllText = focusedInput && componentGainedFocus\n if (selectAllText) {\n const inputElement = this.elementReferences[focused]\n inputElement.setSelectionRange(0, inputElement.value.length)\n }\n }\n\n hasAutoselect () {\n return isIosDevice() ? false : this.props.autoselect\n }\n\n // This template is used when converting from a state.options object into a state.query.\n templateInputValue (value) {\n const inputValueTemplate = this.props.templates && this.props.templates.inputValue\n return inputValueTemplate ? inputValueTemplate(value) : value\n }\n\n // This template is used when displaying results / suggestions.\n templateSuggestion (value) {\n const suggestionTemplate = this.props.templates && this.props.templates.suggestion\n return suggestionTemplate ? suggestionTemplate(value) : value\n }\n\n handleComponentBlur (newState) {\n const { options, query, selected } = this.state\n let newQuery\n if (this.props.confirmOnBlur) {\n newQuery = newState.query || query\n this.props.onConfirm(options[selected])\n } else {\n newQuery = query\n }\n this.setState({\n focused: null,\n clicked: null,\n menuOpen: newState.menuOpen || false,\n query: newQuery,\n selected: null\n })\n }\n\n handleListMouseLeave (event) {\n this.setState({\n hovered: null\n })\n }\n\n handleOptionBlur (event, index) {\n const { focused, clicked, menuOpen, options, selected } = this.state\n const focusingOutsideComponent = event.relatedTarget === null && clicked === null\n const focusingInput = event.relatedTarget === this.elementReferences[-1]\n const focusingAnotherOption = focused !== index && focused !== -1\n const blurComponent = (!focusingAnotherOption && focusingOutsideComponent) || !(focusingAnotherOption || focusingInput)\n if (blurComponent) {\n const keepMenuOpen = menuOpen && isIosDevice()\n this.handleComponentBlur({\n menuOpen: keepMenuOpen,\n query: this.templateInputValue(options[selected])\n })\n }\n }\n\n handleInputBlur (event) {\n const { focused, menuOpen, options, query, selected } = this.state\n const focusingAnOption = focused !== -1\n clearTimeout(this.$blurInput)\n if (!focusingAnOption) {\n const keepMenuOpen = menuOpen && isIosDevice()\n const newQuery = isIosDevice() ? query : this.templateInputValue(options[selected])\n this.$blurInput = setTimeout(() => this.handleComponentBlur({\n menuOpen: keepMenuOpen,\n query: newQuery\n }), 200)\n }\n }\n\n handleInputChange (event) {\n const { minLength, source, showAllValues } = this.props\n const autoselect = this.hasAutoselect()\n const query = event.target.value\n const queryEmpty = query.length === 0\n const queryChanged = this.state.query.length !== query.length\n const queryLongEnough = query.length >= minLength\n\n this.setState({ query })\n\n const searchForOptions = showAllValues || (!queryEmpty && queryChanged && queryLongEnough)\n if (searchForOptions) {\n source(query, (options) => {\n const optionsAvailable = options.length > 0\n this.setState({\n menuOpen: optionsAvailable,\n options,\n selected: (autoselect && optionsAvailable) ? 0 : -1\n })\n })\n } else if (queryEmpty || !queryLongEnough) {\n this.setState({\n menuOpen: false,\n options: []\n })\n }\n }\n\n handleInputClick (event) {\n this.handleInputChange(event)\n }\n\n handleInputFocus (event) {\n this.setState({\n focused: -1\n })\n }\n\n handleOptionFocus (index) {\n this.setState({\n focused: index,\n hovered: null,\n selected: index\n })\n }\n\n handleOptionMouseEnter (event, index) {\n // iOS Safari prevents click event if mouseenter adds hover background colour\n // See: https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html#//apple_ref/doc/uid/TP40006511-SW4\n if (!isIosDevice()) {\n this.setState({\n hovered: index\n })\n }\n }\n\n handleOptionClick (event, index) {\n const selectedOption = this.state.options[index]\n const newQuery = this.templateInputValue(selectedOption)\n clearTimeout(this.$blurInput)\n this.props.onConfirm(selectedOption)\n this.setState({\n focused: -1,\n clicked: index,\n hovered: null,\n menuOpen: false,\n query: newQuery,\n selected: -1\n })\n this.forceUpdate()\n }\n\n handleUpArrow (event) {\n event.preventDefault()\n const { menuOpen, selected } = this.state\n const isNotAtTop = selected !== -1\n const allowMoveUp = isNotAtTop && menuOpen\n if (allowMoveUp) {\n this.handleOptionFocus(selected - 1)\n }\n }\n\n handleDownArrow (event) {\n event.preventDefault()\n // if not open, open\n if (this.props.showAllValues && this.state.menuOpen === false) {\n event.preventDefault()\n this.props.source('', (options) => {\n this.setState({\n menuOpen: true,\n options,\n selected: 0,\n focused: 0,\n hovered: null\n })\n })\n } else if (this.state.menuOpen === true) {\n const { menuOpen, options, selected } = this.state\n const isNotAtBottom = selected !== options.length - 1\n const allowMoveDown = isNotAtBottom && menuOpen\n if (allowMoveDown) {\n this.handleOptionFocus(selected + 1)\n }\n }\n }\n\n handleSpace (event) {\n // if not open, open\n if (this.props.showAllValues && this.state.menuOpen === false && this.state.query === '') {\n event.preventDefault()\n this.props.source('', (options) => {\n this.setState({\n menuOpen: true,\n options\n })\n })\n }\n const focusIsOnOption = this.state.focused !== -1\n if (focusIsOnOption) {\n event.preventDefault()\n this.handleOptionClick(event, this.state.focused)\n }\n }\n\n handleEnter (event) {\n if (this.state.menuOpen) {\n event.preventDefault()\n const hasSelectedOption = this.state.selected >= 0\n if (hasSelectedOption) {\n this.handleOptionClick(event, this.state.selected)\n }\n }\n }\n\n handlePrintableKey (event) {\n const inputElement = this.elementReferences[-1]\n const eventIsOnInput = event.target === inputElement\n if (!eventIsOnInput) {\n // FIXME: This would be better if it was in componentDidUpdate,\n // but using setState to trigger that seems to not work correctly\n // in preact@8.1.0.\n inputElement.focus()\n }\n }\n\n handleKeyDown (event) {\n switch (keyCodes[event.keyCode]) {\n case 'up':\n this.handleUpArrow(event)\n break\n case 'down':\n this.handleDownArrow(event)\n break\n case 'space':\n this.handleSpace(event)\n break\n case 'enter':\n this.handleEnter(event)\n break\n case 'escape':\n this.handleComponentBlur({\n query: this.state.query\n })\n break\n default:\n if (isPrintableKeyCode(event.keyCode)) {\n this.handlePrintableKey(event)\n }\n break\n }\n }\n\n render () {\n const {\n cssNamespace,\n displayMenu,\n id,\n minLength,\n name,\n placeholder,\n required,\n showAllValues,\n tNoResults,\n tStatusQueryTooShort,\n tStatusNoResults,\n tStatusSelectedOption,\n tStatusResults,\n dropdownArrow: dropdownArrowFactory\n } = this.props\n const { focused, hovered, menuOpen, options, query, selected } = this.state\n const autoselect = this.hasAutoselect()\n\n const inputFocused = focused === -1\n const noOptionsAvailable = options.length === 0\n const queryNotEmpty = query.length !== 0\n const queryLongEnough = query.length >= minLength\n const showNoOptionsFound = this.props.showNoOptionsFound &&\n inputFocused && noOptionsAvailable && queryNotEmpty && queryLongEnough\n\n const wrapperClassName = `${cssNamespace}__wrapper`\n\n const inputClassName = `${cssNamespace}__input`\n const componentIsFocused = focused !== null\n const inputModifierFocused = componentIsFocused ? ` ${inputClassName}--focused` : ''\n const inputModifierType = this.props.showAllValues ? ` ${inputClassName}--show-all-values` : ` ${inputClassName}--default`\n const dropdownArrowClassName = `${cssNamespace}__dropdown-arrow-down`\n const optionFocused = focused !== -1 && focused !== null\n\n const menuClassName = `${cssNamespace}__menu`\n const menuModifierDisplayMenu = `${menuClassName}--${displayMenu}`\n const menuIsVisible = menuOpen || showNoOptionsFound\n const menuModifierVisibility = `${menuClassName}--${(menuIsVisible) ? 'visible' : 'hidden'}`\n\n const optionClassName = `${cssNamespace}__option`\n\n const hintClassName = `${cssNamespace}__hint`\n const selectedOptionText = this.templateInputValue(options[selected])\n const optionBeginsWithQuery = selectedOptionText &&\n selectedOptionText.toLowerCase().indexOf(query.toLowerCase()) === 0\n const hintValue = (optionBeginsWithQuery && autoselect)\n ? query + selectedOptionText.substr(query.length)\n : ''\n const showHint = hasPointerEvents && hintValue\n\n let dropdownArrow\n\n // we only need a dropdown arrow if showAllValues is set to a truthy value\n if (showAllValues) {\n dropdownArrow = dropdownArrowFactory({ className: dropdownArrowClassName })\n\n // if the factory returns a string we'll render this as HTML (usage w/o (P)React)\n if (typeof dropdownArrow === 'string') {\n dropdownArrow = <div className={`${cssNamespace}__dropdown-arrow-down-wrapper`} dangerouslySetInnerHTML={{ __html: dropdownArrow }} />\n }\n }\n\n return (\n <div className={wrapperClassName} onKeyDown={this.handleKeyDown} role='combobox' aria-expanded={menuOpen ? 'true' : 'false'}>\n <Status\n length={options.length}\n queryLength={query.length}\n minQueryLength={minLength}\n selectedOption={this.templateInputValue(options[selected])}\n selectedOptionIndex={selected}\n tQueryTooShort={tStatusQueryTooShort}\n tNoResults={tStatusNoResults}\n tSelectedOption={tStatusSelectedOption}\n tResults={tStatusResults}\n />\n\n {showHint && (\n <span><input className={hintClassName} readonly tabIndex='-1' value={hintValue} /></span>\n )}\n\n <input\n aria-activedescendant={optionFocused ? `${id}__option--${focused}` : false}\n aria-owns={`${id}__listbox`}\n autoComplete='off'\n className={`${inputClassName}${inputModifierFocused}${inputModifierType}`}\n id={id}\n onClick={(event) => this.handleInputClick(event)}\n onBlur={this.handleInputBlur}\n {...onChangeCrossLibrary(this.handleInputChange)}\n onFocus={this.handleInputFocus}\n name={name}\n placeholder={placeholder}\n ref={(inputElement) => { this.elementReferences[-1] = inputElement }}\n type='text'\n role='textbox'\n required={required}\n value={query}\n />\n\n {dropdownArrow}\n\n <ul\n className={`${menuClassName} ${menuModifierDisplayMenu} ${menuModifierVisibility}`}\n onMouseLeave={(event) => this.handleListMouseLeave(event)}\n id={`${id}__listbox`}\n role='listbox'\n >\n {options.map((option, index) => {\n const showFocused = focused === -1 ? selected === index : focused === index\n const optionModifierFocused = showFocused && hovered === null ? ` ${optionClassName}--focused` : ''\n const optionModifierOdd = (index % 2) ? ` ${optionClassName}--odd` : ''\n\n return (\n <li\n aria-selected={focused === index}\n className={`${optionClassName}${optionModifierFocused}${optionModifierOdd}`}\n dangerouslySetInnerHTML={{ __html: this.templateSuggestion(option) }}\n id={`${id}__option--${index}`}\n key={index}\n onBlur={(event) => this.handleOptionBlur(event, index)}\n onClick={(event) => this.handleOptionClick(event, index)}\n onMouseEnter={(event) => this.handleOptionMouseEnter(event, index)}\n ref={(optionEl) => { this.elementReferences[index] = optionEl }}\n role='option'\n tabIndex='-1'\n />\n )\n })}\n\n {showNoOptionsFound && (\n <li className={`${optionClassName} ${optionClassName}--no-results`}>{tNoResults()}</li>\n )}\n </ul>\n </div>\n )\n }\n}\n","// 19.1.3.1 Object.assign(target, source)\nvar $export = require('./_export');\n\n$export($export.S + $export.F, 'Object', { assign: require('./_object-assign') });\n","module.exports = !require('./_descriptors') && !require('./_fails')(function () {\n return Object.defineProperty(require('./_dom-create')('div'), 'a', { get: function () { return 7; } }).a != 7;\n});\n","// 7.1.1 ToPrimitive(input [, PreferredType])\nvar isObject = require('./_is-object');\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (it, S) {\n if (!isObject(it)) return it;\n var fn, val;\n if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;\n if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","'use strict';\n// 19.1.2.1 Object.assign(target, source, ...)\nvar getKeys = require('./_object-keys');\nvar gOPS = require('./_object-gops');\nvar pIE = require('./_object-pie');\nvar toObject = require('./_to-object');\nvar IObject = require('./_iobject');\nvar $assign = Object.assign;\n\n// should work with symbols and should have deterministic property order (V8 bug)\nmodule.exports = !$assign || require('./_fails')(function () {\n var A = {};\n var B = {};\n // eslint-disable-next-line no-undef\n var S = Symbol();\n var K = 'abcdefghijklmnopqrst';\n A[S] = 7;\n K.split('').forEach(function (k) { B[k] = k; });\n return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;\n}) ? function assign(target, source) { // eslint-disable-line no-unused-vars\n var T = toObject(target);\n var aLen = arguments.length;\n var index = 1;\n var getSymbols = gOPS.f;\n var isEnum = pIE.f;\n while (aLen > index) {\n var S = IObject(arguments[index++]);\n var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);\n var length = keys.length;\n var j = 0;\n var key;\n while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key];\n } return T;\n} : $assign;\n","var has = require('./_has');\nvar toIObject = require('./_to-iobject');\nvar arrayIndexOf = require('./_array-includes')(false);\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\n\nmodule.exports = function (object, names) {\n var O = toIObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (has(O, key = names[i++])) {\n ~arrayIndexOf(result, key) || result.push(key);\n }\n return result;\n};\n","var toInteger = require('./_to-integer');\nvar max = Math.max;\nvar min = Math.min;\nmodule.exports = function (index, length) {\n index = toInteger(index);\n return index < 0 ? max(index + length, 0) : min(index, length);\n};\n","module.exports = false;\n","exports.f = Object.getOwnPropertySymbols;\n","exports.f = {}.propertyIsEnumerable;\n","// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\nvar anObject = require('./_an-object');\nvar dPs = require('./_object-dps');\nvar enumBugKeys = require('./_enum-bug-keys');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar Empty = function () { /* empty */ };\nvar PROTOTYPE = 'prototype';\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar createDict = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = require('./_dom-create')('iframe');\n var i = enumBugKeys.length;\n var lt = '<';\n var gt = '>';\n var iframeDocument;\n iframe.style.display = 'none';\n require('./_html').appendChild(iframe);\n iframe.src = 'javascript:'; // eslint-disable-line no-script-url\n // createDict = iframe.contentWindow.Object;\n // html.removeChild(iframe);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);\n iframeDocument.close();\n createDict = iframeDocument.F;\n while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];\n return createDict();\n};\n\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n Empty[PROTOTYPE] = anObject(O);\n result = new Empty();\n Empty[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = createDict();\n return Properties === undefined ? result : dPs(result, Properties);\n};\n","var dP = require('./_object-dp');\nvar anObject = require('./_an-object');\nvar getKeys = require('./_object-keys');\n\nmodule.exports = require('./_descriptors') ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var keys = getKeys(Properties);\n var length = keys.length;\n var i = 0;\n var P;\n while (length > i) dP.f(O, P = keys[i++], Properties[P]);\n return O;\n};\n","var document = require('./_global').document;\nmodule.exports = document && document.documentElement;\n","'use strict';\nvar $export = require('./_export');\nvar $map = require('./_array-methods')(1);\n\n$export($export.P + $export.F * !require('./_strict-method')([].map, true), 'Array', {\n // 22.1.3.15 / 15.4.4.19 Array.prototype.map(callbackfn [, thisArg])\n map: function map(callbackfn /* , thisArg */) {\n return $map(this, callbackfn, arguments[1]);\n }\n});\n","// 0 -> Array#forEach\n// 1 -> Array#map\n// 2 -> Array#filter\n// 3 -> Array#some\n// 4 -> Array#every\n// 5 -> Array#find\n// 6 -> Array#findIndex\nvar ctx = require('./_ctx');\nvar IObject = require('./_iobject');\nvar toObject = require('./_to-object');\nvar toLength = require('./_to-length');\nvar asc = require('./_array-species-create');\nmodule.exports = function (TYPE, $create) {\n var IS_MAP = TYPE == 1;\n var IS_FILTER = TYPE == 2;\n var IS_SOME = TYPE == 3;\n var IS_EVERY = TYPE == 4;\n var IS_FIND_INDEX = TYPE == 6;\n var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;\n var create = $create || asc;\n return function ($this, callbackfn, that) {\n var O = toObject($this);\n var self = IObject(O);\n var f = ctx(callbackfn, that, 3);\n var length = toLength(self.length);\n var index = 0;\n var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;\n var val, res;\n for (;length > index; index++) if (NO_HOLES || index in self) {\n val = self[index];\n res = f(val, index, O);\n if (TYPE) {\n if (IS_MAP) result[index] = res; // map\n else if (res) switch (TYPE) {\n case 3: return true; // some\n case 5: return val; // find\n case 6: return index; // findIndex\n case 2: result.push(val); // filter\n } else if (IS_EVERY) return false; // every\n }\n }\n return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;\n };\n};\n","// 9.4.2.3 ArraySpeciesCreate(originalArray, length)\nvar speciesConstructor = require('./_array-species-constructor');\n\nmodule.exports = function (original, length) {\n return new (speciesConstructor(original))(length);\n};\n","var isObject = require('./_is-object');\nvar isArray = require('./_is-array');\nvar SPECIES = require('./_wks')('species');\n\nmodule.exports = function (original) {\n var C;\n if (isArray(original)) {\n C = original.constructor;\n // cross-realm fallback\n if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;\n if (isObject(C)) {\n C = C[SPECIES];\n if (C === null) C = undefined;\n }\n } return C === undefined ? Array : C;\n};\n","// 7.2.2 IsArray(argument)\nvar cof = require('./_cof');\nmodule.exports = Array.isArray || function isArray(arg) {\n return cof(arg) == 'Array';\n};\n","'use strict';\nvar $export = require('./_export');\nvar $indexOf = require('./_array-includes')(false);\nvar $native = [].indexOf;\nvar NEGATIVE_ZERO = !!$native && 1 / [1].indexOf(1, -0) < 0;\n\n$export($export.P + $export.F * (NEGATIVE_ZERO || !require('./_strict-method')($native)), 'Array', {\n // 22.1.3.11 / 15.4.4.14 Array.prototype.indexOf(searchElement [, fromIndex])\n indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {\n return NEGATIVE_ZERO\n // convert -0 to +0\n ? $native.apply(this, arguments) || 0\n : $indexOf(this, searchElement, arguments[1]);\n }\n});\n","var dP = require('./_object-dp').f;\nvar FProto = Function.prototype;\nvar nameRE = /^\\s*function ([^ (]*)/;\nvar NAME = 'name';\n\n// 19.2.4.2 name\nNAME in FProto || require('./_descriptors') && dP(FProto, NAME, {\n configurable: true,\n get: function () {\n try {\n return ('' + this).match(nameRE)[1];\n } catch (e) {\n return '';\n }\n }\n});\n","// 19.2.3.2 / 15.3.4.5 Function.prototype.bind(thisArg, args...)\nvar $export = require('./_export');\n\n$export($export.P, 'Function', { bind: require('./_bind') });\n","'use strict';\nvar aFunction = require('./_a-function');\nvar isObject = require('./_is-object');\nvar invoke = require('./_invoke');\nvar arraySlice = [].slice;\nvar factories = {};\n\nvar construct = function (F, len, args) {\n if (!(len in factories)) {\n for (var n = [], i = 0; i < len; i++) n[i] = 'a[' + i + ']';\n // eslint-disable-next-line no-new-func\n factories[len] = Function('F,a', 'return new F(' + n.join(',') + ')');\n } return factories[len](F, args);\n};\n\nmodule.exports = Function.bind || function bind(that /* , ...args */) {\n var fn = aFunction(this);\n var partArgs = arraySlice.call(arguments, 1);\n var bound = function (/* args... */) {\n var args = partArgs.concat(arraySlice.call(arguments));\n return this instanceof bound ? construct(fn, args.length, args) : invoke(fn, args, that);\n };\n if (isObject(fn.prototype)) bound.prototype = fn.prototype;\n return bound;\n};\n","// fast apply, http://jsperf.lnkit.com/fast-apply/5\nmodule.exports = function (fn, args, that) {\n var un = that === undefined;\n switch (args.length) {\n case 0: return un ? fn()\n : fn.call(that);\n case 1: return un ? fn(args[0])\n : fn.call(that, args[0]);\n case 2: return un ? fn(args[0], args[1])\n : fn.call(that, args[0], args[1]);\n case 3: return un ? fn(args[0], args[1], args[2])\n : fn.call(that, args[0], args[1], args[2]);\n case 4: return un ? fn(args[0], args[1], args[2], args[3])\n : fn.call(that, args[0], args[1], args[2], args[3]);\n } return fn.apply(that, args);\n};\n","// @@match logic\nrequire('./_fix-re-wks')('match', 1, function (defined, MATCH, $match) {\n // 21.1.3.11 String.prototype.match(regexp)\n return [function match(regexp) {\n 'use strict';\n var O = defined(this);\n var fn = regexp == undefined ? undefined : regexp[MATCH];\n return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[MATCH](String(O));\n }, $match];\n});\n","'use strict';\nvar hide = require('./_hide');\nvar redefine = require('./_redefine');\nvar fails = require('./_fails');\nvar defined = require('./_defined');\nvar wks = require('./_wks');\n\nmodule.exports = function (KEY, length, exec) {\n var SYMBOL = wks(KEY);\n var fns = exec(defined, SYMBOL, ''[KEY]);\n var strfn = fns[0];\n var rxfn = fns[1];\n if (fails(function () {\n var O = {};\n O[SYMBOL] = function () { return 7; };\n return ''[KEY](O) != 7;\n })) {\n redefine(String.prototype, KEY, strfn);\n hide(RegExp.prototype, SYMBOL, length == 2\n // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)\n // 21.2.5.11 RegExp.prototype[@@split](string, limit)\n ? function (string, arg) { return rxfn.call(string, this, arg); }\n // 21.2.5.6 RegExp.prototype[@@match](string)\n // 21.2.5.9 RegExp.prototype[@@search](string)\n : function (string) { return rxfn.call(string, this); }\n );\n }\n};\n","import { createElement, Component } from 'preact' /** @jsx createElement */\n\nexport default class Status extends Component {\n static defaultProps = {\n tQueryTooShort: (minQueryLength) => `Type in ${minQueryLength} or more characters for results.`,\n tNoResults: () => 'No search results.',\n tSelectedOption: (selectedOption, length, index) => `${selectedOption} (${index + 1} of ${length}) is selected.`,\n tResults: (length, contentSelectedOption) => {\n const words = {\n result: (length === 1) ? 'result' : 'results',\n is: (length === 1) ? 'is' : 'are'\n }\n\n return `${length} ${words.result} ${words.is} available. ${contentSelectedOption}`\n }\n };\n\n state = {\n bump: false\n }\n\n componentWillReceiveProps ({ queryLength }) {\n const hasChanged = queryLength !== this.props.queryLength\n if (hasChanged) {\n this.setState(({ bump }) => ({ bump: !bump }))\n }\n }\n\n render () {\n const {\n length,\n queryLength,\n minQueryLength,\n selectedOption,\n selectedOptionIndex,\n tQueryTooShort,\n tNoResults,\n tSelectedOption,\n tResults\n } = this.props\n const { bump } = this.state\n\n const queryTooShort = queryLength < minQueryLength\n const noResults = length === 0\n\n const contentSelectedOption = selectedOption\n ? tSelectedOption(selectedOption, length, selectedOptionIndex)\n : ''\n\n let content = null\n if (queryTooShort) {\n content = tQueryTooShort(minQueryLength)\n } else if (noResults) {\n content = tNoResults()\n } else {\n content = tResults(length, contentSelectedOption)\n }\n\n return <div\n aria-atomic='true'\n aria-live='polite'\n role='status'\n style={{\n border: '0',\n clip: 'rect(0 0 0 0)',\n height: '1px',\n marginBottom: '-1px',\n marginRight: '-1px',\n overflow: 'hidden',\n padding: '0',\n position: 'absolute',\n whiteSpace: 'nowrap',\n width: '1px'\n }}\n >\n {content}\n <span>{bump ? ',' : ',,'}</span>\n </div>\n }\n}\n","import { createElement } from 'preact' /** @jsx createElement */\n\nconst DropdownArrowDown = ({ className }) => (\n <svg version='1.1' xmlns='http://www.w3.org/2000/svg' className={className} focusable='false'>\n <g stroke='none' fill='none' fill-rule='evenodd'>\n <polygon fill='#000000' points='0 0 22 0 11 17' />\n </g>\n </svg>\n)\n\nexport default DropdownArrowDown\n"],"sourceRoot":""}
|
1
|
+
{"version":3,"sources":["webpack://Autocomplete/webpack/universalModuleDefinition","webpack://Autocomplete/webpack/bootstrap","webpack://Autocomplete/../node_modules/core-js/modules/_export.js","webpack://Autocomplete/../node_modules/core-js/modules/_global.js","webpack://Autocomplete/../node_modules/core-js/modules/_is-object.js","webpack://Autocomplete/../node_modules/core-js/modules/_descriptors.js","webpack://Autocomplete/../node_modules/core-js/modules/_fails.js","webpack://Autocomplete/../node_modules/core-js/modules/_core.js","webpack://Autocomplete/../node_modules/core-js/modules/_hide.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-dp.js","webpack://Autocomplete/../node_modules/core-js/modules/_an-object.js","webpack://Autocomplete/../node_modules/core-js/modules/_uid.js","webpack://Autocomplete/../node_modules/core-js/modules/_iobject.js","webpack://Autocomplete/../node_modules/core-js/modules/_defined.js","webpack://Autocomplete/../node_modules/core-js/modules/_strict-method.js","webpack://Autocomplete/external {\"amd\":\"preact\",\"commonjs\":\"preact\",\"commonjs2\":\"preact\",\"root\":\"preact\"}","webpack://Autocomplete/../node_modules/core-js/modules/_dom-create.js","webpack://Autocomplete/../node_modules/core-js/modules/_redefine.js","webpack://Autocomplete/../node_modules/core-js/modules/_has.js","webpack://Autocomplete/../node_modules/core-js/modules/_ctx.js","webpack://Autocomplete/../node_modules/core-js/modules/_a-function.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-keys.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-iobject.js","webpack://Autocomplete/../node_modules/core-js/modules/_cof.js","webpack://Autocomplete/../node_modules/core-js/modules/_array-includes.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-length.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-integer.js","webpack://Autocomplete/../node_modules/core-js/modules/_shared-key.js","webpack://Autocomplete/../node_modules/core-js/modules/_shared.js","webpack://Autocomplete/../node_modules/core-js/modules/_enum-bug-keys.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-object.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.object.create.js","webpack://Autocomplete/../node_modules/core-js/modules/_array-methods.js","webpack://Autocomplete/../node_modules/core-js/modules/_wks.js","webpack://Autocomplete/./autocomplete.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.object.assign.js","webpack://Autocomplete/../node_modules/core-js/modules/_ie8-dom-define.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-primitive.js","webpack://Autocomplete/../node_modules/core-js/modules/_property-desc.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-assign.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-keys-internal.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-absolute-index.js","webpack://Autocomplete/../node_modules/core-js/modules/_library.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-gops.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-pie.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-create.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-dps.js","webpack://Autocomplete/../node_modules/core-js/modules/_html.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.array.map.js","webpack://Autocomplete/../node_modules/core-js/modules/_array-species-create.js","webpack://Autocomplete/../node_modules/core-js/modules/_array-species-constructor.js","webpack://Autocomplete/../node_modules/core-js/modules/_is-array.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.array.index-of.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.function.name.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.array.filter.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.function.bind.js","webpack://Autocomplete/../node_modules/core-js/modules/_bind.js","webpack://Autocomplete/../node_modules/core-js/modules/_invoke.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.regexp.match.js","webpack://Autocomplete/../node_modules/core-js/modules/_fix-re-wks.js","webpack://Autocomplete/./status.js","webpack://Autocomplete/./dropdown-arrow-down.js"],"names":["webpackUniversalModuleDefinition","root","factory","exports","module","require","define","amd","window","__WEBPACK_EXTERNAL_MODULE__13__","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","global","core","hide","redefine","ctx","PROTOTYPE","$export","type","source","own","out","exp","IS_FORCED","F","IS_GLOBAL","G","IS_STATIC","S","IS_PROTO","P","IS_BIND","B","target","expProto","undefined","Function","U","W","R","Math","self","__g","it","a","exec","e","version","__e","dP","createDesc","f","anObject","IE8_DOM_DEFINE","toPrimitive","O","Attributes","TypeError","isObject","id","px","random","concat","toString","cof","propertyIsEnumerable","split","fails","method","arg","document","is","createElement","has","SRC","TO_STRING","$toString","TPL","inspectSource","val","safe","isFunction","join","String","this","aFunction","fn","that","length","b","apply","arguments","$keys","enumBugKeys","keys","IObject","defined","slice","toIObject","toLength","toAbsoluteIndex","IS_INCLUDES","$this","el","fromIndex","index","toInteger","min","ceil","floor","isNaN","shared","uid","SHARED","store","push","copyright","toObject","asc","TYPE","$create","IS_MAP","IS_FILTER","IS_SOME","IS_EVERY","IS_FIND_INDEX","NO_HOLES","callbackfn","res","result","USE_SYMBOL","_preact","_status","_interopRequireDefault","_dropdownArrowDown","element","keyCodes","13","27","32","38","40","hasPointerEvents","style","cssText","pointerEvents","isIosDevice","navigator","userAgent","match","Autocomplete","props","_this","_Component","elementReferences","state","focused","hovered","clicked","menuOpen","options","defaultValue","selectedOptions","query","selected","handleComponentBlur","_assertThisInitialized","handleKeyDown","handleUpArrow","handleDownArrow","handleEnter","handlePrintableKey","handleListMouseLeave","handleOptionBlur","handleOptionClick","handleOptionFocus","handleOptionMouseEnter","handleSelectedOptionClick","handleSelectedOptionKeyDown","handleInputBlur","handleInputChange","handleInputFocus","pollInputElement","getDirectInputChanges","componentDidMount","componentWillUnmount","clearTimeout","$pollInput","$blurInput","_this2","setTimeout","inputReference","componentDidUpdate","prevProps","prevState","_this$state","componentLostFocus","focusedChanged","focus","focusedInput","componentGainedFocus","inputElement","setSelectionRange","hasAutoselect","autoselect","templateInputValue","inputValueTemplate","templates","inputValue","templateSuggestion","suggestionTemplate","suggestion","newState","newQuery","_this$state2","confirmOnBlur","onConfirm","setState","selectElement","multiple","event","_this$state3","focusingOutsideComponent","relatedTarget","focusingInput","focusingAnotherOption","keepMenuOpen","_this3","_this$state4","focusingAnOption","_this4","_this$props","minLength","showAllValues","queryEmpty","queryChanged","queryLongEnough","optionsAvailable","handleInputClick","selectedOption","updateMultiselect","forceUpdate","addedSelectOption","filter","option","textContent","availableOptions","removedOption","removedSelectOption","keyCode","preventDefault","_this$state5","_this5","_this$state6","handleSpace","_this6","isPrintableKeyCode","render","dropdownArrow","_this7","_this$props2","cssNamespace","displayMenu","placeholder","required","tNoResults","tStatusQueryTooShort","tStatusNoResults","tStatusSelectedOption","tStatusResults","tSelectedOptionDescription","dropdownArrowFactory","customAttributes","_this$state7","inputFocused","noOptionsAvailable","queryNotEmpty","showNoOptionsFound","wrapperClassName","inputClassName","inputModifierFocused","inputModifierType","dropdownArrowClassName","optionFocused","menuClassName","menuModifierDisplayMenu","menuModifierVisibility","optionClassName","selectedOptionsClassName","hintClassName","selectedOptionText","hintValue","toLowerCase","indexOf","substr","showHint","className","dangerouslySetInnerHTML","__html","onKeyDown","role","aria-expanded","queryLength","minQueryLength","selectedOptionIndex","tQueryTooShort","tSelectedOption","tResults","readonly","tabIndex","_extends","aria-activedescendant","aria-owns","autoComplete","onClick","onBlur","onChangeCrossLibrary","handler","onInput","onFocus","ref","onMouseLeave","map","optionModifierFocused","optionModifierOdd","aria-selected","onMouseEnter","optionEl","aria-label","aria-describedBy","class","Component","defaultProps","DropdownArrowDown","assign","valueOf","bitmap","configurable","writable","getKeys","gOPS","pIE","$assign","A","K","forEach","k","T","aLen","getSymbols","isEnum","j","arrayIndexOf","IE_PROTO","names","max","getOwnPropertySymbols","dPs","Empty","createDict","iframeDocument","iframe","display","appendChild","src","contentWindow","open","write","lt","close","Properties","defineProperties","documentElement","$map","speciesConstructor","original","isArray","SPECIES","C","constructor","Array","$indexOf","$native","NEGATIVE_ZERO","searchElement","FProto","nameRE","$filter","invoke","arraySlice","factories","partArgs","bound","args","len","construct","un","MATCH","$match","regexp","RegExp","wks","KEY","SYMBOL","fns","strfn","rxfn","string","Status","bump","componentWillReceiveProps","_ref","_ref2","queryTooShort","noResults","contentSelectedOption","content","aria-atomic","aria-live","border","clip","height","marginBottom","marginRight","overflow","padding","position","whiteSpace","width","xmlns","focusable","stroke","fill","fill-rule","points"],"mappings":"CAAA,SAAAA,iCAAAC,EAAAC,GACA,iBAAAC,SAAA,iBAAAC,OACAA,OAAAD,QAAAD,EAAAG,QAAA,WACA,mBAAAC,eAAAC,IACAD,OAAA,WAAAJ,GACA,iBAAAC,QACAA,QAAA,gBAAAD,EAAAG,QAAA,WAEAJ,EAAA,gBAAAC,EAAAD,EAAA,YARA,CASCO,OAAA,SAAAC,GACD,mBCTA,IAAAC,EAAA,GAGA,SAAAC,EAAAC,GAGA,GAAAF,EAAAE,GACA,OAAAF,EAAAE,GAAAT,QAGA,IAAAC,EAAAM,EAAAE,GAAA,CACAC,EAAAD,EACAE,GAAA,EACAX,QAAA,IAUA,OANAY,EAAAH,GAAAI,KAAAZ,EAAAD,QAAAC,IAAAD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AD,iBAA+BA,EAA/B,oCAChBtC,WAAY,iBAAM,sBAClByC,gBAAiB,SAACnE,EAAgBvJ,EAAQiB,GAAzB,OAAsCsI,EAAtC,MAAyDtI,EAAQ,GAAjE,OAAyEjB,EAAzE,kBACjB2N,SAAU,SAAC3N,EAAQuU,GAMjB,OAAUvU,EAAV,KAJsB,IAAXA,EAAgB,SAAW,WAItC,KAHkB,IAAXA,EAAgB,KAAO,OAG9B,eAA2DuU,sECbjE,IAAA5R,EAAA1J,EAAA,MAE0B,SAApBoW,EAAoB8E,GAAA,IAAGnH,EAAHmH,EAAGnH,UAAH,OACxB,EAAArK,EAAA3D,eAAA,OAAKzB,QAAQ,MAAM8X,MAAM,6BAA6BrI,UAAWA,EAAWsI,UAAU,UACpF,EAAA3S,EAAA3D,eAAA,KAAGuW,OAAO,OAAOC,KAAK,OAAOC,YAAU,YACrC,EAAA9S,EAAA3D,eAAA,WAASwW,KAAK,UAAUE,OAAO","file":"lib/accessible-autocomplete.preact.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"preact\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"preact\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Autocomplete\"] = factory(require(\"preact\"));\n\telse\n\t\troot[\"Autocomplete\"] = factory(root[\"preact\"]);\n})(window, function(__WEBPACK_EXTERNAL_MODULE__13__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 32);\n","var global = require('./_global');\nvar core = require('./_core');\nvar hide = require('./_hide');\nvar redefine = require('./_redefine');\nvar ctx = require('./_ctx');\nvar PROTOTYPE = 'prototype';\n\nvar $export = function (type, name, source) {\n var IS_FORCED = type & $export.F;\n var IS_GLOBAL = type & $export.G;\n var IS_STATIC = type & $export.S;\n var IS_PROTO = type & $export.P;\n var IS_BIND = type & $export.B;\n var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];\n var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});\n var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});\n var key, own, out, exp;\n if (IS_GLOBAL) source = name;\n for (key in source) {\n // contains in native\n own = !IS_FORCED && target && target[key] !== undefined;\n // export native or passed\n out = (own ? target : source)[key];\n // bind timers to global for call from export context\n exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n // extend global\n if (target) redefine(target, key, out, type & $export.U);\n // export\n if (exports[key] != out) hide(exports, key, exp);\n if (IS_PROTO && expProto[key] != out) expProto[key] = out;\n }\n};\nglobal.core = core;\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\n$export.U = 64; // safe\n$export.R = 128; // real proto method for `library`\nmodule.exports = $export;\n","// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self\n // eslint-disable-next-line no-new-func\n : Function('return this')();\nif (typeof __g == 'number') __g = global; // eslint-disable-line no-undef\n","module.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n","// Thank's IE8 for his funny defineProperty\nmodule.exports = !require('./_fails')(function () {\n return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;\n});\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (e) {\n return true;\n }\n};\n","var core = module.exports = { version: '2.5.7' };\nif (typeof __e == 'number') __e = core; // eslint-disable-line no-undef\n","var dP = require('./_object-dp');\nvar createDesc = require('./_property-desc');\nmodule.exports = require('./_descriptors') ? function (object, key, value) {\n return dP.f(object, key, createDesc(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","var anObject = require('./_an-object');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar toPrimitive = require('./_to-primitive');\nvar dP = Object.defineProperty;\n\nexports.f = require('./_descriptors') ? Object.defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return dP(O, P, Attributes);\n } catch (e) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","var isObject = require('./_is-object');\nmodule.exports = function (it) {\n if (!isObject(it)) throw TypeError(it + ' is not an object!');\n return it;\n};\n","var id = 0;\nvar px = Math.random();\nmodule.exports = function (key) {\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n","// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = require('./_cof');\n// eslint-disable-next-line no-prototype-builtins\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n","// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n","'use strict';\nvar fails = require('./_fails');\n\nmodule.exports = function (method, arg) {\n return !!method && fails(function () {\n // eslint-disable-next-line no-useless-call\n arg ? method.call(null, function () { /* empty */ }, 1) : method.call(null);\n });\n};\n","module.exports = __WEBPACK_EXTERNAL_MODULE__13__;","var isObject = require('./_is-object');\nvar document = require('./_global').document;\n// typeof document.createElement is 'object' in old IE\nvar is = isObject(document) && isObject(document.createElement);\nmodule.exports = function (it) {\n return is ? document.createElement(it) : {};\n};\n","var global = require('./_global');\nvar hide = require('./_hide');\nvar has = require('./_has');\nvar SRC = require('./_uid')('src');\nvar TO_STRING = 'toString';\nvar $toString = Function[TO_STRING];\nvar TPL = ('' + $toString).split(TO_STRING);\n\nrequire('./_core').inspectSource = function (it) {\n return $toString.call(it);\n};\n\n(module.exports = function (O, key, val, safe) {\n var isFunction = typeof val == 'function';\n if (isFunction) has(val, 'name') || hide(val, 'name', key);\n if (O[key] === val) return;\n if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));\n if (O === global) {\n O[key] = val;\n } else if (!safe) {\n delete O[key];\n hide(O, key, val);\n } else if (O[key]) {\n O[key] = val;\n } else {\n hide(O, key, val);\n }\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n})(Function.prototype, TO_STRING, function toString() {\n return typeof this == 'function' && this[SRC] || $toString.call(this);\n});\n","var hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n","// optional / simple context binding\nvar aFunction = require('./_a-function');\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","module.exports = function (it) {\n if (typeof it != 'function') throw TypeError(it + ' is not a function!');\n return it;\n};\n","// 19.1.2.14 / 15.2.3.14 Object.keys(O)\nvar $keys = require('./_object-keys-internal');\nvar enumBugKeys = require('./_enum-bug-keys');\n\nmodule.exports = Object.keys || function keys(O) {\n return $keys(O, enumBugKeys);\n};\n","// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = require('./_iobject');\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return IObject(defined(it));\n};\n","var toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n","// false -> Array#indexOf\n// true -> Array#includes\nvar toIObject = require('./_to-iobject');\nvar toLength = require('./_to-length');\nvar toAbsoluteIndex = require('./_to-absolute-index');\nmodule.exports = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) if (IS_INCLUDES || index in O) {\n if (O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n","// 7.1.15 ToLength\nvar toInteger = require('./_to-integer');\nvar min = Math.min;\nmodule.exports = function (it) {\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n","// 7.1.4 ToInteger\nvar ceil = Math.ceil;\nvar floor = Math.floor;\nmodule.exports = function (it) {\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n","var shared = require('./_shared')('keys');\nvar uid = require('./_uid');\nmodule.exports = function (key) {\n return shared[key] || (shared[key] = uid(key));\n};\n","var core = require('./_core');\nvar global = require('./_global');\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || (global[SHARED] = {});\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: core.version,\n mode: require('./_library') ? 'pure' : 'global',\n copyright: '© 2018 Denis Pushkarev (zloirock.ru)'\n});\n","// IE 8- don't enum bug keys\nmodule.exports = (\n 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'\n).split(',');\n","// 7.1.13 ToObject(argument)\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return Object(defined(it));\n};\n","var $export = require('./_export');\n// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\n$export($export.S, 'Object', { create: require('./_object-create') });\n","// 0 -> Array#forEach\n// 1 -> Array#map\n// 2 -> Array#filter\n// 3 -> Array#some\n// 4 -> Array#every\n// 5 -> Array#find\n// 6 -> Array#findIndex\nvar ctx = require('./_ctx');\nvar IObject = require('./_iobject');\nvar toObject = require('./_to-object');\nvar toLength = require('./_to-length');\nvar asc = require('./_array-species-create');\nmodule.exports = function (TYPE, $create) {\n var IS_MAP = TYPE == 1;\n var IS_FILTER = TYPE == 2;\n var IS_SOME = TYPE == 3;\n var IS_EVERY = TYPE == 4;\n var IS_FIND_INDEX = TYPE == 6;\n var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;\n var create = $create || asc;\n return function ($this, callbackfn, that) {\n var O = toObject($this);\n var self = IObject(O);\n var f = ctx(callbackfn, that, 3);\n var length = toLength(self.length);\n var index = 0;\n var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;\n var val, res;\n for (;length > index; index++) if (NO_HOLES || index in self) {\n val = self[index];\n res = f(val, index, O);\n if (TYPE) {\n if (IS_MAP) result[index] = res; // map\n else if (res) switch (TYPE) {\n case 3: return true; // some\n case 5: return val; // find\n case 6: return index; // findIndex\n case 2: result.push(val); // filter\n } else if (IS_EVERY) return false; // every\n }\n }\n return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;\n };\n};\n","var store = require('./_shared')('wks');\nvar uid = require('./_uid');\nvar Symbol = require('./_global').Symbol;\nvar USE_SYMBOL = typeof Symbol == 'function';\n\nvar $exports = module.exports = function (name) {\n return store[name] || (store[name] =\n USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));\n};\n\n$exports.store = store;\n","import { createElement, Component } from 'preact' /** @jsx createElement */\nimport Status from './status'\nimport DropdownArrowDown from './dropdown-arrow-down'\n\nconst IS_PREACT = process.env.COMPONENT_LIBRARY === 'PREACT'\nconst IS_REACT = process.env.COMPONENT_LIBRARY === 'REACT'\n\nconst keyCodes = {\n 13: 'enter',\n 27: 'escape',\n 32: 'space',\n 38: 'up',\n 40: 'down'\n}\n\n// Based on https://github.com/ausi/Feature-detection-technique-for-pointer-events\nconst hasPointerEvents = (() => {\n const element = document.createElement('x')\n element.style.cssText = 'pointer-events:auto'\n return element.style.pointerEvents === 'auto'\n})()\n\nfunction isIosDevice () {\n return !!(navigator.userAgent.match(/(iPod|iPhone|iPad)/g) && navigator.userAgent.match(/AppleWebKit/g))\n}\n\nfunction isPrintableKeyCode (keyCode) {\n return (\n (keyCode > 47 && keyCode < 58) || // number keys\n keyCode === 32 || keyCode === 8 || // spacebar or backspace\n (keyCode > 64 && keyCode < 91) || // letter keys\n (keyCode > 95 && keyCode < 112) || // numpad keys\n (keyCode > 185 && keyCode < 193) || // ;=,-./` (in order)\n (keyCode > 218 && keyCode < 223) // [\\]' (in order)\n )\n}\n\n// Preact does not implement onChange on inputs, but React does.\nfunction onChangeCrossLibrary (handler) {\n if (IS_PREACT) { return { onInput: handler } }\n if (IS_REACT) { return { onChange: handler } }\n}\n\nexport default class Autocomplete extends Component {\n static defaultProps = {\n autoselect: false,\n cssNamespace: 'autocomplete',\n customAttributes: {},\n defaultValue: '',\n displayMenu: 'inline',\n minLength: 0,\n name: 'input-autocomplete',\n placeholder: '',\n onConfirm: () => {},\n confirmOnBlur: true,\n showNoOptionsFound: true,\n showAllValues: false,\n required: false,\n multiple: false,\n selectedOptions: {},\n tNoResults: () => 'No results found',\n tSelectedOptionDescription: () => 'press Enter or Space to remove selection',\n dropdownArrow: DropdownArrowDown\n }\n\n elementReferences = {}\n\n constructor (props) {\n super(props)\n\n this.state = {\n focused: null,\n hovered: null,\n clicked: null,\n menuOpen: false,\n options: props.defaultValue ? [props.defaultValue] : [],\n selectedOptions: props.selectedOptions ? [props.selectedOptions] : [],\n query: props.defaultValue,\n selected: null\n }\n\n this.handleComponentBlur = this.handleComponentBlur.bind(this)\n this.handleKeyDown = this.handleKeyDown.bind(this)\n this.handleUpArrow = this.handleUpArrow.bind(this)\n this.handleDownArrow = this.handleDownArrow.bind(this)\n this.handleEnter = this.handleEnter.bind(this)\n this.handlePrintableKey = this.handlePrintableKey.bind(this)\n\n this.handleListMouseLeave = this.handleListMouseLeave.bind(this)\n\n this.handleOptionBlur = this.handleOptionBlur.bind(this)\n this.handleOptionClick = this.handleOptionClick.bind(this)\n this.handleOptionFocus = this.handleOptionFocus.bind(this)\n this.handleOptionMouseEnter = this.handleOptionMouseEnter.bind(this)\n\n this.handleSelectedOptionClick = this.handleSelectedOptionClick.bind(this)\n this.handleSelectedOptionKeyDown = this.handleSelectedOptionKeyDown.bind(this)\n\n this.handleInputBlur = this.handleInputBlur.bind(this)\n this.handleInputChange = this.handleInputChange.bind(this)\n this.handleInputFocus = this.handleInputFocus.bind(this)\n\n this.pollInputElement = this.pollInputElement.bind(this)\n this.getDirectInputChanges = this.getDirectInputChanges.bind(this)\n }\n\n componentDidMount () {\n this.pollInputElement()\n }\n\n componentWillUnmount () {\n clearTimeout(this.$pollInput)\n clearTimeout(this.$blurInput)\n }\n\n // Applications like Dragon NaturallySpeaking will modify the\n // `input` field by directly changing its `.value`. These events\n // don't trigger our JavaScript event listeners, so we need to poll\n // to handle when and if they occur.\n pollInputElement () {\n this.getDirectInputChanges()\n this.$pollInput = setTimeout(() => {\n this.pollInputElement()\n }, 100)\n }\n\n getDirectInputChanges () {\n const inputReference = this.elementReferences[-1]\n const queryHasChanged = inputReference && inputReference.value !== this.state.query\n\n if (queryHasChanged) {\n this.handleInputChange({ target: { value: inputReference.value } })\n }\n }\n\n componentDidUpdate (prevProps, prevState) {\n const { focused, clicked } = this.state\n const componentLostFocus = focused === null\n const focusedChanged = prevState.focused !== focused\n const focusDifferentElement = (focusedChanged && !componentLostFocus) || clicked !== null\n if (focusDifferentElement) {\n this.elementReferences[focused].focus()\n }\n const focusedInput = focused === -1\n const componentGainedFocus = focusedChanged && prevState.focused === null\n const selectAllText = focusedInput && componentGainedFocus\n if (selectAllText) {\n const inputElement = this.elementReferences[focused]\n inputElement.setSelectionRange(0, inputElement.value.length)\n }\n }\n\n hasAutoselect () {\n return isIosDevice() ? false : this.props.autoselect\n }\n\n // This template is used when converting from a state.options object into a state.query.\n templateInputValue (value) {\n const inputValueTemplate = this.props.templates && this.props.templates.inputValue\n return inputValueTemplate ? inputValueTemplate(value) : value\n }\n\n // This template is used when displaying results / suggestions.\n templateSuggestion (value) {\n const suggestionTemplate = this.props.templates && this.props.templates.suggestion\n return suggestionTemplate ? suggestionTemplate(value) : value\n }\n\n handleComponentBlur (newState) {\n const { options, query, selected } = this.state\n let newQuery\n if (this.props.confirmOnBlur) {\n newQuery = newState.query || query\n this.props.onConfirm(options[selected])\n } else {\n newQuery = query\n }\n this.setState({\n focused: null,\n clicked: null,\n menuOpen: newState.menuOpen || false,\n query: newQuery,\n selected: null\n })\n\n if (this.props.selectElement && this.props.selectElement.multiple) {\n // Reset input state\n this.setState({\n menuOpen: false,\n selected: null,\n query: ''\n })\n }\n }\n\n handleListMouseLeave (event) {\n this.setState({\n hovered: null\n })\n }\n\n handleOptionBlur (event, index) {\n const { focused, clicked, menuOpen, options, selected } = this.state\n const focusingOutsideComponent = event.relatedTarget === null && clicked === null\n const focusingInput = event.relatedTarget === this.elementReferences[-1]\n const focusingAnotherOption = focused !== index && focused !== -1\n const blurComponent = (!focusingAnotherOption && focusingOutsideComponent) || !(focusingAnotherOption || focusingInput)\n if (blurComponent) {\n const keepMenuOpen = menuOpen && isIosDevice()\n this.handleComponentBlur({\n menuOpen: keepMenuOpen,\n query: this.templateInputValue(options[selected])\n })\n }\n }\n\n handleInputBlur (event) {\n const { focused, menuOpen, options, query, selected } = this.state\n const focusingAnOption = focused !== -1\n clearTimeout(this.$blurInput)\n if (!focusingAnOption) {\n const keepMenuOpen = menuOpen && isIosDevice()\n const newQuery = isIosDevice() ? query : this.templateInputValue(options[selected])\n this.$blurInput = setTimeout(() => this.handleComponentBlur({\n menuOpen: keepMenuOpen,\n query: newQuery\n }), 200)\n }\n }\n\n handleInputChange (event) {\n const { minLength, source, showAllValues } = this.props\n const autoselect = this.hasAutoselect()\n const query = event.target.value\n const queryEmpty = query.length === 0\n const queryChanged = this.state.query.length !== query.length\n const queryLongEnough = query.length >= minLength\n\n this.setState({ query })\n\n const searchForOptions = showAllValues || (!queryEmpty && queryChanged && queryLongEnough)\n if (searchForOptions) {\n source(query, (options) => {\n const optionsAvailable = options.length > 0\n this.setState({\n menuOpen: optionsAvailable,\n options,\n selected: (autoselect && optionsAvailable) ? 0 : -1\n })\n })\n } else if (queryEmpty || !queryLongEnough) {\n this.setState({\n menuOpen: false,\n options: []\n })\n }\n }\n\n handleInputClick (event) {\n this.handleInputChange(event)\n }\n\n handleInputFocus (event) {\n this.setState({\n focused: -1\n })\n }\n\n handleOptionFocus (index) {\n this.setState({\n focused: index,\n hovered: null,\n selected: index\n })\n }\n\n handleOptionMouseEnter (event, index) {\n // iOS Safari prevents click event if mouseenter adds hover background colour\n // See: https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html#//apple_ref/doc/uid/TP40006511-SW4\n if (!isIosDevice()) {\n this.setState({\n hovered: index\n })\n }\n }\n\n handleOptionClick (event, index) {\n const selectedOption = this.state.options[index]\n const newQuery = this.templateInputValue(selectedOption)\n clearTimeout(this.$blurInput)\n this.props.onConfirm(selectedOption)\n this.setState({\n focused: -1,\n clicked: index,\n hovered: null,\n menuOpen: false,\n query: newQuery,\n selected: -1\n })\n if (this.props.selectElement && this.props.selectElement.multiple) {\n this.updateMultiselect(selectedOption)\n }\n this.forceUpdate()\n }\n\n updateMultiselect (selectedOption) {\n if (selectedOption) {\n // Update select state for option\n const addedSelectOption = [].filter.call(this.props.selectElement.options, option => option.textContent === selectedOption)[0]\n if (addedSelectOption) { addedSelectOption.selected = true }\n\n // Update multiselect list\n let availableOptions = [].filter.call(this.props.selectElement.options, option => option.textContent)\n this.props.selectedOptions = availableOptions.filter(option => option.selected === true)\n\n // Reset input state\n this.setState({\n menuOpen: false,\n selected: null,\n query: ''\n })\n }\n }\n\n handleSelectedOptionClick (event, index) {\n // Remove from the list\n const removedOption = this.props.selectedOptions[index]\n this.props.selectedOptions = this.props.selectedOptions.filter(e => e !== removedOption)\n\n // Update select state for option\n const removedSelectOption = [].filter.call(this.props.selectElement.options, option => option.textContent === removedOption.textContent)[0]\n if (removedSelectOption) { removedSelectOption.selected = false }\n\n this.forceUpdate()\n }\n\n handleSelectedOptionKeyDown (event, index) {\n switch (keyCodes[event.keyCode]) {\n case 'space':\n this.handleSelectedOptionClick(event, index)\n break\n case 'enter':\n this.handleSelectedOptionClick(event, index)\n break\n }\n }\n\n handleUpArrow (event) {\n event.preventDefault()\n const { menuOpen, selected } = this.state\n const isNotAtTop = selected !== -1\n const allowMoveUp = isNotAtTop && menuOpen\n if (allowMoveUp) {\n this.handleOptionFocus(selected - 1)\n }\n }\n\n handleDownArrow (event) {\n event.preventDefault()\n // if not open, open\n if (this.props.showAllValues && this.state.menuOpen === false) {\n event.preventDefault()\n this.props.source('', (options) => {\n this.setState({\n menuOpen: true,\n options,\n selected: 0,\n focused: 0,\n hovered: null\n })\n })\n } else if (this.state.menuOpen === true) {\n const { menuOpen, options, selected } = this.state\n const isNotAtBottom = selected !== options.length - 1\n const allowMoveDown = isNotAtBottom && menuOpen\n if (allowMoveDown) {\n this.handleOptionFocus(selected + 1)\n }\n }\n }\n\n handleSpace (event) {\n // if not open, open\n if (this.props.showAllValues && this.state.menuOpen === false && this.state.query === '') {\n event.preventDefault()\n this.props.source('', (options) => {\n this.setState({\n menuOpen: true,\n options\n })\n })\n }\n const focusIsOnOption = this.state.focused !== -1\n if (focusIsOnOption) {\n event.preventDefault()\n this.handleOptionClick(event, this.state.focused)\n }\n }\n\n handleEnter (event) {\n if (this.state.menuOpen) {\n event.preventDefault()\n const hasSelectedOption = this.state.selected >= 0\n if (hasSelectedOption) {\n this.handleOptionClick(event, this.state.selected)\n }\n }\n }\n\n handlePrintableKey (event) {\n const inputElement = this.elementReferences[-1]\n const eventIsOnInput = event.target === inputElement\n if (!eventIsOnInput) {\n // FIXME: This would be better if it was in componentDidUpdate,\n // but using setState to trigger that seems to not work correctly\n // in preact@8.1.0.\n inputElement.focus()\n }\n }\n\n handleKeyDown (event) {\n switch (keyCodes[event.keyCode]) {\n case 'up':\n this.handleUpArrow(event)\n break\n case 'down':\n this.handleDownArrow(event)\n break\n case 'space':\n this.handleSpace(event)\n break\n case 'enter':\n this.handleEnter(event)\n break\n case 'escape':\n this.handleComponentBlur({\n query: this.state.query\n })\n break\n default:\n if (isPrintableKeyCode(event.keyCode)) {\n this.handlePrintableKey(event)\n }\n break\n }\n }\n\n render () {\n const {\n cssNamespace,\n displayMenu,\n id,\n minLength,\n name,\n placeholder,\n required,\n multiple,\n showAllValues,\n tNoResults,\n tStatusQueryTooShort,\n tStatusNoResults,\n tStatusSelectedOption,\n tStatusResults,\n tSelectedOptionDescription,\n dropdownArrow: dropdownArrowFactory,\n customAttributes\n } = this.props\n const { focused, hovered, menuOpen, options, query, selected } = this.state\n const autoselect = this.hasAutoselect()\n\n const inputFocused = focused === -1\n const noOptionsAvailable = options.length === 0\n const queryNotEmpty = query.length !== 0\n const queryLongEnough = query.length >= minLength\n const showNoOptionsFound = this.props.showNoOptionsFound &&\n inputFocused && noOptionsAvailable && queryNotEmpty && queryLongEnough\n\n const wrapperClassName = `${cssNamespace}__wrapper`\n\n const inputClassName = `${cssNamespace}__input`\n const componentIsFocused = focused !== null\n const inputModifierFocused = componentIsFocused ? ` ${inputClassName}--focused` : ''\n const inputModifierType = this.props.showAllValues ? ` ${inputClassName}--show-all-values` : ` ${inputClassName}--default`\n const dropdownArrowClassName = `${cssNamespace}__dropdown-arrow-down`\n const optionFocused = focused !== -1 && focused !== null\n\n const menuClassName = `${cssNamespace}__menu`\n const menuModifierDisplayMenu = `${menuClassName}--${displayMenu}`\n const menuIsVisible = menuOpen || showNoOptionsFound\n const menuModifierVisibility = `${menuClassName}--${(menuIsVisible) ? 'visible' : 'hidden'}`\n\n const optionClassName = `${cssNamespace}__option`\n\n const selectedOptionsClassName = `${cssNamespace}__list`\n\n const hintClassName = `${cssNamespace}__hint`\n const selectedOptionText = this.templateInputValue(options[selected])\n const optionBeginsWithQuery = selectedOptionText &&\n selectedOptionText.toLowerCase().indexOf(query.toLowerCase()) === 0\n const hintValue = (optionBeginsWithQuery && autoselect)\n ? query + selectedOptionText.substr(query.length)\n : ''\n const showHint = hasPointerEvents && hintValue\n\n let dropdownArrow\n\n // we only need a dropdown arrow if showAllValues is set to a truthy value\n if (showAllValues) {\n dropdownArrow = dropdownArrowFactory({ className: dropdownArrowClassName })\n\n // if the factory returns a string we'll render this as HTML (usage w/o (P)React)\n if (typeof dropdownArrow === 'string') {\n dropdownArrow = <div className={`${cssNamespace}__dropdown-arrow-down-wrapper`} dangerouslySetInnerHTML={{ __html: dropdownArrow }} />\n }\n }\n\n return (\n <div className={wrapperClassName} onKeyDown={this.handleKeyDown} role='combobox' aria-expanded={menuOpen ? 'true' : 'false'}>\n <Status\n length={options.length}\n queryLength={query.length}\n minQueryLength={minLength}\n selectedOption={this.templateInputValue(options[selected])}\n selectedOptionIndex={selected}\n tQueryTooShort={tStatusQueryTooShort}\n tNoResults={tStatusNoResults}\n tSelectedOption={tStatusSelectedOption}\n tResults={tStatusResults}\n />\n\n {showHint && (\n <span><input className={hintClassName} readonly tabIndex='-1' value={hintValue} /></span>\n )}\n\n <input\n aria-activedescendant={optionFocused ? `${id}__option--${focused}` : false}\n aria-owns={`${id}__listbox`}\n autoComplete='off'\n className={`${inputClassName}${inputModifierFocused}${inputModifierType}`}\n id={id}\n onClick={(event) => this.handleInputClick(event)}\n onBlur={this.handleInputBlur}\n {...onChangeCrossLibrary(this.handleInputChange)}\n onFocus={this.handleInputFocus}\n name={name}\n placeholder={placeholder}\n ref={(inputElement) => { this.elementReferences[-1] = inputElement }}\n type='text'\n role='textbox'\n required={required}\n value={query}\n {...customAttributes}\n />\n\n {dropdownArrow}\n\n <ul\n className={`${menuClassName} ${menuModifierDisplayMenu} ${menuModifierVisibility}`}\n onMouseLeave={(event) => this.handleListMouseLeave(event)}\n id={`${id}__listbox`}\n role='listbox'\n >\n {options.map((option, index) => {\n const showFocused = focused === -1 ? selected === index : focused === index\n const optionModifierFocused = showFocused && hovered === null ? ` ${optionClassName}--focused` : ''\n const optionModifierOdd = (index % 2) ? ` ${optionClassName}--odd` : ''\n\n return (\n <li\n aria-selected={focused === index}\n className={`${optionClassName}${optionModifierFocused}${optionModifierOdd}`}\n dangerouslySetInnerHTML={{ __html: this.templateSuggestion(option) }}\n id={`${id}__option--${index}`}\n key={index}\n onBlur={(event) => this.handleOptionBlur(event, index)}\n onClick={(event) => this.handleOptionClick(event, index)}\n onMouseEnter={(event) => this.handleOptionMouseEnter(event, index)}\n ref={(optionEl) => { this.elementReferences[index] = optionEl }}\n role='option'\n tabIndex='-1'\n />\n )\n })}\n\n {showNoOptionsFound && (\n <li className={`${optionClassName} ${optionClassName}--no-results`}>{tNoResults()}</li>\n )}\n </ul>\n\n {multiple && (\n <ul\n className={`${selectedOptionsClassName}`}\n id={`${id}__list`}\n role='listbox'\n >\n {this.props.selectedOptions.map((option, index) => {\n return (\n <li\n aria-selected='true'\n aria-label={`${this.templateSuggestion(option.textContent)}, selected`}\n aria-describedBy={`${id}__list-item-description`}\n className={`${optionClassName}`}\n dangerouslySetInnerHTML={{ __html: this.templateSuggestion(option.textContent) }}\n id={`${id}__option--${index}`}\n key={index}\n onClick={(event) => this.handleSelectedOptionClick(event, index)}\n onKeyDown={(event) => this.handleSelectedOptionKeyDown(event, index)}\n role='option'\n tabIndex='0'\n />\n )\n })}\n {showNoOptionsFound && (\n <li className={`${optionClassName} ${optionClassName}--no-results`}>{tNoResults()}</li>\n )}\n </ul>\n )}\n {multiple && (\n <span class='autocomplete__list-item-description' id={`${id}__list-item-description`}>{tSelectedOptionDescription()}</span>\n )}\n </div>\n )\n }\n}\n","// 19.1.3.1 Object.assign(target, source)\nvar $export = require('./_export');\n\n$export($export.S + $export.F, 'Object', { assign: require('./_object-assign') });\n","module.exports = !require('./_descriptors') && !require('./_fails')(function () {\n return Object.defineProperty(require('./_dom-create')('div'), 'a', { get: function () { return 7; } }).a != 7;\n});\n","// 7.1.1 ToPrimitive(input [, PreferredType])\nvar isObject = require('./_is-object');\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (it, S) {\n if (!isObject(it)) return it;\n var fn, val;\n if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;\n if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","'use strict';\n// 19.1.2.1 Object.assign(target, source, ...)\nvar getKeys = require('./_object-keys');\nvar gOPS = require('./_object-gops');\nvar pIE = require('./_object-pie');\nvar toObject = require('./_to-object');\nvar IObject = require('./_iobject');\nvar $assign = Object.assign;\n\n// should work with symbols and should have deterministic property order (V8 bug)\nmodule.exports = !$assign || require('./_fails')(function () {\n var A = {};\n var B = {};\n // eslint-disable-next-line no-undef\n var S = Symbol();\n var K = 'abcdefghijklmnopqrst';\n A[S] = 7;\n K.split('').forEach(function (k) { B[k] = k; });\n return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;\n}) ? function assign(target, source) { // eslint-disable-line no-unused-vars\n var T = toObject(target);\n var aLen = arguments.length;\n var index = 1;\n var getSymbols = gOPS.f;\n var isEnum = pIE.f;\n while (aLen > index) {\n var S = IObject(arguments[index++]);\n var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);\n var length = keys.length;\n var j = 0;\n var key;\n while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key];\n } return T;\n} : $assign;\n","var has = require('./_has');\nvar toIObject = require('./_to-iobject');\nvar arrayIndexOf = require('./_array-includes')(false);\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\n\nmodule.exports = function (object, names) {\n var O = toIObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (has(O, key = names[i++])) {\n ~arrayIndexOf(result, key) || result.push(key);\n }\n return result;\n};\n","var toInteger = require('./_to-integer');\nvar max = Math.max;\nvar min = Math.min;\nmodule.exports = function (index, length) {\n index = toInteger(index);\n return index < 0 ? max(index + length, 0) : min(index, length);\n};\n","module.exports = false;\n","exports.f = Object.getOwnPropertySymbols;\n","exports.f = {}.propertyIsEnumerable;\n","// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\nvar anObject = require('./_an-object');\nvar dPs = require('./_object-dps');\nvar enumBugKeys = require('./_enum-bug-keys');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar Empty = function () { /* empty */ };\nvar PROTOTYPE = 'prototype';\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar createDict = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = require('./_dom-create')('iframe');\n var i = enumBugKeys.length;\n var lt = '<';\n var gt = '>';\n var iframeDocument;\n iframe.style.display = 'none';\n require('./_html').appendChild(iframe);\n iframe.src = 'javascript:'; // eslint-disable-line no-script-url\n // createDict = iframe.contentWindow.Object;\n // html.removeChild(iframe);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);\n iframeDocument.close();\n createDict = iframeDocument.F;\n while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];\n return createDict();\n};\n\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n Empty[PROTOTYPE] = anObject(O);\n result = new Empty();\n Empty[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = createDict();\n return Properties === undefined ? result : dPs(result, Properties);\n};\n","var dP = require('./_object-dp');\nvar anObject = require('./_an-object');\nvar getKeys = require('./_object-keys');\n\nmodule.exports = require('./_descriptors') ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var keys = getKeys(Properties);\n var length = keys.length;\n var i = 0;\n var P;\n while (length > i) dP.f(O, P = keys[i++], Properties[P]);\n return O;\n};\n","var document = require('./_global').document;\nmodule.exports = document && document.documentElement;\n","'use strict';\nvar $export = require('./_export');\nvar $map = require('./_array-methods')(1);\n\n$export($export.P + $export.F * !require('./_strict-method')([].map, true), 'Array', {\n // 22.1.3.15 / 15.4.4.19 Array.prototype.map(callbackfn [, thisArg])\n map: function map(callbackfn /* , thisArg */) {\n return $map(this, callbackfn, arguments[1]);\n }\n});\n","// 9.4.2.3 ArraySpeciesCreate(originalArray, length)\nvar speciesConstructor = require('./_array-species-constructor');\n\nmodule.exports = function (original, length) {\n return new (speciesConstructor(original))(length);\n};\n","var isObject = require('./_is-object');\nvar isArray = require('./_is-array');\nvar SPECIES = require('./_wks')('species');\n\nmodule.exports = function (original) {\n var C;\n if (isArray(original)) {\n C = original.constructor;\n // cross-realm fallback\n if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;\n if (isObject(C)) {\n C = C[SPECIES];\n if (C === null) C = undefined;\n }\n } return C === undefined ? Array : C;\n};\n","// 7.2.2 IsArray(argument)\nvar cof = require('./_cof');\nmodule.exports = Array.isArray || function isArray(arg) {\n return cof(arg) == 'Array';\n};\n","'use strict';\nvar $export = require('./_export');\nvar $indexOf = require('./_array-includes')(false);\nvar $native = [].indexOf;\nvar NEGATIVE_ZERO = !!$native && 1 / [1].indexOf(1, -0) < 0;\n\n$export($export.P + $export.F * (NEGATIVE_ZERO || !require('./_strict-method')($native)), 'Array', {\n // 22.1.3.11 / 15.4.4.14 Array.prototype.indexOf(searchElement [, fromIndex])\n indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {\n return NEGATIVE_ZERO\n // convert -0 to +0\n ? $native.apply(this, arguments) || 0\n : $indexOf(this, searchElement, arguments[1]);\n }\n});\n","var dP = require('./_object-dp').f;\nvar FProto = Function.prototype;\nvar nameRE = /^\\s*function ([^ (]*)/;\nvar NAME = 'name';\n\n// 19.2.4.2 name\nNAME in FProto || require('./_descriptors') && dP(FProto, NAME, {\n configurable: true,\n get: function () {\n try {\n return ('' + this).match(nameRE)[1];\n } catch (e) {\n return '';\n }\n }\n});\n","'use strict';\nvar $export = require('./_export');\nvar $filter = require('./_array-methods')(2);\n\n$export($export.P + $export.F * !require('./_strict-method')([].filter, true), 'Array', {\n // 22.1.3.7 / 15.4.4.20 Array.prototype.filter(callbackfn [, thisArg])\n filter: function filter(callbackfn /* , thisArg */) {\n return $filter(this, callbackfn, arguments[1]);\n }\n});\n","// 19.2.3.2 / 15.3.4.5 Function.prototype.bind(thisArg, args...)\nvar $export = require('./_export');\n\n$export($export.P, 'Function', { bind: require('./_bind') });\n","'use strict';\nvar aFunction = require('./_a-function');\nvar isObject = require('./_is-object');\nvar invoke = require('./_invoke');\nvar arraySlice = [].slice;\nvar factories = {};\n\nvar construct = function (F, len, args) {\n if (!(len in factories)) {\n for (var n = [], i = 0; i < len; i++) n[i] = 'a[' + i + ']';\n // eslint-disable-next-line no-new-func\n factories[len] = Function('F,a', 'return new F(' + n.join(',') + ')');\n } return factories[len](F, args);\n};\n\nmodule.exports = Function.bind || function bind(that /* , ...args */) {\n var fn = aFunction(this);\n var partArgs = arraySlice.call(arguments, 1);\n var bound = function (/* args... */) {\n var args = partArgs.concat(arraySlice.call(arguments));\n return this instanceof bound ? construct(fn, args.length, args) : invoke(fn, args, that);\n };\n if (isObject(fn.prototype)) bound.prototype = fn.prototype;\n return bound;\n};\n","// fast apply, http://jsperf.lnkit.com/fast-apply/5\nmodule.exports = function (fn, args, that) {\n var un = that === undefined;\n switch (args.length) {\n case 0: return un ? fn()\n : fn.call(that);\n case 1: return un ? fn(args[0])\n : fn.call(that, args[0]);\n case 2: return un ? fn(args[0], args[1])\n : fn.call(that, args[0], args[1]);\n case 3: return un ? fn(args[0], args[1], args[2])\n : fn.call(that, args[0], args[1], args[2]);\n case 4: return un ? fn(args[0], args[1], args[2], args[3])\n : fn.call(that, args[0], args[1], args[2], args[3]);\n } return fn.apply(that, args);\n};\n","// @@match logic\nrequire('./_fix-re-wks')('match', 1, function (defined, MATCH, $match) {\n // 21.1.3.11 String.prototype.match(regexp)\n return [function match(regexp) {\n 'use strict';\n var O = defined(this);\n var fn = regexp == undefined ? undefined : regexp[MATCH];\n return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[MATCH](String(O));\n }, $match];\n});\n","'use strict';\nvar hide = require('./_hide');\nvar redefine = require('./_redefine');\nvar fails = require('./_fails');\nvar defined = require('./_defined');\nvar wks = require('./_wks');\n\nmodule.exports = function (KEY, length, exec) {\n var SYMBOL = wks(KEY);\n var fns = exec(defined, SYMBOL, ''[KEY]);\n var strfn = fns[0];\n var rxfn = fns[1];\n if (fails(function () {\n var O = {};\n O[SYMBOL] = function () { return 7; };\n return ''[KEY](O) != 7;\n })) {\n redefine(String.prototype, KEY, strfn);\n hide(RegExp.prototype, SYMBOL, length == 2\n // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)\n // 21.2.5.11 RegExp.prototype[@@split](string, limit)\n ? function (string, arg) { return rxfn.call(string, this, arg); }\n // 21.2.5.6 RegExp.prototype[@@match](string)\n // 21.2.5.9 RegExp.prototype[@@search](string)\n : function (string) { return rxfn.call(string, this); }\n );\n }\n};\n","import { createElement, Component } from 'preact' /** @jsx createElement */\n\nexport default class Status extends Component {\n static defaultProps = {\n tQueryTooShort: (minQueryLength) => `Type in ${minQueryLength} or more characters for results.`,\n tNoResults: () => 'No search results.',\n tSelectedOption: (selectedOption, length, index) => `${selectedOption} (${index + 1} of ${length}) is selected.`,\n tResults: (length, contentSelectedOption) => {\n const words = {\n result: (length === 1) ? 'result' : 'results',\n is: (length === 1) ? 'is' : 'are'\n }\n\n return `${length} ${words.result} ${words.is} available. ${contentSelectedOption}`\n }\n };\n\n state = {\n bump: false\n }\n\n componentWillReceiveProps ({ queryLength }) {\n const hasChanged = queryLength !== this.props.queryLength\n if (hasChanged) {\n this.setState(({ bump }) => ({ bump: !bump }))\n }\n }\n\n render () {\n const {\n length,\n queryLength,\n minQueryLength,\n selectedOption,\n selectedOptionIndex,\n tQueryTooShort,\n tNoResults,\n tSelectedOption,\n tResults\n } = this.props\n const { bump } = this.state\n\n const queryTooShort = queryLength < minQueryLength\n const noResults = length === 0\n\n const contentSelectedOption = selectedOption\n ? tSelectedOption(selectedOption, length, selectedOptionIndex)\n : ''\n\n let content = null\n if (queryTooShort) {\n content = tQueryTooShort(minQueryLength)\n } else if (noResults) {\n content = tNoResults()\n } else {\n content = tResults(length, contentSelectedOption)\n }\n\n return <div\n aria-atomic='true'\n aria-live='polite'\n role='status'\n style={{\n border: '0',\n clip: 'rect(0 0 0 0)',\n height: '1px',\n marginBottom: '-1px',\n marginRight: '-1px',\n overflow: 'hidden',\n padding: '0',\n position: 'absolute',\n whiteSpace: 'nowrap',\n width: '1px'\n }}\n >\n {content}\n <span>{bump ? ',' : ',,'}</span>\n </div>\n }\n}\n","import { createElement } from 'preact' /** @jsx createElement */\n\nconst DropdownArrowDown = ({ className }) => (\n <svg version='1.1' xmlns='http://www.w3.org/2000/svg' className={className} focusable='false'>\n <g stroke='none' fill='none' fill-rule='evenodd'>\n <polygon fill='#000000' points='0 0 22 0 11 17' />\n </g>\n </svg>\n)\n\nexport default DropdownArrowDown\n"],"sourceRoot":""}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
(function webpackUniversalModuleDefinition(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports["Autocomplete"]=t(require("react")):e["Autocomplete"]=t(e["React"])})(window,function(n){return function(n){var r={};function o(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}return o.m=n,o.c=r,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="/",o(o.s=31)}([function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){var m=n(0),v=n(5),y=n(6),g=n(14),b=n(16),O="prototype",w=function(e,t,n){var r,o,u,i,a=e&w.F,s=e&w.G,l=e&w.S,c=e&w.P,p=e&w.B,f=s?m:l?m[t]||(m[t]={}):(m[t]||{})[O],d=s?v:v[t]||(v[t]={}),h=d[O]||(d[O]={});for(r in s&&(n=t),n)u=((o=!a&&f&&f[r]!==undefined)?f:n)[r],i=p&&o?b(u,m):c&&"function"==typeof u?b(Function.call,u):u,f&&g(f,r,u,e&w.U),d[r]!=u&&y(d,r,i),c&&h[r]!=u&&(h[r]=u)};m.core=v,w.F=1,w.G=2,w.S=4,w.P=8,w.B=16,w.W=32,w.U=64,w.R=128,e.exports=w},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(4)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(7),o=n(35);e.exports=n(3)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var o=n(8),u=n(33),i=n(34),a=Object.defineProperty;t.f=n(3)?Object.defineProperty:function(e,t,n){if(o(e),t=i(t,!0),o(n),u)try{return a(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(2);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(e===undefined?"":e,")_",(++n+r).toString(36))}},function(e,t,n){var r=n(20);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){e.exports=function(e){if(e==undefined)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports=n},function(e,t,n){var r=n(2),o=n(0).document,u=r(o)&&r(o.createElement);e.exports=function(e){return u?o.createElement(e):{}}},function(e,t,n){var u=n(0),i=n(6),a=n(15),s=n(9)("src"),r="toString",o=Function[r],l=(""+o).split(r);n(5).inspectSource=function(e){return o.call(e)},(e.exports=function(e,t,n,r){var o="function"==typeof n;o&&(a(n,"name")||i(n,"name",t)),e[t]!==n&&(o&&(a(n,s)||i(n,s,e[t]?""+e[t]:l.join(String(t)))),e===u?e[t]=n:r?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,r,function(){return"function"==typeof this&&this[s]||o.call(this)})},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var u=n(17);e.exports=function(r,o,e){if(u(r),o===undefined)return r;switch(e){case 1:return function(e){return r.call(o,e)};case 2:return function(e,t){return r.call(o,e,t)};case 3:return function(e,t,n){return r.call(o,e,t,n)}}return function(){return r.apply(o,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(37),o=n(26);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){var r=n(10),o=n(11);e.exports=function(e){return r(o(e))}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var s=n(19),l=n(22),c=n(38);e.exports=function(a){return function(e,t,n){var r,o=s(e),u=l(o.length),i=c(n,u);if(a&&t!=t){for(;i<u;)if((r=o[i++])!=r)return!0}else for(;i<u;i++)if((a||i in o)&&o[i]===t)return a||i||0;return!a&&-1}}},function(e,t,n){var r=n(23),o=Math.min;e.exports=function(e){return 0<e?o(r(e),9007199254740991):0}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0<e?r:n)(e)}},function(e,t,n){var r=n(25)("keys"),o=n(9);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(5),o=n(0),u="__core-js_shared__",i=o[u]||(o[u]={});(e.exports=function(e,t){return i[e]||(i[e]=t!==undefined?t:{})})("versions",[]).push({version:r.version,mode:n(39)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(11);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(1);r(r.S,"Object",{create:n(42)})},function(e,t,n){var r=n(25)("wks"),o=n(9),u=n(0).Symbol,i="function"==typeof u;(e.exports=function(e){return r[e]||(r[e]=i&&u[e]||(i?u:o)("Symbol."+e))}).store=r},function(e,t,n){"use strict";var r=n(4);e.exports=function(e,t){return!!e&&r(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0,n(32),n(28),n(45),n(50),n(51),n(52),n(55);var $=n(12),W=o(n(57)),r=o(n(58));function o(e){return e&&e.__esModule?e:{"default":e}}function z(){return(z=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var i,a={13:"enter",27:"escape",32:"space",38:"up",40:"down"},G=((i=document.createElement("x")).style.cssText="pointer-events:auto","auto"===i.style.pointerEvents);function f(){return!(!navigator.userAgent.match(/(iPod|iPhone|iPad)/g)||!navigator.userAgent.match(/AppleWebKit/g))}var s=function(n){function e(e){var t;return(t=n.call(this,e)||this).elementReferences={},t.state={focused:null,hovered:null,clicked:null,menuOpen:!1,options:e.defaultValue?[e.defaultValue]:[],query:e.defaultValue,selected:null},t.handleComponentBlur=t.handleComponentBlur.bind(u(u(t))),t.handleKeyDown=t.handleKeyDown.bind(u(u(t))),t.handleUpArrow=t.handleUpArrow.bind(u(u(t))),t.handleDownArrow=t.handleDownArrow.bind(u(u(t))),t.handleEnter=t.handleEnter.bind(u(u(t))),t.handlePrintableKey=t.handlePrintableKey.bind(u(u(t))),t.handleListMouseLeave=t.handleListMouseLeave.bind(u(u(t))),t.handleOptionBlur=t.handleOptionBlur.bind(u(u(t))),t.handleOptionClick=t.handleOptionClick.bind(u(u(t))),t.handleOptionFocus=t.handleOptionFocus.bind(u(u(t))),t.handleOptionMouseEnter=t.handleOptionMouseEnter.bind(u(u(t))),t.handleInputBlur=t.handleInputBlur.bind(u(u(t))),t.handleInputChange=t.handleInputChange.bind(u(u(t))),t.handleInputFocus=t.handleInputFocus.bind(u(u(t))),t.pollInputElement=t.pollInputElement.bind(u(u(t))),t.getDirectInputChanges=t.getDirectInputChanges.bind(u(u(t))),t}(function r(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t})(e,n);var t=e.prototype;return t.componentDidMount=function(){this.pollInputElement()},t.componentWillUnmount=function(){clearTimeout(this.$pollInput),clearTimeout(this.$blurInput)},t.pollInputElement=function(){var e=this;this.getDirectInputChanges(),this.$pollInput=setTimeout(function(){e.pollInputElement()},100)},t.getDirectInputChanges=function(){var e=this.elementReferences[-1];e&&e.value!==this.state.query&&this.handleInputChange({target:{value:e.value}})},t.componentDidUpdate=function(e,t){var n=this.state,r=n.focused,o=n.clicked,u=null===r,i=t.focused!==r;(i&&!u||null!==o)&&this.elementReferences[r].focus();var a=-1===r,s=i&&null===t.focused;if(a&&s){var l=this.elementReferences[r];l.setSelectionRange(0,l.value.length)}},t.hasAutoselect=function(){return!f()&&this.props.autoselect},t.templateInputValue=function(e){var t=this.props.templates&&this.props.templates.inputValue;return t?t(e):e},t.templateSuggestion=function(e){var t=this.props.templates&&this.props.templates.suggestion;return t?t(e):e},t.handleComponentBlur=function(e){var t,n=this.state,r=n.options,o=n.query,u=n.selected;this.props.confirmOnBlur?(t=e.query||o,this.props.onConfirm(r[u])):t=o,this.setState({focused:null,clicked:null,menuOpen:e.menuOpen||!1,query:t,selected:null})},t.handleListMouseLeave=function(e){this.setState({hovered:null})},t.handleOptionBlur=function(e,t){var n=this.state,r=n.focused,o=n.clicked,u=n.menuOpen,i=n.options,a=n.selected,s=null===e.relatedTarget&&null===o,l=e.relatedTarget===this.elementReferences[-1],c=r!==t&&-1!==r;if(!c&&s||!(c||l)){var p=u&&f();this.handleComponentBlur({menuOpen:p,query:this.templateInputValue(i[a])})}},t.handleInputBlur=function(e){var t=this,n=this.state,r=n.focused,o=n.menuOpen,u=n.options,i=n.query,a=n.selected,s=-1!==r;if(clearTimeout(this.$blurInput),!s){var l=o&&f(),c=f()?i:this.templateInputValue(u[a]);this.$blurInput=setTimeout(function(){return t.handleComponentBlur({menuOpen:l,query:c})},200)}},t.handleInputChange=function(e){var n=this,t=this.props,r=t.minLength,o=t.source,u=t.showAllValues,i=this.hasAutoselect(),a=e.target.value,s=0===a.length,l=this.state.query.length!==a.length,c=a.length>=r;this.setState({query:a}),u||!s&&l&&c?o(a,function(e){var t=0<e.length;n.setState({menuOpen:t,options:e,selected:i&&t?0:-1})}):!s&&c||this.setState({menuOpen:!1,options:[]})},t.handleInputClick=function(e){this.handleInputChange(e)},t.handleInputFocus=function(e){this.setState({focused:-1})},t.handleOptionFocus=function(e){this.setState({focused:e,hovered:null,selected:e})},t.handleOptionMouseEnter=function(e,t){f()||this.setState({hovered:t})},t.handleOptionClick=function(e,t){var n=this.state.options[t],r=this.templateInputValue(n);clearTimeout(this.$blurInput),this.props.onConfirm(n),this.setState({focused:-1,clicked:t,hovered:null,menuOpen:!1,query:r,selected:-1}),this.forceUpdate()},t.handleUpArrow=function(e){e.preventDefault();var t=this.state,n=t.menuOpen,r=t.selected;-1!==r&&n&&this.handleOptionFocus(r-1)},t.handleDownArrow=function(e){var t=this;if(e.preventDefault(),this.props.showAllValues&&!1===this.state.menuOpen)e.preventDefault(),this.props.source("",function(e){t.setState({menuOpen:!0,options:e,selected:0,focused:0,hovered:null})});else if(!0===this.state.menuOpen){var n=this.state,r=n.menuOpen,o=n.options,u=n.selected;u!==o.length-1&&r&&this.handleOptionFocus(u+1)}},t.handleSpace=function(e){var t=this;this.props.showAllValues&&!1===this.state.menuOpen&&""===this.state.query&&(e.preventDefault(),this.props.source("",function(e){t.setState({menuOpen:!0,options:e})})),-1!==this.state.focused&&(e.preventDefault(),this.handleOptionClick(e,this.state.focused))},t.handleEnter=function(e){this.state.menuOpen&&(e.preventDefault(),0<=this.state.selected&&this.handleOptionClick(e,this.state.selected))},t.handlePrintableKey=function(e){var t=this.elementReferences[-1];e.target===t||t.focus()},t.handleKeyDown=function(e){switch(a[e.keyCode]){case"up":this.handleUpArrow(e);break;case"down":this.handleDownArrow(e);break;case"space":this.handleSpace(e);break;case"enter":this.handleEnter(e);break;case"escape":this.handleComponentBlur({query:this.state.query});break;default:(function t(e){return 47<e&&e<58||32===e||8===e||64<e&&e<91||95<e&&e<112||185<e&&e<193||218<e&&e<223})(e.keyCode)&&this.handlePrintableKey(e)}},t.render=function(){var e,o=this,t=this.props,n=t.cssNamespace,r=t.displayMenu,u=t.id,i=t.minLength,a=t.name,s=t.placeholder,l=t.required,c=t.showAllValues,p=t.tNoResults,f=t.tStatusQueryTooShort,d=t.tStatusNoResults,h=t.tStatusSelectedOption,m=t.tStatusResults,v=t.dropdownArrow,y=this.state,g=y.focused,b=y.hovered,O=y.menuOpen,w=y.options,x=y.query,_=y.selected,S=this.hasAutoselect(),I=-1===g,E=0===w.length,j=0!==x.length,C=x.length>=i,M=this.props.showNoOptionsFound&&I&&E&&j&&C,A=n+"__wrapper",P=n+"__input",k=null!==g?" "+P+"--focused":"",F=this.props.showAllValues?" "+P+"--show-all-values":" "+P+"--default",R=n+"__dropdown-arrow-down",q=-1!==g&&null!==g,T=n+"__menu",N=T+"--"+r,D=T+"--"+(O||M?"visible":"hidden"),L=n+"__option",B=n+"__hint",V=this.templateInputValue(w[_]),K=V&&0===V.toLowerCase().indexOf(x.toLowerCase())&&S?x+V.substr(x.length):"",U=G&&K;return c&&"string"==typeof(e=v({className:R}))&&(e=(0,$.createElement)("div",{className:n+"__dropdown-arrow-down-wrapper",dangerouslySetInnerHTML:{__html:e}})),(0,$.createElement)("div",{className:A,onKeyDown:this.handleKeyDown,role:"combobox","aria-expanded":O?"true":"false"},(0,$.createElement)(W["default"],{length:w.length,queryLength:x.length,minQueryLength:i,selectedOption:this.templateInputValue(w[_]),selectedOptionIndex:_,tQueryTooShort:f,tNoResults:d,tSelectedOption:h,tResults:m}),U&&(0,$.createElement)("span",null,(0,$.createElement)("input",{className:B,readonly:!0,tabIndex:"-1",value:K})),(0,$.createElement)("input",z({"aria-activedescendant":!!q&&u+"__option--"+g,"aria-owns":u+"__listbox",autoComplete:"off",className:""+P+k+F,id:u,onClick:function(e){return o.handleInputClick(e)},onBlur:this.handleInputBlur},function Q(e){return{onChange:e}}(this.handleInputChange),{onFocus:this.handleInputFocus,name:a,placeholder:s,ref:function(e){o.elementReferences[-1]=e},type:"text",role:"textbox",required:l,value:x})),e,(0,$.createElement)("ul",{className:T+" "+N+" "+D,onMouseLeave:function(e){return o.handleListMouseLeave(e)},id:u+"__listbox",role:"listbox"},w.map(function(e,t){var n=(-1===g?_===t:g===t)&&null===b?" "+L+"--focused":"",r=t%2?" "+L+"--odd":"";return(0,$.createElement)("li",{"aria-selected":g===t,className:""+L+n+r,dangerouslySetInnerHTML:{__html:o.templateSuggestion(e)},id:u+"__option--"+t,key:t,onBlur:function(e){return o.handleOptionBlur(e,t)},onClick:function(e){return o.handleOptionClick(e,t)},onMouseEnter:function(e){return o.handleOptionMouseEnter(e,t)},ref:function(e){o.elementReferences[t]=e},role:"option",tabIndex:"-1"})}),M&&(0,$.createElement)("li",{className:L+" "+L+"--no-results"},p())))},e}($.Component);(t["default"]=s).defaultProps={autoselect:!1,cssNamespace:"autocomplete",defaultValue:"",displayMenu:"inline",minLength:0,name:"input-autocomplete",placeholder:"",onConfirm:function(){},confirmOnBlur:!0,showNoOptionsFound:!0,showAllValues:!1,required:!1,tNoResults:function(){return"No results found"},dropdownArrow:r["default"]}},function(e,t,n){var r=n(1);r(r.S+r.F,"Object",{assign:n(36)})},function(e,t,n){e.exports=!n(3)&&!n(4)(function(){return 7!=Object.defineProperty(n(13)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var o=n(2);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){"use strict";var f=n(18),d=n(40),h=n(41),m=n(27),v=n(10),o=Object.assign;e.exports=!o||n(4)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=o({},e)[n]||Object.keys(o({},t)).join("")!=r})?function(e,t){for(var n=m(e),r=arguments.length,o=1,u=d.f,i=h.f;o<r;)for(var a,s=v(arguments[o++]),l=u?f(s).concat(u(s)):f(s),c=l.length,p=0;p<c;)i.call(s,a=l[p++])&&(n[a]=s[a]);return n}:o},function(e,t,n){var i=n(15),a=n(19),s=n(21)(!1),l=n(24)("IE_PROTO");e.exports=function(e,t){var n,r=a(e),o=0,u=[];for(n in r)n!=l&&i(r,n)&&u.push(n);for(;t.length>o;)i(r,n=t[o++])&&(~s(u,n)||u.push(n));return u}},function(e,t,n){var r=n(23),o=Math.max,u=Math.min;e.exports=function(e,t){return(e=r(e))<0?o(e+t,0):u(e,t)}},function(e,t){e.exports=!1},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,r){var o=r(8),u=r(43),i=r(26),a=r(24)("IE_PROTO"),s=function(){},l="prototype",c=function(){var e,t=r(13)("iframe"),n=i.length;for(t.style.display="none",r(44).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;n--;)delete c[l][i[n]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[l]=o(e),n=new s,s[l]=null,n[a]=e):n=c(),t===undefined?n:u(n,t)}},function(e,t,n){var i=n(7),a=n(8),s=n(18);e.exports=n(3)?Object.defineProperties:function(e,t){a(e);for(var n,r=s(t),o=r.length,u=0;u<o;)i.f(e,n=r[u++],t[n]);return e}},function(e,t,n){var r=n(0).document;e.exports=r&&r.documentElement},function(e,t,n){"use strict";var r=n(1),o=n(46)(1);r(r.P+r.F*!n(30)([].map,!0),"Array",{map:function(e){return o(this,e,arguments[1])}})},function(e,t,n){var b=n(16),O=n(10),w=n(27),x=n(22),r=n(47);e.exports=function(p,e){var f=1==p,d=2==p,h=3==p,m=4==p,v=6==p,y=5==p||v,g=e||r;return function(e,t,n){for(var r,o,u=w(e),i=O(u),a=b(t,n,3),s=x(i.length),l=0,c=f?g(e,s):d?g(e,0):undefined;l<s;l++)if((y||l in i)&&(o=a(r=i[l],l,u),p))if(f)c[l]=o;else if(o)switch(p){case 3:return!0;case 5:return r;case 6:return l;case 2:c.push(r)}else if(m)return!1;return v?-1:h||m?m:c}}},function(e,t,n){var r=n(48);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){var r=n(2),o=n(49),u=n(29)("species");e.exports=function(e){var t;return o(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!o(t.prototype)||(t=undefined),r(t)&&null===(t=t[u])&&(t=undefined)),t===undefined?Array:t}},function(e,t,n){var r=n(20);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){"use strict";var r=n(1),o=n(21)(!1),u=[].indexOf,i=!!u&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(i||!n(30)(u)),"Array",{indexOf:function(e){return i?u.apply(this,arguments)||0:o(this,e,arguments[1])}})},function(e,t,n){var r=n(7).f,o=Function.prototype,u=/^\s*function ([^ (]*)/;"name"in o||n(3)&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(u)[1]}catch(e){return""}}})},function(e,t,n){var r=n(1);r(r.P,"Function",{bind:n(53)})},function(e,t,n){"use strict";var u=n(17),i=n(2),a=n(54),s=[].slice,l={};e.exports=Function.bind||function(t){var n=u(this),r=s.call(arguments,1),o=function(){var e=r.concat(s.call(arguments));return this instanceof o?function(e,t,n){if(!(t in l)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";l[t]=Function("F,a","return new F("+r.join(",")+")")}return l[t](e,n)}(n,e.length,e):a(n,e,t)};return i(n.prototype)&&(o.prototype=n.prototype),o}},function(e,t){e.exports=function(e,t,n){var r=n===undefined;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){n(56)("match",1,function(r,o,e){return[function(e){"use strict";var t=r(this),n=e==undefined?undefined:e[o];return n!==undefined?n.call(e,t):new RegExp(e)[o](String(t))},e]})},function(e,t,n){"use strict";var a=n(6),s=n(14),l=n(4),c=n(11),p=n(29);e.exports=function(t,e,n){var r=p(t),o=n(c,r,""[t]),u=o[0],i=o[1];l(function(){var e={};return e[r]=function(){return 7},7!=""[t](e)})&&(s(String.prototype,t,u),a(RegExp.prototype,r,2==e?function(e,t){return i.call(e,this,t)}:function(e){return i.call(e,this)}))}},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0,n(28);var m=n(12);var r=function(o){function e(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))||this).state={bump:!1},e}(function n(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t})(e,o);var t=e.prototype;return t.componentWillReceiveProps=function(e){e.queryLength!==this.props.queryLength&&this.setState(function(e){return{bump:!e.bump}})},t.render=function(){var e=this.props,t=e.length,n=e.queryLength,r=e.minQueryLength,o=e.selectedOption,u=e.selectedOptionIndex,i=e.tQueryTooShort,a=e.tNoResults,s=e.tSelectedOption,l=e.tResults,c=this.state.bump,p=n<r,f=0===t,d=o?s(o,t,u):"",h=null;return h=p?i(r):f?a():l(t,d),(0,m.createElement)("div",{"aria-atomic":"true","aria-live":"polite",role:"status",style:{border:"0",clip:"rect(0 0 0 0)",height:"1px",marginBottom:"-1px",marginRight:"-1px",overflow:"hidden",padding:"0",position:"absolute",whiteSpace:"nowrap",width:"1px"}},h,(0,m.createElement)("span",null,c?",":",,"))},e}(m.Component);(t["default"]=r).defaultProps={tQueryTooShort:function(e){return"Type in "+e+" or more characters for results."},tNoResults:function(){return"No search results."},tSelectedOption:function(e,t,n){return e+" ("+(n+1)+" of "+t+") is selected."},tResults:function(e,t){return e+" "+(1===e?"result":"results")+" "+(1===e?"is":"are")+" available. "+t}}},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0;var r=n(12),o=function u(e){var t=e.className;return(0,r.createElement)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:t,focusable:"false"},(0,r.createElement)("g",{stroke:"none",fill:"none","fill-rule":"evenodd"},(0,r.createElement)("polygon",{fill:"#000000",points:"0 0 22 0 11 17"})))};t["default"]=o}])});
|
1
|
+
(function webpackUniversalModuleDefinition(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports["Autocomplete"]=t(require("react")):e["Autocomplete"]=t(e["React"])})(window,function(n){return function(n){var r={};function o(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}return o.m=n,o.c=r,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="/",o(o.s=32)}([function(e,t,n){var m=n(1),v=n(5),y=n(6),g=n(15),b=n(17),O="prototype",w=function(e,t,n){var r,o,i,u,s=e&w.F,l=e&w.G,a=e&w.S,c=e&w.P,p=e&w.B,f=l?m:a?m[t]||(m[t]={}):(m[t]||{})[O],d=l?v:v[t]||(v[t]={}),h=d[O]||(d[O]={});for(r in l&&(n=t),n)i=((o=!s&&f&&f[r]!==undefined)?f:n)[r],u=p&&o?b(i,m):c&&"function"==typeof i?b(Function.call,i):i,f&&g(f,r,i,e&w.U),d[r]!=i&&y(d,r,u),c&&h[r]!=i&&(h[r]=i)};m.core=v,w.F=1,w.G=2,w.S=4,w.P=8,w.B=16,w.W=32,w.U=64,w.R=128,e.exports=w},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(4)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(7),o=n(36);e.exports=n(3)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var o=n(8),i=n(34),u=n(35),s=Object.defineProperty;t.f=n(3)?Object.defineProperty:function(e,t,n){if(o(e),t=u(t,!0),o(n),i)try{return s(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(2);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(e===undefined?"":e,")_",(++n+r).toString(36))}},function(e,t,n){var r=n(21);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){e.exports=function(e){if(e==undefined)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){"use strict";var r=n(4);e.exports=function(e,t){return!!e&&r(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t){e.exports=n},function(e,t,n){var r=n(2),o=n(1).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){var i=n(1),u=n(6),s=n(16),l=n(9)("src"),r="toString",o=Function[r],a=(""+o).split(r);n(5).inspectSource=function(e){return o.call(e)},(e.exports=function(e,t,n,r){var o="function"==typeof n;o&&(s(n,"name")||u(n,"name",t)),e[t]!==n&&(o&&(s(n,l)||u(n,l,e[t]?""+e[t]:a.join(String(t)))),e===i?e[t]=n:r?e[t]?e[t]=n:u(e,t,n):(delete e[t],u(e,t,n)))})(Function.prototype,r,function(){return"function"==typeof this&&this[l]||o.call(this)})},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var i=n(18);e.exports=function(r,o,e){if(i(r),o===undefined)return r;switch(e){case 1:return function(e){return r.call(o,e)};case 2:return function(e,t){return r.call(o,e,t)};case 3:return function(e,t,n){return r.call(o,e,t,n)}}return function(){return r.apply(o,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(38),o=n(27);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){var r=n(10),o=n(11);e.exports=function(e){return r(o(e))}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var l=n(20),a=n(23),c=n(39);e.exports=function(s){return function(e,t,n){var r,o=l(e),i=a(o.length),u=c(n,i);if(s&&t!=t){for(;u<i;)if((r=o[u++])!=r)return!0}else for(;u<i;u++)if((s||u in o)&&o[u]===t)return s||u||0;return!s&&-1}}},function(e,t,n){var r=n(24),o=Math.min;e.exports=function(e){return 0<e?o(r(e),9007199254740991):0}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0<e?r:n)(e)}},function(e,t,n){var r=n(26)("keys"),o=n(9);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(5),o=n(1),i="__core-js_shared__",u=o[i]||(o[i]={});(e.exports=function(e,t){return u[e]||(u[e]=t!==undefined?t:{})})("versions",[]).push({version:r.version,mode:n(40)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(11);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(0);r(r.S,"Object",{create:n(43)})},function(e,t,n){var b=n(17),O=n(10),w=n(28),x=n(23),r=n(47);e.exports=function(p,e){var f=1==p,d=2==p,h=3==p,m=4==p,v=6==p,y=5==p||v,g=e||r;return function(e,t,n){for(var r,o,i=w(e),u=O(i),s=b(t,n,3),l=x(u.length),a=0,c=f?g(e,l):d?g(e,0):undefined;a<l;a++)if((y||a in u)&&(o=s(r=u[a],a,i),p))if(f)c[a]=o;else if(o)switch(p){case 3:return!0;case 5:return r;case 6:return a;case 2:c.push(r)}else if(m)return!1;return v?-1:h||m?m:c}}},function(e,t,n){var r=n(26)("wks"),o=n(9),i=n(1).Symbol,u="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=u&&i[e]||(u?i:o)("Symbol."+e))}).store=r},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0,n(33),n(29),n(46),n(50),n(51),n(52),n(53),n(56);var G=n(13),J=o(n(58)),r=o(n(59));function o(e){return e&&e.__esModule?e:{"default":e}}function X(){return(X=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var u,s={13:"enter",27:"escape",32:"space",38:"up",40:"down"},Y=((u=document.createElement("x")).style.cssText="pointer-events:auto","auto"===u.style.pointerEvents);function f(){return!(!navigator.userAgent.match(/(iPod|iPhone|iPad)/g)||!navigator.userAgent.match(/AppleWebKit/g))}var l=function(n){function e(e){var t;return(t=n.call(this,e)||this).elementReferences={},t.state={focused:null,hovered:null,clicked:null,menuOpen:!1,options:e.defaultValue?[e.defaultValue]:[],selectedOptions:e.selectedOptions?[e.selectedOptions]:[],query:e.defaultValue,selected:null},t.handleComponentBlur=t.handleComponentBlur.bind(i(i(t))),t.handleKeyDown=t.handleKeyDown.bind(i(i(t))),t.handleUpArrow=t.handleUpArrow.bind(i(i(t))),t.handleDownArrow=t.handleDownArrow.bind(i(i(t))),t.handleEnter=t.handleEnter.bind(i(i(t))),t.handlePrintableKey=t.handlePrintableKey.bind(i(i(t))),t.handleListMouseLeave=t.handleListMouseLeave.bind(i(i(t))),t.handleOptionBlur=t.handleOptionBlur.bind(i(i(t))),t.handleOptionClick=t.handleOptionClick.bind(i(i(t))),t.handleOptionFocus=t.handleOptionFocus.bind(i(i(t))),t.handleOptionMouseEnter=t.handleOptionMouseEnter.bind(i(i(t))),t.handleSelectedOptionClick=t.handleSelectedOptionClick.bind(i(i(t))),t.handleSelectedOptionKeyDown=t.handleSelectedOptionKeyDown.bind(i(i(t))),t.handleInputBlur=t.handleInputBlur.bind(i(i(t))),t.handleInputChange=t.handleInputChange.bind(i(i(t))),t.handleInputFocus=t.handleInputFocus.bind(i(i(t))),t.pollInputElement=t.pollInputElement.bind(i(i(t))),t.getDirectInputChanges=t.getDirectInputChanges.bind(i(i(t))),t}(function r(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t})(e,n);var t=e.prototype;return t.componentDidMount=function(){this.pollInputElement()},t.componentWillUnmount=function(){clearTimeout(this.$pollInput),clearTimeout(this.$blurInput)},t.pollInputElement=function(){var e=this;this.getDirectInputChanges(),this.$pollInput=setTimeout(function(){e.pollInputElement()},100)},t.getDirectInputChanges=function(){var e=this.elementReferences[-1];e&&e.value!==this.state.query&&this.handleInputChange({target:{value:e.value}})},t.componentDidUpdate=function(e,t){var n=this.state,r=n.focused,o=n.clicked,i=null===r,u=t.focused!==r;(u&&!i||null!==o)&&this.elementReferences[r].focus();var s=-1===r,l=u&&null===t.focused;if(s&&l){var a=this.elementReferences[r];a.setSelectionRange(0,a.value.length)}},t.hasAutoselect=function(){return!f()&&this.props.autoselect},t.templateInputValue=function(e){var t=this.props.templates&&this.props.templates.inputValue;return t?t(e):e},t.templateSuggestion=function(e){var t=this.props.templates&&this.props.templates.suggestion;return t?t(e):e},t.handleComponentBlur=function(e){var t,n=this.state,r=n.options,o=n.query,i=n.selected;this.props.confirmOnBlur?(t=e.query||o,this.props.onConfirm(r[i])):t=o,this.setState({focused:null,clicked:null,menuOpen:e.menuOpen||!1,query:t,selected:null}),this.props.selectElement&&this.props.selectElement.multiple&&this.setState({menuOpen:!1,selected:null,query:""})},t.handleListMouseLeave=function(e){this.setState({hovered:null})},t.handleOptionBlur=function(e,t){var n=this.state,r=n.focused,o=n.clicked,i=n.menuOpen,u=n.options,s=n.selected,l=null===e.relatedTarget&&null===o,a=e.relatedTarget===this.elementReferences[-1],c=r!==t&&-1!==r;if(!c&&l||!(c||a)){var p=i&&f();this.handleComponentBlur({menuOpen:p,query:this.templateInputValue(u[s])})}},t.handleInputBlur=function(e){var t=this,n=this.state,r=n.focused,o=n.menuOpen,i=n.options,u=n.query,s=n.selected,l=-1!==r;if(clearTimeout(this.$blurInput),!l){var a=o&&f(),c=f()?u:this.templateInputValue(i[s]);this.$blurInput=setTimeout(function(){return t.handleComponentBlur({menuOpen:a,query:c})},200)}},t.handleInputChange=function(e){var n=this,t=this.props,r=t.minLength,o=t.source,i=t.showAllValues,u=this.hasAutoselect(),s=e.target.value,l=0===s.length,a=this.state.query.length!==s.length,c=s.length>=r;this.setState({query:s}),i||!l&&a&&c?o(s,function(e){var t=0<e.length;n.setState({menuOpen:t,options:e,selected:u&&t?0:-1})}):!l&&c||this.setState({menuOpen:!1,options:[]})},t.handleInputClick=function(e){this.handleInputChange(e)},t.handleInputFocus=function(e){this.setState({focused:-1})},t.handleOptionFocus=function(e){this.setState({focused:e,hovered:null,selected:e})},t.handleOptionMouseEnter=function(e,t){f()||this.setState({hovered:t})},t.handleOptionClick=function(e,t){var n=this.state.options[t],r=this.templateInputValue(n);clearTimeout(this.$blurInput),this.props.onConfirm(n),this.setState({focused:-1,clicked:t,hovered:null,menuOpen:!1,query:r,selected:-1}),this.props.selectElement&&this.props.selectElement.multiple&&this.updateMultiselect(n),this.forceUpdate()},t.updateMultiselect=function(t){if(t){var e=[].filter.call(this.props.selectElement.options,function(e){return e.textContent===t})[0];e&&(e.selected=!0);var n=[].filter.call(this.props.selectElement.options,function(e){return e.textContent});this.props.selectedOptions=n.filter(function(e){return!0===e.selected}),this.setState({menuOpen:!1,selected:null,query:""})}},t.handleSelectedOptionClick=function(e,t){var n=this.props.selectedOptions[t];this.props.selectedOptions=this.props.selectedOptions.filter(function(e){return e!==n});var r=[].filter.call(this.props.selectElement.options,function(e){return e.textContent===n.textContent})[0];r&&(r.selected=!1),this.forceUpdate()},t.handleSelectedOptionKeyDown=function(e,t){switch(s[e.keyCode]){case"space":case"enter":this.handleSelectedOptionClick(e,t)}},t.handleUpArrow=function(e){e.preventDefault();var t=this.state,n=t.menuOpen,r=t.selected;-1!==r&&n&&this.handleOptionFocus(r-1)},t.handleDownArrow=function(e){var t=this;if(e.preventDefault(),this.props.showAllValues&&!1===this.state.menuOpen)e.preventDefault(),this.props.source("",function(e){t.setState({menuOpen:!0,options:e,selected:0,focused:0,hovered:null})});else if(!0===this.state.menuOpen){var n=this.state,r=n.menuOpen,o=n.options,i=n.selected;i!==o.length-1&&r&&this.handleOptionFocus(i+1)}},t.handleSpace=function(e){var t=this;this.props.showAllValues&&!1===this.state.menuOpen&&""===this.state.query&&(e.preventDefault(),this.props.source("",function(e){t.setState({menuOpen:!0,options:e})})),-1!==this.state.focused&&(e.preventDefault(),this.handleOptionClick(e,this.state.focused))},t.handleEnter=function(e){this.state.menuOpen&&(e.preventDefault(),0<=this.state.selected&&this.handleOptionClick(e,this.state.selected))},t.handlePrintableKey=function(e){var t=this.elementReferences[-1];e.target===t||t.focus()},t.handleKeyDown=function(e){switch(s[e.keyCode]){case"up":this.handleUpArrow(e);break;case"down":this.handleDownArrow(e);break;case"space":this.handleSpace(e);break;case"enter":this.handleEnter(e);break;case"escape":this.handleComponentBlur({query:this.state.query});break;default:(function t(e){return 47<e&&e<58||32===e||8===e||64<e&&e<91||95<e&&e<112||185<e&&e<193||218<e&&e<223})(e.keyCode)&&this.handlePrintableKey(e)}},t.render=function(){var e,o=this,t=this.props,n=t.cssNamespace,r=t.displayMenu,i=t.id,u=t.minLength,s=t.name,l=t.placeholder,a=t.required,c=t.multiple,p=t.showAllValues,f=t.tNoResults,d=t.tStatusQueryTooShort,h=t.tStatusNoResults,m=t.tStatusSelectedOption,v=t.tStatusResults,y=t.tSelectedOptionDescription,g=t.dropdownArrow,b=t.customAttributes,O=this.state,w=O.focused,x=O.hovered,_=O.menuOpen,S=O.options,E=O.query,C=O.selected,I=this.hasAutoselect(),j=-1===w,k=0===S.length,M=0!==E.length,A=E.length>=u,P=this.props.showNoOptionsFound&&j&&k&&M&&A,D=n+"__wrapper",F=n+"__input",R=null!==w?" "+F+"--focused":"",q=this.props.showAllValues?" "+F+"--show-all-values":" "+F+"--default",N=n+"__dropdown-arrow-down",T=-1!==w&&null!==w,L=n+"__menu",B=L+"--"+r,V=L+"--"+(_||P?"visible":"hidden"),K=n+"__option",U=n+"__list",Q=n+"__hint",$=this.templateInputValue(S[C]),W=$&&0===$.toLowerCase().indexOf(E.toLowerCase())&&I?E+$.substr(E.length):"",H=Y&&W;return p&&"string"==typeof(e=g({className:N}))&&(e=(0,G.createElement)("div",{className:n+"__dropdown-arrow-down-wrapper",dangerouslySetInnerHTML:{__html:e}})),(0,G.createElement)("div",{className:D,onKeyDown:this.handleKeyDown,role:"combobox","aria-expanded":_?"true":"false"},(0,G.createElement)(J["default"],{length:S.length,queryLength:E.length,minQueryLength:u,selectedOption:this.templateInputValue(S[C]),selectedOptionIndex:C,tQueryTooShort:d,tNoResults:h,tSelectedOption:m,tResults:v}),H&&(0,G.createElement)("span",null,(0,G.createElement)("input",{className:Q,readonly:!0,tabIndex:"-1",value:W})),(0,G.createElement)("input",X({"aria-activedescendant":!!T&&i+"__option--"+w,"aria-owns":i+"__listbox",autoComplete:"off",className:""+F+R+q,id:i,onClick:function(e){return o.handleInputClick(e)},onBlur:this.handleInputBlur},function z(e){return{onChange:e}}(this.handleInputChange),{onFocus:this.handleInputFocus,name:s,placeholder:l,ref:function(e){o.elementReferences[-1]=e},type:"text",role:"textbox",required:a,value:E},b)),e,(0,G.createElement)("ul",{className:L+" "+B+" "+V,onMouseLeave:function(e){return o.handleListMouseLeave(e)},id:i+"__listbox",role:"listbox"},S.map(function(e,t){var n=(-1===w?C===t:w===t)&&null===x?" "+K+"--focused":"",r=t%2?" "+K+"--odd":"";return(0,G.createElement)("li",{"aria-selected":w===t,className:""+K+n+r,dangerouslySetInnerHTML:{__html:o.templateSuggestion(e)},id:i+"__option--"+t,key:t,onBlur:function(e){return o.handleOptionBlur(e,t)},onClick:function(e){return o.handleOptionClick(e,t)},onMouseEnter:function(e){return o.handleOptionMouseEnter(e,t)},ref:function(e){o.elementReferences[t]=e},role:"option",tabIndex:"-1"})}),P&&(0,G.createElement)("li",{className:K+" "+K+"--no-results"},f())),c&&(0,G.createElement)("ul",{className:""+U,id:i+"__list",role:"listbox"},this.props.selectedOptions.map(function(e,t){return(0,G.createElement)("li",{"aria-selected":"true","aria-label":o.templateSuggestion(e.textContent)+", selected","aria-describedBy":i+"__list-item-description",className:""+K,dangerouslySetInnerHTML:{__html:o.templateSuggestion(e.textContent)},id:i+"__option--"+t,key:t,onClick:function(e){return o.handleSelectedOptionClick(e,t)},onKeyDown:function(e){return o.handleSelectedOptionKeyDown(e,t)},role:"option",tabIndex:"0"})}),P&&(0,G.createElement)("li",{className:K+" "+K+"--no-results"},f())),c&&(0,G.createElement)("span",{"class":"autocomplete__list-item-description",id:i+"__list-item-description"},y()))},e}(G.Component);(t["default"]=l).defaultProps={autoselect:!1,cssNamespace:"autocomplete",customAttributes:{},defaultValue:"",displayMenu:"inline",minLength:0,name:"input-autocomplete",placeholder:"",onConfirm:function(){},confirmOnBlur:!0,showNoOptionsFound:!0,showAllValues:!1,required:!1,multiple:!1,selectedOptions:{},tNoResults:function(){return"No results found"},tSelectedOptionDescription:function(){return"press Enter or Space to remove selection"},dropdownArrow:r["default"]}},function(e,t,n){var r=n(0);r(r.S+r.F,"Object",{assign:n(37)})},function(e,t,n){e.exports=!n(3)&&!n(4)(function(){return 7!=Object.defineProperty(n(14)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var o=n(2);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){"use strict";var f=n(19),d=n(41),h=n(42),m=n(28),v=n(10),o=Object.assign;e.exports=!o||n(4)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=o({},e)[n]||Object.keys(o({},t)).join("")!=r})?function(e,t){for(var n=m(e),r=arguments.length,o=1,i=d.f,u=h.f;o<r;)for(var s,l=v(arguments[o++]),a=i?f(l).concat(i(l)):f(l),c=a.length,p=0;p<c;)u.call(l,s=a[p++])&&(n[s]=l[s]);return n}:o},function(e,t,n){var u=n(16),s=n(20),l=n(22)(!1),a=n(25)("IE_PROTO");e.exports=function(e,t){var n,r=s(e),o=0,i=[];for(n in r)n!=a&&u(r,n)&&i.push(n);for(;t.length>o;)u(r,n=t[o++])&&(~l(i,n)||i.push(n));return i}},function(e,t,n){var r=n(24),o=Math.max,i=Math.min;e.exports=function(e,t){return(e=r(e))<0?o(e+t,0):i(e,t)}},function(e,t){e.exports=!1},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,r){var o=r(8),i=r(44),u=r(27),s=r(25)("IE_PROTO"),l=function(){},a="prototype",c=function(){var e,t=r(14)("iframe"),n=u.length;for(t.style.display="none",r(45).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;n--;)delete c[a][u[n]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(l[a]=o(e),n=new l,l[a]=null,n[s]=e):n=c(),t===undefined?n:i(n,t)}},function(e,t,n){var u=n(7),s=n(8),l=n(19);e.exports=n(3)?Object.defineProperties:function(e,t){s(e);for(var n,r=l(t),o=r.length,i=0;i<o;)u.f(e,n=r[i++],t[n]);return e}},function(e,t,n){var r=n(1).document;e.exports=r&&r.documentElement},function(e,t,n){"use strict";var r=n(0),o=n(30)(1);r(r.P+r.F*!n(12)([].map,!0),"Array",{map:function(e){return o(this,e,arguments[1])}})},function(e,t,n){var r=n(48);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){var r=n(2),o=n(49),i=n(31)("species");e.exports=function(e){var t;return o(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!o(t.prototype)||(t=undefined),r(t)&&null===(t=t[i])&&(t=undefined)),t===undefined?Array:t}},function(e,t,n){var r=n(21);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){"use strict";var r=n(0),o=n(22)(!1),i=[].indexOf,u=!!i&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(u||!n(12)(i)),"Array",{indexOf:function(e){return u?i.apply(this,arguments)||0:o(this,e,arguments[1])}})},function(e,t,n){var r=n(7).f,o=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in o||n(3)&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(e){return""}}})},function(e,t,n){"use strict";var r=n(0),o=n(30)(2);r(r.P+r.F*!n(12)([].filter,!0),"Array",{filter:function(e){return o(this,e,arguments[1])}})},function(e,t,n){var r=n(0);r(r.P,"Function",{bind:n(54)})},function(e,t,n){"use strict";var i=n(18),u=n(2),s=n(55),l=[].slice,a={};e.exports=Function.bind||function(t){var n=i(this),r=l.call(arguments,1),o=function(){var e=r.concat(l.call(arguments));return this instanceof o?function(e,t,n){if(!(t in a)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";a[t]=Function("F,a","return new F("+r.join(",")+")")}return a[t](e,n)}(n,e.length,e):s(n,e,t)};return u(n.prototype)&&(o.prototype=n.prototype),o}},function(e,t){e.exports=function(e,t,n){var r=n===undefined;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){n(57)("match",1,function(r,o,e){return[function(e){"use strict";var t=r(this),n=e==undefined?undefined:e[o];return n!==undefined?n.call(e,t):new RegExp(e)[o](String(t))},e]})},function(e,t,n){"use strict";var s=n(6),l=n(15),a=n(4),c=n(11),p=n(31);e.exports=function(t,e,n){var r=p(t),o=n(c,r,""[t]),i=o[0],u=o[1];a(function(){var e={};return e[r]=function(){return 7},7!=""[t](e)})&&(l(String.prototype,t,i),s(RegExp.prototype,r,2==e?function(e,t){return u.call(e,this,t)}:function(e){return u.call(e,this)}))}},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0,n(29);var m=n(13);var r=function(o){function e(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))||this).state={bump:!1},e}(function n(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t})(e,o);var t=e.prototype;return t.componentWillReceiveProps=function(e){e.queryLength!==this.props.queryLength&&this.setState(function(e){return{bump:!e.bump}})},t.render=function(){var e=this.props,t=e.length,n=e.queryLength,r=e.minQueryLength,o=e.selectedOption,i=e.selectedOptionIndex,u=e.tQueryTooShort,s=e.tNoResults,l=e.tSelectedOption,a=e.tResults,c=this.state.bump,p=n<r,f=0===t,d=o?l(o,t,i):"",h=null;return h=p?u(r):f?s():a(t,d),(0,m.createElement)("div",{"aria-atomic":"true","aria-live":"polite",role:"status",style:{border:"0",clip:"rect(0 0 0 0)",height:"1px",marginBottom:"-1px",marginRight:"-1px",overflow:"hidden",padding:"0",position:"absolute",whiteSpace:"nowrap",width:"1px"}},h,(0,m.createElement)("span",null,c?",":",,"))},e}(m.Component);(t["default"]=r).defaultProps={tQueryTooShort:function(e){return"Type in "+e+" or more characters for results."},tNoResults:function(){return"No search results."},tSelectedOption:function(e,t,n){return e+" ("+(n+1)+" of "+t+") is selected."},tResults:function(e,t){return e+" "+(1===e?"result":"results")+" "+(1===e?"is":"are")+" available. "+t}}},function(e,t,n){"use strict";t.__esModule=!0,t["default"]=void 0;var r=n(13),o=function i(e){var t=e.className;return(0,r.createElement)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:t,focusable:"false"},(0,r.createElement)("g",{stroke:"none",fill:"none","fill-rule":"evenodd"},(0,r.createElement)("polygon",{fill:"#000000",points:"0 0 22 0 11 17"})))};t["default"]=o}])});
|
2
2
|
//# sourceMappingURL=accessible-autocomplete.react.min.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["webpack://Autocomplete/webpack/universalModuleDefinition","webpack://Autocomplete/webpack/bootstrap","webpack://Autocomplete/../node_modules/core-js/modules/_global.js","webpack://Autocomplete/../node_modules/core-js/modules/_export.js","webpack://Autocomplete/../node_modules/core-js/modules/_is-object.js","webpack://Autocomplete/../node_modules/core-js/modules/_descriptors.js","webpack://Autocomplete/../node_modules/core-js/modules/_fails.js","webpack://Autocomplete/../node_modules/core-js/modules/_core.js","webpack://Autocomplete/../node_modules/core-js/modules/_hide.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-dp.js","webpack://Autocomplete/../node_modules/core-js/modules/_an-object.js","webpack://Autocomplete/../node_modules/core-js/modules/_uid.js","webpack://Autocomplete/../node_modules/core-js/modules/_iobject.js","webpack://Autocomplete/../node_modules/core-js/modules/_defined.js","webpack://Autocomplete/external {\"amd\":\"react\",\"commonjs\":\"react\",\"commonjs2\":\"react\",\"root\":\"React\"}","webpack://Autocomplete/../node_modules/core-js/modules/_dom-create.js","webpack://Autocomplete/../node_modules/core-js/modules/_redefine.js","webpack://Autocomplete/../node_modules/core-js/modules/_has.js","webpack://Autocomplete/../node_modules/core-js/modules/_ctx.js","webpack://Autocomplete/../node_modules/core-js/modules/_a-function.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-keys.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-iobject.js","webpack://Autocomplete/../node_modules/core-js/modules/_cof.js","webpack://Autocomplete/../node_modules/core-js/modules/_array-includes.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-length.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-integer.js","webpack://Autocomplete/../node_modules/core-js/modules/_shared-key.js","webpack://Autocomplete/../node_modules/core-js/modules/_shared.js","webpack://Autocomplete/../node_modules/core-js/modules/_enum-bug-keys.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-object.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.object.create.js","webpack://Autocomplete/../node_modules/core-js/modules/_wks.js","webpack://Autocomplete/../node_modules/core-js/modules/_strict-method.js","webpack://Autocomplete/./autocomplete.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.object.assign.js","webpack://Autocomplete/../node_modules/core-js/modules/_ie8-dom-define.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-primitive.js","webpack://Autocomplete/../node_modules/core-js/modules/_property-desc.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-assign.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-keys-internal.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-absolute-index.js","webpack://Autocomplete/../node_modules/core-js/modules/_library.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-gops.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-pie.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-create.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-dps.js","webpack://Autocomplete/../node_modules/core-js/modules/_html.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.array.map.js","webpack://Autocomplete/../node_modules/core-js/modules/_array-methods.js","webpack://Autocomplete/../node_modules/core-js/modules/_array-species-create.js","webpack://Autocomplete/../node_modules/core-js/modules/_array-species-constructor.js","webpack://Autocomplete/../node_modules/core-js/modules/_is-array.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.array.index-of.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.function.name.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.function.bind.js","webpack://Autocomplete/../node_modules/core-js/modules/_bind.js","webpack://Autocomplete/../node_modules/core-js/modules/_invoke.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.regexp.match.js","webpack://Autocomplete/../node_modules/core-js/modules/_fix-re-wks.js","webpack://Autocomplete/./status.js","webpack://Autocomplete/./dropdown-arrow-down.js"],"names":["webpackUniversalModuleDefinition","root","factory","exports","module","require","define","amd","window","__WEBPACK_EXTERNAL_MODULE__12__","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","global","Math","self","Function","__g","core","hide","redefine","ctx","PROTOTYPE","$export","type","source","own","out","exp","IS_FORCED","F","IS_GLOBAL","G","IS_STATIC","S","IS_PROTO","P","IS_BIND","B","target","expProto","undefined","U","W","R","it","a","exec","e","version","__e","dP","createDesc","f","anObject","IE8_DOM_DEFINE","toPrimitive","O","Attributes","TypeError","isObject","id","px","random","concat","toString","cof","propertyIsEnumerable","split","document","is","createElement","has","SRC","TO_STRING","$toString","TPL","inspectSource","val","safe","isFunction","join","String","this","aFunction","fn","that","length","b","apply","arguments","$keys","enumBugKeys","keys","IObject","defined","slice","toIObject","toLength","toAbsoluteIndex","IS_INCLUDES","$this","el","fromIndex","index","toInteger","min","ceil","floor","isNaN","shared","uid","SHARED","store","push","copyright","USE_SYMBOL","fails","method","arg","_preact","_status","_interopRequireDefault","_dropdownArrowDown","element","keyCodes","13","27","32","38","40","hasPointerEvents","style","cssText","pointerEvents","isIosDevice","navigator","userAgent","match","Autocomplete","props","_this","_Component","elementReferences","state","focused","hovered","clicked","menuOpen","options","defaultValue","query","selected","handleComponentBlur","_assertThisInitialized","handleKeyDown","handleUpArrow","handleDownArrow","handleEnter","handlePrintableKey","handleListMouseLeave","handleOptionBlur","handleOptionClick","handleOptionFocus","handleOptionMouseEnter","handleInputBlur","handleInputChange","handleInputFocus","pollInputElement","getDirectInputChanges","componentDidMount","componentWillUnmount","clearTimeout","$pollInput","$blurInput","_this2","setTimeout","inputReference","componentDidUpdate","prevProps","prevState","_this$state","componentLostFocus","focusedChanged","focus","focusedInput","componentGainedFocus","inputElement","setSelectionRange","hasAutoselect","autoselect","templateInputValue","inputValueTemplate","templates","inputValue","templateSuggestion","suggestionTemplate","suggestion","newState","newQuery","_this$state2","confirmOnBlur","onConfirm","setState","event","_this$state3","focusingOutsideComponent","relatedTarget","focusingInput","focusingAnotherOption","keepMenuOpen","_this3","_this$state4","focusingAnOption","_this4","_this$props","minLength","showAllValues","queryEmpty","queryChanged","queryLongEnough","optionsAvailable","handleInputClick","selectedOption","forceUpdate","preventDefault","_this$state5","_this5","_this$state6","handleSpace","_this6","keyCode","isPrintableKeyCode","render","dropdownArrow","_this7","_this$props2","cssNamespace","displayMenu","placeholder","required","tNoResults","tStatusQueryTooShort","tStatusNoResults","tStatusSelectedOption","tStatusResults","dropdownArrowFactory","_this$state7","inputFocused","noOptionsAvailable","queryNotEmpty","showNoOptionsFound","wrapperClassName","inputClassName","inputModifierFocused","inputModifierType","dropdownArrowClassName","optionFocused","menuClassName","menuModifierDisplayMenu","menuModifierVisibility","optionClassName","hintClassName","selectedOptionText","hintValue","toLowerCase","indexOf","substr","showHint","className","dangerouslySetInnerHTML","__html","onKeyDown","role","aria-expanded","queryLength","minQueryLength","selectedOptionIndex","tQueryTooShort","tSelectedOption","tResults","readonly","tabIndex","_extends","aria-activedescendant","aria-owns","autoComplete","onClick","onBlur","onChangeCrossLibrary","handler","onChange","onFocus","ref","onMouseLeave","map","option","optionModifierFocused","optionModifierOdd","aria-selected","onMouseEnter","optionEl","Component","defaultProps","DropdownArrowDown","assign","valueOf","bitmap","configurable","writable","getKeys","gOPS","pIE","toObject","$assign","A","K","forEach","k","T","aLen","getSymbols","isEnum","j","arrayIndexOf","IE_PROTO","names","result","max","getOwnPropertySymbols","dPs","Empty","createDict","iframeDocument","iframe","display","appendChild","src","contentWindow","open","write","lt","close","Properties","defineProperties","documentElement","$map","callbackfn","asc","TYPE","$create","IS_MAP","IS_FILTER","IS_SOME","IS_EVERY","IS_FIND_INDEX","NO_HOLES","res","speciesConstructor","original","isArray","SPECIES","C","constructor","Array","$indexOf","$native","NEGATIVE_ZERO","searchElement","FProto","nameRE","invoke","arraySlice","factories","partArgs","bound","args","len","construct","un","MATCH","$match","regexp","RegExp","wks","KEY","SYMBOL","fns","strfn","rxfn","string","Status","bump","componentWillReceiveProps","_ref","_ref2","queryTooShort","noResults","contentSelectedOption","content","aria-atomic","aria-live","border","clip","height","marginBottom","marginRight","overflow","padding","position","whiteSpace","width","xmlns","focusable","stroke","fill","fill-rule","points"],"mappings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IAAXtT,EAEZuT,EAAwB/K,EAC1BwD,EAAgBxD,EAAgBxI,EAAQ8L,GACxC,GAEA0H,EAAU,KASd,OAPEA,EADEH,EACQtH,EAAeF,GAChByH,EACC5J,IAEAuC,EAASjM,EAAQuT,IAGtB,EAAAtR,EAAAjD,eAAA,OACLyU,cAAY,OACZC,YAAU,SACVhI,KAAK,SACL7I,MAAO,CACL8Q,OAAQ,IACRC,KAAM,gBACNC,OAAQ,MACRC,aAAc,OACdC,YAAa,OACbC,SAAU,SACVC,QAAS,IACTC,SAAU,WACVC,WAAY,SACZC,MAAO,QAGRZ,GACD,EAAAvR,EAAAjD,eAAA,YAAOiU,EAAO,IAAM,WA1EU1F,8BAC3BC,aAAe,CACpBzB,eAAgB,SAACF,GAAD,iBAA+BA,EAA/B,oCAChBnC,WAAY,iBAAM,sBAClBsC,gBAAiB,SAACxD,EAAgBxI,EAAQiB,GAAzB,OAAsCuH,EAAtC,MAAyDvH,EAAQ,GAAjE,OAAyEjB,EAAzE,kBACjBiM,SAAU,SAACjM,EAAQuT,GAMjB,OAAUvT,EAAV,KAJsB,IAAXA,EAAgB,SAAW,WAItC,KAHkB,IAAXA,EAAgB,KAAO,OAG9B,eAA2DuT,sECbjE,IAAAtR,EAAA7I,EAAA,MAE0B,SAApBqU,EAAoB0F,GAAA,IAAG7H,EAAH6H,EAAG7H,UAAH,OACxB,EAAArJ,EAAAjD,eAAA,OAAKtB,QAAQ,MAAM2W,MAAM,6BAA6B/I,UAAWA,EAAWgJ,UAAU,UACpF,EAAArS,EAAAjD,eAAA,KAAGuV,OAAO,OAAOC,KAAK,OAAOC,YAAU,YACrC,EAAAxS,EAAAjD,eAAA,WAASwV,KAAK,UAAUE,OAAO","file":"lib/accessible-autocomplete.react.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"react\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Autocomplete\"] = factory(require(\"react\"));\n\telse\n\t\troot[\"Autocomplete\"] = factory(root[\"React\"]);\n})(window, function(__WEBPACK_EXTERNAL_MODULE__12__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 31);\n","// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self\n // eslint-disable-next-line no-new-func\n : Function('return this')();\nif (typeof __g == 'number') __g = global; // eslint-disable-line no-undef\n","var global = require('./_global');\nvar core = require('./_core');\nvar hide = require('./_hide');\nvar redefine = require('./_redefine');\nvar ctx = require('./_ctx');\nvar PROTOTYPE = 'prototype';\n\nvar $export = function (type, name, source) {\n var IS_FORCED = type & $export.F;\n var IS_GLOBAL = type & $export.G;\n var IS_STATIC = type & $export.S;\n var IS_PROTO = type & $export.P;\n var IS_BIND = type & $export.B;\n var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];\n var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});\n var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});\n var key, own, out, exp;\n if (IS_GLOBAL) source = name;\n for (key in source) {\n // contains in native\n own = !IS_FORCED && target && target[key] !== undefined;\n // export native or passed\n out = (own ? target : source)[key];\n // bind timers to global for call from export context\n exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n // extend global\n if (target) redefine(target, key, out, type & $export.U);\n // export\n if (exports[key] != out) hide(exports, key, exp);\n if (IS_PROTO && expProto[key] != out) expProto[key] = out;\n }\n};\nglobal.core = core;\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\n$export.U = 64; // safe\n$export.R = 128; // real proto method for `library`\nmodule.exports = $export;\n","module.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n","// Thank's IE8 for his funny defineProperty\nmodule.exports = !require('./_fails')(function () {\n return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;\n});\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (e) {\n return true;\n }\n};\n","var core = module.exports = { version: '2.5.7' };\nif (typeof __e == 'number') __e = core; // eslint-disable-line no-undef\n","var dP = require('./_object-dp');\nvar createDesc = require('./_property-desc');\nmodule.exports = require('./_descriptors') ? function (object, key, value) {\n return dP.f(object, key, createDesc(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","var anObject = require('./_an-object');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar toPrimitive = require('./_to-primitive');\nvar dP = Object.defineProperty;\n\nexports.f = require('./_descriptors') ? Object.defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return dP(O, P, Attributes);\n } catch (e) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","var isObject = require('./_is-object');\nmodule.exports = function (it) {\n if (!isObject(it)) throw TypeError(it + ' is not an object!');\n return it;\n};\n","var id = 0;\nvar px = Math.random();\nmodule.exports = function (key) {\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n","// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = require('./_cof');\n// eslint-disable-next-line no-prototype-builtins\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n","// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n","module.exports = __WEBPACK_EXTERNAL_MODULE__12__;","var isObject = require('./_is-object');\nvar document = require('./_global').document;\n// typeof document.createElement is 'object' in old IE\nvar is = isObject(document) && isObject(document.createElement);\nmodule.exports = function (it) {\n return is ? document.createElement(it) : {};\n};\n","var global = require('./_global');\nvar hide = require('./_hide');\nvar has = require('./_has');\nvar SRC = require('./_uid')('src');\nvar TO_STRING = 'toString';\nvar $toString = Function[TO_STRING];\nvar TPL = ('' + $toString).split(TO_STRING);\n\nrequire('./_core').inspectSource = function (it) {\n return $toString.call(it);\n};\n\n(module.exports = function (O, key, val, safe) {\n var isFunction = typeof val == 'function';\n if (isFunction) has(val, 'name') || hide(val, 'name', key);\n if (O[key] === val) return;\n if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));\n if (O === global) {\n O[key] = val;\n } else if (!safe) {\n delete O[key];\n hide(O, key, val);\n } else if (O[key]) {\n O[key] = val;\n } else {\n hide(O, key, val);\n }\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n})(Function.prototype, TO_STRING, function toString() {\n return typeof this == 'function' && this[SRC] || $toString.call(this);\n});\n","var hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n","// optional / simple context binding\nvar aFunction = require('./_a-function');\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","module.exports = function (it) {\n if (typeof it != 'function') throw TypeError(it + ' is not a function!');\n return it;\n};\n","// 19.1.2.14 / 15.2.3.14 Object.keys(O)\nvar $keys = require('./_object-keys-internal');\nvar enumBugKeys = require('./_enum-bug-keys');\n\nmodule.exports = Object.keys || function keys(O) {\n return $keys(O, enumBugKeys);\n};\n","// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = require('./_iobject');\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return IObject(defined(it));\n};\n","var toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n","// false -> Array#indexOf\n// true -> Array#includes\nvar toIObject = require('./_to-iobject');\nvar toLength = require('./_to-length');\nvar toAbsoluteIndex = require('./_to-absolute-index');\nmodule.exports = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) if (IS_INCLUDES || index in O) {\n if (O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n","// 7.1.15 ToLength\nvar toInteger = require('./_to-integer');\nvar min = Math.min;\nmodule.exports = function (it) {\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n","// 7.1.4 ToInteger\nvar ceil = Math.ceil;\nvar floor = Math.floor;\nmodule.exports = function (it) {\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n","var shared = require('./_shared')('keys');\nvar uid = require('./_uid');\nmodule.exports = function (key) {\n return shared[key] || (shared[key] = uid(key));\n};\n","var core = require('./_core');\nvar global = require('./_global');\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || (global[SHARED] = {});\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: core.version,\n mode: require('./_library') ? 'pure' : 'global',\n copyright: '© 2018 Denis Pushkarev (zloirock.ru)'\n});\n","// IE 8- don't enum bug keys\nmodule.exports = (\n 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'\n).split(',');\n","// 7.1.13 ToObject(argument)\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return Object(defined(it));\n};\n","var $export = require('./_export');\n// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\n$export($export.S, 'Object', { create: require('./_object-create') });\n","var store = require('./_shared')('wks');\nvar uid = require('./_uid');\nvar Symbol = require('./_global').Symbol;\nvar USE_SYMBOL = typeof Symbol == 'function';\n\nvar $exports = module.exports = function (name) {\n return store[name] || (store[name] =\n USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));\n};\n\n$exports.store = store;\n","'use strict';\nvar fails = require('./_fails');\n\nmodule.exports = function (method, arg) {\n return !!method && fails(function () {\n // eslint-disable-next-line no-useless-call\n arg ? method.call(null, function () { /* empty */ }, 1) : method.call(null);\n });\n};\n","import { createElement, Component } from 'preact' /** @jsx createElement */\nimport Status from './status'\nimport DropdownArrowDown from './dropdown-arrow-down'\n\nconst IS_PREACT = process.env.COMPONENT_LIBRARY === 'PREACT'\nconst IS_REACT = process.env.COMPONENT_LIBRARY === 'REACT'\n\nconst keyCodes = {\n 13: 'enter',\n 27: 'escape',\n 32: 'space',\n 38: 'up',\n 40: 'down'\n}\n\n// Based on https://github.com/ausi/Feature-detection-technique-for-pointer-events\nconst hasPointerEvents = (() => {\n const element = document.createElement('x')\n element.style.cssText = 'pointer-events:auto'\n return element.style.pointerEvents === 'auto'\n})()\n\nfunction isIosDevice () {\n return !!(navigator.userAgent.match(/(iPod|iPhone|iPad)/g) && navigator.userAgent.match(/AppleWebKit/g))\n}\n\nfunction isPrintableKeyCode (keyCode) {\n return (\n (keyCode > 47 && keyCode < 58) || // number keys\n keyCode === 32 || keyCode === 8 || // spacebar or backspace\n (keyCode > 64 && keyCode < 91) || // letter keys\n (keyCode > 95 && keyCode < 112) || // numpad keys\n (keyCode > 185 && keyCode < 193) || // ;=,-./` (in order)\n (keyCode > 218 && keyCode < 223) // [\\]' (in order)\n )\n}\n\n// Preact does not implement onChange on inputs, but React does.\nfunction onChangeCrossLibrary (handler) {\n if (IS_PREACT) { return { onInput: handler } }\n if (IS_REACT) { return { onChange: handler } }\n}\n\nexport default class Autocomplete extends Component {\n static defaultProps = {\n autoselect: false,\n cssNamespace: 'autocomplete',\n defaultValue: '',\n displayMenu: 'inline',\n minLength: 0,\n name: 'input-autocomplete',\n placeholder: '',\n onConfirm: () => {},\n confirmOnBlur: true,\n showNoOptionsFound: true,\n showAllValues: false,\n required: false,\n tNoResults: () => 'No results found',\n dropdownArrow: DropdownArrowDown\n }\n\n elementReferences = {}\n\n constructor (props) {\n super(props)\n\n this.state = {\n focused: null,\n hovered: null,\n clicked: null,\n menuOpen: false,\n options: props.defaultValue ? [props.defaultValue] : [],\n query: props.defaultValue,\n selected: null\n }\n\n this.handleComponentBlur = this.handleComponentBlur.bind(this)\n this.handleKeyDown = this.handleKeyDown.bind(this)\n this.handleUpArrow = this.handleUpArrow.bind(this)\n this.handleDownArrow = this.handleDownArrow.bind(this)\n this.handleEnter = this.handleEnter.bind(this)\n this.handlePrintableKey = this.handlePrintableKey.bind(this)\n\n this.handleListMouseLeave = this.handleListMouseLeave.bind(this)\n\n this.handleOptionBlur = this.handleOptionBlur.bind(this)\n this.handleOptionClick = this.handleOptionClick.bind(this)\n this.handleOptionFocus = this.handleOptionFocus.bind(this)\n this.handleOptionMouseEnter = this.handleOptionMouseEnter.bind(this)\n\n this.handleInputBlur = this.handleInputBlur.bind(this)\n this.handleInputChange = this.handleInputChange.bind(this)\n this.handleInputFocus = this.handleInputFocus.bind(this)\n\n this.pollInputElement = this.pollInputElement.bind(this)\n this.getDirectInputChanges = this.getDirectInputChanges.bind(this)\n }\n\n componentDidMount () {\n this.pollInputElement()\n }\n\n componentWillUnmount () {\n clearTimeout(this.$pollInput)\n clearTimeout(this.$blurInput)\n }\n\n // Applications like Dragon NaturallySpeaking will modify the\n // `input` field by directly changing its `.value`. These events\n // don't trigger our JavaScript event listeners, so we need to poll\n // to handle when and if they occur.\n pollInputElement () {\n this.getDirectInputChanges()\n this.$pollInput = setTimeout(() => {\n this.pollInputElement()\n }, 100)\n }\n\n getDirectInputChanges () {\n const inputReference = this.elementReferences[-1]\n const queryHasChanged = inputReference && inputReference.value !== this.state.query\n\n if (queryHasChanged) {\n this.handleInputChange({ target: { value: inputReference.value } })\n }\n }\n\n componentDidUpdate (prevProps, prevState) {\n const { focused, clicked } = this.state\n const componentLostFocus = focused === null\n const focusedChanged = prevState.focused !== focused\n const focusDifferentElement = (focusedChanged && !componentLostFocus) || clicked !== null\n if (focusDifferentElement) {\n this.elementReferences[focused].focus()\n }\n const focusedInput = focused === -1\n const componentGainedFocus = focusedChanged && prevState.focused === null\n const selectAllText = focusedInput && componentGainedFocus\n if (selectAllText) {\n const inputElement = this.elementReferences[focused]\n inputElement.setSelectionRange(0, inputElement.value.length)\n }\n }\n\n hasAutoselect () {\n return isIosDevice() ? false : this.props.autoselect\n }\n\n // This template is used when converting from a state.options object into a state.query.\n templateInputValue (value) {\n const inputValueTemplate = this.props.templates && this.props.templates.inputValue\n return inputValueTemplate ? inputValueTemplate(value) : value\n }\n\n // This template is used when displaying results / suggestions.\n templateSuggestion (value) {\n const suggestionTemplate = this.props.templates && this.props.templates.suggestion\n return suggestionTemplate ? suggestionTemplate(value) : value\n }\n\n handleComponentBlur (newState) {\n const { options, query, selected } = this.state\n let newQuery\n if (this.props.confirmOnBlur) {\n newQuery = newState.query || query\n this.props.onConfirm(options[selected])\n } else {\n newQuery = query\n }\n this.setState({\n focused: null,\n clicked: null,\n menuOpen: newState.menuOpen || false,\n query: newQuery,\n selected: null\n })\n }\n\n handleListMouseLeave (event) {\n this.setState({\n hovered: null\n })\n }\n\n handleOptionBlur (event, index) {\n const { focused, clicked, menuOpen, options, selected } = this.state\n const focusingOutsideComponent = event.relatedTarget === null && clicked === null\n const focusingInput = event.relatedTarget === this.elementReferences[-1]\n const focusingAnotherOption = focused !== index && focused !== -1\n const blurComponent = (!focusingAnotherOption && focusingOutsideComponent) || !(focusingAnotherOption || focusingInput)\n if (blurComponent) {\n const keepMenuOpen = menuOpen && isIosDevice()\n this.handleComponentBlur({\n menuOpen: keepMenuOpen,\n query: this.templateInputValue(options[selected])\n })\n }\n }\n\n handleInputBlur (event) {\n const { focused, menuOpen, options, query, selected } = this.state\n const focusingAnOption = focused !== -1\n clearTimeout(this.$blurInput)\n if (!focusingAnOption) {\n const keepMenuOpen = menuOpen && isIosDevice()\n const newQuery = isIosDevice() ? query : this.templateInputValue(options[selected])\n this.$blurInput = setTimeout(() => this.handleComponentBlur({\n menuOpen: keepMenuOpen,\n query: newQuery\n }), 200)\n }\n }\n\n handleInputChange (event) {\n const { minLength, source, showAllValues } = this.props\n const autoselect = this.hasAutoselect()\n const query = event.target.value\n const queryEmpty = query.length === 0\n const queryChanged = this.state.query.length !== query.length\n const queryLongEnough = query.length >= minLength\n\n this.setState({ query })\n\n const searchForOptions = showAllValues || (!queryEmpty && queryChanged && queryLongEnough)\n if (searchForOptions) {\n source(query, (options) => {\n const optionsAvailable = options.length > 0\n this.setState({\n menuOpen: optionsAvailable,\n options,\n selected: (autoselect && optionsAvailable) ? 0 : -1\n })\n })\n } else if (queryEmpty || !queryLongEnough) {\n this.setState({\n menuOpen: false,\n options: []\n })\n }\n }\n\n handleInputClick (event) {\n this.handleInputChange(event)\n }\n\n handleInputFocus (event) {\n this.setState({\n focused: -1\n })\n }\n\n handleOptionFocus (index) {\n this.setState({\n focused: index,\n hovered: null,\n selected: index\n })\n }\n\n handleOptionMouseEnter (event, index) {\n // iOS Safari prevents click event if mouseenter adds hover background colour\n // See: https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html#//apple_ref/doc/uid/TP40006511-SW4\n if (!isIosDevice()) {\n this.setState({\n hovered: index\n })\n }\n }\n\n handleOptionClick (event, index) {\n const selectedOption = this.state.options[index]\n const newQuery = this.templateInputValue(selectedOption)\n clearTimeout(this.$blurInput)\n this.props.onConfirm(selectedOption)\n this.setState({\n focused: -1,\n clicked: index,\n hovered: null,\n menuOpen: false,\n query: newQuery,\n selected: -1\n })\n this.forceUpdate()\n }\n\n handleUpArrow (event) {\n event.preventDefault()\n const { menuOpen, selected } = this.state\n const isNotAtTop = selected !== -1\n const allowMoveUp = isNotAtTop && menuOpen\n if (allowMoveUp) {\n this.handleOptionFocus(selected - 1)\n }\n }\n\n handleDownArrow (event) {\n event.preventDefault()\n // if not open, open\n if (this.props.showAllValues && this.state.menuOpen === false) {\n event.preventDefault()\n this.props.source('', (options) => {\n this.setState({\n menuOpen: true,\n options,\n selected: 0,\n focused: 0,\n hovered: null\n })\n })\n } else if (this.state.menuOpen === true) {\n const { menuOpen, options, selected } = this.state\n const isNotAtBottom = selected !== options.length - 1\n const allowMoveDown = isNotAtBottom && menuOpen\n if (allowMoveDown) {\n this.handleOptionFocus(selected + 1)\n }\n }\n }\n\n handleSpace (event) {\n // if not open, open\n if (this.props.showAllValues && this.state.menuOpen === false && this.state.query === '') {\n event.preventDefault()\n this.props.source('', (options) => {\n this.setState({\n menuOpen: true,\n options\n })\n })\n }\n const focusIsOnOption = this.state.focused !== -1\n if (focusIsOnOption) {\n event.preventDefault()\n this.handleOptionClick(event, this.state.focused)\n }\n }\n\n handleEnter (event) {\n if (this.state.menuOpen) {\n event.preventDefault()\n const hasSelectedOption = this.state.selected >= 0\n if (hasSelectedOption) {\n this.handleOptionClick(event, this.state.selected)\n }\n }\n }\n\n handlePrintableKey (event) {\n const inputElement = this.elementReferences[-1]\n const eventIsOnInput = event.target === inputElement\n if (!eventIsOnInput) {\n // FIXME: This would be better if it was in componentDidUpdate,\n // but using setState to trigger that seems to not work correctly\n // in preact@8.1.0.\n inputElement.focus()\n }\n }\n\n handleKeyDown (event) {\n switch (keyCodes[event.keyCode]) {\n case 'up':\n this.handleUpArrow(event)\n break\n case 'down':\n this.handleDownArrow(event)\n break\n case 'space':\n this.handleSpace(event)\n break\n case 'enter':\n this.handleEnter(event)\n break\n case 'escape':\n this.handleComponentBlur({\n query: this.state.query\n })\n break\n default:\n if (isPrintableKeyCode(event.keyCode)) {\n this.handlePrintableKey(event)\n }\n break\n }\n }\n\n render () {\n const {\n cssNamespace,\n displayMenu,\n id,\n minLength,\n name,\n placeholder,\n required,\n showAllValues,\n tNoResults,\n tStatusQueryTooShort,\n tStatusNoResults,\n tStatusSelectedOption,\n tStatusResults,\n dropdownArrow: dropdownArrowFactory\n } = this.props\n const { focused, hovered, menuOpen, options, query, selected } = this.state\n const autoselect = this.hasAutoselect()\n\n const inputFocused = focused === -1\n const noOptionsAvailable = options.length === 0\n const queryNotEmpty = query.length !== 0\n const queryLongEnough = query.length >= minLength\n const showNoOptionsFound = this.props.showNoOptionsFound &&\n inputFocused && noOptionsAvailable && queryNotEmpty && queryLongEnough\n\n const wrapperClassName = `${cssNamespace}__wrapper`\n\n const inputClassName = `${cssNamespace}__input`\n const componentIsFocused = focused !== null\n const inputModifierFocused = componentIsFocused ? ` ${inputClassName}--focused` : ''\n const inputModifierType = this.props.showAllValues ? ` ${inputClassName}--show-all-values` : ` ${inputClassName}--default`\n const dropdownArrowClassName = `${cssNamespace}__dropdown-arrow-down`\n const optionFocused = focused !== -1 && focused !== null\n\n const menuClassName = `${cssNamespace}__menu`\n const menuModifierDisplayMenu = `${menuClassName}--${displayMenu}`\n const menuIsVisible = menuOpen || showNoOptionsFound\n const menuModifierVisibility = `${menuClassName}--${(menuIsVisible) ? 'visible' : 'hidden'}`\n\n const optionClassName = `${cssNamespace}__option`\n\n const hintClassName = `${cssNamespace}__hint`\n const selectedOptionText = this.templateInputValue(options[selected])\n const optionBeginsWithQuery = selectedOptionText &&\n selectedOptionText.toLowerCase().indexOf(query.toLowerCase()) === 0\n const hintValue = (optionBeginsWithQuery && autoselect)\n ? query + selectedOptionText.substr(query.length)\n : ''\n const showHint = hasPointerEvents && hintValue\n\n let dropdownArrow\n\n // we only need a dropdown arrow if showAllValues is set to a truthy value\n if (showAllValues) {\n dropdownArrow = dropdownArrowFactory({ className: dropdownArrowClassName })\n\n // if the factory returns a string we'll render this as HTML (usage w/o (P)React)\n if (typeof dropdownArrow === 'string') {\n dropdownArrow = <div className={`${cssNamespace}__dropdown-arrow-down-wrapper`} dangerouslySetInnerHTML={{ __html: dropdownArrow }} />\n }\n }\n\n return (\n <div className={wrapperClassName} onKeyDown={this.handleKeyDown} role='combobox' aria-expanded={menuOpen ? 'true' : 'false'}>\n <Status\n length={options.length}\n queryLength={query.length}\n minQueryLength={minLength}\n selectedOption={this.templateInputValue(options[selected])}\n selectedOptionIndex={selected}\n tQueryTooShort={tStatusQueryTooShort}\n tNoResults={tStatusNoResults}\n tSelectedOption={tStatusSelectedOption}\n tResults={tStatusResults}\n />\n\n {showHint && (\n <span><input className={hintClassName} readonly tabIndex='-1' value={hintValue} /></span>\n )}\n\n <input\n aria-activedescendant={optionFocused ? `${id}__option--${focused}` : false}\n aria-owns={`${id}__listbox`}\n autoComplete='off'\n className={`${inputClassName}${inputModifierFocused}${inputModifierType}`}\n id={id}\n onClick={(event) => this.handleInputClick(event)}\n onBlur={this.handleInputBlur}\n {...onChangeCrossLibrary(this.handleInputChange)}\n onFocus={this.handleInputFocus}\n name={name}\n placeholder={placeholder}\n ref={(inputElement) => { this.elementReferences[-1] = inputElement }}\n type='text'\n role='textbox'\n required={required}\n value={query}\n />\n\n {dropdownArrow}\n\n <ul\n className={`${menuClassName} ${menuModifierDisplayMenu} ${menuModifierVisibility}`}\n onMouseLeave={(event) => this.handleListMouseLeave(event)}\n id={`${id}__listbox`}\n role='listbox'\n >\n {options.map((option, index) => {\n const showFocused = focused === -1 ? selected === index : focused === index\n const optionModifierFocused = showFocused && hovered === null ? ` ${optionClassName}--focused` : ''\n const optionModifierOdd = (index % 2) ? ` ${optionClassName}--odd` : ''\n\n return (\n <li\n aria-selected={focused === index}\n className={`${optionClassName}${optionModifierFocused}${optionModifierOdd}`}\n dangerouslySetInnerHTML={{ __html: this.templateSuggestion(option) }}\n id={`${id}__option--${index}`}\n key={index}\n onBlur={(event) => this.handleOptionBlur(event, index)}\n onClick={(event) => this.handleOptionClick(event, index)}\n onMouseEnter={(event) => this.handleOptionMouseEnter(event, index)}\n ref={(optionEl) => { this.elementReferences[index] = optionEl }}\n role='option'\n tabIndex='-1'\n />\n )\n })}\n\n {showNoOptionsFound && (\n <li className={`${optionClassName} ${optionClassName}--no-results`}>{tNoResults()}</li>\n )}\n </ul>\n </div>\n )\n }\n}\n","// 19.1.3.1 Object.assign(target, source)\nvar $export = require('./_export');\n\n$export($export.S + $export.F, 'Object', { assign: require('./_object-assign') });\n","module.exports = !require('./_descriptors') && !require('./_fails')(function () {\n return Object.defineProperty(require('./_dom-create')('div'), 'a', { get: function () { return 7; } }).a != 7;\n});\n","// 7.1.1 ToPrimitive(input [, PreferredType])\nvar isObject = require('./_is-object');\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (it, S) {\n if (!isObject(it)) return it;\n var fn, val;\n if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;\n if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","'use strict';\n// 19.1.2.1 Object.assign(target, source, ...)\nvar getKeys = require('./_object-keys');\nvar gOPS = require('./_object-gops');\nvar pIE = require('./_object-pie');\nvar toObject = require('./_to-object');\nvar IObject = require('./_iobject');\nvar $assign = Object.assign;\n\n// should work with symbols and should have deterministic property order (V8 bug)\nmodule.exports = !$assign || require('./_fails')(function () {\n var A = {};\n var B = {};\n // eslint-disable-next-line no-undef\n var S = Symbol();\n var K = 'abcdefghijklmnopqrst';\n A[S] = 7;\n K.split('').forEach(function (k) { B[k] = k; });\n return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;\n}) ? function assign(target, source) { // eslint-disable-line no-unused-vars\n var T = toObject(target);\n var aLen = arguments.length;\n var index = 1;\n var getSymbols = gOPS.f;\n var isEnum = pIE.f;\n while (aLen > index) {\n var S = IObject(arguments[index++]);\n var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);\n var length = keys.length;\n var j = 0;\n var key;\n while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key];\n } return T;\n} : $assign;\n","var has = require('./_has');\nvar toIObject = require('./_to-iobject');\nvar arrayIndexOf = require('./_array-includes')(false);\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\n\nmodule.exports = function (object, names) {\n var O = toIObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (has(O, key = names[i++])) {\n ~arrayIndexOf(result, key) || result.push(key);\n }\n return result;\n};\n","var toInteger = require('./_to-integer');\nvar max = Math.max;\nvar min = Math.min;\nmodule.exports = function (index, length) {\n index = toInteger(index);\n return index < 0 ? max(index + length, 0) : min(index, length);\n};\n","module.exports = false;\n","exports.f = Object.getOwnPropertySymbols;\n","exports.f = {}.propertyIsEnumerable;\n","// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\nvar anObject = require('./_an-object');\nvar dPs = require('./_object-dps');\nvar enumBugKeys = require('./_enum-bug-keys');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar Empty = function () { /* empty */ };\nvar PROTOTYPE = 'prototype';\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar createDict = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = require('./_dom-create')('iframe');\n var i = enumBugKeys.length;\n var lt = '<';\n var gt = '>';\n var iframeDocument;\n iframe.style.display = 'none';\n require('./_html').appendChild(iframe);\n iframe.src = 'javascript:'; // eslint-disable-line no-script-url\n // createDict = iframe.contentWindow.Object;\n // html.removeChild(iframe);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);\n iframeDocument.close();\n createDict = iframeDocument.F;\n while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];\n return createDict();\n};\n\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n Empty[PROTOTYPE] = anObject(O);\n result = new Empty();\n Empty[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = createDict();\n return Properties === undefined ? result : dPs(result, Properties);\n};\n","var dP = require('./_object-dp');\nvar anObject = require('./_an-object');\nvar getKeys = require('./_object-keys');\n\nmodule.exports = require('./_descriptors') ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var keys = getKeys(Properties);\n var length = keys.length;\n var i = 0;\n var P;\n while (length > i) dP.f(O, P = keys[i++], Properties[P]);\n return O;\n};\n","var document = require('./_global').document;\nmodule.exports = document && document.documentElement;\n","'use strict';\nvar $export = require('./_export');\nvar $map = require('./_array-methods')(1);\n\n$export($export.P + $export.F * !require('./_strict-method')([].map, true), 'Array', {\n // 22.1.3.15 / 15.4.4.19 Array.prototype.map(callbackfn [, thisArg])\n map: function map(callbackfn /* , thisArg */) {\n return $map(this, callbackfn, arguments[1]);\n }\n});\n","// 0 -> Array#forEach\n// 1 -> Array#map\n// 2 -> Array#filter\n// 3 -> Array#some\n// 4 -> Array#every\n// 5 -> Array#find\n// 6 -> Array#findIndex\nvar ctx = require('./_ctx');\nvar IObject = require('./_iobject');\nvar toObject = require('./_to-object');\nvar toLength = require('./_to-length');\nvar asc = require('./_array-species-create');\nmodule.exports = function (TYPE, $create) {\n var IS_MAP = TYPE == 1;\n var IS_FILTER = TYPE == 2;\n var IS_SOME = TYPE == 3;\n var IS_EVERY = TYPE == 4;\n var IS_FIND_INDEX = TYPE == 6;\n var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;\n var create = $create || asc;\n return function ($this, callbackfn, that) {\n var O = toObject($this);\n var self = IObject(O);\n var f = ctx(callbackfn, that, 3);\n var length = toLength(self.length);\n var index = 0;\n var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;\n var val, res;\n for (;length > index; index++) if (NO_HOLES || index in self) {\n val = self[index];\n res = f(val, index, O);\n if (TYPE) {\n if (IS_MAP) result[index] = res; // map\n else if (res) switch (TYPE) {\n case 3: return true; // some\n case 5: return val; // find\n case 6: return index; // findIndex\n case 2: result.push(val); // filter\n } else if (IS_EVERY) return false; // every\n }\n }\n return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;\n };\n};\n","// 9.4.2.3 ArraySpeciesCreate(originalArray, length)\nvar speciesConstructor = require('./_array-species-constructor');\n\nmodule.exports = function (original, length) {\n return new (speciesConstructor(original))(length);\n};\n","var isObject = require('./_is-object');\nvar isArray = require('./_is-array');\nvar SPECIES = require('./_wks')('species');\n\nmodule.exports = function (original) {\n var C;\n if (isArray(original)) {\n C = original.constructor;\n // cross-realm fallback\n if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;\n if (isObject(C)) {\n C = C[SPECIES];\n if (C === null) C = undefined;\n }\n } return C === undefined ? Array : C;\n};\n","// 7.2.2 IsArray(argument)\nvar cof = require('./_cof');\nmodule.exports = Array.isArray || function isArray(arg) {\n return cof(arg) == 'Array';\n};\n","'use strict';\nvar $export = require('./_export');\nvar $indexOf = require('./_array-includes')(false);\nvar $native = [].indexOf;\nvar NEGATIVE_ZERO = !!$native && 1 / [1].indexOf(1, -0) < 0;\n\n$export($export.P + $export.F * (NEGATIVE_ZERO || !require('./_strict-method')($native)), 'Array', {\n // 22.1.3.11 / 15.4.4.14 Array.prototype.indexOf(searchElement [, fromIndex])\n indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {\n return NEGATIVE_ZERO\n // convert -0 to +0\n ? $native.apply(this, arguments) || 0\n : $indexOf(this, searchElement, arguments[1]);\n }\n});\n","var dP = require('./_object-dp').f;\nvar FProto = Function.prototype;\nvar nameRE = /^\\s*function ([^ (]*)/;\nvar NAME = 'name';\n\n// 19.2.4.2 name\nNAME in FProto || require('./_descriptors') && dP(FProto, NAME, {\n configurable: true,\n get: function () {\n try {\n return ('' + this).match(nameRE)[1];\n } catch (e) {\n return '';\n }\n }\n});\n","// 19.2.3.2 / 15.3.4.5 Function.prototype.bind(thisArg, args...)\nvar $export = require('./_export');\n\n$export($export.P, 'Function', { bind: require('./_bind') });\n","'use strict';\nvar aFunction = require('./_a-function');\nvar isObject = require('./_is-object');\nvar invoke = require('./_invoke');\nvar arraySlice = [].slice;\nvar factories = {};\n\nvar construct = function (F, len, args) {\n if (!(len in factories)) {\n for (var n = [], i = 0; i < len; i++) n[i] = 'a[' + i + ']';\n // eslint-disable-next-line no-new-func\n factories[len] = Function('F,a', 'return new F(' + n.join(',') + ')');\n } return factories[len](F, args);\n};\n\nmodule.exports = Function.bind || function bind(that /* , ...args */) {\n var fn = aFunction(this);\n var partArgs = arraySlice.call(arguments, 1);\n var bound = function (/* args... */) {\n var args = partArgs.concat(arraySlice.call(arguments));\n return this instanceof bound ? construct(fn, args.length, args) : invoke(fn, args, that);\n };\n if (isObject(fn.prototype)) bound.prototype = fn.prototype;\n return bound;\n};\n","// fast apply, http://jsperf.lnkit.com/fast-apply/5\nmodule.exports = function (fn, args, that) {\n var un = that === undefined;\n switch (args.length) {\n case 0: return un ? fn()\n : fn.call(that);\n case 1: return un ? fn(args[0])\n : fn.call(that, args[0]);\n case 2: return un ? fn(args[0], args[1])\n : fn.call(that, args[0], args[1]);\n case 3: return un ? fn(args[0], args[1], args[2])\n : fn.call(that, args[0], args[1], args[2]);\n case 4: return un ? fn(args[0], args[1], args[2], args[3])\n : fn.call(that, args[0], args[1], args[2], args[3]);\n } return fn.apply(that, args);\n};\n","// @@match logic\nrequire('./_fix-re-wks')('match', 1, function (defined, MATCH, $match) {\n // 21.1.3.11 String.prototype.match(regexp)\n return [function match(regexp) {\n 'use strict';\n var O = defined(this);\n var fn = regexp == undefined ? undefined : regexp[MATCH];\n return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[MATCH](String(O));\n }, $match];\n});\n","'use strict';\nvar hide = require('./_hide');\nvar redefine = require('./_redefine');\nvar fails = require('./_fails');\nvar defined = require('./_defined');\nvar wks = require('./_wks');\n\nmodule.exports = function (KEY, length, exec) {\n var SYMBOL = wks(KEY);\n var fns = exec(defined, SYMBOL, ''[KEY]);\n var strfn = fns[0];\n var rxfn = fns[1];\n if (fails(function () {\n var O = {};\n O[SYMBOL] = function () { return 7; };\n return ''[KEY](O) != 7;\n })) {\n redefine(String.prototype, KEY, strfn);\n hide(RegExp.prototype, SYMBOL, length == 2\n // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)\n // 21.2.5.11 RegExp.prototype[@@split](string, limit)\n ? function (string, arg) { return rxfn.call(string, this, arg); }\n // 21.2.5.6 RegExp.prototype[@@match](string)\n // 21.2.5.9 RegExp.prototype[@@search](string)\n : function (string) { return rxfn.call(string, this); }\n );\n }\n};\n","import { createElement, Component } from 'preact' /** @jsx createElement */\n\nexport default class Status extends Component {\n static defaultProps = {\n tQueryTooShort: (minQueryLength) => `Type in ${minQueryLength} or more characters for results.`,\n tNoResults: () => 'No search results.',\n tSelectedOption: (selectedOption, length, index) => `${selectedOption} (${index + 1} of ${length}) is selected.`,\n tResults: (length, contentSelectedOption) => {\n const words = {\n result: (length === 1) ? 'result' : 'results',\n is: (length === 1) ? 'is' : 'are'\n }\n\n return `${length} ${words.result} ${words.is} available. ${contentSelectedOption}`\n }\n };\n\n state = {\n bump: false\n }\n\n componentWillReceiveProps ({ queryLength }) {\n const hasChanged = queryLength !== this.props.queryLength\n if (hasChanged) {\n this.setState(({ bump }) => ({ bump: !bump }))\n }\n }\n\n render () {\n const {\n length,\n queryLength,\n minQueryLength,\n selectedOption,\n selectedOptionIndex,\n tQueryTooShort,\n tNoResults,\n tSelectedOption,\n tResults\n } = this.props\n const { bump } = this.state\n\n const queryTooShort = queryLength < minQueryLength\n const noResults = length === 0\n\n const contentSelectedOption = selectedOption\n ? tSelectedOption(selectedOption, length, selectedOptionIndex)\n : ''\n\n let content = null\n if (queryTooShort) {\n content = tQueryTooShort(minQueryLength)\n } else if (noResults) {\n content = tNoResults()\n } else {\n content = tResults(length, contentSelectedOption)\n }\n\n return <div\n aria-atomic='true'\n aria-live='polite'\n role='status'\n style={{\n border: '0',\n clip: 'rect(0 0 0 0)',\n height: '1px',\n marginBottom: '-1px',\n marginRight: '-1px',\n overflow: 'hidden',\n padding: '0',\n position: 'absolute',\n whiteSpace: 'nowrap',\n width: '1px'\n }}\n >\n {content}\n <span>{bump ? ',' : ',,'}</span>\n </div>\n }\n}\n","import { createElement } from 'preact' /** @jsx createElement */\n\nconst DropdownArrowDown = ({ className }) => (\n <svg version='1.1' xmlns='http://www.w3.org/2000/svg' className={className} focusable='false'>\n <g stroke='none' fill='none' fill-rule='evenodd'>\n <polygon fill='#000000' points='0 0 22 0 11 17' />\n </g>\n </svg>\n)\n\nexport default DropdownArrowDown\n"],"sourceRoot":""}
|
1
|
+
{"version":3,"sources":["webpack://Autocomplete/webpack/universalModuleDefinition","webpack://Autocomplete/webpack/bootstrap","webpack://Autocomplete/../node_modules/core-js/modules/_export.js","webpack://Autocomplete/../node_modules/core-js/modules/_global.js","webpack://Autocomplete/../node_modules/core-js/modules/_is-object.js","webpack://Autocomplete/../node_modules/core-js/modules/_descriptors.js","webpack://Autocomplete/../node_modules/core-js/modules/_fails.js","webpack://Autocomplete/../node_modules/core-js/modules/_core.js","webpack://Autocomplete/../node_modules/core-js/modules/_hide.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-dp.js","webpack://Autocomplete/../node_modules/core-js/modules/_an-object.js","webpack://Autocomplete/../node_modules/core-js/modules/_uid.js","webpack://Autocomplete/../node_modules/core-js/modules/_iobject.js","webpack://Autocomplete/../node_modules/core-js/modules/_defined.js","webpack://Autocomplete/../node_modules/core-js/modules/_strict-method.js","webpack://Autocomplete/external {\"amd\":\"react\",\"commonjs\":\"react\",\"commonjs2\":\"react\",\"root\":\"React\"}","webpack://Autocomplete/../node_modules/core-js/modules/_dom-create.js","webpack://Autocomplete/../node_modules/core-js/modules/_redefine.js","webpack://Autocomplete/../node_modules/core-js/modules/_has.js","webpack://Autocomplete/../node_modules/core-js/modules/_ctx.js","webpack://Autocomplete/../node_modules/core-js/modules/_a-function.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-keys.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-iobject.js","webpack://Autocomplete/../node_modules/core-js/modules/_cof.js","webpack://Autocomplete/../node_modules/core-js/modules/_array-includes.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-length.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-integer.js","webpack://Autocomplete/../node_modules/core-js/modules/_shared-key.js","webpack://Autocomplete/../node_modules/core-js/modules/_shared.js","webpack://Autocomplete/../node_modules/core-js/modules/_enum-bug-keys.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-object.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.object.create.js","webpack://Autocomplete/../node_modules/core-js/modules/_array-methods.js","webpack://Autocomplete/../node_modules/core-js/modules/_wks.js","webpack://Autocomplete/./autocomplete.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.object.assign.js","webpack://Autocomplete/../node_modules/core-js/modules/_ie8-dom-define.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-primitive.js","webpack://Autocomplete/../node_modules/core-js/modules/_property-desc.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-assign.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-keys-internal.js","webpack://Autocomplete/../node_modules/core-js/modules/_to-absolute-index.js","webpack://Autocomplete/../node_modules/core-js/modules/_library.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-gops.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-pie.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-create.js","webpack://Autocomplete/../node_modules/core-js/modules/_object-dps.js","webpack://Autocomplete/../node_modules/core-js/modules/_html.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.array.map.js","webpack://Autocomplete/../node_modules/core-js/modules/_array-species-create.js","webpack://Autocomplete/../node_modules/core-js/modules/_array-species-constructor.js","webpack://Autocomplete/../node_modules/core-js/modules/_is-array.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.array.index-of.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.function.name.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.array.filter.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.function.bind.js","webpack://Autocomplete/../node_modules/core-js/modules/_bind.js","webpack://Autocomplete/../node_modules/core-js/modules/_invoke.js","webpack://Autocomplete/../node_modules/core-js/modules/es6.regexp.match.js","webpack://Autocomplete/../node_modules/core-js/modules/_fix-re-wks.js","webpack://Autocomplete/./status.js","webpack://Autocomplete/./dropdown-arrow-down.js"],"names":["webpackUniversalModuleDefinition","root","factory","exports","module","require","define","amd","window","__WEBPACK_EXTERNAL_MODULE__13__","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","global","core","hide","redefine","ctx","PROTOTYPE","$export","type","source","own","out","exp","IS_FORCED","F","IS_GLOBAL","G","IS_STATIC","S","IS_PROTO","P","IS_BIND","B","target","expProto","undefined","Function","U","W","R","Math","self","__g","it","a","exec","e","version","__e","dP","createDesc","f","anObject","IE8_DOM_DEFINE","toPrimitive","O","Attributes","TypeError","isObject","id","px","random","concat","toString","cof","propertyIsEnumerable","split","fails","method","arg","document","is","createElement","has","SRC","TO_STRING","$toString","TPL","inspectSource","val","safe","isFunction","join","String","this","aFunction","fn","that","length","b","apply","arguments","$keys","enumBugKeys","keys","IObject","defined","slice","toIObject","toLength","toAbsoluteIndex","IS_INCLUDES","$this","el","fromIndex","index","toInteger","min","ceil","floor","isNaN","shared","uid","SHARED","store","push","copyright","toObject","asc","TYPE","$create","IS_MAP","IS_FILTER","IS_SOME","IS_EVERY","IS_FIND_INDEX","NO_HOLES","callbackfn","res","result","USE_SYMBOL","_preact","_status","_interopRequireDefault","_dropdownArrowDown","element","keyCodes","13","27","32","38","40","hasPointerEvents","style","cssText","pointerEvents","isIosDevice","navigator","userAgent","match","Autocomplete","props","_this","_Component","elementReferences","state","focused","hovered","clicked","menuOpen","options","defaultValue","selectedOptions","query","selected","handleComponentBlur","_assertThisInitialized","handleKeyDown","handleUpArrow","handleDownArrow","handleEnter","handlePrintableKey","handleListMouseLeave","handleOptionBlur","handleOptionClick","handleOptionFocus","handleOptionMouseEnter","handleSelectedOptionClick","handleSelectedOptionKeyDown","handleInputBlur","handleInputChange","handleInputFocus","pollInputElement","getDirectInputChanges","componentDidMount","componentWillUnmount","clearTimeout","$pollInput","$blurInput","_this2","setTimeout","inputReference","componentDidUpdate","prevProps","prevState","_this$state","componentLostFocus","focusedChanged","focus","focusedInput","componentGainedFocus","inputElement","setSelectionRange","hasAutoselect","autoselect","templateInputValue","inputValueTemplate","templates","inputValue","templateSuggestion","suggestionTemplate","suggestion","newState","newQuery","_this$state2","confirmOnBlur","onConfirm","setState","selectElement","multiple","event","_this$state3","focusingOutsideComponent","relatedTarget","focusingInput","focusingAnotherOption","keepMenuOpen","_this3","_this$state4","focusingAnOption","_this4","_this$props","minLength","showAllValues","queryEmpty","queryChanged","queryLongEnough","optionsAvailable","handleInputClick","selectedOption","updateMultiselect","forceUpdate","addedSelectOption","filter","option","textContent","availableOptions","removedOption","removedSelectOption","keyCode","preventDefault","_this$state5","_this5","_this$state6","handleSpace","_this6","isPrintableKeyCode","render","dropdownArrow","_this7","_this$props2","cssNamespace","displayMenu","placeholder","required","tNoResults","tStatusQueryTooShort","tStatusNoResults","tStatusSelectedOption","tStatusResults","tSelectedOptionDescription","dropdownArrowFactory","customAttributes","_this$state7","inputFocused","noOptionsAvailable","queryNotEmpty","showNoOptionsFound","wrapperClassName","inputClassName","inputModifierFocused","inputModifierType","dropdownArrowClassName","optionFocused","menuClassName","menuModifierDisplayMenu","menuModifierVisibility","optionClassName","selectedOptionsClassName","hintClassName","selectedOptionText","hintValue","toLowerCase","indexOf","substr","showHint","className","dangerouslySetInnerHTML","__html","onKeyDown","role","aria-expanded","queryLength","minQueryLength","selectedOptionIndex","tQueryTooShort","tSelectedOption","tResults","readonly","tabIndex","_extends","aria-activedescendant","aria-owns","autoComplete","onClick","onBlur","onChangeCrossLibrary","handler","onChange","onFocus","ref","onMouseLeave","map","optionModifierFocused","optionModifierOdd","aria-selected","onMouseEnter","optionEl","aria-label","aria-describedBy","class","Component","defaultProps","DropdownArrowDown","assign","valueOf","bitmap","configurable","writable","getKeys","gOPS","pIE","$assign","A","K","forEach","k","T","aLen","getSymbols","isEnum","j","arrayIndexOf","IE_PROTO","names","max","getOwnPropertySymbols","dPs","Empty","createDict","iframeDocument","iframe","display","appendChild","src","contentWindow","open","write","lt","close","Properties","defineProperties","documentElement","$map","speciesConstructor","original","isArray","SPECIES","C","constructor","Array","$indexOf","$native","NEGATIVE_ZERO","searchElement","FProto","nameRE","$filter","invoke","arraySlice","factories","partArgs","bound","args","len","construct","un","MATCH","$match","regexp","RegExp","wks","KEY","SYMBOL","fns","strfn","rxfn","string","Status","bump","componentWillReceiveProps","_ref","_ref2","queryTooShort","noResults","contentSelectedOption","content","aria-atomic","aria-live","border","clip","height","marginBottom","marginRight","overflow","padding","position","whiteSpace","width","xmlns","focusable","stroke","fill","fill-rule","points"],"mappings":"CAAA,SAAAA,iCAAAC,EAAAC,GACA,iBAAAC,SAAA,iBAAAC,OACAA,OAAAD,QAAAD,EAAAG,QAAA,UACA,mBAAAC,eAAAC,IACAD,OAAA,UAAAJ,GACA,iBAAAC,QACAA,QAAA,gBAAAD,EAAAG,QAAA,UAEAJ,EAAA,gBAAAC,EAAAD,EAAA,WARA,CASCO,OAAA,SAAAC,GACD,mBCTA,IAAAC,EAAA,GAGA,SAAAC,EAAAC,GAGA,GAAAF,EAAAE,GACA,OAAAF,EAAAE,GAAAT,QAGA,IAAAC,EAAAM,EAAAE,GAAA,CACAC,EAAAD,EACAE,GAAA,EACAX,QAAA,IAUA,OANAY,EAAAH,GAAAI,KAAAZ,EAAAD,QAAAC,IAAAD,QAAAQ,GAGAP,EAAAU,GAAA,EAGAV,EAAAD,QA0DA,OArDAQ,EAAAM,EAAAF,EAGAJ,EAAAO,EAAAR,EAGAC,EAAAQ,EAAA,SAAAhB,EAAAiB,EAAAC,GACAV,EAAAW,EAAAnB,EAAAiB,IACAG,OAAAC,eAAArB,EAAAiB,EAAA,CAA0CK,YAAA,EAAAC,IAAAL,KAK1CV,EAAAgB,EAAA,SAAAxB,GACA,oBAAAyB,eAAAC,aACAN,OAAAC,eAAArB,EAAAyB,OAAAC,YAAA,CAAwDC,MAAA,WAExDP,OAAAC,eAAArB,EAAA,cAAiD2B,OAAA,KAQjDnB,EAAAoB,EAAA,SAAAD,EAAAE,GAEA,GADA,EAAAA,IAAAF,EAAAnB,EAAAmB,IACA,EAAAE,EAAA,OAAAF,EACA,KAAAE,GAAA,iBAAAF,QAAAG,WAAA,OAAAH,EACA,IAAAI,EAAAX,OAAAY,OAAA,MAGA,GAFAxB,E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AO","file":"lib/accessible-autocomplete.react.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"react\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Autocomplete\"] = factory(require(\"react\"));\n\telse\n\t\troot[\"Autocomplete\"] = factory(root[\"React\"]);\n})(window, function(__WEBPACK_EXTERNAL_MODULE__13__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 32);\n","var global = require('./_global');\nvar core = require('./_core');\nvar hide = require('./_hide');\nvar redefine = require('./_redefine');\nvar ctx = require('./_ctx');\nvar PROTOTYPE = 'prototype';\n\nvar $export = function (type, name, source) {\n var IS_FORCED = type & $export.F;\n var IS_GLOBAL = type & $export.G;\n var IS_STATIC = type & $export.S;\n var IS_PROTO = type & $export.P;\n var IS_BIND = type & $export.B;\n var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];\n var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});\n var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});\n var key, own, out, exp;\n if (IS_GLOBAL) source = name;\n for (key in source) {\n // contains in native\n own = !IS_FORCED && target && target[key] !== undefined;\n // export native or passed\n out = (own ? target : source)[key];\n // bind timers to global for call from export context\n exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n // extend global\n if (target) redefine(target, key, out, type & $export.U);\n // export\n if (exports[key] != out) hide(exports, key, exp);\n if (IS_PROTO && expProto[key] != out) expProto[key] = out;\n }\n};\nglobal.core = core;\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\n$export.U = 64; // safe\n$export.R = 128; // real proto method for `library`\nmodule.exports = $export;\n","// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self\n // eslint-disable-next-line no-new-func\n : Function('return this')();\nif (typeof __g == 'number') __g = global; // eslint-disable-line no-undef\n","module.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n","// Thank's IE8 for his funny defineProperty\nmodule.exports = !require('./_fails')(function () {\n return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;\n});\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (e) {\n return true;\n }\n};\n","var core = module.exports = { version: '2.5.7' };\nif (typeof __e == 'number') __e = core; // eslint-disable-line no-undef\n","var dP = require('./_object-dp');\nvar createDesc = require('./_property-desc');\nmodule.exports = require('./_descriptors') ? function (object, key, value) {\n return dP.f(object, key, createDesc(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","var anObject = require('./_an-object');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar toPrimitive = require('./_to-primitive');\nvar dP = Object.defineProperty;\n\nexports.f = require('./_descriptors') ? Object.defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return dP(O, P, Attributes);\n } catch (e) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","var isObject = require('./_is-object');\nmodule.exports = function (it) {\n if (!isObject(it)) throw TypeError(it + ' is not an object!');\n return it;\n};\n","var id = 0;\nvar px = Math.random();\nmodule.exports = function (key) {\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n","// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = require('./_cof');\n// eslint-disable-next-line no-prototype-builtins\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n","// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n","'use strict';\nvar fails = require('./_fails');\n\nmodule.exports = function (method, arg) {\n return !!method && fails(function () {\n // eslint-disable-next-line no-useless-call\n arg ? method.call(null, function () { /* empty */ }, 1) : method.call(null);\n });\n};\n","module.exports = __WEBPACK_EXTERNAL_MODULE__13__;","var isObject = require('./_is-object');\nvar document = require('./_global').document;\n// typeof document.createElement is 'object' in old IE\nvar is = isObject(document) && isObject(document.createElement);\nmodule.exports = function (it) {\n return is ? document.createElement(it) : {};\n};\n","var global = require('./_global');\nvar hide = require('./_hide');\nvar has = require('./_has');\nvar SRC = require('./_uid')('src');\nvar TO_STRING = 'toString';\nvar $toString = Function[TO_STRING];\nvar TPL = ('' + $toString).split(TO_STRING);\n\nrequire('./_core').inspectSource = function (it) {\n return $toString.call(it);\n};\n\n(module.exports = function (O, key, val, safe) {\n var isFunction = typeof val == 'function';\n if (isFunction) has(val, 'name') || hide(val, 'name', key);\n if (O[key] === val) return;\n if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));\n if (O === global) {\n O[key] = val;\n } else if (!safe) {\n delete O[key];\n hide(O, key, val);\n } else if (O[key]) {\n O[key] = val;\n } else {\n hide(O, key, val);\n }\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n})(Function.prototype, TO_STRING, function toString() {\n return typeof this == 'function' && this[SRC] || $toString.call(this);\n});\n","var hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n","// optional / simple context binding\nvar aFunction = require('./_a-function');\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","module.exports = function (it) {\n if (typeof it != 'function') throw TypeError(it + ' is not a function!');\n return it;\n};\n","// 19.1.2.14 / 15.2.3.14 Object.keys(O)\nvar $keys = require('./_object-keys-internal');\nvar enumBugKeys = require('./_enum-bug-keys');\n\nmodule.exports = Object.keys || function keys(O) {\n return $keys(O, enumBugKeys);\n};\n","// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = require('./_iobject');\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return IObject(defined(it));\n};\n","var toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n","// false -> Array#indexOf\n// true -> Array#includes\nvar toIObject = require('./_to-iobject');\nvar toLength = require('./_to-length');\nvar toAbsoluteIndex = require('./_to-absolute-index');\nmodule.exports = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) if (IS_INCLUDES || index in O) {\n if (O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n","// 7.1.15 ToLength\nvar toInteger = require('./_to-integer');\nvar min = Math.min;\nmodule.exports = function (it) {\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n","// 7.1.4 ToInteger\nvar ceil = Math.ceil;\nvar floor = Math.floor;\nmodule.exports = function (it) {\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n","var shared = require('./_shared')('keys');\nvar uid = require('./_uid');\nmodule.exports = function (key) {\n return shared[key] || (shared[key] = uid(key));\n};\n","var core = require('./_core');\nvar global = require('./_global');\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || (global[SHARED] = {});\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: core.version,\n mode: require('./_library') ? 'pure' : 'global',\n copyright: '© 2018 Denis Pushkarev (zloirock.ru)'\n});\n","// IE 8- don't enum bug keys\nmodule.exports = (\n 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'\n).split(',');\n","// 7.1.13 ToObject(argument)\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return Object(defined(it));\n};\n","var $export = require('./_export');\n// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\n$export($export.S, 'Object', { create: require('./_object-create') });\n","// 0 -> Array#forEach\n// 1 -> Array#map\n// 2 -> Array#filter\n// 3 -> Array#some\n// 4 -> Array#every\n// 5 -> Array#find\n// 6 -> Array#findIndex\nvar ctx = require('./_ctx');\nvar IObject = require('./_iobject');\nvar toObject = require('./_to-object');\nvar toLength = require('./_to-length');\nvar asc = require('./_array-species-create');\nmodule.exports = function (TYPE, $create) {\n var IS_MAP = TYPE == 1;\n var IS_FILTER = TYPE == 2;\n var IS_SOME = TYPE == 3;\n var IS_EVERY = TYPE == 4;\n var IS_FIND_INDEX = TYPE == 6;\n var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;\n var create = $create || asc;\n return function ($this, callbackfn, that) {\n var O = toObject($this);\n var self = IObject(O);\n var f = ctx(callbackfn, that, 3);\n var length = toLength(self.length);\n var index = 0;\n var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;\n var val, res;\n for (;length > index; index++) if (NO_HOLES || index in self) {\n val = self[index];\n res = f(val, index, O);\n if (TYPE) {\n if (IS_MAP) result[index] = res; // map\n else if (res) switch (TYPE) {\n case 3: return true; // some\n case 5: return val; // find\n case 6: return index; // findIndex\n case 2: result.push(val); // filter\n } else if (IS_EVERY) return false; // every\n }\n }\n return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;\n };\n};\n","var store = require('./_shared')('wks');\nvar uid = require('./_uid');\nvar Symbol = require('./_global').Symbol;\nvar USE_SYMBOL = typeof Symbol == 'function';\n\nvar $exports = module.exports = function (name) {\n return store[name] || (store[name] =\n USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));\n};\n\n$exports.store = store;\n","import { createElement, Component } from 'preact' /** @jsx createElement */\nimport Status from './status'\nimport DropdownArrowDown from './dropdown-arrow-down'\n\nconst IS_PREACT = process.env.COMPONENT_LIBRARY === 'PREACT'\nconst IS_REACT = process.env.COMPONENT_LIBRARY === 'REACT'\n\nconst keyCodes = {\n 13: 'enter',\n 27: 'escape',\n 32: 'space',\n 38: 'up',\n 40: 'down'\n}\n\n// Based on https://github.com/ausi/Feature-detection-technique-for-pointer-events\nconst hasPointerEvents = (() => {\n const element = document.createElement('x')\n element.style.cssText = 'pointer-events:auto'\n return element.style.pointerEvents === 'auto'\n})()\n\nfunction isIosDevice () {\n return !!(navigator.userAgent.match(/(iPod|iPhone|iPad)/g) && navigator.userAgent.match(/AppleWebKit/g))\n}\n\nfunction isPrintableKeyCode (keyCode) {\n return (\n (keyCode > 47 && keyCode < 58) || // number keys\n keyCode === 32 || keyCode === 8 || // spacebar or backspace\n (keyCode > 64 && keyCode < 91) || // letter keys\n (keyCode > 95 && keyCode < 112) || // numpad keys\n (keyCode > 185 && keyCode < 193) || // ;=,-./` (in order)\n (keyCode > 218 && keyCode < 223) // [\\]' (in order)\n )\n}\n\n// Preact does not implement onChange on inputs, but React does.\nfunction onChangeCrossLibrary (handler) {\n if (IS_PREACT) { return { onInput: handler } }\n if (IS_REACT) { return { onChange: handler } }\n}\n\nexport default class Autocomplete extends Component {\n static defaultProps = {\n autoselect: false,\n cssNamespace: 'autocomplete',\n customAttributes: {},\n defaultValue: '',\n displayMenu: 'inline',\n minLength: 0,\n name: 'input-autocomplete',\n placeholder: '',\n onConfirm: () => {},\n confirmOnBlur: true,\n showNoOptionsFound: true,\n showAllValues: false,\n required: false,\n multiple: false,\n selectedOptions: {},\n tNoResults: () => 'No results found',\n tSelectedOptionDescription: () => 'press Enter or Space to remove selection',\n dropdownArrow: DropdownArrowDown\n }\n\n elementReferences = {}\n\n constructor (props) {\n super(props)\n\n this.state = {\n focused: null,\n hovered: null,\n clicked: null,\n menuOpen: false,\n options: props.defaultValue ? [props.defaultValue] : [],\n selectedOptions: props.selectedOptions ? [props.selectedOptions] : [],\n query: props.defaultValue,\n selected: null\n }\n\n this.handleComponentBlur = this.handleComponentBlur.bind(this)\n this.handleKeyDown = this.handleKeyDown.bind(this)\n this.handleUpArrow = this.handleUpArrow.bind(this)\n this.handleDownArrow = this.handleDownArrow.bind(this)\n this.handleEnter = this.handleEnter.bind(this)\n this.handlePrintableKey = this.handlePrintableKey.bind(this)\n\n this.handleListMouseLeave = this.handleListMouseLeave.bind(this)\n\n this.handleOptionBlur = this.handleOptionBlur.bind(this)\n this.handleOptionClick = this.handleOptionClick.bind(this)\n this.handleOptionFocus = this.handleOptionFocus.bind(this)\n this.handleOptionMouseEnter = this.handleOptionMouseEnter.bind(this)\n\n this.handleSelectedOptionClick = this.handleSelectedOptionClick.bind(this)\n this.handleSelectedOptionKeyDown = this.handleSelectedOptionKeyDown.bind(this)\n\n this.handleInputBlur = this.handleInputBlur.bind(this)\n this.handleInputChange = this.handleInputChange.bind(this)\n this.handleInputFocus = this.handleInputFocus.bind(this)\n\n this.pollInputElement = this.pollInputElement.bind(this)\n this.getDirectInputChanges = this.getDirectInputChanges.bind(this)\n }\n\n componentDidMount () {\n this.pollInputElement()\n }\n\n componentWillUnmount () {\n clearTimeout(this.$pollInput)\n clearTimeout(this.$blurInput)\n }\n\n // Applications like Dragon NaturallySpeaking will modify the\n // `input` field by directly changing its `.value`. These events\n // don't trigger our JavaScript event listeners, so we need to poll\n // to handle when and if they occur.\n pollInputElement () {\n this.getDirectInputChanges()\n this.$pollInput = setTimeout(() => {\n this.pollInputElement()\n }, 100)\n }\n\n getDirectInputChanges () {\n const inputReference = this.elementReferences[-1]\n const queryHasChanged = inputReference && inputReference.value !== this.state.query\n\n if (queryHasChanged) {\n this.handleInputChange({ target: { value: inputReference.value } })\n }\n }\n\n componentDidUpdate (prevProps, prevState) {\n const { focused, clicked } = this.state\n const componentLostFocus = focused === null\n const focusedChanged = prevState.focused !== focused\n const focusDifferentElement = (focusedChanged && !componentLostFocus) || clicked !== null\n if (focusDifferentElement) {\n this.elementReferences[focused].focus()\n }\n const focusedInput = focused === -1\n const componentGainedFocus = focusedChanged && prevState.focused === null\n const selectAllText = focusedInput && componentGainedFocus\n if (selectAllText) {\n const inputElement = this.elementReferences[focused]\n inputElement.setSelectionRange(0, inputElement.value.length)\n }\n }\n\n hasAutoselect () {\n return isIosDevice() ? false : this.props.autoselect\n }\n\n // This template is used when converting from a state.options object into a state.query.\n templateInputValue (value) {\n const inputValueTemplate = this.props.templates && this.props.templates.inputValue\n return inputValueTemplate ? inputValueTemplate(value) : value\n }\n\n // This template is used when displaying results / suggestions.\n templateSuggestion (value) {\n const suggestionTemplate = this.props.templates && this.props.templates.suggestion\n return suggestionTemplate ? suggestionTemplate(value) : value\n }\n\n handleComponentBlur (newState) {\n const { options, query, selected } = this.state\n let newQuery\n if (this.props.confirmOnBlur) {\n newQuery = newState.query || query\n this.props.onConfirm(options[selected])\n } else {\n newQuery = query\n }\n this.setState({\n focused: null,\n clicked: null,\n menuOpen: newState.menuOpen || false,\n query: newQuery,\n selected: null\n })\n\n if (this.props.selectElement && this.props.selectElement.multiple) {\n // Reset input state\n this.setState({\n menuOpen: false,\n selected: null,\n query: ''\n })\n }\n }\n\n handleListMouseLeave (event) {\n this.setState({\n hovered: null\n })\n }\n\n handleOptionBlur (event, index) {\n const { focused, clicked, menuOpen, options, selected } = this.state\n const focusingOutsideComponent = event.relatedTarget === null && clicked === null\n const focusingInput = event.relatedTarget === this.elementReferences[-1]\n const focusingAnotherOption = focused !== index && focused !== -1\n const blurComponent = (!focusingAnotherOption && focusingOutsideComponent) || !(focusingAnotherOption || focusingInput)\n if (blurComponent) {\n const keepMenuOpen = menuOpen && isIosDevice()\n this.handleComponentBlur({\n menuOpen: keepMenuOpen,\n query: this.templateInputValue(options[selected])\n })\n }\n }\n\n handleInputBlur (event) {\n const { focused, menuOpen, options, query, selected } = this.state\n const focusingAnOption = focused !== -1\n clearTimeout(this.$blurInput)\n if (!focusingAnOption) {\n const keepMenuOpen = menuOpen && isIosDevice()\n const newQuery = isIosDevice() ? query : this.templateInputValue(options[selected])\n this.$blurInput = setTimeout(() => this.handleComponentBlur({\n menuOpen: keepMenuOpen,\n query: newQuery\n }), 200)\n }\n }\n\n handleInputChange (event) {\n const { minLength, source, showAllValues } = this.props\n const autoselect = this.hasAutoselect()\n const query = event.target.value\n const queryEmpty = query.length === 0\n const queryChanged = this.state.query.length !== query.length\n const queryLongEnough = query.length >= minLength\n\n this.setState({ query })\n\n const searchForOptions = showAllValues || (!queryEmpty && queryChanged && queryLongEnough)\n if (searchForOptions) {\n source(query, (options) => {\n const optionsAvailable = options.length > 0\n this.setState({\n menuOpen: optionsAvailable,\n options,\n selected: (autoselect && optionsAvailable) ? 0 : -1\n })\n })\n } else if (queryEmpty || !queryLongEnough) {\n this.setState({\n menuOpen: false,\n options: []\n })\n }\n }\n\n handleInputClick (event) {\n this.handleInputChange(event)\n }\n\n handleInputFocus (event) {\n this.setState({\n focused: -1\n })\n }\n\n handleOptionFocus (index) {\n this.setState({\n focused: index,\n hovered: null,\n selected: index\n })\n }\n\n handleOptionMouseEnter (event, index) {\n // iOS Safari prevents click event if mouseenter adds hover background colour\n // See: https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html#//apple_ref/doc/uid/TP40006511-SW4\n if (!isIosDevice()) {\n this.setState({\n hovered: index\n })\n }\n }\n\n handleOptionClick (event, index) {\n const selectedOption = this.state.options[index]\n const newQuery = this.templateInputValue(selectedOption)\n clearTimeout(this.$blurInput)\n this.props.onConfirm(selectedOption)\n this.setState({\n focused: -1,\n clicked: index,\n hovered: null,\n menuOpen: false,\n query: newQuery,\n selected: -1\n })\n if (this.props.selectElement && this.props.selectElement.multiple) {\n this.updateMultiselect(selectedOption)\n }\n this.forceUpdate()\n }\n\n updateMultiselect (selectedOption) {\n if (selectedOption) {\n // Update select state for option\n const addedSelectOption = [].filter.call(this.props.selectElement.options, option => option.textContent === selectedOption)[0]\n if (addedSelectOption) { addedSelectOption.selected = true }\n\n // Update multiselect list\n let availableOptions = [].filter.call(this.props.selectElement.options, option => option.textContent)\n this.props.selectedOptions = availableOptions.filter(option => option.selected === true)\n\n // Reset input state\n this.setState({\n menuOpen: false,\n selected: null,\n query: ''\n })\n }\n }\n\n handleSelectedOptionClick (event, index) {\n // Remove from the list\n const removedOption = this.props.selectedOptions[index]\n this.props.selectedOptions = this.props.selectedOptions.filter(e => e !== removedOption)\n\n // Update select state for option\n const removedSelectOption = [].filter.call(this.props.selectElement.options, option => option.textContent === removedOption.textContent)[0]\n if (removedSelectOption) { removedSelectOption.selected = false }\n\n this.forceUpdate()\n }\n\n handleSelectedOptionKeyDown (event, index) {\n switch (keyCodes[event.keyCode]) {\n case 'space':\n this.handleSelectedOptionClick(event, index)\n break\n case 'enter':\n this.handleSelectedOptionClick(event, index)\n break\n }\n }\n\n handleUpArrow (event) {\n event.preventDefault()\n const { menuOpen, selected } = this.state\n const isNotAtTop = selected !== -1\n const allowMoveUp = isNotAtTop && menuOpen\n if (allowMoveUp) {\n this.handleOptionFocus(selected - 1)\n }\n }\n\n handleDownArrow (event) {\n event.preventDefault()\n // if not open, open\n if (this.props.showAllValues && this.state.menuOpen === false) {\n event.preventDefault()\n this.props.source('', (options) => {\n this.setState({\n menuOpen: true,\n options,\n selected: 0,\n focused: 0,\n hovered: null\n })\n })\n } else if (this.state.menuOpen === true) {\n const { menuOpen, options, selected } = this.state\n const isNotAtBottom = selected !== options.length - 1\n const allowMoveDown = isNotAtBottom && menuOpen\n if (allowMoveDown) {\n this.handleOptionFocus(selected + 1)\n }\n }\n }\n\n handleSpace (event) {\n // if not open, open\n if (this.props.showAllValues && this.state.menuOpen === false && this.state.query === '') {\n event.preventDefault()\n this.props.source('', (options) => {\n this.setState({\n menuOpen: true,\n options\n })\n })\n }\n const focusIsOnOption = this.state.focused !== -1\n if (focusIsOnOption) {\n event.preventDefault()\n this.handleOptionClick(event, this.state.focused)\n }\n }\n\n handleEnter (event) {\n if (this.state.menuOpen) {\n event.preventDefault()\n const hasSelectedOption = this.state.selected >= 0\n if (hasSelectedOption) {\n this.handleOptionClick(event, this.state.selected)\n }\n }\n }\n\n handlePrintableKey (event) {\n const inputElement = this.elementReferences[-1]\n const eventIsOnInput = event.target === inputElement\n if (!eventIsOnInput) {\n // FIXME: This would be better if it was in componentDidUpdate,\n // but using setState to trigger that seems to not work correctly\n // in preact@8.1.0.\n inputElement.focus()\n }\n }\n\n handleKeyDown (event) {\n switch (keyCodes[event.keyCode]) {\n case 'up':\n this.handleUpArrow(event)\n break\n case 'down':\n this.handleDownArrow(event)\n break\n case 'space':\n this.handleSpace(event)\n break\n case 'enter':\n this.handleEnter(event)\n break\n case 'escape':\n this.handleComponentBlur({\n query: this.state.query\n })\n break\n default:\n if (isPrintableKeyCode(event.keyCode)) {\n this.handlePrintableKey(event)\n }\n break\n }\n }\n\n render () {\n const {\n cssNamespace,\n displayMenu,\n id,\n minLength,\n name,\n placeholder,\n required,\n multiple,\n showAllValues,\n tNoResults,\n tStatusQueryTooShort,\n tStatusNoResults,\n tStatusSelectedOption,\n tStatusResults,\n tSelectedOptionDescription,\n dropdownArrow: dropdownArrowFactory,\n customAttributes\n } = this.props\n const { focused, hovered, menuOpen, options, query, selected } = this.state\n const autoselect = this.hasAutoselect()\n\n const inputFocused = focused === -1\n const noOptionsAvailable = options.length === 0\n const queryNotEmpty = query.length !== 0\n const queryLongEnough = query.length >= minLength\n const showNoOptionsFound = this.props.showNoOptionsFound &&\n inputFocused && noOptionsAvailable && queryNotEmpty && queryLongEnough\n\n const wrapperClassName = `${cssNamespace}__wrapper`\n\n const inputClassName = `${cssNamespace}__input`\n const componentIsFocused = focused !== null\n const inputModifierFocused = componentIsFocused ? ` ${inputClassName}--focused` : ''\n const inputModifierType = this.props.showAllValues ? ` ${inputClassName}--show-all-values` : ` ${inputClassName}--default`\n const dropdownArrowClassName = `${cssNamespace}__dropdown-arrow-down`\n const optionFocused = focused !== -1 && focused !== null\n\n const menuClassName = `${cssNamespace}__menu`\n const menuModifierDisplayMenu = `${menuClassName}--${displayMenu}`\n const menuIsVisible = menuOpen || showNoOptionsFound\n const menuModifierVisibility = `${menuClassName}--${(menuIsVisible) ? 'visible' : 'hidden'}`\n\n const optionClassName = `${cssNamespace}__option`\n\n const selectedOptionsClassName = `${cssNamespace}__list`\n\n const hintClassName = `${cssNamespace}__hint`\n const selectedOptionText = this.templateInputValue(options[selected])\n const optionBeginsWithQuery = selectedOptionText &&\n selectedOptionText.toLowerCase().indexOf(query.toLowerCase()) === 0\n const hintValue = (optionBeginsWithQuery && autoselect)\n ? query + selectedOptionText.substr(query.length)\n : ''\n const showHint = hasPointerEvents && hintValue\n\n let dropdownArrow\n\n // we only need a dropdown arrow if showAllValues is set to a truthy value\n if (showAllValues) {\n dropdownArrow = dropdownArrowFactory({ className: dropdownArrowClassName })\n\n // if the factory returns a string we'll render this as HTML (usage w/o (P)React)\n if (typeof dropdownArrow === 'string') {\n dropdownArrow = <div className={`${cssNamespace}__dropdown-arrow-down-wrapper`} dangerouslySetInnerHTML={{ __html: dropdownArrow }} />\n }\n }\n\n return (\n <div className={wrapperClassName} onKeyDown={this.handleKeyDown} role='combobox' aria-expanded={menuOpen ? 'true' : 'false'}>\n <Status\n length={options.length}\n queryLength={query.length}\n minQueryLength={minLength}\n selectedOption={this.templateInputValue(options[selected])}\n selectedOptionIndex={selected}\n tQueryTooShort={tStatusQueryTooShort}\n tNoResults={tStatusNoResults}\n tSelectedOption={tStatusSelectedOption}\n tResults={tStatusResults}\n />\n\n {showHint && (\n <span><input className={hintClassName} readonly tabIndex='-1' value={hintValue} /></span>\n )}\n\n <input\n aria-activedescendant={optionFocused ? `${id}__option--${focused}` : false}\n aria-owns={`${id}__listbox`}\n autoComplete='off'\n className={`${inputClassName}${inputModifierFocused}${inputModifierType}`}\n id={id}\n onClick={(event) => this.handleInputClick(event)}\n onBlur={this.handleInputBlur}\n {...onChangeCrossLibrary(this.handleInputChange)}\n onFocus={this.handleInputFocus}\n name={name}\n placeholder={placeholder}\n ref={(inputElement) => { this.elementReferences[-1] = inputElement }}\n type='text'\n role='textbox'\n required={required}\n value={query}\n {...customAttributes}\n />\n\n {dropdownArrow}\n\n <ul\n className={`${menuClassName} ${menuModifierDisplayMenu} ${menuModifierVisibility}`}\n onMouseLeave={(event) => this.handleListMouseLeave(event)}\n id={`${id}__listbox`}\n role='listbox'\n >\n {options.map((option, index) => {\n const showFocused = focused === -1 ? selected === index : focused === index\n const optionModifierFocused = showFocused && hovered === null ? ` ${optionClassName}--focused` : ''\n const optionModifierOdd = (index % 2) ? ` ${optionClassName}--odd` : ''\n\n return (\n <li\n aria-selected={focused === index}\n className={`${optionClassName}${optionModifierFocused}${optionModifierOdd}`}\n dangerouslySetInnerHTML={{ __html: this.templateSuggestion(option) }}\n id={`${id}__option--${index}`}\n key={index}\n onBlur={(event) => this.handleOptionBlur(event, index)}\n onClick={(event) => this.handleOptionClick(event, index)}\n onMouseEnter={(event) => this.handleOptionMouseEnter(event, index)}\n ref={(optionEl) => { this.elementReferences[index] = optionEl }}\n role='option'\n tabIndex='-1'\n />\n )\n })}\n\n {showNoOptionsFound && (\n <li className={`${optionClassName} ${optionClassName}--no-results`}>{tNoResults()}</li>\n )}\n </ul>\n\n {multiple && (\n <ul\n className={`${selectedOptionsClassName}`}\n id={`${id}__list`}\n role='listbox'\n >\n {this.props.selectedOptions.map((option, index) => {\n return (\n <li\n aria-selected='true'\n aria-label={`${this.templateSuggestion(option.textContent)}, selected`}\n aria-describedBy={`${id}__list-item-description`}\n className={`${optionClassName}`}\n dangerouslySetInnerHTML={{ __html: this.templateSuggestion(option.textContent) }}\n id={`${id}__option--${index}`}\n key={index}\n onClick={(event) => this.handleSelectedOptionClick(event, index)}\n onKeyDown={(event) => this.handleSelectedOptionKeyDown(event, index)}\n role='option'\n tabIndex='0'\n />\n )\n })}\n {showNoOptionsFound && (\n <li className={`${optionClassName} ${optionClassName}--no-results`}>{tNoResults()}</li>\n )}\n </ul>\n )}\n {multiple && (\n <span class='autocomplete__list-item-description' id={`${id}__list-item-description`}>{tSelectedOptionDescription()}</span>\n )}\n </div>\n )\n }\n}\n","// 19.1.3.1 Object.assign(target, source)\nvar $export = require('./_export');\n\n$export($export.S + $export.F, 'Object', { assign: require('./_object-assign') });\n","module.exports = !require('./_descriptors') && !require('./_fails')(function () {\n return Object.defineProperty(require('./_dom-create')('div'), 'a', { get: function () { return 7; } }).a != 7;\n});\n","// 7.1.1 ToPrimitive(input [, PreferredType])\nvar isObject = require('./_is-object');\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (it, S) {\n if (!isObject(it)) return it;\n var fn, val;\n if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;\n if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","'use strict';\n// 19.1.2.1 Object.assign(target, source, ...)\nvar getKeys = require('./_object-keys');\nvar gOPS = require('./_object-gops');\nvar pIE = require('./_object-pie');\nvar toObject = require('./_to-object');\nvar IObject = require('./_iobject');\nvar $assign = Object.assign;\n\n// should work with symbols and should have deterministic property order (V8 bug)\nmodule.exports = !$assign || require('./_fails')(function () {\n var A = {};\n var B = {};\n // eslint-disable-next-line no-undef\n var S = Symbol();\n var K = 'abcdefghijklmnopqrst';\n A[S] = 7;\n K.split('').forEach(function (k) { B[k] = k; });\n return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;\n}) ? function assign(target, source) { // eslint-disable-line no-unused-vars\n var T = toObject(target);\n var aLen = arguments.length;\n var index = 1;\n var getSymbols = gOPS.f;\n var isEnum = pIE.f;\n while (aLen > index) {\n var S = IObject(arguments[index++]);\n var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);\n var length = keys.length;\n var j = 0;\n var key;\n while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key];\n } return T;\n} : $assign;\n","var has = require('./_has');\nvar toIObject = require('./_to-iobject');\nvar arrayIndexOf = require('./_array-includes')(false);\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\n\nmodule.exports = function (object, names) {\n var O = toIObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (has(O, key = names[i++])) {\n ~arrayIndexOf(result, key) || result.push(key);\n }\n return result;\n};\n","var toInteger = require('./_to-integer');\nvar max = Math.max;\nvar min = Math.min;\nmodule.exports = function (index, length) {\n index = toInteger(index);\n return index < 0 ? max(index + length, 0) : min(index, length);\n};\n","module.exports = false;\n","exports.f = Object.getOwnPropertySymbols;\n","exports.f = {}.propertyIsEnumerable;\n","// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\nvar anObject = require('./_an-object');\nvar dPs = require('./_object-dps');\nvar enumBugKeys = require('./_enum-bug-keys');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar Empty = function () { /* empty */ };\nvar PROTOTYPE = 'prototype';\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar createDict = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = require('./_dom-create')('iframe');\n var i = enumBugKeys.length;\n var lt = '<';\n var gt = '>';\n var iframeDocument;\n iframe.style.display = 'none';\n require('./_html').appendChild(iframe);\n iframe.src = 'javascript:'; // eslint-disable-line no-script-url\n // createDict = iframe.contentWindow.Object;\n // html.removeChild(iframe);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);\n iframeDocument.close();\n createDict = iframeDocument.F;\n while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];\n return createDict();\n};\n\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n Empty[PROTOTYPE] = anObject(O);\n result = new Empty();\n Empty[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = createDict();\n return Properties === undefined ? result : dPs(result, Properties);\n};\n","var dP = require('./_object-dp');\nvar anObject = require('./_an-object');\nvar getKeys = require('./_object-keys');\n\nmodule.exports = require('./_descriptors') ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var keys = getKeys(Properties);\n var length = keys.length;\n var i = 0;\n var P;\n while (length > i) dP.f(O, P = keys[i++], Properties[P]);\n return O;\n};\n","var document = require('./_global').document;\nmodule.exports = document && document.documentElement;\n","'use strict';\nvar $export = require('./_export');\nvar $map = require('./_array-methods')(1);\n\n$export($export.P + $export.F * !require('./_strict-method')([].map, true), 'Array', {\n // 22.1.3.15 / 15.4.4.19 Array.prototype.map(callbackfn [, thisArg])\n map: function map(callbackfn /* , thisArg */) {\n return $map(this, callbackfn, arguments[1]);\n }\n});\n","// 9.4.2.3 ArraySpeciesCreate(originalArray, length)\nvar speciesConstructor = require('./_array-species-constructor');\n\nmodule.exports = function (original, length) {\n return new (speciesConstructor(original))(length);\n};\n","var isObject = require('./_is-object');\nvar isArray = require('./_is-array');\nvar SPECIES = require('./_wks')('species');\n\nmodule.exports = function (original) {\n var C;\n if (isArray(original)) {\n C = original.constructor;\n // cross-realm fallback\n if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;\n if (isObject(C)) {\n C = C[SPECIES];\n if (C === null) C = undefined;\n }\n } return C === undefined ? Array : C;\n};\n","// 7.2.2 IsArray(argument)\nvar cof = require('./_cof');\nmodule.exports = Array.isArray || function isArray(arg) {\n return cof(arg) == 'Array';\n};\n","'use strict';\nvar $export = require('./_export');\nvar $indexOf = require('./_array-includes')(false);\nvar $native = [].indexOf;\nvar NEGATIVE_ZERO = !!$native && 1 / [1].indexOf(1, -0) < 0;\n\n$export($export.P + $export.F * (NEGATIVE_ZERO || !require('./_strict-method')($native)), 'Array', {\n // 22.1.3.11 / 15.4.4.14 Array.prototype.indexOf(searchElement [, fromIndex])\n indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {\n return NEGATIVE_ZERO\n // convert -0 to +0\n ? $native.apply(this, arguments) || 0\n : $indexOf(this, searchElement, arguments[1]);\n }\n});\n","var dP = require('./_object-dp').f;\nvar FProto = Function.prototype;\nvar nameRE = /^\\s*function ([^ (]*)/;\nvar NAME = 'name';\n\n// 19.2.4.2 name\nNAME in FProto || require('./_descriptors') && dP(FProto, NAME, {\n configurable: true,\n get: function () {\n try {\n return ('' + this).match(nameRE)[1];\n } catch (e) {\n return '';\n }\n }\n});\n","'use strict';\nvar $export = require('./_export');\nvar $filter = require('./_array-methods')(2);\n\n$export($export.P + $export.F * !require('./_strict-method')([].filter, true), 'Array', {\n // 22.1.3.7 / 15.4.4.20 Array.prototype.filter(callbackfn [, thisArg])\n filter: function filter(callbackfn /* , thisArg */) {\n return $filter(this, callbackfn, arguments[1]);\n }\n});\n","// 19.2.3.2 / 15.3.4.5 Function.prototype.bind(thisArg, args...)\nvar $export = require('./_export');\n\n$export($export.P, 'Function', { bind: require('./_bind') });\n","'use strict';\nvar aFunction = require('./_a-function');\nvar isObject = require('./_is-object');\nvar invoke = require('./_invoke');\nvar arraySlice = [].slice;\nvar factories = {};\n\nvar construct = function (F, len, args) {\n if (!(len in factories)) {\n for (var n = [], i = 0; i < len; i++) n[i] = 'a[' + i + ']';\n // eslint-disable-next-line no-new-func\n factories[len] = Function('F,a', 'return new F(' + n.join(',') + ')');\n } return factories[len](F, args);\n};\n\nmodule.exports = Function.bind || function bind(that /* , ...args */) {\n var fn = aFunction(this);\n var partArgs = arraySlice.call(arguments, 1);\n var bound = function (/* args... */) {\n var args = partArgs.concat(arraySlice.call(arguments));\n return this instanceof bound ? construct(fn, args.length, args) : invoke(fn, args, that);\n };\n if (isObject(fn.prototype)) bound.prototype = fn.prototype;\n return bound;\n};\n","// fast apply, http://jsperf.lnkit.com/fast-apply/5\nmodule.exports = function (fn, args, that) {\n var un = that === undefined;\n switch (args.length) {\n case 0: return un ? fn()\n : fn.call(that);\n case 1: return un ? fn(args[0])\n : fn.call(that, args[0]);\n case 2: return un ? fn(args[0], args[1])\n : fn.call(that, args[0], args[1]);\n case 3: return un ? fn(args[0], args[1], args[2])\n : fn.call(that, args[0], args[1], args[2]);\n case 4: return un ? fn(args[0], args[1], args[2], args[3])\n : fn.call(that, args[0], args[1], args[2], args[3]);\n } return fn.apply(that, args);\n};\n","// @@match logic\nrequire('./_fix-re-wks')('match', 1, function (defined, MATCH, $match) {\n // 21.1.3.11 String.prototype.match(regexp)\n return [function match(regexp) {\n 'use strict';\n var O = defined(this);\n var fn = regexp == undefined ? undefined : regexp[MATCH];\n return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[MATCH](String(O));\n }, $match];\n});\n","'use strict';\nvar hide = require('./_hide');\nvar redefine = require('./_redefine');\nvar fails = require('./_fails');\nvar defined = require('./_defined');\nvar wks = require('./_wks');\n\nmodule.exports = function (KEY, length, exec) {\n var SYMBOL = wks(KEY);\n var fns = exec(defined, SYMBOL, ''[KEY]);\n var strfn = fns[0];\n var rxfn = fns[1];\n if (fails(function () {\n var O = {};\n O[SYMBOL] = function () { return 7; };\n return ''[KEY](O) != 7;\n })) {\n redefine(String.prototype, KEY, strfn);\n hide(RegExp.prototype, SYMBOL, length == 2\n // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)\n // 21.2.5.11 RegExp.prototype[@@split](string, limit)\n ? function (string, arg) { return rxfn.call(string, this, arg); }\n // 21.2.5.6 RegExp.prototype[@@match](string)\n // 21.2.5.9 RegExp.prototype[@@search](string)\n : function (string) { return rxfn.call(string, this); }\n );\n }\n};\n","import { createElement, Component } from 'preact' /** @jsx createElement */\n\nexport default class Status extends Component {\n static defaultProps = {\n tQueryTooShort: (minQueryLength) => `Type in ${minQueryLength} or more characters for results.`,\n tNoResults: () => 'No search results.',\n tSelectedOption: (selectedOption, length, index) => `${selectedOption} (${index + 1} of ${length}) is selected.`,\n tResults: (length, contentSelectedOption) => {\n const words = {\n result: (length === 1) ? 'result' : 'results',\n is: (length === 1) ? 'is' : 'are'\n }\n\n return `${length} ${words.result} ${words.is} available. ${contentSelectedOption}`\n }\n };\n\n state = {\n bump: false\n }\n\n componentWillReceiveProps ({ queryLength }) {\n const hasChanged = queryLength !== this.props.queryLength\n if (hasChanged) {\n this.setState(({ bump }) => ({ bump: !bump }))\n }\n }\n\n render () {\n const {\n length,\n queryLength,\n minQueryLength,\n selectedOption,\n selectedOptionIndex,\n tQueryTooShort,\n tNoResults,\n tSelectedOption,\n tResults\n } = this.props\n const { bump } = this.state\n\n const queryTooShort = queryLength < minQueryLength\n const noResults = length === 0\n\n const contentSelectedOption = selectedOption\n ? tSelectedOption(selectedOption, length, selectedOptionIndex)\n : ''\n\n let content = null\n if (queryTooShort) {\n content = tQueryTooShort(minQueryLength)\n } else if (noResults) {\n content = tNoResults()\n } else {\n content = tResults(length, contentSelectedOption)\n }\n\n return <div\n aria-atomic='true'\n aria-live='polite'\n role='status'\n style={{\n border: '0',\n clip: 'rect(0 0 0 0)',\n height: '1px',\n marginBottom: '-1px',\n marginRight: '-1px',\n overflow: 'hidden',\n padding: '0',\n position: 'absolute',\n whiteSpace: 'nowrap',\n width: '1px'\n }}\n >\n {content}\n <span>{bump ? ',' : ',,'}</span>\n </div>\n }\n}\n","import { createElement } from 'preact' /** @jsx createElement */\n\nconst DropdownArrowDown = ({ className }) => (\n <svg version='1.1' xmlns='http://www.w3.org/2000/svg' className={className} focusable='false'>\n <g stroke='none' fill='none' fill-rule='evenodd'>\n <polygon fill='#000000' points='0 0 22 0 11 17' />\n </g>\n </svg>\n)\n\nexport default DropdownArrowDown\n"],"sourceRoot":""}
|
@@ -159,6 +159,32 @@
|
|
159
159
|
tStatusResults: () => '' }</code> options.</p>
|
160
160
|
<label for="autocomplete-i18n">Select your country</label>
|
161
161
|
<div id="tt-i18n" class="autocomplete-wrapper"></div>
|
162
|
+
|
163
|
+
<h3>Multiselect</h3>
|
164
|
+
<p>
|
165
|
+
This example demonstrates how to use the autocomplete on a multiselect <code><select multiple></code> element
|
166
|
+
Turn off JavaScript to see the <code><select multiple></code> element.
|
167
|
+
</p>
|
168
|
+
<p>Uses <code>accessibleAutocomplete.enhanceSelectElement</code>.</p>
|
169
|
+
<label for="multiselect-autocomplete-progressiveEnhancement">Select your country</label>
|
170
|
+
<div class="autocomplete-wrapper">
|
171
|
+
<select multiple id="multiselect-autocomplete-progressiveEnhancement">
|
172
|
+
<option value="fr">France</option>
|
173
|
+
<option value="de" selected>Germany</option>
|
174
|
+
<option value="gb" selected>United Kingdom</option>
|
175
|
+
</select>
|
176
|
+
</div>
|
177
|
+
|
178
|
+
<h3>Custom attributes</h3>
|
179
|
+
<p>
|
180
|
+
This example demonstrates how to add custom attributes to the component.
|
181
|
+
</p>
|
182
|
+
<p>Uses the <code>{ customAttributes: {
|
183
|
+
"data-hello": "hey",
|
184
|
+
"data-goodbye": "bye"
|
185
|
+
} }</code> options.</p>
|
186
|
+
<label for="autocomplete-custom-attributes">Select your country</label>
|
187
|
+
<div id="custom-attributes" class="autocomplete-wrapper"></div>
|
162
188
|
</main>
|
163
189
|
|
164
190
|
<script type="text/javascript" src="../dist/accessible-autocomplete.min.js"></script>
|
@@ -484,6 +510,14 @@
|
|
484
510
|
})
|
485
511
|
</script>
|
486
512
|
|
513
|
+
<script type="text/javascript">
|
514
|
+
element = document.querySelector('#multiselect-autocomplete-progressiveEnhancement')
|
515
|
+
accessibleAutocomplete.enhanceSelectElement({
|
516
|
+
minLength: 3,
|
517
|
+
selectElement: element
|
518
|
+
})
|
519
|
+
</script>
|
520
|
+
|
487
521
|
<script type="text/javascript">
|
488
522
|
function customSuggest (query, syncResults) {
|
489
523
|
var results = [
|
@@ -612,5 +646,20 @@
|
|
612
646
|
})
|
613
647
|
</script>
|
614
648
|
|
649
|
+
<script type="text/javascript">
|
650
|
+
element = document.querySelector('#custom-attributes')
|
651
|
+
id = 'autocomplete-custom-attributes'
|
652
|
+
accessibleAutocomplete({
|
653
|
+
element: element,
|
654
|
+
id: id,
|
655
|
+
showAllValues: false,
|
656
|
+
source: countries,
|
657
|
+
customAttributes: {
|
658
|
+
"data-hello": "hey",
|
659
|
+
"data-goodbye": "bye"
|
660
|
+
}
|
661
|
+
})
|
662
|
+
</script>
|
663
|
+
|
615
664
|
</body>
|
616
665
|
</html>
|
@@ -0,0 +1,134 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
6
|
+
<title>Accessible Autocomplete examples</title>
|
7
|
+
<style>
|
8
|
+
/* Example page specific styling. */
|
9
|
+
html {
|
10
|
+
color: #111;
|
11
|
+
background: #FFF;
|
12
|
+
font-family: -apple-system, BlinkMacSystemFont, 'avenir next', avenir, 'helvetica neue', helvetica, ubuntu, roboto, noto, 'segoe ui', arial, sans-serif;
|
13
|
+
font-size: 16px;
|
14
|
+
line-height: 1.5;
|
15
|
+
}
|
16
|
+
|
17
|
+
body {
|
18
|
+
padding-left: 1rem;
|
19
|
+
padding-right: 1rem;
|
20
|
+
}
|
21
|
+
|
22
|
+
h1, h2, h3, h4, h5, h6 {
|
23
|
+
line-height: normal;
|
24
|
+
}
|
25
|
+
|
26
|
+
label {
|
27
|
+
display: block;
|
28
|
+
margin-bottom: .5rem;
|
29
|
+
}
|
30
|
+
|
31
|
+
code {
|
32
|
+
padding-left: .5em;
|
33
|
+
padding-right: .5em;
|
34
|
+
background: #EFEFEF;
|
35
|
+
font-weight: normal;
|
36
|
+
font-family: monospace;
|
37
|
+
}
|
38
|
+
|
39
|
+
main {
|
40
|
+
max-width: 40em;
|
41
|
+
margin-left: auto;
|
42
|
+
margin-right: auto;
|
43
|
+
}
|
44
|
+
|
45
|
+
.autocomplete-wrapper {
|
46
|
+
max-width: 20em;
|
47
|
+
margin-bottom: 4rem;
|
48
|
+
}
|
49
|
+
</style>
|
50
|
+
<link rel="stylesheet" href="../dist/accessible-autocomplete.min.css">
|
51
|
+
</head>
|
52
|
+
<body>
|
53
|
+
<main>
|
54
|
+
<h1>Accessible Autocomplete examples</h1>
|
55
|
+
|
56
|
+
<p><a href="form.html">Example in a real HTML form that you can submit</a></p>
|
57
|
+
|
58
|
+
<h3>Multiselect</h3>
|
59
|
+
<p>
|
60
|
+
This example demonstrates how to use the autocomplete on a multiselect <code><select multiple></code> element
|
61
|
+
Turn off JavaScript to see the <code><select multiple></code> element.
|
62
|
+
</p>
|
63
|
+
<p>Uses <code>accessibleAutocomplete.enhanceSelectElement</code>.</p>
|
64
|
+
<label for="multiselect-progressiveEnhancement">Select your country</label>
|
65
|
+
<div class="autocomplete-wrapper">
|
66
|
+
<select multiple id="multiselect-progressiveEnhancement">
|
67
|
+
<option value="fr">France</option>
|
68
|
+
<option value="de">Germany</option>
|
69
|
+
<option value="gb">United Kingdom</option>
|
70
|
+
<option value="ae">United Arab Emirates</option>
|
71
|
+
</select>
|
72
|
+
</div>
|
73
|
+
|
74
|
+
<h3>Multiselect with pre-selected values</h3>
|
75
|
+
<p>
|
76
|
+
This example demonstrates how to use the autocomplete on a multiselect <code><select multiple></code> element
|
77
|
+
Turn off JavaScript to see the <code><select multiple></code> element.
|
78
|
+
</p>
|
79
|
+
<p>Uses <code>accessibleAutocomplete.enhanceSelectElement</code>.</p>
|
80
|
+
<label for="multiselect-preselected-progressiveEnhancement">Select your country</label>
|
81
|
+
<div class="autocomplete-wrapper">
|
82
|
+
<select multiple id="multiselect-preselected-progressiveEnhancement">
|
83
|
+
<option value="fr">France</option>
|
84
|
+
<option value="de" selected>Germany</option>
|
85
|
+
<option value="gb" selected>United Kingdom</option>
|
86
|
+
<option value="ae">United Arab Emirates</option>
|
87
|
+
</select>
|
88
|
+
</div>
|
89
|
+
|
90
|
+
<h3>Multiselect with empty option</h3>
|
91
|
+
<p>
|
92
|
+
This example demonstrates how to use the autocomplete on a multiselect <code><select multiple></code> element
|
93
|
+
Turn off JavaScript to see the <code><select multiple></code> element.
|
94
|
+
</p>
|
95
|
+
<p>Uses <code>accessibleAutocomplete.enhanceSelectElement</code>.</p>
|
96
|
+
<label for="multiselect-empty-option-progressiveEnhancement">Select your country</label>
|
97
|
+
<div class="autocomplete-wrapper">
|
98
|
+
<select multiple id="multiselect-empty-option-progressiveEnhancement">
|
99
|
+
<option value=""></option>
|
100
|
+
<option value="fr">France</option>
|
101
|
+
<option value="de">Germany</option>
|
102
|
+
<option value="gb">United Kingdom</option>
|
103
|
+
<option value="ae">United Arab Emirates</option>
|
104
|
+
</select>
|
105
|
+
</div>
|
106
|
+
|
107
|
+
</main>
|
108
|
+
|
109
|
+
<script type="text/javascript" src="../dist/accessible-autocomplete.min.js"></script>
|
110
|
+
|
111
|
+
<script type="text/javascript">
|
112
|
+
element = document.querySelector('#multiselect-progressiveEnhancement')
|
113
|
+
accessibleAutocomplete.enhanceSelectElement({
|
114
|
+
selectElement: element
|
115
|
+
})
|
116
|
+
</script>
|
117
|
+
|
118
|
+
<script type="text/javascript">
|
119
|
+
element = document.querySelector('#multiselect-preselected-progressiveEnhancement')
|
120
|
+
accessibleAutocomplete.enhanceSelectElement({
|
121
|
+
selectElement: element
|
122
|
+
})
|
123
|
+
</script>
|
124
|
+
|
125
|
+
<script type="text/javascript">
|
126
|
+
element = document.querySelector('#multiselect-empty-option-progressiveEnhancement')
|
127
|
+
accessibleAutocomplete.enhanceSelectElement({
|
128
|
+
showAllValues: true,
|
129
|
+
selectElement: element
|
130
|
+
})
|
131
|
+
</script>
|
132
|
+
|
133
|
+
</body>
|
134
|
+
</html>
|