From cfaf0f9fea67c9d871dfd99c7716c1afd749646d Mon Sep 17 00:00:00 2001 From: DIT <> Date: Fri, 2 Aug 2024 14:05:38 +0000 Subject: [PATCH] publish: Dependabot (2024-08-01) (#7039) generated from commit fe8483a3da8508c3ddc1b0b36d9e40b67c505bb8 --- ...-__stories__-RoutedInput-stories.80b39b68.iframe.bundle.js | 2 +- ..._-RoutedInputFieldFilter-stories.95affcbf.iframe.bundle.js | 2 +- ...dNumericRangeFieldFilter-stories.b924ceed.iframe.bundle.js | 2 +- ...DismissableStatusMessage-stories.372c65cd.iframe.bundle.js | 1 + ...DismissableStatusMessage-stories.48f042be.iframe.bundle.js | 1 - iframe.html | 4 ++-- main.71997626.iframe.bundle.js | 2 -- main.a2d4ae2a.iframe.bundle.js | 2 ++ ....LICENSE.txt => main.a2d4ae2a.iframe.bundle.js.LICENSE.txt | 0 project.json | 2 +- ...iframe.bundle.js => runtime~main.0e202ef7.iframe.bundle.js | 2 +- sb-addons/essentials-controls-1/manager-bundle.js | 2 +- 12 files changed, 11 insertions(+), 11 deletions(-) rename RoutedInput-__stories__-RoutedInput-stories.cbbc4fe9.iframe.bundle.js => RoutedInput-__stories__-RoutedInput-stories.80b39b68.iframe.bundle.js (59%) rename RoutedInputField-__stories__-RoutedInputFieldFilter-stories.fb390eaa.iframe.bundle.js => RoutedInputField-__stories__-RoutedInputFieldFilter-stories.95affcbf.iframe.bundle.js (54%) rename RoutedNumericRangeField-__stories__-RoutedNumericRangeFieldFilter-stories.2e4598b0.iframe.bundle.js => RoutedNumericRangeField-__stories__-RoutedNumericRangeFieldFilter-stories.b924ceed.iframe.bundle.js (54%) create mode 100644 StatusMessage-__stories__-DismissableStatusMessage-stories.372c65cd.iframe.bundle.js delete mode 100644 StatusMessage-__stories__-DismissableStatusMessage-stories.48f042be.iframe.bundle.js delete mode 100644 main.71997626.iframe.bundle.js create mode 100644 main.a2d4ae2a.iframe.bundle.js rename main.71997626.iframe.bundle.js.LICENSE.txt => main.a2d4ae2a.iframe.bundle.js.LICENSE.txt (100%) rename runtime~main.94191b57.iframe.bundle.js => runtime~main.0e202ef7.iframe.bundle.js (97%) diff --git a/RoutedInput-__stories__-RoutedInput-stories.cbbc4fe9.iframe.bundle.js b/RoutedInput-__stories__-RoutedInput-stories.80b39b68.iframe.bundle.js similarity index 59% rename from RoutedInput-__stories__-RoutedInput-stories.cbbc4fe9.iframe.bundle.js rename to RoutedInput-__stories__-RoutedInput-stories.80b39b68.iframe.bundle.js index 3394b1d05ad..0096fb52af4 100644 --- a/RoutedInput-__stories__-RoutedInput-stories.cbbc4fe9.iframe.bundle.js +++ b/RoutedInput-__stories__-RoutedInput-stories.80b39b68.iframe.bundle.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[6846],{"./src/client/components/RoutedInput/__stories__/RoutedInput.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Number:()=>Number,Text:()=>Text,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_storybook_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./.storybook/utils.jsx"),___WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/client/components/RoutedInput/index.jsx");const __WEBPACK_DEFAULT_EXPORT__={title:"RoutedInput"},Text=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(___WEBPACK_IMPORTED_MODULE_2__.A,{id:"text",qsParam:"text",placeholder:"text"}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_storybook_utils__WEBPACK_IMPORTED_MODULE_1__.$,null)),Number=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(___WEBPACK_IMPORTED_MODULE_2__.A,{id:"number",qsParam:"number",type:"number",placeholder:"number"}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_storybook_utils__WEBPACK_IMPORTED_MODULE_1__.$,null)),__namedExportsOrder=["Text","Number"];Text.parameters={...Text.parameters,docs:{...Text.parameters?.docs,source:{originalSource:'() =>
\n \n \n
',...Text.parameters?.docs?.source}}},Number.parameters={...Number.parameters,docs:{...Number.parameters?.docs,source:{originalSource:'() =>
\n \n \n
',...Number.parameters?.docs?.source}}}},"./.storybook/utils.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{$:()=>ResetQueryStringButton});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.string.replace.js"),__webpack_require__("./node_modules/core-js/modules/es.string.search.js");var react__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/react/index.js"),react_router_dom__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/react-router/dist/index.js"),_excluded=["search"];var ResetQueryStringButton=function ResetQueryStringButton(){return react__WEBPACK_IMPORTED_MODULE_4__.createElement(react_router_dom__WEBPACK_IMPORTED_MODULE_5__.qh,null,(function(_ref){var history=_ref.history,_ref$location=_ref.location,location=(_ref$location.search,function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.indexOf(n)>=0)continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r=0||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref$location,_excluded));return react__WEBPACK_IMPORTED_MODULE_4__.createElement("button",{onClick:function onClick(){return history.replace(location)}},"Reset querystring")}))};ResetQueryStringButton.__docgenInfo={description:"",methods:[],displayName:"ResetQueryStringButton"}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[6846],{"./src/client/components/RoutedInput/__stories__/RoutedInput.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Number:()=>Number,Text:()=>Text,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_storybook_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./.storybook/utils.jsx"),___WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/client/components/RoutedInput/index.jsx");const __WEBPACK_DEFAULT_EXPORT__={title:"RoutedInput"},Text=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(___WEBPACK_IMPORTED_MODULE_2__.A,{id:"text",qsParam:"text",placeholder:"text"}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_storybook_utils__WEBPACK_IMPORTED_MODULE_1__.$,null)),Number=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(___WEBPACK_IMPORTED_MODULE_2__.A,{id:"number",qsParam:"number",type:"number",placeholder:"number"}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_storybook_utils__WEBPACK_IMPORTED_MODULE_1__.$,null)),__namedExportsOrder=["Text","Number"];Text.parameters={...Text.parameters,docs:{...Text.parameters?.docs,source:{originalSource:'() =>
\n \n \n
',...Text.parameters?.docs?.source}}},Number.parameters={...Number.parameters,docs:{...Number.parameters?.docs,source:{originalSource:'() =>
\n \n \n
',...Number.parameters?.docs?.source}}}},"./.storybook/utils.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{$:()=>ResetQueryStringButton});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.string.replace.js"),__webpack_require__("./node_modules/core-js/modules/es.string.search.js");var react__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/react/index.js"),react_router_dom__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/react-router/dist/index.js"),_excluded=["search"];var ResetQueryStringButton=function ResetQueryStringButton(){return react__WEBPACK_IMPORTED_MODULE_6__.createElement(react_router_dom__WEBPACK_IMPORTED_MODULE_7__.qh,null,(function(_ref){var history=_ref.history,_ref$location=_ref.location,location=(_ref$location.search,function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Filter:()=>Filter,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_storybook_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./.storybook/utils.jsx"),_Filter__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/client/components/RoutedInputField/Filter.jsx");const __WEBPACK_DEFAULT_EXPORT__={title:"RoutedInputField",parameters:{component:_Filter__WEBPACK_IMPORTED_MODULE_2__.A}},Filter=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Filter__WEBPACK_IMPORTED_MODULE_2__.A,{label:"Example",id:"example",name:"example",qsParam:"example",placeholder:"example"}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_storybook_utils__WEBPACK_IMPORTED_MODULE_1__.$,null)),__namedExportsOrder=["Filter"];Filter.parameters={...Filter.parameters,docs:{...Filter.parameters?.docs,source:{originalSource:'() => <>\n \n \n ',...Filter.parameters?.docs?.source}}}},"./.storybook/utils.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{$:()=>ResetQueryStringButton});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.string.replace.js"),__webpack_require__("./node_modules/core-js/modules/es.string.search.js");var react__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/react/index.js"),react_router_dom__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/react-router/dist/index.js"),_excluded=["search"];var ResetQueryStringButton=function ResetQueryStringButton(){return react__WEBPACK_IMPORTED_MODULE_4__.createElement(react_router_dom__WEBPACK_IMPORTED_MODULE_5__.qh,null,(function(_ref){var history=_ref.history,_ref$location=_ref.location,location=(_ref$location.search,function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.indexOf(n)>=0)continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r=0||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref$location,_excluded));return react__WEBPACK_IMPORTED_MODULE_4__.createElement("button",{onClick:function onClick(){return history.replace(location)}},"Reset querystring")}))};ResetQueryStringButton.__docgenInfo={description:"",methods:[],displayName:"ResetQueryStringButton"}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[4428],{"./src/client/components/RoutedInputField/__stories__/RoutedInputFieldFilter.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Filter:()=>Filter,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_storybook_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./.storybook/utils.jsx"),_Filter__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/client/components/RoutedInputField/Filter.jsx");const __WEBPACK_DEFAULT_EXPORT__={title:"RoutedInputField",parameters:{component:_Filter__WEBPACK_IMPORTED_MODULE_2__.A}},Filter=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Filter__WEBPACK_IMPORTED_MODULE_2__.A,{label:"Example",id:"example",name:"example",qsParam:"example",placeholder:"example"}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_storybook_utils__WEBPACK_IMPORTED_MODULE_1__.$,null)),__namedExportsOrder=["Filter"];Filter.parameters={...Filter.parameters,docs:{...Filter.parameters?.docs,source:{originalSource:'() => <>\n \n \n ',...Filter.parameters?.docs?.source}}}},"./.storybook/utils.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{$:()=>ResetQueryStringButton});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.string.replace.js"),__webpack_require__("./node_modules/core-js/modules/es.string.search.js");var react__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/react/index.js"),react_router_dom__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/react-router/dist/index.js"),_excluded=["search"];var ResetQueryStringButton=function ResetQueryStringButton(){return react__WEBPACK_IMPORTED_MODULE_6__.createElement(react_router_dom__WEBPACK_IMPORTED_MODULE_7__.qh,null,(function(_ref){var history=_ref.history,_ref$location=_ref.location,location=(_ref$location.search,function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Filter:()=>Filter,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_storybook_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./.storybook/utils.jsx"),_Filter__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/client/components/RoutedNumericRangeField/Filter.jsx");const __WEBPACK_DEFAULT_EXPORT__={title:"RoutedNumericRangeField",parameters:{component:_Filter__WEBPACK_IMPORTED_MODULE_2__.A}},Filter=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Filter__WEBPACK_IMPORTED_MODULE_2__.A,{label:"Label",id:"example",name:"example",qsParam:"example",placeholder:"example"}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_storybook_utils__WEBPACK_IMPORTED_MODULE_1__.$,null)),__namedExportsOrder=["Filter"];Filter.parameters={...Filter.parameters,docs:{...Filter.parameters?.docs,source:{originalSource:'() =>
\n \n \n
',...Filter.parameters?.docs?.source}}}},"./.storybook/utils.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{$:()=>ResetQueryStringButton});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.string.replace.js"),__webpack_require__("./node_modules/core-js/modules/es.string.search.js");var react__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/react/index.js"),react_router_dom__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/react-router/dist/index.js"),_excluded=["search"];var ResetQueryStringButton=function ResetQueryStringButton(){return react__WEBPACK_IMPORTED_MODULE_4__.createElement(react_router_dom__WEBPACK_IMPORTED_MODULE_5__.qh,null,(function(_ref){var history=_ref.history,_ref$location=_ref.location,location=(_ref$location.search,function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.indexOf(n)>=0)continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r=0||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref$location,_excluded));return react__WEBPACK_IMPORTED_MODULE_4__.createElement("button",{onClick:function onClick(){return history.replace(location)}},"Reset querystring")}))};ResetQueryStringButton.__docgenInfo={description:"",methods:[],displayName:"ResetQueryStringButton"}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[1796],{"./src/client/components/RoutedNumericRangeField/__stories__/RoutedNumericRangeFieldFilter.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Filter:()=>Filter,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_storybook_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./.storybook/utils.jsx"),_Filter__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/client/components/RoutedNumericRangeField/Filter.jsx");const __WEBPACK_DEFAULT_EXPORT__={title:"RoutedNumericRangeField",parameters:{component:_Filter__WEBPACK_IMPORTED_MODULE_2__.A}},Filter=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Filter__WEBPACK_IMPORTED_MODULE_2__.A,{label:"Label",id:"example",name:"example",qsParam:"example",placeholder:"example"}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_storybook_utils__WEBPACK_IMPORTED_MODULE_1__.$,null)),__namedExportsOrder=["Filter"];Filter.parameters={...Filter.parameters,docs:{...Filter.parameters?.docs,source:{originalSource:'() =>
\n \n \n
',...Filter.parameters?.docs?.source}}}},"./.storybook/utils.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{$:()=>ResetQueryStringButton});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.string.replace.js"),__webpack_require__("./node_modules/core-js/modules/es.string.search.js");var react__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/react/index.js"),react_router_dom__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/react-router/dist/index.js"),_excluded=["search"];var ResetQueryStringButton=function ResetQueryStringButton(){return react__WEBPACK_IMPORTED_MODULE_6__.createElement(react_router_dom__WEBPACK_IMPORTED_MODULE_7__.qh,null,(function(_ref){var history=_ref.history,_ref$location=_ref.location,location=(_ref$location.search,function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.includes(n))continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{CustomColour:()=>CustomColour,Default:()=>Default,__namedExportsOrder:()=>__namedExportsOrder,default:()=>DismissableStatusMessage_stories});var react=__webpack_require__("./node_modules/react/index.js"),colours=__webpack_require__("./src/client/utils/colours.js"),prop_types=(__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/prop-types/index.js")),prop_types_default=__webpack_require__.n(prop_types),styled_components_browser_esm=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),StatusMessage=__webpack_require__("./src/client/components/StatusMessage/index.jsx"),styles=(__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__("./src/client/styles.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 _defineProperty(e,r,t){return(r=function _toPropertyKey(t){var i=function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}const TextLikeButton=styled_components_browser_esm.Ay.button(function _objectSpread(e){for(var r=1;rreact.createElement(Dismissable,null,"An info message"),CustomColour=()=>react.createElement(Dismissable,{colour:colours.su},"An error message");CustomColour.story={name:"Custom colour"};const __namedExportsOrder=["Default","CustomColour"];Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"() => {\n return An info message;\n}",...Default.parameters?.docs?.source}}},CustomColour.parameters={...CustomColour.parameters,docs:{...CustomColour.parameters?.docs,source:{originalSource:"() => {\n return \n An error message\n ;\n}",...CustomColour.parameters?.docs?.source}}}}}]); \ No newline at end of file diff --git a/StatusMessage-__stories__-DismissableStatusMessage-stories.48f042be.iframe.bundle.js b/StatusMessage-__stories__-DismissableStatusMessage-stories.48f042be.iframe.bundle.js deleted file mode 100644 index d66af5aeedf..00000000000 --- a/StatusMessage-__stories__-DismissableStatusMessage-stories.48f042be.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdata_hub_frontend=self.webpackChunkdata_hub_frontend||[]).push([[1468],{"./src/client/components/StatusMessage/__stories__/DismissableStatusMessage.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{CustomColour:()=>CustomColour,Default:()=>Default,__namedExportsOrder:()=>__namedExportsOrder,default:()=>DismissableStatusMessage_stories});var react=__webpack_require__("./node_modules/react/index.js"),colours=__webpack_require__("./src/client/utils/colours.js"),prop_types=(__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/prop-types/index.js")),prop_types_default=__webpack_require__.n(prop_types),styled_components_browser_esm=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),StatusMessage=__webpack_require__("./src/client/components/StatusMessage/index.jsx"),styles=(__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__("./src/client/styles.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 _defineProperty(e,r,t){return(r=function _toPropertyKey(t){var i=function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}const TextLikeButton=styled_components_browser_esm.Ay.button(function _objectSpread(e){for(var r=1;r=0)continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r=0||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded);return react.createElement(StyledStatusMessage,_extends({},props,{ref}),children,react.createElement(TextLikeButton,{tabIndex:0,onClick:onDismiss,"aria-label":"dismiss"},"✕"))}));DismissableStatusMessage.propTypes={onDismiss:prop_types_default().func};const Dismissable=DismissableStatusMessage;DismissableStatusMessage.__docgenInfo={description:"",methods:[],displayName:"DismissableStatusMessage",props:{onDismiss:{description:"",type:{name:"func"},required:!1}}};const DismissableStatusMessage_stories={title:"DismissableStatusMessage",parameters:{component:Dismissable}},Default=()=>react.createElement(Dismissable,null,"An info message"),CustomColour=()=>react.createElement(Dismissable,{colour:colours.su},"An error message");CustomColour.story={name:"Custom colour"};const __namedExportsOrder=["Default","CustomColour"];Default.parameters={...Default.parameters,docs:{...Default.parameters?.docs,source:{originalSource:"() => {\n return An info message;\n}",...Default.parameters?.docs?.source}}},CustomColour.parameters={...CustomColour.parameters,docs:{...CustomColour.parameters?.docs,source:{originalSource:"() => {\n return \n An error message\n ;\n}",...CustomColour.parameters?.docs?.source}}}}}]); \ No newline at end of file diff --git a/iframe.html b/iframe.html index 53c517a83ee..e5d93d13f45 100644 --- a/iframe.html +++ b/iframe.html @@ -504,8 +504,8 @@ window['TAGS_OPTIONS'] = {"dev-only":{"excludeFromDocsStories":true},"docs-only":{"excludeFromSidebar":true},"test-only":{"excludeFromSidebar":true,"excludeFromDocsStories":true}}; \ No newline at end of file + import './main.a2d4ae2a.iframe.bundle.js'; \ No newline at end of file diff --git a/main.71997626.iframe.bundle.js b/main.71997626.iframe.bundle.js deleted file mode 100644 index 2f11b373fc0..00000000000 --- a/main.71997626.iframe.bundle.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see main.71997626.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/internal/preview-api"),external_STORYBOOK_MODULE_CHANNELS_=__webpack_require__("storybook/internal/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: (?%21.*node_modules)(?:\\/src\\/client\\/components\\/(?%21\\.)(?=.)[^/]*?\\/__stories__\\/(?%21\\.)(?=.)[^/]*?\\.stories\\.jsx)$")("./"+pathRemainder)},async path=>{if(!/^\.[\\/](?:src\/client\/components\/(?!\.)(?=.)[^/]*?\/(?!\.)(?=.)[^/]*?\/__stories__\/(?!\.)(?=.)[^/]*?\.stories\.jsx)$/.exec(path))return;const pathRemainder=path.substring(24);return __webpack_require__("./src/client/components lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/src\\/client\\/components\\/(?%21\\.)(?=.)[^/]*?\\/(?%21\\.)(?=.)[^/]*?\\/__stories__\\/(?%21\\.)(?=.)[^/]*?\\.stories\\.jsx)$")("./"+pathRemainder)}];const channel=(0,external_STORYBOOK_MODULE_CHANNELS_.createBrowserChannel)({page:"preview"});external_STORYBOOK_MODULE_PREVIEW_API_.addons.setChannel(channel),"DEVELOPMENT"===external_STORYBOOK_MODULE_GLOBAL_.global.CONFIG_TYPE&&(window.__STORYBOOK_SERVER_CHANNEL__=channel);const preview=new external_STORYBOOK_MODULE_PREVIEW_API_.PreviewWeb((async function importFn(path){for(let i=0;iimporters[i](path),x());if(moduleExports)return moduleExports}var x}),(()=>(0,external_STORYBOOK_MODULE_PREVIEW_API_.composeConfigs)([__webpack_require__("./node_modules/@storybook/react/dist/entry-preview.mjs"),__webpack_require__("./node_modules/@storybook/react/dist/entry-preview-docs.mjs"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/docs/preview.mjs"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/actions/preview.mjs"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/backgrounds/preview.mjs"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/viewport/preview.mjs"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/measure/preview.mjs"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/outline/preview.mjs"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/highlight/preview.mjs"),__webpack_require__("./node_modules/@storybook/addon-a11y/dist/preview.mjs"),__webpack_require__("./.storybook/preview.js")])));window.__STORYBOOK_PREVIEW__=preview,window.__STORYBOOK_STORY_STORE__=preview.storyStore,window.__STORYBOOK_ADDONS_CHANNEL__=channel},"./.storybook/preview.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{decorators:()=>decorators});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var react=__webpack_require__("./node_modules/react/index.js"),govuk_react_constants_esm=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),styled_components_browser_esm=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),components=__webpack_require__("./src/client/components/index.jsx"),lodash=__webpack_require__("./node_modules/lodash/lodash.js"),lodash_default=__webpack_require__.n(lodash),redux_toolkit_modern=__webpack_require__("./node_modules/@reduxjs/toolkit/dist/redux-toolkit.modern.mjs"),react_redux=__webpack_require__("./node_modules/react-redux/dist/react-redux.mjs"),redux_saga_core_npm_proxy_esm=__webpack_require__("./node_modules/redux-saga/dist/redux-saga-core-npm-proxy.esm.js"),es6=__webpack_require__("./node_modules/redux-first-history/build/es6/index.js"),dist=__webpack_require__("./node_modules/react-router/dist/index.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 Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done}}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg)}}}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}var _marked=_regeneratorRuntime().mark(startTask),_marked2=_regeneratorRuntime().mark(manageTask),_marked3=_regeneratorRuntime().mark(subscribeToDismiss),_marked4=_regeneratorRuntime().mark(subscribeToStart);function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}var saga_marked=saga_regeneratorRuntime().mark(_callee);function saga_ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function saga_objectSpread(e){for(var r=1;r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}var HardRedirect_saga_marked=HardRedirect_saga_regeneratorRuntime().mark(redirect);function redirect(){return HardRedirect_saga_regeneratorRuntime().wrap((function redirect$(_context){for(;;)switch(_context.prev=_context.next){case 0:return _context.next=3,(0,redux_saga_effects_npm_proxy_esm.s)(actions.ntj);case 3:window.location.href=_context.sent.to,_context.next=0;break;case 6:case"end":return _context.stop()}}),HardRedirect_saga_marked)}__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js");var KEY="flash-messages",getMessages=function getMessages(){var items=window.sessionStorage.getItem(KEY);if(items)try{return JSON.parse(items)}catch(e){console.error("Cannot get messages from session storage",e)}return{}},addMessage=function addMessage(messageType,message){var messages=getMessages();messages[messageType]=messages[messageType]||[],messages[messageType].push(message);try{window.sessionStorage.setItem(KEY,JSON.stringify(messages))}catch(e){console.error("Cannot set messages to session storage",e)}},addMessageWithBody=function addMessageWithBody(type,heading,body){addMessage("".concat(type,":with-body"),{heading,body})},clearMessages=function clearMessages(){return window.sessionStorage.removeItem(KEY)},writeToLocalStorage=function writeToLocalStorage(announcementLink){window.localStorage.setItem("announcement-link",announcementLink)},readFromLocalStorage=function readFromLocalStorage(){try{return window.localStorage.getItem("announcement-link")}catch(_unused){return{}}};function sagas_typeof(o){return sagas_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},sagas_typeof(o)}function sagas_regeneratorRuntime(){sagas_regeneratorRuntime=function _regeneratorRuntime(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{define({},"")}catch(t){define=function define(t,e,r){return t[e]=r}}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,(function(){return this}));var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach((function(e){define(t,e,(function(t){return this._invoke(e,t)}))}))}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==sagas_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){invoke("next",t,i,a)}),(function(t){invoke("throw",t,i,a)})):e.resolve(h).then((function(t){u.value=t,i(u)}),(function(t){return invoke("throw",t,i,a)}))}a(c.arg)}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e((function(e,r){invoke(t,n,e,r)}))}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done}}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg)}}}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}var sagas_marked=sagas_regeneratorRuntime().mark(writeFlashMessages),sagas_marked2=sagas_regeneratorRuntime().mark(readFlashMesages),sagas_marked3=sagas_regeneratorRuntime().mark(writeAnnouncementLinkToLocalStorage),sagas_marked4=sagas_regeneratorRuntime().mark(readAnnouncementLinkFromLocalStorage);function _toConsumableArray(r){return function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r)}(r)||function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}(r)||function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0}}(r)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}var MyInvestmentProjects_sagas_marked=MyInvestmentProjects_sagas_regeneratorRuntime().mark(writeMyInvestmentsToSession),MyInvestmentProjects_sagas_marked2=MyInvestmentProjects_sagas_regeneratorRuntime().mark(readMyInvestmentsFromSession);function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.indexOf(n)>=0)continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r=0||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}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 Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done}}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg)}}}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function reducer_typeof(o){return reducer_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},reducer_typeof(o)}var reducer_excluded=["name","id"],_excluded2=["type"];function reducer_ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function reducer_objectSpread(e){for(var r=1;r=0)continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r=0||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}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(e,r,t){return(r=function NotificationAlert_reducer_toPropertyKey(t){var i=function NotificationAlert_reducer_toPrimitive(t,r){if("object"!=NotificationAlert_reducer_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=NotificationAlert_reducer_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==NotificationAlert_reducer_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var INITIAL_STATE={count:0,investment:{estimated_land_date:0,no_recent_interaction:0,outstanding_propositions:0},export:{no_recent_interaction:0,new_interaction:0},my_tasks:{due_date_approaching:0,task_assigned_to_me_from_others:0,task_amended_by_others:0,task_overdue:0,task_completed:0}};__webpack_require__("./node_modules/core-js/modules/es.string.trim.js");function Contacts_CollectionList_reducer_typeof(o){return Contacts_CollectionList_reducer_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Contacts_CollectionList_reducer_typeof(o)}function Contacts_CollectionList_reducer_ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function Contacts_CollectionList_reducer_objectSpread(e){for(var r=1;r0&&void 0!==arguments[0]?arguments[0]:Contacts_CollectionList_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;switch(type){case actions.XgG:return Contacts_CollectionList_reducer_objectSpread(Contacts_CollectionList_reducer_objectSpread(Contacts_CollectionList_reducer_objectSpread({},state),result),{},{isComplete:!0});case actions.LzF:return Contacts_CollectionList_reducer_objectSpread(Contacts_CollectionList_reducer_objectSpread({},state),{},{metadata:result});default:return state}};function Interactions_CollectionList_reducer_typeof(o){return Interactions_CollectionList_reducer_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Interactions_CollectionList_reducer_typeof(o)}function Interactions_CollectionList_reducer_ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function Interactions_CollectionList_reducer_objectSpread(e){for(var r=1;r0&&void 0!==arguments[0]?arguments[0]:Omis_CollectionList_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;switch(type){case actions.XiH:return Omis_CollectionList_reducer_objectSpread(Omis_CollectionList_reducer_objectSpread(Omis_CollectionList_reducer_objectSpread({},state),result),{},{isComplete:!0});case actions.BUu:return Omis_CollectionList_reducer_objectSpread(Omis_CollectionList_reducer_objectSpread({},state),{},{metadata:result});default:return state}};var RoutedInput=__webpack_require__("./src/client/components/RoutedInput/index.jsx"),Resource=__webpack_require__("./src/client/components/Resource/Resource.jsx"),Paginated=__webpack_require__("./src/client/components/Resource/Paginated.js"),lib=(__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.match.js"),__webpack_require__("./node_modules/core-js/modules/es.string.bold.js"),__webpack_require__("./node_modules/core-js/modules/web.url.js"),__webpack_require__("./node_modules/core-js/modules/web.url.to-json.js"),__webpack_require__("./node_modules/core-js/modules/web.url-search-params.js"),__webpack_require__("./node_modules/qs/lib/index.js")),lib_default=__webpack_require__.n(lib),prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),govuk_react_link_esm=__webpack_require__("./node_modules/@govuk-react/link/dist/govuk-react-link.esm.js"),govuk_react_label_esm=__webpack_require__("./node_modules/@govuk-react/label/dist/govuk-react-label.esm.js"),multiinstance=__webpack_require__("./src/client/utils/multiinstance.js"),Form=__webpack_require__("./src/client/components/Form/index.jsx"),LocalHeader=__webpack_require__("./src/client/components/LocalHeader/LocalHeader.jsx"),components_Resource=__webpack_require__("./src/client/components/Resource/index.jsx"),validators=__webpack_require__("./src/client/components/Form/validators.js");const State=(0,react_redux.connect)((function(state){return{state}}))((function(_ref){var state=_ref.state;return(0,_ref.children)(state)}));var useAdministrativeAreaLookup=__webpack_require__("./src/client/components/AdministrativeAreaSearch/useAdministrativeAreaLookup.js"),useAdministrativeAreaSearch=__webpack_require__("./src/client/components/AdministrativeAreaSearch/useAdministrativeAreaSearch.js");function ContactForm_typeof(o){return ContactForm_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},ContactForm_typeof(o)}var _templateObject,ContactForm_excluded=["update","contactId","companyId","primary","addressSameAsCompany","acceptsDitEmailMarketing","addressPostcode","addressTown","addressCounty","addressArea","addressCountry","dispatch","id","notes"],ContactForm_excluded2=["address1","address2","city","county","postcode","acceptsDitEmailMarketing","addressSameAsCompany","primary","email","valid_email","moreDetails"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;er.length)&&(a=r.length);for(var e=0,n=Array(a);e=0)continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r=0||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}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(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n padding-bottom: ",";\n font-weight: ",";\n"])),govuk_react_constants_esm.Es.SCALE_5,govuk_react_constants_esm.sO.bold),ContactForm=(0,multiinstance.Ay)({name:"ContactForm",actionPattern:"CONTACT_FORM__",reducer:function reducer(state,_ref7){return _ref7.type===actions.EJT?{}:state},component: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 react.createElement(components_Resource.Ar,{id:companyId},(function(company){return react.createElement(react.Fragment,null,react.createElement(LocalHeader.A,{superheading:update&&react.createElement(govuk_react_link_esm.A,{href:"/companies/".concat(company.id)},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)}]))}),react.createElement(components.gZ,null,react.createElement(State,null,(function(_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 react.createElement(components.Hb,{setWidth:common_constants.FORM_LAYOUT.THREE_QUARTERS},react.createElement(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)})},(function(_ref6){var _values$acceptsDitEma,values=_ref6.values;return react.createElement(react.Fragment,null,react.createElement(components.TZ,{label:"First name",name:"firstName",type:"text",required:"Enter a first name","data-test":"group-field-first_name"}),react.createElement(components.TZ,{label:"Last name",name:"lastName",type:"text",required:"Enter a last name","data-test":"group-field-last_name"}),react.createElement(components.TZ,{label:"Job title",name:"jobTitle",type:"text",required:"Enter a job title"}),react.createElement(components.TZ,{label:"Email address",name:"email",type:"email",required:"Enter an email address",validate:validators.Rp}),react.createElement(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"}}),react.createElement(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:react.createElement("fieldset",null,react.createElement(StyledLabel,null,"What is the contact's work address?"),react.createElement(components.fx,{name:"",apiEndpoint:"/api/postcodelookup",isCountrySelectable:!0,fontWeights:govuk_react_constants_esm.sO.regular}))}]}),react.createElement(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}]}),react.createElement(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."}]}),react.createElement(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"}))})))}))))}))}}),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 react.createElement(ContactForm,{companyId,id})};CreateContactForm.propTypes=requiredProps;var UpdateContactForm=function UpdateContactForm(_ref9){var contactId=_ref9.contactId,id=_ref9.id;return react.createElement(components_Resource.xb,{id:contactId},(function(contact){return react.createElement(ContactForm,_extends({},contact,{id,contactId:contact.id,update:!0,companyId:contact.company.id}))}))};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;rr.length)&&(a=r.length);for(var e=0,n=Array(a);e0&&void 0!==arguments[0]?arguments[0]:{},_ref3=arguments.length>1?arguments[1]:void 0,type=_ref3.type,action=reducer_objectWithoutProperties(_ref3,_excluded2);switch(type){case actions.p8B:return setTaskState(state,action,"progress");case actions.GAr:return setTaskState(state,action,"error");case actions.KQv:case actions.n_2:return remove(state,action);default:return state}}},LocalHeader_state.ID,(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,flashMessages=_ref.flashMessages,announcementLink=_ref.announcementLink;switch(type){case actions.Ijb:return LocalHeader_reducer_objectSpread(LocalHeader_reducer_objectSpread({},state),{},{flashMessages});case actions.PqX:return LocalHeader_reducer_objectSpread(LocalHeader_reducer_objectSpread({},state),{},{flashMessages:{}});case actions.F8v:return LocalHeader_reducer_objectSpread(LocalHeader_reducer_objectSpread({},state),{},{announcementLink});default:return state}})),state.ID,(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,id=_ref.id,result=_ref.result,payload=_ref.payload,query=_ref.query,orderBy=_ref.orderBy;switch(type){case actions.Twh:return CompanyLists_reducer_objectSpread(CompanyLists_reducer_objectSpread({},state),{},{lists:(0,lodash.mapValues)(result,(function(name){return{name}})),selectedId:Object.keys(result)[0]});case actions.Hfi:return CompanyLists_reducer_objectSpread(CompanyLists_reducer_objectSpread({},state),{},{lists:CompanyLists_reducer_objectSpread(CompanyLists_reducer_objectSpread({},state.lists),{},CompanyLists_reducer_defineProperty({},payload,CompanyLists_reducer_objectSpread(CompanyLists_reducer_objectSpread({},state.lists[payload]),{},{companies:result})))});case actions.UJl:return CompanyLists_reducer_objectSpread(CompanyLists_reducer_objectSpread({},state),{},{selectedId:id,query:""});case actions.WvE:return CompanyLists_reducer_objectSpread(CompanyLists_reducer_objectSpread({},state),{},{query});case actions.OCZ:return CompanyLists_reducer_objectSpread(CompanyLists_reducer_objectSpread({},state),{},{orderBy});default:return state}})),CollectionList_state.ID,(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Companies_CollectionList_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;switch(type){case actions.jUI:return Companies_CollectionList_reducer_objectSpread(Companies_CollectionList_reducer_objectSpread(Companies_CollectionList_reducer_objectSpread({},state),result),{},{isComplete:!0});case actions.$ft:return Companies_CollectionList_reducer_objectSpread(Companies_CollectionList_reducer_objectSpread({},state),{},{metadata:result});case actions.nAW:return Companies_CollectionList_reducer_objectSpread(Companies_CollectionList_reducer_objectSpread({},state),{},{selectedLeadItaOrGlobalAccountManagers:result});case actions.bWZ:return Companies_CollectionList_reducer_objectSpread(Companies_CollectionList_reducer_objectSpread({},state),{},{advisers:result});default:return state}})),"exportsHistory",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result,page=_ref.page;switch(type){case actions.MFr:var count=result.count,results=result.results;return ExportHistory_reducer_objectSpread(ExportHistory_reducer_objectSpread({},state),{},{count,results,isComplete:!0});case actions.zTo:return ExportHistory_reducer_objectSpread(ExportHistory_reducer_objectSpread({},state),{},{activePage:page});default:return state}})),client_state.ID,(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;return type===actions.Vmx?result:state})),"referralForm",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};switch((arguments.length>1?arguments[1]:void 0).type){case actions.GAr:return client_reducer_objectSpread(client_reducer_objectSpread({},state),{},{progress:!1});case actions.KZ$:return client_reducer_objectSpread(client_reducer_objectSpread({},state),{},{progress:!0,formSubmitted:!0});default:return state}})),"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(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}})),TabNav.A.reducerSpread),ReferralList.A.reducerSpread),BaseToggleSection.Ay.reducerSpread),Typeahead.A.reducerSpread),RoutedInput.A.reducerSpread),Resource.Ay.reducerSpread),Paginated.A.reducerSpread),ContactForm.reducerSpread),Form.A.reducerSpread),FieldAddAnother.A.reducerSpread),ResendExportWin.reducerSpread),{},(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]:INITIAL_STATE,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;return type===actions.Hks?function NotificationAlert_reducer_objectSpread(e){for(var r=1;r0&&void 0!==arguments[0]?arguments[0]:reducer_defaultState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;return type===actions.nzr?ContactActivity_reducer_objectSpread(ContactActivity_reducer_objectSpread(ContactActivity_reducer_objectSpread({},state),result),{},{isComplete:!0}):state})),"companyContactsList",Contacts_CollectionList_reducer),"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,"eventsList",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Events_CollectionList_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;switch(type){case actions.JPR:return Events_CollectionList_reducer_objectSpread(Events_CollectionList_reducer_objectSpread(Events_CollectionList_reducer_objectSpread({},state),result),{},{isComplete:!0});case actions.vlr:return Events_CollectionList_reducer_objectSpread(Events_CollectionList_reducer_objectSpread({},state),{},{metadata:result});case actions.wwH:return Events_CollectionList_reducer_objectSpread(Events_CollectionList_reducer_objectSpread({},state),{},{selectedOrganisers:result});default:return state}})),"eventDetails",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;return type===actions.Kk0?EventDetails_reducer_objectSpread(EventDetails_reducer_objectSpread({},state),result):state})),"eventAventriDetails",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;return type===actions.WFj?EventAventriDetails_reducer_objectSpread(EventAventriDetails_reducer_objectSpread({},state),result):state})),"eventAventriRegistrationStatusAttendees",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;return type===actions.yKw?EventAventriRegistrationStatus_reducer_objectSpread(EventAventriRegistrationStatus_reducer_objectSpread({},state),result):state})),"essInteractionDetails",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;return type===actions.F0x?ESSInteractionDetails_reducer_objectSpread(ESSInteractionDetails_reducer_objectSpread({},state),result):state})),"findAttendees",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:AttendeeSearch_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;switch(type){case actions.eFJ:return AttendeeSearch_reducer_objectSpread(AttendeeSearch_reducer_objectSpread(AttendeeSearch_reducer_objectSpread({},state),result),{},{isComplete:!0});case actions.AJt:return AttendeeSearch_reducer_objectSpread(AttendeeSearch_reducer_objectSpread({},state),{},{metadata:result});default:return state}})),"ordersList",Omis_CollectionList_reducer),"companyOrdersList",Omis_CollectionList_reducer),"reconciliationOrdersList",Omis_CollectionList_reducer),"reminders",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Reminders_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result,payload=_ref.payload;switch(type){case es6.LK:return Reminders_reducer_objectSpread({},Reminders_reducer_initialState);case actions.oO0:case actions.vMs:case actions.ev2:case actions.Amb:case actions.F0b:case actions.mDK:case actions.UCk:case actions.eod:case actions.YRg:case actions.dxX:return Reminders_reducer_objectSpread(Reminders_reducer_objectSpread({},state),{},{reminders:result});case actions.spP:case actions.SJf:case actions.lZg:case actions.vdS:case actions.szG:case actions.a_f:case actions.U8l:case actions.g_U:case actions.NT6:return Reminders_reducer_objectSpread(Reminders_reducer_objectSpread({},state),{},{reminders:Reminders_reducer_objectSpread(Reminders_reducer_objectSpread({},state.reminders),{},{results:state.reminders.results.map((function(item){return Reminders_reducer_objectSpread(Reminders_reducer_objectSpread({},item),{},{deleted:item.deleted||item.id===payload.id})})),count:state.reminders.count-1,nextPending:!0})});case actions.zp:case actions.RHl:case actions.sT5:case actions.qLf:case actions.zT4:case actions.jRk:case actions.b8r:case actions.fW0:case actions.Mdm:return Reminders_reducer_objectSpread(Reminders_reducer_objectSpread({},state),{},{reminders:Reminders_reducer_objectSpread(Reminders_reducer_objectSpread({},state.reminders),{},{results:[].concat(reducer_toConsumableArray(state.reminders.results),reducer_toConsumableArray(result)),nextPending:!1})});default:return state}})),reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(_objectSpread3,"companyDetails",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:CompanyDetails_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;return type===actions.SKY?CompanyDetails_reducer_objectSpread(CompanyDetails_reducer_objectSpread({},state),{},{company:result}):state})),"exportDetails",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ExportDetails_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;return type===actions.zdr?ExportDetails_reducer_objectSpread(ExportDetails_reducer_objectSpread({},state),{},{exportItem:result}):state})),ExportList_state.ID,(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ExportList_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;return type===actions._kX?ExportList_reducer_objectSpread(ExportList_reducer_objectSpread({},state),result):state})),CompanyLocalHeader_state.ID,(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:CompanyLocalHeader_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;return type===actions.PDO?CompanyLocalHeader_reducer_objectSpread(CompanyLocalHeader_reducer_objectSpread({},state),result):state})),"companyHierarchy",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:CompanyHierarchy_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;return type===actions.zsc?CompanyHierarchy_reducer_objectSpread(CompanyHierarchy_reducer_objectSpread({},state),{},{familyTree:result}):state})),"linkGlobalHQ",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:LinkGlobalHQ_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;switch(type){case actions.jUI:return LinkGlobalHQ_reducer_objectSpread(LinkGlobalHQ_reducer_objectSpread(LinkGlobalHQ_reducer_objectSpread({},state),result),{},{isComplete:!0});case actions.$ft:return LinkGlobalHQ_reducer_objectSpread(LinkGlobalHQ_reducer_objectSpread({},state),{},{metadata:result});default:return state}})),"linkSubsidiary",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:LinkSubsidiary_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;switch(type){case actions.jUI:return LinkSubsidiary_reducer_objectSpread(LinkSubsidiary_reducer_objectSpread(LinkSubsidiary_reducer_objectSpread({},state),result),{},{isComplete:!0});case actions.$ft:return LinkSubsidiary_reducer_objectSpread(LinkSubsidiary_reducer_objectSpread({},state),{},{metadata:result});default:return state}})),"objective",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:AccountManagement_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;return type===actions.whB?AccountManagement_reducer_objectSpread(AccountManagement_reducer_objectSpread({},state),{},{objectiveItem:result}):state})),"nonFdiProjectsList",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:EditAssociatedProject_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;switch(type){case actions.Fxn:return EditAssociatedProject_reducer_objectSpread(EditAssociatedProject_reducer_objectSpread({},state),{},{count:result.count,results:result.results,isComplete:!0});case actions.ATq:return EditAssociatedProject_reducer_objectSpread(EditAssociatedProject_reducer_objectSpread({},state),{},{metadata:result});default:return state}})),"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}})),reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(reducers_defineProperty(_objectSpread3,"oneListDetails",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:CoreTeam_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;return type===actions.PMA?CoreTeam_reducer_objectSpread(CoreTeam_reducer_objectSpread({},state),result):state})),"taskDetails",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:TaskDetails_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;switch(type){case actions.h7f:return TaskDetails_reducer_objectSpread(TaskDetails_reducer_objectSpread({},state),{},{copyTask:!1,task:(0,utils.OM)(result)});case actions.TeI:return TaskDetails_reducer_objectSpread(TaskDetails_reducer_objectSpread({},state),{},{copyTask:!0,task:(0,utils.OM)(result)});default:return state}})),"selectOmisCompany",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:CompanySelect_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;switch(type){case actions.jUI:return CompanySelect_reducer_objectSpread(CompanySelect_reducer_objectSpread(CompanySelect_reducer_objectSpread({},state),result),{},{isComplete:!0});case actions.$ft:return CompanySelect_reducer_objectSpread(CompanySelect_reducer_objectSpread({},state),{},{metadata:result});default:return state}})),my_tasks_state.ID,(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:my_tasks_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;return type===actions.SJe?my_tasks_reducer_objectSpread(my_tasks_reducer_objectSpread({},state),{},{myTasks:result}):state})),"interactionDetails",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:InteractionDetails_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;return type===actions.s7n?InteractionDetails_reducer_objectSpread(InteractionDetails_reducer_objectSpread({},state),{},{interaction:result}):state})),"propositionComplete",Projects_reducer),"previewQuote",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;return type===actions.Pw7?Omis_reducer_objectSpread(Omis_reducer_objectSpread({},state),{},{quotePreview:result}):state})),"companyActivitiesListNoAS",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:CompanyActivity_reducer_initialState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;switch(type){case actions.pJE:return CompanyActivity_reducer_objectSpread(CompanyActivity_reducer_objectSpread(CompanyActivity_reducer_objectSpread({},state),result),{},{isComplete:!0});case actions.a3Z:return CompanyActivity_reducer_objectSpread(CompanyActivity_reducer_objectSpread({},state),{},{selectedAdvisers:result});case actions.mQv:return CompanyActivity_reducer_objectSpread(CompanyActivity_reducer_objectSpread({},state),{},{selectedCompanies:result});case actions.heH:return CompanyActivity_reducer_objectSpread(CompanyActivity_reducer_objectSpread({},state),{},{metadata:result});case actions.fZX:return CompanyActivity_reducer_objectSpread(CompanyActivity_reducer_objectSpread({},state),{},{selectedTeams:result});default:return state}})),"overviewRecentActivity",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:defaultState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;return type===actions.F__?recentReducer_objectSpread(recentReducer_objectSpread(recentReducer_objectSpread({},state),result),{},{isComplete:!0}):state})),"overviewUpcomingActivity",(function(){var state=arguments.length>0&&void 0!==arguments[0]?arguments[0]:upcomingReducer_defaultState,_ref=arguments.length>1?arguments[1]:void 0,type=_ref.type,result=_ref.result;return type===actions.IpB?upcomingReducer_objectSpread(upcomingReducer_objectSpread(upcomingReducer_objectSpread({},state),result),{},{isComplete:!0}):state}))));function createProvider_typeof(o){return createProvider_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},createProvider_typeof(o)}function createProvider_ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function createProvider_objectSpread(e){for(var r=1;r0&&void 0!==arguments[0]?arguments[0]:"";return new Promise((function(resolve,reject){return"reject"===query?setTimeout(reject,1e3,"Something went horribly wrong"):setTimeout(resolve,1e3,tasks_OPTIONS.filter((function(x){return x.toLowerCase().includes(query.toLowerCase())})).slice(0,10).map((function(x){return{value:lodash_default().snakeCase(x),label:x}})))}))}};function tasks_typeof(o){return tasks_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},tasks_typeof(o)}const Typeahead_tasks=function tasks_defineProperty(e,r,t){return(r=function tasks_toPropertyKey(t){var i=function tasks_toPrimitive(t,r){if("object"!=tasks_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=tasks_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==tasks_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}({},__webpack_require__("./src/client/components/Typeahead/state.js").S,(function getTypeaheadOptions(_ref){var loadOptions=_ref.loadOptions,options=_ref.options,autocomplete=_ref.autocomplete;return loadOptions?(0,lodash.throttle)(loadOptions,500)(autocomplete):new Promise((function(resolve){return resolve(options)}))})),country_namespaceObject=JSON.parse('[{"id":"87756b9a-5d95-e211-a939-e4115bead28a","name":"Afghanistan","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"AF"},{"id":"88756b9a-5d95-e211-a939-e4115bead28a","name":"Aland Islands","disabled_on":"2017-12-15T17:12:09Z","overseas_region":null,"iso_alpha2_code":""},{"id":"945f66a0-5d95-e211-a939-e4115bead28a","name":"Albania","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"AL"},{"id":"955f66a0-5d95-e211-a939-e4115bead28a","name":"Algeria","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"DZ"},{"id":"965f66a0-5d95-e211-a939-e4115bead28a","name":"American Samoa","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"975f66a0-5d95-e211-a939-e4115bead28a","name":"Andorra","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"AD"},{"id":"985f66a0-5d95-e211-a939-e4115bead28a","name":"Angola","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"AO"},{"id":"995f66a0-5d95-e211-a939-e4115bead28a","name":"Anguilla","disabled_on":null,"overseas_region":null,"iso_alpha2_code":"AI"},{"id":"9a5f66a0-5d95-e211-a939-e4115bead28a","name":"Antarctica","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"9b5f66a0-5d95-e211-a939-e4115bead28a","name":"Antigua and Barbuda","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"AG"},{"id":"9c5f66a0-5d95-e211-a939-e4115bead28a","name":"Argentina","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"AR"},{"id":"9d5f66a0-5d95-e211-a939-e4115bead28a","name":"Armenia","disabled_on":null,"overseas_region":{"name":"Eastern Europe and Central Asia","id":"cb2864aa-d19f-44b6-946c-d850a3fd7e3a"},"iso_alpha2_code":"AM"},{"id":"9e5f66a0-5d95-e211-a939-e4115bead28a","name":"Aruba","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"9f5f66a0-5d95-e211-a939-e4115bead28a","name":"Australia","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"AU"},{"id":"a05f66a0-5d95-e211-a939-e4115bead28a","name":"Austria","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"AT"},{"id":"a15f66a0-5d95-e211-a939-e4115bead28a","name":"Azerbaijan","disabled_on":null,"overseas_region":{"name":"Eastern Europe and Central Asia","id":"cb2864aa-d19f-44b6-946c-d850a3fd7e3a"},"iso_alpha2_code":"AZ"},{"id":"a25f66a0-5d95-e211-a939-e4115bead28a","name":"Bahamas","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"BS"},{"id":"a35f66a0-5d95-e211-a939-e4115bead28a","name":"Bahrain","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"BH"},{"id":"a45f66a0-5d95-e211-a939-e4115bead28a","name":"Bangladesh","disabled_on":null,"overseas_region":{"name":"South Asia","id":"12ed13cf-4b2c-4a46-b2f9-068e397d8c84"},"iso_alpha2_code":"BD"},{"id":"a55f66a0-5d95-e211-a939-e4115bead28a","name":"Barbados","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"BB"},{"id":"a65f66a0-5d95-e211-a939-e4115bead28a","name":"Belarus","disabled_on":null,"overseas_region":{"name":"Eastern Europe and Central Asia","id":"cb2864aa-d19f-44b6-946c-d850a3fd7e3a"},"iso_alpha2_code":"BY"},{"id":"a75f66a0-5d95-e211-a939-e4115bead28a","name":"Belgium","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"BE"},{"id":"a85f66a0-5d95-e211-a939-e4115bead28a","name":"Belize","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"BZ"},{"id":"a95f66a0-5d95-e211-a939-e4115bead28a","name":"Benin","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"BJ"},{"id":"aa5f66a0-5d95-e211-a939-e4115bead28a","name":"Bermuda","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"BM"},{"id":"ab5f66a0-5d95-e211-a939-e4115bead28a","name":"Bhutan","disabled_on":null,"overseas_region":{"name":"South Asia","id":"12ed13cf-4b2c-4a46-b2f9-068e397d8c84"},"iso_alpha2_code":"BT"},{"id":"98c8d93d-5d06-e311-a78e-e4115bead28a","name":"BLANK","disabled_on":"2017-12-28T14:27:49Z","overseas_region":null,"iso_alpha2_code":""},{"id":"ac5f66a0-5d95-e211-a939-e4115bead28a","name":"Bolivia","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"BO"},{"id":"ad5f66a0-5d95-e211-a939-e4115bead28a","name":"Bosnia and Herzegovina","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"BA"},{"id":"ae5f66a0-5d95-e211-a939-e4115bead28a","name":"Botswana","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"BW"},{"id":"af5f66a0-5d95-e211-a939-e4115bead28a","name":"Bouvet Island","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"b05f66a0-5d95-e211-a939-e4115bead28a","name":"Brazil","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"BR"},{"id":"b15f66a0-5d95-e211-a939-e4115bead28a","name":"British Indian Ocean Territory","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"b25f66a0-5d95-e211-a939-e4115bead28a","name":"British Virgin Islands","disabled_on":null,"overseas_region":null,"iso_alpha2_code":"VG"},{"id":"56af72a6-5d95-e211-a939-e4115bead28a","name":"Brunei","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"BN"},{"id":"57af72a6-5d95-e211-a939-e4115bead28a","name":"Bulgaria","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"BG"},{"id":"58af72a6-5d95-e211-a939-e4115bead28a","name":"Burkina","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"BF"},{"id":"59af72a6-5d95-e211-a939-e4115bead28a","name":"Burma","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"MM"},{"id":"5aaf72a6-5d95-e211-a939-e4115bead28a","name":"Burundi","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"BI"},{"id":"5baf72a6-5d95-e211-a939-e4115bead28a","name":"Cambodia","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"KH"},{"id":"5caf72a6-5d95-e211-a939-e4115bead28a","name":"Cameroon","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"CM"},{"id":"5daf72a6-5d95-e211-a939-e4115bead28a","name":"Canada","disabled_on":null,"overseas_region":{"name":"North America","id":"fdfbbc8d-0e8a-479a-b10f-4979d582ff87"},"iso_alpha2_code":"CA"},{"id":"5eaf72a6-5d95-e211-a939-e4115bead28a","name":"Cape Verde","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"CV"},{"id":"5faf72a6-5d95-e211-a939-e4115bead28a","name":"Cayman Islands","disabled_on":null,"overseas_region":null,"iso_alpha2_code":"KY"},{"id":"60af72a6-5d95-e211-a939-e4115bead28a","name":"Central African Republic","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"CF"},{"id":"61af72a6-5d95-e211-a939-e4115bead28a","name":"Chad","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"TD"},{"id":"62af72a6-5d95-e211-a939-e4115bead28a","name":"Chile","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"CL"},{"id":"63af72a6-5d95-e211-a939-e4115bead28a","name":"China","disabled_on":null,"overseas_region":{"name":"China","id":"b97749fb-2273-4447-a239-62dd8fb29e01"},"iso_alpha2_code":"CN"},{"id":"64af72a6-5d95-e211-a939-e4115bead28a","name":"Christmas Island","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"65af72a6-5d95-e211-a939-e4115bead28a","name":"Cocos (Keeling) Islands","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"66af72a6-5d95-e211-a939-e4115bead28a","name":"Colombia","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"CO"},{"id":"67af72a6-5d95-e211-a939-e4115bead28a","name":"Comoros","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"KM"},{"id":"69af72a6-5d95-e211-a939-e4115bead28a","name":"Congo","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"CG"},{"id":"68af72a6-5d95-e211-a939-e4115bead28a","name":"Congo (Democratic Republic)","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"CD"},{"id":"6aaf72a6-5d95-e211-a939-e4115bead28a","name":"Cook Islands","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"6baf72a6-5d95-e211-a939-e4115bead28a","name":"Costa Rica","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"CR"},{"id":"6caf72a6-5d95-e211-a939-e4115bead28a","name":"Croatia","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"HR"},{"id":"6daf72a6-5d95-e211-a939-e4115bead28a","name":"Cuba","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"CU"},{"id":"6eaf72a6-5d95-e211-a939-e4115bead28a","name":"Cyprus","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"CY"},{"id":"6faf72a6-5d95-e211-a939-e4115bead28a","name":"Czech Republic","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"CZ"},{"id":"70af72a6-5d95-e211-a939-e4115bead28a","name":"Denmark","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"DK"},{"id":"71af72a6-5d95-e211-a939-e4115bead28a","name":"Djibouti","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"DJ"},{"id":"72af72a6-5d95-e211-a939-e4115bead28a","name":"Dominica","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"DM"},{"id":"73af72a6-5d95-e211-a939-e4115bead28a","name":"Dominican Republic","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"DO"},{"id":"74af72a6-5d95-e211-a939-e4115bead28a","name":"East Timor","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"TL"},{"id":"75af72a6-5d95-e211-a939-e4115bead28a","name":"Ecuador","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"EC"},{"id":"76af72a6-5d95-e211-a939-e4115bead28a","name":"Egypt","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"EG"},{"id":"d2f682ac-5d95-e211-a939-e4115bead28a","name":"El Salvador","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"SV"},{"id":"d3f682ac-5d95-e211-a939-e4115bead28a","name":"Equatorial Guinea","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"GQ"},{"id":"d4f682ac-5d95-e211-a939-e4115bead28a","name":"Eritrea","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"ER"},{"id":"d5f682ac-5d95-e211-a939-e4115bead28a","name":"Estonia","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"EE"},{"id":"d6f682ac-5d95-e211-a939-e4115bead28a","name":"Ethiopia","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"ET"},{"id":"d7f682ac-5d95-e211-a939-e4115bead28a","name":"Falkland Islands","disabled_on":null,"overseas_region":null,"iso_alpha2_code":"FK"},{"id":"d8f682ac-5d95-e211-a939-e4115bead28a","name":"Faroe Islands","disabled_on":null,"overseas_region":null,"iso_alpha2_code":"FO"},{"id":"d9f682ac-5d95-e211-a939-e4115bead28a","name":"Fiji","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"FJ"},{"id":"daf682ac-5d95-e211-a939-e4115bead28a","name":"Finland","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"FI"},{"id":"82756b9a-5d95-e211-a939-e4115bead28a","name":"France","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"FR"},{"id":"dbf682ac-5d95-e211-a939-e4115bead28a","name":"French Guiana","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"dcf682ac-5d95-e211-a939-e4115bead28a","name":"French Polynesia","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"ddf682ac-5d95-e211-a939-e4115bead28a","name":"French Southern Territories","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"def682ac-5d95-e211-a939-e4115bead28a","name":"Gabon","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"GA"},{"id":"dff682ac-5d95-e211-a939-e4115bead28a","name":"Gambia","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"GM"},{"id":"e0f682ac-5d95-e211-a939-e4115bead28a","name":"Georgia","disabled_on":null,"overseas_region":{"name":"Eastern Europe and Central Asia","id":"cb2864aa-d19f-44b6-946c-d850a3fd7e3a"},"iso_alpha2_code":"GE"},{"id":"83756b9a-5d95-e211-a939-e4115bead28a","name":"Germany","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"DE"},{"id":"e1f682ac-5d95-e211-a939-e4115bead28a","name":"Ghana","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"GH"},{"id":"e2f682ac-5d95-e211-a939-e4115bead28a","name":"Gibraltar","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"GI"},{"id":"e3f682ac-5d95-e211-a939-e4115bead28a","name":"Greece","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"GR"},{"id":"e4f682ac-5d95-e211-a939-e4115bead28a","name":"Greenland","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"GL"},{"id":"e5f682ac-5d95-e211-a939-e4115bead28a","name":"Grenada","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"GD"},{"id":"e6f682ac-5d95-e211-a939-e4115bead28a","name":"Guadeloupe","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"e7f682ac-5d95-e211-a939-e4115bead28a","name":"Guam","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"e8f682ac-5d95-e211-a939-e4115bead28a","name":"Guatemala","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"GT"},{"id":"77756b9a-5d95-e211-a939-e4115bead28a","name":"Guernsey","disabled_on":null,"overseas_region":null,"iso_alpha2_code":"GG"},{"id":"e9f682ac-5d95-e211-a939-e4115bead28a","name":"Guinea","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"GN"},{"id":"eaf682ac-5d95-e211-a939-e4115bead28a","name":"Guinea-Bissau","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"GW"},{"id":"ebf682ac-5d95-e211-a939-e4115bead28a","name":"Guyana","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"GY"},{"id":"ecf682ac-5d95-e211-a939-e4115bead28a","name":"Haiti","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"HT"},{"id":"edf682ac-5d95-e211-a939-e4115bead28a","name":"Heard Island and McDonald Island","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"eff682ac-5d95-e211-a939-e4115bead28a","name":"Honduras","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":""},{"id":"f0f682ac-5d95-e211-a939-e4115bead28a","name":"Hong Kong (SAR)","disabled_on":null,"overseas_region":{"name":"China","id":"b97749fb-2273-4447-a239-62dd8fb29e01"},"iso_alpha2_code":"HK"},{"id":"6d6a9ab2-5d95-e211-a939-e4115bead28a","name":"Hungary","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"HU"},{"id":"6e6a9ab2-5d95-e211-a939-e4115bead28a","name":"Iceland","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"IS"},{"id":"6f6a9ab2-5d95-e211-a939-e4115bead28a","name":"India","disabled_on":null,"overseas_region":{"name":"South Asia","id":"12ed13cf-4b2c-4a46-b2f9-068e397d8c84"},"iso_alpha2_code":"IN"},{"id":"706a9ab2-5d95-e211-a939-e4115bead28a","name":"Indonesia","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"ID"},{"id":"716a9ab2-5d95-e211-a939-e4115bead28a","name":"Iran","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"IR"},{"id":"726a9ab2-5d95-e211-a939-e4115bead28a","name":"Iraq","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"IQ"},{"id":"736a9ab2-5d95-e211-a939-e4115bead28a","name":"Ireland","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"IE"},{"id":"79756b9a-5d95-e211-a939-e4115bead28a","name":"Isle of Man","disabled_on":null,"overseas_region":null,"iso_alpha2_code":"IM"},{"id":"746a9ab2-5d95-e211-a939-e4115bead28a","name":"Israel","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"IL"},{"id":"84756b9a-5d95-e211-a939-e4115bead28a","name":"Italy","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"IT"},{"id":"756a9ab2-5d95-e211-a939-e4115bead28a","name":"Ivory Coast","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"CI"},{"id":"766a9ab2-5d95-e211-a939-e4115bead28a","name":"Jamaica","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"JM"},{"id":"85756b9a-5d95-e211-a939-e4115bead28a","name":"Japan","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"JP"},{"id":"78756b9a-5d95-e211-a939-e4115bead28a","name":"Jersey","disabled_on":null,"overseas_region":null,"iso_alpha2_code":"JE"},{"id":"776a9ab2-5d95-e211-a939-e4115bead28a","name":"Jordan","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"JO"},{"id":"786a9ab2-5d95-e211-a939-e4115bead28a","name":"Kazakhstan","disabled_on":null,"overseas_region":{"name":"Eastern Europe and Central Asia","id":"cb2864aa-d19f-44b6-946c-d850a3fd7e3a"},"iso_alpha2_code":"KZ"},{"id":"796a9ab2-5d95-e211-a939-e4115bead28a","name":"Kenya","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"KE"},{"id":"7a6a9ab2-5d95-e211-a939-e4115bead28a","name":"Kiribati","disabled_on":"2018-11-05T17:00:00Z","overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"KI"},{"id":"7b6a9ab2-5d95-e211-a939-e4115bead28a","name":"Korea (North)","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"KP"},{"id":"7c6a9ab2-5d95-e211-a939-e4115bead28a","name":"Korea (South)","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"KR"},{"id":"7a756b9a-5d95-e211-a939-e4115bead28a","name":"Kosovo","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"XK"},{"id":"7d6a9ab2-5d95-e211-a939-e4115bead28a","name":"Kuwait","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"KW"},{"id":"7e6a9ab2-5d95-e211-a939-e4115bead28a","name":"Kyrgyzstan","disabled_on":null,"overseas_region":{"name":"Eastern Europe and Central Asia","id":"cb2864aa-d19f-44b6-946c-d850a3fd7e3a"},"iso_alpha2_code":"KG"},{"id":"7f6a9ab2-5d95-e211-a939-e4115bead28a","name":"Laos","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"LA"},{"id":"806a9ab2-5d95-e211-a939-e4115bead28a","name":"Latvia","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"LV"},{"id":"816a9ab2-5d95-e211-a939-e4115bead28a","name":"Lebanon","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"LB"},{"id":"826a9ab2-5d95-e211-a939-e4115bead28a","name":"Lesotho","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"LS"},{"id":"836a9ab2-5d95-e211-a939-e4115bead28a","name":"Liberia","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"LR"},{"id":"846a9ab2-5d95-e211-a939-e4115bead28a","name":"Libya","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"LY"},{"id":"856a9ab2-5d95-e211-a939-e4115bead28a","name":"Liechtenstein","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"LI"},{"id":"866a9ab2-5d95-e211-a939-e4115bead28a","name":"Lithuania","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"LT"},{"id":"876a9ab2-5d95-e211-a939-e4115bead28a","name":"Luxembourg","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"LU"},{"id":"886a9ab2-5d95-e211-a939-e4115bead28a","name":"Macao (SAR)","disabled_on":null,"overseas_region":{"name":"China","id":"b97749fb-2273-4447-a239-62dd8fb29e01"},"iso_alpha2_code":"MO"},{"id":"896a9ab2-5d95-e211-a939-e4115bead28a","name":"Macedonia","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"MK"},{"id":"0350bdb8-5d95-e211-a939-e4115bead28a","name":"Madagascar","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"MG"},{"id":"0450bdb8-5d95-e211-a939-e4115bead28a","name":"Malawi","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"MW"},{"id":"0550bdb8-5d95-e211-a939-e4115bead28a","name":"Malaysia","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"MY"},{"id":"0650bdb8-5d95-e211-a939-e4115bead28a","name":"Maldives","disabled_on":null,"overseas_region":{"name":"South Asia","id":"12ed13cf-4b2c-4a46-b2f9-068e397d8c84"},"iso_alpha2_code":"MV"},{"id":"0750bdb8-5d95-e211-a939-e4115bead28a","name":"Mali","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"ML"},{"id":"0850bdb8-5d95-e211-a939-e4115bead28a","name":"Malta","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"MT"},{"id":"0950bdb8-5d95-e211-a939-e4115bead28a","name":"Marshall Islands","disabled_on":"2018-11-05T17:00:00Z","overseas_region":{"name":"North America","id":"fdfbbc8d-0e8a-479a-b10f-4979d582ff87"},"iso_alpha2_code":"MH"},{"id":"0a50bdb8-5d95-e211-a939-e4115bead28a","name":"Martinique","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"0b50bdb8-5d95-e211-a939-e4115bead28a","name":"Mauritania","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"MR"},{"id":"0c50bdb8-5d95-e211-a939-e4115bead28a","name":"Mauritius","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"MU"},{"id":"0d50bdb8-5d95-e211-a939-e4115bead28a","name":"Mayotte","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"0e50bdb8-5d95-e211-a939-e4115bead28a","name":"Mexico","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"MX"},{"id":"0f50bdb8-5d95-e211-a939-e4115bead28a","name":"Micronesia","disabled_on":"2018-11-05T17:00:00Z","overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"FM"},{"id":"1050bdb8-5d95-e211-a939-e4115bead28a","name":"Moldova","disabled_on":null,"overseas_region":{"name":"Eastern Europe and Central Asia","id":"cb2864aa-d19f-44b6-946c-d850a3fd7e3a"},"iso_alpha2_code":"MD"},{"id":"1150bdb8-5d95-e211-a939-e4115bead28a","name":"Monaco","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"MC"},{"id":"1250bdb8-5d95-e211-a939-e4115bead28a","name":"Mongolia","disabled_on":null,"overseas_region":{"name":"Eastern Europe and Central Asia","id":"cb2864aa-d19f-44b6-946c-d850a3fd7e3a"},"iso_alpha2_code":"MN"},{"id":"7f756b9a-5d95-e211-a939-e4115bead28a","name":"Montenegro","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"ME"},{"id":"1350bdb8-5d95-e211-a939-e4115bead28a","name":"Montserrat","disabled_on":null,"overseas_region":null,"iso_alpha2_code":"MS"},{"id":"1450bdb8-5d95-e211-a939-e4115bead28a","name":"Morocco","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"MA"},{"id":"1550bdb8-5d95-e211-a939-e4115bead28a","name":"Mozambique","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"MZ"},{"id":"1650bdb8-5d95-e211-a939-e4115bead28a","name":"Namibia","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"NA"},{"id":"1750bdb8-5d95-e211-a939-e4115bead28a","name":"Nauru","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"NR"},{"id":"1850bdb8-5d95-e211-a939-e4115bead28a","name":"Nepal","disabled_on":null,"overseas_region":{"name":"South Asia","id":"12ed13cf-4b2c-4a46-b2f9-068e397d8c84"},"iso_alpha2_code":"NP"},{"id":"1950bdb8-5d95-e211-a939-e4115bead28a","name":"Netherlands","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"NL"},{"id":"1a50bdb8-5d95-e211-a939-e4115bead28a","name":"Netherlands Antilles","disabled_on":"2018-11-05T17:00:00Z","overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":""},{"id":"1b50bdb8-5d95-e211-a939-e4115bead28a","name":"New Caledonia","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"1c50bdb8-5d95-e211-a939-e4115bead28a","name":"New Zealand","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"NZ"},{"id":"1d50bdb8-5d95-e211-a939-e4115bead28a","name":"Nicaragua","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"NI"},{"id":"4461b8be-5d95-e211-a939-e4115bead28a","name":"Niger","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"NE"},{"id":"4561b8be-5d95-e211-a939-e4115bead28a","name":"Nigeria","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"NG"},{"id":"4661b8be-5d95-e211-a939-e4115bead28a","name":"Niue","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"4761b8be-5d95-e211-a939-e4115bead28a","name":"Norfolk Island","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"4861b8be-5d95-e211-a939-e4115bead28a","name":"Northern Mariana Islands","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"4961b8be-5d95-e211-a939-e4115bead28a","name":"Norway","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"NO"},{"id":"35afd8d0-5d95-e211-a939-e4115bead28a","name":"Occupied Palestinian Territories","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"PS"},{"id":"4a61b8be-5d95-e211-a939-e4115bead28a","name":"Oman","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"OM"},{"id":"4b61b8be-5d95-e211-a939-e4115bead28a","name":"Pakistan","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"PK"},{"id":"4c61b8be-5d95-e211-a939-e4115bead28a","name":"Palau","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"PW"},{"id":"4d61b8be-5d95-e211-a939-e4115bead28a","name":"Panama","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"PA"},{"id":"4e61b8be-5d95-e211-a939-e4115bead28a","name":"Papua New Guinea","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"PG"},{"id":"4f61b8be-5d95-e211-a939-e4115bead28a","name":"Paraguay","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"PY"},{"id":"5061b8be-5d95-e211-a939-e4115bead28a","name":"Peru","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"PE"},{"id":"5161b8be-5d95-e211-a939-e4115bead28a","name":"Philippines","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"PH"},{"id":"5261b8be-5d95-e211-a939-e4115bead28a","name":"Pitcairn, Henderson, Ducie and Oeno Islands","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"5361b8be-5d95-e211-a939-e4115bead28a","name":"Poland","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"PL"},{"id":"5461b8be-5d95-e211-a939-e4115bead28a","name":"Portugal","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"PT"},{"id":"5561b8be-5d95-e211-a939-e4115bead28a","name":"Puerto Rico","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"PR"},{"id":"5661b8be-5d95-e211-a939-e4115bead28a","name":"Qatar","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"QA"},{"id":"5761b8be-5d95-e211-a939-e4115bead28a","name":"Reunion","disabled_on":"2018-11-05T17:00:00Z","overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"RE"},{"id":"5861b8be-5d95-e211-a939-e4115bead28a","name":"Romania","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"RO"},{"id":"5961b8be-5d95-e211-a939-e4115bead28a","name":"Russia","disabled_on":null,"overseas_region":{"name":"Eastern Europe and Central Asia","id":"cb2864aa-d19f-44b6-946c-d850a3fd7e3a"},"iso_alpha2_code":"RU"},{"id":"5a61b8be-5d95-e211-a939-e4115bead28a","name":"Rwanda","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"RW"},{"id":"5b61b8be-5d95-e211-a939-e4115bead28a","name":"Samoa","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"WS"},{"id":"5c61b8be-5d95-e211-a939-e4115bead28a","name":"San Marino","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"SM"},{"id":"5d61b8be-5d95-e211-a939-e4115bead28a","name":"Sao Tome and Principe","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"ST"},{"id":"1a0be5c4-5d95-e211-a939-e4115bead28a","name":"Saudi Arabia","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"SA"},{"id":"1b0be5c4-5d95-e211-a939-e4115bead28a","name":"Senegal","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"SN"},{"id":"1c0be5c4-5d95-e211-a939-e4115bead28a","name":"Serbia","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"RS"},{"id":"1d0be5c4-5d95-e211-a939-e4115bead28a","name":"Seychelles","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"SC"},{"id":"1e0be5c4-5d95-e211-a939-e4115bead28a","name":"Sierra Leone","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"SL"},{"id":"1f0be5c4-5d95-e211-a939-e4115bead28a","name":"Singapore","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"SG"},{"id":"200be5c4-5d95-e211-a939-e4115bead28a","name":"Slovakia","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"SK"},{"id":"210be5c4-5d95-e211-a939-e4115bead28a","name":"Slovenia","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"SI"},{"id":"220be5c4-5d95-e211-a939-e4115bead28a","name":"Solomon Islands","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"SB"},{"id":"230be5c4-5d95-e211-a939-e4115bead28a","name":"Somalia","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"SO"},{"id":"240be5c4-5d95-e211-a939-e4115bead28a","name":"South Africa","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"ZA"},{"id":"250be5c4-5d95-e211-a939-e4115bead28a","name":"South Georgia and South Sandwich Islands","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"86756b9a-5d95-e211-a939-e4115bead28a","name":"Spain","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"ES"},{"id":"260be5c4-5d95-e211-a939-e4115bead28a","name":"Sri Lanka","disabled_on":null,"overseas_region":{"name":"South Asia","id":"12ed13cf-4b2c-4a46-b2f9-068e397d8c84"},"iso_alpha2_code":"LK"},{"id":"7b756b9a-5d95-e211-a939-e4115bead28a","name":"St Barthelemy","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"270be5c4-5d95-e211-a939-e4115bead28a","name":"St Helena","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"280be5c4-5d95-e211-a939-e4115bead28a","name":"St Kitts and Nevis","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"KN"},{"id":"290be5c4-5d95-e211-a939-e4115bead28a","name":"St Lucia","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"LC"},{"id":"7c756b9a-5d95-e211-a939-e4115bead28a","name":"St Martin","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"MF"},{"id":"2a0be5c4-5d95-e211-a939-e4115bead28a","name":"St Pierre and Miquelon","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"2b0be5c4-5d95-e211-a939-e4115bead28a","name":"St Vincent","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"VC"},{"id":"2c0be5c4-5d95-e211-a939-e4115bead28a","name":"Sudan","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"SD"},{"id":"7e756b9a-5d95-e211-a939-e4115bead28a","name":"Sudan, South","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"SS"},{"id":"2d0be5c4-5d95-e211-a939-e4115bead28a","name":"Surinam","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"SR"},{"id":"2e0be5c4-5d95-e211-a939-e4115bead28a","name":"Svalbard and Jan Mayen Islands","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"2f0be5c4-5d95-e211-a939-e4115bead28a","name":"Swaziland","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"SZ"},{"id":"300be5c4-5d95-e211-a939-e4115bead28a","name":"Sweden","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"SE"},{"id":"310be5c4-5d95-e211-a939-e4115bead28a","name":"Switzerland","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"CH"},{"id":"a46ee1ca-5d95-e211-a939-e4115bead28a","name":"Syria","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"SY"},{"id":"a56ee1ca-5d95-e211-a939-e4115bead28a","name":"Taiwan","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"TW"},{"id":"a66ee1ca-5d95-e211-a939-e4115bead28a","name":"Tajikistan","disabled_on":null,"overseas_region":{"name":"Eastern Europe and Central Asia","id":"cb2864aa-d19f-44b6-946c-d850a3fd7e3a"},"iso_alpha2_code":"TJ"},{"id":"a76ee1ca-5d95-e211-a939-e4115bead28a","name":"Tanzania","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"TZ"},{"id":"76756b9a-5d95-e211-a939-e4115bead28a","name":"TEST","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"a86ee1ca-5d95-e211-a939-e4115bead28a","name":"Thailand","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"TH"},{"id":"a96ee1ca-5d95-e211-a939-e4115bead28a","name":"Togo","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"TG"},{"id":"aa6ee1ca-5d95-e211-a939-e4115bead28a","name":"Tokelau","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"ab6ee1ca-5d95-e211-a939-e4115bead28a","name":"Tonga","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"TO"},{"id":"ac6ee1ca-5d95-e211-a939-e4115bead28a","name":"Trinidad and Tobago","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"TT"},{"id":"ad6ee1ca-5d95-e211-a939-e4115bead28a","name":"Tunisia","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"TN"},{"id":"ae6ee1ca-5d95-e211-a939-e4115bead28a","name":"Turkey","disabled_on":null,"overseas_region":{"name":"Eastern Europe and Central Asia","id":"cb2864aa-d19f-44b6-946c-d850a3fd7e3a"},"iso_alpha2_code":"TR"},{"id":"af6ee1ca-5d95-e211-a939-e4115bead28a","name":"Turkmenistan","disabled_on":null,"overseas_region":{"name":"Eastern Europe and Central Asia","id":"cb2864aa-d19f-44b6-946c-d850a3fd7e3a"},"iso_alpha2_code":"TM"},{"id":"b06ee1ca-5d95-e211-a939-e4115bead28a","name":"Turks and Caicos Islands","disabled_on":null,"overseas_region":null,"iso_alpha2_code":"TC"},{"id":"b16ee1ca-5d95-e211-a939-e4115bead28a","name":"Tuvalu","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"TV"},{"id":"b26ee1ca-5d95-e211-a939-e4115bead28a","name":"Uganda","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"UG"},{"id":"b36ee1ca-5d95-e211-a939-e4115bead28a","name":"Ukraine","disabled_on":null,"overseas_region":{"name":"Eastern Europe and Central Asia","id":"cb2864aa-d19f-44b6-946c-d850a3fd7e3a"},"iso_alpha2_code":"UA"},{"id":"b46ee1ca-5d95-e211-a939-e4115bead28a","name":"United Arab Emirates","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"AE"},{"id":"80756b9a-5d95-e211-a939-e4115bead28a","name":"United Kingdom","disabled_on":null,"overseas_region":null,"iso_alpha2_code":"GB"},{"id":"81756b9a-5d95-e211-a939-e4115bead28a","name":"United States","disabled_on":null,"overseas_region":{"name":"North America","id":"fdfbbc8d-0e8a-479a-b10f-4979d582ff87"},"iso_alpha2_code":"US"},{"id":"b56ee1ca-5d95-e211-a939-e4115bead28a","name":"United States Minor Outlying Islands","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"b66ee1ca-5d95-e211-a939-e4115bead28a","name":"Uruguay","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"UY"},{"id":"b76ee1ca-5d95-e211-a939-e4115bead28a","name":"Uzbekistan","disabled_on":null,"overseas_region":{"name":"Eastern Europe and Central Asia","id":"cb2864aa-d19f-44b6-946c-d850a3fd7e3a"},"iso_alpha2_code":"UZ"},{"id":"b86ee1ca-5d95-e211-a939-e4115bead28a","name":"Vanuatu","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"VU"},{"id":"eef682ac-5d95-e211-a939-e4115bead28a","name":"Vatican City","disabled_on":null,"overseas_region":{"name":"Europe","id":"3e6809d6-89f6-4590-8458-1d0dab73ad1a"},"iso_alpha2_code":"VA"},{"id":"b96ee1ca-5d95-e211-a939-e4115bead28a","name":"Venezuela","disabled_on":null,"overseas_region":{"name":"Latin America","id":"5616ccf5-ab4a-4c2c-9624-13c69be3c46b"},"iso_alpha2_code":"VE"},{"id":"ba6ee1ca-5d95-e211-a939-e4115bead28a","name":"Vietnam","disabled_on":null,"overseas_region":{"name":"Asia-Pacific","id":"04a7cff0-03dd-4677-aa3c-12dd8426f0d7"},"iso_alpha2_code":"VN"},{"id":"bb6ee1ca-5d95-e211-a939-e4115bead28a","name":"Virgin Islands (US)","disabled_on":null,"overseas_region":{"name":"North America","id":"fdfbbc8d-0e8a-479a-b10f-4979d582ff87"},"iso_alpha2_code":"VI"},{"id":"34afd8d0-5d95-e211-a939-e4115bead28a","name":"Wallis and Futuna","disabled_on":null,"overseas_region":null,"iso_alpha2_code":""},{"id":"36afd8d0-5d95-e211-a939-e4115bead28a","name":"Western Sahara","disabled_on":"2018-11-05T17:00:00Z","overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":""},{"id":"37afd8d0-5d95-e211-a939-e4115bead28a","name":"Yemen","disabled_on":null,"overseas_region":{"name":"Middle East","id":"c4679b44-079e-4394-8bf7-bb0881a5031d"},"iso_alpha2_code":"YE"},{"id":"38afd8d0-5d95-e211-a939-e4115bead28a","name":"Zambia","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"ZM"},{"id":"39afd8d0-5d95-e211-a939-e4115bead28a","name":"Zimbabwe","disabled_on":null,"overseas_region":{"name":"Africa","id":"8d4c4f31-06ce-4320-8e2f-1c13559e125f"},"iso_alpha2_code":"ZW"}]'),business_potential_namespaceObject=JSON.parse('[{"id":"0e6f1d69-e9c3-4460-a74b-3881930fe3e9","name":"The company is an exporter with High Export Potential","disabled_on":null},{"id":"e4d74957-60a4-4eab-a17b-d4c7b792ad25","name":"The company is a Medium Sized Business","disabled_on":null},{"id":"97f5e000-37a6-4452-b2be-25ccc94e5bd3","name":"The company is not an exporter with High Export Potential or a Medium Sized Business","disabled_on":null}]');var CONTACT={id:"some-random-contact-id",companyId:"008ba003-b528-4e79-b209-49fcfcceb371",companyName:"Little Britain",firstName:"Andy",lastName:"Pipkin",jobTitle:"Unemployed",primary:!1,telephoneCountrycode:"123",telephoneNumber:"456789",email:"andy.pipkin@littlebritain.co.uk",acceptsDitEmailMarketing:!0,addressSameAsCompany:!0,address1:"Foo",address2:"Bar",addressTown:"Town",addressCounty:"County",addressPostcode:null,addressCountry:"87756b9a-5d95-e211-a939-e4115bead28a",notes:"Notes"};const _stories_tasks={"Resource example":function 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:common_constants.UK_REGIONS.LONDON},exportExperienceCategory:null,address:{line1:"3 Priory Court",line2:"Kingshill Road",town:"Dursley",county:"Gloucestershire",postcode:"GL11 4DH",country:{name:"United Kingdom",id:"80756b9a-5d95-e211-a939-e4115bead28a"}},registeredAddress:{line1:"3 Priory Court",line2:"Kingshill Road",town:"Dursley",county:"Gloucestershire",postcode:"GL11 4DH",country:{name:"United Kingdom",id:"80756b9a-5d95-e211-a939-e4115bead28a"}}})}),2e3)}))}},Form_stories_tasks={"Load initial values":function 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;r1&&void 0!==arguments[1]?arguments[1]:(0,esm_history.zR)(),_createReduxHistoryCo=(0,es6.a1)({history}),createReduxHistory=_createReduxHistoryCo.createReduxHistory,routerMiddleware=_createReduxHistoryCo.routerMiddleware,routerReducer=_createReduxHistoryCo.routerReducer,sagaMiddleware=(0,redux_saga_core_npm_proxy_esm.Ay)(),store=(0,redux_toolkit_modern.U1)({devTools:!1,middleware:function middleware(){return[sagaMiddleware,routerMiddleware]},preloadedState,reducer:createProvider_objectSpread(createProvider_objectSpread(createProvider_objectSpread({},lodash_default().mapValues(preloadedState,(function(){return function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:null}}))),reducers),{},{router:routerReducer})});sagaMiddleware.run(function(tasks){return root_saga_regeneratorRuntime().mark((function rootSaga(){return root_saga_regeneratorRuntime().wrap((function rootSaga$(_context){for(;;)switch(_context.prev=_context.next){case 0:return _context.next=2,(0,redux_saga_effects_npm_proxy_esm.Zy)(saga(tasks));case 2:return _context.next=4,(0,redux_saga_effects_npm_proxy_esm.Zy)(_callee);case 4:return _context.next=6,(0,redux_saga_effects_npm_proxy_esm.Zy)(redirect);case 6:return _context.next=8,(0,redux_saga_effects_npm_proxy_esm.Zy)(readFlashMesages);case 8:return _context.next=10,(0,redux_saga_effects_npm_proxy_esm.Zy)(writeFlashMessages);case 10:return _context.next=12,(0,redux_saga_effects_npm_proxy_esm.Zy)(writeAnnouncementLinkToLocalStorage);case 12:return _context.next=14,(0,redux_saga_effects_npm_proxy_esm.Zy)(readAnnouncementLinkFromLocalStorage);case 14:return _context.next=16,(0,redux_saga_effects_npm_proxy_esm.Zy)(readMyInvestmentsFromSession);case 16:return _context.next=18,(0,redux_saga_effects_npm_proxy_esm.Zy)(writeMyInvestmentsToSession);case 18:case"end":return _context.stop()}}),rootSaga)}))}(tasks));var reduxHistory=createReduxHistory(store);return function(_ref2){var children=_ref2.children;return react.createElement(react_redux.Provider,{store},react.createElement(ConnectedReactRouter,{navigator:reduxHistory},children))}}(preview_objectSpread(preview_objectSpread(preview_objectSpread(preview_objectSpread({},tasks),_stories_tasks),Typeahead_tasks),Form_stories_tasks)),decorators=[function(Story){return react.createElement(react.Fragment,null,react.createElement(GlobalStyle,null),react.createElement(Provider,null,react.createElement(Story,null)))}]},"./src/apps/companies/apps/edit-company/client/constants.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict"},"./src/apps/companies/apps/referrals/details/client/state.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{ID:()=>ID});var ID="referralDetails"},"./src/apps/companies/constants.js":(module,__unused_webpack_exports,__webpack_require__)=>{__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.object.values.js");var QUERY_FIELDS_MAP={leadIta:"one_list_group_global_account_manager",archived:"archived",name:"name",sectorDescends:"sector_descends",subSectorDescends:"sub_sector_descends",country:"country",ukRegion:"uk_region",headquarterType:"headquarter_type",exportingTo:"export_to_countries",interestedIn:"future_interest_countries",lastInteractionDate:"interaction_between",ukPostcode:"uk_postcode",usState:"us_state",canadianProvince:"canadian_province",area:"area"},GLOBAL_NAV_ITEM={path:"/companies",headerKey:"datahub-companies",permissions:["company.view_company"],key:"datahub-crm",order:1},LOCAL_NAV=[{path:"overview",label:"Overview",permissions:["company.view_contact"]},{path:"activity",label:"Activity",search:"",permissions:["interaction.view_all_interaction"]},{path:"business-details",label:"Business details"},{path:"contacts",label:"Contacts",search:"?archived%5B0%5D=false&sortby=modified_on%3Adesc&page=1",permissions:["company.view_contact"],ariaDescription:"Company contacts"},{path:"account-management",label:"Account management",ariaDescription:"Account management"},{path:"investments",label:"Investment",search:"/projects?page=1&sortby=created_on%3Adesc",permissions:["investment.view_all_investmentproject","investment.view_associated_investmentproject"],ariaDescription:"Company investments"},{path:"exports",label:"Export",permissions:["company.view_companyexportcountry"]},{path:"orders",label:"Orders",permissions:["order.view_order"],ariaDescription:"Company orders"}],APP_PERMISSIONS=(0,__webpack_require__("./node_modules/lodash/lodash.js").concat)(LOCAL_NAV,GLOBAL_NAV_ITEM),QUERY_FIELDS=Object.values(QUERY_FIELDS_MAP);module.exports={GLOBAL_NAV_ITEM,LOCAL_NAV,APP_PERMISSIONS,QUERY_FIELDS,QUERY_FIELDS_MAP,NONE_TEXT:"None",NOT_SET_TEXT:"Not set",NOT_AVAILABLE_TEXT:"Not available"}},"./src/apps/transformers.js":(module,__unused_webpack_exports,__webpack_require__)=>{__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js");var _require=__webpack_require__("./node_modules/lodash/lodash.js"),filter=_require.filter,upperFirst=_require.upperFirst,_require2=__webpack_require__("./src/client/utils/date.js"),format=_require2.format,isDateValid=_require2.isDateValid,_require3=__webpack_require__("./src/common/constants.js"),OPTION_NO=_require3.OPTION_NO,OPTION_YES=_require3.OPTION_YES,groupExportCountries=__webpack_require__("./src/lib/group-export-countries.js");function transformObjectToOption(_ref){return{value:_ref.id,label:_ref.name}}var transformOptionToValue=function transformOptionToValue(option){return option&&option.value?option.value:null};module.exports={transformObjectToOption,transformExportCountriesToGroupStatus:function transformExportCountriesToGroupStatus(countries){return groupExportCountries(countries)},transformContactToOption:function transformContactToOption(_ref2){var id=_ref2.id,first_name=_ref2.first_name,last_name=_ref2.last_name,job_title=_ref2.job_title;return{value:id,label:upperFirst(filter(["".concat(first_name," ").concat(last_name),job_title]).join(", "))}},transformCountryToOptionWithIsoCode:function transformCountryToOptionWithIsoCode(_ref3){return{key:_ref3.id,label:_ref3.name,value:_ref3.iso_alpha2_code}},transformDateObjectToDateString:function transformDateObjectToDateString(key){if(!key)throw Error("date object key is required to transform date");return function transformDateObjectToStringWithKey(){var props=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},dateString=["year","month","day"].map((function(x){return props["".concat(key,"_").concat(x)]})).join("-");return"--"===dateString?null:dateString}},transformDateStringToDateObject:function transformDateStringToDateObject(dateString){var isValidDate=dateString&&isDateValid(dateString);return{year:isValidDate?format(dateString,"yyyy"):"",month:isValidDate?format(dateString,"MM"):"",day:isValidDate?format(dateString,"dd"):""}},transformOptionToValue,transformArrayOfOptionsToValues:function transformArrayOfOptionsToValues(options){return options&&options.length?options.map(transformOptionToValue):[]},transformToYesNo:function transformToYesNo(value){return value?OPTION_YES:OPTION_NO},transformToID:function transformToID(value){return value?Array.isArray(value)?value.map((function(optionFromArrayOfOptions){return optionFromArrayOfOptions.id})):value.id:value},transformObjectToTypeahead:function transformObjectToTypeahead(value){return value?Array.isArray(value)?value.map(transformObjectToOption):transformObjectToOption(value):value}}},"./src/client/actions.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{$ah:()=>MY_INVESTMENTS__ADD_TO_STATE,$ft:()=>COMPANIES__METADATA_LOADED,$rh:()=>FLASH_MESSAGE__WRITE_TO_SESSION,A3K:()=>INVESTMENT_OPPORTUNITY__REQUIREMENTS_METADATA_LOADED,AIi:()=>INTERACTIONS_SELECTED_ADVISERS,AJt:()=>EVENTS__ATTENDEE_METADATA_LOADED,ANm:()=>EXPORT_WINS__LOADED,ATq:()=>INVESTMENTS__SET_PROJECTS_METADATA,Amb:()=>REMINDERS__EXPORTS_NO_RECENT_INTERACTION_REMINDERS_LOADED,BEj:()=>INVESTMENT__COMPANY_SEARCH_TERM,BRO:()=>INVESTMENTS__PROJECTS_SELECTED_ADVISERS,BUu:()=>ORDERS__METADATA_LOADED,CuW:()=>MY_INVESTMENTS__SAVE_TO_SESSION,EGH:()=>TASK__START,EJT:()=>CONTACT_FORM__SUBMIT,EPX:()=>INVESTMENT_OPPORTUNITY_DETAILS__LOADED,Edz:()=>LATEST_ANNOUNCEMENT__WRITE_TO_LOCALSTORAGE,F0b:()=>REMINDERS__EXPORTS_NEW_INTERACTION_REMINDERS_LOADED,F0x:()=>INTERACTION__ESS_DETAILS_LOADED,F8v:()=>LATEST_ANNOUNCEMENT__UPDATE_STATE,FN9:()=>OVERVIEW__EXPORT_WINS_SUMMARY,F__:()=>COMPANIES__OVERVIEW_RECENT_ACTIVITY_LOADED,Fd_:()=>MY_INVESTMENTS__PAGINATION_CLICK,Fxn:()=>INVESTMENTS__PROJECTS_LOADED,G2D:()=>FORM__GO_TO_STEP,GAr:()=>TASK__ERROR,GD3:()=>MY_INVESTMENTS__GET_FROM_SESSION,GqW:()=>TYPEAHEAD__INPUT,Hfi:()=>COMPANY_LISTS__COMPANIES_LOADED,Hks:()=>REMINDER_SUMMARY__LOADED,HmC:()=>TOGGLE_SECTION__TOGGLE,I0G:()=>FORM__STEP_DEREGISTER,IDk:()=>FORM__LOADED,ILj:()=>INVESTMENTS__OPPORTUNITIES_LOADED,Ijb:()=>FLASH_MESSAGE__ADD_TO_STATE,Im2:()=>REFERRAL_LIST__LOADED,IpB:()=>COMPANIES__OVERVIEW_UPCOMING_ACTIVITY_LOADED,J1h:()=>INVESTMENT_OPPORTUNITY__UPDATED,J4U:()=>FORM__FIELD_REGISTER,J6l:()=>DATA_HUB_FEED__FETCHED,JPR:()=>EVENTS__LOADED,JlV:()=>MY_INVESTMENTS__LAND_DATE_CHANGE,KQv:()=>TASK__CANCEL,KZ$:()=>SEND_REFERRAL_FORM__SUBMIT,Kk0:()=>EVENTS__DETAILS_LOADED,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,R2h:()=>EXPORT_WIN_RESENT__SUCCESS,R5F:()=>ROUTED_INPUT__CHANGE,RHl:()=>REMINDERS__ESTIMATED_LAND_DATE_REMINDER_GOT_NEXT,Rm3:()=>INVESTMENT_OPPORTUNITY__EDIT_REQUIREMENTS,RnU:()=>TASK__DISMISS_ERROR,SJe:()=>MY_TASKS_LOADED,SJf:()=>REMINDERS__ESTIMATED_LAND_DATE_REMINDER_DELETED,SKY:()=>COMPANY_LOADED,STT:()=>TYPEAHEAD__OPTIONS_LOADED,T$O:()=>MY_TASKS_CHECK_COMPLETE,TBR:()=>INVESTMENT_OPPORTUNITY__EDIT_DETAILS,TdV:()=>TYPEAHEAD__BLUR,TeI:()=>COPY_TASK_DETAILS_LOADED,Twh:()=>COMPANY_LISTS__LISTS_LOADED,U8l:()=>REMINDERS__TASK_AMENDED_BY_OTHERS_REMINDERS_DELETED,UCk:()=>REMINDERS__TASK_ASSIGNED_TO_ME_FROM_OTHERS_REMINDERS_LOADED,UJl:()=>COMPANY_LISTS__SELECT,V11:()=>INVESTMENT__COMPANY_INVESTMENT_COUNT,V8_:()=>INVESTMENTS__OPPORTUNITIES_SELECT_PAGE,VAC:()=>INVESTMENT__SEARCH_COMPANY_LIST_LOADED,VRR:()=>COMPANIES__GLOBAL_ULTIMATE_LOADED,Vdv:()=>PAGINATED_RESOURCE__GO_TO_PAGE,Vmx:()=>REFERRAL_DETAILS,WCI:()=>TYPEAHEAD__MENU_CLOSE,WFj:()=>EVENTS__AVENTRI_DETAILS_LOADED,Wd_:()=>FORM__FIELD_DEREGISTER,WnY:()=>TYPEAHEAD__OPTION_REMOVE,WvE:()=>COMPANY_LISTS__FILTER,XYJ:()=>INVESTMENTS_PROFILES__FILTER_OPTIONS_LOADED,XgG:()=>CONTACTS__LOADED,XiH:()=>ORDERS__LOADED,XpH:()=>FORM__STEP_REGISTER,Xpy:()=>INVESTMENT_OPPORTUNITY__REQUIREMENTS_CHANGE,YJr:()=>INTERACTIONS_SELECTED_COMPANIES,YRg:()=>REMINDERS__TASK_OVERDUE_REMINDERS_LOADED,ZYf:()=>FORM__RESOLVED,_jk:()=>ROUTED_INPUT__RESET,_kX:()=>EXPORT__PIPELINE_LIST_LOADED,a3Z:()=>COMPANY_ACTIVITIES_SELECTED_ADVISERS,aQO:()=>TYPEAHEAD__MENU_OPEN,aRA:()=>MY_INVESTMENTS__CHECK_COMPLETE,a_f:()=>REMINDERS__TASK_ASSIGNED_TO_ME_FROM_OTHERS_REMINDERS_DELETED,aud:()=>TYPEAHEAD__OPTIONS_CLEAR,b2l:()=>TYPEAHEAD__INITIALISE,b8r:()=>REMINDERS__TASK_AMENDED_BY_OTHERS_REMINDERS_GOT_NEXT,bVo:()=>ANALYTICS__PUSH,bVz:()=>INVESTMENT__PROJECT_LOADED,bWZ:()=>COMPANIES__SELECTED_ADVISERS,cEs:()=>OVERVIEW__COMPANY_INVESTMENT_WON_COUNT,dxX:()=>REMINDERS__TASK_COMPLETED_REMINDERS_LOADED,eEr:()=>FORM__ERRORED,eFJ:()=>EVENTS__SEARCH_ATTENDEE_LIST_LOADED,eod:()=>REMINDERS__TASK_AMENDED_BY_OTHERS_REMINDERS_LOADED,ev2:()=>REMINDERS__NO_RECENT_INTERACTION_REMINDERS_LOADED,eyX:()=>TAB_NAV__SELECT,fUJ:()=>PROPOSITION_COMPLETE,fW0:()=>REMINDERS__TASK_OVERDUE_REMINDERS_GOT_NEXT,fZX:()=>COMPANY_ACTIVITIES_SELECTED_TEAMS,gEw:()=>OUTSTANDING_PROPOSITIONS__LOADED,g_U:()=>REMINDERS__TASK_OVERDUE_REMINDERS_DELETED,gaL:()=>FORM__BACK,h7f:()=>TASK_DETAILS_LOADED,heH:()=>COMPANY_ACTIVITIES__METADATA_LOADED,i5T:()=>FORM__FIELD_SET_VALUE,ilQ:()=>REFERRAL_LIST__FILTER_CHANGE,j2I:()=>INVESTMENTS__PROFILES_LOADED,j2f:()=>INVESTMENT_OPPORTUNITY__CANCEL_EDIT,jRk:()=>REMINDERS__TASK_ASSIGNED_TO_ME_FROM_OTHERS_REMINDERS_GOT_NEXT,jUI:()=>COMPANIES__LOADED,krh:()=>LATEST_ANNOUNCEMENT__READ_FROM_LOCALSTORAGE,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,n7E:()=>FORM__FIELDS__RESET,nAW:()=>COMPANIES__SELECTED_LEAD_ITA_OR_GLOBAL_ACCOUNT_MANAGER,n_2:()=>TASK__CLEAR,nrO:()=>INTERACTIONS__METADATA_LOADED,ntj:()=>HARD_REDIRECT,nzr:()=>CONTACTS__ACTIVITIES_LOADED,oO0:()=>REMINDERS__DUE_DATE_APPROACHING_REMINDERS_LOADED,oWe:()=>FORM__FORWARD,p8B:()=>TASK__PROGRESS,pJE:()=>COMPANY_ACTIVITIES__LOADED,qLf:()=>REMINDERS__EXPORTS_NEW_INTERACTION_REMINDERS_GOT_NEXT,rNT:()=>MY_INVESTMENTS__SHOW_DETAILS_CHANGE,rTD:()=>DNB__CHECK_PENDING_REQUEST,rpz:()=>INTERACTIONS_SELECTED_TEAMS,s7n:()=>INTERACTION__LOADED,sT5:()=>REMINDERS__NO_RECENT_INTERACTION_REMINDER_GOT_NEXT,spP:()=>REMINDERS__DUE_DATE_APPROACHING_REMINDERS_DELETED,szG:()=>REMINDERS__EXPORTS_NO_RECENT_INTERACTION_REMINDERS_DELETED,tgm:()=>TYPEAHEAD__SET_ACTIVE_OPTION,ttR:()=>MY_INVESTMENTS__STATUS_CHANGE,vMs:()=>REMINDERS__ESTIMATED_LAND_DATE_REMINDERS_LOADED,vdS:()=>REMINDERS__EXPORTS_NEW_INTERACTION_REMINDERS_DELETED,vl8:()=>FLASH_MESSAGE__GET_FROM_SESSION,vlr:()=>EVENTS__METADATA_LOADED,whB:()=>OBJECTIVE_LOADED,wwH:()=>EVENTS__SELECTED_ORGANISER,xOm:()=>FIELD_ADD_ANOTHER__REMOVE,y3g:()=>TYPEAHEAD__OPTION_TOGGLE,yKw:()=>EVENTS__AVENTRI_REGISTRATION_STATUS_ATTENDEES_LOADED,yMX:()=>FIELD_ADD_ANOTHER__ADD,yQE:()=>MY_INVESTMENTS__LIST_LOADED,zT4:()=>REMINDERS__EXPORTS_NO_RECENT_INTERACTION_REMINDERS_GOT_NEXT,zTo:()=>EXPORTS_HISTORY__SELECT_PAGE,z_g:()=>ROUTED_INPUT__SELECT,zdr:()=>EXPORT_LOADED,zp:()=>REMINDERS__DUE_DATE_APPROACHING_REMINDERS_GOT_NEXT,zsc:()=>DNB_FAMILY_TREE_LOADED,zuV:()=>FORM__VALIDATE});var INTERACTIONS__LOADED="INTERACTIONS__LOADED",INTERACTIONS__METADATA_LOADED="INTERACTIONS__METADATA_LOADED",INTERACTIONS_SELECTED_ADVISERS="INTERACTIONS_SELECTED_ADVISERS",INTERACTIONS_SELECTED_COMPANIES="INTERACTIONS_SELECTED_COMPANIES",INTERACTIONS_SELECTED_TEAMS="INTERACTIONS_SELECTED_TEAMS",COMPANIES__LOADED="COMPANIES__LOADED",COMPANIES__METADATA_LOADED="COMPANIES__METADATA_LOADED",COMPANIES__SELECTED_LEAD_ITA_OR_GLOBAL_ACCOUNT_MANAGER="COMPANIES__SELECTED_LEAD_ITA_OR_GLOBAL_ACCOUNT_MANAGER",COMPANIES__SELECTED_ADVISERS="COMPANIES__SELECTED_ADVISERS",COMPANY_LISTS__LISTS_LOADED="COMPANY_LISTS__LISTS_LOADED",COMPANY_LISTS__SELECT="COMPANY_LISTS__SELECT",COMPANY_LISTS__COMPANIES_LOADED="COMPANY_LISTS__COMPANIES_LOADED",COMPANY_LISTS__FILTER="COMPANY_LISTS__FILTER",COMPANY_LISTS__ORDER="COMPANY_LISTS__ORDER",CONTACTS__LOADED="CONTACTS__LOADED",CONTACTS__METADATA_LOADED="CONTACTS__METADATA_LOADED",CONTACTS__ACTIVITIES_LOADED="CONTACTS__ACTIVITIES_LOADED",ORDERS__LOADED="ORDERS__LOADED",ORDERS__METADATA_LOADED="ORDERS__METADATA_LOADED",EVENTS__LOADED="EVENTS__LOADED",EVENTS__METADATA_LOADED="EVENTS__METADATA_LOADED",EVENTS__SELECTED_ORGANISER="EVENTS__SELECTED_ORGANISER",EVENTS__DETAILS_LOADED="EVENTS__DETAILS_LOADED",EVENTS__AVENTRI_DETAILS_LOADED="EVENTS__AVENTRI_DETAILS_LOADED",EVENTS__AVENTRI_REGISTRATION_STATUS_ATTENDEES_LOADED="EVENTS__AVENTRI_REGISTRATION_STATUS_ATTENDEES_LOADED",EVENTS__SEARCH_ATTENDEE_LIST_LOADED="EVENTS__SEARCH_ATTENDEE_LIST_LOADED",EVENTS__ATTENDEE_METADATA_LOADED="EVENTS__ATTENDEE_METADATA_LOADED",INTERACTION__ESS_DETAILS_LOADED="INTERACTION__ESS_DETAILS_LOADED",REMINDERS__ESTIMATED_LAND_DATE_REMINDERS_LOADED="REMINDERS__ESTIMATED_LAND_DATE_REMINDERS_LOADED",REMINDERS__ESTIMATED_LAND_DATE_REMINDER_DELETED="REMINDERS__ESTIMATED_LAND_DATE_REMINDER_DELETED",REMINDERS__ESTIMATED_LAND_DATE_REMINDER_GOT_NEXT="REMINDERS__ESTIMATED_LAND_DATE_REMINDER_GOT_NEXT",REMINDERS__NO_RECENT_INTERACTION_REMINDERS_LOADED="REMINDERS__NO_RECENT_INTERACTION_REMINDERS_LOADED",REMINDERS__NO_RECENT_INTERACTION_REMINDER_DELETED="REMINDERS__NO_RECENT_INTERACTION_REMINDER_DELETED",REMINDERS__NO_RECENT_INTERACTION_REMINDER_GOT_NEXT="REMINDERS__NO_RECENT_INTERACTION_REMINDER_GOT_NEXT",REMINDERS__OUTSTANDING_PROPOSITIONS_LOADED="REMINDERS__OUTSTANDING_PROPOSITIONS_LOADED",REMINDERS__EXPORTS_NO_RECENT_INTERACTION_REMINDERS_LOADED="REMINDERS__EXPORTS_NO_RECENT_INTERACTION_REMINDERS_LOADED",REMINDERS__EXPORTS_NO_RECENT_INTERACTION_REMINDERS_DELETED="REMINDERS__EXPORTS_NO_RECENT_INTERACTION_REMINDERS_DELETED",REMINDERS__EXPORTS_NO_RECENT_INTERACTION_REMINDERS_GOT_NEXT="REMINDERS__EXPORTS_NO_RECENT_INTERACTION_REMINDERS_GOT_NEXT",REMINDERS__EXPORTS_NEW_INTERACTION_REMINDERS_LOADED="REMINDERS__EXPORTS_NEW_INTERACTION_REMINDERS_LOADED",REMINDERS__EXPORTS_NEW_INTERACTION_REMINDERS_DELETED="REMINDERS__EXPORTS_NEW_INTERACTION_REMINDERS_DELETED",REMINDERS__EXPORTS_NEW_INTERACTION_REMINDERS_GOT_NEXT="REMINDERS__EXPORTS_NEW_INTERACTION_REMINDERS_GOT_NEXT",REMINDERS__DUE_DATE_APPROACHING_REMINDERS_LOADED="REMINDERS__DUE_DATE_APPROACHING_REMINDERS_LOADED",REMINDERS__DUE_DATE_APPROACHING_REMINDERS_GOT_NEXT="REMINDERS__DUE_DATE_APPROACHING_REMINDERS_GOT_NEXT",REMINDERS__DUE_DATE_APPROACHING_REMINDERS_DELETED="REMINDERS__DUE_DATE_APPROACHING_REMINDERS_DELETED",REMINDERS__TASK_ASSIGNED_TO_ME_FROM_OTHERS_REMINDERS_LOADED="REMINDERS__TASK_ASSIGNED_TO_ME_FROM_OTHERS_REMINDERS_LOADED",REMINDERS__TASK_ASSIGNED_TO_ME_FROM_OTHERS_REMINDERS_GOT_NEXT="REMINDERS__TASK_ASSIGNED_TO_ME_FROM_OTHERS_REMINDERS_GOT_NEXT",REMINDERS__TASK_ASSIGNED_TO_ME_FROM_OTHERS_REMINDERS_DELETED="REMINDERS__TASK_ASSIGNED_TO_ME_FROM_OTHERS_REMINDERS_DELETED",REMINDERS__TASK_AMENDED_BY_OTHERS_REMINDERS_LOADED="REMINDERS__TASK_AMENDED_BY_OTHERS_REMINDERS_LOADED",REMINDERS__TASK_AMENDED_BY_OTHERS_REMINDERS_GOT_NEXT="REMINDERS__TASK_AMENDED_BY_OTHERS_REMINDERS_GOT_NEXT",REMINDERS__TASK_AMENDED_BY_OTHERS_REMINDERS_DELETED="REMINDERS__TASK_AMENDED_BY_OTHERS_REMINDERS_DELETED",REMINDERS__TASK_OVERDUE_REMINDERS_LOADED="REMINDERS__TASK_OVERDUE_REMINDERS_LOADED",REMINDERS__TASK_OVERDUE_REMINDERS_GOT_NEXT="REMINDERS__TASK_OVERDUE_REMINDERS_GOT_NEXT",REMINDERS__TASK_OVERDUE_REMINDERS_DELETED="REMINDERS__TASK_OVERDUE_REMINDERS_DELETED",REMINDERS__TASK_COMPLETED_REMINDERS_LOADED="REMINDERS__TASK_COMPLETED_REMINDERS_LOADED",REMINDERS__TASK_COMPLETED_REMINDERS_GOT_NEXT="REMINDERS__TASK_COMPLETED_REMINDERS_GOT_NEXT",REMINDERS__TASK_COMPLETED_REMINDERS_DELETED="REMINDERS__TASK_COMPLETED_REMINDERS_DELETED",REFERRAL_DETAILS="REFERRAL_DETAILS",TASK__START="TASK__START",TASK__PROGRESS="TASK__PROGRESS",TASK__CANCEL="TASK__CANCEL",TASK__ERROR="TASK__ERROR",TASK__DISMISS_ERROR="TASK__DISMISS_ERROR",TASK__CLEAR="TASK__CLEAR",EXPORTS_HISTORY__LOADED="EXPORTS_HISTORY__LOADED",EXPORTS_HISTORY__SELECT_PAGE="EXPORTS_HISTORY__SELECT_PAGE",TAB_NAV__SELECT="TAB_NAV__SELECT",TAB_NAV__FOCUS="TAB_NAV__FOCUS",SEND_REFERRAL_FORM__SUBMIT="SEND_REFERRAL_FORM__SUBMIT",REFERRAL_LIST__LOADED="REFERRAL_LIST__LOADED",REFERRAL_LIST__FILTER_CHANGE="REFERRAL_LIST__FILTER_CHANGE",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",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",COMPANY_LISTS__COMPANY_IN_LOADED="COMPANY_LISTS__COMPANY_IN_LOADED",DNB_FAMILY_TREE_LOADED="DNB_FAMILY_TREE_LOADED",OBJECTIVE_LOADED="OBJECTIVE_LOADED",ONE_LIST_DETAILS_LOADED="ONE_LIST_DETAILS_LOADED",TASK_DETAILS_LOADED="TASK_DETAILS_LOADED",COPY_TASK_DETAILS_LOADED="COPY_TASK_DETAILS_LOADED",INVESTMENT__PROJECT_LOADED="INVESTMENT__PROJECT_LOADED",EXPORT_WIN_RESENT__SUCCESS="EXPORT_WIN_RESENT__SUCCESS",PAGINATED_RESOURCE__GO_TO_PAGE="PAGINATED_RESOURCE__GO_TO_PAGE",PAGINATED_RESOURCE__ON_SUCCESS="PAGINATED_RESOURCE__ON_SUCCESS",MY_TASKS_CHECK_COMPLETE="MY_TASKS_CHECK_COMPLETE",MY_TASKS_LOADED="MY_TASKS_LOADED",INTERACTION__LOADED="INTERACTION__LOADED",PROPOSITION_COMPLETE="PROPOSITION_COMPLETE",COMPANIES__GLOBAL_ULTIMATE_LOADED="COMPANIES__GLOBAL_ULTIMATE_LOADED",ORDERS__QUOTE_PREVIEW_LOADED="ORDERS__QUOTE_PREVIEW_LOADED",COMPANIES__OVERVIEW_RECENT_ACTIVITY_LOADED="COMPANIES__OVERVIEW_RECENT_ACTIVITY_LOADED",COMPANIES__OVERVIEW_UPCOMING_ACTIVITY_LOADED="COMPANIES__OVERVIEW_UPCOMING_ACTIVITY_LOADED"},"./src/client/components/AccessDenied/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_Layout_DefaultLayout__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/components/Layout/DefaultLayout.jsx"),AccessDenied=function AccessDenied(_ref){var breadcrumbs=_ref.breadcrumbs;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_Layout_DefaultLayout__WEBPACK_IMPORTED_MODULE_1__.A,{heading:"You don't have permission to view this page",pageTitle:"Access denied",breadcrumbs},react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{"data-test":"access-denied"},react__WEBPACK_IMPORTED_MODULE_0__.createElement("p",null,"If you think you should have access or need to sign up to a DBT system then ",react__WEBPACK_IMPORTED_MODULE_0__.createElement("a",{href:"/support"},"request access"),"."),react__WEBPACK_IMPORTED_MODULE_0__.createElement("p",null,"You can also ",react__WEBPACK_IMPORTED_MODULE_0__.createElement("a",{href:"/"},"browse or search from the homepage")," to find the information you need."),react__WEBPACK_IMPORTED_MODULE_0__.createElement("p",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("strong",null,"403"))))};const __WEBPACK_DEFAULT_EXPORT__=AccessDenied;AccessDenied.__docgenInfo={description:"",methods:[],displayName:"AccessDenied"}},"./src/client/components/AdministrativeAreaSearch/useAdministrativeAreaLookup.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>useAdministrativeAreaLookup,p:()=>filterAreaDataByCountry});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.async-iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.json.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.math.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-prototype-of.js"),__webpack_require__("./node_modules/core-js/modules/es.object.set-prototype-of.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.promise.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var axios__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./node_modules/axios/lib/axios.js"),_lib_urls__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("./src/lib/urls.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _regeneratorRuntime(){_regeneratorRuntime=function _regeneratorRuntime(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{define({},"")}catch(t){define=function define(t,e,r){return t[e]=r}}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,(function(){return this}));var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach((function(e){define(t,e,(function(t){return this._invoke(e,t)}))}))}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){invoke("next",t,i,a)}),(function(t){invoke("throw",t,i,a)})):e.resolve(h).then((function(t){u.value=t,i(u)}),(function(t){return invoke("throw",t,i,a)}))}a(c.arg)}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e((function(e,r){invoke(t,n,e,r)}))}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done}}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg)}}}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value}catch(n){return void e(n)}i.done?t(u):Promise.resolve(u).then(r,o)}function useAdministrativeAreaLookup(){return function(){var _findAreaByCountryId=function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise((function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n)}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n)}_next(void 0)}))}}(_regeneratorRuntime().mark((function _callee(){var countryId,_yield$axios,data,_args=arguments;return _regeneratorRuntime().wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:return countryId=_args.length>0&&void 0!==_args[0]?_args[0]:void 0,_context.next=3,(0,axios__WEBPACK_IMPORTED_MODULE_19__.A)("".concat(_lib_urls__WEBPACK_IMPORTED_MODULE_18__.metadata.administrativeArea(),"?_=0"));case 3:return _yield$axios=_context.sent,data=_yield$axios.data,_context.abrupt("return",countryId?filterAreaDataByCountry(data,countryId):data);case 6:case"end":return _context.stop()}}),_callee)})));return function findAreaByCountryId(){return _findAreaByCountryId.apply(this,arguments)}}()}function filterAreaDataByCountry(data,countryId){return data.filter((function(area){return null===area.disabled_on})).filter((function(area){return area.country.id===countryId}))}},"./src/client/components/AdministrativeAreaSearch/useAdministrativeAreaSearch.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.async-iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.json.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.math.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-prototype-of.js"),__webpack_require__("./node_modules/core-js/modules/es.object.set-prototype-of.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.promise.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var react__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./node_modules/react/index.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _regeneratorRuntime(){_regeneratorRuntime=function _regeneratorRuntime(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{define({},"")}catch(t){define=function define(t,e,r){return t[e]=r}}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,(function(){return this}));var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach((function(e){define(t,e,(function(t){return this._invoke(e,t)}))}))}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){invoke("next",t,i,a)}),(function(t){invoke("throw",t,i,a)})):e.resolve(h).then((function(t){u.value=t,i(u)}),(function(t){return invoke("throw",t,i,a)}))}a(c.arg)}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e((function(e,r){invoke(t,n,e,r)}))}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done}}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg)}}}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value}catch(n){return void e(n)}i.done?t(u):Promise.resolve(u).then(r,o)}function _slicedToArray(r,e){return function _arrayWithHoles(r){if(Array.isArray(r))return r}(r)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(r,e)||function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0}}(r,e)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e0&&void 0!==_args[0]?_args[0]:void 0,_context.prev=1,setIsSubmitting(!0),setAdministrativeAreaSearchError(null),_context.t0=setAdministrativeAreaList,_context.next=7,areaSearchCallback(countryId);case 7:_context.t1=_context.sent,(0,_context.t0)(_context.t1),_context.next=15;break;case 11:_context.prev=11,_context.t2=_context.catch(1),setAdministrativeAreaList(null),setAdministrativeAreaSearchError("Error occurred while searching for an administrative area.");case 15:return _context.prev=15,setIsSubmitting(!1),_context.finish(15);case 18:case"end":return _context.stop()}}),_callee,null,[[1,11,15,18]])}))),_onAdministrativeAreaSearch.apply(this,arguments)}return{administrativeAreaSearchError,administrativeAreaList,isAreaFilterSubmitting:isSubmitting,onAdministrativeAreaSearch:function onAdministrativeAreaSearch(){return _onAdministrativeAreaSearch.apply(this,arguments)}}}},"./src/client/components/Analytics/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var react_redux__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react-redux/dist/react-redux.mjs"),_actions__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/client/actions.js");const __WEBPACK_DEFAULT_EXPORT__=(0,react_redux__WEBPACK_IMPORTED_MODULE_0__.connect)()((function(_ref){var children=_ref.children,dispatch=_ref.dispatch;return children((function(_ref2){var category=_ref2.category,action=_ref2.action,label=_ref2.label,extra=_ref2.extra,_ref2$event=_ref2.event,event=void 0===_ref2$event?"gaEvent":_ref2$event;return dispatch({type:_actions__WEBPACK_IMPORTED_MODULE_1__.bVo,category,action,label,extra,event})}))}))},"./src/client/components/ArchivePanel/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.string.bold.js");var _templateObject,_templateObject2,_templateObject3,react__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_11__),styled_components__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_main__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@govuk-react/main/dist/govuk-react-main.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_govuk_react_link__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/@govuk-react/link/dist/govuk-react-link.esm.js"),_client_components_StatusMessage__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./src/client/components/StatusMessage/index.jsx"),_utils_date__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./src/client/utils/date.js");function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var negativeSpacing="-"+_govuk_react_constants__WEBPACK_IMPORTED_MODULE_6__.Es.SCALE_4,StyledMain=(0,styled_components__WEBPACK_IMPORTED_MODULE_10__.Ay)(_govuk_react_main__WEBPACK_IMPORTED_MODULE_5__.A)(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n padding-top: ",";\n div {\n font-size: ",";\n }\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_6__.Es.SCALE_1,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_6__.SG.SIZE_20),StyledMessage=(0,styled_components__WEBPACK_IMPORTED_MODULE_10__.Ay)("p")(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n font-weight: ",";\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_6__.sO.bold),StyledReason=(0,styled_components__WEBPACK_IMPORTED_MODULE_10__.Ay)(StyledMessage)(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n margin-top: ",";\n"])),negativeSpacing),ArchivePanel=function ArchivePanel(_ref){var _ref$archivedBy=_ref.archivedBy,archivedBy=void 0===_ref$archivedBy?null:_ref$archivedBy,archivedOn=_ref.archivedOn,archiveReason=_ref.archiveReason,unarchiveUrl=_ref.unarchiveUrl,_ref$onClick=_ref.onClick,onClick=void 0===_ref$onClick?null:_ref$onClick,type=_ref.type,_ref$archiveMessage=_ref.archiveMessage,archiveMessage=void 0===_ref$archiveMessage?"archived":_ref$archiveMessage;return react__WEBPACK_IMPORTED_MODULE_4__.createElement(StyledMain,{"data-test":"archive-panel"},react__WEBPACK_IMPORTED_MODULE_4__.createElement(_client_components_StatusMessage__WEBPACK_IMPORTED_MODULE_8__.A,null,react__WEBPACK_IMPORTED_MODULE_4__.createElement(StyledMessage,{"data-test":"archive-message"},archivedBy?"This ".concat(type," was ").concat(archiveMessage," on ").concat((0,_utils_date__WEBPACK_IMPORTED_MODULE_9__.format)(archivedOn)," by ").concat(function checkArchiverFormat(archivedBy){return"string"==typeof archivedBy?archivedBy:"".concat(archivedBy.first_name||archivedBy.firstName," ").concat(archivedBy.last_name||archivedBy.lastName)}(archivedBy),"."):"This ".concat(type," was automatically archived on ").concat((0,_utils_date__WEBPACK_IMPORTED_MODULE_9__.format)(archivedOn),".")),react__WEBPACK_IMPORTED_MODULE_4__.createElement(StyledReason,{"data-test":"archive-reason"},"Reason: ".concat(archiveReason)),unarchiveUrl&&react__WEBPACK_IMPORTED_MODULE_4__.createElement(_govuk_react_link__WEBPACK_IMPORTED_MODULE_7__.A,{"data-test":"unarchive-link",onClick,href:unarchiveUrl},"Unarchive")))};ArchivePanel.propTypes={archivedBy:prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_11___default().string,prop_types__WEBPACK_IMPORTED_MODULE_11___default().object]),archivedOn:prop_types__WEBPACK_IMPORTED_MODULE_11___default().string.isRequired,archiveReason:prop_types__WEBPACK_IMPORTED_MODULE_11___default().string.isRequired,unarchiveUrl:prop_types__WEBPACK_IMPORTED_MODULE_11___default().string,onClick:prop_types__WEBPACK_IMPORTED_MODULE_11___default().func,type:prop_types__WEBPACK_IMPORTED_MODULE_11___default().string.isRequired};const __WEBPACK_DEFAULT_EXPORT__=ArchivePanel;ArchivePanel.__docgenInfo={description:"An extension of `StatusMessage` that is used to denote whether a record has been archived.",methods:[],displayName:"ArchivePanel",props:{archivedBy:{defaultValue:{value:"null",computed:!1},description:"An object containg the first and last name of the person who archived the record. If this is not defined, the automatic archive text will appear.",type:{name:"union",value:[{name:"string"},{name:"object"}]},required:!1},onClick:{defaultValue:{value:"null",computed:!1},description:"This is used when the unarchive link needs to contain an `onClick` event (such as displaying a flash message).",type:{name:"func"},required:!1},archiveMessage:{defaultValue:{value:"'archived'",computed:!1},required:!1},archivedOn:{description:"The date the record was archived.",type:{name:"string"},required:!0},archiveReason:{description:"The reason why the record was archived.",type:{name:"string"},required:!0},unarchiveUrl:{description:"The URL to unarchive the record.",type:{name:"string"},required:!1},type:{description:"The type of record.",type:{name:"string"},required:!0}}}},"./src/client/components/Badge/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js");var _templateObject,react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/react/index.js"),styled_components__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),prop_types__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_govuk_react_visually_hidden__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@govuk-react/visually-hidden/dist/govuk-react-visually-hidden.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/client/utils/colours.js");var StyledBadge=(0,styled_components__WEBPACK_IMPORTED_MODULE_6__.Ay)("span")(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n border: ",";\n border-radius: 4px;\n padding: 2px 4px;\n font-size: ",";\n white-space: nowrap;\n color: ",";\n"])),(function(_ref){var borderColour=_ref.borderColour;return"2px solid ".concat(borderColour)}),(function(props){return props.fontSize?props.fontSize:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_3__.SG.SIZE_14}),(function(props){return props.textColour?props.textColour:_client_utils_colours__WEBPACK_IMPORTED_MODULE_5__.pF})),Badge=function Badge(_ref2){var label=_ref2.label,_ref2$borderColour=_ref2.borderColour,borderColour=void 0===_ref2$borderColour?_client_utils_colours__WEBPACK_IMPORTED_MODULE_5__.Pe:_ref2$borderColour,_ref2$textColour=_ref2.textColour,textColour=void 0===_ref2$textColour?_client_utils_colours__WEBPACK_IMPORTED_MODULE_5__.pF:_ref2$textColour,_ref2$fontSize=_ref2.fontSize,fontSize=void 0===_ref2$fontSize?_govuk_react_constants__WEBPACK_IMPORTED_MODULE_3__.SG.SIZE_14:_ref2$fontSize,children=_ref2.children;return react__WEBPACK_IMPORTED_MODULE_2__.createElement(StyledBadge,{"data-test":"badge",borderColour,textColour,fontSize},label&&react__WEBPACK_IMPORTED_MODULE_2__.createElement(_govuk_react_visually_hidden__WEBPACK_IMPORTED_MODULE_4__.A,null,label),children)};Badge.propTypes={label:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string,borderColour:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string,textColour:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string,fontSize:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string,children:prop_types__WEBPACK_IMPORTED_MODULE_7___default().node.isRequired};const __WEBPACK_DEFAULT_EXPORT__=Badge;Badge.__docgenInfo={description:"A component to display the type of an element.",methods:[],displayName:"Badge",props:{borderColour:{defaultValue:{value:"'#bfc1c3'",computed:!1},description:"A custom colour for the border.",type:{name:"string"},required:!1},textColour:{defaultValue:{value:"'#0b0c0c'",computed:!1},description:"A custom colour for the badge text.",type:{name:"string"},required:!1},fontSize:{defaultValue:{value:"FONT_SIZE.SIZE_14",computed:!0},description:"A custom size for the text of the badge.",type:{name:"string"},required:!1},label:{description:"",type:{name:"string"},required:!1},children:{description:"The text that will be displayed on the badge.",type:{name:"node"},required:!0}}}},"./src/client/components/ButtonLink/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js");var _templateObject,styled_components__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_button__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@govuk-react/button/dist/govuk-react-button.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./src/client/utils/colours.js");const __WEBPACK_DEFAULT_EXPORT__=(0,styled_components__WEBPACK_IMPORTED_MODULE_5__.Ay)(_govuk_react_button__WEBPACK_IMPORTED_MODULE_2__.A).attrs((function(props){return props}))(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n &,\n &:hover,\n &:focus {\n background: transparent;\n box-shadow: none;\n color: ",";\n cursor: pointer;\n text-decoration: underline;\n ","\n }\n"])),_client_utils_colours__WEBPACK_IMPORTED_MODULE_4__.yV,(function(props){return props.inline&&"\n padding: 0;\n margin: 0 0 0 ".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_3__.Es.SCALE_1,";\n border: 0;\n width: auto;\n font: inherit;\n ")}))},"./src/client/components/Checkbox/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js");var _templateObject,react__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./node_modules/react/index.js"),styled_components__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),govuk_react__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./node_modules/govuk-react/dist/govuk-react.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_excluded=["onChange","name","initialChecked","value"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;er.length)&&(a=r.length);for(var e=0,n=Array(a);e=0)continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r=0||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded),_useState2=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_14__.useState)(initialChecked),2),checked=_useState2[0],setChecked=_useState2[1];return(0,react__WEBPACK_IMPORTED_MODULE_14__.useEffect)((function(){return setChecked(initialChecked)}),[initialChecked]),react__WEBPACK_IMPORTED_MODULE_14__.createElement(StyledGovCheckbox,_extends({name,value,checked,onChange:function onChange(e){setChecked(e.target.checked),_onChange(e)},"data-test":"checkbox-".concat(name)},props))};const __WEBPACK_DEFAULT_EXPORT__=Checkbox;Checkbox.__docgenInfo={description:"",methods:[],displayName:"Checkbox",props:{initialChecked:{defaultValue:{value:"false",computed:!1},required:!1}}}},"./src/client/components/CheckboxGroupField/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.bold.js");var _templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,react__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./node_modules/react/index.js"),_govuk_react_multi_choice__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./node_modules/@govuk-react/multi-choice/dist/govuk-react-multi-choice.esm.js"),prop_types__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_27___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_27__),styled_components__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./src/client/utils/colours.js"),_Checkbox__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("./src/client/components/Checkbox/index.jsx"),_Form_elements_FieldWrapper__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./src/client/components/Form/elements/FieldWrapper/index.jsx"),_excluded=["legend","name","hint","options","loadOptions","selectedOptions","onChange","id","groupId","maxScrollHeight"],_excluded2=["value","label"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;er.length)&&(a=r.length);for(var e=0,n=Array(a);e=0)continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r=0||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var checkboxGroupElementStyles=(0,styled_components__WEBPACK_IMPORTED_MODULE_26__.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_22__.SG.SIZE_16,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_22__.sO.bold,_client_utils_colours__WEBPACK_IMPORTED_MODULE_23__.Pe,_client_utils_colours__WEBPACK_IMPORTED_MODULE_23__.Iz),StyledFieldWrapper=(0,styled_components__WEBPACK_IMPORTED_MODULE_26__.Ay)(_Form_elements_FieldWrapper__WEBPACK_IMPORTED_MODULE_25__.A)(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n margin-bottom: 14px;\n\n "," {\n margin-bottom: 14px;\n }\n\n ","\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_22__.qs.TABLET,(function(_ref){var maxScrollHeight=_ref.maxScrollHeight;return maxScrollHeight?"\n fieldset > legend {\n font-size: ".concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_22__.SG.SIZE_16,";\n font-weight: ").concat(_govuk_react_constants__WEBPACK_IMPORTED_MODULE_22__.sO.bold,";\n }\n fieldset > div {\n overflow-y: scroll;\n max-height: ").concat(maxScrollHeight,"px;\n padding-left: 10px;\n margin-left: -10px;\n /* Taken from Gov.uk, these rules allow us to retain a permanent scrollbar */\n &::-webkit-scrollbar {\n -webkit-appearance: none;\n width: 7px;\n }\n &::-webkit-scrollbar-thumb {\n border-radius: 4px;\n background-color: rgba(0, 0, 0, 0.5);\n -webkit-box-shadow: 0 0 1px rgb(255 255 255 / 87%);\n }\n }\n ").concat(checkboxGroupElementStyles):checkboxGroupElementStyles})),SelectedCount=(0,styled_components__WEBPACK_IMPORTED_MODULE_26__.Ay)("span")(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n font-size: ",";\n display: block;\n padding: "," 0;\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_22__.SG.SIZE_14,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_22__.Es.SCALE_1),StyledList=(0,styled_components__WEBPACK_IMPORTED_MODULE_26__.Ay)("ul")(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n padding: 0;\n margin: 0;\n list-style: none;\n"]))),StyledCheckbox=(0,styled_components__WEBPACK_IMPORTED_MODULE_26__.Ay)(_Checkbox__WEBPACK_IMPORTED_MODULE_24__.A)(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["\n "," {\n font-size: ",";\n }\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_22__.qs.TABLET,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_22__.SG.SIZE_16),CheckboxGroupField=function CheckboxGroupField(_ref2){var legend=_ref2.legend,name=_ref2.name,hint=_ref2.hint,_ref2$options=_ref2.options,initialOptions=void 0===_ref2$options?[]:_ref2$options,_ref2$loadOptions=_ref2.loadOptions,loadOptions=void 0===_ref2$loadOptions?null:_ref2$loadOptions,_ref2$selectedOptions=_ref2.selectedOptions,selectedOptions=void 0===_ref2$selectedOptions?[]:_ref2$selectedOptions,_ref2$onChange=_ref2.onChange,onChange=void 0===_ref2$onChange?function(){return null}:_ref2$onChange,_ref2$groupId=(_ref2.id,_ref2.groupId),groupId=void 0===_ref2$groupId?"":_ref2$groupId,_ref2$maxScrollHeight=_ref2.maxScrollHeight,maxScrollHeight=void 0===_ref2$maxScrollHeight?0:_ref2$maxScrollHeight,props=_objectWithoutProperties(_ref2,_excluded),_useState2=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_20__.useState)(initialOptions),2),options=_useState2[0],setOptions=_useState2[1],_useState4=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_20__.useState)(null!==loadOptions),2),loading=_useState4[0],setLoading=_useState4[1];return(0,react__WEBPACK_IMPORTED_MODULE_20__.useEffect)((function(){null!==loadOptions&&loadOptions().then((function(options){setLoading(!1),setOptions(options)}))}),[options,loadOptions]),react__WEBPACK_IMPORTED_MODULE_20__.createElement(StyledFieldWrapper,_extends({maxScrollHeight,legend,name,hint,"data-test":"checkbox-group-field-".concat(name),groupId},props),loading?"Loading...":react__WEBPACK_IMPORTED_MODULE_20__.createElement(react__WEBPACK_IMPORTED_MODULE_20__.Fragment,null,maxScrollHeight>0&&selectedOptions.length>0&&react__WEBPACK_IMPORTED_MODULE_20__.createElement(SelectedCount,null,"".concat(selectedOptions.length," selected")),react__WEBPACK_IMPORTED_MODULE_20__.createElement(_govuk_react_multi_choice__WEBPACK_IMPORTED_MODULE_21__.A,null,react__WEBPACK_IMPORTED_MODULE_20__.createElement(StyledList,null,options.map((function(option,i){var optionValue=option.value,optionLabel=option.label,optionProps=_objectWithoutProperties(option,_excluded2),checked=selectedOptions.map((function(_ref3){return _ref3.value})).includes(optionValue),otherOptions=_toConsumableArray(selectedOptions.filter((function(_ref4){return _ref4.value!==optionValue}))),getCheckboxId=function getCheckboxId(name){return"field-".concat(name,"-").concat(i+1)};return react__WEBPACK_IMPORTED_MODULE_20__.createElement("li",{key:optionValue},react__WEBPACK_IMPORTED_MODULE_20__.createElement(StyledCheckbox,_extends({id:getCheckboxId(name),name,initialChecked:checked,value:optionValue,onChange:function handleChange(event){event.target.checked?onChange([].concat(_toConsumableArray(otherOptions),[option])):onChange(otherOptions)},"aria-label":optionLabel,"aria-labelledby":"".concat(getCheckboxId(name)," ").concat(groupId)},optionProps),optionLabel))}))))))};CheckboxGroupField.propTypes={legend:prop_types__WEBPACK_IMPORTED_MODULE_27___default().string,name:prop_types__WEBPACK_IMPORTED_MODULE_27___default().string,hint:prop_types__WEBPACK_IMPORTED_MODULE_27___default().string,options:prop_types__WEBPACK_IMPORTED_MODULE_27___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_27___default().shape({value:prop_types__WEBPACK_IMPORTED_MODULE_27___default().string,label:prop_types__WEBPACK_IMPORTED_MODULE_27___default().string})).isRequired,loadOptions:prop_types__WEBPACK_IMPORTED_MODULE_27___default().func,selectedOptions:prop_types__WEBPACK_IMPORTED_MODULE_27___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_27___default().shape({value:prop_types__WEBPACK_IMPORTED_MODULE_27___default().string,label:prop_types__WEBPACK_IMPORTED_MODULE_27___default().string})).isRequired,onChange:prop_types__WEBPACK_IMPORTED_MODULE_27___default().func,id:prop_types__WEBPACK_IMPORTED_MODULE_27___default().string,maxScrollHeight:prop_types__WEBPACK_IMPORTED_MODULE_27___default().number,groupId:prop_types__WEBPACK_IMPORTED_MODULE_27___default().string};const __WEBPACK_DEFAULT_EXPORT__=CheckboxGroupField;CheckboxGroupField.__docgenInfo={description:"Check box group field - shows a number of options as checkboxes\n\nLet users select one or more options by using the checkboxes component.\nIf you have a lot of options to display consider using the `visibleHeight`\nproperty to create a scrollable area. Selected option count will only show\nwhen you use the `visibleHeight` property.\n\nIf when a screenreader reads the label of the checkboxes in isolation it is not clear what they refer to, use the `groupId` prop to ensure the legend of the checkbox group is read after each checkbox label.",methods:[],displayName:"CheckboxGroupField",props:{options:{defaultValue:{value:"[]",computed:!1},description:"The available options as objects with label and value",type:{name:"arrayOf",value:{name:"shape",value:{value:{name:"string",required:!1},label:{name:"string",required:!1}}}},required:!1},loadOptions:{defaultValue:{value:"null",computed:!1},description:"Function to load options",type:{name:"func"},required:!1},selectedOptions:{defaultValue:{value:"[]",computed:!1},description:"The options that have been selected",type:{name:"arrayOf",value:{name:"shape",value:{value:{name:"string",required:!1},label:{name:"string",required:!1}}}},required:!1},onChange:{defaultValue:{value:"() => null",computed:!1},description:"Callback function that passes on the selected options",type:{name:"func"},required:!1},groupId:{defaultValue:{value:"''",computed:!1},description:"",type:{name:"string"},required:!1},maxScrollHeight:{defaultValue:{value:"0",computed:!1},description:"Sets the visible area for the checkboxes before the overflow is set",type:{name:"number"},required:!1},legend:{description:"The legend label to display",type:{name:"string"},required:!1},name:{description:"The field name for the group",type:{name:"string"},required:!1},hint:{description:"The hint to display",type:{name:"string"},required:!1},id:{description:"",type:{name:"string"},required:!1}}}},"./src/client/components/Chip/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.string.bold.js");var _templateObject,react__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/index.js"),styled_components__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),prop_types__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/client/utils/colours.js");var StyledButton=(0,styled_components__WEBPACK_IMPORTED_MODULE_6__.Ay)("button")(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n display: inline-table;\n padding: 12px;\n margin: 4px;\n background-color: ",";\n border-radius: ",";\n border: 1px solid ",";\n vertical-align: middle;\n cursor: pointer;\n span {\n pointer-events: none;\n display: table-cell;\n font-size: ",";\n }\n span:first-child {\n text-transform: ",";\n padding-right: ",";\n font-weight: ",";\n }\n"])),_client_utils_colours__WEBPACK_IMPORTED_MODULE_5__.WS,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__.Es.SCALE_1,_client_utils_colours__WEBPACK_IMPORTED_MODULE_5__.Uv,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__.SG.SIZE_16,(function(_ref){return _ref.onClick&&"uppercase"}),(function(_ref2){return _ref2.onClick&&"8px"}),(function(_ref3){return _ref3.onClick&&_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__.sO.bold})),Chip=function Chip(_ref4){var children=_ref4.children,value=_ref4.value,_ref4$onClick=_ref4.onClick,onClick=void 0===_ref4$onClick?null:_ref4$onClick;return react__WEBPACK_IMPORTED_MODULE_3__.createElement(StyledButton,{onClick,"data-value":value,"aria-label":"remove filter ".concat(children)},onClick&&react__WEBPACK_IMPORTED_MODULE_3__.createElement("span",null,"✕"),react__WEBPACK_IMPORTED_MODULE_3__.createElement("span",null,children))};Chip.propTypes={children:prop_types__WEBPACK_IMPORTED_MODULE_7___default().node.isRequired,value:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string.isRequired,onClick:prop_types__WEBPACK_IMPORTED_MODULE_7___default().func};const __WEBPACK_DEFAULT_EXPORT__=Chip;Chip.__docgenInfo={description:"Chips are compact elements that represent an input, attribute, or action.\nA Chip could be used to display a list of selected filters in a collection list.",methods:[],displayName:"Chip",props:{onClick:{defaultValue:{value:"null",computed:!1},description:"",type:{name:"func"},required:!1},children:{description:"",type:{name:"node"},required:!0},value:{description:"",type:{name:"string"},required:!0}}}},"./src/client/components/CollectionList/CollectionHeader.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js");var _templateObject,_templateObject2,_templateObject3,react__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_13__),_govuk_react_button__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@govuk-react/button/dist/govuk-react-button.esm.js"),styled_components__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),pluralize__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/pluralize/pluralize.js"),pluralize__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(pluralize__WEBPACK_IMPORTED_MODULE_6__),_govuk_react_heading__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/@govuk-react/heading/dist/govuk-react-heading.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_CollectionHeaderRow__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./src/client/components/CollectionList/CollectionHeaderRow.jsx"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./src/client/utils/colours.js"),_utils_number_utils__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./src/client/utils/number-utils.js"),_excluded=["totalItems","collectionName","addItemUrl","shouldPluralize"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e=0)continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r=0||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded),formattedTotal=(0,_utils_number_utils__WEBPACK_IMPORTED_MODULE_11__._)(totalItems),counterSuffix=shouldPluralize?pluralize__WEBPACK_IMPORTED_MODULE_6___default()(collectionName,totalItems):collectionName,actions=addItemUrl&&react__WEBPACK_IMPORTED_MODULE_4__.createElement(_govuk_react_button__WEBPACK_IMPORTED_MODULE_5__.A,{as:StyledLink,href:addItemUrl,buttonColour:_client_utils_colours__WEBPACK_IMPORTED_MODULE_10__.WS,buttonTextColour:_client_utils_colours__WEBPACK_IMPORTED_MODULE_10__.Uv,"data-test":"add-collection-item-button"},"Add ",collectionName);return react__WEBPACK_IMPORTED_MODULE_4__.createElement(_CollectionHeaderRow__WEBPACK_IMPORTED_MODULE_9__.A,_extends({primary:!0,actions},rest),react__WEBPACK_IMPORTED_MODULE_4__.createElement(StyledHeaderText,{"data-test":"collection-header-name"},react__WEBPACK_IMPORTED_MODULE_4__.createElement(StyledResultCount,{"data-test":"collection-count"},formattedTotal)," ".concat(counterSuffix)))}CollectionHeader.propTypes={totalItems:prop_types__WEBPACK_IMPORTED_MODULE_13___default().number.isRequired,collectionName:prop_types__WEBPACK_IMPORTED_MODULE_13___default().string.isRequired,addItemUrl:prop_types__WEBPACK_IMPORTED_MODULE_13___default().string};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},totalItems:{description:"",type:{name:"number"},required:!0},addItemUrl:{description:"",type:{name:"string"},required:!1}}}},"./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.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js");var _templateObject,_templateObject2,react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__),styled_components__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./src/client/utils/colours.js"),_excluded=["primary","actions","children"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e=0)continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r=0||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref2,_excluded);return react__WEBPACK_IMPORTED_MODULE_5__.createElement(StyledRowWrapper,_extends({primary},rest),children,actions&&react__WEBPACK_IMPORTED_MODULE_5__.createElement(StyledActions,null,actions))};CollectionHeaderRow.propTypes={primary:prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool,actions:prop_types__WEBPACK_IMPORTED_MODULE_9___default().node,children:prop_types__WEBPACK_IMPORTED_MODULE_9___default().node.isRequired};const __WEBPACK_DEFAULT_EXPORT__=CollectionHeaderRow;CollectionHeaderRow.__docgenInfo={description:"",methods:[],displayName:"CollectionHeaderRow",props:{primary:{description:"",type:{name:"bool"},required:!1},actions:{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__,{Ay:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js");var _templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,react__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_13__),react_router_dom__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("./node_modules/react-router-dom/dist/index.js"),styled_components__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_heading__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@govuk-react/heading/dist/govuk-react-heading.esm.js"),_govuk_react_link__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@govuk-react/link/dist/govuk-react-link.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_utils_colours__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./src/client/utils/colours.js"),_Badge___WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./src/client/components/Badge/index.jsx"),_components_Metadata___WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./src/client/components/Metadata/index.jsx"),_Tag__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./src/client/components/Tag/index.jsx");function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var ItemWrapper=(0,styled_components__WEBPACK_IMPORTED_MODULE_11__.Ay)("li")(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n border-bottom: 1px solid ",";\n padding: "," 0;\n"])),_utils_colours__WEBPACK_IMPORTED_MODULE_7__.Pe,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_6__.Es.SCALE_3),StyledBadgesWrapper=(0,styled_components__WEBPACK_IMPORTED_MODULE_11__.Ay)("div")(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n margin-bottom: ",";\n\n & > * {\n margin-right: ",";\n &:last-child {\n margin-right: 0;\n }\n }\n\n "," {\n float: right;\n }\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_6__.Es.SCALE_2,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_6__.Es.SCALE_1,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_6__.qs.TABLET),StyledInlineTagWrapper=(0,styled_components__WEBPACK_IMPORTED_MODULE_11__.Ay)("div")({display:"flex",flexWrap:"wrap",gap:_govuk_react_constants__WEBPACK_IMPORTED_MODULE_6__.Es.SCALE_2,paddingBottom:"10px"}),StyledHeader=(0,styled_components__WEBPACK_IMPORTED_MODULE_11__.Ay)(_govuk_react_heading__WEBPACK_IMPORTED_MODULE_4__.H3)(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n font-size: ","px;\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_6__.iU.SMALL),StyledLinkHeader=(0,styled_components__WEBPACK_IMPORTED_MODULE_11__.Ay)(StyledHeader)(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n & > a:link,\n a:visited,\n a:hover,\n a:active {\n text-decoration: none;\n }\n"]))),StyledSubheading=(0,styled_components__WEBPACK_IMPORTED_MODULE_11__.Ay)("h4")(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["\n font-size: ",";\n line-height: 20px;\n color: ",";\n font-weight: normal;\n margin: -"," 0 "," 0;\n"])),(function(_ref){var fontSize=_ref.fontSize;return fontSize?"".concat(fontSize,"px"):"14px"}),_utils_colours__WEBPACK_IMPORTED_MODULE_7__.hM,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_6__.Es.SCALE_3,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_6__.Es.SCALE_2),StyledButtonWrapper=(0,styled_components__WEBPACK_IMPORTED_MODULE_11__.Ay)("div")(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["\n margin-bottom: -30px;\n margin-right: 10px;\n\n "," {\n text-align: right;\n }\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_6__.qs.TABLET),StyledFooterWrapper=(0,styled_components__WEBPACK_IMPORTED_MODULE_11__.Ay)("div")(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["\n margin-right: 10px;\n text-align: right;\n"]))),renderTags=function renderTags(tags){return tags.map((function(tag,index){return react__WEBPACK_IMPORTED_MODULE_3__.createElement(_Tag__WEBPACK_IMPORTED_MODULE_10__.A,{key:"tag_".concat(index),colour:tag.colour,"data-test":tag.dataTest?tag.dataTest:"collection-item-tag"},tag.text)}))},CollectionItem=function CollectionItem(_ref2){var headingText=_ref2.headingText,subheading=_ref2.subheading,subheadingUrl=_ref2.subheadingUrl,headingUrl=_ref2.headingUrl,badges=_ref2.badges,tags=_ref2.tags,metadata=_ref2.metadata,metadataRenderer=_ref2.metadataRenderer,onClick=_ref2.onClick,_ref2$titleRenderer=_ref2.titleRenderer,titleRenderer=void 0===_ref2$titleRenderer?null:_ref2$titleRenderer,_ref2$useReactRouter=_ref2.useReactRouter,useReactRouter=void 0!==_ref2$useReactRouter&&_ref2$useReactRouter,buttons=_ref2.buttons,footerRenderer=_ref2.footerRenderer,footerdata=_ref2.footerdata,_ref2$showTagsInMetad=_ref2.showTagsInMetadata,showTagsInMetadata=void 0!==_ref2$showTagsInMetad&&_ref2$showTagsInMetad;return react__WEBPACK_IMPORTED_MODULE_3__.createElement(ItemWrapper,{"data-test":"collection-item"},tags&&!showTagsInMetadata&&react__WEBPACK_IMPORTED_MODULE_3__.createElement(StyledBadgesWrapper,{"data-test":"collection-item-tags"},renderTags(tags)),!tags&&badges&&react__WEBPACK_IMPORTED_MODULE_3__.createElement(StyledBadgesWrapper,{"data-test":"collection-item-badges"},badges.map((function(badge){return react__WEBPACK_IMPORTED_MODULE_3__.createElement(_Badge___WEBPACK_IMPORTED_MODULE_8__.A,{key:badge.text,borderColour:badge.borderColour},badge.text)}))),titleRenderer?titleRenderer(headingText,headingUrl):headingUrl?react__WEBPACK_IMPORTED_MODULE_3__.createElement(StyledLinkHeader,null,useReactRouter?react__WEBPACK_IMPORTED_MODULE_3__.createElement(_govuk_react_link__WEBPACK_IMPORTED_MODULE_5__.A,{as:react_router_dom__WEBPACK_IMPORTED_MODULE_12__.N_,to:headingUrl,onClick},headingText):react__WEBPACK_IMPORTED_MODULE_3__.createElement(_govuk_react_link__WEBPACK_IMPORTED_MODULE_5__.A,{href:headingUrl,onClick},headingText)):react__WEBPACK_IMPORTED_MODULE_3__.createElement(StyledHeader,null,headingText),subheading?subheadingUrl?react__WEBPACK_IMPORTED_MODULE_3__.createElement(StyledSubheading,{fontSize:19},react__WEBPACK_IMPORTED_MODULE_3__.createElement(_govuk_react_link__WEBPACK_IMPORTED_MODULE_5__.A,{href:subheadingUrl},subheading)):react__WEBPACK_IMPORTED_MODULE_3__.createElement(StyledSubheading,null,subheading):null,showTagsInMetadata&&react__WEBPACK_IMPORTED_MODULE_3__.createElement(StyledInlineTagWrapper,null,renderTags(tags)),metadataRenderer?metadataRenderer(metadata):react__WEBPACK_IMPORTED_MODULE_3__.createElement(_components_Metadata___WEBPACK_IMPORTED_MODULE_9__.A,{rows:metadata}),buttons&&react__WEBPACK_IMPORTED_MODULE_3__.createElement(StyledButtonWrapper,null,buttons),footerRenderer&&react__WEBPACK_IMPORTED_MODULE_3__.createElement(StyledFooterWrapper,null,footerRenderer(footerdata)," "))};CollectionItem.propTypes={headingUrl:prop_types__WEBPACK_IMPORTED_MODULE_13___default().string,headingText:prop_types__WEBPACK_IMPORTED_MODULE_13___default().string.isRequired,subheading:prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_13___default().string,prop_types__WEBPACK_IMPORTED_MODULE_13___default().element]),subheadingUrl:prop_types__WEBPACK_IMPORTED_MODULE_13___default().string,badges:prop_types__WEBPACK_IMPORTED_MODULE_13___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_13___default().shape({text:prop_types__WEBPACK_IMPORTED_MODULE_13___default().string,borderColour:prop_types__WEBPACK_IMPORTED_MODULE_13___default().string})),tags:prop_types__WEBPACK_IMPORTED_MODULE_13___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_13___default().shape({text:prop_types__WEBPACK_IMPORTED_MODULE_13___default().string,colour:prop_types__WEBPACK_IMPORTED_MODULE_13___default().string})),metadata:prop_types__WEBPACK_IMPORTED_MODULE_13___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_13___default().shape({label:prop_types__WEBPACK_IMPORTED_MODULE_13___default().string,key:prop_types__WEBPACK_IMPORTED_MODULE_13___default().string,value:prop_types__WEBPACK_IMPORTED_MODULE_13___default().node.isRequired})),type:prop_types__WEBPACK_IMPORTED_MODULE_13___default().string,metadataRenderer:prop_types__WEBPACK_IMPORTED_MODULE_13___default().func,titleRenderer:prop_types__WEBPACK_IMPORTED_MODULE_13___default().func,buttonRenderer:prop_types__WEBPACK_IMPORTED_MODULE_13___default().func,footerRenderer:prop_types__WEBPACK_IMPORTED_MODULE_13___default().func};const __WEBPACK_DEFAULT_EXPORT__=CollectionItem;CollectionItem.__docgenInfo={description:"",methods:[],displayName:"CollectionItem",props:{titleRenderer:{defaultValue:{value:"null",computed:!1},description:"",type:{name:"func"},required:!1},useReactRouter:{defaultValue:{value:"false",computed:!1},required:!1},showTagsInMetadata:{defaultValue:{value:"false",computed:!1},required:!1},headingUrl:{description:"",type:{name:"string"},required:!1},headingText:{description:"",type:{name:"string"},required:!0},subheading:{description:"",type:{name:"union",value:[{name:"string"},{name:"element"}]},required:!1},subheadingUrl:{description:"",type:{name:"string"},required:!1},badges:{description:"",type:{name:"arrayOf",value:{name:"shape",value:{text:{name:"string",required:!1},borderColour:{name:"string",required:!1}}}},required:!1},tags:{description:"",type:{name:"arrayOf",value:{name:"shape",value:{text:{name:"string",required:!1},colour:{name:"string",required:!1}}}},required:!1},metadata:{description:"",type:{name:"arrayOf",value:{name:"shape",value:{label:{name:"string",required:!1},key:{name:"string",required:!1},value:{name:"node",required:!0}}}},required:!1},type:{description:"",type:{name:"string"},required:!1},metadataRenderer:{description:"",type:{name:"func"},required:!1},buttonRenderer:{description:"",type:{name:"func"},required:!1},footerRenderer:{description:"",type:{name:"func"},required:!1}}}},"./src/client/components/CollectionList/CollectionSort.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>CollectionList_CollectionSort});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.string.search.js");var react=__webpack_require__("./node_modules/react/index.js"),prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),dist=__webpack_require__("./node_modules/react-router/dist/index.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/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/lodash/lodash.js")),Select=__webpack_require__("./src/client/components/Select/index.jsx");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}var _excluded=["qsParamName"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e=0)continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r=0||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded),navigate=(0,dist.Zp)(),location=(0,dist.zy)(),qsParams=lib_default().parse(location.search.slice(1)),initialValue=(0,lodash.get)(qsParams,qsParamName,"");return react.createElement(Select.A,_extends({},props,{input:{initialValue,onChange:function onChange(e){navigate({search:lib_default().stringify(_objectSpread(_objectSpread({},qsParams),{},_defineProperty({},qsParamName,e.target.value)))})}}}))};const components_RoutedSelect=RoutedSelect;RoutedSelect.__docgenInfo={description:"",methods:[],displayName:"RoutedSelect"};var _templateObject,CollectionSort_excluded=["sortOptions","totalPages"];function CollectionSort_extends(){return CollectionSort_extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e=0)continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r=0||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,CollectionSort_excluded),actions=sortOptions?react.createElement(components_RoutedSelect,{"data-test":"sortby",name:"sortBy",qsParamName:"sortby",label:"Sort by"},sortOptions.map((function(_ref2,i){var name=_ref2.name,value=_ref2.value;return react.createElement("option",{value,key:i},name)}))):null,location=(0,dist.zy)(),searchParams=lib_default().parse(location.search.slice(1));return react.createElement(CollectionHeaderRow.A,CollectionSort_extends({},props,{actions}),react.createElement(StyledSpan,{"data-test":"pagination-summary"},"Page ",searchParams.page||1," of ",totalPages))};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.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js");var react__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__),govuk_react__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/govuk-react/dist/govuk-react.esm.js"),_client_components_Task__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/client/components/Task/index.jsx"),_components__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./src/client/components/index.jsx");function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e{"use strict";__webpack_require__.d(__webpack_exports__,{X8:()=>ALPHABETICAL,MR:()=>LEAST_RECENT,Ot:()=>RECENT,Ay:()=>CompanyLists_Filters});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var govuk_react_constants_esm=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),govuk_react_input_esm=__webpack_require__("./node_modules/@govuk-react/input/dist/govuk-react-input.esm.js"),govuk_react_select_esm=__webpack_require__("./node_modules/@govuk-react/select/dist/govuk-react-select.esm.js"),govuk_react_grid_row_esm=__webpack_require__("./node_modules/@govuk-react/grid-row/dist/govuk-react-grid-row.esm.js"),govuk_react_grid_col_esm=__webpack_require__("./node_modules/@govuk-react/grid-col/dist/govuk-react-grid-col.esm.js"),react=__webpack_require__("./node_modules/react/index.js"),react_redux=__webpack_require__("./node_modules/react-redux/dist/react-redux.mjs"),styled_components_browser_esm=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),colours=__webpack_require__("./src/client/utils/colours.js"),prop_types=(__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/prop-types/index.js")),prop_types_default=__webpack_require__.n(prop_types),govuk_react_label_esm=__webpack_require__("./node_modules/@govuk-react/label/dist/govuk-react-label.esm.js"),govuk_react_label_text_esm=__webpack_require__("./node_modules/@govuk-react/label-text/dist/govuk-react-label-text.esm.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _defineProperty(e,r,t){return(r=function _toPropertyKey(t){var i=function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var StyledLabel=(0,styled_components_browser_esm.Ay)(govuk_react_label_esm.A)((function(_ref){var 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 react.createElement(StyledLabel,{justifyRight,htmlFor:name},react.createElement(StyledLabelText,null,text),children)};InlineLabel.propTypes={text:prop_types_default().string.isRequired,children:prop_types_default().node,justifyRight:prop_types_default().bool};const components_InlineLabel=InlineLabel;InlineLabel.__docgenInfo={description:"",methods:[],displayName:"InlineLabel",props:{text:{description:"",type:{name:"string"},required:!0},children:{description:"",type:{name:"node"},required:!1},justifyRight:{description:"",type:{name:"bool"},required:!1}}};var actions=__webpack_require__("./src/client/actions.js"),state=__webpack_require__("./src/client/components/CompanyLists/state.js");function Filters_typeof(o){return Filters_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Filters_typeof(o)}function Filters_defineProperty(e,r,t){return(r=function Filters_toPropertyKey(t){var i=function Filters_toPrimitive(t,r){if("object"!=Filters_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=Filters_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==Filters_typeof(i)?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var ALPHABETICAL="alphabetical",RECENT="recent",LEAST_RECENT="least-recent",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.Ay)((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 react.createElement(StyledRoot,null,react.createElement(StyledCol,null,react.createElement(components_InlineLabel,{text:"Search this list",name:companyNameId},react.createElement(StyledInput,{value:query||"",placeholder:"Company name",id:companyNameId,onChange:function onChange(e){return onSearch(e.target.value)}}))),react.createElement(StyledCol,null,react.createElement(components_InlineLabel,{text:"Sort by",justifyRight:!0,name:sortById},react.createElement(StyledSelect,{value:orderBy,id:sortById,onChange:function onChange(e){return onOrderChange(e.target.value)}},react.createElement("option",{value:RECENT,"aria-label":"recent interaction"},"Recent interaction"),react.createElement("option",{value:LEAST_RECENT,"aria-label":"least recent interaction"},"Least recent interaction"),react.createElement("option",{value:ALPHABETICAL,"aria-label":"company name a to z"},"Company name A-Z")))))};const CompanyLists_Filters=(0,react_redux.connect)(state.o,(function(dispatch){return{onSearch:function onSearch(query){return dispatch({type:actions.WvE,query})},onOrderChange:function onOrderChange(orderBy){return dispatch({type:actions.OCZ,orderBy})}}}))(Filters);Filters.__docgenInfo={description:"",methods:[],displayName:"Filters",props:{companyNameId:{defaultValue:{value:"'company-name'",computed:!1},required:!1},sortById:{defaultValue:{value:"'sort-by'",computed:!1},required:!1}}}},"./src/client/components/CompanyLists/state.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{ID:()=>ID,o:()=>state2props});var ID="companyLists",state2props=function state2props(state){return state[ID]}},"./src/client/components/CompanyLocalHeader/state.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{ID:()=>ID,oK:()=>state2props,wD:()=>TASK_GET_LISTS_COMPANY_IS_IN,x0:()=>companyState2Props});var TASK_GET_LISTS_COMPANY_IS_IN="TASK_GET_LISTS_COMPANY_IS_IN",ID="companyListsCompanyIn",state2props=function state2props(state){return state[ID]},companyState2Props=function companyState2Props(state){return{csrfToken:state.csrfToken}}},"./src/client/components/ContactInformation/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.string.search.js");var _templateObject,react__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/react/index.js"),govuk_react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/govuk-react/dist/govuk-react.esm.js"),styled_components__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_lib_urls__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./src/lib/urls.js"),_lib_urls__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(_lib_urls__WEBPACK_IMPORTED_MODULE_7__);var StyledDetails=(0,styled_components__WEBPACK_IMPORTED_MODULE_8__.Ay)(govuk_react__WEBPACK_IMPORTED_MODULE_5__.B_)(_templateObject||(_templateObject=function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n margin-top: ",";\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_6__.Ge[1]),ContactInformation=function ContactInformation(_ref){var onOpenContactForm=_ref.onOpenContactForm,companyId=_ref.companyId,redirectUrl=_lib_urls__WEBPACK_IMPORTED_MODULE_7___default().contacts.create(companyId,{origin_url:window.location.pathname,origin_search:btoa(window.location.search)});return react__WEBPACK_IMPORTED_MODULE_4__.createElement(react__WEBPACK_IMPORTED_MODULE_4__.Fragment,null,"If your contact is not listed"," ",react__WEBPACK_IMPORTED_MODULE_4__.createElement(govuk_react__WEBPACK_IMPORTED_MODULE_5__.N_,{"data-test":"add-a-new-contact-link",onClick:function onClick(e){e.preventDefault(),onOpenContactForm({event:e,redirectUrl})},href:redirectUrl},"add a new contact"),". You will leave this page to enter details, once added you will return here. The information you added will have been saved.",react__WEBPACK_IMPORTED_MODULE_4__.createElement(StyledDetails,{summary:"Information needed to add a new contact","data-test":"contact-information-details"},react__WEBPACK_IMPORTED_MODULE_4__.createElement(govuk_react__WEBPACK_IMPORTED_MODULE_5__.fz,null,"You need:"),react__WEBPACK_IMPORTED_MODULE_4__.createElement(govuk_react__WEBPACK_IMPORTED_MODULE_5__.Xy,{listStyleType:"bullet"},react__WEBPACK_IMPORTED_MODULE_4__.createElement(govuk_react__WEBPACK_IMPORTED_MODULE_5__.ck,null,"full name"),react__WEBPACK_IMPORTED_MODULE_4__.createElement(govuk_react__WEBPACK_IMPORTED_MODULE_5__.ck,null,"job title"),react__WEBPACK_IMPORTED_MODULE_4__.createElement(govuk_react__WEBPACK_IMPORTED_MODULE_5__.ck,null,"email address"),react__WEBPACK_IMPORTED_MODULE_4__.createElement(govuk_react__WEBPACK_IMPORTED_MODULE_5__.ck,null,"phone number"),react__WEBPACK_IMPORTED_MODULE_4__.createElement(govuk_react__WEBPACK_IMPORTED_MODULE_5__.ck,null,"work address if different to the company address"))))};const __WEBPACK_DEFAULT_EXPORT__=ContactInformation;ContactInformation.__docgenInfo={description:"",methods:[],displayName:"ContactInformation"}},"./src/client/components/ContentWithHeading.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var prop_types__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),govuk_react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/govuk-react/dist/govuk-react.esm.js"),styled_components__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_SpacedSectionBreak__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/client/components/SpacedSectionBreak.js"),StyledHeading=(0,styled_components__WEBPACK_IMPORTED_MODULE_3__.Ay)(govuk_react__WEBPACK_IMPORTED_MODULE_1__.H3)({flexGrow:1}),StyledHeader=styled_components__WEBPACK_IMPORTED_MODULE_3__.Ay.div({display:"flex",alignItems:"baseline"}),ContentWithHeading=function ContentWithHeading(_ref){var heading=_ref.heading,children=_ref.children,headingActions=_ref.headingActions;return react__WEBPACK_IMPORTED_MODULE_0__.createElement("section",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledHeader,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledHeading,{size:24},heading),headingActions),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_SpacedSectionBreak__WEBPACK_IMPORTED_MODULE_2__.A,null),children)};ContentWithHeading.propTypes={heading:prop_types__WEBPACK_IMPORTED_MODULE_4___default().node,children:prop_types__WEBPACK_IMPORTED_MODULE_4___default().node,headingComponent:prop_types__WEBPACK_IMPORTED_MODULE_4___default().func};const __WEBPACK_DEFAULT_EXPORT__=ContentWithHeading;ContentWithHeading.__docgenInfo={description:"",methods:[],displayName:"ContentWithHeading",props:{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)continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r=0||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_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});var react=__webpack_require__("./node_modules/react/index.js"),prop_types=__webpack_require__("./node_modules/prop-types/index.js"),prop_types_default=__webpack_require__.n(prop_types),react_redux=__webpack_require__("./node_modules/react-redux/dist/react-redux.mjs"),styled_components_browser_esm=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),govuk_react_esm=__webpack_require__("./node_modules/govuk-react/dist/govuk-react.esm.js"),colours=__webpack_require__("./src/client/utils/colours.js"),dist=(__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/dist/index.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"),_excluded=(__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),["id"]);function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e=0)continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r=0||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded),titleId="".concat(props.id,"-title"),descId="".concat(props.id,"-desc");return react.createElement("svg",_extends({role:"img",id},props,{version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 18 18",width:"18",height:"18",xmlnsXlink:"http://www.w3.org/1999/xlink",xmlSpace:"preserve","aria-labelledby":"".concat(titleId," ").concat(descId)}),react.createElement("title",{id:titleId},"An image of a bell with the notification count overlaid"),react.createElement("desc",{id:descId},"An image of a bell with the notification count overlaid"),react.createElement("path",{fill:"#FFF",d:"M6.9,15.9C6.9,15.9,6.9,15.9,6.9,15.9c0,1.2,1,2.1,2.1,2.1s2.1-1,2.1-2.1c0,0,0,0,0,0H6.9L6.9,15.9z M15.8,13.2 l-1.9-2.8V6.8c0-2.4-1.7-4.4-3.9-4.8V1c0-0.5-0.4-1-1-1C8.5,0,8,0.4,8,1V2C5.8,2.5,4.1,4.5,4.1,6.8v3.5l-1.9,2.8 c-0.3,0.4-0.2,1,0.3,1.3c0.2,0.1,0.4,0.2,0.5,0.2h12c0.5,0,1-0.4,1-1C16,13.5,15.9,13.3,15.8,13.2z"}))}))({width:22,height:22,marginLeft:20}),NotificationAlert=function NotificationAlert(_ref){var count=_ref.count,remindersURL=_ref.remindersURL;return react.createElement(StyledNotificationAlertNavLink,{as:"a",href:remindersURL,id:"notification-bell-count"},react.createElement(StyledBellIcon,null),react.createElement(Task.A.Status,{name:state.r,id:state.ID,renderProgress:function renderProgress(){return null},startOnRender:{onSuccessDispatch:actions.Hks}},(function(){return count>0?react.createElement(StyledShape,{size:NotificationBadge.or.SMALL,digits:count.toString().length,"aria-label":"notification-alert-badge","data-test":"notification-alert-badge"},react.createElement(NotificationBadge.y_,null,count<100?count:"99+")):null})))};NotificationAlert.propTypes={count:prop_types_default().number.isRequired,remindersURL:prop_types_default().string.isRequired};const components_NotificationAlert=(0,react_redux.connect)(state.o)(NotificationAlert);NotificationAlert.__docgenInfo={description:"",methods:[],displayName:"NotificationAlert",props:{count:{description:"",type:{name:"number"},required:!0},remindersURL:{description:"",type:{name:"string"},required:!0}}};var urls=__webpack_require__("./src/lib/urls.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r=0)continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r=0||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref3,NavBar_excluded);return react.createElement(ProtectedLink.A,{module,key:i},useRouter&&!disableReactRouter?react.createElement(StyledListItem,null,react.createElement(StyledNavLink,NavBar_extends({to,className:function className(_ref4){var isActive=_ref4.isActive;return null!=isActive?isActive:{styledLinkActive}}},rest),label)):react.createElement(StyledListItem,null,react.createElement(StyledLink,{href:"".concat(to.pathname).concat(to.search?to.search:""),className:isActiveLink(location,to)?"active":""},label)))})),react.createElement(StyledListItem,null,react.createElement(StyledLink,{href:"/support",className:isActiveLink(location,{pathname:"/support"})?"active":""},"Support")))))};NavBar.propTypes={onShowVerticalNav:prop_types_default().func.isRequired,showVerticalNav:prop_types_default().bool.isRequired,disableReactRouter:prop_types_default().bool};const DataHubHeader_NavBar=NavBar;NavBar.__docgenInfo={description:"",methods:[],displayName:"NavBar",props:{onShowVerticalNav:{description:"",type:{name:"func"},required:!0},showVerticalNav:{description:"",type:{name:"bool"},required:!0},disableReactRouter:{description:"",type:{name:"bool"},required:!1}}};__webpack_require__("./node_modules/core-js/modules/es.array.includes.js"),__webpack_require__("./node_modules/core-js/modules/es.string.includes.js");var Header=styled_components_browser_esm.Ay.header({backgroundColor:colours.Uv}),DataHubHeader=function DataHubHeader(_ref){var onShowVerticalNav=_ref.onShowVerticalNav,showVerticalNav=_ref.showVerticalNav,disableReactRouter=_ref.disableReactRouter,hasFeatureGroup=_ref.hasFeatureGroup;return react.createElement(Header,{id:"datahub-header",role:"banner"},react.createElement(govuk_react_esm.q1,{href:"#main-content"},"Skip to main content"),react.createElement(DataHubHeader_DataHubBar,{onShowVerticalNav,showVerticalNav,hasFeatureGroup}),react.createElement(DataHubHeader_NavBar,{onShowVerticalNav,showVerticalNav,disableReactRouter}))};DataHubHeader.propTypes={onShowVerticalNav:prop_types_default().func.isRequired,showVerticalNav:prop_types_default().bool.isRequired,disableReactRouter:prop_types_default().bool,hasFeatureGroup:prop_types_default().bool.isRequired};const components_DataHubHeader=(0,react_redux.connect)((function state2props(state){var activeFeatureGroups=state.activeFeatureGroups,hasInvestmentFeatureGroup=null==activeFeatureGroups?void 0:activeFeatureGroups.includes("investment-notifications"),hasExportFeatureGroup=null==activeFeatureGroups?void 0:activeFeatureGroups.includes("export-notifications");return{hasFeatureGroup:hasInvestmentFeatureGroup||hasExportFeatureGroup}}))(DataHubHeader);DataHubHeader.__docgenInfo={description:"",methods:[],displayName:"DataHubHeader",props:{onShowVerticalNav:{description:"",type:{name:"func"},required:!0},showVerticalNav:{description:"",type:{name:"bool"},required:!0},disableReactRouter:{description:"",type:{name:"bool"},required:!1},hasFeatureGroup:{description:"",type:{name:"bool"},required:!0}}}},"./src/client/components/DateField/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js");var react__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_16___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_16__),_govuk_react_input__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("./node_modules/@govuk-react/input/dist/govuk-react-input.esm.js"),_Form_elements_FieldWrapper__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("./src/client/components/Form/elements/FieldWrapper/index.jsx"),_excluded=["onChange","name","label","legend","hint","initialValue","type"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;er.length)&&(a=r.length);for(var e=0,n=Array(a);e=0)continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r=0||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded),_useState2=_slicedToArray((0,react__WEBPACK_IMPORTED_MODULE_13__.useState)(initialValue),2),value=_useState2[0],setValue=_useState2[1];return(0,react__WEBPACK_IMPORTED_MODULE_13__.useEffect)((function(){return setValue(initialValue)}),[initialValue]),react__WEBPACK_IMPORTED_MODULE_13__.createElement(_Form_elements_FieldWrapper__WEBPACK_IMPORTED_MODULE_15__.A,_extends({name,label,legend,hint},props),react__WEBPACK_IMPORTED_MODULE_13__.createElement(_govuk_react_input__WEBPACK_IMPORTED_MODULE_14__.A,{id:"field-".concat(name,"-1"),"data-test":"field-".concat(name),key:name,name,value,max:"9999-12-31","aria-label":label,type,onChange:function onChange(e){setValue(e.target.value),_onChange(e)}}))};DateField.propTypes={onChange:prop_types__WEBPACK_IMPORTED_MODULE_16___default().func,name:prop_types__WEBPACK_IMPORTED_MODULE_16___default().string.isRequired,label:prop_types__WEBPACK_IMPORTED_MODULE_16___default().node,legend:prop_types__WEBPACK_IMPORTED_MODULE_16___default().node,hint:prop_types__WEBPACK_IMPORTED_MODULE_16___default().string,initialValue:prop_types__WEBPACK_IMPORTED_MODULE_16___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.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js");var _templateObject,react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_11__),styled_components__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),govuk_react__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/govuk-react/dist/govuk-react.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_utils_number_utils__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./src/client/utils/number-utils.js"),_CollectionList_CollectionHeaderRow__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./src/client/components/CollectionList/CollectionHeaderRow.jsx"),_excluded=["downloadLink","count","maxItems","entityName","entityNamePlural"];function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e=0)continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r=0||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded);if(!count||!downloadLink)return null;if(count>=maxItems)return react__WEBPACK_IMPORTED_MODULE_5__.createElement(_CollectionList_CollectionHeaderRow__WEBPACK_IMPORTED_MODULE_9__.A,props,"Filter to fewer than ",(0,_utils_number_utils__WEBPACK_IMPORTED_MODULE_8__._)(maxItems)," ",entityNamePlural," to download");var downloadAction=react__WEBPACK_IMPORTED_MODULE_5__.createElement(govuk_react__WEBPACK_IMPORTED_MODULE_6__.$n,{key:"download",as:StyledLink,href:downloadLink,download:!0},"Download");return react__WEBPACK_IMPORTED_MODULE_5__.createElement(_CollectionList_CollectionHeaderRow__WEBPACK_IMPORTED_MODULE_9__.A,_extends({actions:[downloadAction]},props),"You can now download"," ",1===count?"this ".concat(entityName):"these ".concat(count," ").concat(entityNamePlural))};DownloadDataHeader.propTypes={downloadLink:prop_types__WEBPACK_IMPORTED_MODULE_11___default().string,count:prop_types__WEBPACK_IMPORTED_MODULE_11___default().number,maxItems:prop_types__WEBPACK_IMPORTED_MODULE_11___default().number,entityName:prop_types__WEBPACK_IMPORTED_MODULE_11___default().string,entityNamePlural:prop_types__WEBPACK_IMPORTED_MODULE_11___default().string};const __WEBPACK_DEFAULT_EXPORT__=DownloadDataHeader;DownloadDataHeader.__docgenInfo={description:"",methods:[],displayName:"DownloadDataHeader",props:{count:{defaultValue:{value:"0",computed:!1},description:"",type:{name:"number"},required:!1},maxItems:{defaultValue:{value:"5000",computed:!1},description:"",type:{name:"number"},required:!1},entityName:{defaultValue:{value:"''",computed:!1},description:"",type:{name:"string"},required:!1},entityNamePlural:{description:"",type:{name:"string"},required:!1},downloadLink:{description:"",type:{name:"string"},required:!1}}}},"./src/client/components/Effect.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.array.map.js");var react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/index.js");const __WEBPACK_DEFAULT_EXPORT__=function Effect(_ref){var dependencyList=_ref.dependencyList,effect=_ref.effect;return(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(effect,null==dependencyList?void 0:dependencyList.map(JSON.stringify)),null}},"./src/client/components/EntityList/EntityListItem.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js");var _templateObject,_templateObject2,_templateObject3,react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_10__),lodash__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/lodash/lodash.js"),styled_components__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_govuk_react_heading__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@govuk-react/heading/dist/govuk-react-heading.esm.js"),_govuk_react_inset_text__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@govuk-react/inset-text/dist/govuk-react-inset-text.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./src/client/utils/colours.js"),_components_Metadata___WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./src/client/components/Metadata/index.jsx");function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var StyledEntity=(0,styled_components__WEBPACK_IMPORTED_MODULE_9__.Ay)("div")(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n margin-bottom: ",";\n padding: ",";\n border: 1px solid ",";\n ",";\n\n &[role='button'] {\n cursor: pointer;\n\n h3 {\n color: ",";\n }\n\n &:hover {\n border: 1px solid ",";\n background-color: ",";\n\n & > h3 {\n color: ",";\n }\n }\n }\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__.Es.SCALE_2,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__.Es.SCALE_2,_client_utils_colours__WEBPACK_IMPORTED_MODULE_7__.Pe,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__.bs,_client_utils_colours__WEBPACK_IMPORTED_MODULE_7__.yV,_client_utils_colours__WEBPACK_IMPORTED_MODULE_7__.FY,_client_utils_colours__WEBPACK_IMPORTED_MODULE_7__.P1,_client_utils_colours__WEBPACK_IMPORTED_MODULE_7__.FY),StyledHeading=(0,styled_components__WEBPACK_IMPORTED_MODULE_9__.Ay)(_govuk_react_heading__WEBPACK_IMPORTED_MODULE_5__.H3)(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n font-size: ",";\n margin: 0 0 ",";\n "," {\n font-size: ",";\n }\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__.SG.SIZE_16,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__.Es.SCALE_2,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__.qs.TABLET,_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__.SG.SIZE_19),StyledInsetText=(0,styled_components__WEBPACK_IMPORTED_MODULE_9__.Ay)(_govuk_react_inset_text__WEBPACK_IMPORTED_MODULE_6__.A)(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n & {\n margin-top: ",";\n }\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__.Es.SCALE_2),EntityListItem=function EntityListItem(_ref){var id=_ref.id,onEntityClick=_ref.onEntityClick,_ref$data=_ref.data,data=void 0===_ref$data?{}:_ref$data,text=_ref.text,heading=_ref.heading,_ref$meta=_ref.meta,meta=void 0===_ref$meta?[]:_ref$meta,isClickable=!!onEntityClick;return react__WEBPACK_IMPORTED_MODULE_2__.createElement(StyledEntity,{key:"entity_".concat(id),tabIndex:isClickable?0:void 0,role:isClickable?"button":void 0,onClick:function onClick(){return isClickable&&onEntityClick(data)},onKeyDown:function onKeyDown(e){return isClickable&&13===e.keyCode&&onEntityClick(data)}},heading&&react__WEBPACK_IMPORTED_MODULE_2__.createElement(StyledHeading,null,heading),!(0,lodash__WEBPACK_IMPORTED_MODULE_3__.isEmpty)(meta)&&react__WEBPACK_IMPORTED_MODULE_2__.createElement(_components_Metadata___WEBPACK_IMPORTED_MODULE_8__.A,{rows:meta}),text&&react__WEBPACK_IMPORTED_MODULE_2__.createElement(StyledInsetText,null,text))};EntityListItem.propTypes={id:prop_types__WEBPACK_IMPORTED_MODULE_10___default().string.isRequired,onEntityClick:prop_types__WEBPACK_IMPORTED_MODULE_10___default().func,data:prop_types__WEBPACK_IMPORTED_MODULE_10___default().shape({}),text:prop_types__WEBPACK_IMPORTED_MODULE_10___default().node,heading:prop_types__WEBPACK_IMPORTED_MODULE_10___default().string,meta:prop_types__WEBPACK_IMPORTED_MODULE_10___default().array};const __WEBPACK_DEFAULT_EXPORT__=EntityListItem;EntityListItem.__docgenInfo={description:"",methods:[],displayName:"EntityListItem",props:{data:{defaultValue:{value:"{}",computed:!1},description:"",type:{name:"shape",value:{}},required:!1},meta:{defaultValue:{value:"[]",computed:!1},description:"",type:{name:"array"},required:!1},id:{description:"",type:{name:"string"},required:!0},onEntityClick:{description:"",type:{name:"func"},required:!1},text:{description:"",type:{name:"node"},required:!1},heading:{description:"",type:{name:"string"},required:!1}}}},"./src/client/components/EntityList/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js");var _templateObject,_templateObject2,react__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/prop-types/index.js"),prop_types__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__),styled_components__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_EntityListItem__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./src/client/components/EntityList/EntityListItem.jsx");function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var StyledEntityList=(0,styled_components__WEBPACK_IMPORTED_MODULE_6__.Ay)("ol")(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n margin-bottom: ",";\n padding-left: 0;\n"])),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_4__.Es.SCALE_4),StyledEntityListItem=(0,styled_components__WEBPACK_IMPORTED_MODULE_6__.Ay)("li")(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n list-style-type: none;\n"]))),EntityList=function EntityList(_ref){var entities=_ref.entities,Component=_ref.entityRenderer||_EntityListItem__WEBPACK_IMPORTED_MODULE_5__.A;return react__WEBPACK_IMPORTED_MODULE_3__.createElement(StyledEntityList,{"aria-live":"polite","data-test":"entity-list"},entities.map((function(entity){return react__WEBPACK_IMPORTED_MODULE_3__.createElement(StyledEntityListItem,{"data-test":"entity-list-item",key:"entity-list-item_".concat(entity.id)},react__WEBPACK_IMPORTED_MODULE_3__.createElement(Component,entity))})))};EntityList.propTypes={entities:prop_types__WEBPACK_IMPORTED_MODULE_7___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_7___default().shape({id:prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_7___default().string,prop_types__WEBPACK_IMPORTED_MODULE_7___default().number]).isRequired,heading:prop_types__WEBPACK_IMPORTED_MODULE_7___default().string.isRequired,meta:prop_types__WEBPACK_IMPORTED_MODULE_7___default().array.isRequired,data:prop_types__WEBPACK_IMPORTED_MODULE_7___default().object.isRequired})).isRequired,entityRenderer:prop_types__WEBPACK_IMPORTED_MODULE_7___default().func};const __WEBPACK_DEFAULT_EXPORT__=EntityList;EntityList.__docgenInfo={description:"",methods:[],displayName:"EntityList",props:{entities:{description:"",type:{name:"arrayOf",value:{name:"shape",value:{id:{name:"union",value:[{name:"string"},{name:"number"}],required:!0},heading:{name:"string",required:!0},meta:{name:"array",required:!0},data:{name:"object",required:!0}}}},required:!0},entityRenderer:{description:"",type:{name:"func"},required:!1}}}},"./src/client/components/EntityList/useDnbSearch.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.async-iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.join.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.json.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.math.to-string-tag.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-prototype-of.js"),__webpack_require__("./node_modules/core-js/modules/es.object.set-prototype-of.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.promise.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js");var lodash__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("./node_modules/lodash/lodash.js"),axios__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./node_modules/axios/lib/axios.js"),_utils_addresses__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./src/client/utils/addresses.js");function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _regeneratorRuntime(){_regeneratorRuntime=function _regeneratorRuntime(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{define({},"")}catch(t){define=function define(t,e,r){return t[e]=r}}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,(function(){return this}));var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach((function(e){define(t,e,(function(t){return this._invoke(e,t)}))}))}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){invoke("next",t,i,a)}),(function(t){invoke("throw",t,i,a)})):e.resolve(h).then((function(t){u.value=t,i(u)}),(function(t){return invoke("throw",t,i,a)}))}a(c.arg)}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e((function(e,r){invoke(t,n,e,r)}))}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done}}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg)}}}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value}catch(n){return void e(n)}i.done?t(u):Promise.resolve(u).then(r,o)}function getTradingNames(dnb_company){return(0,lodash__WEBPACK_IMPORTED_MODULE_19__.isEmpty)(dnb_company.trading_names)?null:{label:"Trading name(s)",value:dnb_company.trading_names.join(", ")}}function getAddress(dnb_company,features){return{label:"Location at",value:(0,_utils_addresses__WEBPACK_IMPORTED_MODULE_20__.getCompanyAddress)(dnb_company,features)}}const __WEBPACK_DEFAULT_EXPORT__=function useDnbSearch(apiEndpoint,features){function transformCompanyRecord(record){var dnb_company=record.dnb_company;return{id:dnb_company.duns_number,heading:dnb_company.primary_name,meta:(0,lodash__WEBPACK_IMPORTED_MODULE_19__.compact)([getTradingNames(dnb_company),getAddress(dnb_company,features)]),data:record}}function _findCompany(){return _findCompany=function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise((function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n)}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n)}_next(void 0)}))}}(_regeneratorRuntime().mark((function _callee(filters){var _yield$axios$post,data;return _regeneratorRuntime().wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:return _context.next=2,axios__WEBPACK_IMPORTED_MODULE_21__.A.post(apiEndpoint,filters);case 2:return _yield$axios$post=_context.sent,data=_yield$axios$post.data,_context.abrupt("return",data.results.map(transformCompanyRecord));case 5:case"end":return _context.stop()}}),_callee)}))),_findCompany.apply(this,arguments)}return{findCompany:function findCompany(_x){return _findCompany.apply(this,arguments)},transformCompanyRecord}}},"./src/client/components/ErrorSummary/index.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/core-js/modules/es.symbol.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.filter.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.object.assign.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),__webpack_require__("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),__webpack_require__("./node_modules/core-js/modules/es.object.keys.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.for-each.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.description.js"),__webpack_require__("./node_modules/core-js/modules/es.symbol.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.array.concat.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.date.to-primitive.js"),__webpack_require__("./node_modules/core-js/modules/es.number.constructor.js");var react__WEBPACK_IMPORTED_MODULE_18__=__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_19__=__webpack_require__("./node_modules/@govuk-react/heading/dist/govuk-react-heading.esm.js"),_govuk_react_paragraph__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("./node_modules/@govuk-react/paragraph/dist/govuk-react-paragraph.esm.js"),_govuk_react_unordered_list__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("./node_modules/@govuk-react/unordered-list/dist/govuk-react-unordered-list.esm.js"),_govuk_react_link__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("./node_modules/@govuk-react/link/dist/govuk-react-link.esm.js"),_govuk_react_list_item__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("./node_modules/@govuk-react/list-item/dist/govuk-react-list-item.esm.js"),_govuk_react_constants__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),_govuk_react_lib__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__("./node_modules/@govuk-react/lib/dist/govuk-react-lib.esm.js"),_client_utils_colours__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__("./src/client/utils/colours.js"),_styles__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__("./src/client/styles.js"),_excluded=["heading","description","errors"];function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e=0)continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r=0||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded);return react__WEBPACK_IMPORTED_MODULE_18__.createElement(StyledErrorSummary,_extends({tabIndex:-1},props,{ref}),react__WEBPACK_IMPORTED_MODULE_18__.createElement(_govuk_react_heading__WEBPACK_IMPORTED_MODULE_19__.H2,{size:"MEDIUM"},heading),description&&react__WEBPACK_IMPORTED_MODULE_18__.createElement(_govuk_react_paragraph__WEBPACK_IMPORTED_MODULE_20__.A,{mb:3},description),errors.length>0&&react__WEBPACK_IMPORTED_MODULE_18__.createElement(_govuk_react_unordered_list__WEBPACK_IMPORTED_MODULE_21__.A,{mb:0,listStyleType:"none"},errors.map((function(_ref2){var targetName=_ref2.targetName,text=_ref2.text;return react__WEBPACK_IMPORTED_MODULE_18__.createElement(_govuk_react_list_item__WEBPACK_IMPORTED_MODULE_23__.A,{key:targetName},react__WEBPACK_IMPORTED_MODULE_18__.createElement(StyledErrorText,{href:"#field-".concat(targetName)},text))}))))}));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.array.from.js"),__webpack_require__("./node_modules/core-js/modules/es.array.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.function.name.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js"),__webpack_require__("./node_modules/core-js/modules/es.object.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.exec.js"),__webpack_require__("./node_modules/core-js/modules/es.regexp.to-string.js"),__webpack_require__("./node_modules/core-js/modules/es.string.iterator.js"),__webpack_require__("./node_modules/core-js/modules/web.dom-collections.iterator.js"),__webpack_require__("./node_modules/core-js/modules/es.array.map.js"),__webpack_require__("./node_modules/core-js/modules/es.object.entries.js");var react=__webpack_require__("./node_modules/react/index.js"),styled_components_browser_esm=__webpack_require__("./node_modules/styled-components/dist/styled-components.browser.esm.js"),govuk_react_lib_esm=__webpack_require__("./node_modules/@govuk-react/lib/dist/govuk-react-lib.esm.js"),govuk_react_constants_esm=__webpack_require__("./node_modules/@govuk-react/constants/dist/govuk-react-constants.esm.js"),colours=__webpack_require__("./src/client/utils/colours.js");const govuk_crest_2x_namespaceObject=__webpack_require__.p+"static/media/govuk-crest-2x.05968778.png";var _templateObject,_templateObject2,_templateObject3,_templateObject4,urls=__webpack_require__("./src/lib/urls.js"),urls_default=__webpack_require__.n(urls),Main=__webpack_require__("./src/client/components/Main/index.jsx"),_excluded=["links"];function _slicedToArray(r,e){return function _arrayWithHoles(r){if(Array.isArray(r))return r}(r)||function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}(r,e)||function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0}}(r,e)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e=0)continue;t[n]=r[n]}return t}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r=0||{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}(_ref,_excluded);return react.createElement(StyledFooter,props,react.createElement(Container,null,react.createElement(StyleList,null,Object.entries(links).map((function(_ref2){var _ref3=_slicedToArray(_ref2,2),label=_ref3[0],href=_ref3[1];return react.createElement("li",{key:label},react.createElement(FooterLink,{href,target:"_blank",rel:"noopener noreferrer","aria-label":"".concat(label," (opens in new tab)")},label))}))),react.createElement(CopyrightLink,{href:urls_default().external.nationalArchives.copyright,target:"_blank",rel:"noopener noreferrer","aria-label":"Crown copyright (opens in new tab)"},"© Crown copyright")))}Footer.__docgenInfo={description:"The Footer displayed in all pages across the Data Hub site.\n@param {Object} props - Accepts all the attributes of `