From 2a7341964049daaea1fb5119ed04df1c5283c8ce Mon Sep 17 00:00:00 2001 From: DIT <> Date: Fri, 1 Mar 2024 11:05:24 +0000 Subject: [PATCH] publish: Merge pull request #6566 from uktrade/feature/add-export-win-button generated from commit 8a5fc6ed4ffe14221395ca1a71ba3e22bd690666 --- iframe.html | 2 +- main.3f52e50f.iframe.bundle.js | 2 ++ ...js.LICENSE.txt => main.3f52e50f.iframe.bundle.js.LICENSE.txt | 0 main.5935ae36.iframe.bundle.js | 2 -- project.json | 2 +- 5 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 main.3f52e50f.iframe.bundle.js rename main.5935ae36.iframe.bundle.js.LICENSE.txt => main.3f52e50f.iframe.bundle.js.LICENSE.txt (100%) delete mode 100644 main.5935ae36.iframe.bundle.js diff --git a/iframe.html b/iframe.html index f5cd90496be..50fd334a7c5 100644 --- a/iframe.html +++ b/iframe.html @@ -352,4 +352,4 @@ import './5864.17234fa0.iframe.bundle.js'; - import './main.5935ae36.iframe.bundle.js'; \ No newline at end of file + import './main.3f52e50f.iframe.bundle.js'; \ No newline at end of file diff --git a/main.3f52e50f.iframe.bundle.js b/main.3f52e50f.iframe.bundle.js new file mode 100644 index 00000000000..0603fe33357 --- /dev/null +++ b/main.3f52e50f.iframe.bundle.js @@ -0,0 +1,2 @@ +/*! For license information please see main.3f52e50f.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_GLOBAL_=__webpack_require__("@storybook/global"),external_STORYBOOK_MODULE_PREVIEW_API_=__webpack_require__("@storybook/preview-api"),external_STORYBOOK_MODULE_CHANNELS_=__webpack_require__("@storybook/channels");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: (?:\\/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: (?:\\/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;window.__STORYBOOK_PREVIEW__=preview,window.__STORYBOOK_STORY_STORE__=preview.storyStore,window.__STORYBOOK_ADDONS_CHANNEL__=channel,window.__STORYBOOK_CLIENT_API__=new external_STORYBOOK_MODULE_PREVIEW_API_.ClientApi({storyStore:preview.storyStore}),preview.initialize({importFn:async function importFn(path){for(let i=0;iimporters[i](path),x());if(moduleExports)return moduleExports}var x},getProjectAnnotations:()=>(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.js"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/actions/preview.js"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/backgrounds/preview.js"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/measure/preview.js"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/outline/preview.js"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/highlight/preview.js"),__webpack_require__("./node_modules/@storybook/addon-a11y/dist/preview.js"),__webpack_require__("./.storybook/preview.js")])})},"./.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),esm_middleware=__webpack_require__("./node_modules/connected-react-router/esm/middleware.js"),esm=__webpack_require__("./node_modules/connected-react-router/esm/index.js"),redux_toolkit_modern=__webpack_require__("./node_modules/@reduxjs/toolkit/dist/redux-toolkit.modern.mjs"),es=__webpack_require__("./node_modules/react-redux/es/index.js"),redux_saga_core_npm_proxy_esm=__webpack_require__("./node_modules/redux-saga/dist/redux-saga-core-npm-proxy.esm.js"),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 new 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 new 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 new 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 new 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 new 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 new 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(arr){return function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr)}(arr)||function _iterableToArray(iter){if("undefined"!=typeof Symbol&&null!=iter[Symbol.iterator]||null!=iter["@@iterator"])return Array.from(iter)}(arr)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr)||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(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=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 new 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(source,excluded){if(null==source)return{};var key,i,target=function _objectWithoutPropertiesLoose(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}function writeMyInvestmentsToSession(){var _yield$take,payload;return MyInvestmentProjects_sagas_regeneratorRuntime().wrap((function writeMyInvestmentsToSession$(_context){for(;;)switch(_context.prev=_context.next){case 0:return _context.next=3,(0,redux_saga_effects_npm_proxy_esm.s)(actions.CuW);case 3:_yield$take=_context.sent,_yield$take.type,payload=_objectWithoutProperties(_yield$take,_excluded),saveToSession(payload),_context.next=0;break;case 9:case"end":return _context.stop()}}),MyInvestmentProjects_sagas_marked)}function readMyInvestmentsFromSession(){var sessionState;return MyInvestmentProjects_sagas_regeneratorRuntime().wrap((function readMyInvestmentsFromSession$(_context2){for(;;)switch(_context2.prev=_context2.next){case 0:return _context2.next=3,(0,redux_saga_effects_npm_proxy_esm.s)(actions.GD3);case 3:if(sessionState=getFromSession(),!Object.keys(sessionState).length){_context2.next=7;break}return _context2.next=7,(0,redux_saga_effects_npm_proxy_esm.yJ)({type:actions.$ah,sessionState});case 7:_context2.next=0;break;case 9:case"end":return _context2.stop()}}),MyInvestmentProjects_sagas_marked2)}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 new 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 new 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 multiinstance=__webpack_require__("./src/client/utils/multiinstance.js"),DropdownMenu=__webpack_require__("./src/client/components/DropdownMenu/index.jsx"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");function ConnectedDropdownMenu_typeof(o){return ConnectedDropdownMenu_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},ConnectedDropdownMenu_typeof(o)}var ConnectedDropdownMenu_excluded=["type"];function ConnectedDropdownMenu_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 ConnectedDropdownMenu_objectSpread(e){for(var r=1;r=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var toggle={type:actions.oo2},ConnectedDropdownMenu_open={type:actions.Aym},ConnectedDropdownMenu_close={type:actions.UWL};const ConnectedDropdownMenu=(0,multiinstance.Ay)({name:"DropdownMenu",actionPattern:"DROP_DOWN_MENU",component:function component(props){return(0,jsx_runtime.jsx)(DropdownMenu.A,ConnectedDropdownMenu_objectSpread(ConnectedDropdownMenu_objectSpread({},props),{},{onClick:function onClick(){return props.toggleMenu()}}))},reducer:function reducer(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,rest=ConnectedDropdownMenu_objectWithoutProperties(_ref,ConnectedDropdownMenu_excluded);switch(type){case actions.Aym:return{open:!0};case actions.UWL:return{open:!1};case actions.oo2:return{open:!state.open};case actions.E9W:return ConnectedDropdownMenu_objectSpread(ConnectedDropdownMenu_objectSpread({},state),{},{activeIndex:rest.activeIndex})}return state},dispatchToProps:function dispatchToProps(dispatch){return{openMenu:dispatch.bind(void 0,ConnectedDropdownMenu_open),closeMenu:dispatch.bind(void 0,ConnectedDropdownMenu_close),toggleMenu:dispatch.bind(void 0,toggle),onUpdateIndex:function onUpdateIndex(activeIndex){return dispatch(function updateIndex(activeIndex){return{type:actions.E9W,activeIndex}}(activeIndex))}}}});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;r=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var setTaskState=function setTaskState(state,_ref,status){var name=_ref.name,id=_ref.id,action=reducer_objectWithoutProperties(_ref,reducer_excluded),currentTaskGroup=state[name]||{},currentTask=currentTaskGroup[id];return reducer_objectSpread(reducer_objectSpread({},state),{},reducer_defineProperty({},name,reducer_objectSpread(reducer_objectSpread({},currentTaskGroup),{},reducer_defineProperty({},id,reducer_objectSpread(reducer_objectSpread(reducer_objectSpread({},currentTask),action),{},{status})))))},remove=function remove(state,_ref2){var name=_ref2.name,id=_ref2.id,taskState=state[name];return taskState?lodash_default().omit(state,lodash_default().isEqual(lodash_default().keys(taskState),[name])?name:"".concat(name,".").concat(id)):state};var state=__webpack_require__("./src/client/components/CompanyLists/state.js");function CompanyLists_reducer_typeof(o){return CompanyLists_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},CompanyLists_reducer_typeof(o)}function CompanyLists_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 CompanyLists_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(obj,key,value){return(key=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:String(i)}(key))in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var NotificationAlert_reducer_initialState={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");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"),prop_types=(__webpack_require__("./node_modules/core-js/modules/es.string.includes.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-search-params.js"),__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"),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,es.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 ContactForm_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 ContactForm_objectSpread(e){for(var r=1;rarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var YES="Yes",NO="No",boolToYesNo=function boolToYesNo(x){return!0===x?YES:!1===x?NO:null},keysToSnakeCase=function keysToSnakeCase(o){return lodash_default().mapKeys(o,(function(v,k){return lodash_default().snakeCase(k)}))},StyledLabel=(0,styled_components_browser_esm.Ay)(govuk_react_label_esm.A)(_templateObject||(_templateObject=function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["\n padding-bottom: ",";\n font-weight: ",";\n"])),govuk_react_constants_esm.Es.SCALE_5,govuk_react_constants_esm.sO.bold),_ContactForm=function _ContactForm(_ref){var update=_ref.update,contactId=_ref.contactId,companyId=_ref.companyId,primary=_ref.primary,addressSameAsCompany=_ref.addressSameAsCompany,acceptsDitEmailMarketing=_ref.acceptsDitEmailMarketing,postcode=_ref.addressPostcode,city=_ref.addressTown,county=_ref.addressCounty,addressArea=_ref.addressArea,addressCountry=_ref.addressCountry,moreDetails=(_ref.dispatch,_ref.id,_ref.notes),props=ContactForm_objectWithoutProperties(_ref,ContactForm_excluded),findAdministrativeAreas=(0,useAdministrativeAreaLookup.A)(),onAdministrativeAreaSearch=(0,useAdministrativeAreaSearch.A)(findAdministrativeAreas).onAdministrativeAreaSearch;(0,react.useEffect)((function(){onAdministrativeAreaSearch()}),[]);var areaUS=function areaUS(addressArea){return(null==addressCountry?void 0:addressCountry.id)===common_constants.UNITED_STATES_ID?null==addressArea?void 0:addressArea.id:null},areaCanada=function areaCanada(addressArea){return(null==addressCountry?void 0:addressCountry.id)===common_constants.CANADA_ID?null==addressArea?void 0:addressArea.id:null},getAreaValue=function getAreaValue(values){return values.country===common_constants.UNITED_STATES_ID?values.area:values.country===common_constants.CANADA_ID?values.areaCanada:null};return(0,jsx_runtime.jsx)(components_Resource.Ar,{id:companyId,children:function children(company){return(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[(0,jsx_runtime.jsx)(LocalHeader.A,{superheading:update&&(0,jsx_runtime.jsx)(govuk_react_link_esm.A,{href:"/companies/".concat(company.id),children:company.name}),heading:"".concat(update?"Edit":"Add"," contact"),breadcrumbs:[{link:"/",text:"Home"},{link:"/contacts/",text:"Contacts"}].concat(ContactForm_toConsumableArray(update?[{link:urls_default().contacts.details(contactId),text:props.name},{text:"Edit"}]:[{text:"Add contact at ".concat(company.name)}]))}),(0,jsx_runtime.jsx)(components.gZ,{children:(0,jsx_runtime.jsx)(State,{children:function children(_ref2){var referrerUrl=_ref2.referrerUrl,router=_ref2.router,_qs$parse=lib_default().parse(router.location.search),origin_url=_qs$parse.origin_url,origin_search=_qs$parse.origin_search,redirectTo=function redirectTo(_ref3){var name=_ref3.name,id=_ref3.id;return origin_url?function appendParamsToUrl(origin_url,origin_search,id,name){var url=new URL(origin_url,window.location.origin),inputParams=new URLSearchParams(origin_search?atob(origin_search):"");return inputParams.append("new-contact-id",id),inputParams.append("new-contact-name",name),url.search=inputParams,url.pathname+url.search}(origin_url,origin_search,id,name):urls_default().contacts.details(id)};return(0,jsx_runtime.jsx)(components.Hb,{setWidth:common_constants.FORM_LAYOUT.THREE_QUARTERS,children:(0,jsx_runtime.jsx)(Form.A,{id:"add-contact-form",analyticsFormName:update?"editContact":"addContact",submissionTaskName:"Save contact",transformPayload:function transformPayload(_ref4){var address1=_ref4.address1,address2=_ref4.address2,city=_ref4.city,county=_ref4.county,postcode=_ref4.postcode,acceptsDitEmailMarketing=_ref4.acceptsDitEmailMarketing,addressSameAsCompany=_ref4.addressSameAsCompany,primary=_ref4.primary,email=_ref4.email,moreDetails=(_ref4.valid_email,_ref4.moreDetails),values=ContactForm_objectWithoutProperties(_ref4,ContactForm_excluded2);return{contactId,values:ContactForm_objectSpread(ContactForm_objectSpread({},keysToSnakeCase(values)),{},{email,valid_email:!0,notes:moreDetails,accepts_dit_email_marketing:acceptsDitEmailMarketing.includes(YES),primary,company,address_same_as_company:addressSameAsCompany.includes(YES)},addressSameAsCompany==YES?{address_1:null,address_2:null,address_town:null,address_county:null,address_postcode:null,address_area:null,address_country:null}:{address_1:address1||" ",address_2:address2,address_town:city||" ",address_county:county,address_postcode:postcode,address_area:getAreaValue(values),address_country:values.country})}},onSuccess:function onSuccess(result,values,_ref5){var hardRedirect=_ref5.hardRedirect;(0,_ref5.flashMessage)(update?"Contact record updated":"You have successfully added a new contact ".concat(result.name)),hardRedirect(redirectTo(result))},submitButtonLabel:update?"Save and return":"Add contact",cancelRedirectTo:function cancelRedirectTo(){return referrerUrl?function stripHost(u){var url=new URL(u);return url.pathname+url.search}(referrerUrl):"/"},cancelButtonLabel:update?"Return without saving":"Cancel",initialValues:ContactForm_objectSpread(ContactForm_objectSpread({},props),{},{moreDetails,postcode,county,city,area:null==addressArea?void 0:addressArea.id,areaUS:areaUS(addressArea),areaCanada:areaCanada(addressArea),country:null==addressCountry?void 0:addressCountry.id,primary:boolToYesNo(primary),addressSameAsCompany:boolToYesNo(addressSameAsCompany),acceptsDitEmailMarketing:[boolToYesNo(acceptsDitEmailMarketing)].filter(Boolean)}),children:function children(_ref6){var _values$acceptsDitEma,values=_ref6.values;return(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[(0,jsx_runtime.jsx)(components.TZ,{label:"First name",name:"firstName",type:"text",required:"Enter a first name","data-test":"group-field-first_name"}),(0,jsx_runtime.jsx)(components.TZ,{label:"Last name",name:"lastName",type:"text",required:"Enter a last name","data-test":"group-field-last_name"}),(0,jsx_runtime.jsx)(components.TZ,{label:"Job title",name:"jobTitle",type:"text",required:"Enter a job title"}),(0,jsx_runtime.jsx)(components.TZ,{label:"Email address",name:"email",type:"email",required:"Enter an email address",validate:validators.R}),(0,jsx_runtime.jsx)(components.TZ,{label:"Phone number (optional)",hint:"For international numbers include the country code",name:"fullTelephoneNumber",type:"text",validate:function validate(x){return!(null!=x&&x.match(common_constants.GENERIC_PHONE_NUMBER_REGEX))&&"Phone number should consist of numbers"}}),(0,jsx_runtime.jsx)(components.$o,{legend:"Is this contact’s work address the same as the company address?",name:"addressSameAsCompany",required:"Select yes if the contact's work address is the same as the company address",options:[{value:YES,label:YES},{value:NO,label:NO,children:(0,jsx_runtime.jsxs)("fieldset",{children:[(0,jsx_runtime.jsx)(StyledLabel,{children:"What is the contact's work address?"}),(0,jsx_runtime.jsx)(components.fx,{name:"",apiEndpoint:"/api/postcodelookup",isCountrySelectable:!0,fontWeights:govuk_react_constants_esm.sO.regular})]})}]}),(0,jsx_runtime.jsx)(components.$o,{legend:"Is this person a primary contact?",name:"primary",required:"Select yes if this person is the company's primary contact",options:[{value:YES,label:YES},{value:NO,label:NO}]}),(0,jsx_runtime.jsx)(components.y7,{name:"acceptsDitEmailMarketing",options:[{value:YES,label:"The company contact does accept email marketing",hint:(null==values||null===(_values$acceptsDitEma=values.acceptsDitEmailMarketing)||void 0===_values$acceptsDitEma?void 0:_values$acceptsDitEma.includes(YES))&&"By checking this box, you confirm that the contact has opted in to email marketing."}]}),(0,jsx_runtime.jsx)(components.lW,{label:"More details (optional)",name:"moreDetails",hint:"\nAdd anything you think is important about the contact, for example, an alternative\nphone number or email address.\n"})]})}})})}})})]})}})};_ContactForm.displayName="_ContactForm";var ContactForm=(0,multiinstance.Ay)({name:"ContactForm",actionPattern:"CONTACT_FORM__",reducer:function reducer(state,_ref7){return _ref7.type===actions.EJT?{}:state},component:_ContactForm}),requiredProps={update:prop_types_default().any,company:prop_types_default().shape({id:prop_types_default().string.isRequired,name:prop_types_default().string.isRequired})};ContactForm.propTypes=ContactForm_objectSpread(ContactForm_objectSpread({},requiredProps),{},{contactId:prop_types_default().string,firstName:prop_types_default().string,lastName:prop_types_default().string,jobTitle:prop_types_default().string,primary:prop_types_default().bool,fullTelephoneNumber:prop_types_default().string,email:prop_types_default().string,acceptsDitEmailMarketing:prop_types_default().bool,addressSameAsCompany:prop_types_default().bool,address1:prop_types_default().string,address2:prop_types_default().string,addressTown:prop_types_default().string,addressCounty:prop_types_default().string,addressPostcode:prop_types_default().string,notes:prop_types_default().string});var CreateContactForm=function CreateContactForm(_ref8){var companyId=_ref8.companyId,id=_ref8.id;return(0,jsx_runtime.jsx)(ContactForm,{companyId,id})};CreateContactForm.displayName="CreateContactForm",CreateContactForm.propTypes=requiredProps;var UpdateContactForm=function UpdateContactForm(_ref9){var contactId=_ref9.contactId,id=_ref9.id;return(0,jsx_runtime.jsx)(components_Resource.xb,{id:contactId,children:function children(contact){return(0,jsx_runtime.jsx)(ContactForm,ContactForm_objectSpread(ContactForm_objectSpread({},contact),{},{id,contactId:contact.id,update:!0,companyId:contact.company.id}))}})};UpdateContactForm.displayName="UpdateContactForm",UpdateContactForm.propTypes=ContactForm_objectSpread(ContactForm_objectSpread({},requiredProps),{},{contactId:prop_types_default().string.isRequired});CreateContactForm.__docgenInfo={description:"",methods:[],displayName:"CreateContactForm",props:{update:{description:"",type:{name:"any"},required:!1},company:{description:"",type:{name:"shape",value:{id:{name:"string",required:!0},name:{name:"string",required:!0}}},required:!1}}},UpdateContactForm.__docgenInfo={description:"",methods:[],displayName:"UpdateContactForm",props:{update:{description:"",type:{name:"any"},required:!1},company:{description:"",type:{name:"shape",value:{id:{name:"string",required:!0},name:{name:"string",required:!0}}},required:!1},contactId:{description:"",type:{name:"string"},required:!0}}};var LocalHeader_state=__webpack_require__("./src/client/components/LocalHeader/state.js");function LocalHeader_reducer_typeof(o){return LocalHeader_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},LocalHeader_reducer_typeof(o)}function LocalHeader_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 LocalHeader_reducer_objectSpread(e){for(var r=1;rarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0&&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});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}})),"exportWins",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ExportWins_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result,page=_ref.page;switch(type){case actions.ANm:if(result.notImplemented)return ExportWins_reducer_objectSpread(ExportWins_reducer_objectSpread({},state),{},ExportWins_reducer_defineProperty({},"notImplemented",!0));var count=result.count,results=result.results;return ExportWins_reducer_objectSpread(ExportWins_reducer_objectSpread({},state),{},{count,results,isComplete:!0});case actions.lS7:return ExportWins_reducer_objectSpread(ExportWins_reducer_objectSpread({},state),{},{activePage:page});default:return state}})),"addCompany",(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.mbX?add_company_client_reducer_objectSpread(add_company_client_reducer_objectSpread({},state),{},{region:result}):state})),TabNav.A.reducerSpread),ReferralList.A.reducerSpread),ConnectedDropdownMenu.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),{},(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),"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}})),"createInvestmentProject",create_reducer),reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(_objectSpread3,"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]:NotificationAlert_reducer_initialState,_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]: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({},state),result):state})),"companyContactsList",Contacts_CollectionList_reducer),"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}})),reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(_objectSpread3,"companyActivitiesList",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ActivityFeed_CollectionList_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;switch(type){case actions.pJE:return ActivityFeed_CollectionList_reducer_objectSpread(ActivityFeed_CollectionList_reducer_objectSpread(ActivityFeed_CollectionList_reducer_objectSpread({},state),result),{},{isComplete:!0});case actions.a3Z:return ActivityFeed_CollectionList_reducer_objectSpread(ActivityFeed_CollectionList_reducer_objectSpread({},state),{},{selectedAdvisers:result});case actions.mQv:return ActivityFeed_CollectionList_reducer_objectSpread(ActivityFeed_CollectionList_reducer_objectSpread({},state),{},{selectedCompanies:result});case actions.heH:return ActivityFeed_CollectionList_reducer_objectSpread(ActivityFeed_CollectionList_reducer_objectSpread({},state),{},{metadata:result});case actions.fZX:return ActivityFeed_CollectionList_reducer_objectSpread(ActivityFeed_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});case actions.QPp:return Events_CollectionList_reducer_objectSpread(Events_CollectionList_reducer_objectSpread({},state),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 esm_actions.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;switch(type){case actions._kX:case actions.tpZ:return ExportList_reducer_objectSpread(ExportList_reducer_objectSpread({},state),result);default:return 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(_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}))));function provider_typeof(o){return provider_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},provider_typeof(o)}function provider_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 provider_objectSpread(e){for(var r=1;r0&&void 0!==arguments[0]?arguments[0]:null}}))),reducers),{},{router:(0,esm.S6)(provider_history)})}),runMiddlewareOnce=lodash_default().once((function(tasks,sagaMiddleware){return 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:case"end":return _context.stop()}}),rootSaga)}))}(tasks))})),DataHubProvider=function DataHubProvider(_ref){var tasks=_ref.tasks,children=_ref.children;return runMiddlewareOnce(tasks,sagaMiddleware),(0,jsx_runtime.jsx)(es.Provider,{store,children:(0,jsx_runtime.jsx)(esm.Ny,{history:provider_history,children})})};DataHubProvider.displayName="DataHubProvider";const provider=DataHubProvider;DataHubProvider.__docgenInfo={description:"Provides state management and routing infrastructure required by the\nstateful/routed components.\n@param {Object} props\n@param {Collection Promise>} props.tasks -\nA map of _task_ names to _tasks_, if required by the wrapped components.\n@param {React.ReactNode} props.children - Children to which the context will be provided\n@example\nimport ReferralList from 'components/ReferralList'\nimport dummyReferralListTask from 'components/ReferralList/task/dummy'\n\n// ReferralList is a stateful component,\n// which also requires the Referrals task.\n\n \n",methods:[],displayName:"DataHubProvider"};__webpack_require__("./node_modules/core-js/modules/es.array.fill.js");var dist_esm=__webpack_require__("./node_modules/@faker-js/faker/dist/esm/index.mjs"),tasks_OPTIONS=Array(1e3).fill().map((function(){return dist_esm.Jb.person.fullName()}));const tasks={"Task typeahead example options":function fakerOptions(){var query=arguments.length>0&&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(obj,key,value){return(key=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:String(i)}(key))in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}({},__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 ResourceExample(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:"874cd12a-6095-e211-a939-e4115bead28a"},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 LoadInitialValues(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 SubmitFormExample(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 LoadOptions(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;r{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"},"./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",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:"?activityType%5B0%5D=dataHubActivity&page=1",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,ANm:()=>EXPORT_WINS__LOADED,ATq:()=>INVESTMENTS__SET_PROJECTS_METADATA,Amb:()=>REMINDERS__EXPORTS_NO_RECENT_INTERACTION_REMINDERS_LOADED,Aym:()=>DROP_DOWN_MENU_OPEN,BEj:()=>INVESTMENT__COMPANY_SEARCH_TERM,BRO:()=>INVESTMENTS__PROJECTS_SELECTED_ADVISERS,BUu:()=>ORDERS__METADATA_LOADED,CuW:()=>MY_INVESTMENTS__SAVE_TO_SESSION,E9W:()=>DROP_DOWN_MENU_UPDATE_INDEX,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,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,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,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,PqX:()=>FLASH_MESSAGE__CLEAR_FROM_STATE,Pw7:()=>ORDERS__QUOTE_PREVIEW_LOADED,QPp:()=>EVENTS__ALL_ACTIVITY_FEED_EVENTS_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,UWL:()=>DROP_DOWN_MENU_CLOSED,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,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,lS7:()=>EXPORT_WINS__SELECT_PAGE,lZg:()=>REMINDERS__NO_RECENT_INTERACTION_REMINDER_DELETED,mDK:()=>REMINDERS__OUTSTANDING_PROPOSITIONS_LOADED,mKW:()=>TAB_NAV__FOCUS,mQv:()=>COMPANY_ACTIVITIES_SELECTED_COMPANIES,mbX:()=>ADD_COMPANY__REGION_LOADED,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,oo2:()=>DROP_DOWN_MENU_TOGGLE,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,tpZ:()=>EXPORT__PIPELINE_METADATA_LOADED,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",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__ALL_ACTIVITY_FEED_EVENTS_LOADED="EVENTS__ALL_ACTIVITY_FEED_EVENTS_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",EXPORT_WINS__LOADED="EXPORT_WINS__LOADED",EXPORT_WINS__SELECT_PAGE="EXPORT_WINS__SELECT_PAGE",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",ADD_COMPANY__REGION_LOADED="ADD_COMPANY__REGION_LOADED",DROP_DOWN_MENU_TOGGLE="DROP_DOWN_MENU_TOGGLE",DROP_DOWN_MENU_OPEN="DROP_DOWN_MENU_OPEN",DROP_DOWN_MENU_CLOSED="DROP_DOWN_MENU_CLOSED",DROP_DOWN_MENU_UPDATE_INDEX="DROP_DOWN_MENU_UPDATE_INDEX",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_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",EXPORT__PIPELINE_METADATA_LOADED="EXPORT__PIPELINE_METADATA_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"},"./src/client/components/AccessDenied/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/react/index.js");var _Layout_DefaultLayout__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/Layout/DefaultLayout.jsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/react/jsx-runtime.js"),AccessDenied=function AccessDenied(_ref){var breadcrumbs=_ref.breadcrumbs;return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_Layout_DefaultLayout__WEBPACK_IMPORTED_MODULE_1__.A,{heading:"You don't have permission to view this page",pageTitle:"Access denied",breadcrumbs,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)("div",{"data-test":"access-denied",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)("p",{children:["If you think you should have access or need to sign up to a DBT system then ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("a",{href:"/support",children:"request access"}),"."]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)("p",{children:["You can also ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("a",{href:"/",children:"browse or search from the homepage"})," to find the information you need."]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("p",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("strong",{children:"403"})})]})})};AccessDenied.displayName="AccessDenied";const __WEBPACK_DEFAULT_EXPORT__=AccessDenied;AccessDenied.__docgenInfo={description:"",methods:[],displayName:"AccessDenied"}},"./src/client/components/ActivityFeed/constants.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Nk:()=>ACTIVITY_TYPE,XQ:()=>STATUS,hc:()=>BADGES,m7:()=>SOURCE_TYPES,qQ:()=>INTERACTION_SERVICES,tv:()=>INTERACTION_SERVICEOTHER});__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 _client_utils_colours__WEBPACK_IMPORTED_MODULE_10__=__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)}function _defineProperty(obj,key,value){return(key=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:String(i)}(key))in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var STATUS={DRAFT:"draft",COMPLETE:"complete",UPCOMING:"upcoming",INCOMPLETE:"incomplete",CANCELLED:"cancelled"},BADGES={INTERACTION:{COMPLETE:{text:"Interaction",borderColour:_client_utils_colours__WEBPACK_IMPORTED_MODULE_10__.AV},UPCOMING:{text:"Upcoming interaction",borderColour:_client_utils_colours__WEBPACK_IMPORTED_MODULE_10__.ft},INCOMPLETE:{text:"Incomplete interaction",borderColour:_client_utils_colours__WEBPACK_IMPORTED_MODULE_10__.ft},CANCELLED:{text:"Cancelled interaction",borderColour:_client_utils_colours__WEBPACK_IMPORTED_MODULE_10__.Bk},SERVICE_DELIVERY:{text:"Service delivery",borderColour:_client_utils_colours__WEBPACK_IMPORTED_MODULE_10__.AV}},REFERRAL:{COMPLETE:{text:"Completed referral",borderColour:_client_utils_colours__WEBPACK_IMPORTED_MODULE_10__.AV},OUTSTANDING:{text:"Outstanding referral",borderColour:_client_utils_colours__WEBPACK_IMPORTED_MODULE_10__.ft}}},SOURCE_TYPES={external:"externalDataSource"},ACTIVITY_TYPE={AventriAttendee:["dit:aventri:Attendee"],CompaniesHouseAccount:["dit:Accounts"],CompaniesHouseCompany:["dit:Company"],DataHubEvent:["dit:dataHub:Event"],AventriEvent:["dit:aventri:Event"],HmrcExporter:["dit:Export"],Interaction:["dit:Interaction","dit:ServiceDelivery"],InvestmentProject:["dit:InvestmentProject"],Omis:["dit:OMISOrder"],Referral:["dit:CompanyReferral"],DirectoryFormsApi:["dit:directoryFormsApi:Submission"],MaxemailCampaign:["dit:maxemail:Campaign"]},INTERACTION_SERVICES=_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_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"),INTERACTION_SERVICEOTHER={"Export Support Service - International Markets":"Export Support Service: International","Global Growth Service: Diagnostic and Output Report Completed by DBT":"Global Growth: Diagnostic and Output Report","Global Growth Service: engagement letter signed by company":"Global Growth: Engagement Letter Signed","Global Growth Service: project closed":"Global Growth: Project Closed","Global Growth Service: signed export growth plan received from company":"Global Growth: Export Growth Plan Received","Overseas Business Network chargeable services (OBN)":"OBN Chargeable Services","Participation at Glasgow/getting involved with COP26":"Participation at Glasgow/COP26 involvement","DBT Middle East & Pakistan Comms & Marketing campaigns":"DBT Middle East & Pakistan Comms & Marketing","Commonwealth Games 2022 - BATP Programme":"Commonwealth Games 2022 – BATP","Commonwealth Games 2022 - GEP Programme":"Commonwealth Games 2022 – GEP","HPO High Potential Opportunity investment enquiry from IIGB":"HPO Investment Enquiry via IIGB","HPO High Potential Opportunity investment enquiry from IST target company":"HPO Investment Enquiry via IST Target Company","Abandoned - no investor response (ERU Use)":"Abandoned - No Response (ERU Use)","Follow up email - no investor response (ERU Use)":"Follow Up Email - No Response (ERU Use)","Business partners (such as distributors or manufacturers)":"Business Partners","Financial and professional service providers":"Financial + Professional Service Providers","Engagement with Local Enterprise Partnerships (LEPs)":"Engagement: Local Enterprise Partnerships","Engaging with devolved authorities on trade agreements":"Engagement: Devolved Authorities Trade Agreements","Informing key stakeholder groups of opportunities and gathering business intelligence":"Informing stakeholders + gathering intelligence","Negotiating rounds - pre-ratification and negotiating amendments":"Negotiating: pre-ratification + amendments","One-to-one with exporters explaining new trade agreement opportunities, messages and resources":"121 with exporters: new trade agreement opportunities","One-to-one with investors explaining new trade agreement opportunities, messages and resources":"121 with investors: new trade agreement opportunities","Partner country interaction - post-ratification (trade agreement related)":"Partner country interaction: post-ratification","Partner country interaction - related to Market Access Barriers":"Partner country interaction: Market Access Barriers"}},"./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 new 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 new 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(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function useAdministrativeAreaLookup(){return function(){var _findAreaByCountryId=function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_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)(_lib_urls__WEBPACK_IMPORTED_MODULE_18__.metadata.administrativeArea());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 new 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 new 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(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||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}}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||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(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i0&&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/es/index.js"),_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"),__webpack_require__("./node_modules/react/index.js");var _templateObject,_templateObject2,_templateObject3,prop_types__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_12__),styled_components__WEBPACK_IMPORTED_MODULE_11__=__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"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/react/jsx-runtime.js");function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}var negativeSpacing="-"+_govuk_react_constants__WEBPACK_IMPORTED_MODULE_6__.Es.SCALE_4,StyledMain=(0,styled_components__WEBPACK_IMPORTED_MODULE_11__.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_11__.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_11__.Ay)(StyledMessage)(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n margin-top: ",";\n"])),negativeSpacing),checkArchiverFormat=function checkArchiverFormat(archivedBy){return"string"==typeof archivedBy?archivedBy:"".concat(archivedBy.first_name||archivedBy.firstName," ").concat(archivedBy.last_name||archivedBy.lastName)},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(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(StyledMain,{"data-test":"archive-panel",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsxs)(_client_components_StatusMessage__WEBPACK_IMPORTED_MODULE_8__.A,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(StyledMessage,{"data-test":"archive-message",children:archivedBy?"This ".concat(type," was ").concat(archiveMessage," on ").concat((0,_utils_date__WEBPACK_IMPORTED_MODULE_9__.format)(archivedOn)," by ").concat(checkArchiverFormat(archivedBy),"."):"This ".concat(type," was automatically archived on ").concat((0,_utils_date__WEBPACK_IMPORTED_MODULE_9__.format)(archivedOn),".")}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(StyledReason,{"data-test":"archive-reason",children:"Reason: ".concat(archiveReason)}),unarchiveUrl&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_10__.jsx)(_govuk_react_link__WEBPACK_IMPORTED_MODULE_7__.A,{"data-test":"unarchive-link",onClick,href:unarchiveUrl,children:"Unarchive"})]})})};ArchivePanel.displayName="ArchivePanel",ArchivePanel.propTypes={archivedBy:prop_types__WEBPACK_IMPORTED_MODULE_12___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_12___default().string,prop_types__WEBPACK_IMPORTED_MODULE_12___default().object]),archivedOn:prop_types__WEBPACK_IMPORTED_MODULE_12___default().string.isRequired,archiveReason:prop_types__WEBPACK_IMPORTED_MODULE_12___default().string.isRequired,unarchiveUrl:prop_types__WEBPACK_IMPORTED_MODULE_12___default().string,onClick:prop_types__WEBPACK_IMPORTED_MODULE_12___default().func,type:prop_types__WEBPACK_IMPORTED_MODULE_12___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"),__webpack_require__("./node_modules/react/index.js");var _templateObject,styled_components__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.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_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"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/react/jsx-runtime.js");var StyledBadge=(0,styled_components__WEBPACK_IMPORTED_MODULE_7__.Ay)("span")(_templateObject||(_templateObject=function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["\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(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(StyledBadge,{"data-test":"badge",borderColour,textColour,fontSize,children:[label&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_govuk_react_visually_hidden__WEBPACK_IMPORTED_MODULE_4__.A,{children:label}),children]})};Badge.displayName="Badge",Badge.propTypes={label:prop_types__WEBPACK_IMPORTED_MODULE_8___default().string,borderColour:prop_types__WEBPACK_IMPORTED_MODULE_8___default().string,textColour:prop_types__WEBPACK_IMPORTED_MODULE_8___default().string,fontSize:prop_types__WEBPACK_IMPORTED_MODULE_8___default().string,children:prop_types__WEBPACK_IMPORTED_MODULE_8___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(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["\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.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.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.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.function.name.js");var react__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./node_modules/react/index.js"),styled_components__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),govuk_react__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./node_modules/govuk-react/dist/govuk-react.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("./node_modules/react/jsx-runtime.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=["onChange","name","initialChecked","value"];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 _defineProperty(obj,key,value){return(key=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:String(i)}(key))in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _slicedToArray(arr,i){return function _arrayWithHoles(arr){if(Array.isArray(arr))return arr}(arr)||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}}(arr,i)||function _unsupportedIterableToArray(o,minLen){if(!o)return;if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen)}(arr,i)||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(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var StyledGovCheckbox=(0,styled_components__WEBPACK_IMPORTED_MODULE_25__.Ay)(govuk_react__WEBPACK_IMPORTED_MODULE_22__.Sc)(_templateObject||(_templateObject=function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["\n ","\n"])),(function(props){return props.reduced&&"\n padding: 8px 0 8px 33px !important;\n min-height: auto;\n margin-bottom: 1px;\n\n input {\n width: 18px;\n height: 18px;\n }\n input + span {\n padding: 0;\n &:before {\n margin: 8px 0 0 8px;\n height: 18px;\n width: 18px;\n border-width: 1px;\n }\n &:after {\n border-width: 0 0 2px 2px;\n width: 10px;\n height: 5px;\n left: 11px;\n }\n }\n input + span + span {\n padding-left: 0;\n font-size: ".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_23__._m.S,"px;\n }\n ")})),Checkbox=function Checkbox(_ref){var _onChange=_ref.onChange,name=_ref.name,_ref$initialChecked=_ref.initialChecked,initialChecked=void 0!==_ref$initialChecked&&_ref$initialChecked,value=_ref.value,props=_objectWithoutProperties(_ref,_excluded),_useState2=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_21__.useState)(initialChecked),2),checked=_useState2[0],setChecked=_useState2[1];return(0,react__WEBPACK_IMPORTED_MODULE_21__.useEffect)((function(){return setChecked(initialChecked)}),[initialChecked]),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_24__.jsx)(StyledGovCheckbox,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.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.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.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.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 react__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./node_modules/react/index.js"),_govuk_react_multi_choice__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("./node_modules/@govuk-react/multi-choice/dist/govuk-react-multi-choice.esm.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__),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"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__("./src/client/utils/colours.js"),_Checkbox__WEBPACK_IMPORTED_MODULE_30__=__webpack_require__("./src/client/components/Checkbox/index.jsx"),_Form_elements_FieldWrapper__WEBPACK_IMPORTED_MODULE_31__=__webpack_require__("./src/client/components/Form/elements/FieldWrapper/index.jsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_32__=__webpack_require__("./node_modules/react/jsx-runtime.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,_excluded=["legend","name","hint","options","loadOptions","selectedOptions","onChange","id","groupId","maxScrollHeight"],_excluded2=["value","label"];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;rarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}var checkboxGroupElementStyles=(0,styled_components__WEBPACK_IMPORTED_MODULE_33__.AH)(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n legend {\n font-size: ",";\n font-weight: ",";\n }\n label {\n font-weight: normal;\n margin-bottom: 4px;\n padding-left: 0;\n }\n li label {\n padding-left: 20px;\n }\n input {\n + span {\n padding: 10px 15px 5px;\n &::before {\n top: 8px;\n width: 24px;\n height: 24px;\n }\n &::after {\n top: 14px;\n left: 5px;\n width: 10px;\n height: 4.5px;\n border-width: 0 0 3px 3px;\n }\n }\n &:hover {\n + span {\n &::before {\n outline: 10px solid ",";\n }\n }\n }\n &:focus {\n + span {\n &::before {\n box-shadow: 0 0 0 4px ",";\n }\n }\n }\n }\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_28__.SG.SIZE_16,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_28__.sO.bold,_client_utils_colours__WEBPACK_IMPORTED_MODULE_29__.Pe,_client_utils_colours__WEBPACK_IMPORTED_MODULE_29__.Iz),StyledFieldWrapper=(0,styled_components__WEBPACK_IMPORTED_MODULE_33__.Ay)(_Form_elements_FieldWrapper__WEBPACK_IMPORTED_MODULE_31__.A)(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n margin-bottom: 14px;\n\n "," {\n margin-bottom: 14px;\n }\n\n ","\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_28__.qs.TABLET,(function(_ref){var maxScrollHeight=_ref.maxScrollHeight;return maxScrollHeight?"\n fieldset > legend {\n font-size: ".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_28__.SG.SIZE_16,";\n font-weight: ").concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_28__.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_33__.Ay)("span")(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n font-size: ",";\n display: block;\n padding: "," 0;\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_28__.SG.SIZE_14,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_28__.Es.SCALE_1),StyledList=(0,styled_components__WEBPACK_IMPORTED_MODULE_33__.Ay)("ul")(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n padding: 0;\n margin: 0;\n list-style: none;\n"]))),StyledCheckbox=(0,styled_components__WEBPACK_IMPORTED_MODULE_33__.Ay)(_Checkbox__WEBPACK_IMPORTED_MODULE_30__.A)(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["\n "," {\n font-size: ",";\n }\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_28__.qs.TABLET,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_28__.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_26__.useState)(initialOptions),2),options=_useState2[0],setOptions=_useState2[1],_useState4=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_26__.useState)(null!==loadOptions),2),loading=_useState4[0],setLoading=_useState4[1];return(0,react__WEBPACK_IMPORTED_MODULE_26__.useEffect)((function(){null!==loadOptions&&loadOptions().then((function(options){setLoading(!1),setOptions(options)}))}),[options,loadOptions]),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_32__.jsx)(StyledFieldWrapper,_objectSpread(_objectSpread({maxScrollHeight,legend,name,hint,"data-test":"checkbox-group-field-".concat(name),groupId},props),{},{children:loading?"Loading...":(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_32__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_32__.Fragment,{children:[maxScrollHeight>0&&selectedOptions.length>0&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_32__.jsx)(SelectedCount,{children:"".concat(selectedOptions.length," selected")}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_32__.jsx)(_govuk_react_multi_choice__WEBPACK_IMPORTED_MODULE_27__.A,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_32__.jsx)(StyledList,{children: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(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_32__.jsx)("li",{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_32__.jsx)(StyledCheckbox,_objectSpread(_objectSpread({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),{},{children:optionLabel}))},optionValue)}))})})]})}))};CheckboxGroupField.displayName="CheckboxGroupField",CheckboxGroupField.propTypes={legend:prop_types__WEBPACK_IMPORTED_MODULE_34___default().string,name:prop_types__WEBPACK_IMPORTED_MODULE_34___default().string,hint:prop_types__WEBPACK_IMPORTED_MODULE_34___default().string,options:prop_types__WEBPACK_IMPORTED_MODULE_34___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_34___default().shape({value:prop_types__WEBPACK_IMPORTED_MODULE_34___default().string,label:prop_types__WEBPACK_IMPORTED_MODULE_34___default().string})).isRequired,loadOptions:prop_types__WEBPACK_IMPORTED_MODULE_34___default().func,selectedOptions:prop_types__WEBPACK_IMPORTED_MODULE_34___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_34___default().shape({value:prop_types__WEBPACK_IMPORTED_MODULE_34___default().string,label:prop_types__WEBPACK_IMPORTED_MODULE_34___default().string})).isRequired,onChange:prop_types__WEBPACK_IMPORTED_MODULE_34___default().func,id:prop_types__WEBPACK_IMPORTED_MODULE_34___default().string,maxScrollHeight:prop_types__WEBPACK_IMPORTED_MODULE_34___default().number,groupId:prop_types__WEBPACK_IMPORTED_MODULE_34___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"),__webpack_require__("./node_modules/react/index.js");var _templateObject,styled_components__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.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_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"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/react/jsx-runtime.js");var StyledButton=(0,styled_components__WEBPACK_IMPORTED_MODULE_7__.Ay)("button")(_templateObject||(_templateObject=function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["\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(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(StyledButton,{onClick,"data-value":value,"aria-label":"remove filter ".concat(children),children:[onClick&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("span",{children:"✕"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("span",{children})]})};Chip.displayName="Chip",Chip.propTypes={children:prop_types__WEBPACK_IMPORTED_MODULE_8___default().node.isRequired,value:prop_types__WEBPACK_IMPORTED_MODULE_8___default().string.isRequired,onClick:prop_types__WEBPACK_IMPORTED_MODULE_8___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.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"),__webpack_require__("./node_modules/react/index.js");var 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__),_govuk_react_button__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./node_modules/@govuk-react/button/dist/govuk-react-button.esm.js"),styled_components__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),pluralize__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./node_modules/pluralize/pluralize.js"),pluralize__WEBPACK_IMPORTED_MODULE_19___default=__webpack_require__.n(pluralize__WEBPACK_IMPORTED_MODULE_19__),_govuk_react_heading__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./node_modules/@govuk-react/heading/dist/govuk-react-heading.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_CollectionHeaderRow__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./src/client/components/CollectionList/CollectionHeaderRow.jsx"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./src/client/utils/colours.js"),_utils_number_utils__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("./src/client/utils/number-utils.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./node_modules/react/jsx-runtime.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,_excluded=["totalItems","collectionName","addItemUrl","shouldPluralize"];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||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}var StyledHeaderText=(0,styled_components__WEBPACK_IMPORTED_MODULE_26__.Ay)(_govuk_react_heading__WEBPACK_IMPORTED_MODULE_20__.H2)(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n margin-top: 0;\n font-weight: normal;\n font-size: ","px;\n margin-bottom: 0;\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_21__.iU.MEDIUM),StyledLink=styled_components__WEBPACK_IMPORTED_MODULE_26__.Ay.a(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n margin-bottom: 0;\n"]))),StyledResultCount=(0,styled_components__WEBPACK_IMPORTED_MODULE_26__.Ay)("span")(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n font-size: 36px;\n font-weight: 600;\n line-height: 1;\n"])));function CollectionHeader(_ref){var totalItems=_ref.totalItems,_ref$collectionName=_ref.collectionName,collectionName=void 0===_ref$collectionName?"result":_ref$collectionName,addItemUrl=_ref.addItemUrl,_ref$shouldPluralize=_ref.shouldPluralize,shouldPluralize=void 0===_ref$shouldPluralize||_ref$shouldPluralize,rest=_objectWithoutProperties(_ref,_excluded),formattedTotal=(0,_utils_number_utils__WEBPACK_IMPORTED_MODULE_24__._)(totalItems),counterSuffix=shouldPluralize?pluralize__WEBPACK_IMPORTED_MODULE_19___default()(collectionName,totalItems):collectionName,actions=addItemUrl&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_25__.jsxs)(_govuk_react_button__WEBPACK_IMPORTED_MODULE_18__.A,{as:StyledLink,href:addItemUrl,buttonColour:_client_utils_colours__WEBPACK_IMPORTED_MODULE_23__.WS,buttonTextColour:_client_utils_colours__WEBPACK_IMPORTED_MODULE_23__.Uv,"data-test":"add-collection-item-button",children:["Add ",collectionName]});return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_25__.jsx)(_CollectionHeaderRow__WEBPACK_IMPORTED_MODULE_22__.A,_objectSpread(_objectSpread({primary:!0,actions},rest),{},{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_25__.jsxs)(StyledHeaderText,{"data-test":"collection-header-name",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_25__.jsx)(StyledResultCount,{"data-test":"collection-count",children:formattedTotal})," ".concat(counterSuffix)]})}))}CollectionHeader.displayName="CollectionHeader",CollectionHeader.propTypes={totalItems:prop_types__WEBPACK_IMPORTED_MODULE_27___default().number.isRequired,collectionName:prop_types__WEBPACK_IMPORTED_MODULE_27___default().string.isRequired,addItemUrl:prop_types__WEBPACK_IMPORTED_MODULE_27___default().string},CollectionHeader.defaultProps={addItemUrl:null};const __WEBPACK_DEFAULT_EXPORT__=CollectionHeader;CollectionHeader.__docgenInfo={description:"",methods:[],displayName:"CollectionHeader",props:{collectionName:{defaultValue:{value:"'result'",computed:!1},description:"",type:{name:"string"},required:!1},shouldPluralize:{defaultValue:{value:"true",computed:!1},required:!1},addItemUrl:{defaultValue:{value:"null",computed:!1},description:"",type:{name:"string"},required:!1},totalItems:{description:"",type:{name:"number"},required:!0}}}},"./src/client/components/CollectionList/CollectionHeaderRow.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.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"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/react/index.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__),styled_components__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./src/client/utils/colours.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./node_modules/react/jsx-runtime.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,_excluded=["primary","actions","children"];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||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}var StyledRowWrapper=(0,styled_components__WEBPACK_IMPORTED_MODULE_22__.Ay)("div")(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n display: flex;\n flex-flow: row wrap;\n align-items: center;\n font-size: ",";\n padding: "," 0;\n border-bottom: ",";\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_19__.SG.SIZE_16,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_19__.Es.SCALE_2,(function(_ref){return _ref.primary?"".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_19__.Es.SCALE_1," solid ").concat(_client_utils_colours__WEBPACK_IMPORTED_MODULE_20__.Uv):"1px solid ".concat(_client_utils_colours__WEBPACK_IMPORTED_MODULE_20__.Pe)})),StyledActions=(0,styled_components__WEBPACK_IMPORTED_MODULE_22__.Ay)("div")(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n width: 100%;\n margin-top: ",";\n\n "," {\n margin-top: 0;\n margin-left: ",";\n display: flex;\n justify-content: flex-end;\n flex-basis: 0;\n flex-grow: 1;\n }\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_19__.Es.SCALE_2,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_19__.qs.TABLET,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_19__.Es.SCALE_1),CollectionHeaderRow=function CollectionHeaderRow(_ref2){var primary=_ref2.primary,actions=_ref2.actions,children=_ref2.children,rest=_objectWithoutProperties(_ref2,_excluded);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_21__.jsxs)(StyledRowWrapper,_objectSpread(_objectSpread({primary},rest),{},{children:[children,actions&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_21__.jsx)(StyledActions,{children:actions})]}))};CollectionHeaderRow.displayName="CollectionHeaderRow",CollectionHeaderRow.propTypes={primary:prop_types__WEBPACK_IMPORTED_MODULE_23___default().bool,actions:prop_types__WEBPACK_IMPORTED_MODULE_23___default().node,children:prop_types__WEBPACK_IMPORTED_MODULE_23___default().node.isRequired},CollectionHeaderRow.defaultProps={primary:!1,actions:null};const __WEBPACK_DEFAULT_EXPORT__=CollectionHeaderRow;CollectionHeaderRow.__docgenInfo={description:"",methods:[],displayName:"CollectionHeaderRow",props:{primary:{defaultValue:{value:"false",computed:!1},description:"",type:{name:"bool"},required:!1},actions:{defaultValue:{value:"null",computed:!1},description:"",type:{name:"node"},required:!1},children:{description:"",type:{name:"node"},required:!0}}}},"./src/client/components/CollectionList/CollectionItem.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"),__webpack_require__("./node_modules/react/index.js");var _templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,prop_types__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_14___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_14__),react_router_dom__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./node_modules/react-router-dom/esm/react-router-dom.js"),styled_components__WEBPACK_IMPORTED_MODULE_12__=__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"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./node_modules/react/jsx-runtime.js");function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}var ItemWrapper=(0,styled_components__WEBPACK_IMPORTED_MODULE_12__.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_12__.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),StyledHeader=(0,styled_components__WEBPACK_IMPORTED_MODULE_12__.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_12__.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_12__.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_12__.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_12__.Ay)("div")(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["\n margin-right: 10px;\n text-align: right;\n"]))),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;return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)(ItemWrapper,{"data-test":"collection-item",children:[tags&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(StyledBadgesWrapper,{"data-test":"collection-item-tags",children:tags.map((function(tag,index){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_Tag__WEBPACK_IMPORTED_MODULE_10__.A,{colour:tag.colour,"data-test":"collection-item-tag",children:tag.text},"tag_".concat(index))}))}),!tags&&badges&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(StyledBadgesWrapper,{"data-test":"collection-item-badges",children:badges.map((function(badge){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_Badge___WEBPACK_IMPORTED_MODULE_8__.A,{borderColour:badge.borderColour,children:badge.text},badge.text)}))}),titleRenderer?titleRenderer(headingText,headingUrl):headingUrl?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(StyledLinkHeader,{children:useReactRouter?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_govuk_react_link__WEBPACK_IMPORTED_MODULE_5__.A,{as:react_router_dom__WEBPACK_IMPORTED_MODULE_13__.N_,to:headingUrl,onClick,children:headingText}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_govuk_react_link__WEBPACK_IMPORTED_MODULE_5__.A,{href:headingUrl,onClick,children:headingText})}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(StyledHeader,{children:headingText}),subheading?subheadingUrl?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(StyledSubheading,{fontSize:16,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_govuk_react_link__WEBPACK_IMPORTED_MODULE_5__.A,{href:subheadingUrl,children:subheading})}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(StyledSubheading,{children:subheading}):null,metadataRenderer?metadataRenderer(metadata):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_components_Metadata___WEBPACK_IMPORTED_MODULE_9__.A,{rows:metadata}),buttons&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(StyledButtonWrapper,{children:buttons}),footerRenderer&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)(StyledFooterWrapper,{children:[footerRenderer(footerdata)," "]})]})};CollectionItem.displayName="CollectionItem",CollectionItem.propTypes={headingUrl:prop_types__WEBPACK_IMPORTED_MODULE_14___default().string,headingText:prop_types__WEBPACK_IMPORTED_MODULE_14___default().string.isRequired,subheading:prop_types__WEBPACK_IMPORTED_MODULE_14___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_14___default().string,prop_types__WEBPACK_IMPORTED_MODULE_14___default().element]),subheadingUrl:prop_types__WEBPACK_IMPORTED_MODULE_14___default().string,badges:prop_types__WEBPACK_IMPORTED_MODULE_14___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_14___default().shape({text:prop_types__WEBPACK_IMPORTED_MODULE_14___default().string,borderColour:prop_types__WEBPACK_IMPORTED_MODULE_14___default().string})),tags:prop_types__WEBPACK_IMPORTED_MODULE_14___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_14___default().shape({text:prop_types__WEBPACK_IMPORTED_MODULE_14___default().string,colour:prop_types__WEBPACK_IMPORTED_MODULE_14___default().string})),metadata:prop_types__WEBPACK_IMPORTED_MODULE_14___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_14___default().shape({label:prop_types__WEBPACK_IMPORTED_MODULE_14___default().string,key:prop_types__WEBPACK_IMPORTED_MODULE_14___default().string,value:prop_types__WEBPACK_IMPORTED_MODULE_14___default().node.isRequired})),type:prop_types__WEBPACK_IMPORTED_MODULE_14___default().string,metadataRenderer:prop_types__WEBPACK_IMPORTED_MODULE_14___default().func,titleRenderer:prop_types__WEBPACK_IMPORTED_MODULE_14___default().func,buttonRenderer:prop_types__WEBPACK_IMPORTED_MODULE_14___default().func,footerRenderer:prop_types__WEBPACK_IMPORTED_MODULE_14___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},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.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.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"),__webpack_require__("./node_modules/react/index.js");var prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),react_router=__webpack_require__("./node_modules/react-router/esm/react-router.js"),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/lodash/lodash.js"),Select=__webpack_require__("./src/client/components/Select/index.jsx"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.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=["qsParamName"];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||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var RoutedSelect=function RoutedSelect(_ref){var qsParamName=_ref.qsParamName,props=_objectWithoutProperties(_ref,_excluded);return(0,jsx_runtime.jsx)(react_router.qh,{children:function children(_ref2){var location=_ref2.location,history=_ref2.history,qsParams=lib_default().parse(location.search.slice(1)),initialValue=(0,lodash.get)(qsParams,qsParamName,"");return(0,jsx_runtime.jsx)(Select.A,_objectSpread(_objectSpread({},props),{},{input:{initialValue,onChange:function onChange(e){history.push({search:lib_default().stringify(_objectSpread(_objectSpread({},qsParams),{},_defineProperty({},qsParamName,e.target.value)))})}}}))}})};RoutedSelect.displayName="RoutedSelect";const components_RoutedSelect=RoutedSelect;function CollectionSort_typeof(o){return CollectionSort_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},CollectionSort_typeof(o)}RoutedSelect.__docgenInfo={description:"",methods:[],displayName:"RoutedSelect"};var _templateObject,CollectionSort_excluded=["sortOptions","totalPages"];function CollectionSort_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 CollectionSort_objectSpread(e){for(var r=1;r=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var StyledSpan=(0,styled_components_browser_esm.Ay)("span")(_templateObject||(_templateObject=function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["\n color: ",";\n"])),colours.hM),CollectionSort=function CollectionSort(_ref){var sortOptions=_ref.sortOptions,totalPages=_ref.totalPages,props=CollectionSort_objectWithoutProperties(_ref,CollectionSort_excluded),actions=sortOptions?(0,jsx_runtime.jsx)(components_RoutedSelect,{"data-test":"sortby",name:"sortBy",qsParamName:"sortby",label:"Sort by",children:sortOptions.map((function(_ref2,i){var name=_ref2.name,value=_ref2.value;return(0,jsx_runtime.jsx)("option",{value,children:name},i)}))}):null;return(0,jsx_runtime.jsx)(CollectionHeaderRow.A,CollectionSort_objectSpread(CollectionSort_objectSpread({},props),{},{actions,children:(0,jsx_runtime.jsx)(react_router.qh,{children:function children(_ref3){var search=_ref3.location.search,searchParams=lib_default().parse(search.slice(1));return(0,jsx_runtime.jsxs)(StyledSpan,{"data-test":"pagination-summary",children:["Page ",searchParams.page||1," of ",totalPages]})}})}))};CollectionSort.displayName="CollectionSort",CollectionSort.propTypes={sortOptions:prop_types_default().arrayOf(prop_types_default().shape({name:prop_types_default().string.isRequired,value:prop_types_default().string.isRequired})),totalPages:prop_types_default().number.isRequired};const CollectionList_CollectionSort=CollectionSort;CollectionSort.__docgenInfo={description:"",methods:[],displayName:"CollectionSort",props:{sortOptions:{description:"",type:{name:"arrayOf",value:{name:"shape",value:{name:{name:"string",required:!0},value:{name:"string",required:!0}}}},required:!1},totalPages:{description:"",type:{name:"number"},required:!0}}}},"./src/client/components/CollectionList/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.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.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 react__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("./node_modules/react/index.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__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./node_modules/govuk-react/dist/govuk-react.esm.js"),_client_components_Task__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./src/client/components/Task/index.jsx"),_components__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./src/client/components/index.jsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./node_modules/react/jsx-runtime.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__,{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"),es=(__webpack_require__("./node_modules/react/index.js"),__webpack_require__("./node_modules/react-redux/es/index.js")),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"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.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(obj,key,value){return(key=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:String(i)}(key))in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var StyledLabel=(0,styled_components_browser_esm.Ay)(govuk_react_label_esm.A)((function(_ref){var theme=_ref.theme,justifyRight=_ref.justifyRight;return _defineProperty({display:"flex",flexDirection:"row",alignItems:"center",flexWrap:"wrap"},(null==theme?void 0:theme.toHorizontalMediaQuery)||govuk_react_constants_esm.qs.TABLET,{flexWrap:"nowrap",justifyContent:justifyRight&&"flex-end"})})),StyledLabelText=(0,styled_components_browser_esm.Ay)(govuk_react_label_text_esm.A)((function(_ref3){var theme=_ref3.theme;return _defineProperty({width:"100%"},(null==theme?void 0:theme.toHorizontalMediaQuery)||govuk_react_constants_esm.qs.TABLET,{marginRight:govuk_react_constants_esm.Es.SCALE_2,width:"auto"})})),InlineLabel=function InlineLabel(_ref5){var text=_ref5.text,children=_ref5.children,justifyRight=_ref5.justifyRight,name=_ref5.name;return(0,jsx_runtime.jsxs)(StyledLabel,{justifyRight,htmlFor:name,children:[(0,jsx_runtime.jsx)(StyledLabelText,{children:text}),children]})};InlineLabel.displayName="InlineLabel",InlineLabel.propTypes={text:prop_types_default().string.isRequired,children:prop_types_default().node,justifyRight:prop_types_default().bool},InlineLabel.defaultProps={justifyRight:!1};const components_InlineLabel=InlineLabel;InlineLabel.__docgenInfo={description:"",methods:[],displayName:"InlineLabel",props:{justifyRight:{defaultValue:{value:"false",computed:!1},description:"",type:{name:"bool"},required:!1},text:{description:"",type:{name:"string"},required:!0},children:{description:"",type:{name:"node"},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(obj,key,value){return(key=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:String(i)}(key))in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var ALPHABETICAL="alphabetical",RECENT="recent",LEAST_RECENT="least-recent",getMediaQuery=function getMediaQuery(theme){return(null==theme?void 0:theme.toHorizontalMediaQuery)||govuk_react_constants_esm.qs.TABLET},StyledRoot=(0,styled_components_browser_esm.Ay)(govuk_react_grid_row_esm.A)((function(_ref){var theme=_ref.theme;return Filters_defineProperty({background:colours.P1,padding:"".concat(govuk_react_constants_esm.Es.SCALE_2," ").concat(govuk_react_constants_esm.Es.SCALE_3),flexWrap:"wrap"},getMediaQuery(theme),{flexWrap:"nowrap"})})),StyledCol=(0,styled_components_browser_esm.Ay)(govuk_react_grid_col_esm.A)((function(_ref3){var theme=_ref3.theme;return{paddingLeft:0,paddingRight:0,"&:not(:first-child)":Filters_defineProperty({paddingTop:govuk_react_constants_esm.Es.SCALE_2},getMediaQuery(theme),{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%"},govuk_react_constants_esm.qs.LARGESCREEN,{width:200})),StyledSelect=(0,styled_components_browser_esm.Ay)(govuk_react_select_esm.pp)(Filters_defineProperty({width:"100%"},govuk_react_constants_esm.qs.LARGESCREEN,{width:"auto"})),Filters=function Filters(_ref4){var query=_ref4.query,orderBy=_ref4.orderBy,onSearch=_ref4.onSearch,onOrderChange=_ref4.onOrderChange,_ref4$companyNameId=_ref4.companyNameId,companyNameId=void 0===_ref4$companyNameId?"company-name":_ref4$companyNameId,_ref4$sortById=_ref4.sortById,sortById=void 0===_ref4$sortById?"sort-by":_ref4$sortById;return(0,jsx_runtime.jsxs)(StyledRoot,{children:[(0,jsx_runtime.jsx)(StyledCol,{children:(0,jsx_runtime.jsx)(components_InlineLabel,{text:"Search this list",name:companyNameId,children:(0,jsx_runtime.jsx)(StyledInput,{value:query||"",placeholder:"Company name",id:companyNameId,onChange:function onChange(e){return onSearch(e.target.value)}})})}),(0,jsx_runtime.jsx)(StyledCol,{children:(0,jsx_runtime.jsx)(components_InlineLabel,{text:"Sort by",justifyRight:!0,name:sortById,children:(0,jsx_runtime.jsxs)(StyledSelect,{value:orderBy,id:sortById,onChange:function onChange(e){return onOrderChange(e.target.value)},children:[(0,jsx_runtime.jsx)("option",{value:RECENT,"aria-label":"recent interaction",children:"Recent interaction"}),(0,jsx_runtime.jsx)("option",{value:LEAST_RECENT,"aria-label":"least recent interaction",children:"Least recent interaction"}),(0,jsx_runtime.jsx)("option",{value:ALPHABETICAL,"aria-label":"company name a to z",children:"Company name A-Z"})]})})})]})};Filters.displayName="Filters";const CompanyLists_Filters=(0,es.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});__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js");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){var _state$activeFeatureG;return{csrfToken:state.csrfToken,hasExportWinFeatureGroup:null===(_state$activeFeatureG=state.activeFeatureGroups)||void 0===_state$activeFeatureG?void 0:_state$activeFeatureG.includes("export-wins")}}},"./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"),__webpack_require__("./node_modules/react/index.js");var _templateObject,govuk_react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/govuk-react/dist/govuk-react.esm.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_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__),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/react/jsx-runtime.js");var StyledDetails=(0,styled_components__WEBPACK_IMPORTED_MODULE_9__.Ay)(govuk_react__WEBPACK_IMPORTED_MODULE_5__.B_)(_templateObject||(_templateObject=function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["\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(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.Fragment,{children:["If your contact is not listed"," ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(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,children:"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.",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(StyledDetails,{summary:"Information needed to add a new contact","data-test":"contact-information-details",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(govuk_react__WEBPACK_IMPORTED_MODULE_5__.fz,{children:"You need:"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(govuk_react__WEBPACK_IMPORTED_MODULE_5__.Xy,{listStyleType:"bullet",children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(govuk_react__WEBPACK_IMPORTED_MODULE_5__.ck,{children:"full name"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(govuk_react__WEBPACK_IMPORTED_MODULE_5__.ck,{children:"job title"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(govuk_react__WEBPACK_IMPORTED_MODULE_5__.ck,{children:"email address"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(govuk_react__WEBPACK_IMPORTED_MODULE_5__.ck,{children:"phone number"}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(govuk_react__WEBPACK_IMPORTED_MODULE_5__.ck,{children:"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_5__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__),govuk_react__WEBPACK_IMPORTED_MODULE_1__=(__webpack_require__("./node_modules/react/index.js"),__webpack_require__("./node_modules/govuk-react/dist/govuk-react.esm.js")),styled_components__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_SpacedSectionBreak__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/client/components/SpacedSectionBreak.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/jsx-runtime.js"),StyledHeading=(0,styled_components__WEBPACK_IMPORTED_MODULE_4__.Ay)(govuk_react__WEBPACK_IMPORTED_MODULE_1__.H3)({flexGrow:1}),StyledHeader=styled_components__WEBPACK_IMPORTED_MODULE_4__.Ay.div({display:"flex",alignItems:"baseline"}),ContentWithHeading=function ContentWithHeading(_ref){var heading=_ref.heading,children=_ref.children,headingActions=_ref.headingActions;return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)("section",{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)(StyledHeader,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(StyledHeading,{size:24,children:heading}),headingActions]}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_SpacedSectionBreak__WEBPACK_IMPORTED_MODULE_2__.A,{}),children]})};ContentWithHeading.displayName="ContentWithHeading",ContentWithHeading.propTypes={heading:prop_types__WEBPACK_IMPORTED_MODULE_5___default().node,children:prop_types__WEBPACK_IMPORTED_MODULE_5___default().node,headingComponent:prop_types__WEBPACK_IMPORTED_MODULE_5___default().func};const __WEBPACK_DEFAULT_EXPORT__=ContentWithHeading;ContentWithHeading.__docgenInfo={description:"",methods:[],displayName:"ContentWithHeading",props:{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.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/core-js/modules/es.object.assign.js");var lodash__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./node_modules/lodash/lodash.js"),_client_utils_url__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("./src/client/utils/url.js"),_client_utils_pagination__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./src/client/utils/pagination.js"),_constants__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./src/client/components/Dashboard/my-tasks/constants.js"),_modules_Tasks_TaskForm_constants__WEBPACK_IMPORTED_MODULE_20__=__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=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var ID="getMyTasks",TASK_GET_MY_TASKS="TASK_GET_MY_TASKS",areFiltersActive=function areFiltersActive(queryParams){var filters=(0,lodash__WEBPACK_IMPORTED_MODULE_16__.omitBy)(queryParams,(function(filterValue,filterName){return"all-statuses"===filterValue||"page"===filterName}));return!(0,lodash__WEBPACK_IMPORTED_MODULE_16__.isEmpty)(filters)},sortbyMapping={due_date:"due_date:asc",recently_updated:"modified_on:desc",least_recently_updated:"modified_on:asc",company_ascending:"company.name:asc",project_ascending:"investment_project.name:asc"},statusMapping={active:{status:_modules_Tasks_TaskForm_constants__WEBPACK_IMPORTED_MODULE_20__.X.ACTIVE},completed:{status:_modules_Tasks_TaskForm_constants__WEBPACK_IMPORTED_MODULE_20__.X.COMPLETED}},state2props=function state2props(_ref){var router=_ref.router,state=_objectWithoutProperties(_ref,_excluded),queryParams=(0,_client_utils_url__WEBPACK_IMPORTED_MODULE_17__.g)(router.location),currentAdviserId=state.currentAdviserId,payload=_objectSpread(_objectSpread({},queryParams),{},{page:(0,_client_utils_pagination__WEBPACK_IMPORTED_MODULE_18__.parsePage)(queryParams.page),created_by:void 0,not_created_by:void 0,advisers:void 0,not_advisers:void 0,adviser:[currentAdviserId],archived:void 0,sortby:"due_date:asc",company:void 0,project:void 0,status:void 0}),assignedToMapping={me:{advisers:[currentAdviserId]},others:{not_advisers:[currentAdviserId]}},createdByMapping={me:{created_by:currentAdviserId},others:{not_created_by:currentAdviserId}};return queryParams.sortby in sortbyMapping&&(payload.sortby=sortbyMapping[queryParams.sortby]),queryParams.company&&queryParams.company!==_constants__WEBPACK_IMPORTED_MODULE_19__.sl.value&&(payload.company=queryParams.company),queryParams.project&&queryParams.project!==_constants__WEBPACK_IMPORTED_MODULE_19__.sl.value&&(payload.project=queryParams.project),Object.assign(payload,assignedToMapping[queryParams.assigned_to]),Object.assign(payload,createdByMapping[queryParams.created_by]),Object.assign(payload,statusMapping[queryParams.status]),_objectSpread(_objectSpread({},state[ID]),{},{payload,filters:{areActive:areFiltersActive(queryParams),assignedTo:{options:_constants__WEBPACK_IMPORTED_MODULE_19__.l4},createdBy:{options:_constants__WEBPACK_IMPORTED_MODULE_19__.l4},sortby:{options:_constants__WEBPACK_IMPORTED_MODULE_19__.P$},status:{options:_constants__WEBPACK_IMPORTED_MODULE_19__.Js}}})}},"./src/client/components/DataHubHeader/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>components_DataHubHeader});__webpack_require__("./node_modules/react/index.js");var prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),es=__webpack_require__("./node_modules/react-redux/es/index.js"),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"),react_router_dom=(__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-dom/esm/react-router-dom.js")),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");const bell_icon_namespaceObject=__webpack_require__.p+"static/media/bell-icon.0c3d8d60.svg";var _templateObject,Task=__webpack_require__("./src/client/components/Task/index.jsx"),NotificationBadge=__webpack_require__("./src/client/components/NotificationBadge/index.jsx"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");var StyledNotificationAlertNavLink=(0,styled_components_browser_esm.Ay)(react_router_dom.k2)(_templateObject||(_templateObject=function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["\n display: flex;\n min-width: 42px;\n outline: none;\n text-decoration: none;\n"]))),StyledShape=(0,styled_components_browser_esm.Ay)(NotificationBadge.yp)({position:"relative",top:-2,left:-7}),StyledImage=(0,styled_components_browser_esm.Ay)("img")({width:22,height:22,marginLeft:20}),NotificationAlert=function NotificationAlert(_ref){var count=_ref.count,remindersURL=_ref.remindersURL;return(0,jsx_runtime.jsxs)(StyledNotificationAlertNavLink,{as:"a",href:remindersURL,id:"notification-bell-count",children:[(0,jsx_runtime.jsx)(StyledImage,{src:bell_icon_namespaceObject,alt:"An image of a bell with the notification count overlaid"}),(0,jsx_runtime.jsx)(Task.A.Status,{name:state.r,id:state.ID,renderProgress:function renderProgress(){return null},startOnRender:{onSuccessDispatch:actions.Hks},children:function children(){return count>0?(0,jsx_runtime.jsx)(StyledShape,{size:NotificationBadge.or.SMALL,digits:count.toString().length,"aria-label":"notification-alert-badge","data-test":"notification-alert-badge",children:(0,jsx_runtime.jsx)(NotificationBadge.y_,{children:count<100?count:"99+"})}):null}})]})};NotificationAlert.displayName="NotificationAlert",NotificationAlert.propTypes={count:prop_types_default().number.isRequired,remindersURL:prop_types_default().string.isRequired};const components_NotificationAlert=(0,es.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=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}function NavBar_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 NavBar_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.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.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.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.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 react__WEBPACK_IMPORTED_MODULE_20__=__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__),_govuk_react_input__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./node_modules/@govuk-react/input/dist/govuk-react-input.esm.js"),_Form_elements_FieldWrapper__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./src/client/components/Form/elements/FieldWrapper/index.jsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./node_modules/react/jsx-runtime.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=["onChange","name","label","legend","hint","initialValue","type"];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;rarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var DateField=function DateField(_ref){var _ref$onChange=_ref.onChange,_onChange=void 0===_ref$onChange?function(){}:_ref$onChange,name=_ref.name,label=_ref.label,legend=_ref.legend,hint=_ref.hint,initialValue=_ref.initialValue,_ref$type=_ref.type,type=void 0===_ref$type?"date":_ref$type,props=_objectWithoutProperties(_ref,_excluded),_useState2=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_20__.useState)(initialValue),2),value=_useState2[0],setValue=_useState2[1];return(0,react__WEBPACK_IMPORTED_MODULE_20__.useEffect)((function(){return setValue(initialValue)}),[initialValue]),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_23__.jsx)(_Form_elements_FieldWrapper__WEBPACK_IMPORTED_MODULE_22__.A,_objectSpread(_objectSpread({name,label,legend,hint},props),{},{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_23__.jsx)(_govuk_react_input__WEBPACK_IMPORTED_MODULE_21__.A,{id:"field-".concat(name,"-1"),"data-test":"field-".concat(name),name,value,max:"9999-12-31","aria-label":label,type,onChange:function onChange(e){setValue(e.target.value),_onChange(e)}},name)}))};DateField.displayName="DateField",DateField.propTypes={onChange:prop_types__WEBPACK_IMPORTED_MODULE_24___default().func,name:prop_types__WEBPACK_IMPORTED_MODULE_24___default().string.isRequired,label:prop_types__WEBPACK_IMPORTED_MODULE_24___default().node,legend:prop_types__WEBPACK_IMPORTED_MODULE_24___default().node,hint:prop_types__WEBPACK_IMPORTED_MODULE_24___default().string,initialValue:prop_types__WEBPACK_IMPORTED_MODULE_24___default().string};const __WEBPACK_DEFAULT_EXPORT__=DateField;DateField.__docgenInfo={description:"A Date Input Field\n\nChanging the initialValue prop overrides the user's input value - this\nmeans that the input value will stay synchronised when changing the route.",methods:[],displayName:"DateField",props:{onChange:{defaultValue:{value:"() => {}",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.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"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/react/index.js");var 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__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./node_modules/govuk-react/dist/govuk-react.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_utils_number_utils__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./src/client/utils/number-utils.js"),_CollectionList_CollectionHeaderRow__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./src/client/components/CollectionList/CollectionHeaderRow.jsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./node_modules/react/jsx-runtime.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=["downloadLink","count","maxItems","entityName","entityNamePlural"];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||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}var StyledLink=(0,styled_components__WEBPACK_IMPORTED_MODULE_24__.Ay)("a")(_templateObject||(_templateObject=function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["\n margin-bottom: 0;\n ",": {\n margin-left: ","px;\n },\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_20__.qs.TABLET,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_20__.Ge[2]),DownloadDataHeader=function DownloadDataHeader(_ref){var downloadLink=_ref.downloadLink,_ref$count=_ref.count,count=void 0===_ref$count?0:_ref$count,_ref$maxItems=_ref.maxItems,maxItems=void 0===_ref$maxItems?5e3:_ref$maxItems,_ref$entityName=_ref.entityName,entityName=void 0===_ref$entityName?"":_ref$entityName,_ref$entityNamePlural=_ref.entityNamePlural,entityNamePlural=void 0===_ref$entityNamePlural?"".concat(entityName,"s"):_ref$entityNamePlural,props=_objectWithoutProperties(_ref,_excluded);if(!count||!downloadLink)return null;if(count>=maxItems)return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_23__.jsxs)(_CollectionList_CollectionHeaderRow__WEBPACK_IMPORTED_MODULE_22__.A,_objectSpread(_objectSpread({},props),{},{children:["Filter to fewer than ",(0,_utils_number_utils__WEBPACK_IMPORTED_MODULE_21__._)(maxItems)," ",entityNamePlural," to download"]}));var downloadAction=(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_23__.jsx)(govuk_react__WEBPACK_IMPORTED_MODULE_19__.$n,{as:StyledLink,href:downloadLink,download:!0,children:"Download"},"download");return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_23__.jsxs)(_CollectionList_CollectionHeaderRow__WEBPACK_IMPORTED_MODULE_22__.A,_objectSpread(_objectSpread({actions:[downloadAction]},props),{},{children:["You can now download"," ",1===count?"this ".concat(entityName):"these ".concat(count," ").concat(entityNamePlural)]}))};DownloadDataHeader.displayName="DownloadDataHeader",DownloadDataHeader.propTypes={downloadLink:prop_types__WEBPACK_IMPORTED_MODULE_25___default().string,count:prop_types__WEBPACK_IMPORTED_MODULE_25___default().number,maxItems:prop_types__WEBPACK_IMPORTED_MODULE_25___default().number,entityName:prop_types__WEBPACK_IMPORTED_MODULE_25___default().string,entityNamePlural:prop_types__WEBPACK_IMPORTED_MODULE_25___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/DropdownMenu/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{g:()=>DropdownButton,A:()=>components_DropdownMenu});__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.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"),govuk_react_lib_esm=__webpack_require__("./node_modules/@govuk-react/lib/dist/govuk-react-lib.esm.js"),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"),colours=__webpack_require__("./src/client/utils/colours.js"),SecondaryButton=__webpack_require__("./src/client/components/SecondaryButton.jsx");const icon_triangle_namespaceObject=__webpack_require__.p+"static/media/icon-triangle.5685b354.svg";var _templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.js");function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}var DropdownMenuContainer=styled_components_browser_esm.Ay.div(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n position: relative;\n"]))),DropdownButtonContainer=styled_components_browser_esm.Ay.div(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n"]))),DropdownMenuGroup=styled_components_browser_esm.Ay.div(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n padding: ",";\n background-color: ",";\n ","\n ","\n "," {\n position: absolute;\n right: 0;\n z-index: 1;\n margin-bottom: 0;\n }\n"])),govuk_react_constants_esm.Es.SCALE_3,colours.Pe,govuk_react_lib_esm.YK.responsive({size:5,property:"margin-bottom"}),govuk_react_lib_esm.YK.responsive({size:-5,property:"margin-top"}),govuk_react_constants_esm.qs.TABLET),Icon=styled_components_browser_esm.Ay.img(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n transform: ",";\n margin-left: ",";\n transition: transform 300ms ease;\n transform-origin: center;\n"])),(function(_ref){return _ref.active?"rotate(0deg)":"rotate(-90deg)"}),govuk_react_constants_esm.Es.SCALE_3),DropdownToggleButton=(0,styled_components_browser_esm.Ay)(SecondaryButton.A)(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["\n font-weight: Bold;\n"]))),DropdownButton=(0,styled_components_browser_esm.Ay)(SecondaryButton.A).attrs((function(){return{tabIndex:0,forwardedAs:govuk_react_link_esm.A}}))(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["\n ","\n &:last-child {\n margin-bottom: 0;\n }\n"])),govuk_react_lib_esm.YK.responsive({size:3,property:"margin-bottom"})),DropdownMenu=function DropdownMenu(_ref2){var label=_ref2.label,children=_ref2.children,closedLabel=_ref2.closedLabel,_onClick=_ref2.onClick,open=_ref2.open,activeIndex=_ref2.activeIndex,onUpdateIndex=_ref2.onUpdateIndex,closeMenu=_ref2.closeMenu,dataTest=_ref2.dataTest,buttonRef=react.useRef(null),childrenGroupRef=react.useRef(null),containerRef=react.useRef(null);return react.useEffect((function(){!isNaN(activeIndex)&&childrenGroupRef.current&&childrenGroupRef.current.children[activeIndex].focus()}),[activeIndex]),react.useEffect((function(){var clickOutside=function clickOutside(_ref4){var target=_ref4.target;containerRef.current.contains(target)||closeMenu()};document.addEventListener("mousedown",clickOutside),document.addEventListener("keyup",clickOutside)}),[]),(0,jsx_runtime.jsxs)(DropdownMenuContainer,{ref:containerRef,onKeyUp:function onKeyUp(_ref3){switch(_ref3.keyCode){case 38:onUpdateIndex(Math.max(0,(null!=activeIndex?activeIndex:0)-1));break;case 40:onUpdateIndex(Math.min((null!=activeIndex?activeIndex:-1)+1,children.length-1));break;case 36:onUpdateIndex(0);break;case 35:onUpdateIndex(children.length-1)}},onKeyDown:function onKeyDown(event){switch(event.keyCode){case 27:closeMenu(),buttonRef.current&&buttonRef.current.focus();break;case 36:case 35:case 38:case 40:open&&event.preventDefault()}},"data-test":dataTest,children:[(0,jsx_runtime.jsx)(DropdownButtonContainer,{children:(0,jsx_runtime.jsx)(DropdownToggleButton,{ref:buttonRef,buttonShadowColour:"transparent",onClick:function onClick(){return _onClick(!open)},icon:(0,jsx_runtime.jsx)(Icon,{src:icon_triangle_namespaceObject,active:open,alt:""}),"aria-haspopup":!0,"aria-expanded":open,children:(open?closedLabel:label)||label})}),open&&(0,jsx_runtime.jsx)(DropdownMenuGroup,{ref:childrenGroupRef,children})]})};DropdownMenu.displayName="DropdownMenu",DropdownMenu.propTypes={onUpdateIndex:prop_types_default().func.isRequired,closeMenu:prop_types_default().func.isRequired,activeIndex:prop_types_default().number,label:prop_types_default().string.isRequired,closedLabel:prop_types_default().string,children:prop_types_default().node,onClick:prop_types_default().func.isRequired,open:prop_types_default().bool};const components_DropdownMenu=DropdownMenu;DropdownMenu.__docgenInfo={description:'DropdownMenu displays contextual overlays for menus.\n\nIn Desktop view the menu will "float" over the content in mobile view the menu is in flow and will push the content down.\n\nDropdownButton extends styles of Button for usage please visit the button docs [here](https://govuk-react.github.io/govuk-react/?path=/story/form-buttons--component-default).\n\n### Usage\n\n```jsx\n\n \n Add to or remove from list\n \n \n Add to pipeline\n \n\n```',methods:[],displayName:"DropdownMenu",props:{onUpdateIndex:{description:"",type:{name:"func"},required:!0},closeMenu:{description:"",type:{name:"func"},required:!0},activeIndex:{description:"",type:{name:"number"},required:!1},label:{description:"Text for the button",type:{name:"string"},required:!0},closedLabel:{description:"Close text for button",type:{name:"string"},required:!1},children:{description:"Buttons for dropdown group",type:{name:"node"},required:!1},onClick:{description:"Signature: function(nextOpenState: boolean) => void",type:{name:"func"},required:!0},open:{description:"Set the open and close state of the dropdown",type:{name:"bool"},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)((function(){return 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"),__webpack_require__("./node_modules/react/index.js");var _templateObject,_templateObject2,_templateObject3,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__),lodash__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/lodash/lodash.js"),styled_components__WEBPACK_IMPORTED_MODULE_10__=__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"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/react/jsx-runtime.js");function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}var StyledEntity=(0,styled_components__WEBPACK_IMPORTED_MODULE_10__.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_10__.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_10__.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,data=_ref.data,text=_ref.text,heading=_ref.heading,meta=_ref.meta,isClickable=!!onEntityClick;return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)(StyledEntity,{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)},children:[heading&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(StyledHeading,{children:heading}),!(0,lodash__WEBPACK_IMPORTED_MODULE_3__.isEmpty)(meta)&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(_components_Metadata___WEBPACK_IMPORTED_MODULE_8__.A,{rows:meta}),text&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(StyledInsetText,{children:text})]},"entity_".concat(id))};EntityListItem.displayName="EntityListItem",EntityListItem.propTypes={id:prop_types__WEBPACK_IMPORTED_MODULE_11___default().string.isRequired,onEntityClick:prop_types__WEBPACK_IMPORTED_MODULE_11___default().func,data:prop_types__WEBPACK_IMPORTED_MODULE_11___default().shape({}),text:prop_types__WEBPACK_IMPORTED_MODULE_11___default().node,heading:prop_types__WEBPACK_IMPORTED_MODULE_11___default().string,meta:prop_types__WEBPACK_IMPORTED_MODULE_11___default().array},EntityListItem.defaultProps={text:null,onEntityClick:null,data:{},heading:null,meta:[]};const __WEBPACK_DEFAULT_EXPORT__=EntityListItem;EntityListItem.__docgenInfo={description:"",methods:[],displayName:"EntityListItem",props:{text:{defaultValue:{value:"null",computed:!1},description:"",type:{name:"node"},required:!1},onEntityClick:{defaultValue:{value:"null",computed:!1},description:"",type:{name:"func"},required:!1},data:{defaultValue:{value:"{}",computed:!1},description:"",type:{name:"shape",value:{}},required:!1},heading:{defaultValue:{value:"null",computed:!1},description:"",type:{name:"string"},required:!1},meta:{defaultValue:{value:"[]",computed:!1},description:"",type:{name:"array"},required:!1},id:{description:"",type:{name:"string"},required:!0}}}},"./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.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"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/react/index.js");var _templateObject,_templateObject2,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"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_EntityListItem__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./src/client/components/EntityList/EntityListItem.jsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./node_modules/react/jsx-runtime.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 {\n const isClickable = !!onEntityClick\n return (\n isClickable && onEntityClick(data)}\n onKeyDown={(e) =>\n isClickable && e.keyCode === KEY_ENTER && onEntityClick(data)\n }\n >\n {heading && {heading}}\n\n {!isEmpty(meta) && }\n\n {text && {text}}\n \n )\n}",computed:!1},description:"",type:{name:"func"},required:!1},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}}}},"./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 new 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 new 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(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){return void reject(error)}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}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(fn){return function(){var self=this,args=arguments;return new Promise((function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}_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.iterator.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.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"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js");var react__WEBPACK_IMPORTED_MODULE_17__=__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__),styled_components__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_heading__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./node_modules/@govuk-react/heading/dist/govuk-react-heading.esm.js"),_govuk_react_paragraph__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./node_modules/@govuk-react/paragraph/dist/govuk-react-paragraph.esm.js"),_govuk_react_unordered_list__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./node_modules/@govuk-react/unordered-list/dist/govuk-react-unordered-list.esm.js"),_govuk_react_link__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./node_modules/@govuk-react/link/dist/govuk-react-link.esm.js"),_govuk_react_list_item__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./node_modules/@govuk-react/list-item/dist/govuk-react-list-item.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_govuk_react_lib__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("./node_modules/@govuk-react/lib/dist/govuk-react-lib.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./src/client/utils/colours.js"),_styles__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./src/client/styles.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("./node_modules/react/jsx-runtime.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 _objectWithoutProperties(source,excluded){if(null==source)return{};var key,i,target=function _objectWithoutPropertiesLoose(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}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&&(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_27__.jsx)(_govuk_react_unordered_list__WEBPACK_IMPORTED_MODULE_20__.A,{mb:0,listStyleType:"none",children:errors.map((function(_ref2){var targetName=_ref2.targetName,text=_ref2.text;return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_27__.jsx)(_govuk_react_list_item__WEBPACK_IMPORTED_MODULE_22__.A,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_27__.jsx)(StyledErrorText,{href:"#field-".concat(targetName),children:text})},targetName)}))})]}))}));ErrorSummary.propTypes={heading:prop_types__WEBPACK_IMPORTED_MODULE_29___default().string,description:prop_types__WEBPACK_IMPORTED_MODULE_29___default().string,errors:prop_types__WEBPACK_IMPORTED_MODULE_29___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_29___default().shape({targetName:prop_types__WEBPACK_IMPORTED_MODULE_29___default().string.isRequired,text:prop_types__WEBPACK_IMPORTED_MODULE_29___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.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.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.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.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.map.js"),__webpack_require__("./node_modules/core-js/modules/es.object.entries.js"),__webpack_require__("./node_modules/react/index.js");var 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_2x_namespaceObject=__webpack_require__.p+"static/media/govuk-crest-2x.05968778.png";var urls=__webpack_require__("./src/lib/urls.js"),urls_default=__webpack_require__.n(urls),Main=__webpack_require__("./src/client/components/Main/index.jsx"),jsx_runtime=__webpack_require__("./node_modules/react/jsx-runtime.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,_excluded=["links"];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;rarr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=0||(target[key]=source[key]);return target}(source,excluded);if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}var StyledFooter=(0,styled_components_browser_esm.Ay)("footer")({clear:"both",borderTop:"1px solid ".concat(colours.fl),background:"".concat(colours.Np),color:"".concat(colours.Kk)},govuk_react_lib_esm.Il.font({size:16}),govuk_react_lib_esm.YK.withWhiteSpace({padding:[{size:7,direction:"top"},{size:5,direction:"bottom"}]})),StyleList=styled_components_browser_esm.Ay.ul(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n display: flex;\n flex: 1;\n flex-direction: row;\n li + li {\n margin-left: ",";\n }\n margin-bottom: ",";\n\n @media (max-width: ",") {\n margin-bottom: -",";\n margin-right: ",";\n flex-direction: column;\n flex-wrap: wrap;\n\n li + li {\n margin-left: 0;\n }\n\n li {\n margin-left: 0;\n margin-bottom: ",";\n }\n\n li:last-child {\n margin-bottom: ",";\n }\n }\n"])),govuk_react_constants_esm.Es.SCALE_3,govuk_react_constants_esm.Es.SCALE_3,"340px",govuk_react_constants_esm.Es.SCALE_3,govuk_react_constants_esm.Es.SCALE_5,govuk_react_constants_esm.Es.SCALE_3,govuk_react_constants_esm.Es.SCALE_5),FooterLink=styled_components_browser_esm.Ay.a(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n color: ",";\n &:active,\n &:focus,\n &:visited,\n &:hover {\n color: ",";\n outline: 3px solid transparent;\n }\n &:focus {\n background-color: ",";\n box-shadow:\n 0 -2px ",",\n 0 4px ",";\n text-decoration: none;\n }\n"])),colours.Uv,colours.Uv,colours.eM,colours.eM,colours.Uv),CopyrightLink=(0,styled_components_browser_esm.Ay)(FooterLink)(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n display: inline-block;\n min-width: 125px;\n padding-top: 112px;\n background-image: url(",");\n background-repeat: no-repeat;\n background-position: 50% 0%;\n background-size: 125px 102px;\n text-align: center;\n text-decoration: none;\n white-space: nowrap;\n margin-bottom: ",";\n @media (max-width: ",") {\n margin-bottom: ",";\n }\n"])),govuk_crest_2x_namespaceObject,govuk_react_constants_esm.Es.SCALE_3,"340px",govuk_react_constants_esm.Es.SCALE_5),Container=(0,styled_components_browser_esm.Ay)(Main.w)(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n display: flex;\n justify-content: center;\n align-items: flex-end;\n flex-wrap: wrap;\n"]))),LINKS={"Request Support":urls_default().support(),"Help Centre":urls_default().external.helpCentre.dhHomepage(),"Privacy Notice":urls_default().external.helpCentre.privacyNotice(),Cookies:urls_default().external.helpCentre.cookies(),"Accessibility Statement":urls_default().external.helpCentre.accessibilityStatement()};function Footer(_ref){var _ref$links=_ref.links,links=void 0===_ref$links?LINKS:_ref$links,props=_objectWithoutProperties(_ref,_excluded);return(0,jsx_runtime.jsx)(StyledFooter,_objectSpread(_objectSpread({},props),{},{children:(0,jsx_runtime.jsxs)(Container,{children:[(0,jsx_runtime.jsx)(StyleList,{children:Object.entries(links).map((function(_ref2){var _ref3=_slicedToArray(_ref2,2),label=_ref3[0],href=_ref3[1];return(0,jsx_runtime.jsx)("li",{children:(0,jsx_runtime.jsx)(FooterLink,{href,target:"_blank",rel:"noopener noreferrer","aria-label":"".concat(label," (opens in new tab)"),children:label})},label)}))}),(0,jsx_runtime.jsx)(CopyrightLink,{href:urls_default().external.copyright,target:"_blank",rel:"noopener noreferrer","aria-label":"Crown copyright (opens in new tab)",children:"© Crown copyright"})]})}))}Footer.displayName="Footer",Footer.__docgenInfo={description:"The Footer displayed in all pages across the Data Hub site.\n@param {Object} props - Accepts all the attributes of `