diff --git a/dist/assets/javascripts/development.bundle.js b/dist/assets/javascripts/development.bundle.js index 62caa4adc..101ba65b8 100644 --- a/dist/assets/javascripts/development.bundle.js +++ b/dist/assets/javascripts/development.bundle.js @@ -3,8 +3,8 @@ * Name: dvsa-front-end/development * Version: 1.3.15 * Contributors: Martin D Marriott , James Nelson , Tameem Safi - * Timestamp: June 13th 2019, 11:32:42 am + * Timestamp: September 18th 2019, 4:15:52 pm * Source: https://github.com/dvsa/front-end * */ -webpackJsonp([1],{216: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 "}},337:function(e,t,n){"use strict";n(338),n(339),n(340),n(341);var r=n(15),o=n(342);n(362),(0,r.domReady)(function(){(0,o.initModules)()})},338:function(e,t,n){(function(t){var n="undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{},r=function(){var e=/\blang(?:uage)?-([\w-]+)\b/i,t=0,r=n.Prism={manual:n.Prism&&n.Prism.manual,disableWorkerMessageHandler:n.Prism&&n.Prism.disableWorkerMessageHandler,util:{encode:function(e){return e instanceof o?new o(e.type,r.util.encode(e.content),e.alias):"Array"===r.util.type(e)?e.map(r.util.encode):e.replace(/&/g,"&").replace(/e.length)return;if(!(w instanceof l)){if(m&&b!=t.length-1){p.lastIndex=y;var E=p.exec(e);if(!E)break;for(var T=E.index+(h?E[1].length:0),O=E.index+E[0].length,C=b,P=y,S=t.length;C=P&&(++b,y=P);if(t[b]instanceof l)continue;x=C-b,w=e.slice(y,P),E.index-=y}else{p.lastIndex=0;var E=p.exec(w),x=1}if(E){h&&(g=E[1]?E[1].length:0);var T=E.index+g,E=E[0].slice(g),O=T+E.length,N=w.slice(0,T),k=w.slice(O),M=[b,x];N&&(++b,y+=N.length,M.push(N));var F=new l(u,f?r.tokenize(E,f):E,v,E,m);if(M.push(F),k&&M.push(k),Array.prototype.splice.apply(t,M),1!=x&&r.matchGrammar(e,t,n,b,y,!0,u),i)break}else if(i)break}}}}},tokenize:function(e,t,n){var o=[e],a=t.rest;if(a){for(var i in a)t[i]=a[i];delete t.rest}return r.matchGrammar(e,o,t,0,0,!1),o},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var o,a=0;o=n[a++];)o(t)}}},o=r.Token=function(e,t,n,r,o){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length,this.greedy=!!o};if(o.stringify=function(e,t,n){if("string"==typeof e)return e;if("Array"===r.util.type(e))return e.map(function(n){return o.stringify(n,t,e)}).join("");var a={type:e.type,content:o.stringify(e.content,t,n),tag:"span",classes:["token",e.type],attributes:{},language:t,parent:n};if(e.alias){var i="Array"===r.util.type(e.alias)?e.alias:[e.alias];Array.prototype.push.apply(a.classes,i)}r.hooks.run("wrap",a);var s=Object.keys(a.attributes).map(function(e){return e+'="'+(a.attributes[e]||"").replace(/"/g,""")+'"'}).join(" ");return"<"+a.tag+' class="'+a.classes.join(" ")+'"'+(s?" "+s:"")+">"+a.content+""},!n.document)return n.addEventListener?(r.disableWorkerMessageHandler||n.addEventListener("message",function(e){var t=JSON.parse(e.data),o=t.language,a=t.code,i=t.immediateClose;n.postMessage(r.highlight(a,r.languages[o],o)),i&&n.close()},!1),n.Prism):n.Prism;var a=document.currentScript||[].slice.call(document.getElementsByTagName("script")).pop();return a&&(r.filename=a.src,r.manual||a.hasAttribute("data-manual")||("loading"!==document.readyState?window.requestAnimationFrame?window.requestAnimationFrame(r.highlightAll):window.setTimeout(r.highlightAll,16):document.addEventListener("DOMContentLoaded",r.highlightAll))),n.Prism}();void 0!==e&&e.exports&&(e.exports=r),void 0!==t&&(t.Prism=r),r.languages.markup={comment://,prolog:/<\?[\s\S]+?\?>/,doctype://i,cdata://i,tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/i,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/i,inside:{punctuation:[/^=/,{pattern:/(^|[^\\])["']/,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(/&/,"&"))}),r.languages.xml=r.languages.markup,r.languages.html=r.languages.markup,r.languages.mathml=r.languages.markup,r.languages.svg=r.languages.markup,r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-]+?.*?(?:;|(?=\s*\{))/i,inside:{rule:/@[\w-]+/}},url:/url\((?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|.*?)\)/i,selector:/[^{}\s][^{};]*?(?=\s*\{)/,string:{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},property:/[-_a-z\xA0-\uFFFF][-\w\xA0-\uFFFF]*(?=\s*:)/i,important:/\B!important\b/i,function:/[-a-z0-9]+(?=\()/i,punctuation:/[(){};:]/},r.languages.css.atrule.inside.rest=r.languages.css,r.languages.markup&&(r.languages.insertBefore("markup","tag",{style:{pattern:/()[\s\S]*?(?=<\/style>)/i,lookbehind:!0,inside:r.languages.css,alias:"language-css",greedy:!0}}),r.languages.insertBefore("inside","attr-value",{"style-attr":{pattern:/\s*style=("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/i,inside:{"attr-name":{pattern:/^\s*style/i,inside:r.languages.markup.tag.inside},punctuation:/^\s*=\s*['"]|['"]\s*$/,"attr-value":{pattern:/.+/i,inside:r.languages.css}},alias:"language-css"}},r.languages.markup.tag)),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+)|(?:catch\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:/[a-z0-9_]+(?=\()/i,number:/\b0x[\da-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&?|\|\|?|\?|\*|\/|~|\^|%/,punctuation:/[{}[\];(),.:]/},r.languages.javascript=r.languages.extend("clike",{keyword:/\b(?: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|var|void|while|with|yield)\b/,number:/\b(?:0[xX][\dA-Fa-f]+|0[bB][01]+|0[oO][0-7]+|NaN|Infinity)\b|(?:\b\d+\.?\d*|\B\.\d+)(?:[Ee][+-]?\d+)?/,function:/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*\()/i,operator:/-[-=]?|\+[+=]?|!=?=?|<>?>?=?|=(?:==?|>)?|&[&=]?|\|[|=]?|\*\*?=?|\/=?|~|\^=?|%=?|\?|\.{3}/}),r.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s])\s*)\/(\[[^\]\r\n]+]|\\.|[^\/\\\[\r\n])+\/[gimyu]{0,5}(?=\s*($|[\r\n,.;})\]]))/,lookbehind:!0,greedy:!0},"function-variable":{pattern:/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*=\s*(?:function\b|(?:\([^()]*\)|[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)\s*=>))/i,alias:"function"},constant:/\b[A-Z][A-Z\d_]*\b/}),r.languages.insertBefore("javascript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\${[^}]+}|[^\\`])*`/,greedy:!0,inside:{interpolation:{pattern:/\${[^}]+}/,inside:{"interpolation-punctuation":{pattern:/^\${|}$/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}}}),r.languages.javascript["template-string"].inside.interpolation.inside.rest=r.languages.javascript,r.languages.markup&&r.languages.insertBefore("markup","tag",{script:{pattern:/()[\s\S]*?(?=<\/script>)/i,lookbehind:!0,inside:r.languages.javascript,alias:"language-javascript",greedy:!0}}),r.languages.js=r.languages.javascript,function(){"undefined"!=typeof self&&self.Prism&&self.document&&document.querySelector&&(self.Prism.fileHighlight=function(){var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"};Array.prototype.slice.call(document.querySelectorAll("pre[data-src]")).forEach(function(t){for(var n,o=t.getAttribute("data-src"),a=t,i=/\blang(?:uage)?-([\w-]+)\b/i;a&&!i.test(a.className);)a=a.parentNode;if(a&&(n=(t.className.match(i)||[,""])[1]),!n){var s=(o.match(/\.(\w+)$/)||[,""])[1];n=e[s]||s}var l=document.createElement("code");l.className="language-"+n,t.textContent="",l.textContent="Loading…",t.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)):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)}),r.plugins.toolbar&&r.plugins.toolbar.registerButton("download-file",function(e){var t=e.element.parentNode;if(t&&/pre/i.test(t.nodeName)&&t.hasAttribute("data-src")&&t.hasAttribute("data-download-link")){var n=t.getAttribute("data-src"),r=document.createElement("a");return r.textContent=t.getAttribute("data-download-link-label")||"Download",r.setAttribute("download",""),r.href=n,r}})},document.addEventListener("DOMContentLoaded",self.Prism.fileHighlight))}()}).call(t,n(152))},339:function(e,t){!function(){if("undefined"!=typeof self&&self.Prism&&self.document){var e=[],t={},n=function(){};Prism.plugins.toolbar={};var r=Prism.plugins.toolbar.registerButton=function(n,r){var o;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"),t.textContent=r.text,t},e.push(t[n]=o)},o=Prism.plugins.toolbar.hook=function(r){var o=r.element.parentNode;if(o&&/pre/i.test(o.nodeName)&&!o.parentNode.classList.contains("code-toolbar")){var a=document.createElement("div");a.classList.add("code-toolbar"),o.parentNode.insertBefore(a,o),a.appendChild(o);var i=document.createElement("div");i.classList.add("toolbar"),document.body.hasAttribute("data-toolbar-order")&&(e=document.body.getAttribute("data-toolbar-order").split(",").map(function(e){return t[e]||n})),e.forEach(function(e){var t=e(r);if(t){var n=document.createElement("div");n.classList.add("toolbar-item"),n.appendChild(t),i.appendChild(n)}}),a.appendChild(i)}};r("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",o)}}()},340: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&&(a[s]="\n"+a[s],i=l)}n[o]=a.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=/\bno-whitespace-normalization\b/;if(e.code&&n&&"pre"===n.nodeName.toLowerCase()&&!r.test(n.className)&&!r.test(e.element.className)){for(var o=n.childNodes,a="",i="",s=!1,l=0;l"),a=document.createElement("span"),a.setAttribute("aria-hidden","true"),a.className="line-numbers-rows",a.innerHTML=l,r.hasAttribute("data-start")&&(r.style.counterReset="linenumber "+(parseInt(r.getAttribute("data-start"),10)-1)),n.element.appendChild(a),t(r),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 a=t-r;return n.children[a]}}}}}()},342:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initModules=void 0;var r=n(343),o=(n(345),n(348)),a=n(351),i=n(354),s=n(357),l=n(359);t.initModules=function(){(0,o.initTextToSpeechToggle)(),(0,a.initFontSizeToggle)(),(0,i.initSpeechToText)(),(0,s.initThemeToggle)(),(0,r.initLibraryNavigation)(),(0,l.initAutoComplete)()}},343:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initLibraryNavigation=void 0;var r=n(344);t.initLibraryNavigation=function(){new r.LibraryPageNavigation}},344: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")}},345:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initDevPreview=void 0;var r=n(346),o=n(347);t.initDevPreview=function(){new r.DevPreview,new o.DevPreviewFullscreen}},346: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),a=(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,a.delegateEvent)(document,"click",t.selectors.devPreviewCloseButton,t.toggleFullPagePreview)},this.toggleFullPagePreview=function(){t.state.fullPagePreviewHidden=!t.state.fullPagePreviewHidden,(0,a.toggleClass)(t.elements.devPreviewFullPage,t.classnames.devPreviewHidden,t.state.fullPagePreviewHidden),(0,a.toggleClass)(t.elements.devPreviewFloatingButton,t.classnames.devPreviewHidden,!t.state.fullPagePreviewHidden),(0,a.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()}},347: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),a=(function(e){e&&e.__esModule}(o),n(4));t.DevPreviewFullscreen=function e(){var t=this;r(this,e),this.init=function(){t.setupState(),(0,a.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 a=t.state.previewElements.length-1;e&&e.setAttribute(t.attributes.stateItemId,a),n&&n.setAttribute(t.attributes.stateItemId,a)})},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,a.toggleClass)(r.devPreviewExample,t.classnames.devPreviewExample.fullscreen,!1),(0,a.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,a.toggleClass)(r.devPreviewExample,t.classnames.devPreviewExample.fullscreen,!0),(0,a.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()}},348:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initTextToSpeechToggle=void 0;var r=n(349);t.initTextToSpeechToggle=function(){var e=document.querySelector(".text-to-speech-toggle");e&&new r.TextToSpeechToggle(e)}},349: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(15),a=n(350),i=n(216);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 a.TextToSpeech},this.disableReader=function(){n.state.readerReference&&(delete n.state.readerReference,n.cleanReaderElements())},this.cleanReaderElements=function(){var e=document.querySelectorAll("."+i.TEXT_TO_SPEECH_CONFIG.classes.readerItem);e=Array.from(e),e.forEach(function(e){e.classList.remove(""+i.TEXT_TO_SPEECH_CONFIG.classes.readerItem),e.removeAttribute(""+i.TEXT_TO_SPEECH_CONFIG.dataAttributes.id),e.querySelector("."+i.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()}},350: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(15),a=n(216);t.TextToSpeech=function e(){var t=this;r(this,e),this.setup=function(){var e=document.querySelector("."+a.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,i=void 0;r=e.innerText,o=t.createUtterance(r,n),i=t.createButton(),r&&o&&i&&(e.classList.add(""+a.TEXT_TO_SPEECH_CONFIG.classes.readerItem),e.setAttribute(a.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(""+a.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(""+a.TEXT_TO_SPEECH_CONFIG.classes.audioBtn),e.innerHTML=a.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(""+a.TEXT_TO_SPEECH_CONFIG.classes.readerItemHighlight),t.state.current.element.querySelector("."+a.TEXT_TO_SPEECH_CONFIG.classes.audioBtn).classList.add(""+a.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(""+a.TEXT_TO_SPEECH_CONFIG.classes.readerItemHighlight),e.element.querySelector("."+a.TEXT_TO_SPEECH_CONFIG.classes.audioBtn).classList.remove(""+a.TEXT_TO_SPEECH_CONFIG.classes.audioBtnPlaying)})},this.state={synth:window.speechSynthesis,elements:[],current:{},targets:a.TEXT_TO_SPEECH_CONFIG.DOMTargets,currentlyPlayed:{}},this.setup()}},351:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initFontSizeToggle=void 0;var r=n(352);t.initFontSizeToggle=function(){var e=document.querySelector(".font-size-toggle");e&&new r.FontSizeToggle(e)}},352: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(15),a=n(353);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 i=void 0,s=void 0,l=void 0;i=t.querySelector("."+a.FONT_SIZE_TOGGLE_CONFIG.classes.increaseBtn),s=t.querySelector("."+a.FONT_SIZE_TOGGLE_CONFIG.classes.decreaseBtn),l=t.querySelector("."+a.FONT_SIZE_TOGGLE_CONFIG.classes.resetBtn),this.state={currentSize:0,maxSize:a.FONT_SIZE_TOGGLE_CONFIG.maxSize,minSize:a.FONT_SIZE_TOGGLE_CONFIG.minSize,buttons:{increaseButton:i,decreaseButton:s,resetButton:l},pageElements:"",targets:a.FONT_SIZE_TOGGLE_CONFIG.DOMTargets},this.state.buttons.increaseButton&&this.state.buttons.decreaseButton&&this.state.buttons.resetButton&&this.setup()}}},353: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"]}},354:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initSpeechToText=void 0;var r=n(355);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)})}}},355: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(15),a=n(356);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=a.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=a.SPEECH_TO_TEXT_CONFIG.content.init},t){var i=(0,o.closestParentOfEl)(t,"."+a.SPEECH_TO_TEXT_CONFIG.classes.wrapper);this.elements={recordButton:t,wrapper:i,input:i.querySelector("."+a.SPEECH_TO_TEXT_CONFIG.classes.input),submitBtn:i.querySelector("."+a.SPEECH_TO_TEXT_CONFIG.classes.submitBtn)},this.state={speechRecognition:new webkitSpeechRecognition,isRecording:!1},this.elements.wrapper&&this.elements.input&&this.elements.submitBtn&&this.setup()}}},356: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"}}},357:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initThemeToggle=void 0;var r=n(358);t.initThemeToggle=function(){var e=document.querySelector(".theme-toggle");e&&new r.ThemeToggle(e)}},358: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(15);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 a=t.querySelector(".theme-toggle__form");if(a){var i=new Map;i.set("default",""),i.set("high-contrast-yellow","theme__high-contrast-yellow"),i.set("low-contrast-grey","theme__low-contrast-grey"),i.set("sepia","theme__sepia"),i.set("medium-contrast-yellow","theme__medium-contrast-yellow"),this.state={currentTheme:"",themes:i,elements:{form:a}},this.setup()}}},359:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initAutoComplete=void 0;var r=n(360);t.initAutoComplete=function(){var e=document.querySelectorAll(".select-autocomplete");e&&(e=Array.from(e),e.forEach(function(e){new r.AutoComplete(e)}))}},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.AutoComplete=void 0;var o=n(361),a=function(e){return e&&e.__esModule?e:{default:e}}(o);t.AutoComplete=function e(t){var n=this;r(this,e),this.setup=function(){a.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()}},361:function(e,t,n){!function(t,n){e.exports=n()}(0,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,{configurable:!1,enumerable:!0,get: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=1)}([function(e,t,n){!function(){"use strict";function t(){}function n(e,n){var r,o,a,i,s=j;for(i=arguments.length;i-- >2;)F.push(arguments[i]);for(n&&null!=n.children&&(F.length||F.push(n.children),delete n.children);F.length;)if((o=F.pop())&&void 0!==o.pop)for(i=o.length;i--;)F.push(o[i]);else!0!==o&&!1!==o||(o=null),(a="function"!=typeof e)&&(null==o?o="":"number"==typeof o?o=String(o):"string"!=typeof o&&(a=!1)),a&&r?s[s.length-1]+=o:s===j?s=[o]:s.push(o),r=a;var l=new t;return l.nodeName=e,l.children=s,l.attributes=null==n?void 0:n,l.key=null==n?void 0:n.key,void 0!==M.vnode&&M.vnode(l),l}function r(e,t){for(var n in t)e[n]=t[n];return e}function o(e,t){return n(e.nodeName,r(r({},e.attributes),t),arguments.length>2?[].slice.call(arguments,2):e.children)}function a(e){!e.__d&&(e.__d=!0)&&1==I.push(e)&&(M.debounceRendering||setTimeout)(i)}function i(){var e,t=I;for(I=[];e=t.pop();)e.__d&&P(e)}function s(e,t,n){return"string"==typeof t||"number"==typeof t?void 0!==e.splitText:"string"==typeof t.nodeName?!e._componentConstructor&&l(e,t.nodeName):n||e._componentConstructor===t.nodeName}function l(e,t){return e.__n===t||e.nodeName.toLowerCase()===t.toLowerCase()}function u(e){var t=r({},e.attributes);t.children=e.children;var n=e.nodeName.defaultProps;if(void 0!==n)for(var o in n)void 0===t[o]&&(t[o]=n[o]);return t}function c(e,t){var n=t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return n.__n=e,n}function d(e){e.parentNode&&e.parentNode.removeChild(e)}function p(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 a in n)a in r||(e.style[a]="");for(var a in r)e.style[a]="number"==typeof r[a]&&!1===L.test(a)?r[a]+"px":r[a]}}else if("dangerouslySetInnerHTML"===t)r&&(e.innerHTML=r.__html||"");else if("o"==t[0]&&"n"==t[1]){var i=t!==(t=t.replace(/Capture$/,""));t=t.toLowerCase().substring(2),r?n||e.addEventListener(t,h,i):e.removeEventListener(t,h,i),(e.__l||(e.__l={}))[t]=r}else if("list"!==t&&"type"!==t&&!o&&t in e)f(e,t,null==r?"":r),null!=r&&!1!==r||e.removeAttribute(t);else{var s=o&&t!==(t=t.replace(/^xlink\:?/,""));null==r||!1===r?s?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t):"function"!=typeof r&&(s?e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),r):e.setAttribute(t,r))}else e.className=r||""}function f(e,t,n){try{e[t]=n}catch(e){}}function h(e){return this.__l[e.type](M.event&&M.event(e)||e)}function m(){for(var e;e=A.pop();)M.afterMount&&M.afterMount(e),e.componentDidMount&&e.componentDidMount()}function g(e,t,n,r,o,a){B++||(D=null!=o&&void 0!==o.ownerSVGElement,H=null!=e&&!("__preactattr_"in e));var i=v(e,t,n,r,a);return o&&i.parentNode!==o&&o.appendChild(i),--B||(H=!1,a||m()),i}function v(e,t,n,r,o){var a=e,i=D;if(null==t&&(t=""),"string"==typeof t)return e&&void 0!==e.splitText&&e.parentNode&&(!e._component||o)?e.nodeValue!=t&&(e.nodeValue=t):(a=document.createTextNode(t),e&&(e.parentNode&&e.parentNode.replaceChild(a,e),b(e,!0))),a.__preactattr_=!0,a;if("function"==typeof t.nodeName)return S(e,t,n,r);if(D="svg"===t.nodeName||"foreignObject"!==t.nodeName&&D,(!e||!l(e,String(t.nodeName)))&&(a=c(String(t.nodeName),D),e)){for(;e.firstChild;)a.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild(a,e),b(e,!0)}var s=a.firstChild,u=a.__preactattr_||(a.__preactattr_={}),d=t.children;return!H&&d&&1===d.length&&"string"==typeof d[0]&&null!=s&&void 0!==s.splitText&&null==s.nextSibling?s.nodeValue!=d[0]&&(s.nodeValue=d[0]):(d&&d.length||null!=s)&&_(a,d,n,r,H||null!=u.dangerouslySetInnerHTML),w(a,t.attributes,u),D=i,a}function _(e,t,n,r,o){var a,i,l,u,c=e.childNodes,p=[],f={},h=0,m=0,g=c.length,_=0,y=t?t.length:0;if(0!==g)for(var w=0;w=g?e.appendChild(u):u!==c[w]&&(u===c[w+1]?d(c[w]):e.insertBefore(u,c[w]||null)))}if(h)for(var w in f)void 0!==f[w]&&b(f[w],!1);for(;m<=_;)void 0!==(u=p[_--])&&b(u,!1)}function b(e,t){var n=e._component;n?x(n):(null!=e.__preactattr_&&e.__preactattr_.ref&&e.__preactattr_.ref(null),!1!==t&&null!=e.__preactattr_||d(e),y(e))}function y(e){for(e=e.lastChild;e;){var t=e.previousSibling;b(e,!0),e=t}}function w(e,t,n){var r;for(r in n)t&&null!=t[r]||null==n[r]||p(e,r,n[r],n[r]=void 0,D);for(r in t)"children"===r||"innerHTML"===r||r in n&&t[r]===("value"===r||"checked"===r?e[r]:n[r])||p(e,r,n[r],n[r]=t[r],D)}function E(e){var t=e.constructor.name;(R[t]||(R[t]=[])).push(e)}function T(e,t,n){var r,o=R[e.name];if(e.prototype&&e.prototype.render?(r=new e(t,n),N.call(r,t,n)):(r=new N(t,n),r.constructor=e,r.render=O),o)for(var a=o.length;a--;)if(o[a].constructor===e){r.__b=o[a].__b,o.splice(a,1);break}return r}function O(e,t,n){return this.constructor(e,n)}function C(e,t,n,r,o){e.__x||(e.__x=!0,(e.__r=t.ref)&&delete t.ref,(e.__k=t.key)&&delete t.key,!e.base||o?e.componentWillMount&&e.componentWillMount():e.componentWillReceiveProps&&e.componentWillReceiveProps(t,r),r&&r!==e.context&&(e.__c||(e.__c=e.context),e.context=r),e.__p||(e.__p=e.props),e.props=t,e.__x=!1,0!==n&&(1!==n&&!1===M.syncComponentUpdates&&e.base?a(e):P(e,1,o)),e.__r&&e.__r(e))}function P(e,t,n,o){if(!e.__x){var a,i,s,l=e.props,c=e.state,d=e.context,p=e.__p||l,f=e.__s||c,h=e.__c||d,v=e.base,_=e.__b,y=v||_,w=e._component,E=!1;if(v&&(e.props=p,e.state=f,e.context=h,2!==t&&e.shouldComponentUpdate&&!1===e.shouldComponentUpdate(l,c,d)?E=!0:e.componentWillUpdate&&e.componentWillUpdate(l,c,d),e.props=l,e.state=c,e.context=d),e.__p=e.__s=e.__c=e.__b=null,e.__d=!1,!E){a=e.render(l,c,d),e.getChildContext&&(d=r(r({},d),e.getChildContext()));var O,S,N=a&&a.nodeName;if("function"==typeof N){var k=u(a);i=w,i&&i.constructor===N&&k.key==i.__k?C(i,k,1,d,!1):(O=i,e._component=i=T(N,k,d),i.__b=i.__b||_,i.__u=e,C(i,k,0,d,!1),P(i,1,n,!0)),S=i.base}else s=y,O=w,O&&(s=e._component=null),(y||1===t)&&(s&&(s._component=null),S=g(s,a,d,n||!v,y&&y.parentNode,!0));if(y&&S!==y&&i!==w){var F=y.parentNode;F&&S!==F&&(F.replaceChild(S,y),O||(y._component=null,b(y,!1)))}if(O&&x(O),e.base=S,S&&!o){for(var j=e,L=e;L=L.__u;)(j=L).base=S;S._component=j,S._componentConstructor=j.constructor}}if(!v||n?A.unshift(e):E||(m(),e.componentDidUpdate&&e.componentDidUpdate(p,f,h),M.afterUpdate&&M.afterUpdate(e)),null!=e.__h)for(;e.__h.length;)e.__h.pop().call(e);B||o||m()}}function S(e,t,n,r){for(var o=e&&e._component,a=o,i=e,s=o&&e._componentConstructor===t.nodeName,l=s,c=u(t);o&&!l&&(o=o.__u);)l=o.constructor===t.nodeName;return o&&l&&(!r||o._component)?(C(o,c,3,n,r),e=o.base):(a&&!s&&(x(a),e=i=null),o=T(t.nodeName,c,n),e&&!o.__b&&(o.__b=e,i=null),C(o,c,1,n,r),e=o.base,i&&e!==i&&(i._component=null,b(i,!1))),e}function x(e){M.beforeUnmount&&M.beforeUnmount(e);var t=e.base;e.__x=!0,e.componentWillUnmount&&e.componentWillUnmount(),e.base=null;var n=e._component;n?x(n):t&&(t.__preactattr_&&t.__preactattr_.ref&&t.__preactattr_.ref(null),e.__b=t,d(t),E(e),y(t)),e.__r&&e.__r(null)}function N(e,t){this.__d=!0,this.context=t,this.props=e,this.state=this.state||{}}function k(e,t,n){return g(n,e,{},!1,t,!1)}var M={},F=[],j=[],L=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,I=[],A=[],B=0,D=!1,H=!1,R={};r(N.prototype,{setState:function(e,t){var n=this.state;this.__s||(this.__s=r({},n)),r(n,"function"==typeof e?e(n,this.props):e),t&&(this.__h=this.__h||[]).push(t),a(this)},forceUpdate:function(e){e&&(this.__h=this.__h||[]).push(e),P(this,2)},render:function(){}});var q={h:n,createElement:n,cloneElement:o,Component:N,render:k,rerender:i,options:M};e.exports=q}()},function(e,t,n){e.exports=n(2)},function(e,t,n){"use strict";function r(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=l(e.source)),(0,a.render)((0,a.createElement)(s.default,e),e.element)}var o=Object.assign||function(e){for(var t=1;t47&&e<58||32===e||8===e||e>64&&e<91||e>95&&e<112||e>185&&e<193||e>218&&e<223}function u(e){return _?{onInput:e}:b?{onChange:e}:void 0}t.__esModule=!0,t.default=void 0;var c,d,p=Object.assign||function(e){for(var t=1;t=r;this.setState({query:s}),a||!l&&u&&c?o(s,function(e){var n=e.length>0;t.setState({menuOpen:n,options:e,selected:i&&n?0:-1})}):!l&&c||this.setState({menuOpen:!1,options:[]})},t.prototype.handleInputClick=function(e){this.handleInputChange(e)},t.prototype.handleInputFocus=function(e){this.setState({focused:-1})},t.prototype.handleOptionFocus=function(e){this.setState({focused:e,hovered:null,selected:e})},t.prototype.handleOptionMouseEnter=function(e,t){this.setState({hovered:t})},t.prototype.handleOptionMouseOut=function(e,t){this.setState({hovered:null})},t.prototype.handleOptionClick=function(e,t){var n=this.state.options[t],r=this.templateInputValue(n);this.props.onConfirm(n),this.setState({focused:-1,menuOpen:!1,query:r,selected:-1}),this.forceUpdate()},t.prototype.handleOptionMouseDown=function(e){e.preventDefault()},t.prototype.handleUpArrow=function(e){e.preventDefault();var t=this.state,n=t.menuOpen,r=t.selected;-1!==r&&n&&this.handleOptionFocus(r-1)},t.prototype.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,a=n.selected,i=a!==o.length-1,s=i&&r;s&&this.handleOptionFocus(a+1)}},t.prototype.handleSpace=function(e){var t=this;this.props.showAllValues&&!1===this.state.menuOpen&&(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.prototype.handleEnter=function(e){this.state.menuOpen&&(e.preventDefault(),this.state.selected>=0&&this.handleOptionClick(e,this.state.selected))},t.prototype.handlePrintableKey=function(e){var t=this.elementReferences[-1];e.target===t||t.focus()},t.prototype.handleKeyDown=function(e){switch(y[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:l(e.keyCode)&&this.handlePrintableKey(e)}},t.prototype.render=function(){var e=this,t=this.props,n=t.cssNamespace,r=t.displayMenu,o=t.id,a=t.minLength,i=t.name,s=t.placeholder,l=t.required,c=t.showAllValues,d=t.tNoResults,h=t.tStatusQueryTooShort,g=t.tStatusNoResults,v=t.tStatusSelectedOption,_=t.tStatusResults,b=t.dropdownArrow,y=this.state,E=y.focused,T=y.hovered,O=y.menuOpen,C=y.options,P=y.query,S=y.selected,x=this.hasAutoselect(),N=-1===E,k=0===C.length,M=0!==P.length,F=P.length>=a,j=this.props.showNoOptionsFound&&N&&k&&M&&F,L=n+"__wrapper",I=n+"__input",A=null!==E,B=A?" "+I+"--focused":"",D=this.props.showAllValues?" "+I+"--show-all-values":" "+I+"--default",H=n+"__dropdown-arrow-down",R=-1!==E&&null!==E,q=n+"__menu",V=q+"--"+r,U=O||j,z=q+"--"+(U?"visible":"hidden"),G=n+"__option",X=n+"__hint",$=this.templateInputValue(C[S]),W=$&&0===$.toLowerCase().indexOf(P.toLowerCase()),K=W&&x?P+$.substr(P.length):"",Z=w&&K,Y=void 0;return c&&"string"==typeof(Y=b({className:H}))&&(Y=(0,f.createElement)("div",{className:n+"__dropdown-arrow-down-wrapper",dangerouslySetInnerHTML:{__html:Y}})),(0,f.createElement)("div",{className:L,onKeyDown:this.handleKeyDown,role:"combobox","aria-expanded":O?"true":"false"},(0,f.createElement)(m.default,{length:C.length,queryLength:P.length,minQueryLength:a,selectedOption:this.templateInputValue(C[S]),tQueryTooShort:h,tNoResults:g,tSelectedOption:v,tResults:_}),Z&&(0,f.createElement)("span",null,(0,f.createElement)("input",{className:X,readonly:!0,tabIndex:"-1",value:K})),(0,f.createElement)("input",p({"aria-activedescendant":!!R&&o+"__option--"+E,"aria-owns":o+"__listbox",autoComplete:"off",className:""+I+B+D,id:o,onClick:function(t){return e.handleInputClick(t)},onBlur:this.handleInputBlur},u(this.handleInputChange),{onFocus:this.handleInputFocus,name:i,placeholder:s,ref:function(t){e.elementReferences[-1]=t},type:"text",role:"textbox",required:l,value:P})),Y,(0,f.createElement)("ul",{className:q+" "+V+" "+z,id:o+"__listbox",role:"listbox"},C.map(function(t,n){var r=-1===E?S===n:E===n,a=r&&null===T?" "+G+"--focused":"",i=n%2?" "+G+"--odd":"";return(0,f.createElement)("li",{"aria-selected":E===n,className:""+G+a+i,dangerouslySetInnerHTML:{__html:e.templateSuggestion(t)},id:o+"__option--"+n,key:n,onFocusOut:function(t){return e.handleOptionBlur(t,n)},onClick:function(t){return e.handleOptionClick(t,n)},onMouseDown:e.handleOptionMouseDown,onMouseEnter:function(t){return e.handleOptionMouseEnter(t,n)},onMouseOut:function(t){return e.handleOptionMouseOut(t,n)},ref:function(t){e.elementReferences[n]=t},role:"option",tabIndex:"-1"})}),j&&(0,f.createElement)("li",{className:G+" "+G+"--no-results"},d())))},t}(f.Component),c.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:v.default},d);t.default=E},function(e,t,n){"use strict";function r(e,t){}function o(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){"function"!=typeof t&&null!==t||(e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t))}t.__esModule=!0,t.default=void 0;var i,s,l=n(0),u=(s=i=function(e){function t(){var n,a,i;r(this,t);for(var s=arguments.length,l=Array(s),u=0;u (/Users/carlf/MOTDEV/front-end/node_modules/node-sass/lib/index.js:14:35)\n at Module._compile (module.js:653:30)\n at Module._extensions..js (module.js:664:10)\n at Object.require.extensions.(anonymous function) [as .js] (/Users/carlf/MOTDEV/front-end/node_modules/babel-register/lib/node.js:152:7)\n at Module.load (module.js:566:32)\n at tryModuleLoad (module.js:506:12)\n at Function.Module._load (module.js:498:3)\n at Module.require (module.js:597:17)\n at require (internal/module.js:11:18)\n at Object. (/Users/carlf/MOTDEV/front-end/node_modules/sass-loader/lib/loader.js:3:14)\n at Module._compile (module.js:653:30)\n at Module._extensions..js (module.js:664:10)\n at Object.require.extensions.(anonymous function) [as .js] (/Users/carlf/MOTDEV/front-end/node_modules/babel-register/lib/node.js:152:7)\n at Module.load (module.js:566:32)\n at tryModuleLoad (module.js:506:12)\n at Function.Module._load (module.js:498:3)\n at Module.require (module.js:597:17)\n at require (internal/module.js:11:18)\n at loadLoader (/Users/carlf/MOTDEV/front-end/node_modules/loader-runner/lib/loadLoader.js:13:17)\n at iteratePitchingLoaders (/Users/carlf/MOTDEV/front-end/node_modules/loader-runner/lib/LoaderRunner.js:169:2)\n at iteratePitchingLoaders (/Users/carlf/MOTDEV/front-end/node_modules/loader-runner/lib/LoaderRunner.js:165:10)\n at /Users/carlf/MOTDEV/front-end/node_modules/loader-runner/lib/LoaderRunner.js:173:18\n at loadLoader (/Users/carlf/MOTDEV/front-end/node_modules/loader-runner/lib/loadLoader.js:36:3)\n at iteratePitchingLoaders (/Users/carlf/MOTDEV/front-end/node_modules/loader-runner/lib/LoaderRunner.js:169:2)\n at iteratePitchingLoaders (/Users/carlf/MOTDEV/front-end/node_modules/loader-runner/lib/LoaderRunner.js:165:10)\n at /Users/carlf/MOTDEV/front-end/node_modules/loader-runner/lib/LoaderRunner.js:173:18\n at loadLoader (/Users/carlf/MOTDEV/front-end/node_modules/loader-runner/lib/loadLoader.js:36:3)\n at iteratePitchingLoaders (/Users/carlf/MOTDEV/front-end/node_modules/loader-runner/lib/LoaderRunner.js:169:2)\n at runLoaders (/Users/carlf/MOTDEV/front-end/node_modules/loader-runner/lib/LoaderRunner.js:362:2)\n at runLoaders (/Users/carlf/MOTDEV/front-end/node_modules/webpack/lib/NormalModule.js:195:19)\n at /Users/carlf/MOTDEV/front-end/node_modules/loader-runner/lib/LoaderRunner.js:364:11\n at /Users/carlf/MOTDEV/front-end/node_modules/loader-runner/lib/LoaderRunner.js:170:18\n at loadLoader (/Users/carlf/MOTDEV/front-end/node_modules/loader-runner/lib/loadLoader.js:27:11)\n at iteratePitchingLoaders (/Users/carlf/MOTDEV/front-end/node_modules/loader-runner/lib/LoaderRunner.js:169:2)\n at iteratePitchingLoaders (/Users/carlf/MOTDEV/front-end/node_modules/loader-runner/lib/LoaderRunner.js:165:10)\n at /Users/carlf/MOTDEV/front-end/node_modules/loader-runner/lib/LoaderRunner.js:173:18\n at loadLoader (/Users/carlf/MOTDEV/front-end/node_modules/loader-runner/lib/loadLoader.js:36:3)\n at iteratePitchingLoaders (/Users/carlf/MOTDEV/front-end/node_modules/loader-runner/lib/LoaderRunner.js:169:2)\n at iteratePitchingLoaders (/Users/carlf/MOTDEV/front-end/node_modules/loader-runner/lib/LoaderRunner.js:165:10)\n at /Users/carlf/MOTDEV/front-end/node_modules/loader-runner/lib/LoaderRunner.js:173:18\n at loadLoader (/Users/carlf/MOTDEV/front-end/node_modules/loader-runner/lib/loadLoader.js:36:3)\n at iteratePitchingLoaders (/Users/carlf/MOTDEV/front-end/node_modules/loader-runner/lib/LoaderRunner.js:169:2)\n at runLoaders (/Users/carlf/MOTDEV/front-end/node_modules/loader-runner/lib/LoaderRunner.js:362:2)\n at NormalModule.doBuild (/Users/carlf/MOTDEV/front-end/node_modules/webpack/lib/NormalModule.js:182:3)\n at NormalModule.build (/Users/carlf/MOTDEV/front-end/node_modules/webpack/lib/NormalModule.js:275:15)\n at Compilation.buildModule (/Users/carlf/MOTDEV/front-end/node_modules/webpack/lib/Compilation.js:157:10)\n at moduleFactory.create (/Users/carlf/MOTDEV/front-end/node_modules/webpack/lib/Compilation.js:460:10)\n at factory (/Users/carlf/MOTDEV/front-end/node_modules/webpack/lib/NormalModuleFactory.js:243:5)\n at applyPluginsAsyncWaterfall (/Users/carlf/MOTDEV/front-end/node_modules/webpack/lib/NormalModuleFactory.js:94:13)\n at /Users/carlf/MOTDEV/front-end/node_modules/tapable/lib/Tapable.js:268:11\n at NormalModuleFactory.params.normalModuleFactory.plugin (/Users/carlf/MOTDEV/front-end/node_modules/webpack/lib/CompatibilityPlugin.js:52:5)\n at NormalModuleFactory.applyPluginsAsyncWaterfall (/Users/carlf/MOTDEV/front-end/node_modules/tapable/lib/Tapable.js:272:13)\n at resolver (/Users/carlf/MOTDEV/front-end/node_modules/webpack/lib/NormalModuleFactory.js:69:10)\n at process.nextTick (/Users/carlf/MOTDEV/front-end/node_modules/webpack/lib/NormalModuleFactory.js:196:7)\n at _combinedTickCallback (internal/process/next_tick.js:132:7)\n at process._tickCallback (internal/process/next_tick.js:181:9)")}},[337]); \ No newline at end of file +webpackJsonp([1],{216: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 "}},337:function(e,t,n){"use strict";n(338),n(339),n(340),n(341);var r=n(15),o=n(342);n(362),(0,r.domReady)(function(){(0,o.initModules)()})},338:function(e,t,n){(function(t){var n="undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{},r=function(){var e=/\blang(?:uage)?-([\w-]+)\b/i,t=0,r=n.Prism={manual:n.Prism&&n.Prism.manual,disableWorkerMessageHandler:n.Prism&&n.Prism.disableWorkerMessageHandler,util:{encode:function(e){return e instanceof o?new o(e.type,r.util.encode(e.content),e.alias):"Array"===r.util.type(e)?e.map(r.util.encode):e.replace(/&/g,"&").replace(/e.length)return;if(!(w instanceof l)){if(m&&_!=t.length-1){p.lastIndex=b;var E=p.exec(e);if(!E)break;for(var C=E.index+(h?E[1].length:0),T=E.index+E[0].length,O=_,P=b,S=t.length;O=P&&(++_,b=P);if(t[_]instanceof l)continue;x=O-_,w=e.slice(b,P),E.index-=b}else{p.lastIndex=0;var E=p.exec(w),x=1}if(E){h&&(g=E[1]?E[1].length:0);var C=E.index+g,E=E[0].slice(g),T=C+E.length,N=w.slice(0,C),k=w.slice(T),F=[_,x];N&&(++_,b+=N.length,F.push(N));var I=new l(u,f?r.tokenize(E,f):E,v,E,m);if(F.push(I),k&&F.push(k),Array.prototype.splice.apply(t,F),1!=x&&r.matchGrammar(e,t,n,_,b,!0,u),a)break}else if(a)break}}}}},tokenize:function(e,t,n){var o=[e],i=t.rest;if(i){for(var a in i)t[a]=i[a];delete t.rest}return r.matchGrammar(e,o,t,0,0,!1),o},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var o,i=0;o=n[i++];)o(t)}}},o=r.Token=function(e,t,n,r,o){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length,this.greedy=!!o};if(o.stringify=function(e,t,n){if("string"==typeof e)return e;if("Array"===r.util.type(e))return e.map(function(n){return o.stringify(n,t,e)}).join("");var i={type:e.type,content:o.stringify(e.content,t,n),tag:"span",classes:["token",e.type],attributes:{},language:t,parent:n};if(e.alias){var a="Array"===r.util.type(e.alias)?e.alias:[e.alias];Array.prototype.push.apply(i.classes,a)}r.hooks.run("wrap",i);var s=Object.keys(i.attributes).map(function(e){return e+'="'+(i.attributes[e]||"").replace(/"/g,""")+'"'}).join(" ");return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+(s?" "+s:"")+">"+i.content+""},!n.document)return n.addEventListener?(r.disableWorkerMessageHandler||n.addEventListener("message",function(e){var t=JSON.parse(e.data),o=t.language,i=t.code,a=t.immediateClose;n.postMessage(r.highlight(i,r.languages[o],o)),a&&n.close()},!1),n.Prism):n.Prism;var i=document.currentScript||[].slice.call(document.getElementsByTagName("script")).pop();return i&&(r.filename=i.src,r.manual||i.hasAttribute("data-manual")||("loading"!==document.readyState?window.requestAnimationFrame?window.requestAnimationFrame(r.highlightAll):window.setTimeout(r.highlightAll,16):document.addEventListener("DOMContentLoaded",r.highlightAll))),n.Prism}();void 0!==e&&e.exports&&(e.exports=r),void 0!==t&&(t.Prism=r),r.languages.markup={comment://,prolog:/<\?[\s\S]+?\?>/,doctype://i,cdata://i,tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/i,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/i,inside:{punctuation:[/^=/,{pattern:/(^|[^\\])["']/,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(/&/,"&"))}),r.languages.xml=r.languages.markup,r.languages.html=r.languages.markup,r.languages.mathml=r.languages.markup,r.languages.svg=r.languages.markup,r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-]+?.*?(?:;|(?=\s*\{))/i,inside:{rule:/@[\w-]+/}},url:/url\((?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|.*?)\)/i,selector:/[^{}\s][^{};]*?(?=\s*\{)/,string:{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},property:/[-_a-z\xA0-\uFFFF][-\w\xA0-\uFFFF]*(?=\s*:)/i,important:/\B!important\b/i,function:/[-a-z0-9]+(?=\()/i,punctuation:/[(){};:]/},r.languages.css.atrule.inside.rest=r.languages.css,r.languages.markup&&(r.languages.insertBefore("markup","tag",{style:{pattern:/()[\s\S]*?(?=<\/style>)/i,lookbehind:!0,inside:r.languages.css,alias:"language-css",greedy:!0}}),r.languages.insertBefore("inside","attr-value",{"style-attr":{pattern:/\s*style=("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/i,inside:{"attr-name":{pattern:/^\s*style/i,inside:r.languages.markup.tag.inside},punctuation:/^\s*=\s*['"]|['"]\s*$/,"attr-value":{pattern:/.+/i,inside:r.languages.css}},alias:"language-css"}},r.languages.markup.tag)),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+)|(?:catch\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:/[a-z0-9_]+(?=\()/i,number:/\b0x[\da-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&?|\|\|?|\?|\*|\/|~|\^|%/,punctuation:/[{}[\];(),.:]/},r.languages.javascript=r.languages.extend("clike",{keyword:/\b(?: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|var|void|while|with|yield)\b/,number:/\b(?:0[xX][\dA-Fa-f]+|0[bB][01]+|0[oO][0-7]+|NaN|Infinity)\b|(?:\b\d+\.?\d*|\B\.\d+)(?:[Ee][+-]?\d+)?/,function:/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*\()/i,operator:/-[-=]?|\+[+=]?|!=?=?|<>?>?=?|=(?:==?|>)?|&[&=]?|\|[|=]?|\*\*?=?|\/=?|~|\^=?|%=?|\?|\.{3}/}),r.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s])\s*)\/(\[[^\]\r\n]+]|\\.|[^\/\\\[\r\n])+\/[gimyu]{0,5}(?=\s*($|[\r\n,.;})\]]))/,lookbehind:!0,greedy:!0},"function-variable":{pattern:/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*=\s*(?:function\b|(?:\([^()]*\)|[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)\s*=>))/i,alias:"function"},constant:/\b[A-Z][A-Z\d_]*\b/}),r.languages.insertBefore("javascript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\${[^}]+}|[^\\`])*`/,greedy:!0,inside:{interpolation:{pattern:/\${[^}]+}/,inside:{"interpolation-punctuation":{pattern:/^\${|}$/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}}}),r.languages.javascript["template-string"].inside.interpolation.inside.rest=r.languages.javascript,r.languages.markup&&r.languages.insertBefore("markup","tag",{script:{pattern:/()[\s\S]*?(?=<\/script>)/i,lookbehind:!0,inside:r.languages.javascript,alias:"language-javascript",greedy:!0}}),r.languages.js=r.languages.javascript,function(){"undefined"!=typeof self&&self.Prism&&self.document&&document.querySelector&&(self.Prism.fileHighlight=function(){var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"};Array.prototype.slice.call(document.querySelectorAll("pre[data-src]")).forEach(function(t){for(var n,o=t.getAttribute("data-src"),i=t,a=/\blang(?:uage)?-([\w-]+)\b/i;i&&!a.test(i.className);)i=i.parentNode;if(i&&(n=(t.className.match(a)||[,""])[1]),!n){var s=(o.match(/\.(\w+)$/)||[,""])[1];n=e[s]||s}var l=document.createElement("code");l.className="language-"+n,t.textContent="",l.textContent="Loading…",t.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)):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)}),r.plugins.toolbar&&r.plugins.toolbar.registerButton("download-file",function(e){var t=e.element.parentNode;if(t&&/pre/i.test(t.nodeName)&&t.hasAttribute("data-src")&&t.hasAttribute("data-download-link")){var n=t.getAttribute("data-src"),r=document.createElement("a");return r.textContent=t.getAttribute("data-download-link-label")||"Download",r.setAttribute("download",""),r.href=n,r}})},document.addEventListener("DOMContentLoaded",self.Prism.fileHighlight))}()}).call(t,n(152))},339:function(e,t){!function(){if("undefined"!=typeof self&&self.Prism&&self.document){var e=[],t={},n=function(){};Prism.plugins.toolbar={};var r=Prism.plugins.toolbar.registerButton=function(n,r){var o;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"),t.textContent=r.text,t},e.push(t[n]=o)},o=Prism.plugins.toolbar.hook=function(r){var o=r.element.parentNode;if(o&&/pre/i.test(o.nodeName)&&!o.parentNode.classList.contains("code-toolbar")){var i=document.createElement("div");i.classList.add("code-toolbar"),o.parentNode.insertBefore(i,o),i.appendChild(o);var a=document.createElement("div");a.classList.add("toolbar"),document.body.hasAttribute("data-toolbar-order")&&(e=document.body.getAttribute("data-toolbar-order").split(",").map(function(e){return t[e]||n})),e.forEach(function(e){var t=e(r);if(t){var n=document.createElement("div");n.classList.add("toolbar-item"),n.appendChild(t),a.appendChild(n)}}),i.appendChild(a)}};r("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",o)}}()},340: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=/\bno-whitespace-normalization\b/;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"),i=document.createElement("span"),i.setAttribute("aria-hidden","true"),i.className="line-numbers-rows",i.innerHTML=l,r.hasAttribute("data-start")&&(r.style.counterReset="linenumber "+(parseInt(r.getAttribute("data-start"),10)-1)),n.element.appendChild(i),t(r),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]}}}}}()},342:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initModules=void 0;var r=n(343),o=(n(345),n(348)),i=n(351),a=n(354),s=n(357),l=n(359);t.initModules=function(){(0,o.initTextToSpeechToggle)(),(0,i.initFontSizeToggle)(),(0,a.initSpeechToText)(),(0,s.initThemeToggle)(),(0,r.initLibraryNavigation)(),(0,l.initAutoComplete)()}},343:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initLibraryNavigation=void 0;var r=n(344);t.initLibraryNavigation=function(){new r.LibraryPageNavigation}},344: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")}},345:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initDevPreview=void 0;var r=n(346),o=n(347);t.initDevPreview=function(){new r.DevPreview,new o.DevPreviewFullscreen}},346: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()}},347: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()}},348:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initTextToSpeechToggle=void 0;var r=n(349);t.initTextToSpeechToggle=function(){var e=document.querySelector(".text-to-speech-toggle");e&&new r.TextToSpeechToggle(e)}},349: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(15),i=n(350),a=n(216);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()}},350: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(15),i=n(216);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()}},351:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initFontSizeToggle=void 0;var r=n(352);t.initFontSizeToggle=function(){var e=document.querySelector(".font-size-toggle");e&&new r.FontSizeToggle(e)}},352: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(15),i=n(353);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()}}},353: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"]}},354:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initSpeechToText=void 0;var r=n(355);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)})}}},355: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(15),i=n(356);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()}}},356: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"}}},357:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initThemeToggle=void 0;var r=n(358);t.initThemeToggle=function(){var e=document.querySelector(".theme-toggle");e&&new r.ThemeToggle(e)}},358: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(15);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()}}},359:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initAutoComplete=void 0;var r=n(360);t.initAutoComplete=function(){var e=document.querySelectorAll(".select-autocomplete");e&&(e=Array.from(e),e.forEach(function(e){new r.AutoComplete(e)}))}},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.AutoComplete=void 0;var o=n(361),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()}},361:function(e,t,n){!function(t,n){e.exports=n()}(0,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,{configurable:!1,enumerable:!0,get: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=1)}([function(e,t,n){!function(){"use strict";function t(){}function n(e,n){var r,o,i,a,s=A;for(a=arguments.length;a-- >2;)I.push(arguments[a]);for(n&&null!=n.children&&(I.length||I.push(n.children),delete n.children);I.length;)if((o=I.pop())&&void 0!==o.pop)for(a=o.length;a--;)I.push(o[a]);else!0!==o&&!1!==o||(o=null),(i="function"!=typeof e)&&(null==o?o="":"number"==typeof o?o=String(o):"string"!=typeof o&&(i=!1)),i&&r?s[s.length-1]+=o:s===A?s=[o]:s.push(o),r=i;var l=new t;return l.nodeName=e,l.children=s,l.attributes=null==n?void 0:n,l.key=null==n?void 0:n.key,void 0!==F.vnode&&F.vnode(l),l}function r(e,t){for(var n in t)e[n]=t[n];return e}function o(e,t){return n(e.nodeName,r(r({},e.attributes),t),arguments.length>2?[].slice.call(arguments,2):e.children)}function i(e){!e.__d&&(e.__d=!0)&&1==L.push(e)&&(F.debounceRendering||setTimeout)(a)}function a(){var e,t=L;for(L=[];e=t.pop();)e.__d&&P(e)}function s(e,t,n){return"string"==typeof t||"number"==typeof t?void 0!==e.splitText:"string"==typeof t.nodeName?!e._componentConstructor&&l(e,t.nodeName):n||e._componentConstructor===t.nodeName}function l(e,t){return e.__n===t||e.nodeName.toLowerCase()===t.toLowerCase()}function u(e){var t=r({},e.attributes);t.children=e.children;var n=e.nodeName.defaultProps;if(void 0!==n)for(var o in n)void 0===t[o]&&(t[o]=n[o]);return t}function c(e,t){var n=t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return n.__n=e,n}function d(e){e.parentNode&&e.parentNode.removeChild(e)}function p(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===B.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 a=t!==(t=t.replace(/Capture$/,""));t=t.toLowerCase().substring(2),r?n||e.addEventListener(t,h,a):e.removeEventListener(t,h,a),(e.__l||(e.__l={}))[t]=r}else if("list"!==t&&"type"!==t&&!o&&t in e)f(e,t,null==r?"":r),null!=r&&!1!==r||e.removeAttribute(t);else{var s=o&&t!==(t=t.replace(/^xlink\:?/,""));null==r||!1===r?s?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t):"function"!=typeof r&&(s?e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),r):e.setAttribute(t,r))}else e.className=r||""}function f(e,t,n){try{e[t]=n}catch(e){}}function h(e){return this.__l[e.type](F.event&&F.event(e)||e)}function m(){for(var e;e=M.pop();)F.afterMount&&F.afterMount(e),e.componentDidMount&&e.componentDidMount()}function g(e,t,n,r,o,i){H++||(j=null!=o&&void 0!==o.ownerSVGElement,D=null!=e&&!("__preactattr_"in e));var a=v(e,t,n,r,i);return o&&a.parentNode!==o&&o.appendChild(a),--H||(D=!1,i||m()),a}function v(e,t,n,r,o){var i=e,a=j;if(null==t&&(t=""),"string"==typeof t)return e&&void 0!==e.splitText&&e.parentNode&&(!e._component||o)?e.nodeValue!=t&&(e.nodeValue=t):(i=document.createTextNode(t),e&&(e.parentNode&&e.parentNode.replaceChild(i,e),_(e,!0))),i.__preactattr_=!0,i;if("function"==typeof t.nodeName)return S(e,t,n,r);if(j="svg"===t.nodeName||"foreignObject"!==t.nodeName&&j,(!e||!l(e,String(t.nodeName)))&&(i=c(String(t.nodeName),j),e)){for(;e.firstChild;)i.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild(i,e),_(e,!0)}var s=i.firstChild,u=i.__preactattr_||(i.__preactattr_={}),d=t.children;return!D&&d&&1===d.length&&"string"==typeof d[0]&&null!=s&&void 0!==s.splitText&&null==s.nextSibling?s.nodeValue!=d[0]&&(s.nodeValue=d[0]):(d&&d.length||null!=s)&&y(i,d,n,r,D||null!=u.dangerouslySetInnerHTML),w(i,t.attributes,u),j=a,i}function y(e,t,n,r,o){var i,a,l,u,c=e.childNodes,p=[],f={},h=0,m=0,g=c.length,y=0,b=t?t.length:0;if(0!==g)for(var w=0;w=g?e.appendChild(u):u!==c[w]&&(u===c[w+1]?d(c[w]):e.insertBefore(u,c[w]||null)))}if(h)for(var w in f)void 0!==f[w]&&_(f[w],!1);for(;m<=y;)void 0!==(u=p[y--])&&_(u,!1)}function _(e,t){var n=e._component;n?x(n):(null!=e.__preactattr_&&e.__preactattr_.ref&&e.__preactattr_.ref(null),!1!==t&&null!=e.__preactattr_||d(e),b(e))}function b(e){for(e=e.lastChild;e;){var t=e.previousSibling;_(e,!0),e=t}}function w(e,t,n){var r;for(r in n)t&&null!=t[r]||null==n[r]||p(e,r,n[r],n[r]=void 0,j);for(r in t)"children"===r||"innerHTML"===r||r in n&&t[r]===("value"===r||"checked"===r?e[r]:n[r])||p(e,r,n[r],n[r]=t[r],j)}function E(e){var t=e.constructor.name;(q[t]||(q[t]=[])).push(e)}function C(e,t,n){var r,o=q[e.name];if(e.prototype&&e.prototype.render?(r=new e(t,n),N.call(r,t,n)):(r=new N(t,n),r.constructor=e,r.render=T),o)for(var i=o.length;i--;)if(o[i].constructor===e){r.__b=o[i].__b,o.splice(i,1);break}return r}function T(e,t,n){return this.constructor(e,n)}function O(e,t,n,r,o){e.__x||(e.__x=!0,(e.__r=t.ref)&&delete t.ref,(e.__k=t.key)&&delete t.key,!e.base||o?e.componentWillMount&&e.componentWillMount():e.componentWillReceiveProps&&e.componentWillReceiveProps(t,r),r&&r!==e.context&&(e.__c||(e.__c=e.context),e.context=r),e.__p||(e.__p=e.props),e.props=t,e.__x=!1,0!==n&&(1!==n&&!1===F.syncComponentUpdates&&e.base?i(e):P(e,1,o)),e.__r&&e.__r(e))}function P(e,t,n,o){if(!e.__x){var i,a,s,l=e.props,c=e.state,d=e.context,p=e.__p||l,f=e.__s||c,h=e.__c||d,v=e.base,y=e.__b,b=v||y,w=e._component,E=!1;if(v&&(e.props=p,e.state=f,e.context=h,2!==t&&e.shouldComponentUpdate&&!1===e.shouldComponentUpdate(l,c,d)?E=!0:e.componentWillUpdate&&e.componentWillUpdate(l,c,d),e.props=l,e.state=c,e.context=d),e.__p=e.__s=e.__c=e.__b=null,e.__d=!1,!E){i=e.render(l,c,d),e.getChildContext&&(d=r(r({},d),e.getChildContext()));var T,S,N=i&&i.nodeName;if("function"==typeof N){var k=u(i);a=w,a&&a.constructor===N&&k.key==a.__k?O(a,k,1,d,!1):(T=a,e._component=a=C(N,k,d),a.__b=a.__b||y,a.__u=e,O(a,k,0,d,!1),P(a,1,n,!0)),S=a.base}else s=b,T=w,T&&(s=e._component=null),(b||1===t)&&(s&&(s._component=null),S=g(s,i,d,n||!v,b&&b.parentNode,!0));if(b&&S!==b&&a!==w){var I=b.parentNode;I&&S!==I&&(I.replaceChild(S,b),T||(b._component=null,_(b,!1)))}if(T&&x(T),e.base=S,S&&!o){for(var A=e,B=e;B=B.__u;)(A=B).base=S;S._component=A,S._componentConstructor=A.constructor}}if(!v||n?M.unshift(e):E||(m(),e.componentDidUpdate&&e.componentDidUpdate(p,f,h),F.afterUpdate&&F.afterUpdate(e)),null!=e.__h)for(;e.__h.length;)e.__h.pop().call(e);H||o||m()}}function S(e,t,n,r){for(var o=e&&e._component,i=o,a=e,s=o&&e._componentConstructor===t.nodeName,l=s,c=u(t);o&&!l&&(o=o.__u);)l=o.constructor===t.nodeName;return o&&l&&(!r||o._component)?(O(o,c,3,n,r),e=o.base):(i&&!s&&(x(i),e=a=null),o=C(t.nodeName,c,n),e&&!o.__b&&(o.__b=e,a=null),O(o,c,1,n,r),e=o.base,a&&e!==a&&(a._component=null,_(a,!1))),e}function x(e){F.beforeUnmount&&F.beforeUnmount(e);var t=e.base;e.__x=!0,e.componentWillUnmount&&e.componentWillUnmount(),e.base=null;var n=e._component;n?x(n):t&&(t.__preactattr_&&t.__preactattr_.ref&&t.__preactattr_.ref(null),e.__b=t,d(t),E(e),b(t)),e.__r&&e.__r(null)}function N(e,t){this.__d=!0,this.context=t,this.props=e,this.state=this.state||{}}function k(e,t,n){return g(n,e,{},!1,t,!1)}var F={},I=[],A=[],B=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,L=[],M=[],H=0,j=!1,D=!1,q={};r(N.prototype,{setState:function(e,t){var n=this.state;this.__s||(this.__s=r({},n)),r(n,"function"==typeof e?e(n,this.props):e),t&&(this.__h=this.__h||[]).push(t),i(this)},forceUpdate:function(e){e&&(this.__h=this.__h||[]).push(e),P(this,2)},render:function(){}});var R={h:n,createElement:n,cloneElement:o,Component:N,render:k,rerender:a,options:F};e.exports=R}()},function(e,t,n){e.exports=n(2)},function(e,t,n){"use strict";function r(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=l(e.source)),(0,i.render)((0,i.createElement)(s.default,e),e.element)}var o=Object.assign||function(e){for(var t=1;t47&&e<58||32===e||8===e||e>64&&e<91||e>95&&e<112||e>185&&e<193||e>218&&e<223}function u(e){return y?{onInput:e}:_?{onChange:e}:void 0}t.__esModule=!0,t.default=void 0;var c,d,p=Object.assign||function(e){for(var t=1;t=r;this.setState({query:s}),i||!l&&u&&c?o(s,function(e){var n=e.length>0;t.setState({menuOpen:n,options:e,selected:a&&n?0:-1})}):!l&&c||this.setState({menuOpen:!1,options:[]})},t.prototype.handleInputClick=function(e){this.handleInputChange(e)},t.prototype.handleInputFocus=function(e){this.setState({focused:-1})},t.prototype.handleOptionFocus=function(e){this.setState({focused:e,hovered:null,selected:e})},t.prototype.handleOptionMouseEnter=function(e,t){this.setState({hovered:t})},t.prototype.handleOptionMouseOut=function(e,t){this.setState({hovered:null})},t.prototype.handleOptionClick=function(e,t){var n=this.state.options[t],r=this.templateInputValue(n);this.props.onConfirm(n),this.setState({focused:-1,menuOpen:!1,query:r,selected:-1}),this.forceUpdate()},t.prototype.handleOptionMouseDown=function(e){e.preventDefault()},t.prototype.handleUpArrow=function(e){e.preventDefault();var t=this.state,n=t.menuOpen,r=t.selected;-1!==r&&n&&this.handleOptionFocus(r-1)},t.prototype.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,a=i!==o.length-1,s=a&&r;s&&this.handleOptionFocus(i+1)}},t.prototype.handleSpace=function(e){var t=this;this.props.showAllValues&&!1===this.state.menuOpen&&(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.prototype.handleEnter=function(e){this.state.menuOpen&&(e.preventDefault(),this.state.selected>=0&&this.handleOptionClick(e,this.state.selected))},t.prototype.handlePrintableKey=function(e){var t=this.elementReferences[-1];e.target===t||t.focus()},t.prototype.handleKeyDown=function(e){switch(b[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:l(e.keyCode)&&this.handlePrintableKey(e)}},t.prototype.render=function(){var e=this,t=this.props,n=t.cssNamespace,r=t.displayMenu,o=t.id,i=t.minLength,a=t.name,s=t.placeholder,l=t.required,c=t.showAllValues,d=t.tNoResults,h=t.tStatusQueryTooShort,g=t.tStatusNoResults,v=t.tStatusSelectedOption,y=t.tStatusResults,_=t.dropdownArrow,b=this.state,E=b.focused,C=b.hovered,T=b.menuOpen,O=b.options,P=b.query,S=b.selected,x=this.hasAutoselect(),N=-1===E,k=0===O.length,F=0!==P.length,I=P.length>=i,A=this.props.showNoOptionsFound&&N&&k&&F&&I,B=n+"__wrapper",L=n+"__input",M=null!==E,H=M?" "+L+"--focused":"",j=this.props.showAllValues?" "+L+"--show-all-values":" "+L+"--default",D=n+"__dropdown-arrow-down",q=-1!==E&&null!==E,R=n+"__menu",z=R+"--"+r,G=T||A,V=R+"--"+(G?"visible":"hidden"),U=n+"__option",X=n+"__hint",$=this.templateInputValue(O[S]),W=$&&0===$.toLowerCase().indexOf(P.toLowerCase()),K=W&&x?P+$.substr(P.length):"",Z=w&&K,Y=void 0;return c&&"string"==typeof(Y=_({className:D}))&&(Y=(0,f.createElement)("div",{className:n+"__dropdown-arrow-down-wrapper",dangerouslySetInnerHTML:{__html:Y}})),(0,f.createElement)("div",{className:B,onKeyDown:this.handleKeyDown,role:"combobox","aria-expanded":T?"true":"false"},(0,f.createElement)(m.default,{length:O.length,queryLength:P.length,minQueryLength:i,selectedOption:this.templateInputValue(O[S]),tQueryTooShort:h,tNoResults:g,tSelectedOption:v,tResults:y}),Z&&(0,f.createElement)("span",null,(0,f.createElement)("input",{className:X,readonly:!0,tabIndex:"-1",value:K})),(0,f.createElement)("input",p({"aria-activedescendant":!!q&&o+"__option--"+E,"aria-owns":o+"__listbox",autoComplete:"off",className:""+L+H+j,id:o,onClick:function(t){return e.handleInputClick(t)},onBlur:this.handleInputBlur},u(this.handleInputChange),{onFocus:this.handleInputFocus,name:a,placeholder:s,ref:function(t){e.elementReferences[-1]=t},type:"text",role:"textbox",required:l,value:P})),Y,(0,f.createElement)("ul",{className:R+" "+z+" "+V,id:o+"__listbox",role:"listbox"},O.map(function(t,n){var r=-1===E?S===n:E===n,i=r&&null===C?" "+U+"--focused":"",a=n%2?" "+U+"--odd":"";return(0,f.createElement)("li",{"aria-selected":E===n,className:""+U+i+a,dangerouslySetInnerHTML:{__html:e.templateSuggestion(t)},id:o+"__option--"+n,key:n,onFocusOut:function(t){return e.handleOptionBlur(t,n)},onClick:function(t){return e.handleOptionClick(t,n)},onMouseDown:e.handleOptionMouseDown,onMouseEnter:function(t){return e.handleOptionMouseEnter(t,n)},onMouseOut:function(t){return e.handleOptionMouseOut(t,n)},ref:function(t){e.elementReferences[n]=t},role:"option",tabIndex:"-1"})}),A&&(0,f.createElement)("li",{className:U+" "+U+"--no-results"},d())))},t}(f.Component),c.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:v.default},d);t.default=E},function(e,t,n){"use strict";function r(e,t){}function o(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){"function"!=typeof t&&null!==t||(e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t))}t.__esModule=!0,t.default=void 0;var a,s,l=n(0),u=(s=a=function(e){function t(){var n,i,a;r(this,t);for(var s=arguments.length,l=Array(s),u=0;u, James Nelson , Tameem Safi - * Timestamp: June 13th 2019, 11:32:42 am + * Timestamp: September 18th 2019, 4:15:52 pm * Source: https://github.com/dvsa/front-end * */ diff --git a/dist/assets/javascripts/dvsa-mts-legacy.bundle.js b/dist/assets/javascripts/dvsa-mts-legacy.bundle.js index 3259fe97a..f289d8341 100644 --- a/dist/assets/javascripts/dvsa-mts-legacy.bundle.js +++ b/dist/assets/javascripts/dvsa-mts-legacy.bundle.js @@ -3,7 +3,7 @@ * Name: dvsa-front-end/dvsa-mts-legacy * Version: 1.3.15 * Contributors: Martin D Marriott , James Nelson , Tameem Safi - * Timestamp: June 13th 2019, 11:32:42 am + * Timestamp: September 18th 2019, 4:15:52 pm * Source: https://github.com/dvsa/front-end * */ diff --git a/dist/assets/javascripts/dvsa-mts.bundle.js b/dist/assets/javascripts/dvsa-mts.bundle.js index 27bd1df27..99389fa15 100644 --- a/dist/assets/javascripts/dvsa-mts.bundle.js +++ b/dist/assets/javascripts/dvsa-mts.bundle.js @@ -3,7 +3,7 @@ * Name: dvsa-front-end/dvsa-mts * Version: 1.3.15 * Contributors: Martin D Marriott , James Nelson , Tameem Safi - * Timestamp: June 13th 2019, 11:32:42 am + * Timestamp: September 18th 2019, 4:15:52 pm * Source: https://github.com/dvsa/front-end * */ diff --git a/dist/assets/javascripts/dvsa.bundle.js b/dist/assets/javascripts/dvsa.bundle.js index cac548315..0df8e7649 100644 --- a/dist/assets/javascripts/dvsa.bundle.js +++ b/dist/assets/javascripts/dvsa.bundle.js @@ -3,7 +3,7 @@ * Name: dvsa-front-end/dvsa * Version: 1.3.15 * Contributors: Martin D Marriott , James Nelson , Tameem Safi - * Timestamp: June 13th 2019, 11:32:42 am + * Timestamp: September 18th 2019, 4:15:52 pm * Source: https://github.com/dvsa/front-end * */ diff --git a/dist/assets/javascripts/styles.bundle.js b/dist/assets/javascripts/styles.bundle.js deleted file mode 100644 index 1d6a3e6ac..000000000 --- a/dist/assets/javascripts/styles.bundle.js +++ /dev/null @@ -1,10 +0,0 @@ -/*! - * - * Name: dvsa-front-end/styles - * Version: 1.3.15 - * Contributors: Martin D Marriott , James Nelson , Tameem Safi - * Timestamp: June 13th 2019, 11:32:42 am - * Source: https://github.com/dvsa/front-end - * - */ -webpackJsonp([5],{363:function(e,n){throw new Error("Module build failed: ModuleBuildError: Module build failed: Error: Missing binding /Users/carlf/MOTDEV/front-end/node_modules/node-sass/vendor/darwin-x64-57/binding.node\nNode Sass could not find a binding for your current environment: OS X 64-bit with Node.js 8.x\n\nFound bindings for the following environments:\n - OS X 64-bit with Node.js 10.x\n\nThis usually happens because your environment has changed since running `npm install`.\nRun `npm rebuild node-sass` to download the binding for your current environment.\n at module.exports (/Users/carlf/MOTDEV/front-end/node_modules/node-sass/lib/binding.js:15:13)\n at Object. (/Users/carlf/MOTDEV/front-end/node_modules/node-sass/lib/index.js:14:35)\n at Module._compile (module.js:653:30)\n at Module._extensions..js (module.js:664:10)\n at Object.require.extensions.(anonymous function) [as .js] (/Users/carlf/MOTDEV/front-end/node_modules/babel-register/lib/node.js:152:7)\n at Module.load (module.js:566:32)\n at tryModuleLoad (module.js:506:12)\n at Function.Module._load (module.js:498:3)\n at Module.require (module.js:597:17)\n at require (internal/module.js:11:18)\n at Object. (/Users/carlf/MOTDEV/front-end/node_modules/sass-loader/lib/loader.js:3:14)\n at Module._compile (module.js:653:30)\n at Module._extensions..js (module.js:664:10)\n at Object.require.extensions.(anonymous function) [as .js] (/Users/carlf/MOTDEV/front-end/node_modules/babel-register/lib/node.js:152:7)\n at Module.load (module.js:566:32)\n at tryModuleLoad (module.js:506:12)\n at Function.Module._load (module.js:498:3)\n at Module.require (module.js:597:17)\n at require (internal/module.js:11:18)\n at loadLoader (/Users/carlf/MOTDEV/front-end/node_modules/loader-runner/lib/loadLoader.js:13:17)\n at iteratePitchingLoaders (/Users/carlf/MOTDEV/front-end/node_modules/loader-runner/lib/LoaderRunner.js:169:2)\n at iteratePitchingLoaders (/Users/carlf/MOTDEV/front-end/node_modules/loader-runner/lib/LoaderRunner.js:165:10)\n at /Users/carlf/MOTDEV/front-end/node_modules/loader-runner/lib/LoaderRunner.js:173:18\n at loadLoader (/Users/carlf/MOTDEV/front-end/node_modules/loader-runner/lib/loadLoader.js:36:3)\n at iteratePitchingLoaders (/Users/carlf/MOTDEV/front-end/node_modules/loader-runner/lib/LoaderRunner.js:169:2)\n at iteratePitchingLoaders (/Users/carlf/MOTDEV/front-end/node_modules/loader-runner/lib/LoaderRunner.js:165:10)\n at /Users/carlf/MOTDEV/front-end/node_modules/loader-runner/lib/LoaderRunner.js:173:18\n at loadLoader (/Users/carlf/MOTDEV/front-end/node_modules/loader-runner/lib/loadLoader.js:36:3)\n at iteratePitchingLoaders (/Users/carlf/MOTDEV/front-end/node_modules/loader-runner/lib/LoaderRunner.js:169:2)\n at runLoaders (/Users/carlf/MOTDEV/front-end/node_modules/loader-runner/lib/LoaderRunner.js:362:2)\n at runLoaders (/Users/carlf/MOTDEV/front-end/node_modules/webpack/lib/NormalModule.js:195:19)\n at /Users/carlf/MOTDEV/front-end/node_modules/loader-runner/lib/LoaderRunner.js:364:11\n at /Users/carlf/MOTDEV/front-end/node_modules/loader-runner/lib/LoaderRunner.js:170:18\n at loadLoader (/Users/carlf/MOTDEV/front-end/node_modules/loader-runner/lib/loadLoader.js:27:11)\n at iteratePitchingLoaders (/Users/carlf/MOTDEV/front-end/node_modules/loader-runner/lib/LoaderRunner.js:169:2)\n at iteratePitchingLoaders (/Users/carlf/MOTDEV/front-end/node_modules/loader-runner/lib/LoaderRunner.js:165:10)\n at /Users/carlf/MOTDEV/front-end/node_modules/loader-runner/lib/LoaderRunner.js:173:18\n at loadLoader (/Users/carlf/MOTDEV/front-end/node_modules/loader-runner/lib/loadLoader.js:36:3)\n at iteratePitchingLoaders (/Users/carlf/MOTDEV/front-end/node_modules/loader-runner/lib/LoaderRunner.js:169:2)\n at iteratePitchingLoaders (/Users/carlf/MOTDEV/front-end/node_modules/loader-runner/lib/LoaderRunner.js:165:10)\n at /Users/carlf/MOTDEV/front-end/node_modules/loader-runner/lib/LoaderRunner.js:173:18\n at loadLoader (/Users/carlf/MOTDEV/front-end/node_modules/loader-runner/lib/loadLoader.js:36:3)\n at iteratePitchingLoaders (/Users/carlf/MOTDEV/front-end/node_modules/loader-runner/lib/LoaderRunner.js:169:2)\n at runLoaders (/Users/carlf/MOTDEV/front-end/node_modules/loader-runner/lib/LoaderRunner.js:362:2)\n at NormalModule.doBuild (/Users/carlf/MOTDEV/front-end/node_modules/webpack/lib/NormalModule.js:182:3)\n at NormalModule.build (/Users/carlf/MOTDEV/front-end/node_modules/webpack/lib/NormalModule.js:275:15)\n at Compilation.buildModule (/Users/carlf/MOTDEV/front-end/node_modules/webpack/lib/Compilation.js:157:10)\n at moduleFactory.create (/Users/carlf/MOTDEV/front-end/node_modules/webpack/lib/Compilation.js:460:10)\n at factory (/Users/carlf/MOTDEV/front-end/node_modules/webpack/lib/NormalModuleFactory.js:243:5)\n at applyPluginsAsyncWaterfall (/Users/carlf/MOTDEV/front-end/node_modules/webpack/lib/NormalModuleFactory.js:94:13)\n at /Users/carlf/MOTDEV/front-end/node_modules/tapable/lib/Tapable.js:268:11\n at NormalModuleFactory.params.normalModuleFactory.plugin (/Users/carlf/MOTDEV/front-end/node_modules/webpack/lib/CompatibilityPlugin.js:52:5)\n at NormalModuleFactory.applyPluginsAsyncWaterfall (/Users/carlf/MOTDEV/front-end/node_modules/tapable/lib/Tapable.js:272:13)\n at resolver (/Users/carlf/MOTDEV/front-end/node_modules/webpack/lib/NormalModuleFactory.js:69:10)\n at process.nextTick (/Users/carlf/MOTDEV/front-end/node_modules/webpack/lib/NormalModuleFactory.js:196:7)\n at _combinedTickCallback (internal/process/next_tick.js:132:7)\n at process._tickCallback (internal/process/next_tick.js:181:9)")}},[363]); \ No newline at end of file diff --git a/dist/assets/javascripts/vendor.bundle.js b/dist/assets/javascripts/vendor.bundle.js index 2a049ba92..790b404d4 100644 --- a/dist/assets/javascripts/vendor.bundle.js +++ b/dist/assets/javascripts/vendor.bundle.js @@ -3,15 +3,15 @@ * Name: dvsa-front-end/vendor * Version: 1.3.15 * Contributors: Martin D Marriott , James Nelson , Tameem Safi - * Timestamp: June 13th 2019, 11:32:42 am + * Timestamp: September 18th 2019, 4:15:52 pm * Source: https://github.com/dvsa/front-end * */ -!function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n=window.webpackJsonp;window.webpackJsonp=function(r,i,u){for(var a,c,s,f=0,l=[];f0?o(r(t),9007199254740991):0}},function(t,e,n){t.exports=!n(6)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){"use strict";function r(t){return"[object Array]"===S.call(t)}function o(t){return"[object ArrayBuffer]"===S.call(t)}function i(t){return"undefined"!=typeof FormData&&t instanceof FormData}function u(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer}function a(t){return"string"==typeof t}function c(t){return"number"==typeof t}function s(t){return void 0===t}function f(t){return null!==t&&"object"==typeof t}function l(t){return"[object Date]"===S.call(t)}function h(t){return"[object File]"===S.call(t)}function d(t){return"[object Blob]"===S.call(t)}function p(t){return"[object Function]"===S.call(t)}function v(t){return f(t)&&p(t.pipe)}function g(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams}function y(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}function m(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)}function b(t,e){if(null!==t&&void 0!==t)if("object"!=typeof t&&(t=[t]),r(t))for(var n=0,o=t.length;nn;)o[n]=e[n++];return o},Mt=function(t,e,n){V(t,e,{get:function(){return this._d[n]}})},Pt=function(t){var e,n,r,o,i,u,a=E(t),c=arguments.length,f=c>1?arguments[1]:void 0,l=void 0!==f,h=j(a);if(void 0!=h&&!x(h)){for(u=h.call(a),r=[],e=0;!(i=u.next()).done;e++)r.push(i.value);a=r}for(l&&c>2&&(f=s(f,arguments[2],2)),e=0,n=v(a.length),o=Ot(this,n);n>e;e++)o[e]=l?f(a[e],e):a[e];return o},Tt=function(){for(var t=0,e=arguments.length,n=Ot(this,e);e>t;)n[t]=arguments[t++];return n},Ct=!!q&&i(function(){dt.call(new q(1))}),Lt=function(){return dt.apply(Ct?lt.call(At(this)):At(this),arguments)},Ft={copyWithin:function(t,e){return D.call(At(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return Z(At(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return I.apply(At(this),arguments)},filter:function(t){return jt(this,X(At(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return Q(At(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(At(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){J(At(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return nt(At(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return et(At(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return st.apply(At(this),arguments)},lastIndexOf:function(t){return ut.apply(At(this),arguments)},map:function(t){return _t(At(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return at.apply(At(this),arguments)},reduceRight:function(t){return ct.apply(At(this),arguments)},reverse:function(){for(var t,e=this,n=At(e).length,r=Math.floor(n/2),o=0;o1?arguments[1]:void 0)},sort:function(t){return ft.call(At(this),t)},subarray:function(t,e){var n=At(this),r=n.length,o=y(t,r);return new(C(n,n[yt]))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,v((void 0===e?r:y(e,r))-o))}},Nt=function(t,e){return jt(this,lt.call(At(this),t,e))},Rt=function(t){At(this);var e=St(arguments[1],1),n=this.length,r=E(t),o=v(r.length),i=0;if(o+e>n)throw H("Wrong length!");for(;i255?255:255&r),o.v[d](n*e+o.o,r,Et)},M=function(t,e){V(t,e,{get:function(){return j(this,e)},set:function(t){return k(this,e,t)},enumerable:!0})};b?(p=n(function(t,n,r,o){f(t,p,s,"_d");var i,u,a,c,l=0,d=0;if(_(n)){if(!(n instanceof K||"ArrayBuffer"==(c=w(n))||"SharedArrayBuffer"==c))return bt in n?kt(p,n):Pt.call(p,n);i=n,d=St(r,e);var y=n.byteLength;if(void 0===o){if(y%e)throw H("Wrong length!");if((u=y-d)<0)throw H("Wrong length!")}else if((u=v(o)*e)+d>y)throw H("Wrong length!");a=u/e}else a=g(n),u=a*e,i=new K(u);for(h(t,"_d",{b:i,o:d,l:u,e:a,v:new Y(i)});l0?r:n)(t)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(178),o=n(159);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(20);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(27),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},function(t,e,n){var r=n(7).f,o=n(12),i=n(5)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e){t.exports={}},function(t,e,n){var r=n(12),o=n(17),i=n(157)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,e,n){"use strict";var r=n(38),o=n(181),i=n(35),u=n(13);t.exports=n(182)(Array,"Array",function(t,e){this._t=u(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,n):"values"==e?o(0,t[n]):o(0,[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e,n){var r=n(5)("unscopables"),o=Array.prototype;void 0==o[r]&&n(11)(o,r,{}),t.exports=function(t){o[r][t]=!0}},function(t,e,n){var r=n(1);t.exports=function(t,e){if(!r(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},,function(t,e,n){var r=n(1);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(178),o=n(159).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(3),o=n(218),i=n(159),u=n(157)("IE_PROTO"),a=function(){},c=function(){var t,e=n(153)("iframe"),r=i.length;for(e.style.display="none",n(179).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("