New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

nhsuk-frontend

Package Overview
Dependencies
Maintainers
4
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nhsuk-frontend - npm Package Compare versions

Comparing version 1.0.1 to 2.0.0

dist/nhsuk-2.0.0.min.css

22

CHANGELOG.md
# NHS.UK frontend Changelog
## 2.0.0 - Mar 11, 2019
:boom: **Breaking changes**
- Hero component - Refactored hero component to not overlap with the header when zooming in / increasing the font size massively. There have been minor HTML changes so please update your code if you are using this component.([PR 411](https://github.com/nhsuk/nhsuk-frontend/pull/411)), ([Issue 400](https://github.com/nhsuk/nhsuk-frontend/issues/400))
:new: **New features**
- Summary list component - Use the summary list to summarise information, for example, a user’s responses at the end of a form.
If you are importing all styles with `@import 'node_modules/nhsuk-frontend/packages/nhsuk';` you will automatically have access to the new component when you update. Alternatively if you are importing each of the individual components separately you will need to import the component with `@import 'node_modules/nhsuk-frontend/packages/components/summary-list/summary-list';`
([Issue 384](https://github.com/nhsuk/nhsuk-frontend/issues/384))
:wrench: **Fixes**
- Button component - A fix for the :focus state to display a 4px yellow border. ([Issue 406](https://github.com/nhsuk/nhsuk-frontend/issues/406))
- JavaScript variable scope - Globally scoped variables were causing issues with JavaScript frameworks such as Angular, so they have been moved to be locally scoped within functions. However, this could be improved as we have to duplicate variables between the multiple functions, so its likely this is a temporary fix before refactoring our JavaScript to be class based. ([PR 402](https://github.com/nhsuk/nhsuk-frontend/pull/402)), ([Issue 398](https://github.com/nhsuk/nhsuk-frontend/issues/398)).
The JavaScript files will update automatically, when you update the nhsuk-frontend version and your application will work as normal.
## 1.0.1 - Feb 20, 2019

@@ -4,0 +26,0 @@

2

dist/nhsuk.js

@@ -1,1 +0,1 @@

!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=3)}([function(e,t,n){(function(e){var n,r,o,i;function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}window,i=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==u(e)&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=37)}([function(e,t,n){var r=n(1),o=n(6),i=n(7),u=n(16),a=n(18),l="prototype",s=function e(t,n,s){var c,p,d,f,h=t&e.F,m=t&e.G,v=t&e.P,y=t&e.B,_=m?r:t&e.S?r[n]||(r[n]={}):(r[n]||{})[l],b=m?o:o[n]||(o[n]={}),g=b[l]||(b[l]={});for(c in m&&(s=n),s)d=((p=!h&&_&&void 0!==_[c])?_:s)[c],f=y&&p?a(d,r):v&&"function"==typeof d?a(Function.call,d):d,_&&u(_,c,d,t&e.U),b[c]!=d&&i(b,c,f),v&&g[c]!=d&&(g[c]=d)};r.core=o,s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports=function(e){return"object"==u(e)?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(4)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){"use strict";n.r(t),n.d(t,"h",function(){return l}),n.d(t,"createElement",function(){return l}),n.d(t,"cloneElement",function(){return p}),n.d(t,"Component",function(){return M}),n.d(t,"render",function(){return D}),n.d(t,"rerender",function(){return m}),n.d(t,"options",function(){return o});var r=function(){},o={},i=[],a=[];function l(e,t){var n,u,l,s,c=a;for(s=arguments.length;2<s--;)i.push(arguments[s]);for(t&&null!=t.children&&(i.length||i.push(t.children),delete t.children);i.length;)if((u=i.pop())&&void 0!==u.pop)for(s=u.length;s--;)i.push(u[s]);else"boolean"==typeof u&&(u=null),(l="function"!=typeof e)&&(null==u?u="":"number"==typeof u?u=String(u):"string"!=typeof u&&(l=!1)),l&&n?c[c.length-1]+=u:c===a?c=[u]:c.push(u),n=l;var p=new r;return p.nodeName=e,p.children=c,p.attributes=null==t?void 0:t,p.key=null==t?void 0:t.key,void 0!==o.vnode&&o.vnode(p),p}function s(e,t){for(var n in t)e[n]=t[n];return e}var c="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout;function p(e,t){return l(e.nodeName,s(s({},e.attributes),t),2<arguments.length?[].slice.call(arguments,2):e.children)}var d=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,f=[];function h(e){!e._dirty&&(e._dirty=!0)&&1==f.push(e)&&(o.debounceRendering||c)(m)}function m(){var e,t=f;for(f=[];e=t.pop();)e._dirty&&L(e)}function v(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function y(e){var t=s({},e.attributes);t.children=e.children;var n=e.nodeName.defaultProps;if(void 0!==n)for(var r in n)void 0===t[r]&&(t[r]=n[r]);return t}function _(e){var t=e.parentNode;t&&t.removeChild(e)}function b(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"==u(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===d.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,g,a):e.removeEventListener(t,g,a),(e._listeners||(e._listeners={}))[t]=r}else if("list"!==t&&"type"!==t&&!o&&t in e){try{e[t]=null==r?"":r}catch(e){}null!=r&&!1!==r||"spellcheck"==t||e.removeAttribute(t)}else{var l=o&&t!==(t=t.replace(/^xlink:?/,""));null==r||!1===r?l?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t):"function"!=typeof r&&(l?e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),r):e.setAttribute(t,r))}else e.className=r||""}function g(e){return this._listeners[e.type](o.event&&o.event(e)||e)}var w=[],x=0,E=!1,O=!1;function S(){for(var e;e=w.pop();)o.afterMount&&o.afterMount(e),e.componentDidMount&&e.componentDidMount()}function C(e,t,n,r,o){var i=e,u=E;if(null!=t&&"boolean"!=typeof t||(t=""),"string"==typeof t||"number"==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),k(e,!0))),i.__preactattr_=!0,i;var a=t.nodeName;if("function"==typeof a)return function(e,t,n,r){for(var o=e&&e._component,i=o,u=e,a=o&&e._componentConstructor===t.nodeName,l=a,s=y(t);o&&!l&&(o=o._parentComponent);)l=o.constructor===t.nodeName;return o&&l&&(!r||o._component)?(j(o,s,3,n,r),e=o.base):(i&&!a&&(T(i),e=u=null),o=I(t.nodeName,s,n),e&&!o.nextBase&&(o.nextBase=e,u=null),j(o,s,1,n,r),e=o.base,u&&e!==u&&(u._component=null,k(u,!1))),e}(e,t,n,r);if(E="svg"===a||"foreignObject"!==a&&E,a=String(a),(!e||!v(e,a))&&(i=function(e,t){var n=t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return n.normalizedNodeName=e,n}(a,E),e)){for(;e.firstChild;)i.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild(i,e),k(e,!0)}var l=i.firstChild,s=i.__preactattr_,c=t.children;if(null==s){s=i.__preactattr_={};for(var p=i.attributes,d=p.length;d--;)s[p[d].name]=p[d].value}return!O&&c&&1===c.length&&"string"==typeof c[0]&&null!=l&&void 0!==l.splitText&&null==l.nextSibling?l.nodeValue!=c[0]&&(l.nodeValue=c[0]):(c&&c.length||null!=l)&&function(e,t,n,r,o){var i,u,a,l,s,c,p,d,f=e.childNodes,h=[],m={},y=0,b=0,g=f.length,w=0,x=t?t.length:0;if(0!==g)for(var E=0;E<g;E++){var O=f[E],S=O.__preactattr_;null!=(N=x&&S?O._component?O._component.__key:S.key:null)?(y++,m[N]=O):(S||(void 0!==O.splitText?!o||O.nodeValue.trim():o))&&(h[w++]=O)}if(0!==x)for(E=0;E<x;E++){var N;if(s=null,null!=(N=(l=t[E]).key))y&&void 0!==m[N]&&(s=m[N],m[N]=void 0,y--);else if(b<w)for(i=b;i<w;i++)if(void 0!==h[i]&&(c=u=h[i],d=o,"string"==typeof(p=l)||"number"==typeof p?void 0!==c.splitText:"string"==typeof p.nodeName?!c._componentConstructor&&v(c,p.nodeName):d||c._componentConstructor===p.nodeName)){s=u,h[i]=void 0,i===w-1&&w--,i===b&&b++;break}s=C(s,l,n,r),a=f[E],s&&s!==e&&s!==a&&(null==a?e.appendChild(s):s===a.nextSibling?_(a):e.insertBefore(s,a))}if(y)for(var E in m)void 0!==m[E]&&k(m[E],!1);for(;b<=w;)void 0!==(s=h[w--])&&k(s,!1)}(i,c,n,r,O||null!=s.dangerouslySetInnerHTML),function(e,t,n){var r;for(r in n)t&&null!=t[r]||null==n[r]||b(e,r,n[r],n[r]=void 0,E);for(r in t)"children"===r||"innerHTML"===r||r in n&&t[r]===("value"===r||"checked"===r?e[r]:n[r])||b(e,r,n[r],n[r]=t[r],E)}(i,t.attributes,s),E=u,i}function k(e,t){var n=e._component;n?T(n):(null!=e.__preactattr_&&e.__preactattr_.ref&&e.__preactattr_.ref(null),!1!==t&&null!=e.__preactattr_||_(e),N(e))}function N(e){for(e=e.lastChild;e;){var t=e.previousSibling;k(e,!0),e=t}}var A=[];function I(e,t,n){var r,o=A.length;for(e.prototype&&e.prototype.render?(r=new e(t,n),M.call(r,t,n)):((r=new M(t,n)).constructor=e,r.render=P);o--;)if(A[o].constructor===e)return r.nextBase=A[o].nextBase,A.splice(o,1),r;return r}function P(e,t,n){return this.constructor(e,n)}function j(e,t,n,r,i){e._disable||(e._disable=!0,e.__ref=t.ref,e.__key=t.key,delete t.ref,delete t.key,void 0===e.constructor.getDerivedStateFromProps&&(!e.base||i?e.componentWillMount&&e.componentWillMount():e.componentWillReceiveProps&&e.componentWillReceiveProps(t,r)),r&&r!==e.context&&(e.prevContext||(e.prevContext=e.context),e.context=r),e.prevProps||(e.prevProps=e.props),e.props=t,e._disable=!1,0!==n&&(1!==n&&!1===o.syncComponentUpdates&&e.base?h(e):L(e,1,i)),e.__ref&&e.__ref(e))}function L(e,t,n,r){if(!e._disable){var i,u,a,l=e.props,c=e.state,p=e.context,d=e.prevProps||l,f=e.prevState||c,h=e.prevContext||p,m=e.base,v=e.nextBase,_=m||v,b=e._component,g=!1,N=h;if(e.constructor.getDerivedStateFromProps&&(c=s(s({},c),e.constructor.getDerivedStateFromProps(l,c)),e.state=c),m&&(e.props=d,e.state=f,e.context=h,2!==t&&e.shouldComponentUpdate&&!1===e.shouldComponentUpdate(l,c,p)?g=!0:e.componentWillUpdate&&e.componentWillUpdate(l,c,p),e.props=l,e.state=c,e.context=p),e.prevProps=e.prevState=e.prevContext=e.nextBase=null,e._dirty=!1,!g){i=e.render(l,c,p),e.getChildContext&&(p=s(s({},p),e.getChildContext())),m&&e.getSnapshotBeforeUpdate&&(N=e.getSnapshotBeforeUpdate(d,f));var A,P,M=i&&i.nodeName;if("function"==typeof M){var D=y(i);(u=b)&&u.constructor===M&&D.key==u.__key?j(u,D,1,p,!1):(A=u,e._component=u=I(M,D,p),u.nextBase=u.nextBase||v,u._parentComponent=e,j(u,D,0,p,!1),L(u,1,n,!0)),P=u.base}else a=_,(A=b)&&(a=e._component=null),(_||1===t)&&(a&&(a._component=null),P=function(e,t,n,r,o,i){x++||(E=null!=o&&void 0!==o.ownerSVGElement,O=null!=e&&!("__preactattr_"in e));var u=C(e,t,n,r,i);return o&&u.parentNode!==o&&o.appendChild(u),--x||(O=!1,i||S()),u}(a,i,p,n||!m,_&&_.parentNode,!0));if(_&&P!==_&&u!==b){var B=_.parentNode;B&&P!==B&&(B.replaceChild(P,_),A||(_._component=null,k(_,!1)))}if(A&&T(A),(e.base=P)&&!r){for(var q=e,R=e;R=R._parentComponent;)(q=R).base=P;P._component=q,P._componentConstructor=q.constructor}}for(!m||n?w.unshift(e):g||(e.componentDidUpdate&&e.componentDidUpdate(d,f,N),o.afterUpdate&&o.afterUpdate(e));e._renderCallbacks.length;)e._renderCallbacks.pop().call(e);x||r||S()}}function T(e){o.beforeUnmount&&o.beforeUnmount(e);var t=e.base;e._disable=!0,e.componentWillUnmount&&e.componentWillUnmount(),e.base=null;var n=e._component;n?T(n):t&&(t.__preactattr_&&t.__preactattr_.ref&&t.__preactattr_.ref(null),_(e.nextBase=t),A.push(e),N(t)),e.__ref&&e.__ref(null)}function M(e,t){this._dirty=!0,this.context=t,this.props=e,this.state=this.state||{},this._renderCallbacks=[]}function D(e,t,n){return function(e,t,n,r,o,i){x++||(E=null!=o&&void 0!==o.ownerSVGElement,O=null!=e&&!("__preactattr_"in e));var u=C(e,t,n,r,i);return o&&u.parentNode!==o&&o.appendChild(u),--x||(O=!1,i||S()),u}(n,e,{},!1,t,!1)}s(M.prototype,{setState:function(e,t){this.prevState||(this.prevState=this.state),this.state=s(s({},this.state),"function"==typeof e?e(this.state,this.props):e),t&&this._renderCallbacks.push(t),h(this)},forceUpdate:function(e){e&&this._renderCallbacks.push(e),L(this,2)},render:function(){}});var B={h:l,createElement:l,cloneElement:p,Component:M,render:D,rerender:m,options:o};t.default=B},function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(8),o=n(40);e.exports=n(3)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(9),o=n(38),i=n(39),u=Object.defineProperty;t.f=n(3)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return u(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(2);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){var r=n(22);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){"use strict";var r=n(4);e.exports=function(e,t){return!!e&&r(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t,n){var r=n(0);r(r.S+r.F,"Object",{assign:n(41)})},function(e,t,n){var r=n(2),o=n(1).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){var r=n(1),o=n(7),i=n(17),u=n(10)("src"),a="toString",l=Function[a],s=(""+l).split(a);n(6).inspectSource=function(e){return l.call(e)},(e.exports=function(e,t,n,a){var l="function"==typeof n;l&&(i(n,"name")||o(n,"name",t)),e[t]!==n&&(l&&(i(n,u)||o(n,u,e[t]?""+e[t]:s.join(String(t)))),e===r?e[t]=n:a?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,a,function(){return"function"==typeof this&&this[u]||l.call(this)})},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(19);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(42),o=n(28);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){var r=n(11),o=n(12);e.exports=function(e){return r(o(e))}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(21),o=n(24),i=n(43);e.exports=function(e){return function(t,n,u){var a,l=r(t),s=o(l.length),c=i(u,s);if(e&&n!=n){for(;c<s;)if((a=l[c++])!=a)return!0}else for(;c<s;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var r=n(25),o=Math.min;e.exports=function(e){return 0<e?o(r(e),9007199254740991):0}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0<e?r:n)(e)}},function(e,t,n){var r=n(27)("keys"),o=n(10);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(6),o=n(1),i="__core-js_shared__",u=o[i]||(o[i]={});(e.exports=function(e,t){return u[e]||(u[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(44)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(12);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(8).f,o=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in o||n(3)&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(e){return""}}})},function(e,t,n){"use strict";var r=n(0),o=n(32)(1);r(r.P+r.F*!n(13)([].map,!0),"Array",{map:function(e){return o(this,e,arguments[1])}})},function(e,t,n){var r=n(18),o=n(11),i=n(29),u=n(24),a=n(47);e.exports=function(e,t){var n=1==e,l=2==e,s=3==e,c=4==e,p=6==e,d=5==e||p,f=t||a;return function(t,a,h){for(var m,v,y=i(t),_=o(y),b=r(a,h,3),g=u(_.length),w=0,x=n?f(t,g):l?f(t,0):void 0;w<g;w++)if((d||w in _)&&(v=b(m=_[w],w,y),e))if(n)x[w]=v;else if(v)switch(e){case 3:return!0;case 5:return m;case 6:return w;case 2:x.push(m)}else if(c)return!1;return p?-1:s||c?c:x}}},function(e,t,n){var r=n(22);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(27)("wks"),o=n(10),i=n(1).Symbol,u="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=u&&i[e]||(u?i:o)("Symbol."+e))}).store=r},function(e,t,n){"use strict";var r=n(0),o=n(23)(!1),i=[].indexOf,u=!!i&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(u||!n(13)(i)),"Array",{indexOf:function(e){return u?i.apply(this,arguments)||0:o(this,e,arguments[1])}})},function(e,t,n){var r=n(0);r(r.S,"Object",{create:n(52)})},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0,n(14),n(30),n(31),n(35),n(49),n(50);var r=n(5),o=function(e){return e&&e.__esModule?e:{default:e}}(n(51));function i(e){if(!e.element)throw new Error("element is not defined");if(!e.id)throw new Error("id is not defined");if(!e.source)throw new Error("source is not defined");Array.isArray(e.source)&&(e.source=u(e.source)),(0,r.render)((0,r.createElement)(o.default,e),e.element)}var u=function(e){return function(t,n){n(e.filter(function(e){return-1!==e.toLowerCase().indexOf(t.toLowerCase())}))}};i.enhanceSelectElement=function(e){if(!e.selectElement)throw new Error("selectElement is not defined");if(!e.source){var t=[].filter.call(e.selectElement.options,function(t){return t.value||e.preserveNullOptions});e.source=t.map(function(e){return e.textContent||e.innerText})}if(e.onConfirm=e.onConfirm||function(t){var n=[].filter.call(e.selectElement.options,function(e){return(e.textContent||e.innerText)===t})[0];n&&(n.selected=!0)},e.selectElement.value||void 0===e.defaultValue){var n=e.selectElement.options[e.selectElement.options.selectedIndex];e.defaultValue=n.textContent||n.innerText}void 0===e.name&&(e.name=""),void 0===e.id&&(void 0===e.selectElement.id?e.id="":e.id=e.selectElement.id),void 0===e.autoselect&&(e.autoselect=!0);var r=document.createElement("span");e.selectElement.parentNode.insertBefore(r,e.selectElement),i(Object.assign({},e,{element:r})),e.selectElement.style.display="none",e.selectElement.id=e.selectElement.id+"-select"};var a=i;t.default=a},function(e,t,n){e.exports=!n(3)&&!n(4)(function(){return 7!=Object.defineProperty(n(15)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(2);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){"use strict";var r=n(20),o=n(45),i=n(46),u=n(29),a=n(11),l=Object.assign;e.exports=!l||n(4)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=r})?function(e,t){for(var n=u(e),l=arguments.length,s=1,c=o.f,p=i.f;s<l;)for(var d,f=a(arguments[s++]),h=c?r(f).concat(c(f)):r(f),m=h.length,v=0;v<m;)p.call(f,d=h[v++])&&(n[d]=f[d]);return n}:l},function(e,t,n){var r=n(17),o=n(21),i=n(23)(!1),u=n(26)("IE_PROTO");e.exports=function(e,t){var n,a=o(e),l=0,s=[];for(n in a)n!=u&&r(a,n)&&s.push(n);for(;t.length>l;)r(a,n=t[l++])&&(~i(s,n)||s.push(n));return s}},function(e,t,n){var r=n(25),o=Math.max,i=Math.min;e.exports=function(e,t){return(e=r(e))<0?o(e+t,0):i(e,t)}},function(e,t){e.exports=!1},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(48);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){var r=n(2),o=n(33),i=n(34)("species");e.exports=function(e){var t;return o(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!o(t.prototype)||(t=void 0),r(t)&&null===(t=t[i])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){"use strict";var r=n(0),o=n(32)(2);r(r.P+r.F*!n(13)([].filter,!0),"Array",{filter:function(e){return o(this,e,arguments[1])}})},function(e,t,n){var r=n(0);r(r.S,"Array",{isArray:n(33)})},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0,n(14),n(36),n(31),n(35),n(30),n(55),n(58);var r=n(5),o=u(n(60)),i=u(n(61));function u(e){return e&&e.__esModule?e:{default:e}}function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var s,c={13:"enter",27:"escape",32:"space",38:"up",40:"down"},p=((s=document.createElement("x")).style.cssText="pointer-events:auto","auto"===s.style.pointerEvents);function d(){return!(!navigator.userAgent.match(/(iPod|iPhone|iPad)/g)||!navigator.userAgent.match(/AppleWebKit/g))}var f=function(e){function t(t){var n;return(n=e.call(this,t)||this).elementReferences={},n.state={focused:null,hovered:null,clicked:null,menuOpen:!1,options:t.defaultValue?[t.defaultValue]:[],query:t.defaultValue,selected:null},n.handleComponentBlur=n.handleComponentBlur.bind(l(l(n))),n.handleKeyDown=n.handleKeyDown.bind(l(l(n))),n.handleUpArrow=n.handleUpArrow.bind(l(l(n))),n.handleDownArrow=n.handleDownArrow.bind(l(l(n))),n.handleEnter=n.handleEnter.bind(l(l(n))),n.handlePrintableKey=n.handlePrintableKey.bind(l(l(n))),n.handleListMouseLeave=n.handleListMouseLeave.bind(l(l(n))),n.handleOptionBlur=n.handleOptionBlur.bind(l(l(n))),n.handleOptionClick=n.handleOptionClick.bind(l(l(n))),n.handleOptionFocus=n.handleOptionFocus.bind(l(l(n))),n.handleOptionMouseEnter=n.handleOptionMouseEnter.bind(l(l(n))),n.handleInputBlur=n.handleInputBlur.bind(l(l(n))),n.handleInputChange=n.handleInputChange.bind(l(l(n))),n.handleInputFocus=n.handleInputFocus.bind(l(l(n))),n.pollInputElement=n.pollInputElement.bind(l(l(n))),n.getDirectInputChanges=n.getDirectInputChanges.bind(l(l(n))),n}!function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(t,e);var n=t.prototype;return n.componentDidMount=function(){this.pollInputElement()},n.componentWillUnmount=function(){clearTimeout(this.$pollInput),clearTimeout(this.$blurInput)},n.pollInputElement=function(){var e=this;this.getDirectInputChanges(),this.$pollInput=setTimeout(function(){e.pollInputElement()},100)},n.getDirectInputChanges=function(){var e=this.elementReferences[-1];e&&e.value!==this.state.query&&this.handleInputChange({target:{value:e.value}})},n.componentDidUpdate=function(e,t){var n=this.state,r=n.focused,o=n.clicked,i=null===r,u=t.focused!==r;(u&&!i||null!==o)&&this.elementReferences[r].focus();var a=-1===r,l=u&&null===t.focused;if(a&&l){var s=this.elementReferences[r];s.setSelectionRange(0,s.value.length)}},n.hasAutoselect=function(){return!d()&&this.props.autoselect},n.templateInputValue=function(e){var t=this.props.templates&&this.props.templates.inputValue;return t?t(e):e},n.templateSuggestion=function(e){var t=this.props.templates&&this.props.templates.suggestion;return t?t(e):e},n.handleComponentBlur=function(e){var t,n=this.state,r=n.options,o=n.query,i=n.selected;this.props.confirmOnBlur?(t=e.query||o,this.props.onConfirm(r[i])):t=o,this.setState({focused:null,clicked:null,menuOpen:e.menuOpen||!1,query:t,selected:null})},n.handleListMouseLeave=function(e){this.setState({hovered:null})},n.handleOptionBlur=function(e,t){var n=this.state,r=n.focused,o=n.clicked,i=n.menuOpen,u=n.options,a=n.selected,l=null===e.relatedTarget&&null===o,s=e.relatedTarget===this.elementReferences[-1],c=r!==t&&-1!==r;if(!c&&l||!c&&!s){var p=i&&d();this.handleComponentBlur({menuOpen:p,query:this.templateInputValue(u[a])})}},n.handleInputBlur=function(e){var t=this,n=this.state,r=n.focused,o=n.menuOpen,i=n.options,u=n.query,a=n.selected,l=-1!==r;if(clearTimeout(this.$blurInput),!l){var s=o&&d(),c=d()?u:this.templateInputValue(i[a]);this.$blurInput=setTimeout(function(){return t.handleComponentBlur({menuOpen:s,query:c})},200)}},n.handleInputChange=function(e){var t=this,n=this.props,r=n.minLength,o=n.source,i=n.showAllValues,u=this.hasAutoselect(),a=e.target.value,l=0===a.length,s=this.state.query.length!==a.length,c=a.length>=r;this.setState({query:a}),i||!l&&s&&c?o(a,function(e){var n=0<e.length;t.setState({menuOpen:n,options:e,selected:u&&n?0:-1})}):!l&&c||this.setState({menuOpen:!1,options:[]})},n.handleInputClick=function(e){this.handleInputChange(e)},n.handleInputFocus=function(e){this.setState({focused:-1})},n.handleOptionFocus=function(e){this.setState({focused:e,hovered:null,selected:e})},n.handleOptionMouseEnter=function(e,t){d()||this.setState({hovered:t})},n.handleOptionClick=function(e,t){var n=this.state.options[t],r=this.templateInputValue(n);clearTimeout(this.$blurInput),this.props.onConfirm(n),this.setState({focused:-1,clicked:t,hovered:null,menuOpen:!1,query:r,selected:-1}),this.forceUpdate()},n.handleUpArrow=function(e){e.preventDefault();var t=this.state,n=t.menuOpen,r=t.selected;-1!==r&&n&&this.handleOptionFocus(r-1)},n.handleDownArrow=function(e){var t=this;if(e.preventDefault(),this.props.showAllValues&&!1===this.state.menuOpen)e.preventDefault(),this.props.source("",function(e){t.setState({menuOpen:!0,options:e,selected:0,focused:0,hovered:null})});else if(!0===this.state.menuOpen){var n=this.state,r=n.menuOpen,o=n.options,i=n.selected;i!==o.length-1&&r&&this.handleOptionFocus(i+1)}},n.handleSpace=function(e){var t=this;this.props.showAllValues&&!1===this.state.menuOpen&&""===this.state.query&&(e.preventDefault(),this.props.source("",function(e){t.setState({menuOpen:!0,options:e})})),-1!==this.state.focused&&(e.preventDefault(),this.handleOptionClick(e,this.state.focused))},n.handleEnter=function(e){this.state.menuOpen&&(e.preventDefault(),0<=this.state.selected&&this.handleOptionClick(e,this.state.selected))},n.handlePrintableKey=function(e){var t=this.elementReferences[-1];e.target===t||t.focus()},n.handleKeyDown=function(e){switch(c[e.keyCode]){case"up":this.handleUpArrow(e);break;case"down":this.handleDownArrow(e);break;case"space":this.handleSpace(e);break;case"enter":this.handleEnter(e);break;case"escape":this.handleComponentBlur({query:this.state.query});break;default:(function(e){return 47<e&&e<58||32===e||8===e||64<e&&e<91||95<e&&e<112||185<e&&e<193||218<e&&e<223})(e.keyCode)&&this.handlePrintableKey(e)}},n.render=function(){var e,t=this,n=this.props,i=n.cssNamespace,u=n.displayMenu,l=n.id,s=n.minLength,c=n.name,d=n.placeholder,f=n.required,h=n.showAllValues,m=n.tNoResults,v=n.tStatusQueryTooShort,y=n.tStatusNoResults,_=n.tStatusSelectedOption,b=n.tStatusResults,g=n.dropdownArrow,w=this.state,x=w.focused,E=w.hovered,O=w.menuOpen,S=w.options,C=w.query,k=w.selected,N=this.hasAutoselect(),A=-1===x,I=0===S.length,P=0!==C.length,j=C.length>=s,L=this.props.showNoOptionsFound&&A&&I&&P&&j,T=i+"__wrapper",M=i+"__input",D=null!==x?" "+M+"--focused":"",B=this.props.showAllValues?" "+M+"--show-all-values":" "+M+"--default",q=i+"__dropdown-arrow-down",R=-1!==x&&null!==x,F=i+"__menu",V=F+"--"+u,U=F+"--"+(O||L?"visible":"hidden"),K=i+"__option",W=i+"__hint",H=this.templateInputValue(S[k]),z=H&&0===H.toLowerCase().indexOf(C.toLowerCase())&&N?C+H.substr(C.length):"",$=p&&z;return h&&"string"==typeof(e=g({className:q}))&&(e=(0,r.createElement)("div",{className:i+"__dropdown-arrow-down-wrapper",dangerouslySetInnerHTML:{__html:e}})),(0,r.createElement)("div",{className:T,onKeyDown:this.handleKeyDown,role:"combobox","aria-expanded":O?"true":"false"},(0,r.createElement)(o.default,{length:S.length,queryLength:C.length,minQueryLength:s,selectedOption:this.templateInputValue(S[k]),selectedOptionIndex:k,tQueryTooShort:v,tNoResults:y,tSelectedOption:_,tResults:b}),$&&(0,r.createElement)("span",null,(0,r.createElement)("input",{className:W,readonly:!0,tabIndex:"-1",value:z})),(0,r.createElement)("input",a({"aria-activedescendant":!!R&&l+"__option--"+x,"aria-owns":l+"__listbox",autoComplete:"off",className:""+M+D+B,id:l,onClick:function(e){return t.handleInputClick(e)},onBlur:this.handleInputBlur},function(e){return{onInput:e}}(this.handleInputChange),{onFocus:this.handleInputFocus,name:c,placeholder:d,ref:function(e){t.elementReferences[-1]=e},type:"text",role:"textbox",required:f,value:C})),e,(0,r.createElement)("ul",{className:F+" "+V+" "+U,onMouseLeave:function(e){return t.handleListMouseLeave(e)},id:l+"__listbox",role:"listbox"},S.map(function(e,n){var o=(-1===x?k===n:x===n)&&null===E?" "+K+"--focused":"",i=n%2?" "+K+"--odd":"";return(0,r.createElement)("li",{"aria-selected":x===n,className:""+K+o+i,dangerouslySetInnerHTML:{__html:t.templateSuggestion(e)},id:l+"__option--"+n,key:n,onBlur:function(e){return t.handleOptionBlur(e,n)},onClick:function(e){return t.handleOptionClick(e,n)},onMouseEnter:function(e){return t.handleOptionMouseEnter(e,n)},ref:function(e){t.elementReferences[n]=e},role:"option",tabIndex:"-1"})}),L&&(0,r.createElement)("li",{className:K+" "+K+"--no-results"},m())))},t}(r.Component);(t.default=f).defaultProps={autoselect:!1,cssNamespace:"autocomplete",defaultValue:"",displayMenu:"inline",minLength:0,name:"input-autocomplete",placeholder:"",onConfirm:function(){},confirmOnBlur:!0,showNoOptionsFound:!0,showAllValues:!1,required:!1,tNoResults:function(){return"No results found"},dropdownArrow:i.default}},function(e,t,n){var r=n(9),o=n(53),i=n(28),u=n(26)("IE_PROTO"),a=function(){},l="prototype",s=function(){var e,t=n(15)("iframe"),r=i.length;for(t.style.display="none",n(54).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),s=e.F;r--;)delete s[l][i[r]];return s()};e.exports=Object.create||function(e,t){var n;return null!==e?(a[l]=r(e),n=new a,a[l]=null,n[u]=e):n=s(),void 0===t?n:o(n,t)}},function(e,t,n){var r=n(8),o=n(9),i=n(20);e.exports=n(3)?Object.defineProperties:function(e,t){o(e);for(var n,u=i(t),a=u.length,l=0;l<a;)r.f(e,n=u[l++],t[n]);return e}},function(e,t,n){var r=n(1).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(0);r(r.P,"Function",{bind:n(56)})},function(e,t,n){"use strict";var r=n(19),o=n(2),i=n(57),u=[].slice,a={};e.exports=Function.bind||function(e){var t=r(this),n=u.call(arguments,1),l=function r(){var o=n.concat(u.call(arguments));return this instanceof r?function(e,t,n){if(!(t in a)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";a[t]=Function("F,a","return new F("+r.join(",")+")")}return a[t](e,n)}(t,o.length,o):i(t,o,e)};return o(t.prototype)&&(l.prototype=t.prototype),l}},function(e,t){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){n(59)("match",1,function(e,t,n){return[function(n){"use strict";var r=e(this),o=null==n?void 0:n[t];return void 0!==o?o.call(n,r):new RegExp(n)[t](String(r))},n]})},function(e,t,n){"use strict";var r=n(7),o=n(16),i=n(4),u=n(12),a=n(34);e.exports=function(e,t,n){var l=a(e),s=n(u,l,""[e]),c=s[0],p=s[1];i(function(){var t={};return t[l]=function(){return 7},7!=""[e](t)})&&(o(String.prototype,e,c),r(RegExp.prototype,l,2==t?function(e,t){return p.call(e,this,t)}:function(e){return p.call(e,this)}))}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0,n(36);var r=n(5),o=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={bump:!1},t}!function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(t,e);var n=t.prototype;return n.componentWillReceiveProps=function(e){e.queryLength!==this.props.queryLength&&this.setState(function(e){return{bump:!e.bump}})},n.render=function(){var e,t=this.props,n=t.length,o=t.queryLength,i=t.minQueryLength,u=t.selectedOption,a=t.selectedOptionIndex,l=t.tQueryTooShort,s=t.tNoResults,c=t.tSelectedOption,p=t.tResults,d=this.state.bump,f=o<i,h=0===n,m=u?c(u,n,a):"";return e=f?l(i):h?s():p(n,m),(0,r.createElement)("div",{"aria-atomic":"true","aria-live":"polite",role:"status",style:{border:"0",clip:"rect(0 0 0 0)",height:"1px",marginBottom:"-1px",marginRight:"-1px",overflow:"hidden",padding:"0",position:"absolute",whiteSpace:"nowrap",width:"1px"}},e,(0,r.createElement)("span",null,d?",":",,"))},t}(r.Component);(t.default=o).defaultProps={tQueryTooShort:function(e){return"Type in "+e+" or more characters for results."},tNoResults:function(){return"No search results."},tSelectedOption:function(e,t,n){return e+" ("+(n+1)+" of "+t+") is selected."},tResults:function(e,t){return e+" "+(1===e?"result":"results")+" "+(1===e?"is":"are")+" available. "+t}}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=n(5);t.default=function(e){var t=e.className;return(0,r.createElement)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:t,focusable:"false"},(0,r.createElement)("g",{stroke:"none",fill:"none","fill-rule":"evenodd"},(0,r.createElement)("polygon",{fill:"#000000",points:"0 0 22 0 11 17"})))}}]).default},"object"==u(t)&&"object"==u(e)?e.exports=i():(r=[],void 0===(o="function"==typeof(n=i)?n.apply(t,r):n)||(e.exports=o))}).call(this,n(1)(e))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){!function(e){"use strict";var t=e.NHSUK||{};t.details={NATIVE_DETAILS:"boolean"==typeof document.createElement("details").open,KEY_ENTER:13,KEY_SPACE:32,started:!1,addEvent:function(e,t,n){e.addEventListener?e.addEventListener(t,function(e){n(e,e.target)},!1):e.attachEvent&&e.attachEvent("on"+t,function(e){n(e,e.srcElement)})},removeEvent:function(e,t){e.removeEventListener?e.removeEventListener(t,function(e){},!1):e.detachEvent&&e.detachEvent("on"+t,function(e){})},charCode:function(e){return"number"==typeof e.which?e.which:e.keyCode},preventDefault:function(e){e.preventDefault?e.preventDefault():e.returnValue=!1},addClickEvent:function(e,n){t.details.addEvent(e,"keypress",function(e,r){t.details.charCode(e)!==t.details.KEY_ENTER&&t.details.charCode(e)!==t.details.KEY_SPACE||"summary"===r.nodeName.toLowerCase()&&(t.details.preventDefault(e),r.click?r.click():n(e,r))}),t.details.addEvent(e,"keyup",function(e,n){t.details.charCode(e)===t.details.KEY_SPACE&&"SUMMARY"===n.nodeName&&t.details.preventDefault(e)}),t.details.addEvent(e,"click",function(e,t){n(e,t)})},getAncestor:function(e,t){do{if(!e||e.nodeName.toLowerCase()===t)break;e=e.parentNode}while(e);return e},addDetailsPolyfill:function(e,n){if(n=n||document.body,!t.details.started&&(t.details.started=!0,0!==(e=n.getElementsByTagName("details")).length)){for(var r=e.length,o=0;o<r;o++){var i=e[o];if(i.__summary=i.getElementsByTagName("summary").item(0),i.__content=i.getElementsByTagName("div").item(0),!i.__summary||!i.__content)return;i.__content.id||(i.__content.id="details-content-"+o),i.__summary.setAttribute("role","button"),i.__summary.setAttribute("aria-controls",i.__content.id),t.details.NATIVE_DETAILS||(i.__summary.tabIndex=0),!0===(null!==i.getAttribute("open"))?(i.__summary.setAttribute("aria-expanded","true"),i.__content.setAttribute("aria-hidden","false")):(i.__summary.setAttribute("aria-expanded","false"),i.__content.setAttribute("aria-hidden","true"),t.details.NATIVE_DETAILS||(i.__content.style.display="none")),i.__summary.__details=i}t.details.addClickEvent(n,function(e,n){return!(n=t.details.getAncestor(n,"summary"))||t.details.statechange(n)})}},statechange:function(e){var n="true"===e.__details.__summary.getAttribute("aria-expanded"),r="true"===e.__details.__content.getAttribute("aria-hidden");(e.__details.__summary.setAttribute("aria-expanded",n?"false":"true"),e.__details.__content.setAttribute("aria-hidden",r?"false":"true"),t.details.NATIVE_DETAILS)||(e.__details.__content.style.display=n?"none":"",null!==e.__details.getAttribute("open")?e.__details.removeAttribute("open"):e.__details.setAttribute("open","open"));return!0},destroy:function(e){t.details.removeEvent(e,"click")},init:function(e){t.details.addEvent(document,"DOMContentLoaded",t.details.addDetailsPolyfill),t.details.addEvent(window,"load",t.details.addDetailsPolyfill)}},e.NHSUK=t}(window),NHSUK.details.init()},function(e,t,n){"use strict";n.r(t);var r=document.querySelector("#nhsuk-feedback-banner"),o=document.querySelector("#nhsuk-feedback-banner-close"),i=document.querySelector("#nhsuk-footer");function u(){r&&(r.style.display="none")}function a(){var e=!1,t=!1;t=setInterval(function(){var n,o,u;e&&(e=!1,clearTimeout(t),n=i.getBoundingClientRect(),o=n.top,u=n.bottom,o<window.innerHeight&&u>=0?r.classList.add("js-inview"):r.classList.remove("js-inview"))},500),e=!0}function l(e){setTimeout(function(){r&&(r.style.display="block")},e)}var s=function(e){l(e),o&&o.addEventListener("click",u),r&&window.addEventListener("scroll",a)};function c(e,t){var n=e.className,r=new RegExp("\\b "+t+"\\b"),o=n.match(r);t=t.replace(/\s+/g,""),e.className=o?n.replace(r,""):n+" "+t}var p=document.querySelector("#toggle-search"),d=document.querySelector("#close-search"),f=document.querySelector("#wrap-search"),h=document.querySelector("#content-header");function m(e){e.preventDefault(),p.hasAttribute("aria-expanded")?p.removeAttribute("aria-expanded"):p.setAttribute("aria-expanded","true"),c(p,"is-active"),c(f,"js-show"),c(h,"js-show")}var v=document.querySelector("#toggle-menu"),y=document.querySelector("#close-menu"),_=document.querySelector("#header-navigation");function b(e){e.preventDefault(),v.hasAttribute("aria-expanded")?v.removeAttribute("aria-expanded"):v.setAttribute("aria-expanded","true"),c(v,"is-active"),c(_,"js-show")}var g=function(){p&&p.addEventListener("click",m),d&&d.addEventListener("click",m),v&&v.addEventListener("click",b),y&&y.addEventListener("click",b)},w=document.querySelector(".nhsuk-skip-link"),x=document.getElementsByTagName("H1")[0];function E(){w&&x&&w.addEventListener("click",function(e){e.preventDefault(),x.setAttribute("tabIndex","-1"),x.focus()})}function O(){w&&x&&x.addEventListener("blur",function(e){e.preventDefault(),x.removeAttribute("tabIndex")})}var S=function(){E(),O()},C=n(0),k=n.n(C);function N(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A(){var e=document.getElementById("wrap-search");if(e){var t=e.getBoundingClientRect(),n=document.getElementById("search-field__listbox");n.style.width=t.width+"px",n.style.top=t.bottom+"px"}}function I(e,t){var n=function(e){return"".concat("https://nhs.funnelback.co.uk/s/suggest.json","?collection=nhs-meta&partial_query=").concat(e,"&sort=0&fmt=json++&profile=&show=").concat(10)}(e),r=new XMLHttpRequest;r.open("GET",n),r.onload=function(){if(200===r.status){var e=JSON.parse(r.responseText).map(function(e){return e.disp});t(e)}},r.send()}document.getElementById("wrap-search")&&window.addEventListener("load",function(e){var t;A(),window.addEventListener("resize",function(){t||(t=setTimeout(function(){t=null,A()},66))},!1)});var P=function(e){var t=e&&e.id?e.id:"search-field",n=document.getElementById(t);if(n){var r=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){N(e,t,n[t])})}return e}({},{element:document.querySelector("#autocomplete-container"),id:t,minLength:2,placeholder:n.placeholder,confirmOnBlur:!1,onConfirm:function(e){window.open("https://www.nhs.uk/search?collection=nhs-meta&query="+e,"_self")},source:I,templates:{suggestion:function(e){var t=e.length>36?"...":"",n=e.substring(0,36)+t;return'<svg class="nhsuk-icon nhsuk-icon__search" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true"><path d="M19.71 18.29l-4.11-4.1a7 7 0 1 0-1.41 1.41l4.1 4.11a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42zM5 10a5 5 0 1 1 5 5 5 5 0 0 1-5-5z"></path></svg><a href="https://www.nhs.uk/search?collection=nhs-meta&query='+e+'">'+n+"</a>"}}},e),o=document.getElementById(t);o.parentNode.removeChild(o),k()(r)}};n(2);document.addEventListener("DOMContentLoaded",function(){s(3e3),g(),S(),P()})}]);
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=3)}([function(e,t,n){(function(e){var n,r,o,i;function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}window,i=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==u(e)&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=37)}([function(e,t,n){var r=n(1),o=n(6),i=n(7),u=n(16),a=n(18),l="prototype",s=function e(t,n,s){var c,d,p,f,h=t&e.F,m=t&e.G,v=t&e.P,y=t&e.B,_=m?r:t&e.S?r[n]||(r[n]={}):(r[n]||{})[l],b=m?o:o[n]||(o[n]={}),g=b[l]||(b[l]={});for(c in m&&(s=n),s)p=((d=!h&&_&&void 0!==_[c])?_:s)[c],f=y&&d?a(p,r):v&&"function"==typeof p?a(Function.call,p):p,_&&u(_,c,p,t&e.U),b[c]!=p&&i(b,c,f),v&&g[c]!=p&&(g[c]=p)};r.core=o,s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports=function(e){return"object"==u(e)?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(4)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){"use strict";n.r(t),n.d(t,"h",function(){return l}),n.d(t,"createElement",function(){return l}),n.d(t,"cloneElement",function(){return d}),n.d(t,"Component",function(){return M}),n.d(t,"render",function(){return B}),n.d(t,"rerender",function(){return m}),n.d(t,"options",function(){return o});var r=function(){},o={},i=[],a=[];function l(e,t){var n,u,l,s,c=a;for(s=arguments.length;2<s--;)i.push(arguments[s]);for(t&&null!=t.children&&(i.length||i.push(t.children),delete t.children);i.length;)if((u=i.pop())&&void 0!==u.pop)for(s=u.length;s--;)i.push(u[s]);else"boolean"==typeof u&&(u=null),(l="function"!=typeof e)&&(null==u?u="":"number"==typeof u?u=String(u):"string"!=typeof u&&(l=!1)),l&&n?c[c.length-1]+=u:c===a?c=[u]:c.push(u),n=l;var d=new r;return d.nodeName=e,d.children=c,d.attributes=null==t?void 0:t,d.key=null==t?void 0:t.key,void 0!==o.vnode&&o.vnode(d),d}function s(e,t){for(var n in t)e[n]=t[n];return e}var c="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout;function d(e,t){return l(e.nodeName,s(s({},e.attributes),t),2<arguments.length?[].slice.call(arguments,2):e.children)}var p=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,f=[];function h(e){!e._dirty&&(e._dirty=!0)&&1==f.push(e)&&(o.debounceRendering||c)(m)}function m(){var e,t=f;for(f=[];e=t.pop();)e._dirty&&L(e)}function v(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function y(e){var t=s({},e.attributes);t.children=e.children;var n=e.nodeName.defaultProps;if(void 0!==n)for(var r in n)void 0===t[r]&&(t[r]=n[r]);return t}function _(e){var t=e.parentNode;t&&t.removeChild(e)}function b(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"==u(r)){if("string"!=typeof n)for(var i in n)i in r||(e.style[i]="");for(var i in r)e.style[i]="number"==typeof r[i]&&!1===p.test(i)?r[i]+"px":r[i]}}else if("dangerouslySetInnerHTML"===t)r&&(e.innerHTML=r.__html||"");else if("o"==t[0]&&"n"==t[1]){var a=t!==(t=t.replace(/Capture$/,""));t=t.toLowerCase().substring(2),r?n||e.addEventListener(t,g,a):e.removeEventListener(t,g,a),(e._listeners||(e._listeners={}))[t]=r}else if("list"!==t&&"type"!==t&&!o&&t in e){try{e[t]=null==r?"":r}catch(e){}null!=r&&!1!==r||"spellcheck"==t||e.removeAttribute(t)}else{var l=o&&t!==(t=t.replace(/^xlink:?/,""));null==r||!1===r?l?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t):"function"!=typeof r&&(l?e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),r):e.setAttribute(t,r))}else e.className=r||""}function g(e){return this._listeners[e.type](o.event&&o.event(e)||e)}var w=[],x=0,E=!1,S=!1;function O(){for(var e;e=w.pop();)o.afterMount&&o.afterMount(e),e.componentDidMount&&e.componentDidMount()}function C(e,t,n,r,o){var i=e,u=E;if(null!=t&&"boolean"!=typeof t||(t=""),"string"==typeof t||"number"==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),k(e,!0))),i.__preactattr_=!0,i;var a=t.nodeName;if("function"==typeof a)return function(e,t,n,r){for(var o=e&&e._component,i=o,u=e,a=o&&e._componentConstructor===t.nodeName,l=a,s=y(t);o&&!l&&(o=o._parentComponent);)l=o.constructor===t.nodeName;return o&&l&&(!r||o._component)?(j(o,s,3,n,r),e=o.base):(i&&!a&&(T(i),e=u=null),o=I(t.nodeName,s,n),e&&!o.nextBase&&(o.nextBase=e,u=null),j(o,s,1,n,r),e=o.base,u&&e!==u&&(u._component=null,k(u,!1))),e}(e,t,n,r);if(E="svg"===a||"foreignObject"!==a&&E,a=String(a),(!e||!v(e,a))&&(i=function(e,t){var n=t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return n.normalizedNodeName=e,n}(a,E),e)){for(;e.firstChild;)i.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild(i,e),k(e,!0)}var l=i.firstChild,s=i.__preactattr_,c=t.children;if(null==s){s=i.__preactattr_={};for(var d=i.attributes,p=d.length;p--;)s[d[p].name]=d[p].value}return!S&&c&&1===c.length&&"string"==typeof c[0]&&null!=l&&void 0!==l.splitText&&null==l.nextSibling?l.nodeValue!=c[0]&&(l.nodeValue=c[0]):(c&&c.length||null!=l)&&function(e,t,n,r,o){var i,u,a,l,s,c,d,p,f=e.childNodes,h=[],m={},y=0,b=0,g=f.length,w=0,x=t?t.length:0;if(0!==g)for(var E=0;E<g;E++){var S=f[E],O=S.__preactattr_;null!=(N=x&&O?S._component?S._component.__key:O.key:null)?(y++,m[N]=S):(O||(void 0!==S.splitText?!o||S.nodeValue.trim():o))&&(h[w++]=S)}if(0!==x)for(E=0;E<x;E++){var N;if(s=null,null!=(N=(l=t[E]).key))y&&void 0!==m[N]&&(s=m[N],m[N]=void 0,y--);else if(b<w)for(i=b;i<w;i++)if(void 0!==h[i]&&(c=u=h[i],p=o,"string"==typeof(d=l)||"number"==typeof d?void 0!==c.splitText:"string"==typeof d.nodeName?!c._componentConstructor&&v(c,d.nodeName):p||c._componentConstructor===d.nodeName)){s=u,h[i]=void 0,i===w-1&&w--,i===b&&b++;break}s=C(s,l,n,r),a=f[E],s&&s!==e&&s!==a&&(null==a?e.appendChild(s):s===a.nextSibling?_(a):e.insertBefore(s,a))}if(y)for(var E in m)void 0!==m[E]&&k(m[E],!1);for(;b<=w;)void 0!==(s=h[w--])&&k(s,!1)}(i,c,n,r,S||null!=s.dangerouslySetInnerHTML),function(e,t,n){var r;for(r in n)t&&null!=t[r]||null==n[r]||b(e,r,n[r],n[r]=void 0,E);for(r in t)"children"===r||"innerHTML"===r||r in n&&t[r]===("value"===r||"checked"===r?e[r]:n[r])||b(e,r,n[r],n[r]=t[r],E)}(i,t.attributes,s),E=u,i}function k(e,t){var n=e._component;n?T(n):(null!=e.__preactattr_&&e.__preactattr_.ref&&e.__preactattr_.ref(null),!1!==t&&null!=e.__preactattr_||_(e),N(e))}function N(e){for(e=e.lastChild;e;){var t=e.previousSibling;k(e,!0),e=t}}var A=[];function I(e,t,n){var r,o=A.length;for(e.prototype&&e.prototype.render?(r=new e(t,n),M.call(r,t,n)):((r=new M(t,n)).constructor=e,r.render=P);o--;)if(A[o].constructor===e)return r.nextBase=A[o].nextBase,A.splice(o,1),r;return r}function P(e,t,n){return this.constructor(e,n)}function j(e,t,n,r,i){e._disable||(e._disable=!0,e.__ref=t.ref,e.__key=t.key,delete t.ref,delete t.key,void 0===e.constructor.getDerivedStateFromProps&&(!e.base||i?e.componentWillMount&&e.componentWillMount():e.componentWillReceiveProps&&e.componentWillReceiveProps(t,r)),r&&r!==e.context&&(e.prevContext||(e.prevContext=e.context),e.context=r),e.prevProps||(e.prevProps=e.props),e.props=t,e._disable=!1,0!==n&&(1!==n&&!1===o.syncComponentUpdates&&e.base?h(e):L(e,1,i)),e.__ref&&e.__ref(e))}function L(e,t,n,r){if(!e._disable){var i,u,a,l=e.props,c=e.state,d=e.context,p=e.prevProps||l,f=e.prevState||c,h=e.prevContext||d,m=e.base,v=e.nextBase,_=m||v,b=e._component,g=!1,N=h;if(e.constructor.getDerivedStateFromProps&&(c=s(s({},c),e.constructor.getDerivedStateFromProps(l,c)),e.state=c),m&&(e.props=p,e.state=f,e.context=h,2!==t&&e.shouldComponentUpdate&&!1===e.shouldComponentUpdate(l,c,d)?g=!0:e.componentWillUpdate&&e.componentWillUpdate(l,c,d),e.props=l,e.state=c,e.context=d),e.prevProps=e.prevState=e.prevContext=e.nextBase=null,e._dirty=!1,!g){i=e.render(l,c,d),e.getChildContext&&(d=s(s({},d),e.getChildContext())),m&&e.getSnapshotBeforeUpdate&&(N=e.getSnapshotBeforeUpdate(p,f));var A,P,M=i&&i.nodeName;if("function"==typeof M){var B=y(i);(u=b)&&u.constructor===M&&B.key==u.__key?j(u,B,1,d,!1):(A=u,e._component=u=I(M,B,d),u.nextBase=u.nextBase||v,u._parentComponent=e,j(u,B,0,d,!1),L(u,1,n,!0)),P=u.base}else a=_,(A=b)&&(a=e._component=null),(_||1===t)&&(a&&(a._component=null),P=function(e,t,n,r,o,i){x++||(E=null!=o&&void 0!==o.ownerSVGElement,S=null!=e&&!("__preactattr_"in e));var u=C(e,t,n,r,i);return o&&u.parentNode!==o&&o.appendChild(u),--x||(S=!1,i||O()),u}(a,i,d,n||!m,_&&_.parentNode,!0));if(_&&P!==_&&u!==b){var D=_.parentNode;D&&P!==D&&(D.replaceChild(P,_),A||(_._component=null,k(_,!1)))}if(A&&T(A),(e.base=P)&&!r){for(var q=e,R=e;R=R._parentComponent;)(q=R).base=P;P._component=q,P._componentConstructor=q.constructor}}for(!m||n?w.unshift(e):g||(e.componentDidUpdate&&e.componentDidUpdate(p,f,N),o.afterUpdate&&o.afterUpdate(e));e._renderCallbacks.length;)e._renderCallbacks.pop().call(e);x||r||O()}}function T(e){o.beforeUnmount&&o.beforeUnmount(e);var t=e.base;e._disable=!0,e.componentWillUnmount&&e.componentWillUnmount(),e.base=null;var n=e._component;n?T(n):t&&(t.__preactattr_&&t.__preactattr_.ref&&t.__preactattr_.ref(null),_(e.nextBase=t),A.push(e),N(t)),e.__ref&&e.__ref(null)}function M(e,t){this._dirty=!0,this.context=t,this.props=e,this.state=this.state||{},this._renderCallbacks=[]}function B(e,t,n){return function(e,t,n,r,o,i){x++||(E=null!=o&&void 0!==o.ownerSVGElement,S=null!=e&&!("__preactattr_"in e));var u=C(e,t,n,r,i);return o&&u.parentNode!==o&&o.appendChild(u),--x||(S=!1,i||O()),u}(n,e,{},!1,t,!1)}s(M.prototype,{setState:function(e,t){this.prevState||(this.prevState=this.state),this.state=s(s({},this.state),"function"==typeof e?e(this.state,this.props):e),t&&this._renderCallbacks.push(t),h(this)},forceUpdate:function(e){e&&this._renderCallbacks.push(e),L(this,2)},render:function(){}});var D={h:l,createElement:l,cloneElement:d,Component:M,render:B,rerender:m,options:o};t.default=D},function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(8),o=n(40);e.exports=n(3)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(9),o=n(38),i=n(39),u=Object.defineProperty;t.f=n(3)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return u(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(2);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){var r=n(22);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){"use strict";var r=n(4);e.exports=function(e,t){return!!e&&r(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t,n){var r=n(0);r(r.S+r.F,"Object",{assign:n(41)})},function(e,t,n){var r=n(2),o=n(1).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){var r=n(1),o=n(7),i=n(17),u=n(10)("src"),a="toString",l=Function[a],s=(""+l).split(a);n(6).inspectSource=function(e){return l.call(e)},(e.exports=function(e,t,n,a){var l="function"==typeof n;l&&(i(n,"name")||o(n,"name",t)),e[t]!==n&&(l&&(i(n,u)||o(n,u,e[t]?""+e[t]:s.join(String(t)))),e===r?e[t]=n:a?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,a,function(){return"function"==typeof this&&this[u]||l.call(this)})},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(19);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(42),o=n(28);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){var r=n(11),o=n(12);e.exports=function(e){return r(o(e))}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(21),o=n(24),i=n(43);e.exports=function(e){return function(t,n,u){var a,l=r(t),s=o(l.length),c=i(u,s);if(e&&n!=n){for(;c<s;)if((a=l[c++])!=a)return!0}else for(;c<s;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var r=n(25),o=Math.min;e.exports=function(e){return 0<e?o(r(e),9007199254740991):0}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0<e?r:n)(e)}},function(e,t,n){var r=n(27)("keys"),o=n(10);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(6),o=n(1),i="__core-js_shared__",u=o[i]||(o[i]={});(e.exports=function(e,t){return u[e]||(u[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(44)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(12);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(8).f,o=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in o||n(3)&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(e){return""}}})},function(e,t,n){"use strict";var r=n(0),o=n(32)(1);r(r.P+r.F*!n(13)([].map,!0),"Array",{map:function(e){return o(this,e,arguments[1])}})},function(e,t,n){var r=n(18),o=n(11),i=n(29),u=n(24),a=n(47);e.exports=function(e,t){var n=1==e,l=2==e,s=3==e,c=4==e,d=6==e,p=5==e||d,f=t||a;return function(t,a,h){for(var m,v,y=i(t),_=o(y),b=r(a,h,3),g=u(_.length),w=0,x=n?f(t,g):l?f(t,0):void 0;w<g;w++)if((p||w in _)&&(v=b(m=_[w],w,y),e))if(n)x[w]=v;else if(v)switch(e){case 3:return!0;case 5:return m;case 6:return w;case 2:x.push(m)}else if(c)return!1;return d?-1:s||c?c:x}}},function(e,t,n){var r=n(22);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(27)("wks"),o=n(10),i=n(1).Symbol,u="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=u&&i[e]||(u?i:o)("Symbol."+e))}).store=r},function(e,t,n){"use strict";var r=n(0),o=n(23)(!1),i=[].indexOf,u=!!i&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(u||!n(13)(i)),"Array",{indexOf:function(e){return u?i.apply(this,arguments)||0:o(this,e,arguments[1])}})},function(e,t,n){var r=n(0);r(r.S,"Object",{create:n(52)})},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0,n(14),n(30),n(31),n(35),n(49),n(50);var r=n(5),o=function(e){return e&&e.__esModule?e:{default:e}}(n(51));function i(e){if(!e.element)throw new Error("element is not defined");if(!e.id)throw new Error("id is not defined");if(!e.source)throw new Error("source is not defined");Array.isArray(e.source)&&(e.source=u(e.source)),(0,r.render)((0,r.createElement)(o.default,e),e.element)}var u=function(e){return function(t,n){n(e.filter(function(e){return-1!==e.toLowerCase().indexOf(t.toLowerCase())}))}};i.enhanceSelectElement=function(e){if(!e.selectElement)throw new Error("selectElement is not defined");if(!e.source){var t=[].filter.call(e.selectElement.options,function(t){return t.value||e.preserveNullOptions});e.source=t.map(function(e){return e.textContent||e.innerText})}if(e.onConfirm=e.onConfirm||function(t){var n=[].filter.call(e.selectElement.options,function(e){return(e.textContent||e.innerText)===t})[0];n&&(n.selected=!0)},e.selectElement.value||void 0===e.defaultValue){var n=e.selectElement.options[e.selectElement.options.selectedIndex];e.defaultValue=n.textContent||n.innerText}void 0===e.name&&(e.name=""),void 0===e.id&&(void 0===e.selectElement.id?e.id="":e.id=e.selectElement.id),void 0===e.autoselect&&(e.autoselect=!0);var r=document.createElement("span");e.selectElement.parentNode.insertBefore(r,e.selectElement),i(Object.assign({},e,{element:r})),e.selectElement.style.display="none",e.selectElement.id=e.selectElement.id+"-select"};var a=i;t.default=a},function(e,t,n){e.exports=!n(3)&&!n(4)(function(){return 7!=Object.defineProperty(n(15)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(2);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){"use strict";var r=n(20),o=n(45),i=n(46),u=n(29),a=n(11),l=Object.assign;e.exports=!l||n(4)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=r})?function(e,t){for(var n=u(e),l=arguments.length,s=1,c=o.f,d=i.f;s<l;)for(var p,f=a(arguments[s++]),h=c?r(f).concat(c(f)):r(f),m=h.length,v=0;v<m;)d.call(f,p=h[v++])&&(n[p]=f[p]);return n}:l},function(e,t,n){var r=n(17),o=n(21),i=n(23)(!1),u=n(26)("IE_PROTO");e.exports=function(e,t){var n,a=o(e),l=0,s=[];for(n in a)n!=u&&r(a,n)&&s.push(n);for(;t.length>l;)r(a,n=t[l++])&&(~i(s,n)||s.push(n));return s}},function(e,t,n){var r=n(25),o=Math.max,i=Math.min;e.exports=function(e,t){return(e=r(e))<0?o(e+t,0):i(e,t)}},function(e,t){e.exports=!1},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(48);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){var r=n(2),o=n(33),i=n(34)("species");e.exports=function(e){var t;return o(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!o(t.prototype)||(t=void 0),r(t)&&null===(t=t[i])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){"use strict";var r=n(0),o=n(32)(2);r(r.P+r.F*!n(13)([].filter,!0),"Array",{filter:function(e){return o(this,e,arguments[1])}})},function(e,t,n){var r=n(0);r(r.S,"Array",{isArray:n(33)})},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0,n(14),n(36),n(31),n(35),n(30),n(55),n(58);var r=n(5),o=u(n(60)),i=u(n(61));function u(e){return e&&e.__esModule?e:{default:e}}function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var s,c={13:"enter",27:"escape",32:"space",38:"up",40:"down"},d=((s=document.createElement("x")).style.cssText="pointer-events:auto","auto"===s.style.pointerEvents);function p(){return!(!navigator.userAgent.match(/(iPod|iPhone|iPad)/g)||!navigator.userAgent.match(/AppleWebKit/g))}var f=function(e){function t(t){var n;return(n=e.call(this,t)||this).elementReferences={},n.state={focused:null,hovered:null,clicked:null,menuOpen:!1,options:t.defaultValue?[t.defaultValue]:[],query:t.defaultValue,selected:null},n.handleComponentBlur=n.handleComponentBlur.bind(l(l(n))),n.handleKeyDown=n.handleKeyDown.bind(l(l(n))),n.handleUpArrow=n.handleUpArrow.bind(l(l(n))),n.handleDownArrow=n.handleDownArrow.bind(l(l(n))),n.handleEnter=n.handleEnter.bind(l(l(n))),n.handlePrintableKey=n.handlePrintableKey.bind(l(l(n))),n.handleListMouseLeave=n.handleListMouseLeave.bind(l(l(n))),n.handleOptionBlur=n.handleOptionBlur.bind(l(l(n))),n.handleOptionClick=n.handleOptionClick.bind(l(l(n))),n.handleOptionFocus=n.handleOptionFocus.bind(l(l(n))),n.handleOptionMouseEnter=n.handleOptionMouseEnter.bind(l(l(n))),n.handleInputBlur=n.handleInputBlur.bind(l(l(n))),n.handleInputChange=n.handleInputChange.bind(l(l(n))),n.handleInputFocus=n.handleInputFocus.bind(l(l(n))),n.pollInputElement=n.pollInputElement.bind(l(l(n))),n.getDirectInputChanges=n.getDirectInputChanges.bind(l(l(n))),n}!function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(t,e);var n=t.prototype;return n.componentDidMount=function(){this.pollInputElement()},n.componentWillUnmount=function(){clearTimeout(this.$pollInput),clearTimeout(this.$blurInput)},n.pollInputElement=function(){var e=this;this.getDirectInputChanges(),this.$pollInput=setTimeout(function(){e.pollInputElement()},100)},n.getDirectInputChanges=function(){var e=this.elementReferences[-1];e&&e.value!==this.state.query&&this.handleInputChange({target:{value:e.value}})},n.componentDidUpdate=function(e,t){var n=this.state,r=n.focused,o=n.clicked,i=null===r,u=t.focused!==r;(u&&!i||null!==o)&&this.elementReferences[r].focus();var a=-1===r,l=u&&null===t.focused;if(a&&l){var s=this.elementReferences[r];s.setSelectionRange(0,s.value.length)}},n.hasAutoselect=function(){return!p()&&this.props.autoselect},n.templateInputValue=function(e){var t=this.props.templates&&this.props.templates.inputValue;return t?t(e):e},n.templateSuggestion=function(e){var t=this.props.templates&&this.props.templates.suggestion;return t?t(e):e},n.handleComponentBlur=function(e){var t,n=this.state,r=n.options,o=n.query,i=n.selected;this.props.confirmOnBlur?(t=e.query||o,this.props.onConfirm(r[i])):t=o,this.setState({focused:null,clicked:null,menuOpen:e.menuOpen||!1,query:t,selected:null})},n.handleListMouseLeave=function(e){this.setState({hovered:null})},n.handleOptionBlur=function(e,t){var n=this.state,r=n.focused,o=n.clicked,i=n.menuOpen,u=n.options,a=n.selected,l=null===e.relatedTarget&&null===o,s=e.relatedTarget===this.elementReferences[-1],c=r!==t&&-1!==r;if(!c&&l||!c&&!s){var d=i&&p();this.handleComponentBlur({menuOpen:d,query:this.templateInputValue(u[a])})}},n.handleInputBlur=function(e){var t=this,n=this.state,r=n.focused,o=n.menuOpen,i=n.options,u=n.query,a=n.selected,l=-1!==r;if(clearTimeout(this.$blurInput),!l){var s=o&&p(),c=p()?u:this.templateInputValue(i[a]);this.$blurInput=setTimeout(function(){return t.handleComponentBlur({menuOpen:s,query:c})},200)}},n.handleInputChange=function(e){var t=this,n=this.props,r=n.minLength,o=n.source,i=n.showAllValues,u=this.hasAutoselect(),a=e.target.value,l=0===a.length,s=this.state.query.length!==a.length,c=a.length>=r;this.setState({query:a}),i||!l&&s&&c?o(a,function(e){var n=0<e.length;t.setState({menuOpen:n,options:e,selected:u&&n?0:-1})}):!l&&c||this.setState({menuOpen:!1,options:[]})},n.handleInputClick=function(e){this.handleInputChange(e)},n.handleInputFocus=function(e){this.setState({focused:-1})},n.handleOptionFocus=function(e){this.setState({focused:e,hovered:null,selected:e})},n.handleOptionMouseEnter=function(e,t){p()||this.setState({hovered:t})},n.handleOptionClick=function(e,t){var n=this.state.options[t],r=this.templateInputValue(n);clearTimeout(this.$blurInput),this.props.onConfirm(n),this.setState({focused:-1,clicked:t,hovered:null,menuOpen:!1,query:r,selected:-1}),this.forceUpdate()},n.handleUpArrow=function(e){e.preventDefault();var t=this.state,n=t.menuOpen,r=t.selected;-1!==r&&n&&this.handleOptionFocus(r-1)},n.handleDownArrow=function(e){var t=this;if(e.preventDefault(),this.props.showAllValues&&!1===this.state.menuOpen)e.preventDefault(),this.props.source("",function(e){t.setState({menuOpen:!0,options:e,selected:0,focused:0,hovered:null})});else if(!0===this.state.menuOpen){var n=this.state,r=n.menuOpen,o=n.options,i=n.selected;i!==o.length-1&&r&&this.handleOptionFocus(i+1)}},n.handleSpace=function(e){var t=this;this.props.showAllValues&&!1===this.state.menuOpen&&""===this.state.query&&(e.preventDefault(),this.props.source("",function(e){t.setState({menuOpen:!0,options:e})})),-1!==this.state.focused&&(e.preventDefault(),this.handleOptionClick(e,this.state.focused))},n.handleEnter=function(e){this.state.menuOpen&&(e.preventDefault(),0<=this.state.selected&&this.handleOptionClick(e,this.state.selected))},n.handlePrintableKey=function(e){var t=this.elementReferences[-1];e.target===t||t.focus()},n.handleKeyDown=function(e){switch(c[e.keyCode]){case"up":this.handleUpArrow(e);break;case"down":this.handleDownArrow(e);break;case"space":this.handleSpace(e);break;case"enter":this.handleEnter(e);break;case"escape":this.handleComponentBlur({query:this.state.query});break;default:(function(e){return 47<e&&e<58||32===e||8===e||64<e&&e<91||95<e&&e<112||185<e&&e<193||218<e&&e<223})(e.keyCode)&&this.handlePrintableKey(e)}},n.render=function(){var e,t=this,n=this.props,i=n.cssNamespace,u=n.displayMenu,l=n.id,s=n.minLength,c=n.name,p=n.placeholder,f=n.required,h=n.showAllValues,m=n.tNoResults,v=n.tStatusQueryTooShort,y=n.tStatusNoResults,_=n.tStatusSelectedOption,b=n.tStatusResults,g=n.dropdownArrow,w=this.state,x=w.focused,E=w.hovered,S=w.menuOpen,O=w.options,C=w.query,k=w.selected,N=this.hasAutoselect(),A=-1===x,I=0===O.length,P=0!==C.length,j=C.length>=s,L=this.props.showNoOptionsFound&&A&&I&&P&&j,T=i+"__wrapper",M=i+"__input",B=null!==x?" "+M+"--focused":"",D=this.props.showAllValues?" "+M+"--show-all-values":" "+M+"--default",q=i+"__dropdown-arrow-down",R=-1!==x&&null!==x,F=i+"__menu",V=F+"--"+u,U=F+"--"+(S||L?"visible":"hidden"),K=i+"__option",H=i+"__hint",W=this.templateInputValue(O[k]),z=W&&0===W.toLowerCase().indexOf(C.toLowerCase())&&N?C+W.substr(C.length):"",$=d&&z;return h&&"string"==typeof(e=g({className:q}))&&(e=(0,r.createElement)("div",{className:i+"__dropdown-arrow-down-wrapper",dangerouslySetInnerHTML:{__html:e}})),(0,r.createElement)("div",{className:T,onKeyDown:this.handleKeyDown,role:"combobox","aria-expanded":S?"true":"false"},(0,r.createElement)(o.default,{length:O.length,queryLength:C.length,minQueryLength:s,selectedOption:this.templateInputValue(O[k]),selectedOptionIndex:k,tQueryTooShort:v,tNoResults:y,tSelectedOption:_,tResults:b}),$&&(0,r.createElement)("span",null,(0,r.createElement)("input",{className:H,readonly:!0,tabIndex:"-1",value:z})),(0,r.createElement)("input",a({"aria-activedescendant":!!R&&l+"__option--"+x,"aria-owns":l+"__listbox",autoComplete:"off",className:""+M+B+D,id:l,onClick:function(e){return t.handleInputClick(e)},onBlur:this.handleInputBlur},function(e){return{onInput:e}}(this.handleInputChange),{onFocus:this.handleInputFocus,name:c,placeholder:p,ref:function(e){t.elementReferences[-1]=e},type:"text",role:"textbox",required:f,value:C})),e,(0,r.createElement)("ul",{className:F+" "+V+" "+U,onMouseLeave:function(e){return t.handleListMouseLeave(e)},id:l+"__listbox",role:"listbox"},O.map(function(e,n){var o=(-1===x?k===n:x===n)&&null===E?" "+K+"--focused":"",i=n%2?" "+K+"--odd":"";return(0,r.createElement)("li",{"aria-selected":x===n,className:""+K+o+i,dangerouslySetInnerHTML:{__html:t.templateSuggestion(e)},id:l+"__option--"+n,key:n,onBlur:function(e){return t.handleOptionBlur(e,n)},onClick:function(e){return t.handleOptionClick(e,n)},onMouseEnter:function(e){return t.handleOptionMouseEnter(e,n)},ref:function(e){t.elementReferences[n]=e},role:"option",tabIndex:"-1"})}),L&&(0,r.createElement)("li",{className:K+" "+K+"--no-results"},m())))},t}(r.Component);(t.default=f).defaultProps={autoselect:!1,cssNamespace:"autocomplete",defaultValue:"",displayMenu:"inline",minLength:0,name:"input-autocomplete",placeholder:"",onConfirm:function(){},confirmOnBlur:!0,showNoOptionsFound:!0,showAllValues:!1,required:!1,tNoResults:function(){return"No results found"},dropdownArrow:i.default}},function(e,t,n){var r=n(9),o=n(53),i=n(28),u=n(26)("IE_PROTO"),a=function(){},l="prototype",s=function(){var e,t=n(15)("iframe"),r=i.length;for(t.style.display="none",n(54).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),s=e.F;r--;)delete s[l][i[r]];return s()};e.exports=Object.create||function(e,t){var n;return null!==e?(a[l]=r(e),n=new a,a[l]=null,n[u]=e):n=s(),void 0===t?n:o(n,t)}},function(e,t,n){var r=n(8),o=n(9),i=n(20);e.exports=n(3)?Object.defineProperties:function(e,t){o(e);for(var n,u=i(t),a=u.length,l=0;l<a;)r.f(e,n=u[l++],t[n]);return e}},function(e,t,n){var r=n(1).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(0);r(r.P,"Function",{bind:n(56)})},function(e,t,n){"use strict";var r=n(19),o=n(2),i=n(57),u=[].slice,a={};e.exports=Function.bind||function(e){var t=r(this),n=u.call(arguments,1),l=function r(){var o=n.concat(u.call(arguments));return this instanceof r?function(e,t,n){if(!(t in a)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";a[t]=Function("F,a","return new F("+r.join(",")+")")}return a[t](e,n)}(t,o.length,o):i(t,o,e)};return o(t.prototype)&&(l.prototype=t.prototype),l}},function(e,t){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){n(59)("match",1,function(e,t,n){return[function(n){"use strict";var r=e(this),o=null==n?void 0:n[t];return void 0!==o?o.call(n,r):new RegExp(n)[t](String(r))},n]})},function(e,t,n){"use strict";var r=n(7),o=n(16),i=n(4),u=n(12),a=n(34);e.exports=function(e,t,n){var l=a(e),s=n(u,l,""[e]),c=s[0],d=s[1];i(function(){var t={};return t[l]=function(){return 7},7!=""[e](t)})&&(o(String.prototype,e,c),r(RegExp.prototype,l,2==t?function(e,t){return d.call(e,this,t)}:function(e){return d.call(e,this)}))}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0,n(36);var r=n(5),o=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={bump:!1},t}!function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(t,e);var n=t.prototype;return n.componentWillReceiveProps=function(e){e.queryLength!==this.props.queryLength&&this.setState(function(e){return{bump:!e.bump}})},n.render=function(){var e,t=this.props,n=t.length,o=t.queryLength,i=t.minQueryLength,u=t.selectedOption,a=t.selectedOptionIndex,l=t.tQueryTooShort,s=t.tNoResults,c=t.tSelectedOption,d=t.tResults,p=this.state.bump,f=o<i,h=0===n,m=u?c(u,n,a):"";return e=f?l(i):h?s():d(n,m),(0,r.createElement)("div",{"aria-atomic":"true","aria-live":"polite",role:"status",style:{border:"0",clip:"rect(0 0 0 0)",height:"1px",marginBottom:"-1px",marginRight:"-1px",overflow:"hidden",padding:"0",position:"absolute",whiteSpace:"nowrap",width:"1px"}},e,(0,r.createElement)("span",null,p?",":",,"))},t}(r.Component);(t.default=o).defaultProps={tQueryTooShort:function(e){return"Type in "+e+" or more characters for results."},tNoResults:function(){return"No search results."},tSelectedOption:function(e,t,n){return e+" ("+(n+1)+" of "+t+") is selected."},tResults:function(e,t){return e+" "+(1===e?"result":"results")+" "+(1===e?"is":"are")+" available. "+t}}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=n(5);t.default=function(e){var t=e.className;return(0,r.createElement)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:t,focusable:"false"},(0,r.createElement)("g",{stroke:"none",fill:"none","fill-rule":"evenodd"},(0,r.createElement)("polygon",{fill:"#000000",points:"0 0 22 0 11 17"})))}}]).default},"object"==u(t)&&"object"==u(e)?e.exports=i():(r=[],void 0===(o="function"==typeof(n=i)?n.apply(t,r):n)||(e.exports=o))}).call(this,n(1)(e))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){!function(e){"use strict";var t=e.NHSUK||{};t.details={NATIVE_DETAILS:"boolean"==typeof document.createElement("details").open,KEY_ENTER:13,KEY_SPACE:32,started:!1,addEvent:function(e,t,n){e.addEventListener?e.addEventListener(t,function(e){n(e,e.target)},!1):e.attachEvent&&e.attachEvent("on"+t,function(e){n(e,e.srcElement)})},removeEvent:function(e,t){e.removeEventListener?e.removeEventListener(t,function(e){},!1):e.detachEvent&&e.detachEvent("on"+t,function(e){})},charCode:function(e){return"number"==typeof e.which?e.which:e.keyCode},preventDefault:function(e){e.preventDefault?e.preventDefault():e.returnValue=!1},addClickEvent:function(e,n){t.details.addEvent(e,"keypress",function(e,r){t.details.charCode(e)!==t.details.KEY_ENTER&&t.details.charCode(e)!==t.details.KEY_SPACE||"summary"===r.nodeName.toLowerCase()&&(t.details.preventDefault(e),r.click?r.click():n(e,r))}),t.details.addEvent(e,"keyup",function(e,n){t.details.charCode(e)===t.details.KEY_SPACE&&"SUMMARY"===n.nodeName&&t.details.preventDefault(e)}),t.details.addEvent(e,"click",function(e,t){n(e,t)})},getAncestor:function(e,t){do{if(!e||e.nodeName.toLowerCase()===t)break;e=e.parentNode}while(e);return e},addDetailsPolyfill:function(e,n){if(n=n||document.body,!t.details.started&&(t.details.started=!0,0!==(e=n.getElementsByTagName("details")).length)){for(var r=e.length,o=0;o<r;o++){var i=e[o];if(i.__summary=i.getElementsByTagName("summary").item(0),i.__content=i.getElementsByTagName("div").item(0),!i.__summary||!i.__content)return;i.__content.id||(i.__content.id="details-content-"+o),i.__summary.setAttribute("role","button"),i.__summary.setAttribute("aria-controls",i.__content.id),t.details.NATIVE_DETAILS||(i.__summary.tabIndex=0),!0===(null!==i.getAttribute("open"))?(i.__summary.setAttribute("aria-expanded","true"),i.__content.setAttribute("aria-hidden","false")):(i.__summary.setAttribute("aria-expanded","false"),i.__content.setAttribute("aria-hidden","true"),t.details.NATIVE_DETAILS||(i.__content.style.display="none")),i.__summary.__details=i}t.details.addClickEvent(n,function(e,n){return!(n=t.details.getAncestor(n,"summary"))||t.details.statechange(n)})}},statechange:function(e){var n="true"===e.__details.__summary.getAttribute("aria-expanded"),r="true"===e.__details.__content.getAttribute("aria-hidden");(e.__details.__summary.setAttribute("aria-expanded",n?"false":"true"),e.__details.__content.setAttribute("aria-hidden",r?"false":"true"),t.details.NATIVE_DETAILS)||(e.__details.__content.style.display=n?"none":"",null!==e.__details.getAttribute("open")?e.__details.removeAttribute("open"):e.__details.setAttribute("open","open"));return!0},destroy:function(e){t.details.removeEvent(e,"click")},init:function(e){t.details.addEvent(document,"DOMContentLoaded",t.details.addDetailsPolyfill),t.details.addEvent(window,"load",t.details.addDetailsPolyfill)}},e.NHSUK=t}(window),NHSUK.details.init()},function(e,t,n){"use strict";function r(){var e=document.querySelector("#nhsuk-feedback-banner");e&&(e.style.display="none")}function o(){var e=!1,t=!1,n=document.querySelector("#nhsuk-footer"),r=document.querySelector("#nhsuk-feedback-banner");t=setInterval(function(){var o,i,u;e&&(e=!1,clearTimeout(t),o=n.getBoundingClientRect(),i=o.top,u=o.bottom,i<window.innerHeight&&u>=0?r.classList.add("js-inview"):r.classList.remove("js-inview"))},500),e=!0}function i(e){setTimeout(function(){var e;(e=document.querySelector("#nhsuk-feedback-banner"))&&(e.style.display="block")},e)}n.r(t);var u=function(e){var t;i(e),(t=document.querySelector("#nhsuk-feedback-banner-close"))&&t.addEventListener("click",r),document.querySelector("#nhsuk-feedback-banner")&&window.addEventListener("scroll",o)};function a(e,t){var n=e.className,r=new RegExp("\\b "+t+"\\b"),o=n.match(r);t=t.replace(/\s+/g,""),e.className=o?n.replace(r,""):n+" "+t}function l(e){var t=document.querySelector("#toggle-search"),n=document.querySelector("#wrap-search"),r=document.querySelector("#content-header");e.preventDefault(),t.hasAttribute("aria-expanded")?t.removeAttribute("aria-expanded"):t.setAttribute("aria-expanded","true"),a(t,"is-active"),a(n,"js-show"),a(r,"js-show")}function s(e){var t=document.querySelector("#toggle-menu"),n=document.querySelector("#header-navigation");e.preventDefault(),t.hasAttribute("aria-expanded")?t.removeAttribute("aria-expanded"):t.setAttribute("aria-expanded","true"),a(t,"is-active"),a(n,"js-show")}var c=function(){var e,t,n,r;e=document.querySelector("#toggle-search"),t=document.querySelector("#close-search"),e&&e.addEventListener("click",l),t&&t.addEventListener("click",l),n=document.querySelector("#toggle-menu"),r=document.querySelector("#close-menu"),n&&n.addEventListener("click",s),r&&r.addEventListener("click",s)};function d(){var e=document.querySelector(".nhsuk-skip-link"),t=document.getElementsByTagName("H1")[0];e&&t&&e.addEventListener("click",function(e){var t;e.preventDefault(),(t=document.getElementsByTagName("H1")[0]).setAttribute("tabIndex","-1"),t.focus()})}function p(){var e=document.querySelector(".nhsuk-skip-link"),t=document.getElementsByTagName("H1")[0];e&&t&&t.addEventListener("blur",function(e){e.preventDefault(),document.getElementsByTagName("H1")[0].removeAttribute("tabIndex")})}var f=function(){d(),p()},h=n(0),m=n.n(h);function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(){var e=document.getElementById("wrap-search");if(e){var t=e.getBoundingClientRect(),n=document.getElementById("search-field__listbox");n.style.width=t.width+"px",n.style.top=t.bottom+"px"}}function _(e,t){var n=function(e){return"".concat("https://nhs.funnelback.co.uk/s/suggest.json","?collection=nhs-meta&partial_query=").concat(e,"&sort=0&fmt=json++&profile=&show=").concat(10)}(e),r=new XMLHttpRequest;r.open("GET",n),r.onload=function(){if(200===r.status){var e=JSON.parse(r.responseText).map(function(e){return e.disp});t(e)}},r.send()}window.addEventListener("load",function(e){if(document.querySelector("#wrap-search")){var t,n=function(){y()};y(),window.addEventListener("resize",function(){t||(t=setTimeout(function(){t=null,n()},66))},!1)}});var b=function(e){var t=e&&e.id?e.id:"search-field",n=document.getElementById(t);if(n){var r=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){v(e,t,n[t])})}return e}({},{element:document.querySelector("#autocomplete-container"),id:t,minLength:2,placeholder:n.placeholder,confirmOnBlur:!1,onConfirm:function(e){window.open("https://www.nhs.uk/search?collection=nhs-meta&query="+e,"_self")},source:_,templates:{suggestion:function(e){var t=e.length>36?"...":"",n=e.substring(0,36)+t;return'<svg class="nhsuk-icon nhsuk-icon__search" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true"><path d="M19.71 18.29l-4.11-4.1a7 7 0 1 0-1.41 1.41l4.1 4.11a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42zM5 10a5 5 0 1 1 5 5 5 5 0 0 1-5-5z"></path></svg><a href="https://www.nhs.uk/search?collection=nhs-meta&query='+e+'">'+n+"</a>"}}},e),o=document.getElementById(t);o.parentNode.removeChild(o),m()(r)}};n(2);document.addEventListener("DOMContentLoaded",function(){u(3e3),c(),f(),b()})}]);

@@ -1,1 +0,1 @@

!function(n){var r={};function o(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.m=n,o.c=r,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=3)}([function(e,i,t){(function(e){var t,n,r,o;function w(e){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}window,o=function(){return function(n){var r={};function o(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}return o.m=n,o.c=r,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==w(t)&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="/",o(o.s=37)}([function(e,t,n){var m=n(1),v=n(6),y=n(7),_=n(16),b=n(18),g="prototype",r=function e(t,n,r){var o,i,u,a,l=t&e.F,s=t&e.G,c=t&e.P,p=t&e.B,d=s?m:t&e.S?m[n]||(m[n]={}):(m[n]||{})[g],f=s?v:v[n]||(v[n]={}),h=f[g]||(f[g]={});for(o in s&&(r=n),r)u=((i=!l&&d&&void 0!==d[o])?d:r)[o],a=p&&i?b(u,m):c&&"function"==typeof u?b(Function.call,u):u,d&&_(d,o,u,t&e.U),f[o]!=u&&y(f,o,a),c&&h[o]!=u&&(h[o]=u)};m.core=v,r.F=1,r.G=2,r.S=4,r.P=8,r.B=16,r.W=32,r.U=64,r.R=128,e.exports=r},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports=function(e){return"object"==w(e)?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(4)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){"use strict";n.r(t),n.d(t,"h",function(){return r}),n.d(t,"createElement",function(){return r}),n.d(t,"cloneElement",function(){return i}),n.d(t,"Component",function(){return _}),n.d(t,"render",function(){return b}),n.d(t,"rerender",function(){return d}),n.d(t,"options",function(){return C});var l=function(){},C={},s=[],c=[];function r(e,t){var n,r,o,i,u=c;for(i=arguments.length;2<i--;)s.push(arguments[i]);for(t&&null!=t.children&&(s.length||s.push(t.children),delete t.children);s.length;)if((r=s.pop())&&void 0!==r.pop)for(i=r.length;i--;)s.push(r[i]);else"boolean"==typeof r&&(r=null),(o="function"!=typeof e)&&(null==r?r="":"number"==typeof r?r=String(r):"string"!=typeof r&&(o=!1)),o&&n?u[u.length-1]+=r:u===c?u=[r]:u.push(r),n=o;var a=new l;return a.nodeName=e,a.children=u,a.attributes=null==t?void 0:t,a.key=null==t?void 0:t.key,void 0!==C.vnode&&C.vnode(a),a}function k(e,t){for(var n in t)e[n]=t[n];return e}var o="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout;function i(e,t){return r(e.nodeName,k(k({},e.attributes),t),2<arguments.length?[].slice.call(arguments,2):e.children)}var p=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,u=[];function a(e){!e._dirty&&(e._dirty=!0)&&1==u.push(e)&&(C.debounceRendering||o)(d)}function d(){var e,t=u;for(u=[];e=t.pop();)e._dirty&&R(e)}function S(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function N(e){var t=k({},e.attributes);t.children=e.children;var n=e.nodeName.defaultProps;if(void 0!==n)for(var r in n)void 0===t[r]&&(t[r]=n[r]);return t}function A(e){var t=e.parentNode;t&&t.removeChild(e)}function m(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"==w(r)){if("string"!=typeof n)for(var i in n)i in r||(e.style[i]="");for(var i in r)e.style[i]="number"==typeof r[i]&&!1===p.test(i)?r[i]+"px":r[i]}}else if("dangerouslySetInnerHTML"===t)r&&(e.innerHTML=r.__html||"");else if("o"==t[0]&&"n"==t[1]){var u=t!==(t=t.replace(/Capture$/,""));t=t.toLowerCase().substring(2),r?n||e.addEventListener(t,f,u):e.removeEventListener(t,f,u),(e._listeners||(e._listeners={}))[t]=r}else if("list"!==t&&"type"!==t&&!o&&t in e){try{e[t]=null==r?"":r}catch(e){}null!=r&&!1!==r||"spellcheck"==t||e.removeAttribute(t)}else{var a=o&&t!==(t=t.replace(/^xlink:?/,""));null==r||!1===r?a?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t):"function"!=typeof r&&(a?e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),r):e.setAttribute(t,r))}else e.className=r||""}function f(e){return this._listeners[e.type](C.event&&C.event(e)||e)}var I=[],P=0,j=!1,L=!1;function T(){for(var e;e=I.pop();)C.afterMount&&C.afterMount(e),e.componentDidMount&&e.componentDidMount()}function M(e,t,n,r,o){var i=e,u=j;if(null!=t&&"boolean"!=typeof t||(t=""),"string"==typeof t||"number"==typeof t)return e&&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),D(e,!0))),i.__preactattr_=!0,i;var a,l,s=t.nodeName;if("function"==typeof s)return function(e,t,n,r){for(var o=e&&e._component,i=o,u=e,a=o&&e._componentConstructor===t.nodeName,l=a,s=N(t);o&&!l&&(o=o._parentComponent);)l=o.constructor===t.nodeName;return o&&l&&(!r||o._component)?(q(o,s,3,n,r),e=o.base):(i&&!a&&(F(i),e=u=null),o=B(t.nodeName,s,n),e&&!o.nextBase&&(o.nextBase=e,u=null),q(o,s,1,n,r),e=o.base,u&&e!==u&&(u._component=null,D(u,!1))),e}(e,t,n,r);if(j="svg"===s||"foreignObject"!==s&&j,s=String(s),(!e||!S(e,s))&&(a=s,(l=j?document.createElementNS("http://www.w3.org/2000/svg",a):document.createElement(a)).normalizedNodeName=a,i=l,e)){for(;e.firstChild;)i.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild(i,e),D(e,!0)}var c=i.firstChild,p=i.__preactattr_,d=t.children;if(null==p){p=i.__preactattr_={};for(var f=i.attributes,h=f.length;h--;)p[f[h].name]=f[h].value}return!L&&d&&1===d.length&&"string"==typeof d[0]&&null!=c&&void 0!==c.splitText&&null==c.nextSibling?c.nodeValue!=d[0]&&(c.nodeValue=d[0]):(d&&d.length||null!=c)&&function(e,t,n,r,o){var i,u,a,l,s,c,p,d,f=e.childNodes,h=[],m={},v=0,y=0,_=f.length,b=0,g=t?t.length:0;if(0!==_)for(var w=0;w<_;w++){var x=f[w],E=x.__preactattr_;null!=(O=g&&E?x._component?x._component.__key:E.key:null)?(v++,m[O]=x):(E||(void 0!==x.splitText?!o||x.nodeValue.trim():o))&&(h[b++]=x)}if(0!==g)for(w=0;w<g;w++){var O;if((s=null)!=(O=(l=t[w]).key))v&&void 0!==m[O]&&(s=m[O],m[O]=void 0,v--);else if(y<b)for(i=y;i<b;i++)if(void 0!==h[i]&&(c=u=h[i],d=o,"string"==typeof(p=l)||"number"==typeof p?void 0!==c.splitText:"string"==typeof p.nodeName?!c._componentConstructor&&S(c,p.nodeName):d||c._componentConstructor===p.nodeName)){s=u,h[i]=void 0,i===b-1&&b--,i===y&&y++;break}s=M(s,l,n,r),a=f[w],s&&s!==e&&s!==a&&(null==a?e.appendChild(s):s===a.nextSibling?A(a):e.insertBefore(s,a))}if(v)for(var w in m)void 0!==m[w]&&D(m[w],!1);for(;y<=b;)void 0!==(s=h[b--])&&D(s,!1)}(i,d,n,r,L||null!=p.dangerouslySetInnerHTML),function(e,t,n){var r;for(r in n)t&&null!=t[r]||null==n[r]||m(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])||m(e,r,n[r],n[r]=t[r],j)}(i,t.attributes,p),j=u,i}function D(e,t){var n=e._component;n?F(n):(null!=e.__preactattr_&&e.__preactattr_.ref&&e.__preactattr_.ref(null),!1!==t&&null!=e.__preactattr_||A(e),h(e))}function h(e){for(e=e.lastChild;e;){var t=e.previousSibling;D(e,!0),e=t}}var v=[];function B(e,t,n){var r,o=v.length;for(e.prototype&&e.prototype.render?(r=new e(t,n),_.call(r,t,n)):((r=new _(t,n)).constructor=e,r.render=y);o--;)if(v[o].constructor===e)return r.nextBase=v[o].nextBase,v.splice(o,1),r;return r}function y(e,t,n){return this.constructor(e,n)}function q(e,t,n,r,o){e._disable||(e._disable=!0,e.__ref=t.ref,e.__key=t.key,delete t.ref,delete t.key,void 0===e.constructor.getDerivedStateFromProps&&(!e.base||o?e.componentWillMount&&e.componentWillMount():e.componentWillReceiveProps&&e.componentWillReceiveProps(t,r)),r&&r!==e.context&&(e.prevContext||(e.prevContext=e.context),e.context=r),e.prevProps||(e.prevProps=e.props),e.props=t,e._disable=!1,0!==n&&(1!==n&&!1===C.syncComponentUpdates&&e.base?a(e):R(e,1,o)),e.__ref&&e.__ref(e))}function R(e,t,n,r){if(!e._disable){var o,i,u,a=e.props,l=e.state,s=e.context,c=e.prevProps||a,p=e.prevState||l,d=e.prevContext||s,f=e.base,h=e.nextBase,m=f||h,v=e._component,y=!1,_=d;if(e.constructor.getDerivedStateFromProps&&(l=k(k({},l),e.constructor.getDerivedStateFromProps(a,l)),e.state=l),f&&(e.props=c,e.state=p,e.context=d,2!==t&&e.shouldComponentUpdate&&!1===e.shouldComponentUpdate(a,l,s)?y=!0:e.componentWillUpdate&&e.componentWillUpdate(a,l,s),e.props=a,e.state=l,e.context=s),e.prevProps=e.prevState=e.prevContext=e.nextBase=null,e._dirty=!1,!y){o=e.render(a,l,s),e.getChildContext&&(s=k(k({},s),e.getChildContext())),f&&e.getSnapshotBeforeUpdate&&(_=e.getSnapshotBeforeUpdate(c,p));var b,g,w=o&&o.nodeName;if("function"==typeof w){var x=N(o);(i=v)&&i.constructor===w&&x.key==i.__key?q(i,x,1,s,!1):(b=i,e._component=i=B(w,x,s),i.nextBase=i.nextBase||h,i._parentComponent=e,q(i,x,0,s,!1),R(i,1,n,!0)),g=i.base}else u=m,(b=v)&&(u=e._component=null),(m||1===t)&&(u&&(u._component=null),g=function(e,t,n,r,o,i){P++||(j=null!=o&&void 0!==o.ownerSVGElement,L=null!=e&&!("__preactattr_"in e));var u=M(e,t,n,r,!0);return o&&u.parentNode!==o&&o.appendChild(u),--P||(L=!1),u}(u,o,s,n||!f,m&&m.parentNode));if(m&&g!==m&&i!==v){var E=m.parentNode;E&&g!==E&&(E.replaceChild(g,m),b||(m._component=null,D(m,!1)))}if(b&&F(b),(e.base=g)&&!r){for(var O=e,S=e;S=S._parentComponent;)(O=S).base=g;g._component=O,g._componentConstructor=O.constructor}}for(!f||n?I.unshift(e):y||(e.componentDidUpdate&&e.componentDidUpdate(c,p,_),C.afterUpdate&&C.afterUpdate(e));e._renderCallbacks.length;)e._renderCallbacks.pop().call(e);P||r||T()}}function F(e){C.beforeUnmount&&C.beforeUnmount(e);var t=e.base;e._disable=!0,e.componentWillUnmount&&e.componentWillUnmount(),e.base=null;var n=e._component;n?F(n):t&&(t.__preactattr_&&t.__preactattr_.ref&&t.__preactattr_.ref(null),A(e.nextBase=t),v.push(e),h(t)),e.__ref&&e.__ref(null)}function _(e,t){this._dirty=!0,this.context=t,this.props=e,this.state=this.state||{},this._renderCallbacks=[]}function b(e,t,n){return function(e,t,n,r,o,i){P++||(j=null!=o&&void 0!==o.ownerSVGElement,L=null!=e&&!("__preactattr_"in e));var u=M(e,t,{},!1,!1);return o&&u.parentNode!==o&&o.appendChild(u),--P||(L=!1,T()),u}(n,e,0,0,t)}k(_.prototype,{setState:function(e,t){this.prevState||(this.prevState=this.state),this.state=k(k({},this.state),"function"==typeof e?e(this.state,this.props):e),t&&this._renderCallbacks.push(t),a(this)},forceUpdate:function(e){e&&this._renderCallbacks.push(e),R(this,2)},render:function(){}});var g={h:r,createElement:r,cloneElement:i,Component:_,render:b,rerender:d,options:C};t.default=g},function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(8),o=n(40);e.exports=n(3)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(9),o=n(38),i=n(39),u=Object.defineProperty;t.f=n(3)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return u(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(2);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){var r=n(22);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){"use strict";var r=n(4);e.exports=function(e,t){return!!e&&r(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t,n){var r=n(0);r(r.S+r.F,"Object",{assign:n(41)})},function(e,t,n){var r=n(2),o=n(1).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){var i=n(1),u=n(7),a=n(17),l=n(10)("src"),r="toString",o=Function[r],s=(""+o).split(r);n(6).inspectSource=function(e){return o.call(e)},(e.exports=function(e,t,n,r){var o="function"==typeof n;o&&(a(n,"name")||u(n,"name",t)),e[t]!==n&&(o&&(a(n,l)||u(n,l,e[t]?""+e[t]:s.join(String(t)))),e===i?e[t]=n:r?e[t]?e[t]=n:u(e,t,n):(delete e[t],u(e,t,n)))})(Function.prototype,r,function(){return"function"==typeof this&&this[l]||o.call(this)})},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var i=n(19);e.exports=function(r,o,e){if(i(r),void 0===o)return r;switch(e){case 1:return function(e){return r.call(o,e)};case 2:return function(e,t){return r.call(o,e,t)};case 3:return function(e,t,n){return r.call(o,e,t,n)}}return function(){return r.apply(o,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(42),o=n(28);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){var r=n(11),o=n(12);e.exports=function(e){return r(o(e))}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var l=n(21),s=n(24),c=n(43);e.exports=function(a){return function(e,t,n){var r,o=l(e),i=s(o.length),u=c(n,i);if(a&&t!=t){for(;u<i;)if((r=o[u++])!=r)return!0}else for(;u<i;u++)if((a||u in o)&&o[u]===t)return a||u||0;return!a&&-1}}},function(e,t,n){var r=n(25),o=Math.min;e.exports=function(e){return 0<e?o(r(e),9007199254740991):0}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0<e?r:n)(e)}},function(e,t,n){var r=n(27)("keys"),o=n(10);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(6),o=n(1),i="__core-js_shared__",u=o[i]||(o[i]={});(e.exports=function(e,t){return u[e]||(u[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(44)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(12);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(8).f,o=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in o||n(3)&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(e){return""}}})},function(e,t,n){"use strict";var r=n(0),o=n(32)(1);r(r.P+r.F*!n(13)([].map,!0),"Array",{map:function(e){return o(this,e,arguments[1])}})},function(e,t,n){var b=n(18),g=n(11),w=n(29),x=n(24),r=n(47);e.exports=function(p,e){var d=1==p,f=2==p,h=3==p,m=4==p,v=6==p,y=5==p||v,_=e||r;return function(e,t,n){for(var r,o,i=w(e),u=g(i),a=b(t,n,3),l=x(u.length),s=0,c=d?_(e,l):f?_(e,0):void 0;s<l;s++)if((y||s in u)&&(o=a(r=u[s],s,i),p))if(d)c[s]=o;else if(o)switch(p){case 3:return!0;case 5:return r;case 6:return s;case 2:c.push(r)}else if(m)return!1;return v?-1:h||m?m:c}}},function(e,t,n){var r=n(22);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(27)("wks"),o=n(10),i=n(1).Symbol,u="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=u&&i[e]||(u?i:o)("Symbol."+e))}).store=r},function(e,t,n){"use strict";var r=n(0),o=n(23)(!1),i=[].indexOf,u=!!i&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(u||!n(13)(i)),"Array",{indexOf:function(e){return u?i.apply(this,arguments)||0:o(this,e,arguments[1])}})},function(e,t,n){var r=n(0);r(r.S,"Object",{create:n(52)})},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0,n(14),n(30),n(31),n(35),n(49),n(50);var r,o=n(5),i=(r=n(51))&&r.__esModule?r:{default:r};function u(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");var n;Array.isArray(e.source)&&(e.source=(n=e.source,function(t,e){e(n.filter(function(e){return-1!==e.toLowerCase().indexOf(t.toLowerCase())}))})),(0,o.render)((0,o.createElement)(i.default,e),e.element)}u.enhanceSelectElement=function(n){if(!n.selectElement)throw new Error("selectElement is not defined");if(!n.source){var e=[].filter.call(n.selectElement.options,function(e){return e.value||n.preserveNullOptions});n.source=e.map(function(e){return e.textContent||e.innerText})}if(n.onConfirm=n.onConfirm||function(t){var e=[].filter.call(n.selectElement.options,function(e){return(e.textContent||e.innerText)===t})[0];e&&(e.selected=!0)},n.selectElement.value||void 0===n.defaultValue){var t=n.selectElement.options[n.selectElement.options.selectedIndex];n.defaultValue=t.textContent||t.innerText}void 0===n.name&&(n.name=""),void 0===n.id&&(void 0===n.selectElement.id?n.id="":n.id=n.selectElement.id),void 0===n.autoselect&&(n.autoselect=!0);var r=document.createElement("span");n.selectElement.parentNode.insertBefore(r,n.selectElement),u(Object.assign({},n,{element:r})),n.selectElement.style.display="none",n.selectElement.id=n.selectElement.id+"-select"};var a=u;t.default=a},function(e,t,n){e.exports=!n(3)&&!n(4)(function(){return 7!=Object.defineProperty(n(15)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var o=n(2);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){"use strict";var d=n(20),f=n(45),h=n(46),m=n(29),v=n(11),o=Object.assign;e.exports=!o||n(4)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=o({},e)[n]||Object.keys(o({},t)).join("")!=r})?function(e,t){for(var n=m(e),r=arguments.length,o=1,i=f.f,u=h.f;o<r;)for(var a,l=v(arguments[o++]),s=i?d(l).concat(i(l)):d(l),c=s.length,p=0;p<c;)u.call(l,a=s[p++])&&(n[a]=l[a]);return n}:o},function(e,t,n){var u=n(17),a=n(21),l=n(23)(!1),s=n(26)("IE_PROTO");e.exports=function(e,t){var n,r=a(e),o=0,i=[];for(n in r)n!=s&&u(r,n)&&i.push(n);for(;t.length>o;)u(r,n=t[o++])&&(~l(i,n)||i.push(n));return i}},function(e,t,n){var r=n(25),o=Math.max,i=Math.min;e.exports=function(e,t){return(e=r(e))<0?o(e+t,0):i(e,t)}},function(e,t){e.exports=!1},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(48);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){var r=n(2),o=n(33),i=n(34)("species");e.exports=function(e){var t;return o(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!o(t.prototype)||(t=void 0),r(t)&&null===(t=t[i])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){"use strict";var r=n(0),o=n(32)(2);r(r.P+r.F*!n(13)([].filter,!0),"Array",{filter:function(e){return o(this,e,arguments[1])}})},function(e,t,n){var r=n(0);r(r.S,"Array",{isArray:n(33)})},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0,n(14),n(36),n(31),n(35),n(30),n(55),n(58);var W=n(5),H=o(n(60)),r=o(n(61));function o(e){return e&&e.__esModule?e:{default:e}}function z(){return(z=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var u,a={13:"enter",27:"escape",32:"space",38:"up",40:"down"},$=((u=document.createElement("x")).style.cssText="pointer-events:auto","auto"===u.style.pointerEvents);function d(){return!(!navigator.userAgent.match(/(iPod|iPhone|iPad)/g)||!navigator.userAgent.match(/AppleWebKit/g))}var l=function(n){function e(e){var t;return(t=n.call(this,e)||this).elementReferences={},t.state={focused:null,hovered:null,clicked:null,menuOpen:!1,options:e.defaultValue?[e.defaultValue]:[],query:e.defaultValue,selected:null},t.handleComponentBlur=t.handleComponentBlur.bind(i(i(t))),t.handleKeyDown=t.handleKeyDown.bind(i(i(t))),t.handleUpArrow=t.handleUpArrow.bind(i(i(t))),t.handleDownArrow=t.handleDownArrow.bind(i(i(t))),t.handleEnter=t.handleEnter.bind(i(i(t))),t.handlePrintableKey=t.handlePrintableKey.bind(i(i(t))),t.handleListMouseLeave=t.handleListMouseLeave.bind(i(i(t))),t.handleOptionBlur=t.handleOptionBlur.bind(i(i(t))),t.handleOptionClick=t.handleOptionClick.bind(i(i(t))),t.handleOptionFocus=t.handleOptionFocus.bind(i(i(t))),t.handleOptionMouseEnter=t.handleOptionMouseEnter.bind(i(i(t))),t.handleInputBlur=t.handleInputBlur.bind(i(i(t))),t.handleInputChange=t.handleInputChange.bind(i(i(t))),t.handleInputFocus=t.handleInputFocus.bind(i(i(t))),t.pollInputElement=t.pollInputElement.bind(i(i(t))),t.getDirectInputChanges=t.getDirectInputChanges.bind(i(i(t))),t}var t,r;r=n,(t=e).prototype=Object.create(r.prototype),(t.prototype.constructor=t).__proto__=r;var o=e.prototype;return o.componentDidMount=function(){this.pollInputElement()},o.componentWillUnmount=function(){clearTimeout(this.$pollInput),clearTimeout(this.$blurInput)},o.pollInputElement=function(){var e=this;this.getDirectInputChanges(),this.$pollInput=setTimeout(function(){e.pollInputElement()},100)},o.getDirectInputChanges=function(){var e=this.elementReferences[-1];e&&e.value!==this.state.query&&this.handleInputChange({target:{value:e.value}})},o.componentDidUpdate=function(e,t){var n=this.state,r=n.focused,o=n.clicked,i=null===r,u=t.focused!==r;(u&&!i||null!==o)&&this.elementReferences[r].focus();var a=-1===r,l=u&&null===t.focused;if(a&&l){var s=this.elementReferences[r];s.setSelectionRange(0,s.value.length)}},o.hasAutoselect=function(){return!d()&&this.props.autoselect},o.templateInputValue=function(e){var t=this.props.templates&&this.props.templates.inputValue;return t?t(e):e},o.templateSuggestion=function(e){var t=this.props.templates&&this.props.templates.suggestion;return t?t(e):e},o.handleComponentBlur=function(e){var t,n=this.state,r=n.options,o=n.query,i=n.selected;this.props.confirmOnBlur?(t=e.query||o,this.props.onConfirm(r[i])):t=o,this.setState({focused:null,clicked:null,menuOpen:e.menuOpen||!1,query:t,selected:null})},o.handleListMouseLeave=function(e){this.setState({hovered:null})},o.handleOptionBlur=function(e,t){var n=this.state,r=n.focused,o=n.clicked,i=n.menuOpen,u=n.options,a=n.selected,l=null===e.relatedTarget&&null===o,s=e.relatedTarget===this.elementReferences[-1],c=r!==t&&-1!==r;if(!c&&l||!c&&!s){var p=i&&d();this.handleComponentBlur({menuOpen:p,query:this.templateInputValue(u[a])})}},o.handleInputBlur=function(e){var t=this,n=this.state,r=n.focused,o=n.menuOpen,i=n.options,u=n.query,a=n.selected,l=-1!==r;if(clearTimeout(this.$blurInput),!l){var s=o&&d(),c=d()?u:this.templateInputValue(i[a]);this.$blurInput=setTimeout(function(){return t.handleComponentBlur({menuOpen:s,query:c})},200)}},o.handleInputChange=function(e){var n=this,t=this.props,r=t.minLength,o=t.source,i=t.showAllValues,u=this.hasAutoselect(),a=e.target.value,l=0===a.length,s=this.state.query.length!==a.length,c=a.length>=r;this.setState({query:a}),i||!l&&s&&c?o(a,function(e){var t=0<e.length;n.setState({menuOpen:t,options:e,selected:u&&t?0:-1})}):!l&&c||this.setState({menuOpen:!1,options:[]})},o.handleInputClick=function(e){this.handleInputChange(e)},o.handleInputFocus=function(e){this.setState({focused:-1})},o.handleOptionFocus=function(e){this.setState({focused:e,hovered:null,selected:e})},o.handleOptionMouseEnter=function(e,t){d()||this.setState({hovered:t})},o.handleOptionClick=function(e,t){var n=this.state.options[t],r=this.templateInputValue(n);clearTimeout(this.$blurInput),this.props.onConfirm(n),this.setState({focused:-1,clicked:t,hovered:null,menuOpen:!1,query:r,selected:-1}),this.forceUpdate()},o.handleUpArrow=function(e){e.preventDefault();var t=this.state,n=t.menuOpen,r=t.selected;-1!==r&&n&&this.handleOptionFocus(r-1)},o.handleDownArrow=function(e){var t=this;if(e.preventDefault(),this.props.showAllValues&&!1===this.state.menuOpen)e.preventDefault(),this.props.source("",function(e){t.setState({menuOpen:!0,options:e,selected:0,focused:0,hovered:null})});else if(!0===this.state.menuOpen){var n=this.state,r=n.menuOpen,o=n.options,i=n.selected;i!==o.length-1&&r&&this.handleOptionFocus(i+1)}},o.handleSpace=function(e){var t=this;this.props.showAllValues&&!1===this.state.menuOpen&&""===this.state.query&&(e.preventDefault(),this.props.source("",function(e){t.setState({menuOpen:!0,options:e})})),-1!==this.state.focused&&(e.preventDefault(),this.handleOptionClick(e,this.state.focused))},o.handleEnter=function(e){this.state.menuOpen&&(e.preventDefault(),0<=this.state.selected&&this.handleOptionClick(e,this.state.selected))},o.handlePrintableKey=function(e){var t=this.elementReferences[-1];e.target===t||t.focus()},o.handleKeyDown=function(e){switch(a[e.keyCode]){case"up":this.handleUpArrow(e);break;case"down":this.handleDownArrow(e);break;case"space":this.handleSpace(e);break;case"enter":this.handleEnter(e);break;case"escape":this.handleComponentBlur({query:this.state.query});break;default:(47<(t=e.keyCode)&&t<58||32===t||8===t||64<t&&t<91||95<t&&t<112||185<t&&t<193||218<t&&t<223)&&this.handlePrintableKey(e)}var t},o.render=function(){var e,o=this,t=this.props,n=t.cssNamespace,r=t.displayMenu,i=t.id,u=t.minLength,a=t.name,l=t.placeholder,s=t.required,c=t.showAllValues,p=t.tNoResults,d=t.tStatusQueryTooShort,f=t.tStatusNoResults,h=t.tStatusSelectedOption,m=t.tStatusResults,v=t.dropdownArrow,y=this.state,_=y.focused,b=y.hovered,g=y.menuOpen,w=y.options,x=y.query,E=y.selected,O=this.hasAutoselect(),S=-1===_,C=0===w.length,k=0!==x.length,N=x.length>=u,A=this.props.showNoOptionsFound&&S&&C&&k&&N,I=n+"__wrapper",P=n+"__input",j=null!==_?" "+P+"--focused":"",L=this.props.showAllValues?" "+P+"--show-all-values":" "+P+"--default",T=n+"__dropdown-arrow-down",M=-1!==_&&null!==_,D=n+"__menu",B=D+"--"+r,q=D+"--"+(g||A?"visible":"hidden"),R=n+"__option",F=n+"__hint",V=this.templateInputValue(w[E]),U=V&&0===V.toLowerCase().indexOf(x.toLowerCase())&&O?x+V.substr(x.length):"",K=$&&U;return c&&"string"==typeof(e=v({className:T}))&&(e=(0,W.createElement)("div",{className:n+"__dropdown-arrow-down-wrapper",dangerouslySetInnerHTML:{__html:e}})),(0,W.createElement)("div",{className:I,onKeyDown:this.handleKeyDown,role:"combobox","aria-expanded":g?"true":"false"},(0,W.createElement)(H.default,{length:w.length,queryLength:x.length,minQueryLength:u,selectedOption:this.templateInputValue(w[E]),selectedOptionIndex:E,tQueryTooShort:d,tNoResults:f,tSelectedOption:h,tResults:m}),K&&(0,W.createElement)("span",null,(0,W.createElement)("input",{className:F,readonly:!0,tabIndex:"-1",value:U})),(0,W.createElement)("input",z({"aria-activedescendant":!!M&&i+"__option--"+_,"aria-owns":i+"__listbox",autoComplete:"off",className:""+P+j+L,id:i,onClick:function(e){return o.handleInputClick(e)},onBlur:this.handleInputBlur},{onInput:this.handleInputChange},{onFocus:this.handleInputFocus,name:a,placeholder:l,ref:function(e){o.elementReferences[-1]=e},type:"text",role:"textbox",required:s,value:x})),e,(0,W.createElement)("ul",{className:D+" "+B+" "+q,onMouseLeave:function(e){return o.handleListMouseLeave(e)},id:i+"__listbox",role:"listbox"},w.map(function(e,t){var n=(-1===_?E===t:_===t)&&null===b?" "+R+"--focused":"",r=t%2?" "+R+"--odd":"";return(0,W.createElement)("li",{"aria-selected":_===t,className:""+R+n+r,dangerouslySetInnerHTML:{__html:o.templateSuggestion(e)},id:i+"__option--"+t,key:t,onBlur:function(e){return o.handleOptionBlur(e,t)},onClick:function(e){return o.handleOptionClick(e,t)},onMouseEnter:function(e){return o.handleOptionMouseEnter(e,t)},ref:function(e){o.elementReferences[t]=e},role:"option",tabIndex:"-1"})}),A&&(0,W.createElement)("li",{className:R+" "+R+"--no-results"},p())))},e}(W.Component);(t.default=l).defaultProps={autoselect:!1,cssNamespace:"autocomplete",defaultValue:"",displayMenu:"inline",minLength:0,name:"input-autocomplete",placeholder:"",onConfirm:function(){},confirmOnBlur:!0,showNoOptionsFound:!0,showAllValues:!1,required:!1,tNoResults:function(){return"No results found"},dropdownArrow:r.default}},function(e,t,r){var o=r(9),i=r(53),u=r(28),a=r(26)("IE_PROTO"),l=function(){},s="prototype",c=function(){var e,t=r(15)("iframe"),n=u.length;for(t.style.display="none",r(54).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;n--;)delete c[s][u[n]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(l[s]=o(e),n=new l,l[s]=null,n[a]=e):n=c(),void 0===t?n:i(n,t)}},function(e,t,n){var u=n(8),a=n(9),l=n(20);e.exports=n(3)?Object.defineProperties:function(e,t){a(e);for(var n,r=l(t),o=r.length,i=0;i<o;)u.f(e,n=r[i++],t[n]);return e}},function(e,t,n){var r=n(1).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(0);r(r.P,"Function",{bind:n(56)})},function(e,t,n){"use strict";var i=n(19),u=n(2),a=n(57),l=[].slice,s={};e.exports=Function.bind||function(n){var r=i(this),o=l.call(arguments,1),e=function e(){var t=o.concat(l.call(arguments));return this instanceof e?function(e,t,n){if(!(t in s)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";s[t]=Function("F,a","return new F("+r.join(",")+")")}return s[t](e,n)}(r,t.length,t):a(r,t,n)};return u(r.prototype)&&(e.prototype=r.prototype),e}},function(e,t){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){n(59)("match",1,function(r,o,e){return[function(e){"use strict";var t=r(this),n=null==e?void 0:e[o];return void 0!==n?n.call(e,t):new RegExp(e)[o](String(t))},e]})},function(e,t,n){"use strict";var a=n(7),l=n(16),s=n(4),c=n(12),p=n(34);e.exports=function(t,e,n){var r=p(t),o=n(c,r,""[t]),i=o[0],u=o[1];s(function(){var e={};return e[r]=function(){return 7},7!=""[t](e)})&&(l(String.prototype,t,i),a(RegExp.prototype,r,2==e?function(e,t){return u.call(e,this,t)}:function(e){return u.call(e,this)}))}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0,n(36);var m=n(5),r=function(o){function e(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))||this).state={bump:!1},e}var t,n;n=o,(t=e).prototype=Object.create(n.prototype),(t.prototype.constructor=t).__proto__=n;var r=e.prototype;return r.componentWillReceiveProps=function(e){e.queryLength!==this.props.queryLength&&this.setState(function(e){return{bump:!e.bump}})},r.render=function(){var e,t=this.props,n=t.length,r=t.queryLength,o=t.minQueryLength,i=t.selectedOption,u=t.selectedOptionIndex,a=t.tQueryTooShort,l=t.tNoResults,s=t.tSelectedOption,c=t.tResults,p=this.state.bump,d=r<o,f=0===n,h=i?s(i,n,u):"";return e=d?a(o):f?l():c(n,h),(0,m.createElement)("div",{"aria-atomic":"true","aria-live":"polite",role:"status",style:{border:"0",clip:"rect(0 0 0 0)",height:"1px",marginBottom:"-1px",marginRight:"-1px",overflow:"hidden",padding:"0",position:"absolute",whiteSpace:"nowrap",width:"1px"}},e,(0,m.createElement)("span",null,p?",":",,"))},e}(m.Component);(t.default=r).defaultProps={tQueryTooShort:function(e){return"Type in "+e+" or more characters for results."},tNoResults:function(){return"No search results."},tSelectedOption:function(e,t,n){return e+" ("+(n+1)+" of "+t+") is selected."},tResults:function(e,t){return e+" "+(1===e?"result":"results")+" "+(1===e?"is":"are")+" available. "+t}}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=n(5);t.default=function(e){var t=e.className;return(0,r.createElement)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:t,focusable:"false"},(0,r.createElement)("g",{stroke:"none",fill:"none","fill-rule":"evenodd"},(0,r.createElement)("polygon",{fill:"#000000",points:"0 0 22 0 11 17"})))}}]).default},"object"==w(i)&&"object"==w(e)?e.exports=o():(n=[],void 0===(r="function"==typeof(t=o)?t.apply(i,n):t)||(e.exports=r))}).call(this,t(1)(e))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){!function(e){"use strict";var i=e.NHSUK||{};i.details={NATIVE_DETAILS:"boolean"==typeof document.createElement("details").open,KEY_ENTER:13,KEY_SPACE:32,started:!1,addEvent:function(e,t,n){e.addEventListener?e.addEventListener(t,function(e){n(e,e.target)},!1):e.attachEvent&&e.attachEvent("on"+t,function(e){n(e,e.srcElement)})},removeEvent:function(e,t){e.removeEventListener?e.removeEventListener(t,function(e){},!1):e.detachEvent&&e.detachEvent("on"+t,function(e){})},charCode:function(e){return"number"==typeof e.which?e.which:e.keyCode},preventDefault:function(e){e.preventDefault?e.preventDefault():e.returnValue=!1},addClickEvent:function(e,n){i.details.addEvent(e,"keypress",function(e,t){i.details.charCode(e)!==i.details.KEY_ENTER&&i.details.charCode(e)!==i.details.KEY_SPACE||"summary"===t.nodeName.toLowerCase()&&(i.details.preventDefault(e),t.click?t.click():n(e,t))}),i.details.addEvent(e,"keyup",function(e,t){i.details.charCode(e)===i.details.KEY_SPACE&&"SUMMARY"===t.nodeName&&i.details.preventDefault(e)}),i.details.addEvent(e,"click",function(e,t){n(e,t)})},getAncestor:function(e,t){do{if(!e||e.nodeName.toLowerCase()===t)break;e=e.parentNode}while(e);return e},addDetailsPolyfill:function(e,t){if(t=t||document.body,!i.details.started&&(i.details.started=!0,0!==(e=t.getElementsByTagName("details")).length)){for(var n=e.length,r=0;r<n;r++){var o=e[r];if(o.__summary=o.getElementsByTagName("summary").item(0),o.__content=o.getElementsByTagName("div").item(0),!o.__summary||!o.__content)return;o.__content.id||(o.__content.id="details-content-"+r),o.__summary.setAttribute("role","button"),o.__summary.setAttribute("aria-controls",o.__content.id),i.details.NATIVE_DETAILS||(o.__summary.tabIndex=0),!0==(null!==o.getAttribute("open"))?(o.__summary.setAttribute("aria-expanded","true"),o.__content.setAttribute("aria-hidden","false")):(o.__summary.setAttribute("aria-expanded","false"),o.__content.setAttribute("aria-hidden","true"),i.details.NATIVE_DETAILS||(o.__content.style.display="none")),o.__summary.__details=o}i.details.addClickEvent(t,function(e,t){return!(t=i.details.getAncestor(t,"summary"))||i.details.statechange(t)})}},statechange:function(e){var t="true"===e.__details.__summary.getAttribute("aria-expanded"),n="true"===e.__details.__content.getAttribute("aria-hidden");return e.__details.__summary.setAttribute("aria-expanded",t?"false":"true"),e.__details.__content.setAttribute("aria-hidden",n?"false":"true"),i.details.NATIVE_DETAILS||(e.__details.__content.style.display=t?"none":"",null!==e.__details.getAttribute("open")?e.__details.removeAttribute("open"):e.__details.setAttribute("open","open")),!0},destroy:function(e){i.details.removeEvent(e,"click")},init:function(e){i.details.addEvent(document,"DOMContentLoaded",i.details.addDetailsPolyfill),i.details.addEvent(window,"load",i.details.addDetailsPolyfill)}},e.NHSUK=i}(window),NHSUK.details.init()},function(e,t,n){"use strict";n.r(t);var i=document.querySelector("#nhsuk-feedback-banner"),r=document.querySelector("#nhsuk-feedback-banner-close"),u=document.querySelector("#nhsuk-footer");function o(){i&&(i.style.display="none")}function a(){var r=!1,o=!1;o=setInterval(function(){var e,t,n;r&&(r=!1,clearTimeout(o),t=(e=u.getBoundingClientRect()).top,n=e.bottom,t<window.innerHeight&&0<=n?i.classList.add("js-inview"):i.classList.remove("js-inview"))},500),r=!0}var l=function(e){setTimeout(function(){i&&(i.style.display="block")},e),r&&r.addEventListener("click",o),i&&window.addEventListener("scroll",a)};function s(e,t){var n=e.className,r=new RegExp("\\b "+t+"\\b"),o=n.match(r);t=t.replace(/\s+/g,""),e.className=o?n.replace(r,""):n+" "+t}var c=document.querySelector("#toggle-search"),p=document.querySelector("#close-search"),d=document.querySelector("#wrap-search"),f=document.querySelector("#content-header");function h(e){e.preventDefault(),c.hasAttribute("aria-expanded")?c.removeAttribute("aria-expanded"):c.setAttribute("aria-expanded","true"),s(c,"is-active"),s(d,"js-show"),s(f,"js-show")}var m=document.querySelector("#toggle-menu"),v=document.querySelector("#close-menu"),y=document.querySelector("#header-navigation");function _(e){e.preventDefault(),m.hasAttribute("aria-expanded")?m.removeAttribute("aria-expanded"):m.setAttribute("aria-expanded","true"),s(m,"is-active"),s(y,"js-show")}var b=document.querySelector(".nhsuk-skip-link"),g=document.getElementsByTagName("H1")[0];var w=function(){b&&g&&b.addEventListener("click",function(e){e.preventDefault(),g.setAttribute("tabIndex","-1"),g.focus()}),b&&g&&g.addEventListener("blur",function(e){e.preventDefault(),g.removeAttribute("tabIndex")})},x=n(0),E=n.n(x);function O(){var e=document.getElementById("wrap-search");if(e){var t=e.getBoundingClientRect(),n=document.getElementById("search-field__listbox");n.style.width=t.width+"px",n.style.top=t.bottom+"px"}}function S(e,t){var n,r=(n=e,"".concat("https://nhs.funnelback.co.uk/s/suggest.json","?collection=nhs-meta&partial_query=").concat(n,"&sort=0&fmt=json++&profile=&show=").concat(10)),o=new XMLHttpRequest;o.open("GET",r),o.onload=function(){if(200===o.status){var e=JSON.parse(o.responseText).map(function(e){return e.disp});t(e)}},o.send()}document.getElementById("wrap-search")&&window.addEventListener("load",function(e){var t;O(),window.addEventListener("resize",function(){t||(t=setTimeout(function(){t=null,O()},66))},!1)});n(2),document.addEventListener("DOMContentLoaded",function(){l(3e3),c&&c.addEventListener("click",h),p&&p.addEventListener("click",h),m&&m.addEventListener("click",_),v&&v.addEventListener("click",_),w(),function(e){var t=e&&e.id?e.id:"search-field",n=document.getElementById(t);if(n){var r=function(o){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{},t=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(i).filter(function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable}))),t.forEach(function(e){var t,n,r;t=o,r=i[n=e],n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r})}return o}({},{element:document.querySelector("#autocomplete-container"),id:t,minLength:2,placeholder:n.placeholder,confirmOnBlur:!1,onConfirm:function(e){window.open("https://www.nhs.uk/search?collection=nhs-meta&query="+e,"_self")},source:S,templates:{suggestion:function(e){var t=36<e.length?"...":"",n=e.substring(0,36)+t;return'<svg class="nhsuk-icon nhsuk-icon__search" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true"><path d="M19.71 18.29l-4.11-4.1a7 7 0 1 0-1.41 1.41l4.1 4.11a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42zM5 10a5 5 0 1 1 5 5 5 5 0 0 1-5-5z"></path></svg><a href="https://www.nhs.uk/search?collection=nhs-meta&query='+e+'">'+n+"</a>"}}},e),o=document.getElementById(t);o.parentNode.removeChild(o),E()(r)}}()})}]);
!function(n){var r={};function o(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.m=n,o.c=r,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=3)}([function(e,i,t){(function(e){var t,n,r,o;function w(e){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}window,o=function(){return function(n){var r={};function o(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}return o.m=n,o.c=r,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==w(t)&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="/",o(o.s=37)}([function(e,t,n){var m=n(1),v=n(6),y=n(7),_=n(16),b=n(18),g="prototype",r=function e(t,n,r){var o,i,u,a,l=t&e.F,s=t&e.G,c=t&e.P,d=t&e.B,p=s?m:t&e.S?m[n]||(m[n]={}):(m[n]||{})[g],f=s?v:v[n]||(v[n]={}),h=f[g]||(f[g]={});for(o in s&&(r=n),r)u=((i=!l&&p&&void 0!==p[o])?p:r)[o],a=d&&i?b(u,m):c&&"function"==typeof u?b(Function.call,u):u,p&&_(p,o,u,t&e.U),f[o]!=u&&y(f,o,a),c&&h[o]!=u&&(h[o]=u)};m.core=v,r.F=1,r.G=2,r.S=4,r.P=8,r.B=16,r.W=32,r.U=64,r.R=128,e.exports=r},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports=function(e){return"object"==w(e)?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(4)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){"use strict";n.r(t),n.d(t,"h",function(){return r}),n.d(t,"createElement",function(){return r}),n.d(t,"cloneElement",function(){return i}),n.d(t,"Component",function(){return _}),n.d(t,"render",function(){return b}),n.d(t,"rerender",function(){return p}),n.d(t,"options",function(){return C});var l=function(){},C={},s=[],c=[];function r(e,t){var n,r,o,i,u=c;for(i=arguments.length;2<i--;)s.push(arguments[i]);for(t&&null!=t.children&&(s.length||s.push(t.children),delete t.children);s.length;)if((r=s.pop())&&void 0!==r.pop)for(i=r.length;i--;)s.push(r[i]);else"boolean"==typeof r&&(r=null),(o="function"!=typeof e)&&(null==r?r="":"number"==typeof r?r=String(r):"string"!=typeof r&&(o=!1)),o&&n?u[u.length-1]+=r:u===c?u=[r]:u.push(r),n=o;var a=new l;return a.nodeName=e,a.children=u,a.attributes=null==t?void 0:t,a.key=null==t?void 0:t.key,void 0!==C.vnode&&C.vnode(a),a}function k(e,t){for(var n in t)e[n]=t[n];return e}var o="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout;function i(e,t){return r(e.nodeName,k(k({},e.attributes),t),2<arguments.length?[].slice.call(arguments,2):e.children)}var d=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,u=[];function a(e){!e._dirty&&(e._dirty=!0)&&1==u.push(e)&&(C.debounceRendering||o)(p)}function p(){var e,t=u;for(u=[];e=t.pop();)e._dirty&&R(e)}function O(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function N(e){var t=k({},e.attributes);t.children=e.children;var n=e.nodeName.defaultProps;if(void 0!==n)for(var r in n)void 0===t[r]&&(t[r]=n[r]);return t}function A(e){var t=e.parentNode;t&&t.removeChild(e)}function m(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"==w(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===d.test(i)?r[i]+"px":r[i]}}else if("dangerouslySetInnerHTML"===t)r&&(e.innerHTML=r.__html||"");else if("o"==t[0]&&"n"==t[1]){var u=t!==(t=t.replace(/Capture$/,""));t=t.toLowerCase().substring(2),r?n||e.addEventListener(t,f,u):e.removeEventListener(t,f,u),(e._listeners||(e._listeners={}))[t]=r}else if("list"!==t&&"type"!==t&&!o&&t in e){try{e[t]=null==r?"":r}catch(e){}null!=r&&!1!==r||"spellcheck"==t||e.removeAttribute(t)}else{var a=o&&t!==(t=t.replace(/^xlink:?/,""));null==r||!1===r?a?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t):"function"!=typeof r&&(a?e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),r):e.setAttribute(t,r))}else e.className=r||""}function f(e){return this._listeners[e.type](C.event&&C.event(e)||e)}var I=[],P=0,j=!1,L=!1;function T(){for(var e;e=I.pop();)C.afterMount&&C.afterMount(e),e.componentDidMount&&e.componentDidMount()}function M(e,t,n,r,o){var i=e,u=j;if(null!=t&&"boolean"!=typeof t||(t=""),"string"==typeof t||"number"==typeof t)return e&&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),B(e,!0))),i.__preactattr_=!0,i;var a,l,s=t.nodeName;if("function"==typeof s)return function(e,t,n,r){for(var o=e&&e._component,i=o,u=e,a=o&&e._componentConstructor===t.nodeName,l=a,s=N(t);o&&!l&&(o=o._parentComponent);)l=o.constructor===t.nodeName;return o&&l&&(!r||o._component)?(q(o,s,3,n,r),e=o.base):(i&&!a&&(F(i),e=u=null),o=D(t.nodeName,s,n),e&&!o.nextBase&&(o.nextBase=e,u=null),q(o,s,1,n,r),e=o.base,u&&e!==u&&(u._component=null,B(u,!1))),e}(e,t,n,r);if(j="svg"===s||"foreignObject"!==s&&j,s=String(s),(!e||!O(e,s))&&(a=s,(l=j?document.createElementNS("http://www.w3.org/2000/svg",a):document.createElement(a)).normalizedNodeName=a,i=l,e)){for(;e.firstChild;)i.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild(i,e),B(e,!0)}var c=i.firstChild,d=i.__preactattr_,p=t.children;if(null==d){d=i.__preactattr_={};for(var f=i.attributes,h=f.length;h--;)d[f[h].name]=f[h].value}return!L&&p&&1===p.length&&"string"==typeof p[0]&&null!=c&&void 0!==c.splitText&&null==c.nextSibling?c.nodeValue!=p[0]&&(c.nodeValue=p[0]):(p&&p.length||null!=c)&&function(e,t,n,r,o){var i,u,a,l,s,c,d,p,f=e.childNodes,h=[],m={},v=0,y=0,_=f.length,b=0,g=t?t.length:0;if(0!==_)for(var w=0;w<_;w++){var x=f[w],E=x.__preactattr_;null!=(S=g&&E?x._component?x._component.__key:E.key:null)?(v++,m[S]=x):(E||(void 0!==x.splitText?!o||x.nodeValue.trim():o))&&(h[b++]=x)}if(0!==g)for(w=0;w<g;w++){var S;if((s=null)!=(S=(l=t[w]).key))v&&void 0!==m[S]&&(s=m[S],m[S]=void 0,v--);else if(y<b)for(i=y;i<b;i++)if(void 0!==h[i]&&(c=u=h[i],p=o,"string"==typeof(d=l)||"number"==typeof d?void 0!==c.splitText:"string"==typeof d.nodeName?!c._componentConstructor&&O(c,d.nodeName):p||c._componentConstructor===d.nodeName)){s=u,h[i]=void 0,i===b-1&&b--,i===y&&y++;break}s=M(s,l,n,r),a=f[w],s&&s!==e&&s!==a&&(null==a?e.appendChild(s):s===a.nextSibling?A(a):e.insertBefore(s,a))}if(v)for(var w in m)void 0!==m[w]&&B(m[w],!1);for(;y<=b;)void 0!==(s=h[b--])&&B(s,!1)}(i,p,n,r,L||null!=d.dangerouslySetInnerHTML),function(e,t,n){var r;for(r in n)t&&null!=t[r]||null==n[r]||m(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])||m(e,r,n[r],n[r]=t[r],j)}(i,t.attributes,d),j=u,i}function B(e,t){var n=e._component;n?F(n):(null!=e.__preactattr_&&e.__preactattr_.ref&&e.__preactattr_.ref(null),!1!==t&&null!=e.__preactattr_||A(e),h(e))}function h(e){for(e=e.lastChild;e;){var t=e.previousSibling;B(e,!0),e=t}}var v=[];function D(e,t,n){var r,o=v.length;for(e.prototype&&e.prototype.render?(r=new e(t,n),_.call(r,t,n)):((r=new _(t,n)).constructor=e,r.render=y);o--;)if(v[o].constructor===e)return r.nextBase=v[o].nextBase,v.splice(o,1),r;return r}function y(e,t,n){return this.constructor(e,n)}function q(e,t,n,r,o){e._disable||(e._disable=!0,e.__ref=t.ref,e.__key=t.key,delete t.ref,delete t.key,void 0===e.constructor.getDerivedStateFromProps&&(!e.base||o?e.componentWillMount&&e.componentWillMount():e.componentWillReceiveProps&&e.componentWillReceiveProps(t,r)),r&&r!==e.context&&(e.prevContext||(e.prevContext=e.context),e.context=r),e.prevProps||(e.prevProps=e.props),e.props=t,e._disable=!1,0!==n&&(1!==n&&!1===C.syncComponentUpdates&&e.base?a(e):R(e,1,o)),e.__ref&&e.__ref(e))}function R(e,t,n,r){if(!e._disable){var o,i,u,a=e.props,l=e.state,s=e.context,c=e.prevProps||a,d=e.prevState||l,p=e.prevContext||s,f=e.base,h=e.nextBase,m=f||h,v=e._component,y=!1,_=p;if(e.constructor.getDerivedStateFromProps&&(l=k(k({},l),e.constructor.getDerivedStateFromProps(a,l)),e.state=l),f&&(e.props=c,e.state=d,e.context=p,2!==t&&e.shouldComponentUpdate&&!1===e.shouldComponentUpdate(a,l,s)?y=!0:e.componentWillUpdate&&e.componentWillUpdate(a,l,s),e.props=a,e.state=l,e.context=s),e.prevProps=e.prevState=e.prevContext=e.nextBase=null,e._dirty=!1,!y){o=e.render(a,l,s),e.getChildContext&&(s=k(k({},s),e.getChildContext())),f&&e.getSnapshotBeforeUpdate&&(_=e.getSnapshotBeforeUpdate(c,d));var b,g,w=o&&o.nodeName;if("function"==typeof w){var x=N(o);(i=v)&&i.constructor===w&&x.key==i.__key?q(i,x,1,s,!1):(b=i,e._component=i=D(w,x,s),i.nextBase=i.nextBase||h,i._parentComponent=e,q(i,x,0,s,!1),R(i,1,n,!0)),g=i.base}else u=m,(b=v)&&(u=e._component=null),(m||1===t)&&(u&&(u._component=null),g=function(e,t,n,r,o,i){P++||(j=null!=o&&void 0!==o.ownerSVGElement,L=null!=e&&!("__preactattr_"in e));var u=M(e,t,n,r,!0);return o&&u.parentNode!==o&&o.appendChild(u),--P||(L=!1),u}(u,o,s,n||!f,m&&m.parentNode));if(m&&g!==m&&i!==v){var E=m.parentNode;E&&g!==E&&(E.replaceChild(g,m),b||(m._component=null,B(m,!1)))}if(b&&F(b),(e.base=g)&&!r){for(var S=e,O=e;O=O._parentComponent;)(S=O).base=g;g._component=S,g._componentConstructor=S.constructor}}for(!f||n?I.unshift(e):y||(e.componentDidUpdate&&e.componentDidUpdate(c,d,_),C.afterUpdate&&C.afterUpdate(e));e._renderCallbacks.length;)e._renderCallbacks.pop().call(e);P||r||T()}}function F(e){C.beforeUnmount&&C.beforeUnmount(e);var t=e.base;e._disable=!0,e.componentWillUnmount&&e.componentWillUnmount(),e.base=null;var n=e._component;n?F(n):t&&(t.__preactattr_&&t.__preactattr_.ref&&t.__preactattr_.ref(null),A(e.nextBase=t),v.push(e),h(t)),e.__ref&&e.__ref(null)}function _(e,t){this._dirty=!0,this.context=t,this.props=e,this.state=this.state||{},this._renderCallbacks=[]}function b(e,t,n){return function(e,t,n,r,o,i){P++||(j=null!=o&&void 0!==o.ownerSVGElement,L=null!=e&&!("__preactattr_"in e));var u=M(e,t,{},!1,!1);return o&&u.parentNode!==o&&o.appendChild(u),--P||(L=!1,T()),u}(n,e,0,0,t)}k(_.prototype,{setState:function(e,t){this.prevState||(this.prevState=this.state),this.state=k(k({},this.state),"function"==typeof e?e(this.state,this.props):e),t&&this._renderCallbacks.push(t),a(this)},forceUpdate:function(e){e&&this._renderCallbacks.push(e),R(this,2)},render:function(){}});var g={h:r,createElement:r,cloneElement:i,Component:_,render:b,rerender:p,options:C};t.default=g},function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(8),o=n(40);e.exports=n(3)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(9),o=n(38),i=n(39),u=Object.defineProperty;t.f=n(3)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return u(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(2);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){var r=n(22);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){"use strict";var r=n(4);e.exports=function(e,t){return!!e&&r(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t,n){var r=n(0);r(r.S+r.F,"Object",{assign:n(41)})},function(e,t,n){var r=n(2),o=n(1).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){var i=n(1),u=n(7),a=n(17),l=n(10)("src"),r="toString",o=Function[r],s=(""+o).split(r);n(6).inspectSource=function(e){return o.call(e)},(e.exports=function(e,t,n,r){var o="function"==typeof n;o&&(a(n,"name")||u(n,"name",t)),e[t]!==n&&(o&&(a(n,l)||u(n,l,e[t]?""+e[t]:s.join(String(t)))),e===i?e[t]=n:r?e[t]?e[t]=n:u(e,t,n):(delete e[t],u(e,t,n)))})(Function.prototype,r,function(){return"function"==typeof this&&this[l]||o.call(this)})},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var i=n(19);e.exports=function(r,o,e){if(i(r),void 0===o)return r;switch(e){case 1:return function(e){return r.call(o,e)};case 2:return function(e,t){return r.call(o,e,t)};case 3:return function(e,t,n){return r.call(o,e,t,n)}}return function(){return r.apply(o,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(42),o=n(28);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){var r=n(11),o=n(12);e.exports=function(e){return r(o(e))}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var l=n(21),s=n(24),c=n(43);e.exports=function(a){return function(e,t,n){var r,o=l(e),i=s(o.length),u=c(n,i);if(a&&t!=t){for(;u<i;)if((r=o[u++])!=r)return!0}else for(;u<i;u++)if((a||u in o)&&o[u]===t)return a||u||0;return!a&&-1}}},function(e,t,n){var r=n(25),o=Math.min;e.exports=function(e){return 0<e?o(r(e),9007199254740991):0}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0<e?r:n)(e)}},function(e,t,n){var r=n(27)("keys"),o=n(10);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(6),o=n(1),i="__core-js_shared__",u=o[i]||(o[i]={});(e.exports=function(e,t){return u[e]||(u[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(44)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(12);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(8).f,o=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in o||n(3)&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(e){return""}}})},function(e,t,n){"use strict";var r=n(0),o=n(32)(1);r(r.P+r.F*!n(13)([].map,!0),"Array",{map:function(e){return o(this,e,arguments[1])}})},function(e,t,n){var b=n(18),g=n(11),w=n(29),x=n(24),r=n(47);e.exports=function(d,e){var p=1==d,f=2==d,h=3==d,m=4==d,v=6==d,y=5==d||v,_=e||r;return function(e,t,n){for(var r,o,i=w(e),u=g(i),a=b(t,n,3),l=x(u.length),s=0,c=p?_(e,l):f?_(e,0):void 0;s<l;s++)if((y||s in u)&&(o=a(r=u[s],s,i),d))if(p)c[s]=o;else if(o)switch(d){case 3:return!0;case 5:return r;case 6:return s;case 2:c.push(r)}else if(m)return!1;return v?-1:h||m?m:c}}},function(e,t,n){var r=n(22);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(27)("wks"),o=n(10),i=n(1).Symbol,u="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=u&&i[e]||(u?i:o)("Symbol."+e))}).store=r},function(e,t,n){"use strict";var r=n(0),o=n(23)(!1),i=[].indexOf,u=!!i&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(u||!n(13)(i)),"Array",{indexOf:function(e){return u?i.apply(this,arguments)||0:o(this,e,arguments[1])}})},function(e,t,n){var r=n(0);r(r.S,"Object",{create:n(52)})},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0,n(14),n(30),n(31),n(35),n(49),n(50);var r,o=n(5),i=(r=n(51))&&r.__esModule?r:{default:r};function u(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");var n;Array.isArray(e.source)&&(e.source=(n=e.source,function(t,e){e(n.filter(function(e){return-1!==e.toLowerCase().indexOf(t.toLowerCase())}))})),(0,o.render)((0,o.createElement)(i.default,e),e.element)}u.enhanceSelectElement=function(n){if(!n.selectElement)throw new Error("selectElement is not defined");if(!n.source){var e=[].filter.call(n.selectElement.options,function(e){return e.value||n.preserveNullOptions});n.source=e.map(function(e){return e.textContent||e.innerText})}if(n.onConfirm=n.onConfirm||function(t){var e=[].filter.call(n.selectElement.options,function(e){return(e.textContent||e.innerText)===t})[0];e&&(e.selected=!0)},n.selectElement.value||void 0===n.defaultValue){var t=n.selectElement.options[n.selectElement.options.selectedIndex];n.defaultValue=t.textContent||t.innerText}void 0===n.name&&(n.name=""),void 0===n.id&&(void 0===n.selectElement.id?n.id="":n.id=n.selectElement.id),void 0===n.autoselect&&(n.autoselect=!0);var r=document.createElement("span");n.selectElement.parentNode.insertBefore(r,n.selectElement),u(Object.assign({},n,{element:r})),n.selectElement.style.display="none",n.selectElement.id=n.selectElement.id+"-select"};var a=u;t.default=a},function(e,t,n){e.exports=!n(3)&&!n(4)(function(){return 7!=Object.defineProperty(n(15)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var o=n(2);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){"use strict";var p=n(20),f=n(45),h=n(46),m=n(29),v=n(11),o=Object.assign;e.exports=!o||n(4)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=o({},e)[n]||Object.keys(o({},t)).join("")!=r})?function(e,t){for(var n=m(e),r=arguments.length,o=1,i=f.f,u=h.f;o<r;)for(var a,l=v(arguments[o++]),s=i?p(l).concat(i(l)):p(l),c=s.length,d=0;d<c;)u.call(l,a=s[d++])&&(n[a]=l[a]);return n}:o},function(e,t,n){var u=n(17),a=n(21),l=n(23)(!1),s=n(26)("IE_PROTO");e.exports=function(e,t){var n,r=a(e),o=0,i=[];for(n in r)n!=s&&u(r,n)&&i.push(n);for(;t.length>o;)u(r,n=t[o++])&&(~l(i,n)||i.push(n));return i}},function(e,t,n){var r=n(25),o=Math.max,i=Math.min;e.exports=function(e,t){return(e=r(e))<0?o(e+t,0):i(e,t)}},function(e,t){e.exports=!1},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(48);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){var r=n(2),o=n(33),i=n(34)("species");e.exports=function(e){var t;return o(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!o(t.prototype)||(t=void 0),r(t)&&null===(t=t[i])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){"use strict";var r=n(0),o=n(32)(2);r(r.P+r.F*!n(13)([].filter,!0),"Array",{filter:function(e){return o(this,e,arguments[1])}})},function(e,t,n){var r=n(0);r(r.S,"Array",{isArray:n(33)})},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0,n(14),n(36),n(31),n(35),n(30),n(55),n(58);var H=n(5),W=o(n(60)),r=o(n(61));function o(e){return e&&e.__esModule?e:{default:e}}function z(){return(z=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var u,a={13:"enter",27:"escape",32:"space",38:"up",40:"down"},$=((u=document.createElement("x")).style.cssText="pointer-events:auto","auto"===u.style.pointerEvents);function p(){return!(!navigator.userAgent.match(/(iPod|iPhone|iPad)/g)||!navigator.userAgent.match(/AppleWebKit/g))}var l=function(n){function e(e){var t;return(t=n.call(this,e)||this).elementReferences={},t.state={focused:null,hovered:null,clicked:null,menuOpen:!1,options:e.defaultValue?[e.defaultValue]:[],query:e.defaultValue,selected:null},t.handleComponentBlur=t.handleComponentBlur.bind(i(i(t))),t.handleKeyDown=t.handleKeyDown.bind(i(i(t))),t.handleUpArrow=t.handleUpArrow.bind(i(i(t))),t.handleDownArrow=t.handleDownArrow.bind(i(i(t))),t.handleEnter=t.handleEnter.bind(i(i(t))),t.handlePrintableKey=t.handlePrintableKey.bind(i(i(t))),t.handleListMouseLeave=t.handleListMouseLeave.bind(i(i(t))),t.handleOptionBlur=t.handleOptionBlur.bind(i(i(t))),t.handleOptionClick=t.handleOptionClick.bind(i(i(t))),t.handleOptionFocus=t.handleOptionFocus.bind(i(i(t))),t.handleOptionMouseEnter=t.handleOptionMouseEnter.bind(i(i(t))),t.handleInputBlur=t.handleInputBlur.bind(i(i(t))),t.handleInputChange=t.handleInputChange.bind(i(i(t))),t.handleInputFocus=t.handleInputFocus.bind(i(i(t))),t.pollInputElement=t.pollInputElement.bind(i(i(t))),t.getDirectInputChanges=t.getDirectInputChanges.bind(i(i(t))),t}var t,r;r=n,(t=e).prototype=Object.create(r.prototype),(t.prototype.constructor=t).__proto__=r;var o=e.prototype;return o.componentDidMount=function(){this.pollInputElement()},o.componentWillUnmount=function(){clearTimeout(this.$pollInput),clearTimeout(this.$blurInput)},o.pollInputElement=function(){var e=this;this.getDirectInputChanges(),this.$pollInput=setTimeout(function(){e.pollInputElement()},100)},o.getDirectInputChanges=function(){var e=this.elementReferences[-1];e&&e.value!==this.state.query&&this.handleInputChange({target:{value:e.value}})},o.componentDidUpdate=function(e,t){var n=this.state,r=n.focused,o=n.clicked,i=null===r,u=t.focused!==r;(u&&!i||null!==o)&&this.elementReferences[r].focus();var a=-1===r,l=u&&null===t.focused;if(a&&l){var s=this.elementReferences[r];s.setSelectionRange(0,s.value.length)}},o.hasAutoselect=function(){return!p()&&this.props.autoselect},o.templateInputValue=function(e){var t=this.props.templates&&this.props.templates.inputValue;return t?t(e):e},o.templateSuggestion=function(e){var t=this.props.templates&&this.props.templates.suggestion;return t?t(e):e},o.handleComponentBlur=function(e){var t,n=this.state,r=n.options,o=n.query,i=n.selected;this.props.confirmOnBlur?(t=e.query||o,this.props.onConfirm(r[i])):t=o,this.setState({focused:null,clicked:null,menuOpen:e.menuOpen||!1,query:t,selected:null})},o.handleListMouseLeave=function(e){this.setState({hovered:null})},o.handleOptionBlur=function(e,t){var n=this.state,r=n.focused,o=n.clicked,i=n.menuOpen,u=n.options,a=n.selected,l=null===e.relatedTarget&&null===o,s=e.relatedTarget===this.elementReferences[-1],c=r!==t&&-1!==r;if(!c&&l||!c&&!s){var d=i&&p();this.handleComponentBlur({menuOpen:d,query:this.templateInputValue(u[a])})}},o.handleInputBlur=function(e){var t=this,n=this.state,r=n.focused,o=n.menuOpen,i=n.options,u=n.query,a=n.selected,l=-1!==r;if(clearTimeout(this.$blurInput),!l){var s=o&&p(),c=p()?u:this.templateInputValue(i[a]);this.$blurInput=setTimeout(function(){return t.handleComponentBlur({menuOpen:s,query:c})},200)}},o.handleInputChange=function(e){var n=this,t=this.props,r=t.minLength,o=t.source,i=t.showAllValues,u=this.hasAutoselect(),a=e.target.value,l=0===a.length,s=this.state.query.length!==a.length,c=a.length>=r;this.setState({query:a}),i||!l&&s&&c?o(a,function(e){var t=0<e.length;n.setState({menuOpen:t,options:e,selected:u&&t?0:-1})}):!l&&c||this.setState({menuOpen:!1,options:[]})},o.handleInputClick=function(e){this.handleInputChange(e)},o.handleInputFocus=function(e){this.setState({focused:-1})},o.handleOptionFocus=function(e){this.setState({focused:e,hovered:null,selected:e})},o.handleOptionMouseEnter=function(e,t){p()||this.setState({hovered:t})},o.handleOptionClick=function(e,t){var n=this.state.options[t],r=this.templateInputValue(n);clearTimeout(this.$blurInput),this.props.onConfirm(n),this.setState({focused:-1,clicked:t,hovered:null,menuOpen:!1,query:r,selected:-1}),this.forceUpdate()},o.handleUpArrow=function(e){e.preventDefault();var t=this.state,n=t.menuOpen,r=t.selected;-1!==r&&n&&this.handleOptionFocus(r-1)},o.handleDownArrow=function(e){var t=this;if(e.preventDefault(),this.props.showAllValues&&!1===this.state.menuOpen)e.preventDefault(),this.props.source("",function(e){t.setState({menuOpen:!0,options:e,selected:0,focused:0,hovered:null})});else if(!0===this.state.menuOpen){var n=this.state,r=n.menuOpen,o=n.options,i=n.selected;i!==o.length-1&&r&&this.handleOptionFocus(i+1)}},o.handleSpace=function(e){var t=this;this.props.showAllValues&&!1===this.state.menuOpen&&""===this.state.query&&(e.preventDefault(),this.props.source("",function(e){t.setState({menuOpen:!0,options:e})})),-1!==this.state.focused&&(e.preventDefault(),this.handleOptionClick(e,this.state.focused))},o.handleEnter=function(e){this.state.menuOpen&&(e.preventDefault(),0<=this.state.selected&&this.handleOptionClick(e,this.state.selected))},o.handlePrintableKey=function(e){var t=this.elementReferences[-1];e.target===t||t.focus()},o.handleKeyDown=function(e){switch(a[e.keyCode]){case"up":this.handleUpArrow(e);break;case"down":this.handleDownArrow(e);break;case"space":this.handleSpace(e);break;case"enter":this.handleEnter(e);break;case"escape":this.handleComponentBlur({query:this.state.query});break;default:(47<(t=e.keyCode)&&t<58||32===t||8===t||64<t&&t<91||95<t&&t<112||185<t&&t<193||218<t&&t<223)&&this.handlePrintableKey(e)}var t},o.render=function(){var e,o=this,t=this.props,n=t.cssNamespace,r=t.displayMenu,i=t.id,u=t.minLength,a=t.name,l=t.placeholder,s=t.required,c=t.showAllValues,d=t.tNoResults,p=t.tStatusQueryTooShort,f=t.tStatusNoResults,h=t.tStatusSelectedOption,m=t.tStatusResults,v=t.dropdownArrow,y=this.state,_=y.focused,b=y.hovered,g=y.menuOpen,w=y.options,x=y.query,E=y.selected,S=this.hasAutoselect(),O=-1===_,C=0===w.length,k=0!==x.length,N=x.length>=u,A=this.props.showNoOptionsFound&&O&&C&&k&&N,I=n+"__wrapper",P=n+"__input",j=null!==_?" "+P+"--focused":"",L=this.props.showAllValues?" "+P+"--show-all-values":" "+P+"--default",T=n+"__dropdown-arrow-down",M=-1!==_&&null!==_,B=n+"__menu",D=B+"--"+r,q=B+"--"+(g||A?"visible":"hidden"),R=n+"__option",F=n+"__hint",V=this.templateInputValue(w[E]),U=V&&0===V.toLowerCase().indexOf(x.toLowerCase())&&S?x+V.substr(x.length):"",K=$&&U;return c&&"string"==typeof(e=v({className:T}))&&(e=(0,H.createElement)("div",{className:n+"__dropdown-arrow-down-wrapper",dangerouslySetInnerHTML:{__html:e}})),(0,H.createElement)("div",{className:I,onKeyDown:this.handleKeyDown,role:"combobox","aria-expanded":g?"true":"false"},(0,H.createElement)(W.default,{length:w.length,queryLength:x.length,minQueryLength:u,selectedOption:this.templateInputValue(w[E]),selectedOptionIndex:E,tQueryTooShort:p,tNoResults:f,tSelectedOption:h,tResults:m}),K&&(0,H.createElement)("span",null,(0,H.createElement)("input",{className:F,readonly:!0,tabIndex:"-1",value:U})),(0,H.createElement)("input",z({"aria-activedescendant":!!M&&i+"__option--"+_,"aria-owns":i+"__listbox",autoComplete:"off",className:""+P+j+L,id:i,onClick:function(e){return o.handleInputClick(e)},onBlur:this.handleInputBlur},{onInput:this.handleInputChange},{onFocus:this.handleInputFocus,name:a,placeholder:l,ref:function(e){o.elementReferences[-1]=e},type:"text",role:"textbox",required:s,value:x})),e,(0,H.createElement)("ul",{className:B+" "+D+" "+q,onMouseLeave:function(e){return o.handleListMouseLeave(e)},id:i+"__listbox",role:"listbox"},w.map(function(e,t){var n=(-1===_?E===t:_===t)&&null===b?" "+R+"--focused":"",r=t%2?" "+R+"--odd":"";return(0,H.createElement)("li",{"aria-selected":_===t,className:""+R+n+r,dangerouslySetInnerHTML:{__html:o.templateSuggestion(e)},id:i+"__option--"+t,key:t,onBlur:function(e){return o.handleOptionBlur(e,t)},onClick:function(e){return o.handleOptionClick(e,t)},onMouseEnter:function(e){return o.handleOptionMouseEnter(e,t)},ref:function(e){o.elementReferences[t]=e},role:"option",tabIndex:"-1"})}),A&&(0,H.createElement)("li",{className:R+" "+R+"--no-results"},d())))},e}(H.Component);(t.default=l).defaultProps={autoselect:!1,cssNamespace:"autocomplete",defaultValue:"",displayMenu:"inline",minLength:0,name:"input-autocomplete",placeholder:"",onConfirm:function(){},confirmOnBlur:!0,showNoOptionsFound:!0,showAllValues:!1,required:!1,tNoResults:function(){return"No results found"},dropdownArrow:r.default}},function(e,t,r){var o=r(9),i=r(53),u=r(28),a=r(26)("IE_PROTO"),l=function(){},s="prototype",c=function(){var e,t=r(15)("iframe"),n=u.length;for(t.style.display="none",r(54).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;n--;)delete c[s][u[n]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(l[s]=o(e),n=new l,l[s]=null,n[a]=e):n=c(),void 0===t?n:i(n,t)}},function(e,t,n){var u=n(8),a=n(9),l=n(20);e.exports=n(3)?Object.defineProperties:function(e,t){a(e);for(var n,r=l(t),o=r.length,i=0;i<o;)u.f(e,n=r[i++],t[n]);return e}},function(e,t,n){var r=n(1).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(0);r(r.P,"Function",{bind:n(56)})},function(e,t,n){"use strict";var i=n(19),u=n(2),a=n(57),l=[].slice,s={};e.exports=Function.bind||function(n){var r=i(this),o=l.call(arguments,1),e=function e(){var t=o.concat(l.call(arguments));return this instanceof e?function(e,t,n){if(!(t in s)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";s[t]=Function("F,a","return new F("+r.join(",")+")")}return s[t](e,n)}(r,t.length,t):a(r,t,n)};return u(r.prototype)&&(e.prototype=r.prototype),e}},function(e,t){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){n(59)("match",1,function(r,o,e){return[function(e){"use strict";var t=r(this),n=null==e?void 0:e[o];return void 0!==n?n.call(e,t):new RegExp(e)[o](String(t))},e]})},function(e,t,n){"use strict";var a=n(7),l=n(16),s=n(4),c=n(12),d=n(34);e.exports=function(t,e,n){var r=d(t),o=n(c,r,""[t]),i=o[0],u=o[1];s(function(){var e={};return e[r]=function(){return 7},7!=""[t](e)})&&(l(String.prototype,t,i),a(RegExp.prototype,r,2==e?function(e,t){return u.call(e,this,t)}:function(e){return u.call(e,this)}))}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0,n(36);var m=n(5),r=function(o){function e(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))||this).state={bump:!1},e}var t,n;n=o,(t=e).prototype=Object.create(n.prototype),(t.prototype.constructor=t).__proto__=n;var r=e.prototype;return r.componentWillReceiveProps=function(e){e.queryLength!==this.props.queryLength&&this.setState(function(e){return{bump:!e.bump}})},r.render=function(){var e,t=this.props,n=t.length,r=t.queryLength,o=t.minQueryLength,i=t.selectedOption,u=t.selectedOptionIndex,a=t.tQueryTooShort,l=t.tNoResults,s=t.tSelectedOption,c=t.tResults,d=this.state.bump,p=r<o,f=0===n,h=i?s(i,n,u):"";return e=p?a(o):f?l():c(n,h),(0,m.createElement)("div",{"aria-atomic":"true","aria-live":"polite",role:"status",style:{border:"0",clip:"rect(0 0 0 0)",height:"1px",marginBottom:"-1px",marginRight:"-1px",overflow:"hidden",padding:"0",position:"absolute",whiteSpace:"nowrap",width:"1px"}},e,(0,m.createElement)("span",null,d?",":",,"))},e}(m.Component);(t.default=r).defaultProps={tQueryTooShort:function(e){return"Type in "+e+" or more characters for results."},tNoResults:function(){return"No search results."},tSelectedOption:function(e,t,n){return e+" ("+(n+1)+" of "+t+") is selected."},tResults:function(e,t){return e+" "+(1===e?"result":"results")+" "+(1===e?"is":"are")+" available. "+t}}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=n(5);t.default=function(e){var t=e.className;return(0,r.createElement)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:t,focusable:"false"},(0,r.createElement)("g",{stroke:"none",fill:"none","fill-rule":"evenodd"},(0,r.createElement)("polygon",{fill:"#000000",points:"0 0 22 0 11 17"})))}}]).default},"object"==w(i)&&"object"==w(e)?e.exports=o():(n=[],void 0===(r="function"==typeof(t=o)?t.apply(i,n):t)||(e.exports=r))}).call(this,t(1)(e))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){!function(e){"use strict";var i=e.NHSUK||{};i.details={NATIVE_DETAILS:"boolean"==typeof document.createElement("details").open,KEY_ENTER:13,KEY_SPACE:32,started:!1,addEvent:function(e,t,n){e.addEventListener?e.addEventListener(t,function(e){n(e,e.target)},!1):e.attachEvent&&e.attachEvent("on"+t,function(e){n(e,e.srcElement)})},removeEvent:function(e,t){e.removeEventListener?e.removeEventListener(t,function(e){},!1):e.detachEvent&&e.detachEvent("on"+t,function(e){})},charCode:function(e){return"number"==typeof e.which?e.which:e.keyCode},preventDefault:function(e){e.preventDefault?e.preventDefault():e.returnValue=!1},addClickEvent:function(e,n){i.details.addEvent(e,"keypress",function(e,t){i.details.charCode(e)!==i.details.KEY_ENTER&&i.details.charCode(e)!==i.details.KEY_SPACE||"summary"===t.nodeName.toLowerCase()&&(i.details.preventDefault(e),t.click?t.click():n(e,t))}),i.details.addEvent(e,"keyup",function(e,t){i.details.charCode(e)===i.details.KEY_SPACE&&"SUMMARY"===t.nodeName&&i.details.preventDefault(e)}),i.details.addEvent(e,"click",function(e,t){n(e,t)})},getAncestor:function(e,t){do{if(!e||e.nodeName.toLowerCase()===t)break;e=e.parentNode}while(e);return e},addDetailsPolyfill:function(e,t){if(t=t||document.body,!i.details.started&&(i.details.started=!0,0!==(e=t.getElementsByTagName("details")).length)){for(var n=e.length,r=0;r<n;r++){var o=e[r];if(o.__summary=o.getElementsByTagName("summary").item(0),o.__content=o.getElementsByTagName("div").item(0),!o.__summary||!o.__content)return;o.__content.id||(o.__content.id="details-content-"+r),o.__summary.setAttribute("role","button"),o.__summary.setAttribute("aria-controls",o.__content.id),i.details.NATIVE_DETAILS||(o.__summary.tabIndex=0),!0==(null!==o.getAttribute("open"))?(o.__summary.setAttribute("aria-expanded","true"),o.__content.setAttribute("aria-hidden","false")):(o.__summary.setAttribute("aria-expanded","false"),o.__content.setAttribute("aria-hidden","true"),i.details.NATIVE_DETAILS||(o.__content.style.display="none")),o.__summary.__details=o}i.details.addClickEvent(t,function(e,t){return!(t=i.details.getAncestor(t,"summary"))||i.details.statechange(t)})}},statechange:function(e){var t="true"===e.__details.__summary.getAttribute("aria-expanded"),n="true"===e.__details.__content.getAttribute("aria-hidden");return e.__details.__summary.setAttribute("aria-expanded",t?"false":"true"),e.__details.__content.setAttribute("aria-hidden",n?"false":"true"),i.details.NATIVE_DETAILS||(e.__details.__content.style.display=t?"none":"",null!==e.__details.getAttribute("open")?e.__details.removeAttribute("open"):e.__details.setAttribute("open","open")),!0},destroy:function(e){i.details.removeEvent(e,"click")},init:function(e){i.details.addEvent(document,"DOMContentLoaded",i.details.addDetailsPolyfill),i.details.addEvent(window,"load",i.details.addDetailsPolyfill)}},e.NHSUK=i}(window),NHSUK.details.init()},function(e,t,n){"use strict";function r(){var e=document.querySelector("#nhsuk-feedback-banner");e&&(e.style.display="none")}function o(){var r=!1,o=!1,i=document.querySelector("#nhsuk-footer"),u=document.querySelector("#nhsuk-feedback-banner");o=setInterval(function(){var e,t,n;r&&(r=!1,clearTimeout(o),t=(e=i.getBoundingClientRect()).top,n=e.bottom,t<window.innerHeight&&0<=n?u.classList.add("js-inview"):u.classList.remove("js-inview"))},500),r=!0}n.r(t);var i=function(e){var t;setTimeout(function(){var e;(e=document.querySelector("#nhsuk-feedback-banner"))&&(e.style.display="block")},e),(t=document.querySelector("#nhsuk-feedback-banner-close"))&&t.addEventListener("click",r),document.querySelector("#nhsuk-feedback-banner")&&window.addEventListener("scroll",o)};function u(e,t){var n=e.className,r=new RegExp("\\b "+t+"\\b"),o=n.match(r);t=t.replace(/\s+/g,""),e.className=o?n.replace(r,""):n+" "+t}function a(e){var t=document.querySelector("#toggle-search"),n=document.querySelector("#wrap-search"),r=document.querySelector("#content-header");e.preventDefault(),t.hasAttribute("aria-expanded")?t.removeAttribute("aria-expanded"):t.setAttribute("aria-expanded","true"),u(t,"is-active"),u(n,"js-show"),u(r,"js-show")}function l(e){var t=document.querySelector("#toggle-menu"),n=document.querySelector("#header-navigation");e.preventDefault(),t.hasAttribute("aria-expanded")?t.removeAttribute("aria-expanded"):t.setAttribute("aria-expanded","true"),u(t,"is-active"),u(n,"js-show")}var s=function(){var e,t,n,r;n=document.querySelector(".nhsuk-skip-link"),r=document.getElementsByTagName("H1")[0],n&&r&&n.addEventListener("click",function(e){var t;e.preventDefault(),(t=document.getElementsByTagName("H1")[0]).setAttribute("tabIndex","-1"),t.focus()}),e=document.querySelector(".nhsuk-skip-link"),t=document.getElementsByTagName("H1")[0],e&&t&&t.addEventListener("blur",function(e){e.preventDefault(),document.getElementsByTagName("H1")[0].removeAttribute("tabIndex")})},c=n(0),d=n.n(c);function p(){var e=document.getElementById("wrap-search");if(e){var t=e.getBoundingClientRect(),n=document.getElementById("search-field__listbox");n.style.width=t.width+"px",n.style.top=t.bottom+"px"}}function f(e,t){var n,r=(n=e,"".concat("https://nhs.funnelback.co.uk/s/suggest.json","?collection=nhs-meta&partial_query=").concat(n,"&sort=0&fmt=json++&profile=&show=").concat(10)),o=new XMLHttpRequest;o.open("GET",r),o.onload=function(){if(200===o.status){var e=JSON.parse(o.responseText).map(function(e){return e.disp});t(e)}},o.send()}window.addEventListener("load",function(e){if(document.querySelector("#wrap-search")){var t;p(),window.addEventListener("resize",function(){t||(t=setTimeout(function(){t=null,p()},66))},!1)}});n(2),document.addEventListener("DOMContentLoaded",function(){var e,t,n,r;i(3e3),e=document.querySelector("#toggle-search"),t=document.querySelector("#close-search"),e&&e.addEventListener("click",a),t&&t.addEventListener("click",a),n=document.querySelector("#toggle-menu"),r=document.querySelector("#close-menu"),n&&n.addEventListener("click",l),r&&r.addEventListener("click",l),s(),function(e){var t=e&&e.id?e.id:"search-field",n=document.getElementById(t);if(n){var r=function(o){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{},t=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(i).filter(function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable}))),t.forEach(function(e){var t,n,r;t=o,r=i[n=e],n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r})}return o}({},{element:document.querySelector("#autocomplete-container"),id:t,minLength:2,placeholder:n.placeholder,confirmOnBlur:!1,onConfirm:function(e){window.open("https://www.nhs.uk/search?collection=nhs-meta&query="+e,"_self")},source:f,templates:{suggestion:function(e){var t=36<e.length?"...":"",n=e.substring(0,36)+t;return'<svg class="nhsuk-icon nhsuk-icon__search" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" aria-hidden="true"><path d="M19.71 18.29l-4.11-4.1a7 7 0 1 0-1.41 1.41l4.1 4.11a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42zM5 10a5 5 0 1 1 5 5 5 5 0 0 1-5-5z"></path></svg><a href="https://www.nhs.uk/search?collection=nhs-meta&query='+e+'">'+n+"</a>"}}},e),o=document.getElementById(t);o.parentNode.removeChild(o),d()(r)}}()})}]);
{
"name": "nhsuk-frontend",
"version": "1.0.1",
"version": "2.0.0",
"description": "NHS.UK frontend contains the code you need to start building user interfaces for NHS websites and services.",

@@ -13,3 +13,3 @@ "scripts": {

"lint:css": "sass-lint -c ./tests/linters/.sass-lint.yml 'packages/**/*.scss' -v -q",
"lint:html": "htmlhint --config ./tests/linters/.htmlhintrc ./dist/app/components/*.html",
"lint:html": "htmlhint --config ./tests/linters/.htmlhintrc ./dist/app/components/**/*.html",
"backstop:ref": "backstop --config=tests/backstop/backstop.js reference --docker",

@@ -30,3 +30,2 @@ "backstop:test": "backstop --config=tests/backstop/backstop.js test --docker",

"backstopjs": "^3.8.5",
"del": "^3.0.0",
"eslint": "^5.12.1",

@@ -39,11 +38,7 @@ "eslint-config-airbnb-base": "^13.1.0",

"gulp-clean-css": "^3.10.0",
"gulp-concat": "^2.6.1",
"gulp-connect": "^5.7.0",
"gulp-markdown": "^3.0.0",
"gulp-nunjucks": "^4.0.0",
"gulp-rename": "^1.4.0",
"gulp-replace": "^1.0.0",
"gulp-sass": "^4.0.2",
"gulp-uglify": "^3.0.1",
"gulp-wrap": "^0.14.0",
"gulp-zip": "^4.2.0",

@@ -50,0 +45,0 @@ "htmlhint": "^0.10.1",

@@ -5,6 +5,8 @@ # Action link

## Quick start examples
## Guidance
### Action link
Find out more about the action link component and when to use it in the [NHS digital service manual](https://beta.nhs.uk/service-manual/styles-components-patterns/action-link).
## Quick start example
[Preview the action link component](https://nhsuk.github.io/nhsuk-frontend/components/action-link/index.html)

@@ -37,5 +39,5 @@

## Nunjucks arguments
### Nunjucks arguments
If you are using Nunjucks, then macros take the following arguments:
The action link Nunjucks macro takes the following arguments:

@@ -49,1 +51,3 @@ | Name | Type | Required | Description |

| attributes | object | No | Any extra HTML attributes (for example data attributes) to add to the anchor tag. |
If you are using Nunjucks macros in production be aware that using `html` arguments, or ones ending with `html` can be a [security risk](https://developer.mozilla.org/en-US/docs/Glossary/Cross-site_scripting). Read more about this in the [Nunjucks documentation](https://mozilla.github.io/nunjucks/api.html#user-defined-templates-warning).

@@ -5,6 +5,8 @@ # Back link

## Quick start examples
## Guidance
### Back link
Find out more about the back link component and when to use it in the [NHS digital service manual](https://beta.nhs.uk/service-manual/styles-components-patterns/back-link).
## Quick start example
[Preview the back link component](https://nhsuk.github.io/nhsuk-frontend/components/back-link/index.html)

@@ -36,5 +38,5 @@

## Nunjucks arguments
### Nunjucks arguments
If you are using Nunjucks, then macros take the following arguments:
The back link Nunjucks macro takes the following arguments:

@@ -48,4 +50,6 @@ | Name | Type | Required | Description |

If you are using Nunjucks macros in production be aware that using `html` arguments, or ones ending with `html` can be a [security risk](https://developer.mozilla.org/en-US/docs/Glossary/Cross-site_scripting). Read more about this in the [Nunjucks documentation](https://mozilla.github.io/nunjucks/api.html#user-defined-templates-warning).
## Thanks to the Government Digital Service (GDS)
This component and documentation has been taken from [GOV.UK Frontend - Back link component](https://github.com/alphagov/govuk-frontend/tree/master/package/components/back-link) with a few minor adaptations.

@@ -5,6 +5,8 @@ # Breadcrumb

## Quick start examples
## Guidance
### Breadcrumb
Find out more about the breadcrumb component and when to use it in the [NHS digital service manual](https://beta.nhs.uk/service-manual/styles-components-patterns/breadcrumbs).
## Quick start example
[Preview the breadcrumb component](https://nhsuk.github.io/nhsuk-frontend/components/breadcrumb/index.html)

@@ -48,5 +50,5 @@

## Nunjucks arguments
### Nunjucks arguments
If you are using Nunjucks, then macros take the following arguments:
The breadcrumb Nunjucks macro takes the following arguments:

@@ -63,1 +65,3 @@ | Name | Type | Required | Description |

| attributes | object | No | Any extra HTML attributes (for example data attributes) to add to the breadcrumbs container. |
If you are using Nunjucks macros in production be aware that using `html` arguments, or ones ending with `html` can be a [security risk](https://developer.mozilla.org/en-US/docs/Glossary/Cross-site_scripting). Read more about this in the [Nunjucks documentation](https://mozilla.github.io/nunjucks/api.html#user-defined-templates-warning).

@@ -5,2 +5,6 @@ # Button

## Guidance
Find out more about the button component and when to use it in the [NHS digital service manual](https://beta.nhs.uk/service-manual/styles-components-patterns/buttons).
## Quick start examples

@@ -12,3 +16,3 @@

### HTML markup
#### HTML markup

@@ -21,3 +25,3 @@ ```html

### Nunjucks macro
#### Nunjucks macro

@@ -32,2 +36,4 @@ ```

---
### Button disabled

@@ -37,3 +43,3 @@

### HTML markup
#### HTML markup

@@ -46,3 +52,3 @@ ```html

### Nunjucks macro
#### Nunjucks macro

@@ -58,2 +64,4 @@ ```

---
### Button secondary

@@ -63,3 +71,3 @@

### HTML markup
#### HTML markup

@@ -72,3 +80,3 @@ ```html

### Nunjucks macro
#### Nunjucks macro

@@ -84,2 +92,4 @@ ```

---
### Button secondary disabled

@@ -89,3 +99,3 @@

### HTML markup
#### HTML markup

@@ -98,3 +108,3 @@ ```html

### Nunjucks macro
#### Nunjucks macro

@@ -111,2 +121,4 @@ ```

---
### Button reverse

@@ -116,3 +128,3 @@

### HTML markup
#### HTML markup

@@ -125,3 +137,3 @@ ```html

### Nunjucks macro
#### Nunjucks macro

@@ -137,2 +149,4 @@ ```

---
### Button reverse disabled

@@ -142,3 +156,3 @@

### HTML markup
#### HTML markup

@@ -151,3 +165,3 @@ ```html

### Nunjucks macro
#### Nunjucks macro

@@ -164,6 +178,8 @@ ```

## Nunjucks arguments
---
If you are using Nunjucks, then macros take the following arguments:
### Nunjucks arguments
The button Nunjucks macro takes the following arguments:
| Name | Type | Required | Description |

@@ -181,4 +197,6 @@ | --------------------|----------|-----------|-------------------------|

If you are using Nunjucks macros in production be aware that using `html` arguments, or ones ending with `html` can be a [security risk](https://developer.mozilla.org/en-US/docs/Glossary/Cross-site_scripting). Read more about this in the [Nunjucks documentation](https://mozilla.github.io/nunjucks/api.html#user-defined-templates-warning).
## Thanks to the Government Digital Service (GDS)
This component and documentation has been taken from [GOV.UK Frontend - Button component](https://github.com/alphagov/govuk-frontend/tree/master/package/components/button) with a few minor adaptations.

@@ -7,3 +7,3 @@ # Care cards

Find out more about the care card component and when to use it in the [NHS Digital service manual](https://beta.nhs.uk/service-manual/patterns/care-cards/).
Find out more about the care card component and when to use it in the [NHS digital service manual](https://beta.nhs.uk/service-manual/styles-components-patterns/care-cards).

@@ -16,3 +16,3 @@ ## Quick start examples

### HTML markup
#### HTML markup

@@ -37,6 +37,4 @@ ```html

### Nunjucks macro
#### Nunjucks macro
If you’re using Nunjucks macros in production be aware that using `html` arguments, or ones ending with `html` can be a [security risk](https://en.wikipedia.org/wiki/Cross-site_scripting). More about it in the [Nunjucks documentation](https://mozilla.github.io/nunjucks/api.html#user-defined-templates-warning).
```

@@ -60,2 +58,4 @@ {% from 'components/care-card/macro.njk' import careCard %}

---
### Care card urgent (red)

@@ -65,3 +65,3 @@

### HTML markup
#### HTML markup

@@ -86,6 +86,4 @@ ```html

### Nunjucks macro
#### Nunjucks macro
If you’re using Nunjucks macros in production be aware that using `html` arguments, or ones ending with `html` can be a [security risk](https://en.wikipedia.org/wiki/Cross-site_scripting). More about it in the [Nunjucks documentation](https://mozilla.github.io/nunjucks/api.html#user-defined-templates-warning).
```

@@ -109,2 +107,4 @@ {% from 'components/care-card/macro.njk' import careCard %}

---
### Care card immediate (red and black)

@@ -114,3 +114,3 @@

### HTML markup
#### HTML markup

@@ -134,6 +134,4 @@ ```html

### Nunjucks macro
#### Nunjucks macro
If you’re using Nunjucks macros in production be aware that using `html` arguments, or ones ending with `html` can be a [security risk](https://en.wikipedia.org/wiki/Cross-site_scripting). More about it in the [Nunjucks documentation](https://mozilla.github.io/nunjucks/api.html#user-defined-templates-warning).
```

@@ -156,4 +154,6 @@ {% from 'components/care-card/macro.njk' import careCard %}

## Nunjucks arguments
---
### Nunjucks arguments
The care card Nunjucks macro takes the following arguments:

@@ -169,1 +169,3 @@

| **attributes** | object | No | Any extra HTML attributes (for example data attributes) to add to the care card. |
If you are using Nunjucks macros in production be aware that using `html` arguments, or ones ending with `html` can be a [security risk](https://developer.mozilla.org/en-US/docs/Glossary/Cross-site_scripting). Read more about this in the [Nunjucks documentation](https://mozilla.github.io/nunjucks/api.html#user-defined-templates-warning).

@@ -5,2 +5,6 @@ # Checkboxes

## Guidance
Find out more about the checkboxes component and when to use it in the [NHS digital service manual](https://beta.nhs.uk/service-manual/styles-components-patterns/checkboxes).
## Quick start examples

@@ -12,3 +16,3 @@

### HTML markup
#### HTML markup

@@ -48,3 +52,3 @@ ```html

### Nunjucks macro
#### Nunjucks macro

@@ -82,2 +86,4 @@ ```

---
### Checkboxes with hint text

@@ -87,3 +93,3 @@

### HTML markup
#### HTML markup

@@ -122,3 +128,3 @@ ```html

### Nunjucks macro
#### Nunjucks macro

@@ -158,2 +164,4 @@ ```

---
### Checkboxes with disabled item

@@ -163,3 +171,3 @@

### HTML markup
#### HTML markup

@@ -191,3 +199,3 @@ ```html

### Nunjucks macro
#### Nunjucks macro

@@ -217,2 +225,4 @@ ```

---
### Checkboxes with legend as page heading

@@ -222,3 +232,3 @@

### HTML markup
#### HTML markup

@@ -260,3 +270,3 @@ ```html

### Nunjucks macro
#### Nunjucks macro

@@ -295,2 +305,4 @@ ```

---
### Checkboxes with error message

@@ -300,3 +312,3 @@

### HTML markup
#### HTML markup

@@ -336,3 +348,3 @@ ```html

### Nunjucks macro
#### Nunjucks macro

@@ -369,6 +381,8 @@ ```

## Nunjucks arguments
---
If you are using Nunjucks, then macros take the following arguments:
### Nunjucks arguments
The checkboxes Nunjucks macro takes the following arguments:
| Name | Type | Required | Description |

@@ -396,4 +410,6 @@ | --------------------------|----------|-----------|-------------------------|

If you are using Nunjucks macros in production be aware that using `html` arguments, or ones ending with `html` can be a [security risk](https://developer.mozilla.org/en-US/docs/Glossary/Cross-site_scripting). Read more about this in the [Nunjucks documentation](https://mozilla.github.io/nunjucks/api.html#user-defined-templates-warning).
## Thanks to the Government Digital Service (GDS)
This component and documentation has been taken from [GOV.UK Frontend - Checkboxes component](https://github.com/alphagov/govuk-frontend/tree/master/package/components/checkboxes) with a few minor adaptations.

@@ -5,6 +5,8 @@ # Contents list

## Quick start examples
## Guidance
### Contents list
Find out more about the contents list component and when to use it in the [NHS digital service manual](https://beta.nhs.uk/service-manual/styles-components-patterns/contents-list).
## Quick start example
[Preview the contents list component](https://nhsuk.github.io/nhsuk-frontend/components/contents-list/index.html)

@@ -71,3 +73,3 @@

## Nunjucks arguments
### Nunjucks arguments

@@ -84,1 +86,3 @@ The contents list Nunjucks macro takes the following arguments:

| **attributes** | object | No | Any extra HTML attributes (for example data attributes) to items in the list. |
If you are using Nunjucks macros in production be aware that using `html` arguments, or ones ending with `html` can be a [security risk](https://developer.mozilla.org/en-US/docs/Glossary/Cross-site_scripting). Read more about this in the [Nunjucks documentation](https://mozilla.github.io/nunjucks/api.html#user-defined-templates-warning).

@@ -5,2 +5,6 @@ # Date input

## Guidance
Find out more about the date input component and when to use it in the [NHS digital service manual](https://beta.nhs.uk/service-manual/styles-components-patterns/date-input).
## Quick start examples

@@ -12,3 +16,3 @@

### HTML markup
#### HTML markup

@@ -54,3 +58,3 @@ ```html

### Nunjucks macro
#### Nunjucks macro

@@ -88,2 +92,4 @@ ```

---
### Date input with errors

@@ -93,3 +99,3 @@

### HTML markup
#### HTML markup

@@ -138,3 +144,3 @@ ```html

### Nunjucks macro
#### Nunjucks macro

@@ -174,2 +180,4 @@ ```

---
### Date input with error on single input

@@ -179,3 +187,3 @@

### HTML markup
#### HTML markup

@@ -224,3 +232,3 @@ ```html

### Nunjucks macro
#### Nunjucks macro

@@ -261,6 +269,8 @@ ```

## Nunjucks arguments
---
If you are using Nunjucks, then macros take the following arguments:
### Nunjucks arguments
The date input Nunjucks macro takes the following arguments:
| Name | Type | Required | Description |

@@ -281,4 +291,6 @@ | --------------------------|----------|-----------|-------------------------|

If you are using Nunjucks macros in production be aware that using `html` arguments, or ones ending with `html` can be a [security risk](https://developer.mozilla.org/en-US/docs/Glossary/Cross-site_scripting). Read more about this in the [Nunjucks documentation](https://mozilla.github.io/nunjucks/api.html#user-defined-templates-warning).
## Thanks to the Government Digital Service (GDS)
This component and documentation has been taken from [GOV.UK Frontend - Date input component](https://github.com/alphagov/govuk-frontend/tree/master/package/components/date-input) with a few minor adaptations.

@@ -5,2 +5,6 @@ # Details

## Guidance
Find out more about the details component and when to use it in the [NHS digital service manual](https://beta.nhs.uk/service-manual/styles-components-patterns/details).
## Dependencies

@@ -16,3 +20,3 @@

### HTML markup
#### HTML markup

@@ -41,9 +45,7 @@ ```html

### Nunjucks macro
#### Nunjucks macro
If you’re using Nunjucks macros in production be aware that using `html` arguments, or ones ending with `html` can be a [security risk](https://en.wikipedia.org/wiki/Cross-site_scripting). More about it in the [Nunjucks documentation](https://mozilla.github.io/nunjucks/api.html#user-defined-templates-warning).
```
{% from 'components/details/macro.njk' import details %}
```
{{ details({

@@ -66,2 +68,4 @@ "text": "Where can I find my NHS number?",

---
### Expander

@@ -71,4 +75,8 @@

### HTML markup
#### Guidance
Find out more about the expander component and when to use it in the [NHS digital service manual](https://beta.nhs.uk/service-manual/styles-components-patterns/expander).
#### HTML markup
```html

@@ -122,6 +130,4 @@ <details class="nhsuk-details nhsuk-expander">

### Nunjucks macro
#### Nunjucks macro
If you’re using Nunjucks macros in production be aware that using `html` arguments, or ones ending with `html` can be a [security risk](https://en.wikipedia.org/wiki/Cross-site_scripting). More about it in the [Nunjucks documentation](https://mozilla.github.io/nunjucks/api.html#user-defined-templates-warning).
```

@@ -173,7 +179,9 @@ {% from 'components/details/macro.njk' import details %}

---
### Expander group
[Preview this component](https://nhsuk.github.io/nhsuk-frontend/components/details/expander-group.html)
[Preview the expander group component](https://nhsuk.github.io/nhsuk-frontend/components/details/expander-group.html)
### HTML markup
#### HTML markup

@@ -218,6 +226,4 @@ ```html

### Nunjucks macro
#### Nunjucks macro
If you’re using Nunjucks macros in production be aware that using `html` arguments, or ones ending with `html` can be a [security risk](https://en.wikipedia.org/wiki/Cross-site_scripting). More about it in the [Nunjucks documentation](https://mozilla.github.io/nunjucks/api.html#user-defined-templates-warning).
```

@@ -257,6 +263,8 @@ {% from 'components/details/macro.njk' import details %}

## Nunjucks arguments
---
If you are using Nunjucks, then macros take the following arguments:
### Nunjucks arguments
The details Nunjucks macro takes the following arguments:
| Name | Type | Required | Description |

@@ -268,1 +276,3 @@ | -------------|----------|-----------|-------------|

| attributes | object | No | Any extra HTML attributes (for example data attributes) to add to the anchor tag. |
If you are using Nunjucks macros in production be aware that using `html` arguments, or ones ending with `html` can be a [security risk](https://developer.mozilla.org/en-US/docs/Glossary/Cross-site_scripting). Read more about this in the [Nunjucks documentation](https://mozilla.github.io/nunjucks/api.html#user-defined-templates-warning).

@@ -6,8 +6,6 @@ # Do and don't list

## Guidance
Find out more about the do and don't list component and when to use it in the [NHS Digital service manual](https://beta.nhs.uk/service-manual/patterns/do-and-dont-lists/).
Find out more about the do and don't list component and when to use it in the [NHS digital service manual](https://beta.nhs.uk/service-manual/styles-components-patterns/do-and-dont-list).
## Quick start examples
## Quick start example
### Do and don't list
[Preview the do and don't list component](https://nhsuk.github.io/nhsuk-frontend/components/do-dont-list/index.html)

@@ -117,5 +115,5 @@

## Nunjucks arguments
### Nunjucks arguments
If you are using Nunjucks, then macros take the following arguments:
The do and don't list Nunjucks macro takes the following arguments:

@@ -130,1 +128,3 @@ | Name | Type | Required | Description |

| **attributes** | object | No | Any extra HTML attributes (for example data attributes) to add to the do and don't list container. |
If you are using Nunjucks macros in production be aware that using `html` arguments, or ones ending with `html` can be a [security risk](https://developer.mozilla.org/en-US/docs/Glossary/Cross-site_scripting). Read more about this in the [Nunjucks documentation](https://mozilla.github.io/nunjucks/api.html#user-defined-templates-warning).

@@ -5,6 +5,4 @@ # Emergency alert

## Quick start examples
## Quick start example
### Emergency alert
[Preview the emergency alert component](https://nhsuk.github.io/nhsuk-frontend/components/emergency-alert/index.html)

@@ -44,5 +42,5 @@

## Nunjucks arguments
### Nunjucks arguments
If you are using Nunjucks, then macros take the following arguments:
The emergency alert Nunjucks macro takes the following arguments:

@@ -58,1 +56,3 @@ | Name | Type | Required | Description |

| **attributes** | object | No | Any extra HTML attributes (for example data attributes) to add to the emergency alert container. |
If you are using Nunjucks macros in production be aware that using `html` arguments, or ones ending with `html` can be a [security risk](https://developer.mozilla.org/en-US/docs/Glossary/Cross-site_scripting). Read more about this in the [Nunjucks documentation](https://mozilla.github.io/nunjucks/api.html#user-defined-templates-warning).

@@ -5,5 +5,6 @@ # Error message

## Quick start examples
## Guidance
Find out more about the error message component and when to use it in the [NHS digital service manual](https://beta.nhs.uk/service-manual/styles-components-patterns/error-message).
### Error message
## Quick start example

@@ -30,5 +31,5 @@ [Preview the error message component](https://nhsuk.github.io/nhsuk-frontend/components/error-message/index.html)

## Nunjucks arguments
### Nunjucks arguments
If you are using Nunjucks, then macros take the following arguments:
The error message Nunjucks macro takes the following arguments:

@@ -42,4 +43,6 @@ | Name | Type | Required | Description |

If you are using Nunjucks macros in production be aware that using `html` arguments, or ones ending with `html` can be a [security risk](https://developer.mozilla.org/en-US/docs/Glossary/Cross-site_scripting). Read more about this in the [Nunjucks documentation](https://mozilla.github.io/nunjucks/api.html#user-defined-templates-warning).
## Thanks to the Government Digital Service (GDS)
This component and documentation has been taken from [GOV.UK Frontend - Error message component](https://github.com/alphagov/govuk-frontend/tree/master/package/components/error-message) with a few minor adaptations.

@@ -5,5 +5,6 @@ # Error summary

## Quick start examples
## Guidance
Find out more about the error summary component and when to use it in the [NHS digital service manual](https://beta.nhs.uk/service-manual/styles-components-patterns/error-summary).
### Error summary
## Quick start example

@@ -56,5 +57,5 @@ [Preview the error summary component](https://nhsuk.github.io/nhsuk-frontend/components/error-summary/index.html)

## Nunjucks arguments
### Nunjucks arguments
If you are using Nunjucks, then macros take the following arguments:
The error summary Nunjucks macro takes the following arguments:

@@ -72,4 +73,6 @@ | Name | Type | Required | Description |

If you are using Nunjucks macros in production be aware that using `html` arguments, or ones ending with `html` can be a [security risk](https://developer.mozilla.org/en-US/docs/Glossary/Cross-site_scripting). Read more about this in the [Nunjucks documentation](https://mozilla.github.io/nunjucks/api.html#user-defined-templates-warning).
## Thanks to the Government Digital Service (GDS)
This component and documentation has been taken from [GOV.UK Frontend - Error summary component](https://github.com/alphagov/govuk-frontend/tree/master/package/components/error-summary) with a few minor adaptations.

@@ -14,7 +14,4 @@ /**

const banner = document.querySelector('#nhsuk-feedback-banner');
const bannerCloseButton = document.querySelector('#nhsuk-feedback-banner-close');
const footer = document.querySelector('#nhsuk-footer');
function showBanner() {
const banner = document.querySelector('#nhsuk-feedback-banner');
if (banner) {

@@ -26,2 +23,3 @@ banner.style.display = 'block';

function hideBanner() {
const banner = document.querySelector('#nhsuk-feedback-banner');
if (banner) {

@@ -46,2 +44,4 @@ banner.style.display = 'none';

let timer = false;
const footer = document.querySelector('#nhsuk-footer');
const banner = document.querySelector('#nhsuk-feedback-banner');
// set a timer when scrolling, so as not to be constantly calling the

@@ -72,2 +72,3 @@ // isScrolledIntoView function and spiking CPU, to check when the footer

function handleBannerClose() {
const bannerCloseButton = document.querySelector('#nhsuk-feedback-banner-close');
if (bannerCloseButton) {

@@ -79,2 +80,3 @@ bannerCloseButton.addEventListener('click', hideBanner);

function handleBannerSticky() {
const banner = document.querySelector('#nhsuk-feedback-banner');
if (banner) {

@@ -81,0 +83,0 @@ window.addEventListener('scroll', unstickBanner);

@@ -10,5 +10,5 @@ # Feedback banner

## Quick start examples
The Feedback banner should be used below the footer component in templates for the sticky scroll JavaScript to work.
### Feedback banner
## Quick start example

@@ -48,5 +48,5 @@ [Preview the feedback banner component](https://nhsuk.github.io/nhsuk-frontend/components/feedback-banner/index.html)

## Nunjucks arguments
### Nunjucks arguments
If you are using Nunjucks, then macros take the following arguments:
The feedback banner Nunjucks macro takes the following arguments:

@@ -61,1 +61,3 @@ | Name | Type | Required | Description |

| **attributes** | object | No | Any extra HTML attributes (for example data attributes) to add to the feedback banner container. |
If you are using Nunjucks macros in production be aware that using `html` arguments, or ones ending with `html` can be a [security risk](https://developer.mozilla.org/en-US/docs/Glossary/Cross-site_scripting). Read more about this in the [Nunjucks documentation](https://mozilla.github.io/nunjucks/api.html#user-defined-templates-warning).

@@ -5,2 +5,6 @@ # Fieldset

## Guidance
Find out more about the fieldset component and when to use it in the [NHS digital service manual](https://beta.nhs.uk/service-manual/styles-components-patterns/fieldset).
## Quick start examples

@@ -12,3 +16,3 @@

### HTML markup
#### HTML markup

@@ -23,3 +27,3 @@ ```html

### Nunjucks macro
#### Nunjucks macro

@@ -36,2 +40,4 @@ ```

---
### Fieldset as page heading

@@ -41,3 +47,3 @@

### HTML markup
#### HTML markup

@@ -54,3 +60,3 @@ ```html

### Nunjucks macro
#### Nunjucks macro

@@ -69,2 +75,3 @@ ```

---

@@ -76,3 +83,3 @@ ### Fieldset with input fields

### HTML markup
#### HTML markup

@@ -114,3 +121,3 @@ ```html

### Nunjucks macro
#### Nunjucks macro

@@ -166,6 +173,7 @@ To add input fields inside the fieldset, use the `call` block.

---
## Nunjucks arguments
### Nunjucks arguments
If you are using Nunjucks, then macros take the following arguments:
The fieldset Nunjucks macro takes the following arguments:

@@ -182,4 +190,6 @@ | Name | Type | Required | Description |

If you are using Nunjucks macros in production be aware that using `html` arguments, or ones ending with `html` can be a [security risk](https://developer.mozilla.org/en-US/docs/Glossary/Cross-site_scripting). Read more about this in the [Nunjucks documentation](https://mozilla.github.io/nunjucks/api.html#user-defined-templates-warning).
## Thanks to the Government Digital Service (GDS)
This component and documentation has been taken from [GOV.UK Frontend - Fieldset component](https://github.com/alphagov/govuk-frontend/tree/master/package/components/fieldset) with a few minor adaptations.

@@ -6,8 +6,6 @@ # Footer

## Guidance
Find out more about the footer component and when to use it in the [NHS Digital service manual](https://beta.nhs.uk/service-manual/patterns/footer/).
Find out more about the footer component and when to use it in the [NHS digital service manual](https://beta.nhs.uk/service-manual/styles-components-patterns/footer).
## Quick start examples
## Quick start example
### Footer
[Preview the footer component](https://nhsuk.github.io/nhsuk-frontend/components/footer/index.html)

@@ -65,4 +63,5 @@

```
## Nunjucks arguments
### Nunjucks arguments
The footer Nunjucks macro takes the following arguments:

@@ -77,1 +76,3 @@

| **attributes** | object | No | Any extra HTML attributes (for example data attributes) to add to the footer container. |
If you are using Nunjucks macros in production be aware that using `html` arguments, or ones ending with `html` can be a [security risk](https://developer.mozilla.org/en-US/docs/Glossary/Cross-site_scripting). Read more about this in the [Nunjucks documentation](https://mozilla.github.io/nunjucks/api.html#user-defined-templates-warning).

@@ -86,34 +86,31 @@ import accessibleAutocomplete from 'accessible-autocomplete';

if (document.getElementById('wrap-search')) {
window.addEventListener("load", function(event) {
const wrap = document.querySelector('#wrap-search');
// only add event listener if 'wrap-search' exists to act on
window.addEventListener("load", function(event) {
if (wrap) {
positionsAndWidths();
// To deal with window resizing, need to reset positioning of search results dropdown
// Use setTimeout on resize so as not to kill CPU
// https://developer.mozilla.org/en-US/docs/Web/Events/resize
window.addEventListener("resize", resizeThrottler, false);
positionsAndWidths();
let resizeTimeout;
function resizeThrottler() {
// ignore resize events as long as an actualResizeHandler execution is in the queue
if ( !resizeTimeout ) {
resizeTimeout = setTimeout(function() {
resizeTimeout = null;
actualResizeHandler();
// The actualResizeHandler will execute at a rate of 15fps
}, 66);
}
}
// To deal with window resizing, need to reset positioning of search results dropdown
// Use setTimeout on resize so as not to kill CPU
// https://developer.mozilla.org/en-US/docs/Web/Events/resize
window.addEventListener("resize", resizeThrottler, false);
function actualResizeHandler() {
positionsAndWidths();
}
let resizeTimeout;
function resizeThrottler() {
// ignore resize events as long as an actualResizeHandler execution is in the queue
if ( !resizeTimeout ) {
resizeTimeout = setTimeout(function() {
resizeTimeout = null;
actualResizeHandler();
// The actualResizeHandler will execute at a rate of 15fps
}, 66);
}
}
});
function actualResizeHandler() {
positionsAndWidths();
}
});
}
export default autocomplete;

@@ -24,10 +24,9 @@ /*

/* Search toggle */
function toggleSearch(e) {
const searchToggleButton = document.querySelector('#toggle-search');
const searchContainer = document.querySelector('#wrap-search');
const menuSearchContainer = document.querySelector('#content-header');
const searchToggleButton = document.querySelector('#toggle-search');
const searchClose = document.querySelector('#close-search');
const searchContainer = document.querySelector('#wrap-search');
const menuSearchContainer = document.querySelector('#content-header');
e.preventDefault();
function toggleSearch(e) {
e.preventDefault();
if (searchToggleButton.hasAttribute('aria-expanded')) {

@@ -38,2 +37,3 @@ searchToggleButton.removeAttribute('aria-expanded');

}
toggleClass(searchToggleButton, 'is-active');

@@ -45,2 +45,5 @@ toggleClass(searchContainer, 'js-show');

function handleSearchToggle() {
const searchToggleButton = document.querySelector('#toggle-search');
const searchClose = document.querySelector('#close-search');
if (searchToggleButton) {

@@ -56,8 +59,8 @@ searchToggleButton.addEventListener('click', toggleSearch);

const menuToggleButton = document.querySelector('#toggle-menu');
const menuClose = document.querySelector('#close-menu');
const nav = document.querySelector('#header-navigation');
function toggleMenu(e) {
const menuToggleButton = document.querySelector('#toggle-menu');
const nav = document.querySelector('#header-navigation');
function toggleMenu(e) {
e.preventDefault();
if (menuToggleButton.hasAttribute('aria-expanded')) {

@@ -68,2 +71,3 @@ menuToggleButton.removeAttribute('aria-expanded');

}
toggleClass(menuToggleButton, 'is-active');

@@ -74,2 +78,5 @@ toggleClass(nav, 'js-show');

function handleMenuToggle() {
const menuToggleButton = document.querySelector('#toggle-menu');
const menuClose = document.querySelector('#close-menu');
if (menuToggleButton) {

@@ -76,0 +83,0 @@ menuToggleButton.addEventListener('click', toggleMenu);

@@ -7,3 +7,3 @@ # Header

Find out more about the header component and when to use it in the [NHS Digital service manual](https://beta.nhs.uk/service-manual/patterns/header/).
Find out more about the header component and when to use it in the [NHS digital service manual](https://beta.nhs.uk/service-manual/styles-components-patterns/header).

@@ -21,3 +21,3 @@ ## Dependencies

### HTML markup
#### HTML markup

@@ -133,3 +133,3 @@ ```html

### Nunjucks macro
#### Nunjucks macro

@@ -168,2 +168,4 @@ ```

---
### Header with navigation

@@ -173,3 +175,3 @@

### HTML markup
#### HTML markup

@@ -258,3 +260,3 @@ ```html

### Nunjucks macro
#### Nunjucks macro

@@ -293,2 +295,4 @@ ```

---
### Header with search

@@ -298,3 +302,3 @@

### HTML markup
#### HTML markup

@@ -346,3 +350,3 @@ ```html

### Nunjucks macro
#### Nunjucks macro

@@ -381,2 +385,4 @@ ```

---
### Header with logo

@@ -386,3 +392,3 @@

### HTML markup
#### HTML markup

@@ -405,3 +411,3 @@ ```HTML

### Nunjucks macro
#### Nunjucks macro

@@ -418,7 +424,9 @@ ```

---
### Header with logo (transactional header)
[Preview the header with logo component](https://nhsuk.github.io/nhsuk-frontend/components/header/header-transactional.html)
[Preview the header with logo (transactional header) component](https://nhsuk.github.io/nhsuk-frontend/components/header/header-transactional.html)
### HTML markup
#### HTML markup

@@ -441,3 +449,3 @@ ```HTML

### Nunjucks macro
#### Nunjucks macro

@@ -455,7 +463,9 @@ ```

---
### Header transactional with service name
[Preview the header with logo component](https://nhsuk.github.io/nhsuk-frontend/components/header/header-transactional-service-name.html)
[Preview the header transactional with service name component](https://nhsuk.github.io/nhsuk-frontend/components/header/header-transactional-service-name.html)
### HTML markup
#### HTML markup

@@ -481,3 +491,3 @@ ```HTML

### Nunjucks macro
#### Nunjucks macro

@@ -498,7 +508,9 @@ ```

---
### Header transactional with a long service name
[Preview the header with logo component](https://nhsuk.github.io/nhsuk-frontend/components/header/header-transactional-long-service-name.html)
[Preview the header transactional with a long service name component](https://nhsuk.github.io/nhsuk-frontend/components/header/header-transactional-long-service-name.html)
### HTML markup
#### HTML markup

@@ -524,3 +536,3 @@ ```HTML

### Nunjucks macro
#### Nunjucks macro

@@ -542,7 +554,9 @@ ```

---
### Header with a service name and search
[Preview the header with logo component](https://nhsuk.github.io/nhsuk-frontend/components/header/header-service-name.html)
[Preview the header with a service name and search component](https://nhsuk.github.io/nhsuk-frontend/components/header/header-service-name.html)
### HTML markup
#### HTML markup

@@ -596,3 +610,3 @@ ```HTML

### Nunjucks macro
#### Nunjucks macro

@@ -613,4 +627,6 @@ ```

## Nunjucks arguments
---
### Nunjucks arguments
The header Nunjucks macro takes the following arguments:

@@ -632,1 +648,3 @@

| **attributes** | object | No | Any extra HTML attributes (for example data attributes) to add to the header container. |
If you are using Nunjucks macros in production be aware that using `html` arguments, or ones ending with `html` can be a [security risk](https://developer.mozilla.org/en-US/docs/Glossary/Cross-site_scripting). Read more about this in the [Nunjucks documentation](https://mozilla.github.io/nunjucks/api.html#user-defined-templates-warning).

@@ -11,3 +11,3 @@ # Hero

### HTML markup
#### HTML markup

@@ -29,3 +29,3 @@ ```html

### Nunjucks macro
#### Nunjucks macro

@@ -41,2 +41,4 @@ ```

---
### Hero with image, heading and content

@@ -46,3 +48,3 @@

### HTML markup
#### HTML markup

@@ -52,3 +54,3 @@ ```html

<div class="nhsuk-hero__overlay">
<div class="nhsuk-width-container nhsuk-hero--border">
<div class="nhsuk-width-container">
<div class="nhsuk-grid-row">

@@ -59,2 +61,3 @@ <div class="nhsuk-grid-column-two-thirds">

<p class="nhsuk-body-l nhsuk-u-margin-bottom-0">Helping you take control of your health and wellbeing.</p>
<span class="nhsuk-hero__arrow" aria-hidden="true"></span>
</div>

@@ -68,3 +71,3 @@ </div>

### Nunjucks macro
#### Nunjucks macro

@@ -81,7 +84,9 @@ ```

---
### Hero with image only
[Preview the hero with image only component](https://nhsuk.github.io/nhsuk-frontend/components/hero/hero-image-content.html)
[Preview the hero with image only component](https://nhsuk.github.io/nhsuk-frontend/components/hero/hero-image.html)
### HTML markup
#### HTML markup

@@ -95,3 +100,3 @@ ```html

### Nunjucks macro
#### Nunjucks macro

@@ -106,6 +111,8 @@ ```

## Nunjucks arguments
---
The transactional header with a long service name macro takes the following arguments:
### Nunjucks arguments
The hero macro takes the following arguments:
| Name | Type | Required | Description |

@@ -118,1 +125,3 @@ | ---------------------------|----------|-----------|--------------|

| **attributes** | object | No | Any extra HTML attributes (for example data attributes) to add to the hero container. |
If you are using Nunjucks macros in production be aware that using `html` arguments, or ones ending with `html` can be a [security risk](https://developer.mozilla.org/en-US/docs/Glossary/Cross-site_scripting). Read more about this in the [Nunjucks documentation](https://mozilla.github.io/nunjucks/api.html#user-defined-templates-warning).

@@ -5,6 +5,8 @@ # Hint

## Quick start examples
## Guidance
### Hint
Find out more about the hint component and when to use it in the [NHS digital service manual](https://beta.nhs.uk/service-manual/styles-components-patterns/hint-text).
## Quick start example
[Preview the hint component](https://nhsuk.github.io/nhsuk-frontend/components/hint/index.html)

@@ -30,5 +32,5 @@

## Nunjucks arguments
### Nunjucks arguments
If you are using Nunjucks, then macros take the following arguments:
The hint Nunjucks macro takes the following arguments:

@@ -42,4 +44,6 @@ | Name | Type | Required | Description |

If you are using Nunjucks macros in production be aware that using `html` arguments, or ones ending with `html` can be a [security risk](https://developer.mozilla.org/en-US/docs/Glossary/Cross-site_scripting). Read more about this in the [Nunjucks documentation](https://mozilla.github.io/nunjucks/api.html#user-defined-templates-warning).
## Thanks to the Government Digital Service (GDS)
This component and documentation has been taken from [GOV.UK Frontend - Hint component](https://github.com/alphagov/govuk-frontend/tree/master/package/components/hint) with a few minor adaptations.

@@ -5,6 +5,8 @@ # Images

## Quick start examples
## Guidance
### Images
Find out more about the images component and when to use it in the [NHS digital service manual](https://beta.nhs.uk/service-manual/styles-components-patterns/images).
## Quick start example
[Preview the images component](https://nhsuk.github.io/nhsuk-frontend/components/images/index.html)

@@ -39,5 +41,5 @@

## Nunjucks arguments
### Nunjucks arguments
If you are using Nunjucks, then macros take the following arguments:
The images Nunjucks macro takes the following arguments:

@@ -51,1 +53,3 @@ | Name | Type | Required | Description |

| **attributes** | object | No | Any extra HTML attributes (for example data attributes) to add to the image container. |
If you are using Nunjucks macros in production be aware that using `html` arguments, or ones ending with `html` can be a [security risk](https://developer.mozilla.org/en-US/docs/Glossary/Cross-site_scripting). Read more about this in the [Nunjucks documentation](https://mozilla.github.io/nunjucks/api.html#user-defined-templates-warning).

@@ -5,2 +5,6 @@ # Input

## Guidance
Find out more about the input component and when to use it in the [NHS digital service manual](https://beta.nhs.uk/service-manual/styles-components-patterns/text-input).
## Quick start examples

@@ -12,3 +16,3 @@

### HTML markup
#### HTML markup

@@ -24,3 +28,3 @@ ```html

### Nunjucks macro
#### Nunjucks macro

@@ -39,2 +43,4 @@ ```

---
### Input with hint text

@@ -44,3 +50,3 @@

### HTML markup
#### HTML markup

@@ -59,3 +65,3 @@ ```html

### Nunjucks macro
#### Nunjucks macro

@@ -77,2 +83,4 @@ ```

---
### Input with error message

@@ -82,3 +90,3 @@

### HTML markup
#### HTML markup

@@ -100,3 +108,3 @@ ```html

### Nunjucks macro
#### Nunjucks macro

@@ -121,2 +129,4 @@ ```

---
### Input with width modifier

@@ -126,3 +136,3 @@

### HTML markup
#### HTML markup

@@ -141,3 +151,3 @@ ```html

### Nunjucks macro
#### Nunjucks macro

@@ -160,6 +170,8 @@ ```

## Nunjucks arguments
---
If you are using Nunjucks, then macros take the following arguments:
### Nunjucks arguments
The input macro takes the following arguments:
| Name | Type | Required | Description |

@@ -177,4 +189,6 @@ | --------------------|----------|-----------|-------------------------|

If you are using Nunjucks macros in production be aware that using `html` arguments, or ones ending with `html` can be a [security risk](https://developer.mozilla.org/en-US/docs/Glossary/Cross-site_scripting). Read more about this in the [Nunjucks documentation](https://mozilla.github.io/nunjucks/api.html#user-defined-templates-warning).
## Thanks to the Government Digital Service (GDS)
This component and documentation has been taken from [GOV.UK Frontend - Input component](https://github.com/alphagov/govuk-frontend/tree/master/package/components/input) with a few minor adaptations.

@@ -7,8 +7,6 @@ # Inset text

Find out more about the inset text component and when to use it in the [NHS Digital service manual](https://beta.nhs.uk/service-manual/patterns/inset_text/).
Find out more about the inset text component and when to use it in the [NHS digital service manual](https://beta.nhs.uk/service-manual/styles-components-patterns/inset-text).
## Quick start examples
## Quick start example
### Inset text
[Preview the inset text component](https://nhsuk.github.io/nhsuk-frontend/components/inset-text/index.html)

@@ -37,3 +35,3 @@

#### Nunjucks arguments
### Nunjucks arguments

@@ -47,1 +45,3 @@ The inset text Nunjucks macro takes the following arguments:

| **attributes** | object | No | Any extra HTML attributes (for example data attributes) to add to the inset text container. |
If you are using Nunjucks macros in production be aware that using `html` arguments, or ones ending with `html` can be a [security risk](https://developer.mozilla.org/en-US/docs/Glossary/Cross-site_scripting). Read more about this in the [Nunjucks documentation](https://mozilla.github.io/nunjucks/api.html#user-defined-templates-warning).

@@ -11,3 +11,3 @@ # Label

### HTML markup
#### HTML markup

@@ -20,3 +20,3 @@ ```html

### Nunjucks macro
#### Nunjucks macro

@@ -31,2 +31,4 @@ ```

---
### Label with bold text

@@ -36,3 +38,3 @@

### HTML markup
#### HTML markup

@@ -45,3 +47,3 @@ ```html

### Nunjucks macro
#### Nunjucks macro

@@ -57,2 +59,4 @@ ```

---
### Label as page heading

@@ -62,3 +66,3 @@

### HTML markup
#### HTML markup

@@ -73,3 +77,3 @@ ```html

### Nunjucks macro
#### Nunjucks macro

@@ -86,6 +90,8 @@ ```

## Nunjucks arguments
---
If you are using Nunjucks, then macros take the following arguments:
### Nunjucks arguments
The label Nunjucks macro takes the following arguments:
| Name | Type | Required | Description |

@@ -99,4 +105,6 @@ | --------------------|----------|-----------|-------------------------|

If you are using Nunjucks macros in production be aware that using `html` arguments, or ones ending with `html` can be a [security risk](https://developer.mozilla.org/en-US/docs/Glossary/Cross-site_scripting). Read more about this in the [Nunjucks documentation](https://mozilla.github.io/nunjucks/api.html#user-defined-templates-warning).
## Thanks to the Government Digital Service (GDS)
This component and documentation has been taken from [GOV.UK Frontend - Label component](https://github.com/alphagov/govuk-frontend/tree/master/package/components/label) with a few minor adaptations.

@@ -5,6 +5,4 @@ # List panel

## Quick start examples
## Quick start example
### List panel
[Preview the list panel component](https://nhsuk.github.io/nhsuk-frontend/components/list-panel/index.html)

@@ -178,3 +176,3 @@

#### Nunjucks arguments
### Nunjucks arguments

@@ -197,1 +195,3 @@ The list panel Nunjucks macro takes the following arguments:

| **attributes** | object | No | Any extra HTML attributes (for example data attributes) to add to the list panel. |
If you are using Nunjucks macros in production be aware that using `html` arguments, or ones ending with `html` can be a [security risk](https://developer.mozilla.org/en-US/docs/Glossary/Cross-site_scripting). Read more about this in the [Nunjucks documentation](https://mozilla.github.io/nunjucks/api.html#user-defined-templates-warning).

@@ -5,6 +5,4 @@ # Nav A-Z

## Quick start examples
## Quick start example
### Nav A-Z
[Preview the nav a-z component](https://nhsuk.github.io/nhsuk-frontend/components/nav-a-z/index.html)

@@ -189,3 +187,3 @@

#### Nunjucks arguments
### Nunjucks arguments

@@ -201,1 +199,3 @@ The nav a-z Nunjucks macro takes the following arguments:

| **attributes** | object | No | Any extra HTML attributes (for example data attributes) to add to the nav a-z. |
If you are using Nunjucks macros in production be aware that using `html` arguments, or ones ending with `html` can be a [security risk](https://developer.mozilla.org/en-US/docs/Glossary/Cross-site_scripting). Read more about this in the [Nunjucks documentation](https://mozilla.github.io/nunjucks/api.html#user-defined-templates-warning).

@@ -5,2 +5,6 @@ # Pagination

## Guidance
Find out more about the pagination component and when to use it in the [NHS digital service manual](https://beta.nhs.uk/service-manual/styles-components-patterns/pagination).
## Quick start examples

@@ -12,3 +16,3 @@

### HTML markup
#### HTML markup

@@ -42,3 +46,3 @@ ```html

### Nunjucks macro
#### Nunjucks macro

@@ -56,19 +60,7 @@ ```

#### Nunjucks arguments
---
The pagination Nunjucks macro takes the following arguments:
| Name | Type | Required | Description |
| --------------------|----------|-----------|--------------|
| **previousUrl** | string | Yes | The value of the previous link href attribute. |
| **previousPage** | string | Yes | The text of the previous link. |
| **nextUrl** | string | Yes | The value of the next link href attribute. |
| **nextPage** | string | Yes | The text of the next link. |
| **classes** | string | No | Optional additional classes to add to the pagination. Separate each class with a space. |
| **attributes** | object | No | Any extra HTML attributes (for example data attributes) to add to the pagination. |
### Next pagination
### HTML markup
#### HTML markup

@@ -93,3 +85,3 @@ ```html

### Nunjucks macro
#### Nunjucks macro

@@ -105,17 +97,7 @@ ```

#### Nunjucks arguments
---
The next pagination Nunjucks macro takes the following arguments:
| Name | Type | Required | Description |
| --------------------|----------|-----------|--------------|
| **nextUrl** | string | Yes | The value of the next link href attribute. |
| **nextPage** | string | Yes | The text of the next link. |
| **classes** | string | No | Optional additional classes to add to the pagination. Separate each class with a space. |
| **attributes** | object | No | Any extra HTML attributes (for example data attributes) to add to the pagination. |
### Previous pagination
### HTML markup
#### HTML markup

@@ -140,3 +122,3 @@ ```html

### Nunjucks macro
#### Nunjucks macro

@@ -152,6 +134,8 @@ ```

#### Nunjucks arguments
---
The previous pagination Nunjucks macro takes the following arguments:
### Nunjucks arguments
The pagination Nunjucks macro takes the following arguments:
| Name | Type | Required | Description |

@@ -161,3 +145,7 @@ | --------------------|----------|-----------|--------------|

| **previousPage** | string | Yes | The text of the previous link. |
| **nextUrl** | string | Yes | The value of the next link href attribute. |
| **nextPage** | string | Yes | The text of the next link. |
| **classes** | string | No | Optional additional classes to add to the pagination. Separate each class with a space. |
| **attributes** | object | No | Any extra HTML attributes (for example data attributes) to add to the pagination. |
If you are using Nunjucks macros in production be aware that using `html` arguments, or ones ending with `html` can be a [security risk](https://developer.mozilla.org/en-US/docs/Glossary/Cross-site_scripting). Read more about this in the [Nunjucks documentation](https://mozilla.github.io/nunjucks/api.html#user-defined-templates-warning).

@@ -11,3 +11,3 @@ # Panel

### HTML markup
#### HTML markup

@@ -21,6 +21,4 @@ ```html

### Nunjucks macro
#### Nunjucks macro
If you’re using Nunjucks macros in production be aware that using `html` arguments, or ones ending with `html` can be a [security risk](https://en.wikipedia.org/wiki/Cross-site_scripting). More about it in the [Nunjucks documentation](https://mozilla.github.io/nunjucks/api.html#user-defined-templates-warning).
```

@@ -35,2 +33,4 @@ {% from 'components/panel/macro.njk' import panel %}

---
### Panel with a label

@@ -40,3 +40,3 @@

### HTML markup
#### HTML markup

@@ -50,6 +50,4 @@ ```html

### Nunjucks macro
#### Nunjucks macro
If you’re using Nunjucks macros in production be aware that using `html` arguments, or ones ending with `html` can be a [security risk](https://en.wikipedia.org/wiki/Cross-site_scripting). More about it in the [Nunjucks documentation](https://mozilla.github.io/nunjucks/api.html#user-defined-templates-warning).
```

@@ -64,2 +62,4 @@ {% from 'components/panel/macro.njk' import panel %}

---
### Grey panel

@@ -69,3 +69,3 @@

### HTML markup
#### HTML markup

@@ -78,6 +78,4 @@ ```html

### Nunjucks macro
#### Nunjucks macro
If you’re using Nunjucks macros in production be aware that using `html` arguments, or ones ending with `html` can be a [security risk](https://en.wikipedia.org/wiki/Cross-site_scripting). More about it in the [Nunjucks documentation](https://mozilla.github.io/nunjucks/api.html#user-defined-templates-warning).
```

@@ -94,2 +92,4 @@ {% from 'components/panel/macro.njk' import panel %}

---
### Panel group

@@ -99,3 +99,3 @@

### HTML markup
#### HTML markup

@@ -133,6 +133,4 @@ ```html

### Nunjucks macro
#### Nunjucks macro
If you’re using Nunjucks macros in production be aware that using `html` arguments, or ones ending with `html` can be a [security risk](https://en.wikipedia.org/wiki/Cross-site_scripting). More about it in the [Nunjucks documentation](https://mozilla.github.io/nunjucks/api.html#user-defined-templates-warning).
```

@@ -165,6 +163,8 @@ {% from 'components/panel/macro.njk' import panel %}

## Nunjucks arguments
---
The panel group Nunjucks macro takes the following arguments:
### Nunjucks arguments
The panel Nunjucks macro takes the following arguments:
| Name | Type | Required | Description |

@@ -177,1 +177,3 @@ | --------------------|----------|-----------|--------------|

| **attributes** | object | No | Any extra HTML attributes (for example data attributes) to add to the panel. |
If you are using Nunjucks macros in production be aware that using `html` arguments, or ones ending with `html` can be a [security risk](https://developer.mozilla.org/en-US/docs/Glossary/Cross-site_scripting). Read more about this in the [Nunjucks documentation](https://mozilla.github.io/nunjucks/api.html#user-defined-templates-warning).

@@ -302,1 +302,3 @@ # Promo

| **attributes** | object | No | Any extra HTML attributes (for example data attributes) to add to the promo. |
If you are using Nunjucks macros in production be aware that using `html` arguments, or ones ending with `html` can be a [security risk](https://developer.mozilla.org/en-US/docs/Glossary/Cross-site_scripting). Read more about this in the [Nunjucks documentation](https://mozilla.github.io/nunjucks/api.html#user-defined-templates-warning).

@@ -5,2 +5,6 @@ # Radios

## Guidance
Find out more about the radios component and when to use it in the [NHS digital service manual](https://beta.nhs.uk/service-manual/styles-components-patterns/radios).
## Quick start examples

@@ -12,3 +16,3 @@

### HTML markup
#### HTML markup

@@ -42,3 +46,3 @@ ```html

### Nunjucks macro
#### Nunjucks macro

@@ -73,2 +77,4 @@ ```

---
### Radios inline

@@ -78,3 +84,3 @@

### HTML markup
#### HTML markup

@@ -108,3 +114,3 @@ ```html

### Nunjucks macro
#### Nunjucks macro

@@ -140,2 +146,4 @@ ```

---
### Radios disabled

@@ -145,3 +153,3 @@

### HTML markup
#### HTML markup

@@ -175,3 +183,3 @@ ```html

### Nunjucks macro
#### Nunjucks macro

@@ -207,2 +215,4 @@ ```

---
### Radios with a divider

@@ -212,3 +222,3 @@

### HTML markup
#### HTML markup

@@ -246,3 +256,3 @@ ```html

### Nunjucks macro
#### Nunjucks macro

@@ -280,2 +290,4 @@ ```

---
### Radios with hint text on items

@@ -285,3 +297,3 @@

### HTML markup
#### HTML markup

@@ -320,3 +332,3 @@ ```html

### Nunjucks macro
#### Nunjucks macro

@@ -354,2 +366,4 @@ ```

---
### Radios without fieldset

@@ -359,3 +373,3 @@

### HTML markup
#### HTML markup

@@ -387,3 +401,3 @@ ```html

### Nunjucks macro
#### Nunjucks macro

@@ -412,2 +426,4 @@ ```

---
### Radios with hint text and error message

@@ -417,3 +433,3 @@

### HTML markup
#### HTML markup

@@ -450,3 +466,3 @@ ```html

### Nunjucks macro
#### Nunjucks macro

@@ -489,6 +505,8 @@ ```

## Nunjucks arguments
---
If you are using Nunjucks, then macros take the following arguments:
### Nunjucks arguments
The radios Nunjucks macro takes the following arguments:
| Name | Type | Required | Description |

@@ -514,4 +532,6 @@ | --------------------|----------|-----------|-----------------------------|

If you are using Nunjucks macros in production be aware that using `html` arguments, or ones ending with `html` can be a [security risk](https://developer.mozilla.org/en-US/docs/Glossary/Cross-site_scripting). Read more about this in the [Nunjucks documentation](https://mozilla.github.io/nunjucks/api.html#user-defined-templates-warning).
## Thanks to the Government Digital Service (GDS)
This component and documentation has been taken from [GOV.UK Frontend - Radios component](https://github.com/alphagov/govuk-frontend/tree/master/package/components/radios) with a few minor adaptations.

@@ -5,6 +5,8 @@ # Review date

## Quick start examples
## Guidance
### Example
Find out more about the review date component and when to use it in the [NHS digital service manual](https://beta.nhs.uk/service-manual/styles-components-patterns/review-date).
## Quick start example
[Preview the review date component](https://nhsuk.github.io/nhsuk-frontend/components/review-date/index.html)

@@ -34,3 +36,3 @@

#### Nunjucks arguments
### Nunjucks arguments

@@ -45,1 +47,3 @@ The review date Nunjucks macro takes the following arguments:

| **attributes** | object | No | Any extra HTML attributes (for example data attributes) to add to the review date. |
If you are using Nunjucks macros in production be aware that using `html` arguments, or ones ending with `html` can be a [security risk](https://developer.mozilla.org/en-US/docs/Glossary/Cross-site_scripting). Read more about this in the [Nunjucks documentation](https://mozilla.github.io/nunjucks/api.html#user-defined-templates-warning).

@@ -5,2 +5,6 @@ # Select

## Guidance
Find out more about the select component and when to use it in the [NHS digital service manual](https://beta.nhs.uk/service-manual/styles-components-patterns/select).
## Quick start examples

@@ -12,3 +16,3 @@

### HTML markup
#### HTML markup

@@ -28,3 +32,3 @@ ```html

### Nunjucks macro
#### Nunjucks macro

@@ -59,2 +63,4 @@ ```

---
### Select with hint text and error message

@@ -64,3 +70,3 @@

### HTML markup
#### HTML markup

@@ -86,3 +92,3 @@ ```html

### Nunjucks macro
#### Nunjucks macro

@@ -121,6 +127,8 @@ ```

## Nunjucks arguments
---
If you are using Nunjucks, then macros take the following arguments:
### Nunjucks arguments
The select Nunjucks macro takes the following arguments:
| Name | Type | Required | Description |

@@ -142,4 +150,6 @@ | --------------------|----------|-----------|-----------------------------|

If you are using Nunjucks macros in production be aware that using `html` arguments, or ones ending with `html` can be a [security risk](https://developer.mozilla.org/en-US/docs/Glossary/Cross-site_scripting). Read more about this in the [Nunjucks documentation](https://mozilla.github.io/nunjucks/api.html#user-defined-templates-warning).
## Thanks to the Government Digital Service (GDS)
This component and documentation has been taken from [GOV.UK Frontend - Select component](https://github.com/alphagov/govuk-frontend/tree/master/package/components/select) with a few minor adaptations.

@@ -5,2 +5,6 @@ # Skip link

## Guidance
Find out more about the skip link component and when to use it in the [NHS digital service manual](https://beta.nhs.uk/service-manual/styles-components-patterns/skip-link).
## Dependencies

@@ -17,6 +21,4 @@

## Quick start examples
## Quick start example
### Example
[Preview the skip link component](https://nhsuk.github.io/nhsuk-frontend/components/skip-link/index.html)

@@ -41,3 +43,3 @@

#### Nunjucks arguments
### Nunjucks arguments

@@ -52,1 +54,3 @@ The skip link Nunjucks macro takes the following arguments:

| **attributes** | object | No | Any extra HTML attributes (for example data attributes) to add to the skip link. |
If you are using Nunjucks macros in production be aware that using `html` arguments, or ones ending with `html` can be a [security risk](https://developer.mozilla.org/en-US/docs/Glossary/Cross-site_scripting). Read more about this in the [Nunjucks documentation](https://mozilla.github.io/nunjucks/api.html#user-defined-templates-warning).

@@ -11,6 +11,4 @@ /*

const skipLinkElement = document.querySelector('.nhsuk-skip-link');
const headingElement = document.getElementsByTagName('H1')[0];
function addFocus() {
const headingElement = document.getElementsByTagName('H1')[0];
headingElement.setAttribute('tabIndex', '-1');

@@ -21,2 +19,3 @@ headingElement.focus();

function removeFocus() {
const headingElement = document.getElementsByTagName('H1')[0];
headingElement.removeAttribute('tabIndex');

@@ -26,2 +25,4 @@ }

function handleSkipLink() {
const skipLinkElement = document.querySelector('.nhsuk-skip-link');
const headingElement = document.getElementsByTagName('H1')[0];
if (skipLinkElement && headingElement) {

@@ -36,2 +37,4 @@ skipLinkElement.addEventListener('click', e => { /* eslint-disable-line arrow-parens */

function handleHeader() {
const skipLinkElement = document.querySelector('.nhsuk-skip-link');
const headingElement = document.getElementsByTagName('H1')[0];
if (skipLinkElement && headingElement) {

@@ -38,0 +41,0 @@ headingElement.addEventListener('blur', e => { /* eslint-disable-line arrow-parens */

@@ -5,2 +5,6 @@ # Table

## Guidance
Find out more about the table component and when to use it in the [NHS digital service manual](https://beta.nhs.uk/service-manual/styles-components-patterns/table).
## Quick start examples

@@ -12,3 +16,3 @@

### HTML markup
#### HTML markup

@@ -43,3 +47,3 @@ ```html

### Nunjucks macro
#### Nunjucks macro

@@ -90,2 +94,4 @@ ```html

---
### Table panel

@@ -95,3 +101,3 @@

### HTML markup
#### HTML markup

@@ -129,3 +135,3 @@ ```html

### Nunjucks macro
#### Nunjucks macro

@@ -177,4 +183,6 @@ ```html

## Nunjucks arguments
---
### Nunjucks arguments
The table Nunjucks macro takes the following arguments:

@@ -203,1 +211,3 @@

| **firstCellIsHeader** | boolean | No | If set to true, first cell in table row will be a TH instead of a TD. |
If you are using Nunjucks macros in production be aware that using `html` arguments, or ones ending with `html` can be a [security risk](https://developer.mozilla.org/en-US/docs/Glossary/Cross-site_scripting). Read more about this in the [Nunjucks documentation](https://mozilla.github.io/nunjucks/api.html#user-defined-templates-warning).

@@ -5,2 +5,6 @@ # Textarea

## Guidance
Find out more about the textarea component and when to use it in the [NHS digital service manual](https://beta.nhs.uk/service-manual/styles-components-patterns/textarea).
## Quick start examples

@@ -12,3 +16,3 @@

### HTML markup
#### HTML markup

@@ -27,3 +31,3 @@ ```html

### Nunjucks macro
#### Nunjucks macro

@@ -45,2 +49,4 @@ ```

---
### Textarea with error message

@@ -50,3 +56,3 @@

### HTML markup
#### HTML markup

@@ -65,3 +71,3 @@ ```html

### Nunjucks macro
#### Nunjucks macro

@@ -83,6 +89,8 @@ ```

## Nunjucks arguments
---
If you are using Nunjucks, then macros take the following arguments:
### Nunjucks arguments
The textarea Nunjucks macro takes the following arguments:
| Name | Type | Required | Description |

@@ -101,4 +109,6 @@ | --------------------|----------|-----------|-------------------------|

If you are using Nunjucks macros in production be aware that using `html` arguments, or ones ending with `html` can be a [security risk](https://developer.mozilla.org/en-US/docs/Glossary/Cross-site_scripting). Read more about this in the [Nunjucks documentation](https://mozilla.github.io/nunjucks/api.html#user-defined-templates-warning).
## Thanks to the Government Digital Service (GDS)
This component and documentation has been taken from [GOV.UK Frontend - Textarea component](https://github.com/alphagov/govuk-frontend/tree/master/package/components/textarea) with a few minor adaptations.

@@ -7,8 +7,6 @@ # Warning callout

Find out more about the warning callout component and when to use it in the [NHS digital service manual](https://beta.nhs.uk/service-manual/patterns/warning_callout/).
Find out more about the warning callout component and when to use it in the [NHS digital service manual](https://beta.nhs.uk/service-manual/styles-components-patterns/warning-callout).
## Quick start examples
## Quick start example
### Example
[Preview the warning callout component](https://nhsuk.github.io/nhsuk-frontend/components/warning-callout/index.html)

@@ -38,3 +36,3 @@

## Nunjucks arguments
### Nunjucks arguments

@@ -50,1 +48,3 @@ The warning callout Nunjucks macro takes the following arguments:

| **attributes** | object | No | Any extra HTML attributes (for example data attributes) to add to the warning callout. |
If you are using Nunjucks macros in production be aware that using `html` arguments, or ones ending with `html` can be a [security risk](https://developer.mozilla.org/en-US/docs/Glossary/Cross-site_scripting). Read more about this in the [Nunjucks documentation](https://mozilla.github.io/nunjucks/api.html#user-defined-templates-warning).

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc