From c9c5a37bb2bc311847e53e1efb91dc772eb67fea Mon Sep 17 00:00:00 2001 From: kalenikk-kainos Date: Tue, 2 Mar 2021 13:40:31 +0100 Subject: [PATCH] BL-11501 fix mark repairs javascript for proper counting failures depending on failure type --- composer.json | 2 +- dist/assets/javascripts/development.bundle.js | 6 ++--- .../assets/javascripts/dvsa-manuals.bundle.js | 4 ++-- .../javascripts/dvsa-mts-legacy.bundle.js | 12 +++++----- dist/assets/javascripts/dvsa-mts.bundle.js | 6 ++--- dist/assets/javascripts/dvsa.bundle.js | 4 ++-- dist/assets/javascripts/vendor.bundle.js | 6 ++--- dist/assets/stylesheets/development.css | 6 ++--- dist/assets/stylesheets/styles.css | 4 ++-- package-lock.json | 2 +- package.json | 2 +- .../modules/mark-repairs/mark-repairs.js | 24 ++++++++++++------- 12 files changed, 43 insertions(+), 35 deletions(-) diff --git a/composer.json b/composer.json index c4638d9b4..c643223be 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "dvsa/front-end", "description": "DVSA front-end assets used within all applications", - "version": "1.3.29", + "version": "1.5.2", "homepage": "https://github.com/dvsa/front-end", "license": "MIT", "authors": [ diff --git a/dist/assets/javascripts/development.bundle.js b/dist/assets/javascripts/development.bundle.js index 89d85464b..52af7d250 100644 --- a/dist/assets/javascripts/development.bundle.js +++ b/dist/assets/javascripts/development.bundle.js @@ -1,10 +1,10 @@ /*! * * Name: dvsa-front-end/development - * Version: 1.3.29 + * Version: 1.5.2 * Contributors: Martin D Marriott , James Nelson , Tameem Safi - * Timestamp: May 26th 2020, 10:47:12 am + * Timestamp: March 2nd 2021, 12:43:56 pm * Source: https://github.com/dvsa/front-end * */ -webpackJsonp([1],{222:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.TEXT_TO_SPEECH_CONFIG={classes:{wrapper:"text-to-speech__wrapper",readerItem:"text-to-speech__item",readerItemHighlight:"text-to-speech__item--highlight",audioBtn:"text-to-speech__button",audioBtnPlaying:"text-to-speech__button--playing"},audioBtnText:"Play audio",dataAttributes:{readerID:"data-item-id"},DOMTargets:["p","ul"],buttonInnerHtml:"Play Audio\n "}},347:function(e,t,n){"use strict";n(348),n(349),n(350),n(351);var r=n(16),o=n(352);n(372),(0,r.domReady)(function(){(0,o.initModules)()})},348:function(e,t,n){(function(t){var n="undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{},r=function(e){function t(e,t,n,r,o){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length,this.greedy=!!o}function n(e,r,a,s,l,u,d){for(var p in a)if(a.hasOwnProperty(p)&&a[p]){var f=a[p];f=Array.isArray(f)?f:[f];for(var h=0;he.length)return;if(!(C instanceof t)){var S=1;if(y&&E!=r.tail.prev){v.lastIndex=x;var T=v.exec(e);if(!T)break;var P=T.index+(g&&T[1]?T[1].length:0),O=T.index+T[0].length,F=x;for(F+=E.value.length;P>=F;)E=E.next,F+=E.value.length;if(F-=E.value.length,x=F,E.value instanceof t)continue;for(var k=E;k!==r.tail&&(F1&&n(e,r,a,E.prev,x,!0,p+","+h),u)break}else if(u)break}}}}}function r(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function o(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function i(e,t,n){for(var r=t.next,o=0;o"+o.content+""},!e.document)return e.addEventListener?(c.disableWorkerMessageHandler||e.addEventListener("message",function(t){var n=JSON.parse(t.data),r=n.language,o=n.code,i=n.immediateClose;e.postMessage(c.highlight(o,c.languages[r],r)),i&&e.close()},!1),c):c;var d=c.util.currentScript();if(d&&(c.filename=d.src,d.hasAttribute("data-manual")&&(c.manual=!0)),!c.manual){var p=document.readyState;"loading"===p||"interactive"===p&&d&&d.defer?document.addEventListener("DOMContentLoaded",s):window.requestAnimationFrame?window.requestAnimationFrame(s):window.setTimeout(s,16)}return c}(n);void 0!==e&&e.exports&&(e.exports=r),void 0!==t&&(t.Prism=r),r.languages.markup={comment://,prolog:/<\?[\s\S]+?\?>/,doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:(?!)*\]\s*)?>/i,greedy:!0},cdata://i,tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/i,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/i,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/i,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:/&#?[\da-z]{1,8};/i},r.languages.markup.tag.inside["attr-value"].inside.entity=r.languages.markup.entity,r.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))}),Object.defineProperty(r.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^$)/i,lookbehind:!0,inside:r.languages[t]},n.cdata=/^$/i;var o={"included-cdata":{pattern://i,inside:n}};o["language-"+t]={pattern:/[\s\S]+/,inside:r.languages[t]};var i={};i[e]={pattern:RegExp(/(<__[\s\S]*?>)(?:\s*|[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:o},r.languages.insertBefore("markup","cdata",i)}}),r.languages.xml=r.languages.extend("markup",{}),r.languages.html=r.languages.markup,r.languages.mathml=r.languages.markup,r.languages.svg=r.languages.markup,function(e){var t=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-]+[\s\S]*?(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\((?!\s*\))\s*)(?:[^()]|\((?:[^()]|\([^()]*\))*\))+?(?=\s*\))/,lookbehind:!0,alias:"selector"}}},url:{pattern:RegExp("url\\((?:"+t.source+"|[^\n\r()]*)\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/}},selector:RegExp("[^{}\\s](?:[^{};\"']|"+t.source+")*?(?=\\s*\\{)"),string:{pattern:t,greedy:!0},property:/[-_a-z\xA0-\uFFFF][-\w\xA0-\uFFFF]*(?=\s*:)/i,important:/!important\b/i,function:/[-a-z0-9]+(?=\()/i,punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),e.languages.insertBefore("inside","attr-value",{"style-attr":{pattern:/\s*style=("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/i,inside:{"attr-name":{pattern:/^\s*style/i,inside:n.tag.inside},punctuation:/^\s*=\s*['"]|['"]\s*$/,"attr-value":{pattern:/.+/i,inside:e.languages.css}},alias:"language-css"}},n.tag))}(r),r.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},r.languages.javascript=r.languages.extend("clike",{"class-name":[r.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])[_$A-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|})\s*)(?:catch|finally)\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,function:/#?[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,operator:/--|\+\+|\*\*=?|=>|&&|\|\||[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?[.?]?|[~:]/}),r.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,r.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s])\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*]|\\.|[^/\\\[\r\n])+\/[gimyus]{0,6}(?=(?:\s|\/\*[\s\S]*?\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0},"function-variable":{pattern:/#?[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)?\s*\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\))/,lookbehind:!0,inside:r.languages.javascript},{pattern:/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*=>)/i,inside:r.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*=>)/,lookbehind:!0,inside:r.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\s*)\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*\{)/,lookbehind:!0,inside:r.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),r.languages.insertBefore("javascript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}|(?!\${)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\${|}$/,alias:"punctuation"},rest:r.languages.javascript}},string:/[\s\S]+/}}}),r.languages.markup&&r.languages.markup.tag.addInlined("script","javascript"),r.languages.js=r.languages.javascript,function(){"undefined"!=typeof self&&self.Prism&&self.document&&document.querySelector&&(self.Prism.fileHighlight=function(e){e=e||document;var t={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"};Array.prototype.slice.call(e.querySelectorAll("pre[data-src]")).forEach(function(e){if(!e.hasAttribute("data-src-loaded")){for(var n,o=e.getAttribute("data-src"),i=e,a=/\blang(?:uage)?-([\w-]+)\b/i;i&&!a.test(i.className);)i=i.parentNode;if(i&&(n=(e.className.match(a)||[,""])[1]),!n){var s=(o.match(/\.(\w+)$/)||[,""])[1];n=t[s]||s}var l=document.createElement("code");l.className="language-"+n,e.textContent="",l.textContent="Loading…",e.appendChild(l);var u=new XMLHttpRequest;u.open("GET",o,!0),u.onreadystatechange=function(){4==u.readyState&&(u.status<400&&u.responseText?(l.textContent=u.responseText,r.highlightElement(l),e.setAttribute("data-src-loaded","")):u.status>=400?l.textContent="✖ Error "+u.status+" while fetching file: "+u.statusText:l.textContent="✖ Error: File does not exist or is empty")},u.send(null)}})},document.addEventListener("DOMContentLoaded",function(){self.Prism.fileHighlight()}))}()}).call(t,n(156))},349:function(e,t){!function(){function e(e){for(;e;){var t=e.getAttribute("data-toolbar-order");if(null!=t)return t=t.trim(),t.length?t.split(/\s*,\s*/g):[];e=e.parentElement}}if("undefined"!=typeof self&&self.Prism&&self.document){var t=[],n={},r=function(){};Prism.plugins.toolbar={};var o=Prism.plugins.toolbar.registerButton=function(e,r){var o;if(o="function"==typeof r?r:function(e){var t;return"function"==typeof r.onClick?(t=document.createElement("button"),t.type="button",t.addEventListener("click",function(){r.onClick.call(this,e)})):"string"==typeof r.url?(t=document.createElement("a"),t.href=r.url):t=document.createElement("span"),r.className&&t.classList.add(r.className),t.textContent=r.text,t},e in n)return void console.warn('There is a button with the key "'+e+'" registered already.');t.push(n[e]=o)},i=Prism.plugins.toolbar.hook=function(o){var i=o.element.parentNode;if(i&&/pre/i.test(i.nodeName)&&!i.parentNode.classList.contains("code-toolbar")){var a=document.createElement("div");a.classList.add("code-toolbar"),i.parentNode.insertBefore(a,i),a.appendChild(i);var s=document.createElement("div");s.classList.add("toolbar");var l=t,u=e(o.element);u&&(l=u.map(function(e){return n[e]||r})),l.forEach(function(e){var t=e(o);if(t){var n=document.createElement("div");n.classList.add("toolbar-item"),n.appendChild(t),s.appendChild(n)}}),a.appendChild(s)}};o("label",function(e){var t=e.element.parentNode;if(t&&/pre/i.test(t.nodeName)&&t.hasAttribute("data-label")){var n,r,o=t.getAttribute("data-label");try{r=document.querySelector("template#"+o)}catch(e){}return r?n=r.content:(t.hasAttribute("data-url")?(n=document.createElement("a"),n.href=t.getAttribute("data-url")):n=document.createElement("span"),n.textContent=o),n}}),Prism.hooks.add("complete",i)}}()},350:function(e,t){!function(){function t(e){this.defaults=o({},e)}function n(e){return e.replace(/-(\w)/g,function(e,t){return t.toUpperCase()})}function r(e){for(var t=0,n=0;nt&&(i[s]="\n"+i[s],a=l)}n[o]=i.join("")}return n.join("\n")}},void 0!==e&&e.exports&&(e.exports=t),"undefined"!=typeof Prism&&(Prism.plugins.NormalizeWhitespace=new t({"remove-trailing":!0,"remove-indent":!0,"left-trim":!0,"right-trim":!0}),Prism.hooks.add("before-sanity-check",function(e){var t=Prism.plugins.NormalizeWhitespace;if(!e.settings||!1!==e.settings["whitespace-normalization"]){if((!e.element||!e.element.parentNode)&&e.code)return void(e.code=t.normalize(e.code,e.settings));var n=e.element.parentNode,r=/(?:^|\s)no-whitespace-normalization(?:\s|$)/;if(e.code&&n&&"pre"===n.nodeName.toLowerCase()&&!r.test(n.className)&&!r.test(e.element.className)){for(var o=n.childNodes,i="",a="",s=!1,l=0;l");l=document.createElement("span"),l.setAttribute("aria-hidden","true"),l.className="line-numbers-rows",l.innerHTML=d,o.hasAttribute("data-start")&&(o.style.counterReset="linenumber "+(parseInt(o.getAttribute("data-start"),10)-1)),n.element.appendChild(l),t(o),Prism.hooks.run("line-numbers",n)}}}}),Prism.hooks.add("line-numbers",function(e){e.plugins=e.plugins||{},e.plugins.lineNumbers=!0}),Prism.plugins.lineNumbers={getLine:function(e,t){if("PRE"===e.tagName&&e.classList.contains("line-numbers")){var n=e.querySelector(".line-numbers-rows"),r=parseInt(e.getAttribute("data-start"),10)||1,o=r+(n.children.length-1);to&&(t=o);var i=t-r;return n.children[i]}}}}}()},352:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initModules=void 0;var r=n(353),o=(n(355),n(358)),i=n(361),a=n(364),s=n(367),l=n(369);t.initModules=function(){(0,o.initTextToSpeechToggle)(),(0,i.initFontSizeToggle)(),(0,a.initSpeechToText)(),(0,s.initThemeToggle)(),(0,r.initLibraryNavigation)(),(0,l.initAutoComplete)()}},353:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initLibraryNavigation=void 0;var r=n(354);t.initLibraryNavigation=function(){new r.LibraryPageNavigation}},354:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.LibraryPageNavigation=void 0;var o=n(4);t.LibraryPageNavigation=function e(){var t=this;if(r(this,e),this.mobileNavigationClickHandler=function(){(0,o.toggleClass)(t.navigationInner,t.navigationInnerOpenClassName)},this.sidebar=!1,this.maxWidth=800,this.navigationId="styleguide-navigation",this.navigationInnerClassName="styleguide-navigation__inner",this.navigationInnerOpenClassName="styleguide-navigation__inner--open",this.contentId="styleguide-content",this.mobileNavigationClassName="styleguide-navigation__mobile-nav",this.mobileNavigationContainerClassName="styleguide-navigation",this.libraryContainerId="library-container",this.libraryContainerElement=document.getElementById(this.libraryContainerId),this.navigation=document.getElementById(this.navigationId),this.navigation&&this.libraryContainerElement)return this.mobileNavigationContainer=document.querySelector("."+this.mobileNavigationClassName),this.navigationInner=this.navigation.querySelector("."+this.navigationInnerClassName),this.content=document.getElementById(this.contentId),this.mobileNavigationContainer?this.navigationInner?this.content?void(0,o.addEventListenerToEl)(this.mobileNavigationContainer,"click",this.mobileNavigationClickHandler):console.warn("Library content not found"):console.warn("Navigation inner not found"):console.warn("Mobile navigation container not found")}},355:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initDevPreview=void 0;var r=n(356),o=n(357);t.initDevPreview=function(){new r.DevPreview,new o.DevPreviewFullscreen}},356:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.DevPreview=void 0;var o=n(46),i=(function(e){e&&e.__esModule}(o),n(4));t.DevPreview=function e(){var t=this;r(this,e),this.init=function(){t.addBodyPaddingToAccountForFloatingButton(),t.movePreviewElementToChildOfBody(),t.addEvents()},this.addBodyPaddingToAccountForFloatingButton=function(){if(t.elements.devPreviewFloatingButton&&t.elements.footer){var e=t.elements.devPreviewFloatingButton.offsetHeight,n=window.getComputedStyle(t.elements.footer,null).getPropertyValue("padding-bottom")||0;n=n.replace("px",""),n+=e,t.elements.footer.style.paddingBottom=n+"px"}},this.movePreviewElementToChildOfBody=function(){t.elements.body.appendChild(t.elements.devPreviewFullPage),t.elements.devPreviewFloatingButton&&t.elements.body.appendChild(t.elements.devPreviewFloatingButton)},this.addEvents=function(){t.elements.devPreviewFloatingButton.addEventListener("click",t.toggleFullPagePreview),(0,i.delegateEvent)(document,"click",t.selectors.devPreviewCloseButton,t.toggleFullPagePreview)},this.toggleFullPagePreview=function(){t.state.fullPagePreviewHidden=!t.state.fullPagePreviewHidden,(0,i.toggleClass)(t.elements.devPreviewFullPage,t.classnames.devPreviewHidden,t.state.fullPagePreviewHidden),(0,i.toggleClass)(t.elements.devPreviewFloatingButton,t.classnames.devPreviewHidden,!t.state.fullPagePreviewHidden),(0,i.toggleClass)(t.elements.body,t.classnames.devPreviewBodyOverflowHidden,!t.state.fullPagePreviewHidden)},this.classnames={devPreviewHidden:"dev-preview--hidden",devPreviewBodyOverflowHidden:"dev-preview__body-overflow-hidden"},this.selectors={devPreviewFullPage:".dev-preview--full-page",devPreviewFloatingButton:".dev-preview__floating-button",devPreviewCloseButton:".dev-preview__close-button",content:"#content",body:"body",footer:"#footer"},this.elements={body:document.querySelector(this.selectors.body),devPreviewFullPage:document.querySelector(this.selectors.devPreviewFullPage),devPreviewFloatingButton:document.querySelector(this.selectors.devPreviewFloatingButton),content:document.querySelector(this.selectors.content),footer:document.querySelector(this.selectors.footer)},this.state={fullPagePreviewHidden:!0},this.elements.body&&this.elements.devPreviewFullPage&&this.elements.content&&this.init()}},357:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.DevPreviewFullscreen=void 0;var o=n(46),i=(function(e){e&&e.__esModule}(o),n(4));t.DevPreviewFullscreen=function e(){var t=this;r(this,e),this.init=function(){t.setupState(),(0,i.delegateEvent)(document,"click",t.selectors.devPreviewFullscreenButton,t.onFullscreenPreviewClick)},this.setupState=function(){t.elements.previewElements.forEach(function(e){var n=e.querySelector(t.selectors.devPreviewFullscreenButton),r=e.querySelector(t.selectors.devPreviewExample),o=e.querySelector(t.selectors.devPreviewPismCode);t.state.previewElements.push({devPreviewElement:e,fullscreenButton:n,devPreviewExample:r,devPreviewPismCode:o,isFullscreen:!1});var i=t.state.previewElements.length-1;e&&e.setAttribute(t.attributes.stateItemId,i),n&&n.setAttribute(t.attributes.stateItemId,i)})},this.onFullscreenPreviewClick=function(e){if(e&&e.target){var n=e.target.getAttribute(t.attributes.stateItemId),r=t.state.previewElements[n];r&&(r.isFullscreen?(r.devPreviewElement.insertBefore(r.devPreviewExample,r.devPreviewPismCode),(0,i.toggleClass)(r.devPreviewExample,t.classnames.devPreviewExample.fullscreen,!1),(0,i.toggleClass)(t.elements.body,t.classnames.devPreview.overflowBodyHidden,!1),window.scrollTo(0,t.state.previousYOffset),t.state.previousYOffset=0):(t.state.previousYOffset=window.pageYOffset,t.elements.body.appendChild(r.devPreviewExample),(0,i.toggleClass)(r.devPreviewExample,t.classnames.devPreviewExample.fullscreen,!0),(0,i.toggleClass)(t.elements.body,t.classnames.devPreview.overflowBodyHidden,!0),console.log(t.state.previousYOffset)),r.isFullscreen=!r.isFullscreen,r.fullscreenButton.innerText=r.isFullscreen?t.i18n.hideFullscreenPreview:t.i18n.fullScreenPreview)}},this.classnames={devPreview:{overflowBodyHidden:"dev-preview__body-overflow-hidden"},devPreviewExample:{fullscreen:"dev-preview__example--fullscreen"}},this.selectors={devPreview:".dev-preview",devPreviewExample:".dev-preview__example",devPreviewFullscreenButton:".dev-preview__fullscreen-button",devPreviewPismCode:".dev-preview__prism-code",body:"body"},this.attributes={exampleId:"data-example-id",stateItemId:"data-state-item-id"},this.i18n={fullScreenPreview:"Fullscreen preview",hideFullscreenPreview:"Hide fullscreen"},this.elements={body:document.querySelector(this.selectors.body),previewElements:Array.from(document.querySelectorAll(this.selectors.devPreview))},this.state={previousYOffset:0,previewElements:[]},this.elements.previewElements&&Array.isArray(this.elements.previewElements)&&this.init()}},358:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initTextToSpeechToggle=void 0;var r=n(359);t.initTextToSpeechToggle=function(){var e=document.querySelector(".text-to-speech-toggle");e&&new r.TextToSpeechToggle(e)}},359:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.TextToSpeechToggle=void 0;var o=n(16),i=n(360),a=n(222);t.TextToSpeechToggle=function e(t){var n=this;r(this,e),this.setup=function(){return(0,o.addEventListenerToEl)(n.state.form,"change",n.formChangeHandler)},this.formChangeHandler=function(e){var t=e.target.value.toLowerCase();return t?"on"==t?n.enableReader():void n.disableReader():console.warn("Failed to read radio value")},this.enableReader=function(){return n.state.readerReference=new i.TextToSpeech},this.disableReader=function(){n.state.readerReference&&(delete n.state.readerReference,n.cleanReaderElements())},this.cleanReaderElements=function(){var e=document.querySelectorAll("."+a.TEXT_TO_SPEECH_CONFIG.classes.readerItem);e=Array.from(e),e.forEach(function(e){e.classList.remove(""+a.TEXT_TO_SPEECH_CONFIG.classes.readerItem),e.removeAttribute(""+a.TEXT_TO_SPEECH_CONFIG.dataAttributes.id),e.querySelector("."+a.TEXT_TO_SPEECH_CONFIG.classes.audioBtn).remove()})},t||console.warn("Failed to initialise text to speech toggle");var s=t.querySelector(".text-to-speech-toggle__form");s||console.warn("Text to speech toggle form not found"),this.state={form:s,readerReference:"",readerConfig:{}},this.setup()}},360:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.TextToSpeech=void 0;var o=n(16),i=n(222);t.TextToSpeech=function e(){var t=this;r(this,e),this.setup=function(){var e=document.querySelector("."+i.TEXT_TO_SPEECH_CONFIG.classes.wrapper);if(e){var n=Array.from(e.querySelectorAll(t.state.targets));n&&n.forEach(function(e,n){var r=void 0,o=void 0,a=void 0;r=e.innerText,o=t.createUtterance(r,n),a=t.createButton(),r&&o&&a&&(e.classList.add(""+i.TEXT_TO_SPEECH_CONFIG.classes.readerItem),e.setAttribute(i.TEXT_TO_SPEECH_CONFIG.dataAttributes.readerID,n),e.appendChild(t.createButton()),t.state.elements.push({id:n,element:e,isPlaying:!1,isHighlighted:!1,utterance:o}))})}},this.playAudioClickHandler=function(e){e.preventDefault(),t.state.synth.cancel();var n=(0,o.closestParentOfEl)(e.target,".text-to-speech__item").getAttribute(""+i.TEXT_TO_SPEECH_CONFIG.dataAttributes.readerID);if(!n)return console.warn("Failed to retrieve data content id attribute");t.state.currentlyPlayed=n,t.state.synth.speak(t.state.elements[n].utterance)},this.createButton=function(){var e=document.createElement("button");return e.classList.add(""+i.TEXT_TO_SPEECH_CONFIG.classes.audioBtn),e.innerHTML=i.TEXT_TO_SPEECH_CONFIG.buttonInnerHtml,(0,o.addEventListenerToEl)(e,"click",t.playAudioClickHandler),e},this.createUtterance=function(e,n){var r=new SpeechSynthesisUtterance;return r.lang="en-uk",r.text=e,r.id=n,r.onstart=function(){t.state.current=t.state.elements[r.id],t.resetAll(),t.state.current.isPlaying=!0,t.state.current.isHighlighted=!0,t.state.current.element.classList.add(""+i.TEXT_TO_SPEECH_CONFIG.classes.readerItemHighlight),t.state.current.element.querySelector("."+i.TEXT_TO_SPEECH_CONFIG.classes.audioBtn).classList.add(""+i.TEXT_TO_SPEECH_CONFIG.classes.audioBtnPlaying)},r.onend=function(){t.resetAll(),t.state.current={}},r.onerror=function(){r.onend(),t.state.current=t.state.elements[t.state.currentlyPlayed],t.state.current.utterance.onstart()},r},this.resetAll=function(){t.state.elements.map(function(e){e.isPlaying=!1,e.isHighlighted=!1,e.element.classList.remove(""+i.TEXT_TO_SPEECH_CONFIG.classes.readerItemHighlight),e.element.querySelector("."+i.TEXT_TO_SPEECH_CONFIG.classes.audioBtn).classList.remove(""+i.TEXT_TO_SPEECH_CONFIG.classes.audioBtnPlaying)})},this.state={synth:window.speechSynthesis,elements:[],current:{},targets:i.TEXT_TO_SPEECH_CONFIG.DOMTargets,currentlyPlayed:{}},this.setup()}},361:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initFontSizeToggle=void 0;var r=n(362);t.initFontSizeToggle=function(){var e=document.querySelector(".font-size-toggle");e&&new r.FontSizeToggle(e)}},362:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.FontSizeToggle=void 0;var o=n(16),i=n(363);t.FontSizeToggle=function e(t){var n=this;if(r(this,e),this.setup=function(){n.state.pageElements=n.getTargetDOMElements(),n.state.pageElements&&((0,o.addEventListenerToEl)(n.state.buttons.increaseButton,"click",n.increaseClickHandler),(0,o.addEventListenerToEl)(n.state.buttons.decreaseButton,"click",n.decreaseClickHandler),(0,o.addEventListenerToEl)(n.state.buttons.resetButton,"click",n.resetButtonClickHandler))},this.increaseClickHandler=function(e){e.preventDefault(),n.testRanges(n.state.currentSize+1)&&(n.state.currentSize+=1,n.updateDOMElements())},this.decreaseClickHandler=function(e){e.preventDefault(),n.testRanges(n.state.currentSize-1)&&(n.state.currentSize-=1,n.updateDOMElements(!1))},this.resetButtonClickHandler=function(e){e.preventDefault(),n.resetState(),n.convertToArray(n.state.pageElements).forEach(function(e){return n.removeAttribute(e,"style")})},this.testRanges=function(e){var t=!0;return e>n.state.maxSize?(n.disableButton(n.state.buttons.increaseButton),n.enableButton(n.state.buttons.decreaseButton),t=!1):e0&&void 0!==arguments[0])||arguments[0];n.convertToArray(n.state.pageElements).forEach(function(t){var r={fontSize:parseInt(n.getComputedProperty(t,"font-size"),10),lineHeight:parseInt(n.getComputedProperty(t,"line-height"))};t.style.fontSize=e?r.fontSize+1+"px":r.fontSize-1+"px"})},this.removeAttribute=function(e,t){return e.removeAttribute(t)},this.getComputedProperty=function(e,t){return window.getComputedStyle(e).getPropertyValue(t)},this.getTargetDOMElements=function(){return document.body.querySelectorAll(n.state.targets)},this.convertToArray=function(e){return Array.from(e)},t){var a=void 0,s=void 0,l=void 0;a=t.querySelector("."+i.FONT_SIZE_TOGGLE_CONFIG.classes.increaseBtn),s=t.querySelector("."+i.FONT_SIZE_TOGGLE_CONFIG.classes.decreaseBtn),l=t.querySelector("."+i.FONT_SIZE_TOGGLE_CONFIG.classes.resetBtn),this.state={currentSize:0,maxSize:i.FONT_SIZE_TOGGLE_CONFIG.maxSize,minSize:i.FONT_SIZE_TOGGLE_CONFIG.minSize,buttons:{increaseButton:a,decreaseButton:s,resetButton:l},pageElements:"",targets:i.FONT_SIZE_TOGGLE_CONFIG.DOMTargets},this.state.buttons.increaseButton&&this.state.buttons.decreaseButton&&this.state.buttons.resetButton&&this.setup()}}},363:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.FONT_SIZE_TOGGLE_CONFIG={classes:{increaseBtn:"font-size-toggle__button--increase",decreaseBtn:"font-size-toggle__button--decrease",resetBtn:"font-size-toggle__button--reset",hidden:"font-size-toggle__button--hidden"},maxSize:5,minSize:-2,dataAttributes:{type:"data-toggle-type"},DOMTargets:["h1","h2","h3","h4","p","li","td","th","thead","caption","legend","button","dd"]}},364:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initSpeechToText=void 0;var r=n(365);t.initSpeechToText=function(){if(window.webkitSpeechRecognition){var e=document.querySelectorAll(".search-bar__search-voice");e=Array.from(e),e&&e.length&&e.forEach(function(e){e.classList.add("search-bar__search-voice--is-supported"),new r.SpeechToText(e)})}}},365:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.SpeechToText=void 0;var o=n(16),i=n(366);t.SpeechToText=function e(t){var n=this;if(r(this,e),this.setup=function(){(0,o.addEventListenerToEl)(n.elements.recordButton,"click",n.listenBtnClickHandler),n.state.speechRecognition.onstart=n.isRecording,n.state.speechRecognition.onend=n.isStoppedRecording,n.state.speechRecognition.onresult=n.handleOnSpeechResult},this.listenBtnClickHandler=function(e){if(e.preventDefault(),n.state.isRecording)return n.state.speechRecognition.abort(),void n.isStoppedRecording();n.state.speechRecognition.start()},this.handleOnSpeechResult=function(e){var t=e.results[0][0].transcript;""!=n.elements.input.value.trim()&&(t=n.elements.input.value+" "+t),n.elements.input.value=t},this.isRecording=function(){n.state.isRecording=!0,n.elements.submitBtn.disabled=!0,n.elements.input.disabled=!0,n.elements.recordButton.innerHTML=i.SPEECH_TO_TEXT_CONFIG.content.recording},this.isStoppedRecording=function(){n.state.isRecording=!1,n.elements.submitBtn.disabled=!1,n.elements.input.disabled=!1,n.elements.recordButton.innerHTML=i.SPEECH_TO_TEXT_CONFIG.content.init},t){var a=(0,o.closestParentOfEl)(t,"."+i.SPEECH_TO_TEXT_CONFIG.classes.wrapper);this.elements={recordButton:t,wrapper:a,input:a.querySelector("."+i.SPEECH_TO_TEXT_CONFIG.classes.input),submitBtn:a.querySelector("."+i.SPEECH_TO_TEXT_CONFIG.classes.submitBtn)},this.state={speechRecognition:new webkitSpeechRecognition,isRecording:!1},this.elements.wrapper&&this.elements.input&&this.elements.submitBtn&&this.setup()}}},366:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.SPEECH_TO_TEXT_CONFIG={classes:{wrapper:"search-bar__control-group",input:"search-bar__search-input",submitBtn:"search-bar__search-submit"},content:{init:"Start voice search",recording:"Cancel recording"}}},367:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initThemeToggle=void 0;var r=n(368);t.initThemeToggle=function(){var e=document.querySelector(".theme-toggle");e&&new r.ThemeToggle(e)}},368:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeToggle=void 0;var o=n(16);t.ThemeToggle=function e(t){var n=this;r(this,e),this.setup=function(){(0,o.addEventListenerToEl)(n.state.elements.form,"change",n.formChangeHandler)},this.formChangeHandler=function(e){e.preventDefault();var t=void 0,r=void 0;t=e.target.value,t=t.toLowerCase().split(" ").join("-"),t||console.warn("Failed to retreive radio value"),r=n.state.themes.get(t),r||console.warn("Failed to retrive new theme class"),r!=n.state.currentTheme&&n.setNewTheme(r)},this.setNewTheme=function(e){n.state.currentTheme&&document.body.classList.remove(n.state.currentTheme),n.state.currentTheme=e,document.body.classList.add(e)},t||console.warn("theme toggle wrapper failed to initialize.");var i=t.querySelector(".theme-toggle__form");if(i){var a=new Map;a.set("default",""),a.set("high-contrast-yellow","theme__high-contrast-yellow"),a.set("low-contrast-grey","theme__low-contrast-grey"),a.set("sepia","theme__sepia"),a.set("medium-contrast-yellow","theme__medium-contrast-yellow"),this.state={currentTheme:"",themes:a,elements:{form:i}},this.setup()}}},369:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initAutoComplete=void 0;var r=n(370);t.initAutoComplete=function(){var e=document.querySelectorAll(".select-autocomplete");e&&(e=Array.from(e),e.forEach(function(e){new r.AutoComplete(e)}))}},370:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.AutoComplete=void 0;var o=n(371),i=function(e){return e&&e.__esModule?e:{default:e}}(o);t.AutoComplete=function e(t){var n=this;r(this,e),this.setup=function(){i.default.enhanceSelectElement({autoselect:!0,defaultValue:n.state.elm.options[n.state.elm.options.selectedIndex].innerHTML,minLength:2,selectElement:n.state.elm})},this.state={elm:t},this.setup()}},371:function(e,t,n){!function(t,n){e.exports=n()}(window,function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(t){return e[t]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=37)}([function(e,t,n){var r=n(1),o=n(6),i=n(7),a=n(16),s=n(18),l="prototype",u=function(e,t,n){var c,d,p,f,h=e&u.F,v=e&u.G,m=e&u.S,g=e&u.P,y=e&u.B,b=v?r:m?r[t]||(r[t]={}):(r[t]||{})[l],_=v?o:o[t]||(o[t]={}),w=_[l]||(_[l]={});for(c in v&&(n=t),n)p=((d=!h&&b&&void 0!==b[c])?b:n)[c],f=y&&d?s(p,r):g&&"function"==typeof p?s(Function.call,p):p,b&&a(b,c,p,e&u.U),_[c]!=p&&i(_,c,f),g&&w[c]!=p&&(w[c]=p)};r.core=o,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},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(e){return!0}}},function(e,t,n){"use strict";function r(e,t){var n,r,o,i,a=O;for(i=arguments.length;2l;)r(s,n=t[l++])&&(~i(u,n)||u.push(n));return u}},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=void 0),r(t)&&null===(t=t[i])&&(t=void 0)),void 0===t?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";function r(e){return e&&e.__esModule?e:{default:e}}function o(){return(o=Object.assign||function(e){for(var t=1;t=r;this.setState({query:s}),i||!l&&u&&c?o(s,function(e){var n=0=s,I=this.props.showNoOptionsFound&&F&&k&&N&&A,B=r+"__wrapper",L=r+"__input",M=null!==E?" "+L+"--focused":"",j=this.props.showAllValues?" "+L+"--show-all-values":" "+L+"--default",H=r+"__dropdown-arrow-down",R=-1!==E&&null!==E,q=r+"__menu",D=q+"--"+i,z=q+"--"+(C||I?"visible":"hidden"),G=r+"__option",$=r+"__hint",U=this.templateInputValue(S[P]),V=U&&0===U.toLowerCase().indexOf(T.toLowerCase())&&O?T+U.substr(T.length):"",X=p&&V;return h&&"string"==typeof(e=_({className:H}))&&(e=(0,l.createElement)("div",{className:r+"__dropdown-arrow-down-wrapper",dangerouslySetInnerHTML:{__html:e}})),(0,l.createElement)("div",{className:B,onKeyDown:this.handleKeyDown,role:"combobox","aria-expanded":C?"true":"false"},(0,l.createElement)(u.default,{length:S.length,queryLength:T.length,minQueryLength:s,selectedOption:this.templateInputValue(S[P]),selectedOptionIndex:P,tQueryTooShort:m,tNoResults:g,tSelectedOption:y,tResults:b}),X&&(0,l.createElement)("span",null,(0,l.createElement)("input",{className:$,readonly:!0,tabIndex:"-1",value:V})),(0,l.createElement)("input",o({"aria-activedescendant":!!R&&a+"__option--"+E,"aria-owns":a+"__listbox",autoComplete:"off",className:""+L+M+j,id:a,onClick:function(e){return t.handleInputClick(e)},onBlur:this.handleInputBlur},function(e){return{onInput:e}}(this.handleInputChange),{onFocus:this.handleInputFocus,name:c,placeholder:d,ref:function(e){t.elementReferences[-1]=e},type:"text",role:"textbox",required:f,value:T})),e,(0,l.createElement)("ul",{className:q+" "+D+" "+z,onMouseLeave:function(e){return t.handleListMouseLeave(e)},id:a+"__listbox",role:"listbox"},S.map(function(e,n){var r=(-1===E?P===n:E===n)&&null===x?" "+G+"--focused":"",o=n%2?" "+G+"--odd":"";return(0,l.createElement)("li",{"aria-selected":E===n,className:""+G+r+o,dangerouslySetInnerHTML:{__html:t.templateSuggestion(e)},id:a+"__option--"+n,key:n,onBlur:function(e){return t.handleOptionBlur(e,n)},onClick:function(e){return t.handleOptionClick(e,n)},onMouseEnter:function(e){return t.handleOptionMouseEnter(e,n)},ref:function(e){t.elementReferences[n]=e},role:"option",tabIndex:"-1"})}),I&&(0,l.createElement)("li",{className:G+" "+G+"--no-results"},v())))},t}(l.Component);(t.default=f).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:c.default}},function(e,t,n){var r=n(9),o=n(53),i=n(28),a=n(26)("IE_PROTO"),s=function(){},l="prototype",u=function(){var e,t=n(15)("iframe"),r=i.length;for(t.style.display="none",n(54).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("