diff --git a/iframe.html b/iframe.html index 4c309384ad..3e72b35834 100644 --- a/iframe.html +++ b/iframe.html @@ -508,4 +508,4 @@ import './2740.faeacb2f.iframe.bundle.js'; - import './main.eaf89b7e.iframe.bundle.js'; \ No newline at end of file + import './main.ef330dad.iframe.bundle.js'; \ No newline at end of file diff --git a/main.eaf89b7e.iframe.bundle.js b/main.ef330dad.iframe.bundle.js similarity index 55% rename from main.eaf89b7e.iframe.bundle.js rename to main.ef330dad.iframe.bundle.js index dcbf126d78..94716b9b64 100644 --- a/main.eaf89b7e.iframe.bundle.js +++ b/main.ef330dad.iframe.bundle.js @@ -1,2 +1,2 @@ -/*! For license information please see main.eaf89b7e.iframe.bundle.js.LICENSE.txt */ -(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[8792],{"./storybook-config-entry.js":(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__)=>{"use strict";var external_STORYBOOK_MODULE_CHANNELS_=__webpack_require__("storybook/internal/channels"),external_STORYBOOK_MODULE_PREVIEW_API_=__webpack_require__("storybook/internal/preview-api"),external_STORYBOOK_MODULE_GLOBAL_=__webpack_require__("@storybook/global");const importers=[async path=>{if(!/^\.[\\/](?:src\/client\/components\/(?!\.)(?=.)[^/]*?\/__stories__\/(?!\.)(?=.)[^/]*?\.stories\.jsx)$/.exec(path))return;const pathRemainder=path.substring(24);return __webpack_require__("./src/client/components lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/src\\/client\\/components\\/(?%21\\.)(?=.)[^/]*?\\/__stories__\\/(?%21\\.)(?=.)[^/]*?\\.stories\\.jsx)$")("./"+pathRemainder)},async path=>{if(!/^\.[\\/](?:src\/client\/components\/(?!\.)(?=.)[^/]*?\/(?!\.)(?=.)[^/]*?\/__stories__\/(?!\.)(?=.)[^/]*?\.stories\.jsx)$/.exec(path))return;const pathRemainder=path.substring(24);return __webpack_require__("./src/client/components lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/src\\/client\\/components\\/(?%21\\.)(?=.)[^/]*?\\/(?%21\\.)(?=.)[^/]*?\\/__stories__\\/(?%21\\.)(?=.)[^/]*?\\.stories\\.jsx)$")("./"+pathRemainder)}];const channel=(0,external_STORYBOOK_MODULE_CHANNELS_.createBrowserChannel)({page:"preview"});external_STORYBOOK_MODULE_PREVIEW_API_.addons.setChannel(channel),"DEVELOPMENT"===external_STORYBOOK_MODULE_GLOBAL_.global.CONFIG_TYPE&&(window.__STORYBOOK_SERVER_CHANNEL__=channel);const preview=new external_STORYBOOK_MODULE_PREVIEW_API_.PreviewWeb((async function importFn(path){for(let i=0;iimporters[i](path),x());if(moduleExports)return moduleExports}var x}),(()=>(0,external_STORYBOOK_MODULE_PREVIEW_API_.composeConfigs)([__webpack_require__("./node_modules/@storybook/react/dist/entry-preview.mjs"),__webpack_require__("./node_modules/@storybook/react/dist/entry-preview-docs.mjs"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/docs/preview.mjs"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/actions/preview.mjs"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/backgrounds/preview.mjs"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/viewport/preview.mjs"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/measure/preview.mjs"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/outline/preview.mjs"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/highlight/preview.mjs"),__webpack_require__("./node_modules/@storybook/addon-a11y/dist/preview.mjs"),__webpack_require__("./.storybook/preview.js")])));window.__STORYBOOK_PREVIEW__=preview,window.__STORYBOOK_STORY_STORE__=preview.storyStore,window.__STORYBOOK_ADDONS_CHANNEL__=channel},"./.storybook/preview.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{decorators:()=>decorators});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var react=__webpack_require__("./node_modules/react/index.js"),govuk_react_constants_esm=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),styled_components_browser_esm=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),components=__webpack_require__("./src/client/components/index.jsx"),lodash=__webpack_require__("./node_modules/lodash/lodash.js"),lodash_default=__webpack_require__.n(lodash),redux_toolkit_modern=__webpack_require__("./node_modules/@reduxjs/toolkit/dist/redux-toolkit.modern.mjs"),react_redux=__webpack_require__("./node_modules/react-redux/dist/react-redux.mjs"),redux_saga_core_npm_proxy_esm=__webpack_require__("./node_modules/redux-saga/dist/redux-saga-core-npm-proxy.esm.js"),es6=__webpack_require__("./node_modules/redux-first-history/build/es6/index.js"),chunk_D52XG6IA=__webpack_require__("./node_modules/react-router/dist/development/chunk-D52XG6IA.mjs"),esm_history=__webpack_require__("./node_modules/history/esm/history.js"),redux_saga_effects_npm_proxy_esm=(__webpack_require__("./node_modules/core-js/modules/es.symbol.async-iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.json.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.math.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-prototype-of.js"),__webpack_require__("./node_modules/core-js/modules/es.object.set-prototype-of.js"),__webpack_require__("./node_modules/core-js/modules/es.promise.js"),__webpack_require__("./node_modules/redux-saga/dist/redux-saga-effects-npm-proxy.esm.js")),actions=__webpack_require__("./src/client/actions.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _regeneratorRuntime(){_regeneratorRuntime=function _regeneratorRuntime(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{define({},"")}catch(t){define=function define(t,e,r){return t[e]=r}}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,(function(){return this}));var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach((function(e){define(t,e,(function(t){return this._invoke(e,t)}))}))}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){invoke("next",t,i,a)}),(function(t){invoke("throw",t,i,a)})):e.resolve(h).then((function(t){u.value=t,i(u)}),(function(t){return invoke("throw",t,i,a)}))}a(c.arg)}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e((function(e,r){invoke(t,n,e,r)}))}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done}}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg)}}}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}var _marked=_regeneratorRuntime().mark(startTask),_marked2=_regeneratorRuntime().mark(manageTask),_marked3=_regeneratorRuntime().mark(subscribeToDismiss),_marked4=_regeneratorRuntime().mark(subscribeToStart);function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}var saga_marked=saga_regeneratorRuntime().mark(_callee);function saga_ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function saga_objectSpread(e){for(var r=1;r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}var HardRedirect_saga_marked=HardRedirect_saga_regeneratorRuntime().mark(redirect);function redirect(){return HardRedirect_saga_regeneratorRuntime().wrap((function redirect$(_context){for(;;)switch(_context.prev=_context.next){case 0:return _context.next=3,(0,redux_saga_effects_npm_proxy_esm.s)(actions.ntj);case 3:window.location.href=_context.sent.to,_context.next=0;break;case 6:case"end":return _context.stop()}}),HardRedirect_saga_marked)}__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js");var KEY="flash-messages",getMessages=function getMessages(){var items=window.sessionStorage.getItem(KEY);if(items)try{return JSON.parse(items)}catch(e){console.error("Cannot get messages from session storage",e)}return{}},addMessage=function addMessage(messageType,message){var messages=getMessages();messages[messageType]=messages[messageType]||[],messages[messageType].push(message);try{window.sessionStorage.setItem(KEY,JSON.stringify(messages))}catch(e){console.error("Cannot set messages to session storage",e)}},addMessageWithBody=function addMessageWithBody(type,heading,body){addMessage("".concat(type,":with-body"),{heading,body})},clearMessages=function clearMessages(){return window.sessionStorage.removeItem(KEY)},writeToLocalStorage=function writeToLocalStorage(announcementLink){window.localStorage.setItem("announcement-link",announcementLink)},readFromLocalStorage=function readFromLocalStorage(){try{return window.localStorage.getItem("announcement-link")}catch(_unused){return{}}};function sagas_typeof(o){return sagas_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},sagas_typeof(o)}function sagas_regeneratorRuntime(){sagas_regeneratorRuntime=function _regeneratorRuntime(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{define({},"")}catch(t){define=function define(t,e,r){return t[e]=r}}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,(function(){return this}));var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach((function(e){define(t,e,(function(t){return this._invoke(e,t)}))}))}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==sagas_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){invoke("next",t,i,a)}),(function(t){invoke("throw",t,i,a)})):e.resolve(h).then((function(t){u.value=t,i(u)}),(function(t){return invoke("throw",t,i,a)}))}a(c.arg)}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e((function(e,r){invoke(t,n,e,r)}))}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done}}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg)}}}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}var sagas_marked=sagas_regeneratorRuntime().mark(writeFlashMessages),sagas_marked2=sagas_regeneratorRuntime().mark(readFlashMesages),sagas_marked3=sagas_regeneratorRuntime().mark(writeAnnouncementLinkToLocalStorage),sagas_marked4=sagas_regeneratorRuntime().mark(readAnnouncementLinkFromLocalStorage);function _toConsumableArray(r){return function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r)}(r)||function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}(r)||function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0}}(r)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}var MyInvestmentProjects_sagas_marked=MyInvestmentProjects_sagas_regeneratorRuntime().mark(writeMyInvestmentsToSession),MyInvestmentProjects_sagas_marked2=MyInvestmentProjects_sagas_regeneratorRuntime().mark(readMyInvestmentsFromSession);function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}var CookiePage_saga_marked=CookiePage_saga_regeneratorRuntime().mark(cookiePreferenceChangeSaga),storageChannel=(0,redux_saga_core_npm_proxy_esm.Od)((function(emit){return window.addEventListener("storage",emit),function(){return window.removeEventListener(emit)}}));function cookiePreferenceChangeSaga(){var _yield$take,key,newValue;return CookiePage_saga_regeneratorRuntime().wrap((function cookiePreferenceChangeSaga$(_context){for(;;)switch(_context.prev=_context.next){case 0:return _context.next=3,(0,redux_saga_effects_npm_proxy_esm.s)(storageChannel);case 3:if(_yield$take=_context.sent,key=_yield$take.key,newValue=_yield$take.newValue,"cookie-consent"!==key){_context.next=9;break}return _context.next=9,(0,redux_saga_effects_npm_proxy_esm.yJ)({type:"RESOURCE",name:"load cookie preference",id:"cookieConsent",result:newValue});case 9:_context.next=0;break;case 11:case"end":return _context.stop()}}),CookiePage_saga_marked)}function root_saga_typeof(o){return root_saga_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},root_saga_typeof(o)}function root_saga_regeneratorRuntime(){root_saga_regeneratorRuntime=function _regeneratorRuntime(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{define({},"")}catch(t){define=function define(t,e,r){return t[e]=r}}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,(function(){return this}));var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach((function(e){define(t,e,(function(t){return this._invoke(e,t)}))}))}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==root_saga_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){invoke("next",t,i,a)}),(function(t){invoke("throw",t,i,a)})):e.resolve(h).then((function(t){u.value=t,i(u)}),(function(t){return invoke("throw",t,i,a)}))}a(c.arg)}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e((function(e,r){invoke(t,n,e,r)}))}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done}}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg)}}}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function reducer_typeof(o){return reducer_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},reducer_typeof(o)}var reducer_excluded=["name","id"],_excluded2=["type"];function reducer_ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function reducer_objectSpread(e){for(var r=1;r0&&void 0!==arguments[0]?arguments[0]:Projects_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;switch(type){case actions.Fxn:return Projects_reducer_objectSpread(Projects_reducer_objectSpread({},state),{},{count:result.count,results:result.results,isComplete:!0});case actions.BRO:return Projects_reducer_objectSpread(Projects_reducer_objectSpread({},state),{},{selectedAdvisers:result});case actions.ATq:return Projects_reducer_objectSpread(Projects_reducer_objectSpread({},state),{},{metadata:result});case actions.fUJ:return{completeStatus:result.status};default:return state}};function investmentProjectReducer_typeof(o){return investmentProjectReducer_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},investmentProjectReducer_typeof(o)}function investmentProjectReducer_ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function investmentProjectReducer_objectSpread(e){for(var r=1;r0&&void 0!==arguments[0]?arguments[0]:PersonalisedDashboard_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;switch(type){case actions.aRA:var hasInvestmentProjects=result.hasInvestmentProjects,summary=result.summary;return PersonalisedDashboard_reducer_objectSpread(PersonalisedDashboard_reducer_objectSpread({},state),{},{hasInvestmentProjects,summary});case actions.J6l:var dataHubFeed=result.dataHubFeed;return PersonalisedDashboard_reducer_objectSpread(PersonalisedDashboard_reducer_objectSpread({},state),{},{dataHubFeed});case actions.T$O:return PersonalisedDashboard_reducer_objectSpread(PersonalisedDashboard_reducer_objectSpread({},state),{},{hasTasks:result});default:return state}};var MyInvestmentProjects_state=__webpack_require__("./src/client/components/MyInvestmentProjects/state.js");function MyInvestmentProjects_reducer_typeof(o){return MyInvestmentProjects_reducer_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},MyInvestmentProjects_reducer_typeof(o)}function MyInvestmentProjects_reducer_ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function MyInvestmentProjects_reducer_objectSpread(e){for(var r=1;r0&&void 0!==arguments[0]?arguments[0]:create_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result,searchTerm=_ref.searchTerm;switch(type){case actions.V11:return create_reducer_objectSpread(create_reducer_objectSpread({},state),{},{companyInvestmentCount:result.count});case actions.VAC:return create_reducer_objectSpread(create_reducer_objectSpread({},state),{},{results:result.results});case actions.BEj:return create_reducer_objectSpread(create_reducer_objectSpread({},state),{},{searchTerm});default:return state}};var InvestmentReminders_state=__webpack_require__("./src/client/components/InvestmentReminders/state.js"),InvestmentReminders_reducer_initialState={count:0,results:[]};var NotificationAlert_state=__webpack_require__("./src/client/components/NotificationAlert/state.js");function NotificationAlert_reducer_typeof(o){return NotificationAlert_reducer_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},NotificationAlert_reducer_typeof(o)}function NotificationAlert_reducer_ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function NotificationAlert_reducer_defineProperty(e,r,t){return(r=function NotificationAlert_reducer_toPropertyKey(t){var i=function NotificationAlert_reducer_toPrimitive(t,r){if("object"!=NotificationAlert_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=NotificationAlert_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==NotificationAlert_reducer_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var INITIAL_STATE={count:0,investment:{estimated_land_date:0,no_recent_interaction:0,outstanding_propositions:0},export:{no_recent_interaction:0,new_interaction:0},my_tasks:{due_date_approaching:0,task_assigned_to_me_from_others:0,task_amended_by_others:0,task_overdue:0,task_completed:0}};__webpack_require__("./node_modules/core-js/modules/es.string.trim.js"),__webpack_require__("./src/client/utils/date-utils.js");function Contacts_CollectionList_reducer_typeof(o){return Contacts_CollectionList_reducer_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Contacts_CollectionList_reducer_typeof(o)}function Contacts_CollectionList_reducer_ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function Contacts_CollectionList_reducer_objectSpread(e){for(var r=1;r0&&void 0!==arguments[0]?arguments[0]:Contacts_CollectionList_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;switch(type){case actions.XgG:return Contacts_CollectionList_reducer_objectSpread(Contacts_CollectionList_reducer_objectSpread(Contacts_CollectionList_reducer_objectSpread({},state),result),{},{isComplete:!0});case actions.LzF:return Contacts_CollectionList_reducer_objectSpread(Contacts_CollectionList_reducer_objectSpread({},state),{},{metadata:result});default:return state}};function Interactions_CollectionList_reducer_typeof(o){return Interactions_CollectionList_reducer_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Interactions_CollectionList_reducer_typeof(o)}function Interactions_CollectionList_reducer_ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function Interactions_CollectionList_reducer_objectSpread(e){for(var r=1;r0&&void 0!==arguments[0]?arguments[0]:Omis_CollectionList_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;switch(type){case actions.XiH:return Omis_CollectionList_reducer_objectSpread(Omis_CollectionList_reducer_objectSpread(Omis_CollectionList_reducer_objectSpread({},state),result),{},{isComplete:!0});case actions.BUu:return Omis_CollectionList_reducer_objectSpread(Omis_CollectionList_reducer_objectSpread({},state),{},{metadata:result});default:return state}};var RoutedInput=__webpack_require__("./src/client/components/RoutedInput/index.jsx"),Resource=__webpack_require__("./src/client/components/Resource/Resource.jsx"),Paginated=__webpack_require__("./src/client/components/Resource/Paginated.js"),lib=(__webpack_require__("./node_modules/core-js/modules/es.string.match.js"),__webpack_require__("./node_modules/core-js/modules/es.string.bold.js"),__webpack_require__("./node_modules/core-js/modules/web.url.js"),__webpack_require__("./node_modules/core-js/modules/web.url.to-json.js"),__webpack_require__("./node_modules/core-js/modules/web.url-search-params.js"),__webpack_require__("./node_modules/qs/lib/index.js")),lib_default=__webpack_require__.n(lib),prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),govuk_react_link_esm=__webpack_require__("./node_modules/@govuk-react/link/dist/govuk-react-link.esm.js"),govuk_react_label_esm=__webpack_require__("./node_modules/@govuk-react/label/dist/govuk-react-label.esm.js"),multiinstance=__webpack_require__("./src/client/utils/multiinstance.js"),Form=__webpack_require__("./src/client/components/Form/index.jsx"),LocalHeader=__webpack_require__("./src/client/components/LocalHeader/LocalHeader.jsx"),components_Resource=__webpack_require__("./src/client/components/Resource/index.jsx"),validators=__webpack_require__("./src/client/components/Form/validators.js");const State=(0,react_redux.connect)((function(state){return{state}}))((function(_ref){var state=_ref.state;return(0,_ref.children)(state)}));var useAdministrativeAreaLookup=__webpack_require__("./src/client/components/AdministrativeAreaSearch/useAdministrativeAreaLookup.js"),useAdministrativeAreaSearch=__webpack_require__("./src/client/components/AdministrativeAreaSearch/useAdministrativeAreaSearch.js");function ContactForm_typeof(o){return ContactForm_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},ContactForm_typeof(o)}var _templateObject,ContactForm_excluded=["update","contactId","companyId","primary","addressSameAsCompany","acceptsDitEmailMarketing","addressPostcode","addressTown","addressCounty","addressArea","addressCountry","dispatch","id","notes"],ContactForm_excluded2=["address1","address2","city","county","postcode","acceptsDitEmailMarketing","addressSameAsCompany","primary","email","valid_email","moreDetails"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;er.length)&&(a=r.length);for(var e=0,n=Array(a);er.length)&&(a=r.length);for(var e=0,n=Array(a);e0&&void 0!==arguments[0]?arguments[0]:{},_ref3=arguments.length>1?arguments[1]:void 0,type=_ref3.type,action=reducer_objectWithoutProperties(_ref3,_excluded2);switch(type){case actions.p8B:return setTaskState(state,action,"progress");case actions.GAr:return setTaskState(state,action,"error");case actions.KQv:case actions.n_2:return remove(state,action);default:return state}}},LocalHeader_state.ID,(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,flashMessages=_ref.flashMessages,announcementLink=_ref.announcementLink;switch(type){case actions.Ijb:return LocalHeader_reducer_objectSpread(LocalHeader_reducer_objectSpread({},state),{},{flashMessages});case actions.PqX:return LocalHeader_reducer_objectSpread(LocalHeader_reducer_objectSpread({},state),{},{flashMessages:{}});case actions.F8v:return LocalHeader_reducer_objectSpread(LocalHeader_reducer_objectSpread({},state),{},{announcementLink});default:return state}})),state.ID,(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,id=_ref.id,result=_ref.result,payload=_ref.payload,query=_ref.query,orderBy=_ref.orderBy;switch(type){case actions.Twh:return CompanyLists_reducer_objectSpread(CompanyLists_reducer_objectSpread({},state),{},{lists:(0,lodash.mapValues)(result,(function(name){return{name}})),selectedId:Object.keys(result)[0]});case actions.Hfi:return CompanyLists_reducer_objectSpread(CompanyLists_reducer_objectSpread({},state),{},{lists:CompanyLists_reducer_objectSpread(CompanyLists_reducer_objectSpread({},state.lists),{},CompanyLists_reducer_defineProperty({},payload,CompanyLists_reducer_objectSpread(CompanyLists_reducer_objectSpread({},state.lists[payload]),{},{companies:result})))});case actions.UJl:return CompanyLists_reducer_objectSpread(CompanyLists_reducer_objectSpread({},state),{},{selectedId:id,query:""});case actions.WvE:return CompanyLists_reducer_objectSpread(CompanyLists_reducer_objectSpread({},state),{},{query});case actions.OCZ:return CompanyLists_reducer_objectSpread(CompanyLists_reducer_objectSpread({},state),{},{orderBy});default:return state}})),CollectionList_state.ID,(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Companies_CollectionList_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;switch(type){case actions.jUI:return Companies_CollectionList_reducer_objectSpread(Companies_CollectionList_reducer_objectSpread(Companies_CollectionList_reducer_objectSpread({},state),result),{},{isComplete:!0});case actions.$ft:return Companies_CollectionList_reducer_objectSpread(Companies_CollectionList_reducer_objectSpread({},state),{},{metadata:result});case actions.nAW:return Companies_CollectionList_reducer_objectSpread(Companies_CollectionList_reducer_objectSpread({},state),{},{selectedLeadItaOrGlobalAccountManagers:result});case actions.bWZ:return Companies_CollectionList_reducer_objectSpread(Companies_CollectionList_reducer_objectSpread({},state),{},{advisers:result});default:return state}})),"exportsHistory",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result,page=_ref.page;switch(type){case actions.MFr:var count=result.count,results=result.results;return ExportHistory_reducer_objectSpread(ExportHistory_reducer_objectSpread({},state),{},{count,results,isComplete:!0});case actions.zTo:return ExportHistory_reducer_objectSpread(ExportHistory_reducer_objectSpread({},state),{},{activePage:page});default:return state}})),client_state.ID,(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;return type===actions.Vmx?result:state})),"referralForm",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};switch((arguments.length>1?arguments[1]:void 0).type){case actions.GAr:return client_reducer_objectSpread(client_reducer_objectSpread({},state),{},{progress:!1});case actions.KZ$:return client_reducer_objectSpread(client_reducer_objectSpread({},state),{},{progress:!0,formSubmitted:!0});default:return state}})),"addCompany",(function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}})),TabNav.Mq.reducerSpread),ReferralList.A.reducerSpread),BaseToggleSection.Ay.reducerSpread),Typeahead.A.reducerSpread),RoutedInput.A.reducerSpread),Resource.Ay.reducerSpread),Paginated.A.reducerSpread),ContactForm.reducerSpread),Form.A.reducerSpread),FieldAddAnother.A.reducerSpread),ResendExportWin.reducerSpread),RecentResult.reducerSpread),{},(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(_objectSpread3={},"dnbCheckPendingRequest",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isDnbPending:!1,globalUltimate:!1},_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;switch(type){case actions.rTD:return CompanyBusinessDetails_reducer_objectSpread(CompanyBusinessDetails_reducer_objectSpread({},state),{},{isDnbPending:result});case actions.VRR:return CompanyBusinessDetails_reducer_objectSpread(CompanyBusinessDetails_reducer_objectSpread({},state),{},{globalUltimate:result?result.data.results[0]:null});default:return state}})),"opportunitiesList",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:CollectionList_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,page=_ref.page,result=_ref.result;switch(type){case actions.ILj:var count=result.count,results=result.results;return CollectionList_reducer_objectSpread(CollectionList_reducer_objectSpread({},state),{},{count,results,isComplete:!0});case actions.V8_:return CollectionList_reducer_objectSpread(CollectionList_reducer_objectSpread({},state),{},{activePage:page});default:return state}})),"opportunityDetails",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Opportunities_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result,opportunity=_ref.opportunity;switch(type){case actions.J1h:return Opportunities_reducer_objectSpread(Opportunities_reducer_objectSpread({},state),{},{opportunity:Opportunities_reducer_objectSpread(Opportunities_reducer_objectSpread(Opportunities_reducer_objectSpread({},state.opportunity),opportunity),{},{isEditingDetails:!1,isEditingRequirements:!1})});case actions.EPX:return Opportunities_reducer_objectSpread(Opportunities_reducer_objectSpread({},state),{},{opportunity:result});case actions.A3K:return Opportunities_reducer_objectSpread(Opportunities_reducer_objectSpread({},state),{},{metadata:Opportunities_reducer_objectSpread(Opportunities_reducer_objectSpread({},state.metadata),{},{investmentTypes:result.investmentTypes,returnRates:result.returnRates,timeScales:result.timeScales})});case actions.TBR:return Opportunities_reducer_objectSpread(Opportunities_reducer_objectSpread({},state),{},{opportunity:Opportunities_reducer_objectSpread(Opportunities_reducer_objectSpread({},state.opportunity),{},{isEditingDetails:!0,isEditingRequirements:!1})});case actions.Rm3:return Opportunities_reducer_objectSpread(Opportunities_reducer_objectSpread({},state),{},{opportunity:Opportunities_reducer_objectSpread(Opportunities_reducer_objectSpread({},state.opportunity),{},{isEditingDetails:!1,isEditingRequirements:!0})});case actions.j2f:return Opportunities_reducer_objectSpread(Opportunities_reducer_objectSpread({},state),{},{opportunity:Opportunities_reducer_objectSpread(Opportunities_reducer_objectSpread({},state.opportunity),{},{isEditingDetails:!1,isEditingRequirements:!1})});case actions.Xpy:return Opportunities_reducer_objectSpread(Opportunities_reducer_objectSpread({},state),{},{opportunity:Opportunities_reducer_objectSpread(Opportunities_reducer_objectSpread(Opportunities_reducer_objectSpread({},state.opportunity),result),{},{isEditingDetails:!1,isEditingRequirements:!1})});default:return state}})),"profilesList",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Profiles_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;switch(type){case actions.j2I:return Profiles_reducer_objectSpread(Profiles_reducer_objectSpread({},state),{},{count:result.count,results:result.results,isComplete:!0});case actions.XYJ:return Profiles_reducer_objectSpread(Profiles_reducer_objectSpread({},state),{},{filterOptions:result});default:return state}})),"projectsList",Projects_reducer),"eybLeads",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:EYBLeads_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;switch(type){case actions.Paf:return EYBLeads_reducer_objectSpread(EYBLeads_reducer_objectSpread({},state),{},{count:result.count,results:result.results,isComplete:!0});case actions.KpV:return EYBLeads_reducer_objectSpread(EYBLeads_reducer_objectSpread({},state),{},{filterOptions:result});default:return state}})),"investmentProject",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:investmentProjectReducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;return type===actions.bVz?investmentProjectReducer_objectSpread(investmentProjectReducer_objectSpread({},state),{},{project:(0,utils.OM)(result)}):state})),"overviewCompanyExportWinsList",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{initialState:exportStatusReducer_initialState},_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,data=_ref.result;return type===actions.FN9?exportStatusReducer_objectSpread(exportStatusReducer_objectSpread({},state),{},{count:data.count,latestExportWin:data.result}):state})),"overviewCompanyProjectsList",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{initialState:TableCards_reducer_initialState},_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;if(type===actions.cEs){var resultList=[],stageList={},statusList={},stageListAll=[],statusListAll=[],upcomingActiveInvestments=[];result.results.map((function(investment){return resultList.push(investment)})),resultList.map((function(investment){return stageListAll.push(investment.stage.name)})),resultList.map((function(investment){return statusListAll.push(investment.status)}));for(var statusNames=statusListAll.filter((function(item,i,ar){return ar.indexOf(item)===i})),stageNames=stageListAll.filter((function(item,i,ar){return ar.indexOf(item)===i})),_loop=function _loop(i){var name=(0,lodash.camelCase)(statusNames[i]);statusList[name]=resultList.filter((function(investment){return investment.status===statusNames[i]})).length},i=0;i3?allActiveInvestments.slice(0,3):allActiveInvestments,TableCards_reducer_objectSpread(TableCards_reducer_objectSpread({},state),{},{stageList,statusList,resultList,summary:result.summary,upcomingActiveInvestments,isComplete:!0})}return state})),MyInvestmentProjects_state.ID,(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:MyInvestmentProjects_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result,page=_ref.page,stage=_ref.stage,status=_ref.status,landDate=_ref.landDate,sort=_ref.sort,showDetails=_ref.showDetails,sessionState=_ref.sessionState;switch(type){case actions.yQE:var results=result.results,count=result.count,summary=result.summary;return MyInvestmentProjects_reducer_objectSpread(MyInvestmentProjects_reducer_objectSpread({},state),{},{results,count,summary});case actions.N84:return MyInvestmentProjects_reducer_objectSpread(MyInvestmentProjects_reducer_objectSpread({},state),{},{sort,page});case actions.L_p:return MyInvestmentProjects_reducer_objectSpread(MyInvestmentProjects_reducer_objectSpread({},state),{},{stage,page});case actions.ttR:return MyInvestmentProjects_reducer_objectSpread(MyInvestmentProjects_reducer_objectSpread({},state),{},{status,page});case actions.JlV:return MyInvestmentProjects_reducer_objectSpread(MyInvestmentProjects_reducer_objectSpread({},state),{},{landDate,page});case actions.Fd_:return MyInvestmentProjects_reducer_objectSpread(MyInvestmentProjects_reducer_objectSpread({},state),{},{page});case actions.rNT:return MyInvestmentProjects_reducer_objectSpread(MyInvestmentProjects_reducer_objectSpread({},state),{},{showDetails});case actions.$ah:return MyInvestmentProjects_reducer_objectSpread(MyInvestmentProjects_reducer_objectSpread({},state),sessionState);default:return state}})),reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(_objectSpread3,"createInvestmentProject",create_reducer),"companyInvestmentCount",create_reducer),PersonalisedDashboard_state.ID,PersonalisedDashboard_reducer),PersonalisedDashboard_state.I4,PersonalisedDashboard_reducer),PersonalisedDashboard_state.$F,PersonalisedDashboard_reducer),InvestmentReminders_state.ID,(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:InvestmentReminders_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;return type===actions.gEw?{results:result.results,count:result.count}:state})),NotificationAlert_state.ID,(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:INITIAL_STATE,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;return type===actions.Hks?function NotificationAlert_reducer_objectSpread(e){for(var r=1;r0&&void 0!==arguments[0]?arguments[0]:reducer_defaultState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;return type===actions.nzr?ContactActivity_reducer_objectSpread(ContactActivity_reducer_objectSpread(ContactActivity_reducer_objectSpread({},state),result),{},{isComplete:!0}):state})),"companyContactsList",Contacts_CollectionList_reducer),reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(_objectSpread3,"interactionsList",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Interactions_CollectionList_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;switch(type){case actions.PUg:return Interactions_CollectionList_reducer_objectSpread(Interactions_CollectionList_reducer_objectSpread(Interactions_CollectionList_reducer_objectSpread({},state),result),{},{isComplete:!0});case actions.AIi:return Interactions_CollectionList_reducer_objectSpread(Interactions_CollectionList_reducer_objectSpread({},state),{},{selectedAdvisers:result});case actions.YJr:return Interactions_CollectionList_reducer_objectSpread(Interactions_CollectionList_reducer_objectSpread({},state),{},{selectedCompanies:result});case actions.nrO:return Interactions_CollectionList_reducer_objectSpread(Interactions_CollectionList_reducer_objectSpread({},state),{},{metadata:result});case actions.rpz:return Interactions_CollectionList_reducer_objectSpread(Interactions_CollectionList_reducer_objectSpread({},state),{},{selectedTeams:result});default:return state}})),"eventsList",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Events_CollectionList_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;switch(type){case actions.JPR:return Events_CollectionList_reducer_objectSpread(Events_CollectionList_reducer_objectSpread(Events_CollectionList_reducer_objectSpread({},state),result),{},{isComplete:!0});case actions.vlr:return Events_CollectionList_reducer_objectSpread(Events_CollectionList_reducer_objectSpread({},state),{},{metadata:result});case actions.wwH:return Events_CollectionList_reducer_objectSpread(Events_CollectionList_reducer_objectSpread({},state),{},{selectedOrganisers:result});default:return state}})),"eventDetails",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;return type===actions.Kk0?EventDetails_reducer_objectSpread(EventDetails_reducer_objectSpread({},state),result):state})),"eventAventriDetails",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;return type===actions.WFj?EventAventriDetails_reducer_objectSpread(EventAventriDetails_reducer_objectSpread({},state),result):state})),"eventAventriRegistrationStatusAttendees",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;return type===actions.yKw?EventAventriRegistrationStatus_reducer_objectSpread(EventAventriRegistrationStatus_reducer_objectSpread({},state),result):state})),"essInteractionDetails",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;return type===actions.F0x?ESSInteractionDetails_reducer_objectSpread(ESSInteractionDetails_reducer_objectSpread({},state),result):state})),"findAttendees",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:AttendeeSearch_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;switch(type){case actions.eFJ:return AttendeeSearch_reducer_objectSpread(AttendeeSearch_reducer_objectSpread(AttendeeSearch_reducer_objectSpread({},state),result),{},{isComplete:!0});case actions.AJt:return AttendeeSearch_reducer_objectSpread(AttendeeSearch_reducer_objectSpread({},state),{},{metadata:result});default:return state}})),"ordersList",Omis_CollectionList_reducer),"companyOrdersList",Omis_CollectionList_reducer),"reconciliationOrdersList",Omis_CollectionList_reducer),reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(_objectSpread3,"reminders",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Reminders_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result,payload=_ref.payload;switch(type){case es6.LK:return Reminders_reducer_objectSpread({},Reminders_reducer_initialState);case actions.oO0:case actions.vMs:case actions.ev2:case actions.Amb:case actions.F0b:case actions.mDK:case actions.UCk:case actions.eod:case actions.YRg:case actions.dxX:return Reminders_reducer_objectSpread(Reminders_reducer_objectSpread({},state),{},{reminders:result});case actions.spP:case actions.SJf:case actions.lZg:case actions.vdS:case actions.szG:case actions.a_f:case actions.U8l:case actions.g_U:case actions.NT6:return Reminders_reducer_objectSpread(Reminders_reducer_objectSpread({},state),{},{reminders:Reminders_reducer_objectSpread(Reminders_reducer_objectSpread({},state.reminders),{},{results:state.reminders.results.map((function(item){return Reminders_reducer_objectSpread(Reminders_reducer_objectSpread({},item),{},{deleted:item.deleted||item.id===payload.id})})),count:state.reminders.count-1,nextPending:!0})});case actions.zp:case actions.RHl:case actions.sT5:case actions.qLf:case actions.zT4:case actions.jRk:case actions.b8r:case actions.fW0:case actions.Mdm:return Reminders_reducer_objectSpread(Reminders_reducer_objectSpread({},state),{},{reminders:Reminders_reducer_objectSpread(Reminders_reducer_objectSpread({},state.reminders),{},{results:[].concat(reducer_toConsumableArray(state.reminders.results),reducer_toConsumableArray(result)),nextPending:!1})});default:return state}})),"companyDetails",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:CompanyDetails_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;return type===actions.SKY?CompanyDetails_reducer_objectSpread(CompanyDetails_reducer_objectSpread({},state),{},{company:result}):state})),"exportDetails",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ExportDetails_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;return type===actions.zdr?ExportDetails_reducer_objectSpread(ExportDetails_reducer_objectSpread({},state),{},{exportItem:result}):state})),ExportList_state.ID,(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ExportList_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;return type===actions._kX?ExportList_reducer_objectSpread(ExportList_reducer_objectSpread({},state),result):state})),CompanyLocalHeader_state.ID,(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:CompanyLocalHeader_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;return type===actions.PDO?CompanyLocalHeader_reducer_objectSpread(CompanyLocalHeader_reducer_objectSpread({},state),result):state})),"companyHierarchy",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:CompanyHierarchy_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;return type===actions.zsc?CompanyHierarchy_reducer_objectSpread(CompanyHierarchy_reducer_objectSpread({},state),{},{familyTree:result}):state})),"linkGlobalHQ",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:LinkGlobalHQ_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;switch(type){case actions.jUI:return LinkGlobalHQ_reducer_objectSpread(LinkGlobalHQ_reducer_objectSpread(LinkGlobalHQ_reducer_objectSpread({},state),result),{},{isComplete:!0});case actions.$ft:return LinkGlobalHQ_reducer_objectSpread(LinkGlobalHQ_reducer_objectSpread({},state),{},{metadata:result});default:return state}})),"linkSubsidiary",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:LinkSubsidiary_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;switch(type){case actions.jUI:return LinkSubsidiary_reducer_objectSpread(LinkSubsidiary_reducer_objectSpread(LinkSubsidiary_reducer_objectSpread({},state),result),{},{isComplete:!0});case actions.$ft:return LinkSubsidiary_reducer_objectSpread(LinkSubsidiary_reducer_objectSpread({},state),{},{metadata:result});default:return state}})),"objective",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:AccountManagement_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;return type===actions.whB?AccountManagement_reducer_objectSpread(AccountManagement_reducer_objectSpread({},state),{},{objectiveItem:result}):state})),"nonFdiProjectsList",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:EditAssociatedProject_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;switch(type){case actions.Fxn:return EditAssociatedProject_reducer_objectSpread(EditAssociatedProject_reducer_objectSpread({},state),{},{count:result.count,results:result.results,isComplete:!0});case actions.ATq:return EditAssociatedProject_reducer_objectSpread(EditAssociatedProject_reducer_objectSpread({},state),{},{metadata:result});default:return state}})),reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(_objectSpread3,"recipientCompanyList",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:EditRecipientCompany_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;switch(type){case actions.jUI:return EditRecipientCompany_reducer_objectSpread(EditRecipientCompany_reducer_objectSpread(EditRecipientCompany_reducer_objectSpread({},state),result),{},{isComplete:!0});case actions.$ft:return EditRecipientCompany_reducer_objectSpread(EditRecipientCompany_reducer_objectSpread({},state),{},{metadata:result});default:return state}})),"oneListDetails",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:CoreTeam_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;return type===actions.PMA?CoreTeam_reducer_objectSpread(CoreTeam_reducer_objectSpread({},state),result):state})),"taskDetails",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:TaskDetails_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;switch(type){case actions.h7f:return TaskDetails_reducer_objectSpread(TaskDetails_reducer_objectSpread({},state),{},{copyTask:!1,task:(0,utils.OM)(result)});case actions.TeI:return TaskDetails_reducer_objectSpread(TaskDetails_reducer_objectSpread({},state),{},{copyTask:!0,task:(0,utils.OM)(result)});default:return state}})),"selectOmisCompany",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:CompanySelect_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;switch(type){case actions.jUI:return CompanySelect_reducer_objectSpread(CompanySelect_reducer_objectSpread(CompanySelect_reducer_objectSpread({},state),result),{},{isComplete:!0});case actions.$ft:return CompanySelect_reducer_objectSpread(CompanySelect_reducer_objectSpread({},state),{},{metadata:result});default:return state}})),my_tasks_state.ID,(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:my_tasks_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;return type===actions.SJe?my_tasks_reducer_objectSpread(my_tasks_reducer_objectSpread({},state),{},{myTasks:result}):state})),"interactionDetails",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:InteractionDetails_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;return type===actions.s7n?InteractionDetails_reducer_objectSpread(InteractionDetails_reducer_objectSpread({},state),{},{interaction:result}):state})),"propositionComplete",Projects_reducer),"previewQuote",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;return type===actions.Pw7?Omis_reducer_objectSpread(Omis_reducer_objectSpread({},state),{},{quotePreview:result}):state})),"companyActivitiesListNoAS",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:CompanyActivity_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;switch(type){case actions.pJE:return CompanyActivity_reducer_objectSpread(CompanyActivity_reducer_objectSpread(CompanyActivity_reducer_objectSpread({},state),result),{},{isComplete:!0});case actions.a3Z:return CompanyActivity_reducer_objectSpread(CompanyActivity_reducer_objectSpread({},state),{},{selectedAdvisers:result});case actions.mQv:return CompanyActivity_reducer_objectSpread(CompanyActivity_reducer_objectSpread({},state),{},{selectedCompanies:result});case actions.heH:return CompanyActivity_reducer_objectSpread(CompanyActivity_reducer_objectSpread({},state),{},{metadata:result});case actions.fZX:return CompanyActivity_reducer_objectSpread(CompanyActivity_reducer_objectSpread({},state),{},{selectedTeams:result});default:return state}})),"overviewRecentActivity",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:defaultState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;return type===actions.F__?recentReducer_objectSpread(recentReducer_objectSpread(recentReducer_objectSpread({},state),result),{},{isComplete:!0}):state})),reducers_defineProperty(_objectSpread3,"overviewUpcomingActivity",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:upcomingReducer_defaultState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;return type===actions.IpB?upcomingReducer_objectSpread(upcomingReducer_objectSpread(upcomingReducer_objectSpread({},state),result),{},{isComplete:!0}):state}))));function createProvider_typeof(o){return createProvider_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},createProvider_typeof(o)}function createProvider_ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function createProvider_objectSpread(e){for(var r=1;r0&&void 0!==arguments[0]?arguments[0]:"";return new Promise((function(resolve,reject){return"reject"===query?setTimeout(reject,1e3,"Something went horribly wrong"):setTimeout(resolve,1e3,tasks_OPTIONS.filter((function(x){return x.toLowerCase().includes(query.toLowerCase())})).slice(0,10).map((function(x){return{value:lodash_default().snakeCase(x),label:x}})))}))}};function tasks_typeof(o){return tasks_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},tasks_typeof(o)}const Typeahead_tasks=function tasks_defineProperty(e,r,t){return(r=function tasks_toPropertyKey(t){var i=function tasks_toPrimitive(t,r){if("object"!=tasks_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=tasks_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==tasks_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}({},__webpack_require__("./src/client/components/Typeahead/state.js").S,(function getTypeaheadOptions(_ref){var loadOptions=_ref.loadOptions,options=_ref.options,autocomplete=_ref.autocomplete;return loadOptions?(0,lodash.throttle)(loadOptions,500)(autocomplete):new Promise((function(resolve){return resolve(options)}))})),country_namespaceObject=JSON.parse('[{"id":"87756b9a-5d95-e211-a939-e4115bead28a","name":"Afghanistan","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"AF"},{"id":"88756b9a-5d95-e211-a939-e4115bead28a","name":"Aland Islands","disabled_on":"2017-12-15T17:12:09Z","overseas_region":null,"iso_alpha2_code":""},{"id":"945f66a0-5d95-e211-a939-e4115bead28a","name":"Albania","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"AL"},{"id":"955f66a0-5d95-e211-a939-e4115bead28a","name":"Algeria","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"DZ"},{"id":"965f66a0-5d95-e211-a939-e4115bead28a","name":"American Samoa","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"975f66a0-5d95-e211-a939-e4115bead28a","name":"Andorra","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"AD"},{"id":"985f66a0-5d95-e211-a939-e4115bead28a","name":"Angola","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"AO"},{"id":"995f66a0-5d95-e211-a939-e4115bead28a","name":"Anguilla","disabled_on":null,"overseas_region":null,"iso_alpha2_code":"AI"},{"id":"9a5f66a0-5d95-e211-a939-e4115bead28a","name":"Antarctica","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"9b5f66a0-5d95-e211-a939-e4115bead28a","name":"Antigua and Barbuda","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"AG"},{"id":"9c5f66a0-5d95-e211-a939-e4115bead28a","name":"Argentina","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"AR"},{"id":"9d5f66a0-5d95-e211-a939-e4115bead28a","name":"Armenia","disabled_on":null,"overseas_region":{"name":"Eastern Europe and Central Asia","id":"cb2864aa-d19f-44b6-946c-d850a3fd7e3a"},"iso_alpha2_code":"AM"},{"id":"9e5f66a0-5d95-e211-a939-e4115bead28a","name":"Aruba","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"9f5f66a0-5d95-e211-a939-e4115bead28a","name":"Australia","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"AU"},{"id":"a05f66a0-5d95-e211-a939-e4115bead28a","name":"Austria","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"AT"},{"id":"a15f66a0-5d95-e211-a939-e4115bead28a","name":"Azerbaijan","disabled_on":null,"overseas_region":{"name":"Eastern Europe and Central Asia","id":"cb2864aa-d19f-44b6-946c-d850a3fd7e3a"},"iso_alpha2_code":"AZ"},{"id":"a25f66a0-5d95-e211-a939-e4115bead28a","name":"Bahamas","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"BS"},{"id":"a35f66a0-5d95-e211-a939-e4115bead28a","name":"Bahrain","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"BH"},{"id":"a45f66a0-5d95-e211-a939-e4115bead28a","name":"Bangladesh","disabled_on":null,"overseas_region":{"name":"South Asia","id":"12ed13cf-4b2c-4a46-b2f9-068e397d8c84"},"iso_alpha2_code":"BD"},{"id":"a55f66a0-5d95-e211-a939-e4115bead28a","name":"Barbados","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"BB"},{"id":"a65f66a0-5d95-e211-a939-e4115bead28a","name":"Belarus","disabled_on":null,"overseas_region":{"name":"Eastern Europe and Central Asia","id":"cb2864aa-d19f-44b6-946c-d850a3fd7e3a"},"iso_alpha2_code":"BY"},{"id":"a75f66a0-5d95-e211-a939-e4115bead28a","name":"Belgium","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"BE"},{"id":"a85f66a0-5d95-e211-a939-e4115bead28a","name":"Belize","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"BZ"},{"id":"a95f66a0-5d95-e211-a939-e4115bead28a","name":"Benin","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"BJ"},{"id":"aa5f66a0-5d95-e211-a939-e4115bead28a","name":"Bermuda","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"BM"},{"id":"ab5f66a0-5d95-e211-a939-e4115bead28a","name":"Bhutan","disabled_on":null,"overseas_region":{"name":"South Asia","id":"12ed13cf-4b2c-4a46-b2f9-068e397d8c84"},"iso_alpha2_code":"BT"},{"id":"98c8d93d-5d06-e311-a78e-e4115bead28a","name":"BLANK","disabled_on":"2017-12-28T14:27:49Z","overseas_region":null,"iso_alpha2_code":""},{"id":"ac5f66a0-5d95-e211-a939-e4115bead28a","name":"Bolivia","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"BO"},{"id":"ad5f66a0-5d95-e211-a939-e4115bead28a","name":"Bosnia and Herzegovina","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"BA"},{"id":"ae5f66a0-5d95-e211-a939-e4115bead28a","name":"Botswana","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"BW"},{"id":"af5f66a0-5d95-e211-a939-e4115bead28a","name":"Bouvet Island","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"b05f66a0-5d95-e211-a939-e4115bead28a","name":"Brazil","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"BR"},{"id":"b15f66a0-5d95-e211-a939-e4115bead28a","name":"British Indian Ocean Territory","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"b25f66a0-5d95-e211-a939-e4115bead28a","name":"British Virgin Islands","disabled_on":null,"overseas_region":null,"iso_alpha2_code":"VG"},{"id":"56af72a6-5d95-e211-a939-e4115bead28a","name":"Brunei","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"BN"},{"id":"57af72a6-5d95-e211-a939-e4115bead28a","name":"Bulgaria","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"BG"},{"id":"58af72a6-5d95-e211-a939-e4115bead28a","name":"Burkina","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"BF"},{"id":"59af72a6-5d95-e211-a939-e4115bead28a","name":"Burma","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"MM"},{"id":"5aaf72a6-5d95-e211-a939-e4115bead28a","name":"Burundi","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"BI"},{"id":"5baf72a6-5d95-e211-a939-e4115bead28a","name":"Cambodia","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"KH"},{"id":"5caf72a6-5d95-e211-a939-e4115bead28a","name":"Cameroon","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"CM"},{"id":"5daf72a6-5d95-e211-a939-e4115bead28a","name":"Canada","disabled_on":null,"overseas_region":{"name":"North America","id":"fdfbbc8d-0e8a-479a-b10f-4979d582ff87"},"iso_alpha2_code":"CA"},{"id":"5eaf72a6-5d95-e211-a939-e4115bead28a","name":"Cape Verde","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"CV"},{"id":"5faf72a6-5d95-e211-a939-e4115bead28a","name":"Cayman Islands","disabled_on":null,"overseas_region":null,"iso_alpha2_code":"KY"},{"id":"60af72a6-5d95-e211-a939-e4115bead28a","name":"Central African Republic","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"CF"},{"id":"61af72a6-5d95-e211-a939-e4115bead28a","name":"Chad","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"TD"},{"id":"62af72a6-5d95-e211-a939-e4115bead28a","name":"Chile","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"CL"},{"id":"63af72a6-5d95-e211-a939-e4115bead28a","name":"China","disabled_on":null,"overseas_region":{"name":"China","id":"b97749fb-2273-4447-a239-62dd8fb29e01"},"iso_alpha2_code":"CN"},{"id":"64af72a6-5d95-e211-a939-e4115bead28a","name":"Christmas Island","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"65af72a6-5d95-e211-a939-e4115bead28a","name":"Cocos (Keeling) Islands","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"66af72a6-5d95-e211-a939-e4115bead28a","name":"Colombia","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"CO"},{"id":"67af72a6-5d95-e211-a939-e4115bead28a","name":"Comoros","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"KM"},{"id":"69af72a6-5d95-e211-a939-e4115bead28a","name":"Congo","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"CG"},{"id":"68af72a6-5d95-e211-a939-e4115bead28a","name":"Congo (Democratic Republic)","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"CD"},{"id":"6aaf72a6-5d95-e211-a939-e4115bead28a","name":"Cook Islands","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"6baf72a6-5d95-e211-a939-e4115bead28a","name":"Costa Rica","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"CR"},{"id":"6caf72a6-5d95-e211-a939-e4115bead28a","name":"Croatia","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"HR"},{"id":"6daf72a6-5d95-e211-a939-e4115bead28a","name":"Cuba","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"CU"},{"id":"6eaf72a6-5d95-e211-a939-e4115bead28a","name":"Cyprus","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"CY"},{"id":"6faf72a6-5d95-e211-a939-e4115bead28a","name":"Czech Republic","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"CZ"},{"id":"70af72a6-5d95-e211-a939-e4115bead28a","name":"Denmark","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"DK"},{"id":"71af72a6-5d95-e211-a939-e4115bead28a","name":"Djibouti","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"DJ"},{"id":"72af72a6-5d95-e211-a939-e4115bead28a","name":"Dominica","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"DM"},{"id":"73af72a6-5d95-e211-a939-e4115bead28a","name":"Dominican Republic","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"DO"},{"id":"74af72a6-5d95-e211-a939-e4115bead28a","name":"East Timor","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"TL"},{"id":"75af72a6-5d95-e211-a939-e4115bead28a","name":"Ecuador","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"EC"},{"id":"76af72a6-5d95-e211-a939-e4115bead28a","name":"Egypt","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"EG"},{"id":"d2f682ac-5d95-e211-a939-e4115bead28a","name":"El Salvador","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"SV"},{"id":"d3f682ac-5d95-e211-a939-e4115bead28a","name":"Equatorial Guinea","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"GQ"},{"id":"d4f682ac-5d95-e211-a939-e4115bead28a","name":"Eritrea","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"ER"},{"id":"d5f682ac-5d95-e211-a939-e4115bead28a","name":"Estonia","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"EE"},{"id":"d6f682ac-5d95-e211-a939-e4115bead28a","name":"Ethiopia","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"ET"},{"id":"d7f682ac-5d95-e211-a939-e4115bead28a","name":"Falkland Islands","disabled_on":null,"overseas_region":null,"iso_alpha2_code":"FK"},{"id":"d8f682ac-5d95-e211-a939-e4115bead28a","name":"Faroe Islands","disabled_on":null,"overseas_region":null,"iso_alpha2_code":"FO"},{"id":"d9f682ac-5d95-e211-a939-e4115bead28a","name":"Fiji","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"FJ"},{"id":"daf682ac-5d95-e211-a939-e4115bead28a","name":"Finland","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"FI"},{"id":"82756b9a-5d95-e211-a939-e4115bead28a","name":"France","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"FR"},{"id":"dbf682ac-5d95-e211-a939-e4115bead28a","name":"French Guiana","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"dcf682ac-5d95-e211-a939-e4115bead28a","name":"French Polynesia","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"ddf682ac-5d95-e211-a939-e4115bead28a","name":"French Southern Territories","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"def682ac-5d95-e211-a939-e4115bead28a","name":"Gabon","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"GA"},{"id":"dff682ac-5d95-e211-a939-e4115bead28a","name":"Gambia","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"GM"},{"id":"e0f682ac-5d95-e211-a939-e4115bead28a","name":"Georgia","disabled_on":null,"overseas_region":{"name":"Eastern Europe and Central Asia","id":"cb2864aa-d19f-44b6-946c-d850a3fd7e3a"},"iso_alpha2_code":"GE"},{"id":"83756b9a-5d95-e211-a939-e4115bead28a","name":"Germany","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"DE"},{"id":"e1f682ac-5d95-e211-a939-e4115bead28a","name":"Ghana","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"GH"},{"id":"e2f682ac-5d95-e211-a939-e4115bead28a","name":"Gibraltar","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"GI"},{"id":"e3f682ac-5d95-e211-a939-e4115bead28a","name":"Greece","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"GR"},{"id":"e4f682ac-5d95-e211-a939-e4115bead28a","name":"Greenland","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"GL"},{"id":"e5f682ac-5d95-e211-a939-e4115bead28a","name":"Grenada","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"GD"},{"id":"e6f682ac-5d95-e211-a939-e4115bead28a","name":"Guadeloupe","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"e7f682ac-5d95-e211-a939-e4115bead28a","name":"Guam","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"e8f682ac-5d95-e211-a939-e4115bead28a","name":"Guatemala","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"GT"},{"id":"77756b9a-5d95-e211-a939-e4115bead28a","name":"Guernsey","disabled_on":null,"overseas_region":null,"iso_alpha2_code":"GG"},{"id":"e9f682ac-5d95-e211-a939-e4115bead28a","name":"Guinea","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"GN"},{"id":"eaf682ac-5d95-e211-a939-e4115bead28a","name":"Guinea-Bissau","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"GW"},{"id":"ebf682ac-5d95-e211-a939-e4115bead28a","name":"Guyana","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"GY"},{"id":"ecf682ac-5d95-e211-a939-e4115bead28a","name":"Haiti","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"HT"},{"id":"edf682ac-5d95-e211-a939-e4115bead28a","name":"Heard Island and McDonald Island","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"eff682ac-5d95-e211-a939-e4115bead28a","name":"Honduras","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":""},{"id":"f0f682ac-5d95-e211-a939-e4115bead28a","name":"Hong Kong (SAR)","disabled_on":null,"overseas_region":{"name":"China","id":"b97749fb-2273-4447-a239-62dd8fb29e01"},"iso_alpha2_code":"HK"},{"id":"6d6a9ab2-5d95-e211-a939-e4115bead28a","name":"Hungary","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"HU"},{"id":"6e6a9ab2-5d95-e211-a939-e4115bead28a","name":"Iceland","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"IS"},{"id":"6f6a9ab2-5d95-e211-a939-e4115bead28a","name":"India","disabled_on":null,"overseas_region":{"name":"South Asia","id":"12ed13cf-4b2c-4a46-b2f9-068e397d8c84"},"iso_alpha2_code":"IN"},{"id":"706a9ab2-5d95-e211-a939-e4115bead28a","name":"Indonesia","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"ID"},{"id":"716a9ab2-5d95-e211-a939-e4115bead28a","name":"Iran","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"IR"},{"id":"726a9ab2-5d95-e211-a939-e4115bead28a","name":"Iraq","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"IQ"},{"id":"736a9ab2-5d95-e211-a939-e4115bead28a","name":"Ireland","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"IE"},{"id":"79756b9a-5d95-e211-a939-e4115bead28a","name":"Isle of Man","disabled_on":null,"overseas_region":null,"iso_alpha2_code":"IM"},{"id":"746a9ab2-5d95-e211-a939-e4115bead28a","name":"Israel","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"IL"},{"id":"84756b9a-5d95-e211-a939-e4115bead28a","name":"Italy","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"IT"},{"id":"756a9ab2-5d95-e211-a939-e4115bead28a","name":"Ivory Coast","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"CI"},{"id":"766a9ab2-5d95-e211-a939-e4115bead28a","name":"Jamaica","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"JM"},{"id":"85756b9a-5d95-e211-a939-e4115bead28a","name":"Japan","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"JP"},{"id":"78756b9a-5d95-e211-a939-e4115bead28a","name":"Jersey","disabled_on":null,"overseas_region":null,"iso_alpha2_code":"JE"},{"id":"776a9ab2-5d95-e211-a939-e4115bead28a","name":"Jordan","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"JO"},{"id":"786a9ab2-5d95-e211-a939-e4115bead28a","name":"Kazakhstan","disabled_on":null,"overseas_region":{"name":"Eastern Europe and Central Asia","id":"cb2864aa-d19f-44b6-946c-d850a3fd7e3a"},"iso_alpha2_code":"KZ"},{"id":"796a9ab2-5d95-e211-a939-e4115bead28a","name":"Kenya","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"KE"},{"id":"7a6a9ab2-5d95-e211-a939-e4115bead28a","name":"Kiribati","disabled_on":"2018-11-05T17:00:00Z","overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"KI"},{"id":"7b6a9ab2-5d95-e211-a939-e4115bead28a","name":"Korea (North)","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"KP"},{"id":"7c6a9ab2-5d95-e211-a939-e4115bead28a","name":"Korea (South)","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"KR"},{"id":"7a756b9a-5d95-e211-a939-e4115bead28a","name":"Kosovo","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"XK"},{"id":"7d6a9ab2-5d95-e211-a939-e4115bead28a","name":"Kuwait","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"KW"},{"id":"7e6a9ab2-5d95-e211-a939-e4115bead28a","name":"Kyrgyzstan","disabled_on":null,"overseas_region":{"name":"Eastern Europe and Central Asia","id":"cb2864aa-d19f-44b6-946c-d850a3fd7e3a"},"iso_alpha2_code":"KG"},{"id":"7f6a9ab2-5d95-e211-a939-e4115bead28a","name":"Laos","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"LA"},{"id":"806a9ab2-5d95-e211-a939-e4115bead28a","name":"Latvia","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"LV"},{"id":"816a9ab2-5d95-e211-a939-e4115bead28a","name":"Lebanon","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"LB"},{"id":"826a9ab2-5d95-e211-a939-e4115bead28a","name":"Lesotho","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"LS"},{"id":"836a9ab2-5d95-e211-a939-e4115bead28a","name":"Liberia","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"LR"},{"id":"846a9ab2-5d95-e211-a939-e4115bead28a","name":"Libya","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"LY"},{"id":"856a9ab2-5d95-e211-a939-e4115bead28a","name":"Liechtenstein","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"LI"},{"id":"866a9ab2-5d95-e211-a939-e4115bead28a","name":"Lithuania","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"LT"},{"id":"876a9ab2-5d95-e211-a939-e4115bead28a","name":"Luxembourg","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"LU"},{"id":"886a9ab2-5d95-e211-a939-e4115bead28a","name":"Macao (SAR)","disabled_on":null,"overseas_region":{"name":"China","id":"b97749fb-2273-4447-a239-62dd8fb29e01"},"iso_alpha2_code":"MO"},{"id":"896a9ab2-5d95-e211-a939-e4115bead28a","name":"Macedonia","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"MK"},{"id":"0350bdb8-5d95-e211-a939-e4115bead28a","name":"Madagascar","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"MG"},{"id":"0450bdb8-5d95-e211-a939-e4115bead28a","name":"Malawi","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"MW"},{"id":"0550bdb8-5d95-e211-a939-e4115bead28a","name":"Malaysia","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"MY"},{"id":"0650bdb8-5d95-e211-a939-e4115bead28a","name":"Maldives","disabled_on":null,"overseas_region":{"name":"South Asia","id":"12ed13cf-4b2c-4a46-b2f9-068e397d8c84"},"iso_alpha2_code":"MV"},{"id":"0750bdb8-5d95-e211-a939-e4115bead28a","name":"Mali","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"ML"},{"id":"0850bdb8-5d95-e211-a939-e4115bead28a","name":"Malta","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"MT"},{"id":"0950bdb8-5d95-e211-a939-e4115bead28a","name":"Marshall Islands","disabled_on":"2018-11-05T17:00:00Z","overseas_region":{"name":"North America","id":"fdfbbc8d-0e8a-479a-b10f-4979d582ff87"},"iso_alpha2_code":"MH"},{"id":"0a50bdb8-5d95-e211-a939-e4115bead28a","name":"Martinique","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"0b50bdb8-5d95-e211-a939-e4115bead28a","name":"Mauritania","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"MR"},{"id":"0c50bdb8-5d95-e211-a939-e4115bead28a","name":"Mauritius","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"MU"},{"id":"0d50bdb8-5d95-e211-a939-e4115bead28a","name":"Mayotte","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"0e50bdb8-5d95-e211-a939-e4115bead28a","name":"Mexico","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"MX"},{"id":"0f50bdb8-5d95-e211-a939-e4115bead28a","name":"Micronesia","disabled_on":"2018-11-05T17:00:00Z","overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"FM"},{"id":"1050bdb8-5d95-e211-a939-e4115bead28a","name":"Moldova","disabled_on":null,"overseas_region":{"name":"Eastern Europe and Central Asia","id":"cb2864aa-d19f-44b6-946c-d850a3fd7e3a"},"iso_alpha2_code":"MD"},{"id":"1150bdb8-5d95-e211-a939-e4115bead28a","name":"Monaco","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"MC"},{"id":"1250bdb8-5d95-e211-a939-e4115bead28a","name":"Mongolia","disabled_on":null,"overseas_region":{"name":"Eastern Europe and Central Asia","id":"cb2864aa-d19f-44b6-946c-d850a3fd7e3a"},"iso_alpha2_code":"MN"},{"id":"7f756b9a-5d95-e211-a939-e4115bead28a","name":"Montenegro","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"ME"},{"id":"1350bdb8-5d95-e211-a939-e4115bead28a","name":"Montserrat","disabled_on":null,"overseas_region":null,"iso_alpha2_code":"MS"},{"id":"1450bdb8-5d95-e211-a939-e4115bead28a","name":"Morocco","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"MA"},{"id":"1550bdb8-5d95-e211-a939-e4115bead28a","name":"Mozambique","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"MZ"},{"id":"1650bdb8-5d95-e211-a939-e4115bead28a","name":"Namibia","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"NA"},{"id":"1750bdb8-5d95-e211-a939-e4115bead28a","name":"Nauru","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"NR"},{"id":"1850bdb8-5d95-e211-a939-e4115bead28a","name":"Nepal","disabled_on":null,"overseas_region":{"name":"South Asia","id":"12ed13cf-4b2c-4a46-b2f9-068e397d8c84"},"iso_alpha2_code":"NP"},{"id":"1950bdb8-5d95-e211-a939-e4115bead28a","name":"Netherlands","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"NL"},{"id":"1a50bdb8-5d95-e211-a939-e4115bead28a","name":"Netherlands Antilles","disabled_on":"2018-11-05T17:00:00Z","overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":""},{"id":"1b50bdb8-5d95-e211-a939-e4115bead28a","name":"New Caledonia","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"1c50bdb8-5d95-e211-a939-e4115bead28a","name":"New Zealand","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"NZ"},{"id":"1d50bdb8-5d95-e211-a939-e4115bead28a","name":"Nicaragua","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"NI"},{"id":"4461b8be-5d95-e211-a939-e4115bead28a","name":"Niger","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"NE"},{"id":"4561b8be-5d95-e211-a939-e4115bead28a","name":"Nigeria","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"NG"},{"id":"4661b8be-5d95-e211-a939-e4115bead28a","name":"Niue","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"4761b8be-5d95-e211-a939-e4115bead28a","name":"Norfolk Island","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"4861b8be-5d95-e211-a939-e4115bead28a","name":"Northern Mariana Islands","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"4961b8be-5d95-e211-a939-e4115bead28a","name":"Norway","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"NO"},{"id":"35afd8d0-5d95-e211-a939-e4115bead28a","name":"Occupied Palestinian Territories","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"PS"},{"id":"4a61b8be-5d95-e211-a939-e4115bead28a","name":"Oman","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"OM"},{"id":"4b61b8be-5d95-e211-a939-e4115bead28a","name":"Pakistan","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"PK"},{"id":"4c61b8be-5d95-e211-a939-e4115bead28a","name":"Palau","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"PW"},{"id":"4d61b8be-5d95-e211-a939-e4115bead28a","name":"Panama","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"PA"},{"id":"4e61b8be-5d95-e211-a939-e4115bead28a","name":"Papua New Guinea","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"PG"},{"id":"4f61b8be-5d95-e211-a939-e4115bead28a","name":"Paraguay","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"PY"},{"id":"5061b8be-5d95-e211-a939-e4115bead28a","name":"Peru","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"PE"},{"id":"5161b8be-5d95-e211-a939-e4115bead28a","name":"Philippines","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"PH"},{"id":"5261b8be-5d95-e211-a939-e4115bead28a","name":"Pitcairn, Henderson, Ducie and Oeno Islands","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"5361b8be-5d95-e211-a939-e4115bead28a","name":"Poland","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"PL"},{"id":"5461b8be-5d95-e211-a939-e4115bead28a","name":"Portugal","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"PT"},{"id":"5561b8be-5d95-e211-a939-e4115bead28a","name":"Puerto Rico","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"PR"},{"id":"5661b8be-5d95-e211-a939-e4115bead28a","name":"Qatar","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"QA"},{"id":"5761b8be-5d95-e211-a939-e4115bead28a","name":"Reunion","disabled_on":"2018-11-05T17:00:00Z","overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"RE"},{"id":"5861b8be-5d95-e211-a939-e4115bead28a","name":"Romania","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"RO"},{"id":"5961b8be-5d95-e211-a939-e4115bead28a","name":"Russia","disabled_on":null,"overseas_region":{"name":"Eastern Europe and Central Asia","id":"cb2864aa-d19f-44b6-946c-d850a3fd7e3a"},"iso_alpha2_code":"RU"},{"id":"5a61b8be-5d95-e211-a939-e4115bead28a","name":"Rwanda","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"RW"},{"id":"5b61b8be-5d95-e211-a939-e4115bead28a","name":"Samoa","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"WS"},{"id":"5c61b8be-5d95-e211-a939-e4115bead28a","name":"San Marino","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"SM"},{"id":"5d61b8be-5d95-e211-a939-e4115bead28a","name":"Sao Tome and Principe","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"ST"},{"id":"1a0be5c4-5d95-e211-a939-e4115bead28a","name":"Saudi Arabia","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"SA"},{"id":"1b0be5c4-5d95-e211-a939-e4115bead28a","name":"Senegal","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"SN"},{"id":"1c0be5c4-5d95-e211-a939-e4115bead28a","name":"Serbia","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"RS"},{"id":"1d0be5c4-5d95-e211-a939-e4115bead28a","name":"Seychelles","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"SC"},{"id":"1e0be5c4-5d95-e211-a939-e4115bead28a","name":"Sierra Leone","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"SL"},{"id":"1f0be5c4-5d95-e211-a939-e4115bead28a","name":"Singapore","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"SG"},{"id":"200be5c4-5d95-e211-a939-e4115bead28a","name":"Slovakia","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"SK"},{"id":"210be5c4-5d95-e211-a939-e4115bead28a","name":"Slovenia","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"SI"},{"id":"220be5c4-5d95-e211-a939-e4115bead28a","name":"Solomon Islands","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"SB"},{"id":"230be5c4-5d95-e211-a939-e4115bead28a","name":"Somalia","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"SO"},{"id":"240be5c4-5d95-e211-a939-e4115bead28a","name":"South Africa","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"ZA"},{"id":"250be5c4-5d95-e211-a939-e4115bead28a","name":"South Georgia and South Sandwich Islands","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"86756b9a-5d95-e211-a939-e4115bead28a","name":"Spain","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"ES"},{"id":"260be5c4-5d95-e211-a939-e4115bead28a","name":"Sri Lanka","disabled_on":null,"overseas_region":{"name":"South Asia","id":"12ed13cf-4b2c-4a46-b2f9-068e397d8c84"},"iso_alpha2_code":"LK"},{"id":"7b756b9a-5d95-e211-a939-e4115bead28a","name":"St Barthelemy","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"270be5c4-5d95-e211-a939-e4115bead28a","name":"St Helena","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"280be5c4-5d95-e211-a939-e4115bead28a","name":"St Kitts and Nevis","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"KN"},{"id":"290be5c4-5d95-e211-a939-e4115bead28a","name":"St Lucia","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"LC"},{"id":"7c756b9a-5d95-e211-a939-e4115bead28a","name":"St Martin","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"MF"},{"id":"2a0be5c4-5d95-e211-a939-e4115bead28a","name":"St Pierre and Miquelon","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"2b0be5c4-5d95-e211-a939-e4115bead28a","name":"St Vincent","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"VC"},{"id":"2c0be5c4-5d95-e211-a939-e4115bead28a","name":"Sudan","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"SD"},{"id":"7e756b9a-5d95-e211-a939-e4115bead28a","name":"Sudan, South","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"SS"},{"id":"2d0be5c4-5d95-e211-a939-e4115bead28a","name":"Surinam","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"SR"},{"id":"2e0be5c4-5d95-e211-a939-e4115bead28a","name":"Svalbard and Jan Mayen Islands","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"2f0be5c4-5d95-e211-a939-e4115bead28a","name":"Swaziland","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"SZ"},{"id":"300be5c4-5d95-e211-a939-e4115bead28a","name":"Sweden","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"SE"},{"id":"310be5c4-5d95-e211-a939-e4115bead28a","name":"Switzerland","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"CH"},{"id":"a46ee1ca-5d95-e211-a939-e4115bead28a","name":"Syria","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"SY"},{"id":"a56ee1ca-5d95-e211-a939-e4115bead28a","name":"Taiwan","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"TW"},{"id":"a66ee1ca-5d95-e211-a939-e4115bead28a","name":"Tajikistan","disabled_on":null,"overseas_region":{"name":"Eastern Europe and Central Asia","id":"cb2864aa-d19f-44b6-946c-d850a3fd7e3a"},"iso_alpha2_code":"TJ"},{"id":"a76ee1ca-5d95-e211-a939-e4115bead28a","name":"Tanzania","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"TZ"},{"id":"76756b9a-5d95-e211-a939-e4115bead28a","name":"TEST","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"a86ee1ca-5d95-e211-a939-e4115bead28a","name":"Thailand","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"TH"},{"id":"a96ee1ca-5d95-e211-a939-e4115bead28a","name":"Togo","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"TG"},{"id":"aa6ee1ca-5d95-e211-a939-e4115bead28a","name":"Tokelau","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"ab6ee1ca-5d95-e211-a939-e4115bead28a","name":"Tonga","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"TO"},{"id":"ac6ee1ca-5d95-e211-a939-e4115bead28a","name":"Trinidad and Tobago","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"TT"},{"id":"ad6ee1ca-5d95-e211-a939-e4115bead28a","name":"Tunisia","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"TN"},{"id":"ae6ee1ca-5d95-e211-a939-e4115bead28a","name":"Turkey","disabled_on":null,"overseas_region":{"name":"Eastern Europe and Central Asia","id":"cb2864aa-d19f-44b6-946c-d850a3fd7e3a"},"iso_alpha2_code":"TR"},{"id":"af6ee1ca-5d95-e211-a939-e4115bead28a","name":"Turkmenistan","disabled_on":null,"overseas_region":{"name":"Eastern Europe and Central Asia","id":"cb2864aa-d19f-44b6-946c-d850a3fd7e3a"},"iso_alpha2_code":"TM"},{"id":"b06ee1ca-5d95-e211-a939-e4115bead28a","name":"Turks and Caicos Islands","disabled_on":null,"overseas_region":null,"iso_alpha2_code":"TC"},{"id":"b16ee1ca-5d95-e211-a939-e4115bead28a","name":"Tuvalu","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"TV"},{"id":"b26ee1ca-5d95-e211-a939-e4115bead28a","name":"Uganda","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"UG"},{"id":"b36ee1ca-5d95-e211-a939-e4115bead28a","name":"Ukraine","disabled_on":null,"overseas_region":{"name":"Eastern Europe and Central Asia","id":"cb2864aa-d19f-44b6-946c-d850a3fd7e3a"},"iso_alpha2_code":"UA"},{"id":"b46ee1ca-5d95-e211-a939-e4115bead28a","name":"United Arab Emirates","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"AE"},{"id":"80756b9a-5d95-e211-a939-e4115bead28a","name":"United Kingdom","disabled_on":null,"overseas_region":null,"iso_alpha2_code":"GB"},{"id":"81756b9a-5d95-e211-a939-e4115bead28a","name":"United States","disabled_on":null,"overseas_region":{"name":"North America","id":"fdfbbc8d-0e8a-479a-b10f-4979d582ff87"},"iso_alpha2_code":"US"},{"id":"b56ee1ca-5d95-e211-a939-e4115bead28a","name":"United States Minor Outlying Islands","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"b66ee1ca-5d95-e211-a939-e4115bead28a","name":"Uruguay","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"UY"},{"id":"b76ee1ca-5d95-e211-a939-e4115bead28a","name":"Uzbekistan","disabled_on":null,"overseas_region":{"name":"Eastern Europe and Central Asia","id":"cb2864aa-d19f-44b6-946c-d850a3fd7e3a"},"iso_alpha2_code":"UZ"},{"id":"b86ee1ca-5d95-e211-a939-e4115bead28a","name":"Vanuatu","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"VU"},{"id":"eef682ac-5d95-e211-a939-e4115bead28a","name":"Vatican City","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"VA"},{"id":"b96ee1ca-5d95-e211-a939-e4115bead28a","name":"Venezuela","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"VE"},{"id":"ba6ee1ca-5d95-e211-a939-e4115bead28a","name":"Vietnam","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"VN"},{"id":"bb6ee1ca-5d95-e211-a939-e4115bead28a","name":"Virgin Islands (US)","disabled_on":null,"overseas_region":{"name":"North America","id":"fdfbbc8d-0e8a-479a-b10f-4979d582ff87"},"iso_alpha2_code":"VI"},{"id":"34afd8d0-5d95-e211-a939-e4115bead28a","name":"Wallis and Futuna","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"36afd8d0-5d95-e211-a939-e4115bead28a","name":"Western Sahara","disabled_on":"2018-11-05T17:00:00Z","overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":""},{"id":"37afd8d0-5d95-e211-a939-e4115bead28a","name":"Yemen","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"YE"},{"id":"38afd8d0-5d95-e211-a939-e4115bead28a","name":"Zambia","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"ZM"},{"id":"39afd8d0-5d95-e211-a939-e4115bead28a","name":"Zimbabwe","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"ZW"}]'),business_potential_namespaceObject=JSON.parse('[{"id":"0e6f1d69-e9c3-4460-a74b-3881930fe3e9","name":"The company is an exporter with High Export Potential","disabled_on":null},{"id":"e4d74957-60a4-4eab-a17b-d4c7b792ad25","name":"The company is a Medium Sized Business","disabled_on":null},{"id":"97f5e000-37a6-4452-b2be-25ccc94e5bd3","name":"The company is not an exporter with High Export Potential or a Medium Sized Business","disabled_on":null}]');var CONTACT={id:"some-random-contact-id",companyId:"008ba003-b528-4e79-b209-49fcfcceb371",companyName:"Little Britain",firstName:"Andy",lastName:"Pipkin",jobTitle:"Unemployed",primary:!1,telephoneCountrycode:"123",telephoneNumber:"456789",email:"andy.pipkin@littlebritain.co.uk",acceptsDitEmailMarketing:!0,addressSameAsCompany:!0,address1:"Foo",address2:"Bar",addressTown:"Town",addressCounty:"County",addressPostcode:null,addressCountry:"87756b9a-5d95-e211-a939-e4115bead28a",notes:"Notes"};const _stories_tasks={"Resource example":function Resource_example(payload,id){return new Promise((function(resolve,reject){return id.match("reject")?setTimeout(reject,1e3,"Could not load resource"):setTimeout(resolve,1e3,{example:"This is a dummy resource representation example",id,payload})}))},TASK_GET_REMINDER_SUMMARY:function TASK_GET_REMINDER_SUMMARY(){return Promise.resolve("???")},Countries:function Countries(){return country_namespaceObject},BusinessPotential:function BusinessPotential(){return business_potential_namespaceObject},Contact:function Contact(){return new Promise((function(resolve,reject){Math.random()>.5?setTimeout(reject,2e3,"You broke the internet"):setTimeout(resolve,2e3,CONTACT)}))},Company:function Company(payload,id){return null!=payload&&payload.reject?new Promise((function(resolve,reject){return setTimeout(reject,2e3,"World went down")})):new Promise((function(resolve){return setTimeout((function(){return resolve({id,referenceCode:"",name:"Zboncak Group|271eb29e-425b-4cd8-b386-3208c3a5f978",tradingName:"",tradingNames:[],ukBased:!0,companyNumber:"BR100000",vatNumber:"",dunsNumber:null,createdOn:"2019-01-09T09:45:06.080938Z",modifiedOn:"2019-01-09T09:45:06.080969Z",archived:!1,archivedDocumentsUrlPath:"",archivedOn:null,archivedReason:null,archivedBy:null,description:"Doloribus accusamus qui non nam et earum inventore.",transferredBy:null,transferredOn:null,transferredTo:null,transferReason:"",website:"http://jamaal.biz",businessType:{name:"UK branch of foreign company (BR)",id:"b0730fc6-fcce-4071-bdab-ba8de4f4fc98"},oneListGroupTier:null,contacts:[{id:"0e75d636-1d24-416a-aaf0-3fb220d594ce",title:null,firstName:"Bob",lastName:"lawson",name:"Bob lawson",jobTitle:"Magician",company:{name:"Zboncak Group|271eb29e-425b-4cd8-b386-3208c3a5f978",id:"4cd4128b-1bad-4f1e-9146-5d4678c6a018"},adviser:{name:"DBT Staff",firstName:"DBT",lastName:"Staff",id:"7d19d407-9aec-4d06-b190-d3f404627f21"},primary:!0,telephoneCountrycode:"222",telephoneNumber:"3453454",email:"contact@bob.com",addressSameAsCompany:!0,address1:null,address2:null,addressTown:null,addressCounty:null,addressCountry:null,addressPostcode:null,notes:null,acceptsDitEmailMarketing:!1,archived:!1,archivedDocumentsUrlPath:"",archivedOn:null,archivedReason:null,archivedBy:null,createdOn:"2019-02-04T15:59:14.267412Z",modifiedOn:"2019-02-05T13:17:23.112153Z"}],employeeRange:{name:"50 to 249",id:"3fafd8d0-5d95-e211-a939-e4115bead28a"},numberOfEmployees:null,isNumberOfEmployeesEstimated:null,exportToCountries:[],futureInterestCountries:[],headquarterType:null,oneListGroupGlobalAccountManager:null,globalHeadquarters:null,sector:{name:"Biotechnology and Pharmaceuticals : Bio and Pharma Marketing and Sales : Bio and Pharma Retail",id:"70f7ffde-5f95-e211-a939-e4115bead28a"},turnoverRange:{name:"£1.34 to £6.7M",id:"784cd12a-6095-e211-a939-e4115bead28a"},turnover:null,isTurnoverEstimated:null,ukRegion:{name:"London",id:common_constants.UK_REGIONS.LONDON},exportExperienceCategory:null,address:{line1:"3 Priory Court",line2:"Kingshill Road",town:"Dursley",county:"Gloucestershire",postcode:"GL11 4DH",country:{name:"United Kingdom",id:"80756b9a-5d95-e211-a939-e4115bead28a"}},registeredAddress:{line1:"3 Priory Court",line2:"Kingshill Road",town:"Dursley",county:"Gloucestershire",postcode:"GL11 4DH",country:{name:"United Kingdom",id:"80756b9a-5d95-e211-a939-e4115bead28a"}}})}),2e3)}))}},Form_stories_tasks={"Load initial values":function Load_initial_values(payload){return new Promise((function(resolve,reject){return"reject"===payload?setTimeout(reject,2e3,"You broke the internet!"):setTimeout(resolve,2e3,{foo:"Blah blah",bar:"b"})}))},"Submit Form example":function Submit_Form_example(formValues){return new Promise((function(resolve,reject){return"yes"===formValues.reject?setTimeout(reject,2e3,"You broke the internet!"):setTimeout(resolve,2e3,{task:"result"})}))},"Load options":function Load_options(payload,id){return new Promise((function(resolve,reject){return id.includes("reject")?setTimeout(reject,2e3,"You broke the internet!"):setTimeout(resolve,5e3,payload)}))}};function preview_typeof(o){return preview_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},preview_typeof(o)}var preview_templateObject;function preview_ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function preview_objectSpread(e){for(var r=1;r1&&void 0!==arguments[1]?arguments[1]:(0,esm_history.zR)(),_createReduxHistoryCo=(0,es6.a1)({history}),createReduxHistory=_createReduxHistoryCo.createReduxHistory,routerMiddleware=_createReduxHistoryCo.routerMiddleware,routerReducer=_createReduxHistoryCo.routerReducer,sagaMiddleware=(0,redux_saga_core_npm_proxy_esm.Ay)(),store=(0,redux_toolkit_modern.U1)({devTools:!1,middleware:function middleware(){return[sagaMiddleware,routerMiddleware]},preloadedState,reducer:createProvider_objectSpread(createProvider_objectSpread(createProvider_objectSpread({},lodash_default().mapValues(preloadedState,(function(){return function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:null}}))),reducers),{},{router:routerReducer})});sagaMiddleware.run(function(tasks){return root_saga_regeneratorRuntime().mark((function rootSaga(){return root_saga_regeneratorRuntime().wrap((function rootSaga$(_context){for(;;)switch(_context.prev=_context.next){case 0:return _context.next=2,(0,redux_saga_effects_npm_proxy_esm.Zy)(saga(tasks));case 2:return _context.next=4,(0,redux_saga_effects_npm_proxy_esm.Zy)(_callee);case 4:return _context.next=6,(0,redux_saga_effects_npm_proxy_esm.Zy)(redirect);case 6:return _context.next=8,(0,redux_saga_effects_npm_proxy_esm.Zy)(readFlashMesages);case 8:return _context.next=10,(0,redux_saga_effects_npm_proxy_esm.Zy)(writeFlashMessages);case 10:return _context.next=12,(0,redux_saga_effects_npm_proxy_esm.Zy)(writeAnnouncementLinkToLocalStorage);case 12:return _context.next=14,(0,redux_saga_effects_npm_proxy_esm.Zy)(readAnnouncementLinkFromLocalStorage);case 14:return _context.next=16,(0,redux_saga_effects_npm_proxy_esm.Zy)(readMyInvestmentsFromSession);case 16:return _context.next=18,(0,redux_saga_effects_npm_proxy_esm.Zy)(writeMyInvestmentsToSession);case 18:return _context.next=20,(0,redux_saga_effects_npm_proxy_esm.Zy)(cookiePreferenceChangeSaga);case 20:case"end":return _context.stop()}}),rootSaga)}))}(tasks));var reduxHistory=createReduxHistory(store);return function(_ref2){var children=_ref2.children;return react.createElement(react_redux.Provider,{store},react.createElement(ConnectedReactRouter,{navigator:reduxHistory},children))}}(preview_objectSpread(preview_objectSpread(preview_objectSpread(preview_objectSpread({},tasks),_stories_tasks),Typeahead_tasks),Form_stories_tasks)),decorators=[function(Story){return react.createElement(react.Fragment,null,react.createElement(GlobalStyle,null),react.createElement(Provider,null,react.createElement(Story,null)))}]},"./src/apps/companies/apps/edit-company/client/constants.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict"},"./src/apps/companies/apps/referrals/details/client/state.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{ID:()=>ID});var ID="referralDetails"},"./src/apps/companies/constants.js":(module,__unused_webpack_exports,__webpack_require__)=>{__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.object.values.js");var QUERY_FIELDS_MAP={leadIta:"one_list_group_global_account_manager",archived:"archived",name:"name",sectorDescends:"sector_descends",subSectorDescends:"sub_sector_descends",country:"country",ukRegion:"uk_region",headquarterType:"headquarter_type",exportingTo:"export_to_countries",interestedIn:"future_interest_countries",lastInteractionDate:"interaction_between",ukPostcode:"uk_postcode",usState:"us_state",canadianProvince:"canadian_province",area:"area"},GLOBAL_NAV_ITEM={path:"/companies",headerKey:"datahub-companies",permissions:["company.view_company"],key:"datahub-crm",order:1},LOCAL_NAV=[{path:"overview",label:"Overview",permissions:["company.view_contact"]},{path:"activity",label:"Activity",search:"",permissions:["interaction.view_all_interaction"]},{path:"business-details",label:"Business details"},{path:"contacts",label:"Contacts",search:"?archived%5B0%5D=false&sortby=modified_on%3Adesc&page=1",permissions:["company.view_contact"],ariaDescription:"Company contacts"},{path:"account-management",label:"Account management",ariaDescription:"Account management"},{path:"investments",label:"Investment",search:"/projects?page=1&sortby=created_on%3Adesc",permissions:["investment.view_all_investmentproject","investment.view_associated_investmentproject"],ariaDescription:"Company investments"},{path:"exports",label:"Export",permissions:["company.view_companyexportcountry"]},{path:"orders",label:"Orders",permissions:["order.view_order"],ariaDescription:"Company orders"}],APP_PERMISSIONS=(0,__webpack_require__("./node_modules/lodash/lodash.js").concat)(LOCAL_NAV,GLOBAL_NAV_ITEM),QUERY_FIELDS=Object.values(QUERY_FIELDS_MAP);module.exports={GLOBAL_NAV_ITEM,LOCAL_NAV,APP_PERMISSIONS,QUERY_FIELDS,QUERY_FIELDS_MAP,NONE_TEXT:"None",NOT_SET_TEXT:"Not set",NOT_AVAILABLE_TEXT:"Not available"}},"./src/apps/transformers.js":(module,__unused_webpack_exports,__webpack_require__)=>{__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js");var _require=__webpack_require__("./node_modules/lodash/lodash.js"),filter=_require.filter,upperFirst=_require.upperFirst,_require2=__webpack_require__("./src/client/utils/date.js"),format=_require2.format,isDateValid=_require2.isDateValid,_require3=__webpack_require__("./src/common/constants.js"),OPTION_NO=_require3.OPTION_NO,OPTION_YES=_require3.OPTION_YES,groupExportCountries=__webpack_require__("./src/lib/group-export-countries.js");function transformObjectToOption(_ref){return{value:_ref.id,label:_ref.name}}var transformOptionToValue=function transformOptionToValue(option){return option&&option.value?option.value:null};module.exports={transformObjectToOption,transformExportCountriesToGroupStatus:function transformExportCountriesToGroupStatus(countries){return groupExportCountries(countries)},transformContactToOption:function transformContactToOption(_ref2){var id=_ref2.id,first_name=_ref2.first_name,last_name=_ref2.last_name,job_title=_ref2.job_title;return{value:id,label:upperFirst(filter(["".concat(first_name," ").concat(last_name),job_title]).join(", "))}},transformCountryToOptionWithIsoCode:function transformCountryToOptionWithIsoCode(_ref3){return{key:_ref3.id,label:_ref3.name,value:_ref3.iso_alpha2_code}},transformDateObjectToDateString:function transformDateObjectToDateString(key){if(!key)throw Error("date object key is required to transform date");return function transformDateObjectToStringWithKey(){var props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},dateString=["year","month","day"].map((function(x){return props["".concat(key,"_").concat(x)]})).join("-");return"--"===dateString?null:dateString}},transformDateStringToDateObject:function transformDateStringToDateObject(dateString){var isValidDate=dateString&&isDateValid(dateString);return{year:isValidDate?format(dateString,"yyyy"):"",month:isValidDate?format(dateString,"MM"):"",day:isValidDate?format(dateString,"dd"):""}},transformOptionToValue,transformArrayOfOptionsToValues:function transformArrayOfOptionsToValues(options){return options&&options.length?options.map(transformOptionToValue):[]},transformToYesNo:function transformToYesNo(value){return value?OPTION_YES:OPTION_NO},transformToID:function transformToID(value){return value?Array.isArray(value)?value.map((function(optionFromArrayOfOptions){return optionFromArrayOfOptions.id})):value.id:value},transformObjectToTypeahead:function transformObjectToTypeahead(value){return value?Array.isArray(value)?value.map(transformObjectToOption):transformObjectToOption(value):value}}},"./src/client/actions.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{$ah:()=>MY_INVESTMENTS__ADD_TO_STATE,$ft:()=>COMPANIES__METADATA_LOADED,$rh:()=>FLASH_MESSAGE__WRITE_TO_SESSION,A3K:()=>INVESTMENT_OPPORTUNITY__REQUIREMENTS_METADATA_LOADED,AIi:()=>INTERACTIONS_SELECTED_ADVISERS,AJt:()=>EVENTS__ATTENDEE_METADATA_LOADED,ATq:()=>INVESTMENTS__SET_PROJECTS_METADATA,Amb:()=>REMINDERS__EXPORTS_NO_RECENT_INTERACTION_REMINDERS_LOADED,BEj:()=>INVESTMENT__COMPANY_SEARCH_TERM,BRO:()=>INVESTMENTS__PROJECTS_SELECTED_ADVISERS,BUu:()=>ORDERS__METADATA_LOADED,CuW:()=>MY_INVESTMENTS__SAVE_TO_SESSION,EGH:()=>TASK__START,EJT:()=>CONTACT_FORM__SUBMIT,EPX:()=>INVESTMENT_OPPORTUNITY_DETAILS__LOADED,Edz:()=>LATEST_ANNOUNCEMENT__WRITE_TO_LOCALSTORAGE,F0b:()=>REMINDERS__EXPORTS_NEW_INTERACTION_REMINDERS_LOADED,F0x:()=>INTERACTION__ESS_DETAILS_LOADED,F8v:()=>LATEST_ANNOUNCEMENT__UPDATE_STATE,FN9:()=>OVERVIEW__EXPORT_WINS_SUMMARY,F__:()=>COMPANIES__OVERVIEW_RECENT_ACTIVITY_LOADED,Fd_:()=>MY_INVESTMENTS__PAGINATION_CLICK,Fxn:()=>INVESTMENTS__PROJECTS_LOADED,G2D:()=>FORM__GO_TO_STEP,GAr:()=>TASK__ERROR,GD3:()=>MY_INVESTMENTS__GET_FROM_SESSION,GqW:()=>TYPEAHEAD__INPUT,Hfi:()=>COMPANY_LISTS__COMPANIES_LOADED,Hks:()=>REMINDER_SUMMARY__LOADED,HmC:()=>TOGGLE_SECTION__TOGGLE,I0G:()=>FORM__STEP_DEREGISTER,IDk:()=>FORM__LOADED,ILj:()=>INVESTMENTS__OPPORTUNITIES_LOADED,Ijb:()=>FLASH_MESSAGE__ADD_TO_STATE,Im2:()=>REFERRAL_LIST__LOADED,IpB:()=>COMPANIES__OVERVIEW_UPCOMING_ACTIVITY_LOADED,J1h:()=>INVESTMENT_OPPORTUNITY__UPDATED,J4U:()=>FORM__FIELD_REGISTER,J6l:()=>DATA_HUB_FEED__FETCHED,JPR:()=>EVENTS__LOADED,JlV:()=>MY_INVESTMENTS__LAND_DATE_CHANGE,KQv:()=>TASK__CANCEL,KZ$:()=>SEND_REFERRAL_FORM__SUBMIT,Kk0:()=>EVENTS__DETAILS_LOADED,KpV:()=>INVESTMENTS__EYB_LEAD_FILTER_OPTIONS_LOADED,L_p:()=>MY_INVESTMENTS__STAGE_CHANGE,LzF:()=>CONTACTS__METADATA_LOADED,MFr:()=>EXPORTS_HISTORY__LOADED,MQe:()=>TYPEAHEAD__OPTION_MOUSE_DOWN,Mdm:()=>REMINDERS__TASK_COMPLETED_REMINDERS_GOT_NEXT,N84:()=>MY_INVESTMENTS__SORT_CHANGE,NT6:()=>REMINDERS__TASK_COMPLETED_REMINDERS_DELETED,OCZ:()=>COMPANY_LISTS__ORDER,ONB:()=>PAGINATED_RESOURCE__ON_SUCCESS,OlO:()=>FORM__FIELD_TOUCHED,PDO:()=>COMPANY_LISTS__COMPANY_IN_LOADED,PMA:()=>ONE_LIST_DETAILS_LOADED,PUg:()=>INTERACTIONS__LOADED,Paf:()=>INVESTMENTS__EYB_LEADS_LOADED,PqX:()=>FLASH_MESSAGE__CLEAR_FROM_STATE,Pw7:()=>ORDERS__QUOTE_PREVIEW_LOADED,R2h:()=>EXPORT_WIN_RESENT__SUCCESS,R5F:()=>ROUTED_INPUT__CHANGE,RHl:()=>REMINDERS__ESTIMATED_LAND_DATE_REMINDER_GOT_NEXT,Rm3:()=>INVESTMENT_OPPORTUNITY__EDIT_REQUIREMENTS,RnU:()=>TASK__DISMISS_ERROR,SJe:()=>MY_TASKS_LOADED,SJf:()=>REMINDERS__ESTIMATED_LAND_DATE_REMINDER_DELETED,SKY:()=>COMPANY_LOADED,STT:()=>TYPEAHEAD__OPTIONS_LOADED,T$O:()=>MY_TASKS_CHECK_COMPLETE,TBR:()=>INVESTMENT_OPPORTUNITY__EDIT_DETAILS,TdV:()=>TYPEAHEAD__BLUR,TeI:()=>COPY_TASK_DETAILS_LOADED,Twh:()=>COMPANY_LISTS__LISTS_LOADED,U8l:()=>REMINDERS__TASK_AMENDED_BY_OTHERS_REMINDERS_DELETED,UCk:()=>REMINDERS__TASK_ASSIGNED_TO_ME_FROM_OTHERS_REMINDERS_LOADED,UJl:()=>COMPANY_LISTS__SELECT,V11:()=>INVESTMENT__COMPANY_INVESTMENT_COUNT,V8_:()=>INVESTMENTS__OPPORTUNITIES_SELECT_PAGE,VAC:()=>INVESTMENT__SEARCH_COMPANY_LIST_LOADED,VRR:()=>COMPANIES__GLOBAL_ULTIMATE_LOADED,Vdv:()=>PAGINATED_RESOURCE__GO_TO_PAGE,Vmx:()=>REFERRAL_DETAILS,WCI:()=>TYPEAHEAD__MENU_CLOSE,WFj:()=>EVENTS__AVENTRI_DETAILS_LOADED,Wd_:()=>FORM__FIELD_DEREGISTER,WnY:()=>TYPEAHEAD__OPTION_REMOVE,WvE:()=>COMPANY_LISTS__FILTER,XYJ:()=>INVESTMENTS_PROFILES__FILTER_OPTIONS_LOADED,XgG:()=>CONTACTS__LOADED,XiH:()=>ORDERS__LOADED,XpH:()=>FORM__STEP_REGISTER,Xpy:()=>INVESTMENT_OPPORTUNITY__REQUIREMENTS_CHANGE,YJr:()=>INTERACTIONS_SELECTED_COMPANIES,YRg:()=>REMINDERS__TASK_OVERDUE_REMINDERS_LOADED,ZYf:()=>FORM__RESOLVED,_jk:()=>ROUTED_INPUT__RESET,_kX:()=>EXPORT__PIPELINE_LIST_LOADED,a3Z:()=>COMPANY_ACTIVITIES_SELECTED_ADVISERS,aQO:()=>TYPEAHEAD__MENU_OPEN,aRA:()=>MY_INVESTMENTS__CHECK_COMPLETE,a_f:()=>REMINDERS__TASK_ASSIGNED_TO_ME_FROM_OTHERS_REMINDERS_DELETED,aud:()=>TYPEAHEAD__OPTIONS_CLEAR,b2l:()=>TYPEAHEAD__INITIALISE,b8r:()=>REMINDERS__TASK_AMENDED_BY_OTHERS_REMINDERS_GOT_NEXT,bVo:()=>ANALYTICS__PUSH,bVz:()=>INVESTMENT__PROJECT_LOADED,bWZ:()=>COMPANIES__SELECTED_ADVISERS,cEs:()=>OVERVIEW__COMPANY_INVESTMENT_WON_COUNT,dxX:()=>REMINDERS__TASK_COMPLETED_REMINDERS_LOADED,eEr:()=>FORM__ERRORED,eFJ:()=>EVENTS__SEARCH_ATTENDEE_LIST_LOADED,eod:()=>REMINDERS__TASK_AMENDED_BY_OTHERS_REMINDERS_LOADED,ev2:()=>REMINDERS__NO_RECENT_INTERACTION_REMINDERS_LOADED,eyX:()=>TAB_NAV__SELECT,fUJ:()=>PROPOSITION_COMPLETE,fW0:()=>REMINDERS__TASK_OVERDUE_REMINDERS_GOT_NEXT,fZX:()=>COMPANY_ACTIVITIES_SELECTED_TEAMS,gEw:()=>OUTSTANDING_PROPOSITIONS__LOADED,g_U:()=>REMINDERS__TASK_OVERDUE_REMINDERS_DELETED,gaL:()=>FORM__BACK,h7f:()=>TASK_DETAILS_LOADED,heH:()=>COMPANY_ACTIVITIES__METADATA_LOADED,i5T:()=>FORM__FIELD_SET_VALUE,ilQ:()=>REFERRAL_LIST__FILTER_CHANGE,j2I:()=>INVESTMENTS__PROFILES_LOADED,j2f:()=>INVESTMENT_OPPORTUNITY__CANCEL_EDIT,jRk:()=>REMINDERS__TASK_ASSIGNED_TO_ME_FROM_OTHERS_REMINDERS_GOT_NEXT,jUI:()=>COMPANIES__LOADED,krh:()=>LATEST_ANNOUNCEMENT__READ_FROM_LOCALSTORAGE,lZg:()=>REMINDERS__NO_RECENT_INTERACTION_REMINDER_DELETED,mDK:()=>REMINDERS__OUTSTANDING_PROPOSITIONS_LOADED,mKW:()=>TAB_NAV__FOCUS,mQv:()=>COMPANY_ACTIVITIES_SELECTED_COMPANIES,n7E:()=>FORM__FIELDS__RESET,nAW:()=>COMPANIES__SELECTED_LEAD_ITA_OR_GLOBAL_ACCOUNT_MANAGER,n_2:()=>TASK__CLEAR,nrO:()=>INTERACTIONS__METADATA_LOADED,ntj:()=>HARD_REDIRECT,nzr:()=>CONTACTS__ACTIVITIES_LOADED,oO0:()=>REMINDERS__DUE_DATE_APPROACHING_REMINDERS_LOADED,oWe:()=>FORM__FORWARD,p8B:()=>TASK__PROGRESS,pJE:()=>COMPANY_ACTIVITIES__LOADED,qLf:()=>REMINDERS__EXPORTS_NEW_INTERACTION_REMINDERS_GOT_NEXT,rNT:()=>MY_INVESTMENTS__SHOW_DETAILS_CHANGE,rTD:()=>DNB__CHECK_PENDING_REQUEST,rpz:()=>INTERACTIONS_SELECTED_TEAMS,s7n:()=>INTERACTION__LOADED,sT5:()=>REMINDERS__NO_RECENT_INTERACTION_REMINDER_GOT_NEXT,spP:()=>REMINDERS__DUE_DATE_APPROACHING_REMINDERS_DELETED,szG:()=>REMINDERS__EXPORTS_NO_RECENT_INTERACTION_REMINDERS_DELETED,tgm:()=>TYPEAHEAD__SET_ACTIVE_OPTION,ttR:()=>MY_INVESTMENTS__STATUS_CHANGE,vMs:()=>REMINDERS__ESTIMATED_LAND_DATE_REMINDERS_LOADED,vdS:()=>REMINDERS__EXPORTS_NEW_INTERACTION_REMINDERS_DELETED,vl8:()=>FLASH_MESSAGE__GET_FROM_SESSION,vlr:()=>EVENTS__METADATA_LOADED,whB:()=>OBJECTIVE_LOADED,wwH:()=>EVENTS__SELECTED_ORGANISER,xOm:()=>FIELD_ADD_ANOTHER__REMOVE,y3g:()=>TYPEAHEAD__OPTION_TOGGLE,yKw:()=>EVENTS__AVENTRI_REGISTRATION_STATUS_ATTENDEES_LOADED,yMX:()=>FIELD_ADD_ANOTHER__ADD,yQE:()=>MY_INVESTMENTS__LIST_LOADED,zT4:()=>REMINDERS__EXPORTS_NO_RECENT_INTERACTION_REMINDERS_GOT_NEXT,zTo:()=>EXPORTS_HISTORY__SELECT_PAGE,z_g:()=>ROUTED_INPUT__SELECT,zdr:()=>EXPORT_LOADED,zp:()=>REMINDERS__DUE_DATE_APPROACHING_REMINDERS_GOT_NEXT,zsc:()=>DNB_FAMILY_TREE_LOADED,zuV:()=>FORM__VALIDATE});var INTERACTIONS__LOADED="INTERACTIONS__LOADED",INTERACTIONS__METADATA_LOADED="INTERACTIONS__METADATA_LOADED",INTERACTIONS_SELECTED_ADVISERS="INTERACTIONS_SELECTED_ADVISERS",INTERACTIONS_SELECTED_COMPANIES="INTERACTIONS_SELECTED_COMPANIES",INTERACTIONS_SELECTED_TEAMS="INTERACTIONS_SELECTED_TEAMS",COMPANIES__LOADED="COMPANIES__LOADED",COMPANIES__METADATA_LOADED="COMPANIES__METADATA_LOADED",COMPANIES__SELECTED_LEAD_ITA_OR_GLOBAL_ACCOUNT_MANAGER="COMPANIES__SELECTED_LEAD_ITA_OR_GLOBAL_ACCOUNT_MANAGER",COMPANIES__SELECTED_ADVISERS="COMPANIES__SELECTED_ADVISERS",COMPANY_LISTS__LISTS_LOADED="COMPANY_LISTS__LISTS_LOADED",COMPANY_LISTS__SELECT="COMPANY_LISTS__SELECT",COMPANY_LISTS__COMPANIES_LOADED="COMPANY_LISTS__COMPANIES_LOADED",COMPANY_LISTS__FILTER="COMPANY_LISTS__FILTER",COMPANY_LISTS__ORDER="COMPANY_LISTS__ORDER",CONTACTS__LOADED="CONTACTS__LOADED",CONTACTS__METADATA_LOADED="CONTACTS__METADATA_LOADED",CONTACTS__ACTIVITIES_LOADED="CONTACTS__ACTIVITIES_LOADED",ORDERS__LOADED="ORDERS__LOADED",ORDERS__METADATA_LOADED="ORDERS__METADATA_LOADED",EVENTS__LOADED="EVENTS__LOADED",EVENTS__METADATA_LOADED="EVENTS__METADATA_LOADED",EVENTS__SELECTED_ORGANISER="EVENTS__SELECTED_ORGANISER",EVENTS__DETAILS_LOADED="EVENTS__DETAILS_LOADED",EVENTS__AVENTRI_DETAILS_LOADED="EVENTS__AVENTRI_DETAILS_LOADED",EVENTS__AVENTRI_REGISTRATION_STATUS_ATTENDEES_LOADED="EVENTS__AVENTRI_REGISTRATION_STATUS_ATTENDEES_LOADED",EVENTS__SEARCH_ATTENDEE_LIST_LOADED="EVENTS__SEARCH_ATTENDEE_LIST_LOADED",EVENTS__ATTENDEE_METADATA_LOADED="EVENTS__ATTENDEE_METADATA_LOADED",INTERACTION__ESS_DETAILS_LOADED="INTERACTION__ESS_DETAILS_LOADED",REMINDERS__ESTIMATED_LAND_DATE_REMINDERS_LOADED="REMINDERS__ESTIMATED_LAND_DATE_REMINDERS_LOADED",REMINDERS__ESTIMATED_LAND_DATE_REMINDER_DELETED="REMINDERS__ESTIMATED_LAND_DATE_REMINDER_DELETED",REMINDERS__ESTIMATED_LAND_DATE_REMINDER_GOT_NEXT="REMINDERS__ESTIMATED_LAND_DATE_REMINDER_GOT_NEXT",REMINDERS__NO_RECENT_INTERACTION_REMINDERS_LOADED="REMINDERS__NO_RECENT_INTERACTION_REMINDERS_LOADED",REMINDERS__NO_RECENT_INTERACTION_REMINDER_DELETED="REMINDERS__NO_RECENT_INTERACTION_REMINDER_DELETED",REMINDERS__NO_RECENT_INTERACTION_REMINDER_GOT_NEXT="REMINDERS__NO_RECENT_INTERACTION_REMINDER_GOT_NEXT",REMINDERS__OUTSTANDING_PROPOSITIONS_LOADED="REMINDERS__OUTSTANDING_PROPOSITIONS_LOADED",REMINDERS__EXPORTS_NO_RECENT_INTERACTION_REMINDERS_LOADED="REMINDERS__EXPORTS_NO_RECENT_INTERACTION_REMINDERS_LOADED",REMINDERS__EXPORTS_NO_RECENT_INTERACTION_REMINDERS_DELETED="REMINDERS__EXPORTS_NO_RECENT_INTERACTION_REMINDERS_DELETED",REMINDERS__EXPORTS_NO_RECENT_INTERACTION_REMINDERS_GOT_NEXT="REMINDERS__EXPORTS_NO_RECENT_INTERACTION_REMINDERS_GOT_NEXT",REMINDERS__EXPORTS_NEW_INTERACTION_REMINDERS_LOADED="REMINDERS__EXPORTS_NEW_INTERACTION_REMINDERS_LOADED",REMINDERS__EXPORTS_NEW_INTERACTION_REMINDERS_DELETED="REMINDERS__EXPORTS_NEW_INTERACTION_REMINDERS_DELETED",REMINDERS__EXPORTS_NEW_INTERACTION_REMINDERS_GOT_NEXT="REMINDERS__EXPORTS_NEW_INTERACTION_REMINDERS_GOT_NEXT",REMINDERS__DUE_DATE_APPROACHING_REMINDERS_LOADED="REMINDERS__DUE_DATE_APPROACHING_REMINDERS_LOADED",REMINDERS__DUE_DATE_APPROACHING_REMINDERS_GOT_NEXT="REMINDERS__DUE_DATE_APPROACHING_REMINDERS_GOT_NEXT",REMINDERS__DUE_DATE_APPROACHING_REMINDERS_DELETED="REMINDERS__DUE_DATE_APPROACHING_REMINDERS_DELETED",REMINDERS__TASK_ASSIGNED_TO_ME_FROM_OTHERS_REMINDERS_LOADED="REMINDERS__TASK_ASSIGNED_TO_ME_FROM_OTHERS_REMINDERS_LOADED",REMINDERS__TASK_ASSIGNED_TO_ME_FROM_OTHERS_REMINDERS_GOT_NEXT="REMINDERS__TASK_ASSIGNED_TO_ME_FROM_OTHERS_REMINDERS_GOT_NEXT",REMINDERS__TASK_ASSIGNED_TO_ME_FROM_OTHERS_REMINDERS_DELETED="REMINDERS__TASK_ASSIGNED_TO_ME_FROM_OTHERS_REMINDERS_DELETED",REMINDERS__TASK_AMENDED_BY_OTHERS_REMINDERS_LOADED="REMINDERS__TASK_AMENDED_BY_OTHERS_REMINDERS_LOADED",REMINDERS__TASK_AMENDED_BY_OTHERS_REMINDERS_GOT_NEXT="REMINDERS__TASK_AMENDED_BY_OTHERS_REMINDERS_GOT_NEXT",REMINDERS__TASK_AMENDED_BY_OTHERS_REMINDERS_DELETED="REMINDERS__TASK_AMENDED_BY_OTHERS_REMINDERS_DELETED",REMINDERS__TASK_OVERDUE_REMINDERS_LOADED="REMINDERS__TASK_OVERDUE_REMINDERS_LOADED",REMINDERS__TASK_OVERDUE_REMINDERS_GOT_NEXT="REMINDERS__TASK_OVERDUE_REMINDERS_GOT_NEXT",REMINDERS__TASK_OVERDUE_REMINDERS_DELETED="REMINDERS__TASK_OVERDUE_REMINDERS_DELETED",REMINDERS__TASK_COMPLETED_REMINDERS_LOADED="REMINDERS__TASK_COMPLETED_REMINDERS_LOADED",REMINDERS__TASK_COMPLETED_REMINDERS_GOT_NEXT="REMINDERS__TASK_COMPLETED_REMINDERS_GOT_NEXT",REMINDERS__TASK_COMPLETED_REMINDERS_DELETED="REMINDERS__TASK_COMPLETED_REMINDERS_DELETED",REFERRAL_DETAILS="REFERRAL_DETAILS",TASK__START="TASK__START",TASK__PROGRESS="TASK__PROGRESS",TASK__CANCEL="TASK__CANCEL",TASK__ERROR="TASK__ERROR",TASK__DISMISS_ERROR="TASK__DISMISS_ERROR",TASK__CLEAR="TASK__CLEAR",EXPORTS_HISTORY__LOADED="EXPORTS_HISTORY__LOADED",EXPORTS_HISTORY__SELECT_PAGE="EXPORTS_HISTORY__SELECT_PAGE",TAB_NAV__SELECT="TAB_NAV__SELECT",TAB_NAV__FOCUS="TAB_NAV__FOCUS",SEND_REFERRAL_FORM__SUBMIT="SEND_REFERRAL_FORM__SUBMIT",REFERRAL_LIST__LOADED="REFERRAL_LIST__LOADED",REFERRAL_LIST__FILTER_CHANGE="REFERRAL_LIST__FILTER_CHANGE",FORM__LOADED="FORM__LOADED",FORM__FIELD_SET_VALUE="FORM__FIELD_SET_VALUE",FORM__FIELD_TOUCHED="FORM__FIELD_TOUCHED",FORM__FIELD_REGISTER="FORM__FIELD_REGISTER",FORM__FIELD_DEREGISTER="FORM__FIELD_DEREGISTER",FORM__STEP_REGISTER="FORM__STEP_REGISTER",FORM__STEP_DEREGISTER="FORM__STEP_DEREGISTER",FORM__FIELDS__RESET="FORM__FIELDS__RESET",FORM__FORWARD="FORM__FORWARD",FORM__BACK="FORM__BACK",FORM__GO_TO_STEP="FORM__GO_TO_STEP",FORM__VALIDATE="FORM__VALIDATE",FORM__RESOLVED="FORM__RESOLVED",FORM__ERRORED="FORM__ERRORED",ANALYTICS__PUSH="ANALYTICS__PUSH",DNB__CHECK_PENDING_REQUEST="DNB__CHECK_PENDING_REQUEST",TOGGLE_SECTION__TOGGLE="TOGGLE_SECTION__TOGGLE",INVESTMENTS__PROJECTS_LOADED="INVESTMENTS__PROJECTS_LOADED",INVESTMENTS__PROJECTS_SELECTED_ADVISERS="INVESTMENTS__PROJECTS_SELECTED_ADVISERS",INVESTMENTS__PROFILES_LOADED="INVESTMENTS__PROFILES_LOADED",INVESTMENTS__SET_PROJECTS_METADATA="INVESTMENTS__SET_PROJECTS_METADATA",INVESTMENT__SEARCH_COMPANY_LIST_LOADED="INVESTMENT__SEARCH_COMPANY_LIST_LOADED",INVESTMENT__COMPANY_INVESTMENT_COUNT="INVESTMENT__COMPANY_INVESTMENT_COUNT",INVESTMENT__COMPANY_SEARCH_TERM="INVESTMENT__COMPANY_SEARCH_TERM",INVESTMENTS__EYB_LEADS_LOADED="INVESTMENTS__EYB_LEADS_LOADED",INVESTMENTS__EYB_LEAD_FILTER_OPTIONS_LOADED="INVESTMENTS__EYB_LEAD_FILTER_OPTIONS_LOADED",INVESTMENTS_PROFILES__FILTER_OPTIONS_LOADED="INVESTMENTS_PROFILES__FILTER_OPTIONS_LOADED",INVESTMENT_OPPORTUNITY_DETAILS__LOADED="INVESTMENT_OPPORTUNITY_DETAILS__LOADED",INVESTMENTS__OPPORTUNITIES_LOADED="INVESTMENTS__OPPORTUNITIES_LOADED",INVESTMENTS__OPPORTUNITIES_SELECT_PAGE="INVESTMENTS__OPPORTUNITIES_SELECT_PAGE",INVESTMENT_OPPORTUNITY__REQUIREMENTS_METADATA_LOADED="INVESTMENT_OPPORTUNITY__REQUIREMENTS_METADATA_LOADED",INVESTMENT_OPPORTUNITY__EDIT_DETAILS="INVESTMENT_OPPORTUNITY__EDIT_DETAILS",INVESTMENT_OPPORTUNITY__EDIT_REQUIREMENTS="INVESTMENT_OPPORTUNITY__EDIT_REQUIREMENTS",INVESTMENT_OPPORTUNITY__CANCEL_EDIT="INVESTMENT_OPPORTUNITY__CANCEL_EDIT",INVESTMENT_OPPORTUNITY__REQUIREMENTS_CHANGE="INVESTMENT_OPPORTUNITY__REQUIREMENTS_CHANGE",INVESTMENT_OPPORTUNITY__UPDATED="INVESTMENT_OPPORTUNITY__UPDATED",MY_INVESTMENTS__LIST_LOADED="MY_INVESTMENTS__LIST_LOADED",MY_INVESTMENTS__CHECK_COMPLETE="MY_INVESTMENTS__CHECK_COMPLETE",MY_INVESTMENTS__PAGINATION_CLICK="MY_INVESTMENTS__PAGINATION_CLICK",MY_INVESTMENTS__STAGE_CHANGE="MY_INVESTMENTS__STAGE_CHANGE",MY_INVESTMENTS__STATUS_CHANGE="MY_INVESTMENTS__STATUS_CHANGE",MY_INVESTMENTS__LAND_DATE_CHANGE="MY_INVESTMENTS__LAND_DATE_CHANGE",MY_INVESTMENTS__SORT_CHANGE="MY_INVESTMENTS__SORT_CHANGE",MY_INVESTMENTS__SHOW_DETAILS_CHANGE="MY_INVESTMENTS__SHOW_DETAILS_CHANGE",MY_INVESTMENTS__SAVE_TO_SESSION="MY_INVESTMENTS__SAVE_TO_SESSION",MY_INVESTMENTS__GET_FROM_SESSION="MY_INVESTMENTS__GET_FROM_SESSION",MY_INVESTMENTS__ADD_TO_STATE="MY_INVESTMENTS__ADD_TO_STATE",OUTSTANDING_PROPOSITIONS__LOADED="OUTSTANDING_PROPOSITIONS__LOADED",REMINDER_SUMMARY__LOADED="REMINDER_SUMMARY__LOADED",ROUTED_INPUT__CHANGE="ROUTED_INPUT__CHANGE",ROUTED_INPUT__SELECT="ROUTED_INPUT__SELECT",ROUTED_INPUT__RESET="ROUTED_INPUT__RESET",HARD_REDIRECT="HARD_REDIRECT",CONTACT_FORM__SUBMIT="CONTACT_FORM__SUBMIT",TYPEAHEAD__BLUR="TYPEAHEAD__BLUR",TYPEAHEAD__SET_ACTIVE_OPTION="TYPEAHEAD__SET_ACTIVE_OPTION",TYPEAHEAD__INPUT="TYPEAHEAD__INPUT",TYPEAHEAD__INITIALISE="TYPEAHEAD__INITIALISE",TYPEAHEAD__MENU_CLOSE="TYPEAHEAD__MENU_CLOSE",TYPEAHEAD__MENU_OPEN="TYPEAHEAD__MENU_OPEN",TYPEAHEAD__OPTION_MOUSE_DOWN="TYPEAHEAD__OPTION_MOUSE_DOWN",TYPEAHEAD__OPTIONS_LOADED="TYPEAHEAD__OPTIONS_LOADED",TYPEAHEAD__OPTIONS_CLEAR="TYPEAHEAD__OPTIONS_CLEAR",TYPEAHEAD__OPTION_TOGGLE="TYPEAHEAD__OPTION_TOGGLE",TYPEAHEAD__OPTION_REMOVE="TYPEAHEAD__OPTION_REMOVE",FLASH_MESSAGE__WRITE_TO_SESSION="FLASH_MESSAGE__WRITE_TO_SESSION",FLASH_MESSAGE__ADD_TO_STATE="FLASH_MESSAGE__ADD_TO_STATE",FLASH_MESSAGE__GET_FROM_SESSION="FLASH_MESSAGE__GET_FROM_SESSION",FLASH_MESSAGE__CLEAR_FROM_STATE="FLASH_MESSAGE__CLEAR_FROM_STATE",FIELD_ADD_ANOTHER__ADD="FIELD_ADD_ANOTHER__ADD",FIELD_ADD_ANOTHER__REMOVE="FIELD_ADD_ANOTHER__REMOVE",DATA_HUB_FEED__FETCHED="DATA_HUB_FEED__FETCHED",LATEST_ANNOUNCEMENT__WRITE_TO_LOCALSTORAGE="LATEST_ANNOUNCEMENT__WRITE_TO_LOCALSTORAGE",LATEST_ANNOUNCEMENT__READ_FROM_LOCALSTORAGE="LATEST_ANNOUNCEMENT__READ_FROM_LOCALSTORAGE",LATEST_ANNOUNCEMENT__UPDATE_STATE="LATEST_ANNOUNCEMENT__UPDATE_STATE",COMPANY_LOADED="COMPANY_LOADED",COMPANY_ACTIVITIES__LOADED="COMPANY_ACTIVITIES__LOADED",COMPANY_ACTIVITIES__METADATA_LOADED="COMPANY_ACTIVITIES__METADATA_LOADED",COMPANY_ACTIVITIES_SELECTED_ADVISERS="COMPANY_ACTIVITIES_SELECTED_ADVISERS",COMPANY_ACTIVITIES_SELECTED_COMPANIES="COMPANY_ACTIVITIES_SELECTED_COMPANIES",COMPANY_ACTIVITIES_SELECTED_TEAMS="COMPANY_ACTIVITIES_SELECTED_TEAMS",EXPORT_LOADED="EXPORT_LOADED",OVERVIEW__COMPANY_INVESTMENT_WON_COUNT="OVERVIEW__COMPANY_INVESTMENT_WON_COUNT",OVERVIEW__EXPORT_WINS_SUMMARY="OVERVIEW__EXPORT_WINS_SUMMARY",EXPORT__PIPELINE_LIST_LOADED="EXPORT__PIPELINE_LIST_LOADED",COMPANY_LISTS__COMPANY_IN_LOADED="COMPANY_LISTS__COMPANY_IN_LOADED",DNB_FAMILY_TREE_LOADED="DNB_FAMILY_TREE_LOADED",OBJECTIVE_LOADED="OBJECTIVE_LOADED",ONE_LIST_DETAILS_LOADED="ONE_LIST_DETAILS_LOADED",TASK_DETAILS_LOADED="TASK_DETAILS_LOADED",COPY_TASK_DETAILS_LOADED="COPY_TASK_DETAILS_LOADED",INVESTMENT__PROJECT_LOADED="INVESTMENT__PROJECT_LOADED",EXPORT_WIN_RESENT__SUCCESS="EXPORT_WIN_RESENT__SUCCESS",PAGINATED_RESOURCE__GO_TO_PAGE="PAGINATED_RESOURCE__GO_TO_PAGE",PAGINATED_RESOURCE__ON_SUCCESS="PAGINATED_RESOURCE__ON_SUCCESS",MY_TASKS_CHECK_COMPLETE="MY_TASKS_CHECK_COMPLETE",MY_TASKS_LOADED="MY_TASKS_LOADED",INTERACTION__LOADED="INTERACTION__LOADED",PROPOSITION_COMPLETE="PROPOSITION_COMPLETE",COMPANIES__GLOBAL_ULTIMATE_LOADED="COMPANIES__GLOBAL_ULTIMATE_LOADED",ORDERS__QUOTE_PREVIEW_LOADED="ORDERS__QUOTE_PREVIEW_LOADED",COMPANIES__OVERVIEW_RECENT_ACTIVITY_LOADED="COMPANIES__OVERVIEW_RECENT_ACTIVITY_LOADED",COMPANIES__OVERVIEW_UPCOMING_ACTIVITY_LOADED="COMPANIES__OVERVIEW_UPCOMING_ACTIVITY_LOADED"},"./src/client/components/AccessDenied/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_Layout_DefaultLayout__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/Layout/DefaultLayout.jsx"),AccessDenied=function AccessDenied(_ref){var breadcrumbs=_ref.breadcrumbs;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Layout_DefaultLayout__WEBPACK_IMPORTED_MODULE_1__.A,{heading:"You don't have permission to view this page",pageTitle:"Access denied",breadcrumbs},react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{"data-test":"access-denied"},react__WEBPACK_IMPORTED_MODULE_0__.createElement("p",null,"If you think you should have access or need to sign up to a DBT system then ",react__WEBPACK_IMPORTED_MODULE_0__.createElement("a",{href:"/support"},"request access"),"."),react__WEBPACK_IMPORTED_MODULE_0__.createElement("p",null,"You can also ",react__WEBPACK_IMPORTED_MODULE_0__.createElement("a",{href:"/"},"browse or search from the homepage")," to find the information you need."),react__WEBPACK_IMPORTED_MODULE_0__.createElement("p",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("strong",null,"403"))))};const __WEBPACK_DEFAULT_EXPORT__=AccessDenied;AccessDenied.__docgenInfo={description:"",methods:[],displayName:"AccessDenied"}},"./src/client/components/AdministrativeAreaSearch/useAdministrativeAreaLookup.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>useAdministrativeAreaLookup,p:()=>filterAreaDataByCountry});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.async-iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.json.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.math.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-prototype-of.js"),__webpack_require__("./node_modules/core-js/modules/es.object.set-prototype-of.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.promise.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var axios__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./node_modules/axios/lib/axios.js"),_lib_urls__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./src/lib/urls.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _regeneratorRuntime(){_regeneratorRuntime=function _regeneratorRuntime(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{define({},"")}catch(t){define=function define(t,e,r){return t[e]=r}}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,(function(){return this}));var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach((function(e){define(t,e,(function(t){return this._invoke(e,t)}))}))}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){invoke("next",t,i,a)}),(function(t){invoke("throw",t,i,a)})):e.resolve(h).then((function(t){u.value=t,i(u)}),(function(t){return invoke("throw",t,i,a)}))}a(c.arg)}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e((function(e,r){invoke(t,n,e,r)}))}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done}}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg)}}}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value}catch(n){return void e(n)}i.done?t(u):Promise.resolve(u).then(r,o)}function useAdministrativeAreaLookup(){return function(){var _findAreaByCountryId=function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise((function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n)}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n)}_next(void 0)}))}}(_regeneratorRuntime().mark((function _callee(){var countryId,_yield$axios,data,_args=arguments;return _regeneratorRuntime().wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:return countryId=_args.length>0&&void 0!==_args[0]?_args[0]:void 0,_context.next=3,(0,axios__WEBPACK_IMPORTED_MODULE_19__.A)("".concat(_lib_urls__WEBPACK_IMPORTED_MODULE_18__.metadata.administrativeArea(),"?_=0"));case 3:return _yield$axios=_context.sent,data=_yield$axios.data,_context.abrupt("return",countryId?filterAreaDataByCountry(data,countryId):data);case 6:case"end":return _context.stop()}}),_callee)})));return function findAreaByCountryId(){return _findAreaByCountryId.apply(this,arguments)}}()}function filterAreaDataByCountry(data,countryId){return data.filter((function(area){return null===area.disabled_on})).filter((function(area){return area.country.id===countryId}))}},"./src/client/components/AdministrativeAreaSearch/useAdministrativeAreaSearch.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.async-iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.json.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.math.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-prototype-of.js"),__webpack_require__("./node_modules/core-js/modules/es.object.set-prototype-of.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.promise.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var react__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./node_modules/react/index.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _regeneratorRuntime(){_regeneratorRuntime=function _regeneratorRuntime(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{define({},"")}catch(t){define=function define(t,e,r){return t[e]=r}}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,(function(){return this}));var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach((function(e){define(t,e,(function(t){return this._invoke(e,t)}))}))}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){invoke("next",t,i,a)}),(function(t){invoke("throw",t,i,a)})):e.resolve(h).then((function(t){u.value=t,i(u)}),(function(t){return invoke("throw",t,i,a)}))}a(c.arg)}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e((function(e,r){invoke(t,n,e,r)}))}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done}}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg)}}}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value}catch(n){return void e(n)}i.done?t(u):Promise.resolve(u).then(r,o)}function _slicedToArray(r,e){return function _arrayWithHoles(r){if(Array.isArray(r))return r}(r)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(r,e)||function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0}}(r,e)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e0&&void 0!==_args[0]?_args[0]:void 0,_context.prev=1,setIsSubmitting(!0),setAdministrativeAreaSearchError(null),_context.t0=setAdministrativeAreaList,_context.next=7,areaSearchCallback(countryId);case 7:_context.t1=_context.sent,(0,_context.t0)(_context.t1),_context.next=15;break;case 11:_context.prev=11,_context.t2=_context.catch(1),setAdministrativeAreaList(null),setAdministrativeAreaSearchError("Error occurred while searching for an administrative area.");case 15:return _context.prev=15,setIsSubmitting(!1),_context.finish(15);case 18:case"end":return _context.stop()}}),_callee,null,[[1,11,15,18]])}))),_onAdministrativeAreaSearch.apply(this,arguments)}return{administrativeAreaSearchError,administrativeAreaList,isAreaFilterSubmitting:isSubmitting,onAdministrativeAreaSearch:function onAdministrativeAreaSearch(){return _onAdministrativeAreaSearch.apply(this,arguments)}}}},"./src/client/components/Analytics/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var react_redux__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react-redux/dist/react-redux.mjs"),_actions__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/actions.js");const __WEBPACK_DEFAULT_EXPORT__=(0,react_redux__WEBPACK_IMPORTED_MODULE_0__.connect)()((function(_ref){var children=_ref.children,dispatch=_ref.dispatch;return children((function(_ref2){var category=_ref2.category,action=_ref2.action,label=_ref2.label,extra=_ref2.extra,_ref2$event=_ref2.event,event=void 0===_ref2$event?"gaEvent":_ref2$event;return dispatch({type:_actions__WEBPACK_IMPORTED_MODULE_1__.bVo,category,action,label,extra,event})}))}))},"./src/client/components/ArchivePanel/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.string.bold.js");var _templateObject,_templateObject2,_templateObject3,react__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_11__),styled_components__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_main__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@govuk-react/main/dist/govuk-react-main.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_govuk_react_link__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/@govuk-react/link/dist/govuk-react-link.esm.js"),_client_components_StatusMessage__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./src/client/components/StatusMessage/index.jsx"),_utils_date__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./src/client/utils/date.js");function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var negativeSpacing="-"+_govuk_react_constants__WEBPACK_IMPORTED_MODULE_6__.Es.SCALE_4,StyledMain=(0,styled_components__WEBPACK_IMPORTED_MODULE_10__.Ay)(_govuk_react_main__WEBPACK_IMPORTED_MODULE_5__.A)(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n padding-top: ",";\n div {\n font-size: ",";\n }\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_6__.Es.SCALE_1,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_6__.SG.SIZE_20),StyledMessage=(0,styled_components__WEBPACK_IMPORTED_MODULE_10__.Ay)("p")(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n font-weight: ",";\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_6__.sO.bold),StyledReason=(0,styled_components__WEBPACK_IMPORTED_MODULE_10__.Ay)(StyledMessage)(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n margin-top: ",";\n"])),negativeSpacing),ArchivePanel=function ArchivePanel(_ref){var _ref$archivedBy=_ref.archivedBy,archivedBy=void 0===_ref$archivedBy?null:_ref$archivedBy,archivedOn=_ref.archivedOn,archiveReason=_ref.archiveReason,unarchiveUrl=_ref.unarchiveUrl,_ref$onClick=_ref.onClick,onClick=void 0===_ref$onClick?null:_ref$onClick,type=_ref.type,_ref$archiveMessage=_ref.archiveMessage,archiveMessage=void 0===_ref$archiveMessage?"archived":_ref$archiveMessage;return react__WEBPACK_IMPORTED_MODULE_4__.createElement(StyledMain,{"data-test":"archive-panel"},react__WEBPACK_IMPORTED_MODULE_4__.createElement(_client_components_StatusMessage__WEBPACK_IMPORTED_MODULE_8__.A,null,react__WEBPACK_IMPORTED_MODULE_4__.createElement(StyledMessage,{"data-test":"archive-message"},archivedBy?"This ".concat(type," was ").concat(archiveMessage," on ").concat((0,_utils_date__WEBPACK_IMPORTED_MODULE_9__.format)(archivedOn)," by ").concat(function checkArchiverFormat(archivedBy){return"string"==typeof archivedBy?archivedBy:"".concat(archivedBy.first_name||archivedBy.firstName," ").concat(archivedBy.last_name||archivedBy.lastName)}(archivedBy),"."):"This ".concat(type," was automatically archived on ").concat((0,_utils_date__WEBPACK_IMPORTED_MODULE_9__.format)(archivedOn),".")),react__WEBPACK_IMPORTED_MODULE_4__.createElement(StyledReason,{"data-test":"archive-reason"},"Reason: ".concat(archiveReason)),unarchiveUrl&&react__WEBPACK_IMPORTED_MODULE_4__.createElement(_govuk_react_link__WEBPACK_IMPORTED_MODULE_7__.A,{"data-test":"unarchive-link",onClick,href:unarchiveUrl},"Unarchive")))};ArchivePanel.propTypes={archivedBy:prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_11___default().string,prop_types__WEBPACK_IMPORTED_MODULE_11___default().object]),archivedOn:prop_types__WEBPACK_IMPORTED_MODULE_11___default().string.isRequired,archiveReason:prop_types__WEBPACK_IMPORTED_MODULE_11___default().string.isRequired,unarchiveUrl:prop_types__WEBPACK_IMPORTED_MODULE_11___default().string,onClick:prop_types__WEBPACK_IMPORTED_MODULE_11___default().func,type:prop_types__WEBPACK_IMPORTED_MODULE_11___default().string.isRequired};const __WEBPACK_DEFAULT_EXPORT__=ArchivePanel;ArchivePanel.__docgenInfo={description:"An extension of `StatusMessage` that is used to denote whether a record has been archived.",methods:[],displayName:"ArchivePanel",props:{archivedBy:{defaultValue:{value:"null",computed:!1},description:"An object containg the first and last name of the person who archived the record. If this is not defined, the automatic archive text will appear.",type:{name:"union",value:[{name:"string"},{name:"object"}]},required:!1},onClick:{defaultValue:{value:"null",computed:!1},description:"This is used when the unarchive link needs to contain an `onClick` event (such as displaying a flash message).",type:{name:"func"},required:!1},archiveMessage:{defaultValue:{value:"'archived'",computed:!1},required:!1},archivedOn:{description:"The date the record was archived.",type:{name:"string"},required:!0},archiveReason:{description:"The reason why the record was archived.",type:{name:"string"},required:!0},unarchiveUrl:{description:"The URL to unarchive the record.",type:{name:"string"},required:!1},type:{description:"The type of record.",type:{name:"string"},required:!0}}}},"./src/client/components/Badge/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js");var _templateObject,react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/react/index.js"),styled_components__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),prop_types__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_govuk_react_visually_hidden__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@govuk-react/visually-hidden/dist/govuk-react-visually-hidden.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/client/utils/colours.js");var StyledBadge=(0,styled_components__WEBPACK_IMPORTED_MODULE_6__.Ay)("span")(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n border: ",";\n border-radius: 4px;\n padding: 2px 4px;\n font-size: ",";\n white-space: nowrap;\n color: ",";\n"])),(function(_ref){var borderColour=_ref.borderColour;return"2px solid ".concat(borderColour)}),(function(props){return props.fontSize?props.fontSize:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_3__.SG.SIZE_14}),(function(props){return props.textColour?props.textColour:_client_utils_colours__WEBPACK_IMPORTED_MODULE_5__.pF})),Badge=function Badge(_ref2){var label=_ref2.label,_ref2$borderColour=_ref2.borderColour,borderColour=void 0===_ref2$borderColour?_client_utils_colours__WEBPACK_IMPORTED_MODULE_5__.Pe:_ref2$borderColour,_ref2$textColour=_ref2.textColour,textColour=void 0===_ref2$textColour?_client_utils_colours__WEBPACK_IMPORTED_MODULE_5__.pF:_ref2$textColour,_ref2$fontSize=_ref2.fontSize,fontSize=void 0===_ref2$fontSize?_govuk_react_constants__WEBPACK_IMPORTED_MODULE_3__.SG.SIZE_14:_ref2$fontSize,children=_ref2.children;return react__WEBPACK_IMPORTED_MODULE_2__.createElement(StyledBadge,{"data-test":"badge",borderColour,textColour,fontSize},label&&react__WEBPACK_IMPORTED_MODULE_2__.createElement(_govuk_react_visually_hidden__WEBPACK_IMPORTED_MODULE_4__.A,null,label),children)};Badge.propTypes={label:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string,borderColour:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string,textColour:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string,fontSize:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string,children:prop_types__WEBPACK_IMPORTED_MODULE_7___default().node.isRequired};const __WEBPACK_DEFAULT_EXPORT__=Badge;Badge.__docgenInfo={description:"A component to display the type of an element.",methods:[],displayName:"Badge",props:{borderColour:{defaultValue:{value:"'#bfc1c3'",computed:!1},description:"A custom colour for the border.",type:{name:"string"},required:!1},textColour:{defaultValue:{value:"'#0b0c0c'",computed:!1},description:"A custom colour for the badge text.",type:{name:"string"},required:!1},fontSize:{defaultValue:{value:"FONT_SIZE.SIZE_14",computed:!0},description:"A custom size for the text of the badge.",type:{name:"string"},required:!1},label:{description:"",type:{name:"string"},required:!1},children:{description:"The text that will be displayed on the badge.",type:{name:"node"},required:!0}}}},"./src/client/components/ButtonLink/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js");var _templateObject,styled_components__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_button__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@govuk-react/button/dist/govuk-react-button.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/client/utils/colours.js");const __WEBPACK_DEFAULT_EXPORT__=(0,styled_components__WEBPACK_IMPORTED_MODULE_5__.Ay)(_govuk_react_button__WEBPACK_IMPORTED_MODULE_2__.A).attrs((function(props){return props}))(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n &,\n &:hover,\n &:focus {\n background: transparent;\n box-shadow: none;\n color: ",";\n cursor: pointer;\n text-decoration: underline;\n ","\n }\n"])),_client_utils_colours__WEBPACK_IMPORTED_MODULE_4__.yV,(function(props){return props.inline&&"\n padding: 0;\n margin: 0 0 0 ".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_3__.Es.SCALE_1,";\n border: 0;\n width: auto;\n font: inherit;\n ")}))},"./src/client/components/Checkbox/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js");var _templateObject,react__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./node_modules/react/index.js"),styled_components__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),govuk_react__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("./node_modules/govuk-react/dist/govuk-react.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_excluded=["onChange","name","initialChecked","value"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;er.length)&&(a=r.length);for(var e=0,n=Array(a);e{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.bold.js");var _templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,react__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./node_modules/react/index.js"),_govuk_react_multi_choice__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./node_modules/@govuk-react/multi-choice/dist/govuk-react-multi-choice.esm.js"),prop_types__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_27___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_27__),styled_components__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./src/client/utils/colours.js"),_Checkbox__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("./src/client/components/Checkbox/index.jsx"),_Form_elements_FieldWrapper__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./src/client/components/Form/elements/FieldWrapper/index.jsx"),_excluded=["legend","name","hint","options","loadOptions","selectedOptions","onChange","id","groupId","maxScrollHeight"],_excluded2=["value","label"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;er.length)&&(a=r.length);for(var e=0,n=Array(a);e legend {\n font-size: ".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_22__.SG.SIZE_16,";\n font-weight: ").concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_22__.sO.bold,";\n }\n fieldset > div {\n overflow-y: scroll;\n max-height: ").concat(maxScrollHeight,"px;\n padding-left: 10px;\n margin-left: -10px;\n /* Taken from Gov.uk, these rules allow us to retain a permanent scrollbar */\n &::-webkit-scrollbar {\n -webkit-appearance: none;\n width: 7px;\n }\n &::-webkit-scrollbar-thumb {\n border-radius: 4px;\n background-color: rgba(0, 0, 0, 0.5);\n -webkit-box-shadow: 0 0 1px rgb(255 255 255 / 87%);\n }\n }\n ").concat(checkboxGroupElementStyles):checkboxGroupElementStyles})),SelectedCount=(0,styled_components__WEBPACK_IMPORTED_MODULE_26__.Ay)("span")(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n font-size: ",";\n display: block;\n padding: "," 0;\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_22__.SG.SIZE_14,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_22__.Es.SCALE_1),StyledList=(0,styled_components__WEBPACK_IMPORTED_MODULE_26__.Ay)("ul")(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n padding: 0;\n margin: 0;\n list-style: none;\n"]))),StyledCheckbox=(0,styled_components__WEBPACK_IMPORTED_MODULE_26__.Ay)(_Checkbox__WEBPACK_IMPORTED_MODULE_24__.A)(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["\n "," {\n font-size: ",";\n }\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_22__.qs.TABLET,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_22__.SG.SIZE_16),CheckboxGroupField=function CheckboxGroupField(_ref2){var legend=_ref2.legend,name=_ref2.name,hint=_ref2.hint,_ref2$options=_ref2.options,initialOptions=void 0===_ref2$options?[]:_ref2$options,_ref2$loadOptions=_ref2.loadOptions,loadOptions=void 0===_ref2$loadOptions?null:_ref2$loadOptions,_ref2$selectedOptions=_ref2.selectedOptions,selectedOptions=void 0===_ref2$selectedOptions?[]:_ref2$selectedOptions,_ref2$onChange=_ref2.onChange,onChange=void 0===_ref2$onChange?function(){return null}:_ref2$onChange,_ref2$groupId=(_ref2.id,_ref2.groupId),groupId=void 0===_ref2$groupId?"":_ref2$groupId,_ref2$maxScrollHeight=_ref2.maxScrollHeight,maxScrollHeight=void 0===_ref2$maxScrollHeight?0:_ref2$maxScrollHeight,props=_objectWithoutProperties(_ref2,_excluded),_useState2=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_20__.useState)(initialOptions),2),options=_useState2[0],setOptions=_useState2[1],_useState4=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_20__.useState)(null!==loadOptions),2),loading=_useState4[0],setLoading=_useState4[1];return(0,react__WEBPACK_IMPORTED_MODULE_20__.useEffect)((function(){null!==loadOptions&&loadOptions().then((function(options){setLoading(!1),setOptions(options)}))}),[options,loadOptions]),react__WEBPACK_IMPORTED_MODULE_20__.createElement(StyledFieldWrapper,_extends({maxScrollHeight,legend,name,hint,"data-test":"checkbox-group-field-".concat(name),groupId},props),loading?"Loading...":react__WEBPACK_IMPORTED_MODULE_20__.createElement(react__WEBPACK_IMPORTED_MODULE_20__.Fragment,null,maxScrollHeight>0&&selectedOptions.length>0&&react__WEBPACK_IMPORTED_MODULE_20__.createElement(SelectedCount,null,"".concat(selectedOptions.length," selected")),react__WEBPACK_IMPORTED_MODULE_20__.createElement(_govuk_react_multi_choice__WEBPACK_IMPORTED_MODULE_21__.A,null,react__WEBPACK_IMPORTED_MODULE_20__.createElement(StyledList,null,options.map((function(option,i){var optionValue=option.value,optionLabel=option.label,optionProps=_objectWithoutProperties(option,_excluded2),checked=selectedOptions.map((function(_ref3){return _ref3.value})).includes(optionValue),otherOptions=_toConsumableArray(selectedOptions.filter((function(_ref4){return _ref4.value!==optionValue}))),getCheckboxId=function getCheckboxId(name){return"field-".concat(name,"-").concat(i+1)};return react__WEBPACK_IMPORTED_MODULE_20__.createElement("li",{key:optionValue},react__WEBPACK_IMPORTED_MODULE_20__.createElement(StyledCheckbox,_extends({id:getCheckboxId(name),name,initialChecked:checked,value:optionValue,onChange:function handleChange(event){event.target.checked?onChange([].concat(_toConsumableArray(otherOptions),[option])):onChange(otherOptions)},"aria-label":optionLabel,"aria-labelledby":"".concat(getCheckboxId(name)," ").concat(groupId)},optionProps),optionLabel))}))))))};CheckboxGroupField.propTypes={legend:prop_types__WEBPACK_IMPORTED_MODULE_27___default().string,name:prop_types__WEBPACK_IMPORTED_MODULE_27___default().string,hint:prop_types__WEBPACK_IMPORTED_MODULE_27___default().string,options:prop_types__WEBPACK_IMPORTED_MODULE_27___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_27___default().shape({value:prop_types__WEBPACK_IMPORTED_MODULE_27___default().string,label:prop_types__WEBPACK_IMPORTED_MODULE_27___default().string})).isRequired,loadOptions:prop_types__WEBPACK_IMPORTED_MODULE_27___default().func,selectedOptions:prop_types__WEBPACK_IMPORTED_MODULE_27___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_27___default().shape({value:prop_types__WEBPACK_IMPORTED_MODULE_27___default().string,label:prop_types__WEBPACK_IMPORTED_MODULE_27___default().string})).isRequired,onChange:prop_types__WEBPACK_IMPORTED_MODULE_27___default().func,id:prop_types__WEBPACK_IMPORTED_MODULE_27___default().string,maxScrollHeight:prop_types__WEBPACK_IMPORTED_MODULE_27___default().number,groupId:prop_types__WEBPACK_IMPORTED_MODULE_27___default().string};const __WEBPACK_DEFAULT_EXPORT__=CheckboxGroupField;CheckboxGroupField.__docgenInfo={description:"Check box group field - shows a number of options as checkboxes\n\nLet users select one or more options by using the checkboxes component.\nIf you have a lot of options to display consider using the `visibleHeight`\nproperty to create a scrollable area. Selected option count will only show\nwhen you use the `visibleHeight` property.\n\nIf when a screenreader reads the label of the checkboxes in isolation it is not clear what they refer to, use the `groupId` prop to ensure the legend of the checkbox group is read after each checkbox label.",methods:[],displayName:"CheckboxGroupField",props:{options:{defaultValue:{value:"[]",computed:!1},description:"The available options as objects with label and value",type:{name:"arrayOf",value:{name:"shape",value:{value:{name:"string",required:!1},label:{name:"string",required:!1}}}},required:!1},loadOptions:{defaultValue:{value:"null",computed:!1},description:"Function to load options",type:{name:"func"},required:!1},selectedOptions:{defaultValue:{value:"[]",computed:!1},description:"The options that have been selected",type:{name:"arrayOf",value:{name:"shape",value:{value:{name:"string",required:!1},label:{name:"string",required:!1}}}},required:!1},onChange:{defaultValue:{value:"() => null",computed:!1},description:"Callback function that passes on the selected options",type:{name:"func"},required:!1},groupId:{defaultValue:{value:"''",computed:!1},description:"",type:{name:"string"},required:!1},maxScrollHeight:{defaultValue:{value:"0",computed:!1},description:"Sets the visible area for the checkboxes before the overflow is set",type:{name:"number"},required:!1},legend:{description:"The legend label to display",type:{name:"string"},required:!1},name:{description:"The field name for the group",type:{name:"string"},required:!1},hint:{description:"The hint to display",type:{name:"string"},required:!1},id:{description:"",type:{name:"string"},required:!1}}}},"./src/client/components/Chip/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.string.bold.js");var _templateObject,react__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/index.js"),styled_components__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),prop_types__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/client/utils/colours.js");var StyledButton=(0,styled_components__WEBPACK_IMPORTED_MODULE_6__.Ay)("button")(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n display: inline-table;\n padding: 12px;\n margin: 4px;\n background-color: ",";\n border-radius: ",";\n border: 1px solid ",";\n vertical-align: middle;\n cursor: pointer;\n span {\n pointer-events: none;\n display: table-cell;\n font-size: ",";\n }\n span:first-child {\n text-transform: ",";\n padding-right: ",";\n font-weight: ",";\n }\n"])),_client_utils_colours__WEBPACK_IMPORTED_MODULE_5__.WS,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__.Es.SCALE_1,_client_utils_colours__WEBPACK_IMPORTED_MODULE_5__.Uv,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__.SG.SIZE_16,(function(_ref){return _ref.onClick&&"uppercase"}),(function(_ref2){return _ref2.onClick&&"8px"}),(function(_ref3){return _ref3.onClick&&_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__.sO.bold})),Chip=function Chip(_ref4){var children=_ref4.children,value=_ref4.value,_ref4$onClick=_ref4.onClick,onClick=void 0===_ref4$onClick?null:_ref4$onClick;return react__WEBPACK_IMPORTED_MODULE_3__.createElement(StyledButton,{onClick,"data-value":value,"aria-label":"remove filter ".concat(children)},onClick&&react__WEBPACK_IMPORTED_MODULE_3__.createElement("span",null,"✕"),react__WEBPACK_IMPORTED_MODULE_3__.createElement("span",null,children))};Chip.propTypes={children:prop_types__WEBPACK_IMPORTED_MODULE_7___default().node.isRequired,value:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string.isRequired,onClick:prop_types__WEBPACK_IMPORTED_MODULE_7___default().func};const __WEBPACK_DEFAULT_EXPORT__=Chip;Chip.__docgenInfo={description:"Chips are compact elements that represent an input, attribute, or action.\nA Chip could be used to display a list of selected filters in a collection list.",methods:[],displayName:"Chip",props:{onClick:{defaultValue:{value:"null",computed:!1},description:"",type:{name:"func"},required:!1},children:{description:"",type:{name:"node"},required:!0},value:{description:"",type:{name:"string"},required:!0}}}},"./src/client/components/CollectionList/CollectionHeader.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js");var _templateObject,_templateObject2,_templateObject3,react__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_15___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_15__),_govuk_react_button__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/@govuk-react/button/dist/govuk-react-button.esm.js"),styled_components__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),pluralize__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/pluralize/pluralize.js"),pluralize__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(pluralize__WEBPACK_IMPORTED_MODULE_8__),_govuk_react_heading__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/@govuk-react/heading/dist/govuk-react-heading.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_CollectionHeaderRow__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./src/client/components/CollectionList/CollectionHeaderRow.jsx"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./src/client/utils/colours.js"),_utils_number_utils__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./src/client/utils/number-utils.js"),_excluded=["totalItems","collectionName","addItemUrl","shouldPluralize"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js");var _templateObject,_templateObject2,react__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_11__),styled_components__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./src/client/utils/colours.js"),_excluded=["primary","actions","children"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e{"use strict";__webpack_require__.d(__webpack_exports__,{Ay:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js");var _templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,react__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_13__),react_router_dom__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./node_modules/react-router/dist/development/chunk-D52XG6IA.mjs"),styled_components__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_heading__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@govuk-react/heading/dist/govuk-react-heading.esm.js"),_govuk_react_link__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@govuk-react/link/dist/govuk-react-link.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_utils_colours__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./src/client/utils/colours.js"),_Badge___WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./src/client/components/Badge/index.jsx"),_components_Metadata___WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./src/client/components/Metadata/index.jsx"),_Tag__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./src/client/components/Tag/index.jsx");function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var ItemWrapper=(0,styled_components__WEBPACK_IMPORTED_MODULE_11__.Ay)("li")(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n border-bottom: 1px solid ",";\n padding: "," 0;\n"])),_utils_colours__WEBPACK_IMPORTED_MODULE_7__.Pe,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_6__.Es.SCALE_3),StyledBadgesWrapper=(0,styled_components__WEBPACK_IMPORTED_MODULE_11__.Ay)("div")(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n margin-bottom: ",";\n\n & > * {\n margin-right: ",";\n &:last-child {\n margin-right: 0;\n }\n }\n\n "," {\n float: right;\n }\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_6__.Es.SCALE_2,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_6__.Es.SCALE_1,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_6__.qs.TABLET),StyledInlineTagWrapper=(0,styled_components__WEBPACK_IMPORTED_MODULE_11__.Ay)("div")({display:"flex",flexWrap:"wrap",gap:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_6__.Es.SCALE_2,paddingBottom:"10px"}),StyledHeader=(0,styled_components__WEBPACK_IMPORTED_MODULE_11__.Ay)(_govuk_react_heading__WEBPACK_IMPORTED_MODULE_4__.H3)(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n font-size: ","px;\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_6__.iU.SMALL),StyledLinkHeader=(0,styled_components__WEBPACK_IMPORTED_MODULE_11__.Ay)(StyledHeader)(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n & > a:link,\n a:visited,\n a:hover,\n a:active {\n text-decoration: none;\n }\n"]))),StyledSubheading=(0,styled_components__WEBPACK_IMPORTED_MODULE_11__.Ay)("h4")(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["\n font-size: ",";\n line-height: 20px;\n color: ",";\n font-weight: normal;\n margin: -"," 0 "," 0;\n"])),(function(_ref){var fontSize=_ref.fontSize;return fontSize?"".concat(fontSize,"px"):"14px"}),_utils_colours__WEBPACK_IMPORTED_MODULE_7__.hM,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_6__.Es.SCALE_3,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_6__.Es.SCALE_2),StyledButtonWrapper=(0,styled_components__WEBPACK_IMPORTED_MODULE_11__.Ay)("div")(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["\n margin-bottom: -30px;\n margin-right: 10px;\n\n "," {\n text-align: right;\n }\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_6__.qs.TABLET),StyledFooterWrapper=(0,styled_components__WEBPACK_IMPORTED_MODULE_11__.Ay)("div")(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["\n margin-right: 10px;\n text-align: right;\n"]))),renderTags=function renderTags(tags){return tags.map((function(tag,index){return react__WEBPACK_IMPORTED_MODULE_3__.createElement(_Tag__WEBPACK_IMPORTED_MODULE_10__.A,{key:"tag_".concat(index),colour:tag.colour,"data-test":tag.dataTest?tag.dataTest:"collection-item-tag"},tag.text)}))},CollectionItem=function CollectionItem(_ref2){var headingText=_ref2.headingText,subheading=_ref2.subheading,subheadingUrl=_ref2.subheadingUrl,headingUrl=_ref2.headingUrl,badges=_ref2.badges,tags=_ref2.tags,metadata=_ref2.metadata,metadataRenderer=_ref2.metadataRenderer,onClick=_ref2.onClick,_ref2$titleRenderer=_ref2.titleRenderer,titleRenderer=void 0===_ref2$titleRenderer?null:_ref2$titleRenderer,_ref2$useReactRouter=_ref2.useReactRouter,useReactRouter=void 0!==_ref2$useReactRouter&&_ref2$useReactRouter,buttons=_ref2.buttons,footerRenderer=_ref2.footerRenderer,footerdata=_ref2.footerdata,_ref2$showTagsInMetad=_ref2.showTagsInMetadata,showTagsInMetadata=void 0!==_ref2$showTagsInMetad&&_ref2$showTagsInMetad;return react__WEBPACK_IMPORTED_MODULE_3__.createElement(ItemWrapper,{"data-test":"collection-item"},tags&&tags.length>0&&!showTagsInMetadata&&react__WEBPACK_IMPORTED_MODULE_3__.createElement(StyledBadgesWrapper,{"data-test":"collection-item-tags"},renderTags(tags)),!tags&&badges&&react__WEBPACK_IMPORTED_MODULE_3__.createElement(StyledBadgesWrapper,{"data-test":"collection-item-badges"},badges.map((function(badge){return react__WEBPACK_IMPORTED_MODULE_3__.createElement(_Badge___WEBPACK_IMPORTED_MODULE_8__.A,{key:badge.text,borderColour:badge.borderColour},badge.text)}))),titleRenderer?titleRenderer(headingText,headingUrl):headingUrl?react__WEBPACK_IMPORTED_MODULE_3__.createElement(StyledLinkHeader,null,useReactRouter?react__WEBPACK_IMPORTED_MODULE_3__.createElement(_govuk_react_link__WEBPACK_IMPORTED_MODULE_5__.A,{as:react_router_dom__WEBPACK_IMPORTED_MODULE_12__.N_,to:headingUrl,onClick},headingText):react__WEBPACK_IMPORTED_MODULE_3__.createElement(_govuk_react_link__WEBPACK_IMPORTED_MODULE_5__.A,{href:headingUrl,onClick},headingText)):react__WEBPACK_IMPORTED_MODULE_3__.createElement(StyledHeader,null,headingText),subheading?subheadingUrl?react__WEBPACK_IMPORTED_MODULE_3__.createElement(StyledSubheading,{fontSize:19},react__WEBPACK_IMPORTED_MODULE_3__.createElement(_govuk_react_link__WEBPACK_IMPORTED_MODULE_5__.A,{href:subheadingUrl},subheading)):react__WEBPACK_IMPORTED_MODULE_3__.createElement(StyledSubheading,null,subheading):null,showTagsInMetadata&&react__WEBPACK_IMPORTED_MODULE_3__.createElement(StyledInlineTagWrapper,null,renderTags(tags)),metadataRenderer?metadataRenderer(metadata):react__WEBPACK_IMPORTED_MODULE_3__.createElement(_components_Metadata___WEBPACK_IMPORTED_MODULE_9__.A,{rows:metadata}),buttons&&react__WEBPACK_IMPORTED_MODULE_3__.createElement(StyledButtonWrapper,null,buttons),footerRenderer&&react__WEBPACK_IMPORTED_MODULE_3__.createElement(StyledFooterWrapper,null,footerRenderer(footerdata)," "))};CollectionItem.propTypes={headingUrl:prop_types__WEBPACK_IMPORTED_MODULE_13___default().string,headingText:prop_types__WEBPACK_IMPORTED_MODULE_13___default().string.isRequired,subheading:prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_13___default().string,prop_types__WEBPACK_IMPORTED_MODULE_13___default().element]),subheadingUrl:prop_types__WEBPACK_IMPORTED_MODULE_13___default().string,badges:prop_types__WEBPACK_IMPORTED_MODULE_13___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_13___default().shape({text:prop_types__WEBPACK_IMPORTED_MODULE_13___default().string,borderColour:prop_types__WEBPACK_IMPORTED_MODULE_13___default().string})),tags:prop_types__WEBPACK_IMPORTED_MODULE_13___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_13___default().shape({text:prop_types__WEBPACK_IMPORTED_MODULE_13___default().string,colour:prop_types__WEBPACK_IMPORTED_MODULE_13___default().string})),metadata:prop_types__WEBPACK_IMPORTED_MODULE_13___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_13___default().shape({label:prop_types__WEBPACK_IMPORTED_MODULE_13___default().string,key:prop_types__WEBPACK_IMPORTED_MODULE_13___default().string,value:prop_types__WEBPACK_IMPORTED_MODULE_13___default().node.isRequired})),type:prop_types__WEBPACK_IMPORTED_MODULE_13___default().string,metadataRenderer:prop_types__WEBPACK_IMPORTED_MODULE_13___default().func,titleRenderer:prop_types__WEBPACK_IMPORTED_MODULE_13___default().func,buttonRenderer:prop_types__WEBPACK_IMPORTED_MODULE_13___default().func,footerRenderer:prop_types__WEBPACK_IMPORTED_MODULE_13___default().func};const __WEBPACK_DEFAULT_EXPORT__=CollectionItem;CollectionItem.__docgenInfo={description:"",methods:[],displayName:"CollectionItem",props:{titleRenderer:{defaultValue:{value:"null",computed:!1},description:"",type:{name:"func"},required:!1},useReactRouter:{defaultValue:{value:"false",computed:!1},required:!1},showTagsInMetadata:{defaultValue:{value:"false",computed:!1},required:!1},headingUrl:{description:"",type:{name:"string"},required:!1},headingText:{description:"",type:{name:"string"},required:!0},subheading:{description:"",type:{name:"union",value:[{name:"string"},{name:"element"}]},required:!1},subheadingUrl:{description:"",type:{name:"string"},required:!1},badges:{description:"",type:{name:"arrayOf",value:{name:"shape",value:{text:{name:"string",required:!1},borderColour:{name:"string",required:!1}}}},required:!1},tags:{description:"",type:{name:"arrayOf",value:{name:"shape",value:{text:{name:"string",required:!1},colour:{name:"string",required:!1}}}},required:!1},metadata:{description:"",type:{name:"arrayOf",value:{name:"shape",value:{label:{name:"string",required:!1},key:{name:"string",required:!1},value:{name:"node",required:!0}}}},required:!1},type:{description:"",type:{name:"string"},required:!1},metadataRenderer:{description:"",type:{name:"func"},required:!1},buttonRenderer:{description:"",type:{name:"func"},required:!1},footerRenderer:{description:"",type:{name:"func"},required:!1}}}},"./src/client/components/CollectionList/CollectionSort.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>CollectionList_CollectionSort});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.string.search.js");var react=__webpack_require__("./node_modules/react/index.js"),prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),chunk_D52XG6IA=__webpack_require__("./node_modules/react-router/dist/development/chunk-D52XG6IA.mjs"),lib=__webpack_require__("./node_modules/qs/lib/index.js"),lib_default=__webpack_require__.n(lib),styled_components_browser_esm=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),colours=__webpack_require__("./src/client/utils/colours.js"),CollectionHeaderRow=__webpack_require__("./src/client/components/CollectionList/CollectionHeaderRow.jsx"),lodash=(__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/lodash/lodash.js")),Select=__webpack_require__("./src/client/components/Select/index.jsx");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}var _excluded=["qsParamName"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js");var react__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__),govuk_react__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/govuk-react/dist/govuk-react.esm.js"),_client_components_Task__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/client/components/Task/index.jsx"),_components__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./src/client/components/index.jsx");function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e{"use strict";__webpack_require__.d(__webpack_exports__,{X8:()=>ALPHABETICAL,MR:()=>LEAST_RECENT,Ot:()=>RECENT,Ay:()=>CompanyLists_Filters});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var govuk_react_constants_esm=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),govuk_react_input_esm=__webpack_require__("./node_modules/@govuk-react/input/dist/govuk-react-input.esm.js"),govuk_react_select_esm=__webpack_require__("./node_modules/@govuk-react/select/dist/govuk-react-select.esm.js"),govuk_react_grid_row_esm=__webpack_require__("./node_modules/@govuk-react/grid-row/dist/govuk-react-grid-row.esm.js"),govuk_react_grid_col_esm=__webpack_require__("./node_modules/@govuk-react/grid-col/dist/govuk-react-grid-col.esm.js"),react=__webpack_require__("./node_modules/react/index.js"),react_redux=__webpack_require__("./node_modules/react-redux/dist/react-redux.mjs"),styled_components_browser_esm=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),colours=__webpack_require__("./src/client/utils/colours.js"),prop_types=(__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/prop-types/index.js")),prop_types_default=__webpack_require__.n(prop_types),govuk_react_label_esm=__webpack_require__("./node_modules/@govuk-react/label/dist/govuk-react-label.esm.js"),govuk_react_label_text_esm=__webpack_require__("./node_modules/@govuk-react/label-text/dist/govuk-react-label-text.esm.js"),responsive=__webpack_require__("./src/client/utils/responsive.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _defineProperty(e,r,t){return(r=function _toPropertyKey(t){var i=function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var StyledLabel=(0,styled_components_browser_esm.Ay)(govuk_react_label_esm.A)((function(_ref){var justifyRight=_ref.justifyRight;return _defineProperty({display:"flex",flexDirection:"row",alignItems:"center",flexWrap:"wrap"},responsive.q.LARGE_DESKTOP,{flexWrap:"nowrap",justifyContent:justifyRight&&"flex-end"})})),StyledLabelText=(0,styled_components_browser_esm.Ay)(govuk_react_label_text_esm.A)(_defineProperty({width:"100%"},responsive.q.LARGE_DESKTOP,{marginRight:govuk_react_constants_esm.Es.SCALE_2,width:"auto"})),InlineLabel=function InlineLabel(_ref3){var text=_ref3.text,children=_ref3.children,justifyRight=_ref3.justifyRight,name=_ref3.name;return react.createElement(StyledLabel,{justifyRight,htmlFor:name},react.createElement(StyledLabelText,null,text),children)};InlineLabel.propTypes={text:prop_types_default().string.isRequired,children:prop_types_default().node,justifyRight:prop_types_default().bool};const components_InlineLabel=InlineLabel;InlineLabel.__docgenInfo={description:"",methods:[],displayName:"InlineLabel",props:{text:{description:"",type:{name:"string"},required:!0},children:{description:"",type:{name:"node"},required:!1},justifyRight:{description:"",type:{name:"bool"},required:!1}}};var actions=__webpack_require__("./src/client/actions.js"),state=__webpack_require__("./src/client/components/CompanyLists/state.js");function Filters_typeof(o){return Filters_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Filters_typeof(o)}function Filters_defineProperty(e,r,t){return(r=function Filters_toPropertyKey(t){var i=function Filters_toPrimitive(t,r){if("object"!=Filters_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=Filters_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==Filters_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var ALPHABETICAL="alphabetical",RECENT="recent",LEAST_RECENT="least-recent",StyledRoot=(0,styled_components_browser_esm.Ay)(govuk_react_grid_row_esm.A)(Filters_defineProperty({background:colours.P1,padding:"".concat(govuk_react_constants_esm.Es.SCALE_2," ").concat(govuk_react_constants_esm.Es.SCALE_3),flexWrap:"wrap"},responsive.q.LARGE_DESKTOP,{flexWrap:"nowrap"})),StyledCol=(0,styled_components_browser_esm.Ay)(govuk_react_grid_col_esm.Ay)({paddingLeft:0,paddingRight:0,"&:not(:first-child)":Filters_defineProperty({paddingTop:govuk_react_constants_esm.Es.SCALE_2},responsive.q.LARGE_DESKTOP,{paddingTop:0,marginLeft:govuk_react_constants_esm.Es.SCALE_2})}),StyledInput=(0,styled_components_browser_esm.Ay)(govuk_react_input_esm.A)(Filters_defineProperty({width:"100%"},responsive.q.LARGESCREEN,{width:200})),StyledSelect=(0,styled_components_browser_esm.Ay)(govuk_react_select_esm.pp)(Filters_defineProperty({width:"100%"},responsive.q.LARGESCREEN,{width:"auto"})),Filters=function Filters(_ref){var query=_ref.query,orderBy=_ref.orderBy,onSearch=_ref.onSearch,onOrderChange=_ref.onOrderChange,_ref$companyNameId=_ref.companyNameId,companyNameId=void 0===_ref$companyNameId?"company-name":_ref$companyNameId,_ref$sortById=_ref.sortById,sortById=void 0===_ref$sortById?"sort-by":_ref$sortById;return react.createElement(StyledRoot,null,react.createElement(StyledCol,null,react.createElement(components_InlineLabel,{text:"Search this list",name:companyNameId},react.createElement(StyledInput,{value:query||"",placeholder:"Company name",id:companyNameId,onChange:function onChange(e){return onSearch(e.target.value)}}))),react.createElement(StyledCol,null,react.createElement(components_InlineLabel,{text:"Sort by",justifyRight:!0,name:sortById},react.createElement(StyledSelect,{value:orderBy,id:sortById,onChange:function onChange(e){return onOrderChange(e.target.value)}},react.createElement("option",{value:RECENT,"aria-label":"recent interaction"},"Recent interaction"),react.createElement("option",{value:LEAST_RECENT,"aria-label":"least recent interaction"},"Least recent interaction"),react.createElement("option",{value:ALPHABETICAL,"aria-label":"company name a to z"},"Company name A-Z")))))};const CompanyLists_Filters=(0,react_redux.connect)(state.o,(function(dispatch){return{onSearch:function onSearch(query){return dispatch({type:actions.WvE,query})},onOrderChange:function onOrderChange(orderBy){return dispatch({type:actions.OCZ,orderBy})}}}))(Filters);Filters.__docgenInfo={description:"",methods:[],displayName:"Filters",props:{companyNameId:{defaultValue:{value:"'company-name'",computed:!1},required:!1},sortById:{defaultValue:{value:"'sort-by'",computed:!1},required:!1}}}},"./src/client/components/CompanyLists/state.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{ID:()=>ID,o:()=>state2props});var ID="companyLists",state2props=function state2props(state){return state[ID]}},"./src/client/components/CompanyLocalHeader/state.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{ID:()=>ID,oK:()=>state2props,wD:()=>TASK_GET_LISTS_COMPANY_IS_IN,x0:()=>companyState2Props});var TASK_GET_LISTS_COMPANY_IS_IN="TASK_GET_LISTS_COMPANY_IS_IN",ID="companyListsCompanyIn",state2props=function state2props(state){return state[ID]},companyState2Props=function companyState2Props(state){return{csrfToken:state.csrfToken}}},"./src/client/components/ContactInformation/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.string.search.js");var _templateObject,react__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/react/index.js"),govuk_react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/govuk-react/dist/govuk-react.esm.js"),styled_components__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_lib_urls__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./src/lib/urls.js"),_lib_urls__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(_lib_urls__WEBPACK_IMPORTED_MODULE_7__);var StyledDetails=(0,styled_components__WEBPACK_IMPORTED_MODULE_8__.Ay)(govuk_react__WEBPACK_IMPORTED_MODULE_5__.B_)(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n margin-top: ",";\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_6__.Ge[1]),ContactInformation=function ContactInformation(_ref){var onOpenContactForm=_ref.onOpenContactForm,companyId=_ref.companyId,redirectUrl=_lib_urls__WEBPACK_IMPORTED_MODULE_7___default().contacts.create(companyId,{origin_url:window.location.pathname,origin_search:btoa(window.location.search)});return react__WEBPACK_IMPORTED_MODULE_4__.createElement(react__WEBPACK_IMPORTED_MODULE_4__.Fragment,null,"If your contact is not listed"," ",react__WEBPACK_IMPORTED_MODULE_4__.createElement(govuk_react__WEBPACK_IMPORTED_MODULE_5__.N_,{"data-test":"add-a-new-contact-link",onClick:function onClick(e){e.preventDefault(),onOpenContactForm({event:e,redirectUrl})},href:redirectUrl},"add a new contact"),". You will leave this page to enter details, once added you will return here. The information you added will have been saved.",react__WEBPACK_IMPORTED_MODULE_4__.createElement(StyledDetails,{summary:"Information needed to add a new contact","data-test":"contact-information-details"},react__WEBPACK_IMPORTED_MODULE_4__.createElement(govuk_react__WEBPACK_IMPORTED_MODULE_5__.fz,null,"You need:"),react__WEBPACK_IMPORTED_MODULE_4__.createElement(govuk_react__WEBPACK_IMPORTED_MODULE_5__.Xy,{listStyleType:"bullet"},react__WEBPACK_IMPORTED_MODULE_4__.createElement(govuk_react__WEBPACK_IMPORTED_MODULE_5__.ck,null,"full name"),react__WEBPACK_IMPORTED_MODULE_4__.createElement(govuk_react__WEBPACK_IMPORTED_MODULE_5__.ck,null,"job title"),react__WEBPACK_IMPORTED_MODULE_4__.createElement(govuk_react__WEBPACK_IMPORTED_MODULE_5__.ck,null,"email address"),react__WEBPACK_IMPORTED_MODULE_4__.createElement(govuk_react__WEBPACK_IMPORTED_MODULE_5__.ck,null,"phone number"),react__WEBPACK_IMPORTED_MODULE_4__.createElement(govuk_react__WEBPACK_IMPORTED_MODULE_5__.ck,null,"work address if different to the company address"))))};const __WEBPACK_DEFAULT_EXPORT__=ContactInformation;ContactInformation.__docgenInfo={description:"",methods:[],displayName:"ContactInformation"}},"./src/client/components/ContentWithHeading.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var prop_types__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),govuk_react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/govuk-react/dist/govuk-react.esm.js"),styled_components__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_SpacedSectionBreak__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/client/components/SpacedSectionBreak.js"),StyledH2Heading=(0,styled_components__WEBPACK_IMPORTED_MODULE_3__.Ay)(govuk_react__WEBPACK_IMPORTED_MODULE_1__.H2)({flexGrow:1}),StyledH3Heading=(0,styled_components__WEBPACK_IMPORTED_MODULE_3__.Ay)(govuk_react__WEBPACK_IMPORTED_MODULE_1__.H3)({flexGrow:1}),StyledHeader=styled_components__WEBPACK_IMPORTED_MODULE_3__.Ay.div({display:"flex",alignItems:"baseline"}),ContentWithHeading=function ContentWithHeading(_ref){var StyledHeading,heading=_ref.heading,children=_ref.children,headingActions=_ref.headingActions,_ref$level=_ref.level;return StyledHeading="2"==(void 0===_ref$level?3:_ref$level)?react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledH2Heading,{size:24},heading):react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledH3Heading,{size:24},heading),react__WEBPACK_IMPORTED_MODULE_0__.createElement("section",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledHeader,null,StyledHeading,headingActions),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_SpacedSectionBreak__WEBPACK_IMPORTED_MODULE_2__.A,null),children)};ContentWithHeading.propTypes={heading:prop_types__WEBPACK_IMPORTED_MODULE_4___default().node,children:prop_types__WEBPACK_IMPORTED_MODULE_4___default().node,headingComponent:prop_types__WEBPACK_IMPORTED_MODULE_4___default().func};const __WEBPACK_DEFAULT_EXPORT__=ContentWithHeading;ContentWithHeading.__docgenInfo={description:"",methods:[],displayName:"ContentWithHeading",props:{level:{defaultValue:{value:"3",computed:!1},required:!1},heading:{description:"",type:{name:"node"},required:!1},children:{description:"",type:{name:"node"},required:!1},headingComponent:{description:"",type:{name:"func"},required:!1}}}},"./src/client/components/Dashboard/my-tasks/constants.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Js:()=>STATUS_LIST_OPTIONS,P$:()=>SORT_BY_LIST_OPTIONS,l4:()=>ME_OTHERS_LIST_OPTIONS,sl:()=>SHOW_ALL_OPTION});__webpack_require__("./node_modules/core-js/modules/es.array.concat.js");var SORT_BY_LIST_OPTIONS=[{label:"Due date",value:"due_date"},{label:"Recently updated",value:"recently_updated"},{label:"Least recently updated",value:"least_recently_updated"},{label:"Company A-Z",value:"company_ascending"},{label:"Project A-Z",value:"project_ascending"}],SHOW_ALL_OPTION={label:"Show all",value:"all-statuses"},ME_OTHERS_LIST_OPTIONS=[SHOW_ALL_OPTION].concat([{label:"Me",value:"me"},{label:"Others",value:"others"}]),STATUS_LIST_OPTIONS=[SHOW_ALL_OPTION].concat([{label:"Active",value:"active"},{label:"Completed",value:"completed"}])},"./src/client/components/Dashboard/my-tasks/state.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{ID:()=>ID,L:()=>TASK_GET_MY_TASKS,o:()=>state2props});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js");var lodash__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./node_modules/lodash/lodash.js"),_client_utils_url__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./src/client/utils/url.js"),_client_utils_pagination__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./src/client/utils/pagination.js"),_constants__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./src/client/components/Dashboard/my-tasks/constants.js"),_modules_Tasks_TaskForm_constants__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./src/client/modules/Tasks/TaskForm/constants.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}var _excluded=["router"];function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>components_DataHubHeader});var react=__webpack_require__("./node_modules/react/index.js"),prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),react_redux=__webpack_require__("./node_modules/react-redux/dist/react-redux.mjs"),styled_components_browser_esm=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),govuk_react_esm=__webpack_require__("./node_modules/govuk-react/dist/govuk-react.esm.js"),colours=__webpack_require__("./src/client/utils/colours.js"),chunk_D52XG6IA=(__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.bold.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/react-router/dist/development/chunk-D52XG6IA.mjs")),govuk_react_visually_hidden_esm=__webpack_require__("./node_modules/@govuk-react/visually-hidden/dist/govuk-react-visually-hidden.esm.js"),lib=__webpack_require__("./node_modules/qs/lib/index.js"),lib_default=__webpack_require__.n(lib),govuk_react_constants_esm=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),state=(__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./src/client/components/NotificationAlert/state.js")),actions=__webpack_require__("./src/client/actions.js"),_excluded=(__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),["id"]);function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e0?react.createElement(StyledShape,{size:NotificationBadge.or.SMALL,digits:count.toString().length,"aria-label":"notification-alert-badge","data-test":"notification-alert-badge"},react.createElement(NotificationBadge.y_,null,count<100?count:"99+")):null})))};NotificationAlert.propTypes={count:prop_types_default().number.isRequired,remindersURL:prop_types_default().string.isRequired};const components_NotificationAlert=(0,react_redux.connect)(state.o)(NotificationAlert);NotificationAlert.__docgenInfo={description:"",methods:[],displayName:"NotificationAlert",props:{count:{description:"",type:{name:"number"},required:!0},remindersURL:{description:"",type:{name:"string"},required:!0}}};var urls=__webpack_require__("./src/lib/urls.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js");var react__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_18___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_18__),_govuk_react_input__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./node_modules/@govuk-react/input/dist/govuk-react-input.esm.js"),_Form_elements_FieldWrapper__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("./src/client/components/Form/elements/FieldWrapper/index.jsx"),_excluded=["onChange","name","label","legend","hint","initialValue","type"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;er.length)&&(a=r.length);for(var e=0,n=Array(a);e {}",computed:!1},description:"",type:{name:"func"},required:!1},type:{defaultValue:{value:"'date'",computed:!1},required:!1},name:{description:"",type:{name:"string"},required:!0},label:{description:"",type:{name:"node"},required:!1},legend:{description:"",type:{name:"node"},required:!1},hint:{description:"",type:{name:"string"},required:!1},initialValue:{description:"",type:{name:"string"},required:!1}}}},"./src/client/components/DownloadDataHeader/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js");var _templateObject,react__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_13__),styled_components__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),govuk_react__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/govuk-react/dist/govuk-react.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_utils_number_utils__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./src/client/utils/number-utils.js"),_CollectionList_CollectionHeaderRow__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./src/client/components/CollectionList/CollectionHeaderRow.jsx"),_excluded=["downloadLink","count","maxItems","entityName","entityNamePlural"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e=maxItems)return react__WEBPACK_IMPORTED_MODULE_7__.createElement(_CollectionList_CollectionHeaderRow__WEBPACK_IMPORTED_MODULE_11__.A,props,"Filter to fewer than ",(0,_utils_number_utils__WEBPACK_IMPORTED_MODULE_10__._)(maxItems)," ",entityNamePlural," to download");var downloadAction=react__WEBPACK_IMPORTED_MODULE_7__.createElement(govuk_react__WEBPACK_IMPORTED_MODULE_8__.$n,{key:"download",as:StyledLink,href:downloadLink,download:!0},"Download");return react__WEBPACK_IMPORTED_MODULE_7__.createElement(_CollectionList_CollectionHeaderRow__WEBPACK_IMPORTED_MODULE_11__.A,_extends({actions:[downloadAction]},props),"You can now download"," ",1===count?"this ".concat(entityName):"these ".concat(count," ").concat(entityNamePlural))};DownloadDataHeader.propTypes={downloadLink:prop_types__WEBPACK_IMPORTED_MODULE_13___default().string,count:prop_types__WEBPACK_IMPORTED_MODULE_13___default().number,maxItems:prop_types__WEBPACK_IMPORTED_MODULE_13___default().number,entityName:prop_types__WEBPACK_IMPORTED_MODULE_13___default().string,entityNamePlural:prop_types__WEBPACK_IMPORTED_MODULE_13___default().string};const __WEBPACK_DEFAULT_EXPORT__=DownloadDataHeader;DownloadDataHeader.__docgenInfo={description:"",methods:[],displayName:"DownloadDataHeader",props:{count:{defaultValue:{value:"0",computed:!1},description:"",type:{name:"number"},required:!1},maxItems:{defaultValue:{value:"5000",computed:!1},description:"",type:{name:"number"},required:!1},entityName:{defaultValue:{value:"''",computed:!1},description:"",type:{name:"string"},required:!1},entityNamePlural:{description:"",type:{name:"string"},required:!1},downloadLink:{description:"",type:{name:"string"},required:!1}}}},"./src/client/components/Effect.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.array.map.js");var react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/index.js");const __WEBPACK_DEFAULT_EXPORT__=function Effect(_ref){var dependencyList=_ref.dependencyList,effect=_ref.effect;return(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(effect,null==dependencyList?void 0:dependencyList.map(JSON.stringify)),null}},"./src/client/components/EntityList/EntityListItem.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js");var _templateObject,_templateObject2,_templateObject3,react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_10__),lodash__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/lodash/lodash.js"),styled_components__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_govuk_react_heading__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@govuk-react/heading/dist/govuk-react-heading.esm.js"),_govuk_react_inset_text__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@govuk-react/inset-text/dist/govuk-react-inset-text.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./src/client/utils/colours.js"),_components_Metadata___WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./src/client/components/Metadata/index.jsx");function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var StyledEntity=(0,styled_components__WEBPACK_IMPORTED_MODULE_9__.Ay)("div")(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n margin-bottom: ",";\n padding: ",";\n border: 1px solid ",";\n ",";\n\n &[role='button'] {\n cursor: pointer;\n\n h3 {\n color: ",";\n }\n\n &:hover {\n border: 1px solid ",";\n background-color: ",";\n\n & > h3 {\n color: ",";\n }\n }\n }\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__.Es.SCALE_2,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__.Es.SCALE_2,_client_utils_colours__WEBPACK_IMPORTED_MODULE_7__.Pe,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__.bs,_client_utils_colours__WEBPACK_IMPORTED_MODULE_7__.yV,_client_utils_colours__WEBPACK_IMPORTED_MODULE_7__.FY,_client_utils_colours__WEBPACK_IMPORTED_MODULE_7__.P1,_client_utils_colours__WEBPACK_IMPORTED_MODULE_7__.FY),StyledHeading=(0,styled_components__WEBPACK_IMPORTED_MODULE_9__.Ay)(_govuk_react_heading__WEBPACK_IMPORTED_MODULE_5__.H3)(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n font-size: ",";\n margin: 0 0 ",";\n "," {\n font-size: ",";\n }\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__.SG.SIZE_16,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__.Es.SCALE_2,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__.qs.TABLET,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__.SG.SIZE_19),StyledInsetText=(0,styled_components__WEBPACK_IMPORTED_MODULE_9__.Ay)(_govuk_react_inset_text__WEBPACK_IMPORTED_MODULE_6__.A)(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n & {\n margin-top: ",";\n }\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__.Es.SCALE_2),EntityListItem=function EntityListItem(_ref){var id=_ref.id,onEntityClick=_ref.onEntityClick,_ref$data=_ref.data,data=void 0===_ref$data?{}:_ref$data,text=_ref.text,heading=_ref.heading,_ref$meta=_ref.meta,meta=void 0===_ref$meta?[]:_ref$meta,isClickable=!!onEntityClick;return react__WEBPACK_IMPORTED_MODULE_2__.createElement(StyledEntity,{key:"entity_".concat(id),tabIndex:isClickable?0:void 0,role:isClickable?"button":void 0,onClick:function onClick(){return isClickable&&onEntityClick(data)},onKeyDown:function onKeyDown(e){return isClickable&&13===e.keyCode&&onEntityClick(data)}},heading&&react__WEBPACK_IMPORTED_MODULE_2__.createElement(StyledHeading,null,heading),!(0,lodash__WEBPACK_IMPORTED_MODULE_3__.isEmpty)(meta)&&react__WEBPACK_IMPORTED_MODULE_2__.createElement(_components_Metadata___WEBPACK_IMPORTED_MODULE_8__.A,{rows:meta}),text&&react__WEBPACK_IMPORTED_MODULE_2__.createElement(StyledInsetText,null,text))};EntityListItem.propTypes={id:prop_types__WEBPACK_IMPORTED_MODULE_10___default().string.isRequired,onEntityClick:prop_types__WEBPACK_IMPORTED_MODULE_10___default().func,data:prop_types__WEBPACK_IMPORTED_MODULE_10___default().shape({}),text:prop_types__WEBPACK_IMPORTED_MODULE_10___default().node,heading:prop_types__WEBPACK_IMPORTED_MODULE_10___default().string,meta:prop_types__WEBPACK_IMPORTED_MODULE_10___default().array};const __WEBPACK_DEFAULT_EXPORT__=EntityListItem;EntityListItem.__docgenInfo={description:"",methods:[],displayName:"EntityListItem",props:{data:{defaultValue:{value:"{}",computed:!1},description:"",type:{name:"shape",value:{}},required:!1},meta:{defaultValue:{value:"[]",computed:!1},description:"",type:{name:"array"},required:!1},id:{description:"",type:{name:"string"},required:!0},onEntityClick:{description:"",type:{name:"func"},required:!1},text:{description:"",type:{name:"node"},required:!1},heading:{description:"",type:{name:"string"},required:!1}}}},"./src/client/components/EntityList/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js");var _templateObject,_templateObject2,react__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__),styled_components__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_EntityListItem__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/client/components/EntityList/EntityListItem.jsx");function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var StyledEntityList=(0,styled_components__WEBPACK_IMPORTED_MODULE_6__.Ay)("ol")(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n margin-bottom: ",";\n padding-left: 0;\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__.Es.SCALE_4),StyledEntityListItem=(0,styled_components__WEBPACK_IMPORTED_MODULE_6__.Ay)("li")(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n list-style-type: none;\n"]))),EntityList=function EntityList(_ref){var entities=_ref.entities,Component=_ref.entityRenderer||_EntityListItem__WEBPACK_IMPORTED_MODULE_5__.A;return react__WEBPACK_IMPORTED_MODULE_3__.createElement(StyledEntityList,{"aria-live":"polite","data-test":"entity-list"},entities.map((function(entity){return react__WEBPACK_IMPORTED_MODULE_3__.createElement(StyledEntityListItem,{"data-test":"entity-list-item",key:"entity-list-item_".concat(entity.id)},react__WEBPACK_IMPORTED_MODULE_3__.createElement(Component,entity))})))};EntityList.propTypes={entities:prop_types__WEBPACK_IMPORTED_MODULE_7___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_7___default().shape({id:prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_7___default().string,prop_types__WEBPACK_IMPORTED_MODULE_7___default().number]).isRequired,heading:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string.isRequired,meta:prop_types__WEBPACK_IMPORTED_MODULE_7___default().array.isRequired,data:prop_types__WEBPACK_IMPORTED_MODULE_7___default().object.isRequired})).isRequired,entityRenderer:prop_types__WEBPACK_IMPORTED_MODULE_7___default().func};const __WEBPACK_DEFAULT_EXPORT__=EntityList;EntityList.__docgenInfo={description:"",methods:[],displayName:"EntityList",props:{entities:{description:"",type:{name:"arrayOf",value:{name:"shape",value:{id:{name:"union",value:[{name:"string"},{name:"number"}],required:!0},heading:{name:"string",required:!0},meta:{name:"array",required:!0},data:{name:"object",required:!0}}}},required:!0},entityRenderer:{description:"",type:{name:"func"},required:!1}}}},"./src/client/components/EntityList/useDnbSearch.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.async-iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.json.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.math.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-prototype-of.js"),__webpack_require__("./node_modules/core-js/modules/es.object.set-prototype-of.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.promise.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var lodash__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./node_modules/lodash/lodash.js"),axios__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./node_modules/axios/lib/axios.js"),_utils_addresses__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./src/client/utils/addresses.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _regeneratorRuntime(){_regeneratorRuntime=function _regeneratorRuntime(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{define({},"")}catch(t){define=function define(t,e,r){return t[e]=r}}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,(function(){return this}));var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach((function(e){define(t,e,(function(t){return this._invoke(e,t)}))}))}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){invoke("next",t,i,a)}),(function(t){invoke("throw",t,i,a)})):e.resolve(h).then((function(t){u.value=t,i(u)}),(function(t){return invoke("throw",t,i,a)}))}a(c.arg)}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e((function(e,r){invoke(t,n,e,r)}))}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done}}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg)}}}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value}catch(n){return void e(n)}i.done?t(u):Promise.resolve(u).then(r,o)}function getTradingNames(dnb_company){return(0,lodash__WEBPACK_IMPORTED_MODULE_19__.isEmpty)(dnb_company.trading_names)?null:{label:"Trading name(s)",value:dnb_company.trading_names.join(", ")}}function getAddress(dnb_company,features){return{label:"Location at",value:(0,_utils_addresses__WEBPACK_IMPORTED_MODULE_20__.getCompanyAddress)(dnb_company,features)}}const __WEBPACK_DEFAULT_EXPORT__=function useDnbSearch(apiEndpoint,features){function transformCompanyRecord(record){var dnb_company=record.dnb_company;return{id:dnb_company.duns_number,heading:dnb_company.primary_name,meta:(0,lodash__WEBPACK_IMPORTED_MODULE_19__.compact)([getTradingNames(dnb_company),getAddress(dnb_company,features)]),data:record}}function _findCompany(){return _findCompany=function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise((function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n)}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n)}_next(void 0)}))}}(_regeneratorRuntime().mark((function _callee(filters){var _yield$axios$post,data;return _regeneratorRuntime().wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:return _context.next=2,axios__WEBPACK_IMPORTED_MODULE_21__.A.post(apiEndpoint,filters);case 2:return _yield$axios$post=_context.sent,data=_yield$axios$post.data,_context.abrupt("return",data.results.map(transformCompanyRecord));case 5:case"end":return _context.stop()}}),_callee)}))),_findCompany.apply(this,arguments)}return{findCompany:function findCompany(_x){return _findCompany.apply(this,arguments)},transformCompanyRecord}}},"./src/client/components/ErrorSummary/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js");var react__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_31__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_31___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_31__),styled_components__WEBPACK_IMPORTED_MODULE_30__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_heading__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./node_modules/@govuk-react/heading/dist/govuk-react-heading.esm.js"),_govuk_react_paragraph__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./node_modules/@govuk-react/paragraph/dist/govuk-react-paragraph.esm.js"),_govuk_react_unordered_list__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./node_modules/@govuk-react/unordered-list/dist/govuk-react-unordered-list.esm.js"),_govuk_react_link__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("./node_modules/@govuk-react/link/dist/govuk-react-link.esm.js"),_govuk_react_list_item__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./node_modules/@govuk-react/list-item/dist/govuk-react-list-item.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_govuk_react_lib__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("./node_modules/@govuk-react/lib/dist/govuk-react-lib.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("./src/client/utils/colours.js"),_styles__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__("./src/client/styles.js"),_excluded=["heading","description","errors"];function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e0&&react__WEBPACK_IMPORTED_MODULE_20__.createElement(_govuk_react_unordered_list__WEBPACK_IMPORTED_MODULE_23__.A,{mb:0,listStyleType:"none"},errors.map((function(_ref2){var targetName=_ref2.targetName,text=_ref2.text;return react__WEBPACK_IMPORTED_MODULE_20__.createElement(_govuk_react_list_item__WEBPACK_IMPORTED_MODULE_25__.A,{key:targetName},react__WEBPACK_IMPORTED_MODULE_20__.createElement(StyledErrorText,{href:"#field-".concat(targetName)},text))}))))}));ErrorSummary.propTypes={heading:prop_types__WEBPACK_IMPORTED_MODULE_31___default().string,description:prop_types__WEBPACK_IMPORTED_MODULE_31___default().string,errors:prop_types__WEBPACK_IMPORTED_MODULE_31___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_31___default().shape({targetName:prop_types__WEBPACK_IMPORTED_MODULE_31___default().string.isRequired,text:prop_types__WEBPACK_IMPORTED_MODULE_31___default().string.isRequired}).isRequired)};const __WEBPACK_DEFAULT_EXPORT__=ErrorSummary;ErrorSummary.__docgenInfo={description:"When a user makes an error, you must show both an error summary and an error message next to each answer that contains an error. More information can be found on the [GDS Design system](https://design-system.service.gov.uk/components/error-summary/)\n\nUse this component at the top of a page to summarise any errors a user has made.",methods:[],displayName:"ErrorSummary",props:{heading:{defaultValue:{value:"'There is a problem'",computed:!1},description:"Text for the heading",type:{name:"string"},required:!1},description:{defaultValue:{value:"null",computed:!1},description:"Text for description",type:{name:"string"},required:!1},errors:{description:"The list of error descriptions and their target id's",type:{name:"arrayOf",value:{name:"shape",value:{targetName:{name:"string",required:!0},text:{name:"string",required:!0}}}},required:!1}}}},"./src/client/components/FilterLabel.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.string.bold.js");var styled_components__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/client/utils/colours.js");const __WEBPACK_DEFAULT_EXPORT__=styled_components__WEBPACK_IMPORTED_MODULE_3__.Ay.label({"-webkit-font-smoothing":"antialiased",fontWeight:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_1__.sO.bold,fontSize:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_1__.SG.SIZE_16,display:"block",color:_client_utils_colours__WEBPACK_IMPORTED_MODULE_2__.Uv})},"./src/client/components/Footer/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{h:()=>Footer});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.object.entries.js");var react=__webpack_require__("./node_modules/react/index.js"),styled_components_browser_esm=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),govuk_react_lib_esm=__webpack_require__("./node_modules/@govuk-react/lib/dist/govuk-react-lib.esm.js"),govuk_react_constants_esm=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),colours=__webpack_require__("./src/client/utils/colours.js");const govuk_crest_namespaceObject=__webpack_require__.p+"static/media/govuk-crest.f43f639a.svg";var _templateObject,_templateObject2,_templateObject3,_templateObject4,urls=__webpack_require__("./src/lib/urls.js"),urls_default=__webpack_require__.n(urls),Main=__webpack_require__("./src/client/components/Main/index.jsx"),_excluded=["links"];function _slicedToArray(r,e){return function _arrayWithHoles(r){if(Array.isArray(r))return r}(r)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(r,e)||function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0}}(r,e)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e` element\nwhich wraps this component.\n@param {Record} [props.links = typeof LINKS] - bla",methods:[],displayName:"Footer",props:{links:{defaultValue:{value:"{\n 'Request support': urls.support(),\n 'Help centre': urls.external.helpCentre.dhHomepage,\n 'Privacy notice': urls.external.helpCentre.privacyNotice,\n Cookies: urls.external.helpCentre.cookies,\n 'Accessibility statement': urls.external.helpCentre.accessibilityStatement,\n}",computed:!1},required:!1}}}},"./src/client/components/Form/elements/FieldAddAnother/FieldAddAnother.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>FieldAddAnother_FieldAddAnother});__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js");var lodash=__webpack_require__("./node_modules/lodash/lodash.js"),lodash_default=__webpack_require__.n(lodash),react=__webpack_require__("./node_modules/react/index.js"),prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),styled_components_browser_esm=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),govuk_react_link_esm=__webpack_require__("./node_modules/@govuk-react/link/dist/govuk-react-link.esm.js"),govuk_react_constants_esm=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),number_utils=__webpack_require__("./src/client/utils/number-utils.js"),SecondaryButton=__webpack_require__("./src/client/components/SecondaryButton.jsx"),FieldWrapper=__webpack_require__("./src/client/components/Form/elements/FieldWrapper/index.jsx"),multiinstance=__webpack_require__("./src/client/utils/multiinstance.js"),actions=__webpack_require__("./src/client/actions.js");__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r1&&react.createElement(StyledLink,null,react.createElement(govuk_react_link_esm.A,{href:"#","aria-label":"Remove ".concat((0,number_utils.hx)(index)," ").concat(itemName),onClick:function onClick(event){event.preventDefault(),remove(fieldGroupId,initialChildGroupCount)}},"Remove")))})),fieldGroupIds.length0&&void 0!==arguments[0]?arguments[0]:{},_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,initialChildGroupCount=_ref.initialChildGroupCount,fieldGroupId=_ref.fieldGroupId,_state$items=state.items,items=void 0===_state$items?lodash_default()(initialChildGroupCount).range().keyBy().value():_state$items,_state$currentId=state.currentId,currentId=void 0===_state$currentId?initialChildGroupCount:_state$currentId;switch(type){case actions.yMX:return{currentId:currentId+1,items:_objectSpread(_objectSpread({},items),{},_defineProperty({},currentId,currentId))};case actions.xOm:var itemsCopy=_objectSpread({},items);return delete itemsCopy[fieldGroupId],_objectSpread(_objectSpread({},state),{},{items:itemsCopy});default:return state}}})},"./src/client/components/Form/elements/FieldAddAnother/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js");var react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/react/index.js"),_FieldAddAnother__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./src/client/components/Form/elements/FieldAddAnother/FieldAddAnother.jsx"),_excluded=["id","name"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.link.js");var react__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_34__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_34___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_34__),_govuk_react_multi_choice__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("./node_modules/@govuk-react/multi-choice/dist/govuk-react-multi-choice.esm.js"),styled_components__WEBPACK_IMPORTED_MODULE_33__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_Checkbox__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__("./src/client/components/Checkbox/index.jsx"),_hooks_useField__WEBPACK_IMPORTED_MODULE_30__=__webpack_require__("./src/client/components/Form/hooks/useField.js"),_FieldWrapper__WEBPACK_IMPORTED_MODULE_31__=__webpack_require__("./src/client/components/Form/elements/FieldWrapper/index.jsx"),_hooks__WEBPACK_IMPORTED_MODULE_32__=__webpack_require__("./src/client/components/Form/hooks/index.jsx");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}var _excluded=["name","validate","required","label","legend","bigLegend","boldLabel","hint","options","initialValue","exclusive"],_excluded2=["value","label","children","link"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;er.length)&&(a=r.length);for(var e=0,n=Array(a);e{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js");var react__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_32__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_32___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_32__),_govuk_react_multi_choice__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./node_modules/@govuk-react/multi-choice/dist/govuk-react-multi-choice.esm.js"),_govuk_react_checkbox__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("./node_modules/@govuk-react/checkbox/dist/govuk-react-checkbox.esm.js"),_govuk_react_radio__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("./node_modules/@govuk-react/radio/dist/govuk-react-radio.esm.js"),lodash__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__("./node_modules/lodash/lodash.js"),_hooks__WEBPACK_IMPORTED_MODULE_30__=__webpack_require__("./src/client/components/Form/hooks/index.jsx"),_FieldWrapper__WEBPACK_IMPORTED_MODULE_31__=__webpack_require__("./src/client/components/Form/elements/FieldWrapper/index.jsx");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}var _excluded=["name","type","options","validate","required","label","legend","hint"],_excluded2=["yesLabel","noLabel"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;er.length)&&(a=r.length);for(var e=0,n=Array(a);e{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js");var react__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_16___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_16__),lodash__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/lodash/lodash.js"),styled_components__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),govuk_react__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/govuk-react/dist/govuk-react.esm.js"),_FieldTypeahead__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./src/client/components/Form/elements/FieldTypeahead/index.jsx"),_Task_utils__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./src/client/components/Task/utils.js"),_Typeahead_Highlighter__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./src/client/components/Typeahead/Highlighter.jsx"),_Tag__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./src/client/components/Tag/index.jsx"),_excluded=["name","label","required","isMulti","onlyShowActiveCompanies","placeholder","loadOptions"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js");var _templateObject,_templateObject2,_templateObject3,react__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_28___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_28__),styled_components__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),lodash__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./node_modules/lodash/lodash.js"),_govuk_react_input__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./node_modules/@govuk-react/input/dist/govuk-react-input.esm.js"),_govuk_react_error_text__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./node_modules/@govuk-react/error-text/dist/govuk-react-error-text.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./src/client/utils/colours.js"),_hooks__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./src/client/components/Form/hooks/index.jsx"),_FieldWrapper__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("./src/client/components/Form/elements/FieldWrapper/index.jsx"),_client_components_Form_validators__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./src/client/components/Form/validators.js"),_utils_number_utils__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./src/client/utils/number-utils.js"),_excluded=["name","validate","required","label","text","legend","hint","initialValue","reduced","boldLabel","currencySymbol"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;er.length)&&(a=r.length);for(var e=0,n=Array(a);e * {\n height: 100%;\n }\n"]))),FieldCurrency=function FieldCurrency(_ref){var name=_ref.name,_ref$validate=_ref.validate,validate=void 0===_ref$validate?function(value){return(0,_client_components_Form_validators__WEBPACK_IMPORTED_MODULE_25__.ai)(value,"Value must be a number")}:_ref$validate,required=_ref.required,label=_ref.label,text=_ref.text,legend=_ref.legend,hint=_ref.hint,_ref$initialValue=_ref.initialValue,initialValue=void 0===_ref$initialValue?"":_ref$initialValue,reduced=_ref.reduced,_ref$boldLabel=_ref.boldLabel,boldLabel=void 0===_ref$boldLabel||_ref$boldLabel,_ref$currencySymbol=_ref.currencySymbol,currencySymbol=void 0===_ref$currencySymbol?"£":_ref$currencySymbol,rest=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r number(value, 'Value must be a number')",computed:!1},description:"Validate functions for input",type:{name:"union",value:[{name:"func"},{name:"arrayOf",value:{name:"func"}}]},required:!1},initialValue:{defaultValue:{value:"''",computed:!1},description:"Sets initial value of the input",type:{name:"union",value:[{name:"string"},{name:"number"}]},required:!1},boldLabel:{defaultValue:{value:"true",computed:!1},description:"Boolean for rendering the label in bold or not",type:{name:"bool"},required:!1},currencySymbol:{defaultValue:{value:"'£'",computed:!1},description:"Sets the value for the currency prefix",type:{name:"string"},required:!1},name:{description:"Text for name attribute value",type:{name:"string"},required:!0},required:{description:"Text 'required' sets whether the input is required or not",type:{name:"string"},required:!1},label:{description:"Text for the label element",type:{name:"node"},required:!1},legend:{description:"Node for legend element",type:{name:"node"},required:!1},hint:{description:"Node for hint element",type:{name:"node"},required:!1},reduced:{description:"Toggles whether the element is a filter or not",type:{name:"bool"},required:!1}}}},"./src/client/components/Form/elements/FieldDate/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js");var react__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_36__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_36___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_36__),lodash__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./node_modules/lodash/lodash.js"),styled_components__WEBPACK_IMPORTED_MODULE_35__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_error_text__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./node_modules/@govuk-react/error-text/dist/govuk-react-error-text.esm.js"),_govuk_react_label__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("./node_modules/@govuk-react/label/dist/govuk-react-label.esm.js"),_govuk_react_input__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("./node_modules/@govuk-react/input/dist/govuk-react-input.esm.js"),_govuk_react_label_text__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__("./node_modules/@govuk-react/label-text/dist/govuk-react-label-text.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_30__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_31__=__webpack_require__("./src/client/utils/colours.js"),_FieldWrapper__WEBPACK_IMPORTED_MODULE_32__=__webpack_require__("./src/client/components/Form/elements/FieldWrapper/index.jsx"),_hooks_useField__WEBPACK_IMPORTED_MODULE_33__=__webpack_require__("./src/client/components/Form/hooks/useField.js"),_hooks__WEBPACK_IMPORTED_MODULE_34__=__webpack_require__("./src/client/components/Form/hooks/index.jsx");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}var _templateObject,_templateObject2,_excluded=["name","label","legend","hint","validate","initialValue","labels","required","invalid","format","reduced"];function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;rr.length)&&(a=r.length);for(var e=0,n=Array(a);e{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js");var _templateObject,_templateObject2,react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__),styled_components__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_govuk_react_details__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@govuk-react/details/dist/govuk-react-details.esm.js"),_client_components___WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/client/components/index.jsx");function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var ItemWrapper=(0,styled_components__WEBPACK_IMPORTED_MODULE_6__.Ay)("div")(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n padding: 0;\n"]))),StyledDetails=(0,styled_components__WEBPACK_IMPORTED_MODULE_6__.Ay)(_govuk_react_details__WEBPACK_IMPORTED_MODULE_4__.A)(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n margin: -"," 0 "," 0;\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_3__.Es.SCALE_4,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_3__.Es.SCALE_5),FieldHelp=function FieldHelp(_ref){var helpSummary=_ref.helpSummary,helpText=_ref.helpText,footerUrl=_ref.footerUrl,footerUrlDescription=_ref.footerUrlDescription,open=_ref.open;return react__WEBPACK_IMPORTED_MODULE_2__.createElement(ItemWrapper,null,react__WEBPACK_IMPORTED_MODULE_2__.createElement(StyledDetails,{summary:helpSummary,open},helpText,footerUrl&&react__WEBPACK_IMPORTED_MODULE_2__.createElement(react__WEBPACK_IMPORTED_MODULE_2__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_2__.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_2__.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_2__.createElement(_client_components___WEBPACK_IMPORTED_MODULE_5__.bv,{href:footerUrl},footerUrlDescription))))};FieldHelp.propTypes={helpSummary:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string.isRequired,helpText:prop_types__WEBPACK_IMPORTED_MODULE_7___default().node.isRequired,footerUrl:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string,footerDescription:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string,open:prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool};const __WEBPACK_DEFAULT_EXPORT__=FieldHelp;FieldHelp.__docgenInfo={description:"",methods:[],displayName:"FieldHelp",props:{helpSummary:{description:"",type:{name:"string"},required:!0},helpText:{description:"",type:{name:"node"},required:!0},footerUrl:{description:"",type:{name:"string"},required:!1},footerDescription:{description:"",type:{name:"string"},required:!1},open:{description:"",type:{name:"bool"},required:!1}}}},"./src/client/components/Form/elements/FieldInput/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js");var _templateObject,react__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_17___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_17__),styled_components__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),lodash__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/lodash/lodash.js"),_govuk_react_input__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/@govuk-react/input/dist/govuk-react-input.esm.js"),_govuk_react_error_text__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./node_modules/@govuk-react/error-text/dist/govuk-react-error-text.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./src/client/utils/colours.js"),_hooks__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./src/client/components/Form/hooks/index.jsx"),_FieldWrapper__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./src/client/components/Form/elements/FieldWrapper/index.jsx"),_excluded=["name","type","validate","required","label","text","legend","hint","initialValue","reduced","dataTest"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js");var react__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_10__),lodash__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/lodash/lodash.js"),_FieldTypeahead__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./src/client/components/Form/elements/FieldTypeahead/index.jsx"),_Task_utils__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./src/client/components/Task/utils.js"),_excluded=["name","label","required","placeholder","company"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.string.link.js");var react__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_31__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_31___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_31__),_govuk_react_radio__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./node_modules/@govuk-react/radio/dist/govuk-react-radio.esm.js"),_govuk_react_multi_choice__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./node_modules/@govuk-react/multi-choice/dist/govuk-react-multi-choice.esm.js"),styled_components__WEBPACK_IMPORTED_MODULE_30__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),lodash__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("./node_modules/lodash/lodash.js"),_hooks__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("./src/client/components/Form/hooks/index.jsx"),_FieldWrapper__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__("./src/client/components/Form/elements/FieldWrapper/index.jsx");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}var _templateObject,_templateObject2,_excluded=["name","validate","required","label","legend","bigLegend","hint","inline","initialValue","options"],_excluded2=["label","value","children","link"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.find.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js");var react__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_29___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_29__),_govuk_react_select__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./node_modules/@govuk-react/select/dist/govuk-react-select.esm.js"),_govuk_react_label_text__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("./node_modules/@govuk-react/label-text/dist/govuk-react-label-text.esm.js"),styled_components__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_hooks__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./src/client/components/Form/hooks/index.jsx"),_FieldWrapper__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./src/client/components/Form/elements/FieldWrapper/index.jsx"),_utils_colours__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("./src/client/utils/colours.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}var _templateObject,_excluded=["name","label","legend","hint","validate","required","initialValue","options","emptyOption","fullWidth","boldLabel","className","style"];function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r and not the\n label which is wrapping it, otherwise the caret will be misplaced when the\n label texts spans multiple lines. We can't use an ::after pseudo element as\n it doesn't work with as this is a @govuk-react component.\n\n The solution is to draw the carret to the background of the and we also can't add a wrapper to the\n with a\n combination of linear gradients. The gradient can be configured with the\n following parameters:\n */\n --caret-height: 10px;\n --stroke-width: 2px;\n --stroke-colour: ",";\n // Can't be transparent\n --mask-colour: ",";\n\n --_bg-pos-and-size: right calc(50% + var(--caret-height) / 2) /\n calc(var(--caret-height) * 4) calc(var(--caret-height) * 4) no-repeat;\n\n background:\n // Left wing START\n // Top mask (clips the caret wing)\n linear-gradient(-45deg, transparent calc(75%), 0, var(--mask-colour))\n var(--_bg-pos-and-size),\n // Bottom mask (clips the bottom part of the stroke, just after the two strokes cross)\n linear-gradient(\n -45deg,\n var(--mask-colour) calc(50% - var(--stroke-width) / 2),\n 0,\n transparent calc(50% + var(--stroke-width) / 2),\n 0,\n transparent\n )\n var(--_bg-pos-and-size),\n // Stroke\n linear-gradient(\n 45deg,\n transparent calc(50% - var(--stroke-width) / 2),\n 0,\n var(--stroke-colour) calc(50% + var(--stroke-width) / 2),\n 0,\n transparent\n )\n var(--_bg-pos-and-size),\n // Left wing END\n // Righ wing START\n // Top mask (clips the caret wing)\n linear-gradient(45deg, transparent calc(75%), 0, var(--mask-colour))\n var(--_bg-pos-and-size),\n // Bottom mask (clips the bottom part of the stroke, just after the two strokes cross)\n linear-gradient(\n 45deg,\n var(--mask-colour) calc(50% - var(--stroke-width) / 2),\n 0,\n transparent calc(50% + var(--stroke-width) / 2),\n 0,\n transparent\n )\n var(--_bg-pos-and-size),\n // Stroke\n linear-gradient(\n -45deg,\n transparent calc(50% - var(--stroke-width) / 2),\n 0,\n var(--stroke-colour) calc(50% + var(--stroke-width) / 2),\n 0,\n transparent\n )\n var(--_bg-pos-and-size);\n // Righ wing END\n }\n /*\n We hide the label if it's empty, because it still contributes to the element's\n height.\n */\n ",":empty {\n display: none;\n }\n"])),_govuk_react_select__WEBPACK_IMPORTED_MODULE_23__.pp,(function(_ref){return _ref.fullWidth&&"width: 100%;"}),_utils_colours__WEBPACK_IMPORTED_MODULE_27__.Uv,_utils_colours__WEBPACK_IMPORTED_MODULE_27__.UE,_govuk_react_label_text__WEBPACK_IMPORTED_MODULE_24__.A),FieldSelect=function FieldSelect(_ref2){var _options$find,name=_ref2.name,label=_ref2.label,legend=_ref2.legend,hint=_ref2.hint,validate=_ref2.validate,required=_ref2.required,initialValue=_ref2.initialValue,_ref2$options=_ref2.options,options=void 0===_ref2$options?[]:_ref2$options,_ref2$emptyOption=_ref2.emptyOption,emptyOption=void 0===_ref2$emptyOption?"Please select":_ref2$emptyOption,fullWidth=_ref2.fullWidth,_ref2$boldLabel=_ref2.boldLabel,boldLabel=void 0===_ref2$boldLabel||_ref2$boldLabel,className=_ref2.className,style=_ref2.style,rest=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r0?value:void 0,input:_objectSpread({id:name,defaultValue:value},rest)},emptyOption&&react__WEBPACK_IMPORTED_MODULE_22__.createElement("option",{key:"",value:""},emptyOption),options.map((function(_ref3){var optionLabel=_ref3.label,optionValue=_ref3.value;return react__WEBPACK_IMPORTED_MODULE_22__.createElement("option",{key:optionValue,value:optionValue,selected:value===optionValue},optionLabel)}))),null===(_options$find=options.find((function(o){return o.value===value})))||void 0===_options$find?void 0:_options$find.children)};FieldSelect.propTypes={name:prop_types__WEBPACK_IMPORTED_MODULE_29___default().string.isRequired,label:prop_types__WEBPACK_IMPORTED_MODULE_29___default().node,legend:prop_types__WEBPACK_IMPORTED_MODULE_29___default().node,hint:prop_types__WEBPACK_IMPORTED_MODULE_29___default().node,validate:prop_types__WEBPACK_IMPORTED_MODULE_29___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_29___default().func,prop_types__WEBPACK_IMPORTED_MODULE_29___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_29___default().func)]),required:prop_types__WEBPACK_IMPORTED_MODULE_29___default().string,initialValue:prop_types__WEBPACK_IMPORTED_MODULE_29___default().string,options:prop_types__WEBPACK_IMPORTED_MODULE_29___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_29___default().shape({label:prop_types__WEBPACK_IMPORTED_MODULE_29___default().string.isRequired,value:prop_types__WEBPACK_IMPORTED_MODULE_29___default().string.isRequired})),emptyOption:prop_types__WEBPACK_IMPORTED_MODULE_29___default().string,fullWidth:prop_types__WEBPACK_IMPORTED_MODULE_29___default().bool,boldLabel:prop_types__WEBPACK_IMPORTED_MODULE_29___default().bool};const __WEBPACK_DEFAULT_EXPORT__=FieldSelect;FieldSelect.__docgenInfo={description:"A Select dropdown field for use in forms.",methods:[],displayName:"FieldSelect",props:{options:{defaultValue:{value:"[]",computed:!1},description:"Items for the list",type:{name:"arrayOf",value:{name:"shape",value:{label:{name:"string",required:!0},value:{name:"string",required:!0}}}},required:!1},emptyOption:{defaultValue:{value:"'Please select'",computed:!1},description:"Text to display when no items are selected",type:{name:"string"},required:!1},boldLabel:{defaultValue:{value:"true",computed:!1},description:"Boolean for rendering the label in bold or not",type:{name:"bool"},required:!1},name:{description:"Text for name attribute value",type:{name:"string"},required:!0},label:{description:"Text for the label element",type:{name:"node"},required:!1},legend:{description:"Node for legend element",type:{name:"node"},required:!1},hint:{description:"Node for hint element",type:{name:"node"},required:!1},validate:{description:"Validate functions for input",type:{name:"union",value:[{name:"func"},{name:"arrayOf",value:{name:"func"}}]},required:!1},required:{description:"Text 'required' sets wether the input is required or not",type:{name:"string"},required:!1},initialValue:{description:"Sets initial value of the input",type:{name:"string"},required:!1},fullWidth:{description:"",type:{name:"bool"},required:!1}}}},"./src/client/components/Form/elements/FieldTypeahead/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js");var react__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_30__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_30___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_30__),styled_components__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_error_text__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./node_modules/@govuk-react/error-text/dist/govuk-react-error-text.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./src/client/utils/colours.js"),_hooks__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./src/client/components/Form/hooks/index.jsx"),_FieldWrapper__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("./src/client/components/Form/elements/FieldWrapper/index.jsx"),_Typeahead__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("./src/client/components/Typeahead/index.jsx");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}var _templateObject,_excluded=["name","validate","required","label","legend","hint","initialValue","options","autoScroll","className","onChange"];function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.string.bold.js");var _templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,react__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_16___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_16__),_govuk_react_form_group__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/@govuk-react/form-group/dist/govuk-react-form-group.esm.js"),_govuk_react_label__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./node_modules/@govuk-react/label/dist/govuk-react-label.esm.js"),styled_components__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_hint_text__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./node_modules/@govuk-react/hint-text/dist/govuk-react-hint-text.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./src/client/utils/colours.js"),_excluded=["name","label","legend","bigLegend","hint","error","showBorder","children","reduced","groupId","boldLabel","autoScroll"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js");var _templateObject,styled_components__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js");const __WEBPACK_DEFAULT_EXPORT__=(0,styled_components__WEBPACK_IMPORTED_MODULE_3__.Ay)("div")(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n "," {\n * {\n vertical-align: baseline;\n }\n\n * + * {\n margin-left: ",";\n }\n }\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_2__.qs.TABLET,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_2__.Es.SCALE_4)},"./src/client/components/Form/elements/ResourceOptionsField/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js");var react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_8__),_utils__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./src/client/utils/index.js"),_Resource_Resource__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./src/client/components/Resource/Resource.jsx"),_excluded=["id","field","resource","payload","taskName","resultToOptions","interceptOption"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e\n ",methods:[],displayName:"ResourceOptionsField",props:{id:{defaultValue:{value:"'__RESOURCE_OPTIONS__'",computed:!1},description:"",type:{name:"string"},required:!1},resource:{defaultValue:{value:"multiInstance({\n name: 'Resource',\n actionPattern: 'RESOURCE',\n reducer: (state, { id, result }) => ({\n ...state,\n [id]: result,\n }),\n idProp: 'name',\n componentStateToProps: (state, _, { id }) => ({ result: state[id] }),\n component: ({\n name,\n id,\n taskStatusProps,\n children,\n result,\n payload,\n transformer = (x) => [x],\n progressBox,\n noRetry,\n }) =>\n progressBox ? (\n \n {result ? children(...transformer(result)) : children()}\n \n ) : (\n \n {() => result !== undefined && children(...transformer(result))}\n \n ),\n})",computed:!0},description:"",type:{name:"func"},required:!1},payload:{defaultValue:{value:"{ _: '0' }",computed:!1},required:!1},resultToOptions:{defaultValue:{value:"(idNames) => idNames.map(idNameToValueLabel)",computed:!1},description:"",type:{name:"func"},required:!1},interceptOption:{defaultValue:{value:"(x) => x",computed:!1},required:!1},field:{description:"",type:{name:"func"},required:!0},taskName:{description:"",type:{name:"string"},required:!1}}}},"./src/client/components/Form/elements/Step.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.function.name.js");var react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_8__),_govuk_react_button__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@govuk-react/button/dist/govuk-react-button.esm.js"),_govuk_react_link__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@govuk-react/link/dist/govuk-react-link.esm.js"),lodash__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/lodash/lodash.js"),_hooks__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/client/components/Form/hooks/index.jsx"),_ButtonLink__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./src/client/components/ButtonLink/index.jsx"),_FormActions__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./src/client/components/Form/elements/FormActions.jsx");function Step(_ref){var name=_ref.name,backButton=_ref.backButton,forwardButton=_ref.forwardButton,cancelUrl=_ref.cancelUrl,_ref$submitButtonLabe=_ref.submitButtonLabel,submitButtonLabel=void 0===_ref$submitButtonLabe?"Submit":_ref$submitButtonLabe,children=_ref.children,_useFormContext=(0,_hooks__WEBPACK_IMPORTED_MODULE_5__.xW)(),currentStep=_useFormContext.currentStep,goBack=_useFormContext.goBack,registerStep=_useFormContext.registerStep,deregisterStep=_useFormContext.deregisterStep,getStepIndex=_useFormContext.getStepIndex,isFirstStep=_useFormContext.isFirstStep,isLastStep=_useFormContext.isLastStep;(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)((function(){return registerStep(name),function(){return deregisterStep(name)}}),[name]);var index=getStepIndex(name);if(index!==currentStep||void 0===index||void 0===currentStep)return null;return react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment,null,"function"==typeof children?children():children,react__WEBPACK_IMPORTED_MODULE_1__.createElement(_FormActions__WEBPACK_IMPORTED_MODULE_7__.A,null,function renderForwardButton(){if(void 0===forwardButton){var label=isLastStep()?submitButtonLabel:"Continue";return react__WEBPACK_IMPORTED_MODULE_1__.createElement(_govuk_react_button__WEBPACK_IMPORTED_MODULE_2__.A,{"data-test":(0,lodash__WEBPACK_IMPORTED_MODULE_4__.kebabCase)(label.toLowerCase()),name:"forward"},label)}return"string"==typeof forwardButton?react__WEBPACK_IMPORTED_MODULE_1__.createElement(_govuk_react_button__WEBPACK_IMPORTED_MODULE_2__.A,{name:"forward"},forwardButton):forwardButton}(),!isFirstStep()&&function renderBackButton(){return void 0===backButton?react__WEBPACK_IMPORTED_MODULE_1__.createElement(_ButtonLink__WEBPACK_IMPORTED_MODULE_6__.A,{name:"back",onClick:goBack},"Back"):"string"==typeof backButton?react__WEBPACK_IMPORTED_MODULE_1__.createElement(_ButtonLink__WEBPACK_IMPORTED_MODULE_6__.A,{name:"back",onClick:goBack},backButton):backButton}(),isFirstStep()&&cancelUrl&&function renderCancelLink(){return react__WEBPACK_IMPORTED_MODULE_1__.createElement(_govuk_react_link__WEBPACK_IMPORTED_MODULE_3__.A,{"data-test":"cancel-link",href:cancelUrl},"Cancel")}()))}Step.propTypes={name:prop_types__WEBPACK_IMPORTED_MODULE_8___default().string.isRequired,backButton:prop_types__WEBPACK_IMPORTED_MODULE_8___default().node,forwardButton:prop_types__WEBPACK_IMPORTED_MODULE_8___default().node,children:prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_8___default().func,prop_types__WEBPACK_IMPORTED_MODULE_8___default().node])};const __WEBPACK_DEFAULT_EXPORT__=Step;Step.__docgenInfo={description:"",methods:[],displayName:"Step",props:{submitButtonLabel:{defaultValue:{value:"'Submit'",computed:!1},required:!1},name:{description:"",type:{name:"string"},required:!0},backButton:{description:"",type:{name:"node"},required:!1},forwardButton:{description:"",type:{name:"node"},required:!1},children:{description:"",type:{name:"union",value:[{name:"func"},{name:"node"}]},required:!1}}}},"./src/client/components/Form/hooks/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Mt:()=>_useField__WEBPACK_IMPORTED_MODULE_0__.A,hN:()=>_useFormContext__WEBPACK_IMPORTED_MODULE_1__.h,xW:()=>_useFormContext__WEBPACK_IMPORTED_MODULE_1__.x});var _useField__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./src/client/components/Form/hooks/useField.js"),_useFormContext__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/Form/hooks/useFormContext.js")},"./src/client/components/Form/hooks/useField.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js");var react__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/index.js"),lodash__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/lodash/lodash.js"),_useFormContext__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/client/components/Form/hooks/useFormContext.js");const __WEBPACK_DEFAULT_EXPORT__=function useField(_ref){var name=_ref.name,_ref$initialValue=_ref.initialValue,initialValue=void 0===_ref$initialValue?"":_ref$initialValue,_ref$validate=_ref.validate,validate=void 0===_ref$validate?null:_ref$validate,_ref$required=_ref.required,required=void 0===_ref$required?null:_ref$required,_useFormContext=(0,_useFormContext__WEBPACK_IMPORTED_MODULE_5__.x)(),registerField=_useFormContext.registerField,deregisterField=_useFormContext.deregisterField,setFieldTouched=_useFormContext.setFieldTouched,setFieldValue=_useFormContext.setFieldValue,getFieldState=_useFormContext.getFieldState;(0,react__WEBPACK_IMPORTED_MODULE_3__.useEffect)((function(){var validators;return registerField({name,initialValue,validate:(validators=(0,lodash__WEBPACK_IMPORTED_MODULE_4__.castArray)(validate).filter((function(v){return v})),required&&validators.unshift((function(value){return(0,lodash__WEBPACK_IMPORTED_MODULE_4__.isEmpty)(value)?required:null})),validators)}),function(){deregisterField(name)}}),[name]);var fieldState=getFieldState(name,initialValue);return{name,value:fieldState.value,error:fieldState.error,touched:fieldState.touched,onChange:function onChange(e){return setFieldValue(name,e.target.value)},onChangeFileUpload:function onChangeFileUpload(e){return setFieldValue(name,e.target.files)},onBlur:function onBlur(){return setFieldTouched(name,!0)}}}},"./src/client/components/Form/hooks/useFormContext.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{h:()=>FormContextProvider,x:()=>useFormContext});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>components_Form});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.entries.js"),__webpack_require__("./node_modules/core-js/modules/es.object.from-entries.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.values.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.search.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var lodash=__webpack_require__("./node_modules/lodash/lodash.js"),lodash_default=__webpack_require__.n(lodash),prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),react=__webpack_require__("./node_modules/react/index.js"),chunk_D52XG6IA=__webpack_require__("./node_modules/react-router/dist/development/chunk-D52XG6IA.mjs"),react_dom=__webpack_require__("./node_modules/react-dom/index.js"),lib=__webpack_require__("./node_modules/qs/lib/index.js"),lib_default=__webpack_require__.n(lib),govuk_react_button_esm=__webpack_require__("./node_modules/@govuk-react/button/dist/govuk-react-button.esm.js"),govuk_react_link_esm=__webpack_require__("./node_modules/@govuk-react/link/dist/govuk-react-link.esm.js"),multiinstance=__webpack_require__("./src/client/utils/multiinstance.js"),ErrorSummary=__webpack_require__("./src/client/components/ErrorSummary/index.jsx"),Task=__webpack_require__("./src/client/components/Task/index.jsx"),LoadingBox=__webpack_require__("./src/client/components/Task/LoadingBox.jsx"),Resource=__webpack_require__("./src/client/components/Resource/Resource.jsx"),Wrap=__webpack_require__("./src/client/components/Wrap.jsx"),Analytics=__webpack_require__("./src/client/components/Analytics/index.jsx"),actions=__webpack_require__("./src/client/actions.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}var _excluded=["type","result"];function _toConsumableArray(r){return function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r)}(r)||function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}(r)||function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0}}(r)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);er.length)&&(a=r.length);for(var e=0,n=Array(a);e0&&void 0!==arguments[0]?arguments[0]:{values:{},touched:{},errors:{},errorStatus:0,fields:{},currentStep:0,steps:[]},_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result,action=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r0&&void 0!==arguments[0]?arguments[0]:{};props.resetFields(Form_objectSpread(Form_objectSpread({},initialValues),values))},validateForm:function validateForm(fieldNamesToValidate){var _validateForm=_validateForm3(Form_objectSpread(Form_objectSpread({},contextProps),{},{fields:null!=fieldNamesToValidate&&fieldNamesToValidate.length?lodash_default().pick(contextProps.fields,fieldNamesToValidate):contextProps.fields})),errors=_validateForm.errors,touched=_validateForm.touched;return props.onValidate(errors,touched),errors}}),react.createElement(Task.A,null,(function(t){var submissionTask=t(submissionTaskName,id);return react.createElement(LoadingBox.A,{name:submissionTaskName,id,when:"hard"===redirectMode&&redirectTo&&resolved},react.createElement("form",{autoComplete:"off",noValidate:!0,onSubmit:function onSubmit(e){e.preventDefault();var _validateForm2=_validateForm3(contextProps),errors=_validateForm2.errors,touched=_validateForm2.touched;props.onValidate(errors,touched),(0,lodash.isEmpty)(errors)?contextProps.isLastStep()?(submissionTask.start({payload:transformPayload(values),onSuccessDispatch:"FORM__RESOLVED"}),analytics("Submit")):(props.goForward(),analytics("Next step",{currentStep:props.currentStep}),showStepInUrl&&navigate({search:lib_default().stringify(Form_objectSpread(Form_objectSpread({},qsParams),{},{step:steps[props.currentStep+1]}))})):(requestAnimationFrame((function(){var _ref$current;return null===(_ref$current=ref.current)||void 0===_ref$current?void 0:_ref$current.focus()})),analytics("Validation errors",{errors}))}},react.createElement(HardRedirect,null,(function(hardRedirect){return react.createElement(Effect.A,{dependencyList:[submissionTaskName,id,resolved,result],effect:function effect(){if(resolved&&(null==result||!result.errors)){if(analytics("Submission request success",analyticsData&&analyticsData(values)),flashMessage){var message=flashMessage(result,values);props.writeFlashMessage(message)}"soft"===redirectMode&&redirectTo&&navigate(redirectTo(result,values)),onSuccess&&onSuccess(result,values,{flashMessage:props.writeFlashMessage,hardRedirect,softRedirect:navigate}),props.resetResolved()}}})})),react.createElement(Effect.A,{dependencyList:[initialValues],effect:function effect(){initialValues&&onLoad(transformInitialValues(initialValues),initialStepIndex)}}),submissionTaskResultToValues&&result&&react.createElement(Effect.A,{dependencyList:[result],effect:function effect(){props.setValues(null==submissionTaskResultToValues?void 0:submissionTaskResultToValues(result))}}),react.createElement(Effect.A,{dependencyList:[submissionTask.hasError],effect:function effect(){submissionTask.hasError&&analytics("Submission request error",{error:submissionTask.errorMessage})}}),"hard"===redirectMode&&redirectTo&&resolved&&react.createElement(HardRedirect,{to:redirectTo(result,values),when:resolved}),!(0,lodash.isEmpty)(errors)&&react.createElement(ErrorSummary.A,{ref,id:"form-errors","data-test":"summary-form-errors",errors:Object.entries(errors).map((function(_ref6){var _ref7=_slicedToArray(_ref6,2);return{targetName:_ref7[0],text:_ref7[1]}}))}),"function"==typeof children?children(contextProps):children,!steps.length&&react.createElement(FormActions.A,null,react.createElement(govuk_react_button_esm.A,{buttonColour:submitButtonColour,"data-test":"submit-button"},submitButtonLabel),cancelRedirectTo&&react.createElement(govuk_react_link_esm.A,{href:cancelRedirectTo(),"data-test":"cancel-button"},cancelButtonLabel))))}))))}))}))},dispatchToProps:function dispatchToProps(dispatch){return{onLoad:function onLoad(initialValues,initialStepIndex,keepValuesOnDeregister){return dispatch({type:"FORM__LOADED",initialValues,initialStepIndex,keepValuesOnDeregister})},resetResolved:function resetResolved(){return dispatch({type:"FORM__RESET_RESOLVED"})},registerField:function registerField(initialValues){return function(field){return dispatch({type:"FORM__FIELD_REGISTER",field:Form_objectSpread({initialValue:null==initialValues?void 0:initialValues[field.name]},field)})}},deregisterField:function deregisterField(fieldName){return dispatch({type:"FORM__FIELD_DEREGISTER",fieldName})},resetFields:function resetFields(values){return dispatch({type:"FORM__FIELDS__RESET",values})},setFieldValue:function setFieldValue(fieldName,fieldValue){return dispatch({type:"FORM__FIELD_SET_VALUE",fieldName,fieldValue})},setValues:function setValues(values){return dispatch({type:"FORM__FIELD_SET_VALUES",values})},setFieldTouched:function setFieldTouched(fieldName){return dispatch({type:"FORM__FIELD_TOUCHED",fieldName})},onValidate:function onValidate(errors,touched){return dispatch({type:"FORM__VALIDATE",errors,touched})},onError:function onError(errors){return dispatch({type:"FORM__ERRORED",errors})},goForward:function goForward(values){return dispatch({type:"FORM__FORWARD",values})},goBack:function goBack(){return dispatch({type:"FORM__BACK"})},goToStep:function goToStep(stepName){dispatch({type:"FORM__GO_TO_STEP",stepName})},registerStep:function registerStep(stepName){return dispatch({type:"FORM__STEP_REGISTER",stepName})},deregisterStep:function deregisterStep(stepName){return dispatch({type:"FORM__STEP_DEREGISTER",stepName})},writeFlashMessage:function writeFlashMessage(message){if(message)if("string"!=typeof message){var _message=_slicedToArray(message,3),heading=_message[0],body=_message[1],messageType=_message[2];dispatch({type:"FLASH_MESSAGE__WRITE_TO_SESSION",messageType,message:[heading,body]})}else dispatch({type:"FLASH_MESSAGE__WRITE_TO_SESSION",messageType:"success",message})}}},actionPattern:"FORM__"});Form.propTypes={id:prop_types_default().string.isRequired,analyticsFormName:prop_types_default().string.isRequired,analyticsData:prop_types_default().func,cancelRedirectTo:prop_types_default().oneOfType([prop_types_default().func,prop_types_default().bool]),cancelButtonLabel:prop_types_default().oneOfType([prop_types_default().string,prop_types_default().element]),submissionTaskName:prop_types_default().string.isRequired,submitButtonLabel:prop_types_default().string,redirectTo:prop_types_default().func,redirectMode:prop_types_default().oneOf(["hard","soft"]),flashMessage:prop_types_default().func,initialValuesTaskName:prop_types_default().string,initialValues:prop_types_default().object,keepValuesOnDeregister:prop_types_default().bool,transformInitialValues:prop_types_default().func,transformPayload:prop_types_default().func,initialStepIndex:prop_types_default().number,scrollToTopOnStep:prop_types_default().bool};const components_Form=Form},"./src/client/components/Form/validators.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Rp:()=>email,ai:()=>number});__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./src/client/utils/date.js"),__webpack_require__("./src/client/transformers/index.js");var EMAIL_PATTERN=/(?:[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-zA-Z0-9-]*[a-zA-Z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])/,IS_NUMBER=/^[0-9]*$/,email=function email(x){return EMAIL_PATTERN.test(x)?null:"Enter an email address in the correct format, like name@example.com"},number=function number(x,errorMessage){return!x||IS_NUMBER.test(x)?null:errorMessage}},"./src/client/components/InlineIcon/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _templateObject;__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js");const __WEBPACK_DEFAULT_EXPORT__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js").Ay.span(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n height: 2ex;\n width: 2ex;\n vertical-align: -10%;\n display: inline-block;\n"])))},"./src/client/components/InvestmentProjectLocalHeader/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>components_InvestmentProjectLocalHeader});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var react=__webpack_require__("./node_modules/react/index.js"),prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),govuk_react_constants_esm=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),styled_components_browser_esm=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),lodash=__webpack_require__("./node_modules/lodash/lodash.js"),Timeline=__webpack_require__("./src/client/components/Timeline/index.jsx"),date_utils=__webpack_require__("./src/client/utils/date-utils.js"),colours=(__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./src/client/utils/colours.js"));const timeline_theme={container:{backgroundColor:colours.P1,largeScreen:{padding:"23px 0 0 18px"}},li:{before:{left:"-8px",top:"2px",width:govuk_react_constants_esm.Es.SCALE_2,height:govuk_react_constants_esm.Es.SCALE_2,border:"2px solid ".concat(colours.ej)},span:{display:"inline"},mqLargeScreen:{padding:"".concat(govuk_react_constants_esm.Es.SCALE_4," 0 ").concat(govuk_react_constants_esm.Es.SCALE_4," 0"),borderTop:"2px solid ".concat(colours.ej),before:{top:"-8px",left:"-10px"}}}};var urls=__webpack_require__("./src/lib/urls.js"),urls_default=__webpack_require__.n(urls),constants=__webpack_require__("./src/client/modules/Investments/Projects/constants.js"),StatusMessage=__webpack_require__("./src/client/components/StatusMessage/index.jsx");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}var MetaList=(0,styled_components_browser_esm.Ay)("ul")({display:"flex",flexWrap:"wrap",rowGap:govuk_react_constants_esm.Es.SCALE_5}),StyledListItem=(0,styled_components_browser_esm.Ay)("li")(function _defineProperty(e,r,t){return(r=function _toPropertyKey(t){var i=function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}({marginRight:govuk_react_constants_esm.Es.SCALE_5,display:"inline-grid","&:last-child":{marginTop:govuk_react_constants_esm.Es.SCALE_3,marginBottom:govuk_react_constants_esm.Es.SCALE_3}},govuk_react_constants_esm.qs.LARGESCREEN,{"&:last-child":{marginTop:0,marginBottom:0}})),StyledListItemText=(0,styled_components_browser_esm.Ay)("span")({color:colours.hM,fontSize:govuk_react_constants_esm.SG.SIZE_16,fontWeight:400,marginBottom:govuk_react_constants_esm.Es.SCALE_1}),StyledChild=(0,styled_components_browser_esm.Ay)("span")({fontSize:govuk_react_constants_esm.SG.SIZE_16}),StyledStatusMessage=(0,styled_components_browser_esm.Ay)(StatusMessage.A)({fontSize:govuk_react_constants_esm.SG.SIZE_20,fontWeight:700,marginBottom:govuk_react_constants_esm.Es.SCALE_1,marginTop:govuk_react_constants_esm.Es.SCALE_2,backgroundColor:colours.UE}),MetaListItem=function MetaListItem(_ref){var text=_ref.text,children=_ref.children;return react.createElement(StyledListItem,null,react.createElement(StyledListItemText,{"data-test":(0,lodash.kebabCase)("meta-list-item-".concat(text.toLowerCase()))},text),react.createElement(StyledChild,null,children))},InvestmentProjectLocalHeader=function InvestmentProjectLocalHeader(_ref2){var _investment$createdBy,_investment$eybLeads,investment=_ref2.investment;return react.createElement(react.Fragment,null,react.createElement(MetaList,{"data-test":"meta-list"},react.createElement(MetaListItem,{text:"Status"},(0,lodash.upperFirst)(investment.status)," -"," ",react.createElement("a",{href:urls_default().investments.projects.status(investment.id)},"change")),react.createElement(MetaListItem,{text:"Project code"},investment.projectCode),react.createElement(MetaListItem,{text:"Valuation"},investment.valueComplete?"Project valued":"Not yet valued"),react.createElement(MetaListItem,{text:"Created on"},investment.createdOn?(0,date_utils.formatDate)(investment.createdOn,date_utils.DATE_FORMAT_MEDIUM_WITH_TIME):""),(null===(_investment$createdBy=investment.createdBy)||void 0===_investment$createdBy||null===(_investment$createdBy=_investment$createdBy.ditTeam)||void 0===_investment$createdBy?void 0:_investment$createdBy.name)&&react.createElement(MetaListItem,{text:"Created by"},investment.createdBy.ditTeam.name),(null===(_investment$eybLeads=investment.eybLeads)||void 0===_investment$eybLeads?void 0:_investment$eybLeads.length)>0&&react.createElement(MetaListItem,{text:"Generated from"},"EYB lead")),react.createElement(styled_components_browser_esm.NP,{theme:timeline_theme},react.createElement(Timeline.A,{stages:constants.s1,currentStage:investment.stage.name})),"Won"===investment.stage.name&&!investment.archived&&react.createElement(StyledStatusMessage,{"data-test":"project-won-message"},"This project has been verified as won. You should not make any changes to this project.",react.createElement("br",null),react.createElement("br",null),"If you would like to make changes, please contact the Investment Promotion Performance team."))};InvestmentProjectLocalHeader.propTypes={investment:prop_types_default().object.isRequired};const components_InvestmentProjectLocalHeader=InvestmentProjectLocalHeader;InvestmentProjectLocalHeader.__docgenInfo={description:"The **InvestmentProjectLocalHeader** contains the following:\n\n- Investment metadata such as: Status (Ongoing, Delayed, Abandoned, Lost and Dormant), Project code, Valuation and a Created on date\n\n- A list of five stages (Prospect', 'Assign PM', 'Active', 'Verify win' and 'Won') in chronological order where the current stage is clear to see",methods:[],displayName:"InvestmentProjectLocalHeader",props:{investment:{description:"An investment project",type:{name:"object"},required:!0}}}},"./src/client/components/InvestmentReminders/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>components_InvestmentReminders});var _templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8,_templateObject9,react=__webpack_require__("./node_modules/react/index.js"),prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),react_redux=__webpack_require__("./node_modules/react-redux/dist/react-redux.mjs"),state=__webpack_require__("./src/client/components/InvestmentReminders/state.js"),actions=__webpack_require__("./src/client/actions.js"),styled_components_browser_esm=(__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js")),govuk_react_heading_esm=__webpack_require__("./node_modules/@govuk-react/heading/dist/govuk-react-heading.esm.js"),govuk_react_constants_esm=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),colours=__webpack_require__("./src/client/utils/colours.js"),date_utils=__webpack_require__("./src/client/utils/date-utils.js"),date=__webpack_require__("./src/client/utils/date.js"),urls=__webpack_require__("./src/lib/urls.js"),urls_default=__webpack_require__.n(urls);function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var StyledSubHeading=(0,styled_components_browser_esm.Ay)(govuk_react_heading_esm.H3)(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n color: ",";\n font-size: ",";\n font-weight: ",";\n margin-top: ",";\n margin-bottom: ",";\n"])),colours.Bk,govuk_react_constants_esm.SG.SIZE_19,govuk_react_constants_esm.sO.regular,govuk_react_constants_esm.Es.SCALE_2,govuk_react_constants_esm.Es.SCALE_2),StyledSubHeadingEmpty=(0,styled_components_browser_esm.Ay)(StyledSubHeading)(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n color: ",";\n margin: 0;\n"])),colours.hM),StyledProjectLink=(0,styled_components_browser_esm.Ay)("a")(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n display: block;\n font-size: ",";\n color: ",";\n"])),govuk_react_constants_esm.SG.SIZE_19,colours.yV),StyledProjectCode=(0,styled_components_browser_esm.Ay)("div")(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n margin: "," 0;\n font-size: ",";\n color: ",";\n"])),govuk_react_constants_esm.Es.SCALE_1,govuk_react_constants_esm.SG.SIZE_16,colours.hM),StyledDueDate=(0,styled_components_browser_esm.Ay)("span")(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["\n font-size: ",";\n color: ",";\n"])),govuk_react_constants_esm.SG.SIZE_16,colours.pF),StyledDueCountdown=(0,styled_components_browser_esm.Ay)("span")(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["\n margin-top: ",";\n text-align: right;\n white-space: nowrap;\n font-size: ",";\n color: ",";\n"])),govuk_react_constants_esm.Es.SCALE_1,govuk_react_constants_esm.SG.SIZE_16,colours.pF),StyledList=(0,styled_components_browser_esm.Ay)("ul")(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["\n list-style-type: none;\n padding: 0;\n margin: 0;\n"]))),StyledListItem=(0,styled_components_browser_esm.Ay)("li")(_templateObject8||(_templateObject8=_taggedTemplateLiteral(["\n margin-bottom: ",";\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n align-items: flex-end;\n"])),govuk_react_constants_esm.Es.SCALE_4),StyledDetails=(0,styled_components_browser_esm.Ay)("div")(_templateObject9||(_templateObject9=_taggedTemplateLiteral(["\n padding-right: ",";\n"])),govuk_react_constants_esm.Es.SCALE_3),OutstandingPropositions=function OutstandingPropositions(_ref){var results=_ref.results,count=_ref.count;return react.createElement(react.Fragment,null,results.length?react.createElement("div",{"data-test":"outstanding-propositions"},react.createElement(StyledSubHeading,{"data-test":"outstanding-propositions-heading"},"Outstanding propositions (",count,")"),react.createElement(StyledList,{"data-test":"outstanding-propositions-list"},results.map((function(_ref2){var id=_ref2.id,investment_project=_ref2.investment_project,name=_ref2.name,deadline=_ref2.deadline;return react.createElement(StyledListItem,{key:id},react.createElement(StyledDetails,null,react.createElement(StyledProjectLink,{href:urls_default().investments.projects.propositions(investment_project.id)},name),react.createElement(StyledProjectCode,{"data-test":"outstanding-proposition-project-code"},investment_project.project_code),react.createElement(StyledDueDate,{"data-test":"outstanding-proposition-deadline"},"Due ",(0,date_utils.formatDate)(deadline,date_utils.DATE_FORMAT_FULL_DAY))),react.createElement(StyledDueCountdown,{"data-test":"outstanding-proposition-countdown"},(0,date.getDifferenceInDaysLabel)(deadline)))})))):react.createElement(StyledSubHeadingEmpty,{"data-test":"outstanding-propositions-empty"},"Projects with propositions due will be displayed here."))};OutstandingPropositions.propTypes={count:prop_types_default().number.isRequired,results:prop_types_default().arrayOf(prop_types_default().shape({id:prop_types_default().string.isRequired,investment_project:prop_types_default().shape({id:prop_types_default().string.is_required,name:prop_types_default().string.isRequired,project_code:prop_types_default().string.isRequired}),deadline:prop_types_default().string.isRequired,name:prop_types_default().string.isRequired,adviser:prop_types_default().shape({id:prop_types_default().string.isRequired,name:prop_types_default().string.isRequired,first_name:prop_types_default().string.isRequired,last_name:prop_types_default().string.isRequired})})).isRequired};const InvestmentReminders_OutstandingPropositions=OutstandingPropositions;OutstandingPropositions.__docgenInfo={description:"",methods:[],displayName:"OutstandingPropositions",props:{count:{description:"",type:{name:"number"},required:!0},results:{description:"",type:{name:"arrayOf",value:{name:"shape",value:{id:{name:"string",required:!0},investment_project:{name:"shape",value:{id:{name:"string",required:!1},name:{name:"string",required:!0},project_code:{name:"string",required:!0}},required:!1},deadline:{name:"string",required:!0},name:{name:"string",required:!0},adviser:{name:"shape",value:{id:{name:"string",required:!0},name:{name:"string",required:!0},first_name:{name:"string",required:!0},last_name:{name:"string",required:!0}},required:!1}}}},required:!0}}};var Task=__webpack_require__("./src/client/components/Task/index.jsx"),InvestmentReminders=function InvestmentReminders(_ref){var adviser=_ref.adviser,results=_ref.results,count=_ref.count;return react.createElement("div",{"data-test":"investment-reminders"},react.createElement(Task.A.Status,{name:state.M,id:state.ID,progressMessage:"Loading your reminders",startOnRender:{payload:{adviser},onSuccessDispatch:actions.gEw}},(function(){return react.createElement(InvestmentReminders_OutstandingPropositions,{results,count})})))};InvestmentReminders.propTypes={adviser:prop_types_default().shape({id:prop_types_default().string.isRequired}).isRequired,count:prop_types_default().number.isRequired,results:prop_types_default().arrayOf(prop_types_default().shape({id:prop_types_default().string.isRequired,investment_project:prop_types_default().shape({id:prop_types_default().string.is_required,name:prop_types_default().string.isRequired,project_code:prop_types_default().string.isRequired}),deadline:prop_types_default().string.isRequired,name:prop_types_default().string.isRequired,adviser:prop_types_default().shape({id:prop_types_default().string.isRequired,name:prop_types_default().string.isRequired,first_name:prop_types_default().string.isRequired,last_name:prop_types_default().string.isRequired})})).isRequired};const components_InvestmentReminders=(0,react_redux.connect)(state.o)(InvestmentReminders);InvestmentReminders.__docgenInfo={description:"Shows reminders of upcoming propositions for an adviser to deal with.",methods:[],displayName:"InvestmentReminders",props:{adviser:{description:"The adviser to display investment reminders for.",type:{name:"shape",value:{id:{name:"string",required:!0}}},required:!0},count:{description:"",type:{name:"number"},required:!0},results:{description:"",type:{name:"arrayOf",value:{name:"shape",value:{id:{name:"string",required:!0},investment_project:{name:"shape",value:{id:{name:"string",required:!1},name:{name:"string",required:!0},project_code:{name:"string",required:!0}},required:!1},deadline:{name:"string",required:!0},name:{name:"string",required:!0},adviser:{name:"shape",value:{id:{name:"string",required:!0},name:{name:"string",required:!0},first_name:{name:"string",required:!0},last_name:{name:"string",required:!0}},required:!1}}}},required:!0}}}},"./src/client/components/InvestmentReminders/state.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{ID:()=>ID,M:()=>TASK_GET_OUTSTANDING_PROPOSITIONS,o:()=>state2props});var ID="investmentReminders",TASK_GET_OUTSTANDING_PROPOSITIONS="TASK_GET_OUTSTANDING_PROPOSITIONS",state2props=function state2props(state){return state[ID]}},"./src/client/components/Layout/DefaultLayout.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var _templateObject,react__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./node_modules/react/index.js"),styled_components__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),prop_types__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_22___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_22__),_govuk_react_grid_col__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./node_modules/@govuk-react/grid-col/dist/govuk-react-grid-col.esm.js"),_govuk_react_grid_row__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./node_modules/@govuk-react/grid-row/dist/govuk-react-grid-row.esm.js"),_Footer__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./src/client/components/Footer/index.jsx"),_Main__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("./src/client/components/Main/index.jsx"),_LocalHeader_LocalHeader__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./src/client/components/LocalHeader/LocalHeader.jsx"),_DataHubHeader__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./src/client/components/DataHubHeader/index.jsx"),_WatchTextContent__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./src/client/components/WatchTextContent.jsx");function _slicedToArray(r,e){return function _arrayWithHoles(r){if(Array.isArray(r))return r}(r)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(r,e)||function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0}}(r,e)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.object.entries.js"),__webpack_require__("./node_modules/core-js/modules/es.string.bold.js");var _templateObject,_templateObject2,_templateObject3,_templateObject4,react__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_23___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_23__),styled_components__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),lodash__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("./node_modules/lodash/lodash.js"),react_redux__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("./node_modules/react-redux/dist/react-redux.mjs"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_govuk_react_unordered_list__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./node_modules/@govuk-react/unordered-list/dist/govuk-react-unordered-list.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./src/client/utils/colours.js"),_components_StatusMessage__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./src/client/components/StatusMessage/index.jsx"),_state__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./src/client/components/LocalHeader/state.js"),_actions__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./src/client/actions.js");function _slicedToArray(r,e){return function _arrayWithHoles(r){if(Array.isArray(r))return r}(r)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(r,e)||function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0}}(r,e)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e1?messages.map((function(_ref4){var body=_ref4.body,heading=_ref4.heading;return react__WEBPACK_IMPORTED_MODULE_16__.createElement("li",{key:body},react__WEBPACK_IMPORTED_MODULE_16__.createElement(StyledStatusMessage,{colour:messageColours[parts[0]]},react__WEBPACK_IMPORTED_MODULE_16__.createElement(StyledHeading,null,heading),"string"==typeof body?react__WEBPACK_IMPORTED_MODULE_16__.createElement(StyledBody,{dangerouslySetInnerHTML:{__html:body}}):react__WEBPACK_IMPORTED_MODULE_16__.createElement(StyledBody,null,body)))})):messages.map((function(body,i){return react__WEBPACK_IMPORTED_MODULE_16__.createElement("li",{key:i},react__WEBPACK_IMPORTED_MODULE_16__.createElement(StyledStatusMessage,{colour:messageColours[type]},"string"==typeof body?react__WEBPACK_IMPORTED_MODULE_16__.createElement(StyledMessage,{dangerouslySetInnerHTML:{__html:body}}):react__WEBPACK_IMPORTED_MODULE_16__.createElement(StyledMessage,null,body)))}))})))},flashMessagePropTypes={flashMessages:prop_types__WEBPACK_IMPORTED_MODULE_23___default().shape({type:prop_types__WEBPACK_IMPORTED_MODULE_23___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_23___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_23___default().shape({body:prop_types__WEBPACK_IMPORTED_MODULE_23___default().string.isRequired,heading:prop_types__WEBPACK_IMPORTED_MODULE_23___default().string.isRequired,id:prop_types__WEBPACK_IMPORTED_MODULE_23___default().string})),prop_types__WEBPACK_IMPORTED_MODULE_23___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_23___default().string).isRequired])})};FlashMessages.propTypes=flashMessagePropTypes;const __WEBPACK_DEFAULT_EXPORT__=(0,react_redux__WEBPACK_IMPORTED_MODULE_24__.connect)(_state__WEBPACK_IMPORTED_MODULE_25__.o,(function(dispatch){return{getFlashMessages:function getFlashMessages(){dispatch({type:_actions__WEBPACK_IMPORTED_MODULE_26__.vl8})},clearFlashMessages:function clearFlashMessages(){dispatch({type:_actions__WEBPACK_IMPORTED_MODULE_26__.PqX})}}}))(FlashMessages);FlashMessages.__docgenInfo={description:'Flash messages for users in different colours depending on the message.\n\nNote: If the props "flashMessages" are not passed down to the component then flash messages will be taken from session storage, if none exist in session storage then `null` is returned.',methods:[],displayName:"FlashMessages",props:{flashMessages:{description:"Contains the flash messages",type:{name:"shape",value:{type:{name:"union",value:[{name:"arrayOf",value:{name:"shape",value:{body:{name:"string",required:!0},heading:{name:"string",required:!0},id:{name:"string",required:!1}}}},{name:"arrayOf",value:{name:"string"}}],required:!1}}},required:!1}}}},"./src/client/components/LocalHeader/LocalHeader.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>LocalHeader_LocalHeader});__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.string.link.js");var _templateObject,react=__webpack_require__("./node_modules/react/index.js"),prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),styled_components_browser_esm=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),govuk_react_constants_esm=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),govuk_react_main_esm=__webpack_require__("./node_modules/@govuk-react/main/dist/govuk-react-main.esm.js"),govuk_react_breadcrumbs_esm=__webpack_require__("./node_modules/@govuk-react/breadcrumbs/dist/govuk-react-breadcrumbs.esm.js"),chunk_D52XG6IA=__webpack_require__("./node_modules/react-router/dist/development/chunk-D52XG6IA.mjs"),colours=__webpack_require__("./src/client/utils/colours.js"),LocalHeaderHeading=__webpack_require__("./src/client/components/LocalHeader/LocalHeaderHeading.jsx");const LocalHeader_LocalSubHeader=(0,styled_components_browser_esm.Ay)("h2")(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n font-size: ","px;\n"])),govuk_react_constants_esm.iU.M);var LocalHeader_templateObject,_templateObject2,_templateObject3,FlashMessages=__webpack_require__("./src/client/components/LocalHeader/FlashMessages.jsx");function LocalHeader_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var StyledHeader=(0,styled_components_browser_esm.Ay)("div")(LocalHeader_templateObject||(LocalHeader_templateObject=LocalHeader_taggedTemplateLiteral(["\n padding-bottom: ",";\n background-color: ",";\n padding-top: ",";\n"])),govuk_react_constants_esm.Es.SCALE_5,colours.P1,govuk_react_constants_esm.Es.SCALE_3),StyledMain=(0,styled_components_browser_esm.Ay)(govuk_react_main_esm.A)(_templateObject2||(_templateObject2=LocalHeader_taggedTemplateLiteral(["\n padding-top: 0;\n"]))),BreadcrumbsWrapper=(0,styled_components_browser_esm.Ay)(govuk_react_breadcrumbs_esm.A)(_templateObject3||(_templateObject3=LocalHeader_taggedTemplateLiteral(["\n margin-bottom: ",";\n margin-top: 0;\n"])),govuk_react_constants_esm.Es.SCALE_5),StyledSuperheading=styled_components_browser_esm.Ay.div({fontSize:20,lineHeight:"32px"}),StyledLink=(0,styled_components_browser_esm.Ay)("a")({fontSize:20,display:"inline-block",fontFamily:"Arial, sans-serif",marginTop:8,marginBottom:8}),LocalHeader=function LocalHeader(_ref){var breadcrumbs=_ref.breadcrumbs,flashMessages=_ref.flashMessages,heading=_ref.heading,subheading=_ref.subheading,headingLink=_ref.headingLink,superheading=_ref.superheading,children=_ref.children,_ref$useReactRouter=_ref.useReactRouter,useReactRouter=void 0!==_ref$useReactRouter&&_ref$useReactRouter;return react.createElement(StyledHeader,{"aria-label":"local header","data-auto-id":"localHeader","data-test":"localHeader",role:"region"},react.createElement(StyledMain,null,react.createElement(BreadcrumbsWrapper,{"data-test":"breadcrumbs"},null==breadcrumbs?void 0:breadcrumbs.map((function(breadcrumb){return breadcrumb.link?useReactRouter&&"Home"!==breadcrumb.text?react.createElement(govuk_react_breadcrumbs_esm.A.Link,{as:chunk_D52XG6IA.N_,key:breadcrumb.link,to:breadcrumb.link},breadcrumb.text):react.createElement(govuk_react_breadcrumbs_esm.A.Link,{key:breadcrumb.link,href:breadcrumb.link},breadcrumb.text):breadcrumb.text}))),react.createElement(FlashMessages.A,{flashMessages}),superheading&&react.createElement(StyledSuperheading,null,superheading),headingLink&&react.createElement(StyledLink,{"data-test":"heading-link",href:headingLink.url},headingLink.text),heading&&react.createElement(LocalHeaderHeading.A,{"data-test":"heading"},heading),subheading&&react.createElement(LocalHeader_LocalSubHeader,{"data-test":"subheading"},subheading),children))};LocalHeader.propTypes={breadcrumbs:prop_types_default().arrayOf(prop_types_default().shape({link:prop_types_default().string,text:prop_types_default().oneOfType([prop_types_default().string,prop_types_default().element]).isRequired})),flashMessages:prop_types_default().shape({type:prop_types_default().oneOfType([prop_types_default().arrayOf(prop_types_default().shape({body:prop_types_default().string.isRequired,heading:prop_types_default().string.isRequired,id:prop_types_default().string})),prop_types_default().arrayOf(prop_types_default().string).isRequired])}),heading:prop_types_default().oneOfType([prop_types_default().string,prop_types_default().node]),subheading:prop_types_default().oneOfType([prop_types_default().string,prop_types_default().node]),headingLink:prop_types_default().shape({url:prop_types_default().string.isRequired,text:prop_types_default().string.isRequired}),superheading:prop_types_default().node,children:prop_types_default().node};const LocalHeader_LocalHeader=LocalHeader;LocalHeader.__docgenInfo={description:"The generic local header component.",methods:[],displayName:"LocalHeader",props:{useReactRouter:{defaultValue:{value:"false",computed:!1},required:!1},breadcrumbs:{description:"Contains the breadcrumbs",type:{name:"arrayOf",value:{name:"shape",value:{link:{name:"string",required:!1},text:{name:"union",value:[{name:"string"},{name:"element"}],required:!0}}}},required:!1},flashMessages:{description:"Contains the flash messages",type:{name:"shape",value:{type:{name:"union",value:[{name:"arrayOf",value:{name:"shape",value:{body:{name:"string",required:!0},heading:{name:"string",required:!0},id:{name:"string",required:!1}}}},{name:"arrayOf",value:{name:"string"}}],required:!1}}},required:!1},heading:{description:"Contains the heading text to be displayed",type:{name:"union",value:[{name:"string"},{name:"node"}]},required:!1},subheading:{description:"Contains the subheading text to be displayed",type:{name:"union",value:[{name:"string"},{name:"node"}]},required:!1},headingLink:{description:"Contains a link that appears above the heading",type:{name:"shape",value:{url:{name:"string",required:!0},text:{name:"string",required:!0}}},required:!1},superheading:{description:"Contains an item that renders above the heading (in the same position as the headingLink)",type:{name:"node"},required:!1},children:{description:"Contains an item that renders below the heading",type:{name:"node"},required:!1}}}},"./src/client/components/LocalHeader/LocalHeaderHeading.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.string.bold.js");var _templateObject,styled_components__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js");const __WEBPACK_DEFAULT_EXPORT__=(0,styled_components__WEBPACK_IMPORTED_MODULE_4__.Ay)("h1")(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n font-size: ","px;\n font-weight: ",";\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_3__.iU.L,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_3__.sO.bold)},"./src/client/components/LocalHeader/state.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{ID:()=>ID,o:()=>state2props});var ID="flashMessages",state2props=function state2props(state){return state[ID]}},"./src/client/components/Main/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__,w:()=>InnerContainer});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var react__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_16___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_16__),styled_components__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_excluded=["children"];function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e`is a layout component which wraps content inside the`
`HTML tag, this component also contains a grid container which will center the content in the page with the appropriate gutters and responsive behaviour we expect from [our grid](https://design-system.service.gov.uk/styles/layout/).\n\nIt's important that we include this in all pages as the`
`represents the dominant content of the``of the document, this also acts as a landmark which can help assistive technologies.",methods:[],displayName:"Main",props:{children:{description:"Text for main",type:{name:"node"},required:!1}}}},"./src/client/components/Metadata/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>components_Metadata});__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js");var _templateObject,_templateObject2,react=__webpack_require__("./node_modules/react/index.js"),styled_components_browser_esm=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),govuk_react_constants_esm=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),colours=__webpack_require__("./src/client/utils/colours.js");function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var StyledMetaWrapper=(0,styled_components_browser_esm.Ay)("div")(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n color: ",";\n"])),colours.Uv),StyledItemLabel=(0,styled_components_browser_esm.Ay)("span")(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n color: ",";\n"])),colours.hM);function MetadataItem(_ref){var label=_ref.label,children=_ref.children;return react.createElement(StyledMetaWrapper,{"data-test":"metadata-item"},label&&react.createElement(StyledItemLabel,null,label)," ",children)}MetadataItem.propTypes={label:prop_types_default().string,children:prop_types_default().node.isRequired};const Metadata_MetadataItem=MetadataItem;var Metadata_templateObject;MetadataItem.__docgenInfo={description:"",methods:[],displayName:"MetadataItem",props:{label:{description:"",type:{name:"string"},required:!1},children:{description:"",type:{name:"node"},required:!0}}};var StyledMetadataWrapper=(0,styled_components_browser_esm.Ay)("div")(Metadata_templateObject||(Metadata_templateObject=function Metadata_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n font-size: ",";\n line-height: ",";\n display: grid;\n\n & > * {\n margin-bottom: ",";\n }\n"])),govuk_react_constants_esm.SG.SIZE_16,govuk_react_constants_esm.SG.SIZE_27,govuk_react_constants_esm.Es.SCALE_1),Metadata=function Metadata(_ref){var rows=_ref.rows;return rows&&react.createElement(StyledMetadataWrapper,{"data-test":"metadata"},rows.map((function(_ref2){var label=_ref2.label,value=_ref2.value,key=_ref2.key;return react.createElement(Metadata_MetadataItem,{key:key||label,label},value)})))};Metadata.propTypes={rows:prop_types_default().arrayOf(prop_types_default().shape({label:prop_types_default().node,value:prop_types_default().node}))};const components_Metadata=Metadata;Metadata.__docgenInfo={description:"",methods:[],displayName:"Metadata",props:{rows:{description:"",type:{name:"arrayOf",value:{name:"shape",value:{label:{name:"node",required:!1},value:{name:"node",required:!1}}}},required:!1}}}},"./src/client/components/MyInvestmentProjects/state.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{ID:()=>ID,c:()=>TASK_GET_MY_INVESTMENTS_LIST,o:()=>state2props});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var _utils_date__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./src/client/utils/date.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js");var react__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/react/index.js"),_govuk_react_link__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@govuk-react/link/dist/govuk-react-link.esm.js"),prop_types__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__),_excluded=["href","children","showWarning"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e\n Read more...\n\n\nGDS recommends to use (opens in new tab) as part of the link and not to mention \'window\'.\nhttps://design-system.service.gov.uk/styles/typography/#links',methods:[],displayName:"NewWindowLink",props:{showWarning:{defaultValue:{value:"true",computed:!1},description:"",type:{name:"bool"},required:!1},href:{description:"",type:{name:"string"},required:!0},children:{description:"",type:{name:"node"},required:!1}}}},"./src/client/components/NotificationAlert/state.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{ID:()=>ID,o:()=>state2props,r:()=>TASK_GET_REMINDER_SUMMARY});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var _lib_urls__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./src/lib/urls.js"),_lib_urls__WEBPACK_IMPORTED_MODULE_15___default=__webpack_require__.n(_lib_urls__WEBPACK_IMPORTED_MODULE_15__);function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r{"use strict";__webpack_require__.d(__webpack_exports__,{Ay:()=>__WEBPACK_DEFAULT_EXPORT__,or:()=>Size,y_:()=>Count,yp:()=>Shape});__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.bold.js");var react__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__),styled_components__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/client/utils/colours.js"),Size={SMALL:20,MEDIUM:25},Shape=styled_components__WEBPACK_IMPORTED_MODULE_6__.Ay.span((function(_ref){var size=_ref.size,digits=_ref.digits;return{display:"flex",justifyContent:"center",backgroundColor:_client_utils_colours__WEBPACK_IMPORTED_MODULE_5__.Bk,fontWeight:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__.sO.bold,height:size,width:digits<3?size:size+10,borderRadius:digits<3?"50%":"75px"}})),Count=(0,styled_components__WEBPACK_IMPORTED_MODULE_6__.Ay)("span")({color:_client_utils_colours__WEBPACK_IMPORTED_MODULE_5__.UE,alignSelf:"center",fontSize:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__.SG.SIZE_14}),NotificationBadge=function NotificationBadge(_ref2){var value=_ref2.value,_ref2$size=_ref2.size,size=void 0===_ref2$size?Size.MEDIUM:_ref2$size;return react__WEBPACK_IMPORTED_MODULE_3__.createElement(Shape,{size,digits:value.toString().length,"aria-label":value,"data-test":"notification-badge"},react__WEBPACK_IMPORTED_MODULE_3__.createElement(Count,null,value<100?value:"99+"))};NotificationBadge.propTypes={value:prop_types__WEBPACK_IMPORTED_MODULE_7___default().number};const __WEBPACK_DEFAULT_EXPORT__=NotificationBadge;NotificationBadge.__docgenInfo={description:"",methods:[],displayName:"NotificationBadge",props:{size:{defaultValue:{value:"25",computed:!1},required:!1},value:{description:"Badge value",type:{name:"number"},required:!1}}}},"./src/client/components/Pagination/RoutedPagination.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.string.search.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var _templateObject,_templateObject2,_templateObject3,_templateObject4,react__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_32__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_32___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_32__),styled_components__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),react_router_dom__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__("./node_modules/react-router/dist/development/chunk-D52XG6IA.mjs"),qs__WEBPACK_IMPORTED_MODULE_30__=__webpack_require__("./node_modules/qs/lib/index.js"),qs__WEBPACK_IMPORTED_MODULE_30___default=__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_30__),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_govuk_react_link__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./node_modules/@govuk-react/link/dist/govuk-react-link.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("./src/client/utils/colours.js"),_constants__WEBPACK_IMPORTED_MODULE_31__=__webpack_require__("./src/client/components/Pagination/constants.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;rr.length)&&(a=r.length);for(var e=0,n=Array(a);etotalPages)){var newPager=getPager(items,page,pageSize);setPagerState(newPager),onChangePage(newPager)}},getPager=function getPager(totalItems,currentPage,pageSize){currentPage=currentPage||1,pageSize=pageSize||10;var totalPages=Math.ceil(totalItems/pageSize),_getStartAndEndPage=function getStartAndEndPage(totalPages,currentPage){var startPage,endPage;return totalPages<=10?(startPage=1,endPage=totalPages):currentPage<=6?(startPage=1,endPage=10):currentPage+4>=totalPages?(startPage=totalPages-9,endPage=totalPages):(startPage=currentPage-5,endPage=currentPage+4),{startPage,endPage}}(totalPages,currentPage),startPage=_getStartAndEndPage.startPage,endPage=_getStartAndEndPage.endPage,startIndex=(currentPage-1)*pageSize,endIndex=Math.min(startIndex+pageSize-1,totalItems-1),pages=_toConsumableArray(Array(endPage+1-startPage).keys()).map((function(i){return startPage+i}));return{totalItems,currentPage,pageSize,totalPages,startPage,endPage,startIndex,endIndex,pages}},navigate=(0,react_router_dom__WEBPACK_IMPORTED_MODULE_29__.Zp)(),location=(0,react_router_dom__WEBPACK_IMPORTED_MODULE_29__.zy)(),qsParams=qs__WEBPACK_IMPORTED_MODULE_30___default().parse(location.search.slice(1)),handleOnClick=function handleOnClick(pageNumber,e){e.preventDefault(),setPage(pageNumber),navigate({search:qs__WEBPACK_IMPORTED_MODULE_30___default().stringify(_objectSpread(_objectSpread({},qsParams),{},{page:pageNumber}))})};return react__WEBPACK_IMPORTED_MODULE_24__.createElement(react__WEBPACK_IMPORTED_MODULE_24__.Fragment,null,(null==pages?void 0:pages.length)>1?react__WEBPACK_IMPORTED_MODULE_24__.createElement(StyledNav,{"data-test":"pagination","aria-label":"Pagination: total ".concat(totalPages),"data-total-pages":totalPages},react__WEBPACK_IMPORTED_MODULE_24__.createElement(StyledPaginationList,null,1!==currentPage&&react__WEBPACK_IMPORTED_MODULE_24__.createElement(StyledPaginationPiece,null,react__WEBPACK_IMPORTED_MODULE_24__.createElement(StyledPaginationLink,{onClick:function onClick(e){return handleOnClick(currentPage-1,e)},"data-test":"previous",href:"#"},_constants__WEBPACK_IMPORTED_MODULE_31__.Qp)),pages.map((function(page,index){var isActive=currentPage===page;return react__WEBPACK_IMPORTED_MODULE_24__.createElement(StyledPaginationPiece,{key:index},react__WEBPACK_IMPORTED_MODULE_24__.createElement(StyledPaginationLink,{$isActive:isActive,onClick:function onClick(e){return handleOnClick(page,e)},"data-page-number":page,"data-test":"".concat(isActive&&"page-number-active"),"aria-label":"Page ".concat(page),"aria-current":!!isActive&&"page",ref:function ref(el){return linkRefs.current[index]=el},href:"#"},page))})),currentPage!==totalPages&&react__WEBPACK_IMPORTED_MODULE_24__.createElement(StyledPaginationPiece,null,react__WEBPACK_IMPORTED_MODULE_24__.createElement(StyledPaginationLink,{onClick:function onClick(e){return handleOnClick(currentPage+1,e)},"data-test":"next",href:"#"},_constants__WEBPACK_IMPORTED_MODULE_31__.Cy)))):null)};Pagination.propTypes={items:prop_types__WEBPACK_IMPORTED_MODULE_32___default().number.isRequired,onChangePage:prop_types__WEBPACK_IMPORTED_MODULE_32___default().func,initialPage:prop_types__WEBPACK_IMPORTED_MODULE_32___default().number,pageSize:prop_types__WEBPACK_IMPORTED_MODULE_32___default().number};const __WEBPACK_DEFAULT_EXPORT__=Pagination;Pagination.__docgenInfo={description:"",methods:[],displayName:"Pagination",props:{pageSize:{defaultValue:{value:"10",computed:!1},description:"",type:{name:"number"},required:!1},onChangePage:{defaultValue:{value:"() => {}",computed:!1},description:"",type:{name:"func"},required:!1},initialPage:{defaultValue:{value:"1",computed:!1},description:"",type:{name:"number"},required:!1},items:{description:"",type:{name:"number"},required:!0}}}},"./src/client/components/Pagination/constants.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Cn:()=>PAGINATION_PIECE_PAGE_NUMBER,Cy:()=>PAGINATION_PIECE_NEXT,Qp:()=>PAGINATION_PIECE_PREVIOUS,RP:()=>DEFAULT_MAX_PAGE_NUMBER_LINKS,i7:()=>PAGINATION_PIECE_ELLIPSIS});var PAGINATION_PIECE_PREVIOUS="Previous page",PAGINATION_PIECE_ELLIPSIS="ellipsis",PAGINATION_PIECE_PAGE_NUMBER="page-number",PAGINATION_PIECE_NEXT="Next page",DEFAULT_MAX_PAGE_NUMBER_LINKS=5},"./src/client/components/Pagination/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>components_Pagination});__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js");var react=__webpack_require__("./node_modules/react/index.js"),prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),styled_components_browser_esm=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),govuk_react_constants_esm=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),govuk_react_link_esm=__webpack_require__("./node_modules/@govuk-react/link/dist/govuk-react-link.esm.js"),colours=__webpack_require__("./src/client/utils/colours.js"),constants=__webpack_require__("./src/client/components/Pagination/constants.js");const Pagination_computeVisiblePieces=function computeVisiblePieces(numberOfPages,activePage){var maxPageNumbers=arguments.length>2&&void 0!==arguments[2]?arguments[2]:constants.RP,visiblePieces=[],lowerLimit=activePage,upperLimit=Math.min(activePage,numberOfPages);visiblePieces.push({type:constants.Qp,pageNumber:Math.max(1,activePage-1),isDisabled:1===activePage});for(var i=1;i1&&(lowerLimit-=1,i+=1),i1&&(visiblePieces.push({type:constants.Cn,pageNumber:1,isActive:1===activePage}),activePage>4&&visiblePieces.push({type:constants.i7}));for(var _i=lowerLimit;_i<=upperLimit;_i+=1)visiblePieces.push({type:constants.Cn,pageNumber:_i,isActive:activePage===_i});return activePagemaxPageNumbers&&(visiblePieces.push({type:constants.i7}),visiblePieces.push({type:constants.Cn,pageNumber:numberOfPages,isActive:activePage===numberOfPages})),visiblePieces.push({type:constants.Cy,pageNumber:Math.min(numberOfPages,activePage+1),isDisabled:activePage===numberOfPages}),visiblePieces};var _templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var StyledNav=(0,styled_components_browser_esm.Ay)("nav")(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n text-align: center;\n line-height: 1;\n display: flex;\n justify-content: space-around;\n padding: "," 0;\n\n "," {\n display: block;\n }\n"])),govuk_react_constants_esm.Es.SCALE_3,govuk_react_constants_esm.qs.TABLET),StyledPaginationList=(0,styled_components_browser_esm.Ay)("ul")(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n margin: 0;\n list-style: none;\n"]))),StyledPaginationPiece=(0,styled_components_browser_esm.Ay)("li")(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n display: inline-block;\n\n & + & {\n margin-left: ",";\n }\n"])),govuk_react_constants_esm.Es.SCALE_1),StyledPaginationLink=(0,styled_components_browser_esm.Ay)(govuk_react_link_esm.A)(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n font-weight: bold;\n font-size: ",";\n display: inline-block;\n padding: "," ",";\n line-height: 1.9em;\n color: ",";\n text-decoration: none;\n\n :hover {\n background-color: ",";\n }\n"])),govuk_react_constants_esm.SG.SIZE_16,govuk_react_constants_esm.Es.SCALE_1,govuk_react_constants_esm.Es.SCALE_3,colours.yV,colours.WS),StyledActivePaginationLink=(0,styled_components_browser_esm.Ay)(StyledPaginationLink)(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["\n :link {\n color: ",";\n background-color: ",";\n }\n"])),colours.UE,colours.ft),StyledPagesTruncation=(0,styled_components_browser_esm.Ay)("span")(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["\n font-weight: bold;\n font-size: ",";\n display: inline-block;\n padding: ",";\n background-color: transparent;\n line-height: ",";\n color: ",";\n"])),govuk_react_constants_esm.SG.SIZE_16,govuk_react_constants_esm.Es.SCALE_2,govuk_react_constants_esm.SG.SIZE_24,colours.IC);function Pagination(_ref){var totalPages=_ref.totalPages,_ref$activePage=_ref.activePage,activePage=void 0===_ref$activePage?1:_ref$activePage,_ref$getPageUrl=_ref.getPageUrl,getPageUrl=void 0===_ref$getPageUrl?function(){return"#"}:_ref$getPageUrl,onPageClick=_ref.onPageClick,visiblePieces=Pagination_computeVisiblePieces(totalPages,activePage);return totalPages<2?null:react.createElement(StyledNav,{"data-test":"pagination","data-total-pages":totalPages,"aria-label":"pagination: total ".concat(totalPages," pages")},react.createElement(StyledPaginationList,null,visiblePieces.map((function(_ref2,index){var type=_ref2.type,pageNumber=_ref2.pageNumber,isActive=_ref2.isActive,isDisabled=_ref2.isDisabled,key="".concat(type,"-").concat(index),onClick=function onClick(event){event.target.blur(),event.preventDefault(),onPageClick(pageNumber,event),window.scrollTo({top:0})},PageNumberLink=isActive?StyledActivePaginationLink:StyledPaginationLink;return isDisabled?null:react.createElement(StyledPaginationPiece,{key},type===constants.Qp&&react.createElement(StyledPaginationLink,{"data-test":"prev",onClick,href:getPageUrl(pageNumber)},"Previous page"),type===constants.i7&&react.createElement(StyledPagesTruncation,{"data-test":"ellipsis"},"…"),type===constants.Cn&&react.createElement(PageNumberLink,{"data-test":isActive?"page-number-active":"page-number","data-page-number":pageNumber,"aria-label":"Page ".concat(pageNumber),"aria-current":!!isActive&&"page",onClick,href:getPageUrl(pageNumber)},pageNumber),type===constants.Cy&&react.createElement(StyledPaginationLink,{"data-test":"next",onClick,href:getPageUrl(pageNumber)},"Next page"))}))))}Pagination.propTypes={totalPages:prop_types_default().number.isRequired,activePage:prop_types_default().number,onPageClick:prop_types_default().func,getPageUrl:prop_types_default().func};const components_Pagination=Pagination;Pagination.__docgenInfo={description:"",methods:[],displayName:"Pagination",props:{activePage:{defaultValue:{value:"1",computed:!1},description:"",type:{name:"number"},required:!1},getPageUrl:{defaultValue:{value:"() => '#'",computed:!1},description:"",type:{name:"func"},required:!1},totalPages:{description:"",type:{name:"number"},required:!0},onPageClick:{description:"",type:{name:"func"},required:!1}}}},"./src/client/components/Panel/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js");var _templateObject,_templateObject2,react__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_24___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_24__),styled_components__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_lib__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./node_modules/@govuk-react/lib/dist/govuk-react-lib.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./src/client/utils/colours.js"),_excluded=["title","children"];function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r{"use strict";__webpack_require__.d(__webpack_exports__,{$F:()=>CHECK_FOR_MY_TASKS_ID,I4:()=>DATA_HUB_FEED_ID,ID:()=>ID});var ID="checkInvestmentProjects",DATA_HUB_FEED_ID="checkDataHubFeed",CHECK_FOR_MY_TASKS_ID="checkForMyTasks"},"./src/client/components/ProgressIndicator.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_govuk_react_loading_box__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@govuk-react/loading-box/dist/govuk-react-loading-box.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_govuk_react_icons__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@govuk-react/icons/dist/govuk-react-icons.esm.js"),styled_components__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_InlineIcon__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/client/components/InlineIcon/index.js"),StyledRoot=styled_components__WEBPACK_IMPORTED_MODULE_5__.Ay.div({textAlign:"center"}),StyledLoadingBox=(0,styled_components__WEBPACK_IMPORTED_MODULE_5__.Ay)(_govuk_react_loading_box__WEBPACK_IMPORTED_MODULE_1__.A)({height:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_2__.Es.SCALE_5,marginTop:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_2__.Es.SCALE_5,marginBottom:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_2__.Es.SCALE_3}),ProgressIndicator=function ProgressIndicator(_ref){var noun=_ref.noun,_ref$message=_ref.message,message=void 0===_ref$message?"Loading ".concat(noun):_ref$message;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledRoot,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledLoadingBox,{loading:!0}),message&&react__WEBPACK_IMPORTED_MODULE_0__.createElement("p",null,message))};ProgressIndicator.Inline=function(_ref2){var noun=_ref2.noun,_ref2$message=_ref2.message,message=void 0===_ref2$message?"Loading ".concat(noun):_ref2$message;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_InlineIcon__WEBPACK_IMPORTED_MODULE_4__.A,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_govuk_react_icons__WEBPACK_IMPORTED_MODULE_3__.y$,null))," ",react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{style:{opacity:.3}},message))};const __WEBPACK_DEFAULT_EXPORT__=ProgressIndicator;ProgressIndicator.__docgenInfo={description:"@function ProgressIndicator\n@description A progress indicator\n@param {Object} props\n@param {string} props.noun - A noun describing the thing in progress\n@param {string} [props.message = `Loading ${noun}`] - The message\nrendered underneath the spinner icon.\n@returns {JSX.Element}",methods:[{name:"Inline",docblock:"@function ProgressIndicator.Inline\n@description A progress indicator designed to be rendered nicely in any\ninline context.\n@param {Object} props\n@param {string} props.noun - A noun describing the thing in progress\n@param {string} [props.message = `Loading ${noun}`] - The message\nrendered next to the spinner icon.\n@returns {JSX.Element}",modifiers:["static"],params:[{name:"{ noun, message = `Loading ${noun}` }",optional:!1}],returns:null,description:null}],displayName:"ProgressIndicator",props:{}}},"./src/client/components/ProtectedLink/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js");var react_redux__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react-redux/dist/react-redux.mjs"),prop_types__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__),ProtectedLink=function ProtectedLink(_ref){var module=_ref.module,modulePermissions=_ref.modulePermissions,_ref$children=_ref.children,children=void 0===_ref$children?null:_ref$children;return null!=modulePermissions&&modulePermissions.includes(module)?children:null};ProtectedLink.propTypes={module:prop_types__WEBPACK_IMPORTED_MODULE_2___default().string.isRequired,modulePermissions:prop_types__WEBPACK_IMPORTED_MODULE_2___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_2___default().string).isRequired,children:prop_types__WEBPACK_IMPORTED_MODULE_2___default().element};const __WEBPACK_DEFAULT_EXPORT__=(0,react_redux__WEBPACK_IMPORTED_MODULE_3__.connect)((function(state){return state}))(ProtectedLink)},"./src/client/components/ReadMore/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js");var _templateObject,react__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_18___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_18__),styled_components__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_ButtonLink__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./src/client/components/ButtonLink/index.jsx");function _slicedToArray(r,e){return function _arrayWithHoles(r){if(Array.isArray(r))return r}(r)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(r,e)||function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0}}(r,e)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>ReferralList});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.array.sort.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js");var _templateObject,react=__webpack_require__("./node_modules/react/index.js"),govuk_react_hint_text_esm=__webpack_require__("./node_modules/@govuk-react/hint-text/dist/govuk-react-hint-text.esm.js"),govuk_react_select_esm=__webpack_require__("./node_modules/@govuk-react/select/dist/govuk-react-select.esm.js"),pluralize=__webpack_require__("./node_modules/pluralize/pluralize.js"),pluralize_default=__webpack_require__.n(pluralize),styled_components_browser_esm=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),ContentWithHeading=__webpack_require__("./src/client/components/ContentWithHeading.jsx"),govuk_react_ordered_list_esm=(__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/@govuk-react/ordered-list/dist/govuk-react-ordered-list.esm.js")),govuk_react_constants_esm=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js");var StyledOL=(0,styled_components_browser_esm.Ay)(govuk_react_ordered_list_esm.A)(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n & > * {\n margin-top: ",";\n }\n"])),govuk_react_constants_esm.Es.SCALE_4);function StyledOrderedList(_ref){var children=_ref.children;return react.createElement(StyledOL,{listStyleType:"none"},children)}const components_StyledOrderedList=StyledOrderedList;StyledOrderedList.__docgenInfo={description:"",methods:[],displayName:"StyledOrderedList"};var Task=__webpack_require__("./src/client/components/Task/index.jsx"),govuk_react_esm=(__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/govuk-react/dist/govuk-react.esm.js")),prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),colours=__webpack_require__("./src/client/utils/colours.js"),react_redux=(__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/react-redux/dist/react-redux.mjs")),govuk_react_details_esm=__webpack_require__("./node_modules/@govuk-react/details/dist/govuk-react-details.esm.js"),govuk_react_button_esm=__webpack_require__("./node_modules/@govuk-react/button/dist/govuk-react-button.esm.js"),govuk_react_link_esm=__webpack_require__("./node_modules/@govuk-react/link/dist/govuk-react-link.esm.js"),url=__webpack_require__("./node_modules/url/url.js"),urls=__webpack_require__("./src/lib/urls.js"),urls_default=__webpack_require__.n(urls),client_state=__webpack_require__("./src/apps/companies/apps/referrals/details/client/state.js"),SecondaryButton=__webpack_require__("./src/client/components/SecondaryButton.jsx"),components=__webpack_require__("./src/client/components/index.jsx"),actions=__webpack_require__("./src/client/actions.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}var _excluded=["referrerUrl"];function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r div {\n padding: ",";\n padding-bottom: ",";\n margin: "," 0 "," 4px;\n\n & > a {\n padding: "," 0 "," ",";\n }\n }\n\n "," {\n margin-top: -",";\n }\n"])),govuk_react_constants_esm.SG.SIZE_16,govuk_react_constants_esm.Es.SCALE_2,govuk_react_constants_esm.Es.SCALE_1,govuk_react_constants_esm.Es.SCALE_3,govuk_react_constants_esm.Es.SCALE_1,govuk_react_constants_esm.Es.SCALE_1,govuk_react_constants_esm.Es.SCALE_4,govuk_react_constants_esm.Es.SCALE_2,govuk_react_constants_esm.Es.SCALE_2,govuk_react_constants_esm.qs.TABLET,govuk_react_constants_esm.Es.SCALE_3),CardDetails=function(_React$PureComponent){function CardDetails(){var _this;!function CardDetails_classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function")}(this,CardDetails);for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return CardDetails_defineProperty(_this=CardDetails_callSuper(this,CardDetails,[].concat(args)),"renderLink",(function(link){return link?react.createElement(govuk_react_link_esm.A,{href:link.url},link.text):null})),_this}return function CardDetails_inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&CardDetails_setPrototypeOf(t,e)}(CardDetails,_React$PureComponent),function CardDetails_createClass(e,r,t){return r&&CardDetails_defineProperties(e.prototype,r),t&&CardDetails_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(CardDetails,[{key:"render",value:function render(){var _this2=this,_this$props=this.props,summary=_this$props.summary,showDetails=_this$props.showDetails,link=_this$props.link,children=_this$props.children,summaryVisuallyHidden=_this$props.summaryVisuallyHidden,analyticsAccordionType=_this$props.analyticsAccordionType,SummaryWithHiddenContent=react.createElement(react.Fragment,null,summary,react.createElement(govuk_react_esm.s6,null,summaryVisuallyHidden));return react.createElement(Analytics.A,null,(function(pushAnalytics){return react.createElement(GovUkDetails,{summary:summaryVisuallyHidden?SummaryWithHiddenContent:summary,open:showDetails,onClick:function onClick(){pushAnalytics({event:"viewInteractionEngagement",extra:{accordionEngagement:"clicked",accordionType:analyticsAccordionType}})}},children,_this2.renderLink(link))}))}}])}(react.PureComponent);CardDetails_defineProperty(CardDetails,"propTypes",{summary:prop_types_default().string.isRequired,summaryVisuallyHidden:prop_types_default().string,showDetails:prop_types_default().bool.isRequired,link:prop_types_default().shape({url:prop_types_default().string,text:prop_types_default().string}),children:prop_types_default().node.isRequired,analyticsAccordionType:prop_types_default().string}),CardDetails_defineProperty(CardDetails,"defaultProps",{link:null}),CardDetails.__docgenInfo={description:"",methods:[{name:"renderLink",docblock:null,modifiers:[],params:[{name:"link",optional:!1,type:null}],returns:null}],displayName:"CardDetails",props:{link:{defaultValue:{value:"null",computed:!1},description:"",type:{name:"shape",value:{url:{name:"string",required:!1},text:{name:"string",required:!1}}},required:!1},summary:{description:"",type:{name:"string"},required:!0},summaryVisuallyHidden:{description:"",type:{name:"string"},required:!1},showDetails:{description:"",type:{name:"bool"},required:!0},children:{description:"",type:{name:"node"},required:!0},analyticsAccordionType:{description:"",type:{name:"string"},required:!1}}};__webpack_require__("./node_modules/core-js/modules/es.object.values.js");var govuk_react_heading_esm=__webpack_require__("./node_modules/@govuk-react/heading/dist/govuk-react-heading.esm.js"),govuk_react_list_item_esm=__webpack_require__("./node_modules/@govuk-react/list-item/dist/govuk-react-list-item.esm.js"),Badge=__webpack_require__("./src/client/components/Badge/index.jsx");function constants_typeof(o){return constants_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},constants_typeof(o)}function constants_defineProperty(e,r,t){return(r=function constants_toPropertyKey(t){var i=function constants_toPrimitive(t,r){if("object"!=constants_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=constants_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==constants_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}colours.AV,colours.ft,colours.ft,colours.Bk,colours.AV,colours.AV,colours.ft;var SOURCE_TYPES={external:"externalDataSource"};constants_defineProperty(constants_defineProperty(constants_defineProperty(constants_defineProperty(constants_defineProperty(constants_defineProperty(constants_defineProperty(constants_defineProperty(constants_defineProperty(constants_defineProperty({"Account Management":"Account Management","A Specific Service":"Specific Service","A Specific DBT Export Service or Funding":"Service or Funding",COP26:"COP26","Enquiry received":"Enquiry","Enquiry or Referral Received":"Enquiry or Referral",Events:"Event","Export Win":"Export Win","Global Investment Summit (2021)":"Global Investment Summit (2021)","Investment Enquiry":"Enquiry","Investment - IST Aftercare Offered (IST use only)":"IST Aftercare","Investment - Services":"Service","IST Specific Service":"IST Service","Proposition Development":"Proposition Development","Trade Agreement Implementation Activity":"Implementation","GREAT - Unicorn Kingdom Campaign - North America (2023)":"GREAT - Unicorn Kingdom Campaign","Account management":"Account management","Specific service":"Specific service","DBT export service or funding":"DBT export service or funding"},"Enquiry received","Enquiry"),"Enquiry or referral","Enquiry or referral"),"Export win","Export win"),"Global Investment Summit (2021)","Global Investment Summit (2021)"),"Investment Enquiry","Enquiry"),"Investment - IST aftercare offered (IST use only)","IST Aftercare"),"Investment - services","Service"),"IST service","IST service"),"Proposition development","Proposition development"),"Trade agreement implementation activity","Implementation");var CardHeader_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7;function CardHeader_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var CardHeader_format=__webpack_require__("./src/client/utils/date.js").format,StyledBlockText=(0,styled_components_browser_esm.Ay)(govuk_react_heading_esm.H3)(CardHeader_templateObject||(CardHeader_templateObject=CardHeader_taggedTemplateLiteral(["\n display: inline-block;\n font-weight: normal;\n color: white;\n padding: 2px 5px;\n background-color: ",";\n margin-bottom: ",";\n"])),(function(_ref){return _ref.sourceType===SOURCE_TYPES.external?colours.IC:colours.ft}),govuk_react_constants_esm.Es.SCALE_2),StyledCardHeader=(0,styled_components_browser_esm.Ay)("div")(_templateObject2||(_templateObject2=CardHeader_taggedTemplateLiteral(["\n display: flex;\n flex-flow: row wrap;\n"]))),StyledCompanyName=(0,styled_components_browser_esm.Ay)("div")(_templateObject3||(_templateObject3=CardHeader_taggedTemplateLiteral(["\n margin: -"," -","\n "," -",";\n padding: "," ",";\n background: ",";\n font-size: initial;\n"])),govuk_react_constants_esm.Es.SCALE_3,govuk_react_constants_esm.Es.SCALE_3,govuk_react_constants_esm.Es.SCALE_4,govuk_react_constants_esm.Es.SCALE_3,govuk_react_constants_esm.Es.SCALE_2,govuk_react_constants_esm.Es.SCALE_3,colours.P1),StyledHeadingWrapper=(0,styled_components_browser_esm.Ay)("div")(_templateObject4||(_templateObject4=CardHeader_taggedTemplateLiteral(["\n width: 100%;\n\n "," {\n width: 0;\n flex-grow: 1;\n }\n"])),govuk_react_constants_esm.qs.TABLET),StyledHeading=(0,styled_components_browser_esm.Ay)(govuk_react_heading_esm.H3)(_templateObject5||(_templateObject5=CardHeader_taggedTemplateLiteral(["\n font-weight: normal;\n font-size: ","px;\n\n & > a:link,\n a:visited,\n a:hover,\n a:active {\n text-decoration: none;\n color: ",";\n }\n\n "," {\n margin-bottom: ",";\n }\n"])),govuk_react_constants_esm.iU.MEDIUM,colours.ft,govuk_react_constants_esm.qs.TABLET,govuk_react_constants_esm.Es.SCALE_5),StyledSubHeading=(0,styled_components_browser_esm.Ay)("span")(_templateObject6||(_templateObject6=CardHeader_taggedTemplateLiteral(["\n font-weight: normal;\n font-size: ","px;\n margin-left: ","px;\n color: ",";\n"])),govuk_react_constants_esm._m.MEDIUM,govuk_react_constants_esm.Ge[1],colours.IC),StyledMetaItems=(0,styled_components_browser_esm.Ay)("ul")(_templateObject7||(_templateObject7=CardHeader_taggedTemplateLiteral(["\n list-style: none;\n padding: 0;\n margin: 0;\n\n li {\n font-size: ",";\n margin-bottom: ",";\n text-align: right;\n display: inline;\n\n "," {\n display: block;\n }\n }\n"])),govuk_react_constants_esm.SG.SIZE_16,govuk_react_constants_esm.Es.SCALE_2,govuk_react_constants_esm.qs.TABLET),CardHeader=function CardHeader(_ref2){var blockText=_ref2.blockText,subHeading=_ref2.subHeading,company=_ref2.company,sourceType=_ref2.sourceType,heading=_ref2.heading,startTime=_ref2.startTime,badge=_ref2.badge,_ref2$headingLevel=_ref2.headingLevel,headingLevel=void 0===_ref2$headingLevel?3:_ref2$headingLevel;return react.createElement(react.Fragment,null,company&&company.name&&react.createElement(StyledCompanyName,null,company.name),react.createElement(StyledCardHeader,null,react.createElement(StyledHeadingWrapper,null,blockText&&react.createElement(StyledBlockText,{sourceType},blockText),subHeading&&react.createElement(StyledSubHeading,null,subHeading),heading&&react.createElement(StyledHeading,{level:headingLevel},heading)),react.createElement(StyledMetaItems,null,startTime&&react.createElement(govuk_react_list_item_esm.A,null,CardHeader_format(startTime)),badge&&react.createElement(govuk_react_list_item_esm.A,null,react.createElement(Badge.A,{borderColour:badge.borderColour},badge.text)))))};CardHeader.propTypes={startTime:prop_types_default().string,heading:prop_types_default().node,blockText:prop_types_default().string,subHeading:prop_types_default().string,company:prop_types_default().shape({name:prop_types_default().string}),sourceType:prop_types_default().oneOf(Object.values(SOURCE_TYPES)),badge:prop_types_default().shape({text:prop_types_default().string,borderColour:prop_types_default().string})};const card_CardHeader=CardHeader;CardHeader.__docgenInfo={description:"",methods:[],displayName:"CardHeader",props:{headingLevel:{defaultValue:{value:"3",computed:!1},required:!1},startTime:{description:"",type:{name:"string"},required:!1},heading:{description:"",type:{name:"node"},required:!1},blockText:{description:"",type:{name:"string"},required:!1},subHeading:{description:"",type:{name:"string"},required:!1},company:{description:"",type:{name:"shape",value:{name:{name:"string",required:!1}}},required:!1},sourceType:{description:"",type:{name:"enum",value:[{value:'"externalDataSource"',computed:!1}]},required:!1},badge:{description:"",type:{name:"shape",value:{text:{name:"string",required:!1},borderColour:{name:"string",required:!1}}},required:!1}}};var CardTable_templateObject,govuk_react_table_esm=__webpack_require__("./node_modules/@govuk-react/table/dist/govuk-react-table.esm.js");function CardTable_typeof(o){return CardTable_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},CardTable_typeof(o)}function CardTable_classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function")}function CardTable_defineProperties(e,r){for(var t=0;tr.length)&&(a=r.length);for(var e=0,n=Array(a);e0&&void 0!==arguments[0]?arguments[0]:{filter:"received"},_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result,filter=_ref.filter;switch(type){case actions.Im2:return reducer_objectSpread(reducer_objectSpread({},state),{},{referrals:result});case actions.ilQ:return reducer_objectSpread(reducer_objectSpread({},state),{},{filter});default:return state}},dispatchToProps:function dispatchToProps(dispatch){return{onFilterChange:function onFilterChange(filter){return dispatch({type:actions.ilQ,filter})}}},actionPattern:"REFERRAL_LIST__",component:function component(_ref){var id=_ref.id,referrals=_ref.referrals,onFilterChange=_ref.onFilterChange,filter=_ref.filter;return react.createElement(Task.A.Status,{name:"Referrals",id,progressMessage:"Loading referrals",startOnRender:{onSuccessDispatch:actions.Im2}},(function(){if(referrals){var filteredReferrals=referrals.filter((function(_ref2){return _ref2.direction===filter})).sort((function(a,b){return new Date(b.date)-new Date(a.date)}));return react.createElement(ContentWithHeading.A,{heading:pluralize_default()("".concat(filter," referral"),filteredReferrals.length,!0),level:"2",headingActions:react.createElement(StyledLabel,{htmlFor:"view-referrals"},"View",react.createElement(StyledSelectInput,{value:filter,id:"view-referrals",onChange:function onChange(e){return onFilterChange(e.target.value)}},react.createElement("option",{value:"received","aria-label":"received-referrals"},"Received referrals"),react.createElement("option",{value:"sent","aria-label":"sent-referrals"},"Sent referrals")))},referrals.length?react.createElement(components_StyledOrderedList,null,filteredReferrals.map((function(_ref3){var id=_ref3.id,referral=function ReferralList_objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function ReferralList_objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__=(0,__webpack_require__("./src/client/components/Resource/Resource.jsx").wn)("BusinessPotential","business-potential")},"./src/client/components/Resource/Company.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__=(0,__webpack_require__("./src/client/components/Resource/Resource.jsx").AU)("Company",(function(id){return"v4/company/".concat(id)}))},"./src/client/components/Resource/Contact.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__=(0,__webpack_require__("./src/client/components/Resource/Resource.jsx").AU)("Contact",(function(id){return"v3/contact/".concat(id)}))},"./src/client/components/Resource/Countries.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__=(0,__webpack_require__("./src/client/components/Resource/Resource.jsx").wn)("Countries","country")},"./src/client/components/Resource/Paginated.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.string.search.js");var _templateObject,react__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_31__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_31___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_31__),react_router_dom__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__("./node_modules/react-router/dist/development/chunk-D52XG6IA.mjs"),qs__WEBPACK_IMPORTED_MODULE_30__=__webpack_require__("./node_modules/qs/lib/index.js"),qs__WEBPACK_IMPORTED_MODULE_30___default=__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_30__),styled_components__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_utils_multiinstance__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./src/client/utils/multiinstance.js"),_Task__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./src/client/components/Task/index.jsx"),_Task_LoadingBox__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./src/client/components/Task/LoadingBox.jsx"),_Pagination__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("./src/client/components/Pagination/index.jsx"),_CollectionList_CollectionHeader__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./src/client/components/CollectionList/CollectionHeader.jsx"),_CollectionList_CollectionSort__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./src/client/components/CollectionList/CollectionSort.jsx"),_actions__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("./src/client/actions.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r0&&react__WEBPACK_IMPORTED_MODULE_20__.createElement(StyledCollectionSort,{totalPages,sortOptions,qsParamName:sortByQsParamName}),result?children(result.results):null,react__WEBPACK_IMPORTED_MODULE_20__.createElement(_Pagination__WEBPACK_IMPORTED_MODULE_24__.A,{totalPages,activePage:routePage,onPageClick:function onPageClick(clickedPage){_onPageClick(clickedPage),null==task||task.start({onSuccessDispatch:_actions__WEBPACK_IMPORTED_MODULE_28__.ONB,payload:_objectSpread(_objectSpread({},payload),{},{limit:pageSize,offset:(clickedPage-1)*pageSize})})}}),1===totalPages&&react__WEBPACK_IMPORTED_MODULE_20__.createElement("br",null)):react__WEBPACK_IMPORTED_MODULE_20__.createElement(_Task__WEBPACK_IMPORTED_MODULE_22__.A.Status,{name,id}),hasZeroResults&&react__WEBPACK_IMPORTED_MODULE_20__.createElement("p",{"data-test":"no-results"},noResults))}))}});PaginatedResource.propTypes={name:prop_types__WEBPACK_IMPORTED_MODULE_31___default().string.isRequired,id:prop_types__WEBPACK_IMPORTED_MODULE_31___default().string.isRequired,children:prop_types__WEBPACK_IMPORTED_MODULE_31___default().func,pageSize:prop_types__WEBPACK_IMPORTED_MODULE_31___default().number,payload:prop_types__WEBPACK_IMPORTED_MODULE_31___default().object};const __WEBPACK_DEFAULT_EXPORT__=PaginatedResource},"./src/client/components/Resource/Resource.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{AU:()=>createEntityResource,Ay:()=>__WEBPACK_DEFAULT_EXPORT__,wn:()=>createMetadataResource,xo:()=>createCollectionResource});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js");var lodash__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./node_modules/lodash/lodash.js"),lodash__WEBPACK_IMPORTED_MODULE_23___default=__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_23__),prop_types__WEBPACK_IMPORTED_MODULE_39__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_39___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_39__),react__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("./node_modules/react/index.js"),_utils_multiinstance__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./src/client/utils/multiinstance.js"),_Task_utils__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./src/client/components/Task/utils.js"),_Task__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("./src/client/components/Task/index.jsx"),_Task_LoadingBox__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("./src/client/components/Task/LoadingBox.jsx"),_utils__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__("./src/client/utils/index.js"),_ProgressIndicator__WEBPACK_IMPORTED_MODULE_30__=__webpack_require__("./src/client/components/ProgressIndicator.jsx"),_Task_Error__WEBPACK_IMPORTED_MODULE_31__=__webpack_require__("./src/client/components/Task/Error.jsx"),_Paginated__WEBPACK_IMPORTED_MODULE_32__=__webpack_require__("./src/client/components/Resource/Paginated.js"),_Form_elements_ResourceOptionsField__WEBPACK_IMPORTED_MODULE_33__=__webpack_require__("./src/client/components/Form/elements/ResourceOptionsField/index.jsx"),_Form_elements_FieldRadios__WEBPACK_IMPORTED_MODULE_34__=__webpack_require__("./src/client/components/Form/elements/FieldRadios/index.jsx"),_Form_elements_FieldCheckboxes__WEBPACK_IMPORTED_MODULE_35__=__webpack_require__("./src/client/components/Form/elements/FieldCheckboxes/index.jsx"),_Form_elements_FieldTypeahead__WEBPACK_IMPORTED_MODULE_36__=__webpack_require__("./src/client/components/Form/elements/FieldTypeahead/index.jsx"),_Form_elements_FieldSelect__WEBPACK_IMPORTED_MODULE_37__=__webpack_require__("./src/client/components/Form/elements/FieldSelect/index.jsx"),_Form_elements_FieldChoice__WEBPACK_IMPORTED_MODULE_38__=__webpack_require__("./src/client/components/Form/elements/FieldChoice/index.jsx"),_excluded=["id"];function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;er.length)&&(a=r.length);for(var e=0,n=Array(a);e{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__=(0,__webpack_require__("./src/client/components/Resource/Resource.jsx").wn)("Sector","sector")},"./src/client/components/Resource/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ar:()=>Company.A,xb:()=>Contact.A,NW:()=>Countries.A,DZ:()=>EYBLead,sv:()=>Investment,uf:()=>RelatedCompaniesCount,_n:()=>TaskCompaniesAndProjects});var Resource=__webpack_require__("./src/client/components/Resource/Resource.jsx");(0,Resource.AU)("Adviser",(function(id){return"adviser/".concat(id,"/")})),(0,Resource.wn)("AssetClasses","capital-investment/asset-class-interest"),(0,Resource.wn)("AssociatedProgramme","associated-programme"),(0,Resource.wn)("BreakdownType","breakdown-type");__webpack_require__("./src/client/components/Resource/BusinessPotential.js");(0,Resource.wn)("BusinessActivity","investment-business-activity");var Company=__webpack_require__("./src/client/components/Resource/Company.js");(0,Resource.xo)("changes to company business details",(function(id){return"v4/company/".concat(id,"/audit")})),(0,Resource.AU)("CompanyContacts",(function(id){return"v4/contact?company_id=".concat(id)})),(0,Resource.AU)("CompanyObjectivesCount",(function(id){return"v4/company/".concat(id,"/objective/count")})),(0,Resource.AU)("CompanyObjectives",(function(id){return"v4/company/".concat(id,"/objective?sortby=target_date")})),(0,Resource.AU)("CompanyOneListTeam",(function(id){return"v4/company/".concat(id,"/one-list-group-core-team")})),(0,Resource.wn)("ConstructionRisks","capital-investment/construction-risk");var Contact=__webpack_require__("./src/client/components/Resource/Contact.js");(0,Resource.xo)("contact change",(function(id){return"v3/contact/".concat(id,"/audit")}));var Countries=__webpack_require__("./src/client/components/Resource/Countries.js");(0,Resource.wn)("DealTicketSizes","capital-investment/deal-ticket-size"),(0,Resource.wn)("DeliveryPartners","investment-delivery-partner"),(0,Resource.wn)("DesiredDealRoles","capital-investment/desired-deal-role"),(0,Resource.AU)("Event",(function(id){return"v3/event/".concat(id)})),(0,Resource.wn)("EvidenceTag","evidence-tag"),(0,Resource.wn)("ExpectedValueRelation","expected-value-relation"),(0,Resource.wn)("Experience","experience"),(0,Resource.wn)("ExperienceCategories","experience-categories"),(0,Resource.wn)("ExportExperience","export-experience"),(0,Resource.wn)("ExportExperienceCategory","export-experience-category"),(0,Resource.AU)("Export",(function(id){return"v4/export/".concat(id)})),(0,Resource.wn)("ExportYears","export-years");const EYBLead=(0,Resource.AU)("EYBLead",(function(id){return"v4/investment-lead/eyb/".concat(id)})),Investment=((0,Resource.wn)("FDITypes","fdi-type"),(0,Resource.wn)("FDIValues","fdi-value"),(0,Resource.wn)("HQTeamRegionOrPost","hq-team-region-or-post"),(0,Resource.wn)("HvoProgrammes","hvo-programmes"),(0,Resource.wn)("Hvc","hvc"),(0,Resource.AU)("Interaction",(function(id){return"v4/interaction/".concat(id)})),(0,Resource.xo)("Interactions","v4/interaction"),(0,Resource.AU)("Investment",(function(id){return"v3/investment/".concat(id)}))),RelatedCompaniesCount=((0,Resource.AU)("InvestmentEvidence",(function(id){return"v3/investment/".concat(id,"/evidence-document")})),(0,Resource.wn)("InvestmentProjectStages","investment-project-stage"),(0,Resource.wn)("InvestmentTypes","investment-type"),(0,Resource.wn)("InvestorType","capital-investment/investor-type"),(0,Resource.wn)("InvestmentInvestorTypes","investment-investor-type"),(0,Resource.xo)("InvestmentProjectTasks","v4/task"),(0,Resource.wn)("LargeCapitalInvestmentEquityPercentages","capital-investment/equity-percentage"),(0,Resource.wn)("LargeCapitalInvestmentRestrictions","capital-investment/restriction"),(0,Resource.wn)("LargeCapitalInvestmentReturnRates","capital-investment/return-rate"),(0,Resource.wn)("LargeCapitalInvestmentTypes","capital-investment/large-capital-investment-type"),(0,Resource.AU)("LargeInvestorProfile",(function(id){return"v4/large-investor-profile?investor_company_id=".concat(id)})),(0,Resource.wn)("LevelOfInvolvement","investment-involvement"),(0,Resource.wn)("LikelihoodToLand","likelihood-to-land"),(0,Resource.wn)("MarketingSource","marketing-source"),(0,Resource.AU)("MyTasksDueDateApproachingSettings",(function(){return"v4/reminder/subscription/my-tasks-due-date-approaching"})),(0,Resource.AU)("TaskAssignedToMeFromOthersSettings",(function(){return"v4/reminder/subscription/my-tasks-task-assigned-to-me-from-others"})),(0,Resource.AU)("TaskAmendedByOthersSettings",(function(){return"v4/reminder/subscription/my-tasks-task-amended-by-others"})),(0,Resource.AU)("TaskOverdueSettings",(function(){return"v4/reminder/subscription/my-tasks-task-overdue"})),(0,Resource.wn)("OmisMarkets","omis-market"),(0,Resource.wn)("OneListTiers","one-list-tier"),(0,Resource.AU)("Opportunity",(function(id){return"v4/large-capital-opportunity/".concat(id)})),(0,Resource.wn)("OpportunityStatuses","large-capital-opportunity/opportunity-status"),(0,Resource.wn)("OpportunityValueType","large-capital-opportunity/opportunity-value-type"),(0,Resource.AU)("Order",(function(id){return"v3/omis/order/".concat(id)})),(0,Resource.AU)("OrderAssignees",(function(id){return"v3/omis/order/".concat(id,"/assignee")})),(0,Resource.wn)("OrderCancellationReasons","order-cancellation-reason"),(0,Resource.AU)("OrderInvoice",(function(id){return"v3/omis/order/".concat(id,"/invoice")})),(0,Resource.AU)("OrderQuote",(function(id){return"v3/omis/order/".concat(id,"/quote")})),(0,Resource.AU)("OrderPayment",(function(id){return"v3/omis/order/".concat(id,"/payment")})),(0,Resource.wn)("OrderServiceTypes","order-service-type"),(0,Resource.AU)("OrderSubscribers",(function(id){return"v3/omis/order/".concat(id,"/subscriber-list")})),(0,Resource.xo)("project change",(function(id){return"v3/investment/".concat(id,"/audit")})),(0,Resource.AU)("ProjectDocument",(function(id){return id})),(0,Resource.AU)("Proposition",(function(id){return id})),(0,Resource.xo)("Propositions","v4/proposition"),(0,Resource.AU)("PropositionEvidence",(function(id){return id})),(0,Resource.wn)("Rating","rating"),(0,Resource.wn)("ReferralSourceActivity","referral-source-activity"),(0,Resource.wn)("ReferralSourceMarketing","referral-source-marketing"),(0,Resource.wn)("ReferralSourceWebsite","referral-source-website"),(0,Resource.wn)("RequiredChecksConducted","capital-investment/required-checks-conducted"),(0,Resource.AU)("RelatedCompaniesCount",(function(id){return"v4/dnb/".concat(id,"/related-companies/count?include_manually_linked_companies=true")})));(0,Resource.wn)("SalaryRanges","salary-range");__webpack_require__("./src/client/components/Resource/Sector.js");(0,Resource.wn)("StrategicDrivers","investment-strategic-driver"),(0,Resource.wn)("SpecificProgrammes","investment-specific-programme"),(0,Resource.wn)("SupportType","support-type"),(0,Resource.AU)("Task",(function(id){return"v4/task/".concat(id)})),(0,Resource.wn)("TeamType","team-type"),(0,Resource.wn)("TimeHorizons","capital-investment/time-horizon"),(0,Resource.wn)("UKRegions","uk-region"),(0,Resource.wn)("WinType","win-type"),(0,Resource.wn)("Win UK Regions","winukregion"),(0,Resource.wn)("WithoutOurSupport","without-our-support"),(0,Resource.AU)("TaskCompletedSettings",(function(){return"v4/reminder/subscription/my-tasks-task-completed"}));const TaskCompaniesAndProjects=(0,Resource.AU)("TaskCompaniesAndProjectsResource",(function(){return"v4/task/companies-and-projects"}))},"./src/client/components/RoutedInput/Filter.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var styled_components__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/utils/colours.js"),___WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/client/components/RoutedInput/index.jsx");const __WEBPACK_DEFAULT_EXPORT__=(0,styled_components__WEBPACK_IMPORTED_MODULE_3__.Ay)(___WEBPACK_IMPORTED_MODULE_2__.A)({fontSize:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_0__.SG.SIZE_16,lineHeight:"25px",padding:"6px 10px",marginTop:5,border:"2px solid ".concat(_client_utils_colours__WEBPACK_IMPORTED_MODULE_1__.Uv),appearance:null,display:"block",boxSizing:"border-box",width:"100%","&:focus":{outline:"3px solid ".concat(_client_utils_colours__WEBPACK_IMPORTED_MODULE_1__.eM),outlineOffset:0}})},"./src/client/components/RoutedInput/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>components_RoutedInput});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.string.search.js");var react=__webpack_require__("./node_modules/react/index.js"),govuk_react_input_esm=__webpack_require__("./node_modules/@govuk-react/input/dist/govuk-react-input.esm.js"),prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),lib=__webpack_require__("./node_modules/qs/lib/index.js"),lib_default=__webpack_require__.n(lib),chunk_D52XG6IA=__webpack_require__("./node_modules/react-router/dist/development/chunk-D52XG6IA.mjs"),multiinstance=__webpack_require__("./src/client/utils/multiinstance.js");__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js");function _slicedToArray(r,e){return function _arrayWithHoles(r){if(Array.isArray(r))return r}(r)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(r,e)||function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0}}(r,e)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js");var react__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/index.js"),styled_components__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),prop_types__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__),_RoutedInput_Filter__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/client/components/RoutedInput/Filter.js"),_FilterLabel__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/client/components/FilterLabel.js"),_excluded=["label"];var StyledFilterLabel=(0,styled_components__WEBPACK_IMPORTED_MODULE_6__.Ay)(_FilterLabel__WEBPACK_IMPORTED_MODULE_5__.A)({marginBottom:32}),RoutedInputFieldFilter=function RoutedInputFieldFilter(_ref){var label=_ref.label,props=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js");var react__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__),styled_components__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_RoutedInput_Filter__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/client/components/RoutedInput/Filter.js"),_FilterLabel__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/client/components/FilterLabel.js"),_excluded=["id","qsParam","label"];var StyledContainer=styled_components__WEBPACK_IMPORTED_MODULE_6__.Ay.div({display:"flex",alignItems:"baseline"}),StyledDivider=styled_components__WEBPACK_IMPORTED_MODULE_6__.Ay.div({padding:"0.5rem"}),StyledFieldset=styled_components__WEBPACK_IMPORTED_MODULE_6__.Ay.fieldset({marginBottom:32}),RoutedNumericRangeField=function RoutedNumericRangeField(_ref){var id=_ref.id,qsParam=_ref.qsParam,label=_ref.label,props=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r{"use strict";__webpack_require__.d(__webpack_exports__,{S:()=>INCLUDE_RELATED_COMPANIES_DISABLED_SUBSIDIARY,j:()=>INCLUDE_RELATED_COMPANIES});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js");var _templateObject,react__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/index.js"),_govuk_react_button__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@govuk-react/button/dist/govuk-react-button.esm.js"),styled_components__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/client/utils/colours.js");function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var react__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("./node_modules/react/index.js"),styled_components__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),govuk_react__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./node_modules/govuk-react/dist/govuk-react.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_govuk_react_lib__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("./node_modules/@govuk-react/lib/dist/govuk-react-lib.esm.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}var _templateObject,_excluded=["input"],_excluded2=["onChange","initialValue"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;er.length)&&(a=r.length);for(var e=0,n=Array(a);e{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var govuk_react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/govuk-react/dist/govuk-react.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js");const __WEBPACK_DEFAULT_EXPORT__=(0,__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js").Ay)(govuk_react__WEBPACK_IMPORTED_MODULE_0__.B5)({marginBottom:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_1__.Es.SCALE_3})},"./src/client/components/StatusMessage/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js");var _templateObject,prop_types__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__),styled_components__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_lib__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@govuk-react/lib/dist/govuk-react-lib.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/client/utils/colours.js");var StatusMessage=(0,styled_components__WEBPACK_IMPORTED_MODULE_6__.Ay)("div").attrs((function(props){return{colour:props.colour||_client_utils_colours__WEBPACK_IMPORTED_MODULE_5__.ft,role:"alert","data-test":props["data-test"]||"status-message"}}))(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n border: ",";\n color: ",";\n font-weight: bold;\n line-height: 1.5;\n ",";\n ",";\n ",";\n"])),(function(_ref){var colour=_ref.colour;return"".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__.Es.SCALE_1," solid ").concat(colour)}),(function(_ref2){return _ref2.colour}),_govuk_react_lib__WEBPACK_IMPORTED_MODULE_3__.YK.responsivePadding(4),_govuk_react_lib__WEBPACK_IMPORTED_MODULE_3__.YK.withWhiteSpace({marginBottom:6}),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__.bs);StatusMessage.propTypes={colour:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string,children:prop_types__WEBPACK_IMPORTED_MODULE_7___default().node.isRequired};const __WEBPACK_DEFAULT_EXPORT__=StatusMessage},"./src/client/components/StatusMessageHeader/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js");var _templateObject,prop_types__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__),styled_components__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_lib__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@govuk-react/lib/dist/govuk-react-lib.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_utils_colours__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/client/utils/colours.js");var StatusMessageHeader=(0,styled_components__WEBPACK_IMPORTED_MODULE_6__.Ay)("div").attrs((function(props){return{borderColour:props.borderColour||_utils_colours__WEBPACK_IMPORTED_MODULE_5__.ft,textColour:props.textColour||_utils_colours__WEBPACK_IMPORTED_MODULE_5__.ft,role:"alert","data-test":props["data-test"]||"status-message-header"}}))(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n border: ",";\n color: ",";\n font-weight: bold;\n line-height: 1.5;\n ",";\n ",";\n ",";\n"])),(function(_ref){var borderColour=_ref.borderColour;return"".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__.Es.SCALE_1," solid ").concat(borderColour)}),(function(_ref2){return _ref2.textColour}),_govuk_react_lib__WEBPACK_IMPORTED_MODULE_3__.YK.responsivePadding(4),_govuk_react_lib__WEBPACK_IMPORTED_MODULE_3__.YK.withWhiteSpace({marginBottom:6}),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__.bs);StatusMessageHeader.propTypes={borderColour:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string,textColour:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string,children:prop_types__WEBPACK_IMPORTED_MODULE_7___default().node.isRequired};const __WEBPACK_DEFAULT_EXPORT__=StatusMessageHeader},"./src/client/components/SummaryList/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js");var _templateObject,_templateObject2,_templateObject3,_templateObject4,react__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/react/index.js"),lodash__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/lodash/lodash.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),styled_components__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),prop_types__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_13__),_excluded=["rows"];function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var StyledInnerRow=(0,styled_components__WEBPACK_IMPORTED_MODULE_12__.Ay)("div")(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n padding: "," 0;\n\n "," {\n display: inline-flex;\n }\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_11__.Es.SCALE_2,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_11__.qs.TABLET),StyledDL=(0,styled_components__WEBPACK_IMPORTED_MODULE_12__.Ay)("dl")(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n "," {\n display: flex;\n flex-direction: column;\n }\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_11__.qs.TABLET),StyledDT=(0,styled_components__WEBPACK_IMPORTED_MODULE_12__.Ay)("dt")(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n padding-right: ",";\n width: 30%;\n font-weight: bold;\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_11__.Es.SCALE_4),StyledDD=(0,styled_components__WEBPACK_IMPORTED_MODULE_12__.Ay)("dd")(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n width: 70%;\n"]))),SummaryList=function SummaryList(_ref){var rows=_ref.rows,rest=function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js");var _templateObject,_templateObject2,_templateObject3,_templateObject4,_govuk_react_table__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/@govuk-react/table/dist/govuk-react-table.esm.js"),styled_components__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),react__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_19___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_19__),lodash__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./node_modules/lodash/lodash.js"),_govuk_react_lib__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./node_modules/@govuk-react/lib/dist/govuk-react-lib.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./src/client/utils/colours.js"),_utils_number_utils__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./src/client/utils/number-utils.js"),_Tag__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("./src/client/components/Tag/index.jsx"),_excluded=["caption","actions","children"],_excluded2=["heading","children","hideWhenEmpty","flag"],_excluded3=["heading","value","emptyValue"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e tbody th {\n width: 30%;\n }\n & > caption {\n ",";\n margin-bottom: ",";\n }\n & > tbody > tr:first-child {\n border-top: 1px solid ",";\n }\n & > caption > * {\n ",";\n float: right;\n margin-left: ",";\n }\n"])),_govuk_react_lib__WEBPACK_IMPORTED_MODULE_13__.Il.font({size:24,weight:"bold"}),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__.Es.SCALE_2,_client_utils_colours__WEBPACK_IMPORTED_MODULE_15__.Pe,_govuk_react_lib__WEBPACK_IMPORTED_MODULE_13__.Il.font({size:19,weight:"normal"}),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__.Es.SCALE_3),StyledCellList=(0,styled_components__WEBPACK_IMPORTED_MODULE_18__.Ay)("ul")(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n list-style: none;\n padding: 0;\n margin: 0;\n"]))),StyledTag=(0,styled_components__WEBPACK_IMPORTED_MODULE_18__.Ay)(_Tag__WEBPACK_IMPORTED_MODULE_17__.A)(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n float: right;\n"]))),SummaryTable=function SummaryTable(_ref){var caption=_ref.caption,actions=_ref.actions,children=_ref.children,rest=_objectWithoutProperties(_ref,_excluded);return react__WEBPACK_IMPORTED_MODULE_11__.createElement(StyledTable,_extends({caption:caption&&[caption,actions]},rest,{"data-component":"SummaryTable"}),children)},StyledTableRow=(0,styled_components__WEBPACK_IMPORTED_MODULE_18__.Ay)(_govuk_react_table__WEBPACK_IMPORTED_MODULE_10__.A.Row)(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n font-size: ",";\n line-height: ",";\n white-space: pre-wrap;\n\n /* Conditionally apply the red border when flag is false */\n ","\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__.SG.SIZE_16,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__.$g.SIZE_24,(function(props){return props.invalid&&"\n border-left: ".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__.d6," solid ").concat(_client_utils_colours__WEBPACK_IMPORTED_MODULE_15__.su,";\n margin-right: ").concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__.Es.SCALE_3,";\n padding-left: ").concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__.Es.SCALE_2,";\n ")}));SummaryTable.Row=function(_ref2){var heading=_ref2.heading,children=_ref2.children,hideWhenEmpty=_ref2.hideWhenEmpty,flag=_ref2.flag,props=_objectWithoutProperties(_ref2,_excluded2);if(hideWhenEmpty&&(0,lodash__WEBPACK_IMPORTED_MODULE_12__.isEmpty)(children))return null;return react__WEBPACK_IMPORTED_MODULE_11__.createElement(StyledTableRow,_extends({invalid:flag},props),heading&&react__WEBPACK_IMPORTED_MODULE_11__.createElement(_govuk_react_table__WEBPACK_IMPORTED_MODULE_10__.A.CellHeader,null,heading),react__WEBPACK_IMPORTED_MODULE_11__.createElement(_govuk_react_table__WEBPACK_IMPORTED_MODULE_10__.A.Cell,null,function renderChildren(){return Array.isArray(children)?react__WEBPACK_IMPORTED_MODULE_11__.createElement(StyledCellList,props,children.filter((function(c){return c})).map((function(c,index){return react__WEBPACK_IMPORTED_MODULE_11__.createElement("li",{key:"".concat(c,"-").concat(index)},c)}))):children}()))},SummaryTable.TextRow=function(_ref3){var heading=_ref3.heading,value=_ref3.value;return react__WEBPACK_IMPORTED_MODULE_11__.createElement(SummaryTable.Row,{heading},value||react__WEBPACK_IMPORTED_MODULE_11__.createElement(StyledTag,null,"incomplete"))},SummaryTable.CurrencyRow=function(_ref4){var heading=_ref4.heading,value=_ref4.value;return react__WEBPACK_IMPORTED_MODULE_11__.createElement(SummaryTable.Row,{heading},value?(0,_utils_number_utils__WEBPACK_IMPORTED_MODULE_16__.Dv)(value):react__WEBPACK_IMPORTED_MODULE_11__.createElement(StyledTag,null,"incomplete"))},SummaryTable.ListRow=function(_ref5){var heading=_ref5.heading,_ref5$value=_ref5.value,value=void 0===_ref5$value?[]:_ref5$value,emptyValue=_ref5.emptyValue,rest=_objectWithoutProperties(_ref5,_excluded3);return react__WEBPACK_IMPORTED_MODULE_11__.createElement(SummaryTable.Row,_extends({heading},rest),value&&value.length?react__WEBPACK_IMPORTED_MODULE_11__.createElement("ul",null,value.map((function(v,i){return react__WEBPACK_IMPORTED_MODULE_11__.createElement("li",{key:"".concat(heading,"-").concat(i)},v.label)}))):void 0===emptyValue?react__WEBPACK_IMPORTED_MODULE_11__.createElement(StyledTag,null,"incomplete"):emptyValue)},SummaryTable.propTypes={caption:prop_types__WEBPACK_IMPORTED_MODULE_19___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_19___default().string,prop_types__WEBPACK_IMPORTED_MODULE_19___default().element]),actions:prop_types__WEBPACK_IMPORTED_MODULE_19___default().node,children:prop_types__WEBPACK_IMPORTED_MODULE_19___default().node},SummaryTable.Row.propTypes={heading:prop_types__WEBPACK_IMPORTED_MODULE_19___default().string,children:prop_types__WEBPACK_IMPORTED_MODULE_19___default().node},SummaryTable.TextRow.propTypes={heading:prop_types__WEBPACK_IMPORTED_MODULE_19___default().string,value:prop_types__WEBPACK_IMPORTED_MODULE_19___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_19___default().string,prop_types__WEBPACK_IMPORTED_MODULE_19___default().element,prop_types__WEBPACK_IMPORTED_MODULE_19___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_19___default().element)])},SummaryTable.CurrencyRow.propTypes={heading:prop_types__WEBPACK_IMPORTED_MODULE_19___default().string,value:prop_types__WEBPACK_IMPORTED_MODULE_19___default().number},SummaryTable.ListRow.propTypes={heading:prop_types__WEBPACK_IMPORTED_MODULE_19___default().string,value:prop_types__WEBPACK_IMPORTED_MODULE_19___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_19___default().shape({label:prop_types__WEBPACK_IMPORTED_MODULE_19___default().string,value:prop_types__WEBPACK_IMPORTED_MODULE_19___default().string}))};const __WEBPACK_DEFAULT_EXPORT__=SummaryTable;SummaryTable.__docgenInfo={description:"",methods:[{name:"Row",docblock:null,modifiers:["static"],params:[{name:"{ heading, children, hideWhenEmpty, flag, ...props }",optional:!1,type:null}],returns:null},{name:"TextRow",docblock:null,modifiers:["static"],params:[{name:"{ heading, value }",optional:!1,type:null}],returns:null},{name:"CurrencyRow",docblock:null,modifiers:["static"],params:[{name:"{ heading, value }",optional:!1,type:null}],returns:null},{name:"ListRow",docblock:null,modifiers:["static"],params:[{name:"{ heading, value = [], emptyValue, ...rest }",optional:!1,type:null}],returns:null}],displayName:"SummaryTable",props:{caption:{description:"",type:{name:"union",value:[{name:"string"},{name:"element"}]},required:!1},actions:{description:"",type:{name:"node"},required:!1},children:{description:"",type:{name:"node"},required:!1}}}},"./src/client/components/TabNav/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Rb:()=>DashboardTabNav,Mq:()=>HeadlessTabNav,Ay:()=>components_TabNav});__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.entries.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.replace.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.search.js"),__webpack_require__("./node_modules/core-js/modules/es.string.starts-with.js");var prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),react=__webpack_require__("./node_modules/react/index.js"),chunk_D52XG6IA=__webpack_require__("./node_modules/react-router/dist/development/chunk-D52XG6IA.mjs"),styled_components_browser_esm=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),govuk_react_constants_esm=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),colours=__webpack_require__("./src/client/utils/colours.js"),multiinstance=__webpack_require__("./src/client/utils/multiinstance.js"),actions=__webpack_require__("./src/client/actions.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;rr.length)&&(a=r.length);for(var e=0,n=Array(a);e=r.length?{done:!0}:{done:!1,value:r[_n++]}},e:function e(r){throw r},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function s(){t=t.call(r)},n:function n(){var r=t.next();return a=r.done,r},e:function e(r){u=!0,o=r},f:function f(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}(keys);try{for(_iterator.s();!(_step=_iterator.n()).done;){var key=_step.value;if(key.length>1&&selectedTab.startsWith(key))return tabs[key].content}}catch(err){_iterator.e(err)}finally{_iterator.f()}}var TabNav=function TabNav(_ref){var selectedIndex=_ref.selectedIndex,focusIndex=_ref.focusIndex,tabs=_ref.tabs,label=_ref.label,onChange=_ref.onChange,onTabChange=_ref.onTabChange,onFocusChange=_ref.onFocusChange,id=_ref.id,routed=_ref.routed,_ref$keepQueryParams=_ref.keepQueryParams,keepQueryParams=void 0!==_ref$keepQueryParams&&_ref$keepQueryParams,props=_objectWithoutProperties(_ref,_excluded),location=(0,chunk_D52XG6IA.zy)(),navigate=(0,chunk_D52XG6IA.Zp)(),tabKeys=Object.keys(tabs),tablistRef=(0,react.useRef)();selectedIndex=routed?location.pathname:selectedIndex;var isSelectedValid=tabKeys.includes(selectedIndex);return(0,react.useEffect)((function(){var _tablistRef$current;null===(_tablistRef$current=tablistRef.current)||void 0===_tablistRef$current||null===(_tablistRef$current=_tablistRef$current.querySelectorAll("[role=tab]")[focusIndex])||void 0===_tablistRef$current||_tablistRef$current.focus()}),[focusIndex,selectedIndex]),react.createElement("div",props,react.createElement("div",{tabIndex:-1,role:"tablist",ref:tablistRef,"data-test":"tablist","aria-label":label,onKeyUp:function onKeyUp(_ref2){var _selectedIndex,keyCode=_ref2.keyCode,totalTabs=tabKeys.length,foundIndex=tabKeys.indexOf(null===(_selectedIndex=selectedIndex)||void 0===_selectedIndex?void 0:_selectedIndex.toString()),currentFocusIndex=void 0!==focusIndex?focusIndex:void 0===selectedIndex||-1===foundIndex?0:foundIndex;39===keyCode&&onFocusChange((currentFocusIndex+1)%totalTabs),37===keyCode&&onFocusChange(((currentFocusIndex<1?totalTabs:currentFocusIndex)-1)%totalTabs)}},Object.entries(tabs).map((function(_ref3,index){var _ref4=_slicedToArray(_ref3,2),key=_ref4[0],label=_ref4[1].label,selected=isSelectedValid?key===selectedIndex:key.length>1&&selectedIndex.startsWith(key),tabId=createId(id,key,routed);return react.createElement("button",{key:tabId,role:"tab","aria-selected":selected,id:tabId,tabIndex:void 0!==selectedIndex||index?selected?0:-1:0,onClick:function onClick(){if(onChange(key,index),onTabChange&&onTabChange({path:key}),routed&&!selected){var url=keepQueryParams?"".concat(key).concat(location.search):key;navigate(url)}}},label)}))),react.createElement("div",{role:"tabpanel",tabIndex:-1,"aria-labelledby":createId(id,selectedIndex,!0),"data-test":"tabpanel"},getContent(tabs,tabKeys,selectedIndex)))},tabPropType=prop_types_default().shape({label:prop_types_default().node.isRequired,content:prop_types_default().node});TabNav.propTypes={label:prop_types_default().string.isRequired,routed:prop_types_default().any,keepQueryParams:prop_types_default().bool,onTabChange:prop_types_default().func,tabs:prop_types_default().oneOfType([prop_types_default().arrayOf(tabPropType),prop_types_default().objectOf(tabPropType)]).isRequired};var HeadlessTabNav=(0,multiinstance.Ay)({name:"TabNav",actionPattern:"TAB_NAV__",dispatchToProps:function dispatchToProps(dispatch){return{onChange:function onChange(selectedIndex,focusIndex){return dispatch({type:actions.eyX,selectedIndex,focusIndex})},onFocusChange:function onFocusChange(focusIndex){return dispatch({type:actions.mKW,focusIndex})}}},component:TabNav,reducer:function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,focusIndex=_ref.focusIndex,selectedIndex=_ref.selectedIndex;switch(type){case actions.mKW:return _objectSpread(_objectSpread({},state),{},{focusIndex});case actions.eyX:return{selectedIndex,focusIndex};default:return state}}}),SmallScreenTabNav=(0,styled_components_browser_esm.Ay)(HeadlessTabNav)({'& > [role="tablist"] > [role="tab"]':TabNav_objectSpread(TabNav_objectSpread({},focusStyle),{},{padding:"0px",margin:"0px 0px 10px",color:colours.ft,fontSize:"16px",fontFamily:"Arial, sans-serif",textDecoration:"underline",border:"none",background:"transparent",display:"block","&::before":{content:'"— "',display:"inline-block",textDecoration:"none",color:colours.Uv,marginRight:"1ex"}})}),HorizontalTabNav=(0,styled_components_browser_esm.Ay)(SmallScreenTabNav)({display:"contents",'& > [role="tabpanel"]':{marginTop:30},'& > [role="tablist"]':TabNav_defineProperty(TabNav_defineProperty({},govuk_react_constants_esm.qs.TABLET,{display:"flex",alignItems:"baseline",gap:5,borderBottom:BORDER}),'& > [role="tab"]',TabNav_defineProperty({},govuk_react_constants_esm.qs.TABLET,{"&::before":{display:"none"},color:colours.pF,fontSize:"19px",textDecoration:"none",padding:"10px 20px",margin:"5px 0px",background:colours.P1,border:"none",cursor:"pointer",'&[aria-selected="true"]':{fontSize:"19px",textDecoration:"none",color:colours.pF,border:BORDER,borderBottom:"none",background:colours.UE,marginBottom:"-1px",padding:"14px 19px 16px"}}))}),VerticalTabNav=(0,styled_components_browser_esm.Ay)(SmallScreenTabNav)(TabNav_defineProperty(TabNav_defineProperty({},govuk_react_constants_esm.qs.TABLET,{display:"flex",alignItems:"start",gap:30,'& > [role="tabpanel"]':TabNav_defineProperty({},govuk_react_constants_esm.qs.TABLET,{flexGrow:1})}),'& > [role="tablist"]',TabNav_defineProperty({},govuk_react_constants_esm.qs.TABLET,{display:"flex",flexDirection:"column",'& > [role="tab"]':TabNav_defineProperty({},govuk_react_constants_esm.qs.TABLET,{"&::before":{display:"none"},textDecoration:"none",border:"none",background:"none",cursor:"pointer",display:"block",fontSize:"20px",padding:"11px 16px",color:colours.ft,'&[aria-selected="true"]':{color:colours.UE,background:colours._G,fontWeight:"600"}})}))),DashboardTabNav=(0,styled_components_browser_esm.Ay)(HorizontalTabNav)({'& > [role="tabpanel"]':{border:"2px solid ".concat(colours.ft),padding:govuk_react_constants_esm.Es.SCALE_3,margin:0},'& > [role="tablist"]':{border:"none",fontWeight:"bold",'& > [role="tab"]':TabNav_defineProperty({},govuk_react_constants_esm.qs.TABLET,{textDecoration:"underline",'&[aria-selected="true"]':{background:colours.ft,borderColor:colours.ft,color:colours.UE}})}});const components_TabNav=function(_ref5){var _ref5$layout=_ref5.layout,layout=void 0===_ref5$layout?"horizontal":_ref5$layout,_ref5$Component=_ref5.Component,Component=void 0===_ref5$Component?{horizontal:HorizontalTabNav,vertical:VerticalTabNav}[layout]:_ref5$Component,props=_objectWithoutProperties(_ref5,_excluded2);return react.createElement(Component,props)}},"./src/client/components/Tag/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{P:()=>TAG_COLOURS,A:()=>components_Tag});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.object.values.js");var _TAG_COLOUR_MAP,react=__webpack_require__("./node_modules/react/index.js"),styled_components_browser_esm=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),govuk_react_tag_esm=__webpack_require__("./node_modules/@govuk-react/tag/dist/govuk-react-tag.esm.js");__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _defineProperty(e,r,t){return(r=function _toPropertyKey(t){var i=function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var TAG_COLOURS={GREY:"grey",GREEN:"green",TURQUOISE:"turquoise",BLUE:"blue",LIGHT_BLUE:"lightBlue",PURPLE:"purple",PINK:"pink",RED:"red",ORANGE:"orange",YELLOW:"yellow",DARK_GREEN:"darkGreen",GOV_BLUE:"govBlue"};const colours=(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_TAG_COLOUR_MAP={},TAG_COLOURS.GREY,{colour:"#282d30",backgroundColour:"#e5e6e7"}),TAG_COLOURS.GREEN,{colour:"#005a30",backgroundColour:"#cce2d8"}),TAG_COLOURS.TURQUOISE,{colour:"#10403c",backgroundColour:"#d4ecea"}),TAG_COLOURS.BLUE,{colour:"#0c2d4a",backgroundColour:"#bbd4ea"}),TAG_COLOURS.LIGHT_BLUE,{colour:"#0c2d4a",backgroundColour:"#e8f1f8"}),TAG_COLOURS.PURPLE,{colour:"#491644",backgroundColour:"#efdfed"}),TAG_COLOURS.PINK,{colour:"#6b1c40",backgroundColour:"#f9e1ec"}),TAG_COLOURS.RED,{colour:"#2a0b06",backgroundColour:"#f4cdc6"}),TAG_COLOURS.ORANGE,{colour:"#6e3619",backgroundColour:"#fcd6c3"}),TAG_COLOURS.YELLOW,{colour:"#594d00",backgroundColour:"#fff7bf"}),_defineProperty(_defineProperty(_TAG_COLOUR_MAP,TAG_COLOURS.DARK_GREEN,{colour:"#ffffff",backgroundColour:"#10403c"}),TAG_COLOURS.GOV_BLUE,{colour:"#ffffff",backgroundColour:"#1d70b8"}));var _templateObject,_excluded=["children","colour"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var prop_types__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_23___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_23__),react__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./node_modules/react/index.js"),styled_components__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_heading__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./node_modules/@govuk-react/heading/dist/govuk-react-heading.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_govuk_react_lib__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./node_modules/@govuk-react/lib/dist/govuk-react-lib.esm.js"),lodash__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./node_modules/lodash/lodash.js"),_govuk_react_icons__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("./node_modules/@govuk-react/icons/dist/govuk-react-icons.esm.js"),_InlineIcon__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./src/client/components/InlineIcon/index.js"),_Form_elements_FormActions__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./src/client/components/Form/elements/FormActions.jsx"),_SecondaryButton__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./src/client/components/SecondaryButton.jsx"),_utils_colours__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./src/client/utils/colours.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}var StyledRoot=styled_components__WEBPACK_IMPORTED_MODULE_22__.Ay.div(function _defineProperty(e,r,t){return(r=function _toPropertyKey(t){var i=function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}({color:_utils_colours__WEBPACK_IMPORTED_MODULE_21__.pF,background:"white",wordWrap:"break-word",padding:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__.Eh.mobile,border:"".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__.d5," solid ").concat(_utils_colours__WEBPACK_IMPORTED_MODULE_21__.su),"&:focus":{outline:"".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__.uk," solid ").concat(_utils_colours__WEBPACK_IMPORTED_MODULE_21__.eM),outlineOffset:"0"}},_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__.qs.LARGESCREEN,{padding:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__.Eh.tablet,border:"".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_14__.gP," solid ").concat(_utils_colours__WEBPACK_IMPORTED_MODULE_21__.su)}),_govuk_react_lib__WEBPACK_IMPORTED_MODULE_15__.YK.withWhiteSpace({marginBottom:6})),StyledSecondaryButton=(0,styled_components__WEBPACK_IMPORTED_MODULE_22__.Ay)(_SecondaryButton__WEBPACK_IMPORTED_MODULE_20__.A)({marginBottom:0}),Err=function Err(_ref){var errorMessage=_ref.errorMessage,retry=_ref.retry,dismiss=_ref.dismiss,noun=_ref.noun;return react__WEBPACK_IMPORTED_MODULE_12__.createElement(StyledRoot,{"data-test":"error-dialog"},react__WEBPACK_IMPORTED_MODULE_12__.createElement(_govuk_react_heading__WEBPACK_IMPORTED_MODULE_13__.H2,{size:"MEDIUM"},"Could not load ",noun),(0,lodash__WEBPACK_IMPORTED_MODULE_16__.isString)(errorMessage)&&react__WEBPACK_IMPORTED_MODULE_12__.createElement("p",null,"Error: ",errorMessage),(0,lodash__WEBPACK_IMPORTED_MODULE_16__.isArray)(errorMessage)&&errorMessage.map((function(error){return react__WEBPACK_IMPORTED_MODULE_12__.createElement("p",{key:error},error)})),retry&&react__WEBPACK_IMPORTED_MODULE_12__.createElement(_Form_elements_FormActions__WEBPACK_IMPORTED_MODULE_19__.A,null,react__WEBPACK_IMPORTED_MODULE_12__.createElement(StyledSecondaryButton,{onClick:retry},"Retry"),dismiss&&react__WEBPACK_IMPORTED_MODULE_12__.createElement(StyledSecondaryButton,{onClick:dismiss},"Dismiss")))};Err.propTypes={noun:prop_types__WEBPACK_IMPORTED_MODULE_23___default().string.isRequired,errorMessage:prop_types__WEBPACK_IMPORTED_MODULE_23___default().string.isRequired,retry:prop_types__WEBPACK_IMPORTED_MODULE_23___default().func,dismiss:prop_types__WEBPACK_IMPORTED_MODULE_23___default().func},Err.Inline=function(_ref2){var retry=_ref2.retry,noun=_ref2.noun;return react__WEBPACK_IMPORTED_MODULE_12__.createElement("span",{style:{color:_utils_colours__WEBPACK_IMPORTED_MODULE_21__.su}},react__WEBPACK_IMPORTED_MODULE_12__.createElement(_InlineIcon__WEBPACK_IMPORTED_MODULE_18__.A,null,react__WEBPACK_IMPORTED_MODULE_12__.createElement(_govuk_react_icons__WEBPACK_IMPORTED_MODULE_17__.wo,null))," ","Could not load ",noun,retry&&react__WEBPACK_IMPORTED_MODULE_12__.createElement(react__WEBPACK_IMPORTED_MODULE_12__.Fragment,null," ",react__WEBPACK_IMPORTED_MODULE_12__.createElement(_SecondaryButton__WEBPACK_IMPORTED_MODULE_20__.A.Inline,{onClick:retry},"Retry")))};const __WEBPACK_DEFAULT_EXPORT__=Err;Err.__docgenInfo={description:"",methods:[{name:"Inline",docblock:null,modifiers:["static"],params:[{name:"{ retry, noun }",optional:!1,type:null}],returns:null}],displayName:"Err",props:{noun:{description:"",type:{name:"string"},required:!0},errorMessage:{description:"",type:{name:"string"},required:!0},retry:{description:"",type:{name:"func"},required:!1},dismiss:{description:"",type:{name:"func"},required:!1}}}},"./src/client/components/Task/LoadingBox.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js");var react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/react/index.js"),_govuk_react_loading_box__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@govuk-react/loading-box/dist/govuk-react-loading-box.esm.js"),styled_components__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_Effect__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./src/client/components/Effect.jsx"),___WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./src/client/components/Task/index.jsx"),_excluded=["name","id","when","children","startOnRender"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js");var lodash__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./node_modules/lodash/lodash.js"),prop_types__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_26___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_26__),react__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./node_modules/react/index.js"),react_redux__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("./node_modules/react-redux/dist/react-redux.mjs"),govuk_react__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./node_modules/govuk-react/dist/govuk-react.esm.js"),styled_components__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_actions__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("./src/client/actions.js"),_Error__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./src/client/components/Task/Error.jsx"),_ProgressIndicator__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./src/client/components/ProgressIndicator.jsx"),_AccessDenied__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("./src/client/components/AccessDenied/index.jsx");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}var _excluded=["start","cancel","dismissError","children"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e{"use strict";__webpack_require__.d(__webpack_exports__,{HD:()=>apiProxyAxios});__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.promise.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.string.replace.js"),__webpack_require__("./node_modules/core-js/modules/es.string.starts-with.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var axios__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./node_modules/axios/lib/axios.js"),lodash__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./node_modules/lodash/lodash.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}var _excluded=["url"];function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;rr.length)&&(a=r.length);for(var e=0,n=Array(a);e{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var react__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_19___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_19__),styled_components__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),lodash__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./node_modules/lodash/lodash.js"),_utils_colours__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("./src/client/utils/colours.js"),_excluded=["stages","currentStage"];function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e{"use strict";__webpack_require__.d(__webpack_exports__,{Ay:()=>__WEBPACK_DEFAULT_EXPORT__,EE:()=>ButtonContent,KC:()=>MultiInstanceToggleSection,Of:()=>ToggleContent,d$:()=>BadgeContainer,ff:()=>ToggleButton,yK:()=>ToggleHeader});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js");var react__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_25___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_25__),styled_components__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./src/client/utils/colours.js"),_actions__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./src/client/actions.js"),_utils_multiinstance__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./src/client/utils/multiinstance.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}var _templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_excluded=["label","badge","open","onOpen","isOpen","colour","children","justifyHeaderContent"];function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r0&&void 0!==arguments[0]?arguments[0]:{},_ref6=arguments.length>1?arguments[1]:void 0,type=_ref6.type,isOpen=_ref6.isOpen;return type===_actions__WEBPACK_IMPORTED_MODULE_26__.HmC?_objectSpread(_objectSpread({},state),{},{isOpen}):state}});const __WEBPACK_DEFAULT_EXPORT__=MultiInstanceToggleSection;ToggleButtonIcon.__docgenInfo={description:"",methods:[],displayName:"ToggleButtonIcon",props:{colour:{defaultValue:{value:"'#0b0c0c'",computed:!1},required:!1}}}},"./src/client/components/ToggleSection/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{cQ:()=>ToggleSection_DashboardToggleSection,Q:()=>ToggleSection_FilterToggleSection,xQ:()=>ToggleSection_NoHighlightToggleSection,Os:()=>components_ToggleSection_ToggleSection});__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js");var _templateObject,styled_components_browser_esm=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),govuk_react_constants_esm=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),colours=__webpack_require__("./src/client/utils/colours.js"),BaseToggleSection=__webpack_require__("./src/client/components/ToggleSection/BaseToggleSection.jsx");const ToggleSection_DashboardToggleSection=(0,styled_components_browser_esm.Ay)(BaseToggleSection.KC)(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n ","\n\n "," {\n background-color: ",";\n padding-top: ",";\n padding-bottom: ",";\n }\n\n "," {\n font-weight: ",";\n margin-left: ",";\n }\n\n "," {\n text-decoration: underline;\n white-space: nowrap;\n }\n\n "," {\n display: flex;\n justify-content: flex-end;\n width: 100%;\n margin-right: ",";\n }\n\n "," {\n padding: 0 ",";\n margin-top: ",";\n margin-bottom: ",";\n }\n"])),(function(_ref){var major=_ref.major;return"\n border: solid 2px ".concat(colours.WS,";\n border-top-color: ").concat(major?colours.Bk:colours.ft,";\n ")}),BaseToggleSection.yK,colours.WS,govuk_react_constants_esm.Es.SCALE_3,govuk_react_constants_esm.Es.SCALE_3,BaseToggleSection.ff,govuk_react_constants_esm.sO.regular,govuk_react_constants_esm.Es.SCALE_2,BaseToggleSection.EE,BaseToggleSection.d$,govuk_react_constants_esm.Es.SCALE_3,BaseToggleSection.Of,govuk_react_constants_esm.Es.SCALE_3,govuk_react_constants_esm.Es.SCALE_1,govuk_react_constants_esm.Es.SCALE_3);var ToggleSection_templateObject;__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var ToggleSection_ToggleSection=(0,styled_components_browser_esm.Ay)(BaseToggleSection.KC)(ToggleSection_templateObject||(ToggleSection_templateObject=function ToggleSection_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n margin-bottom: ",";\n\n "," {\n padding: "," 0 ",";\n\n &:focus "," {\n color: ",";\n background-color: ",";\n box-shadow:\n 0 -2px ",",\n 0 4px ",";\n }\n }\n\n "," {\n margin: 0;\n padding: "," 0;\n }\n"])),govuk_react_constants_esm.Es.SCALE_2,BaseToggleSection.ff,govuk_react_constants_esm.Es.SCALE_2,govuk_react_constants_esm.Es.SCALE_1,BaseToggleSection.EE,colours.Uv,colours.Iz,colours.Iz,colours.Uv,BaseToggleSection.Of,govuk_react_constants_esm.Es.SCALE_2);const components_ToggleSection_ToggleSection=ToggleSection_ToggleSection;function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _defineProperty(e,r,t){return(r=function _toPropertyKey(t){var i=function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}const ToggleSection_FilterToggleSection=(0,styled_components_browser_esm.Ay)(ToggleSection_ToggleSection)(_defineProperty(_defineProperty({borderBottom:"solid 1px ".concat(colours.Pe),paddingBottom:govuk_react_constants_esm.Es.SCALE_2},BaseToggleSection.ff,{textAlign:"left"}),BaseToggleSection.Of,{"> *:last-child":{marginBottom:0},"> *:last-child div:last-child":{marginBottom:0}}));var NoHighlightToggleSection_templateObject;const ToggleSection_NoHighlightToggleSection=(0,styled_components_browser_esm.Ay)(BaseToggleSection.KC)(NoHighlightToggleSection_templateObject||(NoHighlightToggleSection_templateObject=function NoHighlightToggleSection_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n "," {\n padding: 0;\n }\n\n "," {\n text-decoration: underline;\n }\n\n "," {\n padding: "," 0;\n }\n"])),BaseToggleSection.ff,BaseToggleSection.EE,BaseToggleSection.Of,govuk_react_constants_esm.Es.SCALE_2);var RemindersToggleSection_templateObject;__webpack_require__("./node_modules/core-js/modules/es.string.bold.js");(0,styled_components_browser_esm.Ay)(BaseToggleSection.KC)(RemindersToggleSection_templateObject||(RemindersToggleSection_templateObject=function RemindersToggleSection_taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n border-top: 1px solid ",";\n ","\n\n "," {\n text-align: left;\n padding-top: ",";\n padding-bottom: ",";\n }\n\n "," {\n font-weight: ",";\n }\n"])),colours.Pe,(function(_ref){return _ref.borderBottom&&"border-bottom: 1px solid ".concat(colours.Pe,";")}),BaseToggleSection.ff,govuk_react_constants_esm.Es.SCALE_3,govuk_react_constants_esm.Es.SCALE_3,BaseToggleSection.EE,govuk_react_constants_esm.sO.bold)},"./src/client/components/Typeahead/Highlighter.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.string.bold.js");var _templateObject,react__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__),react_string_replace__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/react-string-replace/index.js"),react_string_replace__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(react_string_replace__WEBPACK_IMPORTED_MODULE_4__),styled_components__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js");var StyledSpan=(0,styled_components__WEBPACK_IMPORTED_MODULE_6__.Ay)("span")(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n font-weight: ",";\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_5__.sO.bold),Highlighter=function Highlighter(_ref){var _ref$optionLabel=_ref.optionLabel,optionLabel=void 0===_ref$optionLabel?null:_ref$optionLabel,searchStr=_ref.searchStr;return optionLabel&&react_string_replace__WEBPACK_IMPORTED_MODULE_4___default()(optionLabel,searchStr,(function(matchedTxt,i){return react__WEBPACK_IMPORTED_MODULE_3__.createElement(StyledSpan,{key:i},matchedTxt)}))};Highlighter.propTypes={optionLabel:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string.isRequired,searchStr:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string.isRequired};const __WEBPACK_DEFAULT_EXPORT__=Highlighter},"./src/client/components/Typeahead/Typeahead.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>Typeahead_Typeahead});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js");var react=__webpack_require__("./node_modules/react/index.js"),prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),styled_components_browser_esm=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),govuk_react_constants_esm=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),govuk_react_label_esm=__webpack_require__("./node_modules/@govuk-react/label/dist/govuk-react-label.esm.js"),colours=__webpack_require__("./src/client/utils/colours.js"),multiinstance=__webpack_require__("./src/client/utils/multiinstance.js"),actions=__webpack_require__("./src/client/actions.js"),Task=__webpack_require__("./src/client/components/Task/index.jsx"),Highlighter=__webpack_require__("./src/client/components/Typeahead/Highlighter.jsx"),AssistiveText=function AssistiveText(_ref){var name=_ref.name;return react.createElement("span",{id:"autocomplete-".concat(name,"-assistiveHint"),style:{display:"none"}},"When autocomplete results are available use up and down arrows to review and enter to select.")};const Typeahead_AssistiveText=AssistiveText;AssistiveText.__docgenInfo={description:"",methods:[],displayName:"AssistiveText"};var ChipList=(0,styled_components_browser_esm.Ay)("ul")({listStyleType:"none",margin:"".concat(govuk_react_constants_esm.Es.SCALE_1," 0"),padding:0}),Chip=(0,styled_components_browser_esm.Ay)("li")({display:"inline-block",margin:"".concat(govuk_react_constants_esm.Es.SCALE_1," 0")}),ChipButton=(0,styled_components_browser_esm.Ay)("button")(govuk_react_constants_esm.bs,{backgroundColor:colours.WS,border:"none",borderRadius:3,color:colours.pF,fontSize:"0.75em",fontWeight:"bold",marginBottom:0,marginRight:6,padding:"".concat(govuk_react_constants_esm.Es.SCALE_1," 1.75em ").concat(govuk_react_constants_esm.Es.SCALE_1," ").concat(govuk_react_constants_esm.Es.SCALE_1),position:"relative",cursor:"pointer","&::before, &::after":{borderRight:"1px solid ".concat(colours.pF),content:'""',height:"1em",right:"0.75em",position:"absolute",top:"50%",width:0},"&::before":{transform:"translate(0, -50%) rotate(45deg)"},"&::after":{transform:"translate(0, -50%) rotate(-45deg)"}}),SelectedChips=function SelectedChips(_ref){var name=_ref.name,selectedOptions=_ref.selectedOptions,onOptionRemove=_ref.onOptionRemove;return react.createElement(ChipList,{id:"".concat(name,"-selected"),"data-test":"typeahead-chip-list"},react.createElement("span",{id:"".concat(name,"-remove"),style:{display:"none"}},"remove"),selectedOptions.map((function(option){return react.createElement(Chip,{key:option.value,"data-test":"typeahead-chip"},react.createElement(ChipButton,{type:"button","aria-describedby":"".concat(name,"-remove"),onClick:function onClick(){onOptionRemove(option)}},option.chipLabel||option.label))})))};const Typeahead_SelectedChips=SelectedChips;SelectedChips.__docgenInfo={description:"",methods:[],displayName:"SelectedChips"};var lodash=__webpack_require__("./node_modules/lodash/lodash.js"),keys_down="ArrowDown",keys_end="End",keys_enter="Enter",keys_escape="Escape",keys_home="Home",keys_left="ArrowLeft",keys_right="ArrowRight",keys_up="ArrowUp",menuActions_close="close",menuActions_closeSelect="closeSelect",menuActions_first="first",menuActions_last="last",menuActions_next="next",menuActions_open="open",menuActions_previous="previous",getFilteredOptions=function getFilteredOptions(_ref){var input=_ref.input,options=_ref.options;return(input?options.filter((function(option){return option.label.toLowerCase().includes(input.toLowerCase())})):options)||[]},valueEqual=function valueEqual(item1,item2){return item1.value==item2.value},getNewSelectedOptions=function getNewSelectedOptions(_ref2){var selectedOptions=_ref2.selectedOptions,option=_ref2.option;return _ref2.isMulti?(0,lodash.xorWith)(selectedOptions,[option],valueEqual):[option]},valueAsArray=function valueAsArray(value){return value?Array.isArray(value)?value:[value]:[]};function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r-1,"aria-setsize":filteredOptions.length,"aria-posinset":index,onClick:function onClick(){inputRef.current&&inputRef.current.select(),onOptionToggle(option),onChange(getNewSelectedOptions({selectedOptions,isMulti,option})),closeOnSelect&&onMenuClose()},onMouseMove:function onMouseMove(){onActiveChange(index)},onMouseDown:function onMouseDown(){onOptionMouseDown(index)},"data-test":"typeahead-menu-option"},react.createElement("span",null,react.createElement(OptionContent,{option,searchString:input})))})),!filteredOptions.length&&react.createElement(NoOptionsMessage,{"data-test":"typeahead-no-options"},noOptionsMessage))})))),react.createElement(Typeahead_AssistiveText,{name}))},keyPairPropType=prop_types_default().shape({label:prop_types_default().string,value:prop_types_default().string});Typeahead.propTypes={id:prop_types_default().string.isRequired,name:prop_types_default().string,className:prop_types_default().string,label:prop_types_default().string,error:prop_types_default().string,closeMenuOnSelect:prop_types_default().bool,isMulti:prop_types_default().bool,noOptionsMessage:prop_types_default().string,defaultValue:prop_types_default().oneOfType([keyPairPropType,prop_types_default().arrayOf(keyPairPropType)]),value:prop_types_default().oneOfType([keyPairPropType,prop_types_default().arrayOf(keyPairPropType)]),menuOpen:prop_types_default().bool,loadOptions:prop_types_default().func,onChange:prop_types_default().func,options:prop_types_default().arrayOf(keyPairPropType),input:prop_types_default().string,selectedOptions:prop_types_default().arrayOf(keyPairPropType),activeIndex:prop_types_default().number,focusIndex:prop_types_default().number,onInitialise:prop_types_default().func,onBlur:prop_types_default().func,onActiveChange:prop_types_default().func,onInput:prop_types_default().func,onOptionMouseDown:prop_types_default().func,onOptionToggle:prop_types_default().func,onOptionRemove:prop_types_default().func,onOptionsClear:prop_types_default().func,onMenuClose:prop_types_default().func,onMenuOpen:prop_types_default().func};const Typeahead_Typeahead=(0,multiinstance.Ay)({name:"Typeahead",actionPattern:"TYPEAHEAD__",dispatchToProps:function dispatchToProps(dispatch){return{onInitialise:function onInitialise(_ref8){var isMulti=_ref8.isMulti,value=_ref8.value;dispatch({type:actions.b2l,isMulti,value})},onBlur:function onBlur(){dispatch({type:actions.TdV})},onActiveChange:function onActiveChange(activeIndex){dispatch({type:actions.tgm,activeIndex})},onInput:function onInput(event){dispatch({type:actions.GqW,input:event.target.value})},onMenuClose:function onMenuClose(){dispatch({type:actions.WCI})},onMenuOpen:function onMenuOpen(){dispatch({type:actions.aQO})},onOptionMouseDown:function onOptionMouseDown(focusIndex){dispatch({type:actions.MQe,focusIndex})},onOptionToggle:function onOptionToggle(option){dispatch({type:actions.y3g,option})},onOptionRemove:function onOptionRemove(option){dispatch({type:actions.WnY,option})},onOptionsClear:function onOptionsClear(){dispatch({type:actions.aud})}}},component:Typeahead,reducer:function(){var _state$selectedOption,_valueAsArray$,state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,value=_ref.value,input=_ref.input,isMulti=_ref.isMulti,option=_ref.option,activeIndex=_ref.activeIndex,focusIndex=_ref.focusIndex,result=_ref.result,selectedValue=!state.isMulti&&(null===(_state$selectedOption=state.selectedOptions[0])||void 0===_state$selectedOption?void 0:_state$selectedOption.label),filteredOptions=getFilteredOptions({options:state.options,input:state.input});switch(type){case actions.b2l:return _objectSpread(_objectSpread({},state),{},{isMulti,selectedOptions:valueAsArray(value),input:isMulti?state.input:(null===(_valueAsArray$=valueAsArray(value)[0])||void 0===_valueAsArray$?void 0:_valueAsArray$.label)||""});case actions.STT:var newOptions=getFilteredOptions({options:result,input:state.input});return _objectSpread(_objectSpread({},state),{},{options:result||[],activeIndex:newOptions.indexOf(filteredOptions[state.activeIndex]),focusIndex:newOptions.indexOf(filteredOptions[state.focusIndex])});case actions.TdV:return _objectSpread(_objectSpread({},state),{},{menuOpen:!!state.ignoreBlur&&state.menuOpen,focusIndex:-1,input:state.ignoreBlur?state.input:state.input&&selectedValue||"",ignoreBlur:!1});case actions.GqW:var newInputOptions=getFilteredOptions({options:state.options,input});return _objectSpread(_objectSpread({},state),{},{input,activeIndex:newInputOptions.indexOf(filteredOptions[state.activeIndex]),focusIndex:newInputOptions.indexOf(filteredOptions[state.focusIndex]),menuOpen:!0});case actions.tgm:return _objectSpread(_objectSpread({},state),{},{activeIndex});case actions.WCI:return _objectSpread(_objectSpread({},state),{},{input:state.isMulti?"":state.input,menuOpen:!1});case actions.aQO:var selectedIndex=state.options.map((function(_ref2){return _ref2.label})).indexOf(selectedValue);return _objectSpread(_objectSpread({},state),{},{menuOpen:!0,activeIndex:selectedIndex});case actions.MQe:return _objectSpread(_objectSpread({},state),{},{ignoreBlur:!0,focusIndex});case actions.y3g:var newInput=state.isMulti?state.input:option.label,toggledIndex=getFilteredOptions({options:state.options,input:state.isMulti&&newInput}).indexOf(option);return _objectSpread(_objectSpread({},state),{},{selectedOptions:state.isMulti?(0,lodash.xorWith)(state.selectedOptions,[option],valueEqual):[option],input:newInput,activeIndex:toggledIndex,focusIndex:toggledIndex});case actions.WnY:return _objectSpread(_objectSpread({},state),{},{selectedOptions:state.selectedOptions.filter((function(_ref3){return _ref3.value!==option.value}))});case actions.aud:return _objectSpread(_objectSpread({},state),{},{selectedOptions:[]});default:return state}}})},"./src/client/components/Typeahead/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js");var react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/react/index.js"),_Typeahead__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./src/client/components/Typeahead/Typeahead.jsx"),_excluded=["id","name"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e{"use strict";__webpack_require__.d(__webpack_exports__,{S:()=>TASK_GET_TYPEAHEAD_OPTIONS});var TASK_GET_TYPEAHEAD_OPTIONS="TASK_GET_TYPEAHEAD_OPTIONS"},"./src/client/components/WatchTextContent.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js");var react__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/react/index.js"),_excluded=["onTextContentChange"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e